﻿/* ============================================================
   DOUGLAS 私人空间 · Apple 官网设计语言
   设计系统 tokens → 光效视觉区 → 促销块 → 页脚
   ============================================================ */
:root {
    /* 字体 */
    --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
            "Microsoft YaHei", "Segoe UI", sans-serif;
    --font-mono: "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;

    /* 颜色 */
    --bg: #04050a;
    --ink: #f5f5f7;
    --ink-2: #86868b;      /* 次级文字 */
    --ink-3: #6e6e73;      /* 弱文字 */
    --link: #2997ff;       /* Apple 链接蓝 */
    --blue: #0a84ff;
    --purple: #bf5af2;
    --green: #30d158;
    --orange: #ff9f0a;
    --pink: #ff375f;

    /* 语义表面（dark 默认值 = 原硬编码） */
    --nav-bg: rgba(22, 22, 23, .8);
    --nav-bg-solid: rgba(22, 22, 23, .97);
    --hairline: rgba(255, 255, 255, .08);        /* 极细分隔线 */
    --hairline-strong: rgba(255, 255, 255, .16); /* 输入框/弹窗描边 */
    --pill: rgba(255, 255, 255, .08);            /* 标签/胶囊底 */
    --pill-hover: rgba(255, 255, 255, .16);
    --input-bg: rgba(255, 255, 255, .07);
    --input-bg-focus: rgba(255, 255, 255, .1);
    --input-border: rgba(255, 255, 255, .18);
    --modal-input-bg: rgba(0, 0, 0, .35);
    --modal-bg: rgba(28, 28, 30, .92);
    --overlay: rgba(0, 0, 0, .55);
    --modal-shadow: 0 30px 90px rgba(0, 0, 0, .6);
    --footer-bg: #0a0a0a;
    --btn-hover: #0071e3;
    --danger: #ff6961;
    --selection-bg: rgba(41, 151, 255, .35);
    --link-border: rgba(41, 151, 255, .4);       /* 文字下划线 */
    --ok-bg: rgba(48, 209, 88, .12); --ok-border: rgba(48, 209, 88, .4);
    --warn-bg: rgba(255, 159, 10, .15);
    --err-bg: rgba(255, 69, 58, .12); --err-border: rgba(255, 69, 58, .4);
    --info-bg: rgba(41, 151, 255, .12); --info-border: rgba(41, 151, 255, .35);
    --chip-hover-bg: rgba(41, 151, 255, .15); --chip-hover-border: rgba(41, 151, 255, .5);
    --title-grad: linear-gradient(180deg, #fff, #86868b);  /* 数字标题 */
    --shine-a: #86868b; --shine-b: #ffffff;      /* 扫光文字 */
    --shine-c: #6e6e73; --shine-d: #f5f5f7;

    /* 主题切换控件（两套主题同形，只换色） */
    --ts-bg: rgba(255, 255, 255, .08);           /* 轨道 */
    --ts-border: rgba(255, 255, 255, .14);
    --ts-text: var(--ink-3);
    --ts-on-bg: var(--link);                      /* 选中段 */
    --ts-on-text: #fff;

    /* 字号阶梯 */
    --text-xs: 12px; --text-sm: 14px; --text-base: 17px;
    --text-lg: 21px; --text-xl: 28px; --text-2xl: 40px;
    --text-3xl: 56px; --text-4xl: 80px;

    /* 间距 */
    --space-2: 8px; --space-4: 16px; --space-6: 24px;
    --space-8: 32px; --space-12: 48px; --space-16: 64px;
    --space-24: 96px; --space-32: 128px;

    /* 圆角 & 阴影 */
    --radius-tile: 28px;
    --radius-input: 14px;
}

/* ============================================================
   BRIGHT · 瑞士国际主义暖色版（黑白灰米 + 单点陶土红强调）
   排版/布局与 dark 完全一致，仅替换 tokens
   ============================================================ */
html[data-theme="bright"] {
    --bg: #faf6ef;                 /* 暖米白底 */
    --ink: #24211c;                /* 暖墨 */
    --ink-2: #6e675c;
    --ink-3: #8f877a;
    --link: #c4552e;               /* 单点强调：陶土红 */
    --blue: #c4552e;
    --purple: #d97b4a;
    --green: #4a7c59;
    --orange: #d97742;
    --pink: #c96f4a;

    --nav-bg: rgba(250, 246, 240, .82);
    --nav-bg-solid: rgba(250, 246, 240, .98);
    --hairline: rgba(30, 25, 18, .12);
    --hairline-strong: rgba(30, 25, 18, .18);
    --pill: rgba(30, 25, 18, .05);
    --pill-hover: rgba(30, 25, 18, .1);
    --input-bg: rgba(255, 255, 255, .65);
    --input-bg-focus: #fff;
    --input-border: rgba(30, 25, 18, .2);
    --modal-input-bg: rgba(30, 25, 18, .06);
    --modal-bg: rgba(250, 246, 240, .97);
    --overlay: rgba(45, 38, 30, .45);
    --modal-shadow: 0 18px 50px rgba(45, 38, 30, .22);
    --footer-bg: #2b2419;          /* 暖深棕页脚 */
    --btn-hover: #b34a26;
    --danger: #c0392b;
    --selection-bg: rgba(196, 85, 46, .28);
    --link-border: rgba(196, 85, 46, .45);
    --ok-bg: rgba(74, 124, 89, .14); --ok-border: rgba(74, 124, 89, .5);
    --warn-bg: rgba(217, 119, 66, .15);
    --err-bg: rgba(192, 57, 43, .1); --err-border: rgba(192, 57, 43, .45);
    --info-bg: rgba(196, 85, 46, .1); --info-border: rgba(196, 85, 46, .4);
    --chip-hover-bg: rgba(196, 85, 46, .12); --chip-hover-border: rgba(196, 85, 46, .55);
    --title-grad: linear-gradient(180deg, #2b2419, #8f877a);
    --shine-a: #8f877a; --shine-b: #2b2419;
    --shine-c: #8f877a; --shine-d: #2b2419;
    --ts-bg: rgba(31, 28, 23, .06);
    --ts-border: rgba(31, 28, 23, .2);
    --ts-text: #8b8377;
    --ts-on-bg: #1f1c17;
    --ts-on-text: #f7f3ec;
}
/* bright 下 WebGL 特效整体淡化，留暖色氛围 */
html[data-theme="bright"] .hero-light,
html[data-theme="bright"] canvas.hero-canvas,
html[data-theme="bright"] canvas.galaxy-canvas,
html[data-theme="bright"] canvas.orb-canvas,
html[data-theme="bright"] canvas.waves-canvas { opacity: .14; }
html[data-theme="bright"] .hero-light { background: rgba(196, 85, 46, .12); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    /* 滚动吸附：默认关闭，仅首页（html.snap-on）开启逐屏吸附
       避免非首页内容不满一屏时页脚被强制吸到视口（自动跳到底部） */
}
html.snap-on {
    scroll-snap-type: y mandatory;
}
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
::selection { background: var(--selection-bg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 顶部导航（Apple 毛玻璃） ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline);
}
.nav-inner {
    max-width: 1024px;
    margin: 0 auto;
    height: 44px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.01em;
}
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
    color: var(--ink-2);
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 12px;
    transition: color .2s;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); }
