/* starlight · deep field
 * 方向：深空观测站。近黑底、微弱极光、星点；一枚星金做唯一的强调色。
 * 规则：面靠 1px 光边与极浅的渐变分层；圆角只用于面板与控件；数字一律等宽。
 * SOUL=8 SPECTRE=6 DENSITY=4 — 层次来自光、留白与排版，不来自装饰。
 */

/* ============================================================
   0. TOKENS
   ============================================================ */
:root{
  /* --- 深空底：带蓝绿偏色的近黑，不用纯黑 --- */
  --void:      #070a0f;
  --void-2:    #090d13;
  --surface:   #0d121a;
  --surface-2: #111823;
  --surface-3: #16202d;
  --surface-4: #1b2634;

  /* --- 光边：白的一点点，比灰色边框更"发光" --- */
  --line:      rgba(255,255,255,.085);
  --line-soft: rgba(255,255,255,.05);
  --line-hard: rgba(255,255,255,.17);

  /* --- ink --- */
  --ink-1:     #eaf1f9;
  --ink-2:     #b6c3d3;
  --ink-3:     #8794a6;
  --ink-4:     #606c7b;

  /* --- 星金：唯一强调色。饱和度压到 46%，只用于链接、激活、关键标记 --- */
  --accent:      #d6b06a;
  --accent-2:    #efd8a8;
  --accent-ink:  #e4c68d;
  --accent-soft: rgba(214,176,106,.10);
  --accent-line: rgba(214,176,106,.34);
  --on-accent:   #16110a;

  /* --- 极光青：只给"在线 / 已解决"这类状态 --- */
  --teal:      #5ec7ab;
  --teal-soft: rgba(94,199,171,.11);

  /* --- semantic --- */
  --up:    #5ec7ab;
  --down:  #e08474;
  --warn:  #d8a75f;
  --info:  #7fa9d4;

  /* --- elevation：投影染底色的色相，不用纯黑 --- */
  --shadow-sm: 0 1px 2px rgba(0,4,8,.5);
  --shadow:    0 18px 40px -26px rgba(0,4,10,.9), 0 2px 6px -2px rgba(0,4,10,.6);
  --shadow-lg: 0 40px 90px -40px rgba(0,4,10,.95), 0 4px 14px -4px rgba(0,4,10,.7);
  --glow:      0 0 0 1px rgba(214,176,106,.24), 0 12px 30px -14px rgba(214,176,106,.22);

  /* --- radius --- */
  --r-xl: 22px;
  --r-lg: 16px;
  --r:    12px;
  --r-sm: 9px;
  --r-xs: 6px;
  --r-pill: 999px;

  /* --- type --- */
  --font-sans: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "DengXian",
               "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI",
               system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", "SFMono-Regular",
               "Roboto Mono", Consolas, "Liberation Mono", monospace;

  /* --- layout --- */
  --head-h: 66px;
  --maxw: 1280px;
  --gutter: 40px;

  /* --- spacing --- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;

  --z-sticky: 40;
  --z-nav: 70;
  --z-sheet: 90;
  --z-overlay: 95;
  --z-toast: 110;
}

/* ============================================================
   1. BASE
   ============================================================ */
*,*::before,*::after{ box-sizing:border-box; }
html{
  overflow-x:clip;
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  color-scheme:dark;
}

body{
  margin:0;
  overflow-x:clip;
  background:var(--void);
  color:var(--ink-2);
  font-family:var(--font-sans);
  font-size:15px;
  line-height:1.72;
  letter-spacing:.004em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

/* 极光：固定层，只做极慢的位移，不参与滚动重绘 */
body::before{
  content:"";
  position:fixed; inset:-20% -10%;
  z-index:0; pointer-events:none;
  background:
    radial-gradient(680px 520px at 10% -8%, rgba(94,199,171,.11), transparent 62%),
    radial-gradient(780px 560px at 90% -4%, rgba(214,176,106,.11), transparent 64%),
    radial-gradient(900px 700px at 60% 14%, rgba(72,110,170,.075), transparent 70%);
  animation:aurora 34s ease-in-out infinite alternate;
}
@keyframes aurora{
  from{ transform:translate3d(0,0,0) scale(1); }
  to  { transform:translate3d(-2%, 1.6%,0) scale(1.06); }
}

/* 星点：固定的点阵层，密度低到"偶尔看见" */
body::after{
  content:"";
  position:fixed; inset:0;
  z-index:0; pointer-events:none;
  opacity:.62;
  background-image:
    radial-gradient(1px 1px at 18% 12%, rgba(255,255,255,.55), transparent 100%),
    radial-gradient(1px 1px at 72% 8%,  rgba(255,255,255,.40), transparent 100%),
    radial-gradient(1.2px 1.2px at 44% 26%, rgba(255,255,255,.32), transparent 100%),
    radial-gradient(1px 1px at 88% 34%, rgba(255,255,255,.30), transparent 100%),
    radial-gradient(1px 1px at 8% 52%,  rgba(255,255,255,.24), transparent 100%),
    radial-gradient(1.4px 1.4px at 62% 68%, rgba(255,255,255,.22), transparent 100%),
    radial-gradient(1px 1px at 32% 82%, rgba(255,255,255,.20), transparent 100%),
    radial-gradient(1px 1px at 94% 76%, rgba(255,255,255,.26), transparent 100%),
    radial-gradient(1px 1px at 54% 44%, rgba(255,255,255,.14), transparent 100%);
}

/* 内容层必须压在极光与星点之上 */
.app{ position:relative; z-index:1; display:flex; flex-direction:column; min-height:100dvh; }

/* 标题：靠字重与紧字距建立层级，不靠字号尖叫 */
h1,h2,h3,h4,h5{
  margin:0;
  color:var(--ink-1);
  font-weight:700;
  line-height:1.3;
  letter-spacing:-.022em;
  text-wrap:balance;
}
p{ margin:0; }
ul,ol{ margin:0; padding:0; list-style:none; }
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; color:inherit; letter-spacing:inherit; }
button{ cursor:pointer; background:none; border:none; padding:0; }
hr{ border:0; border-top:1px solid var(--line); margin:0; }

::selection{ background:rgba(214,176,106,.24); color:#fff; }

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

/* 深色滚动条 */
*{ scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.14) transparent; }
::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.10);
  border:2px solid transparent;
  background-clip:padding-box;
  border-radius:99px;
}
::-webkit-scrollbar-thumb:hover{ background:rgba(255,255,255,.22); background-clip:padding-box; }

.mono{
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  letter-spacing:-.01em;
  font-size:.92em;
}
.tnum{ font-variant-numeric:tabular-nums; }
.muted{ color:var(--ink-3); }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* 小标签：等宽 + 大字距，全站唯一的装饰性文字 */
.eyebrow,
.crumb,
.hero-eyebrow,
.act-eyebrow,
.preview-label,
.micro-label{
  font-family:var(--font-mono);
  font-size:10.5px;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--ink-4);
}

/* ============================================================
   2. SHELL — 顶部横向导航
   ============================================================ */

/* 顶部一条液态玻璃：模糊 + 内边缘折射 */
.site-head{
  position:sticky; top:0; z-index:var(--z-nav);
  border-bottom:1px solid var(--line-soft);
  background:rgba(7,10,15,.72);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  backdrop-filter:blur(18px) saturate(150%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.head-in{
  max-width:var(--maxw);
  margin:0 auto;
  height:var(--head-h);
  padding:0 var(--gutter);
  display:flex; align-items:center; gap:28px;
}

/* 品牌 */
.brand{ display:flex; align-items:center; gap:11px; flex-shrink:0; }
.brand-mark{
  position:relative;
  width:32px; height:32px; border-radius:10px;
  background:linear-gradient(150deg, #1d2a22, #101820);
  box-shadow:0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.14);
  display:grid; place-items:center;
  overflow:hidden;
}
.brand-mark img{ width:100%; height:100%; object-fit:cover; opacity:.95; }
.brand-mark::after{          /* 徽记上一粒星 */
  content:"";
  position:absolute; inset:-40% -40% auto auto;
  width:70%; height:70%;
  background:radial-gradient(circle, rgba(240,216,168,.55), transparent 62%);
  pointer-events:none;
}
.brand-txt{ display:flex; flex-direction:column; line-height:1.15; }
.brand-name{
  font-size:14px; font-weight:700; color:var(--ink-1);
  letter-spacing:.02em; white-space:nowrap;
}
.brand-sub{
  font-family:var(--font-mono); font-size:8.5px; font-weight:500;
  letter-spacing:.26em; color:var(--ink-4); text-transform:uppercase;
  margin-top:3px;
}

/* 主导航 */
.nav{ display:flex; align-items:center; gap:2px; min-width:0; }
.nav-link{
  position:relative;
  display:inline-flex; align-items:center; gap:7px;
  height:34px; padding:0 13px;
  border-radius:var(--r-pill);
  font-size:13px; font-weight:500; color:var(--ink-2);
  white-space:nowrap;
  transition:color .2s ease, background .2s ease;
}
.nav-link svg{ width:15px; height:15px; opacity:.55; transition:opacity .2s ease; }
.nav-link:hover{ color:var(--ink-1); background:rgba(255,255,255,.05); }
.nav-link:hover svg{ opacity:.85; }
.nav-link[aria-current="page"]{
  color:var(--ink-1); font-weight:600;
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(255,255,255,.05);
}
.nav-link[aria-current="page"] svg{ opacity:1; color:var(--accent); }
.nav-link[aria-current="page"]::after{
  content:"";
  position:absolute; left:50%; bottom:-1px; translate:-50% 0;
  width:16px; height:1.5px; border-radius:2px;
  background:var(--accent);
  box-shadow:0 0 10px rgba(214,176,106,.6);
}

/* 更多：全宽下拉面板（贴在顶栏下沿，内容与顶栏对齐） */
.nav-more{ position:static; }
.nav-more-btn{
  display:inline-flex; align-items:center; gap:6px;
  height:34px; padding:0 12px; border-radius:var(--r-pill);
  font-size:13px; font-weight:500; color:var(--ink-2);
  white-space:nowrap;
  transition:color .2s, background .2s;
}
.nav-more-btn svg{ width:13px; height:13px; opacity:.6; transition:transform .26s cubic-bezier(.16,1,.3,1); }
.nav-more-btn:hover{ color:var(--ink-1); background:rgba(255,255,255,.05); }
.nav-more.open .nav-more-btn{ color:var(--ink-1); background:rgba(255,255,255,.07); }
.nav-more.open .nav-more-btn svg{ transform:rotate(180deg); }

.nav-panel{
  position:absolute; top:100%; left:0; right:0;
  background:#0a0f16;
  border-bottom:1px solid var(--line);
  box-shadow:0 30px 60px -30px rgba(0,0,0,.95);
  opacity:0; visibility:hidden; translate:0 -8px;
  transition:opacity .2s ease, translate .26s cubic-bezier(.16,1,.3,1), visibility .2s;
  z-index:var(--z-nav);
}
.nav-more.open .nav-panel{ opacity:1; visibility:visible; translate:0 0; }

/* 指向「更多」的小三角，位置由 JS 按按钮中心算 */
.np-arrow{
  position:absolute; top:-6px; left:var(--arrow-x, 72%);
  width:11px; height:11px;
  translate:-50% 0; rotate:45deg;
  background:#0a0f16;
  border-left:1px solid var(--line);
  border-top:1px solid var(--line);
}

.np-in{
  position:relative;
  max-width:var(--maxw); margin:0 auto;
  padding:26px var(--gutter) 14px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:0 44px;
}
.np-cols{
  grid-column:1; grid-row:1;
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0 20px;
}
.np-group{ display:flex; flex-direction:column; gap:1px; min-width:0; }

/* 列标题：比菜单项更小、更亮、带一点字距，层级拉得开 */
.np-label{
  display:flex; align-items:center; gap:7px;
  font-family:var(--font-mono); font-size:10px; font-weight:600;
  letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink-3);
  padding:0 8px 10px;
}
.np-label::before{
  content:""; width:4px; height:4px; rotate:45deg;
  background:var(--accent); opacity:.75;
  box-shadow:0 0 7px rgba(214,176,106,.7);
}

.np-link{
  position:relative;
  display:flex; align-items:center; gap:9px;
  padding:9px 8px; border-radius:9px;
  font-size:13px; color:var(--ink-2);
  transition:background .16s, color .16s, translate .16s;
}
.np-link svg{ width:14px; height:14px; color:var(--ink-4); flex-shrink:0; transition:color .16s; }
.np-link:hover{ background:rgba(255,255,255,.055); color:var(--ink-1); translate:2px 0; }
.np-link:hover svg{ color:var(--accent); }
.np-link[aria-current="page"]{ color:var(--ink-1); background:rgba(214,176,106,.09); }
.np-link[aria-current="page"] svg{ color:var(--accent); }
.np-badge{
  margin-left:auto;
  min-width:16px; height:16px; padding:0 4px;
  display:grid; place-items:center;
  border-radius:5px; background:var(--accent); color:var(--on-accent);
  font-family:var(--font-mono); font-size:9px; font-weight:700;
}
.np-lock{ margin-left:auto; display:none; color:var(--ink-4); opacity:.7; }
body.is-guest .np-lock{ display:inline-flex; }
body.is-guest .np-link[data-need-auth]{ color:var(--ink-3); }

/* 右侧用户卡 */
.np-side{
  grid-column:2; grid-row:1 / span 2;
  border-left:1px solid var(--line-soft);
  padding-left:36px;
  display:flex; flex-direction:column; gap:14px;
  min-height:100%;
}
.np-who{ display:flex; align-items:flex-start; gap:12px; }
.np-ava{ width:44px; height:44px; border-radius:12px; }
.np-who-txt{ min-width:0; padding-top:2px; }
.np-who-name{
  font-size:13.5px; font-weight:600; color:var(--ink-1);
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
}
.np-who-uid{
  font-family:var(--font-mono); font-size:10px; color:var(--ink-4);
  letter-spacing:.08em; margin-top:4px;
}
.np-quick{ display:flex; flex-direction:column; gap:1px; }
.np-quick a{
  font-size:12.5px; color:var(--ink-3);
  padding:6px 0; border-bottom:1px dashed rgba(255,255,255,.05);
  transition:color .16s, padding-left .16s;
}
.np-quick a:last-child{ border-bottom:0; }
.np-quick a:hover{ color:var(--accent-ink); padding-left:4px; }
.np-admin{
  display:inline-flex; align-items:center; gap:7px;
  height:30px; padding:0 11px; border-radius:var(--r-pill);
  border:1px solid rgba(214,176,106,.28);
  background:rgba(214,176,106,.08);
  color:var(--accent-ink); font-size:12px;
  align-self:flex-start;
}
.np-admin:hover{ background:rgba(214,176,106,.15); }
.np-me-out{
  height:30px; padding:0 12px; border-radius:var(--r-pill);
  border:1px solid var(--line); color:var(--ink-3);
  font-family:inherit; font-size:11.5px; cursor:pointer;
  background:none; white-space:nowrap; align-self:flex-start;
  transition:color .18s, border-color .18s, background .18s;
}
.np-me-out:hover{ color:var(--down); border-color:rgba(224,132,116,.42); background:rgba(224,132,116,.07); }

/* 游客：右侧直接给登录，别再写一行「还没登录」再挂个按钮 */
.np-guest{ display:flex; gap:11px; align-items:flex-start; }
.np-guest-mark{
  width:34px; height:34px; flex:0 0 auto; border-radius:10px;
  display:grid; place-items:center;
  color:var(--accent);
  background:radial-gradient(circle at 30% 25%, rgba(214,176,106,.22), rgba(214,176,106,.04));
  box-shadow:inset 0 0 0 1px rgba(214,176,106,.22);
}
.np-guest-note{ font-size:11.5px; line-height:1.7; color:var(--ink-3); margin-top:5px; }
.np-guest-act{ display:flex; gap:9px; }
.np-guest-act .btn{ flex:1; justify-content:center; }

/* 底部细链接 + 固定开关 */
.np-foot{
  grid-column:1; grid-row:2;
  display:flex; align-items:center; gap:18px;
  margin-top:16px; padding-top:12px;
  border-top:1px solid var(--line-soft);
}
.np-foot a{ font-size:11.5px; color:var(--ink-4); transition:color .16s; }
.np-foot a:hover{ color:var(--ink-2); }
.np-lockbtn{
  margin-left:auto;
  display:inline-flex; align-items:center; gap:6px;
  height:26px; padding:0 10px; border-radius:var(--r-pill);
  border:1px solid transparent; background:none;
  color:var(--ink-4); font-family:inherit; font-size:11px; cursor:pointer;
  transition:color .16s, border-color .16s, background .16s;
}
.np-lockbtn:hover{ color:var(--ink-2); border-color:var(--line); }
.np-lockbtn[aria-pressed="true"]{
  color:var(--accent-ink); border-color:rgba(214,176,106,.3);
  background:rgba(214,176,106,.09);
}

/* 通知红点 */
.btn-icon.has-dot{ position:relative; }
.btn-icon.has-dot::after{
  content:''; position:absolute; top:7px; right:8px;
  width:5px; height:5px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 0 2px var(--void);
}

/* 右侧工具 */
.head-tools{ display:flex; align-items:center; gap:10px; margin-left:auto; flex-shrink:0; }
.head-search{ position:relative; width:224px; }
.head-search svg{
  position:absolute; left:11px; top:50%; translate:0 -50%;
  width:14px; height:14px; color:var(--ink-4); pointer-events:none;
}
.head-search input{
  width:100%; height:36px;
  padding:0 12px 0 32px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line-soft);
  border-radius:var(--r-pill);
  font-size:12.5px; color:var(--ink-1);
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.head-search input::placeholder{ color:var(--ink-4); }
.head-search input:hover{ border-color:var(--line); background:rgba(255,255,255,.055); }
.head-search input:focus{
  outline:none; background:rgba(255,255,255,.06);
  border-color:var(--accent-line);
  box-shadow:0 0 0 3px rgba(214,176,106,.09);
}
.head-search input::-webkit-search-cancel-button{ -webkit-appearance:none; }

/* 页内搜索：比顶栏更大的一行，用于资源中心这类页面 */
.searchbox{ position:relative; width:100%; }
.searchbox > svg{
  position:absolute; left:17px; top:50%; translate:0 -50%;
  width:17px; height:17px; color:var(--ink-4); pointer-events:none;
}
.searchbox input{
  width:100%; height:52px;
  padding:0 18px 0 46px;
  border-radius:var(--r);
  background:rgba(0,0,0,.3);
  border:1px solid var(--line);
  font-size:14px; color:var(--ink-1);
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.searchbox input::placeholder{ color:var(--ink-4); }
.searchbox input:hover{ border-color:var(--line-hard); }
.searchbox input:focus{
  outline:none; background:rgba(0,0,0,.4);
  border-color:var(--accent-line);
  box-shadow:0 0 0 3px rgba(214,176,106,.09);
}

.only-sm{ display:none !important; }

/* 页面标题区 */
.content{
  flex:1;
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:38px var(--gutter) 110px;
}

.page-head{
  display:flex; align-items:flex-end; gap:20px;
  flex-wrap:wrap;
  margin-bottom:30px;
  padding-bottom:22px;
  border-bottom:1px solid var(--line-soft);
}
.page-head-txt{ min-width:0; }
.page-head .eyebrow{
  display:block; margin-bottom:10px;
  color:rgba(214,176,106,.78);
}
.page-head h1{
  font-size:clamp(24px, 2.6vw, 33px);
  font-weight:750;
  letter-spacing:-.035em;
  line-height:1.18;
  overflow-wrap:anywhere;
}
.page-head-lead{
  font-size:13px; color:var(--ink-3);
  margin-top:8px; max-width:62ch; line-height:1.7;
}
.page-head-tools{
  display:flex; align-items:center; gap:8px;
  margin-left:auto; flex-wrap:wrap;
}

/* 详情页返回条 */
.crumb-bar{
  display:flex; align-items:center; gap:12px;
  margin-bottom:20px;
}
.crumb-back{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12.5px; font-weight:600; color:var(--ink-3);
  padding:6px 10px 6px 6px; border-radius:var(--r-pill);
  transition:color .18s, background .18s;
}
.crumb-back svg{ transition:transform .24s cubic-bezier(.16,1,.3,1); }
.crumb-back:hover{ color:var(--ink-1); background:rgba(255,255,255,.05); }
.crumb-back:hover svg{ transform:translateX(-2px); }
.crumb-id{
  font-size:10.5px; color:var(--ink-4);
  padding-left:12px; border-left:1px solid var(--line);
}

/* 顶部 1px 阅读进度 */
.scroll-line{
  position:fixed; top:0; left:0; right:0; height:1.5px;
  transform-origin:0 50%; transform:scaleX(0);
  background:linear-gradient(90deg, rgba(214,176,106,.1), var(--accent));
  z-index:calc(var(--z-nav) + 1);
  pointer-events:none;
  will-change:transform;
}

/* 页脚：一条收束线 + 三列小字 */
.site-foot{
  border-top:1px solid var(--line-soft);
  margin-top:auto;
  padding:44px var(--gutter) 52px;
}
.site-foot-in{
  max-width:var(--maxw); margin:0 auto;
  display:grid; grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,.8fr));
  gap:32px; align-items:start;
}
.foot-brand{ display:flex; flex-direction:column; gap:10px; }
.foot-brand .brand-name{ font-size:13px; }
.foot-note{ font-size:11.5px; color:var(--ink-4); line-height:1.8; max-width:36ch; }
.foot-col{ display:flex; flex-direction:column; gap:7px; }
.foot-col .np-label{ padding:0 0 4px; }
.foot-col a{ font-size:11.5px; color:var(--ink-3); width:fit-content; }
.foot-col a:hover{ color:var(--accent-ink); }
.foot-copy{
  max-width:var(--maxw); margin:32px auto 0;
  padding-top:18px; border-top:1px solid var(--line-soft);
  font-family:var(--font-mono); font-size:10px; letter-spacing:.1em;
  color:var(--ink-4); text-transform:uppercase;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}

