/* ============================================================
   小梦 · QQ 机器人插件官网样式
   设计语言参考 Linear / Stripe：极简、留白、黑白灰 + 单一强调色
   ============================================================ */

/* ---------- 设计变量（浅色 / 深色主题的所有变量集中在此管理） ---------- */
:root {
    /* 声明支持深浅两种调色板，让浏览器原生控件（滚动条等）也跟随 */
    color-scheme: light dark;
    /* 颜色：黑白灰为主 + 单一强调色 */
    --bg: #ffffff;
    --bg-soft: #fafafa;
    --bg-elev: #ffffff;
    --text: #0a0a0a;
    --text-soft: #525252;
    --text-mute: #a3a3a3;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.10);
    --border: #ededed;
    --border-strong: #e0e0e0;
    --shadow: rgba(10, 10, 10, 0.06);

    /* 主按钮变量：浅色模式为半透明近黑底白字（让 backdrop-filter 透出玻璃感） */
    --btn-primary-bg: rgba(15, 15, 20, 0.75);
    --btn-primary-color: #ffffff;
    --btn-primary-hover: rgba(59, 130, 246, 0.85);
    --btn-primary-glow: rgba(59, 130, 246, 0.35);

    /* 赞助柔和粉（爱发电调性）：浅色模式下含蓄 */
    --sponsor: #e8618c;                              /* 粉色文字/图标 */
    --sponsor-soft: rgba(232, 97, 140, 0.10);        /* 浅粉底 */
    --sponsor-border: rgba(232, 97, 140, 0.28);      /* 粉色描边 */

    /* 社交图标（GitHub / Gitee / 爱发电）：在浅色侧边栏背景上清晰可见 */
    --social-color: #555555;
    --social-github: #181717;
    --social-gitee: #c71d23;
    --gitee-fill: #c71d23;          /* Gitee 品牌红 */
    --gitee-fill-hover: #a0151b;    /* hover 加深 */
    --social-afdian: #e8618c;       /* 爱发电品牌粉 */
    --growth: #059669;              /* 增长态强调绿（数据统计"持续增长中"） */

    /* 尺寸 */
    --sidebar-w: 240px;
    --max-content: 1180px;
    --radius: 14px;

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

    /* 缓动 */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 深色主题变量覆盖 ---------- */
/* 通过 html[data-theme="dark"] 切换，所有颜色走变量，自动适配 */
html[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-soft: #131316;
    --bg-elev: #1e1e2e;
    --text: #e4e4e7;
    --text-soft: #a1a1aa;
    --text-mute: #71717a;
    /* 强调色保持不变 */
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.16);
    --border: #27272e;
    --border-strong: #3a3a45;
    --shadow: rgba(0, 0, 0, 0.4);

    /* 深色模式主按钮：半透明亮蓝底白字 + 发光，玻璃感与可读性兼顾 */
    --btn-primary-bg: rgba(59, 130, 246, 0.78);
    --btn-primary-color: #ffffff;
    --btn-primary-hover: rgba(96, 165, 250, 0.88);
    --btn-primary-glow: rgba(96, 165, 250, 0.5);

    /* 赞助柔和粉：深色模式下调亮，更醒目 */
    --sponsor: #f47ba1;
    --sponsor-soft: rgba(244, 123, 161, 0.16);
    --sponsor-border: rgba(244, 123, 161, 0.32);

    /* 社交图标：深色模式下调亮 */
    --social-color: #b4b4b4;
    --social-github: #f0f0f0;
    --social-gitee: #ff5a5f;
    --gitee-fill: #e8604c;          /* 亮红，深色背景下醒目 */
    --gitee-fill-hover: #ff7a6b;    /* hover 更亮 */
    --social-afdian: #ff92b3;       /* 亮粉 */
    --growth: #34d399;              /* 增长态强调绿（深色下调亮） */
}

/* ---------- 系统深色偏好兜底 ----------
   仅在 html 无 data-theme 属性时生效（即 JS 未执行的首帧）。
   让首屏即按系统偏好显示深色，避免浅→深闪烁；JS 执行后由 data-theme 接管。 */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #0a0a0a;
        --bg-soft: #131316;
        --bg-elev: #1e1e2e;
        --text: #e4e4e7;
        --text-soft: #a1a1aa;
        --text-mute: #71717a;
        --accent: #3b82f6;
        --accent-soft: rgba(59, 130, 246, 0.16);
        --border: #27272e;
        --border-strong: #3a3a45;
        --shadow: rgba(0, 0, 0, 0.4);
        --btn-primary-bg: rgba(59, 130, 246, 0.78);
        --btn-primary-color: #ffffff;
        --btn-primary-hover: rgba(96, 165, 250, 0.88);
        --btn-primary-glow: rgba(96, 165, 250, 0.5);
        --sponsor: #f47ba1;
        --sponsor-soft: rgba(244, 123, 161, 0.16);
        --sponsor-border: rgba(244, 123, 161, 0.32);
        --growth: #34d399;
    }
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    position: relative;
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 主题切换平滑过渡 */
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
    overflow-x: hidden;
}

