/* ===== 设计变量 ===== */
:root {
    --color-bg: #f4f6fa;
    --color-surface: #ffffff;
    --color-text: #1a1d26;
    --color-text-secondary: #5a5e6b;
    --color-primary: #0a2647;
    --color-primary-light: #144272;
    --color-accent: #e87c2b;
    --color-accent-hover: #d46a1e;
    --color-border: #dfe3ea;
    --color-block-alt: #eef2f9;
    --color-success: #2a9d5c;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
    --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-card: 0 2px 12px rgba(10, 38, 71, 0.08);
    --shadow-elevated: 0 8px 32px rgba(10, 38, 71, 0.12);
    --max-width: 1200px;
}

/* ===== 基础重置与排版 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-accent-hover); }
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--color-primary); }
h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw + 0.3rem, 1.4rem); }
p { margin-bottom: 1em; }
ul, ol { padding-left: 1.5em; }
ul { list-style-type: disc; }
li { margin-bottom: 0.4em; }

/* ===== 布局容器 ===== */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--color-block-alt); }
.section-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: block;
}

/* ===== 页头 ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 32px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.1rem; color: var(--color-primary); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
    font-size: 0.95rem; color: var(--color-text-secondary);
    font-weight: 500; position: relative; padding: 0.25rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-primary); }
.nav a[aria-current="page"]::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--color-accent); border-radius: 1px;
}
.nav-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1.2rem; background: var(--color-accent);
    color: #fff !important; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.15s ease;
}
.nav-btn:hover { background: var(--color-accent-hover); transform: translateY(-1px); }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.85rem 2rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 1rem; cursor: pointer;
    border: none; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary {
    background: var(--color-accent); color: #fff;
    box-shadow: 0 2px 8px rgba(232, 124, 43, 0.3);
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(232, 124, 43, 0.4); }
.btn-outline {
    background: transparent; color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* ===== Hero ===== */
