/* ============================================================
   墨境 · 无尽山河 — 宣纸、墨色与朱砂
   ============================================================ */

@font-face {
  font-family: 'Noto Serif SC';
  src: url('/fonts/noto-serif-sc-400.woff2?v=2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif SC';
  src: url('/fonts/noto-serif-sc-700.woff2?v=2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ma Shan Zheng';
  src: url('/fonts/ma-shan-zheng.woff2?v=2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f1e7d4;
  --paper-2: #e9deca;
  --paper-3: #dfd1b7;
  --paper-light: #f8f1e1;
  --ink: #22251f;
  --ink-2: #34382f;
  --ink-soft: #55584c;
  --muted: #898574;
  --faint: #b3ac99;
  --cinnabar: #a94836;
  --cinnabar-2: #8e392c;
  --jade: #3f6255;
  --jade-2: #587b6c;
  --gold: #a98448;
  --gold-2: #c19a61;
  --line: rgba(44, 48, 40, 0.14);
  --line-soft: rgba(44, 48, 40, 0.08);
  --shadow: 0 18px 50px rgba(61, 52, 37, 0.12);
  --shadow-soft: 0 8px 24px rgba(61, 52, 37, 0.08);
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --brush: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'Noto Serif SC', serif;
  --sans: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 8% -8%, rgba(255, 252, 242, 0.9), transparent 32%),
    radial-gradient(circle at 94% 8%, rgba(219, 206, 181, 0.45), transparent 30%),
    radial-gradient(circle at 50% 110%, rgba(168, 154, 126, 0.18), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
p { margin: 0; line-height: 1.85; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: 0.02em; }
::selection { background: rgba(169, 72, 54, 0.24); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(80, 74, 58, 0.22); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(80, 74, 58, 0.35); }
:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 2px; }

.noscript {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center; padding: 40px;
  background: var(--paper); font-size: 18px;
}

/* ---------------- 启动 ---------------- */

.boot-splash {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; gap: 26px;
  flex-direction: column;
}
.boot-seal {
  width: 84px; height: 84px; display: grid; place-items: center;
  background: var(--cinnabar); color: #f8efdc;
  font-family: var(--brush); font-size: 54px; line-height: 1;
  border-radius: 4px; animation: sealIn 1.1s var(--ease) both;
  box-shadow: 0 12px 30px rgba(142, 57, 44, 0.2);
}
.boot-copy { text-align: center; }
.boot-copy strong {
  display: block; font-family: var(--brush); font-size: 56px; letter-spacing: 0.12em; line-height: 1;
}
.boot-copy span { display: block; margin-top: 10px; letter-spacing: 0.5em; color: var(--muted); font-size: 13px; text-indent: 0.5em; }
.boot-copy em { display: block; margin-top: 28px; color: var(--faint); font-style: normal; font-size: 13px; letter-spacing: 0.2em; }
.boot-lines { display: flex; gap: 6px; }
.boot-lines i { width: 26px; height: 2px; background: var(--cinnabar); opacity: 0.5; animation: linePulse 1.4s infinite; }
.boot-lines i:nth-child(2) { animation-delay: 0.18s; }
.boot-lines i:nth-child(3) { animation-delay: 0.36s; }

.loading-screen {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.loading-seal { width: 66px; height: 66px; display: grid; place-items: center; background: var(--cinnabar); color: var(--paper-light); font-family: var(--brush); font-size: 42px; border-radius: 4px; }
.loading-ink { display: flex; gap: 7px; }
.loading-ink span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: bounceInk 1.2s infinite; }
.loading-ink span:nth-child(2) { animation-delay: 0.15s; }
.loading-ink span:nth-child(3) { animation-delay: 0.3s; }
.loading-screen p { color: var(--muted); font-size: 13px; letter-spacing: 0.2em; }
.fatal-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 30px; text-align: center; }
.fatal-screen h1 { font-family: var(--brush); font-size: 46px; font-weight: 400; }
.fatal-screen p { color: var(--muted); }

/* ---------------- 通用 ---------------- */

.eyebrow {
  font-size: 10px; letter-spacing: 0.26em; color: var(--muted); text-transform: uppercase;
  font-weight: 700;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.full { width: 100%; justify-content: center; }
.icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex: 0 0 auto; }
.icon svg { display: block; }
.svg-art { line-height: 0; }
.svg-art svg { width: 100%; height: 100%; display: block; }
.divider-svg { width: 100%; height: 36px; }

.big-seal {
  width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--cinnabar); color: var(--paper-light); border-radius: 3px;
  font-family: var(--brush); font-size: 30px; line-height: 1;
}
.mini-mark {
  width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center;
  border: 1px solid rgba(169, 72, 54, 0.35); color: var(--cinnabar);
  font-size: 11px; border-radius: 2px; letter-spacing: 0.1em;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 3px;
  padding: 10px 16px; font-size: 13px; letter-spacing: 0.08em;
  transition: all 0.25s var(--ease); white-space: nowrap;
}
.btn-ink { background: var(--ink); color: var(--paper-light); border-color: var(--ink); }
.btn-ink:hover { background: #11150f; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(30, 34, 27, 0.25); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); background: rgba(255, 255, 255, 0.28); }
.btn-danger { background: rgba(169, 72, 54, 0.08); border-color: rgba(169, 72, 54, 0.4); color: var(--cinnabar-2); }
.btn-danger:hover { background: var(--cinnabar); color: var(--paper-light); }
.btn-break {
  background: linear-gradient(120deg, #9a3f30, #b75b42);
  color: #f9efdc; border-color: transparent; position: relative; overflow: hidden;
}
.btn-break.ready { animation: breakGlow 2.4s infinite; }
.btn-break:not(.ready) { background: rgba(169, 72, 54, 0.07); color: rgba(142, 57, 44, 0.72); border: 1px solid rgba(169, 72, 54, 0.24); box-shadow: none; }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-lg { padding: 13px 24px; font-size: 14px; }
.btn:disabled { opacity: 0.44; transform: none !important; box-shadow: none !important; }
.icon-btn, .top-icon {
  display: inline-grid; place-items: center; border: 1px solid transparent;
  background: transparent; color: var(--ink-soft); border-radius: 3px;
  width: 36px; height: 36px; transition: all 0.2s var(--ease);
}
.top-icon { color: #3d4238; border-color: rgba(44, 48, 40, 0.18); background: rgba(255, 252, 244, 0.45); }
.top-icon:hover, .icon-btn:hover { background: rgba(255, 255, 255, 0.6); border-color: var(--line); color: var(--ink); transform: translateY(-1px); }

.progress { height: 6px; border-radius: 10px; background: rgba(55, 51, 42, 0.1); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 10px; transition: width 0.6s var(--ease); }
.progress-thin { height: 3px; }

.field { display: block; margin-bottom: 16px; }
.field > span, .field-label { display: block; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 7px; font-weight: 700; }
.field input, .field textarea {
  width: 100%; border: 1px solid rgba(44, 48, 40, 0.18); border-radius: 3px;
  background: rgba(255, 252, 244, 0.62); padding: 12px 13px;
  font-size: 14px; outline: none; transition: all 0.2s var(--ease); resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--jade); background: rgba(255, 253, 247, 0.9); box-shadow: 0 0 0 3px rgba(63, 98, 85, 0.08); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form-error {
  padding: 10px 13px; border-left: 3px solid var(--cinnabar); background: rgba(169, 72, 54, 0.07);
  color: var(--cinnabar-2); font-size: 12px; margin: 10px 0 14px;
}

/* ---------------- 登录 ---------------- */

.auth-page { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(390px, 1fr); min-height: 100vh; }
.auth-hero {
  position: relative; overflow: hidden; min-height: 100vh; padding: 38px 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #e6dcc8;
}
.auth-hero-art { position: absolute; inset: 0; z-index: 0; }
.auth-hero-art svg { width: 100%; height: 100%; object-fit: cover; }
.auth-hero-wash {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(241, 231, 212, 0.52) 0%, transparent 30%, transparent 58%, rgba(26, 35, 28, 0.56) 100%),
    radial-gradient(circle at 72% 33%, transparent 10%, rgba(241, 234, 218, 0.2) 80%);
}
.auth-hero-top, .auth-hero-copy, .auth-hero-foot { position: relative; z-index: 2; }
.auth-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; border: 0; background: transparent; padding: 0; text-align: left; }
.brand-seal {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--cinnabar); color: #f8efdc; font-family: var(--brush); font-size: 27px;
  border-radius: 3px; line-height: 1; box-shadow: 0 6px 18px rgba(142, 57, 44, 0.22);
}
.brand strong { display: block; font-family: var(--brush); font-weight: 400; font-size: 29px; letter-spacing: 0.12em; line-height: 1; color: var(--ink); }
.brand small { display: block; font-size: 9px; letter-spacing: 0.36em; color: var(--muted); margin-top: 4px; text-indent: 0.36em; }
.brand-large .brand-seal { width: 54px; height: 54px; font-size: 36px; }
.brand-large strong { font-size: 38px; }
.auth-counts { display: flex; align-items: center; gap: 12px; font-size: 11px; color: rgba(34, 37, 31, 0.62); background: rgba(247, 240, 226, 0.52); border: 1px solid rgba(44, 48, 40, 0.1); padding: 9px 14px; backdrop-filter: blur(8px); border-radius: 20px; }
.auth-counts b { color: var(--ink); font-size: 13px; }
.auth-counts i { width: 1px; height: 11px; background: rgba(44, 48, 40, 0.2); }
.auth-hero-copy { max-width: 700px; padding: 40px 0 30px 46px; position: relative; }
.vertical-note { position: absolute; left: 0; top: 48px; writing-mode: vertical-rl; letter-spacing: 0.32em; font-size: 10px; color: rgba(34, 37, 31, 0.48); height: 230px; white-space: nowrap; }
.auth-hero-copy h1 {
  font-family: var(--serif); font-size: clamp(48px, 6.2vw, 96px); font-weight: 700;
  line-height: 1.12; color: var(--ink); letter-spacing: 0.03em; text-shadow: 0 2px 20px rgba(248, 242, 230, 0.35);
}
.auth-hero-copy h1 em { font-family: var(--brush); font-style: normal; font-weight: 400; color: var(--cinnabar-2); position: relative; }
.auth-hero-copy h1 em::after { content: ''; position: absolute; left: -4%; right: -4%; bottom: 4px; height: 8px; background: rgba(169, 72, 54, 0.18); z-index: -1; transform: rotate(-1deg); }
.auth-hero-copy > p { max-width: 510px; margin-top: 24px; font-size: 14px; line-height: 2.05; color: rgba(31, 36, 29, 0.72); }
.auth-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.auth-features span { border: 1px solid rgba(44, 48, 40, 0.2); background: rgba(247, 240, 226, 0.3); padding: 6px 11px; font-size: 10px; letter-spacing: 0.15em; color: var(--ink-soft); backdrop-filter: blur(4px); }
.auth-scroll-preview { display: flex; gap: 12px; margin-top: 34px; height: 130px; align-items: flex-end; }
.preview-card { width: 95px; height: 126px; border: 1px solid rgba(44, 48, 40, 0.22); background: var(--paper); box-shadow: 0 10px 24px rgba(27, 34, 27, 0.18); transform: rotate(-2deg); overflow: hidden; animation: floatSlow 7s ease-in-out infinite; }
.preview-card.p1 { transform: rotate(1.5deg) translateY(-8px); animation-delay: 1.2s; }
.preview-card.p2 { transform: rotate(4deg); animation-delay: 2.2s; }
.auth-hero-foot { display: flex; align-items: center; gap: 14px; color: rgba(240, 233, 217, 0.75); font-size: 10px; letter-spacing: 0.18em; text-shadow: 0 1px 6px rgba(20, 26, 21, 0.4); }
.hero-foot-line { width: 42px; height: 1px; background: rgba(240, 233, 217, 0.44); }
.auth-panel {
  background: linear-gradient(160deg, rgba(247, 240, 226, 0.95), rgba(235, 224, 204, 0.92));
  display: flex; align-items: center; justify-content: center; padding: 38px 32px;
  border-left: 1px solid rgba(44, 48, 40, 0.16); position: relative;
}
.auth-panel::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(44, 48, 40, 0.08); pointer-events: none; }
.auth-panel-inner { width: 100%; max-width: 400px; position: relative; z-index: 1; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.auth-tabs button { flex: 1; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 10px 4px 14px; font-size: 13px; letter-spacing: 0.16em; color: var(--muted); transition: all 0.2s; }
.auth-tabs button.active { color: var(--ink); border-bottom-color: var(--cinnabar); }
.auth-panel-head .eyebrow { margin-bottom: 8px; }
.auth-panel-head h2 { font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: 1.4; letter-spacing: 0.02em; }
.auth-form { margin-top: 28px; }
.avatar-picker { margin: 4px 0 18px; }
.avatar-options { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar-option { width: 37px; height: 37px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255, 250, 241, 0.42); border-radius: 50%; color: var(--ink-soft); transition: all 0.2s; }
.avatar-option:hover { border-color: var(--jade); }
.avatar-option.active { border-color: var(--cinnabar); background: var(--cinnabar); color: var(--paper-light); box-shadow: 0 4px 10px rgba(169, 72, 54, 0.2); }
.avatar-mini { font-family: var(--brush); font-size: 19px; line-height: 1; }
.auth-submit { width: 100%; margin-top: 8px; justify-content: center; }
.auth-switch-note { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 11px; color: var(--muted); }
.auth-switch-note button { border: 0; background: none; color: var(--cinnabar); padding: 0 0 0 3px; font-size: 11px; }
.auth-hint { text-align: right; opacity: 0.75; }
.auth-quote { margin-top: 40px; padding: 18px 20px; border-left: 2px solid rgba(169, 72, 54, 0.3); background: rgba(255, 251, 242, 0.25); position: relative; }
.auth-quote .quote-mark { position: absolute; top: 1px; left: 10px; font-family: Georgia, serif; font-size: 46px; color: rgba(169, 72, 54, 0.24); line-height: 1; }
.auth-quote p { padding-left: 24px; font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
.auth-quote small { display: block; padding-left: 24px; margin-top: 7px; color: var(--muted); font-size: 10px; letter-spacing: 0.1em; }

/* ---------------- 顶栏 ---------------- */

.app-shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h); padding: 10px 24px;
  background: rgba(241, 231, 212, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar-left { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.topbar-online { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); letter-spacing: 0.08em; padding-left: 16px; border-left: 1px solid var(--line); }
.topbar-online i { width: 5px; height: 5px; border-radius: 50%; background: #5d8b6f; box-shadow: 0 0 0 3px rgba(93, 139, 111, 0.12); }
.resource-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.resource {
  display: flex; align-items: center; gap: 8px; min-width: 94px; padding: 6px 10px;
  border: 1px solid rgba(44, 48, 40, 0.09); border-radius: 3px; background: rgba(255, 252, 244, 0.35);
}
.resource .res-icon { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: rgba(63, 98, 85, 0.09); color: var(--jade); flex: 0 0 auto; }
.resource .res-icon.jade { background: rgba(88, 105, 145, 0.09); color: #586991; }
.resource .res-icon.insight { background: rgba(169, 132, 72, 0.12); color: var(--gold); }
.resource .res-icon.ink { background: rgba(169, 72, 54, 0.1); color: var(--cinnabar); }
.resource div { min-width: 0; }
.resource small { display: block; font-size: 8px; color: var(--muted); letter-spacing: 0.16em; line-height: 1.4; }
.resource strong { display: inline-block; font-size: 15px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.resource em { display: block; font-style: normal; font-size: 9px; color: var(--jade); letter-spacing: 0.03em; }
.qi-resource { min-width: 145px; }
.qi-resource strong { font-size: 18px; color: var(--jade); }
.topbar-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.user-wrap { position: relative; margin-left: 8px; }
.user-button { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 251, 241, 0.4); padding: 3px 10px 3px 4px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(44, 48, 40, 0.18); }
.user-avatar svg { width: 100%; height: 100%; }
.user-name { font-size: 12px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { font-size: 12px; color: var(--muted); }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 208px; z-index: 60;
  background: var(--paper-light); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px; animation: dropIn 0.18s var(--ease);
}
.user-menu-head { padding: 10px 11px; border-bottom: 1px solid var(--line-soft); margin-bottom: 5px; }
.user-menu-head b { display: block; font-size: 14px; }
.user-menu-head small { color: var(--muted); font-size: 10px; }
.user-menu button { display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: 9px 11px; font-size: 12px; border-radius: 2px; }
.user-menu button:hover { background: rgba(63, 98, 85, 0.07); }
.user-menu .danger-text { color: var(--cinnabar); }

/* ---------------- 布局 ---------------- */

.main-layout {
  width: min(1600px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 298px minmax(0, 1fr) 356px;
  gap: 18px;
  padding: 20px 22px 28px;
  align-items: start;
}
.col-left, .col-center, .col-right { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.col-left, .col-right { position: sticky; top: calc(var(--header-h) + 18px); }
.panel {
  position: relative;
  background:
    linear-gradient(145deg, rgba(249, 243, 231, 0.9), rgba(236, 226, 208, 0.78));
  border: 1px solid rgba(44, 48, 40, 0.14);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
}
.panel::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(44, 48, 40, 0.05); pointer-events: none; }

/* ---------------- 修行者 ---------------- */

.cultivator-card { padding: 18px 18px 14px; }
.portrait-wrap { display: flex; gap: 14px; align-items: center; }
.portrait { position: relative; width: 90px; height: 90px; flex: 0 0 auto; }
.portrait-art { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(44, 48, 40, 0.18); }
.portrait-art svg { width: 100%; height: 100%; }
.portrait-ring { position: absolute; inset: -5px; border: 1px solid rgba(169, 72, 54, 0.22); border-radius: 50%; border-style: dashed; animation: slowRotate 50s linear infinite; }
.portrait-seal { position: absolute; right: -6px; bottom: -2px; width: 27px; height: 27px; display: grid; place-items: center; background: var(--cinnabar); color: #f8efdc; border-radius: 2px; font-family: var(--brush); font-size: 19px; box-shadow: 0 3px 8px rgba(142, 57, 44, 0.3); }
.identity { min-width: 0; }
.identity .eyebrow { margin-bottom: 5px; }
.identity h2 { font-family: var(--serif); font-size: 20px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity p { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: 0.08em; line-height: 1.5; }
.identity-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.identity-meta span { font-size: 9px; color: var(--ink-soft); border: 1px solid var(--line); padding: 2px 6px; letter-spacing: 0.05em; }
.realm-progress { margin-top: 18px; display: flex; flex-direction: column; gap: 5px; }
.progress-label { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; }
.progress-label b { font-weight: 400; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 6px; margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stat-grid div { padding-left: 1px; }
.stat-grid small { display: block; font-size: 9px; color: var(--muted); letter-spacing: 0.06em; }
.stat-grid b { display: block; font-size: 14px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.aspect-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 11px; min-height: 22px; }
.aspect-row .muted { font-size: 9px; letter-spacing: 0.04em; }
.aspect-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(169, 72, 54, 0.2); background: rgba(169, 72, 54, 0.04); padding: 2px 6px; font-size: 9px; color: var(--cinnabar-2); border-radius: 20px; }
.aspect-chip b { font-family: var(--brush); font-weight: 400; font-size: 13px; line-height: 1; }
.card-actions { display: flex; gap: 7px; margin-top: 13px; }
.card-actions .btn { flex: 1; padding: 9px 8px; font-size: 11px; }
.card-actions .btn-break { flex: 1.25; }
.latest-line { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dotted var(--line); font-size: 9px; color: var(--muted); }
.latest-line b { font-size: 10px; font-weight: 400; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-line button { margin-left: auto; border: 0; background: none; color: var(--cinnabar); font-size: 9px; display: inline-flex; align-items: center; gap: 3px; }

/* 点睛 */

.click-panel { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.click-copy h3 { font-family: var(--brush); font-size: 29px; font-weight: 400; margin-top: 3px; }
.click-copy p { font-size: 10px; color: var(--muted); line-height: 1.75; margin-top: 4px; }
.click-main { display: flex; align-items: center; gap: 16px; }
.ink-button {
  position: relative; width: 100px; height: 100px; flex: 0 0 auto; border: 0; background: transparent; padding: 0;
  display: grid; place-items: center; border-radius: 50%;
}
.ink-button-core {
  position: relative; z-index: 2; width: 78px; height: 78px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  background: radial-gradient(circle at 36% 30%, #4c5447, #1e231d 68%);
  color: #f3ead7; box-shadow: 0 8px 22px rgba(27, 32, 26, 0.28), inset 0 0 0 1px rgba(247, 240, 226, 0.16);
  transition: transform 0.2s var(--ease);
}
.ink-button-core b { font-size: 14px; margin-top: 1px; }
.ink-button-core small { font-size: 8px; letter-spacing: 0.2em; opacity: 0.65; }
.ink-button:hover .ink-button-core { transform: scale(1.04); }
.ink-button:active .ink-button-core { transform: scale(0.94); }
.ink-button.cooling .ink-button-core { filter: saturate(0.7); }
.ink-ring { position: absolute; inset: 2px; border-radius: 50%; border: 1px solid rgba(169, 72, 54, 0.28); }
.ink-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(169, 72, 54, 0.2); animation: slowRotate 30s linear infinite reverse; }
.ink-splash { position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(169, 72, 54, 0.2); opacity: 0; }
.ink-button:active .ink-splash { animation: splash 0.55s ease-out; }
.mood-wrap { flex: 1; min-width: 0; }
.mood-label { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); margin-bottom: 6px; }
.mood-label b { color: var(--ink-soft); font-weight: 400; }
.mood-bar { height: 5px; background: rgba(44, 48, 40, 0.09); border-radius: 6px; overflow: hidden; }
.mood-bar span { display: block; height: 100%; background: linear-gradient(90deg, #c19a61, #a94836); transition: width 0.4s var(--ease); }
.mood-wrap small { display: block; margin-top: 7px; font-size: 8px; color: var(--faint); line-height: 1.5; }

/* ---------------- 长卷 ---------------- */

.scroll-section { min-width: 0; }
.scroll-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 0 2px 13px; }
.scroll-head .eyebrow { margin-bottom: 6px; }
.scroll-head h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: 0.03em; }
.scroll-head-right { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
.scroll-stamp { border: 1px solid rgba(169, 72, 54, 0.35); color: var(--cinnabar); font-size: 9px; letter-spacing: 0.12em; padding: 4px 8px; border-radius: 2px; }
.scroll-sky { font-size: 9px; color: var(--muted); letter-spacing: 0.04em; }
.scroll-frame {
  position: relative; padding: 15px 20px 12px;
  background:
    linear-gradient(180deg, rgba(235, 224, 203, 0.86), rgba(224, 210, 186, 0.9)),
    repeating-linear-gradient(90deg, rgba(74, 64, 47, 0.02) 0 2px, transparent 2px 9px);
  border-top: 1px solid rgba(44, 48, 40, 0.15);
  border-bottom: 1px solid rgba(44, 48, 40, 0.15);
  box-shadow: inset 0 8px 20px rgba(108, 93, 67, 0.07), 0 12px 28px rgba(61, 52, 37, 0.08);
}
.scroll-frame::before { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: rgba(255, 250, 239, 0.5); }
.scroll-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 25px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(55, 51, 42, 0.16); background: rgba(247, 240, 226, 0.75); color: var(--ink-soft); opacity: 0.28; transition: opacity 0.2s, background 0.2s; backdrop-filter: blur(3px); }
.scroll-nav:hover { background: rgba(255, 252, 244, 0.95); }
.scroll-nav.prev { left: 3px; }
.scroll-nav.prev .icon { transform: rotate(180deg); }
.scroll-nav.next { right: 3px; }
.scroll-frame:hover .scroll-nav { opacity: 0.78; }
.scroll-rod { position: absolute; top: 8px; bottom: 8px; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #7e6d52, #b09a76 45%, #6e5e45); box-shadow: 0 0 4px rgba(54, 46, 33, 0.2); z-index: 3; }
.rod-left { left: 7px; }
.rod-right { right: 7px; }
.scroll-strip { display: flex; gap: 13px; overflow-x: auto; overflow-y: hidden; padding: 4px 8px 14px; scroll-snap-type: x proximity; min-height: 308px; scrollbar-width: thin; }
.scroll-strip > * { scroll-snap-align: end; }
.scroll-corner { position: absolute; width: 13px; height: 13px; border-color: rgba(105, 91, 68, 0.38); border-style: solid; pointer-events: none; }
.scroll-corner.tl { left: 14px; top: 9px; border-width: 1px 0 0 1px; }
.scroll-corner.tr { right: 14px; top: 9px; border-width: 1px 1px 0 0; }
.scroll-corner.bl { left: 14px; bottom: 9px; border-width: 0 0 1px 1px; }
.scroll-corner.br { right: 14px; bottom: 9px; border-width: 0 1px 1px 0; }

.scene-card {
  position: relative; width: 170px; flex: 0 0 170px; height: 286px;
  background: #f4ecdb; border: 1px solid rgba(55, 51, 42, 0.18);
  box-shadow: 0 8px 18px rgba(65, 56, 41, 0.13);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden; cursor: pointer;
}
.scene-card:hover { transform: translateY(-5px) rotate(-0.5deg); box-shadow: 0 16px 30px rgba(55, 47, 35, 0.2); }
.scene-card.rarity-rare { border-color: rgba(63, 109, 98, 0.42); }
.scene-card.rarity-epic { border-color: rgba(169, 72, 54, 0.52); box-shadow: 0 8px 20px rgba(142, 57, 44, 0.16); }
.scene-art-wrap { height: 198px; overflow: hidden; position: relative; background: #d9cfb8; }
.scene-art-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 72%, rgba(244, 236, 219, 0.92) 100%); pointer-events: none; }
.scene-art-wrap::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
.scene-art, .scene-art svg { width: 100%; height: 100%; }
.scene-seal { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(247, 240, 226, 0.72); color: var(--muted); font-size: 7px; letter-spacing: 0.1em; padding: 2px 5px; border: 1px solid rgba(44, 48, 40, 0.15); backdrop-filter: blur(3px); }
.scene-seal.rare { color: var(--jade); border-color: rgba(63, 109, 98, 0.35); }
.scene-seal.epic { color: var(--cinnabar); border-color: rgba(169, 72, 54, 0.4); }
.scene-info { padding: 2px 12px 10px; position: relative; z-index: 2; }
.scene-index { display: block; font-size: 7px; letter-spacing: 0.1em; color: var(--muted); }
.scene-info h3 { font-family: var(--serif); font-size: 16px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-bonus { font-size: 9px; color: var(--jade); margin-top: 3px; }
.scene-affix { display: block; font-size: 8px; color: var(--faint); letter-spacing: 0.2em; margin-top: 2px; }
.scene-edge { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(169, 72, 54, 0.35), transparent); opacity: 0; transition: opacity 0.2s; }
.scene-card:hover .scene-edge { opacity: 1; }
.scene-summary {
  width: 100px; flex: 0 0 100px; height: 286px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px dashed rgba(55, 51, 42, 0.24); color: var(--muted); background: rgba(245, 238, 224, 0.35);
}
.scene-summary .summary-seal { font-family: var(--brush); font-size: 32px; color: var(--cinnabar); opacity: 0.65; }
.scene-summary b { font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.scene-summary small { font-size: 8px; letter-spacing: 0.1em; }
.scroll-empty { flex: 1; min-height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; gap: 8px; }
.scroll-empty .icon { color: rgba(63, 98, 85, 0.45); margin-bottom: 4px; }
.scroll-empty h3 { font-family: var(--brush); font-weight: 400; font-size: 28px; color: var(--ink-soft); }
.scroll-empty p { font-size: 11px; }

.draw-zone { margin-top: 14px; display: flex; align-items: center; gap: 16px; padding: 2px 2px 0; }
.draw-meta { flex: 1; min-width: 0; }
.draw-label { display: block; font-size: 9px; color: var(--muted); letter-spacing: 0.14em; }
.draw-meta b { display: block; font-weight: 400; font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draw-cost { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 10px; color: var(--jade); }
.btn-draw {
  flex: 0 0 auto; min-width: 226px; justify-content: flex-start; gap: 12px; padding: 11px 16px;
  background: linear-gradient(120deg, #2b322b, #1a1f1a); color: var(--paper-light);
  border-color: rgba(20, 23, 20, 0.5); position: relative; overflow: hidden;
}
.btn-draw::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 20%, rgba(255, 250, 238, 0.1) 45%, transparent 60%); transform: translateX(-110%); transition: transform 0.7s; }
.btn-draw:hover::after { transform: translateX(110%); }
.btn-draw b { display: block; font-size: 14px; letter-spacing: 0.1em; }
.btn-draw small { display: block; font-size: 8px; color: rgba(245, 237, 221, 0.58); margin-top: 2px; letter-spacing: 0.03em; }
.draw-brush { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(245, 237, 221, 0.2); border-radius: 50%; }
.draw-plus { margin-left: auto; opacity: 0.45; font-size: 20px; font-weight: 300; }
.btn-draw:disabled { background: rgba(70, 70, 58, 0.32); border-color: transparent; color: rgba(245, 237, 221, 0.6); }
.btn-draw.blocked { opacity: 0.7; }
.scroll-footnote { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 0 2px; font-size: 8px; color: var(--faint); letter-spacing: 0.04em; }
.center-note { display: flex; align-items: center; gap: 14px; padding: 18px 10px 2px; color: var(--muted); }
.center-note p { flex: 0 0 auto; font-family: var(--brush); font-size: 20px; letter-spacing: 0.08em; color: var(--ink-soft); opacity: 0.7; }
.brush-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(80, 74, 58, 0.2), transparent); }

/* ---------------- 右侧 ---------------- */

.side-panel { overflow: hidden; }
.side-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: rgba(247, 240, 226, 0.35); }
.side-tabs button { border: 0; background: transparent; padding: 12px 2px 11px; font-size: 10px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; border-bottom: 2px solid transparent; transition: all 0.2s; }
.side-tabs button.active { color: var(--ink); border-bottom-color: var(--cinnabar); background: rgba(255, 252, 244, 0.35); }
.side-body { max-height: calc(100vh - 168px); overflow-y: auto; padding: 12px; }
.mini-card { padding: 13px 13px 12px; border: 1px solid rgba(44, 48, 40, 0.11); background: rgba(255, 252, 244, 0.34); margin-bottom: 10px; }
.mini-head { display: flex; align-items: center; gap: 9px; }
.mini-head > div { min-width: 0; flex: 1; }
.mini-head small { display: block; font-size: 8px; color: var(--muted); letter-spacing: 0.14em; }
.mini-head b { display: block; font-size: 13px; margin-top: 2px; }
.mini-head .mini-action { border: 1px solid rgba(169, 72, 54, 0.35); background: transparent; color: var(--cinnabar); font-size: 9px; padding: 4px 8px; border-radius: 2px; }
.mini-head .mini-action.done { border-color: var(--line); color: var(--faint); }
.mini-head .mini-tag { font-size: 8px; color: var(--faint); }
.sky-card { background: linear-gradient(135deg, rgba(241, 233, 214, 0.9), rgba(222, 226, 213, 0.65)); border-color: rgba(63, 98, 85, 0.18); }
.sky-card p { margin-top: 9px; font-size: 12px; color: var(--jade); }
.sky-flavor { display: block; margin-top: 5px; font-size: 9px; color: var(--muted); }
.task-list { margin-top: 8px; }
.task-row { padding: 7px 0; border-top: 1px dotted var(--line-soft); }
.task-row:first-child { border-top: 0; }
.task-top { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--ink-soft); }
.task-top b { font-weight: 400; color: var(--muted); font-size: 9px; }
.task-bar { height: 3px; margin: 4px 0 3px; background: rgba(44, 48, 40, 0.08); overflow: hidden; }
.task-bar span { display: block; height: 100%; background: var(--jade); transition: width 0.4s; }
.task-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-bottom small { font-size: 8px; color: var(--faint); }
.task-bottom button { border: 0; background: none; color: var(--cinnabar); font-size: 8px; padding: 0; }
.task-bottom button:disabled { color: var(--faint); }
.task-bottom .claimed { font-size: 8px; color: var(--faint); }
.task-row.done .task-top { color: var(--jade); }
.mini-desc { margin-top: 8px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.journey-active { margin-top: 9px; }
.journey-name { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.journey-count { font-family: var(--brush); font-size: 34px; color: var(--cinnabar); letter-spacing: 0.06em; margin: 3px 0; }
.journey-count small { font-family: var(--serif); font-size: 9px; color: var(--muted); margin-left: 6px; }
.journey-bar { height: 3px; background: rgba(44, 48, 40, 0.08); margin: 6px 0 5px; }
.journey-bar span { display: block; height: 100%; background: var(--gold); }
.buff-row { display: flex; align-items: center; gap: 8px; font-size: 9px; padding: 4px 0; border-top: 1px dotted var(--line-soft); }
.buff-row:first-of-type { border-top: 0; margin-top: 5px; }
.buff-row span { flex: 1; }
.buff-row b { color: var(--cinnabar); font-weight: 400; }
.buff-row small { color: var(--faint); }
.log-mini .log-row { padding: 5px 0; }
.log-row { display: flex; gap: 7px; align-items: flex-start; padding: 3px 0; }
.log-dot { width: 5px; height: 5px; border-radius: 50%; margin-top: 7px; background: var(--faint); flex: 0 0 auto; }
.log-dot.good { background: var(--jade); }
.log-dot.draw { background: var(--gold); }
.log-dot.realm { background: var(--cinnabar); }
.log-dot.story { background: #6d7396; }
.log-dot.spirit { background: #8b6b9b; }
.log-dot.journey { background: #4b7f8f; }
.log-dot.achievement { background: var(--gold); box-shadow: 0 0 0 2px rgba(169, 132, 72, 0.16); }
.log-row p { font-size: 9px; line-height: 1.65; color: var(--ink-soft); }

/* 悟道 */

.insight-banner { display: flex; align-items: center; gap: 10px; padding: 11px; background: linear-gradient(120deg, rgba(169, 132, 72, 0.12), rgba(169, 72, 54, 0.04)); border: 1px solid rgba(169, 132, 72, 0.18); }
.insight-banner > div { flex: 0 0 auto; }
.insight-banner small { display: block; font-size: 8px; color: var(--muted); }
.insight-banner b { font-size: 20px; color: var(--gold); }
.insight-banner p { flex: 1; font-size: 8px; color: var(--muted); line-height: 1.55; text-align: right; }
.pending-choice { width: 100%; margin-top: 9px; border: 1px dashed rgba(169, 72, 54, 0.45); background: rgba(169, 72, 54, 0.05); padding: 9px; display: flex; justify-content: space-between; font-size: 9px; color: var(--cinnabar); }
.branch-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; margin: 11px 0 9px; }
.branch-tabs button { border: 1px solid var(--line); background: transparent; padding: 7px 4px; }
.branch-tabs button b { display: block; font-family: var(--brush); font-size: 21px; font-weight: 400; line-height: 1; }
.branch-tabs button small { display: block; font-size: 7px; color: var(--muted); margin-top: 3px; }
.branch-tabs button.active { border-color: var(--cinnabar); background: rgba(169, 72, 54, 0.05); color: var(--cinnabar-2); }
.upgrade-list { display: flex; flex-direction: column; gap: 6px; }
.upgrade-card { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line-soft); padding: 8px; background: rgba(255, 252, 244, 0.24); }
.upgrade-card.maxed { opacity: 0.64; }
.upgrade-icon { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--jade); flex: 0 0 auto; }
.upgrade-body { flex: 1; min-width: 0; }
.upgrade-title { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.upgrade-title b { font-size: 11px; }
.level-pips { display: inline-flex; gap: 2px; }
.level-pips i { width: 4px; height: 4px; background: rgba(44, 48, 40, 0.14); border-radius: 50%; }
.level-pips i.on { background: var(--cinnabar); }
.upgrade-body small { display: block; font-size: 8px; color: var(--ink-soft); margin-top: 2px; }
.upgrade-flavor { font-size: 7px; color: var(--faint); line-height: 1.45; margin-top: 2px; }
.upgrade-buy { border: 1px solid rgba(169, 132, 72, 0.35); background: transparent; color: var(--gold); font-size: 8px; padding: 4px 5px; flex: 0 0 auto; min-width: 38px; }
.upgrade-buy:disabled { color: var(--faint); border-color: var(--line); }
.dao-note { margin-top: 11px; border-top: 1px solid var(--line-soft); padding-top: 9px; }
.dao-note > span { font-size: 8px; color: var(--muted); }
.dao-note > div { display: flex; gap: 5px; margin-top: 5px; }

/* 画灵 */

.spirit-summon { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px; background: linear-gradient(120deg, rgba(63, 98, 85, 0.08), rgba(169, 72, 54, 0.03)); border: 1px solid rgba(63, 98, 85, 0.14); }
.spirit-summon > div { display: flex; align-items: center; gap: 8px; }
.spirit-summon small { display: block; font-size: 8px; color: var(--muted); }
.spirit-summon b { font-size: 13px; }
.equipped-row { display: flex; gap: 6px; margin-top: 10px; }
.equipped-slot { flex: 1; aspect-ratio: 0.84; border: 1px solid var(--line); background: rgba(255, 252, 244, 0.25); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 3px; }
.equipped-slot.filled { padding: 3px 3px 5px; }
.equipped-art { width: 100%; flex: 1; min-height: 0; overflow: hidden; }
.equipped-slot span { font-size: 8px; }
.equipped-slot.empty { color: var(--faint); border-style: dashed; }
.equipped-slot.empty span { font-family: var(--brush); font-size: 21px; opacity: 0.5; }
.equipped-slot.empty small { font-size: 7px; }
.spirit-hint { font-size: 8px; color: var(--faint); text-align: center; margin: 6px 0 9px; }
.spirit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.spirit-tile { position: relative; border: 1px solid var(--line-soft); background: rgba(255, 252, 244, 0.25); padding: 3px; text-align: center; }
.spirit-tile.locked { opacity: 0.38; filter: grayscale(1); }
.spirit-tile-art { display: block; aspect-ratio: 1; overflow: hidden; }
.spirit-tile-name { display: block; font-size: 8px; margin-top: 2px; }
.spirit-tile-rarity { position: absolute; top: 4px; right: 4px; font-size: 7px; background: rgba(247, 240, 226, 0.8); padding: 0 3px; }
.spirit-level { position: absolute; left: 5px; bottom: 16px; font-size: 7px; color: var(--gold); background: rgba(247, 240, 226, 0.85); padding: 0 3px; }

/* 纪事 */

.world-tabs-note { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.world-tabs-note b { font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 0.14em; }
.log-list .log-row { padding: 5px 0; border-bottom: 1px dotted var(--line-soft); }
.world-divide { display: flex; align-items: center; gap: 8px; margin: 13px 0 8px; }
.world-divide span { flex: 1; height: 1px; background: var(--line-soft); }
.world-divide b { font-family: var(--brush); font-size: 17px; font-weight: 400; color: var(--cinnabar); }
.chronicle-row { padding: 7px 0; border-bottom: 1px dotted var(--line-soft); }
.chronicle-row .chronicle-name { display: inline-block; font-size: 9px; color: var(--cinnabar); border: 1px solid rgba(169, 72, 54, 0.18); padding: 1px 4px; margin-right: 4px; }
.chronicle-row p { display: inline; font-size: 9px; color: var(--ink-soft); line-height: 1.7; }
.chronicle-row small { display: block; font-size: 7px; color: var(--faint); margin-top: 2px; }

/* ---------------- 页脚 / 移动 ---------------- */

.app-footer { display: flex; justify-content: center; align-items: center; gap: 11px; padding: 26px 20px 34px; color: var(--faint); font-size: 9px; letter-spacing: 0.1em; }
.footer-dot { width: 2px; height: 2px; border-radius: 50%; background: var(--faint); }
.mobile-dock { display: none; }

/* ---------------- 弹窗 ---------------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; padding: 22px;
  background: rgba(29, 32, 26, 0.46);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease both;
}
.modal {
  width: min(560px, 100%); max-height: min(88vh, 900px);
  display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 90% -10%, rgba(255, 252, 245, 0.9), transparent 42%),
    linear-gradient(150deg, #f7f0e1, #eaddc7);
  border: 1px solid rgba(44, 48, 40, 0.22);
  box-shadow: 0 30px 80px rgba(20, 24, 19, 0.32);
  position: relative; animation: modalIn 0.34s var(--ease) both;
}
.modal::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(44, 48, 40, 0.08); pointer-events: none; z-index: 0; }
.modal-md { width: min(580px, 100%); }
.modal-lg { width: min(840px, 100%); }
.modal-xl { width: min(1000px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 26px 15px; border-bottom: 1px solid var(--line-soft); position: relative; z-index: 1; }
.modal-title-wrap { min-width: 0; }
.modal-head .eyebrow { margin-bottom: 5px; }
.modal-title { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: 0.02em; }
.modal-close { margin-top: -4px; margin-right: -8px; }
.modal-body { padding: 20px 26px 24px; overflow-y: auto; position: relative; z-index: 1; }
.modal-foot { padding: 14px 26px 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 8px; }
.modal-foot-inner { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* 本命 */

.path-intro { margin-bottom: 16px; }
.path-intro p { font-size: 13px; color: var(--ink-soft); }
.path-intro span { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.path-card { position: relative; text-align: left; border: 1px solid var(--line); background: rgba(255, 252, 244, 0.32); padding: 17px 15px 14px; transition: all 0.25s var(--ease); --path-color: var(--jade); }
.path-card:hover { transform: translateY(-3px); border-color: var(--path-color); box-shadow: var(--shadow-soft); }
.path-card.selected { border-color: var(--path-color); background: linear-gradient(160deg, rgba(255, 252, 244, 0.65), rgba(255, 252, 244, 0.2)); box-shadow: inset 0 0 0 1px var(--path-color); }
.path-seal { width: 44px; height: 44px; display: grid; place-items: center; background: var(--path-color); color: var(--paper-light); font-family: var(--brush); font-size: 29px; border-radius: 3px; line-height: 1; }
.path-name { display: block; font-family: var(--serif); font-size: 21px; margin-top: 10px; }
.path-tagline { display: block; font-size: 9px; color: var(--path-color); letter-spacing: 0.08em; margin-top: 3px; }
.path-card p { font-size: 10px; color: var(--muted); line-height: 1.7; margin-top: 8px; min-height: 51px; }
.path-boon { display: block; font-size: 9px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 7px; margin-top: 5px; }
.path-pick { display: block; margin-top: 9px; font-size: 9px; color: var(--path-color); letter-spacing: 0.1em; }
.path-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 15px; }
.path-foot-note { display: flex; align-items: center; gap: 9px; }
.path-foot-note p { font-size: 10px; color: var(--muted); }

/* 引导 */

.tutorial-art { height: 150px; overflow: hidden; margin: -20px -26px 0; }
.tutorial-art-svg, .tutorial-art-svg svg { width: 100%; height: 100%; object-fit: cover; }
.tutorial-steps { display: flex; gap: 5px; justify-content: center; margin: 13px 0 3px; }
.tutorial-steps span { width: 16px; height: 2px; background: var(--line); }
.tutorial-steps span.active { background: var(--cinnabar); width: 30px; }
.tutorial-steps span.done { background: rgba(169, 72, 54, 0.4); }
.tutorial-copy { display: flex; gap: 13px; padding: 10px 0 4px; }
.tutorial-copy h3 { font-family: var(--brush); font-size: 30px; font-weight: 400; margin: 3px 0 6px; }
.tutorial-copy p { font-size: 12px; color: var(--ink-soft); }
.tutorial-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }

/* 破境 */

.realm-shift { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 4px 0 18px; }
.realm-orb { width: 150px; text-align: center; border: 1px solid var(--line); padding: 12px 8px; }
.realm-orb small { display: block; font-size: 8px; color: var(--muted); letter-spacing: 0.2em; }
.realm-orb b { display: block; font-family: var(--brush); font-weight: 400; font-size: 34px; color: var(--ink); margin: 2px 0; }
.realm-orb span { font-size: 8px; color: var(--faint); }
.realm-orb.new { border-color: rgba(169, 72, 54, 0.3); background: rgba(169, 72, 54, 0.04); }
.realm-orb.new b { color: var(--cinnabar-2); }
.realm-arrow { display: flex; align-items: center; gap: 5px; color: var(--cinnabar); }
.realm-arrow span { width: 18px; height: 1px; background: rgba(169, 72, 54, 0.3); }
.realm-arrow b { font-family: var(--brush); font-weight: 400; font-size: 20px; }
.break-requirements { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.break-requirements > div { border: 1px solid var(--line-soft); padding: 10px 12px; }
.break-requirements > div.met { border-color: rgba(63, 98, 85, 0.22); background: rgba(63, 98, 85, 0.03); }
.break-requirements span { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--muted); }
.break-requirements b { display: block; float: right; margin-top: -17px; font-size: 9px; font-weight: 400; color: var(--ink-soft); }
.break-requirements small { display: block; font-size: 8px; color: var(--cinnabar); margin-top: 5px; }
.aspect-pick-title { display: flex; justify-content: space-between; align-items: baseline; margin: 19px 0 9px; }
.aspect-pick-title span { font-size: 12px; font-weight: 700; }
.aspect-pick-title small { font-size: 9px; color: var(--muted); }
.aspect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.aspect-card { --aspect-color: var(--cinnabar); border: 1px solid var(--line); background: rgba(255, 252, 244, 0.24); padding: 12px 12px 10px; text-align: left; transition: all 0.2s; }
.aspect-card.selected { border-color: var(--aspect-color); box-shadow: inset 0 0 0 1px var(--aspect-color); background: rgba(255, 252, 244, 0.58); }
.aspect-seal { width: 31px; height: 31px; display: grid; place-items: center; background: var(--aspect-color); color: var(--paper-light); font-family: var(--brush); font-size: 21px; border-radius: 2px; }
.aspect-card > b { display: block; font-size: 15px; margin-top: 8px; }
.aspect-card > em { display: block; font-style: normal; font-size: 9px; color: var(--aspect-color); margin-top: 2px; }
.aspect-card > p { font-size: 9px; color: var(--muted); line-height: 1.6; margin-top: 6px; min-height: 29px; }
.aspect-count { display: block; font-size: 8px; color: var(--faint); border-top: 1px dotted var(--line); margin-top: 7px; padding-top: 5px; }

/* 灵犀 */

.insight-lead { font-size: 12px; color: var(--ink-soft); margin-bottom: 14px; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.insight-card { position: relative; border: 1px solid var(--line); background: rgba(255, 252, 244, 0.26); padding: 15px 13px 12px; text-align: left; transition: all 0.24s var(--ease); }
.insight-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.insight-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(169, 132, 72, 0.3); color: var(--gold); }
.insight-branch { display: block; font-size: 9px; color: var(--ink-soft); letter-spacing: 0.15em; margin-top: 11px; }
.insight-card > b { display: block; font-size: 18px; margin-top: 2px; }
.insight-card > p { font-size: 10px; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }
.insight-card > em { display: block; font-style: normal; font-size: 9px; color: var(--faint); margin-top: 7px; line-height: 1.5; }
.insight-level { display: flex; align-items: center; gap: 3px; margin-top: 10px; }
.insight-level i { width: 6px; height: 6px; background: rgba(44, 48, 40, 0.18); border-radius: 50%; }
.insight-level i.on { background: var(--cinnabar); }
.insight-level small { margin-left: auto; font-size: 9px; color: var(--muted); }
.insight-take { display: inline-block; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 7px; font-size: 9px; color: var(--cinnabar); letter-spacing: 0.1em; }

/* 游历 */

.journey-lead { font-size: 12px; color: var(--ink-soft); margin-bottom: 15px; }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.journey-option { border: 1px solid var(--line); background: rgba(255, 252, 244, 0.26); padding: 14px; }
.journey-option.locked { opacity: 0.48; }
.journey-option-icon { color: var(--jade); margin-bottom: 7px; }
.journey-option-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.journey-option-head b { font-size: 15px; }
.journey-option-head span { font-size: 9px; color: var(--cinnabar); }
.journey-option p { font-size: 10px; color: var(--ink-soft); margin-top: 5px; line-height: 1.65; }
.journey-option > small { display: block; font-size: 9px; color: var(--faint); margin-top: 3px; }
.journey-gain { display: flex; gap: 9px; margin: 9px 0; }
.journey-gain span { display: inline-flex; align-items: center; gap: 3px; font-size: 8px; color: var(--muted); }
.journey-now { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; }
.journey-now-art { height: 240px; overflow: hidden; border: 1px solid var(--line); }
.journey-now-art svg { width: 100%; height: 100%; object-fit: cover; }
.journey-now-copy h3 { font-family: var(--brush); font-size: 30px; font-weight: 400; margin: 4px 0 8px; }
.journey-now-copy p { font-size: 11px; color: var(--muted); }
.big-countdown { font-family: var(--brush); font-size: 54px; color: var(--cinnabar); letter-spacing: 0.05em; margin: 8px 0; }
.journey-progress { height: 3px; background: var(--line); margin: 10px 0 7px; }
.journey-progress span { display: block; height: 100%; background: var(--gold); }
.journey-now-copy > small { font-size: 9px; color: var(--faint); }

/* 奇遇 */

.event-layout { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: stretch; margin-bottom: 14px; }
.event-scene { height: 190px; overflow: hidden; margin: 0; border: 1px solid var(--line); }
.event-scene svg { width: 100%; height: 100%; object-fit: cover; }
.event-copy { display: flex; flex-direction: column; justify-content: center; }
.event-text { font-size: 12px; color: var(--ink-soft); line-height: 1.9; }
.event-reward-hint { margin: 10px 0 0; padding: 7px 10px; background: rgba(169, 132, 72, 0.06); border-left: 2px solid var(--gold); font-size: 9px; color: var(--muted); }
.event-options { display: flex; flex-direction: column; gap: 7px; }
.event-option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: rgba(255, 252, 244, 0.25); padding: 11px 13px; text-align: left; transition: all 0.2s; }
.event-option:hover { border-color: var(--cinnabar); background: rgba(255, 252, 244, 0.6); transform: translateX(3px); }
.event-index { font-size: 9px; color: var(--cinnabar); letter-spacing: 0.1em; }
.event-option > span:nth-child(2) { flex: 1; }
.event-option b { display: block; font-size: 12px; }
.event-option small { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
.event-option .icon { color: var(--faint); }
.event-result { text-align: center; padding: 10px 12px 5px; }
.result-seal { width: 56px; height: 56px; display: grid; place-items: center; background: var(--cinnabar); color: var(--paper-light); font-family: var(--brush); font-size: 36px; border-radius: 3px; margin: 0 auto 12px; }
.event-result h3 { font-family: var(--brush); font-size: 30px; font-weight: 400; margin-bottom: 7px; }
.event-result p { font-size: 12px; color: var(--ink-soft); }
.result-spirit { margin: 13px 0; padding: 9px; border: 1px solid rgba(169, 132, 72, 0.25); background: rgba(169, 132, 72, 0.05); font-size: 11px; }
.event-result .btn { margin-top: 15px; }

/* 画灵详情 / 唤灵 */

.spirit-detail { display: grid; grid-template-columns: 190px 1fr; gap: 18px; }
.spirit-detail-art { height: 190px; overflow: hidden; border: 1px solid var(--line); background: rgba(255, 252, 244, 0.3); }
.spirit-detail-art svg { width: 100%; height: 100%; }
.spirit-detail-info { min-width: 0; }
.spirit-name-row { display: flex; align-items: center; gap: 8px; }
.spirit-name-row h3 { font-family: var(--serif); font-size: 24px; }
.rarity-seal { font-size: 9px; color: var(--cinnabar); border: 1px solid rgba(169, 72, 54, 0.4); padding: 2px 5px; }
.spirit-quote { font-size: 11px; color: var(--jade); margin: 4px 0 10px; }
.spirit-level-row { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); margin-bottom: 4px; }
.spirit-lore { font-size: 10px; color: var(--muted); line-height: 1.75; margin-top: 9px; }
.spirit-bonus-box { margin-top: 10px; padding: 8px 10px; border-left: 2px solid var(--gold); background: rgba(169, 132, 72, 0.05); }
.spirit-bonus-box span { display: block; font-size: 8px; color: var(--muted); }
.spirit-bonus-box b { display: block; font-size: 12px; color: var(--gold); margin-top: 2px; }
.spirit-bonus-box small { display: block; font-size: 8px; color: var(--faint); margin-top: 4px; }
.spirit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.summon-reveal { text-align: center; position: relative; padding-top: 6px; }
.summon-rays { position: absolute; top: 0; left: 50%; width: 300px; height: 300px; transform: translateX(-50%); background: radial-gradient(circle, rgba(169, 132, 72, 0.17), transparent 62%); pointer-events: none; }
.summon-art { width: 224px; height: 224px; margin: 0 auto; position: relative; }
.summon-art svg { transform: scale(1.12); }
.summon-badge { display: inline-block; border: 1px solid rgba(169, 72, 54, 0.4); color: var(--cinnabar); padding: 2px 8px; font-size: 9px; margin-top: 3px; }
.summon-reveal h3 { font-family: var(--brush); font-size: 38px; font-weight: 400; margin-top: 5px; }
.summon-title { font-size: 10px; color: var(--muted); letter-spacing: 0.15em; }
.summon-quote { font-size: 12px; color: var(--jade); margin-top: 9px; }
.summon-meta { display: flex; justify-content: center; gap: 10px; margin-top: 11px; flex-wrap: wrap; }
.summon-meta span { font-size: 9px; border: 1px solid var(--line); padding: 4px 8px; color: var(--ink-soft); }

/* 轮回 */

.prestige-top { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.prestige-orb { display: flex; align-items: center; gap: 9px; }
.prestige-orb small { display: block; font-size: 8px; color: var(--muted); }
.prestige-orb b { display: block; font-size: 18px; }
.prestige-gain { margin-left: auto; text-align: right; }
.prestige-gain small { display: block; font-size: 8px; color: var(--muted); }
.prestige-gain b { display: inline-block; font-size: 28px; color: var(--gold); margin-right: 4px; }
.prestige-gain span { font-size: 9px; color: var(--muted); }
.prestige-top > p { flex: 1; max-width: 300px; font-size: 9px; color: var(--muted); line-height: 1.7; }
.prestige-tabs { display: flex; gap: 2px; margin: 14px 0 12px; border-bottom: 1px solid var(--line); }
.prestige-tabs button { border: 0; background: transparent; border-bottom: 2px solid transparent; padding: 8px 16px; font-size: 11px; color: var(--muted); }
.prestige-tabs button.active { border-bottom-color: var(--cinnabar); color: var(--ink); }
.prestige-warn { display: flex; align-items: center; gap: 9px; font-size: 9px; color: var(--muted); border: 1px dashed var(--line); padding: 8px 10px; }
.prestige-warn b { font-size: 10px; color: var(--ink-soft); font-weight: 400; }
.prestige-path-label { margin: 14px 0 7px; font-size: 10px; color: var(--ink-soft); }
.prestige-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 14px; }
.prestige-path { border: 1px solid var(--line); background: rgba(255, 252, 244, 0.2); padding: 10px; text-align: left; --path-color: var(--jade); }
.prestige-path.selected { border-color: var(--path-color); box-shadow: inset 0 0 0 1px var(--path-color); }
.path-seal.small { width: 28px; height: 28px; font-size: 18px; }
.prestige-path b { display: block; font-size: 13px; margin-top: 6px; }
.prestige-path small { display: block; font-size: 8px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.tree-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 10px; color: var(--muted); }
.tree-head b { color: var(--gold); font-size: 11px; }
.tree-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tree-node { border: 1px solid var(--line); background: rgba(255, 252, 244, 0.22); padding: 10px; }
.tree-node.maxed { opacity: 0.55; }
.tree-node-head { display: flex; justify-content: space-between; gap: 5px; }
.tree-node-head b { font-size: 12px; }
.tree-node-head span { font-size: 8px; color: var(--faint); }
.tree-node p { font-size: 9px; color: var(--ink-soft); margin-top: 3px; }
.tree-node > small { display: block; font-size: 8px; color: var(--faint); margin-top: 3px; }
.tree-node button { margin-top: 7px; width: 100%; border: 1px solid rgba(169, 132, 72, 0.3); background: transparent; color: var(--gold); font-size: 10px; padding: 5px; letter-spacing: 0.05em; }
.tree-node button:disabled { border-color: var(--line); color: var(--faint); }
.prestige-result { text-align: center; padding: 5px; }
.prestige-result h3 { font-family: var(--brush); font-size: 34px; font-weight: 400; margin: 10px 0 7px; }
.prestige-result p { font-size: 12px; color: var(--ink-soft); }
.prestige-result p b { color: var(--gold); }
.prestige-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 17px 0; }
.prestige-result-grid div { border: 1px solid var(--line-soft); padding: 9px; }
.prestige-result-grid small { display: block; font-size: 8px; color: var(--muted); }
.prestige-result-grid b { display: block; font-size: 12px; margin-top: 3px; }

/* 图鉴 */

.codex-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.codex-tabs button { border: 0; background: transparent; border-bottom: 2px solid transparent; padding: 9px 16px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.codex-tabs button.active { border-bottom-color: var(--cinnabar); color: var(--ink); }
.codex-tabs small { font-size: 8px; color: var(--faint); }
.codex-scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.codex-scene { display: grid; grid-template-columns: 125px 1fr; gap: 12px; border: 1px solid var(--line-soft); padding: 8px; background: rgba(255, 252, 244, 0.2); }
.codex-scene.unseen { opacity: 0.64; }
.codex-scene-art { height: 150px; overflow: hidden; }
.codex-scene-art svg { width: 100%; height: 100%; }
.codex-scene-copy { padding: 5px 0; }
.codex-scene-copy h3 { font-family: var(--serif); font-size: 18px; margin: 3px 0 5px; }
.codex-scene-copy p { font-size: 9px; color: var(--ink-soft); line-height: 1.7; }
.codex-scene-copy small { display: block; font-size: 8px; color: var(--faint); margin-top: 5px; }
.codex-spirits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.codex-spirit { border: 1px solid var(--line-soft); background: rgba(255, 252, 244, 0.2); padding: 5px; text-align: center; }
.codex-spirit.locked { opacity: 0.35; filter: grayscale(1); }
.codex-spirit-art { aspect-ratio: 1; overflow: hidden; }
.codex-spirit b { display: block; font-size: 10px; margin-top: 4px; }
.codex-spirit span { display: block; font-size: 8px; color: var(--muted); margin-top: 2px; }
.codex-realms { display: flex; flex-direction: column; gap: 3px; }
.realm-row { display: flex; align-items: center; gap: 11px; border-bottom: 1px dotted var(--line-soft); padding: 7px 5px; font-size: 11px; }
.realm-row.current { background: rgba(169, 72, 54, 0.05); border-left: 2px solid var(--cinnabar); }
.realm-row.future { opacity: 0.5; }
.realm-num { font-size: 9px; color: var(--faint); width: 17px; }
.realm-row b { font-weight: 400; font-size: 12px; }
.realm-circle { font-size: 8px; color: var(--muted); border: 1px solid var(--line); padding: 1px 4px; }
.realm-row small { margin-left: auto; font-size: 8px; color: var(--faint); }
.codex-end-note { text-align: center; font-family: var(--brush); font-size: 17px; color: var(--muted); margin-top: 13px; }
.codex-achievements { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.codex-achievement { display: flex; gap: 10px; border: 1px solid var(--line-soft); padding: 10px; opacity: 0.55; }
.codex-achievement.got { opacity: 1; border-color: rgba(169, 132, 72, 0.23); background: rgba(169, 132, 72, 0.03); }
.ach-seal { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-family: var(--brush); font-size: 18px; }
.codex-achievement b { font-size: 11px; }
.codex-achievement p { font-size: 9px; color: var(--muted); margin-top: 2px; }
.codex-achievement small { display: block; font-size: 8px; color: var(--faint); margin-top: 3px; }

/* 山河榜 */

.leader-tabs { display: flex; gap: 4px; margin-bottom: 11px; }
.leader-tabs button { border: 1px solid var(--line); background: transparent; padding: 5px 14px; font-size: 10px; color: var(--muted); }
.leader-tabs button.active { border-color: var(--cinnabar); color: var(--cinnabar); background: rgba(169, 72, 54, 0.04); }
.my-rank-line { display: flex; align-items: center; gap: 9px; padding: 9px 11px; background: rgba(63, 98, 85, 0.05); border-left: 2px solid var(--jade); font-size: 10px; color: var(--muted); }
.my-rank-line b { color: var(--jade); font-size: 13px; }
.my-rank-line small { margin-left: auto; font-size: 8px; color: var(--faint); }
.leader-list { margin-top: 10px; }
.leader-row { display: flex; align-items: center; gap: 10px; padding: 7px 5px; border-bottom: 1px dotted var(--line-soft); }
.leader-row.me { background: rgba(169, 72, 54, 0.05); }
.leader-rank { width: 27px; text-align: center; font-size: 10px; color: var(--faint); flex: 0 0 auto; }
.leader-rank.top-1 { font-family: var(--brush); font-size: 22px; color: #b58b3c; }
.leader-rank.top-2 { font-family: var(--brush); font-size: 22px; color: #8f8d85; }
.leader-rank.top-3 { font-family: var(--brush); font-size: 22px; color: #a16f53; }
.leader-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; border: 1px solid var(--line); }
.leader-name { flex: 1; min-width: 0; }
.leader-name b { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-name small { display: block; font-size: 8px; color: var(--faint); }
.leader-stat { text-align: right; min-width: 60px; }
.leader-stat b { display: block; font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; }
.leader-stat small { font-size: 7px; color: var(--faint); }

/* 设置 */

.settings-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 15px; }
.settings-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 8px 15px; font-size: 11px; color: var(--muted); }
.settings-tabs button.active { border-bottom-color: var(--cinnabar); color: var(--ink); }
.settings-section { border-bottom: 1px solid var(--line-soft); padding: 0 0 17px; margin-bottom: 17px; }
.settings-section:last-child { border-bottom: 0; margin-bottom: 0; }
.settings-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.settings-title b { font-size: 12px; }
.settings-title small { font-size: 8px; color: var(--faint); }
.settings-row { display: flex; align-items: center; gap: 8px; font-size: 10px; padding: 7px 0; }
.settings-row b { font-weight: 400; color: var(--ink-soft); }
.settings-row small { font-size: 8px; color: var(--faint); margin-left: auto; }
.avatar-picker.inline { display: flex; align-items: center; gap: 12px; margin: 6px 0 13px; }
.avatar-picker.inline .field-label { margin: 0; white-space: nowrap; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 11px; }
.switch { width: 37px; height: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(44, 48, 40, 0.09); padding: 2px; transition: all 0.2s; }
.switch i { display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff9ec; transition: transform 0.2s; }
.switch.on { background: var(--jade); border-color: var(--jade); }
.switch.on i { transform: translateX(17px); }
.danger-zone { border: 1px solid rgba(169, 72, 54, 0.2); padding: 13px; background: rgba(169, 72, 54, 0.03); }
.danger-zone p { font-size: 10px; color: var(--muted); }
.session-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.session-row { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line-soft); padding: 8px 10px; font-size: 10px; }
.session-row b { display: block; font-weight: 400; }
.session-row small { display: block; font-size: 8px; color: var(--faint); margin-top: 2px; }
.session-row > span { font-size: 8px; color: var(--jade); }
.about-box { text-align: center; padding: 10px 0 15px; }
.about-box .big-seal { margin: 0 auto 8px; }
.about-box h3 { font-family: var(--brush); font-size: 32px; font-weight: 400; }
.about-box p { font-size: 11px; color: var(--ink-soft); max-width: 480px; margin: 7px auto; }
.about-meta { display: flex; justify-content: center; gap: 7px; margin: 10px 0; }
.about-meta span { font-size: 8px; border: 1px solid var(--line); padding: 3px 6px; color: var(--muted); }

/* 离线 / 画景详情 */

.offline-art { height: 165px; overflow: hidden; margin: -20px -26px 15px; }
.offline-art svg { width: 100%; height: 100%; object-fit: cover; }
.offline-gain { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; background: rgba(63, 98, 85, 0.06); border-left: 3px solid var(--jade); }
.offline-gain span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.offline-gain b { font-size: 24px; color: var(--jade); }
.offline-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.offline-meta span { font-size: 8px; color: var(--muted); border: 1px solid var(--line); padding: 3px 6px; }
.scene-detail-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.scene-detail-figure { min-width: 0; }
.scene-detail-art { width: 100%; aspect-ratio: 5 / 6; height: auto; overflow: hidden; margin: 0; border: 1px solid rgba(44, 48, 40, 0.18); background: #e6dcc7; }
.scene-detail-art svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.scene-detail-caption { display: flex; justify-content: space-between; gap: 8px; padding: 7px 2px 0; font-size: 8px; letter-spacing: 0.12em; color: var(--faint); }
.scene-detail-body { min-width: 0; padding-top: 3px; }
.scene-detail-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
.scene-detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 15px 0; }
.scene-detail-stats div { border: 1px solid var(--line-soft); padding: 9px; background: rgba(255, 252, 244, 0.25); }
.scene-detail-stats small { display: block; font-size: 8px; color: var(--muted); }
.scene-detail-stats b { display: block; font-size: 13px; margin-top: 2px; }
.scene-detail-lore { font-size: 11px; color: var(--muted); border-left: 2px solid var(--line); padding: 3px 0 3px 11px; line-height: 1.8; }
.scene-detail-actions { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 20px; }
.scene-save-note { font-size: 9px; color: var(--jade); }
.scene-save-note.muted { color: var(--faint); }

/* ---------------- 提示 ---------------- */

.toast-stack { position: fixed; top: 88px; right: 17px; z-index: 110; display: flex; flex-direction: column; gap: 7px; width: min(330px, calc(100vw - 30px)); pointer-events: none; }
.toast {
  display: flex; gap: 9px; align-items: flex-start;
  background: rgba(247, 240, 226, 0.96); border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(45, 39, 28, 0.18); padding: 10px 12px;
  animation: toastIn 0.3s var(--ease) both; pointer-events: auto;
}
.toast-mark { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; background: var(--ink); color: var(--paper-light); font-family: var(--brush); font-size: 15px; }
.toast-good .toast-mark { background: var(--jade); }
.toast-bad .toast-mark { background: var(--cinnabar); }
.toast-achievement .toast-mark { background: var(--gold); }
.toast strong { display: block; font-size: 10px; letter-spacing: 0.04em; }
.toast p { font-size: 9px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* ---------------- 动画 ---------------- */

@keyframes sealIn { from { opacity: 0; transform: scale(1.25) rotate(-6deg); filter: blur(3px); } to { opacity: 1; transform: scale(1) rotate(0); filter: none; } }
@keyframes linePulse { 0%, 100% { opacity: 0.25; transform: scaleX(0.7); } 50% { opacity: 0.7; transform: scaleX(1); } }
@keyframes bounceInk { 0%, 100% { transform: translateY(0); opacity: 0.35; } 50% { transform: translateY(-5px); opacity: 1; } }
@keyframes slowRotate { to { transform: rotate(360deg); } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(-1deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes breakGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(169, 72, 54, 0.24); } 50% { box-shadow: 0 0 0 6px rgba(169, 72, 54, 0); } }
@keyframes splash { 0% { opacity: 0.55; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.35); } }

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

/* ---------------- 响应式 ---------------- */

@media (max-width: 1320px) {
  .main-layout { grid-template-columns: 278px minmax(0, 1fr) 330px; gap: 14px; padding-left: 16px; padding-right: 16px; }
  .topbar { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .resource { min-width: 84px; padding: 6px 8px; }
  .qi-resource { min-width: 124px; }
  .user-name { display: none; }
}
@media (max-width: 1160px) {
  .main-layout { grid-template-columns: 272px minmax(0, 1fr); }
  .col-right { grid-column: 1 / -1; position: static; }
  .side-body { max-height: none; font-size: 11px; }
  .mini-head b { font-size: 14px; }
  .mini-head small { font-size: 9px; }
  .task-top { font-size: 11px; }
  .task-bottom small { font-size: 9px; }
  .mini-desc, .journey-now-copy p { font-size: 11px; }
  .log-row p { font-size: 10px; }
  .upgrade-body small { font-size: 9px; }
  .upgrade-flavor { font-size: 8px; }
  .spirit-tile-name { font-size: 9px; }
  .chronicle-row p { font-size: 10px; }
  .side-panel { display: grid; grid-template-columns: 130px 1fr; }
  .side-tabs { grid-template-columns: 1fr; border-right: 1px solid var(--line); border-bottom: 0; }
  .side-tabs button { flex-direction: row; gap: 8px; padding: 14px 12px; border-bottom: 0; border-left: 2px solid transparent; justify-content: flex-start; }
  .side-tabs button.active { border-left-color: var(--cinnabar); }
  .side-body { padding: 13px 16px; }
  .fate-panel, .dao-panel, .spirit-panel, .world-panel { max-width: 800px; }
  .scroll-head h2 { font-size: 21px; }
}
@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .main-layout { display: flex; flex-direction: column; padding: 12px 12px 100px; gap: 13px; }
  .col-left, .col-center, .col-right { position: static; width: 100%; }
  .col-center { order: -1; }
  .col-left { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .topbar { flex-wrap: wrap; min-height: auto; padding: 9px 12px; gap: 7px; }
  .topbar-left { gap: 10px; }
  .topbar-left .brand-seal { width: 34px; height: 34px; font-size: 22px; }
  .topbar-left .brand strong { font-size: 23px; }
  .topbar-left .brand small { display: none; }
  .topbar-online { display: none; }
  .resource-row { order: 3; width: 100%; justify-content: space-between; gap: 4px; overflow-x: auto; padding-top: 4px; }
  .resource { min-width: 0; flex: 1; padding: 5px 6px; gap: 5px; }
  .resource .res-icon { width: 22px; height: 22px; }
  .resource small { font-size: 7px; }
  .resource strong { font-size: 12px; }
  .qi-resource strong { font-size: 14px; }
  .resource em { font-size: 7px; }
  .topbar-actions { margin-left: auto; gap: 0; }
  .topbar-actions .top-icon { width: 29px; height: 29px; }
  .user-button { padding-right: 5px; }
  .topbar .brand small { display: none; }
  .mobile-dock {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    position: fixed; left: 9px; right: 9px; bottom: 9px; z-index: 80;
    background: rgba(30, 35, 28, 0.96); border: 1px solid rgba(247, 240, 226, 0.12);
    box-shadow: 0 12px 35px rgba(24, 28, 22, 0.3); padding: 5px;
    backdrop-filter: blur(12px);
  }
  .mobile-dock button {
    border: 0; background: transparent; color: rgba(245, 237, 221, 0.65);
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 1px; font-size: 8px; border-radius: 2px;
  }
  .mobile-dock button.primary { color: #f6efdf; background: rgba(169, 72, 54, 0.42); }
  .mobile-dock button:disabled { opacity: 0.32; }
  .app-footer { padding-bottom: 88px; flex-wrap: wrap; text-align: center; justify-content: center; }
  .auth-page { display: flex; flex-direction: column; }
  .auth-hero { min-height: 56vh; padding: 24px 22px; }
  .auth-hero-copy { padding: 20px 0 15px; }
  .auth-hero-copy h1 { font-size: clamp(42px, 12vw, 66px); }
  .auth-hero-copy > p { font-size: 12px; line-height: 1.9; }
  .auth-scroll-preview { display: none; }
  .auth-hero-foot { font-size: 8px; }
  .auth-panel { border-left: 0; border-top: 1px solid var(--line); padding: 30px 22px 38px; }
  .auth-panel-inner { max-width: 480px; }
  .auth-counts { font-size: 9px; padding: 6px 10px; gap: 8px; }
  .auth-counts b { font-size: 11px; }
  .auth-hero-top .brand-large strong { font-size: 32px; }
  .auth-hero-top .brand-large .brand-seal { width: 44px; height: 44px; font-size: 29px; }
  .scroll-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .scroll-head-right { padding-bottom: 0; }
  .scroll-head h2 { font-size: 20px; }
  .scroll-frame { padding: 12px 14px 10px; }
  .scroll-nav { display: none; }
  .scene-card { width: 154px; flex-basis: 154px; height: 266px; }
  .scene-art-wrap { height: 182px; }
  .scene-summary { height: 266px; flex-basis: 90px; }
  .scroll-strip { min-height: 286px; padding-left: 2px; padding-right: 2px; gap: 9px; }
  .draw-zone { flex-direction: column; align-items: stretch; gap: 9px; }
  .btn-draw { width: 100%; min-width: 0; }
  .side-panel { display: block; }
  .side-tabs { grid-template-columns: repeat(4, 1fr); border-right: 0; border-bottom: 1px solid var(--line); }
  .side-tabs button { flex-direction: column; border-left: 0; border-bottom: 2px solid transparent; padding: 10px 2px 8px; justify-content: center; }
  .side-tabs button.active { border-bottom-color: var(--cinnabar); }
  .side-body { max-height: none; font-size: 11px; }
  .mini-head b { font-size: 14px; }
  .mini-head small { font-size: 9px; }
  .task-top { font-size: 11px; }
  .task-bottom small { font-size: 9px; }
  .mini-desc, .journey-now-copy p { font-size: 11px; }
  .log-row p { font-size: 10px; }
  .upgrade-body small { font-size: 9px; }
  .upgrade-flavor { font-size: 8px; }
  .spirit-tile-name { font-size: 9px; }
  .chronicle-row p { font-size: 10px; }
  .click-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .click-copy p { display: none; }
  .click-panel .click-main { justify-content: flex-end; }
  .click-panel .ink-button { width: 88px; height: 88px; }
  .click-panel .ink-button-core { width: 70px; height: 70px; }
  .modal-backdrop { padding: 10px; align-items: flex-end; }
  .modal { max-height: 92vh; }
  .modal-head { padding: 17px 18px 12px; }
  .modal-title { font-size: 20px; }
  .modal-body { padding: 15px 18px 19px; }
  .path-grid { grid-template-columns: 1fr; gap: 8px; }
  .path-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 11px; padding: 12px; }
  .path-seal { grid-row: span 2; }
  .path-name { margin-top: 1px; }
  .path-card p { min-height: 0; grid-column: 1 / -1; margin-top: 7px; }
  .path-boon, .path-pick { grid-column: 1 / -1; }
  .path-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .realm-shift { gap: 8px; }
  .realm-orb { width: 120px; }
  .realm-orb b { font-size: 27px; }
  .aspect-grid, .insight-grid { grid-template-columns: 1fr; gap: 6px; }
  .aspect-card, .insight-card { display: grid; grid-template-columns: 32px 1fr; column-gap: 9px; }
  .aspect-seal, .insight-icon { grid-row: span 2; }
  .aspect-card > p, .insight-card > p, .insight-card > em, .insight-level, .insight-take, .aspect-count { grid-column: 1 / -1; }
  .break-requirements { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-now { grid-template-columns: 1fr; }
  .journey-now-art { height: 150px; }
  .spirit-detail { grid-template-columns: 140px 1fr; gap: 12px; }
  .spirit-detail-art { height: 160px; }
  .codex-scenes { grid-template-columns: 1fr; }
  .codex-spirits { grid-template-columns: repeat(3, 1fr); }
  .codex-achievements { grid-template-columns: 1fr; }
  .prestige-top { flex-wrap: wrap; gap: 9px; }
  .prestige-top > p { order: 3; max-width: none; width: 100%; }
  .prestige-paths { grid-template-columns: 1fr; }
  .tree-grid { grid-template-columns: 1fr; }
  .toast-stack { top: 74px; right: 10px; }
  .app-footer { font-size: 8px; gap: 7px; }
  .footer-dot { display: none; }
  .auth-quote { margin-top: 25px; }
}
@media (max-width: 520px) {
  .resource.ink-soul { display: none; }
  .cultivator-card { padding: 14px; }
  .portrait { width: 76px; height: 76px; }
  .portrait-art { width: 76px; height: 76px; }
  .identity h2 { font-size: 18px; }
  .identity p { display: none; }
  .card-actions { flex-wrap: wrap; }
  .card-actions .btn { flex: 1 1 40%; }
  .click-panel { grid-template-columns: 1fr; }
  .click-panel .click-main { justify-content: center; }
  .click-copy { text-align: center; }
  .scroll-head-right { flex-wrap: wrap; gap: 6px; }
  .scroll-sky { font-size: 8px; }
  .scene-card { width: 146px; flex-basis: 146px; }
  .scene-info h3 { font-size: 14px; }
  .scene-art-wrap { height: 174px; }
  .modal-head { padding: 15px 15px 11px; }
  .modal-body { padding: 13px 15px 17px; }
  .offline-art { margin-left: -15px; margin-right: -15px; }
  .event-layout { grid-template-columns: 1fr; gap: 10px; }
  .event-scene { height: 160px; }
  .scene-detail-layout { grid-template-columns: 1fr; gap: 14px; }
  .scene-detail-figure { max-width: 260px; margin: 0 auto; width: 100%; }
  .scene-detail-body { padding-top: 0; }
  .summon-art { width: 170px; height: 170px; }
  .spirit-detail { grid-template-columns: 1fr; }
  .spirit-detail-art { height: 190px; }
  .codex-spirits { grid-template-columns: repeat(2, 1fr); }
  .my-rank-line small { display: none; }
  .leader-stat:nth-last-child(1) { display: none; }
  .auth-hero-top { flex-direction: column; gap: 10px; }
  .auth-counts { align-self: flex-start; }
  .auth-hero { min-height: 52vh; }
}

/* ---------------- 卷尾留白 / 题跋 ---------------- */

.scroll-tail {
  flex: 0 0 154px; height: 286px; border: 1px dashed rgba(55, 51, 42, 0.26);
  background: linear-gradient(160deg, rgba(247, 240, 226, 0.3), rgba(238, 228, 210, 0.12));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  color: var(--muted); position: relative; cursor: pointer; transition: all 0.25s var(--ease);
}
.scroll-tail:hover { border-color: rgba(169, 72, 54, 0.4); background: rgba(255, 252, 244, 0.35); }
.scroll-tail .tail-seal { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(169, 72, 54, 0.4); color: var(--cinnabar); font-family: var(--brush); font-size: 24px; }
.scroll-tail b { font-family: var(--brush); font-size: 22px; font-weight: 400; color: var(--ink-soft); letter-spacing: 0.08em; }
.scroll-tail small { font-size: 8px; letter-spacing: 0.16em; color: var(--faint); }
.scroll-tail::before, .scroll-tail::after { content: ''; position: absolute; width: 10px; height: 10px; border-color: rgba(105, 91, 68, 0.25); border-style: solid; }
.scroll-tail::before { left: 8px; top: 8px; border-width: 1px 0 0 1px; }
.scroll-tail::after { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }
.colophon { margin-top: 19px; display: grid; grid-template-columns: 1fr 260px; gap: 0; padding: 0; overflow: hidden; }
.colophon-main { padding: 17px 20px 15px; }
.colophon-main .eyebrow { margin-bottom: 7px; }
.colophon-main p { font-family: var(--brush); font-size: 20px; line-height: 1.8; color: var(--ink-soft); letter-spacing: 0.04em; }
.colophon-sign { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 8px; color: var(--faint); letter-spacing: 0.14em; }
.colophon-sign i { width: 28px; height: 1px; background: var(--line); }
.colophon-side { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line-soft); background: rgba(255, 252, 244, 0.18); }
.colophon-side div { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); }
.colophon-side div:nth-last-child(-n+2) { border-bottom: 0; }
.colophon-side small { display: block; font-size: 8px; color: var(--muted); }
.colophon-side b { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (max-width: 880px) {
  .colophon { grid-template-columns: 1fr; }
  .colophon-side { border-left: 0; border-top: 1px solid var(--line-soft); }
  .colophon-side div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .colophon-side div:nth-last-child(-n+1) { border-bottom: 0; }
  .scroll-tail { flex-basis: 126px; height: 250px; }
}
@media (max-width: 520px) {
  .auth-hero-copy { padding-left: 0; }
  .vertical-note { display: none; }
  .colophon-main p { font-size: 18px; }
}

/* ---------------- 接下来 ---------------- */
.next-steps { margin-top: 14px; }
.next-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 2px 8px; }
.next-head .eyebrow { margin-bottom: 4px; }
.next-head h3 { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.next-hint { font-size: 8px; color: var(--faint); letter-spacing: 0.12em; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.next-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255, 252, 244, 0.25); padding: 12px 13px; text-align: left; transition: all 0.22s var(--ease); }
.next-card:hover { border-color: rgba(169, 72, 54, 0.32); background: rgba(255, 252, 244, 0.55); transform: translateY(-2px); }
.next-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--jade); flex: 0 0 auto; }
.next-copy { flex: 1; min-width: 0; }
.next-copy b { display: block; font-size: 12px; }
.next-copy small { display: block; font-size: 8px; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.next-card > .icon { color: var(--faint); }
@media (max-width: 880px) {
  .next-grid { grid-template-columns: 1fr; }
  .next-card { padding: 10px 12px; }
  .next-steps { display: none; }
}
