/* ==================== 全局变量 & 基础重置 ==================== */
:root {
    --bg-deep: #050b14;
    --bg-card: rgba(15, 23, 42, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --border-soft: #334155;
    --border-glow: rgba(56, 189, 248, 0.25);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-blue: #38bdf8;
    --accent-purple: #a855f7;
    --gradient-hero: linear-gradient(135deg, #38bdf8, #a855f7);
    --gradient-subtle: linear-gradient(145deg, #0f172a, #020617);
    --radius-xl: 28px;
    --radius-2xl: 48px;
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* ==================== 导航栏 ==================== */
header {
    background: rgba(5, 11, 20, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-glow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 0;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-accent {
    color: var(--accent-blue);
    -webkit-text-fill-color: var(--accent-blue);
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    margin-top: 2px;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5e1;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.25s;
    box-shadow: var(--shadow-glow);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: #cbd5e1;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle--active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle--active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle--active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==================== 首屏 Hero ==================== */
.hero-section {
    padding: 70px 0 50px;
    overflow: hidden;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero-chip {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 0.8rem;
    color: var(--accent-blue);
    margin-bottom: 24px;
}

.hero-heading {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #f0f9ff;
}

.hero-highlight {
    background: linear-gradient(to right, #bae6fd, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-metrics {
    display: flex;
    gap: 30px;
}

.metric {
    border-left: 2px solid var(--accent-blue);
    padding-left: 16px;
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 按钮系统 */
.btn-glow {
    background: var(--gradient-hero);
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    display: inline-block;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.45);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--accent-blue);
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
}

.btn-ghost:hover {
    background: var(--accent-blue);
    color: #0f172a;
}

.btn-ghost-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-ghost-light:hover {
    background: rgba(255,255,255,0.1);
}

/* 生态架构图 */
.hero-arch {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: radial-gradient(circle at 30% 50%, rgba(56,189,248,0.08), transparent 70%);
    padding: 28px;
    border-radius: var(--radius-2xl);
}

.arch-layer {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.arch-layer-top .arch-card,
.arch-layer-bottom .arch-card {
    background: var(--bg-card);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.arch-layer-mid .arch-card {
    background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(168,85,247,0.15));
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 18px rgba(56,189,248,0.25);
}

.arch-card strong {
    font-size: 0.95rem;
    color: white;
    margin-top: 6px;
}

.arch-card small {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

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

.arch-label {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    margin-top: 4px;
}

.arch-connector {
    display: flex;
    justify-content: center;
    height: 30px;
}

/* ==================== 通用区块 ==================== */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--gradient-subtle);
    border-radius: var(--radius-2xl);
    margin: 30px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 44px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(to right, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 三大核心模块卡片 */
.triple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.triple-card {
    background: var(--bg-card);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}

.triple-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
    opacity: 0;
    transition: opacity 0.3s;
}

.triple-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    box-shadow: 0 16px 30px -10px rgba(0,0,0,0.6);
}

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

.triple-card-featured {
    border-color: var(--accent-purple);
}

.triple-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 40px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.triple-icon-wrap {
    margin-bottom: 16px;
}

.triple-icon {
    font-size: 2.8rem;
}

.triple-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 12px;
}

.triple-card p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
}

.triple-feats {
    list-style: none;
    margin-bottom: 24px;
}

.triple-feats li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.triple-feats li::before {
    content: "▹";
    color: var(--accent-blue);
}

.triple-link {
    font-weight: 600;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.triple-link:hover {
    gap: 8px;
}

/* 使用场景网格 */
.scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.scene-card {
    background: rgba(5, 11, 20, 0.5);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 24px 18px;
    text-align: center;
    transition: all 0.25s;
    position: relative;
}

.scene-card:hover {
    border-color: var(--accent-blue);
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-4px);
}

.scene-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 12px;
}

.scene-card h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 8px;
}

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

.scene-tag {
    display: inline-block;
    background: var(--accent-purple);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 30px;
    margin-top: 10px;
    letter-spacing: 0.4px;
}

/* 对比表格 */
.compare-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.compare-table th {
    background: #1e293b;
    padding: 16px 20px;
    font-weight: 700;
    text-align: left;
    color: white;
    font-size: 0.95rem;
}

.compare-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.col-highlight {
    background: rgba(56, 189, 248, 0.08);
    color: white !important;
    font-weight: 600;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-note {
    text-align: center;
    background: rgba(56, 189, 248, 0.1);
    padding: 14px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

/* 快速上手步骤 */
.quick-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.quick-step {
    flex: 1;
    min-width: 220px;
    background: rgba(5, 11, 20, 0.7);
    border-radius: 24px;
    padding: 28px 22px;
    text-align: center;
    border: 1px solid var(--border-soft);
    transition: border-color 0.3s;
}

.quick-step:hover {
    border-color: var(--accent-blue);
}

.quick-num {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 12px;
}

.quick-step h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 8px;
}

.quick-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.quick-link {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 0.9rem;
}

.quick-arrow {
    font-size: 2rem;
    color: var(--accent-purple);
    display: none; /* 移动端隐藏箭头，桌面显示 */
}

@media (min-width: 769px) {
    .quick-arrow {
        display: block;
    }
}

/* ==================== CTA 号召区域 ==================== */
.cta-banner {
    position: relative;
    background: linear-gradient(135deg, #0b1622 0%, #1a1040 100%);
    border-radius: var(--radius-2xl);
    margin: 60px 0 40px;
    overflow: hidden;
    padding: 60px 0;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    position: relative;
    z-index: 2;
}

.cta-text h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 12px;
}

.cta-text p {
    color: #cbd5e1;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-glow-lg {
    padding: 14px 36px;
    font-size: 1.1rem;
}

/* 装饰浮动光点 */
.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cta-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-blue);
    opacity: 0.15;
    filter: blur(30px);
}

.cta-dot-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -40px;
}

.cta-dot-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: 10%;
    background: var(--accent-purple);
}

.cta-dot-3 {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 55%;
}

/* ==================== 页脚 ==================== */
footer {
    background: #020617;
    border-top: 1px solid #1e293b;
    padding: 56px 0 28px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: #f1f5f9;
    margin-bottom: 18px;
    font-size: 1rem;
    font-weight: 700;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}

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

.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    color: #475569;
    font-size: 0.8rem;
    border-top: 1px solid #1e293b;
    margin-top: 36px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(5,11,20,0.98);
        backdrop-filter: blur(20px);
        margin-top: 16px;
        padding: 16px 0;
        gap: 12px;
        border-radius: 16px;
    }

    .nav-menu--open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-heading {
        font-size: 2.3rem;
    }

    .hero-grid {
        flex-direction: column;
        text-align: center;
    }

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

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-arch {
        width: 100%;
        padding: 18px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .triple-grid,
    .scene-grid {
        grid-template-columns: 1fr;
    }

    .quick-row {
        flex-direction: column;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}