/* 全局变量与重置 */
:root {
    /* 主色调 - 工业蓝灰色系 */
    --primary-dark: #0A1931;
    --primary-blue: #1A5F7A;
    --accent-teal: #00C9C8;
    --accent-orange: #FF8A47;
    --neutral-dark: #2C3E50;
    --neutral-medium: #7F8C8D;
    --neutral-light: #ECF0F1;
    --success-green: #27AE60;
    --warning-yellow: #F1C40F;
    
    /* 阴影与效果 */
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-orange) 100%);
    
    /* 间距 */
    --section-padding: 6rem 0;
    --container-padding: 0 5%;
    
    /* 边框 */
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    color: var(--neutral-dark);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container-full {
    width: 100%;
    padding: var(--container-padding);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-heavy);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 201, 200, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: rgba(26, 95, 122, 0.05);
}

/* 内页 Hero 中的次按钮：深色 banner 背景上使用白色描边与文字，保证清晰可见 */
.page-hero .btn-secondary {
    color: #fff;
    border-color: #fff;
    background: transparent;
}

.page-hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

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

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

.section-title p {
    font-size: 1.125rem;
    color: var(--neutral-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* 导航栏 - 所有页面共享 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-light);
    padding: 1.25rem 5%;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 56px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--neutral-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 二级栏目下拉菜单 */
.nav-item {
    position: relative;
}

/* 一级到二级之间的透明悬停桥接区（占位宽度=自身菜单项，绝不横向侵入相邻菜单，避免闪现/串到其它二级菜单） */
.nav-item.has-child::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 16px;
    background: transparent;
    z-index: 999;
}

/* 下拉指示小箭头（纯 CSS 绘制，不依赖图标字体，避免乱码方框） */
.nav-caret {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--neutral-medium);
    transition: border-top-color 0.3s ease;
}

.nav-item > a:hover .nav-caret,
.nav-item:hover > a .nav-caret {
    border-top-color: var(--accent-teal);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 190px;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--neutral-dark);
    font-weight: 500;
    white-space: nowrap;
}

.nav-dropdown li a img {
    height: 18px;
    width: auto;
}

.nav-dropdown li a:hover {
    background: #f4f7fb;
    color: var(--accent-teal);
}

.nav-dropdown li a:hover::after {
    width: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
}

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

/* 页脚 - 所有页面共享 */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 5rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-description {
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.8;
}

.contact-item i {
    color: var(--accent-teal);
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-teal);
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    background: var(--accent-teal);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #00b3b2;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1.5rem;
    text-align: center;
}

.footer-copyright {
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-teal);
    transform: translateY(-3px);
}

/* 通用卡片样式 */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

/* 响应式设计 */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-heavy);
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 1.5rem;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }

    /* 移动端为折叠布局，隐藏桌面端的绝对定位悬停桥接区 */
    .nav-item.has-child::before {
        display: none;
    }

    .nav-dropdown {
        position: static;
        transform: none;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        background: transparent;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-height 0.4s ease;
    }

    .nav-dropdown.open {
        opacity: 1;
        visibility: visible;
        max-height: none;
        padding: 0.5rem 0 0;
    }

    .nav-dropdown li a {
        justify-content: center;
        padding: 0.5rem 0;
    }

    .nav-dropdown li a:hover {
        background: transparent;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* 首页特有样式 - 添加到style.css末尾 */

/* Hero 主视觉区域 */
.home-hero {
    background: linear-gradient(rgba(10, 25, 49, 0.85), rgba(26, 95, 122, 0.85)), url('/static/gw/lib/images/banner-cta.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 160px 5% 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 201, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 201, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-teal), #6EE7FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-trust p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-trust strong {
    color: var(--accent-teal);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 201, 200, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    font-size: 1.25rem;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-size: 1.125rem;
}

.feature-text span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 仪表盘预览 */
.dashboard-preview {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.dashboard-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-teal), var(--success-green));
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.dashboard-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-family: monospace;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-teal);
}

.metric-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.metric-trend {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.metric-trend.positive {
    color: var(--success-green);
}

.metric-trend.negative {
    color: var(--danger-color);
}

.dashboard-chart {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
}

.dashboard-footer {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 设备展示 */
.device-showcase {
    position: relative;
    height: 500px;
}

.device {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-heavy);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.device:hover {
    transform: translateY(-10px);
}

.device-1 {
    top: 10%;
    left: 10%;
    width: 180px;
}

.device-2 {
    top: 40%;
    right: 15%;
    width: 200px;
}

.device-3 {
    bottom: 10%;
    left: 20%;
    width: 160px;
}

.device-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.device h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.device p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 首页响应式设计 */
@media (max-width: 1200px) {
    .hero-container {
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 140px 5% 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr;
    }

    .device-showcase {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* ===== 内页 Hero（product/solution/about 共享）===== */
/* 背景图由各页覆盖：.page-hero { background: linear-gradient(...), url('...') no-repeat center center; } */
.page-hero {
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center center;
    color: white;
    padding: 160px 5% 80px;
    text-align: center;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.page-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.page-hero .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

.page-hero .breadcrumb a:hover {
    color: var(--accent-teal);
}

@media (max-width: 768px) {
    .page-hero {
        padding: 140px 5% 60px;
    }
    .page-hero h1 {
        font-size: 2.5rem;
    }
    .page-hero p {
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    .page-hero h1 {
        font-size: 2rem;
    }
}