/* ============================================================
   青苹果乐园影院 - 完整样式表
   设计风格：现代清爽 + 青苹果渐变 + 毛玻璃 + 深色模式
   ============================================================ */

/* ---------- 核心颜色变量 ---------- */
:root {
    --color-bg: #f0fdfa;
    --color-surface: rgba(255, 255, 255, 0.85);
    --color-surface-solid: #ffffff;
    --color-surface-2: #f0fdfa;
    --color-surface-glass: rgba(255, 255, 255, 0.6);
    --color-primary: #0f766e;
    --color-primary-light: #2dd4bf;
    --color-primary-dark: #115e59;
    --color-accent: #f59e0b;
    --color-heading: #0f172a;
    --color-body-text: #1e293b;
    --color-muted-text: #475569;
    --color-border: rgba(15, 118, 110, 0.15);
    --color-footer-bg: #0f172a;
    --color-footer-text: #cbd5e1;
    --color-footer-heading: #f8fafc;
    --color-link: #0f766e;
    --color-link-hover: #0d9488;
    --color-btn-bg: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    --color-btn-text: #ffffff;
    --shadow-sm: 0 2px 8px rgba(15, 118, 110, 0.08);
    --shadow-md: 0 4px 20px rgba(15, 118, 110, 0.12);
    --shadow-lg: 0 8px 32px rgba(15, 118, 110, 0.15);
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 100px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --blur: blur(12px);
    --gradient-banner: linear-gradient(135deg, #0f766e 0%, #0d9488 40%, #14b8a6 100%);
    --gradient-hero: linear-gradient(145deg, rgba(20, 184, 166, 0.1) 0%, rgba(255, 255, 255, 0) 50%, rgba(245, 158, 11, 0.05) 100%);
}

/* 暗色模式 */
[data-theme="dark"] {
    --color-bg: #0b1120;
    --color-surface: rgba(30, 41, 59, 0.85);
    --color-surface-solid: #1e293b;
    --color-surface-2: #0f172a;
    --color-surface-glass: rgba(30, 41, 59, 0.6);
    --color-primary: #2dd4bf;
    --color-primary-light: #5eead4;
    --color-primary-dark: #14b8a6;
    --color-accent: #fbbf24;
    --color-heading: #f1f5f9;
    --color-body-text: #e2e8f0;
    --color-muted-text: #94a3b8;
    --color-border: rgba(45, 212, 191, 0.15);
    --color-footer-bg: #020617;
    --color-footer-text: #94a3b8;
    --color-footer-heading: #f8fafc;
    --color-link: #2dd4bf;
    --color-link-hover: #5eead4;
    --color-btn-bg: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
    --color-btn-text: #0f172a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --gradient-banner: linear-gradient(135deg, #134e4a 0%, #0f766e 50%, #0d9488 100%);
    --gradient-hero: linear-gradient(145deg, rgba(45, 212, 191, 0.1) 0%, rgba(255, 255, 255, 0) 50%, rgba(251, 191, 36, 0.05) 100%);
}

/* ---------- 基础重置 ---------- */
* { 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", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--color-bg);
    background-image: radial-gradient(circle at 10% 20%, rgba(45, 212, 191, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    color: var(--color-body-text);
    line-height: 1.7;
    font-size: 1rem;
    transition: background-color 0.4s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 3rem 0 1.5rem; position: relative; padding-bottom: 0.75rem; }
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-banner);
    border-radius: 2px;
}
h3 { font-size: 1.4rem; margin: 1.5rem 0 0.8rem; }
h4 { font-size: 1.15rem; margin: 1.2rem 0 0.5rem; font-weight: 600; }
p { margin-bottom: 1.2rem; color: var(--color-body-text); }
a {
    color: var(--color-link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, opacity 0.2s ease;
    position: relative;
}
a:hover { color: var(--color-link-hover); text-decoration: none; opacity: 0.85; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--color-primary); color: #fff; }

/* ---------- 容器 ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ---------- 导航栏 ---------- */
.navbar {
    background: var(--color-surface-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: var(--color-surface-solid);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    gap: 1rem;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo svg {
    width: 32px;
    height: 32px;
    fill: var(--color-primary);
    transition: transform 0.3s ease;
}
.logo:hover svg { transform: rotate(20deg) scale(1.1); }
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}
.nav-links a {
    color: var(--color-body-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.25rem;
    position: relative;
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-banner);
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after { width: 100%; }

/* 搜索栏 */
.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-surface-solid);
    padding: 0.3rem 0.5rem 0.3rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.search-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}
.search-box input {
    background: transparent;
    border: none;
    padding: 0.4rem 0;
    color: var(--color-body-text);
    width: 160px;
    outline: none;
    font-size: 0.9rem;
    transition: width 0.3s ease;
}
.search-box input:focus { width: 200px; }
.search-box input::placeholder { color: var(--color-muted-text); opacity: 0.7; }
.search-box button {
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.search-box button:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}
.search-box svg { fill: #fff; width: 16px; height: 16px; }

/* 菜单按钮（移动端） */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-heading);
    background: none;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    line-height: 1;
}
.menu-toggle:hover { background: var(--color-surface-2); }

/* 主题切换按钮 */
.theme-toggle {
    background: var(--color-surface-solid);
    border: 1px solid var(--color-border);
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-heading);
    padding: 0.4rem 0.6rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--color-btn-bg);
    color: var(--color-btn-text);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-btn-text);
}
.btn:hover::before {
    width: 300px;
    height: 300px;
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-outline::before { background: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .btn-outline:hover { color: #0f172a; }

/* ---------- Hero Banner ---------- */
.hero {
    background: var(--gradient-hero), var(--color-surface-solid);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    margin: 2rem 0 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: var(--gradient-banner);
    opacity: 0.05;
    transform: rotate(15deg);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--color-heading) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
}
[data-theme="dark"] .hero h1 {
    background: linear-gradient(135deg, #f1f5f9 0%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.15rem;
    color: var(--color-muted-text);
    line-height: 1.8;
    max-width: 700px;
}
.hero .btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ---------- 毛玻璃卡片通用 ---------- */
.glass-card {
    background: var(--color-surface-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

/* ---------- 卡片网格 ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
    margin: 2.5rem 0;
}
.card {
    background: var(--color-surface-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-banner);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}
.card:hover::before { transform: scaleX(1); }
.card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card p { color: var(--color-body-text); font-size: 0.95rem; }
.card .icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ---------- 文章列表 ---------- */
.article-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
    padding-left: 1rem;
    border-left: 3px solid transparent;
}
.article-item:hover {
    border-left-color: var(--color-primary);
    padding-left: 1.5rem;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.03) 0%, transparent 100%);
}
.article-item:last-child { border-bottom: none; }
.article-item time {
    color: var(--color-muted-text);
    font-size: 0.85rem;
    display: inline-block;
    background: var(--color-surface-2);
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
}
.article-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}
.article-item:hover h4 { color: var(--color-primary); }
.article-item p { color: var(--color-muted-text); font-size: 0.95rem; margin-bottom: 0.5rem; }
.article-item a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
}

