/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ===== 基础（双主题共用） ===== */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);

    /* ===== 品牌色（双主题共用，浅色下略深以保证对比度） ===== */
    --color-primary: #00b4d8;
    --color-primary-light: #4dd6f5;
    --color-primary-dark: #0096b3;
    --color-accent: #f7b500;
    --gradient-primary: linear-gradient(135deg, #00b4d8 0%, #0066ff 100%);
    --gradient-text: linear-gradient(135deg, #00d4ff 0%, #4d9aff 100%);

    /* ===== 沿用变量（保持旧规则兼容，随主题切换取值） ===== */
    --color-bg-dark: #0a1628;
    --color-bg-dark-2: #0f1f3a;
    --color-bg-dark-accent: #0d1b30;
    --color-bg-light: #0f1f3a;
    --color-bg-light-2: #101f38;
    --color-white: #ffffff;
    --white-surface: #ffffff;
    --color-text: #ffffff;
    --color-text-light: #ffffff;
    --color-text-muted: #8a9bb4;
    --color-text-muted-dark: #8a9bb4;
    --color-border: #21385b;
    --color-border-dark: #1a2a44;
    --gradient-dark: linear-gradient(180deg, #0a1628 0%, #0f1f3a 100%);
    --gradient-hero: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-dark-2) 100%);

    /* ===== 语义化主题变量（深色默认） ===== */
    --bg: #0a1628;
    --surface: rgba(255,255,255,0.05);
    --surface-2: rgba(255,255,255,0.06);
    --text-2: rgba(255,255,255,0.72);
    --text-muted-2: rgba(255,255,255,0.5);
    --border-soft: rgba(255,255,255,0.10);
    --border-strong: rgba(255,255,255,0.22);
    --on-primary: #ffffff;

    /* ===== 区块明暗层次（深色：三档拉开，滚动时能看出分界） ===== */
    --section-a: #0a1628;   /* 最深 —— .section-dark（产品 / 关于） */
    --section-c: #0d1b30;   /* 中间 —— .section-dark-accent（行业，夹在亮区之间当"凹槽"） */
    --section-b: #112645;   /* 最亮 —— .section-light（技术 / 优势 / 联系） */

    /* ===== 卡片层次（深色下靠轻外阴影把卡片从区块底托起来） ===== */
    --card-shadow: 0 2px 8px rgba(0,0,0,0.26), 0 14px 34px -20px rgba(0,0,0,0.60);
    --nav-bg: rgba(10,22,40,0.92);
    --nav-bg-mobile: rgba(10,22,40,0.98);
    --hero-overlay: radial-gradient(ellipse at center, transparent 0%, rgba(10,22,40,0.7) 70%, #0a1628 100%);
    --viewport-bg: radial-gradient(circle at 50% 30%, #14305a 0%, #0a1628 70%);
    --viewport-tip: rgba(255,255,255,0.85);
    --log-bg: #0a1628;
    --log-text: #b9c6dc;
    --code-bg: #0a1628;
    --modal-overlay: rgba(10,22,40,0.55);
    --chip-bg: rgba(0,180,216,0.12);
    --chip-text: #4dd6f5;
    --shadow-glow: 0 0 40px rgba(0,180,216,0.3);

    /* 试用工作台（深色） */
    --ws-bg: #0a1628;
    --panel-bg: #101f38;
    --panel-head-bg: #16294a;
    --panel-head-text: #d3e3f7;
    --panel-border: #21385b;
    --panel-text: #d6e2f2;
    --panel-text-muted: #8a9bb4;
    --tab-inactive-bg: #0c1830;
    --tree-active-text: #f2c14e;
    --fn-text: #6fd6ee;
    --msg-err-text: #ffb4ad; --msg-err-bg: rgba(192,57,43,0.2); --msg-err-border: rgba(224,122,122,0.5);
    --msg-ok-text: #8fe3b0;  --msg-ok-bg: rgba(26,127,75,0.2);  --msg-ok-border: rgba(110,231,168,0.45);
}

/* ===== 浅色（白天）主题 ===== */
[data-theme="light"] {
    --color-bg-dark: #eef2f8;
    --color-bg-dark-2: #e6edf5;
    --color-bg-dark-accent: #e9eff6;
    --color-bg-light: #f5f8fc;
    --color-bg-light-2: #ffffff;
    --color-white: #ffffff;
    --white-surface: #ffffff;
    --color-text: #0f2742;
    --color-text-light: #0f2742;
    --color-text-muted: #5b6b7e;
    --color-text-muted-dark: #5b6b7e;
    --color-border: #e3eaf2;
    --color-border-dark: #d8e2ee;
    --gradient-dark: linear-gradient(180deg, #0a1628 0%, #0f1f3a 100%);
    --gradient-hero: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-dark-2) 100%);

    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #eef3f9;
    --text-2: #44566c;
    --text-muted-2: #6c7a8c;
    --border-soft: #dbe4ee;
    --border-strong: #c2d0de;

    /* 区块层次 / 卡片阴影：浅色保持原样（阴影透明 = 视觉上等同无阴影） */
    --section-a: #eef2f8;
    --section-c: #e9eff6;
    --section-b: #f5f8fc;
    --card-shadow: 0 0 0 rgba(0,0,0,0);
    --nav-bg: rgba(255,255,255,0.88);
    --nav-bg-mobile: rgba(255,255,255,0.97);
    --hero-overlay: radial-gradient(ellipse at center, var(--border-strong) 0%, rgba(244,247,251,0.55) 70%, #f4f7fb 100%);
    --viewport-bg: radial-gradient(circle at 50% 30%, #d8e7f2 0%, #c3d4e4 70%);
    --viewport-tip: rgba(15,39,66,0.85);
    --log-bg: #f6f8fa;
    --log-text: #33465c;
    --code-bg: #f6f8fa;
    --modal-overlay: rgba(15,30,50,0.45);
    --chip-bg: rgba(0,150,179,0.12);
    --chip-text: #0077a3;
    --shadow-glow: 0 0 36px rgba(0,150,179,0.22);

    /* 试用工作台（浅色） */
    --ws-bg: #f4f7fb;
    --panel-bg: #ffffff;
    --panel-head-bg: #eef3f9;
    --panel-head-text: #0f2742;
    --panel-border: #e3eaf2;
    --panel-text: #22344a;
    --panel-text-muted: #5b6b7e;
    --tab-inactive-bg: #eef3f9;
    --tree-active-text: #8a5b00;
    --fn-text: #0077a3;
    --msg-err-text: #b42318; --msg-err-bg: #fdecec; --msg-err-border: #f5c2c0;
    --msg-ok-text: #1a7f4b;  --msg-ok-bg: #e7f7ee;  --msg-ok-border: #b6e6cb;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    overflow-x: hidden;
    background: var(--bg);
    transition: background var(--transition), color var(--transition);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0,180,216,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,180,216,0.5);
}

.btn-ghost {
    background: var(--border-soft);
    color: var(--color-text-light);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: var(--surface-2);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-outline-sm {
    padding: 9px 22px;
    font-size: 14px;
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
}
.btn-outline-sm:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary-sm {
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,180,216,0.4);
}
.btn-ghost-sm {
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    background: var(--surface);
    color: var(--color-text);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
}
.btn-ghost-sm:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
    background: rgba(0,180,216,0.06);
}

.btn-full {
    width: 100%;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
}
.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--color-primary);
}
.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.logo-sub {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    opacity: 0.5;
    margin-left: 6px;
}