/* 环境光晕：全屏呼吸感的淡蓝色径向微光 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
html[data-theme="dark"] body::before {
    background: radial-gradient(circle at 50% 40%, rgba(96, 165, 250, 0.08) 0%, transparent 60%);
}

/* 确保侧边栏与主内容显示在光晕之上 */
.sidebar, .content {
    position: relative;
    z-index: 1;
}

/* 数字等宽排版：统计值 / 版本号 / 价格统一紧凑整齐 */
.stat-value, .version-num, .sponsor-price, .stat-num {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* 卡片与按钮按压物理反馈 */
.card:active, .btn:active {
    transform: scale(0.97) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    transition-duration: 0.05s;
}

/* 结构性容器：主题切换时边框/背景平滑过渡（这些元素原本无 transition，安全补充） */
.sidebar, .content, .hero, .features, .changelog, .faq, .join, .footer,
.changelog-wrap, .changelog-list, .version, .faq-list, .faq-item, .version-nav,
.section-head, .hero-inner, .feature-grid, .join-inner {
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

/* ============================================================
   左侧固定导航
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: var(--bg);
    border-right: 1px solid var(--border);
    z-index: 100;
}

/* 品牌标识 */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 56px;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.brand-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 导航 */
.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    padding: 10px 12px;
    font-size: 14.5px;
    color: var(--text-soft);
    border-radius: 8px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-soft);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-soft);
}

/* 侧边栏赞助按钮：margin-top:auto 将按钮组锚定在侧边栏底部，柔和粉色调 */
.sidebar-sponsor {
    margin-top: auto;
    padding: 11px 16px;
    font-size: 14.5px;
    font-weight: 500;
    text-align: center;
    border-radius: 10px;
    color: var(--sponsor);
    background-color: var(--sponsor-soft);
    border: 1px solid var(--sponsor-border);
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
                transform 0.25s var(--ease), box-shadow 0.4s var(--ease),
                border-color 0.3s var(--ease);
}

.sidebar-sponsor:hover {
    color: #ffffff;
    background-color: var(--sponsor);
    border-color: var(--sponsor);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 97, 140, 0.35);
}

.sidebar-sponsor:active {
    transform: scale(0.97);
}

/* 夜间模式切换按钮：鸿蒙级毛玻璃 + 多层光晕 + 悬浮投影 */
.theme-toggle {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    /* 玻璃底色 + 表面高光渐变（左上亮） */
    background-color: rgba(255, 255, 255, 0.3);
    background-image:
        radial-gradient(ellipse 80% 60% at 30% 18%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.08) 55%, transparent 100%),
        linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--text-soft);
    /* 多层光晕：内顶高光 + 黑色投影 + 外圈微光 + 中层品牌光 */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 6px 18px rgba(0, 0, 0, 0.14),
        0 0 0 1px rgba(59, 130, 246, 0.12),
        0 0 20px rgba(59, 130, 246, 0.28);
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
                color 0.3s var(--ease), transform 0.2s var(--ease),
                box-shadow 0.4s var(--ease);
}

/* 发光光晕：径向渐变伪元素 + 呼吸脉动（仅动 scale，opacity 交由 hover 过渡，避免动画冲突） */
.theme-toggle::before {
    content: "";
    position: absolute;
    inset: -8px;            /* 外扩形成光圈 */
    border-radius: 18px;
    /* 浅色模式：淡蓝白光 */
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.38) 0%, rgba(59, 130, 246, 0) 70%);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    animation: glow-breathe 3.5s ease-in-out infinite;
    transition: opacity 0.3s var(--ease), inset 0.3s var(--ease),
                background 0.3s var(--ease);
}

/* 图标层置于光晕之上，自带发光 */
.theme-toggle svg {
    position: relative;
    z-index: 1;
    display: block;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.6));
    transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}

/* Hover：光晕扩散变亮，毛玻璃增亮，按钮微浮 */
.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.42);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 10px 26px rgba(0, 0, 0, 0.20),
        0 0 0 1px rgba(59, 130, 246, 0.22),
        0 0 32px rgba(59, 130, 246, 0.45);
}
.theme-toggle:hover::before {
    opacity: 1;
    inset: -14px;
}
.theme-toggle:hover svg {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 1));
}
.theme-toggle:hover .icon-moon { transform: rotate(-15deg); }
.theme-toggle:hover .icon-sun { transform: rotate(90deg); }

/* Click 按下反馈：缩放 + 光晕内收 */
.theme-toggle:active {
    transform: scale(0.95);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.16),
        0 0 14px rgba(59, 130, 246, 0.3);
}

/* 呼吸动画：光晕缓慢脉动（仅缩放，不与 hover 的 opacity/inset 过渡冲突） */
@keyframes glow-breathe {
    0%, 100% { transform: scale(0.95); }
    50%      { transform: scale(1.05); }
}

/* 图标显示：浅色模式显示月亮（提示切到夜间），深色模式显示太阳 */
.icon-sun { display: none; }
.icon-moon { display: block; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }

