/* ===== 扁豆影院 全局样式表 ===== */
/* ===== 设计语言：现代影视、深色沉浸、毛玻璃质感 ===== */

/* ---------- CSS变量 ---------- */
:root {
    /* 主色板 */
    --primary: #2c5f8a;
    --primary-light: #3b7bb0;
    --primary-dark: #1d4466;
    --accent: #e8b84b;
    --accent-light: #f4d07a;
    --accent-dark: #c99f35;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;

    /* 背景 */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-footer: #0b1e2f;
    --bg-banner-top: #0b1e2f;
    --bg-banner-bottom: #1f3a4d;

    /* 文本 */
    --text-primary: #1f2937;
    --text-secondary: #334155;
    --text-heading: #111827;
    --text-footer: #e2e8f0;
    --text-footer-muted: #cbd5e1;
    --text-muted: #64748b;

    /* 边框与阴影 */
    --border-color: #d1d5db;
    --border-light: rgba(44, 95, 138, 0.15);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.10);

    /* 导航 */
    --nav-bg: rgba(255, 255, 255, 0.92);
    --nav-border: rgba(209, 213, 219, 0.5);

    /* 按钮 */
    --btn-text: #ffffff;
    --btn-primary-bg: var(--primary);
    --btn-primary-hover: var(--primary-light);
    --btn-accent-bg: var(--accent);
    --btn-accent-text: #0b1e2f;
    --btn-accent-hover: var(--accent-light);

    /* 表格 */
    --th-bg: var(--primary);
    --th-text: #ffffff;
    --td-border: rgba(209, 213, 219, 0.6);

    /* 毛玻璃 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* 渐变 */
    --gradient-primary: linear-gradient(145deg, #0b1e2f, #1f3a4d);
    --gradient-accent: linear-gradient(135deg, #f4d07a, #e8b84b);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(248,250,252,0.9));

    /* 布局 */
    --container-max: 1280px;
    --container-padding: 24px;
    --nav-height: 70px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    /* 字体 */
    --font-base: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
}

/* ---------- 暗色模式变量 ---------- */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-footer: #020617;
    --bg-banner-top: #0f172a;
    --bg-banner-bottom: #1e3a5f;

    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-heading: #f8fafc;
    --text-footer: #e2e8f0;
    --text-footer-muted: #94a3b8;
    --text-muted: #94a3b8;

    --border-color: #334155;
    --border-light: rgba(95, 158, 212, 0.2);

    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.6);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.7);

    --nav-bg: rgba(15, 23, 42, 0.92);
    --nav-border: rgba(51, 65, 85, 0.5);

    --btn-text: #0f172a;
    --btn-primary-bg: #5f9ed4;
    --btn-primary-hover: #7ab0e0;
    --btn-accent-bg: #f4d07a;
    --btn-accent-text: #0b1e2f;
    --btn-accent-hover: #e8b84b;

    --th-bg: #5f9ed4;
    --th-text: #0f172a;
    --td-border: rgba(51, 65, 85, 0.6);

    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(148, 163, 184, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

    --gradient-card: linear-gradient(145deg, rgba(30,41,59,0.95), rgba(15,23,42,0.9));
}

/* ---------- 重置与基础 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

h2 {
    font-size: var(--font-size-3xl);
    border-left: 6px solid var(--primary);
    padding-left: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gradient-accent);
    margin-top: 8px;
    border-radius: 2px;
}

h3 {
    font-size: var(--font-size-xl);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    font-weight: 600;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
}

ul, ol {
    margin: 0 0 1.25rem 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

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

small {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ---------- 容器 ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* ---------- 导航栏 ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    gap: 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(44, 95, 138, 0.3));
    transition: transform 0.3s ease;
}

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

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
    margin: 0;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: none;
    position: relative;
    padding: 8px 4px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

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

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

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

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

.theme-toggle,
.search-toggle,
.mobile-menu-btn {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.theme-toggle:hover,
.search-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 138, 0.15);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    padding: 4px 10px;
    border-radius: 10px;
}

/* ---------- 搜索框 ---------- */
.search-box {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 20px;
    margin: 12px 0 4px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    animation: slideDown 0.3s ease;
}

.search-box input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    padding: 8px 0;
}

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

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

/* ---------- Banner / 首屏 ---------- */
.banner {
    background: linear-gradient(145deg, var(--bg-banner-top), var(--bg-banner-bottom));
    color: #f1f5f9;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
    margin: 28px 0;
    position: relative;
    box-shadow: var(--shadow);
    overflow: hidden;
    isolation: isolate;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 184, 75, 0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(59, 123, 176, 0.2) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.banner h2 {
    color: #ffffff;
    border-left: 6px solid var(--accent);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-top: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.banner h2::after {
    background: var(--gradient-accent);
}

.banner p {
    color: #e2e8f0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.banner .btn {
    background: var(--gradient-accent);
    color: var(--btn-accent-text);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 16px;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(232, 184, 75, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 184, 75, 0.4);
    background: var(--gradient-accent);
    filter: brightness(1.05);
}

/* ---------- 按钮 ---------- */
.btn {
    background: var(--btn-primary-bg);
    color: var(--btn-text);
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(44, 95, 138, 0.2);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 95, 138, 0.3);
}

.btn:hover::after {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(44, 95, 138, 0.2);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--btn-accent-text);
    box-shadow: 0 4px 12px rgba(232, 184, 75, 0.3);
}

