/* ============================================
   全局样式和变量 - Tesla Style Premium
   ============================================ */
:root {
    /* 午夜蓝科技调色板 - 现代优雅 */
    --primary-color: #1a1f3a;
    /* 午夜蓝主背景 */
    --secondary-color: #252b4a;
    /* 深午夜蓝卡片背景 */
    --tertiary-color: #2f3554;
    /* 亮午夜蓝边框和高亮 */

    /* 强调色系统 */
    --accent-color: #64ffda;
    /* 荧光青 (IoT 标识色) */
    --accent-secondary: #3B82F6;
    /* 科技蓝 (Tesla 风格) */
    --accent-tertiary: #FFFFFF;
    /* 纯白强调 */
    --accent-glow: rgba(100, 255, 218, 0.4);
    --accent-glow-blue: rgba(59, 130, 246, 0.3);

    /* 文字颜色 - 高对比度 */
    --text-primary: #FFFFFF;
    /* 纯白 */
    --text-secondary: #999999;
    /* 中性灰 */
    --text-light: #E5E5E5;
    /* 浅灰 */

    /* 顶部导航栏布局变量（含 iOS 安全区） */
    --safe-top: env(safe-area-inset-top, 0px);
    --navbar-height: 70px;
    --navbar-height-scrolled: 65px;
    --navbar-total-height: calc(var(--navbar-height) + var(--safe-top));
    --navbar-total-height-scrolled: calc(var(--navbar-height-scrolled) + var(--safe-top));
    --text-dark: #666666;
    /* 深灰 */

    /* 玻璃拟态增强 - 适配午夜蓝 */
    --glass-bg: rgba(37, 43, 74, 0.6);
    --glass-bg-light: rgba(47, 53, 84, 0.5);
    --glass-border: rgba(100, 255, 218, 0.15);
    --glass-border-white: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
    --glass-blur-strong: 30px;

    /* 阴影系统 */
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.8);
    --shadow-neon: 0 0 20px var(--accent-glow);
    --shadow-blue: 0 0 30px var(--accent-glow-blue);

    /* 动画曲线 - Tesla 流畅感 */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* 字体系统 */
    --font-display: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* 响应式字体大小 - Tesla 大标题 */
    --h1-size: clamp(3rem, 8vw, 6rem);
    --h2-size: clamp(2rem, 5vw, 3.5rem);
    --h3-size: clamp(1.5rem, 3vw, 2.25rem);
    --h4-size: clamp(1.25rem, 2vw, 1.75rem);
    --body-size: clamp(1rem, 1.5vw, 1.125rem);
    --small-size: clamp(0.875rem, 1.2vw, 1rem);

    /* 间距系统 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* 容器宽度 */
    --container-max: 1400px;
    --container-narrow: 1200px;
    --container-wide: 1600px;
}

/* ============================================
   浅色主题变量
   ============================================ */
[data-theme="light"] {
    /* 浅色背景调色板 */
    --primary-color: #f5f7fa;
    /* 浅灰蓝主背景 */
    --secondary-color: #ffffff;
    /* 纯白卡片背景 */
    --tertiary-color: #e8ecf1;
    /* 浅灰边框和高亮 */

    /* 强调色系统 - 调整为适合浅色背景 */
    --accent-color: #0066cc;
    /* 深蓝 (IoT 标识色) */
    --accent-secondary: #3B82F6;
    /* 科技蓝 (保持) */
    --accent-tertiary: #1a1f3a;
    /* 深色强调 */
    --accent-glow: rgba(0, 102, 204, 0.2);
    --accent-glow-blue: rgba(59, 130, 246, 0.15);

    /* 文字颜色 - 深色系 */
    --text-primary: #1a1f3a;
    /* 深蓝黑 */
    --text-secondary: #4a5568;
    /* 中性灰 */
    --text-light: #2d3748;
    /* 深灰 */
    --text-dark: #718096;
    /* 浅灰 */

    /* 玻璃拟态 - 浅色半透明 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-light: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(0, 102, 204, 0.2);
    --glass-border-white: rgba(0, 0, 0, 0.1);

    /* 阴影系统 - 浅色背景阴影 */
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-neon: 0 0 20px var(--accent-glow);
    --shadow-blue: 0 0 30px var(--accent-glow-blue);
}

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

html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: var(--font-body);
    color: var(--text-secondary);
    background-color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: var(--body-size);
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   全站图片显示规范 - 统一与安全
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