.nav-avatar { margin-left: 8px; }
.nav-user {
    color: var(--ink-3);
    font-size: 12px;
    padding: 4px 10px;
    white-space: nowrap;
}
.avatar-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 17px;
    background: var(--pill-hover);
    transition: transform .2s;
}
.avatar-box:hover { transform: scale(1.08); }
.nav-hamburger {
    display: none;
    background: none; border: none;
    color: var(--ink); font-size: 18px;
    cursor: pointer;
}

/* ===== 通用容器 ===== */
.container { max-width: 1024px; margin: 0 auto; padding: 0 20px 80px; }

/* ===== 滚动进度指示条 ===== */
#scroll-progress {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 40vh;
    border-radius: 999px;
    background: var(--pill);
    z-index: 300;
}
#scroll-progress-bar {
    width: 100%;
    height: 0%;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--link), var(--purple));
    transition: height .1s linear;
}

/* ===== Hero：球体视觉区（文字左对齐） ===== */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 140px 20px 80px;
    padding-left: clamp(24px, 8vw, 96px);
    overflow: hidden;
    scroll-snap-align: start;
}
.hero > *:not(.hero-light) { position: relative; z-index: 2; }
.hero-block { max-width: 760px; }
.hero-kicker {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--link);
    margin-bottom: var(--space-4);
}
.hero h1 {
    font-size: clamp(60px, 14vw, 148px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: .95;
    color: var(--ink);
    user-select: none;
    margin-bottom: var(--space-6);
}
/* TextPressure 字符（鼠标靠近时被"压扁"变亮） */
.fx-pressure-title { white-space: nowrap; }
.fx-pressure-char {
    display: inline-block;
    will-change: transform, opacity;
    transform-origin: 50% 100%;
    opacity: .55;
}
.hero-tagline {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
    min-height: 44px;
    margin-bottom: var(--space-2);
}
.hero-tagline .cursor {
    display: inline-block;
    width: 2px; height: .95em;
    background: var(--link);
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-sub {
    color: var(--ink-2);
    font-size: var(--text-base);
    max-width: 520px;
    margin: var(--space-4) 0 var(--space-8);
}
.hero-links { display: flex; gap: var(--space-8); }
.hero-links a { font-size: var(--text-lg); }
.hero-links a::after { content: " ›"; font-size: 22px; }
.scroll-hint {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    color: var(--ink-3);
    font-size: 12px;
    letter-spacing: 1.5px;
    animation: floaty 2.4s ease-in-out infinite;
    z-index: 1;
}
@keyframes floaty { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ===== 标题屏（每屏：标题 + 小字 + 链接，文字左对齐） ===== */
.screen {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: var(--space-24) clamp(24px, 8vw, 96px);
    scroll-snap-align: start;
}
.screen-block {
    max-width: 640px;
    will-change: transform, opacity;
}
.screen-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--link);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
}
.screen h2 {
    font-size: clamp(44px, 7vw, 84px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: var(--space-8);
}
.screen .lead {
    color: var(--ink-2);
    font-size: clamp(17px, 2.2vw, 21px);
    max-width: 480px;
    margin: 0;
    line-height: 1.7;
}
.screen-link-wrap { margin-top: var(--space-12); }
.screen-link {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--link);
    padding: 0 0 3px;
    border-bottom: 1px solid var(--link-border);
    transition: border-color .2s;
}
.screen-link:hover { border-color: var(--link); text-decoration: none; }
.screen-link::after { content: " ›"; font-size: 22px; }
.stats {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
    margin-top: var(--space-12);
    flex-wrap: wrap;
}
.stat-num {
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -.01em;
    background: var(--title-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--ink-2); font-size: var(--text-sm); margin-top: 4px; }

/* ===== 滚动浮起字符（React Bits ScrollFloat 转译） ===== */
.fx-char {
    display: inline-block;
    will-change: transform, opacity;
    transform-origin: 50% 0%;
    color: inherit;
    opacity: 1;
}

/* ===== 高光扫过文字（React Bits ShinyText 转译） ===== */
.fx-shiny,
.hero h1.fx-shiny {
    position: relative;
    display: inline-block;
    background: linear-gradient(
        90deg,
        var(--shine-a) 0%,
        var(--shine-a) 45%,
        var(--shine-b) 50%,
        var(--shine-a) 55%,
        var(--shine-a) 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fx-shine var(--shiny-duration, 2s) linear infinite;
}
@keyframes fx-shine {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}
.fx-shiny.dim {
    background: linear-gradient(
        90deg,
        var(--shine-c) 0%,
        var(--shine-c) 40%,
        var(--shine-d) 50%,
        var(--shine-c) 60%,
        var(--shine-c) 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fx-shine var(--shiny-duration, 2s) linear infinite;
}
.status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--pill-hover);
    color: var(--ink-2);
}
.status-badge.ongoing { background: var(--warn-bg); color: var(--orange); }
.status-badge.done { background: var(--ok-bg); color: var(--green); }

/* ===== 标签 ===== */
.tag {
    display: inline-block;
    font-size: 12px;
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--pill);
    border: 1px solid var(--hairline-strong);
    color: var(--ink-2);
}
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: var(--space-4); }

