:root {
  --bg: #f5f2eb;
  --surface: #fcfbf8;
  --ink: #141414;
  --ink-muted: #4d483f;
  --border: #141414;
  --line-soft: #e2dbce;
  --box-accent: #e85d3f;
  --box-tint: #fff2ed;
  --shadow-hard: 4px 4px 0 #141414;
  --shadow-hard-lg: 6px 6px 0 #141414;
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-display: "Bahnschrift", "DIN Alternate", "PingFang SC", "Hiragino Sans GB", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "Bahnschrift", "Cascadia Mono", "SF Mono", "JetBrains Mono", Consolas, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image: radial-gradient(#d8d0c1 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "tnum" 1;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand-title,
.box-title,
.spotlight-title,
.result-name,
.pair-title,
.pair-score-badge,
.profile-dim-score-pill,
.quiz-counter {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

h1,
h2,
.result-name,
.pair-title {
  letter-spacing: -0.02em;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: 100%;
  max-width: 1080px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 40px;
  display: flex;
  flex-direction: column;
}

/* 顶部品牌导航 */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}

.brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  transition: transform 0.16s ease;
}

.brand-btn:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
}

.brand-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  padding-left: 8px;
  border-left: 1.5px solid #c9c1b2;
}

.topbar-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.14s ease, color 0.14s ease;
}

.nav-pill:hover {
  background: var(--box-tint);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-pill.is-active {
  background: var(--ink);
  color: var(--surface);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2e7d5b;
  border: 1px solid var(--ink);
}

.nav-count {
  font-size: 11px;
  font-weight: 900;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.nav-pill.is-active .nav-count {
  background: var(--box-accent);
  color: #fff;
  border-color: var(--surface);
}

.text-btn {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.text-btn:hover {
  background: var(--ink);
  color: var(--surface);
}

/* 实体按压按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-accent {
  background: var(--box-accent);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: var(--surface);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
}

/* ================= 首页：独立盲盒馆门面 + 货架 ================= */
.hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 36px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0 6px;
}

.hero-eyebrow {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
  box-shadow: 2px 2px 0 var(--ink);
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.65;
  color: var(--ink-muted);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-cta-row .btn {
  width: auto;
  min-width: 152px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stat-pill {
  background: rgba(252, 251, 248, 0.85);
  border: 1.5px solid #cfc7b8;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.hero-stat-pill strong {
  color: var(--ink);
  font-weight: 900;
  margin-right: 4px;
}

.hero-stamp-pass {
  margin-top: 22px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 13px 15px 12px;
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
}

.stamp-pass-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stamp-pass-kicker {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.stamp-pass-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
}

.stamp-pass-divider {
  position: relative;
  border-top: 1.5px dashed #cfc7b8;
  margin: 10px -15px 12px;
}

.stamp-pass-divider::before,
.stamp-pass-divider::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--ink);
}

.stamp-pass-divider::before {
  left: -7px;
  border-left-color: transparent;
  border-top-color: transparent;
  transform: rotate(-45deg);
}

.stamp-pass-divider::after {
  right: -7px;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-45deg);
}

.stamp-pass-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.stamp-pass-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 4px 6px;
  border-radius: 11px;
  border: 1.5px dashed #c8c0b0;
  background: rgba(246, 243, 234, 0.55);
  color: var(--ink-muted);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.stamp-pass-cell:hover {
  transform: translateY(-2px);
}

.stamp-pass-cell.is-stamped {
  border-style: solid;
  color: var(--ink);
}

.stamp-pass-cell.is-selected {
  box-shadow: 2px 2px 0 var(--ink);
  border-color: var(--ink) !important;
  border-style: solid;
}

.stamp-pass-check {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.stamp-pass-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
}

.stamp-pass-cell.is-stamped .stamp-pass-icon,
.stamp-pass-cell.is-selected .stamp-pass-icon {
  opacity: 1;
}

.stamp-pass-icon svg {
  width: 28px;
  height: 28px;
}

.stamp-pass-no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.stamp-pass-foot {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 700;
}

.stamp-pass-serial {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.stamp-pass-barcode {
  width: 68px;
  height: 14px;
  fill: var(--ink);
  opacity: 0.72;
}

.stamp-pass-tip {
  font-size: 11px;
}

.stamp-pass-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 11.5px;
  font-weight: 900;
  color: var(--accent);
  cursor: pointer;
}

.mini-sample-card {
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 12px 13px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-sample-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-sample-stamp {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-sample-stamp svg {
  width: 40px;
  height: 40px;
}

.mini-sample-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-sample-meta strong {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
}

.mini-sample-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid #cfc7b8;
  color: var(--ink-muted);
}

.mini-sample-meta span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.mini-sample-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mini-bar-item {
  background: var(--bg);
  border-radius: 8px;
  padding: 5px 7px;
  border: 1px solid rgba(20, 20, 20, 0.14);
}

.mini-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.mini-bar-track {
  height: 5px;
  border-radius: 999px;
  background: #e4ddd0;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.box-lock-pill {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.box-lock-pill.is-open {
  background: #eaf6f3;
  color: #1f7a6b;
  border-color: #1f7a6b;
}

/* 右侧主推盲盒预览台 */
.hero-spotlight {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-hard-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spotlight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed #d5cdbd;
}

.spotlight-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.spotlight-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.spotlight-tab {
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
}

.spotlight-tab.is-active {
  background: var(--ink);
  color: var(--surface);
}

.spotlight-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spotlight-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.spotlight-stamp {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spotlight-meta {
  min-width: 0;
}

.spotlight-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  margin-bottom: 4px;
}

.spotlight-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.spotlight-hook {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.spotlight-samples-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.sample-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sample-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.12s ease;
}

.sample-chip:hover {
  transform: translateY(-1px);
  background: var(--bg);
}

.sample-chip code {
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.72;
}

.spotlight-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1.5px dashed #d5cdbd;
}

.spotlight-foot .btn {
  width: auto;
}

/* 货架区 */
.shelf-section {
  margin-bottom: 30px;
}

.shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.shelf-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 900;
}