::selection {
    background-color: rgba(100, 255, 218, 0.2);
    color: var(--accent-color);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--tertiary-color);
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-secondary);
}

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

.container-narrow {
    max-width: var(--container-narrow);
}

.container-wide {
    max-width: var(--container-wide);
}

.section-padding {
    padding: var(--spacing-3xl) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-padding-small {
    padding: var(--spacing-2xl) 0;
}

.bg-dark {
    background-color: var(--secondary-color);
}

.bg-black {
    background-color: var(--primary-color);
}

.text-center {
    text-align: center;
}

/* 按钮组容器 - 确保按钮水平排列 */
.text-center:has(.btn) {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: var(--spacing-md);
    width: 100%;
}

/* 桌面端确保按钮尽量同行 */
@media (min-width: 769px) {
    .text-center:has(.btn) {
        flex-wrap: nowrap;
    }
    
    .text-center:has(.btn) .btn {
        flex: 0 1 auto;
        min-width: fit-content;
    }
}

/* 兼容不支持 :has() 的浏览器 - 使用相邻选择器 */
.text-center .btn + .btn {
    margin-left: 0;
}

/* 移动端允许按钮换行 */
@media (max-width: 768px) {
    .text-center:has(.btn) {
        flex-wrap: wrap;
    }
}

/* ============================================
   导航栏 - Floating Glass Bar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-total-height);
    padding-top: var(--safe-top);
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

[data-theme="light"] .navbar {
    background: rgba(245, 247, 250, 0.8);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.navbar.scrolled {
    height: var(--navbar-total-height-scrolled);
    padding-top: var(--safe-top);
    background: rgba(26, 31, 58, 0.92);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--glass-border-white);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar .container {
    height: 100%;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 var(--spacing-md);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--accent-color);
    padding: 6px 0;
}

.logo-img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(100, 255, 218, 0.3));
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, var(--text-primary), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    position: relative;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-family: var(--font-mono);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    line-height: 1;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover::before {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    /* 顶部品牌在小屏优先展示图标，避免文字挤压换行 */
    .logo-text {
        display: none;
    }

    .nav-menu {
        display: none;
        /* Logic handled by JS for mobile menu */
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* ============================================
   英雄区域 - Cyber Command Center
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
}

/* Three.js 容器 */
#three-hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#three-hero-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hero 渐变遮罩 - Tesla 风格 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 50%, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 var(--spacing-lg);
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-logo-img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(100, 255, 218, 0.3));
    transition: var(--transition);
}

.hero-logo-img:hover {
    filter: drop-shadow(0 0 40px rgba(100, 255, 218, 0.5));
    transform: scale(1.05);
}

.hero-overline {
    display: block;
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: var(--small-size);
    margin-bottom: var(--spacing-md);
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
    opacity: 0;
}

.hero-title {
    font-size: var(--h1-size);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
    letter-spacing: -0.02em;
    opacity: 0;
}

.title-line {
    display: block;
    margin: 0.2em 0;
}

.title-line.typing {
    overflow: hidden;
    border-right: 3px solid var(--accent-color);
    white-space: nowrap;
    animation: typing 2s steps(20) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-subtitle {
    font-size: var(--h4-size);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
    line-height: 1.6;
    animation: fadeInUp 0.8s 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
    opacity: 0;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dark);
    font-family: var(--font-mono);
    font-size: var(--small-size);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 10;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    color: var(--accent-color);
}