/* ===== AI CTA ===== */
.cta-row { text-align: center; margin-top: var(--space-12); }
.btn {
    display: inline-block;
    padding: 13px 34px;
    border-radius: 999px;
    font-size: var(--text-base);
    font-weight: 600;
    background: var(--link);
    color: #fff;
    transition: background .2s, transform .2s;
}
.btn:hover { background: var(--btn-hover); transform: scale(1.03); text-decoration: none; }
.btn-ghost {
    background: var(--pill);
    border: 1px solid var(--hairline-strong);
    color: var(--ink);
}
.btn-ghost:hover { background: var(--pill-hover); }

/* ===== 表单 ===== */
.form-group { margin-bottom: var(--space-4); }
.form-group label {
    display: block;
    font-size: var(--text-sm);
    color: var(--ink-2);
    margin-bottom: 6px;
    font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-input);
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--ink);
    font-size: var(--text-base);
    font-family: inherit;
    outline: none;
    transition: border-color .2s, background .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--link);
    background: var(--input-bg-focus);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ===== 消息 ===== */
.msg {
    padding: 13px 18px;
    border-radius: 12px;
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}
.msg-ok { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--green); }
.msg-err { background: var(--err-bg); border: 1px solid var(--err-border); color: var(--danger); }
.msg-info { background: var(--info-bg); border: 1px solid var(--info-border); color: var(--link); }

/* ===== 任务编号 ===== */
.task-code {
    font-family: var(--font-mono);
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: var(--link);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
}
.file-list { margin-top: var(--space-2); }
.file-list a {
    display: inline-block;
    margin: 4px 8px 0 0;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: var(--link);
    color: #fff;
}
.file-list a:hover { background: var(--btn-hover); text-decoration: none; }

/* ===== 无卡片列表（关于/隐私页） ===== */
.plain-list { max-width: 700px; margin: 0 auto; text-align: left; }
.plain-item {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-6) 4px;
    border-bottom: 1px solid var(--hairline);
}
.plain-item:last-child { border-bottom: none; }
.plain-icon { font-size: 32px; flex-shrink: 0; }
.plain-title { font-size: var(--text-lg); font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.plain-desc { font-size: var(--text-base); color: var(--ink-2); line-height: 1.6; }

/* ===== 技术徽章 ===== */
.tech-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}
.tech-chip {
    padding: 10px 26px;
    border-radius: 999px;
    font-size: var(--text-base);
    font-weight: 600;
    background: var(--pill);
    border: 1px solid var(--hairline-strong);
    color: var(--ink);
    transition: all .2s;
}
.tech-chip:hover {
    background: var(--chip-hover-bg);
    border-color: var(--chip-hover-border);
    transform: translateY(-2px);
}