/* ---------- FAQ 样式 ---------- */
.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1.2rem 0;
    transition: all 0.3s ease;
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-heading);
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    user-select: none;
    gap: 1rem;
}
.faq-question:hover { color: var(--color-primary); }
.faq-question span {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--color-primary);
    flex-shrink: 0;
}
.faq-item.active .faq-question span { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    color: var(--color-body-text);
    padding: 0 1rem 0 0;
    line-height: 1.8;
    font-size: 0.95rem;
}
.faq-item.active .faq-answer {
    max-height: 800px;
    padding-top: 0.8rem;
    padding-bottom: 0.5rem;
}
.faq-item.active {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.03) 0%, transparent 100%);
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: var(--radius-sm);
}

/* ---------- 表格 ---------- */
.table-wrap {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface-solid);
}
table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    min-width: 600px;
}
th {
    background: var(--gradient-banner);
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 1rem 1.2rem;
    border-bottom: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
[data-theme="dark"] th { color: #0f172a; }
td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-body-text);
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td {
    background: rgba(15, 118, 110, 0.04);
}
tr:nth-child(even) td { background: rgba(15, 118, 110, 0.02); }
tbody tr:hover:nth-child(even) td { background: rgba(15, 118, 110, 0.06); }

/* ---------- Footer ---------- */
.footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-banner);
    opacity: 0.6;
}
.footer a {
    color: var(--color-footer-text);
    transition: all 0.3s ease;
}
.footer a:hover {
    color: #ffffff;
    text-decoration: none;
    padding-left: 5px;
}
.footer h4 {
    color: var(--color-footer-heading);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 700;
}
.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary-light);
    border-radius: 1px;
}
.footer .col p, .footer .col li {
    color: var(--color-footer-text);
    opacity: 0.85;
    font-size: 0.9rem;
    line-height: 1.8;
}
.footer ul { list-style: none; padding-left: 0; }
.footer ul li { margin-bottom: 0.6rem; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--color-footer-text);
    opacity: 0.7;
    font-size: 0.85rem;
}
.footer-bottom a { color: var(--color-footer-text); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 工具类 ---------- */
.flex-between {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.mt-2 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1.5rem; }
.text-muted { color: var(--color-muted-text); }
.text-center { text-align: center; }
.section-padding { padding: 4rem 0; }

/* ---------- 返回顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-banner);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    border: none;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.back-to-top:active { transform: scale(0.9); }
[data-theme="dark"] .back-to-top { color: #0f172a; }

/* ---------- 滚动动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s 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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- 渐变文字 ---------- */
.gradient-text {
    background: var(--gradient-banner);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- 图片懒加载占位 ---------- */
img[loading="lazy"] { background: var(--color-surface-2); }

/* ---------- 装饰元素 ---------- */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-banner);
    opacity: 0.05;
    pointer-events: none;
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
    border: 2px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ---------- 代码块 ---------- */
pre, code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    background: var(--color-surface-2);
    border-radius: 6px;
    padding: 0.2em 0.4em;
    font-size: 0.9em;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}
