:root {
    --primary: #2c3e50;
    --primary-light: #34495e;
    --accent: #e74c3c;
    --accent-soft: #ff6b6b;
    --accent-glow: rgba(231, 76, 60, 0.35);
    --gradient-hero: linear-gradient(135deg, #2c3e50 0%, #4a6741 45%, #2c3e50 100%);
    --gradient-card: linear-gradient(135deg, #2c3e50, #34495e);
    --gradient-accent: linear-gradient(135deg, #e74c3c, #ff6b6b);
    --bg: #f8f9fa;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-glass-border: rgba(255, 255, 255, 0.55);
    --text: #2c3e50;
    --text-light: #5a6c7d;
    --text-muted: #8a9aa8;
    --border: #e1e8ed;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-glow: 0 12px 40px rgba(231, 76, 60, 0.18);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 吸顶导航 ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--bg-glass-border);
    transition: var(--transition);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
    letter-spacing: -0.3px;
}

.logo svg {
    width: 36px;
    height: 36px;
    transition: var(--transition);
}

.logo:hover svg {
    transform: rotate(-6deg) scale(1.06);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 6px 16px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.08);
    background: var(--bg-card);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text);
    width: 140px;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.search-box button:hover {
    color: var(--accent);
}

.theme-toggle {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.theme-toggle:hover {
    background: var(--border);
    transform: rotate(20deg);
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--border);
}

/* ========== 面包屑 ========== */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb li::after {
    content: '›';
    color: var(--text-muted);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--accent);
}

/* ========== 主内容 ========== */
.main-content {
    padding-bottom: 60px;
}

/* ========== Hero Banner ========== */
.hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    background: var(--gradient-hero);
    min-height: 380px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(231, 76, 60, 0.22) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.05) 55%, transparent 100%);
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    padding: 60px;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    animation: heroFadeUp 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1.28;
    margin-bottom: 18px;
    letter-spacing: -0.6px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    padding: 13px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    color: var(--accent);
}

.hero-btn svg {
    transition: var(--transition);
}

.hero-btn:hover svg {
    transform: translateX(4px);
}

.hero-dots {
    position: absolute;
    bottom: 26px;
    left: 60px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dots span:hover {
    background: rgba(255, 255, 255, 0.75);
}

.hero-dots span.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* ========== 数字统计 ========== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 52px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(231, 76, 60, 0.18);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 34px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== 通用区块 ========== */
.section {
    margin-bottom: 60px;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 27px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.4px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: var(--gradient-accent);
}

.section-header p {
    color: var(--text-light);
    font-size: 15px;
    max-width: 720px;
    margin-top: 14px;
}

/* ========== 卡片网格 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.03), rgba(44, 62, 80, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(231, 76, 60, 0.16);
}

.card:hover::after {
    opacity: 1;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 22px;
    transition: var(--transition);
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.22);
}

.card:hover .card-icon {
    transform: translateY(-3px) rotate(-4deg);
    background: var(--gradient-accent);
    box-shadow: 0 8px 22px var(--accent-glow);
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    transition: var(--transition);
}

.card:hover h3 {
    color: var(--accent);
}

.card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

/* ========== 文章列表 ========== */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(231, 76, 60, 0.16);
}

.article-thumb {
    height: 160px;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.article-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover .article-thumb::after {
    opacity: 1;
}

.article-thumb svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    transition: var(--transition);
}

.article-card:hover .article-thumb svg {
    transform: scale(1.12) rotate(3deg);
    opacity: 0.72;
}

.article-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.article-meta span:first-child {
    color: var(--accent);
    font-weight: 500;
}

.article-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.55;
    transition: var(--transition);
}

.article-card:hover .article-body h3 {
    color: var(--accent);
}

.article-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.72;
    flex: 1;
    margin-bottom: 16px;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    gap: 10px;
    color: var(--accent-soft);
}

/* ========== FAQ ========== */
.faq-list {
    max-width: 820px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(231, 76, 60, 0.2);
    box-shadow: var(--shadow);
}

.faq-item.open {
    border-color: rgba(231, 76, 60, 0.28);
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    font-family: inherit;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(44, 62, 80, 0.03);
}

.faq-question .arrow {
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.3s ease;
    color: var(--text-muted);
    font-size: 18px;
}

.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), padding 0.35s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 24px 24px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.85;
}

/* ========== HowTo ========== */
.howto-steps {
    counter-reset: step;
}

.howto-step {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
    margin-bottom: 18px;
    position: relative;
    padding-left: 84px;
    transition: var(--transition);
    overflow: hidden;
}

.howto-step::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.howto-step:hover {
    box-shadow: var(--shadow);
    border-color: rgba(231, 76, 60, 0.16);
    transform: translateX(4px);
}

.howto-step:hover::after {
    transform: scaleY(1);
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 24px;
    top: 30px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-card);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.22);
    transition: var(--transition);
}

.howto-step:hover::before {
    background: var(--gradient-accent);
    box-shadow: 0 8px 20px var(--accent-glow);
    transform: scale(1.08);
}

.howto-step h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.howto-step p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.82;
}