/* ===== 登录弹窗（Apple 风） ===== */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    z-index: 300;
    background: var(--overlay);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
    position: relative;
    background: var(--modal-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--hairline-strong);
    border-radius: 22px;
    padding: 34px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--modal-shadow);
    animation: modalIn .3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(.95) translateY(12px); }
    to { opacity: 1; transform: none; }
}
.modal-close {
    position: absolute;
    top: 16px; right: 18px;
    background: none; border: none;
    color: var(--ink-3);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.modal h3 { font-size: var(--text-xl); font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.modal-sub { color: var(--ink-2); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.modal-tabs {
    display: flex;
    background: var(--pill);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: var(--space-6);
}
.modal-tabs button {
    flex: 1;
    padding: 9px 0;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-2);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.modal-tabs button.active { background: var(--pill-hover); color: var(--ink); }
.modal .form-group input { background: var(--modal-input-bg); }
.modal .btn { width: 100%; margin-top: 4px; }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-4); }
.avatar-pick label {
    cursor: pointer;
    font-size: 26px;
    padding: 5px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color .2s;
}
.avatar-pick label.picked { border-color: var(--link); }
.modal .form-hint { text-align: center; margin-top: var(--space-4); }
.modal-err {
    background: var(--err-bg);
    border: 1px solid var(--err-border);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: var(--space-4);
    display: none;
}
.modal-err.show { display: block; }

/* ===== 页脚（Apple 官网风格，作为最后一屏吸附） ===== */
.site-footer {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--footer-bg);
    border-top: 1px solid var(--hairline);
    scroll-snap-align: start;
}
/* 非首页（无吸附）：页脚改为内容自适应高度，不再占满一屏 */
html:not(.snap-on) .site-footer {
    min-height: auto;
    padding: var(--space-12) 0;
}
.footer-inner {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: var(--space-16) 20px var(--space-8);
    font-size: 12px;
    color: var(--ink-3);
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--hairline);
}
.footer-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-4);
}
.footer-col a {
    display: block;
    font-size: 12px;
    color: var(--ink-3);
    padding: 4px 0;
    transition: color .2s;
}
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: var(--space-6);
}

/* ===== 滚动动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
    .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: var(--nav-bg-solid);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--hairline);
        padding: 10px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { display: block; text-align: center; padding: 12px; }
    .nav-hamburger { display: block; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .screen { padding: var(--space-16) 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ===== 主题切换控件（统一组件：胶囊分段 + 滑块，dark/bright 只换色） ===== */