.scroll-indicator span {
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

/* ============================================
   极简版 Hero - 非首页使用
   ============================================ */
.hero-minimal {
    min-height: auto;
    height: auto;
    padding: calc(var(--navbar-total-height) + 1.25rem) 0 2rem 0;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(100, 255, 218, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-minimal-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-minimal-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-minimal-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.5;
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   按钮 - Neon Tech
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: var(--body-size);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 1;
    cursor: pointer;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: #52f0cd;
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.5);
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-outline:active {
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background-color: var(--accent-secondary);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--accent-glow-blue);
}

/* ============================================
   功能卡片 - Glassmorphism Cards
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    position: relative;
}

.section-header.text-left {
    text-align: left;
    padding-left: var(--spacing-lg);
}

.section-header.text-left::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-secondary));
    box-shadow: 0 0 20px var(--accent-glow);
}

.section-title {
    font-size: var(--h2-size);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.8),
        rgba(26, 26, 26, 0.6)
    );
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    padding: var(--spacing-xl);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--glass-border-white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(100, 255, 218, 0.08),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.9),
        rgba(26, 26, 26, 0.7)
    );
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(100, 255, 218, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

/* 顶部光效条 */
.feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--accent-secondary), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.feature-card:hover::after {
    transform: translateX(100%);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 2rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Feature Card 扩展：缩略图 + CTA（用于产品/方案列表补全链接） */
.feature-thumb {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.feature-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: saturate(1.05) contrast(1.05);
    display: block;
}

.feature-card:hover .feature-thumb img {
    transform: scale(1.08);
    filter: saturate(1.1) contrast(1.08);
}

.feature-thumb + .feature-icon {
    margin-bottom: var(--spacing-md);
}

.feature-card h3,
.feature-card p,
.feature-icon,
.card-cta {
    position: relative;
    z-index: 1;
}

.card-cta {
    margin-top: var(--spacing-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
}

.card-cta:hover {
    color: var(--accent-secondary);
    gap: 0.75rem;
}

/* Allow feature cards to be semantic links without changing layout */
a.feature-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.feature-card:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* Preserve "了解更多" hover feel when the whole card is hovered/focused */
.feature-card:hover .card-cta,
.feature-card:focus-visible .card-cta {
    color: var(--accent-secondary);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .feature-thumb {
        height: 140px;
        margin-bottom: var(--spacing-sm);
    }
}

/* ============================================
   About Page - 更专业、更紧凑
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.about-lead {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-cta {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.about-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.kpi-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.kpi-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.kpi-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.about-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: var(--spacing-lg);
}

.about-timeline .timeline-item {
    position: relative;
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--glass-border-white);
    background: var(--glass-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.about-timeline .timeline-year {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.about-timeline .timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.about-timeline .timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.value-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.value-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-bottom-cta {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: radial-gradient(circle at 20% 20%, rgba(100, 255, 218, 0.08), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08), transparent 55%),
        var(--glass-bg);
}

.about-bottom-cta h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.about-bottom-cta p {
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-values {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .kpi-card {
        padding: var(--spacing-md);
    }
}

/* ============================================
   关于我们 / Footer 等
   ============================================ */
/* ============================================
   Footer 紧凑版 - Compact Footer
   ============================================ */
.footer {
    background-color: var(--secondary-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-compact {
    padding: 3rem 0 1.5rem 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border-white);
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 0.75rem;
    display: block;
}

.footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0.5rem 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.footer-contact p {
    line-height: 1.8;
    margin: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* ============================================
   解决方案与产品详情页 - Detail Pages
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: 1px solid var(--tertiary-color);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(100, 255, 218, 0.1), transparent 40%);
    pointer-events: none;
}

.solution-detail,
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.solution-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(100, 255, 218, 0.1);
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.1);
}

.solution-detail-content h2,
.product-detail-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.solution-intro,
.product-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    border-left: 2px solid var(--tertiary-color);
    padding-left: 1.5rem;
}

.solution-advantages,
.product-features,
.product-specs {
    margin-bottom: 2.5rem;
}

.solution-advantages h3,
.solution-applications h3,
.product-features h3,
.product-specs h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.solution-advantages h3::before,
.solution-applications h3::before,
.product-features h3::before,
.product-specs h3::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--accent-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.advantage-item {
    background: rgba(17, 34, 64, 0.6);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--tertiary-color);
    transition: var(--transition);
}

.advantage-item:hover {
    background: rgba(17, 34, 64, 0.9);
    border-color: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.advantage-icon {
    font-family: var(--font-mono);
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.advantage-item h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.advantage-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.solution-applications ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.solution-applications li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.solution-applications li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.solution-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--tertiary-color);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%); Tech fade effect */
}

.solution-detail-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(100, 255, 218, 0.2);
}

@media (max-width: 900px) {
    .solution-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .solution-detail-image {
        order: -1;
        /* Image on top for mobile */
    }
}

/* ============================================
   Missing Components: Solution Card
   ============================================ */
.solution-card {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 6px;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    display: block; /* allow <a class="solution-card"> to behave like a card */
}

.solution-card:link,
.solution-card:visited {
    text-decoration: none;
    color: inherit;
}

.solution-card:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.product-card {
    display: block; /* allow <a class="product-card"> to behave like a card */
}

.product-card:link,
.product-card:visited {
    text-decoration: none;
    color: inherit;
}

