/* ————— 超现实 × 新拟物（与 hm.css 令牌同源） —————
   奶油梦境纸底 + 午夜蓝深度 + 沙漠金/玫瑰漫射光
   ⚠ 令牌必须与 hm.css :root 保持一致
*/
:root {
  --bg-0: #e0e5ec;
  --bg-1: #e0e5ec;
  --surface-1: #e0e5ec;
  --surface-2: #e6ebf2;
  --surface-3: #e6ebf2;
  --glass-blur: blur(0px);
  --glass-blur-sm: blur(0px);
  --glass-blur-lg: blur(0px);
  --rim: rgba(184, 188, 194, 0.55);
  --rim-soft: rgba(184, 188, 194, 0.35);
  --rim-hi: #ffffff;
  --depth: 8px 8px 16px #b8bcc2, -8px -8px 16px #ffffff;
  --panel: #e0e5ec;
  --panel-solid: #e6ebf2;
  --neu-raised: 4px 4px 8px #b8bcc2, -4px -4px 8px #ffffff;
  --neu-press: inset 4px 4px 8px #b8bcc2, inset -4px -4px 8px #ffffff;
  --neu-inset: inset 6px 6px 12px #b8bcc2, inset -6px -6px 12px #ffffff;
  --glow-rose: 0 8px 20px rgba(109, 93, 252, 0.16);
  --glow-gold: 0 8px 20px rgba(51, 51, 51, 0.12);

  --accent: #6d5dfc;
  --accent-deep: #5646e8;
  --accent-bright: #8d80ff;
  --accent-soft: rgba(109, 93, 252, 0.16);
  --accent-line: rgba(51, 51, 51, 0.28);
  --accent-glow: var(--glow-rose);
  --on-accent: #e0e5ec;

  --cherry: #5646e8;
  --cherry-soft: rgba(109, 93, 252, 0.16);
  --mauve: #4a3fc4;
  --mauve-soft: rgba(74, 63, 196, 0.14);
  --lavender: var(--mauve);
  --lavender-soft: var(--mauve-soft);
  --sky: #64748b;
  --sky-soft: rgba(100, 116, 139, 0.12);
  --gold: #c9a24b;
  --gold-bright: #dcb968;
  --gold-deep: #a8823c;
  --gold-soft: rgba(201, 162, 75, 0.16);
  --gold-line: rgba(201, 162, 75, 0.35);
  --gold-glow: var(--glow-gold);

  --paper: var(--bg-0);
  --ink: #333333;
  --ink-soft: rgba(51, 51, 51, 0.75);
  --ink-faint: rgba(51, 51, 51, 0.55);
  --line: rgba(51, 51, 51, 0.12);
  --line-soft: rgba(51, 51, 51, 0.065);
  --green: #2aa38f;
  --green-soft: rgba(42, 163, 143, 0.14);
  --rose: #8d80ff;
  --rose-bright: #a89cff;
  --rose-deep: #5646e8;
  --rose-soft: rgba(109, 93, 252, 0.16);
  --rose-line: rgba(109, 93, 252, 0.35);
  --blue: var(--sky);
  --purple: var(--lavender);
  --red: #cf5b52;

  --typewriter: "Courier New", Courier, "SF Mono", monospace;
  --sans: -apple-system, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --serif: "Didot", "Bodoni 72", "Playfair Display", Georgia, "Songti SC", serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", monospace;
  --r: 14px;
  --r-sm: 10px;
  --r-lg: 24px;
  --tile-gap: 4px;
  --ease: ease-in-out;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.3s;
  --dur: 0.5s;
  --dur-slow: 0.7s;
  color-scheme: light;
}