.theme-switch, .theme-pick {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: var(--ts-bg);
    border: 1px solid var(--ts-border);
    user-select: none;
}
.theme-switch button, .theme-pick button {
    position: relative;
    z-index: 2;
    border: none;
    background: transparent;
    color: var(--ts-text);
    font-weight: 600;
    cursor: pointer;
    transition: color .25s ease-out;
    font-family: inherit;
    white-space: nowrap;
}
.theme-switch button { font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.theme-pick button { font-size: 13px; padding: 8px 20px; border-radius: 999px; }
.theme-switch button:hover, .theme-pick button:hover { color: var(--ink); }
html[data-theme="bright"] .theme-switch button:hover, html[data-theme="bright"] .theme-pick button:hover { color: var(--b-ink-900, #1f1c17); }
.theme-switch button.on, .theme-pick button.on { color: var(--ts-on-text); }

/* 滑块：绝对定位胶囊，JS 控制 transform */
.ts-slider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    z-index: 1;
    border-radius: 999px;
    background: var(--ts-on-bg);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1), width .28s cubic-bezier(.4, 0, .2, 1);
    will-change: transform, width;
}

/* ===== 回到顶部按钮 ===== */
#back-top {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 400;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--hairline-strong);
    background: var(--modal-bg);
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .3s ease-out, transform .3s ease-out, background .2s, color .2s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
#back-top.show { opacity: 1; transform: none; pointer-events: auto; }
#back-top:hover { background: var(--link); color: #fff; }

/* ===== 登录页：左侧登录 + 右侧黑客终端 ===== */
.pass-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 460px 1fr;
    align-items: stretch;
    /* 锁死整页：桌面两列布局由左右两栏各自内部滚动，避免嵌套滚动链 */
    overflow: hidden;
}
.pass-left {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 32px;
    text-align: center;
    background: var(--bg);
    overflow-y: auto;
    scrollbar-width: thin;
}
/* safe-center：内容短时居中，内容溢出时从顶部正常滚动（无滚动锚定回弹） */
.pass-left::before,
.pass-left::after {
    content: "";
    flex: 1 0 auto;
    min-height: 12px;
}
.pass-left .login-logo {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 8px;
    background: var(--title-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pass-left .login-sub { color: var(--ink-2); font-size: 15px; margin-bottom: 36px; }
.pass-left .error, .pass-left .lock {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
}
.pass-left .error { background: var(--err-bg); border: 1px solid var(--err-border); color: var(--danger); }
.pass-left .lock { background: var(--warn-bg); border: 1px solid var(--warn-border, rgba(255,159,10,.4)); color: var(--orange); }
.pass-left .btn { width: 100%; margin-top: 4px; }
.pass-left .login-foot { color: var(--ink-3); font-size: 12px; margin-top: 24px; }

/* 登录框下方模式选择（统一组件见 .theme-switch/.theme-pick 顶部定义） */
.pass-left .theme-pick { margin-top: 28px; }

/* 右侧终端区 */
.pass-right {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow: hidden;
    /* 绿黑黑客氛围光 */
    background:
        radial-gradient(900px 600px at 70% 30%, rgba(0, 255, 157, .10), transparent 60%),
        radial-gradient(700px 500px at 30% 80%, rgba(0, 255, 157, .05), transparent 60%),
        #020a06;
}
.hackterm {
    width: 100%;
    max-width: 780px;
    height: min(74vh, 640px);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 20px;
    color: #00ff9d;
    background: rgba(3, 18, 11, .88);
    border: 1px solid rgba(0, 255, 157, .28);
    border-radius: 14px;
    box-shadow:
        0 0 70px rgba(0, 255, 157, .10),
        0 24px 70px rgba(0, 0, 0, .6),
        inset 0 0 60px rgba(0, 0, 0, .55);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 157, .4) transparent;
    white-space: pre-wrap;
    word-break: break-all;
    padding: 16px 20px 20px;
}
.hackterm-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 157, .18);
    font-size: 11px;
    color: rgba(0, 255, 157, .55);
    position: sticky;
    top: 0;
    background: rgba(3, 18, 11, .92);
}
.hackterm-dot { width: 11px; height: 11px; border-radius: 50%; }
.hackterm-dot.r { background: #ff5f57; }
.hackterm-dot.y { background: #ffbd2e; }
.hackterm-dot.g { background: #28c840; }
.hackterm-title { margin-left: 8px; letter-spacing: 1px; }
.hackterm-line { min-height: 20px; }
.hackterm-line.cmd { color: #00ff9d; }
.hackterm-line.cmd::before { content: "▌"; color: rgba(0, 255, 157, .4); margin-right: 6px; }
.hackterm-line.out { color: rgba(157, 255, 193, .72); }
.hackterm-line.hackterm-flash {
    color: #ffe95d;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(255, 233, 93, .5);
    margin: 10px 0;
}
.hackterm-caret {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #00ff9d;
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: blink 1s steps(1) infinite;
}

/* ===== 响应式：窄屏终端下移，布局变单列（整页滚动，左栏不内部滚动） ===== */
@media (max-width: 900px) {
    .pass-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: visible; }
    .pass-left { padding: 96px 24px 24px; overflow: visible; height: auto; }
    .pass-right { padding: 24px; min-height: 70vh; }
}

/* ============================================================
   论坛 · 私聊 · 功能反馈（双主题共用 tokens，自动适配）
   ============================================================ */
.back-link {
    display: inline-block;
    color: var(--ink-3);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    text-decoration: none;
    transition: color .2s ease-out;
}
.back-link:hover { color: var(--link); }

/* ---------- 论坛列表 ---------- */
.btn-new {
    display: inline-block;
    background: var(--link);
    color: #fff;
    border-radius: 980px;
    padding: 10px 22px;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease-out, transform .2s ease-out;
}
.btn-new:hover { background: var(--btn-hover); transform: translateY(-1px); text-decoration: none; color: #fff; }

.forum-list { display: flex; flex-direction: column; gap: var(--space-2); }

.forum-card {
    display: block;
    background: var(--pill);
    border-radius: 18px;
    padding: 18px 22px 16px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid transparent;
    transition: background .25s ease-out, border-color .25s ease-out, transform .25s ease-out;
}
.forum-card:hover {
    background: var(--pill-hover);
    border-color: var(--hairline-strong);
    transform: translateY(-2px);
    text-decoration: none;
}
.fc-top { display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); }
.fc-avatar {
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--input-bg); border-radius: 50%;
    font-size: 14px; margin-right: 2px;
}
.fc-nick { color: var(--ink); font-weight: 600; font-size: 13px; }
.fc-member { color: var(--ink-3); font-size: 12px; }
.fc-time { color: var(--ink-3); font-size: 12px; margin-left: auto; }
.fc-views { color: var(--ink-3); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; }
.fc-views svg { width: 13px; height: 13px; }
.fc-title {
    font-size: 18px; font-weight: 700;
    margin: 10px 0 6px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fc-desc {
    color: var(--ink-2); font-size: 14px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fc-bottom { display: flex; gap: 18px; margin-top: 12px; }
.fc-stat {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--ink-3); font-size: 13px;
}
.fc-stat svg { width: 15px; height: 15px; }
.stat-like svg, .stat-comment svg, .stat-file svg { opacity: .8; }

.page-nav {
    display: flex; align-items: center; justify-content: center; gap: var(--space-4);
    margin: var(--space-8) 0 var(--space-12);
}
.page-btn {
    padding: 8px 18px; border-radius: 980px;
    background: var(--pill); color: var(--ink);
    font-size: var(--text-sm); text-decoration: none;
    transition: background .2s ease-out, color .2s ease-out;
}
.page-btn:hover { background: var(--link); color: #fff; }
.page-info { color: var(--ink-3); font-size: var(--text-sm); }

.empty-state {
    text-align: center; padding: var(--space-16) 0 var(--space-24);
}
.empty-icon { font-size: 44px; margin-bottom: var(--space-4); }

/* ---------- 发帖页 ---------- */
.post-form { max-width: 720px; margin: 0 auto var(--space-16); }
.file-drop {
    border: 1.5px dashed var(--hairline-strong);
    border-radius: var(--radius-input);
    padding: var(--space-6) var(--space-4);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    color: var(--ink-3); font-size: var(--text-sm);
    background: var(--input-bg);
    cursor: pointer;
    transition: border-color .2s ease-out, color .2s ease-out;
}
.file-drop svg { width: 20px; height: 20px; }
.file-drop:hover { border-color: var(--link); color: var(--link); }
.file-input { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-3); }

.perm-box {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
}
.perm-option {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px; border-radius: var(--radius-input);
    background: var(--input-bg);
    border: 1.5px solid var(--hairline);
    cursor: pointer;
    transition: border-color .2s ease-out, background .2s ease-out;
}
.perm-option:has(input:checked) {
    border-color: var(--link);
    background: var(--chip-hover-bg);
}
.perm-option input { margin-top: 3px; accent-color: var(--link); }
.perm-body { display: flex; flex-direction: column; gap: 4px; }
.perm-title { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.perm-desc { font-size: var(--text-xs); color: var(--ink-3); }

.member-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-2);
}
.member-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 12px;
    background: var(--input-bg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    transition: border-color .2s ease-out, background .2s ease-out;
    font-size: 13px;
}
.member-chip:has(input:checked) {
    border-color: var(--link);
    background: var(--chip-hover-bg);
}
.member-chip input { accent-color: var(--link); }
.member-emoji { font-size: 16px; }
.member-name { color: var(--ink); font-weight: 600; }
.member-tag { color: var(--ink-3); font-size: 11px; }

/* ---------- 帖子详情 ---------- */
.post-main {
    background: var(--pill);
    border-radius: 22px;
    padding: var(--space-8);
    margin-bottom: var(--space-8);
}
.pm-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: var(--space-4); margin-bottom: var(--space-6);
}
.pm-author { display: flex; align-items: center; gap: 12px; }
.pm-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px; background: var(--input-bg);
}
.pm-nick { font-weight: 700; font-size: var(--text-sm); }
.pm-member { color: var(--ink-3); font-size: 12px; font-weight: 400; }
.pm-time { color: var(--ink-3); font-size: var(--text-xs); margin-top: 2px; }
.like-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 980px;
    border: 1px solid var(--hairline-strong);
    background: var(--input-bg); color: var(--ink-2);
    font-size: var(--text-sm); font-weight: 600; cursor: pointer;
    transition: all .2s ease-out;
}
.like-btn svg { width: 16px; height: 16px; }
.like-btn:hover { border-color: var(--danger); color: var(--danger); }
.like-btn.liked { border-color: var(--danger); color: var(--danger); background: var(--err-bg); }
.like-btn.liking { opacity: .6; pointer-events: none; }
.pm-title { font-size: var(--text-2xl); line-height: 1.2; margin-bottom: var(--space-4); letter-spacing: -0.02em; }
.pm-content { font-size: var(--text-base); line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; }

