/* ==========================================================================
   樱花漫画 - 全站样式表 (style.css)
   站点: douat.cn
   描述: 樱花树下看漫画，热门作品在线读
   风格: 樱花渐变 / 圆角卡片 / 毛玻璃 / 暗色模式 / 响应式
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌 (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* 品牌色 - 樱花渐变体系 */
    --brand-primary: #d94f70;
    --brand-primary-dark: #c23b5c;
    --brand-primary-light: #ff7a9c;
    --brand-secondary: #f7b5c1;
    --brand-accent: #ffb3c6;
    --brand-dark: #2b1b0e;
    --brand-light: #fff5f7;

    /* 渐变 */
    --gradient-brand: linear-gradient(135deg, #d94f70 0%, #ff8fa8 50%, #ffb3c6 100%);
    --gradient-brand-soft: linear-gradient(135deg, rgba(217, 79, 112, 0.12) 0%, rgba(255, 179, 198, 0.18) 100%);
    --gradient-hero: linear-gradient(160deg, #fff5f7 0%, #fdf2f4 40%, #ffe9ee 100%);
    --gradient-dark-hero: linear-gradient(160deg, #1a1214 0%, #241a1d 45%, #2b1e22 100%);
    --gradient-footer: linear-gradient(180deg, #2b1b0e 0%, #1f1309 100%);

    /* 文本 */
    --text-main: #1e1e1e;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    --text-inverse: #ffffff;

    /* 背景 */
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-soft: #fdf2f4;
    --bg-elevated: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-glass-strong: rgba(255, 255, 255, 0.86);

    /* 边框 */
    --border-color: #f0d9de;
    --border-soft: rgba(217, 79, 112, 0.14);
    --border-glass: rgba(255, 255, 255, 0.6);

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(217, 79, 112, 0.10);
    --shadow-xl: 0 24px 60px rgba(217, 79, 112, 0.16);
    --shadow-glow: 0 8px 24px rgba(217, 79, 112, 0.28);

    /* 圆角 */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    /* 过渡 */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

    /* 布局 */
    --container-max: 1200px;
    --header-height: 68px;
}

/* 暗色模式令牌 */
body.dark-mode {
    --text-main: #f0e6e8;
    --text-secondary: #c9b8bc;
    --text-muted: #9e8a8e;
    --text-inverse: #1a1214;

    --bg-body: #1a1214;
    --bg-card: #241a1d;
    --bg-soft: #2b1e22;
    --bg-elevated: #2e2126;
    --bg-glass: rgba(26, 18, 20, 0.72);
    --bg-glass-strong: rgba(26, 18, 20, 0.88);

    --border-color: #3d2a30;
    --border-soft: rgba(247, 181, 193, 0.14);
    --border-glass: rgba(247, 181, 193, 0.12);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 8px 24px rgba(217, 79, 112, 0.4);

    --gradient-hero: var(--gradient-dark-hero);
    --gradient-brand-soft: linear-gradient(135deg, rgba(217, 79, 112, 0.16) 0%, rgba(255, 179, 198, 0.08) 100%);
}

/* --------------------------------------------------------------------------
   2. 基础重置
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.75;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition), color var(--transition);
}

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

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

a:hover {
    color: var(--brand-primary-dark);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background: var(--brand-secondary);
    color: var(--brand-dark);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--brand-secondary);
    border-radius: var(--radius-pill);
    border: 2px solid var(--bg-soft);
}

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

/* --------------------------------------------------------------------------
   3. 布局工具类
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   4. 站点头部 - 毛玻璃吸顶导航
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition), border-color var(--transition),
        box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.logo:hover {
    transform: scale(1.03);
    color: var(--text-main);
}

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

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

.logo span {
    color: var(--brand-primary);
}

/* 导航链接 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}

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

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

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

/* 头部操作按钮 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-toggle,
.theme-toggle,
.menu-toggle {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
    flex-shrink: 0;
}

.search-toggle:hover,
.theme-toggle:hover,
.menu-toggle:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--bg-glass-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.search-toggle:active,
.theme-toggle:active,
.menu-toggle:active {
    transform: translateY(0) scale(0.95);
}

.menu-toggle {
    display: none;
}

/* 搜索栏 */
.search-bar {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 24px;
    border-top: 1px solid transparent;
    transition: max-height var(--transition-slow), opacity var(--transition),
        padding var(--transition), border-color var(--transition);
}

.search-bar.active {
    max-height: 120px;
    opacity: 1;
    padding: 12px 24px 16px;
    border-top-color: var(--border-color);
}

.search-bar input {
    width: 100%;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: var(--bg-soft);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition),
        background var(--transition);
}

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

.search-bar input:focus {
    border-color: var(--brand-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(217, 79, 112, 0.12);
}

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

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

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 6px;
    color: var(--text-muted);
    opacity: 0.6;
}

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

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

.breadcrumb li[aria-current="page"] {
    color: var(--text-secondary);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   6. Hero 首屏 - 渐变 Banner
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 56px 24px 72px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    background: var(--gradient-hero);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    overflow: hidden;
    transition: background var(--transition-slow);
}

.hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(217, 79, 112, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatBlob 14s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 179, 198, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatBlob 18s ease-in-out infinite reverse;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.6rem;
    line-height: 1.32;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero-content h1 em {
    font-style: normal;
    color: var(--brand-primary);
    position: relative;
    display: inline-block;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 em::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--brand-secondary);
    opacity: 0.45;
    border-radius: 4px;
    z-index: -1;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-brand);
    background-size: 160% 160%;
    color: #fff;
    box-shadow: var(--shadow-glow);
    background-position: 0% 50%;
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(217, 79, 112, 0.42);
    background-position: 100% 50%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-outline {
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--bg-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline:active {
    transform: translateY(-1px) scale(0.98);
}

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

.btn:hover svg {
    transform: translateX(3px);
}

/* Hero 视觉 */
.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual svg {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 20px 40px rgba(217, 79, 112, 0.18));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

/* --------------------------------------------------------------------------
   7. 数据统计
   -------------------------------------------------------------------------- */
.stats-section {
    padding: 40px 24px 56px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.stats-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-brand-soft);
    opacity: 0.5;
    pointer-events: none;
}

.stat-item {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 8px 0;
    transition: transform var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-color);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

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

/* --------------------------------------------------------------------------
   8. 通用区块
   -------------------------------------------------------------------------- */
.section {
    padding: 72px 0;
}

.section-alt {
    background: var(--bg-soft);
    transition: background var(--transition);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.section-header .sub-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 4px;
    margin: 16px auto 0;
}

/* --------------------------------------------------------------------------
   9. 卡片网格
   -------------------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition),
        border-color var(--transition);
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

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

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

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gradient-brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--brand-primary);
    transition: transform var(--transition-bounce), background var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(-6deg);
    background: var(--gradient-brand);
    color: #fff;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   10. 文章列表
   -------------------------------------------------------------------------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.article-item {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition), box-shadow var(--transition),
        border-color var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.article-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-slow);
}

.article-item:hover {
    transform: translateY(-4px);
    border-color: var(--brand-secondary);
    box-shadow: var(--shadow-md);
}

.article-item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.article-meta span:first-child {
    color: var(--brand-primary);
    font-weight: 600;
    background: var(--gradient-brand-soft);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
}

.article-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
    line-height: 1.5;
    transition: color var(--transition);
}

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

.article-item p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.75;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-primary);
    align-self: flex-start;
}

.read-more svg {
    transition: transform var(--transition);
}

.read-more:hover {
    color: var(--brand-primary-dark);
}

.read-more:hover svg {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   11. FAQ 手风琴
   -------------------------------------------------------------------------- */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

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

.faq-question:hover {
    color: var(--brand-primary);
    padding-left: 6px;
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-brand-soft);
    transition: transform var(--transition), background var(--transition);
    color: var(--brand-primary);
}

.faq-item.open .faq-icon {
    transform: rotate(135deg);
    background: var(--gradient-brand);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.35s ease;
    padding: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.85;
}

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

.faq-answer p {
    padding-right: 48px;
}

/* --------------------------------------------------------------------------
   12. HowTo 步骤
   -------------------------------------------------------------------------- */
.howto-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.howto-step {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 36px 24px 24px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition), box-shadow var(--transition),
        border-color var(--transition);
}