/* 不支持 backdrop-filter 时提高膜层不透明度，保证可读 */
@supports not (backdrop-filter: blur(1px)) {
  :root {
    --surface-2: #e6ebf2;
    --panel: #e0e5ec;
    --panel-solid: #e6ebf2;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* 作者层的 display 声明会盖掉 UA 的 [hidden]{display:none}，显式兜住 */
[hidden] { display: none !important; }
html, body { height: 100%; }
html { background: var(--bg-0); }

body {
  background-color: var(--bg-0);
  background-image: none;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--on-accent); }

/* 玻璃配方原语（与 hm.css 同名同类，两表不共用） */
.glass {
  background: var(--surface-1);
  border: 1px solid var(--rim);
  box-shadow: var(--depth);
  border-radius: var(--r);
}
.glass-morandi {
  background: var(--surface-2);
  border: 1px solid var(--accent-line);
  box-shadow: var(--neu-raised);
}

/* 页面里已有的玻璃件统一挂上折射层，避免各自重复写 backdrop-filter */
.sg-search, .searchbox, .glass-btn, .chip, .chip-toggle, .topbar-btn, .emptybar, .modal-close, .m-badge, .search-mode {
  border-color: var(--rim);
}

/* ════════ 首页 · 背景棋盘瓷砖 ════════ */
.page-landing { overflow: hidden; }

/* 中心柔光，让玻璃框更通透 */
.page-landing::before {
  content: ""; position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(60% 52% at 50% 50%, rgba(51, 51, 51, 0.10) 30%, transparent 78%);
}

.mural {
  position: fixed; inset: 0; z-index: 0;
  display: grid;
  grid-auto-rows: 96px;
  gap: 4px;
  padding: 4px;
}
.mural .mt {
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
  position: relative;
}
.mural .mt.d { background: rgba(246, 241, 232, 0.57); color: var(--ink-soft); }
.mural .mt.l { background: rgba(246, 241, 232, 0.675); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(246, 241, 232, 0.6); }
.mural .mt:hover { z-index: 3; box-shadow: var(--neu-raised); background: rgba(255, 255, 255, 0.25); }

/* 抽选动画：高亮跳跃 + 中奖弹跳 */
.mural .mt.mt-hit {
  background: var(--accent); color: var(--on-accent); z-index: 7;
  transform: scale(1.06);
  box-shadow: 0 0 0 1px rgba(246, 241, 232, 0.35), var(--neu-raised);
}
.mural .mt.mt-hit .mt-num, .mural .mt.mt-hit .mt-name { color: var(--on-accent); opacity: 1; }
@keyframes winPop {
  0% { transform: scale(1.06); }
  45% { transform: scale(1.10) rotate(-2.5deg); }
  75% { transform: scale(1.04) rotate(1deg); }
  100% { transform: scale(1.08); }
}
.mural .mt.mt-win {
  background: var(--accent);
  color: var(--on-accent); z-index: 8;
  animation: winPop 0.55s var(--ease) both;
  box-shadow: 0 0 0 1px rgba(246, 241, 232, 0.45), var(--neu-raised);
}
.mural .mt.mt-win .mt-num, .mural .mt.mt-win .mt-name { color: var(--on-accent); opacity: 1; }

.draw-btn.drawing { opacity: 0.75; }
.draw-btn.drawing .draw-ico { display: inline-block; animation: drawSpin 0.7s linear infinite; }
@keyframes drawSpin { to { transform: rotate(360deg); } }
.mural .mt.mt-owner {
  background: var(--accent); color: var(--on-accent); z-index: 6;
  box-shadow: var(--neu-raised), inset 0 0 0 1px rgba(246, 241, 232, 0.4);
}
.mural .mt.mt-owner:hover { background: var(--accent); transform: rotate(-4deg); }
.mt-badge {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  padding: 3px 7px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.30); border: 1px solid rgba(255, 255, 255, 0.34); color: var(--on-accent);
}
.m-badge {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.16em; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-bright);
}
.m-badge[hidden] { display: none; }
.mural .mt-sway {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 8px 9px;
  transform-origin: top center;
}
.mural .mt[data-wind] .mt-sway { animation: sway 6.5s ease-in-out infinite alternate; }
@keyframes sway {
  from { transform: rotateZ(-1.5deg); }
  to   { transform: rotateZ(1.5deg); }
}
.mt-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; opacity: 0.4; }
.mt-name {
  font-size: 12px; font-weight: 600; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-all;
}

/* 首页 · 居中毛玻璃框 */
.stage {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  padding: 24px;
}
/* 玻璃后方的暖色光斑：让毛玻璃的磨砂感可见 */
.stage::before,
.stage::after {
  content: ""; position: absolute; z-index: 0;
  width: 360px; height: 360px; border-radius: 50%;
  pointer-events: none;
}
.stage::before {
  background: radial-gradient(circle, rgba(51, 51, 51, 0.432), transparent 66%);
  top: calc(50% - 290px); left: calc(50% - 330px);
}
.stage::after {
  background: radial-gradient(circle, rgba(203, 166, 110, 0.55), transparent 66%);
  bottom: calc(50% - 270px); right: calc(50% - 320px);
}

.stage-glass {
  pointer-events: auto; position: relative; z-index: 1;
  width: min(680px, 94vw);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 38px 40px 36px;
  background: var(--surface-1);
  border: 1px solid var(--rim);
  border-radius: var(--r-lg);
  box-shadow: var(--depth);
  text-align: center;
}

.sg-brand {
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 10px;
}
.sg-brand .dot { color: var(--accent); }
.sg-brand .sg-n { color: var(--ink-soft); letter-spacing: 0.08em; }

.sg-title {
  font-size: clamp(30px, 5.4vw, 52px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
  color: var(--ink);
}
.sg-title .heroNum {
  font-family: var(--mono); font-weight: 600;
  background: var(--ink);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sg-sub { font-size: 14px; color: var(--ink-soft); letter-spacing: 0.02em; }

.sg-search {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 18px;
  box-shadow: var(--neu-inset);
  transition: border-color 0.2s ease-in-out;
}
.sg-search:focus-within { border-color: var(--accent); }
.sg-search .s-icon { color: var(--accent); font-size: 18px; }
.sg-search input {
  flex: 1; border: none; background: transparent; outline: none; min-width: 0;
  font-size: 18px; color: var(--ink); font-family: var(--sans); letter-spacing: 0.01em;
}
.sg-search input::placeholder { color: var(--ink-faint); }

/* 大按钮：进一步探索 */
.explore {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  background: var(--accent); color: var(--on-accent);
  border: none; font-size: 17px; font-weight: 600; letter-spacing: 0.04em;
  padding: 18px 0; border-radius: var(--r); cursor: pointer;
  box-shadow: 6px 6px 12px #b8bcc2, -6px -6px 12px #ffffff;
  transition: box-shadow 0.2s ease-in-out;
}
.explore:hover { box-shadow: 4px 4px 8px #b8bcc2, -4px -4px 8px #ffffff; }
.explore:active { box-shadow: inset 4px 4px 8px #b8bcc2, inset -4px -4px 8px #ffffff; }
.ex-arrow { font-family: var(--mono); font-size: 18px; line-height: 1; display: inline-block; }

.draw-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px; font-weight: 600;
  padding: 12px 26px; border-radius: var(--r); cursor: pointer;
  box-shadow: var(--neu-raised);
  transition: box-shadow 0.2s ease-in-out;
}
.draw-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--neu-press); }
.draw-ico { color: var(--accent); transition: transform 0.4s var(--ease); display: inline-block; }
.draw-btn:hover .draw-ico { transform: rotate(120deg); }

.btn-row {
  display: flex; gap: 10px; width: 100%; margin-top: 2px;
}
.glass-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink); font-size: 13.5px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  box-shadow: var(--neu-raised);
  transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.glass-btn:hover { border-color: var(--accent); background: var(--surface-2); color: var(--accent); box-shadow: var(--neu-press); }