/* ---------- 深色模式适配：毛玻璃偏黑透，发光转蓝紫色 ---------- */
html[data-theme="dark"] .theme-toggle {
    background-color: rgba(0, 0, 0, 0.35);
    background-image:
        radial-gradient(ellipse 80% 60% at 30% 18%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.04) 55%, transparent 100%),
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 60%);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 6px 18px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(120, 132, 255, 0.15),
        0 0 24px rgba(120, 132, 255, 0.4);
}
html[data-theme="dark"] .theme-toggle::before {
    /* 深色模式：蓝紫色光晕 */
    background: radial-gradient(circle at center, rgba(120, 132, 255, 0.5) 0%, rgba(120, 132, 255, 0) 70%);
}
html[data-theme="dark"] .theme-toggle svg {
    filter: drop-shadow(0 0 6px rgba(120, 132, 255, 0.9));
}
html[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 26px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(120, 132, 255, 0.3),
        0 0 36px rgba(120, 132, 255, 0.6);
}
html[data-theme="dark"] .theme-toggle:hover::before {
    opacity: 1;
    inset: -14px;
}
html[data-theme="dark"] .theme-toggle:hover svg {
    filter: drop-shadow(0 0 10px rgba(140, 152, 255, 1));
}

/* 移动端菜单按钮（默认隐藏） */
.menu-toggle {
    display: none;
}

/* ============================================================
   右侧滚动内容
   ============================================================ */
.content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

/* 通用区块 */
section {
    padding: 100px 64px;
    scroll-margin-top: 24px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 64px;
}

.section-tag {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-desc {
    margin-top: 18px;
    font-size: 17px;
    color: var(--text-soft);
}

/* ============================================================
   Hero 区域
   ============================================================ */
.hero {
    padding: 120px 64px 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    width: 100%;
    max-width: var(--max-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
}

/* 左：文字 */
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--accent);
    padding: 6px 12px;
    background: var(--accent-soft);
    border-radius: 999px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: 60px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.accent { color: var(--accent); }

.hero-desc {
    margin-top: 36px;
    font-size: 18px;
    color: var(--text-soft);
    max-width: 480px;
}

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

/* 按钮 */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    /* 创建独立层叠上下文：让 ::after 外光晕 z-index:-1 不穿透到页面背景 */
    isolation: isolate;
    transition: background 0.3s var(--ease), color 0.3s var(--ease),
                transform 0.25s var(--ease), box-shadow 0.4s var(--ease),
                filter 0.4s var(--ease), border-color 0.3s var(--ease);
}

/* 主按钮：鸿蒙级玻璃光感
   层次：背景玻璃高光 → 边框高光 → 多层光晕（内高光/中品牌光/外漫反射）→ 黑色投影 */
.btn-primary {
    color: var(--btn-primary-color);
    /* 玻璃底色兜底（保证文字可读）+ 表面高光渐变（左上亮右下暗） */
    background-color: var(--btn-primary-bg);
    background-image:
        radial-gradient(ellipse 80% 60% at 30% 18%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.08) 55%, transparent 100%),
        linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 60%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
    /* 多层光晕叠加：内顶高光线 + 黑色投影（悬浮）+ 外圈微光 + 中层品牌光 */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(59, 130, 246, 0.12),
        0 0 22px var(--btn-primary-glow);
}

/* 外层漫反射光晕（z-index:-1 + 父级 isolation 隔离，半透明底色透出可见） */
.btn-primary::after {
    content: "";
    position: absolute;
    inset: -22px;
    border-radius: inherit;
    background: radial-gradient(circle at center,
        rgba(59, 130, 246, 0.22) 0%,
        rgba(139, 92, 246, 0.10) 45%,
        transparent 72%);
    filter: blur(18px);
    z-index: -1;
    pointer-events: none;
    transition: inset 0.4s var(--ease), filter 0.4s var(--ease), background 0.4s var(--ease);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 12px 32px rgba(0, 0, 0, 0.22),
        0 4px 10px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(59, 130, 246, 0.20),
        0 0 34px var(--btn-primary-glow);
}

.btn-primary:hover::after {
    inset: -36px;
    filter: blur(28px);
    background: radial-gradient(circle at center,
        rgba(59, 130, 246, 0.38) 0%,
        rgba(139, 92, 246, 0.20) 45%,
        transparent 72%);
}

/* 点击：光晕内收缩回 + 微缩，模拟按压玻璃 */
.btn-primary:active {
    transform: scale(0.97) translateY(0);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.18),
        0 0 14px var(--btn-primary-glow);
}
.btn-primary:active::after {
    inset: -8px;
    filter: blur(8px);
}

/* 深色模式：玻璃底偏黑透，光晕转蓝紫且更明显 */
html[data-theme="dark"] .btn-primary {
    background-image:
        radial-gradient(ellipse 80% 60% at 30% 18%, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.05) 55%, transparent 100%),
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 60%);
    border-color: rgba(255, 255, 255, 0.18);
}
html[data-theme="dark"] .btn-primary::after {
    background: radial-gradient(circle at center,
        rgba(96, 165, 250, 0.30) 0%,
        rgba(139, 92, 246, 0.16) 45%,
        transparent 72%);
}
html[data-theme="dark"] .btn-primary:hover::after {
    background: radial-gradient(circle at center,
        rgba(96, 165, 250, 0.46) 0%,
        rgba(139, 92, 246, 0.26) 45%,
        transparent 72%);
}