.nav-menu {
    display: flex;
    gap: 36px;
    align-items: center;
}
.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}
.nav-link:hover,
.nav-link.active {
    color: var(--color-text-light);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.nav-cta { margin-left: 16px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-light);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Theme Toggle（白天/夜晚切换） ===== */
.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-left: 10px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: var(--surface-2);
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}
.theme-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}
.theme-toggle .tt-icon {
    width: 19px;
    height: 19px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.theme-toggle .tt-sun  { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .tt-moon { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .theme-toggle .tt-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .theme-toggle .tt-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* 主题切换的平滑过渡 */
.section, .navbar, .footer, .panel, .product-card, .tech-item, .industry-card,
.advantage-item, .contact-info-item, .contact-form-wrap, .modal, .modal-overlay,
.capability-item, .adv-card, .scenario-card, .doc-card, .case-card, .download-card {
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    overflow: hidden;
}
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
    animation: fadeInUp 1s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(0,180,216,0.1);
    border: 1px solid rgba(0,180,216,0.3);
    border-radius: 100px;
    font-size: 14px;
    color: var(--color-primary-light);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,180,216,0.7); }
    50% { box-shadow: 0 0 0 8px rgba(0,180,216,0); }
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text-light);
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-2);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.stat-item {
    text-align: center;
}
.stat-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-primary-light);
    line-height: 1;
}
.stat-unit {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
}
.stat-item p {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 8px;
    letter-spacing: 1px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-soft);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-strong);
    border-radius: 12px;
    display: flex;
    justify-content: center;
}
.scroll-indicator span {
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    margin-top: 6px;
    animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
    0% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
    position: relative;
}
.section-dark {
    background: var(--section-a);
    color: var(--color-text-light);
}
.section-dark-accent {
    background: var(--section-c);
    color: var(--color-text-light);
}
.section-light {
    background: var(--section-b);
    color: var(--color-text);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
}
.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.section-desc {
    font-size: 17px;
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.8;
}
.section-dark .section-desc,
.section-dark-accent .section-desc {
    color: var(--color-text-muted-dark);
}