pre {
    padding: 1.2rem;
    overflow-x: auto;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: var(--color-body-text);
}

/* ---------- 视频容器 ---------- */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ---------- 徽章/标签 ---------- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--color-surface-2);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}
.badge:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
[data-theme="dark"] .badge:hover { color: #0f172a; }

/* ---------- 响应式布局 ---------- */
@media (max-width: 1024px) {
    .container { padding: 0 1.2rem; }
    .hero { padding: 3rem 2rem; }
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
}

@media (max-width: 768px) {
    body { font-size: 0.95rem; }
    .container { padding: 0 1rem; }
    
    /* 导航栏移动端 */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--color-surface-solid);
        width: 100%;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        gap: 0.5rem;
        backdrop-filter: var(--blur);
        -webkit-backdrop-filter: var(--blur);
        z-index: 999;
        animation: slideDown 0.3s ease;
    }
    .nav-links.show { display: flex; }
    .nav-links a { padding: 0.7rem 0; font-size: 1rem; border-bottom: 1px solid rgba(15, 118, 110, 0.05); }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a::after { display: none; }
    
    .menu-toggle { display: block; }
    .search-box { display: none; }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Hero 调整 */
    .hero { padding: 2.5rem 1.5rem; margin: 1.5rem 0 2rem; border-radius: 20px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    
    /* 按钮组 */
    .btn-group { flex-direction: column; width: 100%; }
    .btn-group .btn { width: 100%; text-align: center; }
    
    /* 卡片 */
    .card-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .card { padding: 1.5rem; }
    
    /* 标题 */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
    h3 { font-size: 1.2rem; }
    
    /* 表格 */
    .table-wrap { margin: 1.5rem 0; }
    
    /* Footer */
    .footer { padding: 3rem 0 1.5rem; border-radius: 24px 24px 0 0; }
    .footer .flex-between { flex-direction: column; gap: 2rem; }
    
    /* 返回顶部 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
    
    /* FAQ */
    .faq-question { font-size: 0.95rem; }
    
    /* 文章列表 */
    .article-item { padding: 1.2rem 0; padding-left: 0.8rem; }
    .article-item:hover { padding-left: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 0.8rem; }
    .hero { padding: 2rem 1.2rem; }
    .card { padding: 1.2rem; }
    .logo { font-size: 1.2rem; }
    .logo svg { width: 26px; height: 26px; }
    .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
    .theme-toggle { width: 34px; height: 34px; font-size: 1rem; }
    .faq-answer { font-size: 0.9rem; }
    .article-item h4 { font-size: 1.1rem; }
}