/* 幽灵按钮：玻璃边框质感（轻盈通透） */
.btn-ghost {
    color: var(--text);
    background-color: transparent;
    background-image:
        radial-gradient(ellipse 80% 60% at 30% 18%, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.05) 55%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        0 4px 16px rgba(0, 0, 0, 0.10),
        0 0 14px rgba(59, 130, 246, 0.10);
}

.btn-ghost::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: inherit;
    background: radial-gradient(circle at center,
        rgba(59, 130, 246, 0.14) 0%,
        rgba(139, 92, 246, 0.06) 45%,
        transparent 72%);
    filter: blur(14px);
    z-index: -1;
    pointer-events: none;
    transition: inset 0.4s var(--ease), filter 0.4s var(--ease), background 0.4s var(--ease);
}

.btn-ghost:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.40),
        0 8px 22px rgba(0, 0, 0, 0.14),
        0 0 26px rgba(59, 130, 246, 0.30);
}
.btn-ghost:hover::after {
    inset: -28px;
    filter: blur(24px);
    background: radial-gradient(circle at center,
        rgba(59, 130, 246, 0.26) 0%,
        rgba(139, 92, 246, 0.12) 45%,
        transparent 72%);
}
.btn-ghost:active {
    transform: scale(0.97);
}

/* 深色模式：幽灵按钮边框玻璃更通透 */
html[data-theme="dark"] .btn-ghost {
    border-color: rgba(255, 255, 255, 0.20);
}
html[data-theme="dark"] .btn-ghost::after {
    background: radial-gradient(circle at center,
        rgba(96, 165, 250, 0.18) 0%,
        rgba(139, 92, 246, 0.10) 45%,
        transparent 72%);
}
html[data-theme="dark"] .btn-ghost:hover::after {
    background: radial-gradient(circle at center,
        rgba(96, 165, 250, 0.34) 0%,
        rgba(139, 92, 246, 0.18) 45%,
        transparent 72%);
}

/* 赞助按钮：柔和粉玻璃，hover 填充品牌粉 + 粉色光晕 */
.btn-sponsor {
    color: var(--sponsor);
    background-color: var(--sponsor-soft);
    background-image:
        radial-gradient(ellipse 80% 60% at 30% 18%, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.05) 55%, transparent 100%);
    border: 1px solid var(--sponsor-border);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        0 4px 16px rgba(0, 0, 0, 0.10),
        0 0 14px rgba(232, 97, 140, 0.12);
}

.btn-sponsor::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: inherit;
    background: radial-gradient(circle at center,
        rgba(232, 97, 140, 0.16) 0%,
        rgba(244, 123, 161, 0.07) 45%,
        transparent 72%);
    filter: blur(14px);
    z-index: -1;
    pointer-events: none;
    transition: inset 0.4s var(--ease), filter 0.4s var(--ease), background 0.4s var(--ease);
}

.btn-sponsor:hover {
    color: #ffffff;
    background-color: var(--sponsor);
    border-color: var(--sponsor);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.40),
        0 8px 22px rgba(0, 0, 0, 0.14),
        0 0 26px rgba(232, 97, 140, 0.35);
}
.btn-sponsor:hover::after {
    inset: -28px;
    filter: blur(24px);
    background: radial-gradient(circle at center,
        rgba(232, 97, 140, 0.30) 0%,
        rgba(244, 123, 161, 0.14) 45%,
        transparent 72%);
}
.btn-sponsor:active {
    transform: scale(0.97);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

/* 右：动态几何图形（纯 CSS） */
.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 420px;
    margin-left: auto;
}

/* 共通几何元素：绝对定位居中 */
.geo {
    position: absolute;
    top: 50%;
    left: 50%;
    border-style: solid;
}

/* 外圈：旋转的圆环 */
.geo-ring {
    width: 100%;
    height: 100%;
    border-width: 1.5px;
    border-color: var(--border-strong);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 24s linear infinite;
}

/* 菱形：旋转的方框 */
.geo-diamond {
    width: 62%;
    height: 62%;
    border-width: 1.5px;
    border-color: var(--accent);
    border-radius: 8px;
    transform: translate(-50%, -50%) rotate(45deg);
    animation: spin-rev 18s linear infinite;
    opacity: 0.85;
}

/* 内层方块：脉动 */
.geo-square {
    width: 30%;
    height: 30%;
    border-width: 0;
    background: var(--accent);
    border-radius: 10px;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: pulse 4s var(--ease) infinite;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.35);
}

/* 浮动小点 */
.geo-dot {
    width: 14px;
    height: 14px;
    border-width: 0;
    background: var(--text);
    border-radius: 50%;
}

.dot-1 { top: 8%;  left: 18%; animation: float-a 6s ease-in-out infinite; }
.dot-2 { top: 82%; left: 12%; width: 10px; height: 10px; background: var(--accent); animation: float-b 7s ease-in-out infinite; }
.dot-3 { top: 22%; left: 88%; width: 8px;  height: 8px;  animation: float-c 5.5s ease-in-out infinite; }

/* 关键帧：自转 */
@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes spin-rev {
    from { transform: translate(-50%, -50%) rotate(45deg); }
    to   { transform: translate(-50%, -50%) rotate(-315deg); }
}

/* 关键帧：脉动 */
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1)   rotate(0deg);   border-radius: 10px; }
    50%      { transform: translate(-50%, -50%) scale(1.15) rotate(45deg); border-radius: 22px; }
}