.shelf-sub {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.65;
  color: var(--ink-muted);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-pill {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}

.filter-pill.is-active {
  background: var(--ink);
  color: var(--surface);
}

.box-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.box-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hard-lg);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.box-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.box-card.is-upcoming {
  border-style: dashed;
  box-shadow: none;
  background: rgba(252, 251, 248, 0.72);
}

.box-card.is-upcoming:hover {
  transform: none;
  box-shadow: none;
}

.box-cover {
  padding: 18px 22px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  background-image: radial-gradient(rgba(20, 20, 20, 0.08) 1px, transparent 1px);
  background-size: 12px 12px;
}

.box-card.is-upcoming .box-cover {
  border-bottom: 1.5px dashed #cfc7b8;
  background-image: none;
}

.box-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.box-no {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
}

.box-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  color: #fff;
}

.box-title {
  margin: 0 0 5px;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.2;
}

.box-hook {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.65;
  color: var(--ink-muted);
}

.stamp-frame {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface);
}

.stamp-svg {
  width: 58px;
  height: 58px;
}

.box-card-body {
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box-dims-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dim-chip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid #cfc7b7;
  color: var(--ink);
}

.box-species-line {
  font-size: 12px;
  color: var(--ink-muted);
}

.box-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1.5px dashed #cfc7b8;
}

.box-time {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.box-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.box-actions .btn {
  width: auto;
}

/* 三步票据引导条 */
.how-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.how-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.how-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.how-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 900;
  margin-bottom: 2px;
}

.how-card p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ================= 答题页：单题呼吸舞台 ================= */
.quiz-stage {
  max-width: 600px;
  width: 100%;
  margin: 18px auto 0;
}

.quiz-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-hard-lg);
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.quiz-box-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--box-tint);
}

.quiz-counter {
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  font-weight: 900;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #eae4d8;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 26px;
}

.progress-fill {
  height: 100%;
  width: 6%;
  background: var(--box-accent);
  transition: width 0.22s ease;
}

.question-text {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  min-height: 70px;
}

/* MBTI 式横向 4 档程度圆点选择器 */
.degree-scale {
  padding: 8px 2px 6px;
}

.degree-ends {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-muted);
  margin-bottom: 14px;
  padding: 0 6px;
}

.degree-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: start;
}

.degree-row::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--ink);
  z-index: 0;
}

.degree-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}

