:root {
    --bg: #f7f5f2;
    --bg-alt: #efece7;
    --text: #1c1a17;
    --text-secondary: #5a554e;
    --primary: #e63946;
    --primary-dark: #b71c1c;
    --primary-light: #ff6b6b;
    --accent: #ffb703;
    --accent-2: #8338ec;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-solid: #ffffff;
    --border: rgba(28, 26, 23, 0.1);
    --border-strong: rgba(28, 26, 23, 0.18);
    --shadow-sm: 0 2px 8px rgba(28, 26, 23, 0.06);
    --shadow: 0 8px 28px rgba(28, 26, 23, 0.1);
    --shadow-lg: 0 18px 50px rgba(28, 26, 23, 0.16);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 26px;
    --nav-height: 68px;
    --glass-blur: 16px;
    --grad-banner: linear-gradient(135deg, #e63946 0%, #ff6b6b 45%, #ffb703 100%);
    --grad-accent: linear-gradient(135deg, #8338ec 0%, #e63946 100%);
    --grad-soft: linear-gradient(160deg, rgba(230, 57, 70, 0.08), rgba(255, 183, 3, 0.08));
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
    --bg: #0b0b0d;
    --bg-alt: #121216;
    --text: #f0ede8;
    --text-secondary: #a8a29a;
    --primary: #ff6b6b;
    --primary-dark: #ff4444;
    --primary-light: #ff9999;
    --accent: #ffb703;
    --accent-2: #a06bff;
    --surface: rgba(26, 26, 32, 0.66);
    --surface-solid: #17171c;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.65);
    --grad-banner: linear-gradient(135deg, #7a1520 0%, #b71c1c 45%, #a06b00 100%);
    --grad-accent: linear-gradient(135deg, #5a1fb0 0%, #b71c1c 100%);
    --grad-soft: linear-gradient(160deg, rgba(255, 107, 107, 0.1), rgba(255, 183, 3, 0.06));
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 16px);
    -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:
        radial-gradient(circle at 12% 8%, rgba(230, 57, 70, 0.1), transparent 42%),
        radial-gradient(circle at 88% 22%, rgba(131, 56, 236, 0.09), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(255, 183, 3, 0.08), transparent 45%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    width: 100%;
}

/* ===== 导航吸顶 + 毛玻璃 ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.22rem;
    letter-spacing: 0.02em;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.logo:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 4px 10px rgba(230, 57, 70, 0.35));
}

.logo svg {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
    transition: transform 0.4s var(--ease);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: inline-block;
    padding: 8px 13px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    border-radius: 10px;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 3px;
    height: 2px;
    background: var(--grad-banner);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(230, 57, 70, 0.07);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

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

.search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 6px 8px 6px 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

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

.search-box input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-box button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-banner);
    border: none;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.search-box button:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.35s var(--ease), color 0.25s, border-color 0.25s, background 0.25s;
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(20deg) scale(1.06);
}

.mobile-menu-btn {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
    align-items: center;
    justify-content: center;
    transition: color 0.25s, border-color 0.25s;
}

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

/* ===== 面包屑 ===== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 20px 0 8px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

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

.breadcrumb span:last-child {
    color: var(--text);
    font-weight: 600;
}

/* ===== 渐变 Banner 轮播 ===== */
.banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 18px 0 32px;
    min-height: 340px;
    background: var(--grad-banner);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
    display: flex;
    align-items: center;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.28), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.14), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.banner::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -12%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 1;
    animation: floatOrb 12s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-24px, 30px) scale(1.08); }
}

.banner-slide {
    display: none;
    position: relative;
    z-index: 2;
    padding: 58px 52px;
    width: 100%;
    color: #fff;
}

.banner-slide.active {
    display: block;
    animation: fadeSlideIn 0.7s var(--ease);
}

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

.banner-slide h2 {
    font-size: 2.15rem;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
    padding-bottom: 0;
}

.banner-slide h2::after {
    display: none;
}