/* 关键帧：浮动 */
@keyframes float-a {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(12px, -10px); }
}
@keyframes float-b {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-10px, -14px); }
}
@keyframes float-c {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-14px, 12px); }
}

/* ============================================================
   数据统计（四列等宽，Hero 与功能区之间的数字带）
   ============================================================ */
.stats {
    padding: 64px 64px 72px;
}

.stats-grid {
    max-width: var(--max-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* 列分隔线：极简细线，Stripe 式数字带（仅桌面五列时显示） */
.stat-cell {
    padding-left: 20px;
    border-left: 1px solid var(--border);
    transition: border-color 0.3s var(--ease);
}

/* 首列无线，保持开放式观感 */
.stat-cell:first-child {
    border-left: none;
    padding-left: 0;
}

/* 大号数字：五列布局适当缩小以适应宽度 */
.stat-value {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
}

/* 表情符号略小、去饱和贴近正文 */
.stat-emoji {
    font-size: 0.62em;
    margin-right: 6px;
    vertical-align: 0.08em;
    filter: grayscale(0.15);
}

/* 加号用强调色点亮 */
.stat-plus {
    font-size: 0.62em;
    color: var(--accent);
    margin-left: 2px;
}

/* 精确数值的单位后缀（如"次"）：弱化展示 */
.stat-suffix {
    font-size: 0.42em;
    font-weight: 500;
    color: var(--text-mute);
    margin-left: 4px;
    letter-spacing: 0;
}

/* 增长态强调：绿色突出活跃 */
.stat-growth {
    color: var(--growth);
}

.stat-name {
    margin-top: 10px;
    font-size: 15px;
    color: var(--text-soft);
}

/* 版本轨迹小字 */
.stat-note {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-mute);
    letter-spacing: 0.02em;
}

/* ============================================================
   功能介绍：2 + 1 错落布局
   ============================================================ */
.feature-grid {
    max-width: var(--max-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 24px;
    align-items: stretch; /* 让右列大卡片跟随左列总高 */
}

/* 左列：两小卡片纵向堆叠 */
.feature-col-small {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 右列：一个大卡片 */
.feature-col-large {
    height: 100%;
}

/* 卡片基础 */
.card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
                box-shadow 0.25s var(--ease),
                background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.card-small { min-height: 200px; }

.card-large {
    min-height: 100%; /* 跟随左列 4 张小卡片总高，形成错落 */
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-soft) 100%);
}

.card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--shadow);
}

/* 卡片图标（纯 CSS 绘制） */
.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
}

.card-icon span {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--accent);
}

.icon-manage span {
    border-radius: 50%;
    width: 8px;
    height: 8px;
    box-shadow: 12px 0 0 var(--accent), 0 0 0 var(--accent);
    position: relative;
    left: -6px;
}

/* 社交互动图标：两个交叠圆点 */
.icon-social span {
    border-radius: 50%;
    width: 14px;
    height: 14px;
    background: transparent;
    border: 3px solid var(--accent);
    position: relative;
}
.icon-social span::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    left: 10px;
    top: -3px;
    background: var(--accent-soft);
}

.card-title {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-text {
    margin-top: 12px;
    font-size: 15px;
    color: var(--text-soft);
}

/* 大卡片专属内容 */
.card-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 5px 11px;
    border-radius: 999px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.card-list {
    margin-top: 22px;
    display: grid;
    gap: 14px;
    flex: 1; /* 列表自动撑满中间空间，消除大卡片空白 */
}

.card-list li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    color: var(--text-soft);
}

/* 列表点：纯 CSS */
.card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 14px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* 数据统计 */
.card-stat {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    gap: 48px;
    border-top: 1px solid var(--border);
}

.stat-num {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.stat-unit {
    font-size: 15px;
    color: var(--text-mute);
    margin-left: 2px;
}

.stat-label {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-mute);
}

/* ============================================================
   更新日志（版本折叠区）
   ============================================================ */
/* 两栏布局：左侧版本列表 + 右侧版本导航侧边栏 */
.changelog-wrap {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 48px;
    align-items: start;
}

/* 版本导航侧边栏（随内容滚动，不固定） */
.version-nav {
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

.version-nav-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 14px;
}

.version-nav-list {
    display: flex;
    flex-direction: column;
}

.version-nav-item {
    padding: 9px 0;
    font-size: 13.5px;
    color: var(--text-soft);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: color 0.2s var(--ease), padding-left 0.2s var(--ease),
                background-color 0.3s var(--ease), border-color 0.3s var(--ease);
    user-select: none;
}

.version-nav-item:last-child {
    border-bottom: none;
}

.version-nav-item:hover {
    color: var(--text);
    padding-left: 4px;
}

/* 当前激活版本：强调色 + 加粗 + 左侧标记 */
.version-nav-item.active {
    color: var(--accent);
    font-weight: 600;
    padding-left: 4px;
}

.changelog-list {
    min-width: 0; /* 防止 grid 子项溢出 */
    border-top: 1px solid var(--border);
}

