/* TCMS 公共页面样式 */

/* CSS变量定义 - 与功能页面保持一致 */
:root {
    --primary-color: #1e62b3;      /* 主要蓝色 - 与功能页面一致 */
    --primary-light: #2980b9;      /* 浅蓝色 */
    --primary-gradient: linear-gradient(135deg, #1e62b3 0%, #2980b9 100%);
    --secondary-color: #f0f2f5;    /* 浅灰色背景 - 与功能页面一致 */
    --sidebar-bg: #0a3c7e;         /* 深蓝色 - 与功能页面一致 */
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* 导航栏样式 */
.public-navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
}

.brand-icon {
    font-size: 1.8rem;
}

.brand-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
}

/* 顶栏右侧低调文字入口（非按钮）；智能设备平台落地页在内容区另有主按钮，此处隐藏 */
.navbar-meta-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    margin-left: 0.5rem;
}
.navbar-meta-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0;
    transition: var(--transition);
}
.navbar-meta-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}
.navbar-meta-sep {
    color: #cbd5e1;
    user-select: none;
}
body.page-landing-product .navbar-meta-links {
    display: none;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.navbar-actions {
    display: flex;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 999;
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.mobile-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Hero区域样式 */
.hero-section {
    background: var(--white);
    color: var(--text-dark);
    padding: 8rem 0 4rem;
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(30, 98, 179, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 98, 179, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* 功能特性区域 */
.features-section {
    padding: 6rem 0;
    background: var(--secondary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* 优势展示区域 */
.advantages-section {
    padding: 6rem 0;
    background: var(--white);
}

.advantages-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advantage-icon i {
    font-size: 1.2rem;
    color: var(--white);
}

.advantage-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.advantage-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA区域 */
.cta-section {
    padding: 6rem 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 页脚样式 - 与顶部网格底纹风格统一 */
.public-footer {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 2rem;
    overflow: hidden;
}

.public-footer .footer-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
}

.public-footer .footer-bg-gradient {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #1e1e3a 100%);
}

.public-footer .footer-bg-mesh {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: 
        radial-gradient(at 60% 80%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
        radial-gradient(at 20% 20%, rgba(245, 158, 11, 0.06) 0px, transparent 50%);
    opacity: 0.9;
}

.public-footer .footer-bg-grid {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.public-footer .footer-inner {
    position: relative;
    z-index: 1;
}

/* 页脚内 CTA 区域 - 与公司信息一体 */
.public-footer .footer-cta {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.public-footer .footer-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.public-footer .footer-cta-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.public-footer .footer-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.public-footer .footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.public-footer .footer-cta-btn.primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.public-footer .footer-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: white;
}

.public-footer .footer-cta-btn.outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.public-footer .footer-cta-btn.outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.public-footer .footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.public-footer .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.public-footer .footer-company {
    font-size: 1rem;
    font-weight: 600;
}

.public-footer .footer-short {
    font-size: 0.9rem;
    opacity: 0.85;
}

.public-footer .footer-contact p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.public-footer .footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.public-footer .footer-contact a:hover {
    text-decoration: underline;
}

.public-footer .footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.public-footer .footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.public-footer .footer-icp,
.company-footer .footer-icp {
    margin-top: 0.35rem;
}

.public-footer .footer-icp a,
.company-footer .footer-icp a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.public-footer .footer-icp a:hover,
.company-footer .footer-icp a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }

    .navbar-meta-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-content {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .public-footer .footer-row {
        flex-direction: column;
        text-align: center;
    }
    .public-footer .footer-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .features-section,
    .advantages-section,
    .cta-section {
        padding: 4rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.advantage-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d4da1;
}

/* 智能设备平台落地页：页脚与主内容区同色系，避免紫色网格与深蓝主区割裂 */
body.page-landing-product .public-footer .footer-bg-gradient {
    background: linear-gradient(165deg, #0a1628 0%, #0d2137 52%, #071018 100%);
}
body.page-landing-product .public-footer .footer-bg-mesh {
    opacity: 0;
}
body.page-landing-product .public-footer .footer-bg-grid {
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* —— 顶栏「产品服务」下拉（设备系统公共页） —— */
.nav-dropdown {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: default;
    user-select: none;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-dropdown-caret {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
    transform: rotate(180deg);
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger,
.nav-dropdown.is-active .nav-dropdown-trigger {
    color: var(--primary-color);
}

.nav-dropdown.is-active .nav-dropdown-trigger::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.35rem;
    min-width: 240px;
    padding: 0.4rem 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 0.65rem 1.15rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-link:hover {
    background: rgba(30, 98, 179, 0.08);
    color: var(--primary-color);
    text-decoration: none;
}

.nav-dropdown-soon {
    display: block;
    padding: 0.65rem 1.15rem;
    cursor: default;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.nav-dropdown-soon-title {
    display: block;
    font-weight: 500;
    color: #64748b;
}

.nav-dropdown-soon-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.2s ease;
}

.nav-dropdown-soon:hover .nav-dropdown-soon-hint {
    opacity: 1;
    max-height: 2rem;
}

/* 移动端：产品服务折叠 */
.mobile-nav-dropdown {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-summary {
    list-style: none;
    padding: 1rem 0;
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
}

.mobile-nav-summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    font-size: 0.75rem;
    opacity: 0.6;
}

.mobile-nav-dropdown[open] .mobile-nav-summary::after {
    transform: rotate(180deg);
}

.mobile-nav-sub {
    padding: 0 0 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-nav-sublink {
    display: block;
    padding: 0.5rem 0;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.mobile-nav-sublink:hover {
    text-decoration: underline;
}

.mobile-nav-soon {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0.15rem;
}

.mobile-nav-soon-title {
    color: #64748b;
    font-size: 0.95rem;
}

.mobile-nav-soon-hint {
    font-size: 0.8rem;
    color: var(--primary-color);
} 