.hero {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: linear-gradient(175deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff; overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero-desc { font-size: 1.1rem; line-height: 1.7; opacity: 0.9; margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-svg { width: 100%; max-width: 500px; }

/* ===== 通用卡片 ===== */
.card {
    background: var(--color-surface); border-radius: var(--radius-md);
    padding: 2rem; box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.card-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }

/* ===== 网格 ===== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* ===== 核心功能 ===== */
.feature-item { display: flex; gap: 1.2rem; }
.feature-item .card { flex: 1; padding: 1.5rem; }
.feature-num {
    font-family: var(--font-mono); font-size: 0.85rem;
    color: var(--color-accent); font-weight: 700; min-width: 24px;
}

/* ===== 界面示意 ===== */
.mockup-frame {
    background: var(--color-surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated); overflow: hidden;
    border: 1px solid var(--color-border);
}
.mockup-bar {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1rem; background: var(--color-primary);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #28c840; }
.mockup-body { padding: 1.5rem; }

/* ===== 场景卡片 ===== */
.scene-card { position: relative; }
.scene-step {
    display: flex; gap: 0.8rem; margin-bottom: 0.8rem;
}
.scene-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.scene-step p { margin: 0; font-size: 0.95rem; }

/* ===== 表格 ===== */
.platform-table {
    width: 100%; border-collapse: collapse; background: var(--color-surface);
    border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-card);
}
.platform-table th, .platform-table td {
    padding: 1rem 1.2rem; text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.platform-table th {
    background: var(--color-primary); color: #fff;
    font-weight: 600; font-size: 0.95rem;
}
.platform-table tr:last-child td { border-bottom: none; }
.platform-table tr:hover td { background: var(--color-block-alt); }

/* ===== FAQ ===== */
.faq-item {
    background: var(--color-surface); border-radius: var(--radius-md);
    margin-bottom: 0.75rem; box-shadow: var(--shadow-card);
    overflow: hidden;
}
.faq-item summary {
    padding: 1.2rem 1.5rem; cursor: pointer;
    font-weight: 600; font-size: 1rem; color: var(--color-primary);
    list-style: none; display: flex; align-items: center; justify-content: space-between;
    transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--color-block-alt); }
.faq-item summary::marker { display: none; }
.faq-item summary::after {
    content: '+'; font-size: 1.4rem; font-weight: 300;
    color: var(--color-accent); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer {
    padding: 0 1.5rem 1.2rem; color: var(--color-text-secondary);
    font-size: 0.95rem; line-height: 1.7;
}

/* ===== 文章卡片 ===== */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-card .news-date {
    font-family: var(--font-mono); font-size: 0.8rem;
    color: var(--color-text-secondary); margin-bottom: 0.5rem;
}
.news-card h4 { margin-bottom: 0.5rem; }
.news-card .news-excerpt { flex: 1; color: var(--color-text-secondary); font-size: 0.95rem; margin-bottom: 1rem; }
.news-card .btn-link { align-self: flex-start; font-size: 0.9rem; font-weight: 600; }

/* ===== 阅读链接 ===== */
.read-links { display: flex; flex-direction: column; gap: 0.6rem; }
.read-link {
    display: flex; align-items: baseline; gap: 0.8rem;
    padding: 0.75rem 1rem; background: var(--color-surface);
    border-radius: var(--radius-sm); transition: background 0.15s;
}
.read-link:hover { background: var(--color-block-alt); }
.read-link .link-title { font-weight: 600; font-size: 0.95rem; color: var(--color-primary); }
.read-link .link-desc { font-size: 0.85rem; color: var(--color-text-secondary); }

/* ===== 下载区块 ===== */
.download-section { background: var(--color-primary); color: #fff; }
.download-section h2, .download-section h3 { color: #fff; }
.download-section p { opacity: 0.9; }
.download-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.download-actions .btn-primary { font-size: 1.1rem; padding: 1rem 2.5rem; }
.install-steps { counter-reset: step; }
.install-steps li {
    counter-increment: step;
    position: relative; padding-left: 2.5rem; margin-bottom: 1rem;
}
.install-steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--color-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
}

/* ===== 页脚 ===== */
.site-footer {
    background: var(--color-primary); color: rgba(255,255,255,0.7);
    padding: 3rem 0 2rem;
}
.footer-inner {
    display: flex; flex-wrap: wrap; gap: 2rem;
    justify-content: space-between; align-items: flex-start;
    padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.8rem; }
.footer-col a { display: block; font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    padding-top: 1.5rem; font-size: 0.85rem;
}

/* ===== SVG 动效 ===== */
@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes floatUpSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes floatSide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}
@keyframes pulseOpacity {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
@keyframes strokeDraw {
    0% { stroke-dashoffset: 1; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 1; }
}
@keyframes gentleRotate {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.animate-float-1 { animation: floatUp 6s ease-in-out infinite; }
.animate-float-2 { animation: floatUpSlow 8s ease-in-out infinite 1s; }
.animate-float-3 { animation: floatUp 7s ease-in-out infinite 2s; }
.animate-side { animation: floatSide 5s ease-in-out infinite; }
.animate-pulse { animation: pulseOpacity 4s ease-in-out infinite; }
.animate-draw { animation: strokeDraw 3s ease-in-out infinite; }
.animate-rotate { animation: gentleRotate 6s ease-in-out infinite; }

/* 描边路径默认状态 */
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-float-1, .animate-float-2, .animate-float-3,
    .animate-side, .animate-pulse, .animate-draw, .animate-rotate {
        animation: none !important;
    }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-svg { max-width: 360px; margin: 0 auto; }
    .nav { gap: 1rem; }
}
@media (max-width: 640px) {
    .platform-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .platform-table::-webkit-scrollbar { height: 6px; }
    .platform-table::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
    .platform-table thead, .platform-table tbody {
        display: table;
        width: 100%;
        min-width: 480px;
    }
    .platform-table th, .platform-table td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        white-space: normal;
    }
}
@media (max-width: 600px) {
    .header-inner { height: 56px; }
    .nav { gap: 0.6rem; }
    .nav-btn span { display: none; }
    .footer-inner { flex-direction: column; }
}
