/* ============================================================
   HEU ESTA 官网样式 v2 —— 「大气」品牌风
   设计语言：纯黑 × 纯白 大区块交替 + 信号青点缀 + 焊锡铜细节
   巨型排版 · 大量留白 · 顺滑动效
   无构建链：直接编辑本文件即可生效
   ============================================================ */

/* ---------- 自托管字体（scripts/build_fonts.py 产出） ----------
   mono 数字是全站视觉主角，不依赖访客本机字体；
   中文标题用真 Heavy 字重，告别微软雅黑伪加粗 */
@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/JetBrainsMono-subset.1b8226f7615d.woff2") format("woff2");
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "ESTA Display";
    src: url("../fonts/SourceHanSansCN-Heavy-subset.8a20f4dbb26f.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #050506;
    --black-2: #0b0b0e;
    --paper: #f7f8fa;
    --white: #ffffff;
    --ink: #0e1116;
    --ink-muted: #5f6774;
    --text: #e9edf4;
    --muted: #97a1b3;
    /* 品牌主色「信号青」：比通用天蓝更深更青，取自示波器荧光轨迹。
       色板叙事 = 电路板：黑色基板 + 信号青走线 + 裸铜焊盘 */
    --accent: #0da9cd;
    --accent-2: #41d8e8;
    /* 第二记忆色「焊锡铜」：与论坛皮肤 --esta-copper 同源，
       小面积用于编号、选区等工艺感细节，不承担交互语义 */
    --copper: #c98a3d;
    --copper-2: #e2ab63;
    --line-d: rgba(255, 255, 255, 0.1);
    --line-d-strong: rgba(255, 255, 255, 0.22);
    --line-l: rgba(14, 17, 22, 0.1);
    --ok: #3fd68f;
    --warn: #f4b63f;
    --danger: #f0716e;
    --radius: 16px;
    --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
    --font-display: "ESTA Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    /* 兼容内页组件的旧变量名 */
    --bg-0: var(--black);
    --bg-1: #0a0c10;
    --bg-2: #10131a;
    --panel: rgba(16, 19, 26, 0.75);
    --line: var(--line-d);
    --line-strong: var(--line-d-strong);
    --brand: var(--accent);
    --brand-2: var(--accent-2);
    --cyan: #63e2ef;
    --glow: rgba(13, 169, 205, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- 跨页过渡（MPA View Transitions，Chromium 渐进增强） ----------
   同源页面跳转时旧页淡出、新页淡起，替代硬切白屏；
   不支持的浏览器忽略此规则，行为不变 */
@view-transition { navigation: auto; }
::view-transition-old(root) {
    animation: vt-fade-out .18s ease-in both;
}
::view-transition-new(root) {
    animation: vt-fade-in .24s ease-out both;
}
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- 线性图标（includes/icon.html） ---------- */
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: -0.24em; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; vertical-align: -0.18em; }
.icon-lg { width: 42px; height: 42px; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    background: var(--black);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; transition: color .25s; }
a:hover { color: var(--cyan); }
img { max-width: 100%; display: block; }

/* 懒加载图片淡入（site.js 给未完成加载的 lazy 图挂类） */
img.img-fade { opacity: 0; transition: opacity .45s ease; }
img.img-fade.img-loaded { opacity: 1; }

/* 按钮成功反馈的小弹跳（复制群号等） */
@keyframes btn-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.07); }
    100% { transform: scale(1); }
}
.btn.copied { animation: btn-pop .4s var(--ease-out); }

/* 键盘焦点环：品牌信号青，只在键盘导航时出现 */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
.btn:focus-visible, .nav-links a:focus-visible, .filter-tabs a:focus-visible,
.pagination a:focus-visible, .nav-user:focus-visible {
    outline-offset: 2px;
    border-radius: 999px;
}
.input:focus-visible { outline: none; } /* 输入框已有 box-shadow 焦点态 */

.container { width: min(1240px, 92%); margin: 0 auto; }

/* 选区用焊锡铜：划词像给文字镀上一层锡 */
::selection { background: rgba(201, 138, 61, .5); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #23262e; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #33373f; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
    font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: transform .35s var(--ease-out), box-shadow .35s, background .25s, color .25s, border-color .25s;
    text-decoration: none; will-change: transform;
}
.btn:active { transform: scale(.965); transition-duration: .08s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px rgba(13, 169, 205, .35); }
.btn-primary:hover { background: var(--accent-2); color: #fff; box-shadow: 0 12px 40px rgba(13, 169, 205, .5); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-d-strong); }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .07); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 13.5px; }
.btn-lg { padding: 15px 38px; font-size: 16px; }
.btn-block { width: 100%; border-radius: 12px; }
/* 磁性按钮的 transform 由 JS lerp 驱动，去掉 transform 过渡避免追赶打架 */
.btn-magnet { transition: box-shadow .35s, background .25s, color .25s, border-color .25s; }
.inline-form { display: inline; }

/* 「了解更多」链接：细线 + 箭头滑动 */
.nf-link-more {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14.5px; font-weight: 600; letter-spacing: .5px;
    color: inherit; opacity: .85; position: relative; padding-bottom: 3px;
}
.nf-link-more::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
    background: currentColor; transform: scaleX(.35); transform-origin: left;
    transition: transform .45s var(--ease-out); opacity: .5;
}
.nf-link-more:hover { opacity: 1; color: inherit; }
.nf-link-more:hover::after { transform: scaleX(1); }
.nf-link-more span { display: inline-block; transition: transform .35s var(--ease-out); }
.nf-link-more:hover span { transform: translateX(6px); }