/* 显示更多历史版本按钮 */
.changelog-more {
    padding: 28px 0 8px;
    display: flex;
    justify-content: center;
}
.changelog-more-btn {
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 10px 28px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.changelog-more-btn:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}
.changelog-more-btn:active {
    transform: scale(0.97);
}
/* 展开后按钮文字「收起」时加点旋转感 */
.changelog-more.expanded .changelog-more-btn {
    color: var(--text-soft);
    background: var(--accent-soft);
    border-color: var(--accent-soft);
}

/* 单个版本项 */
.version {
    border-bottom: 1px solid var(--border);
}

/* 版本头：可点击 */
.version-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 4px;
    text-align: left;
    transition: color 0.2s var(--ease);
}

.version-meta {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.version-num {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    transition: color 0.2s var(--ease);
}

.version-date {
    font-size: 14px;
    color: var(--text-mute);
}

.version-head:hover .version-num { color: var(--accent); }

/* 折叠指示符：复用 + 号机制 */
.version-icon {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.version-icon::before,
.version-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--text-mute);
    transition: transform 0.3s var(--ease), background 0.2s var(--ease);
}

.version-icon::before { /* 横线 */
    width: 12px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}
.version-icon::after { /* 竖线 */
    width: 1.5px;
    height: 12px;
    transform: translate(-50%, -50%);
}

/* 展开时：竖线旋转消失，变 - 号 */
.version.open .version-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.version.open .version-num { color: var(--accent); }

/* 版本内容：max-height 过渡（纯 CSS 动画） */
.version-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.version-content {
    padding: 4px 4px 28px;
}

/* 分类组 */
.change-group {
    margin-bottom: 20px;
}
.change-group:last-child { margin-bottom: 0; }

/* 分类标签：极简，仅「新增」用强调色突出 */
.change-type {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-mute);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.type-added { color: var(--accent); }

/* 条目列表 */
.change-list {
    display: grid;
    gap: 8px;
}

.change-list li {
    position: relative;
    padding-left: 18px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-soft);
}

/* 列表标记：短横线，新增用强调色 */
.change-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 1.5px;
    background: var(--border-strong);
    border-radius: 2px;
}

/* 新增类条目：标记用强调色 */
.change-group:has(.type-added) .change-list li::before {
    background: var(--accent);
}

/* 删除类条目：文字弱化 */
.change-group:has(.type-removed) .change-list li {
    color: var(--text-mute);
}

/* ============================================================
   下载小梦（双线路卡片，上下排列）
   ============================================================ */
.download-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 线路卡片：信息居左、按钮居右（移动端纵向堆叠） */
.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
}

/* 推荐徽标：绿色强调（复用 --growth 增长色） */
.download-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--growth);
    border: 1px solid var(--growth);
    border-radius: 999px;
    padding: 2px 10px;
    margin-left: 10px;
    vertical-align: 2px;
}

.download-note {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--text-soft);
}

.download-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* 底部小提示：弱化居中 */
.download-tip {
    max-width: 760px;
    margin: 20px auto 0;
    font-size: 13px;
    color: var(--text-mute);
    text-align: center;
}

/* ============================================================
   FAQ 折叠区
   ============================================================ */
.faq-list {
    max-width: 760px;
    border-top: 1px solid var(--border);
}

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

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 4px;
    text-align: left;
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s var(--ease);
}

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

/* 折叠指示符：纯 CSS 绘制 + / */
.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--text-soft);
    transition: transform 0.3s var(--ease), background 0.2s var(--ease);
}

.faq-icon::before { /* 横线 */
    width: 12px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}
.faq-icon::after { /* 竖线 */
    width: 1.5px;
    height: 12px;
    transform: translate(-50%, -50%);
}

/* 展开时：旋转成 - 号（竖线消失） */
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-question { color: var(--text); }

/* 折叠答案：max-height 过渡动画（纯 CSS） */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.faq-answer-inner {
    padding: 0 4px 26px;
    font-size: 15.5px;
    color: var(--text-soft);
    max-width: 680px;
}

/* ============================================================
   支持小梦（赞助档位 · 横向滚动布局）
   参考电商"为你推荐"：固定卡宽 + overflow-x 滚动 + 渐变遮罩 + 箭头
   ============================================================ */
.sponsor-slider {
    position: relative;
    max-width: 1160px;
}

/* 滚动容器：隐藏滚动条，支持触摸滑动 / 滚轮（JS 转发） */
.sponsor-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    /* 轻量吸附：靠近卡位时对齐，不干扰自由滑动 */
    scroll-snap-type: x proximity;
    /* 顶部留 hover 上浮空间，底部留投影空间，避免溢出裁切 */
    padding: 6px 4px 20px;
    /* 隐藏原生滚动条（Firefox / 旧 IE / WebKit） */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sponsor-scroller::-webkit-scrollbar {
    display: none;
}

.sponsor-scroller:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: var(--radius);
}

