/* ==========================================================================
   星河班 · STAR RIVER 2026
   v3 扩展层 —— 星图 / 今日一问 / 时间胶囊 / 技能交易所 / 半透信箱 / 赛季 / 控制台
   加载于 xh.css 之后，只承载新模块，不覆写既有页面。
   ========================================================================== */

/* ---------- 0. 通用 ---------- */
.v3-mono { font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; color: var(--muted); }
.v3-overline { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand); }
.v3-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--text-soft);
  font-size: 12.5px; cursor: pointer; transition: all .18s var(--xh-ease);
}
.v3-chip:hover { border-color: var(--ink); color: var(--ink); }
.v3-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.v3-empty {
  padding: 46px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius-lg);
  color: var(--text-soft); background: rgba(255, 255, 255, 0.55);
}
.v3-empty b { display: block; font-family: var(--font-black); font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.v3-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 900;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 13px; box-shadow: 0 20px 50px -20px rgba(7, 24, 46, 0.6);
  opacity: 0; pointer-events: none; transition: all .28s var(--xh-ease);
}
.v3-toast.show { opacity: 1; transform: translate(-50%, 0); }
.v3-toast.err { background: var(--red); }
.v3-toast.ok { background: var(--green); }

/* ---------- 1. 班级星图 ---------- */
.sm-wrap { padding-bottom: 30px; }
.sm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.sm-stat {
  background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.sm-stat::after {
  content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px;
  background: radial-gradient(circle, rgba(26, 75, 255, 0.14), transparent 70%);
}
.sm-stat b { display: block; font-family: var(--font-black); font-size: 30px; line-height: 1.1; color: var(--ink); }
.sm-stat span { font-size: 12px; color: var(--text-soft); }
.sm-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.sm-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-search { position: relative; }
.sm-search input {
  width: 220px; max-width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; padding: 0 18px; font-size: 13.5px; font-family: var(--font-body); outline: none;
}
.sm-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.sm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.sm-stage {
  position: relative; min-height: 620px; border-radius: var(--radius-xl); overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(46, 94, 255, 0.22), transparent 62%),
    radial-gradient(800px 500px at 90% 110%, rgba(112, 70, 255, 0.16), transparent 60%),
    radial-gradient(700px 460px at 0% 100%, rgba(0, 212, 255, 0.1), transparent 60%),
    linear-gradient(180deg, #04101f, #071a31 55%, #04101f);
  border: 1px solid rgba(120, 160, 255, 0.18);
  box-shadow: 0 40px 90px -50px rgba(4, 16, 31, 0.9);
}
.sm-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 32% 72%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.4px 1.4px at 68% 24%, #fff, transparent),
    radial-gradient(1px 1px at 86% 64%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 48% 44%, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 22% 86%, rgba(255,255,255,.6), transparent);
  background-size: 420px 380px;
}
.sm-svg { position: relative; z-index: 2; display: block; width: 100%; height: auto; }
.sm-line { stroke: rgba(137, 173, 255, 0.24); stroke-width: 1; }
.sm-orbit { fill: none; stroke: rgba(137, 173, 255, 0.1); stroke-width: 1; stroke-dasharray: 3 7; }
.sm-node { cursor: pointer; outline: none; }
.sm-node .sm-halo { fill: rgba(90, 140, 255, 0.18); transition: opacity .2s; }
.sm-node .sm-dot { fill: #dce8ff; stroke: rgba(26, 75, 255, 0.6); stroke-width: 1.2; transition: all .2s; }
.sm-node:hover .sm-dot, .sm-node:focus .sm-dot { fill: #fff; stroke: #7fb0ff; r: 9; }
.sm-node.dimmed { opacity: 0.18; }
.sm-node.hit .sm-dot { fill: #ffd98a; stroke: #dfa63e; }
.sm-node .sm-name {
  fill: rgba(220, 232, 255, 0.86); font-size: 10.5px; font-family: var(--font-body);
  text-anchor: middle; pointer-events: none; paint-order: stroke;
  stroke: rgba(4, 16, 31, 0.85); stroke-width: 3px; stroke-linejoin: round;
}
.sm-node .sm-rank { fill: rgba(137, 173, 255, 0.6); font-size: 8px; font-family: var(--font-mono); text-anchor: middle; }
.sm-group-label { fill: rgba(180, 205, 255, 0.55); font-size: 10px; font-family: var(--font-mono); letter-spacing: .16em; text-anchor: middle; }
.sm-hint {
  position: absolute; left: 22px; bottom: 18px; z-index: 3;
  color: rgba(214, 228, 255, 0.5); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
}
.sm-side { display: grid; gap: 14px; }
.sm-detail {
  background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); min-height: 300px;
}
.sm-detail .sm-avatar {
  width: 62px; height: 62px; border-radius: 50%; overflow: hidden; background: var(--brand-soft);
  display: grid; place-items: center; font-family: var(--font-black); font-size: 24px; color: var(--brand);
  border: 1px solid rgba(26, 75, 255, 0.16); margin-bottom: 14px;
}
.sm-detail .sm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sm-detail h3 { font-size: 24px; margin-bottom: 2px; }
.sm-detail .sm-subline { font-size: 12.5px; color: var(--text-soft); }
.sm-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.sm-detail-grid div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.sm-detail-grid b { display: block; font-size: 18px; font-family: var(--font-mono); color: var(--ink); }
.sm-detail-grid span { font-size: 10.5px; color: var(--muted); }
.sm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); }
.sm-roster {
  background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.sm-roster h4 { font-size: 14px; margin-bottom: 10px; }
.sm-roster-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line);
  font-size: 12.5px; color: var(--text-soft); cursor: pointer;
}
.sm-roster-row:last-child { border-bottom: 0; }
.sm-roster-row:hover { color: var(--ink); }
.sm-roster-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.sm-roster-row .num { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.sm-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 11.5px; color: var(--text-soft); }
.sm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sm-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sm-tooltip {
  position: absolute; z-index: 6; transform: translate(-50%, -120%);
  background: rgba(7, 24, 46, 0.94); color: #fff; border: 1px solid rgba(137, 173, 255, 0.3);
  padding: 8px 12px; border-radius: 10px; font-size: 12px; pointer-events: none;
  white-space: nowrap; opacity: 0; transition: opacity .16s;
}
.sm-tooltip.show { opacity: 1; }
.sm-tooltip b { color: #ffd98a; }

/* ---------- 2. 今日一问 ---------- */
.dq-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 20px; align-items: start; }
.dq-card {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: linear-gradient(155deg, #ffffff, #f7faff 60%, #eef4ff);
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 40px;
}
.dq-card::before {
  content: "Q"; position: absolute; right: 18px; top: -24px; font-family: var(--font-black);
  font-size: 180px; line-height: 1; color: rgba(26, 75, 255, 0.07); pointer-events: none;
}
.dq-date { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.dq-date b { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--brand); }
.dq-date span { font-size: 12px; color: var(--muted); }
.dq-question { font-family: var(--font-black); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.3; color: var(--ink); margin-bottom: 22px; position: relative; z-index: 2; }
.dq-form { position: relative; z-index: 2; }
.dq-form textarea {
  width: 100%; min-height: 96px; resize: vertical; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 14px 16px; font-family: var(--font-body); font-size: 14.5px; background: rgba(255, 255, 255, 0.8);
  outline: none;
}
.dq-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.dq-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.dq-form-foot .hint { font-size: 11.5px; }
.dq-result { position: relative; z-index: 2; }
.dq-own {
  background: var(--brand-soft); border: 1px solid rgba(26, 75, 255, 0.14);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px;
}
.dq-own span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--brand); }
.dq-own p { margin: 6px 0 0; font-size: 15px; color: var(--ink); }
.dq-answer-list { display: grid; gap: 10px; max-height: 430px; overflow: auto; padding-right: 4px; }
.dq-answer {
  display: flex; gap: 12px; padding: 13px 15px; background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line); border-radius: 14px; animation: v3Rise .4s var(--xh-ease) both;
}
.dq-answer .n { font-family: var(--font-mono); font-size: 10.5px; color: var(--brand); flex: none; padding-top: 3px; }
.dq-answer p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text); }
.dq-locked { display: flex; gap: 12px; align-items: center; padding: 18px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line-2); }
.dq-locked .lock { font-size: 24px; }
.dq-locked b { display: block; font-size: 14px; }
.dq-locked small { color: var(--text-soft); font-size: 12px; }
.dq-side { display: grid; gap: 16px; }
.dq-history { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.dq-history h4 { font-size: 14px; margin-bottom: 12px; }
.dq-history-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.dq-history-row:last-child { border-bottom: 0; }
.dq-history-row b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-history-row span { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); flex: none; }
.dq-history-row.active b { color: var(--brand); }