.banner-slide p {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 660px;
    margin-bottom: 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

.banner-dots {
    position: absolute;
    bottom: 22px;
    left: 52px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.banner-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s var(--ease);
}

.banner-dots button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.banner-dots button.active {
    background: #fff;
    width: 32px;
    border-radius: 999px;
    border-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ===== 通用区块 ===== */
section {
    padding: 56px 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--grad-soft);
    border-radius: var(--radius-lg);
    margin: 8px 0;
}

h1 {
    font-size: 2.25rem;
    line-height: 1.32;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    background: linear-gradient(120deg, var(--text) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

h2 {
    font-size: 1.85rem;
    margin-bottom: 26px;
    color: var(--text);
    position: relative;
    padding-bottom: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 4px;
    background: var(--grad-banner);
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(230, 57, 70, 0.4);
}

h3 {
    font-size: 1.32rem;
    margin: 30px 0 14px;
    color: var(--text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

h3::before {
    content: "";
    width: 6px;
    height: 20px;
    border-radius: 3px;
    background: var(--grad-banner);
    flex-shrink: 0;
}

h4 {
    font-size: 1.08rem;
    margin: 18px 0 8px;
    color: var(--text-secondary);
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.85;
}

strong {
    color: var(--text);
    font-weight: 700;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

/* ===== 数字统计卡片 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 36px 0;
}

.stat-card {
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-banner);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

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

.stat-number {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.2;
    background: var(--grad-banner);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 500;
}

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

.card {
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--grad-soft);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(230, 57, 70, 0.35);
}

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

.card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.18rem;
    position: relative;
    z-index: 1;
}

.card h3::before {
    display: none;
}

.card p {
    font-size: 0.94rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    padding: 10px;
    border-radius: 14px;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
    transition: transform 0.4s var(--ease);
}

.card:hover .card-icon {
    transform: scale(1.08) rotate(-4deg);
}

/* ===== 标签 ===== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.tag {
    background: var(--surface);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s var(--ease);
    cursor: default;
}

.tag:hover {
    color: #fff;
    background: var(--grad-banner);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.3);
}

/* ===== 作者信息 ===== */
.author-box {
    display: flex;
    gap: 18px;
    align-items: center;
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin: 28px 0;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.author-box:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.author-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--grad-banner);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.4);
}

.author-info h4 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-list {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.faq-item:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.faq-item.open {
    border-color: var(--primary);
    box-shadow: 0 6px 24px rgba(230, 57, 70, 0.14);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.faq-question:hover {
    color: var(--primary);
    background: rgba(230, 57, 70, 0.05);
}

.faq-item.open .faq-question {
    color: var(--primary);
}

.faq-question .arrow {
    transition: transform 0.4s var(--ease);
    display: inline-block;
    font-size: 0.7rem;
    color: var(--primary);
    flex-shrink: 0;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
    padding: 0 22px;
}

.faq-item.open .faq-answer {
    max-height: 800px;
    padding: 0 22px 20px;
}

.faq-answer p {
    margin-bottom: 8px;
    font-size: 0.94rem;
    line-height: 1.8;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ===== 文章列表 ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 26px;
}

.article-card {
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-banner);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(230, 57, 70, 0.3);
}

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

.article-card h3 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    line-height: 1.5;
    transition: color 0.25s var(--ease);
}

.article-card h3::before {
    display: none;
}

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

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

.article-meta span {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.article-card p {
    font-size: 0.92rem;
    margin-bottom: 16px;
    flex: 1;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s var(--ease), color 0.25s var(--ease);
}

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

/* ===== HowTo 步骤 ===== */
.howto-steps {
    counter-reset: step;
    margin-top: 28px;
}

.howto-step {
    position: relative;
    padding-left: 66px;
    margin-bottom: 30px;
    padding-bottom: 6px;
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-banner);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.35);
    transition: transform 0.4s var(--ease);
}

.howto-step:hover::before {
    transform: scale(1.1) rotate(-6deg);
}

.howto-step::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 50px;
    bottom: -22px;
    width: 2px;
    background: linear-gradient(to bottom, var(--border-strong), transparent);
}

.howto-step:last-child::after {
    display: none;
}

.howto-step h4 {
    margin-top: 6px;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.05rem;
}

.howto-step p {
    margin-bottom: 0;
    font-size: 0.94rem;
}

/* ===== 联系信息 ===== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(230, 57, 70, 0.3);
}

.contact-item svg {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    color: var(--primary);
    margin-top: 2px;
    transition: transform 0.35s var(--ease);
}

.contact-item:hover svg {
    transform: scale(1.12);
}

.contact-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 2px;
}

.contact-item span {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 友情链接 / 网站地图 ===== */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.friend-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all 0.3s var(--ease);
}

.friend-links a:hover {
    color: #fff;
    background: var(--grad-banner);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.28);
}