.glass-btn .btn-ico { font-size: 17px; color: var(--accent); }
.btn-row .draw-btn { flex: 1; min-height: 52px; }

.sg-hint { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.06em; }
.sg-hint.second { font-size: 11px; color: var(--ink-faint); opacity: 0.85; }
.sg-hint.second a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ════════ 人物页 · 背景虚化格子 ════════ */
.bg-blur {
  position: fixed; inset: 0; z-index: 0;
  filter: blur(4px) saturate(0.9);
  opacity: 0.85;
}
.bg-grid {
  position: absolute; inset: 0;
}

/* 人物页 · 顶部居中搜索头 */
.head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 16px 18px;
  background: var(--bg-0);
  box-shadow: 0 12px 20px -16px rgba(90, 100, 120, 0.4);
  }
.brandline { display: flex; align-items: baseline; gap: 14px; }
.brand { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand .dot { color: var(--accent); }
.head-n { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.08em; }

.searchwrap { width: min(500px, 92vw); }
.searchbox {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r);
  padding: 12px 18px;
  box-shadow: var(--neu-inset);
  transition: border-color 0.2s ease-in-out;
}
.searchbox:focus-within { border-color: var(--accent); }
.s-icon { color: var(--accent); font-size: 16px; line-height: 1; }
.searchbox input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 14.5px; color: var(--ink); font-family: var(--sans); letter-spacing: 0.01em;
}
.searchbox input::placeholder { color: var(--ink-faint); }
.search-mode {
  flex: 0 0 auto;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--ink-faint); background: transparent;
  border: 1px solid var(--line); border-radius: 2px;
  padding: 4px 8px; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.search-mode.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.search-mode.disabled { opacity: 0.4; cursor: not-allowed; }
.search-mode:not(.disabled):hover { border-color: var(--accent); color: var(--accent); }

.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  max-width: min(1080px, 94vw);
  max-height: min(34vh, 300px); overflow-y: auto;
  padding: 4px 10px; scrollbar-width: thin;
}
.chips::-webkit-scrollbar { width: 5px; }
.chips::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.chip {
  font-size: 11.5px; color: var(--ink-soft); letter-spacing: 0.02em;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 4px 10px; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chip i {
  font-style: normal; font-family: var(--mono);
  font-size: 9.5px; opacity: 0.5; margin-left: 5px;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip.on i { opacity: 0.85; }
.chip-all { border-style: dashed; }

.chip-toggle { display: none; }

.head-line { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.08em; }

/* ════════ 人物页 · 大方块墙 ════════ */
.wall {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--head-h, 210px) + 16px) 32px 70px;
}
.wall .tv {
  aspect-ratio: 1 / 1;
  opacity: var(--o, 1);
  transform: scale(var(--s, 1));
  transform-origin: center;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  cursor: pointer;
  position: relative;
  animation: rise 0.6s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.wall .tv:hover { opacity: 1; transform: scale(1); z-index: 5; }

.tile-sway {
  position: absolute; inset: 0;
  perspective: 800px;
  transform-origin: top center;
}
.wall .tv[data-wind] .tile-sway { animation: sway 6.5s ease-in-out infinite alternate; }

.tile-flip {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease);
}
.wall .tv:hover .tile-flip { transform: rotateX(-180deg); }

.face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: var(--surface-1);
  border: 1px solid var(--rim-soft);
  color: var(--ink);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.face.back {
  transform: rotateX(180deg);
  background: var(--surface-2);
  border-color: var(--accent-line);
  box-shadow: var(--neu-raised);
  color: var(--ink);
  justify-content: space-between;
}
.t-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-faint); }
.t-owner {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--accent);
}
.t-name { font-size: 26px; font-weight: 650; line-height: 1.15; letter-spacing: -0.015em; display: flex; align-items: center; gap: 6px; }
.t-score { font-family: var(--mono); font-size: 11px; color: var(--accent); font-weight: 600; }
.t-ai { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; background: var(--accent-soft); color: var(--accent-bright); border: 1px solid var(--accent-line); padding: 2px 5px; border-radius: 4px; }
.t-tag {
  font-size: 14px; line-height: 1.6; letter-spacing: 0.01em; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.t-facts { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); }