.degree-circle-slot {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.degree-circle {
  position: relative;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.12s ease;
}

.degree-circle.is-lg {
  width: 52px;
  height: 52px;
}

.degree-circle.is-md {
  width: 38px;
  height: 38px;
}

.degree-node:hover .degree-circle.is-high {
  background: var(--box-tint);
}

.degree-node:hover .degree-circle.is-low {
  background: #eae4d8;
}

.degree-node.is-selected .degree-circle {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.degree-node.is-selected .degree-circle.is-high {
  background: var(--box-accent);
}

.degree-node.is-selected .degree-circle.is-low {
  background: var(--ink);
}

.degree-node.is-selected .degree-circle::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 999px;
  background: var(--surface);
}

.degree-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.3;
}

.degree-node.is-selected .degree-label {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 440px) {
  .degree-circle.is-lg {
    width: 44px;
    height: 44px;
  }
  .degree-circle.is-md {
    width: 34px;
    height: 34px;
  }
}

/* 3选1 情境卡片 */
.options-scenario-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.scenario-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.12s ease;
}

.scenario-btn:hover {
  background: var(--box-tint);
}

.scenario-btn.is-selected {
  background: var(--box-accent);
  color: #fff;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.opt-key {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scenario-btn.is-selected .opt-key {
  background: var(--surface);
}

/* 题型标签 */
.quiz-qtype-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--box-tint);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* 强迫二选一直觉对比卡 */
.duel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.duel-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  padding: 18px 18px 20px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.12s ease;
}

.duel-card:hover {
  background: var(--box-tint);
}

.duel-card.is-selected {
  background: var(--box-accent);
  color: #fff;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.duel-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 900;
}

.duel-card.is-selected .duel-card-badge {
  background: var(--surface);
}

.duel-card-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}

.duel-card-desc {
  font-size: 13.5px;
  line-height: 1.65;
  opacity: 0.92;
}

.duel-vs {
  align-self: center;
  justify-self: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 10 格能量/预算分配控件 */
.alloc-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alloc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
}

.alloc-remain {
  font-size: 13px;
  font-weight: 900;
}

.alloc-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.alloc-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  transition: background-color 0.12s ease, transform 0.12s ease;
}

.alloc-dot.is-used {
  background: var(--box-accent);
  transform: scale(1.06);
}

.alloc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alloc-row {
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--ink);
}

.alloc-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 9px;
}

.alloc-row-title {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  margin-bottom: 2px;
}

.alloc-row-desc {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.alloc-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.alloc-step-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.alloc-step-btn:hover:not(:disabled) {
  background: var(--box-tint);
}

.alloc-step-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.alloc-val {
  min-width: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 900;
}

.alloc-cells {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}

.alloc-cell {
  height: 12px;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.1s ease;
}

.alloc-cell.is-filled {
  background: var(--box-accent);
}

.alloc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.quiz-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.quiz-foot .btn {
  width: auto;
}

.quiz-foot .btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: 2px 2px 0 var(--ink);
}

.link-muted {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ================= 结果页：收藏盲盒卡 + 从夯到拉 ================= */
.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.result-left,
.result-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.collect-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hard-lg);
}

.collect-top {
  background: var(--box-tint);
  padding: 20px;
  border-bottom: 2px solid var(--ink);
}

.collect-serial {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.serial-text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.code-pill {
  background: var(--box-accent);
  color: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 2px 11px;
  font-size: 12px;
  font-weight: 900;
}

.collect-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.result-stamp-wrap {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-muted);
}

.result-name {
  margin: 2px 0 4px;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.18;
}

.composite-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 9px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 700;
}

.result-quote {
  margin: 14px 0 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.collect-radar {
  padding: 12px 14px 14px;
  display: flex;
  justify-content: center;
}

.radar-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panel {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-hard);
}

.panel-head-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.panel-head-row .panel-title {
  margin-bottom: 0;
}

.panel-hint {
  background: var(--bg);
  border: 1px solid #d5cdbd;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.panel-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 900;
}

/* 五维浓度属性条 */
.tier-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  border-bottom: 1px dashed #dcd4c5;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.tier-row:hover {
  background: var(--box-tint);
}

.tier-row:last-child {
  border-bottom: none;
}

.tier-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tier-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 2px 8px;
  border-radius: 7px;
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 900;
  color: #fff;
}