/* ---------- 导航栏（透明 → 滚动后实底） ---------- */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: transparent; border-bottom: 1px solid transparent;
    transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.site-nav.scrolled {
    background: rgba(5, 5, 6, 0.78);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--line-d);
}
.nav-inner { display: flex; align-items: center; gap: 30px; height: 74px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 40px; height: 40px; border-radius: 9px; }
.nav-title { display: flex; flex-direction: column; line-height: 1.2; }
.nav-title strong { color: #fff; font-size: 16.5px; letter-spacing: 1.5px; }
.nav-title small { color: var(--muted); font-size: 10.5px; font-family: var(--font-mono); letter-spacing: 3px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; position: relative; }
.nav-links a {
    color: rgba(255, 255, 255, .72); font-size: 14.5px; font-weight: 500;
    padding: 9px 15px; border-radius: 999px; position: relative; z-index: 1;
}
.nav-links a:hover { color: #fff; }
/* 无药丸（无 JS / 触屏 / reduced-motion）时退回逐链接背景 */
.nav-links:not(.has-pill) a:hover { background: rgba(255, 255, 255, .08); }

/* 滑动药丸：hover/focus 时在链接之间平滑滑动 */
.nav-pill {
    position: absolute; top: 0; left: 0; z-index: 0;
    background: rgba(255, 255, 255, .09); border-radius: 999px;
    opacity: 0; pointer-events: none;
    transition: transform .38s var(--ease-out), width .38s var(--ease-out), opacity .18s;
    will-change: transform, width;
}
.nav-links.pill-visible .nav-pill { opacity: 1; }
@media (max-width: 720px) {
    .nav-pill { display: none; }
    .site-nav.nav-open .nav-links a:hover { background: rgba(255, 255, 255, .08); }
}
.nav-auth { display: flex; align-items: center; gap: 9px; }
.nav-user { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.nav-user:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-user-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: all .3s; }

.site-main { min-height: 100vh; }
body:not(.page-home) .site-main { padding-top: 74px; }
body:not(.page-home) .site-nav { background: rgba(5, 5, 6, 0.85); backdrop-filter: blur(16px); border-bottom-color: var(--line-d); }

/* ---------- 消息提示 ---------- */
.messages-wrap { margin-top: 18px; position: relative; z-index: 5; }
.alert { padding: 12px 18px; border-radius: 12px; margin-bottom: 10px; font-size: 14.5px; border: 1px solid; }
.alert-success { background: rgba(63, 214, 143, .1); border-color: rgba(63, 214, 143, .35); color: var(--ok); }
.alert-info, .alert-debug { background: rgba(65, 216, 232, .1); border-color: rgba(65, 216, 232, .35); color: var(--accent-2); }
.alert-warning { background: rgba(244, 182, 63, .1); border-color: rgba(244, 182, 63, .35); color: var(--warn); }
.alert-error { background: rgba(240, 113, 110, .1); border-color: rgba(240, 113, 110, .35); color: var(--danger); }

/* ---------- 页脚 ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line-d); background: var(--black); }
/* 页脚顶部的一条微弱信号波形：全站唯二的隐喻装饰之一（另一处是白区坐标纸） */
.footer-wave {
    position: absolute; top: -1px; left: 0; width: 100%; height: 26px;
    display: block; color: var(--accent); opacity: .28; pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 60px 0 44px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; font-weight: 600; }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-row img { width: 44px; height: 44px; border-radius: 10px; }
.footer-logo-row strong { display: block; color: #fff; font-size: 15.5px; }
.footer-logo-row small { color: var(--muted); font-size: 11.5px; font-family: var(--font-mono); letter-spacing: 1px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; max-width: 340px; }
.footer-bar { border-top: 1px solid var(--line-d); padding: 18px 0; }
.footer-bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #6b7280; }
.footer-beian { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-beian a { color: #6b7280; }
.footer-beian a:hover { color: var(--accent-2); }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-group .req { color: var(--danger); }
.input, input[type="file"], textarea.input, select.input {
    width: 100%; padding: 12px 15px; border-radius: 12px;
    border: 1px solid var(--line-d-strong); background: rgba(255, 255, 255, .04);
    color: var(--text); font-size: 15px; outline: none;
    transition: border-color .2s, box-shadow .2s; font-family: inherit;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 169, 205, .18); }
select.input option { background: var(--bg-2); }
.form-help { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.form-error { display: block; color: var(--danger); font-size: 13px; margin-top: 5px; }
.has-error .input { border-color: var(--danger); }
.form-nonfield-errors { margin-bottom: 16px; }

/* 长表单分组（注册页等）：mono 编号沿用编号=铜色的全站语义 */
.form-section { border: none; margin: 0 0 10px; }
.form-section + .form-section { margin-top: 26px; }
.form-section-title {
    display: flex; align-items: center; gap: 10px; width: 100%;
    color: #fff; font-size: 15px; font-weight: 700;
    padding-bottom: 10px; margin-bottom: 18px;
    border-bottom: 1px solid var(--line-d);
}
.form-section-title span {
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
    color: var(--copper); letter-spacing: 1px;
}

/* ============================================================
   通用排版元素
   ============================================================ */
.nf-eyebrow {
    font-family: var(--font-mono); font-size: 13px; letter-spacing: 4px;
    color: var(--accent); margin-bottom: 18px; text-transform: uppercase;
}
.nf-display {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 62px); font-weight: 900; line-height: 1.18;
    letter-spacing: 1px; margin-bottom: 34px; color: inherit;
}
.nf-display .accent { color: var(--accent); }
.nf-center { text-align: center; }
.nf-section { padding: clamp(90px, 12vw, 150px) 0; position: relative; overflow: hidden; }

/* 深/浅两种大区块 */
.nf-dark { background: var(--black); color: var(--text); }
/* 白区 = 示波器坐标纸：10px 细格 + 50px 粗格，极低对比度。
   黑区保持纯黑（暗室），黑白交替因此有了叙事：屏幕亮起/熄灭 */
.nf-light {
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(14, 17, 22, .052) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 17, 22, .052) 1px, transparent 1px),
        linear-gradient(rgba(14, 17, 22, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 17, 22, .028) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    color: var(--ink);
}
.nf-light .nf-eyebrow { color: var(--accent); }
.nf-light h3 { color: var(--ink); }
.nf-light p { color: var(--ink-muted); }

/* ---------- 滚动渐入（CSS animation 实现，交错延迟走 --reveal-delay） ----------
   用 animation 而非 transition：入场动画与组件自身的 hover transition
   （方向卡/B站卡的 transform 过渡）互不抢占，延迟也不会残留到 hover 上。
   fill 只用 backwards：动画结束后元素回到自然样式，零残留。 */
.reveal { opacity: 0; }
.reveal:not(.is-visible) { will-change: opacity, transform; }
.reveal.is-visible {
    opacity: 1;
    animation: reveal-up 1s var(--ease-out) backwards;
    animation-delay: var(--reveal-delay, 0ms);
}
@keyframes reveal-up {
    from { opacity: 0; transform: translateY(56px); }
}

/* Hero 首屏文字逐行升起 */
.line-reveal { display: block; opacity: 0; transform: translateY(46px); animation: line-up 1.1s var(--ease-out) forwards; }
.line-reveal:nth-child(1), .nf-hero-text > .line-reveal:nth-of-type(1) { animation-delay: .15s; }
.nf-hero-title .line-reveal:nth-child(1) { animation-delay: .3s; }
.nf-hero-title .line-reveal:nth-child(2) { animation-delay: .45s; }
.nf-hero-sub.line-reveal { animation-delay: .65s; }
.nf-hero-cta.line-reveal { animation-delay: .8s; }
@keyframes line-up { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .reveal, .line-reveal { opacity: 1 !important; transform: none !important; transition: none; animation: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   HERO（全屏粒子信号海洋）
   ============================================================ */
.nf-hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.nf-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nf-hero-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5, 5, 6, .88) 0%, rgba(5, 5, 6, .55) 34%, rgba(5, 5, 6, .05) 62%, transparent 100%),
        linear-gradient(180deg, rgba(5, 5, 6, .6) 0%, transparent 22%, transparent 72%, rgba(5, 5, 6, .92) 100%);
}
@keyframes halo-breath { from { opacity: .7; } to { opacity: 1; transform: scale(1.05); } }

.nf-hero-inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr; align-items: center;
    padding: 120px 0 60px;
}
.nf-hero-text { max-width: 720px; }
.nf-hero-title {
    font-family: var(--font-display);
    font-size: clamp(46px, 7.2vw, 96px); font-weight: 900; line-height: 1.12;
    letter-spacing: 2px; color: #fff; margin: 10px 0 26px;
}
.nf-hero-title .accent { color: var(--accent); }
.nf-hero-title em { font-style: normal; animation: caret-blink 1.2s step-end infinite; font-weight: 700; }
@keyframes caret-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.nf-hero-sub { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); max-width: 480px; margin-bottom: 44px; }
.nf-hero-cta { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; color: var(--text); }