.btn-accent:hover {
    box-shadow: 0 8px 20px rgba(232, 184, 75, 0.4);
    background: var(--gradient-accent);
    filter: brightness(1.05);
}

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

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

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

.card h3 {
    margin-top: 0;
    color: var(--text-heading);
    font-size: 1.25rem;
}

.card p {
    color: var(--text-primary);
    margin-bottom: 0;
}

.card svg {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    color: var(--primary);
    padding: 12px;
    background: rgba(44, 95, 138, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card:hover svg {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(44, 95, 138, 0.3);
}

/* ---------- 文章列表 ---------- */
.article-list {
    display: grid;
    gap: 20px;
    margin: 28px 0;
}

.article-item {
    background: var(--bg-card);
    padding: 24px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.article-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.article-item:hover::before {
    transform: scaleY(1);
}

.article-item h4 {
    color: var(--text-heading);
    font-size: 1.2rem;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.article-item:hover h4 {
    color: var(--primary);
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.article-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
    display: grid;
    gap: 12px;
    margin: 28px 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 24px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.faq-question {
    padding: 18px 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-heading);
    font-size: 1.05rem;
    user-select: none;
    transition: color 0.3s ease;
}

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

.faq-question span {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: inline-block;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 95, 138, 0.1);
    border-radius: 50%;
}

.faq-answer {
    padding-bottom: 20px;
    color: var(--text-primary);
    display: none;
    animation: fadeIn 0.3s ease;
    line-height: 1.7;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(44, 95, 138, 0.15);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
    background: var(--primary);
    color: #ffffff;
}

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

/* ---------- 表格 ---------- */
.table-wrap {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
    background: var(--bg-card);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    min-width: 600px;
}

th {
    background: var(--th-bg);
    color: var(--th-text);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--td-border);
    color: var(--text-primary);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background: rgba(44, 95, 138, 0.05);
}

/* ---------- 联系信息 ---------- */
#contact p {
    margin-bottom: 12px;
    line-height: 1.8;
}

#contact strong {
    color: var(--text-heading);
}

/* ---------- 友情链接 ---------- */
section > small {
    display: block;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

section > small a {
    margin: 0 8px;
}

/* ---------- 页脚 ---------- */
.footer {
    background: var(--bg-footer);
    color: var(--text-footer);
    padding: 60px 0 40px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

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

.footer h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer a {
    color: var(--text-footer);
    text-decoration: none;
    border-bottom: none;
    transition: color 0.3s ease;
}

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

.footer p,
.footer li {
    color: var(--text-footer-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer ul {
    list-style: none;
    margin: 0;
}

.footer li {
    margin-bottom: 8px;
}

.copyright {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 24px;
    margin-top: 32px;
    color: var(--text-footer-muted);
    font-size: 0.85rem;
    text-align: center;
}

.copyright p {
    color: var(--text-footer-muted);
    margin-bottom: 0;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(44, 95, 138, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(44, 95, 138, 0.5);
    background: var(--primary-light);
}

/* ---------- 滚动动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

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

/* 延迟动画 */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ---------- 交互辅助 ---------- */
::selection {
    background: var(--primary);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* 焦点样式 */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

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

/* ---------- 响应式布局 ---------- */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
        padding-left: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--nav-bg);
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        box-shadow: var(--shadow-hover);
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        animation: slideDown 0.3s ease;
    }

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

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: var(--radius-xs);
        text-align: center;
        transition: background-color 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(44, 95, 138, 0.1);
    }

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

    .theme-toggle,
    .search-toggle {
        padding: 8px 12px;
    }

    .banner {
        padding: 32px 24px;
        border-radius: 16px;
    }

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

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

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

    .table-wrap {
        margin: 20px 0;
    }

    .article-item {
        padding: 20px;
    }

    .faq-item {
        padding: 0 16px;
    }
}

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

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .logo {
        font-size: 1.3rem;
    }

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

    .nav-actions {
        gap: 8px;
    }

    .theme-toggle,
    .search-toggle {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .banner {
        padding: 24px 20px;
        margin: 16px 0;
    }

    .banner .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .card {
        padding: 20px;
    }

    .article-item {
        padding: 16px;
    }

    .faq-question {
        font-size: 0.95rem;
    }
}

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

    body {
        background: #ffffff;
        color: #000000;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .banner {
        background: none;
        color: #000000;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .banner h2 {
        color: #000000;
    }

    .banner p {
        color: #333333;
    }

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