.tier-hang { background: #e85d3f; }
.tier-ding { background: #d97706; }
.tier-ok { background: #2e7d5b; }
.tier-meh { background: #5b6b7c; }
.tier-la { background: #141414; }

.tier-dim-name {
  font-size: 14.5px;
  font-weight: 800;
}

.tier-bar-track {
  width: 110px;
  height: 9px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: #eae4d8;
  overflow: hidden;
  flex-shrink: 0;
}

.tier-bar-fill {
  height: 100%;
}

.tier-verdict {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* 优势/掉血双小块 */
.twin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.twin-item {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
}

.twin-item strong {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}

.twin-good { background: #eaf4ee; }
.twin-cost { background: #fdeee9; }

.summary-text {
  margin: 0;
  padding-top: 12px;
  border-top: 1.5px dashed #dcd4c5;
  font-size: 14.5px;
  line-height: 1.78;
  color: #2b2924;
}

/* 开盒深扒区 */
.paywall-panel {
  background: var(--box-tint);
}

.paywall-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.price-pill {
  font-size: 12.5px;
  font-weight: 800;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
}

.blur-box {
  position: relative;
  border: 1.5px dashed var(--ink);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}

.blur-txt {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  font-size: 13px;
  color: #555;
}

.blur-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  background: rgba(252, 251, 248, 0.55);
}

.blur-mask strong {
  font-size: 14px;
}

.blur-mask span {
  font-size: 12px;
  color: var(--ink-muted);
}

/* 开盒弹窗内盲盒比价卡片 */
.modal-box-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--bg);
}

.modal-box-stamp {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-box-stamp svg {
  width: 44px;
  height: 44px;
}

.modal-box-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 2px;
}

.modal-box-meta span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* 全局档案 & 工坊 6 盒显影磨砂与封条卡 */
#profile-hero-card.is-developing .collect-radar,
#profile-hero-card.is-developing .result-name,
#profile-hero-card.is-developing .result-tag,
#profile-axes-panel.is-developing #profile-core-axes,
#lab-unlocked-stage.is-developing #pane-lab-pair,
#lab-unlocked-stage.is-developing #pane-lab-receipt {
  filter: blur(5.5px);
  opacity: 0.68;
  user-select: none;
  pointer-events: none;
}

.profile-seal-card {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  background: var(--surface);
}

#lab-locked-seal {
  margin-bottom: 20px;
}

.profile-stamp-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 14px;
}

.profile-slot-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 11px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 800;
}

.profile-slot-pill.is-empty {
  border-style: dashed;
  background: var(--bg);
  color: var(--ink-muted);
  cursor: pointer;
}

.profile-slot-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-slot-dot svg {
  width: 18px;
  height: 18px;
}

.profile-seal-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
}

.profile-seal-desc {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.65;
  color: var(--ink-muted);
}

.profile-seal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-seal-actions .btn {
  width: auto;
}

.cdk-row {
  display: flex;
  gap: 8px;
}

.cdk-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.cdk-row .btn {
  width: auto;
  padding: 10px 16px;
}

.cdk-note {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1.5px dashed #cfc7b8;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-muted);
}

.cdk-note strong {
  color: var(--ink);
  font-weight: 900;
}

.cdk-del-price {
  color: #9a9284;
  text-decoration: line-through;
  margin-left: 2px;
}

.cdk-msg {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  min-height: 18px;
}

.cdk-msg.is-ok { color: #2e7d5b; }
.cdk-msg.is-err { color: #e85d3f; }

.deep-section + .deep-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1.5px dashed #dcd4c5;
}

.deep-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
}

.deep-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
}

.deep-list li + li {
  margin-top: 6px;
}

.tip-card {
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  background: var(--box-tint);
  padding: 11px 13px;
}

.paradox-card {
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: #fff8e6;
  box-shadow: 2px 2px 0 var(--ink);
  padding: 13px 15px;
}

.paradox-card strong {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  margin-bottom: 5px;
  color: var(--ink);
}

.paradox-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: #2f2c26;
}

.tip-card + .tip-card {
  margin-top: 8px;
}

.tip-card strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.tip-card p {
  margin: 0;
  font-size: 13px;
  color: #2f2c26;
}

/* ================= 指标解释指南 & 物种图鉴 ================= */
.guide-drawer-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.guide-drawer-arrow {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}

.guide-drawer-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px dashed #dcd4c5;
}

.seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.seg-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--bg);
  font-size: 13.5px;
  font-weight: 900;
  color: var(--ink);
  cursor: pointer;
}