.t-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.t-btag {
  font-size: 11.5px; color: var(--accent-bright); background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em;
}
.t-go {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent-bright);
  display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--rim); padding-top: 12px;
}
.t-go::after { content: "→"; }

.emptybar {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 15;
  font-family: var(--mono); font-size: 13px; color: var(--ink-faint);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 22px; }

/* ════════ 详情 · 方角白卡（两页共用） ════════ */
.modal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(51, 51, 51, 0.36); animation: fade 0.3s var(--ease); }
@keyframes fade { from { opacity: 0; } }

.modal-card {
  position: relative; z-index: 1;
  width: min(860px, 100%); max-height: 90vh;
  background: var(--panel-solid);
  border: 1px solid var(--rim); border-radius: var(--r-lg);
  display: grid; grid-template-columns: 5fr 6fr;
  animation: pop 0.35s var(--ease);
  box-shadow: var(--depth);
  overflow-x: hidden; overflow-y: auto;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 15px; cursor: pointer; transition: all 0.3s var(--ease);
}
.modal-close:hover { color: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

.m-left {
  padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--surface-3); color: var(--ink);
}
.m-avatar {
  width: 200px; height: 200px; margin-top: 16px;
  background: var(--accent);
  display: grid; place-items: center;
  box-shadow: var(--neu-raised);
}
.m-avatar .mono { font-size: 76px; font-weight: 700; color: var(--on-accent); }
.m-num { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-faint); }

.m-right { padding: 34px 38px 38px; display: flex; flex-direction: column; }
.m-name { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.m-tagline { margin-top: 12px; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.miss { color: var(--ink-faint); font-style: italic; font-weight: 400; }
.m-facts { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 18px; font-size: 13.5px; }
.m-facts b { font-weight: 600; color: var(--ink-faint); margin-right: 6px; font-family: var(--mono); font-size: 11px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.m-tags .tag {
  font-size: 12px; color: var(--accent); background: var(--accent-soft);
  padding: 4px 11px; border-radius: var(--r); font-weight: 500;
}
.m-head {
  margin-top: 24px; font-size: 11px; font-weight: 600; color: var(--ink-faint);
  letter-spacing: 0.14em; font-family: var(--mono);
  display: flex; align-items: center; gap: 10px;
}
.m-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.m-body { margin-top: 10px; font-size: 15px; line-height: 1.9; color: var(--ink-soft); white-space: pre-wrap; }
.m-intro { color: var(--ink); }
.m-intro b { color: var(--accent); font-weight: 600; }

.m-six { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.six-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.six-k { font-family: var(--mono); font-size: 11px; color: var(--accent); white-space: nowrap; }
.six-v { color: var(--ink); line-height: 1.5; }

.m-contact { margin-top: 26px; }
.m-contact .rec {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface-3); color: var(--ink);
  font-size: 14px; font-weight: 600; padding: 12px 24px; border-radius: var(--r); text-decoration: none;
  box-shadow: var(--neu-raised);
  transition: box-shadow 0.2s ease-in-out;
}
.m-contact .rec:hover { box-shadow: var(--neu-press); }
.m-contact .none { font-size: 13px; color: var(--ink-faint); font-family: var(--mono); }

@media (max-width: 700px) {
  .stage-box { padding: 6px 6px 6px 16px; }
  #searchInput { font-size: 17px; }
  .explore { padding: 16px 0; font-size: 16px; }
  .btn-row { flex-direction: row; gap: 8px; }
  .glass-btn, .btn-row .draw-btn { min-height: 48px; font-size: 12.5px; }
  .wall { padding: calc(var(--head-h, 240px) + 10px) 18px 60px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
  .chips { max-height: min(20vh, 170px); padding: 2px 6px; }
  .chip-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface-2); border: 1px solid var(--line);
    color: var(--ink-soft); font-size: 11.5px; font-weight: 600;
    font-family: var(--mono); letter-spacing: 0.04em;
    padding: 5px 14px; border-radius: var(--r); cursor: pointer;
    transition: all 0.3s var(--ease);
  }
  .chip-toggle .arr { display: inline-block; transition: transform 0.3s var(--ease); }
  .chips-wrap.collapsed .chips { display: none; }
  .chips-wrap.collapsed .chip-toggle { border-color: var(--accent); color: var(--accent); }
  .chips-wrap.collapsed .chip-toggle .arr { transform: rotate(-90deg); }
  .modal-card { grid-template-columns: 1fr; }
  .m-left { padding: 22px; }
  .m-avatar { width: 120px; height: 120px; margin-top: 6px; }
  .m-avatar .mono { font-size: 46px; }
  .m-right { padding: 24px 20px 28px; }
}

/* ════════ 通用顶部导航 ════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: var(--bg-0);
  box-shadow: 0 12px 20px -16px rgba(90, 100, 120, 0.4);
  }
.topbar-title { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.user-name { font-family: var(--mono); color: var(--ink-soft); font-size: 12px; }
.ghost-btn {
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 12px; padding: 5px 12px; border-radius: var(--r); cursor: pointer;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }

/* 顶部登录入口（auth 组件） */
.sg-navrow {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
}
.brandline { justify-content: space-between; }
.brandline-right { display: flex; align-items: center; gap: 14px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.auth-link {
  font-size: 12px; color: var(--ink-soft); text-decoration: none;
  font-family: var(--mono); letter-spacing: 0.04em;
}
.auth-link:hover { color: var(--accent); }
.auth-name { font-size: 11.5px; color: var(--accent); font-weight: 600; }
.auth-logout {
  font-size: 11.5px; color: var(--ink-faint); background: none;
  border: none; cursor: pointer; font-family: var(--mono);
}
.auth-logout:hover { color: var(--accent); }

/* 二级页顶栏：大按钮 */
.topbar-btn {
  font-size: 13px; color: var(--ink-soft); text-decoration: none;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-2);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 600;
  transition: border 0.3s, background 0.3s, color 0.3s;
}
.topbar-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-2); }
.topbar-btn.small {
  font-size: 11px; padding: 4px 10px; font-weight: 500;
}