/* ===== 法律声明 ===== */
.legal {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin-top: 28px;
    padding: 26px;
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.legal h4 {
    font-size: 0.96rem;
    margin-bottom: 8px;
    margin-top: 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal h4:first-child {
    margin-top: 0;
}

.legal h4::before {
    content: "";
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: var(--grad-banner);
}

.legal p {
    font-size: 0.86rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 34px;
    right: 34px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--grad-banner);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.45);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    z-index: 999;
}

.back-to-top.show {
    display: flex;
    animation: popIn 0.35s var(--ease);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.6);
}

/* ===== 滚动动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal:nth-child(5) { transition-delay: 0.24s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* ===== 图片懒加载 ===== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.6s var(--ease);
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== 页脚 ===== */
footer {
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--border);
    padding: 56px 0 28px;
    margin-top: 56px;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-banner);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 36px;
    margin-bottom: 36px;
}

.footer-col h4 {
    color: var(--text);
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--grad-banner);
    border-radius: 2px;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.7;
    transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-bottom p {
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* ===== 响应式：平板 ===== */
@media (max-width: 992px) {
    .nav-links {
        gap: 0;
    }
    .nav-links a {
        padding: 8px 10px;
        font-size: 0.88rem;
    }
    .search-box input {
        width: 100px;
    }
    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.6rem; }
    .banner-slide { padding: 48px 40px; }
    .banner-slide h2 { font-size: 1.85rem; }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --radius: 16px;
        --radius-lg: 20px;
    }

    .container {
        padding: 0 16px;
    }

    .nav-inner {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        background: var(--surface);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        animation: menuDrop 0.3s var(--ease);
    }

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

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .nav-links a::after {
        display: none;
    }

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

    .search-box {
        display: none;
    }

    .logo {
        font-size: 1.08rem;
    }

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

    h1 {
        font-size: 1.55rem;
        line-height: 1.4;
    }

    h2 {
        font-size: 1.35rem;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 1.15rem;
        margin: 24px 0 12px;
    }

    section {
        padding: 40px 0;
    }

    section:nth-child(even) {
        border-radius: var(--radius);
        margin: 6px 0;
    }

    .banner {
        min-height: 300px;
        margin: 14px 0 24px;
    }

    .banner-slide {
        padding: 38px 24px 56px;
    }

    .banner-slide h2 {
        font-size: 1.45rem;
        margin-bottom: 12px;
    }

    .banner-slide p {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .banner-dots {
        left: 24px;
        bottom: 18px;
    }

    .banner::after {
        width: 260px;
        height: 260px;
        right: -20%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin: 26px 0;
    }

    .stat-card {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 1.7rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .card-grid,
    .article-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card,
    .article-card {
        padding: 22px 20px;
    }

    .card:hover,
    .article-card:hover,
    .stat-card:hover {
        transform: translateY(-3px);
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .author-avatar {
        width: 52px;
        height: 52px;
    }

    .howto-step {
        padding-left: 56px;
        margin-bottom: 24px;
    }

    .howto-step::before {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .howto-step::after {
        left: 18px;
        top: 44px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .legal {
        padding: 20px;
    }

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

    .footer-col p,
    .footer-col a {
        font-size: 0.85rem;
    }

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

    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
    }

    .faq-item.open .faq-answer {
        padding: 0 18px 18px;
    }

    .faq-answer {
        padding: 0 18px;
    }
}

@media (max-width: 420px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    h1 {
        font-size: 1.4rem;
    }

    .banner-slide h2 {
        font-size: 1.3rem;
    }
}

/* ===== 无障碍：减少动画 ===== */
@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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

    .card,
    .article-card,
    .stat-card,
    .faq-item {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}