.nf-hero-foot {
    position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 30px; gap: 20px;
}
.nf-hero-note { color: #7b8494; font-size: 12.5px; }
.nf-scroll-cue {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; color: #7b8494;
}
.nf-scroll-cue span { display: block; width: 1px; height: 44px; background: linear-gradient(180deg, transparent, var(--accent)); animation: cue-drop 1.8s var(--ease-out) infinite; }
@keyframes cue-drop { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Hero 粒子动画的绘制逻辑在 js/hero-field.js */

/* ============================================================
   白色区：三个理由
   ============================================================ */
.nf-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.nf-photo-card {
    position: relative; border-radius: 24px; overflow: hidden;
    box-shadow: 0 40px 90px rgba(14, 17, 22, .22);
    /* transform 由 JS lerp 逐帧驱动，不能再叠 CSS transition（会追赶打架） */
    transform-style: preserve-3d; will-change: transform;
}
.nf-photo-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.nf-photo-card figcaption {
    position: absolute; left: 18px; bottom: 18px; padding: 7px 16px; border-radius: 999px;
    background: rgba(5, 5, 6, .62); color: #fff; font-size: 12.5px; letter-spacing: 1px;
    backdrop-filter: blur(8px);
}
.nf-reasons { list-style: none; counter-reset: reason; }
.nf-reasons li {
    counter-increment: reason; position: relative;
    padding: 26px 0 26px 74px; border-bottom: 1px solid var(--line-l);
}
.nf-reasons li:last-child { border-bottom: none; }
.nf-reasons li::before {
    content: "0" counter(reason);
    position: absolute; left: 0; top: 26px;
    font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--copper);
}
.nf-reasons h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.nf-reasons p { font-size: 14.5px; }

/* 桥接元素：三个理由的照片卡骑跨白/黑分界线（全站唯一一处，桌面端）
   意象：作品从坐标纸伸进暗室 */
@media (min-width: 1025px) {
    .nf-bridge { overflow: visible; padding-bottom: clamp(50px, 6vw, 80px); }
    .nf-bridge .nf-split-media { transform: translateY(clamp(105px, 12vw, 145px)); }
    .nf-bridge + .nf-section { padding-top: clamp(170px, 20vw, 240px); }
}

/* ============================================================
   黑色区：大数字
   ============================================================ */
.nf-bignum-section { text-align: left; }
.nf-bignum { position: relative; display: flex; align-items: baseline; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(50px, 7vw, 90px); }

/* 「31」的示波器扫描编排：扫描线扫过，数字随之计数亮起 */
.nf-bignum::after {
    content: ""; position: absolute; top: -5%; bottom: -5%; left: 0; width: 3px;
    background: linear-gradient(180deg, transparent, var(--accent-2) 30%, var(--accent-2) 70%, transparent);
    box-shadow: 0 0 20px rgba(65, 216, 232, .8), 0 0 60px rgba(13, 169, 205, .4);
    opacity: 0; pointer-events: none;
}
.nf-bignum.is-visible::after { animation: scan-sweep 1.7s var(--ease-out) .1s 1 both; }
@keyframes scan-sweep {
    0% { opacity: 0; left: 0; }
    10% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; left: calc(100% - 3px); }
}
@media (prefers-reduced-motion: reduce) {
    .nf-bignum.is-visible::after { animation: none; opacity: 0; }
}
.nf-bignum-value {
    font-family: var(--font-mono); font-weight: 800; line-height: .95;
    font-size: clamp(110px, 22vw, 280px); letter-spacing: -6px;
    background: linear-gradient(115deg, #fff 30%, var(--accent-2) 75%, var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 10px 50px rgba(13, 169, 205, .25));
}
.nf-bignum-side { display: flex; flex-direction: column; gap: 10px; max-width: 300px; }
.nf-bignum-unit { font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; color: #fff; }
.nf-bignum-desc { color: var(--muted); font-size: 14.5px; }
.nf-substats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-d); }
.nf-substat { padding: 30px 24px 6px; border-left: 1px solid var(--line-d); }
.nf-substat:first-child { border-left: none; padding-left: 0; }
.nf-substat strong { display: block; font-family: var(--font-mono); font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; color: #fff; }
.nf-substat > span { color: var(--muted); font-size: 13.5px; letter-spacing: 2px; }

/* ============================================================
   白色区：三大方向
   ============================================================ */
.nf-dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 20px; }
.nf-dir-card {
    display: block; border-radius: 22px; overflow: hidden; background: var(--white);
    box-shadow: 0 10px 40px rgba(14, 17, 22, .08); color: var(--ink);
    transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
.nf-dir-card:hover { transform: translateY(-10px); box-shadow: 0 34px 70px rgba(14, 17, 22, .16); color: var(--ink); }
.nf-dir-card figure { overflow: hidden; aspect-ratio: 16 / 10; background: #e8ebf0; }
.nf-dir-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.nf-dir-card:hover img { transform: scale(1.07); }
.nf-dir-body { padding: 26px 26px 30px; position: relative; }
.nf-dir-index {
    position: absolute; top: -16px; right: 24px;
    font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--copper);
    background: var(--white); border: 1px solid var(--line-l); border-radius: 999px; padding: 4px 12px;
    box-shadow: 0 6px 16px rgba(14, 17, 22, .08);
}
.nf-dir-body h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.nf-dir-body p { font-size: 14px; margin-bottom: 18px; min-height: 44px; }
.nf-dir-body .nf-link-more { color: var(--ink); }

/* ============================================================
   招新视频
   ============================================================ */
.video-facade {
    position: relative; aspect-ratio: 16 / 9; max-width: 940px; margin: 0 auto;
    border-radius: 22px; overflow: hidden; cursor: pointer;
    border: 1px solid var(--line-d);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 60px rgba(13, 169, 205, .1);
    background: var(--bg-2);
    transition: transform .5s var(--ease-out), box-shadow .5s;
}
.video-facade:hover { transform: scale(1.012); box-shadow: 0 50px 110px rgba(0, 0, 0, .65), 0 0 80px rgba(13, 169, 205, .18); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.82); }
.video-facade-fallback {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(13, 169, 205, .25), transparent 55%),
        radial-gradient(circle at 75% 65%, rgba(2, 30, 60, .8), transparent 60%),
        var(--bg-2);
}
.video-facade-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: linear-gradient(180deg, rgba(5, 5, 6, .15), rgba(5, 5, 6, .6));
    transition: background .3s;
}
.video-facade:hover .video-facade-overlay { background: linear-gradient(180deg, rgba(5, 5, 6, .05), rgba(5, 5, 6, .5)); }
.video-play-btn {
    width: 88px; height: 88px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255, 255, 255, .96); color: var(--black);
    display: flex; align-items: center; justify-content: center; padding-left: 6px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .4); animation: play-pulse 2.4s ease-out infinite;
    transition: transform .35s var(--ease-out), background .25s;
}
.video-facade:hover .video-play-btn { transform: scale(1.12); background: var(--accent); color: #fff; }
@keyframes play-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); } 100% { box-shadow: 0 0 0 30px rgba(255, 255, 255, 0); } }
.video-facade-title { color: #fff; font-size: 17.5px; font-weight: 700; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); padding: 0 20px; text-align: center; }
.video-facade-hint { color: rgba(233, 237, 244, .7); font-size: 12.5px; letter-spacing: 1px; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   图片走廊（全宽 · 可拖拽 · 自动漂移 · 含留白占位格）
   ============================================================ */
.nf-gallery-section { padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; }
.nf-gallery-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 46px; gap: 20px; }
.nf-gallery-head .nf-display { margin-bottom: 0; }
.nf-gallery-hint { color: var(--muted); font-family: var(--font-mono); font-size: 13px; letter-spacing: 2px; }

.nf-strip {
    cursor: grab; user-select: none; -webkit-user-select: none;
    /* 两侧渐隐：全宽横滑的边缘更柔 */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.nf-strip.dragging { cursor: grabbing; }
.nf-strip-track { display: flex; gap: 22px; width: max-content; padding: 6px 4vw; will-change: transform; }
.nf-tile {
    position: relative; flex: 0 0 auto;
    width: clamp(260px, 30vw, 460px); aspect-ratio: 4 / 3;
    border-radius: 20px; overflow: hidden; background: var(--bg-2);
    border: 1px solid var(--line-d);
    transition: transform .5s var(--ease-out), border-color .3s;
}
.nf-tile:hover { transform: translateY(-8px); border-color: var(--line-d-strong); }
.nf-tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.nf-tile figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px;
    background: linear-gradient(180deg, transparent, rgba(5, 5, 6, .85));
    display: flex; flex-direction: column; gap: 2px;
}
.nf-tile figcaption strong { color: #fff; font-size: 16.5px; }
.nf-tile figcaption span { color: var(--muted); font-size: 13px; }

/* 留白占位格：等照片补齐 */
.nf-tile-empty { border: 1.5px dashed rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .015); }
.nf-tile-empty:hover { border-color: rgba(65, 216, 232, .45); }
.nf-tile-empty-inner {
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; text-align: center; padding: 24px;
}
.nf-tile-empty-mark { font-family: var(--font-mono); font-size: 26px; color: rgba(65, 216, 232, .5); letter-spacing: 2px; margin-bottom: 6px; }
.nf-tile-empty-inner strong { color: rgba(255, 255, 255, .85); font-size: 17px; letter-spacing: 2px; }
.nf-tile-empty-inner span { color: var(--muted); font-size: 13px; }

/* ============================================================
   白色区：时间轴（滚动进度线）
   ============================================================ */
.nf-timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin-top: 60px; }
.nf-tl-line { position: absolute; top: 25px; left: 2%; right: 2%; height: 2px; background: var(--line-l); border-radius: 2px; overflow: hidden; }
.nf-tl-line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s linear; }
.nf-tl-item { position: relative; padding-top: 64px; }
.nf-tl-num {
    position: absolute; top: 0; left: 0;
    width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--copper);
    background: var(--white); border: 1px solid var(--line-l);
    box-shadow: 0 10px 24px rgba(14, 17, 22, .1);
}
.nf-tl-item h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 8px; }
.nf-tl-item p { font-size: 14px; }

