/* ==========================================================================
   podo漫画 - 韩漫精选书库，热门连载每日追更
   完整样式表 | 渐变Banner · 圆角卡片 · 毛玻璃 · 响应式 · 暗色模式 · 滚动动画
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 基础重置与设计变量
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 品牌色 */
    --primary: #6C5CE7;
    --primary-light: #a29bfe;
    --primary-dark: #4a3f9e;
    --secondary: #fd79a8;
    --accent: #00cec9;
    --highlight: #ffeaa7;

    /* 中性色 */
    --bg: #f8f9fd;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --text: #2d3436;
    --text-light: #636e72;
    --text-lighter: #b2bec3;
    --border: #dfe6e9;
    --border-glass: rgba(255, 255, 255, 0.35);

    /* 阴影 */
    --shadow: 0 4px 20px rgba(108, 92, 231, 0.08);
    --shadow-hover: 0 8px 30px rgba(108, 92, 231, 0.15);
    --shadow-strong: 0 12px 40px rgba(108, 92, 231, 0.22);

    /* 圆角 */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-pill: 50px;

    /* 尺寸与动效 */
    --header-height: 70px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* 渐变 */
    --gradient-brand: linear-gradient(135deg, #6C5CE7 0%, #a29bfe 50%, #fd79a8 100%);
    --gradient-btn: linear-gradient(135deg, #6C5CE7 0%, #8b7cf0 100%);
    --gradient-text: linear-gradient(90deg, #6C5CE7, #fd79a8);
}

/* 暗色模式变量 */
[data-theme="dark"] {
    --bg: #1a1a2e;
    --bg-card: #16213e;
    --bg-glass: rgba(22, 33, 62, 0.72);
    --text: #e8e8e8;
    --text-light: #b0b0b0;
    --text-lighter: #6c6c8a;
    --border: #2a2a4a;
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   2. 全局元素
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
    -webkit-text-size-adjust: 100%;
}

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

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

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

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

[data-theme="dark"] a:hover {
    color: var(--primary-light);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
}

::selection {
    background: rgba(108, 92, 231, 0.25);
    color: var(--text);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

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

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

/* --------------------------------------------------------------------------
   3. 布局容器与通用区块
   -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: 70px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

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

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-text);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 20px auto 0;
}

main {
    padding-top: var(--header-height);
}

/* --------------------------------------------------------------------------
   4. 导航吸顶（毛玻璃）
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition),
        border-color var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
    border-bottom-color: transparent;
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    letter-spacing: -0.02em;
    transition: transform var(--transition);
}

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

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

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

/* 主导航 */
.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a {
    position: relative;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-text);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
}

.nav a:hover::after,
.nav a.active::after {
    transform: scaleX(1);
}

/* 头部操作区 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 搜索框 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 180px;
    padding: 8px 38px 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--text);
    font-size: 0.88rem;
    outline: none;
    transition: all var(--transition);
}

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

.search-box input:focus {
    border-color: var(--primary);
    width: 220px;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
    background: var(--bg-card);
}

.search-box button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.08);
}

.search-box button svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
}

/* 主题切换按钮 */
.theme-toggle,
.mobile-menu-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover,
.mobile-menu-btn:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
    transform: rotate(12deg);
}

.theme-toggle svg,
.mobile-menu-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-light);
    fill: none;
    stroke-width: 2;
    transition: stroke var(--transition);
}

.theme-toggle:hover svg,
.mobile-menu-btn:hover svg {
    stroke: var(--primary);
}

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

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
}

/* --------------------------------------------------------------------------
   5. Banner 轮播（渐变 + 毛玻璃）
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--gradient-brand);
    background-size: 200% 200%;
    animation: gradientShift 14s ease infinite;
    min-height: 520px;
    display: flex;
    align-items: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 装饰光斑 */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
}

.hero::before {
    width: 380px;
    height: 380px;
    background: rgba(255, 234, 167, 0.55);
    top: -120px;
    right: -80px;
    animation: floatBlob 12s ease-in-out infinite;
}

.hero::after {
    width: 300px;
    height: 300px;
    background: rgba(0, 206, 201, 0.5);
    bottom: -140px;
    left: -60px;
    animation: floatBlob 16s ease-in-out infinite reverse;
}

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

.hero-slides {
    position: relative;
    width: 100%;
    height: 520px;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1;
    color: #fff;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-content h1 span {
    color: var(--highlight);
    position: relative;
    display: inline-block;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.hero-content .btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.btn:hover::after {
    transform: translateX(120%);
}

.btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: var(--primary-dark);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

/* Banner 视觉插画 */
.hero-visual {
    flex: 0 0 380px;
    display: flex;
    justify-content: center;
    animation: floatY 6s ease-in-out infinite;
}

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

.hero-visual svg {
    width: 100%;
    max-width: 380px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* 轮播指示点 */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.hero-dots button:hover {
    border-color: #fff;
    transform: scale(1.2);
}

.hero-dots button.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

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

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

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

.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: var(--text-lighter);
}

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

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

/* --------------------------------------------------------------------------
   7. 数字统计
   -------------------------------------------------------------------------- */
.stats {
    padding: 50px 0;
    background: var(--bg-card);
    transition: background var(--transition);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px 10px;
    border-radius: var(--radius);
    transition: transform var(--transition), background var(--transition);
}

.stat-item:hover {
    transform: translateY(-6px);
    background: rgba(108, 92, 231, 0.05);
}

.stat-item h3 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   8. 品牌介绍 / 双栏图文
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 18px;
}

.about-text h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25em;
    bottom: 0.25em;
    width: 5px;
    border-radius: 3px;
    background: var(--gradient-text);
}

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

.about-visual {
    display: flex;
    justify-content: center;
}