/* ════════ 登录 / 注册 ════════ */
.auth-wrap { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 96px 16px 40px; }
.auth-card {
  width: min(420px, 100%);
  background: var(--panel-solid); border: 1px solid var(--rim); border-radius: var(--r-lg);
  padding: 30px 28px 26px;
  box-shadow: var(--depth);
}
.auth-head { margin-bottom: 6px; }
.auth-title { font-family: "Didot", "Bodoni 72", Georgia, "Songti SC", "STSong", "SimSun", serif; font-size: 28px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink); }
.tabs { display: flex; gap: 26px; }
.tab {
  background: none; border: none; font-family: "Didot", "Bodoni 72", Georgia, "Songti SC", "STSong", "SimSun", serif; font-size: 19px; font-weight: 600; letter-spacing: 0.12em; color: var(--ink-faint);
  padding: 0 0 8px; cursor: pointer; position: relative;
}
.tab.on { color: var(--ink); }
.tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.auth-sub { font-family: "Didot", "Bodoni 72", Georgia, "Songti SC", "STSong", "SimSun", serif; font-style: italic; font-size: 14.5px; color: var(--ink-soft); margin: 14px 0 22px; line-height: 1.8; letter-spacing: 0.04em; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface-1); border: 1px solid transparent; border-radius: var(--r-sm);
  padding: 11px 14px; outline: none;
  box-shadow: var(--neu-inset);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--rose); background: var(--surface-2);
  box-shadow: inset 2px 2px 4px #b8bcc2, inset -2px -2px 4px #ffffff, 0 0 0 3px rgba(109, 93, 252, 0.2), 0 0 26px rgba(109, 93, 252, 0.14);
}
.btn {
  margin-top: 4px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
  font-family: var(--serif); font-style: italic;
  padding: 14px 0; border-radius: var(--r-sm); cursor: pointer;
  box-shadow: 6px 6px 12px #b8bcc2, -6px -6px 12px #ffffff;
  transition: box-shadow 0.2s ease-in-out;
}
.btn:hover { box-shadow: 4px 4px 8px #b8bcc2, -4px -4px 8px #ffffff; }
.btn:active { box-shadow: inset 4px 4px 8px #b8bcc2, inset -4px -4px 8px #ffffff; transition-duration: 0.3s; }
.btn:focus-visible { outline: 2px solid rgba(109, 93, 252, 0.55); outline-offset: 2px; }
.btn:disabled { opacity: 0.55; cursor: wait; box-shadow: none; }
.btn.ghost {
  background: var(--surface-1); color: var(--ink); border: 1px solid var(--rim);
  box-shadow: var(--neu-raised); font-weight: 600; font-family: var(--sans); font-style: normal;
}
.btn.ghost:hover { background: var(--surface-3); box-shadow: var(--glow-rose); color: var(--rose-deep); border-color: var(--rose-line); }
.btn.ghost:active { box-shadow: var(--neu-press); }
.msg { font-size: 13px; color: var(--accent); margin-top: 12px; min-height: 18px; }
.hint { font-size: 12px; color: var(--ink-faint); margin-top: 14px; }
.hint a { color: var(--accent); text-decoration: none; }
.hint-row { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
.hint-row.warn { color: var(--accent); }

/* ════════ 资料页 ════════ */
.me-wrap { position: relative; z-index: 1; max-width: 620px; margin: 88px auto 60px; padding: 0 20px; }
.me-section { margin-bottom: 26px; }
.me-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 24px; box-shadow: var(--neu-raised);
}
.me-card h3 {
  margin: 0 0 14px; font-size: 11px; font-weight: 600; color: var(--ink-faint);
  letter-spacing: 0.16em; font-family: var(--mono); display: flex; align-items: center; gap: 10px;
}
.me-card h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.me-row { margin-bottom: 12px; }
.me-row:last-child { margin-bottom: 0; }
.me-label { display: block; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: 0.02em; }
.me-row .textarea { min-height: 70px; resize: vertical; line-height: 1.6; }
.me-actions { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.me-actions .saved { font-size: 12px; color: var(--ink-faint); }
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--accent-soft); border-radius: 4px; font-size: 13px; }
.notif-ico { font-size: 16px; }
.notif-time { margin-left: auto; font-size: 11px; color: var(--ink-faint); font-family: var(--mono); }
.notif-empty { font-size: 13px; color: var(--ink-faint); padding: 12px 0; }
.claim-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.claim-row .me-row { flex: 1 1 280px; margin-bottom: 0; }

/* ════════ 匹配页 ════════ */
.match-wrap { position: relative; z-index: 1; max-width: 720px; margin: 88px auto 60px; padding: 0 20px; }
.match-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.match-tabs .tab { padding: 8px 18px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; background: var(--paper); }
.match-tabs .tab.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.match-note { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 14px; line-height: 1.6; }
.match-count { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-bottom: 12px; letter-spacing: 0.04em; }
.rec-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; margin-bottom: 10px;
  box-shadow: var(--neu-raised);
}
.rec-avatar {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: var(--r);
  background: var(--surface-3); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 20px; font-weight: 600;
}
.rec-body { flex: 1 1 auto; min-width: 0; }
.rec-name { font-size: 16px; font-weight: 650; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.rec-score { font-family: var(--mono); font-size: 11px; color: var(--accent); font-weight: 700; }
.rec-ai { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; background: var(--accent); color: var(--on-accent); padding: 2px 5px; border-radius: 2px; }
.rec-meta { font-size: 12px; color: var(--ink-faint); margin-top: 2px; font-family: var(--mono); }
.rec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rec-tags .tag { font-size: 11px; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: var(--r); }
.rec-reason { margin-top: 8px; font-size: 13px; color: var(--accent); font-weight: 500; }
.rec-want { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; }
.rec-want::before { content: "想认识 "; font-size: 11px; color: var(--ink-faint); }
.rec-six { margin-top: 6px; font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.rec-lock { margin-top: 8px; font-size: 11px; color: var(--ink-faint); font-family: var(--mono); }
.rec-fb { display: flex; gap: 6px; margin-top: 10px; }
.fb-btn { background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: 3px 8px; cursor: pointer; font-size: 13px; transition: all 0.3s var(--ease); }
.fb-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.fb-btn.done { opacity: 0.4; pointer-events: none; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-faint); font-size: 14px; line-height: 1.8; }
.empty .empty-ico { font-size: 28px; margin-bottom: 8px; }
.profile-cta {
  background: var(--accent-soft); border: 1px solid var(--accent);
  color: var(--accent); padding: 14px 18px; border-radius: var(--r);
  font-size: 13px; line-height: 1.6; margin-bottom: 18px;
}
.profile-cta a { color: var(--accent); font-weight: 600; }

.page-gateway {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(51, 51, 51, 0.10), transparent 60%),
    radial-gradient(800px 500px at 90% 110%, rgba(51, 51, 51, 0.08), transparent 55%),
    var(--bg-0);
  overflow: hidden;
}