/* ============================================================
   黑色区：学习资源 + B 站
   ============================================================ */
/* 学习资源：终端目录清单（把版面主角让给精选视频） */
.nf-res-term {
    margin: 30px 0 90px; border: 1px solid var(--line-d); border-radius: 18px;
    background: rgba(255, 255, 255, .02); overflow: hidden;
}
.term-bar {
    padding: 14px 22px; font-family: var(--font-mono); font-size: 13.5px;
    color: var(--muted); background: rgba(255, 255, 255, .03);
    border-bottom: 1px solid var(--line-d); letter-spacing: .5px;
}
.term-prompt { color: var(--ok); }
.term-caret { color: var(--accent-2); animation: caret-blink 1.2s step-end infinite; }
.nf-res-row {
    display: flex; align-items: baseline; gap: 14px;
    padding: 17px 22px; color: var(--text);
    border-bottom: 1px solid var(--line-d);
    transition: background .25s, color .25s;
}
.nf-res-row:last-child { border-bottom: none; }
.nf-res-row:hover { background: rgba(13, 169, 205, .07); color: var(--text); }
.res-branch { font-family: var(--font-mono); color: var(--copper); flex-shrink: 0; font-size: 14px; }
.res-name { color: #fff; font-size: 16.5px; font-weight: 700; white-space: nowrap; }
.res-desc { color: var(--muted); font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-go {
    font-size: 13.5px; font-weight: 600; color: var(--accent-2);
    white-space: nowrap; flex-shrink: 0;
}
.res-go span { display: inline-block; transition: transform .3s var(--ease-out); }
.nf-res-row:hover .res-go span { transform: translateX(5px); }

.nf-bili-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; color: var(--text); }
.nf-bili-head h3 { color: #fff; font-size: 22px; font-weight: 800; }
.bili-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bili-card {
    border-radius: 18px; overflow: hidden; border: 1px solid var(--line-d);
    background: rgba(255, 255, 255, .02);
    transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s;
}
.bili-card:hover { transform: translateY(-7px); border-color: var(--line-d-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.bili-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.bili-cover img {
    width: 100%; height: 100%; object-fit: cover;
    /* 压制五花八门的封面：统一降饱和降亮，向站点暗色基调靠拢 */
    filter: saturate(.78) brightness(.86) contrast(1.04);
    transition: transform .7s var(--ease-out), filter .4s;
}
.bili-cover::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 5, 6, .1), rgba(5, 5, 6, .42));
    transition: opacity .4s;
}
.bili-card:hover .bili-cover img { transform: scale(1.06); filter: saturate(.95) brightness(.96) contrast(1.02); }
.bili-card:hover .bili-cover::after { opacity: .45; }
.bili-duration {
    position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 2px 9px; border-radius: 999px;
    background: rgba(5, 5, 6, .8); color: #fff; font-size: 12px; font-family: var(--font-mono);
}
.bili-info { padding: 15px 17px 17px; }
.bili-info h3 {
    color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.5; margin-bottom: 9px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 43px;
}
.bili-card:hover .bili-info h3 { color: #fff; }
.bili-views { color: var(--muted); font-size: 12.5px; }

/* ============================================================
   加入我们
   ============================================================ */
.nf-join { position: relative; padding: clamp(110px, 15vw, 190px) 0; overflow: hidden; }
.nf-join-halo {
    position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%);
    width: 90vw; height: 90vw; max-width: 1100px; max-height: 1100px; border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 169, 205, .14) 0%, transparent 60%);
    animation: halo-breath 6s ease-in-out infinite alternate;
}
.nf-join .nf-display { margin-bottom: 18px; }
.nf-join-sub { color: var(--muted); font-size: 16px; margin-bottom: 44px; position: relative; }
.nf-join-qq { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
/* 次级重音：白色 mono + 品牌色底线。全页唯一的渐变发光留给「31」大数字 */
.nf-join-number {
    font-family: var(--font-mono); font-weight: 800;
    font-size: clamp(40px, 7vw, 84px); letter-spacing: 6px; line-height: 1;
    color: #fff;
    padding-bottom: 18px;
    border-bottom: 3px solid var(--accent);
}
.nf-join-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; color: var(--text); }

/* ============================================================
   内页通用（认证 / 资料站 / 个人中心）
   ============================================================ */