.attach-block {
    margin-top: var(--space-6);
    border-top: 1px solid var(--hairline);
    padding-top: var(--space-4);
}
.attach-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: var(--space-2); }
.attach-label { font-weight: 700; font-size: var(--text-sm); }
.attach-perm { color: var(--ink-3); font-size: var(--text-xs); }
.attach-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    background: var(--input-bg);
    margin-bottom: 8px;
}
.attach-icon { color: var(--link); display: inline-flex; }
.attach-icon svg { width: 18px; height: 18px; }
.attach-name { font-size: var(--text-sm); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-size { color: var(--ink-3); font-size: var(--text-xs); flex-shrink: 0; }
.attach-dl {
    flex-shrink: 0;
    padding: 5px 14px; border-radius: 980px;
    background: var(--link); color: #fff;
    font-size: var(--text-xs); font-weight: 600; text-decoration: none;
    transition: background .2s ease-out;
}
.attach-dl:hover { background: var(--btn-hover); text-decoration: none; }
.attach-lock { color: var(--ink-3); font-size: var(--text-xs); flex-shrink: 0; }
.attach-hint { color: var(--ink-3); font-size: var(--text-xs); margin-top: 4px; }

/* ---------- 评论（贴吧式楼层） ---------- */
.comments-head {
    display: flex; align-items: baseline; gap: 12px;
    margin-bottom: var(--space-4);
}
.comments-head h3 { font-size: var(--text-lg); margin: 0; }
.comments-count { color: var(--ink-3); font-size: var(--text-sm); }
.comment-form { display: flex; gap: 12px; align-items: flex-start; margin-bottom: var(--space-4); }
.comment-form textarea {
    flex: 1; min-height: 64px; resize: vertical;
    background: var(--input-bg); border: 1px solid var(--input-border);
    border-radius: var(--radius-input); padding: 12px 14px;
    color: var(--ink); font-size: var(--text-sm); font-family: var(--font);
}
.comment-form textarea:focus { border-color: var(--link); outline: none; background: var(--input-bg-focus); }
.comment-form .btn { align-self: flex-end; flex-shrink: 0; }
.comment-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 16px 0; border-top: 1px solid var(--hairline);
}
.cm-floor {
    flex-shrink: 0;
    font-size: var(--text-xs); font-weight: 700;
    color: var(--ink-3);
    background: var(--pill);
    padding: 2px 10px; border-radius: 980px;
    margin-top: 2px;
}
.cm-avatar { font-size: 20px; flex-shrink: 0; }
.cm-body { flex: 1; min-width: 0; }
.cm-meta { font-size: var(--text-xs); margin-bottom: 4px; }
.cm-nick { color: var(--ink); font-weight: 600; }
.cm-member { color: var(--ink-3); }
.cm-time { color: var(--ink-3); margin-left: 8px; }
.cm-content { font-size: var(--text-sm); line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }

