```css

/* ===== 颜色变量 & 重置 ===== */
:root {
    --bg: #F7F9FC;
    --bg-card: #FFFFFF;
    --bg-soft: #EEF2F7;
    --primary: #1B2A4A;
    --primary-light: #2D4379;
    --text-main: #1F2937;
    --text-secondary: #3A4A63;
    --text-muted: #5B6B82;
    --heading: #111827;
    --border: #D1D9E6;
    --accent: #D97706;
    --accent-soft: #FDEBD0;
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --footer-bg: #111827;
    --footer-text: #E5E7EB;
    --footer-link: #B0BEC5;
    --code-bg: #F3F4F6;
    --nav-shadow: 0 2px 8px rgba(0,0,0,0.05);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --gradient-hero: linear-gradient(145deg, #FDEBD0 0%, #D1D9E6 50%, #B0C4DE 100%);
    --gradient-card: linear-gradient(145deg, var(--bg-card), var(--bg-soft));
}
[data-theme="dark"] {
    --bg: #0F172A;
    --bg-card: #1E293B;
    --bg-soft: #1A2537;
    --primary: #CBD5E1;
    --primary-light: #E2E8F0;
    --text-main: #E2E8F0;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --heading: #F8FAFC;
    --border: #334155;
    --accent: #FBBF24;
    --accent-soft: #422006;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --footer-bg: #020617;
    --footer-text: #E2E8F0;
    --footer-link: #94A3B8;
    --code-bg: #1E293B;
    --nav-shadow: 0 2px 12px rgba(0,0,0,0.7);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(148, 163, 184, 0.3);
    --gradient-hero: linear-gradient(145deg, #1E293B 0%, #0F172A 50%, #1A2537 100%);
    --gradient-card: linear-gradient(145deg, #1E293B, #1A2537);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.7;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5 { color: var(--heading); font-weight: 650; line-height: 1.3; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); text-decoration: underline; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== 导航栏 毛玻璃效果 ===== */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--nav-shadow);
    transition: background-color 0.3s;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: 1280px; margin: auto; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; color: var(--heading); transition: transform 0.2s; }
.logo:hover { transform: scale(1.05); }
.logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { font-weight: 500; color: var(--text-main); padding: 6px 0; border-bottom: 2px solid transparent; position: relative; }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--accent); border-bottom-color: transparent; text-decoration: none; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.search-box { display: flex; align-items: center; background: var(--bg-soft); border-radius: 40px; padding: 6px 14px; transition: box-shadow 0.3s; }
.search-box:focus-within { box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2); }
.search-box input { border: none; background: transparent; padding: 6px 8px; color: var(--text-main); width: 160px; outline: none; }
.search-box input::placeholder { color: var(--text-muted); }
.search-box svg { width: 18px; height: 18px; stroke: var(--text-muted); }
.icon-btn { background: var(--bg-soft); border-radius: 50%; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; border: 1px solid transparent; }
.icon-btn:hover { background: var(--border); transform: rotate(15deg) scale(1.1); }
.icon-btn svg { width: 22px; height: 22px; stroke: var(--text-main); }
.mobile-menu { display: none; }

/* ===== 移动菜单 ===== */
@media (max-width: 900px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--glass-bg); backdrop-filter: blur(20px); flex-direction: column; padding: 12px 24px; border-bottom: 1px solid var(--glass-border); box-shadow: var(--nav-shadow); }
    .nav-links.open { display: flex; animation: slideDown 0.3s ease; }
    .mobile-menu { display: flex; }
    .search-box { display: none; }
    .nav-container { flex-wrap: wrap; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-links a:last-child { border-bottom: none; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Hero Banner 渐变效果 ===== */
.hero {
    background: var(--gradient-hero);
    border-radius: 32px;
    margin: 28px 0;
    padding: 40px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
.hero-content { flex: 1 1 400px; position: relative; z-index: 1; }
.hero-title { font-size: 2.6rem; font-weight: 800; margin-bottom: 16px; color: var(--heading); background: linear-gradient(135deg, var(--heading) 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 24px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { background: var(--primary); color: white; padding: 12px 28px; border-radius: 60px; font-weight: 600; transition: all 0.3s; border: none; box-shadow: 0 4px 15px rgba(27, 42, 74, 0.3); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(27, 42, 74, 0.4); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); padding: 10px 28px; border-radius: 60px; font-weight: 600; transition: all 0.3s; background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(27, 42, 74, 0.3); }
.hero-art { flex: 0 1 300px; position: relative; z-index: 1; }
.hero-art svg { transition: transform 0.3s; }
.hero-art:hover svg { transform: scale(1.05) rotate(-2deg); }

/* ===== 卡片区 ===== */
.section-title { font-size: 2rem; margin: 40px 0 20px; border-left: 6px solid var(--accent); padding-left: 16px; position: relative; }
.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 16px;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}
.card:hover::before { left: 100%; }
.card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 12px 30px rgba(0,0,0,0.15); }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p, .card li { color: var(--text-secondary); }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent); padding: 4px 12px; border-radius: 30px; font-size: 0.8rem; font-weight: 600; transition: all 0.3s; }
.badge:hover { transform: scale(1.1); }

/* ===== 文章列表 ===== */
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-item { display: flex; gap: 20px; background: var(--gradient-card); padding: 20px; border-radius: 16px; border: 1px solid var(--border); transition: all 0.3s; backdrop-filter: blur(10px); }
.article-item:hover { transform: translateX(10px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: var(--accent); }
.article-thumb { flex: 0 0 80px; transition: transform 0.3s; }
.article-item:hover .article-thumb { transform: scale(1.1) rotate(-5deg); }
.article-content { flex: 1; }
.article-meta { color: var(--text-muted); font-size: 0.9rem; }
.read-more { font-weight: 600; color: var(--accent); position: relative; }
.read-more::after {
    content: ' →';
    transition: transform 0.3s;
    display: inline-block;
}
.read-more:hover::after { transform: translateX(5px); }

/* ===== FAQ ===== */
.faq-item { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 16px; transition: all 0.3s; overflow: hidden; }
.faq-item:hover { border-color: var(--accent); transform: scale(1.01); }
.faq-question { padding: 20px; font-weight: 600; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--heading); transition: background 0.3s; }
.faq-question:hover { background: var(--bg-soft); }
.faq-question::after { content: '＋'; font-size: 1.6rem; color: var(--text-muted); transition: all 0.3s; }
.faq-item.open .faq-question::after { content: '－'; transform: rotate(180deg); }
.faq-answer { padding: 0 20px 20px; color: var(--text-secondary); display: none; animation: fadeIn 0.3s ease; }
.faq-item.open .faq-answer { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 表格 ===== */
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: 16px; overflow: hidden; transition: all 0.3s; }
.data-table:hover { box-shadow: var(--shadow); }
.data-table th { background: var(--bg-soft); color: var(--heading); padding: 14px; text-align: left; font-weight: 600; }
.data-table td { padding: 14px; border-bottom: 1px solid var(--border); color: var(--text-main); transition: background 0.2s; }
.data-table tr:hover td { background: var(--bg-soft); }

/* ===== Footer ===== */
.footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 60px; padding: 40px 0 20px; position: relative; }
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent, var(--accent));
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; }
.footer h4 { color: white; margin-bottom: 16px; position: relative; padding-bottom: 8px; }
.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}
.footer a { color: var(--footer-link); display: block; margin: 6px 0; transition: all 0.3s; }
.footer a:hover { color: white; transform: translateX(5px); text-decoration: none; }
.footer-bottom { border-top: 1px solid #2d3a4a; margin-top: 30px; padding-top: 20px; text-align: center; font-size: 0.9rem; }

/* ===== 滚动动画 ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 数字动画 ===== */
.stat-number { font-weight: 800; font-size: 2.2rem; color: var(--accent); position: relative; display: inline-block; }
.stat-number::after {
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    top: 0;
    right: -20px;
}

/* 小工具 */
.back-to-top { position: fixed; bottom: 30px; right: 30px; background: var(--primary); color: white; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: all 0.3s; pointer-events: none; z-index: 200; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-5px) scale(1.1); background: var(--primary-light); }

/* 对比度保障 */
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.bg-soft { background-color: var(--bg-soft) !important; }
.border-light { border-color: var(--border) !important; }

/* ===== 响应式增强 ===== */
@media (max-width: 768px) {
    .hero { padding: 30px 20px; }
    .hero-title { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .section-title { font-size: 1.5rem; }
    .article-item { flex-direction: column; }
    .article-thumb { flex: 0 0 auto; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .nav-container { padding: 10px 16px; }
    .logo { font-size: 1.2rem; }
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.6rem; }
    .hero-cta { flex-direction: column; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; }
    .nav-actions .icon-btn { width: 36px; height: 36px; }
    .container { padding: 0 16px; }
}

/* ===== 打印样式 ===== */
@media print {
    .navbar, .back-to-top, .hero-cta, .footer { display: none !important; }
    body { background: white; color: black; }
    .card, .article-item, .faq-item { box-shadow: none; border: 1px solid #ddd; }
}

/* ===== 暗色模式过渡 ===== */
body, .navbar, .card, .article-item, .faq-item, .footer, .hero {
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* ===== 焦点可见性 ===== */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== 选择文本样式 ===== */
::selection {
    background: var(--accent);
    color: white;
}

/* ===== 动画性能优化 ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

```