/* 官网统一样式
 * 从 tmp/website-preview/ 提取合并
 */

/* ===== 变量定义 ===== */
:root {
    /* 品牌色 */
    --brand-primary: #3e5ef7;
    --brand-dark: #1d2c5c;
    --brand-mid: #567dff;
    --brand-light: #e5edff;

    /* 文字颜色 */
    --text-primary: #1d2c5c;
    --text-secondary: #4b5b80;
    --text-tertiary: #6d7c9f;
    --text-white: #ffffff;

    /* 背景颜色 */
    --bg-page: #f8fbff;
    --bg-white: #ffffff;
    --bg-light-blue: rgba(62, 94, 247, 0.08);

    /* 渐变 */
    --gradient-page: linear-gradient(180deg, #f2f6ff 0%, #f8fbff 50%, #ffffff 100%);
    --gradient-btn: linear-gradient(135deg, #5b7eff, #3e5ef7);
    --gradient-overlay: linear-gradient(135deg, rgba(62, 94, 247, 0.16), rgba(91, 139, 255, 0.15));

    /* 阴影 */
    --shadow-card: 0 10px 30px rgba(17, 34, 85, 0.05);
    --shadow-hover: 0 20px 40px rgba(17, 34, 85, 0.1);
    --shadow-btn: 0 18px 40px rgba(32, 61, 123, 0.35);
    --shadow-nav: 0 4px 20px rgba(17, 34, 85, 0.05);

    /* 间距 & 圆角 */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* ===== 基础重置 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--gradient-page);
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

/* ===== 导航栏 ===== */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s;
}
.site-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-nav);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 72px;
}
.nav-logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 22px; font-weight: 800; color: var(--brand-primary);
    letter-spacing: -0.5px;
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a {
    font-size: 15px; color: var(--text-secondary); font-weight: 500;
    position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand-primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--brand-primary); transition: width 0.3s; border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
    padding: 10px 24px; border-radius: 30px;
    background: var(--gradient-btn); color: #fff !important;
    font-size: 14px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(62, 94, 247, 0.3);
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(62, 94, 247, 0.4); }
.mobile-menu-btn { display: none; cursor: pointer; color: var(--text-primary); }

/* ===== 面包屑 ===== */
.breadcrumb {
    max-width: 1200px; margin: 0 auto;
    padding: 100px 24px 16px;
    font-size: 14px; color: var(--text-tertiary);
}
.breadcrumb a { color: var(--brand-primary); }
.breadcrumb span { margin: 0 8px; color: var(--text-tertiary); }

/* ===== 通用段落标题 ===== */
.section-header { text-align: center; margin-bottom: 72px; }
.section-header h2 {
    font-size: 36px; font-weight: 800; color: var(--text-primary);
    margin-bottom: 16px; letter-spacing: -0.5px;
}
.section-header p { font-size: 18px; color: var(--text-secondary); }

/* ===== Hero 区域（首页） ===== */
.hero {
    padding: 160px 24px 100px;
    text-align: center; position: relative; overflow: hidden;
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6; z-index: -1;
}
.hero::before {
    width: 400px; height: 400px; background: rgba(62, 94, 247, 0.15);
    top: -100px; left: 10%; animation: float 10s infinite alternate;
}
.hero::after {
    width: 300px; height: 300px; background: rgba(86, 125, 255, 0.15);
    top: 20%; right: 10%; animation: float 8s infinite alternate-reverse;
}
@keyframes float { from { transform: translate(0,0); } to { transform: translate(20px, 40px); } }

.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 30px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(62, 94, 247, 0.1);
    color: var(--brand-primary);
    font-size: 14px; font-weight: 600;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(62, 94, 247, 0.08);
}
.hero h1 {
    font-size: 56px; font-weight: 800; line-height: 1.15;
    color: var(--brand-dark); margin-bottom: 24px;
    letter-spacing: -1.5px;
}
.hero h1 span {
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative; display: inline-block;
}
.hero-desc {
    font-size: 20px; color: var(--text-secondary); max-width: 640px;
    margin: 0 auto 56px; line-height: 1.6; font-weight: 400;
}