/* ---------- 3. 时间胶囊 ---------- */
.cp-top { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; margin-bottom: 24px; align-items: stretch; }
.cp-countdown {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 34px;
  background: linear-gradient(140deg, #07182e, #0c2a4f 58%, #133a6b);
  color: #fff; box-shadow: 0 36px 80px -44px rgba(4, 16, 31, 0.8); border: 1px solid rgba(137, 173, 255, 0.2);
}
.cp-countdown::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 82% 0%, rgba(80, 140, 255, 0.3), transparent 65%),
              radial-gradient(500px 300px at 10% 110%, rgba(223, 166, 62, 0.16), transparent 60%);
}
.cp-countdown > * { position: relative; z-index: 2; }
.cp-countdown .v3-overline { color: rgba(160, 195, 255, 0.75); }
.cp-countdown h2 { color: #fff; font-size: clamp(28px, 4vw, 46px); margin: 12px 0 8px; }
.cp-countdown p { color: rgba(214, 228, 255, 0.72); font-size: 13.5px; max-width: 520px; }
.cp-clock { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.cp-clock div {
  min-width: 84px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14); text-align: center;
}
.cp-clock b { display: block; font-family: var(--font-mono); font-size: 26px; color: #fff; line-height: 1.1; }
.cp-clock span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; color: rgba(214, 228, 255, 0.55); }
.cp-new { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.cp-new .v3-overline { margin-bottom: 8px; }
.cp-new h3 { font-size: 22px; margin-bottom: 8px; }
.cp-new p { font-size: 12.5px; color: var(--text-soft); margin-bottom: 18px; line-height: 1.7; }
.cp-new .btn { margin-top: auto; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.cp-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 24px;
  background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; min-height: 220px; transition: transform .25s var(--xh-ease), box-shadow .25s;
}
.cp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cp-card.sealed { background: linear-gradient(160deg, #fff, #fbf7ee); border-color: rgba(223, 166, 62, 0.28); }
.cp-card.opened { background: linear-gradient(160deg, #ffffff, #f2f7ff); border-color: rgba(26, 75, 255, 0.2); }
.cp-seal {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); font-size: 20px; border: 1px solid rgba(223, 166, 62, 0.35);
  margin-bottom: 14px;
}
.cp-card h3 { font-size: 20px; margin-bottom: 4px; }
.cp-card .cp-meta { font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }
.cp-card .cp-hintline { font-size: 12.5px; color: var(--text-soft); margin-top: 10px; }
.cp-card .cp-countdown-line { font-size: 12px; color: var(--text-soft); margin-top: 10px; }
.cp-card .cp-countdown-line b { color: var(--gold); font-family: var(--font-mono); }
.cp-card .cp-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; flex-wrap: wrap; }
.cp-progress { height: 4px; border-radius: 999px; background: var(--bg-soft); margin-top: 12px; overflow: hidden; }
.cp-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), #f5cd8a); }
.cp-reveal {
  white-space: pre-wrap; font-family: var(--font-callig); font-size: 22px; line-height: 1.8; color: var(--ink);
  background: var(--gold-soft); border: 1px solid rgba(223, 166, 62, 0.25); padding: 18px; border-radius: 14px;
}

/* ---------- 4. 技能交易所 ---------- */
.sk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.sk-stat { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.sk-stat b { display: block; font-family: var(--font-black); font-size: 28px; line-height: 1.1; color: var(--ink); }
.sk-stat span { font-size: 12px; color: var(--text-soft); }
.sk-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.sk-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.sk-card {
  background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s var(--xh-ease), box-shadow .25s, border-color .25s;
}
.sk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(26, 75, 255, 0.22); }
.sk-card.closed { opacity: .62; }
.sk-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sk-avatar {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--brand-soft);
  display: grid; place-items: center; font-family: var(--font-black); font-size: 17px; color: var(--brand); flex: none;
}
.sk-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sk-card-head .who { min-width: 0; }
.sk-card-head .who b { display: block; font-size: 13px; color: var(--ink); }
.sk-card-head .who small { font-size: 11px; color: var(--muted); }
.sk-cat { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--brand); background: var(--brand-soft); padding: 4px 9px; border-radius: 999px; flex: none; }
.sk-card h3 { font-size: 19px; margin-bottom: 8px; }
.sk-desc { font-size: 12.5px; color: var(--text-soft); line-height: 1.75; min-height: 44px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sk-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sk-price { font-family: var(--font-mono); font-size: 20px; color: var(--ink); }
.sk-price i { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 3px; }
.sk-slots { font-size: 11.5px; color: var(--text-soft); }
.sk-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.sk-actions .btn, .sk-actions .btn-outline { flex: 1; min-width: 100px; }
.sk-mine { margin-top: 34px; }
.sk-mine-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.sk-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 999px; }
.sk-tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 12.5px; color: var(--text-soft); cursor: pointer; }
.sk-tabs button.active { background: var(--ink); color: #fff; }
.sk-order {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.sk-order:last-child { border-bottom: 0; }
.sk-order .body { flex: 1; min-width: 200px; }
.sk-order .body b { font-size: 14px; color: var(--ink); }
.sk-order .body small { display: block; font-size: 11.5px; color: var(--text-soft); }
.sk-state { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; padding: 4px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--text-soft); flex: none; }
.sk-state.pending { background: var(--gold-soft); color: #9a6a12; }
.sk-state.accepted { background: var(--brand-soft); color: var(--brand-deep); }
.sk-state.done { background: #e8f7ee; color: var(--green); }
.sk-state.settled { background: var(--ink); color: #fff; }
.sk-state.rejected, .sk-state.cancelled { background: #fff0f0; color: var(--red); }

/* ---------- 5. 半透信箱 ---------- */
.wl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.wl-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 999px; }
.wl-tabs button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-size: 13px; color: var(--text-soft); cursor: pointer; }
.wl-tabs button.active { background: var(--ink); color: #fff; }
.wl-tabs button .dot { display: inline-block; min-width: 17px; height: 17px; line-height: 17px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; margin-left: 5px; }
.wl-compose {
  background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.wl-compose-grid { display: grid; grid-template-columns: 170px 1fr; gap: 14px; }
.wl-visibility { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.wl-vis {
  border: 1px solid var(--line-2); background: #fff; border-radius: 14px; padding: 13px 15px;
  cursor: pointer; text-align: left; transition: all .18s var(--xh-ease); font-family: var(--font-body);
}
.wl-vis b { display: block; font-size: 13px; color: var(--ink); }
.wl-vis small { font-size: 11px; color: var(--text-soft); }
.wl-vis.active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-tint); }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.wl-card {
  position: relative; border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column;
  background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.wl-card.private { background: linear-gradient(160deg, #fff, #f7f3ff); border-color: rgba(110, 80, 255, 0.2); }
.wl-card.postcard { background: linear-gradient(160deg, #fff, #f4f9ff); border-color: rgba(26, 75, 255, 0.18); }
.wl-card .wl-quote { font-family: var(--font-callig); font-size: 21px; line-height: 1.75; color: var(--ink); margin: 6px 0 18px; }
.wl-card .wl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.wl-card .wl-foot small { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.wl-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--brand); background: var(--brand-soft); padding: 3px 8px; border-radius: 999px; }
.wl-tag.gold { color: #9a6a12; background: var(--gold-soft); }
.wl-replies { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.wl-reply {
  background: var(--bg); border-radius: 12px; padding: 11px 13px; font-size: 12.5px; color: var(--text);
}
.wl-reply small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.wl-reply-box { display: flex; gap: 8px; margin-top: 12px; }
.wl-reply-box input { flex: 1; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); padding: 0 16px; font-size: 13px; outline: none; }
.wl-reply-box input:focus { border-color: var(--brand); }

/* ---------- 6. 反排行榜 / 赛季 ---------- */
.season-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 26px 30px;
  border: 1px solid var(--line); background: var(--card-solid); box-shadow: var(--shadow-sm);
  margin-bottom: 20px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.season-banner.active {
  background: linear-gradient(135deg, #07182e, #0c2a4f 60%, #123a6b); color: #fff; border-color: rgba(137, 173, 255, .2);
}
.season-banner.active::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 260px at 88% 0%, rgba(90, 140, 255, .28), transparent 62%);
}
.season-banner > * { position: relative; z-index: 2; }
.season-banner .season-copy { flex: 1; min-width: 240px; }
.season-banner .v3-overline { display: block; margin-bottom: 6px; }
.season-banner.active .v3-overline { color: rgba(160, 195, 255, .8); }
.season-banner h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.season-banner.active h2 { color: #fff; }
.season-banner p { margin: 0; font-size: 13px; color: var(--text-soft); }
.season-banner.active p { color: rgba(214, 228, 255, .72); }
.season-meter { width: 100%; max-width: 380px; margin-top: 14px; }
.season-meter-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-soft); margin-bottom: 6px; }
.season-banner.active .season-meter-top { color: rgba(214, 228, 255, .6); }
.season-meter-bar { height: 7px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.season-banner.active .season-meter-bar { background: rgba(255, 255, 255, .16); }
.season-meter-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #6f9bff); transition: width .5s var(--xh-ease); }
.season-banner.active .season-meter-bar i { background: linear-gradient(90deg, #62c8ff, #9d7bff); }
.season-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.season-quiet { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.season-quiet-card {
  background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.season-quiet-card::after {
  content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 75, 255, .12), transparent 70%);
}
.season-quiet-card b { display: block; font-family: var(--font-black); font-size: 34px; line-height: 1.1; color: var(--ink); }
.season-quiet-card span { font-size: 11.5px; color: var(--text-soft); }
.season-quiet-note { font-size: 13px; color: var(--text-soft); line-height: 1.8; margin-bottom: 22px; }

/* ---------- 7. 管理控制台 ---------- */
.adm-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 22px; align-items: start; }
.adm-rail {
  position: sticky; top: 96px; border-radius: var(--radius-xl); padding: 22px 16px;
  background: linear-gradient(170deg, #07182e, #0a2340 60%, #0d2b50);
  border: 1px solid rgba(137, 173, 255, .18); box-shadow: 0 34px 70px -46px rgba(4, 16, 31, .8);
  color: #fff;
}
.adm-rail-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.adm-rail-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: #6fe3a8; box-shadow: 0 0 0 4px rgba(111,227,168,.15); }
.adm-rail-brand b { display: block; font-family: var(--font-black); font-size: 15px; color: #fff; letter-spacing: .02em; }
.adm-rail-brand small { font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; color: rgba(214,228,255,.5); }
.adm-rail nav { display: grid; gap: 2px; margin-top: 14px; }
.adm-rail nav button {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent;
  color: rgba(214, 228, 255, .68); padding: 10px 12px; border-radius: 10px; font-size: 13px;
  cursor: pointer; text-align: left; font-family: var(--font-body); transition: all .16s;
}
.adm-rail nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.adm-rail nav button.active { background: rgba(90, 140, 255, .18); color: #fff; box-shadow: inset 2px 0 0 #6f9bff; }
.adm-rail nav button .ic { width: 18px; text-align: center; font-size: 13px; opacity: .85; }
.adm-rail nav button .count {
  margin-left: auto; min-width: 20px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 999px; background: rgba(255, 255, 255, .14); font-family: var(--font-mono); font-size: 9.5px; padding: 0 5px;
}
.adm-rail nav button.active .count { background: var(--brand); color: #fff; }
.adm-rail-foot { margin-top: 18px; padding: 14px 10px 2px; border-top: 1px solid rgba(255,255,255,.1); font-size: 10.5px; color: rgba(214,228,255,.42); font-family: var(--font-mono); line-height: 1.8; }
.adm-main { min-width: 0; }
.adm-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 18px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.adm-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-topbar-left h2 { font-size: 18px; margin: 0; }
.adm-topbar-left small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; color: var(--muted); }
.adm-search { position: relative; }
.adm-search input {
  width: 250px; max-width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line-2);
  padding: 0 16px 0 38px; font-size: 13px; outline: none; background: var(--bg);
}
.adm-search input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-tint); }
.adm-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.adm-user {
  display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
}
.adm-user b { font-size: 12.5px; color: var(--ink); }
.adm-user .role { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--brand); }
.adm-user .leave { border: 0; background: var(--bg); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: var(--text-soft); font-size: 14px; }
.adm-section { display: none; animation: v3Fade .3s var(--xh-ease); }
.adm-section.show { display: block; }
.adm-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.adm-stat {
  background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.adm-stat b { display: block; font-family: var(--font-black); font-size: 32px; line-height: 1.1; color: var(--ink); }
.adm-stat span { font-size: 11.5px; color: var(--text-soft); }
.adm-stat em { position: absolute; right: 16px; top: 16px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--muted); font-style: normal; }
.adm-stat.hot b { color: var(--brand); }
.adm-stat.gold b { color: var(--gold); }
.adm-panel {
  background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.adm-panel h3 { font-size: 18px; margin-bottom: 4px; }
.adm-panel .sub { font-size: 12.5px; color: var(--text-soft); margin-bottom: 16px; }
.adm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-panel-head h3 { margin: 0; }
.adm-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.adm-quick a, .adm-quick button {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 13px;
  text-align: left; cursor: pointer; font-family: var(--font-body); transition: all .18s;
}
.adm-quick a:hover, .adm-quick button:hover { border-color: var(--brand); background: #fff; box-shadow: 0 12px 26px -20px rgba(26, 75, 255, .5); transform: translateY(-1px); }
.adm-quick .ic { width: 30px; height: 30px; border-radius: 9px; background: #fff; display: grid; place-items: center; border: 1px solid var(--line); font-size: 14px; }
.adm-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-filters select, .adm-filters input {
  height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff;
  padding: 0 12px; font-size: 12.5px; font-family: var(--font-body); outline: none;
}
.adm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.adm-table { width: 100%; border-collapse: collapse; min-width: 860px; background: #fff; }
.adm-table th, .adm-table td { padding: 12px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table thead th { background: var(--bg); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--text-soft); font-weight: 400; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover { background: rgba(26, 75, 255, .025); }
.adm-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--bg); display: inline-grid; place-items: center; font-family: var(--font-black); font-size: 12px; color: var(--muted); border: 1px solid var(--line); flex: none; }
.adm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.adm-name-cell { display: inline-flex; align-items: center; gap: 9px; }
.adm-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.adm-actions button, .adm-actions a {
  padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff;
  color: var(--text-soft); font-size: 11.5px; cursor: pointer; font-family: var(--font-body); text-decoration: none;
}
.adm-actions button:hover, .adm-actions a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.adm-actions button.danger { color: var(--red); }
.adm-actions button.danger:hover { border-color: var(--red); background: #fff0f0; }
.adm-pill { display: inline-block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--text-soft); white-space: nowrap; }
.adm-pill.green { background: #e8f7ee; color: var(--green); }
.adm-pill.red { background: #fff0f0; color: var(--red); }
.adm-pill.gold { background: var(--gold-soft); color: #9a6a12; }
.adm-pill.blue { background: var(--brand-soft); color: var(--brand-deep); }
.adm-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.adm-item:last-child { border-bottom: 0; }
.adm-item .body { flex: 1; min-width: 200px; }
.adm-item .body b { font-size: 13.5px; color: var(--ink); }
.adm-item .body small { display: block; font-size: 11.5px; color: var(--text-soft); }
.adm-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 12.5px; }
.adm-health { display: grid; gap: 8px; }
.adm-health-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-soft); }
.adm-health-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.adm-health-row .tag { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.adm-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.adm-form-grid .field { margin-bottom: 0; }
.adm-form-grid .field label { font-size: 11px; }
.adm-inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.adm-inline-form .field { margin: 0; flex: 1; min-width: 150px; }
.adm-inline-form .field label { font-size: 11px; }
.adm-log { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.adm-log:last-child { border-bottom: 0; }
.adm-log .time { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.adm-log .body { flex: 1; font-size: 12.5px; }
.adm-log .body b { color: var(--ink); }
.adm-log .body small { display: block; color: var(--text-soft); font-size: 11.5px; }
.adm-code { font-family: var(--font-mono); font-size: 11px; color: var(--text-soft); background: var(--bg); padding: 6px 10px; border-radius: 8px; }

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1080px) {
  .sm-layout, .dq-layout, .cp-top { grid-template-columns: 1fr; }
  .sm-side { grid-template-columns: 1fr 1fr; }
  .adm-shell { grid-template-columns: 1fr; }
  .adm-rail { position: static; padding: 14px; }
  .adm-rail-brand, .adm-rail-foot { display: none; }
  .adm-rail nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; margin-top: 0; padding-bottom: 4px; }
  .adm-rail nav button { white-space: nowrap; }
  .adm-stat-grid, .sm-stats, .sk-stats { grid-template-columns: repeat(2, 1fr); }
  .dq-card, .cp-countdown { padding: 28px; }
}
@media (max-width: 720px) {
  .sm-stats, .sk-stats, .adm-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .sm-stage { min-height: 480px; }
  .sm-side { grid-template-columns: 1fr; }
  .sm-search input { width: 100%; }
  .sm-controls { align-items: stretch; }
  .dq-card { padding: 24px 20px; }
  .dq-layout { gap: 14px; }
  .cp-countdown, .cp-new { padding: 22px; }
  .cp-clock { gap: 8px; }
  .cp-clock div { flex: 1; min-width: 0; padding: 10px 8px; }
  .cp-clock b { font-size: 20px; }
  .wl-compose-grid { grid-template-columns: 1fr; }
  .wl-visibility { grid-template-columns: 1fr; }
  .adm-topbar { padding: 12px; }
  .adm-search { order: 3; width: 100%; }
  .adm-search input { width: 100%; }
  .adm-panel { padding: 18px; }
  .adm-rail nav button { padding: 9px 10px; font-size: 12px; }
  .season-banner { padding: 22px; }
  .season-actions { width: 100%; }
  .season-actions .btn, .season-actions .btn-outline { flex: 1; }
  .sk-grid, .cp-grid, .wl-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dq-answer, .adm-section { animation: none; }
  .cp-card, .sk-card { transition: none; }
}

@keyframes v3Rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes v3Fade { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   首页 · 星河实验场
   ============================================================ */
.home-lab-section { border-top: 1px solid var(--line); }
.home-lab-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.lab-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(168deg, #fff, #f5f9ff);
  color: var(--ink);
  overflow: hidden;
  transition: transform .35s var(--xh-ease), box-shadow .35s var(--xh-ease), border-color .35s;
}
.lab-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 75, 255, .35);
  box-shadow: 0 22px 44px -30px rgba(26, 75, 255, .55);
}
.lab-card .lab-index {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--muted);
}
.lab-card .lab-ic {
  position: absolute;
  right: 16px;
  top: 12px;
  font-family: var(--font-light);
  font-size: 34px;
  line-height: 1;
  color: rgba(26, 75, 255, .16);
}
.lab-card h3 {
  margin: 18px 0 8px;
  font-family: var(--font-black);
  font-size: 18px;
  letter-spacing: .01em;
}
.lab-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-soft);
  flex: 1;
}
.lab-card .lab-go {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--brand);
  transition: letter-spacing .3s var(--xh-ease);
}
.lab-card:hover .lab-go { letter-spacing: .18em; }
.lab-card.dark {
  background: radial-gradient(120% 120% at 20% 0%, #23365f 0%, #10192e 60%, #0a1120 100%);
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
}
.lab-card.dark .lab-index { color: rgba(214, 228, 255, .48); }
.lab-card.dark .lab-ic { color: rgba(160, 195, 255, .28); }
.lab-card.dark h3 { color: #fff; }
.lab-card.dark p { color: rgba(214, 228, 255, .66); }
.lab-card.dark .lab-go { color: #8fb4ff; }
.lab-card.dark:hover { border-color: rgba(143, 180, 255, .5); box-shadow: 0 26px 50px -28px rgba(6, 14, 32, .8); }
@media (max-width: 1080px) { .home-lab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .home-lab-grid { grid-template-columns: 1fr; } .lab-card { min-height: 0; } }