.gw-head {
  text-align: center;
  margin-bottom: 56px;
}
.gw-brand {
  font: 700 40px/1 Georgia, "Times New Roman", "Songti SC", serif;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.gw-brand .dot { color: var(--accent); }
.gw-tag {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}

.gw-choices {
  display: flex;
  gap: 28px;
  max-width: 880px;
  width: 100%;
}

.gw-card {
  flex: 1;
  position: relative;
  border-radius: var(--r);
  background: var(--surface-1);
  border: 1px solid var(--rim);
  box-shadow: var(--depth);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.gw-card:hover {
  box-shadow: var(--neu-raised);
  border-color: var(--accent-line);
}
.gw-preview {
  height: 280px;
  position: relative;
  overflow: hidden;
  background: var(--bg-1);
}
.gw-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.gw-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.gw-title {
  font: 700 22px/1.2 Georgia, "Times New Roman", "Songti SC", serif;
  color: var(--ink);
}
.gw-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1;
}
.gw-enter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-top: 6px;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.gw-card:hover .gw-enter { color: var(--accent); gap: 14px; }
.gw-enter .arrow { transition: transform 0.3s var(--ease); }
.gw-card:hover .gw-enter .arrow { transform: translateX(4px); }

/* ── 面板预览：彩色瓷砖墙 ── */
.mural-mini {
  position: absolute;
  inset: -10px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 3px;
  transition: opacity 0.6s var(--ease);
}
.gw-card:hover .mural-mini { opacity: 1; }
.mtile {
  border-radius: 2px;
  animation: tilePulse 4s var(--ease) infinite;
}
.mtile.m { background: var(--accent); }
.mtile.d { background: rgba(246, 241, 232, 0.72); }
.mtile.l { background: rgba(246, 241, 232, 0.92); }
.mtile.a { background: #9a5d64; }
.mtile.b { background: #5f7187; }
.mtile.c { background: #86698f; }
.mtile.e { background: #4f8f89; }
@keyframes tilePulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* ── 地球预览：扁平 2D 世界地图 ── */
.globe-mini {
  position: absolute;
  width: 220px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--r);
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--rim), var(--neu-raised);
}
.globe-svg {
  position: absolute;
  inset: 12px 10px;
  width: calc(100% - 20px);
  height: calc(100% - 24px);
}

/* ── 小镇预览：像素小楼群 ── */
.town-mini {
  position: absolute;
  inset: 0;
  background: var(--surface-2);
  overflow: hidden;
}
.town-sky {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 38%;
  background: radial-gradient(120% 100% at 70% 0%, rgba(51, 51, 51, 0.14), transparent 62%);
}
.town-grid {
  position: absolute;
  bottom: 8%;
  left: 6%;
  right: 6%;
  height: 58%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
}
.tbuilding {
  position: relative;
  border-radius: 2px 2px 0 0;
  animation: buildFloat 5s var(--ease) infinite;
  box-shadow: var(--neu-raised);
}
.tbuilding::after {
  content: "";
  position: absolute;
  inset: 15% 12% 0 12%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 4px,
    rgba(255, 248, 230, 0.55) 4px,
    rgba(255, 248, 230, 0.55) 7px
  );
  border-radius: 1px;
}
.tbuilding.b-c1 { background: var(--accent); grid-row: span 1; align-self: end; height: 55%; }
.tbuilding.b-c2 { background: #9a5d64; align-self: end; height: 75%; }
.tbuilding.b-c3 { background: #5f7187; align-self: end; height: 45%; }
.tbuilding.b-c4 { background: #86698f; align-self: end; height: 65%; }
.tbuilding.b-c5 { background: #4f8f89; align-self: end; height: 85%; }
.tbuilding.b-c6 { background: #b98c4d; align-self: end; height: 50%; }
.tbuilding.b-c7 { background: #758a5c; align-self: end; height: 70%; }
.tbuilding.b-c8 { background: #a07652; align-self: end; height: 40%; }
.tbuilding.b-c9 { background: #6f7a85; align-self: end; height: 60%; }
.tbuilding.b-c10 { background: #7d9fbb; align-self: end; height: 90%; }
.tbuilding.b-c11 { background: #847f70; align-self: end; height: 35%; }
.tbuilding.b-park { background: #7d9a5f; align-self: end; height: 30%; }
.tbuilding.b-park::after {
  background: radial-gradient(circle 3px at 50% 60%, #4a7a3a 0%, transparent 70%);
}
@keyframes buildFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.town-glow {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6%;
  background: var(--accent-deep);
  opacity: 0.35;
}

.gw-foot {
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.gw-foot .sep { margin: 0 10px; opacity: 0.4; }

@media (max-width: 980px) {
  .gw-choices { flex-direction: column; max-width: 440px; }
  .gw-preview { height: 200px; }
  .gw-brand { font-size: 32px; }
  .gw-head { margin-bottom: 36px; }
}


/* ── 移动端响应式 ── */
@media (max-width: 760px) {
  .gw-brand { font-size: 32px; }
  .gw-tag { font-size: 11px; }
  .searchbox { padding: 10px 14px; }
  .search-mode { padding: 3px 6px; font-size: 9px; }
  .me-wrap { padding: 0 12px; width: calc(100% - 24px); }
  .me-section { margin-top: 16px; }
  .modal-card { width: calc(100vw - 24px); max-height: 90vh; }
  .m-right { padding: 20px; }
  .sg-title { font-size: 28px; }
  .sg-sub { font-size: 14px; }
  .btn-row { flex-direction: column; gap: 8px; }
  .glass-btn, .draw-btn { width: 100%; justify-content: center; }
  #searchInput { font-size: 16px; }
  .t-name { font-size: 20px; }
  .tv { --s: 0.95; }
}
@media (max-width: 480px) {
  .gw-choices { gap: 16px; }
  .gw-preview { height: 180px; }
  .gw-card { border-radius: 6px; }
  .globe-mini { width: 160px; height: 100px; }
}

/* ── 需求地图 ── */
.need-words { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; padding: 16px 0 8px; margin-bottom: 8px; }
.need-word { font-family: var(--serif); color: var(--accent); font-weight: 600; }
.need-word i { font-style: normal; font-size: 10px; color: var(--ink-faint); margin-left: 3px; }
.need-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.need-tabs .tab {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  padding: 7px 14px; border: 1px solid var(--line); background: transparent;
  border-radius: var(--r); color: var(--ink-soft); cursor: pointer;
}
.need-tabs .tab.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.need-list { display: flex; flex-direction: column; gap: 10px; }
.need-item { display: flex; align-items: baseline; gap: 12px; padding: 13px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: inherit; transition: border-color 0.3s var(--ease); }
.need-item:hover { border-color: var(--accent); }
.need-name { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.need-text { flex: 1; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.need-city { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

/* ── AI 社交日报 ── */
.daily-pro { font-family: var(--mono); font-size: 9px; color: var(--accent); border: 1px solid var(--accent); padding: 1px 6px; border-radius: 2px; vertical-align: 2px; }
.daily-list { display: flex; flex-direction: column; gap: 10px; }
.daily-item { display: flex; gap: 12px; padding: 12px 14px; background: var(--accent-soft); border-radius: 6px; }
.daily-num { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 700; }
.daily-body { flex: 1; }
.daily-name { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.daily-score { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.daily-meta { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.daily-reason { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }

/* ── Introduction 引荐 ── */
.intro-box { display: flex; flex-direction: column; gap: 8px; }
.intro-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-3); color: var(--ink); font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: var(--r); border: none; cursor: pointer;
  box-shadow: var(--neu-raised);
  transition: box-shadow 0.2s ease-in-out;
}
.intro-btn:hover { box-shadow: var(--neu-press); }
.intro-form { display: flex; flex-direction: column; gap: 8px; }
.intro-text {
  width: 100%; border: 1px solid var(--line); background: var(--panel);
  border-radius: 4px; padding: 10px; font-size: 14px; font-family: var(--sans);
  color: var(--ink); resize: vertical; outline: none;
}
.intro-text:focus { border-color: var(--accent); }
.intro-actions { display: flex; gap: 8px; }
.btn.ghost.small { padding: 6px 14px; font-size: 12px; }
.intro-status { font-size: 13px; color: var(--accent); }

/* ── 引荐收件箱 ── */
.inbox-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.inbox-tabs .tab {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  padding: 7px 14px; border: 1px solid var(--line); background: transparent;
  border-radius: var(--r); color: var(--ink-soft); cursor: pointer;
}
.inbox-tabs .tab.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.inbox-list { display: flex; flex-direction: column; gap: 10px; }
.inbox-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.inbox-body { flex: 1; }
.inbox-name { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--ink); }
.inbox-msg { font-size: 14px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.inbox-time { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 4px; }
.inbox-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.inbox-status { font-size: 13px; color: var(--ink-faint); flex: 0 0 auto; }
.btn.small { padding: 6px 14px; font-size: 12px; }

/* ── 关系地图 ── */
.graph-box { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
#graphSvg { width: 100%; height: auto; display: block; }
.graph-edge { stroke-width: 1.2; }
.graph-edge.strong { stroke: var(--accent); stroke-dasharray: none; }
.graph-edge.weak { stroke: var(--ink-faint); stroke-dasharray: 4 4; opacity: 0.5; }
.graph-node.me { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.graph-node.d1 { fill: #c98a6a; stroke: #fff; stroke-width: 1.5; cursor: pointer; }
.graph-node.d2 { fill: #d9c9b8; stroke: #fff; stroke-width: 1.5; cursor: pointer; }
.graph-label { font-size: 11px; fill: #fff; font-weight: 600; pointer-events: none; font-family: var(--sans); }
.graph-legend { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--ink-soft); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.lg-me::before { background: var(--accent); }
.lg-1::before { background: #c98a6a; }
.lg-2::before { background: #d9c9b8; }

/* ── Pro 定价页 ── */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
.price-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.price-card.pro { border-color: var(--accent); box-shadow: var(--neu-raised); }
.price-tag { position: absolute; top: -11px; right: 16px; background: var(--accent); color: var(--on-accent); font-size: 11px; padding: 3px 10px; border-radius: 2px; font-family: var(--mono); letter-spacing: 0.08em; }
.price-tier { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); }
.price-amount { font-family: var(--mono); font-size: 34px; font-weight: 700; color: var(--ink); }
.price-amount span { font-size: 13px; color: var(--ink-faint); }
.price-year { display: block; font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.price-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.price-list li { font-size: 14px; color: var(--ink-soft); padding-left: 22px; position: relative; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card.pro .price-list li { color: var(--ink); }
.price-btn { display: block; text-align: center; padding: 12px; border-radius: var(--r); font-size: 14px; font-weight: 600; text-decoration: none; }
.price-btn { background: var(--surface-3); color: var(--ink); border: none; cursor: pointer; }
.price-btn.primary { background: var(--accent); color: var(--on-accent); }
.price-btn.done { background: var(--surface-1); color: var(--ink-faint); border: 1px solid var(--rim-soft); cursor: default; }
.price-note { text-align: center; font-size: 12px; color: var(--ink-faint); margin-top: 26px; line-height: 1.8; }
@media (max-width: 620px) { .price-grid { grid-template-columns: 1fr; } }

.pro-badge { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); padding: 2px 7px; border-radius: 2px; }
.pro-badge.link { text-decoration: none; transition: all 0.3s var(--ease); }
.pro-badge.link:hover { background: var(--accent); color: var(--on-accent); }

.need-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.need-publish { display: inline-flex; align-items: center; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: var(--r); text-decoration: none; box-shadow: 6px 6px 12px #b8bcc2, -6px -6px 12px #ffffff; transition: box-shadow 0.2s ease-in-out; }
.need-publish:hover { box-shadow: 4px 4px 8px #b8bcc2, -4px -4px 8px #ffffff; }
.need-tip { font-size: 12px; color: var(--ink-faint); }

/* ── 首页介绍布局 ── */
.gw-intro {
  display: flex;
  gap: 32px;
  max-width: 860px;
  width: 100%;
  align-items: flex-start;
}
.gw-intro-card {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 32px;
  }
.gw-intro-icon { font-size: 40px; margin-bottom: 16px; }
.gw-intro-card h2 {
  font: 700 24px/1.3 Georgia, "Times New Roman", "Songti SC", serif;
  color: var(--ink);
  margin-bottom: 12px;
}
.gw-intro-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.gw-intro-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.gw-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
}
.gw-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--neu-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.gw-intro-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gw-intro-hint { font-size: 13px; color: var(--ink-faint); }
.gw-intro-hint a { color: var(--accent); text-decoration: none; font-weight: 600; }
.gw-intro-hint a:hover { color: var(--rose-deep); }

.gw-intro-side {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gw-stat-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  }
.gw-stat-num {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.gw-stat-label {
  font-size: 13px;
  color: var(--ink-soft);
}
.gw-intro-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gw-mini-link {
  display: block;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.3s var(--ease);
}
.gw-mini-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-2);
}

@media (max-width: 720px) {
  .gw-intro { flex-direction: column; max-width: 440px; }
  .gw-intro-side { flex: 0 0 auto; flex-direction: row; }
  .gw-stat-card { flex: 1; }
  .gw-intro-links { flex: 1; }
}

/* 尊重「减少动态效果」系统偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