/* 档位卡片：固定宽度产生可滚动空间；继承 .card 基础样式，内部纵向排布 */
.sponsor-card {
    flex: 0 0 min(300px, 82vw);
    width: min(300px, 82vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.sponsor-card:hover {
    border-color: var(--sponsor-border);
}

/* 右侧渐变遮罩：提示"还有更多内容"（滚到末尾时由 JS 加类隐藏） */
.sponsor-slider::before,
.sponsor-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 20px; /* 与滚动容器底部内边距对齐 */
    width: 56px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

/* 左遮罩（滚离起点后出现） */
.sponsor-slider::before {
    left: -1px;
    background: linear-gradient(90deg, var(--bg) 12%, transparent 100%);
    border-radius: var(--radius) 0 0 var(--radius);
}

/* 右遮罩（未滚到末尾时出现） */
.sponsor-slider::after {
    right: -1px;
    background: linear-gradient(270deg, var(--bg) 12%, transparent 100%);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* JS 状态类：可滚动时显示对应方向的遮罩 */
.sponsor-slider.has-scroll::after {
    opacity: 1;
}
.sponsor-slider.has-scroll.at-start::before {
    opacity: 0;
}
.sponsor-slider.has-scroll:not(.at-start)::before {
    opacity: 1;
}
.sponsor-slider.has-scroll.at-end::after {
    opacity: 0;
}

/* 左右箭头：玻璃圆形按钮，垂直居中悬于两侧 */
.sponsor-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-soft);
    background: var(--bg-elev);
    border: 1px solid var(--border-strong);
    box-shadow: 0 4px 16px var(--shadow);
    cursor: pointer;
    transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
                border-color 0.25s var(--ease), transform 0.25s var(--ease),
                box-shadow 0.25s var(--ease);
}

.sponsor-arrow:hover {
    color: #ffffff;
    background: var(--sponsor);
    border-color: var(--sponsor);
    box-shadow: 0 6px 20px rgba(232, 97, 140, 0.35);
}

.sponsor-arrow:active {
    transform: translateY(-50%) scale(0.94);
}

.sponsor-arrow-prev { left: -18px; }
.sponsor-arrow-next { right: -18px; }

.sponsor-arrow[hidden] {
    display: none;
}

/* 档位表情符号 */
.sponsor-emoji {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 18px;
}

/* 价格 */
.sponsor-price {
    margin-top: 10px;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--sponsor);
}

.sponsor-price span {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-mute);
    letter-spacing: 0;
}

/* 权益列表：粉色圆点 */
.sponsor-perks {
    margin: 18px 0 28px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
    color: var(--text-soft);
    flex: 1; /* 撑开剩余空间，让按钮贴底对齐 */
}

.sponsor-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sponsor-perks li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sponsor);
    flex-shrink: 0;
}

/* 卡片内赞助按钮撑满宽度 */
.sponsor-card .btn-sponsor {
    width: 100%;
}

/* 自定义金额档位：无固定价格，描述文字占据价格位置 */
.sponsor-custom-desc {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--text-soft);
    flex: 1; /* 撑开剩余空间，让按钮与其它卡片贴底对齐 */
}

/* ============================================================
   加入群引导
   ============================================================ */
.join {
    text-align: center;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.join-inner {
    max-width: 560px;
    margin: 0 auto;
}

.join-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.join-desc {
    margin-top: 16px;
    font-size: 16px;
    color: var(--text-soft);
}

/* 群号按钮：半透明蓝玻璃底（继承 .btn-primary 的玻璃高光与多层光晕） */
.join .btn-primary {
    margin-top: 0;
    background-color: rgba(59, 130, 246, 0.82);
}

.join .btn-primary:hover {
    background-color: rgba(96, 165, 250, 0.92);
}

/* 两个群号按钮横向排列 */
.join-groups {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.join-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.join-hint {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-mute);
    transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* ============================================================
   关于作者
   ============================================================ */
.about-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 44px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* 头像：CSS 绘制的首字圆形徽标（无图片） */
.about-avatar {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 50%;
}

.about-body {
    min-width: 0; /* 防止长文本撑破 flex 子项 */
}

.about-name {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 身份小徽标 */
.about-role {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-mute);
    padding: 4px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    letter-spacing: 0;
}

.about-text {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-soft);
}

/* 末行摘要：弱化展示 */
.about-meta {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--text-mute);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   页脚（简洁）
   ============================================================ */
.footer {
    padding: 36px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 13.5px;
    color: var(--text-mute);
}

.footer-group {
    font-size: 13.5px;
    color: var(--text-soft);
}

.footer-group span {
    color: var(--accent);
    font-weight: 500;
}

/* 底部工具行：夜间切换 + 社交链接横向排列 */
.sidebar-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

/* ============================================================
   社交链接（位于侧边栏底部，随侧边栏固定在左下区域）
   ============================================================ */
.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    /* 默认使用社交图标色变量，保证在侧边栏背景上的对比度 */
    color: var(--social-color);
    background: transparent;
    transition: color 0.3s var(--ease), transform 0.25s var(--ease),
                background-color 0.3s var(--ease);
}

.social-link svg {
    width: 26px;
    height: 26px;
    display: block;
}

/* hover 品牌色 + 放大 */
.social-link:hover {
    transform: scale(1.12);
}

.social-github:hover {
    color: var(--social-github);
    background: rgba(24, 23, 23, 0.08);
}

.social-gitee:hover {
    color: var(--social-gitee);
    background: rgba(199, 29, 35, 0.08);
}

/* Gitee 图标：默认即品牌红填充（不依赖 hover），保证品牌识别度与视觉权重 */
.gitee-icon {
    fill: var(--gitee-fill);
    transition: fill 0.3s var(--ease), filter 0.3s var(--ease);
}