.seg-tab.is-active {
  background: var(--ink);
  color: var(--surface);
}

.tab-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid currentColor;
}

.tier-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px dashed #cfc7b7;
  background: var(--bg);
}

.tier-legend-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tier-legend-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tier-range {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.tier-legend-desc {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}

.guide-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.guide-toolbar-title {
  font-size: 13px;
  font-weight: 900;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-item {
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  background: var(--surface);
  overflow: hidden;
}

.guide-item.is-open {
  box-shadow: 3px 3px 0 var(--ink);
}

.guide-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.guide-item.is-open .guide-trigger {
  background: var(--box-tint);
  border-bottom: 1.5px solid var(--ink);
}

.guide-trigger-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-dim-title {
  font-size: 14.5px;
  font-weight: 900;
}

.guide-top-tag {
  font-size: 11px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--surface);
}

.guide-trigger-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.guide-body {
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spectrum-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spectrum-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-muted);
}

.spectrum-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: linear-gradient(90deg, #eae4d8 0%, var(--box-tint) 60%, var(--box-accent) 100%);
}

.spectrum-pin {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--ink);
  border: 2.5px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--ink);
  transform: translate(-50%, -50%);
}

.guide-meaning {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
}

.pole-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.pole-box {
  border: 1px solid #cfc7b7;
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg);
  font-size: 12.5px;
}

.pole-box strong {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}

.your-read-box {
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--box-tint);
  font-size: 13px;
}

.your-read-box strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

/* 物种图鉴卡片 & 详情 */
.atlas-box-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.atlas-detail {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--box-tint);
  padding: 15px;
  margin-bottom: 14px;
}

.atlas-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.atlas-detail-stamp {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.atlas-detail-name {
  margin: 2px 0;
  font-size: 20px;
  font-weight: 900;
}

.atlas-detail-summary {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #2f2c26;
}

.atlas-locked-note {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px dashed rgba(20, 20, 20, 0.28);
  background: var(--bg);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.atlas-bars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.atlas-bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 34px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.atlas-bar-track {
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--surface);
  overflow: hidden;
}

.atlas-bar-fill {
  height: 100%;
  background: var(--box-accent);
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.atlas-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.atlas-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.atlas-card.is-active {
  background: var(--box-tint);
  box-shadow: 3px 3px 0 var(--ink);
}

.atlas-card-stamp {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.atlas-card-stamp .stamp-svg {
  width: 34px;
  height: 34px;
}

.atlas-card-info {
  min-width: 0;
}

.atlas-card-name {
  display: block;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atlas-card-sub {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atlas-mine-pill {
  display: inline-block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--box-accent);
  color: #fff;
}

/* 弹窗 & 皮肤切换 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-sheet {
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-hard-lg);
}

.modal-sheet-wide {
  max-width: 680px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.modal-atlas-foot {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.modal-atlas-foot .btn {
  width: auto;
}

.modal-cdk-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
}

.theme-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.theme-pill {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}

.theme-pill.is-active {
  background: var(--ink);
  color: var(--surface);
}

.poster-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 60vh;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
}

.poster-tip {
  margin: 10px 0 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--box-accent);
}

/* 拆盒揭晓过场 */
.unboxing-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(245, 242, 235, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}

.unboxing-card {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-hard-lg);
}

.unboxing-stamp {
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: var(--box-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: boxShake 0.45s ease-in-out infinite alternate;
}

.unboxing-box-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--box-tint);
  margin-bottom: 8px;
}

.unboxing-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 900;
}

.unboxing-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.unboxing-skip {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

@keyframes boxShake {
  0% { transform: rotate(-4deg) scale(0.98); }
  100% { transform: rotate(4deg) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .unboxing-stamp {
    animation: none;
  }
}

/* ================= 个人测试档案中心 ================= */
.profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-head h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
}

.profile-nick-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nickname-pill {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--ink);
}

.nickname-edit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
}

.nickname-edit-row .btn {
  width: auto;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 28px;
}

.clarity-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 6px;
}

.clarity-fill {
  height: 100%;
  background: var(--box-accent);
  transition: width 0.25s ease;
}

.clarity-meta {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-muted);
}

.axis-sources {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insight-card {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg);
}

.insight-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 900;
  margin-bottom: 4px;
}