/* ===== Products ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.product-card:hover {
    background: rgba(0,180,216,0.05);
    border-color: rgba(0,180,216,0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.product-card:hover::before {
    transform: scaleX(1);
}
.product-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--color-primary);
}
.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-light);
}
.product-card > p {
    font-size: 14px;
    color: var(--color-text-muted-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}
.product-features {
    margin-bottom: 24px;
}
.product-features li {
    font-size: 13px;
    color: var(--text-2);
    padding: 6px 0;
    padding-left: 18px;
    position: relative;
    border-bottom: 1px solid var(--border-soft);
}
.product-features li:last-child { border-bottom: none; }
.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.6;
}
.product-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-light);
    transition: var(--transition);
}
.product-link:hover {
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

/* ===== Technology ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.tech-item {
    padding: 36px 28px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    position: relative;
}
.tech-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transition: height 0.3s ease;
    opacity: 0;
}
.tech-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.tech-item:hover::after {
    height: 4px;
    opacity: 1;
}
.tech-icon-wrap {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    color: var(--color-primary);
    background: rgba(0,180,216,0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: var(--transition);
}
.tech-item:hover .tech-icon-wrap {
    background: var(--gradient-primary);
    color: var(--color-white);
}
.tech-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.tech-item p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ===== Industries ===== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.industry-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.industry-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,180,216,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.industry-card:hover {
    border-color: rgba(0,180,216,0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.industry-card:hover::before { opacity: 1; }
.industry-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
}
.industry-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}
.industry-card p {
    font-size: 14px;
    color: var(--color-text-muted-dark);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ===== Advantages ===== */