/* ============================================================
   3. PRIMITIVES
   ============================================================ */

/* ---------- 3.1 内容面：光边 + 极浅渐变，不用重投影 ---------- */
.card{
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.014));
  background-color:rgba(16,23,33,.66);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.card-pad{ padding:22px 24px; }
.card-pad-lg{ padding:30px 34px; }
.card-head{
  display:flex; align-items:center; gap:10px;
  padding:17px 22px 14px;
  border-bottom:1px solid var(--line-soft);
}
.card-head h2,.card-head h3{
  font-size:12.5px; font-weight:650; letter-spacing:.01em;
  color:var(--ink-1);
}
.card-head .head-note{ font-family:var(--font-mono); font-size:11px; color:var(--ink-3); }
.card-head-spacer{ flex:1; }
.card-body{ padding:20px 22px; }
.card-foot{
  padding:14px 22px; border-top:1px solid var(--line-soft);
  display:flex; align-items:center; gap:10px;
}

/* 侧栏：不叠盒子，只叠版块，靠一条发丝线分节 */
.aside{ display:flex; flex-direction:column; gap:26px; }
.aside .card{
  background:transparent; border:0; border-radius:0;
  box-shadow:none;
}
.aside .card + .card{ padding-top:0; }
.aside .card-head{ padding:0 0 11px; border-bottom:0; }
.aside .card-head h2{
  font-family:var(--font-mono); font-size:10px; font-weight:500;
  letter-spacing:.18em; text-transform:uppercase; color:var(--ink-4);
}
.aside .card-head .head-note{ color:var(--accent); font-size:11px; }
.aside .card-body{ padding:0; }
.aside .card .card-foot{ padding:12px 0 0; }
.aside .note-box{
  background:transparent; border:0; padding:0;
  box-shadow:none;
}
.aside .note-box .mono{ font-size:15px; color:var(--ink-1); }

/* ---------- 3.2 按钮 ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  height:38px; padding:0 17px;
  border-radius:var(--r-pill);
  font-size:13px; font-weight:600; letter-spacing:.005em; white-space:nowrap;
  border:1px solid transparent;
  transition:background .2s ease, border-color .2s ease, color .2s ease,
             transform .16s cubic-bezier(.16,1,.3,1), box-shadow .24s ease;
}
.btn svg{ width:14px; height:14px; flex-shrink:0; }
.btn:active{ transform:translateY(1px) scale(.985); }

.btn-primary{
  background:linear-gradient(180deg, #e3c281, var(--accent));
  color:var(--on-accent);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 1px 0 rgba(255,255,255,.3) inset, 0 8px 22px -12px rgba(214,176,106,.7);
}
.btn-primary:hover{
  background:linear-gradient(180deg, #f0d69f, #dcb972);
  box-shadow:0 1px 0 rgba(255,255,255,.36) inset, 0 12px 28px -12px rgba(214,176,106,.8);
}
.btn-primary svg{ opacity:.85; }

.btn-outline{
  background:rgba(255,255,255,.028); color:var(--ink-1);
  border-color:var(--line);
}
.btn-outline:hover{
  background:rgba(255,255,255,.07);
  border-color:var(--line-hard);
}

.btn-ghost{ background:transparent; color:var(--ink-2); }
.btn-ghost:hover{ background:rgba(255,255,255,.055); color:var(--ink-1); }

.btn-danger{
  background:rgba(224,132,116,.06); color:var(--down);
  border-color:rgba(224,132,116,.28);
}
.btn-danger:hover{ background:rgba(224,132,116,.12); border-color:rgba(224,132,116,.45); }

.btn-sm{ height:31px; padding:0 12px; font-size:12px; gap:6px; }
.btn-sm svg{ width:12px; height:12px; }
.btn-lg{ height:46px; padding:0 24px; font-size:14px; }

.btn-icon{
  width:36px; height:36px; padding:0;
  border-radius:var(--r-sm);
  display:inline-grid; place-items:center;
  background:transparent; color:var(--ink-3);
  border:1px solid transparent;
  transition:background .18s, color .18s, border-color .18s;
}
.btn-icon:hover{
  background:rgba(255,255,255,.06); color:var(--ink-1);
  border-color:var(--line-soft);
}
.btn-icon svg{ width:17px; height:17px; }

.btn[disabled],.btn[aria-disabled="true"]{
  opacity:.34; cursor:not-allowed; pointer-events:none;
}
.btn-block{ width:100%; }

/* ---------- 3.3 标签 ---------- */
.chip{
  display:inline-flex; align-items:center; gap:5px;
  height:23px; padding:0 9px;
  border-radius:var(--r-pill);
  font-size:11.5px; font-weight:600; letter-spacing:.01em; white-space:nowrap;
  background:rgba(255,255,255,.035);
  border:1px solid var(--line-soft);
  color:var(--ink-3);
}
.chip-sm{ height:20px; padding:0 7px; font-size:10.5px; gap:4px; }
.chip svg{ width:10px; height:10px; }
.chip-accent{
  background:var(--accent-soft); border-color:rgba(214,176,106,.2); color:var(--accent-ink);
}
.chip-gold{ background:rgba(216,167,95,.11); border-color:rgba(216,167,95,.22); color:var(--warn); }
.chip-up{ background:var(--teal-soft); border-color:rgba(94,199,171,.22); color:var(--up); }
.chip-down{ background:rgba(224,132,116,.1); border-color:rgba(224,132,116,.22); color:var(--down); }
.chip-outline{ background:transparent; border-color:var(--line); color:var(--ink-3); font-weight:500; }