.insight-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #2f2c26;
}

.profile-balance-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--box-tint);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
}

.profile-overview-sub {
  margin: 0 0 14px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1.5px dashed rgba(20, 20, 20, 0.28);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.profile-dim-report-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-dim-card {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--bg);
  box-shadow: 2px 2px 0 var(--ink);
}

.profile-dim-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.profile-dim-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-dim-name {
  font-size: 15px;
  font-weight: 900;
}

.profile-dim-stag {
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
}

.profile-dim-score-pill {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 900;
  color: var(--ink);
}

.profile-spectrum {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-muted);
}

.profile-spectrum-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
}

.profile-spectrum-dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  transform: translate(-50%, -50%);
}

.profile-dim-meaning {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--ink-muted);
}

.profile-dim-para {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #24221d;
}

.profile-dim-advice {
  font-size: 12.5px;
  line-height: 1.6;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--surface);
  border: 1.5px solid rgba(20, 20, 20, 0.18);
  color: #2f2c26;
}

.profile-scenario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.profile-scenario-card {
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  padding: 13px 14px;
  background: var(--bg);
}

.profile-scenario-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.profile-scenario-head strong {
  font-size: 13.5px;
  font-weight: 900;
}

.profile-scenario-head span {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--box-tint);
  border: 1px solid rgba(20, 20, 20, 0.25);
}

.profile-scenario-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #2f2c26;
}

.profile-section {
  margin-top: 26px;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.collection-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 15px;
  box-shadow: 3px 3px 0 var(--ink);
}

.collection-card.is-unlit {
  border-style: dashed;
  box-shadow: none;
  background: rgba(252, 251, 248, 0.72);
}

.collection-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.collection-stamp {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg);
}

.collection-stamp .stamp-svg {
  width: 42px;
  height: 42px;
}

.collection-card.is-unlit .collection-stamp {
  opacity: 0.45;
}

.collection-meta {
  min-width: 0;
}

.collection-box-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-muted);
}

.collection-name {
  display: block;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-actions {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.collection-actions .btn {
  width: auto;
}

.io-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.io-toolbar .btn {
  width: auto;
}

.btn-danger-confirm {
  background: #e85d3f !important;
  color: #fff !important;
  border-color: var(--ink) !important;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #d5cdbd;
  border-radius: 10px;
  background: var(--bg);
}

.history-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.history-date {
  font-size: 12px;
  color: var(--ink-muted);
}

.history-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.history-actions .btn {
  width: auto;
}

/* ================= 怪盒工坊：双人合盘 & 热敏小票 ================= */
.lab-tabs {
  max-width: 440px;
}

.lab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.lab-form-group {
  margin-bottom: 16px;
}

.lab-label {
  display: block;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.lab-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
}

.lab-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 8px;
}

.lab-code-row {
  margin-top: 8px;
}

.lab-preview-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pair-head-card {
  background: var(--box-tint);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  text-align: center;
}

.pair-versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pair-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 96px;
}

.pair-stamp-box {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pair-self-card {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--bg);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pair-self-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pair-self-head strong {
  font-size: 14px;
  font-weight: 900;
}

.pair-self-code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 800;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 2px 8px;
}

.pair-self-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pair-self-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid #d5cdbd;
  border-radius: 7px;
  padding: 2px 7px;
}

.pair-badge-box {
  min-width: 78px;
  height: 62px;
  padding: 0 12px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--surface);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.pair-badge-box code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.pair-badge-box small {
  font-size: 10.5px;
  color: var(--ink-muted);
  font-weight: 700;
}

.pair-empty-card {
  border: 1.5px dashed #c8c0b0;
  border-radius: 14px;
  padding: 36px 22px;
  text-align: center;
  background: rgba(246, 243, 234, 0.55);
}

.pair-empty-card strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
}

.pair-empty-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.pair-person strong {
  font-size: 13px;
  font-weight: 900;
}

.pair-person span {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.pair-score-badge {
  background: var(--box-accent);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 8px 18px;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
}

.pair-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
}

.pair-verdict {
  margin: 0;
  font-size: 13.5px;
  color: #2f2c26;
  line-height: 1.7;
}

.pair-compare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.pair-compare-row {
  display: grid;
  grid-template-columns: 74px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 800;
}

.pair-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: #eae4d8;
}