/* 下载入口 */
.hero-downloads {
    display: flex; justify-content: center; gap: 24px;
    flex-wrap: wrap; margin-bottom: 60px;
}
.download-card {
    background: rgba(255, 255, 255, 0.9); border-radius: 20px;
    padding: 24px 32px; min-width: 200px;
    box-shadow: 0 10px 30px rgba(17, 34, 85, 0.05);
    text-align: center; border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(17, 34, 85, 0.1);
    background: #fff;
}
.download-icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px; font-size: 28px;
    transition: transform 0.3s;
}
.download-card:hover .download-icon { transform: scale(1.1); }
.download-icon.wechat { background: #e8f5e9; color: #059669; }
.download-icon.android { background: #e5edff; color: #3e5ef7; }
.download-icon.ios { background: #f3e5f5; color: #8B5CF6; }
.download-label { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.download-sub { font-size: 13px; color: var(--text-tertiary); }

/* 小程序码 */
.qrcode-area {
    display: inline-flex; justify-content: center; align-items: center; gap: 20px;
    background: rgba(255,255,255,0.6); padding: 20px 32px;
    border-radius: 24px;
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.5);
}
.qrcode-box {
    width: 120px; height: 120px; border-radius: 16px;
    background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 8px;
}
.qrcode-placeholder {
    width: 100%; height: 100%; border-radius: 8px;
    background: var(--bg-light-blue);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-primary); font-size: 12px; font-weight: 600;
}
.qrcode-tip { font-size: 14px; color: var(--text-secondary); text-align: left; line-height: 1.6; }
.qrcode-tip strong { color: var(--brand-primary); }

/* ===== 功能特性（首页） ===== */
.features { padding: 100px 24px; max-width: 1248px; margin: 0 auto; }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.feature-card {
    padding: 40px 32px; border-radius: 24px;
    background: #fff; border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(62, 94, 247, 0.12);
    border-color: rgba(62, 94, 247, 0.1);
}
.feature-icon {
    width: 64px; height: 64px; border-radius: 20px; margin-bottom: 24px;
    display: flex; align-items: center; justify-content: center; font-size: 30px;
    transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(5deg); }
.feature-icon.purple { background: #e5edff; color: #3e5ef7; }
.feature-icon.blue { background: #e0f2fe; color: #0284c7; }
.feature-icon.green { background: #dcfce7; color: #16a34a; }
.feature-icon.orange { background: #ffedd5; color: #ea580c; }
.feature-icon.pink { background: #fae8ff; color: #d946ef; }
.feature-icon.cyan { background: #cffafe; color: #0891b2; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.feature-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ===== 效果对比（首页） ===== */
.comparison {
    padding: 100px 24px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    position: relative;
}
.comparison-inner { max-width: 1000px; margin: 0 auto; }
.comparison-box {
    display: grid; grid-template-columns: 1fr 80px 1fr;
    align-items: center; gap: 0;
    background: #fff; border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(32, 61, 123, 0.15);
    border: 4px solid #fff;
}
.comparison-img {
    aspect-ratio: 4/3; display: flex; align-items: center;
    justify-content: center; padding: 40px; position: relative;
}
.comparison-img.before { background: #f1f5f9; }
.comparison-img.after {
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e5e7eb' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 0h10v10H0V0zm10 10h10v10H10V10z'/%3E%3C/g%3E%3C/svg%3E");
}
.comparison-label {
    position: absolute; top: 20px; left: 20px;
    padding: 4px 12px; background: rgba(0,0,0,0.6); color: #fff;
    border-radius: 20px; font-size: 12px; font-weight: 600;
    backdrop-filter: blur(4px);
}
.comparison-img .placeholder {
    width: 200px; height: 200px; border-radius: 16px;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.comparison-img.before .placeholder { background: #fff; color: #94a3b8; }
.comparison-img.after .placeholder { background: #fff; color: var(--brand-primary); }
.comparison-arrow {
    display: flex; align-items: center; justify-content: center; height: 100%;
    font-size: 32px; color: var(--brand-primary); font-weight: 700;
    background: #fff; position: relative; z-index: 2;
}

/* ===== 文章卡片（首页） ===== */
.articles { padding: 100px 24px; max-width: 1248px; margin: 0 auto; }
.articles-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.article-card {
    border-radius: 20px; overflow: hidden;
    background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease; border: 1px solid transparent;
}
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--brand-light);
}
.article-card .article-cover {
    height: 200px;
    background: linear-gradient(135deg, #e5edff, #d4e3ff);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-mid); font-size: 14px; font-weight: 600;
}
.article-card .article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 24px; }
.article-meta {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.article-tag {
    padding: 4px 10px; border-radius: 6px;
    background: var(--bg-light-blue); color: var(--brand-primary);
    font-size: 12px; font-weight: 600;
}
.article-date { font-size: 13px; color: var(--text-tertiary); }
.article-card h3 {
    font-size: 18px; font-weight: 700; color: var(--text-primary);
    margin-bottom: 10px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card .summary {
    font-size: 14px; color: var(--text-secondary); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.more-link { display: flex; justify-content: center; margin-top: 56px; }
.more-btn {
    padding: 12px 40px; border-radius: 30px;
    border: 1px solid var(--text-tertiary); color: var(--text-secondary);
    font-size: 15px; font-weight: 600; transition: all 0.3s;
}
.more-btn:hover {
    border-color: var(--brand-primary); color: var(--brand-primary);
    background: var(--bg-light-blue);
}

/* ===== 两栏布局（文章列表/详情） ===== */
.content-layout {
    max-width: 1200px; margin: 0 auto; padding: 0 24px 80px;
    display: grid; grid-template-columns: 1fr 320px; gap: 40px;
}

/* ===== 列表页标题 ===== */
.page-title {
    max-width: 1200px; margin: 0 auto;
    padding: 0 24px 40px;
}
.page-title h1 {
    font-size: 32px; font-weight: 800; color: var(--brand-dark);
    letter-spacing: -0.5px;
}

/* ===== 分类标签筛选 ===== */
.filter-bar {
    display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px;
}
.filter-tag {
    padding: 8px 20px; border-radius: 30px;
    font-size: 14px; font-weight: 500;
    background: #fff; color: var(--text-secondary);
    border: 1px solid rgba(62, 94, 247, 0.1);
    cursor: pointer; transition: all 0.2s;
}
.filter-tag:hover {
    border-color: var(--brand-primary); color: var(--brand-primary);
    background: var(--bg-light-blue);
}
.filter-tag.active {
    background: var(--brand-primary); color: #fff; border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(62, 94, 247, 0.2);
}

/* ===== 文章列表项 ===== */
.article-list { display: flex; flex-direction: column; gap: 24px; }
.article-item {
    display: grid; grid-template-columns: 240px 1fr; gap: 24px;
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-light);
}
.article-item-cover {
    height: 100%; min-height: 160px;
    background: linear-gradient(135deg, #e5edff, #d4e3ff);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-primary); font-size: 14px; font-weight: 600;
    overflow: hidden;
}
.article-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-item-body { padding: 24px 24px 24px 0; display: flex; flex-direction: column; justify-content: center; }
.article-item-meta {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
}
.tag-badge {
    padding: 4px 10px; border-radius: 6px;
    background: var(--bg-light-blue); color: var(--brand-primary);
    font-size: 12px; font-weight: 600;
}
.tag-badge.green { background: #dcfce7; color: #16a34a; }
.tag-badge.orange { background: #ffedd5; color: #ea580c; }
.date-text { font-size: 13px; color: var(--text-tertiary); }
.article-item h3 {
    font-size: 20px; font-weight: 700; color: var(--brand-dark);
    margin-bottom: 8px; line-height: 1.4;
}
.article-item .summary {
    font-size: 15px; color: var(--text-secondary); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== 分页 ===== */
.pagination {
    display: flex; justify-content: center; gap: 8px; margin-top: 48px;
}
.pagination a, .pagination span {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--text-secondary); background: #fff;
    border: 1px solid rgba(62, 94, 247, 0.1); cursor: pointer;
    transition: all 0.2s;
}
.pagination a:hover {
    border-color: var(--brand-primary); color: var(--brand-primary);
    background: var(--bg-light-blue);
}
.pagination .current, .pagination span.current {
    background: var(--brand-primary); color: #fff; border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(62, 94, 247, 0.2);
}

/* ===== 侧边栏 ===== */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-box {
    background: #fff; border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow-card); border: 1px solid rgba(255,255,255,0.6);
}
.sidebar-title {
    font-size: 16px; font-weight: 700; color: var(--brand-dark);
    margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9;
    position: relative;
}
.sidebar-title::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 40px; height: 2px;
    background: var(--brand-primary); border-radius: 2px;
}
.category-list { list-style: none; }
.category-list li {
    padding: 10px 0; font-size: 15px; color: var(--text-secondary);
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; transition: color 0.2s;
}
.category-list li:hover { color: var(--brand-primary); }
.category-list a { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.category-count {
    background: #f1f5f9; padding: 2px 8px; border-radius: 10px;
    font-size: 12px; color: var(--text-tertiary);
}
.category-list li:hover .category-count { background: var(--bg-light-blue); color: var(--brand-primary); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.cloud-tag {
    padding: 6px 14px; border-radius: 20px;
    font-size: 13px; background: #f8fbff; color: var(--text-secondary);
    border: 1px solid rgba(62, 94, 247, 0.05);
    cursor: pointer; transition: all 0.2s;
}
.cloud-tag:hover {
    background: var(--brand-primary); color: #fff; border-color: var(--brand-primary);
    box-shadow: 0 4px 10px rgba(62, 94, 247, 0.2);
}
.hot-list { list-style: none; counter-reset: hot; }
.hot-list li {
    padding: 12px 0; font-size: 14px; color: var(--text-secondary);
    display: flex; align-items: flex-start; gap: 12px;
    cursor: pointer; transition: color 0.2s;
    border-bottom: 1px dashed #f1f5f9;
}
.hot-list li:last-child { border-bottom: none; }
.hot-list li:hover { color: var(--brand-primary); }
.hot-list li:hover .hot-rank { transform: scale(1.1); }
.hot-list a { display: flex; align-items: flex-start; gap: 12px; width: 100%; }
.hot-rank {
    width: 20px; height: 20px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
    background: #f1f5f9; color: var(--text-tertiary);
    transition: transform 0.2s;
}
.hot-rank.top { background: var(--brand-primary); color: #fff; box-shadow: 0 2px 6px rgba(62, 94, 247, 0.3); }

/* ===== 文章详情 ===== */
.article-container { min-width: 0; }
.article-header { margin-bottom: 32px; }
.article-header h1 {
    font-size: 32px; font-weight: 800; color: var(--brand-dark);
    line-height: 1.4; margin-bottom: 16px; letter-spacing: -0.5px;
}
.article-info {
    display: flex; align-items: center; gap: 16px;
    font-size: 14px; color: var(--text-tertiary);
}
.article-detail-cover {
    width: 100%; height: 400px;
    border-radius: var(--radius-lg); overflow: hidden;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #e5edff, #d4e3ff);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-mid); font-size: 16px;
    box-shadow: var(--shadow-card);
}
.article-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-content {
    background: #fff; border-radius: var(--radius-lg); padding: 48px;
    box-shadow: var(--shadow-card);
    margin-bottom: 40px; border: 1px solid rgba(255,255,255,0.6);
}
.article-content h2 {
    font-size: 24px; font-weight: 700; color: var(--brand-dark);
    margin: 40px 0 20px; padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light-blue);
    position: relative;
}
.article-content h2::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px;
    background: var(--brand-primary); border-radius: 2px;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
    font-size: 20px; font-weight: 700; color: var(--text-primary);
    margin: 32px 0 16px;
}
.article-content p {
    font-size: 16px; line-height: 1.8; color: var(--text-secondary);
    margin-bottom: 20px;
}
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content li {
    font-size: 16px; line-height: 1.8; color: var(--text-secondary);
    margin-bottom: 8px;
}
.article-content blockquote {
    border-left: 4px solid var(--brand-primary);
    background: var(--bg-page); padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0; color: var(--text-secondary);
    font-style: italic;
}
.article-content img {
    max-width: 100%; border-radius: 12px; margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 标签 */
.article-tags {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 40px;
}
.article-tags .label { font-size: 14px; color: var(--text-tertiary); margin-right: 4px; }
.article-tags .tag {
    padding: 6px 16px; border-radius: 20px;
    background: #fff; color: var(--text-secondary);
    border: 1px solid rgba(62, 94, 247, 0.1);
    font-size: 13px; transition: all 0.2s;
}
.article-tags .tag:hover {
    background: var(--brand-primary); color: #fff;
    border-color: var(--brand-primary);
}

/* 上下篇 */
.article-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    margin-bottom: 40px;
}
.nav-item {
    padding: 24px; border-radius: var(--radius-md);
    background: #fff; box-shadow: var(--shadow-card);
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.2s; display: block;
}
.nav-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--brand-light);
}
.nav-item .label { font-size: 13px; color: var(--text-tertiary); margin-bottom: 8px; }
.nav-item .title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.nav-item:hover .title { color: var(--brand-primary); }
.nav-item.next { text-align: right; }

/* 目录 */
.toc-list { list-style: none; }
.toc-list li {
    padding: 8px 0; font-size: 14px; color: var(--text-secondary);
    cursor: pointer; transition: all 0.2s;
    border-left: 2px solid transparent; padding-left: 16px;
}
.toc-list li:hover { color: var(--brand-primary); border-left-color: var(--brand-primary); background: linear-gradient(90deg, var(--bg-light-blue), transparent); }
.toc-list li.sub { padding-left: 32px; font-size: 13px; color: var(--text-tertiary); }

/* ===== 单页模板 ===== */
.page-container {
    max-width: 900px; margin: 0 auto; padding: 120px 24px 80px;
}
.page-header { text-align: center; margin-bottom: 60px; }
.page-header h1 {
    font-size: 40px; font-weight: 800; color: var(--brand-dark);
    margin-bottom: 16px; letter-spacing: -1px;
}
.page-header .subtitle { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.page-card {
    background: #fff; border-radius: var(--radius-lg); padding: 48px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255,255,255,0.6);
}
.page-content h2 {
    font-size: 24px; font-weight: 700; color: var(--brand-dark);
    margin: 40px 0 20px; padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-light-blue);
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
    font-size: 16px; line-height: 1.8; color: var(--text-secondary);
    margin-bottom: 20px;
}
.page-content ul { padding-left: 20px; margin-bottom: 20px; }
.page-content li { margin-bottom: 8px; color: var(--text-secondary); }
.page-content img { max-width: 100%; border-radius: 12px; margin: 24px 0; }

/* ===== 页脚 ===== */
.site-footer {
    padding: 60px 24px; background: #fff;
    text-align: center; border-top: 1px solid #f1f5f9;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-links {
    display: flex; justify-content: center; gap: 32px;
    margin-bottom: 24px; list-style: none;
}
.footer-links a { color: var(--text-secondary); font-size: 14px; }
.footer-links a:hover { color: var(--brand-primary); }
.footer-copy { color: var(--text-tertiary); font-size: 13px; }
.footer-copy a { color: var(--text-secondary); }

/* ===== 悬浮操作栏 ===== */
.floating-action {
    position: fixed; bottom: 100px; right: 24px; z-index: 99;
    display: flex; flex-direction: column; gap: 12px;
}
.action-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05); color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s;
}
.action-btn:hover {
    background: var(--brand-primary); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(62, 94, 247, 0.25);
}
.to-top { opacity: 0; pointer-events: none; transform: translateY(10px); }
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===== 下载弹窗 ===== */
.download-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200; background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.download-modal-overlay.show {
    display: flex; opacity: 1;
}
.download-modal {
    background: #fff; border-radius: 24px; padding: 40px;
    max-width: 480px; width: 90%; position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.download-modal-overlay.show .download-modal {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    border: none; background: #f1f5f9; color: var(--text-tertiary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
}
.modal-close:hover { background: #e2e8f0; color: var(--text-primary); }
.download-modal h3 {
    font-size: 24px; font-weight: 800; color: var(--brand-dark);
    margin-bottom: 8px; text-align: center;
}
.modal-subtitle {
    font-size: 15px; color: var(--text-tertiary); text-align: center;
    margin-bottom: 32px;
}
.modal-options { display: flex; flex-direction: column; gap: 16px; }
.modal-option {
    display: flex; align-items: center; gap: 16px;
    padding: 20px; border-radius: 16px;
    border: 1px solid #f1f5f9; background: #fafbfc;
    transition: all 0.2s;
}
.modal-option:hover {
    border-color: rgba(62, 94, 247, 0.15);
    background: #f8fbff;
}
.modal-option .option-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.modal-option .option-icon.wechat { background: #e8f5e9; color: #059669; }
.modal-option .option-icon.android { background: #e5edff; color: #3e5ef7; }
.modal-option .option-icon.ios { background: #f3e5f5; color: #8B5CF6; }
.option-info { flex: 1; min-width: 0; }
.option-name { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.option-desc { font-size: 13px; color: var(--text-tertiary); }
.option-qrcode { flex-shrink: 0; }
.qr-placeholder {
    width: 80px; height: 80px; border-radius: 12px;
    background: var(--bg-light-blue); border: 1px solid rgba(62, 94, 247, 0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-primary); font-size: 11px; font-weight: 600;
}
.option-btn {
    flex-shrink: 0; padding: 10px 20px; border-radius: 10px;
    font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.2s; cursor: pointer;
}
.android-btn {
    background: var(--bg-light-blue); color: var(--brand-primary);
}
.android-btn:hover {
    background: var(--brand-primary); color: #fff;
    box-shadow: 0 4px 12px rgba(62, 94, 247, 0.3);
}
.ios-btn {
    background: #f3e5f5; color: #8B5CF6;
}
.ios-btn:hover {
    background: #8B5CF6; color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.modal-tip {
    text-align: center; font-size: 13px; color: var(--text-tertiary);
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

/* ===== 移动端响应式 ===== */
@media (max-width: 768px) {
    .nav-inner { height: 60px; padding: 0 16px; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    .hero { padding: 120px 20px 60px; }
    .hero h1 { font-size: 36px; letter-spacing: -1px; }
    .hero-desc { font-size: 16px; margin-bottom: 40px; }
    .hero-downloads { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto 40px; }
    .download-card { flex-direction: row; text-align: left; padding: 16px 20px; align-items: center; gap: 16px; }
    .download-icon { margin: 0; width: 40px; height: 40px; font-size: 20px; }
    .qrcode-area { display: none; }

    .section-header h2 { font-size: 28px; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .feature-card { padding: 30px 24px; }

    .comparison-box { grid-template-columns: 1fr; border-radius: 20px; }
    .comparison-img { padding: 20px; aspect-ratio: 16/9; }
    .comparison-arrow { transform: rotate(90deg); padding: 10px 0; font-size: 24px; }

    .articles-grid { grid-template-columns: 1fr; }
    .article-card { display: flex; flex-direction: row; align-items: center; height: 120px; }
    .article-card .article-cover { width: 120px; height: 100%; flex-shrink: 0; }
    .article-body { padding: 16px; flex: 1; min-width: 0; }
    .article-meta { display: none; }
    .article-card .summary { display: none; }
    .article-card h3 { margin: 0; font-size: 15px; -webkit-line-clamp: 3; }

    .content-layout { grid-template-columns: 1fr; }
    .article-item { grid-template-columns: 1fr; }
    .article-item-cover { height: 180px; }
    .article-item-body { padding: 20px; }
    .page-title h1 { font-size: 26px; }

    .article-content { padding: 24px; }
    .article-header h1 { font-size: 26px; }
    .article-detail-cover { height: 200px; }
    .article-nav { grid-template-columns: 1fr; }

    .page-container { padding-top: 100px; }
    .page-card { padding: 24px; }
    .page-header h1 { font-size: 30px; }

    .floating-action { bottom: 80px; right: 16px; }
    .action-btn { width: 40px; height: 40px; }

    .download-modal { padding: 28px 20px; max-width: 100%; }
    .download-modal h3 { font-size: 20px; }
    .modal-option { padding: 16px; gap: 12px; }
    .modal-option .option-icon { width: 44px; height: 44px; }
    .qr-placeholder { width: 64px; height: 64px; }
    .option-btn { padding: 8px 14px; font-size: 12px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