.product-card:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.solution-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(100, 255, 218, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.solution-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.solution-features li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}
/* ============================================
   实时数据看板 - Tesla Style Dashboard
   ============================================ */
.data-dashboard {
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.data-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(100, 255, 218, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-3xl);
    position: relative;
    z-index: 1;
}

.dashboard-numbers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.number-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: var(--spacing-xl);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.number-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    transition: left 0.5s;
}

.number-card:hover::before {
    left: 100%;
}

.number-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px rgba(100, 255, 218, 0.2);
}

.number-value {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.number-suffix {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent-color);
    display: inline-block;
    margin-left: 0.2em;
}

.number-label {
    font-size: var(--h4-size);
    color: var(--text-primary);
    margin-top: var(--spacing-md);
    font-weight: 600;
}

.number-description {
    font-size: var(--small-size);
    color: var(--text-dark);
    margin-top: var(--spacing-xs);
}

.dashboard-chart {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: var(--spacing-xl);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
}

.chart-title {
    text-align: center;
    font-size: var(--h3-size);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

#capabilityRadar {
    max-height: 400px;
}

/* 响应式 - 数据看板 */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-numbers {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 640px) {
    .dashboard-numbers {
        grid-template-columns: 1fr;
    }
    
    .number-card {
        padding: var(--spacing-lg);
    }
}

/* ============================================
   产品和解决方案卡片 - Glassmorphism
   ============================================ */
.products-grid, .solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.product-card, .solution-card {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.8),
        rgba(26, 26, 26, 0.6)
    );
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border-white);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.product-card::before, .solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(100, 255, 218, 0.05),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover, .solution-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(100, 255, 218, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.product-card:hover::before, .solution-card:hover::before {
    opacity: 1;
}

.product-image, .solution-image {
    position: relative;
    overflow: hidden;
    background: var(--tertiary-color);
    /* 统一卡片封面比例，避免各页面写死高度 */
    aspect-ratio: 16 / 9;
}

.product-image img, .solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image img,
.solution-card:hover .solution-image img {
    transform: scale(1.1);
}

.product-content, .solution-content {
    padding: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.product-content h3, .solution-content h3 {
    font-size: var(--h3-size);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    transition: var(--transition);
}

.product-card:hover .product-content h3,
.solution-card:hover .solution-content h3 {
    color: var(--accent-color);
}

.product-content p, .solution-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.product-link, .solution-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.product-link:hover, .solution-link:hover {
    color: var(--accent-secondary);
    gap: 0.75rem;
}

/* 联系信息区域 */
.contact-preview {
    padding: var(--spacing-2xl) 0;
}

.contact-preview .section-header {
    margin-bottom: var(--spacing-xl);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

/* 联系信息卡片 */
.contact-info-card {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.8),
        rgba(26, 26, 26, 0.6)
    );
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--glass-border-white);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(100, 255, 218, 0.1);
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-sm);
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1) rotateY(180deg);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.contact-info-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ============================================
   响应式设计 - Mobile First Approach
   ============================================ */