.pair-link-bar {
  position: absolute;
  top: 50%;
  height: 4px;
  background: var(--box-accent);
  transform: translateY(-50%);
}

.pair-dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.pair-dot.is-a {
  background: var(--box-accent);
  border: 2px solid var(--ink);
  z-index: 2;
}

.pair-dot.is-b {
  background: var(--surface);
  border: 2.5px solid #2b6cb0;
  z-index: 1;
}

.pair-legend {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mood-pill {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.12s ease;
}

.mood-pill:hover {
  background: var(--box-tint);
}

.mood-pill.is-active {
  background: var(--ink);
  color: var(--surface);
  box-shadow: 2px 2px 0 var(--box-accent);
}

/* 复古热敏小票舞台 */
.receipt-stage {
  display: flex;
  justify-content: center;
  padding: 18px 12px;
  border: 2px dashed #cfc7b7;
  border-radius: var(--radius-lg);
  background: #ece7dc;
}

.receipt-paper {
  position: relative;
  width: 100%;
  max-width: 390px;
  background: #fffdf9;
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  padding: 24px 20px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(20, 20, 20, 0.12);
}

.receipt-paper::before,
.receipt-paper::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  height: 10px;
  background-repeat: repeat-x;
  background-size: 16px 10px;
}

.receipt-paper::before {
  top: -10px;
  background-image: linear-gradient(135deg, transparent 50%, #141414 50%),
    linear-gradient(225deg, transparent 50%, #141414 50%);
}

.receipt-paper::after {
  bottom: -10px;
  background-image: linear-gradient(45deg, transparent 50%, #141414 50%),
    linear-gradient(315deg, transparent 50%, #141414 50%);
}

.receipt-paper.is-printing {
  animation: receiptSlide 0.35s ease-out;
}

@keyframes receiptSlide {
  from {
    opacity: 0.45;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .receipt-paper.is-printing {
    animation: none;
  }
}

.receipt-brand {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--ink);
  margin-bottom: 12px;
}

.receipt-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.receipt-brand span {
  font-size: 12px;
  color: var(--ink-muted);
}

.receipt-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #3a3731;
  margin-bottom: 4px;
}

.receipt-memo-tag {
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #fdeee9;
  border: 1px dashed #e85d3f;
  font-size: 12px;
  font-weight: 800;
  color: #c94225;
}

.receipt-persona-line {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.receipt-items {
  margin: 12px 0;
  padding: 12px 0;
  border-top: 1.5px dashed var(--ink);
  border-bottom: 1.5px dashed var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-item-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.receipt-bar-track {
  height: 7px;
  border-radius: 999px;
  background: #eae4d8;
  overflow: hidden;
}

.receipt-bar-fill {
  height: 100%;
  background: var(--ink);
}

.receipt-item:first-child .receipt-bar-fill {
  background: #e85d3f;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 12px;
}

.receipt-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.receipt-tip-box {
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
}

.receipt-tip-box strong {
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
}

.barcode-wrap {
  text-align: center;
  margin-bottom: 8px;
}

.barcode-svg {
  width: 210px;
  height: 36px;
}

.receipt-closing {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.app-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1.5px dashed #d8d0c1;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.footer-link-btn {
  border: none;
  background: transparent;
  padding: 0 2px;
  font: inherit;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ================= 电脑端宽屏布局 (>= 900px) ================= */
@media (min-width: 900px) {
  .app-shell {
    padding: 24px 28px 48px;
  }

  .hero-stage {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    padding-top: 10px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .box-grid,
  .collection-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .how-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .quiz-stage {
    max-width: 680px;
  }

  .quiz-card {
    padding: 32px 30px;
  }

  .question-text {
    font-size: 22px;
  }

  .alloc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .alloc-row {
    padding: 11px 12px;
  }

  .result-grid,
  .profile-grid,
  .lab-grid {
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 24px;
  }

  .result-left {
    position: sticky;
    top: 24px;
  }

  .twin-grid,
  .pole-grid {
    grid-template-columns: 1fr 1fr;
  }

  .atlas-bars {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }

  .atlas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-scenario-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .duel-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .brand-sub {
    display: none;
  }

  .collection-card {
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
    padding: 14px;
  }

  .collection-actions {
    justify-content: flex-end;
  }

  .stamp-pass-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atlas-grid {
    grid-template-columns: 1fr;
  }
}