.about-visual svg {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius);
    filter: drop-shadow(0 10px 30px rgba(108, 92, 231, 0.12));
    transition: transform var(--transition-slow);
}

.about-visual:hover svg {
    transform: translateY(-6px) scale(1.01);
}

/* --------------------------------------------------------------------------
   9. 产品优势卡片（毛玻璃 + 圆角）
   -------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--transition);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

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

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(253, 121, 168, 0.12));
    transition: transform var(--transition), background var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotate(-8deg) scale(1.08);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.22), rgba(253, 121, 168, 0.22));
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.8;
}

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

.article-card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.article-card::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

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

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

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

.article-meta span {
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    font-weight: 600;
}

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

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

.article-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.8;
    flex: 1;
    margin-bottom: 16px;
}

.article-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition), color var(--transition);
}

.article-link:hover {
    gap: 8px;
    color: var(--primary-dark);
}

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

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

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

.faq-item.open {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    background: var(--bg-card);
}

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

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

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--text-light);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--transition), stroke var(--transition);
}

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

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

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
    stroke: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

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

.faq-answer p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.9;
}

/* --------------------------------------------------------------------------
   12. HowTo 步骤时间线
   -------------------------------------------------------------------------- */
.howto-steps {
    max-width: 800px;
    margin: 0 auto;
    counter-reset: step;
}

.howto-step {
    position: relative;
    padding: 0 0 40px 70px;
    counter-increment: step;
    transition: transform var(--transition);
}

.howto-step:hover {
    transform: translateX(4px);
}

.howto-step:last-child {
    padding-bottom: 0;
}

.howto-step::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.3);
    transition: transform var(--transition), box-shadow var(--transition);
    z-index: 1;
}

.howto-step:hover::before {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.45);
}

.howto-step::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-light), var(--border));
}

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

.howto-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.howto-step p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.9;
}

/* --------------------------------------------------------------------------
   13. 联系方式
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info,
.contact-map {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: all var(--transition);
}

.contact-info:hover,
.contact-map:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
    align-items: flex-start;
    transition: transform var(--transition);
}

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

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(253, 121, 168, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition), background var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.22), rgba(253, 121, 168, 0.22));
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-item h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    word-break: break-word;
}

.contact-map {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-map svg {
    width: 100%;
    max-width: 360px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
}

.contact-map h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.contact-map p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   14. 页脚
   -------------------------------------------------------------------------- */
.footer {
    background: #1a1a2e;
    color: #b0b0b0;
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.25), transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand h3 svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.9;
    margin-bottom: 16px;
}

.footer-brand .footer-contact {
    font-size: 0.88rem;
    line-height: 2;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

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

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

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

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    color: #6c6c8a;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.footer-bottom p + p {
    margin-top: 4px;
}

.footer-bottom a {
    color: #8c8caa;
    transition: color var(--transition);
}

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

/* --------------------------------------------------------------------------
   15. 返回顶部
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 28px rgba(108, 92, 231, 0.55);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   16. 滚动入场动画
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

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

/* 子元素错峰入场 */
.features-grid .reveal:nth-child(2),
.articles-grid .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.features-grid .reveal:nth-child(3),
.articles-grid .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.features-grid .reveal:nth-child(4),
.articles-grid .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.features-grid .reveal:nth-child(5),
.articles-grid .reveal:nth-child(5) {
    transition-delay: 0.32s;
}

.features-grid .reveal:nth-child(6),
.articles-grid .reveal:nth-child(6) {
    transition-delay: 0.4s;
}

/* --------------------------------------------------------------------------
   17. 响应式布局
   -------------------------------------------------------------------------- */

/* 大平板 */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-visual {
        flex: 0 0 300px;
    }

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

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

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

/* 平板 / 手机横屏 */
@media (max-width: 768px) {
    :root {
        --header-height: 62px;
    }

    /* 移动导航 */
    .nav {
        display: none;
    }

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

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

    .nav.open a {
        width: 100%;
        padding: 12px 16px;
    }

    .nav.open a::after {
        display: none;
    }

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

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

    .search-box input:focus {
        width: 160px;
    }

    /* Banner */
    .hero-slide .container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 20px;
        padding-bottom: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .btn-group {
        justify-content: center;
    }

    .hero-visual {
        flex: 0 0 auto;
        max-width: 260px;
        margin-top: 10px;
    }

    .hero-slides {
        height: auto;
        min-height: 640px;
        padding: 40px 0;
    }

    .hero-slide {
        position: relative;
        display: none;
        align-items: center;
    }

    .hero-slide.active {
        display: flex;
    }

    .hero {
        min-height: auto;
    }

    /* 统计 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    /* 双栏转单栏 */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-visual {
        order: -1;
    }

    .about-visual svg {
        max-width: 340px;
    }

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

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

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

    .contact-info,
    .contact-map {
        padding: 28px;
    }

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

    .section {
        padding: 50px 0;
    }

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

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

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

    .about-text h2 {
        font-size: 1.45rem;
    }

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

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

    .search-box {
        display: none;
    }

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

    .hero-content p {
        font-size: 0.92rem;
    }

    .hero-slides {
        min-height: 600px;
    }

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

    .hero-content .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    .howto-step {
        padding-left: 60px;
    }

    .howto-step::before {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .howto-step::after {
        left: 19px;
        top: 40px;
    }

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

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

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

    .contact-info,
    .contact-map {
        padding: 24px 20px;
    }

    .footer {
        padding-top: 44px;
    }
}

/* --------------------------------------------------------------------------
   18. 无障碍与动效偏好
   -------------------------------------------------------------------------- */
@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: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

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

    main {
        padding-top: 0;
    }

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

    .section {
        padding: 20px 0;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
</style>