/* 平板设备 (1024px 及以下) */
@media (max-width: 1024px) {
    :root {
        --h1-size: clamp(2.5rem, 6vw, 4rem);
        --h2-size: clamp(1.75rem, 4vw, 2.5rem);
        --spacing-3xl: 4rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    .section-padding {
        padding: var(--spacing-2xl) 0;
        min-height: auto;
    }
    
    /* Hero */
    .hero {
        height: auto;
        min-height: 80vh;
        padding: var(--spacing-3xl) 0;
    }
    
    .hero .container {
        padding: 0 var(--spacing-lg);
    }
    
    .hero-content {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* 特性卡片 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    /* 联系信息 */
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    /* 导航 */
    .nav-menu {
        position: fixed;
        top: var(--navbar-total-height);
        left: 0;
        right: 0;
        background: rgba(26, 31, 58, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--spacing-xl);
        gap: var(--spacing-md);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* 移动设备 (768px 及以下) */
@media (max-width: 768px) {
    :root {
        --h1-size: clamp(2rem, 8vw, 3rem);
        --h2-size: clamp(1.5rem, 6vw, 2rem);
        --h3-size: clamp(1.25rem, 4vw, 1.75rem);
        --spacing-2xl: 3rem;
        --spacing-3xl: 3rem;
        --navbar-height: 60px;
        --navbar-height-scrolled: 60px;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Hero */
    .hero {
        min-height: 100vh;
    }
    
    .hero .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-content {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-overline {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-xl);
    }
    
    .scroll-indicator {
        bottom: var(--spacing-xl);
    }
    
    /* 特性卡片 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    /* 产品和解决方案 */
    .products-grid, .solutions-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* 数据看板 */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .dashboard-numbers {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* 关于我们 */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    /* 联系信息 */
    .contact-preview {
        padding: var(--spacing-xl) 0;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-info-card {
        padding: var(--spacing-md);
    }
    
    /* 按钮 */
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    /* Hero 极简版移动端优化 */
    .hero-minimal {
        padding: calc(var(--navbar-total-height) + 1rem) 0 1.5rem 0;
    }
    
    .hero-minimal-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 0.5rem;
    }
    
    .hero-minimal-subtitle {
        font-size: clamp(0.875rem, 3vw, 1.125rem);
    }
    
    /* Footer 响应式 */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 0.75rem;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .logo-img {
        height: 32px;
    }
}

/* 小屏移动设备 (480px 及以下) */
@media (max-width: 480px) {
    :root {
        --h1-size: clamp(1.75rem, 10vw, 2.5rem);
        --h2-size: clamp(1.25rem, 8vw, 1.75rem);
        --h3-size: clamp(1.125rem, 6vw, 1.5rem);
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-padding {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    /* Hero */
    .hero-buttons {
        width: 100%;
    }
    
    .hero-buttons .btn {
        max-width: 100%;
        width: 100%;
    }
    
    /* 特性卡片 */
    .feature-card, .product-card, .solution-card {
        padding: 1.25rem;
    }
    
    .feature-icon svg {
        width: 36px;
        height: 36px;
    }
    
    /* 数字卡片 */
    .number-card {
        padding: var(--spacing-md);
    }
    
    .number-value {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }
    
    .number-suffix {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    /* 关于我们统计 */
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Logo */
    .logo-img, .hero-logo-img, .footer-logo-img {
        max-height: 28px;
    }
    
    .hero-logo-img {
        max-height: 80px;
    }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-2xl) 0;
    }
    
    .section-padding {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1920px) {
    .container {
        max-width: var(--container-wide);
    }
    
    :root {
        --h1-size: 6rem;
        --h2-size: 3.5rem;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .scroll-indicator,
    .hero-buttons,
    .mobile-menu-toggle,
    #custom-cursor,
    #scroll-progress {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        page-break-after: always;
    }
}

/* 降低动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    #three-hero-container {
        display: none !important;
    }
}

/* 低性能模式 */
.low-performance #three-hero-container,
.low-performance .glow-border,
.low-performance .hero-animation {
    display: none !important;
}

.low-performance .feature-card,
.low-performance .product-card,
.low-performance .solution-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}


/* Language switch (ZH/EN) */
.lang-switch {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.lang-switch .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.04);
}

.lang-switch .lang-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.lang-switch .lang-btn.active {
    border-color: var(--accent-color);
    background: rgba(100, 255, 218, 0.12);
}

.lang-switch .lang-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .lang-switch {
        margin-left: 0.75rem;
    }
    .lang-switch .lang-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 0.85rem;
    }
}

/* ============================================
   主题切换按钮
   ============================================ */
.theme-switch {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    padding: 0;
    color: var(--text-primary);
}

[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

.theme-toggle-btn:hover {
    border-color: var(--accent-color);
    background: rgba(100, 255, 218, 0.12);
    transform: translateY(-1px) scale(1.05);
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(0, 102, 204, 0.12);
}

.theme-toggle-btn:active {
    transform: translateY(0) scale(0.95);
}

.theme-toggle-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.theme-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    line-height: 1;
}

.theme-toggle-btn:hover .theme-icon {
    transform: rotate(15deg);
}

@media (max-width: 768px) {
    .theme-switch {
        margin-left: 0.75rem;
    }
    .theme-toggle-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* ============================================
   图片放大模态框
   ============================================ */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    overflow: auto;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    margin: auto;
    animation: zoomIn 0.3s ease;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(100, 255, 218, 0.2);
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
    background: rgba(100, 255, 218, 0.15);
    border-color: var(--accent-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .image-modal.active {
        padding: 1rem;
    }
    
    .image-modal-close {
        top: -40px;
        right: 0;
        font-size: 2rem;
        width: 36px;
        height: 36px;
    }
    
    .image-modal-content {
        max-width: 100%;
    }
}

/* ============================================
   浅色模式优化 - 颜色和对比度
   ============================================ */

/* 1. 按钮样式优化 */
[data-theme="light"] .btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
    background-color: #0052a3;
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.4);
    transform: translateY(-3px);
}

[data-theme="light"] .btn-outline {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

[data-theme="light"] .btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-secondary:hover {
    color: #ffffff;
}

[data-theme="light"] .btn::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* 2. 卡片组件优化 */
[data-theme="light"] .feature-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.7)
    );
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .feature-card:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.85)
    );
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 30px rgba(0, 102, 204, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .feature-card::before {
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 102, 204, 0.05),
        transparent 50%
    );
}