.howto-step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -16px;
    left: 24px;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-bounce);
}

.howto-step:hover {
    transform: translateY(-6px);
    border-color: var(--brand-secondary);
    box-shadow: var(--shadow-lg);
}

.howto-step:hover::before {
    transform: scale(1.08) translateY(-2px);
}

.howto-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.howto-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   13. 团队 / EEAT
   -------------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition), box-shadow var(--transition),
        border-color var(--transition);
}

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

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.6rem;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-bounce);
}

.team-card:hover .team-avatar {
    transform: scale(1.08) rotate(6deg);
}

.team-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.team-card .role {
    font-size: 0.85rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.team-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   14. 联系方式
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition),
        border-color var(--transition);
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-brand-soft);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

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

.contact-card:hover::before {
    opacity: 1;
}

.contact-card svg {
    position: relative;
    margin: 0 auto 18px;
    color: var(--brand-primary);
    transition: transform var(--transition-bounce);
}

.contact-card:hover svg {
    transform: scale(1.15);
}

.contact-card h3 {
    position: relative;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.contact-card p {
    position: relative;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   15. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--gradient-footer);
    color: #d4c5c9;
    padding: 60px 0 24px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(217, 79, 112, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

body.dark-mode .site-footer {
    background: #120c0e;
}

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

.footer-brand .logo {
    color: #fff;
    font-size: 1.3rem;
}

.footer-brand .logo span {
    color: var(--brand-secondary);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.85;
    margin-top: 16px;
    color: #b09fa4;
    max-width: 340px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-col ul a {
    color: #b09fa4;
    font-size: 0.88rem;
    transition: color var(--transition), padding-left var(--transition);
    display: inline-block;
}

.footer-col ul a:hover {
    color: var(--brand-secondary);
    padding-left: 4px;
}

.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: #8a7a7e;
}

.footer-bottom a {
    color: #8a7a7e;
}

.footer-bottom a:hover {
    color: var(--brand-secondary);
}

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

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

.back-to-top:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 36px rgba(217, 79, 112, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.98);
}

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

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

/* 卡片网格内错峰动画 */
.card-grid .reveal:nth-child(2),
.article-grid .reveal:nth-child(2),
.howto-steps .reveal:nth-child(2),
.team-grid .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.card-grid .reveal:nth-child(3),
.article-grid .reveal:nth-child(3),
.howto-steps .reveal:nth-child(3),
.team-grid .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.article-grid .reveal:nth-child(4),
.howto-steps .reveal:nth-child(4),
.team-grid .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.howto-steps .reveal:nth-child(5) {
    transition-delay: 0.32s;
}

.howto-steps .reveal:nth-child(6) {
    transition-delay: 0.4s;
}

.howto-steps .reveal:nth-child(7) {
    transition-delay: 0.48s;
}

/* --------------------------------------------------------------------------
   18. 响应式 - 平板 (≤1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        padding: 48px 24px 64px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual svg {
        max-width: 320px;
    }

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

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

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

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

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

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }
}

/* --------------------------------------------------------------------------
   19. 响应式 - 手机 (≤768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .container {
        padding: 0 18px;
    }

    /* 移动端导航 */
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-glass-strong);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        padding: 24px;
        gap: 6px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        animation: slideDown 0.3s ease;
    }

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

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

    .nav-links a {
        width: 100%;
        padding: 12px 8px;
        border-radius: var(--radius-sm);
        font-size: 1rem;
    }

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

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--bg-soft);
    }

    .menu-toggle {
        display: flex;
    }

    .search-toggle {
        display: none;
    }

    /* Hero */
    .hero {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        padding: 40px 18px 52px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    /* 统计 */
    .stats-section {
        padding: 28px 18px 44px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 28px 20px;
    }

    .stat-item:nth-child(odd)::after {
        display: block;
    }

    .stat-item:nth-child(even)::after {
        display: none;
    }

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

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

    /* 网格 */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

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

    /* 区块 */
    .section {
        padding: 48px 0;
    }

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

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.98rem;
    }

    .card {
        padding: 26px 22px;
    }

    .article-item {
        padding: 24px 20px;
    }

    .faq-question {
        font-size: 0.98rem;
        padding: 18px 0;
    }

    .faq-answer p {
        padding-right: 0;
    }

    /* 页脚 */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* 返回顶部 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* --------------------------------------------------------------------------
   20. 响应式 - 小屏手机 (≤480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo {
        font-size: 1.15rem;
    }

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

    .hero-content h1 {
        font-size: 1.55rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        padding: 24px 16px;
        gap: 16px;
    }

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

    .stat-item::after {
        display: none !important;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .card {
        padding: 22px 18px;
    }

    .card-icon {
        width: 46px;
        height: 46px;
    }

    .howto-step {
        padding: 30px 18px 20px;
    }

    .contact-card {
        padding: 28px 20px;
    }

    .faq-question {
        font-size: 0.92rem;
        gap: 12px;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* --------------------------------------------------------------------------
   21. 无障碍与偏好
   -------------------------------------------------------------------------- */
@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;
    }
}

/* 键盘焦点可见性 */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--brand-secondary);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* 打印样式 */
@media print {
    .site-header,
    .back-to-top,
    .hero-visual,
    .search-bar {
        display: none !important;
    }

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

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