/* ---------- 减少动画偏好 ---------- */
@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, .footer, .back-to-top, .theme-toggle, .menu-toggle, .search-box {
        display: none !important;
    }
    body { background: #fff; color: #000; }
    .container { max-width: 100%; padding: 0; }
    .hero, .card, .glass-card { box-shadow: none; border: 1px solid #ddd; background: #fff; }
}

/* ---------- 辅助功能 ---------- */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--color-primary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 0 0 8px 8px;
    z-index: 2000;
    transition: top 0.3s ease;
}
.skip-to-content:focus { top: 0; }

/* ---------- 动画关键帧 ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* ---------- 渐变边框卡片 ---------- */
.gradient-border {
    position: relative;
    background: var(--color-surface-solid);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    padding: 1px;
    background: var(--gradient-banner);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ---------- 统计数字 ---------- */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-banner);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: var(--color-muted-text);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- 图标圆环 ---------- */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-banner);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
[data-theme="dark"] .icon-circle { color: #0f172a; }
.icon-circle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-lg);
}

/* ---------- 分割线 ---------- */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-border) 50%, transparent 100%);
    margin: 2rem 0;
    border: none;
}

/* ---------- 标签云 ---------- */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem 0;
}

/* ---------- 高亮框 ---------- */
.highlight-box {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.05) 0%, rgba(45, 212, 191, 0.08) 100%);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
    position: relative;
}
.highlight-box::before {
    content: '💡';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 1.5rem;
    background: var(--color-bg);
    border-radius: 50%;
    padding: 5px;
    box-shadow: var(--shadow-sm);
}

/* ---------- 平台特性 ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}
.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--color-surface-solid);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}
.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--color-heading);
}
.feature-desc {
    color: var(--color-muted-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- 步骤条 ---------- */
.steps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    counter-reset: step;
}
.step-item {
    flex: 1;
    min-width: 200px;
    position: relative;
    padding: 1.5rem;
    background: var(--color-surface-solid);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    counter-increment: step;
    transition: all 0.3s ease;
}
.step-item::before {
    content: counter(step);
    position: absolute;
    top: -15px;
    left: 20px;
    width: 30px;
    height: 30px;
    background: var(--gradient-banner);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .step-item::before { color: #0f172a; }
.step-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

/* ---------- 联系卡片特殊处理 ---------- */
#contact .card-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
#contact .card { text-align: center; padding: 2rem 1rem; }
#contact .card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
#contact .card p { color: var(--color-muted-text); font-size: 0.9rem; margin-bottom: 0; }

/* ---------- 品牌区 ---------- */
.brand-section {
    text-align: center;
    padding: 3rem 1rem;
    margin: 2rem 0;
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}
.brand-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-banner);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s ease-in-out infinite;
}
.brand-name {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-heading) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.brand-tagline {
    color: var(--color-muted-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- 响应式微调 ---------- */
@media (max-width: 600px) {
    .steps-container { flex-direction: column; }
    .step-item { min-width: 100%; }
    .feature-grid { grid-template-columns: 1fr; }
    .brand-name { font-size: 1.5rem; }
    .brand-logo { width: 60px; height: 60px; font-size: 2rem; }
    .highlight-box { padding: 1rem 1.2rem; font-size: 0.9rem; }
}

/* ---------- 动效优化 ---------- */
@media (hover: hover) {
    .card:hover { transform: translateY(-6px) scale(1.01); }
    .btn:hover { transform: translateY(-2px) scale(1.02); }
}

/* ---------- 内容区通用样式 ---------- */
.content-section {
    padding: 3rem 0;
}
.content-section + .content-section {
    border-top: 1px solid var(--color-border);
}

/* ---------- 页脚导航链接 ---------- */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.footer-links a {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-muted-text);
}
.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ---------- 加载动画 ---------- */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- 导航栏激活状态 ---------- */
.nav-links a.active {
    color: var(--color-primary);
    font-weight: 600;
}
.nav-links a.active::after {
    width: 100%;
}

/* ---------- 无障碍焦点 ---------- */
a:focus, button:focus, input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.3);
    border-radius: 4px;
}

/* ---------- 暗色模式下的边框调整 ---------- */
[data-theme="dark"] .card,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .step-item {
    border-color: rgba(255, 255, 255, 0.08);
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-banner);
    z-index: 2000;
    transition: width 0.1s ease;
}