.page-section { padding: 56px 0 60px; }
.page-head { margin-bottom: 34px; }
.page-head h1 { font-family: var(--font-display); color: #fff; font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; margin-bottom: 10px; }
.page-head p { color: var(--muted); font-size: 15px; max-width: 640px; }
/* 内页延续首页的注释风 eyebrow 语法 */
.page-head .nf-eyebrow { margin-bottom: 10px; font-size: 12px; }
.auth-card .nf-eyebrow { margin-bottom: 10px; font-size: 11.5px; letter-spacing: 3px; }

/* 页头 mono 小统计：延续「数字是主角」的语言 */
.page-stats { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; }
.page-stat { color: var(--muted); font-size: 13px; letter-spacing: 1px; }
.page-stat strong {
    font-family: var(--font-mono); font-weight: 700; font-size: 26px;
    color: #fff; margin-right: 7px; letter-spacing: 0;
}
.page-stat-sep { width: 1px; height: 22px; background: var(--line-d-strong); align-self: center; }

.auth-card {
    position: relative; overflow: hidden;
    max-width: 460px; margin: 48px auto 30px; padding: 40px 38px;
    border: 1px solid var(--line-d); border-radius: 22px; background: rgba(255, 255, 255, .025);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
/* 品牌顶边：像电路板上的一根信号走线 */
.auth-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(13, 169, 205, 0) 70%);
}
.auth-card-wide { max-width: 560px; }
.auth-card h1 { font-family: var(--font-display); color: #fff; font-size: 25px; font-weight: 900; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13.5px; }
.auth-links a { color: var(--muted); }
.auth-links a:hover { color: var(--brand-2); }
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row .input { flex: 1; }
.code-row .btn { white-space: nowrap; flex-shrink: 0; }
.code-msg-ok { color: var(--ok) !important; }
.code-msg-err { color: var(--danger) !important; }

.panel {
    border: 1px solid var(--line-d); border-radius: var(--radius);
    background: rgba(255, 255, 255, .02); padding: 26px 28px; margin-bottom: 20px;
}
.panel h2 { color: #fff; font-size: 18px; margin-bottom: 16px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; color: var(--accent-2); font-size: 12.5px; letter-spacing: 1.5px; padding: 12px 14px; border-bottom: 1px solid var(--line-d-strong); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-d); color: var(--text); }
.table tr:hover td { background: rgba(255, 255, 255, .025); }

.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid; }
.badge-blue { color: var(--accent-2); border-color: rgba(65, 216, 232, .4); background: rgba(65, 216, 232, .1); }
.badge-green { color: var(--ok); border-color: rgba(63, 214, 143, .4); background: rgba(63, 214, 143, .1); }
.badge-amber { color: var(--warn); border-color: rgba(244, 182, 63, .4); background: rgba(244, 182, 63, .1); }
.badge-gray { color: var(--muted); border-color: rgba(151, 161, 179, .35); background: rgba(151, 161, 179, .08); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.pagination a, .pagination span {
    min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-d); color: var(--muted); font-size: 14px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-2); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.filter-bar .input { width: 260px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tabs a { padding: 7px 17px; border-radius: 999px; border: 1px solid var(--line-d); color: var(--muted); font-size: 13.5px; }
.filter-tabs a.active, .filter-tabs a:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(13, 169, 205, .08); }
.filter-spacer { flex: 1; }

.empty-hint { text-align: center; color: var(--muted); padding: 70px 0; font-size: 15px; }
.empty-hint .empty-icon { font-size: 40px; display: block; margin-bottom: 12px; }

.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.profile-side { text-align: center; }

/* 实验室工牌：panel 变身门禁卡 */
.id-card { overflow: hidden; }
.id-card-band {
    display: flex; align-items: center; justify-content: center;
    height: 42px; margin: -26px -28px 20px;
}
.id-card-slot {
    width: 56px; height: 9px; border-radius: 999px;
    background: var(--black);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .65);
}
.id-card-access {
    display: flex; align-items: center; justify-content: space-between;
    margin: 16px 0 6px; padding: 10px 14px;
    border: 1px dashed var(--line-d-strong); border-radius: 10px;
}
.id-card-access-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 2.5px; color: var(--muted); }
.id-card-access-value { font-weight: 800; font-size: 15px; }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 2px solid var(--line-d-strong); }
.profile-avatar-fallback {
    width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #063c4d, var(--accent)); color: #fff; font-size: 36px; font-weight: 800;
}
.profile-side h2 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.profile-side .profile-username { color: var(--muted); font-size: 13px; font-family: var(--font-mono); margin-bottom: 12px; }
.profile-meta { list-style: none; text-align: left; margin-top: 18px; }
.profile-meta li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-d); font-size: 14px; }
.profile-meta li span:first-child { color: var(--muted); }
.profile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 2px; }
.medal-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px; }
.medal-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.medal-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; box-shadow: 0 4px 12px rgba(2,8,20,.4); }
.medal-name { font-size: 12.5px; color: var(--muted); }

/* 内测反馈浮动按钮（品牌蓝，脉冲保留提示存在感） */
.beta-fab {
    position: fixed; right: 24px; bottom: 26px; z-index: 90;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 22px; border: none; border-radius: 999px; cursor: pointer;
    background: linear-gradient(135deg, var(--accent), #067896);
    color: #fff !important; font-weight: 700; font-size: 15.5px; font-family: inherit;
    box-shadow: 0 12px 36px rgba(13, 169, 205, .45);
    transition: transform .25s var(--ease-out), box-shadow .25s;
    animation: beta-fab-in .5s var(--ease-out) both .6s;
}
.beta-fab::before {
    content: ""; position: absolute; inset: -5px; border-radius: 999px;
    border: 2px solid rgba(13, 169, 205, .5);
    animation: beta-fab-pulse 2.4s ease-out infinite;
    pointer-events: none;
}
.beta-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 46px rgba(13, 169, 205, .6); color: #fff !important; }
.beta-fab-icon { display: inline-flex; }
.beta-fab-icon .icon { width: 19px; height: 19px; }
@keyframes beta-fab-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes beta-fab-pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 720px) {
    .beta-fab { right: 14px; bottom: 18px; padding: 12px 18px; font-size: 14.5px; }
    .beta-fab-icon { font-size: 18px; }
}