/* 头衔徽记 */
.tb{
  display:inline-flex; align-items:center; gap:3px;
  height:17px; padding:0 6px;
  border-radius:5px;
  font-size:9.5px; font-weight:700; letter-spacing:.05em;
  vertical-align:1px; white-space:nowrap;
  text-transform:uppercase;
}
.tb-verified{ background:rgba(127,169,212,.13); color:#9cc0e4; }
.tb-dev{ background:rgba(214,176,106,.14); color:var(--accent-ink); }
.tb-spread{ background:var(--teal-soft); color:var(--up); }
.tb svg{ width:9px; height:9px; }

.dot{ width:6px; height:6px; border-radius:50%; display:inline-block; flex-shrink:0; }
.dot-up{
  background:var(--up);
  box-shadow:0 0 0 3px rgba(94,199,171,.14), 0 0 10px rgba(94,199,171,.7);
  animation:breathe 2.8s ease-in-out infinite;
}
.dot-off{ background:var(--ink-4); }
.dot-down{ background:var(--down); box-shadow:0 0 0 3px rgba(224,132,116,.13); }
.dot-busy{ background:var(--warn); animation:breathe-down 1.4s ease-in-out infinite; }
@keyframes breathe-down{
  0%,100%{ opacity:.45; } 50%{ opacity:1; }
}
@keyframes breathe{
  0%,100%{ box-shadow:0 0 0 3px rgba(94,199,171,.12), 0 0 8px rgba(94,199,171,.5); }
  50%    { box-shadow:0 0 0 4.5px rgba(94,199,171,.05), 0 0 14px rgba(94,199,171,.85); }
}

/* ---------- 3.4 头像 ---------- */
.avatar{
  width:38px; height:38px; border-radius:50%;
  object-fit:cover; background:var(--surface-2);
  flex-shrink:0;
  box-shadow:0 0 0 1px rgba(255,255,255,.1), inset 0 0 0 1px rgba(0,0,0,.4);
}
.avatar-sm{ width:26px; height:26px; }
.avatar-lg{ width:78px; height:78px; }
.avatar-xl{ width:94px; height:94px; }
.avatar-round{ border-radius:50%; }
.avatar-stack{ display:flex; }
.avatar-stack .avatar{ margin-left:-9px; box-shadow:0 0 0 2px var(--surface); }
.avatar-stack .avatar:first-child{ margin-left:0; }

.avatar-initial{
  display:grid; place-items:center;
  background:linear-gradient(160deg, var(--surface-3), var(--surface-2));
  color:var(--ink-2);
  font-family:var(--font-mono);
  font-weight:600; font-size:13px; letter-spacing:0;
  user-select:none;
  text-transform:uppercase;
}
.avatar-initial.avatar-sm{ font-size:10px; }
.avatar-initial.avatar-lg{ font-size:24px; }
.avatar-initial.avatar-xl{ font-size:30px; }

/* ---------- 3.5 表单 ---------- */
.field{ display:flex; flex-direction:column; gap:8px; }
.field + .field{ margin-top:19px; }
.field label{
  font-size:12px; font-weight:600; color:var(--ink-1);
  letter-spacing:.01em;
}
.field .hint{ font-size:11.5px; color:var(--ink-4); line-height:1.6; }
.field .req{ color:var(--accent); margin-left:3px; }

.input,.select,.textarea{
  width:100%;
  background:rgba(255,255,255,.035);
  border:1px solid var(--line);
  border-radius:var(--r-sm);
  padding:0 13px; height:42px;
  font-size:14px; color:var(--ink-1);
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.textarea{ height:auto; min-height:124px; padding:12px 13px; resize:vertical; line-height:1.78; }
.input::placeholder,.textarea::placeholder{ color:var(--ink-4); }
.input:hover,.select:hover,.textarea:hover{ border-color:var(--line-hard); background:rgba(255,255,255,.045); }
.input:focus,.select:focus,.textarea:focus{
  outline:none;
  background:rgba(255,255,255,.055);
  border-color:var(--accent-line);
  box-shadow:0 0 0 3px rgba(214,176,106,.1);
}
.input[aria-invalid="true"],.textarea[aria-invalid="true"]{
  border-color:rgba(224,132,116,.55);
  box-shadow:0 0 0 3px rgba(224,132,116,.09);
}
.field-error{
  font-size:11.5px; color:var(--down);
  display:flex; gap:5px; align-items:flex-start;
}
.field-error svg{ width:12px; height:12px; margin-top:3px; flex-shrink:0; }

.select{
  appearance:none; padding-right:34px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%237a8798' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; background-size:11px;
}
.select option{ background:var(--surface-2); color:var(--ink-1); }

.seg{
  display:inline-flex; padding:3px; gap:2px;
  background:rgba(255,255,255,.035);
  border:1px solid var(--line-soft);
  border-radius:var(--r-pill);
}
.seg button{
  height:26px; padding:0 12px;
  border-radius:var(--r-pill);
  font-size:11.5px; font-weight:600; color:var(--ink-3);
  transition:background .18s, color .18s;
  white-space:nowrap;
}
.seg button + button{ border-left:0; }
.seg button:hover{ color:var(--ink-1); }
.seg button[aria-selected="true"]{
  background:rgba(255,255,255,.1);
  color:var(--ink-1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

.check{ display:inline-flex; align-items:center; gap:8px; cursor:pointer; font-size:13px; }
.check input{ width:15px; height:15px; accent-color:var(--accent); cursor:pointer; }

/* ---------- 3.6 表格 ---------- */
.table{ width:100%; border-collapse:collapse; font-size:13px; }
.table th{
  text-align:left;
  font-family:var(--font-mono);
  font-size:9.5px; font-weight:500;
  letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink-4);
  padding:10px 14px; border-bottom:1px solid var(--line);
  white-space:nowrap;
  background:rgba(255,255,255,.018);
}
.table td{
  padding:13px 14px; border-bottom:1px solid var(--line-soft);
  color:var(--ink-2); vertical-align:middle;
}
.table tbody tr:last-child td{ border-bottom:none; }
.table tbody tr{ transition:background .16s; }
.table tbody tr:hover{ background:rgba(255,255,255,.028); }
.table .num{
  text-align:right; font-family:var(--font-mono);
  font-variant-numeric:tabular-nums; color:var(--ink-2);
}
.table .cell-strong{ color:var(--ink-1); font-weight:600; }
.table .row-actions{ display:flex; gap:6px; justify-content:flex-end; }

/* ---------- 3.7 空态 / 骨架 ---------- */
.empty{
  display:flex; flex-direction:column; align-items:center; gap:12px;
  padding:68px 24px; text-align:center;
}
.empty-mark{
  width:46px; height:46px; border-radius:14px;
  display:grid; place-items:center;
  border:1px solid var(--line); color:var(--ink-4);
  background:rgba(255,255,255,.025);
  margin-bottom:2px;
}
.empty-mark svg{ width:20px; height:20px; }
.empty h3{ font-size:14px; font-weight:700; }
.empty p{ font-size:12.5px; color:var(--ink-4); max-width:36ch; line-height:1.7; }

.skel{
  background:linear-gradient(90deg,
    rgba(255,255,255,.035) 25%,
    rgba(255,255,255,.085) 37%,
    rgba(255,255,255,.035) 63%);
  background-size:400% 100%;
  animation:skel 1.6s ease infinite;
  border-radius:6px;
}
@keyframes skel{ 0%{background-position:100% 0} 100%{background-position:-100% 0} }

/* ---------- 3.8 补白件 ---------- */
.note-box{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line-soft);
  border-radius:var(--r);
  padding:14px 16px;
}
.note-box-sm{ padding:10px 12px; }
.card-quiet{
  background:transparent;
  border-color:var(--line-soft);
  box-shadow:none;
}
.doc-page{ padding:38px 44px 50px; max-width:820px; }

.link-accent{ color:var(--accent-ink); font-weight:600; }
.link-accent:hover{ text-decoration:underline; text-underline-offset:3px; }

.captcha{
  width:106px; height:42px; flex-shrink:0;
  border:1px solid var(--line); background:rgba(255,255,255,.04);
  border-radius:var(--r-sm);
  display:grid; place-items:center;
  font-family:var(--font-mono); font-size:16px;
  letter-spacing:.22em; color:var(--ink-3);
  font-style:italic; user-select:none; cursor:pointer;
  transition:border-color .18s, color .18s;
}
.captcha:hover{ border-color:var(--line-hard); color:var(--ink-2); }

.btn.is-current{
  background:rgba(255,255,255,.1);
  border-color:var(--line-hard);
  color:var(--ink-1);
}

.micro-label{
  font-size:10px; letter-spacing:.18em;
  color:var(--ink-4); margin-bottom:9px;
}
.fineprint{
  margin-top:52px; font-size:10.5px; color:var(--ink-4);
  line-height:1.9; max-width:62ch;
}
.hl-gold{
  background:var(--accent-soft); color:var(--accent-ink);
  padding:1px 5px; border-radius:5px; font-weight:600;
}

/* ============================================================
   4. CONTENT PIECES
   ============================================================ */

/* ---------- 4.1 首页门面：一块斜切的深空面板 ---------- */
.hero{
  position:relative; overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) 264px;
  grid-template-rows:auto auto;
  border:1px solid var(--line);
  border-radius:var(--r-xl);
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(94,199,171,.10), transparent 55%),
    radial-gradient(100% 120% at 96% 6%, rgba(214,176,106,.13), transparent 58%),
    linear-gradient(165deg, #101a24 0%, #0c121a 46%, #080c12 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 40px 80px -50px rgba(0,0,0,.95);
  margin-bottom:38px;
}
.hero::before{                /* 更大的星场，只在右半 */
  content:"";
  position:absolute; right:0; top:0; width:64%; height:100%;
  pointer-events:none;
  background:
    radial-gradient(1.4px 1.4px at 24% 18%, rgba(255,255,255,.6), transparent 100%),
    radial-gradient(1px 1px at 48% 34%, rgba(255,255,255,.34), transparent 100%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.4), transparent 100%),
    radial-gradient(1.2px 1.2px at 86% 52%, rgba(255,255,255,.3), transparent 100%),
    radial-gradient(1px 1px at 62% 74%, rgba(255,255,255,.24), transparent 100%),
    radial-gradient(1px 1px at 32% 88%, rgba(255,255,255,.18), transparent 100%),
    radial-gradient(1px 1px at 92% 84%, rgba(255,255,255,.2), transparent 100%);
}
.hero::after{                 /* 底部一条渐隐的地平线 */
  content:"";
  position:absolute; left:0; right:0; bottom:0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(214,176,106,.4), transparent);
  pointer-events:none;
}

.hero-inner{
  grid-column:1; grid-row:1;
  position:relative; z-index:1;
  padding:52px 52px 22px;
  min-width:0;
}
.hero-mark{
  width:38px; height:38px; border-radius:12px; flex-shrink:0;
  margin-bottom:26px;
  box-shadow:0 0 0 1px rgba(255,255,255,.18), 0 10px 24px -12px rgba(0,0,0,.9);
}
.hero-txt{ min-width:0; }
.hero-eyebrow{
  display:flex; align-items:center; gap:10px;
  font-size:10.5px; letter-spacing:.2em;
  color:var(--accent); margin-bottom:18px;
}
.hero-eyebrow::before{
  content:""; width:22px; height:1px;
  background:linear-gradient(90deg, transparent, var(--accent));
  flex-shrink:0;
}
.hero h2{
  font-size:clamp(30px, 3.3vw, 44px);
  font-weight:800; letter-spacing:-.045em;
  color:#f2f7fd; line-height:1.24;
  margin-bottom:18px;
  max-width:24ch;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
.hero h2 em{
  font-style:normal;
  color:var(--accent-2);
  background:linear-gradient(180deg, transparent 62%, rgba(214,176,106,.18) 62%);
  padding:0 2px;
}
.hero p{
  font-size:14px; color:#8b98a9; max-width:60ch; line-height:1.85;
}

.hero-actions{
  grid-column:1; grid-row:2;
  position:relative; z-index:1;
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:26px 52px 44px;
}
.hero .btn-outline{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.14);
  color:#dfe8f2;
}
.hero .btn-outline:hover{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.26); }