/* ========== 联系信息 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 26px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--gradient-accent);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(231, 76, 60, 0.16);
}

.contact-card:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.contact-card .label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.contact-card .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    word-break: break-all;
    transition: var(--transition);
}

.contact-card:hover .value {
    color: var(--accent);
}

/* ========== 页脚 ========== */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 52px 0 26px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 18px;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-card);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.9);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: var(--gradient-accent);
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 32px var(--accent-glow);
}

/* ========== 滚动动画 ========== */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 暗黑模式 ========== */
body.dark-mode {
    --bg: #12121f;
    --bg-card: #1e1e30;
    --bg-glass: rgba(18, 18, 31, 0.78);
    --bg-glass-border: rgba(255, 255, 255, 0.06);
    --text: #e8e8f0;
    --text-light: #b0b0c4;
    --text-muted: #7a7a92;
    --border: #2c2c42;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 12px 40px rgba(231, 76, 60, 0.22);
    --gradient-hero: linear-gradient(135deg, #12121f 0%, #24402a 45%, #12121f 100%);
    --gradient-card: linear-gradient(135deg, #2c3e50, #3d566e);
}

body.dark-mode .site-header {
    background: var(--bg-glass);
}

body.dark-mode .search-box {
    background: var(--bg-card);
}

body.dark-mode .search-box:focus-within {
    background: var(--bg-card);
}

body.dark-mode .theme-toggle {
    background: var(--bg-card);
}

body.dark-mode .theme-toggle:hover {
    background: var(--border);
}

body.dark-mode .site-footer {
    background: #0e0e18;
}

body.dark-mode .hero h1 {
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

body.dark-mode .stat-number {
    background: linear-gradient(135deg, #ff6b6b, #ffa07a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .card::after {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.06), rgba(44, 62, 80, 0.04));
}

body.dark-mode .faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .highlight-box {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(74, 103, 65, 0.06));
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 32px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .nav-links.open {
        display: flex;
        animation: menuSlide 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

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

    .nav-links a {
        font-size: 16px;
        padding: 8px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        min-height: 340px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-slide {
        padding: 40px 28px;
    }

    .hero-dots {
        left: 28px;
        bottom: 22px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .search-box input {
        width: 100px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        min-height: 320px;
        border-radius: var(--radius);
    }

    .hero h1 {
        font-size: 22px;
        letter-spacing: -0.3px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-slide {
        padding: 32px 22px;
    }

    .hero-dots {
        left: 22px;
    }

    .hero-btn {
        padding: 11px 24px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .card {
        padding: 24px;
    }

    .howto-step {
        padding: 24px 20px 24px 72px;
    }

    .howto-step::before {
        left: 18px;
        top: 24px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .article-list {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

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

    .hero h1 {
        font-size: 20px;
    }

    .search-box {
        display: none;
    }

    .header-inner {
        gap: 10px;
    }

    .logo {
        font-size: 18px;
    }

    .logo svg {
        width: 32px;
        height: 32px;
    }

    .stat-number {
        font-size: 28px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 锚点偏移 ========== */
[id] {
    scroll-margin-top: 80px;
}

/* ========== 内容排版 ========== */
.prose {
    max-width: 820px;
}

.prose p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 16px;
}

.prose h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin: 30px 0 12px;
    position: relative;
    padding-left: 14px;
}

.prose h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background: var(--gradient-accent);
}

.prose h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin: 20px 0 10px;
}

.prose ul {
    margin-bottom: 16px;
    padding-left: 4px;
}

.prose ul li {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.highlight-box {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.04), rgba(74, 103, 65, 0.06));
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 22px 26px;
    margin: 22px 0;
    transition: var(--transition);
}

.highlight-box:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 15px;
    color: var(--text-light);
}

/* ========== 标签云 ========== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag-cloud span {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--text-light);
    transition: var(--transition);
    cursor: default;
}

.tag-cloud span:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* ========== 作者信息 ========== */
.author-box {
    display: flex;
    gap: 18px;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 26px;
    border: 1px solid var(--border);
    margin-top: 28px;
    transition: var(--transition);
}

.author-box:hover {
    box-shadow: var(--shadow);
    border-color: rgba(231, 76, 60, 0.16);
}

.author-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(44, 62, 80, 0.24);
    transition: var(--transition);
}

.author-box:hover .author-avatar {
    background: var(--gradient-accent);
    box-shadow: 0 8px 22px var(--accent-glow);
    transform: scale(1.05);
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.author-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ========== 时间线 ========== */
.timeline {
    position: relative;
    padding-left: 32px;
    margin-top: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateX(4px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--accent);
    transition: var(--transition);
}

.timeline-item:hover::before {
    transform: scale(1.25);
    box-shadow: 0 0 0 2px var(--accent), 0 0 16px var(--accent-glow);
}

.timeline-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.timeline-item .year {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.72;
}

/* ========== 减少动画偏好 ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .site-header,
    .back-to-top,
    .hero-dots,
    .theme-toggle,
    .mobile-menu-btn,
    .search-box {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card,
    .article-card,
    .faq-item,
    .howto-step {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}