/* 反馈弹窗 */
.fb-mask {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(2, 8, 20, .72); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 18px;
    animation: fb-mask-in .24s ease both;
}
.fb-mask[hidden] { display: none !important; }
.fb-modal {
    width: 100%; max-width: 520px;
    background: var(--panel, #0d1830); border: 1px solid var(--line-d, rgba(148,163,184,.18));
    border-radius: 16px; padding: 22px 22px 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    animation: fb-in .28s var(--ease-out) both;
}
@keyframes fb-mask-in { from { opacity: 0; } }
@keyframes fb-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
/* 关闭：反向缩退，动画结束后 JS 再置 hidden */
.fb-mask.closing { animation: fb-mask-out .2s ease both; }
.fb-mask.closing .fb-modal { animation: fb-out .2s ease-in both; }
@keyframes fb-mask-out { to { opacity: 0; } }
@keyframes fb-out { to { opacity: 0; transform: translateY(12px) scale(.97); } }
@media (prefers-reduced-motion: reduce) {
    .fb-mask, .fb-modal, .fb-mask.closing, .fb-mask.closing .fb-modal { animation: none; }
}
.fb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.fb-head strong { font-size: 18px; color: #fff; }
.fb-close {
    border: none; background: none; color: var(--muted); font-size: 26px; line-height: 1;
    cursor: pointer; padding: 2px 8px; border-radius: 8px;
}
.fb-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.fb-tip { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.fb-modal textarea.input { width: 100%; resize: vertical; min-height: 120px; }
.fb-contact { width: 100%; margin-top: 10px; }
.fb-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.fb-foot a { color: var(--muted); font-size: 13.5px; }
.fb-foot a:hover { color: var(--brand-2); }
.fb-msg { margin-top: 12px; font-size: 14px; padding: 10px 12px; border-radius: 10px; }
.fb-msg-ok { color: var(--ok); background: rgba(63, 214, 143, .1); }
.fb-msg-err { color: var(--danger); background: rgba(240, 113, 110, .1); }

/* 反馈页“我的反馈”列表 */
.fb-mine { margin-top: 26px; border-top: 1px solid var(--line-d, rgba(148,163,184,.18)); padding-top: 18px; }
.fb-mine h2 { font-size: 16px; margin-bottom: 12px; }
.fb-mine ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fb-mine li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.fb-mine-text { flex: 1; }
a.fb-mine-text:hover { color: var(--brand-2); }
.fb-mine small { color: var(--muted); }
.fb-mine-hint { margin-top: 10px; color: var(--muted); font-size: 12.5px; }

/* 反馈对话页 */
.fbd-head { display: flex; align-items: center; gap: 12px; }
.fbd-thread { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 22px; }
.fbd-msg {
    border: 1px solid var(--line-d, rgba(148,163,184,.18));
    border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.02);
}
.fbd-msg-staff { border-color: rgba(13, 169, 205, .35); background: rgba(13, 169, 205, .06); }
.fbd-msg-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fbd-msg-meta strong { color: #fff; font-size: 14px; }
.fbd-msg-meta small { color: var(--muted); font-size: 12px; }
.fbd-msg-body { color: var(--text); font-size: 14.5px; line-height: 1.7; word-break: break-word; }
.fbd-reply-form textarea { resize: vertical; }

/* ============================================================
   错误页（404 信号丢失 / 500 系统过载）
   ============================================================ */
.error-hero {
    min-height: calc(100vh - 74px);
    display: flex; align-items: center; justify-content: center;
    padding: 80px 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 42%, rgba(13, 169, 205, .08), transparent 70%),
        var(--black);
}
.error-code {
    font-family: var(--font-mono); font-weight: 800; line-height: 1;
    font-size: clamp(120px, 24vw, 260px); letter-spacing: 8px;
    color: transparent;
    -webkit-text-stroke: 2px rgba(233, 237, 244, .35);
    text-stroke: 2px rgba(233, 237, 244, .35);
    margin: 6px 0 -10px;
    user-select: none;
}
.error-wave {
    display: block; width: min(560px, 86%); height: 84px; margin: 0 auto 8px;
    color: var(--accent-2);
    filter: drop-shadow(0 0 12px rgba(13, 169, 205, .55));
    animation: wave-flicker 4s steps(2, jump-none) infinite;
}
@keyframes wave-flicker {
    0%, 92% { opacity: 1; }
    94% { opacity: .55; }
    96% { opacity: .9; }
    98% { opacity: .4; }
}
@media (prefers-reduced-motion: reduce) {
    .error-wave { animation: none; }
}
.error-hero h1 { font-family: var(--font-display); color: #fff; font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin-bottom: 12px; }
.error-sub { color: var(--muted); font-size: 15px; max-width: 460px; margin: 0 auto 32px; }
.error-actions { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; color: var(--text); }

/* ============================================================
   新生指南（recruit）
   ============================================================ */
.recruit-hero {
    position: relative; padding: 90px 0 66px; overflow: hidden;
    background:
        radial-gradient(ellipse 70% 90% at 85% -10%, rgba(13, 169, 205, .16), transparent 60%),
        var(--black-2);
    border-bottom: 1px solid var(--line-d);
}
.recruit-hero h1 { font-family: var(--font-display); color: #fff; font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; margin-bottom: 14px; }
.recruit-hero p { color: var(--muted); max-width: 680px; font-size: 15.5px; }

.recruit-layout { display: grid; grid-template-columns: 210px 1fr; gap: 44px; align-items: start; padding-top: 48px; }
.recruit-toc { position: sticky; top: 100px; border-left: 2px solid var(--line-d); }
.recruit-toc a { display: block; padding: 8px 0 8px 16px; color: var(--muted); font-size: 14px; margin-left: -2px; border-left: 2px solid transparent; transition: color .25s; }
.recruit-toc a:hover { color: var(--accent-2); }
.recruit-toc a.active { color: var(--accent-2); }
/* 无 JS 指示条时退回静态左边线 */
.recruit-toc:not(.toc-live) a.active, .recruit-toc:not(.toc-live) a:hover { border-left-color: var(--accent); }
/* 滑动指示条：随当前章节平滑移动 */
.toc-marker {
    position: absolute; left: -2px; top: 0; width: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(13, 169, 205, .6);
    transition: transform .4s var(--ease-out), height .4s var(--ease-out);
    will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
    .toc-marker { transition: none; }
}

/* 阅读行宽控制：正文不超过 ~40 字/行 */
.recruit-content { max-width: 780px; }
.recruit-content section { margin-bottom: 58px; scroll-margin-top: 100px; }
.recruit-content h2 { font-family: var(--font-display); color: #fff; font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.recruit-content .sec-sub { color: var(--accent); font-size: 13px; margin-bottom: 24px; font-family: var(--font-mono); letter-spacing: 2px; }
.recruit-content h3 { color: var(--accent-2); font-size: 17px; margin: 26px 0 12px; }
.recruit-content p { color: var(--text); font-size: 15px; margin-bottom: 12px; }
.recruit-content li { color: var(--text); font-size: 14.5px; margin-bottom: 7px; }
.recruit-content ul { padding-left: 22px; margin-bottom: 14px; }

details.fold {
    border: 1px solid var(--line-d); border-radius: 16px; background: rgba(255, 255, 255, .02);
    margin-bottom: 14px; overflow: hidden;
}
details.fold summary {
    cursor: pointer; list-style: none; padding: 17px 22px; color: #fff; font-weight: 700; font-size: 15.5px;
    display: flex; justify-content: space-between; align-items: center; user-select: none;
    transition: background .2s;
}
details.fold summary:hover { background: rgba(255, 255, 255, .035); }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "＋"; color: var(--accent-2); font-size: 18px; transition: transform .3s var(--ease-out); }
details.fold[open] summary::after { transform: rotate(45deg); }
details.fold .fold-body { padding: 6px 22px 22px; border-top: 1px solid var(--line-d); }

/* 折叠开合高度动画：现代 Chromium 渐进增强，其余浏览器保持瞬开 */
@supports (interpolate-size: allow-keywords) {
    details.fold {
        interpolate-size: allow-keywords;
    }
    details.fold::details-content {
        height: 0;
        overflow: clip;
        transition: height .45s var(--ease-out), content-visibility .45s allow-discrete;
    }
    details.fold[open]::details-content { height: auto; }
    @media (prefers-reduced-motion: reduce) {
        details.fold::details-content { transition: none; }
    }
}

.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
/* 元件图统一「标本板」模板：冷调浅灰底板 + multiply 融合，
   白底元件照不再像贴在黑底上的便利贴，且全部图卡色温一致 */
.img-grid figure {
    position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-d);
    background: linear-gradient(180deg, #eef1f5 0%, #dbe1e9 100%);
    aspect-ratio: 4 / 3;
}
.img-grid img {
    width: 100%; height: 100%; object-fit: contain; padding: 10px 10px 32px;
    mix-blend-mode: multiply; filter: saturate(.96);
}
.img-grid figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px;
    padding: 5px 6px; color: #dfe5ec; background: rgba(5, 5, 6, .82);
}
.img-grid.img-grid-lg { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.img-grid.img-grid-lg figure { aspect-ratio: 16 / 10; }
.img-grid figure.img-wide { grid-column: 1 / -1; aspect-ratio: auto; }
.img-grid figure.img-wide img { max-height: 420px; object-fit: contain; margin: 0 auto; }

.component-block { padding: 18px 0; border-bottom: 1px solid var(--line-d); }
.component-block:last-child { border-bottom: none; }
.component-block h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.component-block > p { color: var(--muted); font-size: 14px; }

/* recruit 页末尾的加入面板 */
.join-panel {
    position: relative; text-align: center; padding: 60px 30px; border-radius: 24px; overflow: hidden;
    border: 1px solid var(--line-d-strong);
    background: radial-gradient(ellipse 90% 120% at 50% -20%, rgba(13, 169, 205, .18), transparent 60%), var(--black-2);
}
.join-bg { position: absolute; inset: 0; }
.join-panel > * { position: relative; }
.join-panel h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; }
.join-panel > p { color: var(--muted); margin-bottom: 26px; }
.join-qq {
    display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center;
    padding: 16px 30px; border-radius: 999px; border: 1px dashed var(--line-d-strong);
    background: rgba(5, 5, 6, .5);
}
.join-qq-label { color: var(--muted); font-size: 14px; }
.join-qq strong { font-family: var(--font-mono); font-size: clamp(22px, 3vw, 30px); color: var(--accent-2); letter-spacing: 3px; }

/* ============================================================
   通知中心：导航铃铛 + 下拉 + 列表页
   ============================================================ */
.nav-bell-wrap { position: relative; display: flex; }
.nav-bell {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; color: var(--text);
}
.nav-bell:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-bell .icon { width: 20px; height: 20px; }
.nav-bell-badge {
    position: absolute; top: 1px; right: -2px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px; background: var(--danger); color: #fff;
    font-size: 11px; font-weight: 700; font-style: normal; line-height: 17px; text-align: center;
    box-shadow: 0 0 0 2px rgba(5, 5, 6, .8);
}
.bell-menu {
    position: absolute; top: calc(100% + 12px); right: -6px; width: 350px; z-index: 60;
    background: rgba(13, 16, 22, .97); border: 1px solid var(--line-d-strong); border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55); overflow: hidden;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.bell-menu-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--line-d);
}
.bell-menu-head strong { color: #fff; font-size: 14px; }
.bell-menu-head a { color: var(--accent-2); font-size: 13px; }
.bell-menu-list { max-height: 380px; overflow-y: auto; }
.bell-menu-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }
.bell-item { display: block; padding: 11px 16px 11px 26px; position: relative; border-bottom: 1px solid var(--line-d); }
.bell-item:last-child { border-bottom: none; }
.bell-item:hover { background: rgba(255, 255, 255, .05); }
.bell-item-unread::before {
    content: ""; position: absolute; left: 11px; top: 17px; width: 7px; height: 7px;
    border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--glow);
}
.bell-item-title { display: block; color: var(--text); font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.bell-item-unread .bell-item-title { color: #fff; }
.bell-item-body {
    display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 2px;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.bell-item-meta { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; opacity: .8; }

.ntf-list { display: flex; flex-direction: column; gap: 10px; }
.ntf-item {
    display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
    border: 1px solid var(--line-d); border-radius: 14px; background: var(--panel);
}
.ntf-item:hover { border-color: rgba(13, 169, 205, .5); }
.ntf-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: transparent; }
.ntf-unread { border-color: rgba(13, 169, 205, .35); }
.ntf-unread .ntf-dot { background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.ntf-main { flex: 1; min-width: 0; }
.ntf-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text); font-weight: 600; font-size: 14.5px; }
.ntf-unread .ntf-title { color: #fff; }
.ntf-body { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-top: 5px; }
.ntf-time { flex: none; color: var(--muted); font-size: 12.5px; margin-top: 3px; }

/* ============================================================
   公告：首页速览条 + 列表卡片 + 文章页 + Markdown 正文
   ============================================================ */
.nf-news-strip { padding: 46px 0 54px; border-top: 1px solid var(--line-d); }
.nf-news-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.nf-news-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nf-news-item {
    display: flex; flex-direction: column; gap: 8px; padding: 18px 20px;
    border: 1px solid var(--line-d); border-radius: 14px; background: var(--panel);
    transition: border-color .25s, transform .25s var(--ease-out);
}
.nf-news-item:hover { border-color: rgba(13, 169, 205, .55); transform: translateY(-3px); }
.nf-news-meta { display: flex; align-items: center; gap: 8px; }
.nf-news-meta time { color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; }
.nf-news-item strong { color: #fff; font-size: 15.5px; line-height: 1.5; }
.nf-news-excerpt { color: var(--muted); font-size: 13px; line-height: 1.6; }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.news-card {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line-d); border-radius: var(--radius); background: var(--panel);
    transition: border-color .25s, transform .25s var(--ease-out);
}
.news-card:hover { border-color: rgba(13, 169, 205, .55); transform: translateY(-3px); }
.news-card-cover { display: block; aspect-ratio: 21 / 9; overflow: hidden; }
.news-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { display: flex; flex-direction: column; gap: 9px; padding: 18px 20px; }
.news-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-card-title { color: #fff; font-size: 17px; line-height: 1.5; }
.news-card-excerpt { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.news-card-foot { color: var(--muted); font-size: 12.5px; font-family: var(--font-mono); opacity: .85; }

.news-article { max-width: 780px; margin: 0 auto; }
.news-article-head h1 {
    font-family: var(--font-display); color: #fff; font-weight: 900;
    font-size: clamp(24px, 3.4vw, 36px); line-height: 1.35; margin: 8px 0 14px;
}
.news-article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.news-article-cover { margin: 26px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-d); }
.news-article-cover img { width: 100%; display: block; }
.news-article-body { margin-top: 30px; }
.news-article-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-d); }
.news-related { max-width: 780px; margin: 46px auto 0; padding-top: 26px; border-top: 1px dashed var(--line-d); }
.news-related h2 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.news-related ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.news-related li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.news-related li a { color: var(--text); font-size: 14.5px; }
.news-related li a:hover { color: var(--accent-2); }
.news-related li small { color: var(--muted); font-family: var(--font-mono); font-size: 12px; flex: none; }

/* Markdown 正文排版（公告/活动详情共用） */
.md-body { color: var(--text); font-size: 15.5px; line-height: 1.9; }
.md-body h1, .md-body h2, .md-body h3, .md-body h4 { color: #fff; margin: 1.6em 0 .6em; line-height: 1.4; }
.md-body h1 { font-size: 24px; }
.md-body h2 { font-size: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--line-d); }
.md-body h3 { font-size: 17px; }
.md-body p { margin: .9em 0; }
.md-body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.md-body ul, .md-body ol { margin: .9em 0; padding-left: 1.6em; }
.md-body li { margin: .3em 0; }
.md-body img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line-d); margin: 10px 0; }
.md-body blockquote { margin: 1em 0; padding: 8px 18px; border-left: 3px solid var(--accent); background: rgba(13, 169, 205, .07); color: var(--muted); border-radius: 0 8px 8px 0; }
.md-body code { font-family: var(--font-mono); font-size: .88em; background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 5px; }
.md-body pre { margin: 1em 0; padding: 14px 18px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-d); border-radius: 10px; overflow-x: auto; }
.md-body pre code { background: none; padding: 0; font-size: 13px; line-height: 1.7; }
.md-body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.md-body th, .md-body td { padding: 8px 12px; border: 1px solid var(--line-d); text-align: left; }
.md-body th { background: rgba(255, 255, 255, .05); color: #fff; }
.md-body hr { border: none; border-top: 1px dashed var(--line-d); margin: 1.6em 0; }

/* 公告/活动编辑（驾驶舱） */
.news-form-panel { max-width: 860px; }
.md-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.md-toolbar-hint { color: var(--muted); font-size: 12.5px; }
.md-img-btn { cursor: pointer; }
.news-form-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ============================================================
   活动：列表卡片 + 详情信息面板 + 报名/签到操作区
   ============================================================ */
.event-grid { display: flex; flex-direction: column; gap: 14px; }
.event-card {
    display: flex; align-items: stretch; gap: 20px; padding: 18px 22px;
    border: 1px solid var(--line-d); border-radius: var(--radius); background: var(--panel);
    transition: border-color .25s, transform .25s var(--ease-out);
}
.event-card:hover { border-color: rgba(13, 169, 205, .55); transform: translateY(-2px); }
.event-card-date {
    flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 74px; border-right: 1px dashed var(--line-d); padding-right: 20px;
}
.event-card-date strong { font-family: var(--font-mono); font-size: 30px; color: var(--accent-2); line-height: 1.1; }
.event-card-date small { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.event-card-main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.event-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-card-title { color: #fff; font-size: 16.5px; line-height: 1.5; }
.event-card-info { color: var(--muted); font-size: 13px; font-family: var(--font-mono); }
.event-points-hint { margin-top: 30px; text-align: center; color: var(--muted); font-size: 13.5px; }
.event-points-hint a { color: var(--accent-2); }

.event-info-panel {
    margin-top: 26px; padding: 18px 22px; display: grid; gap: 10px;
    border: 1px solid var(--line-d); border-radius: var(--radius); background: var(--panel);
}
.event-info-item { display: flex; gap: 14px; font-size: 14.5px; color: var(--text); }
.event-info-label { flex: none; width: 72px; color: var(--muted); }

.event-action-box {
    margin-top: 16px; padding: 18px 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    border: 1px dashed var(--line-d-strong); border-radius: var(--radius);
    background: rgba(13, 169, 205, .05);
}
.event-action-status { color: var(--text); font-size: 14.5px; }
.event-action-status.ok { color: var(--ok); font-weight: 600; }
.event-spots { color: var(--muted); font-size: 13px; }
.event-checkin-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.event-checkin-input { width: 130px; font-family: var(--font-mono); letter-spacing: 3px; text-align: center; }
.event-checkin-hint { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
.event-code {
    font-family: var(--font-mono); font-size: 18px; letter-spacing: 4px; color: var(--accent-2);
    background: rgba(65, 216, 232, .08); border: 1px solid rgba(65, 216, 232, .35);
    border-radius: 8px; padding: 3px 10px;
}

/* ============================================================
   积分：明细 + 排行榜
   ============================================================ */
.points-pos { color: var(--ok); font-weight: 700; font-family: var(--font-mono); }
.points-neg { color: var(--danger); font-weight: 700; font-family: var(--font-mono); }
.lb-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.lb-row {
    display: flex; align-items: center; gap: 16px; padding: 13px 20px;
    border: 1px solid var(--line-d); border-radius: 14px; background: var(--panel);
}
.lb-top { border-color: rgba(201, 138, 61, .45); background: rgba(201, 138, 61, .06); }
.lb-rank { flex: none; width: 34px; text-align: center; font-family: var(--font-mono); font-size: 17px; color: var(--muted); }
.lb-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-d-strong); }
.lb-avatar-fallback {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(13, 169, 205, .18); color: var(--accent-2); font-weight: 700; font-size: 16px;
}
.lb-name { flex: 1; min-width: 0; color: #fff; font-weight: 600; font-size: 15px; display: flex; flex-direction: column; }
.lb-name small { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.lb-score { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--accent-2); }
.lb-score small { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ============================================================
   招新报名
   ============================================================ */
.nav-hot { color: var(--accent-2) !important; }
.recruit-apply-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.recruit-intro { line-height: 1.75; }
.recruit-qq-line { margin-top: 16px; color: var(--muted); font-size: 14px; }
.recruit-qq-line strong { color: var(--accent-2); font-family: var(--font-mono); letter-spacing: 1px; }
.recruit-apply-box h2 { margin-bottom: 14px; }
.recruit-hint { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.recruit-hint a { color: var(--accent-2); }
.recruit-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.recruit-form { display: flex; flex-direction: column; gap: 4px; }
.btn-block { width: 100%; margin-top: 8px; }
.recruit-status { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.recruit-status-badge { color: #fff; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 4px 14px; }
.recruit-status-dept { color: var(--muted); font-size: 13.5px; }
.recruit-status-timeline { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.recruit-status-timeline li {
    position: relative; padding-left: 26px; color: var(--muted); font-size: 14px;
}
.recruit-status-timeline li::before {
    content: ""; position: absolute; left: 4px; top: 3px; width: 12px; height: 12px;
    border-radius: 50%; border: 2px solid var(--line-d-strong); background: var(--black);
}
.recruit-status-timeline li.done { color: var(--text); }
.recruit-status-timeline li.done::before { border-color: var(--accent); background: var(--accent); }

/* ============================================================
   项目档案库
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proj-card {
    display: flex; flex-direction: column; gap: 8px; padding: 18px 20px;
    border: 1px solid var(--line-d); border-radius: var(--radius); background: var(--panel);
    transition: border-color .25s, transform .25s var(--ease-out);
}
a.proj-card:hover { border-color: rgba(13, 169, 205, .55); transform: translateY(-2px); }
.proj-card-locked { opacity: .72; cursor: default; }
.proj-card-head { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-card-title { color: #fff; font-size: 16.5px; }
.proj-card-summary { color: var(--muted); font-size: 13.5px; line-height: 1.6; flex: 1; }
.proj-card-foot { color: var(--accent-2); font-size: 12.5px; font-family: var(--font-mono); }
.proj-card-locked .proj-card-foot { color: var(--muted); }

.proj-summary { color: var(--text); font-size: 14.5px; line-height: 1.7; max-width: 720px; }
.proj-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.proj-breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; }
.proj-breadcrumb a { color: var(--accent-2); }
.proj-breadcrumb .sep { color: var(--muted); }
.proj-breadcrumb .cur { color: #fff; }
.proj-ops { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.proj-op-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.proj-op-form .input { max-width: 220px; }
.proj-file-table td { vertical-align: middle; }
.proj-folder-link { color: var(--accent-2); font-weight: 600; }
.proj-file-ext {
    display: inline-block; min-width: 42px; text-align: center; font-size: 11px; font-family: var(--font-mono);
    color: var(--muted); border: 1px solid var(--line-d); border-radius: 6px; padding: 1px 6px; margin-right: 4px;
}
.proj-members { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.proj-members li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.proj-members-empty { color: var(--muted); font-size: 13.5px; }
.proj-member-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 0 2px; }
.proj-member-remove:hover { color: var(--danger); }
.proj-add-member { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; border-top: 1px solid var(--line-d); padding-top: 12px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .nf-hero-inner { padding-top: 110px; }
    .nf-split { grid-template-columns: 1fr; }
    .nf-dir-grid, .bili-grid { grid-template-columns: repeat(2, 1fr); }
    .nf-timeline { grid-template-columns: repeat(2, 1fr); }
    .nf-tl-line { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .recruit-layout { grid-template-columns: 1fr; }
    .recruit-apply-layout { grid-template-columns: 1fr; }
    .proj-grid { grid-template-columns: repeat(2, 1fr); }
    .proj-layout { grid-template-columns: 1fr; }
    .recruit-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; border-left: none; margin-bottom: 6px; }
    .recruit-toc a { border-left: none; border: 1px solid var(--line-d); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
    .recruit-toc a.active { border-color: var(--accent); background: rgba(13, 169, 205, .08); }
    .toc-marker { display: none; }
    .nf-substats { grid-template-columns: repeat(2, 1fr); }
    .nf-substat { padding-left: 0; border-left: none; }
}

@media (max-width: 720px) {
    .nav-links, .nav-auth { display: none; }
    .nav-burger { display: block; margin-left: auto; }
    .site-nav.nav-open { background: rgba(5, 5, 6, .97); }
    .site-nav.nav-open .nav-links, .site-nav.nav-open .nav-auth {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; left: 0; right: 0; background: rgba(5, 5, 6, .97);
        border-bottom: 1px solid var(--line-d); padding: 12px 5%;
    }
    .site-nav.nav-open .nav-links { top: 74px; }
    .site-nav.nav-open .nav-links a { padding: 14px 10px; border-bottom: 1px solid var(--line-d); border-radius: 0; }
    .site-nav.nav-open .nav-auth { top: auto; position: static; flex-direction: row; padding: 14px 10px 8px; }
    .site-nav.nav-open .nav-auth .btn { flex: 1; }
    .nav-inner { position: relative; }

    .nf-hero { min-height: auto; }
    .nf-hero-inner { padding: 100px 0 30px; }
    .nf-hero-cta { gap: 20px; }
    .nf-hero-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
    .nf-scroll-cue { display: none; }
    .nf-dir-grid, .bili-grid { grid-template-columns: 1fr; }
    .nf-res-row { flex-wrap: wrap; row-gap: 4px; }
    .res-desc { flex-basis: 100%; order: 4; white-space: normal; padding-left: 30px; }
    .nf-timeline { grid-template-columns: 1fr; }
    .nf-reasons li { padding-left: 58px; }
    .nf-gallery-head { flex-direction: column; align-items: flex-start; }
    .nf-tile { width: 78vw; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bar-inner { flex-direction: column; align-items: flex-start; }
    .auth-card { padding: 28px 22px; }
    .filter-bar .input { width: 100%; }
    .nf-section { padding: 70px 0; }
    .nf-bignum { gap: 16px; }

    .nf-news-row { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .site-nav.nav-open .nav-auth .nav-bell-wrap { flex: none; }

    .event-card { flex-direction: column; gap: 12px; }
    .event-card-date { flex-direction: row; gap: 8px; width: auto; border-right: none; padding-right: 0; align-items: baseline; }
    .event-card-date strong { font-size: 22px; }
    .event-info-label { width: 60px; }

    .proj-grid { grid-template-columns: 1fr; }
    .proj-ops { flex-direction: column; gap: 10px; }
}