.advantage-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.advantage-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.advantage-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: var(--surface);
    cursor: pointer;
    transition: var(--transition);
}
.advantage-item:hover,
.advantage-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(0,180,216,0.1);
    transform: translateX(4px);
}
.advantage-item.active {
    background: linear-gradient(135deg, rgba(0,180,216,0.04) 0%, rgba(0,102,255,0.02) 100%);
}
.adv-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
}
.advantage-item.active .adv-number { opacity: 1; }
.adv-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.adv-content p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Code Visual */
.advantage-visual { position: sticky; top: 100px; }
.visual-card {
    background: var(--code-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow), var(--shadow-lg);
    border: 1px solid var(--border-soft);
}
.visual-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.visual-title {
    margin-left: 12px;
    font-size: 13px;
    color: var(--text-muted-2);
    font-family: 'Menlo', monospace;
}
.visual-body {
    padding: 24px;
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-2);
}
.code-line { min-height: 1.8em; }
.code-line.indent { padding-left: 20px; }
.code-line.indent2 { padding-left: 40px; }
.code-line.indent3 { padding-left: 60px; }
.code-keyword { color: #ff7b72; }
.code-class { color: #79c0ff; }
.code-fn { color: #d2a8ff; }
.code-string { color: #a5d6ff; }
.code-comment { color: #7b8ca6; font-style: italic; }
.code-var { color: #ffa657; }
/* 浅色主题：代码块底色转浅，语法高亮改用深色可读配色（GitHub Light 风格） */
[data-theme="light"] .code-keyword { color: #cf222e; }
[data-theme="light"] .code-class { color: #0550ae; }
[data-theme="light"] .code-fn { color: #8250df; }
[data-theme="light"] .code-string { color: #0a3069; }
[data-theme="light"] .code-comment { color: #6e7781; }
[data-theme="light"] .code-var { color: #953800; }

/* ===== About ===== */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text .section-title {
    text-align: left;
}
.about-text .section-tag {
    margin-bottom: 12px;
}
.about-desc {
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text-muted-dark);
    margin-bottom: 16px;
}
.about-highlights {
    display: flex;
    gap: 24px;
    margin: 32px 0;
    flex-wrap: wrap;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-2);
}
.highlight-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
}
.about-stat {
    text-align: center;
}
.about-stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary-light);
    line-height: 1;
}
.about-stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}
.about-stat p {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 8px;
}

.about-timeline {
    position: relative;
    padding-left: 24px;
}
.about-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary) 0%, transparent 100%);
}
.timeline-item {
    position: relative;
    padding-bottom: 28px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0,180,216,0.15);
}
.timeline-year {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-bottom: 4px;
}
.timeline-item p {
    font-size: 14px;
    color: var(--text-2);
}

/* ===== Contact ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}
.contact-info-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0,180,216,0.08);
}
.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--color-primary);
    background: rgba(0,180,216,0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.contact-info-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.contact-info-item p {
    font-size: 15px;
    color: var(--color-text-muted);
}

.contact-form-wrap {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--card-shadow), var(--shadow-md);
    border: 1px solid var(--border-soft);
}
.contact-form h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}
.form-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-group label span {
    color: #e74c3c;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: var(--color-bg-light);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,180,216,0.1);
    background: var(--surface);
}
.form-group textarea {
    resize: vertical;
}
.form-note {
    text-align: center;
    font-size: 14px;
    margin-top: 12px;
    min-height: 20px;
}
.form-note.success { color: #27ae60; }
.form-note.error { color: #e74c3c; }

/* ===== Footer ===== */
.footer {
    background: var(--color-bg-dark);
    color: var(--text-2);
    padding: 60px 0 24px;
    border-top: 1px solid var(--border-soft);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}
.footer-brand p {
    font-size: 14px;
    margin-top: 16px;
    max-width: 300px;
    line-height: 1.7;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
    font-size: 18px;
    font-weight: 700;
}
.footer-logo .logo-icon {
    color: var(--color-primary);
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 16px;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    font-size: 14px;
    color: var(--text-2);
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid var(--border-soft);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted-2);
}
.footer-icp {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted-2);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,180,216,0.4);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-4px);
}

/* ===== Animations ===== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0,0) scale(1);
}

/* ===== 卡片层次统一 =====
   深色下卡片底色只有 5% 白，仅靠 1px 边框很难从区块底"浮"起来，
   这里统一补一层极轻外阴影；浅色下 --card-shadow 为全透明，视觉零变化。
   .visual-card / .contact-form-wrap 本身已有阴影，不在此列。 */
.product-card,
.tech-item,
.industry-card,
.advantage-item,
.about-stats-grid,
.contact-info-item {
    box-shadow: var(--card-shadow);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 48px; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--nav-bg-mobile);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px;
        gap: 0;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-soft);
    }
    .nav-menu.active { right: 0; }
    .nav-menu li { width: 100%; }
    .nav-link {
        display: block;
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--border-soft);
    }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }

    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 15px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .stat-divider { display: none; }
    .stat-num { font-size: 32px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; }

    .section { padding: 64px 0; }
    .section-title { font-size: 28px; }
    .section-desc { font-size: 15px; }

    .products-grid,
    .tech-grid,
    .industries-grid { grid-template-columns: 1fr; }

    .advantage-layout,
    .about-layout,
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .advantage-visual { position: static; }

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

    .form-row { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .contact-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .hero-badge { font-size: 12px; }
    .section-title { font-size: 24px; }
    .about-stats-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
}