[data-theme="light"] .feature-card::after {
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--accent-secondary), transparent);
}

[data-theme="light"] .product-card,
[data-theme="light"] .solution-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.7)
    );
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .product-card:hover,
[data-theme="light"] .solution-card:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.85)
    );
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 30px rgba(0, 102, 204, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .product-card::before,
[data-theme="light"] .solution-card::before {
    background: radial-gradient(
        circle at 50% 0%,
        rgba(0, 102, 204, 0.03),
        transparent 70%
    );
}

/* 3. Hero区域优化 */
[data-theme="light"] .hero-overlay {
    background: radial-gradient(
        circle at 50% 50%, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.3) 100%
    );
}

[data-theme="light"] .hero-logo-img {
    filter: drop-shadow(0 0 30px rgba(0, 102, 204, 0.2));
}

[data-theme="light"] .hero-logo-img:hover {
    filter: drop-shadow(0 0 40px rgba(0, 102, 204, 0.3));
}

[data-theme="light"] .hero-minimal::before {
    background: radial-gradient(
        circle at 50% 50%,
        rgba(0, 102, 204, 0.05),
        transparent 70%
    );
}

/* 4. 选择文本和滚动条优化 */
[data-theme="light"] ::selection {
    background-color: rgba(0, 102, 204, 0.2);
    color: var(--accent-color);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* 5. 其他组件优化 */
[data-theme="light"] .section-subtitle {
    color: var(--accent-color);
}

[data-theme="light"] .bg-dark {
    background-color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .section-header.text-left::before {
    background: linear-gradient(180deg, var(--accent-color), var(--accent-secondary));
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.3);
}

/* 导航栏链接优化 */
[data-theme="light"] .nav-menu a {
    color: var(--text-light);
}

[data-theme="light"] .nav-menu a:hover,
[data-theme="light"] .nav-menu a.active {
    color: var(--accent-color);
}

/* Logo文字渐变优化 */
[data-theme="light"] .logo-text {
    background: linear-gradient(90deg, var(--text-primary), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer优化 */
[data-theme="light"] .footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-main {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* 图片模态框优化 */
[data-theme="light"] .image-modal {
    background-color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .image-modal-content img {
    border-color: rgba(0, 102, 204, 0.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .image-modal-close {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

[data-theme="light"] .image-modal-close:hover {
    background: rgba(0, 102, 204, 0.15);
    border-color: var(--accent-color);
}

/* 联系表单优化 */
[data-theme="light"] .contact-form {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* 联系详情卡片优化 */
[data-theme="light"] .contact-detail-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .contact-detail-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
}

/* 地图占位符优化 */
[data-theme="light"] .map-placeholder {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
}

/* 产品/解决方案链接优化 */
[data-theme="light"] .product-link,
[data-theme="light"] .solution-link {
    color: var(--accent-color);
}

[data-theme="light"] .product-link:hover,
[data-theme="light"] .solution-link:hover {
    color: #0052a3;
}

/* 滚动指示器优化 */
[data-theme="light"] .scroll-indicator {
    color: var(--text-dark);
}

[data-theme="light"] .scroll-indicator:hover {
    color: var(--accent-color);
}

/* 页面头部优化 */
[data-theme="light"] .page-header::before {
    background-image: radial-gradient(circle at 80% 20%, rgba(0, 102, 204, 0.05), transparent 40%);
}

/* 解决方案/产品详情页优化 */
[data-theme="light"] .solution-badge,
[data-theme="light"] .product-badge {
    background: rgba(0, 102, 204, 0.1);
    color: var(--accent-color);
    border-color: rgba(0, 102, 204, 0.2);
}