/* ---------- 私信 ---------- */
.chat-list { display: flex; flex-direction: column; gap: var(--space-2); }
.chat-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: 16px;
    background: var(--pill);
    text-decoration: none; color: var(--ink);
    border: 1px solid transparent;
    transition: background .25s ease-out, border-color .25s ease-out, transform .25s ease-out;
    position: relative;
}
.chat-item:hover { background: var(--pill-hover); border-color: var(--hairline-strong); transform: translateY(-1px); text-decoration: none; }
.ci-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; background: var(--input-bg); flex-shrink: 0;
}
.ci-main { flex: 1; min-width: 0; }
.ci-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ci-nick { font-weight: 700; font-size: var(--text-sm); }
.ci-time { color: var(--ink-3); font-size: var(--text-xs); }
.ci-last {
    color: var(--ink-3); font-size: 13px;
    margin-top: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ci-me { color: var(--ink-2); }
.ci-badge {
    flex-shrink: 0;
    min-width: 20px; height: 20px;
    padding: 0 6px; border-radius: 980px;
    background: var(--link); color: #fff;
    font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.chat-item.has-unread { border-color: var(--link-border); }

/* 对话窗 */
.chat-box {
    background: var(--pill);
    border-radius: 22px;
    overflow: hidden;
    display: flex; flex-direction: column;
    height: calc(100vh - 300px);
    min-height: 420px;
}
.chat-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--hairline);
    background: var(--input-bg);
}
.ch-avatar { font-size: 24px; }
.ch-nick { font-weight: 700; font-size: var(--text-sm); }
.ch-member { color: var(--ink-3); font-size: var(--text-xs); }
.chat-window {
    flex: 1; overflow-y: auto;
    padding: var(--space-4) var(--space-4) var(--space-2);
    display: flex; flex-direction: column; gap: 10px;
}
.bubble { max-width: 72%; display: flex; flex-direction: column; gap: 2px; }
.bubble-other { align-self: flex-start; align-items: flex-start; }
.bubble-me { align-self: flex-end; align-items: flex-end; }
.bubble-content {
    padding: 10px 14px; border-radius: 16px;
    font-size: var(--text-sm); line-height: 1.6;
    word-break: break-word; white-space: pre-wrap;
}
.bubble-other .bubble-content { background: var(--input-bg); color: var(--ink); border-top-left-radius: 4px; }
.bubble-me .bubble-content { background: var(--link); color: #fff; border-top-right-radius: 4px; }
.bubble-time { color: var(--ink-3); font-size: 11px; padding: 0 4px; }
.chat-input {
    display: flex; gap: 10px; align-items: flex-end;
    padding: 12px 16px;
    border-top: 1px solid var(--hairline);
    background: var(--input-bg);
}
.chat-input textarea {
    flex: 1; resize: none;
    min-height: 40px; max-height: 120px;
    background: var(--modal-input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--ink); font-size: var(--text-sm);
    font-family: var(--font);
    line-height: 1.5;
}
.chat-input textarea:focus { border-color: var(--link); outline: none; }
.chat-input .btn { flex-shrink: 0; }

/* 导航私信红点 */
.nav-chat { position: relative; }
.nav-unread {
    position: absolute; top: -4px; right: -10px;
    min-width: 16px; height: 16px;
    padding: 0 4px; border-radius: 980px;
    background: var(--danger); color: #fff;
    font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

/* 响应式 */
@media (max-width: 700px) {
    .perm-box { grid-template-columns: 1fr; }
    .post-main { padding: var(--space-4); }
    .bubble { max-width: 86%; }
    .chat-box { height: 70vh; }
    .pm-head { flex-direction: column; }
    .fc-time { display: none; }
}

/* ---------- 项目帮助中心 ---------- */
.help-block { max-width: 760px; margin: 0 auto; }
.help-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: var(--space-6); }
.help-icon { font-size: 26px; }
.help-head h3 { font-size: var(--text-lg); margin: 0 0 4px; }
.help-sub { color: var(--ink-3); font-size: var(--text-sm); margin: 0; }

.key-list { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.key-card {
    background: var(--pill);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 16px 20px;
}
.key-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.key-status { font-size: 13px; font-weight: 600; }
.key-status.active { color: var(--green); }
.key-status.pending { color: var(--orange); }
.key-status.revoked { color: var(--ink-3); }
.key-time { color: var(--ink-3); font-size: var(--text-xs); }
.key-note { color: var(--ink-2); font-size: var(--text-sm); margin: 8px 0 0; }
.key-text-row {
    display: flex; align-items: center; gap: 10px;
    margin-top: 10px;
}
.key-text {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--link);
    background: var(--input-bg);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 8px 12px;
    word-break: break-all;
    user-select: all;
}
.key-copy {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 980px;
    border: 1px solid var(--hairline-strong);
    background: var(--input-bg);
    color: var(--ink);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease-out, border-color .2s ease-out;
}
.key-copy:hover { background: var(--link); border-color: var(--link); color: #fff; }
.key-hint { color: var(--ink-3); font-size: var(--text-sm); margin-top: 8px; }

.apply-form {
    display: flex; gap: 10px; flex-wrap: wrap;
    padding: 14px;
    border: 1.5px dashed var(--hairline-strong);
    border-radius: 16px;
}
.apply-form input {
    flex: 1; min-width: 200px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--ink);
    font-size: var(--text-sm);
}
.apply-form input:focus { border-color: var(--link); outline: none; }

.mirror-list { display: flex; flex-direction: column; gap: var(--space-2); }
.mirror-row {
    display: flex; align-items: center; gap: 14px;
    background: var(--pill);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 14px 18px;
    transition: border-color .2s ease-out, transform .2s ease-out;
}
.mirror-row:hover { border-color: var(--hairline-strong); transform: translateY(-1px); }
.mirror-icon {
    color: var(--link);
    display: inline-flex; flex-shrink: 0;
}
.mirror-icon svg { width: 22px; height: 22px; }
.mirror-main { flex: 1; min-width: 0; }
.mirror-name { font-size: var(--text-sm); font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mirror-perm { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 980px; }
.mirror-perm.pub { background: var(--ok-bg); color: var(--green); }
.mirror-perm.lock { background: var(--warn-bg); color: var(--orange); }
.mirror-desc { color: var(--ink-2); font-size: 13px; margin-top: 3px; }
.mirror-meta { color: var(--ink-3); font-size: var(--text-xs); margin-top: 3px; }
.mirror-dl {
    flex-shrink: 0;
    padding: 7px 16px;
    border-radius: 980px;
    background: var(--link);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease-out;
}
.mirror-dl:hover { background: var(--btn-hover); text-decoration: none; }
.mirror-lock { color: var(--ink-3); font-size: var(--text-xs); flex-shrink: 0; }

@media (max-width: 700px) {
    .mirror-row { flex-wrap: wrap; }
    .apply-form input { min-width: 100%; }
}

/* ---------- 模块页：左侧功能导航（色块区分） ---------- */
.mod-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    max-width: 1024px;
    margin: 0 auto;
}
.mod-nav {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 76px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mod-nav-title {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 6px;
}
.mod-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink-2);
    font-size: 13px;
    transition: background .2s ease-out, color .2s ease-out;
}
.mod-nav-item:hover { background: var(--pill); color: var(--ink); text-decoration: none; }
.mod-nav-item.active { background: var(--pill-hover); color: var(--ink); font-weight: 600; }
.mod-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.mod-swatch.c1 { background: #ff5f57; }
.mod-swatch.c2 { background: #4aa8ff; }
.mod-swatch.c3 { background: #30d158; }
.mod-swatch.c4 { background: #ff9f0a; }
.mod-swatch.c5 { background: #bf5af2; }
.mod-content { flex: 1; min-width: 0; }

@media (max-width: 800px) {
    .mod-layout { flex-direction: column; gap: 24px; }
    .mod-nav { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
    .mod-nav-title { width: 100%; }
}
