/* ===== 基础变量与重置 ===== */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-soft: #d1fae5;
    --primary-light: #ecfdf5;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 15px -3px rgba(5,150,105,0.08), 0 4px 6px -4px rgba(5,150,105,0.04);
    --transition: 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    color: var(--slate-800);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* ===== 头部导航 ===== */
header {
    position: sticky; top: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-300);
    z-index: 1000;
}
.header-box {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; gap: 20px;
}
.brand-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--slate-900);
    font-weight: 700; font-size: 1.35rem; letter-spacing: -0.3px; white-space: nowrap;
}
.brand-logo img { width: 36px; height: 36px; }
nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
nav a {
    text-decoration: none; color: var(--slate-700);
    font-size: 0.95rem; font-weight: 500; transition: color var(--transition); white-space: nowrap;
}
nav a:hover { color: var(--primary-dark); }
nav a.current-tab {
    color: var(--primary); font-weight: 600;
    border-bottom: 2px solid var(--primary); padding-bottom: 4px;
}
.nav-accent {
    background-color: var(--primary); color: white !important;
    padding: 8px 18px; border-radius: 20px; font-size: 0.9rem;
    transition: background-color var(--transition);
}
.nav-accent:hover { background-color: var(--primary-dark); color: white !important; }

/* ===== Hero 区域 ===== */
.hero-section { padding: 70px 24px 60px; text-align: center; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.hero-wrapper { max-width: 880px; margin: 0 auto; }
.hero-badge {
    display: inline-block; background: var(--primary-soft); color: var(--primary-dark);
    font-size: 0.85rem; font-weight: 600; padding: 6px 18px; border-radius: 20px;
    margin-bottom: 24px; letter-spacing: 0.3px;
}
.hero-wrapper h1 {
    font-size: clamp(2rem, 5vw, 2.8rem); color: var(--slate-900);
    line-height: 1.3; margin-bottom: 20px; letter-spacing: -0.6px;
}
.hero-desc { font-size: 1.15rem; color: var(--slate-500); max-width: 700px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
    background: var(--primary); color: white; padding: 14px 32px; border-radius: 40px;
    font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
    transition: background var(--transition), transform 0.15s ease;
    box-shadow: 0 4px 6px rgba(16,185,129,0.25);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline {
    background: transparent; color: var(--slate-800); padding: 14px 32px; border-radius: 40px;
    font-weight: 600; text-decoration: none; border: 1.5px solid var(--slate-300);
    transition: border-color var(--transition), color var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-item strong { font-size: 1.8rem; color: var(--primary); font-weight: 800; line-height: 1.2; }
.stat-item span { font-size: 0.9rem; color: var(--slate-500); margin-top: 4px; }

/* ===== 通用区块 ===== */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
section h2 {
    font-size: 2rem; color: var(--slate-900); margin-bottom: 16px;
    letter-spacing: -0.4px; text-align: center; position: relative;
}
section h2::after { content: ''; display: block; width: 50px; height: 4px; background: var(--primary); margin: 16px auto 0; border-radius: 2px; }
.section-lead { text-align: center; color: var(--slate-500); font-size: 1.1rem; max-width: 650px; margin: 0 auto 48px; line-height: 1.6; }
.center-btn { display: table; margin: 0 auto; }

/* ===== 核心亮点网格 ===== */
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.highlight-card {
    background: var(--white); border: 1px solid var(--slate-300);
    border-radius: var(--radius-lg); padding: 32px 24px; text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}
.highlight-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.highlight-icon { font-size: 2.4rem; margin-bottom: 12px; display: block; }
.highlight-card h3 { font-size: 1.2rem; color: var(--slate-800); margin-bottom: 8px; }
.highlight-card p { font-size: 0.95rem; color: var(--slate-500); line-height: 1.6; }

/* ===== 下载向导 ===== */
.section-download-wizard { background: var(--slate-100); }
.wizard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-bottom: 24px; }
.wizard-card {
    background: var(--white); border: 1px solid var(--slate-300); border-radius: var(--radius-lg);
    padding: 24px 16px; text-align: center; transition: box-shadow var(--transition);
}
.wizard-card:hover { box-shadow: var(--shadow-hover); }
.wizard-os { font-size: 1.3rem; font-weight: 700; display: block; margin-bottom: 8px; color: var(--slate-800); }
.wizard-card p { font-size: 0.85rem; color: var(--slate-500); margin-bottom: 16px; }
.wizard-link { color: var(--primary); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.wizard-link:hover { text-decoration: underline; }
.section-note { text-align: center; font-size: 0.9rem; color: var(--slate-500); }
.section-note a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* ===== 时间线 ===== */
.timeline { max-width: 700px; margin: 0 auto 32px; position: relative; padding-left: 40px; }
.timeline::before {
    content: ''; position: absolute; left: 18px; top: 8px; bottom: 8px;
    width: 2px; background: var(--slate-300);
}
.timeline-item { display: flex; gap: 20px; margin-bottom: 32px; position: relative; }
.timeline-marker {
    width: 38px; height: 38px; background: var(--primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; flex-shrink: 0; position: absolute; left: -40px; top: 0;
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.timeline-content { background: var(--white); border: 1px solid var(--slate-300); border-radius: var(--radius-md); padding: 20px; width: 100%; }
.timeline-content h3 { font-size: 1.1rem; color: var(--slate-800); margin-bottom: 6px; }
.timeline-content p { font-size: 0.9rem; color: var(--slate-500); line-height: 1.6; }

/* ===== 对比表格 ===== */
.table-responsive { overflow-x: auto; margin-bottom: 16px; }
.comparison-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.comparison-table th, .comparison-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--slate-300); font-size: 0.95rem; }
.comparison-table th { background: var(--slate-100); font-weight: 700; color: var(--slate-800); }
.comparison-table .yes { color: var(--primary-dark); font-weight: 600; }
.comparison-table .partial { color: #d97706; font-weight: 600; }
.comparison-table .no { color: #ef4444; font-weight: 600; }

/* ===== 内嵌FAQ ===== */
.inline-faq-grid { max-width: 800px; margin: 0 auto 32px; }
.faq-detail { border: 1px solid var(--slate-300); border-radius: var(--radius-md); margin-bottom: 12px; background: var(--white); }
.faq-detail summary { padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--slate-800); }
.faq-detail summary::-webkit-details-marker { display: none; }
.faq-detail summary::after { content: '▸'; font-size: 1.2rem; transition: transform 0.2s; color: var(--slate-500); }
.faq-detail[open] summary::after { transform: rotate(90deg); }
.faq-answer { padding: 0 22px 18px; font-size: 0.95rem; color: var(--slate-500); line-height: 1.6; }
.faq-answer a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* ===== 社区区块 ===== */
.section-community { background: var(--slate-100); }
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.community-card {
    background: var(--white); border: 1px solid var(--slate-300); border-radius: var(--radius-lg);
    padding: 28px 22px; text-align: center; transition: box-shadow var(--transition);
}
.community-card:hover { box-shadow: var(--shadow-hover); }
.community-card h3 { font-size: 1.2rem; color: var(--slate-800); margin-bottom: 10px; }
.community-card p { font-size: 0.9rem; color: var(--slate-500); margin-bottom: 16px; }
.community-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.community-link:hover { text-decoration: underline; }

/* ===== 底部 ===== */
footer { background: var(--slate-900); color: #94a3b8; padding: 60px 24px 30px; border-top: 4px solid var(--primary); }
.footer-wrapper { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; border-bottom: 1px solid var(--slate-700); padding-bottom: 36px; margin-bottom: 28px; }
.footer-section h5 { color: white; font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 12px; }
.footer-section ul li a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; transition: color var(--transition); }
.footer-section ul li a:hover { color: var(--primary); }
.footer-legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: #64748b; }

/* ===== 响应式 ===== */
@media (max-width: 800px) {
    .header-box { flex-direction: column; gap: 16px; }
    nav { justify-content: center; gap: 20px; }
    .hero-stats { gap: 24px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-legal { flex-direction: column; text-align: center; }
}
@media (max-width: 500px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; }
    section { padding: 60px 0; }
    section h2 { font-size: 1.6rem; }
    .timeline { padding-left: 32px; }
    .timeline-marker { width: 30px; height: 30px; left: -32px; font-size: 0.8rem; }
}