/* hover 时 Gitee 图标加红色发光，与 GitHub 交互反馈一致 */
.social-gitee:hover .gitee-icon {
    fill: var(--gitee-fill-hover);
    filter: drop-shadow(0 0 6px rgba(199, 29, 35, 0.55));
}

/* 社交图标颜色变量（--social-* / --gitee-* / --social-afdian）
   统一定义在顶部 :root 与 html[data-theme="dark"] 主题块中 */
html[data-theme="dark"] .social-link {
    color: var(--social-color);
}
html[data-theme="dark"] .social-github:hover {
    background: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .social-gitee:hover {
    background: rgba(255, 90, 95, 0.15);
}
html[data-theme="dark"] .social-gitee:hover .gitee-icon {
    filter: drop-shadow(0 0 7px rgba(255, 90, 95, 0.7));
}

.social-afdian:hover {
    color: var(--social-afdian);
    background: rgba(232, 97, 140, 0.10);
    filter: drop-shadow(0 0 6px rgba(232, 97, 140, 0.55));
}

html[data-theme="dark"] .social-afdian:hover {
    background: rgba(255, 146, 179, 0.14);
    filter: drop-shadow(0 0 7px rgba(255, 146, 179, 0.7));
}

/* ============================================================
   响应式：平板
   ============================================================ */
@media (max-width: 1024px) {
    :root { --sidebar-w: 80px; }

    .sidebar { padding: 28px 20px; align-items: center; }
    .brand { gap: 0; margin-bottom: 48px; }
    .brand-name { display: none; }
    .nav-link { padding: 10px; text-align: center; }
    .sidebar-sponsor { padding: 11px; font-size: 13px; }

    .hero-title { font-size: 48px; }
    .section-title { font-size: 34px; }
    section { padding: 80px 40px; }
    .hero { padding: 100px 40px 80px; }

    /* 数据统计：平板端三列（5 项排成 3+2 两行），去除列分隔线改用间距 */
    .stats { padding: 56px 40px 64px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
    .stat-cell { border-left: none; padding-left: 0; }
    .stat-value { font-size: 2rem; }
}

/* ============================================================
   响应式：移动端（导航变顶栏 + 内容堆叠）
   ============================================================ */
@media (max-width: 768px) {
    :root { --sidebar-w: 100%; }

    /* 移动端隐藏版本导航侧边栏，更新日志改为单列 */
    .changelog-wrap {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .version-nav {
        display: none;
    }

    /* 侧边栏变为顶部固定栏 */
    .sidebar {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .brand { margin-bottom: 0; gap: 10px; }
    .brand-name { display: inline; font-size: 17px; }

    /* 导航折叠为下拉菜单 */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px;
        gap: 2px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    }

    .sidebar.open .nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-sponsor { display: none; }

    /* 关于作者卡片：移动端头像与正文纵向堆叠 */
    .about-card {
        flex-direction: column;
        gap: 20px;
        padding: 32px 26px;
    }

    /* 数据统计：移动端两列（5 项排成 2+2+1 三行），数字再缩 */
    .stats { padding: 48px 24px 56px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
    .stat-value { font-size: 1.9rem; }

    /* 下载线路卡片：移动端信息与按钮纵向堆叠，按钮撑满 */
    .download-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 26px 24px;
    }
    .download-btn { justify-content: center; }

    /* 赞助横向滚动：移动端靠触摸滑动，隐藏箭头，遮罩略窄 */
    .sponsor-arrow { display: none; }
    .sponsor-slider::before,
    .sponsor-slider::after { width: 36px; }

    /* 切换按钮移到顶栏右侧，紧贴汉堡按钮 */
    .theme-toggle {
        margin: 0 12px 0 auto;
        width: 38px;
        height: 38px;
    }

    /* 显示汉堡按钮 */
    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 16px;
    }
    .menu-toggle span {
        display: block;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    }
    .sidebar.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .sidebar.open .menu-toggle span:nth-child(2) { opacity: 0; }
    .sidebar.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* 内容不再留左边距 */
    .content { margin-left: 0; }

    section { padding: 64px 24px; }
    .hero { padding: 56px 24px 64px; min-height: auto; }

    /* Hero 改为单列堆叠 */
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-title { font-size: 38px; }
    .hero-visual { max-width: 260px; margin: 0 auto; }
    .hero-desc { font-size: 16px; }

    /* 功能 2+1 改为单列 */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .card-large { min-height: auto; }

    .section-title { font-size: 30px; }
    .section-head { margin-bottom: 40px; }

    .footer { padding: 28px 24px; }

    /* 移动端社交图标随侧边栏收起，无需额外定位 */
    .social-links { gap: 10px; }
    .social-link { width: 32px; height: 32px; }
    .social-link svg { width: 24px; height: 24px; }
}

@media (max-width: 420px) {
    .hero-title { font-size: 32px; }
    .section-title { font-size: 26px; }
    .card { padding: 24px; }
    .card-stat { gap: 32px; }
}

/* ============================================================
   入场动画（CSS，减少动效偏好时禁用）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
        scroll-behavior: auto !important;
    }
}