.hero-stats{
  grid-column:2; grid-row:1 / 3;
  position:relative; z-index:1;
  display:flex; flex-direction:column;
  padding:34px 28px 32px;
  border-left:1px solid rgba(255,255,255,.075);
  background:linear-gradient(180deg, rgba(255,255,255,.03), transparent 72%);
}
.hero-stats-head{
  display:flex; align-items:center; gap:8px;
  margin-bottom:auto;
  padding-bottom:22px;
}
.hero-stats-head .eyebrow{ font-size:9.5px; color:#93a1b3; letter-spacing:.2em; }
.hero-stats-head .dot{ width:5px; height:5px; }
.hero-stats > div:not(.hero-stats-head){ padding:15px 0; }
.hero-stats > div:last-child{ padding-bottom:0; }
.hero-stats > div + div:not(.hero-stats-head){ border-top:1px solid rgba(255,255,255,.065); }
.hero-stat-num{
  font-family:var(--font-mono); font-size:31px; font-weight:600;
  color:#f6f9fd; letter-spacing:-.045em;
  font-variant-numeric:tabular-nums; line-height:1.05;
}
.hero-stat-label{
  font-size:10.5px; letter-spacing:.12em;
  color:#93a1b3; margin-top:7px;
  font-family:var(--font-mono);
}

/* 长句门面（关于页这类叙述型标题）：单列，不放统计栏 */
.hero-wide{
  grid-template-columns:minmax(0,1fr);
  background:
    radial-gradient(90% 130% at 92% -10%, rgba(214,176,106,.14), transparent 58%),
    radial-gradient(70% 110% at 2% 110%, rgba(94,199,171,.1), transparent 60%),
    linear-gradient(165deg, #101a24 0%, #0b1119 52%, #080c12 100%);
}
.hero-wide .hero-inner{ grid-row:1; padding:44px 46px 48px; }
.hero-wide .hero-mark{ margin-bottom:22px; }
.hero-wide h2{
  max-width:none;
  font-size:clamp(25px, 2.7vw, 34px);
  letter-spacing:-.036em;
  line-height:1.42;
  margin-bottom:0;
}

/* ---------- 4.2 栅格 ---------- */
.page-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:40px;
  align-items:start;
}
.aside{ position:sticky; top:calc(var(--head-h) + 30px); }

/* ---------- 4.3 帖子流 ---------- */
.feed-head{
  display:flex; align-items:center; gap:12px;
  padding:0 0 15px;
}
.feed-head h2{
  font-size:15px; font-weight:700; letter-spacing:-.02em; color:var(--ink-1);
}
.feed-head .count{
  font-family:var(--font-mono); font-size:10.5px; color:var(--ink-4);
  padding:1px 6px; border-radius:5px; background:rgba(255,255,255,.05);
  border:1px solid var(--line-soft);
}
.feed-head-spacer{ flex:1; }

.feed{
  display:flex; flex-direction:column;
  background:rgba(13,18,26,.5);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.post-row{
  position:relative;
  display:flex; gap:16px;
  padding:21px 24px;
  border-bottom:1px solid var(--line-soft);
  transition:background .22s ease;
}
.post-row:last-child{ border-bottom:0; }
.post-row:hover{ background:rgba(255,255,255,.028); }
.post-row::before{
  content:"";
  position:absolute; left:0; top:0; bottom:0; width:2px;
  background:linear-gradient(180deg, transparent, var(--accent) 22%, var(--accent) 78%, transparent);
  opacity:0; transition:opacity .24s ease;
}
.post-row:hover::before{ opacity:1; }

.post-ava{ margin-top:2px; }
.post-main{ flex:1; min-width:0; }
.post-title{
  display:block;
  font-size:16.5px; font-weight:650; color:var(--ink-1);
  line-height:1.48; letter-spacing:-.02em;
  margin-bottom:6px;
  overflow-wrap:anywhere;
  transition:color .18s ease;
}
.post-title::after{ content:""; position:absolute; inset:0; z-index:1; }
.post-row:hover .post-title{ color:var(--accent-2); }
.post-meta .author,.post-meta .stat{ position:relative; z-index:2; }
.post-excerpt{
  font-size:13.5px; color:var(--ink-3); line-height:1.7;
  margin-bottom:11px; max-width:74ch;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden;
}
.post-meta{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  font-size:11.5px; color:var(--ink-4);
}
.post-meta .sep{ width:3px; height:3px; border-radius:50%; background:var(--ink-4); opacity:.6; flex:0 0 auto; }
/* 「圆点 + 内容」绑成一组换行：窄屏上不会再出现行尾吊着一颗点 */
.meta-item{ display:inline-flex; align-items:center; gap:7px; }
.post-meta .author{
  display:inline-flex; align-items:center; gap:5px;
  color:var(--ink-2); font-weight:600;
  transition:color .16s;
}
.post-meta .author:hover{ color:var(--accent-ink); }
.post-meta .stat{
  display:inline-flex; align-items:center; gap:4px;
  font-family:var(--font-mono); font-variant-numeric:tabular-nums;
}
.post-meta .stat svg{ width:11px; height:11px; opacity:.55; }
.post-meta .sealed{ color:var(--warn); font-weight:600; }
.post-meta .solved{ color:var(--up); font-weight:600; }

/* ---------- 4.4 侧栏小件 ---------- */
.mini-nav{ display:flex; flex-direction:column; }
.mini-nav a{
  display:flex; align-items:center; gap:10px;
  padding:10px 0; font-size:13px; color:var(--ink-2);
  border-bottom:1px solid var(--line-soft);
  transition:color .16s, padding-left .22s cubic-bezier(.16,1,.3,1);
}
.mini-nav a:last-child{ border-bottom:none; }
.mini-nav a:hover{ color:var(--ink-1); padding-left:4px; }
.mini-nav a:hover svg{ color:var(--accent); }
.mini-nav a .n{
  margin-left:auto; font-family:var(--font-mono); font-size:10.5px;
  color:var(--ink-4); font-variant-numeric:tabular-nums;
}
.mini-nav svg{ width:14px; height:14px; color:var(--ink-4); flex-shrink:0; transition:color .16s; }

.people{ display:flex; flex-direction:column; }
.person{
  display:flex; align-items:center; gap:10px;
  padding:9px 0; border-bottom:1px solid var(--line-soft);
  transition:opacity .16s;
}
.person:last-child{ border-bottom:none; }
.person:hover{ opacity:.72; }
.person-txt{ min-width:0; flex:1; }
.person-name{
  font-size:12.5px; font-weight:600; color:var(--ink-1);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  display:flex; align-items:center; gap:5px;
}
.person-meta{ font-size:11px; color:var(--ink-4); margin-top:1px; }

/* ---------- 4.5 帖子正文 ---------- */
.article{ padding:0; }
.article > .row{ padding:30px 38px 0; }
.article-title{
  font-size:clamp(23px, 2.4vw, 31px); font-weight:800; letter-spacing:-.038em;
  line-height:1.4; color:var(--ink-1);
  padding:16px 38px 0;
  margin-bottom:18px; overflow-wrap:anywhere;
  text-wrap:balance;
}
.article-byline{
  display:flex; align-items:center; gap:12px;
  margin:0 38px 30px; padding-bottom:20px;
  border-bottom:1px solid var(--line-soft);
}
.article-byline-txt{ min-width:0; flex:1; }
.article-byline-name{
  display:flex; align-items:center; gap:7px;
  font-size:13px; font-weight:700; color:var(--ink-1);
  margin-bottom:3px;
}
.article-byline-meta{
  display:flex; align-items:center; gap:9px;
  font-size:11px; color:var(--ink-4);
}
.article-body{
  font-size:15px; line-height:1.95; color:var(--ink-2);
  max-width:70ch;
  padding:0 38px 34px;
}
.article-body p{ margin-bottom:20px; }
.article-body p:last-child{ margin-bottom:0; }
.article-body h3{
  font-size:15px; font-weight:700; letter-spacing:.01em;
  color:var(--ink-1);
  margin:34px 0 13px;
  padding-top:16px;
  border-top:1px solid var(--line-soft);
}
.article-body code{
  font-family:var(--font-mono); font-size:12.5px;
  background:rgba(255,255,255,.06); padding:2px 6px; border-radius:5px;
  color:var(--accent-ink);
}
.article-body blockquote{
  margin:0 0 20px; padding:4px 0 4px 18px;
  border-left:2px solid rgba(214,176,106,.4);
  color:var(--ink-3); font-size:14px;
}
.article-body ul{ margin:0 0 20px; padding-left:20px; list-style:disc; }
.article-body li{ margin-bottom:8px; }
.article-body a{
  color:var(--accent-ink);
  text-decoration:underline; text-underline-offset:3px;
  text-decoration-thickness:1px; text-decoration-color:rgba(214,176,106,.4);
}
.article-body a:hover{ text-decoration-color:var(--accent); }

/* 链接列表 */
.linklist{
  display:flex; flex-direction:column;
  margin:32px 38px 0; padding-top:8px;
  border-top:1px solid var(--line-soft);
}
.linkrow{
  display:flex; align-items:center; gap:13px;
  padding:14px 0; border-bottom:1px solid var(--line-soft);
  transition:padding-left .22s cubic-bezier(.16,1,.3,1);
}
.linkrow:last-child{ border-bottom:none; }
.linkrow:hover{ padding-left:4px; }
.linkrow-ico{
  width:30px; height:30px; border-radius:var(--r-xs); flex-shrink:0;
  display:grid; place-items:center;
  border:1px solid var(--line-soft); color:var(--ink-3);
  background:rgba(255,255,255,.025);
}
.linkrow-ico svg{ width:14px; height:14px; }
.linkrow-txt{ flex:1; min-width:0; }
.linkrow-name{ font-size:13px; font-weight:600; color:var(--ink-1); margin-bottom:1px; }
.linkrow-url{
  font-family:var(--font-mono); font-size:11px; color:var(--ink-4);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.article-actions{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin:34px 38px 0; padding:20px 0 34px;
  border-top:1px solid var(--line-soft);
}
.vote{
  display:inline-flex; align-items:center; gap:7px;
  height:36px; padding:0 15px;
  border-radius:var(--r-pill);
  border:1px solid var(--line); background:rgba(255,255,255,.028);
  font-size:12.5px; font-weight:600; color:var(--ink-2);
  font-variant-numeric:tabular-nums;
  transition:border-color .18s, background .18s, color .18s;
}
.vote svg{ width:14px; height:14px; }
.vote:hover{ border-color:var(--line-hard); color:var(--ink-1); background:rgba(255,255,255,.06); }
.vote[aria-pressed="true"]{
  background:var(--accent-soft);
  border-color:var(--accent-line);
  color:var(--accent-ink);
}
.vote[aria-pressed="true"] svg{ fill:currentColor; }

/* ---------- 4.6 评论 ---------- */
.comment{
  display:flex; gap:14px;
  padding:20px 0;
  border-bottom:1px solid var(--line-soft);
}
.comment:last-child{ border-bottom:none; }
.comment-main{ flex:1; min-width:0; }
.comment-head{ display:flex; align-items:center; gap:8px; margin-bottom:6px; flex-wrap:wrap; }
.comment-name{ font-size:12.5px; font-weight:700; color:var(--ink-1); }
.comment-time{
  font-family:var(--font-mono); font-size:10px;
  color:var(--ink-4); letter-spacing:.04em;
}
.comment-body{ font-size:13.5px; line-height:1.82; color:var(--ink-2); overflow-wrap:anywhere; }
.comment-quote{ font-size:13px; line-height:1.78; color:var(--ink-2); }
.comment-tools{ display:flex; gap:16px; margin-top:8px; }
.comment-tools button{ font-size:11px; color:var(--ink-4); transition:color .16s; }
.comment-tools button:hover{ color:var(--accent-ink); }
.comment.reply{ margin-left:38px; padding-left:18px; border-left:1px solid var(--line); }
.comment-accepted{
  background:linear-gradient(90deg, rgba(94,199,171,.07), transparent 70%);
  margin:0 -18px; padding:20px 18px;
  border-radius:var(--r);
  box-shadow:inset 2px 0 0 var(--up);
}

/* ---------- 4.7 提示条 ---------- */
.toast-host{
  position:fixed; left:50%; bottom:34px; translate:-50% 0;
  z-index:var(--z-toast); pointer-events:none;
}
.toast{
  display:flex; align-items:center; gap:9px;
  padding:11px 18px;
  background:rgba(19,26,36,.94);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  color:var(--ink-1);
  border:1px solid var(--line);
  border-radius:var(--r-pill);
  font-size:12.5px; font-weight:500;
  box-shadow:var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.08);
  animation:toast-in .3s cubic-bezier(.16,1,.3,1);
}
.toast svg{ color:var(--up); flex-shrink:0; }
.toast-warn svg{ color:var(--warn); }
@keyframes toast-in{
  from{ opacity:0; transform:translateY(12px) scale(.96); }
  to  { opacity:1; transform:none; }
}
@media (max-width:860px){
  .toast-host{ bottom:calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- 4.8 页内页签 ---------- */
.tabs{
  display:flex; gap:0;
  border-bottom:1px solid var(--line-soft);
  overflow-x:auto; scrollbar-width:none;
}
.tabs::-webkit-scrollbar{ display:none; }
.tabs button{
  position:relative; padding:12px 18px;
  font-size:12.5px; font-weight:600; color:var(--ink-3);
  white-space:nowrap; transition:color .18s;
}
.tabs button:first-child{ padding-left:0; }
.tabs button:hover{ color:var(--ink-1); }
.tabs button[aria-selected="true"]{ color:var(--ink-1); }
.tabs button[aria-selected="true"]::after{
  content:""; position:absolute; left:18px; right:18px; bottom:-1px;
  height:1.5px; border-radius:2px;
  background:var(--accent);
  box-shadow:0 0 10px rgba(214,176,106,.6);
}
.tabs button:first-child[aria-selected="true"]::after{ left:0; }

/* ---------- 4.9 个人主页头 ---------- */
.profile-cover{
  position:relative; overflow:hidden;
  height:132px;
  border-radius:var(--r-lg) var(--r-lg) 0 0;
  background:
    radial-gradient(90% 160% at 18% 0%, rgba(94,199,171,.16), transparent 58%),
    radial-gradient(80% 140% at 84% 10%, rgba(214,176,106,.16), transparent 60%),
    linear-gradient(160deg, #121d28, #0a1017);
  border-bottom:1px solid var(--line-soft);
}
.profile-cover::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(1.4px 1.4px at 22% 26%, rgba(255,255,255,.52), transparent 100%),
    radial-gradient(1px 1px at 44% 62%, rgba(255,255,255,.3), transparent 100%),
    radial-gradient(1px 1px at 68% 22%, rgba(255,255,255,.4), transparent 100%),
    radial-gradient(1.2px 1.2px at 86% 58%, rgba(255,255,255,.26), transparent 100%),
    radial-gradient(1px 1px at 58% 84%, rgba(255,255,255,.2), transparent 100%);
}
.profile-body{ padding:0 30px 26px; }
.profile-top{
  display:flex; align-items:stretch; gap:18px;
  margin-top:-46px; position:relative;
}
.profile-ava{
  width:96px; height:96px; border-radius:50%;
  box-shadow:0 0 0 5px #0b1118, 0 0 0 6px rgba(255,255,255,.1);
  flex-shrink:0;
}
.profile-id{ flex:1; min-width:0; padding-top:52px; padding-bottom:6px; }
.profile-name{
  display:flex; align-items:center; gap:9px; flex-wrap:wrap;
  font-size:24px; font-weight:800; letter-spacing:-.038em;
  color:var(--ink-1); line-height:1.25;
}
.profile-sub{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  font-size:12px; color:var(--ink-3); margin-top:6px;
}
.profile-sub .mono{ font-size:11px; color:var(--ink-4); }
/* 「· + 文字」作为一组换行，避免点落在上一行末尾 */
.psub-item{ display:inline-flex; align-items:center; gap:10px; }
.psub-sep{
  width:2.5px; height:2.5px; border-radius:50%;
  background:currentColor; opacity:.4; flex:0 0 auto;
}
.profile-actions{ display:flex; gap:8px; align-self:flex-end; padding-bottom:10px; flex-shrink:0; }
.profile-stats{
  display:flex; gap:0; flex-wrap:wrap;
  margin-top:24px;
  border-top:1px solid var(--line-soft);
}
.profile-stats > div{ padding:16px 28px 0 0; margin-right:28px; }
.profile-stats > div + div{
  border-left:1px solid var(--line-soft); padding-left:28px;
}
.profile-stat-num{
  font-family:var(--font-mono); font-size:19px; font-weight:600;
  color:var(--ink-1); font-variant-numeric:tabular-nums; letter-spacing:-.03em;
  line-height:1.1;
}
.profile-stat-label{
  font-size:10.5px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--ink-4); margin-top:6px;
  font-family:var(--font-mono);
}

/* ---------- 4.10 杂项块 ---------- */
.code-box{
  font-family:var(--font-mono); font-size:11.5px; line-height:1.85;
  background:rgba(0,0,0,.34); color:var(--ink-2);
  padding:14px 16px; border-radius:var(--r-sm);
  word-break:break-all;
  border:1px solid var(--line-soft);
}
.danger-zone{
  border-color:rgba(224,132,116,.24);
  background:linear-gradient(180deg, rgba(224,132,116,.05), transparent);
}
.danger-zone .card-head{ border-bottom-color:rgba(224,132,116,.16); }
.danger-zone .card-head h2{ color:var(--down); }

.form-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.form-grid .field + .field{ margin-top:0; }
.form-grid .span-2{ grid-column:1 / -1; }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } }

/* ---------- 4.11 服务器 ---------- */
.form-card{ max-width:960px; margin-inline:auto; }

.srv-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));
  gap:14px;
}
.srv{
  position:relative;
  display:flex; flex-direction:column; gap:12px;
  padding:22px 22px 18px;
  border-radius:var(--r-lg);
  background:linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.012));
  border:1px solid var(--line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:border-color .22s, background .22s, transform .28s cubic-bezier(.16,1,.3,1);
}
.srv:hover{
  border-color:rgba(214,176,106,.3);
  transform:translateY(-2px);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.srv-top{ display:flex; align-items:flex-start; gap:9px; }
.srv-name{
  font-size:15.5px; font-weight:700; color:var(--ink-1);
  letter-spacing:-.02em; line-height:1.4; min-width:0;
  overflow-wrap:anywhere;
}
.srv-addr{
  display:flex; align-items:center; gap:7px;
  font-family:var(--font-mono); font-size:11px; color:var(--ink-2);
  background:rgba(0,0,0,.3); border:1px solid var(--line-soft);
  padding:6px 9px; border-radius:var(--r-xs);
  align-self:flex-start; max-width:100%;
}
.srv-addr span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.srv-addr button{
  color:var(--ink-4); display:grid; place-items:center;
  transition:color .16s; flex-shrink:0;
}
.srv-addr button:hover{ color:var(--accent); }
.srv-addr button svg{ width:11px; height:11px; }
.srv-desc{
  font-size:12.5px; line-height:1.7; color:var(--ink-3);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; min-height:42px;
}
.srv-foot{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  margin-top:auto; padding-top:13px;
  border-top:1px solid var(--line-soft);
  font-size:11px; color:var(--ink-4);
}
.srv-foot .live{ display:flex; align-items:center; gap:5px; color:var(--up); font-weight:600; }
.srv-foot .live.off{ color:var(--ink-4); font-weight:500; }
.srv-foot .num{ font-family:var(--font-mono); font-variant-numeric:tabular-nums; }

/* ---------- 4.12 资源 ---------- */
.res-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr));
  gap:14px;
}
.res{
  display:flex; flex-direction:column; gap:11px;
  padding:20px;
  border-radius:var(--r-lg);
  background:linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.012));
  border:1px solid var(--line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:border-color .22s, background .22s, transform .28s cubic-bezier(.16,1,.3,1);
}
.res:hover{
  border-color:rgba(214,176,106,.28);
  transform:translateY(-2px);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.res-top{ display:flex; gap:12px; align-items:flex-start; }
.res-ico{
  width:44px; height:44px; border-radius:var(--r-xs); flex-shrink:0;
  border:1px solid var(--line-soft);
  display:grid; place-items:center;
  font-family:var(--font-mono); font-size:14px; font-weight:700;
  color:var(--ink-2); background:rgba(0,0,0,.3);
}
.res-ico img{ width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.res-name{
  font-size:13.5px; font-weight:700; color:var(--ink-1);
  line-height:1.45; letter-spacing:-.015em;
  overflow-wrap:anywhere;
}
.res-author{
  font-family:var(--font-mono); font-size:10px; color:var(--ink-4);
  margin-top:4px; letter-spacing:.04em;
}
.res-desc{
  font-size:12px; line-height:1.7; color:var(--ink-3);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; min-height:40px;
}
.res-foot{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin-top:auto; padding-top:11px; border-top:1px solid var(--line-soft);
  font-size:10.5px; color:var(--ink-4);
}
.res-foot .num{ font-family:var(--font-mono); font-variant-numeric:tabular-nums; }
.res-foot .spacer{ flex:1; }
.res-get{
  display:inline-flex; align-items:center; gap:4px;
  font-size:11px; font-weight:600; color:var(--accent-ink);
}

/* ---------- 4.13 私信 ---------- */
.msg-shell{
  display:grid;
  grid-template-columns:272px minmax(0,1fr);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
  height:calc(100dvh - 300px);
  min-height:480px;
  max-height:820px;
  background:rgba(13,18,26,.5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.msg-list{
  display:flex; flex-direction:column;
  border-right:1px solid var(--line-soft);
  min-height:0;
}
.msg-list-head{
  padding:15px 17px 12px;
  border-bottom:1px solid var(--line-soft);
  flex-shrink:0;
}
.msg-list-scroll{ flex:1; overflow-y:auto; padding:0; min-height:0; }

.msg-item{
  position:relative;
  display:flex; gap:10px; align-items:center;
  padding:12px 17px;
  cursor:pointer;
  border-bottom:1px solid var(--line-soft);
  transition:background .16s;
}
.msg-item:hover{ background:rgba(255,255,255,.035); }
.msg-item[aria-current="true"]{ background:rgba(255,255,255,.05); }
.msg-item[aria-current="true"]::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:2px;
  background:var(--accent);
}
.msg-item[aria-current="true"] .msg-item-name{ color:var(--ink-1); }
.msg-item-txt{ min-width:0; flex:1; }
.msg-item-name{
  display:flex; align-items:center; gap:5px;
  font-size:12.5px; font-weight:650; color:var(--ink-1);
  white-space:nowrap; overflow:hidden;
}
.msg-item-last{
  font-size:11px; color:var(--ink-4);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  margin-top:2px;
}
.msg-item-meta{
  display:flex; flex-direction:column; align-items:flex-end; gap:5px;
  flex-shrink:0;
}
.msg-item-time{
  font-family:var(--font-mono); font-size:10px;
  color:var(--ink-4); letter-spacing:.04em;
}
.msg-unread{
  min-width:16px; height:16px; padding:0 4px;
  display:grid; place-items:center; border-radius:5px;
  background:var(--accent); color:var(--on-accent);
  font-family:var(--font-mono); font-size:9px; font-weight:700;
}

.msg-pane{ display:flex; flex-direction:column; min-height:0; background:rgba(0,0,0,.14); }
.msg-pane-head{
  display:flex; align-items:center; gap:10px;
  padding:13px 20px; flex-shrink:0;
  background:rgba(13,18,26,.6);
  border-bottom:1px solid var(--line-soft);
}
.msg-stream{
  flex:1; overflow-y:auto; min-height:0;
  padding:24px 22px; display:flex; flex-direction:column; gap:14px;
}
.bubble-row{ display:flex; gap:9px; align-items:flex-end; max-width:76%; }
.bubble-row.me{ align-self:flex-end; flex-direction:row-reverse; }
.bubble{
  padding:11px 15px;
  border-radius:14px;
  font-size:13px; line-height:1.72; overflow-wrap:anywhere;
  background:rgba(255,255,255,.055);
  color:var(--ink-1);
  border:1px solid var(--line-soft);
  border-bottom-left-radius:5px;
}
.bubble-row.me .bubble{
  background:linear-gradient(180deg, #2a2317, #221c12);
  color:#f3e6cd;
  border-color:rgba(214,176,106,.28);
  border-bottom-left-radius:14px;
  border-bottom-right-radius:5px;
}
.bubble-time{
  font-family:var(--font-mono); font-size:10px; color:var(--ink-4);
  flex-shrink:0; padding-bottom:3px;
}
.day-split{
  display:flex; align-items:center; gap:12px;
  font-family:var(--font-mono); font-size:9.5px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--ink-4);
  margin:10px 0;
}
.day-split::before,.day-split::after{
  content:""; flex:1; height:1px; background:var(--line-soft);
}

.msg-compose{
  flex-shrink:0; padding:13px 17px;
  background:rgba(13,18,26,.6);
  border-top:1px solid var(--line-soft);
  display:flex; gap:10px; align-items:flex-end;
}
.msg-compose textarea{
  flex:1; min-height:40px; max-height:112px; resize:none;
  padding:10px 13px; border-radius:var(--r-sm);
  border:1px solid var(--line); background:rgba(255,255,255,.035);
  font-size:13px; line-height:1.6; color:var(--ink-1);
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.msg-compose textarea:focus{
  outline:none; background:rgba(255,255,255,.06);
  border-color:var(--accent-line);
  box-shadow:0 0 0 3px rgba(214,176,106,.09);
}

.req-row{
  display:flex; align-items:center; gap:12px;
  padding:13px 0; border-bottom:1px solid var(--line-soft);
}
.req-row:last-child{ border-bottom:none; }
.req-txt{ flex:1; min-width:0; }
.req-name{ font-size:12.5px; font-weight:650; color:var(--ink-1); }
.req-note{ font-size:11px; color:var(--ink-4); margin-top:2px; }

/* ---------- 4.14 后台指标 ---------- */
.kpi-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.kpi{
  padding:20px 22px 18px;
  border-left:1px solid var(--line-soft);
  display:flex; flex-direction:column; gap:2px;
  min-width:0;
  transition:background .2s;
}
.kpi:first-child{ border-left:0; }
.kpi:hover{ background:rgba(255,255,255,.025); }
.kpi-top{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.kpi-ico{
  width:24px; height:24px; border-radius:var(--r-xs); flex-shrink:0;
  display:grid; place-items:center;
  color:var(--ink-3);
  border:1px solid var(--line-soft);
  background:rgba(255,255,255,.03);
}
.kpi-ico svg{ width:12px; height:12px; }
.kpi-ico.warn{ color:var(--warn); border-color:rgba(216,167,95,.28); }
.kpi-ico.down{ color:var(--down); border-color:rgba(224,132,116,.26); }
.kpi-label{
  font-size:11.5px; font-weight:600;
  letter-spacing:.02em; color:var(--ink-3);
  white-space:nowrap;
}
.kpi-num{
  font-family:var(--font-mono); font-size:30px; font-weight:600;
  color:var(--ink-1); letter-spacing:-.045em;
  font-variant-numeric:tabular-nums; line-height:1.05;
}
.kpi-num small{
  font-size:11px; font-weight:500; color:var(--ink-4);
  margin-left:5px; letter-spacing:0;
}
.kpi-sub{ font-size:11px; color:var(--ink-4); margin-top:5px; }
.kpi-sub b{ color:var(--up); font-weight:600; }

.dist{ display:flex; flex-direction:column; gap:14px; }
.dist-row{ display:flex; flex-direction:column; gap:7px; }
.dist-top{ display:flex; align-items:baseline; gap:8px; font-size:12px; color:var(--ink-2); }
.dist-top .n{
  margin-left:auto; font-family:var(--font-mono);
  font-size:10.5px; color:var(--ink-4);
}
.dist-track{
  height:5px; border-radius:99px;
  background:rgba(255,255,255,.06);
  overflow:hidden;
}
.dist-fill{
  height:100%; border-radius:99px;
  background:linear-gradient(90deg, rgba(214,176,106,.5), var(--accent));
}

@media (max-width:1180px){
  .kpi-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .kpi:nth-child(3){ border-left:0; border-top:1px solid var(--line-soft); }
  .kpi:nth-child(4){ border-top:1px solid var(--line-soft); }
}
@media (max-width:520px){
  .kpi-grid{ grid-template-columns:1fr; }
  .kpi{ border-left:0; border-top:1px solid var(--line-soft); }
  .kpi:first-child{ border-top:0; }
  .kpi-num{ font-size:25px; }
}

/* ---------- 4.15 活动 ---------- */
.act-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.act{
  position:relative; overflow:hidden;
  padding:30px 32px;
  border-radius:var(--r-lg);
  background:linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.012));
  border:1px solid var(--line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  display:flex; flex-direction:column;
  transition:border-color .22s, transform .28s cubic-bezier(.16,1,.3,1);
}
.act:hover{ border-color:rgba(214,176,106,.26); transform:translateY(-2px); }
.act > *{ position:relative; z-index:1; }
.act-dark{
  background:
    radial-gradient(70% 120% at 88% -10%, rgba(214,176,106,.14), transparent 60%),
    radial-gradient(60% 110% at 6% 100%, rgba(94,199,171,.1), transparent 62%),
    linear-gradient(160deg, #111b24, #080d13);
  border-color:rgba(255,255,255,.09);
  color:#b9c6d6;
}
.act-dark::before{
  content:"";
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(1.2px 1.2px at 76% 18%, rgba(255,255,255,.44), transparent 100%),
    radial-gradient(1px 1px at 88% 46%, rgba(255,255,255,.26), transparent 100%),
    radial-gradient(1px 1px at 62% 70%, rgba(255,255,255,.2), transparent 100%);
}
.act-eyebrow{
  display:block;
  font-size:10px; letter-spacing:.18em;
  color:var(--ink-4); margin-bottom:14px;
}
.act-dark .act-eyebrow{ color:var(--accent); }
.act h3{
  font-size:20px; font-weight:750; letter-spacing:-.032em;
  line-height:1.38; margin-bottom:10px; overflow-wrap:anywhere;
}
.act-dark h3{ color:#f2f7fd; }
.act p{ font-size:12.5px; line-height:1.8; color:var(--ink-3); max-width:44ch; }
.act-dark p{ color:#8493a5; }
.act-foot{
  display:flex; align-items:center; gap:12px;
  margin-top:auto; padding-top:26px;
}

.act-badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 10px; border-radius:var(--r-pill);
  background:var(--teal-soft); color:var(--up);
  font-family:var(--font-mono); font-size:9px; font-weight:600;
  letter-spacing:.12em; text-transform:uppercase;
  border:1px solid rgba(94,199,171,.2);
}

.status-steps{ display:flex; flex-direction:column; gap:0; }
.step{ display:flex; gap:13px; padding-bottom:19px; position:relative; }
.step:last-child{ padding-bottom:0; }
.step::before{
  content:""; position:absolute; left:7px; top:18px; bottom:0; width:1px;
  background:var(--line);
}
.step:last-child::before{ display:none; }
.step-dot{
  width:15px; height:15px; border-radius:50%; flex-shrink:0;
  display:grid; place-items:center; margin-top:2px;
  border:1px solid var(--line-hard);
  background:var(--surface);
  color:var(--ink-4);
  z-index:1;
}
.step-dot svg{ width:8px; height:8px; }
.step-done .step-dot{
  background:var(--teal-soft); border-color:rgba(94,199,171,.5); color:var(--up);
}
.step-now .step-dot{
  border-color:var(--accent-line); background:var(--accent-soft); color:var(--accent);
  box-shadow:0 0 0 4px rgba(214,176,106,.07);
}
.step-txt{ min-width:0; padding-top:1px; }
.step-title{ font-size:12.5px; font-weight:650; color:var(--ink-1); }
.step-note{ font-size:11.5px; color:var(--ink-4); margin-top:3px; line-height:1.65; }

@media (max-width:860px){
  .act-grid{ grid-template-columns:1fr; }
  .act{ padding:24px 20px; }
  .act h3{ font-size:18px; }
}

/* ---------- 4.16 头衔佩戴 ---------- */
.tag-pick{
  display:flex; align-items:center; gap:14px;
  padding:15px 0;
  border-bottom:1px solid var(--line-soft);
}
.tag-pick:last-child{ border-bottom:none; }
.tag-pick.is-off{ opacity:.55; }
.tag-pick.is-off .tag-pick-name{ color:var(--ink-3); }
.tag-pick.is-mute{ opacity:.62; }
.tag-pick input.check{ flex:0 0 auto; cursor:pointer; }
.tag-pick-mark{
  width:16px; height:16px; flex:0 0 auto; border-radius:4px;
  border:1px solid var(--line-hard);
  display:grid; place-items:center; color:var(--accent);
}
.tag-pick-mark.is-on{ background:var(--accent-soft); border-color:var(--accent-line); }
.tag-pick-mark.is-ghost{ border-color:transparent; }
.tag-pick-mark svg{ width:10px; height:10px; }
.tag-pick-txt{ flex:1; min-width:0; }
.tag-pick-name{
  font-size:13px; font-weight:600; color:var(--ink-1);
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
.tag-pick-how{ font-size:11.5px; color:var(--ink-4); margin-top:4px; line-height:1.6; }

/* ---------- 4.17 文档页 ---------- */
.doc{ max-width:72ch; }
.doc h2{
  font-size:20px; font-weight:750; letter-spacing:-.03em;
  margin:44px 0 15px; padding-top:24px;
  border-top:1px solid var(--line-soft);
}
.doc h2:first-child{ margin-top:0; padding-top:0; border-top:0; }
.doc h3{ font-size:14.5px; font-weight:700; margin:28px 0 10px; }
.doc p{ font-size:14.5px; line-height:1.95; color:var(--ink-2); margin-bottom:17px; }
.doc ul{ margin:0 0 16px; padding-left:20px; list-style:disc; }
.doc li{ font-size:14px; line-height:1.92; color:var(--ink-2); margin-bottom:7px; }
.doc a{
  color:var(--accent-ink);
  text-decoration:underline; text-underline-offset:3px;
  text-decoration-color:rgba(214,176,106,.35);
}
.doc-meta{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding-bottom:20px; margin-bottom:28px;
  border-bottom:1px solid var(--line-soft);
  font-size:11.5px; letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
  color:var(--ink-4);
}
.doc-toc{ display:flex; flex-direction:column; }
.doc-toc a{
  padding:7px 0; font-size:12.5px; color:var(--ink-3);
  border-bottom:1px solid var(--line-soft);
  transition:color .16s, padding-left .18s;
}
.doc-toc a:last-child{ border-bottom:none; }
.doc-toc a:hover{ color:var(--ink-1); padding-left:4px; }

/* ============================================================
   5. WORKFLOW — 发帖 / 佩戴
   ============================================================ */
.wf-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:28px; align-items:start;
}
.wf-form{ display:flex; flex-direction:column; gap:14px; min-width:0; }

.sec{ overflow:hidden; }
.sec-head{
  display:flex; align-items:center; gap:12px;
  padding:16px 22px 14px;
  border-bottom:1px solid var(--line-soft);
}
.sec-badge{
  width:22px; height:22px; flex-shrink:0;
  display:grid; place-items:center;
  border-radius:7px;
  border:1px solid var(--accent-line);
  background:var(--accent-soft);
  color:var(--accent);
  font-family:var(--font-mono); font-size:10px; font-weight:600;
}
.sec-head h2{
  font-size:12.5px; font-weight:650; letter-spacing:.01em; color:var(--ink-1);
}
.sec-head .sec-note{ font-size:11px; color:var(--ink-4); }
.sec-head-spacer{ flex:1; }
.sec-body{ padding:20px 22px 24px; }

.counter{
  display:flex; justify-content:flex-end;
  font-family:var(--font-mono); font-size:10.5px; color:var(--ink-4);
  margin-top:7px; font-variant-numeric:tabular-nums;
}
.counter[data-state="warn"]{ color:var(--warn); }
.counter[data-state="over"]{ color:var(--down); }

.radio-cards{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));
  gap:9px;
}
.radio-card{
  position:relative; display:flex; gap:10px; align-items:flex-start;
  padding:14px 16px;
  border-radius:var(--r-sm);
  background:rgba(255,255,255,.025);
  border:1px solid var(--line-soft);
  cursor:pointer;
  transition:background .18s, border-color .18s;
}
.radio-card:hover{ background:rgba(255,255,255,.05); border-color:var(--line); }
.radio-card input{ position:absolute; opacity:0; pointer-events:none; }
.radio-card .rc-dot{
  width:14px; height:14px; border-radius:50%; flex-shrink:0; margin-top:3px;
  border:1px solid var(--line-hard); background:transparent;
  display:grid; place-items:center;
  transition:border-color .18s, background .18s;
}
.radio-card .rc-dot::after{
  content:""; width:5px; height:5px; border-radius:50%; background:transparent;
  transition:background .18s;
}
.radio-card input:checked ~ .rc-dot{ border-color:var(--accent); background:var(--accent); }
.radio-card input:checked ~ .rc-dot::after{ background:var(--on-accent); }
.radio-card:has(input:checked){
  background:var(--accent-soft);
  border-color:var(--accent-line);
}
.rc-txt{ min-width:0; }
.rc-title{ font-size:13px; font-weight:650; color:var(--ink-1); margin-bottom:3px; }
.rc-desc{ font-size:11.5px; line-height:1.6; color:var(--ink-4); }

.chips{ display:flex; flex-wrap:wrap; gap:7px; }
.chip-opt{
  height:30px; padding:0 13px;
  border-radius:var(--r-pill);
  background:rgba(255,255,255,.028);
  border:1px solid var(--line-soft);
  color:var(--ink-2);
  font-size:12px; font-weight:500;
  transition:background .16s, color .16s, border-color .16s;
}
.chip-opt:hover{ background:rgba(255,255,255,.06); border-color:var(--line); }
.chip-opt[aria-pressed="true"]{
  background:var(--accent-soft);
  border-color:var(--accent-line);
  color:var(--accent-ink);
  font-weight:600;
}

.link-edit{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;
  gap:8px; align-items:center;
}
.link-edit + .link-edit{ margin-top:10px; }

.check-list{ display:flex; flex-direction:column; }
.check-row{
  display:flex; align-items:flex-start; gap:10px;
  padding:11px 0; font-size:12.5px;
  border-bottom:1px solid var(--line-soft);
}
.check-row:last-child{ border-bottom:none; }
.check-row .ck{ flex-shrink:0; margin-top:2px; }
.check-row .ck svg{ width:13px; height:13px; }
.check-row .ck-ok{ color:var(--up); }
.check-row .ck-warn{ color:var(--warn); }
.check-row .ck-bad{ color:var(--down); }
.check-row .ck-label{ width:84px; flex-shrink:0; color:var(--ink-4); }
.check-row .ck-val{ flex:1; color:var(--ink-1); min-width:0; }
.check-row .ck-jump{ color:var(--accent-ink); font-weight:600; white-space:nowrap; }

.commit-bar{
  position:sticky; bottom:16px; z-index:var(--z-sticky);
  display:flex; align-items:center; gap:10px;
  padding:14px 20px;
  background:rgba(19,26,36,.9);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.07);
}
.commit-note{
  font-family:var(--font-mono); font-size:10px;
  color:var(--ink-4); letter-spacing:.06em;
}

.wf-aside{ position:sticky; top:calc(var(--head-h) + 30px); }
.preview-frame{
  background:rgba(0,0,0,.22);
  border:1px solid var(--line-soft);
  border-radius:var(--r-lg);
  padding:16px;
}
.preview-label{
  display:flex; align-items:center; gap:7px;
  font-size:10px; letter-spacing:.16em; color:var(--ink-4);
  margin-bottom:13px;
}
.preview-note{
  font-size:11px; color:var(--ink-4); line-height:1.7;
  margin-top:13px; padding-top:13px; border-top:1px solid var(--line-soft);
}
.pv-post{
  background:rgba(255,255,255,.035);
  border:1px solid var(--line-soft);
  border-radius:var(--r);
  padding:15px 16px;
  display:flex; gap:12px;
}
.pv-title{
  font-size:14px; font-weight:650; color:var(--ink-1);
  line-height:1.5; margin-bottom:5px; overflow-wrap:anywhere;
}
.pv-title.is-empty{ color:var(--ink-4); font-weight:500; }
.pv-excerpt{
  font-size:11.5px; color:var(--ink-4); line-height:1.65;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; margin-bottom:10px;
}
.pv-meta{
  display:flex; align-items:center; gap:7px; flex-wrap:wrap;
  font-size:10.5px; color:var(--ink-4);
}

@media (max-width:1180px){
  .wf-grid{ grid-template-columns:minmax(0,1fr); }
  .wf-aside{ position:static; order:-1; }
}
@media (max-width:860px){
  .sec-head{ padding:15px 16px 13px; }
  .sec-body{ padding:16px 16px 20px; }
  .link-edit{
    grid-template-columns:minmax(0,1fr) 40px;
    gap:6px 8px;
  }
  .link-edit > *:nth-child(1){ grid-column:1 / -1; }
  .link-edit > *:nth-child(2){ grid-column:1; }
  .link-edit > *:nth-child(3){ grid-column:2; justify-self:stretch; }
  .wf-aside{ order:0; }
  /* 窄屏改真·吸底：sticky 在长表单里根本贴不住，滚两下就跟着内容跑没了，
     而「上一步 / 下一步」是随时要按的。改成 fixed 后给表单底部留出条高。 */
  .commit-bar{
    position:fixed; left:0; right:0; z-index:var(--z-sticky);
    bottom:var(--tabbar-h, 0px);
    padding:12px 14px calc(12px + env(safe-area-inset-bottom));
    margin:0;
    border-radius:0;
    border-left:0; border-right:0;
    box-shadow:0 -8px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.07);
  }
  body[data-no-tabbar] .commit-bar{ bottom:env(safe-area-inset-bottom); }
  .wf-form{ padding-bottom:82px; }
  .check-row .ck-label{ width:70px; }
}

/* ============================================================
   6. AUTH — 左深空右面板
   ============================================================ */
.auth{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  min-height:100dvh;
  position:relative; z-index:1;
}

.auth-aside{
  position:relative; overflow:hidden;
  padding:52px 60px;
  display:flex; flex-direction:column; justify-content:space-between;
  background:
    radial-gradient(100% 130% at 88% -10%, rgba(214,176,106,.16), transparent 58%),
    radial-gradient(90% 120% at 4% 100%, rgba(94,199,171,.12), transparent 60%),
    linear-gradient(160deg, #0f1822 0%, #080d13 70%);
  border-right:1px solid var(--line-soft);
  color:#b9c6d6;
}
.auth-aside::before{
  content:"";
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(1.6px 1.6px at 74% 14%, rgba(255,255,255,.6), transparent 100%),
    radial-gradient(1px 1px at 88% 34%, rgba(255,255,255,.3), transparent 100%),
    radial-gradient(1.2px 1.2px at 62% 56%, rgba(255,255,255,.34), transparent 100%),
    radial-gradient(1px 1px at 92% 72%, rgba(255,255,255,.24), transparent 100%),
    radial-gradient(1px 1px at 72% 86%, rgba(255,255,255,.18), transparent 100%),
    radial-gradient(1px 1px at 52% 24%, rgba(255,255,255,.22), transparent 100%);
}
.auth-aside > *{ position:relative; z-index:1; }

.auth-brand{ display:flex; align-items:center; gap:13px; }
.auth-brand img{
  width:38px; height:38px; border-radius:12px;
  box-shadow:0 0 0 1px rgba(255,255,255,.18);
}
.auth-brand-name{
  font-size:14.5px; font-weight:700; color:var(--ink-1);
  letter-spacing:.02em;
}
.auth-brand-sub{
  font-family:var(--font-mono); font-size:8.5px;
  letter-spacing:.24em; color:var(--ink-4); text-transform:uppercase;
}

.auth-pitch h2{
  font-size:clamp(27px, 2.8vw, 40px); font-weight:800; letter-spacing:-.045em;
  line-height:1.34; color:#f2f7fd; margin-bottom:18px; text-wrap:balance;
}
.auth-pitch h2 em{
  font-style:normal; color:var(--accent-2);
  background:linear-gradient(180deg, transparent 62%, rgba(214,176,106,.18) 62%);
  padding:0 2px;
}
.auth-pitch p{ font-size:14px; line-height:1.85; color:#8493a5; max-width:42ch; }

.auth-points{
  display:flex; flex-direction:column; gap:0;
  margin-top:34px; border-top:1px solid var(--line-soft);
}
.auth-point{
  display:flex; gap:12px; align-items:flex-start;
  font-size:13px; color:#93a2b5;
  padding:14px 0; border-bottom:1px solid var(--line-soft);
}
.auth-point-ico{
  width:24px; height:24px; border-radius:var(--r-xs); flex-shrink:0;
  display:grid; place-items:center;
  border:1px solid var(--line); color:var(--accent);
  background:rgba(255,255,255,.03);
}
.auth-point-ico svg{ width:12px; height:12px; }
.auth-point strong{ color:#e6eef7; font-weight:600; }

.auth-legal{ font-size:11.5px; color:var(--ink-4); line-height:1.8; }
.auth-legal a{ color:#93a2b5; text-decoration:underline; text-underline-offset:2px; }

.auth-main{
  display:grid; place-items:center;
  padding:44px 24px;
  background:rgba(7,10,15,.4);
}
.auth-panel{ width:100%; max-width:404px; }

.auth-title{
  font-size:29px; font-weight:800; letter-spacing:-.042em;
  margin-bottom:9px;
}
.auth-desc{ font-size:13px; color:var(--ink-3); margin-bottom:30px; line-height:1.7; }

.auth-tabs{
  display:flex; gap:0; margin-bottom:28px;
  border-bottom:1px solid var(--line-soft);
}
.auth-tab{
  position:relative; padding:0 0 12px; margin-right:24px;
  font-size:13px; font-weight:600; color:var(--ink-4);
  transition:color .18s;
}
.auth-tab:hover{ color:var(--ink-2); }
.auth-tab[aria-selected="true"]{ color:var(--ink-1); }
.auth-tab[aria-selected="true"]::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px;
  height:1.5px; border-radius:2px;
  background:var(--accent);
  box-shadow:0 0 10px rgba(214,176,106,.6);
}

.pw-wrap{ position:relative; }
.pw-wrap .input{ padding-right:42px; }
.pw-toggle{
  position:absolute; right:5px; top:50%; translate:0 -50%;
  width:32px; height:32px; border-radius:var(--r-xs);
  display:grid; place-items:center; color:var(--ink-4);
  transition:background .16s, color .16s;
}
.pw-toggle:hover{ background:rgba(255,255,255,.06); color:var(--ink-1); }

.auth-row{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin:18px 0 24px;
}
.auth-link{ font-size:12px; font-weight:600; color:var(--accent-ink); }
.auth-link[aria-disabled="true"]{ color:var(--ink-4); cursor:not-allowed; }

.auth-divider{
  display:flex; align-items:center; gap:12px;
  margin:26px 0; font-size:9.5px; color:var(--ink-4);
  letter-spacing:.16em; text-transform:uppercase;
  font-family:var(--font-mono);
}
.auth-divider::before,.auth-divider::after{
  content:""; flex:1; height:1px; background:var(--line-soft);
}

.auth .input{ height:46px; font-size:14px; }
.auth .btn-lg{ height:46px; font-size:14px; }
.auth .field + .field{ margin-top:17px; }
.auth .check{ font-size:12.5px; }

@media (max-width:900px){
  .auth{ grid-template-columns:1fr; min-height:auto; }
  .auth-aside{ padding:30px 22px 34px; border-right:0; border-bottom:1px solid var(--line-soft); }
  .auth-pitch{ margin-top:30px; }
  .auth-pitch h2{ font-size:24px; }
  .auth-pitch p{ font-size:12.5px; }
  .auth-points{ display:none; }
  .auth-legal{ display:none; }
  .auth-main{ padding:30px 18px calc(40px + env(safe-area-inset-bottom)); place-items:start center; }
  .auth-panel{ max-width:none; }
}

/* ============================================================
   7. UTILITIES
   ============================================================ */
.stack{ display:flex; flex-direction:column; }
.row{ display:flex; align-items:center; }
.row.wrap{ flex-wrap:wrap; }
.gap-2{ gap:8px; } .gap-3{ gap:12px; } .gap-4{ gap:16px; }
.mt-2{ margin-top:8px; } .mt-3{ margin-top:12px; } .mt-4{ margin-top:16px; }
.mt-6{ margin-top:24px; } .mt-8{ margin-top:32px; }
.spacer{ flex:1; }
.hide{ display:none !important; }

.fx{ min-width:0; }
.fx-1{ min-width:0; flex:1; }

.srv-top .dot{ margin-top:7px; }
.srv-tags{ margin-top:6px; display:flex; gap:6px; flex-wrap:wrap; }

/* 表格容器：窄屏横向滚动 */
.table-wrap{ border-radius:var(--r-lg); border:1px solid var(--line); overflow:hidden; }

/* ============================================================
   8. MOBILE
   ============================================================ */
.tabbar{ display:none; }
.mobile-only{ display:none !important; }

/* 移动端导航面板（JS 生成） */
.nav-sheet{
  position:fixed; inset:0; z-index:var(--z-sheet);
  display:none;
  flex-direction:column;
  background:rgba(7,10,15,.97);
  -webkit-backdrop-filter:blur(20px);
  backdrop-filter:blur(20px);
  padding:0 0 calc(18px + env(safe-area-inset-bottom));
  overflow-y:auto;
  overscroll-behavior:contain;
}
body.nav-open .nav-sheet{ display:flex; animation:sheet-in .32s cubic-bezier(.16,1,.3,1); }
@keyframes sheet-in{
  from{ opacity:0; transform:translateY(-10px); }
  to  { opacity:1; transform:none; }
}
.nav-sheet-head{
  position:sticky; top:0;
  display:flex; align-items:center; gap:10px;
  padding:14px 18px;
  border-bottom:1px solid var(--line-soft);
  background:rgba(7,10,15,.9);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}
.nav-sheet-head .brand{ margin-right:auto; }
.nav-sheet-body{ padding:22px 18px 8px; display:flex; flex-direction:column; gap:26px; }
.ns-group{ display:flex; flex-direction:column; gap:2px; }
.ns-label{
  font-family:var(--font-mono); font-size:9.5px; letter-spacing:.2em;
  text-transform:uppercase; color:var(--ink-4); padding:0 6px 8px;
}
.ns-link{
  display:flex; align-items:center; gap:11px;
  padding:11px 8px; border-radius:var(--r-sm);
  font-size:14px; color:var(--ink-2);
}
.ns-link:active{ background:rgba(255,255,255,.06); }
.ns-link svg{ width:17px; height:17px; color:var(--ink-4); }
.ns-link[aria-current="page"]{ color:var(--ink-1); background:rgba(255,255,255,.05); }
.ns-link[aria-current="page"] svg{ color:var(--accent); }
.ns-link .np-badge{ margin-left:auto; }
.nav-sheet-foot{
  position:sticky; bottom:0;
  margin-top:auto; padding:16px 18px calc(16px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line-soft);
  background:rgba(7,10,15,.95);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  display:flex; align-items:center; gap:11px;
}

@media (max-width:1180px){
  .page-grid{ grid-template-columns:minmax(0,1fr); gap:32px; }
  .aside{ position:static; }
  .head-search{ width:172px; }
}

/* 平板：导航优先，搜索先让位 */
@media (max-width:1080px){
  .head-search{ display:none; }
  .head-in{ gap:18px; }
  .nav-link{ padding:0 10px; font-size:12.5px; gap:6px; }
  .nav-more-btn{ padding:0 9px; font-size:12.5px; }
}

/* 会话页：面板高度跟视口走，但整个页面允许滚动（上方还有申请卡） */
.content-tight{ padding-bottom:24px; }

@media (max-width:860px){
  :root{ --head-h:58px; --gutter:16px; }
  .nav{ display:none; }
  .head-search{ display:none; }
  .head-tools .head-cta{ display:none; }
  .only-sm{ display:inline-grid !important; }
  .mobile-only{ display:inline-grid !important; }

  .content{ padding:20px 16px calc(92px + env(safe-area-inset-bottom)); }
  .content-tight{ padding-bottom:calc(80px + env(safe-area-inset-bottom)); }

  .page-head{ margin-bottom:22px; padding-bottom:16px; gap:12px; }
  .page-head h1{ font-size:24px; }
  .page-head-tools{ margin-left:auto; width:auto; }
  .page-head-tools .searchbox{ width:100%; }

  .tabbar{
    display:flex; position:fixed; left:0; right:0; bottom:0;
    z-index:var(--z-nav);
    background:rgba(8,11,16,.86);
    -webkit-backdrop-filter:blur(20px) saturate(150%);
    backdrop-filter:blur(20px) saturate(150%);
    border-top:1px solid var(--line-soft);
    padding:5px 0 calc(5px + env(safe-area-inset-bottom));
  }
  .tab{
    position:relative;
    flex:1; display:flex; flex-direction:column; align-items:center; gap:4px;
    padding:7px 2px;
    color:var(--ink-4); font-size:10px; font-weight:600; letter-spacing:.03em;
    min-height:46px; justify-content:center;
    transition:color .16s;
  }
  .tab svg{ width:19px; height:19px; }
  .tab[aria-current="page"]{ color:var(--ink-1); }
  .tab[aria-current="page"] svg{ color:var(--accent); }
  .tab[aria-current="page"]::before{
    content:""; position:absolute; top:0; left:50%; translate:-50% 0;
    width:20px; height:1.5px; border-radius:2px;
    background:var(--accent);
    box-shadow:0 0 10px rgba(214,176,106,.6);
  }

  body[data-no-tabbar] .tabbar{ display:none; }
  body[data-no-tabbar] .content{ padding-bottom:calc(20px + env(safe-area-inset-bottom)); }

  .hero{ grid-template-columns:minmax(0,1fr); margin-bottom:28px; border-radius:18px; }
  .hero-inner{ padding:30px 22px 18px; }
  .hero-mark{ width:32px; height:32px; margin-bottom:20px; }
  .hero-eyebrow{ font-size:9.5px; margin-bottom:14px; }
  .hero h2{ font-size:26px; max-width:none; }
  .hero p{ font-size:13px; }
  .hero-actions{ padding:20px 22px 26px; }
  .hero-actions .btn{ flex:1; }
  .hero-stats{
    grid-column:1; grid-row:3;
    flex-direction:row; gap:0; padding:0;
    border-left:0; border-top:1px solid rgba(255,255,255,.07);
    background:none;
  }
  .hero-stats-head{ display:none; }
  .hero-stats > div:not(.hero-stats-head){ flex:1; padding:14px 14px 16px; }
  .hero-stats > div + div:not(.hero-stats-head){
    border-top:0; border-left:1px solid rgba(255,255,255,.06);
  }
  .hero-stat-num{ font-size:18px; }
  .hero-stat-label{ font-size:9px; letter-spacing:.08em; margin-top:4px; }

  .post-row{ padding:17px 16px; gap:12px; }
  .post-title{ font-size:15px; }
  .post-excerpt{ font-size:12.5px; }
  .feed-head{ padding-bottom:12px; }

  .article-title{ padding:14px 18px 0; font-size:22px; }
  .article > .row{ padding:24px 18px 0; }
  .article-byline{ margin:0 18px 24px; }
  .article-body{ font-size:14px; padding:0 18px 28px; }
  .linklist,.article-actions{ margin-left:18px; margin-right:18px; }
  .comment.reply{ margin-left:16px; }

  .profile-cover{ height:88px; }
  .profile-body{ padding:0 18px 22px; }
  .profile-top{ margin-top:-34px; gap:12px; align-items:stretch; flex-wrap:wrap; }
  .profile-ava{ width:72px; height:72px; }
  .profile-name{ font-size:20px; }
  .profile-id{ padding-top:40px; }
  .profile-actions{ width:100%; padding-bottom:0; }
  .profile-actions .btn{ flex:1; }
  .profile-stats > div{ padding:13px 18px 0 0; margin-right:18px; }
  .profile-stats > div + div{ padding-left:18px; }

  .msg-shell{
    grid-template-columns:1fr;
    height:calc(100dvh - var(--head-h) - 120px);
    max-height:none;
  }
  .msg-list{ border-right:none; }
  .msg-shell[data-view="chat"] .msg-list{ display:none; }
  .msg-shell[data-view="list"] .msg-pane{ display:none; }
  .bubble-row{ max-width:86%; }
  .msg-stream{ padding:18px 16px; }

  .table-wrap{
    overflow-x:auto; -webkit-overflow-scrolling:touch;
    margin-inline:-16px; padding-inline:16px;
    border-left:0; border-right:0; border-radius:0;
  }
  .table{ min-width:620px; }

  .card-head{ flex-wrap:wrap; row-gap:10px; }
  .card-head h2,.card-head h3{ white-space:nowrap; }
  .card-head .seg{ flex:0 0 auto; }
  .card-head-spacer{ min-width:0; }
  .kpi-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }

  .site-foot{ padding:34px 16px 96px; }
  .site-foot-in{ grid-template-columns:1fr 1fr; gap:24px; }
  .foot-brand{ grid-column:1 / -1; }
  .foot-copy{ margin-top:22px; }

  .doc-page{ padding:26px 18px 32px; }
}

@media (max-width:420px){
  .post-excerpt{ display:none; }
  .profile-stats > div{ padding-right:14px; margin-right:14px; }
  .topbar .btn-icon[aria-label="通知"]{ display:none; }
  .head-in{ gap:14px; }
}

/* ============================================================
   9. MOTION
   ============================================================ */
.reveal{ opacity:0; transform:translateY(14px); filter:blur(5px); }
.reveal.in{
  opacity:1; transform:none; filter:none;
  transition:
    opacity .62s cubic-bezier(.16,1,.3,1),
    transform .62s cubic-bezier(.16,1,.3,1),
    filter .62s cubic-bezier(.16,1,.3,1);
}

/* 首屏元素直接入场，不等观察器 */
.hero .hero-mark{ animation:mark-in .8s cubic-bezier(.16,1,.3,1) both; }
@keyframes mark-in{
  from{ opacity:0; transform:translateY(8px) scale(.9); }
  to  { opacity:1; transform:none; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
  .reveal{ opacity:1; transform:none; filter:none; }
}

/* print */
@media print{
  .site-head,.tabbar,.site-foot,.hero-actions,.aside,.scroll-line,.nav-sheet{ display:none; }
  .content{ max-width:none; padding:0; }
  body{ background:#fff; color:#111; }
  body::before,body::after{ display:none; }
  .card,.feed,.srv,.res{ background:#fff; border-color:#ddd; }
}

/* ============================================================
   20. 星光层 — 背景里那一点闪烁
   ============================================================ */
.starfield{
  position:fixed; inset:0; z-index:0;
  pointer-events:none; overflow:hidden;
}
.starfield .star{
  position:absolute; border-radius:50%;
  background:#eaf1f9; opacity:var(--o,.4);
  box-shadow:0 0 4px rgba(220,234,255,.55);
  animation:twinkle var(--d,5s) ease-in-out var(--delay,0s) infinite;
}
@keyframes twinkle{
  0%,100%{ opacity:calc(var(--o,.4) * .25); transform:scale(.85); }
  50%    { opacity:var(--o,.4); transform:scale(1.15); }
}
.starfield .star-big{
  width:9px; height:9px; background:none; box-shadow:none;
  border-radius:0;
  background-image:
    linear-gradient(0deg, transparent 46%, rgba(234,241,249,.85) 50%, transparent 54%),
    linear-gradient(90deg, transparent 46%, rgba(234,241,249,.85) 50%, transparent 54%);
  background-size:100% 100%;
  opacity:.5;
  animation:twinkle-big 7s ease-in-out var(--delay,0s) infinite;
}
@keyframes twinkle-big{
  0%,100%{ opacity:.14; transform:rotate(0deg) scale(.7); }
  50%    { opacity:.62; transform:rotate(18deg) scale(1); }
}
.starfield .shoot{
  position:absolute; width:120px; height:1px;
  background:linear-gradient(90deg, transparent, rgba(240,216,168,.85));
  filter:drop-shadow(0 0 6px rgba(240,216,168,.7));
  opacity:0;
  animation:shoot 1.7s cubic-bezier(.2,.6,.4,1) forwards;
}
@keyframes shoot{
  0%   { opacity:0; transform:translate3d(0,0,0) rotate(18deg) scaleX(.2); }
  12%  { opacity:1; }
  100% { opacity:0; transform:translate3d(220px,90px,0) rotate(18deg) scaleX(1); }
}

/* ============================================================
   21. 页面切换 — 跨文档共享元素
   ============================================================ */
@view-transition{ navigation:auto; }

/* 品牌徽记与页面标题在两页之间连续移动，不是整页硬切 */
.site-head .brand-mark{ view-transition-name:brand; }
.page-head h1{ view-transition-name:page-title; }

::view-transition-old(root),
::view-transition-new(root){ animation-duration:.26s; animation-timing-function:cubic-bezier(.16,1,.3,1); }
::view-transition-old(page-title),
::view-transition-new(page-title){ animation-duration:.34s; animation-timing-function:cubic-bezier(.16,1,.3,1); }
::view-transition-old(brand),
::view-transition-new(brand){ animation-duration:.34s; }

/* ============================================================
   22. 骨架屏 — 尺寸贴着真实内容，不再撑高页面
   ============================================================ */
.skel-row{
  display:flex; gap:12px; align-items:flex-start;
  padding:15px 16px; min-height:78px;
  border-bottom:1px solid var(--line-soft);
}
.skel-card{
  display:flex; flex-direction:column; gap:9px;
  padding:15px; border:1px solid var(--line-soft);
  border-radius:var(--r-lg); background:var(--surface);
  overflow:hidden;
}
.skel-card-top{ display:flex; gap:11px; align-items:flex-start; margin-bottom:3px; }
.skel-card-foot{
  display:flex; gap:10px; align-items:center;
  margin-top:auto; padding-top:11px;
  border-top:1px solid var(--line-soft);
}
/* 骨架呼吸得更慢一点，别像故障闪烁 */
.skel{ animation:skel-breathe 1.9s ease-in-out infinite; }
@keyframes skel-breathe{
  0%,100%{ opacity:.5; }
  50%    { opacity:.85; }
}

/* ============================================================
   23. 浮层 — 抽屉 / 模态（点遮罩不关，关之前要确认）
   ============================================================ */
.layer{
  position:fixed; inset:0; z-index:var(--z-overlay);
  display:grid;
}
.layer-drawer{ grid-template-columns:minmax(0,1fr) auto; }
.layer-modal{ place-items:center; padding:24px; }

.layer-scrim{
  position:absolute; inset:0;
  background:rgba(4,7,11,.68);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  opacity:0; transition:opacity .22s ease;
}
.layer.in .layer-scrim{ opacity:1; }

.layer-panel{
  position:relative;
  display:flex; flex-direction:column;
  background:linear-gradient(180deg,#0c121a,#0a0f16);
  border:1px solid var(--line);
  box-shadow:var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
  opacity:0; transition:opacity .22s ease, transform .28s cubic-bezier(.16,1,.3,1);
  max-height:100dvh;
}
.layer-drawer .layer-panel{
  justify-self:end;
  width:min(460px, 92vw); height:100dvh;
  border-radius:var(--r-xl) 0 0 var(--r-xl);
  border-right:0;
  transform:translateX(26px);
}
.layer-modal .layer-panel{
  width:min(var(--layer-w,560px), 94vw);
  max-height:min(86dvh, 860px);
  border-radius:var(--r-xl);
  transform:translateY(14px) scale(.985);
}
.layer.in .layer-panel{ opacity:1; transform:none; }

.layer-head{
  display:flex; align-items:flex-start; gap:14px;
  padding:20px 22px 14px;
  border-bottom:1px solid var(--line-soft);
}
.layer-head h2{ font-size:15px; font-weight:600; color:var(--ink-1); letter-spacing:.01em; }
.layer-desc{ font-size:12px; line-height:1.7; color:var(--ink-3); margin-top:5px; }
.layer-x{
  margin-left:auto; flex:0 0 auto;
  width:30px; height:30px; border-radius:9px;
  display:grid; place-items:center;
  border:1px solid transparent; background:none;
  color:var(--ink-3); cursor:pointer;
  transition:color .16s, background .16s, border-color .16s;
}
.layer-x:hover{ color:var(--ink-1); background:rgba(255,255,255,.06); border-color:var(--line); }

/* 收起前的确认条：在浮层内部出现，不弹第二个对话框 */
.layer-guard{
  display:none;
  align-items:center; gap:12px; flex-wrap:wrap;
  margin:12px 22px 0; padding:11px 13px;
  border-radius:var(--r);
  border:1px solid rgba(216,167,95,.28);
  background:rgba(216,167,95,.07);
  font-size:12px; color:var(--ink-2);
}
.layer-guard.in{ display:flex; animation:guard-in .22s ease both; }
.layer-guard .row{ margin-left:auto; }
@keyframes guard-in{ from{ opacity:0; transform:translateY(-4px); } to{ opacity:1; transform:none; } }

.layer-body{ padding:16px 22px 20px; overflow:auto; flex:1; min-height:0; }
.layer-foot{
  display:flex; align-items:center; gap:10px;
  padding:13px 22px;
  border-top:1px solid var(--line-soft);
  background:rgba(255,255,255,.018);
  border-radius:0 0 var(--r-xl) 0;
}
.layer-foot .spacer{ flex:1; }

body.layer-open{ overflow:hidden; }

/* 点遮罩 / 关闭被拦下时，浮层抖一下表示"没关" */
.nudge{ animation:nudge .42s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes nudge{
  10%,90%{ transform:translateX(-1px); }
  20%,80%{ transform:translateX(2px); }
  30%,50%,70%{ transform:translateX(-3px); }
  40%,60%{ transform:translateX(3px); }
}
.layer-drawer .layer-panel.nudge{ animation-name:nudge-x; }
@keyframes nudge-x{
  10%,90%{ transform:translateX(calc(0px - 1px)); }
  20%,80%{ transform:translateX(calc(0px - 3px)); }
  30%,50%,70%{ transform:translateX(calc(0px - 5px)); }
  40%,60%{ transform:translateX(calc(0px - 3px)); }
}

@media (max-width:640px){
  .layer-drawer{ grid-template-columns:1fr; place-items:end stretch; }
  .layer-drawer .layer-panel{
    width:100%; height:auto; max-height:92dvh;
    border-radius:var(--r-xl) var(--r-xl) 0 0;
    border-right:1px solid var(--line);
    transform:translateY(26px);
  }
  .layer-modal{ padding:14px; }
}

/* ============================================================
   24. 分步向导
   ============================================================ */
.wz-bar{
  display:flex; align-items:center; gap:10px;
  margin-bottom:18px; padding:0 2px;
}
.wz-step{
  display:flex; align-items:center; gap:9px;
  font-size:12px; color:var(--ink-4);
  background:none; border:0; padding:0; cursor:pointer;
  font-family:inherit; white-space:nowrap;
  transition:color .2s;
}
.wz-step .wz-n{
  width:22px; height:22px; border-radius:50%;
  display:grid; place-items:center;
  font-family:var(--font-mono); font-size:10.5px; font-weight:700;
  border:1px solid var(--line); color:var(--ink-4);
  background:var(--surface);
  transition:all .24s cubic-bezier(.16,1,.3,1);
}
.wz-step:hover{ color:var(--ink-2); }
.wz-step[data-state="doing"]{ color:var(--ink-1); font-weight:600; }
.wz-step[data-state="doing"] .wz-n{
  border-color:var(--accent-line); color:var(--on-accent);
  background:linear-gradient(160deg,var(--accent-2),var(--accent));
  box-shadow:0 0 0 4px rgba(214,176,106,.10);
}
.wz-step[data-state="done"]{ color:var(--ink-2); }
.wz-step[data-state="done"] .wz-n{
  border-color:rgba(94,199,171,.42); color:var(--teal);
  background:rgba(94,199,171,.10);
}
.wz-line{ flex:1; height:1px; background:var(--line-soft); min-width:10px; }
.wz-line.done{ background:linear-gradient(90deg, rgba(94,199,171,.5), var(--line-soft)); }

/* 向导里一次只出现一个 section */
.sec[hidden]{ display:none !important; }
.sec.is-entering{ animation:sec-in .32s cubic-bezier(.16,1,.3,1) both; }
@keyframes sec-in{
  from{ opacity:0; transform:translateY(8px); }
  to  { opacity:1; transform:none; }
}
.wz-nav{
  display:flex; align-items:center; gap:10px;
  margin-top:16px;
}
.wz-nav .spacer{ flex:1; }

/* ============================================================
   25. 首页平铺版式（不再用一张大卡片兜住首屏）
   ============================================================ */
.hero-flat{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,.7fr);
  gap:0 56px;
  align-items:end;
  padding:38px 0 30px;
  margin-bottom:26px;
  border-bottom:1px solid var(--line-soft);
}
.hero-flat::before{             /* 左上一点星金雾，代替卡片背景 */
  content:"";
  position:absolute; left:-8%; top:-40%;
  width:62%; height:180%;
  background:radial-gradient(ellipse at 30% 50%, rgba(214,176,106,.10), transparent 62%);
  pointer-events:none;
}
.hero-flat::after{              /* 右下极光，很淡 */
  content:"";
  position:absolute; right:0; top:-20%;
  width:44%; height:150%;
  background:radial-gradient(ellipse at 70% 40%, rgba(94,199,171,.07), transparent 66%);
  pointer-events:none;
}
.hf-main{ position:relative; z-index:1; }
.hf-eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--font-mono); font-size:10.5px; font-weight:500;
  letter-spacing:.2em; text-transform:uppercase; color:var(--ink-3);
}
.hf-eyebrow .star-dot{
  width:5px; height:5px; rotate:45deg; background:var(--accent);
  box-shadow:0 0 9px rgba(214,176,106,.85);
}
.hf-title{
  margin:16px 0 14px;
  font-size:clamp(27px, 3.4vw, 42px);
  line-height:1.24; font-weight:700;
  letter-spacing:-.015em; color:var(--ink-1);
  max-width:20ch;
}
.hf-title em{
  font-style:normal;
  background:linear-gradient(180deg, var(--accent-2), var(--accent));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  position:relative;
}
.hf-lede{
  font-size:13.5px; line-height:1.85; color:var(--ink-3);
  max-width:52ch;
}
.hf-actions{ display:flex; align-items:center; gap:10px; margin-top:22px; flex-wrap:wrap; }
.hf-stats{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1fr;
  gap:0; align-self:stretch;
  border-left:1px solid var(--line-soft);
  padding-left:32px;
}
.hf-stat{
  display:flex; align-items:baseline; gap:10px;
  padding:11px 0;
}
.hf-stat + .hf-stat{ border-top:1px solid var(--line-soft); }
.hf-stat b{
  font-family:var(--font-mono); font-size:clamp(22px,2.4vw,30px);
  font-weight:600; color:var(--ink-1); letter-spacing:-.02em;
  font-variant-numeric:tabular-nums; min-width:2.2ch;
}
.hf-stat span{ font-size:12px; color:var(--ink-3); }
.hf-stat small{ font-size:10px; color:var(--ink-4); }

@media (max-width:900px){
  .hero-flat{ grid-template-columns:1fr; gap:20px; padding-top:28px; }
  .hf-stats{ border-left:0; padding-left:0; border-top:1px solid var(--line-soft); padding-top:6px; grid-template-columns:repeat(3,1fr); }
  .hf-stat + .hf-stat{ border-top:0; }
  .hf-stat{ flex-direction:column; gap:2px; align-items:flex-start; }
}

/* ============================================================
   26. 未登录锁 — 表单先摆在那儿，但不给用
   ============================================================ */
.is-locked{ position:relative; }
.is-locked::after{ content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; }
.lock-veil{
  position:absolute; inset:0; z-index:3;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:12px; padding:24px; text-align:center;
  background:rgba(7,10,15,.78);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  border-radius:inherit;
  animation:fade-in .3s ease both;
}
.lock-veil .lock-ico{
  width:38px; height:38px; border-radius:50%;
  display:grid; place-items:center;
  color:var(--accent);
  background:rgba(214,176,106,.10);
  box-shadow:inset 0 0 0 1px rgba(214,176,106,.28);
}
.lock-veil h3{ font-size:13.5px; font-weight:600; color:var(--ink-1); }
.lock-veil p{ font-size:11.5px; color:var(--ink-3); max-width:32ch; line-height:1.7; }
@keyframes fade-in{ from{ opacity:0; } to{ opacity:1; } }

/* ============================================================
   27. 带撤回的提示
   ============================================================ */
.toast-host-undo{ bottom:calc(var(--tabbar-h, 0px) + 22px); }
.toast-undo{
  display:inline-flex; align-items:center; gap:11px;
  pointer-events:auto;
}
.toast-act{
  margin-left:4px; padding:0 2px;
  background:none; border:0; cursor:pointer;
  font-family:inherit; font-size:12px; font-weight:600;
  color:var(--accent); text-decoration:underline; text-underline-offset:3px;
}
.toast-act:hover{ color:var(--accent-2); }

/* ============================================================
   28. 内容增长时的进场（数组插入，不整块闪一下）
   ============================================================ */
.list-in > *{ animation:item-in .34s cubic-bezier(.16,1,.3,1) both; }
.list-in > *:nth-child(2){ animation-delay:.03s; }
.list-in > *:nth-child(3){ animation-delay:.06s; }
.list-in > *:nth-child(4){ animation-delay:.09s; }
.list-in > *:nth-child(5){ animation-delay:.12s; }
.list-in > *:nth-child(n+6){ animation-delay:.15s; }
@keyframes item-in{
  from{ opacity:0; transform:translateY(7px); }
  to  { opacity:1; transform:none; }
}

/* ============================================================
   29. 登录页：登录就只做登录，注册另开一页
   ============================================================ */
.auth-alt-row{
  display:flex; align-items:center; justify-content:center; gap:14px;
  margin-top:18px; padding-top:16px;
  border-top:1px solid var(--line-soft);
}
.auth-alt{
  background:none; border:0; padding:0; cursor:pointer;
  font-family:inherit; font-size:12.5px; color:var(--ink-3);
  transition:color .16s;
}
.auth-alt:hover{ color:var(--accent-ink); }
.auth-alt-sep{ width:1px; height:11px; background:var(--line); }

/* ============================================================
   30. 活动中心：路径条 / 无卡片分区
   ============================================================ */
.page-lede{
  font-size:13px; line-height:1.8; color:var(--ink-2);
  max-width:68ch; margin-bottom:22px;
}

.ways{ border-top:1px solid var(--line-soft); margin-bottom:30px; }
.way{
  display:grid; grid-template-columns:74px minmax(0,1fr);
  gap:0 22px;
  padding:22px 0;
  border-bottom:1px solid var(--line-soft);
  transition:background .2s;
}
.way:hover{ background:rgba(255,255,255,.012); }
.way-side{ display:flex; flex-direction:column; gap:8px; padding-top:2px; }
.way-n{
  font-family:var(--font-mono); font-size:11px; font-weight:600;
  letter-spacing:.14em; color:var(--accent);
}
.way-state{
  font-size:11px; color:var(--ink-4);
  padding-left:1px;
}
.way-main{ min-width:0; }
.way-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:8px; }
.way-head h3{ font-size:16px; font-weight:600; color:var(--ink-1); letter-spacing:-.005em; }
.way-main p{ font-size:12.5px; line-height:1.85; color:var(--ink-3); max-width:62ch; }
.way-foot{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:14px; }
.way-note{ font-size:11px; color:var(--ink-4); }

/* 无卡片分区：只靠标题与分隔线 */
.flat-sec{ border-top:1px solid var(--line); padding-top:18px; margin-bottom:30px; }
.flat-head{
  display:flex; align-items:baseline; gap:12px; margin-bottom:16px;
}
.flat-head h2{ font-size:15px; font-weight:600; color:var(--ink-1); }
.flat-note{ font-size:11px; color:var(--ink-4); margin-left:auto; }
.flat-body{ min-width:0; }

.aside-title{
  font-family:var(--font-mono); font-size:10px; font-weight:600;
  letter-spacing:.17em; text-transform:uppercase; color:var(--ink-3);
  display:flex; align-items:center; gap:7px;
  padding-bottom:11px; margin-bottom:12px;
  border-bottom:1px solid var(--line-soft);
}
.aside-title::before{
  content:""; width:4px; height:4px; rotate:45deg;
  background:var(--accent); opacity:.75;
}
.aside-list{
  display:flex; flex-direction:column; gap:10px;
  font-size:12.5px; line-height:1.75; color:var(--ink-2);
}
.aside-list li{ padding-left:13px; position:relative; }
.aside-list li::before{
  content:""; position:absolute; left:0; top:.62em;
  width:4px; height:4px; rotate:45deg;
  background:var(--ink-4);
}
.aside-states{ display:flex; flex-direction:column; gap:11px; }
.aside-states > div{ display:flex; align-items:center; gap:9px; }
.aside-states span:last-child{ font-size:11.5px; color:var(--ink-3); }
.aside section + section{ margin-top:28px; }

@media (max-width:640px){
  .way{ grid-template-columns:1fr; gap:12px; }
  .way-side{ flex-direction:row; align-items:center; gap:10px; }
  .way-state{ margin-left:auto; }
}

/* 投稿记录行 */
.sub-row{
  display:flex; align-items:flex-start; gap:12px;
  padding:13px 0; border-bottom:1px solid var(--line-soft);
}
.sub-row:last-child{ border-bottom:0; }
.sub-dot{
  width:7px; height:7px; border-radius:50%; flex:0 0 auto; margin-top:7px;
  background:var(--ink-4);
}
.sub-dot[data-s="0"]{ background:var(--accent); box-shadow:0 0 0 3px rgba(214,176,106,.14); }
.sub-dot[data-s="1"]{ background:var(--teal); box-shadow:0 0 0 3px rgba(94,199,171,.14); }
.sub-dot[data-s="2"]{ background:var(--down); box-shadow:0 0 0 3px rgba(224,132,116,.14); }
.sub-main{ flex:1; min-width:0; }
.sub-url{ font-size:12.5px; color:var(--ink-1); word-break:break-all; }
.sub-url:hover{ color:var(--accent-ink); }
.sub-meta{ font-size:10.5px; color:var(--ink-4); margin-top:5px; }

/* ============================================================
   31. 手风琴分组（长表单折叠成几段）
   ============================================================ */
.acc{
  border-top:1px solid var(--line-soft);
  margin-top:14px;
}
.acc summary{
  display:flex; align-items:center; gap:9px;
  padding:12px 2px; cursor:pointer;
  font-size:12.5px; font-weight:600; color:var(--ink-2);
  list-style:none; user-select:none;
  transition:color .16s;
}
.acc summary::-webkit-details-marker{ display:none; }
.acc summary::before{
  content:"";
  width:6px; height:6px; flex:0 0 auto;
  border-right:1.6px solid var(--ink-4);
  border-bottom:1.6px solid var(--ink-4);
  rotate:-45deg; translate:0 -2px;
  transition:rotate .22s cubic-bezier(.16,1,.3,1), border-color .16s;
}
.acc[open] summary::before{ rotate:45deg; border-color:var(--accent); translate:0 0; }
.acc summary:hover{ color:var(--ink-1); }
.acc summary::after{
  content:"可选"; margin-left:auto;
  font-family:var(--font-mono); font-size:9.5px;
  letter-spacing:.1em; color:var(--ink-4);
}
.acc[open] summary::after{ content:""; }
.acc-body{ padding:2px 0 16px; animation:acc-in .26s ease both; }
@keyframes acc-in{ from{ opacity:0; transform:translateY(-4px); } to{ opacity:1; transform:none; } }

.share-form .field:first-child{ margin-top:2px; }

/* 必填项为空时的输入框反馈 */
.input.is-bad{
  border-color:rgba(224,132,116,.55);
  box-shadow:0 0 0 3px rgba(224,132,116,.10);
  animation:nudge .34s ease both;
}

/* ============================================================
   32. 反馈入口条
   ============================================================ */
.fb-cta-body{
  display:flex; align-items:center; gap:24px;
  padding:20px 22px;
}
.fb-cta-txt{ min-width:0; }
.fb-cta-txt h2{ font-size:14.5px; font-weight:600; color:var(--ink-1); }
.fb-cta-txt p{ font-size:12.5px; line-height:1.75; color:var(--ink-3); margin-top:6px; max-width:56ch; }
.fb-cta-body .btn{ margin-left:auto; flex:0 0 auto; }
@media (max-width:640px){
  .fb-cta-body{ flex-direction:column; align-items:flex-start; gap:14px; }
  .fb-cta-body .btn{ margin-left:0; width:100%; justify-content:center; }
}

/* 向导里的分区不再重复编号，步骤条已经说清楚了 */
.wf-form[data-wz] .sec-badge{ display:none; }
.wf-form[data-wz] .sec-head{ padding-left:2px; }

/* 首屏光雾收一点，别让整块看起来像一张没边框的卡片 */
.hero-flat::before{
  left:-4%; top:-30%; width:46%; height:150%;
  background:radial-gradient(ellipse at 30% 55%, rgba(214,176,106,.085), transparent 58%);
}
.hero-flat::after{ display:none; }

/* 面板高度别被右侧卡片拉长：左栏排完就收，不留一大片空 */
.np-side{ grid-row:1; align-self:start; min-height:0; }
.np-cols{ align-content:start; }
.np-foot{ margin-top:14px; }

/* 指向「更多」的小三角：用星金色画，深色底上才看得见 */
.np-arrow{
  position:absolute; top:-6px; left:var(--arrow-x, 72%);
  width:13px; height:6px;
  translate:-50% 0; rotate:0deg;
  background:none; border:0;
  filter:drop-shadow(0 0 6px rgba(214,176,106,.35));
}
.np-arrow::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(214,176,106,.85), rgba(214,176,106,.38));
  clip-path:polygon(50% 0, 100% 100%, 0 100%);
}

/* 右栏竖线走满整个面板高度，内容靠上 */
.np-side{ grid-row:1 / span 2; align-self:stretch; justify-content:flex-start; }

.np-guest-foot{
  font-size:11px; color:var(--ink-4); line-height:1.7;
  margin-top:auto; padding-top:12px;
  border-top:1px dashed rgba(255,255,255,.05);
}
.np-link{ padding-top:8px; padding-bottom:8px; }

/* ============================================================
   33. 窄屏收口：向导条 / 提交栏 / 筛选条 / 移动菜单底部用户区
   ============================================================ */

/* 移动菜单底部的用户名与 UID：这两个类之前没定义，字号一样大，看不出主次 */
.np-me-name{ font-size:13.5px; font-weight:600; color:var(--ink-1); line-height:1.35; }
.np-me-uid{
  font-family:var(--font-mono); font-size:10px;
  color:var(--ink-4); letter-spacing:.06em;
}

/* 向导条：390px 三步 2-100-3 排不下，非当前步只留序号，当前步才带文字 */
.wz-t{ white-space:nowrap; }
@media (max-width:560px){
  .wz-bar{ gap:8px; padding:0; }
  .wz-step{ gap:7px; font-size:11.5px; }
  .wz-step .wz-t{ display:none; }
  .wz-step[data-state="doing"] .wz-t{ display:inline; }
}

/* 提交栏：四个按钮已经把 390px 占满，"按 Ctrl+S 也可保存"只会挤成两行。
   只藏提交栏里那条，页头「草稿自动存在本地」用的同一个类，别一起藏掉 */
@media (max-width:560px){
  .commit-bar{ gap:8px; }
  .commit-bar .commit-note{ display:none; }
  .commit-bar .btn{ padding-left:12px; padding-right:12px; }
}

/* 服务器筛选条：chips 换行后，计数与「把你的服务器放上来」另起一行，左计数右按钮 */
@media (max-width:700px){
  .row.wrap > .spacer{ flex:0 0 100%; height:0; margin:0; }
  .row.wrap > [data-share-server]{ margin-left:auto; }
}
