﻿:root {
  --bg-main: #0f131f;
  --bg-panel: rgba(12, 18, 33, 0.84);
  --line-soft: rgba(173, 188, 255, 0.18);
  --text-main: #f5f1e8;
  --text-muted: #aab4d6;
  --accent-blue: #5f7cff;
  --accent-purple: #9c6bff;
  --accent-gold: #d6b46d;
  --accent-red: #ff7f96;
  --shadow-main: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(95, 124, 255, 0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(156, 107, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #13192b 0%, #090d16 100%);
}
button, a { font: inherit; }
.hidden { display: none; }
.panel {
  width: min(860px, 100%);
  padding: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(16px);
}
.test-panel, .result-panel { margin: auto; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}
h1 { margin: 0; font-size: clamp(32px, 6vw, 52px); line-height: 1.15; }
.test-title { font-size: clamp(28px, 4vw, 42px); }
.lead {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  justify-content: center;
}
.primary-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}
.primary-btn { background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); }
.ghost-btn { border-color: var(--line-soft); background: rgba(255,255,255,.04); }
.primary-btn:hover, .ghost-btn:hover { transform: translateY(-2px); }
.primary-btn:disabled, .ghost-btn:disabled, .option-item:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.ghost-btn.is-ready, .primary-btn.is-ready {
  border-color: rgba(95,124,255,.55);
  box-shadow: 0 0 0 1px rgba(95,124,255,.24), 0 10px 30px rgba(95,124,255,.18);
}
.ghost-btn.is-ready { background: rgba(95,124,255,.12); }
.primary-btn.is-ready { filter: saturate(1.08) brightness(1.03); }
.compact-btn { min-width: auto; }
.result-card, .status-card, .question-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.error-card { color: #ffd9df; border-color: rgba(255,127,150,.38); background: rgba(255,127,150,.09); }
.test-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 14px;
}
.progress-track {
  width: 100%;
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  transition: width .25s ease;
}
.question-card { padding: 28px; }
.question-cn {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.55;
}
.question-en { margin: 14px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.question-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.question-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(95,124,255,.12);
  border: 1px solid rgba(95,124,255,.28);
  color: var(--text-main);
  font-size: 12px;
}
.question-badge.is-muted { background: rgba(255,255,255,.06); border-color: var(--line-soft); color: var(--text-muted); }
.option-list { display: grid; gap: 12px; margin-top: 22px; }
.option-item {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.03);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.option-item:hover { transform: translateY(-2px); border-color: rgba(95,124,255,.4); }
.option-item.is-active {
  background: rgba(95,124,255,.14);
  border-color: rgba(95,124,255,.5);
  box-shadow: inset 0 0 0 1px rgba(95,124,255,.28);
}
.option-key {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  font-weight: 700;
}
.option-text { line-height: 1.7; color: var(--text-main); }
.selected-hint { margin: 18px 0 0; color: var(--accent-gold); font-size: 14px; }
.test-actions { justify-content: space-between; }
.result-layout { margin-top: 28px; }
.result-hero-card {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(95,124,255,.1), rgba(156,107,255,.12));
}
.result-main-info { display: grid; gap: 8px; }
.result-main-info.full-width { width: 100%; }
.result-alias, .result-tags, .result-card-label { margin: 0; color: var(--text-muted); }
.result-name { margin: 0; font-size: clamp(28px, 4vw, 40px); color: var(--text-main); }
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.stat-card { margin-top: 0; }
.stat-value { display: block; margin-top: 14px; color: var(--text-main); font-size: 24px; line-height: 1.4; }
.narrative-card { margin-top: 20px; }
.result-desc { margin: 14px 0 0; color: var(--text-main); line-height: 1.9; }
.sbti-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(9,13,22,.55);
  border-bottom: 1px solid rgba(173,188,255,.1);
}
.sbti-header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sbti-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
}
.sbti-brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  box-shadow: 0 0 18px rgba(95,124,255,.75);
}
.sbti-promo-bar {
  width: min(1200px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(214,180,109,.28);
  background: rgba(214,180,109,.08);
}
.sbti-promo-text { margin: 0; text-align: center; color: var(--accent-gold); }
.sbti-test-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 64px;
  display: grid;
  gap: 28px;
}
.sbti-hero-copy {
  display: grid;
  gap: 12px;
  max-width: 860px;
}
.sbti-kicker {
  margin: 0;
  color: var(--accent-gold);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 12px;
}

.result-page-v2 {
  min-height: 100vh;
  color: #71421b;
  background:
    radial-gradient(circle at top, rgba(255, 244, 226, 0.98), rgba(248, 237, 223, 0.95) 42%, rgba(238, 224, 206, 0.92) 100%),
    linear-gradient(180deg, #f7efe4 0%, #ead8c4 100%);
}

.result-mobile-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 18px 18px 36px;
}

.result-mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.result-back-link,
.result-home-link {
  color: #8f6a45;
  text-decoration: none;
  font-size: 14px;
}

.result-empty-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(186, 143, 95, 0.18);
  color: #7a5734;
  box-shadow: 0 12px 32px rgba(116, 81, 43, 0.08);
}

.result-mobile-card {
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,248,240,0.94) 100%);
  box-shadow: 0 18px 60px rgba(133, 95, 55, 0.12);
  border: 1px solid rgba(205, 168, 127, 0.16);
  overflow: hidden;
}

.result-mobile-inner {
  padding: 32px 22px 28px;
}

.result-avatar-wrap {
  display: flex;
  justify-content: center;
}

.result-avatar {
  width: min(100%, 230px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.result-code {
  margin: 26px 0 8px;
  text-align: center;
  color: #a35416;
  font-size: clamp(42px, 12vw, 68px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.result-cn-name {
  margin: 0;
  text-align: center;
  color: #2d1d12;
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 800;
}

.result-quote {
  margin: 14px auto 0;
  max-width: 320px;
  text-align: center;
  color: #947256;
  font-size: 16px;
  line-height: 1.8;
  font-style: italic;
}

.result-match-pill {
  width: fit-content;
  min-width: 176px;
  margin: 24px auto 0;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 248, 242, 0.95);
  box-shadow: inset 0 0 0 1px rgba(209, 172, 133, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.result-match-label {
  color: #a38a73;
  font-size: 14px;
}

.result-match-value {
  color: #a35416;
  font-size: 26px;
  line-height: 1;
}

.result-desc-card {
  margin-top: 26px;
  padding: 24px 18px;
  border-top: 1px solid rgba(208, 177, 142, 0.2);
}

.result-desc-text {
  margin: 0;
  color: #5e4635;
  font-size: 18px;
  line-height: 1.95;
  text-align: left;
}

.result-action-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.result-page-v2 .primary-btn {
  background: linear-gradient(135deg, #b86b2e, #cb8b57);
}

.result-page-v2 .ghost-btn {
  color: #7c5634;
  border-color: rgba(184, 129, 79, 0.22);
  background: rgba(255,255,255,.45);
}

@media (max-width: 640px) {
  .panel {
    padding: 28px 20px;
  }

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

  .result-mobile-shell {
    padding: 14px 14px 28px;
  }

  .result-mobile-inner {
    padding: 24px 18px 24px;
  }

  .result-desc-text {
    font-size: 17px;
  }
}

.result-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.result-avatar {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}


/* Home + Test visual refresh */
.sbti-test-page:not(.result-page-v2) {
  color: #173042;
  background:
    radial-gradient(circle at top left, rgba(90, 166, 160, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(93, 124, 179, 0.14), transparent 24%),
    linear-gradient(180deg, #f9f7f2 0%, #f2efe7 100%);
}

.sbti-test-page:not(.result-page-v2) .sbti-header {
  background: rgba(247, 245, 240, 0.82);
  border-bottom: 1px solid rgba(33, 62, 74, 0.08);
  backdrop-filter: blur(18px);
}

.sbti-test-page:not(.result-page-v2) .sbti-header-inner,
.sbti-test-page:not(.result-page-v2) .sbti-test-shell {
  width: min(1180px, calc(100% - 36px));
}

.sbti-test-page:not(.result-page-v2) .sbti-header-inner {
  min-height: 76px;
  justify-content: space-between;
}

.sbti-test-page:not(.result-page-v2) .sbti-brand {
  color: #173042;
  font-size: 18px;
  font-weight: 800;
}

.sbti-test-page:not(.result-page-v2) .sbti-brand-dot {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 6px rgba(47, 124, 133, .1);
}

.sbti-test-page:not(.result-page-v2) .panel {
  width: min(1120px, 100%);
  padding: 38px;
  border-radius: 32px;
  border: 1px solid rgba(33, 62, 74, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(22, 44, 56, 0.12);
}

.sbti-test-page:not(.result-page-v2) .sbti-test-shell {
  margin: 36px auto 72px;
  gap: 28px;
}

.sbti-home-shell {
  gap: 30px;
}

.sbti-test-page:not(.result-page-v2) .sbti-kicker,
.sbti-test-page:not(.result-page-v2) .eyebrow {
  color: #c3934d;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
}

.sbti-test-page:not(.result-page-v2) h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #173042;
}

.sbti-home-title span {
  color: #2f7c85;
}

.sbti-test-page:not(.result-page-v2) .test-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #173042;
}

.sbti-home-lead,
.sbti-section-text,
.sbti-test-page:not(.result-page-v2) .status-card,
.sbti-test-page:not(.result-page-v2) .question-en,
.sbti-inline-note,
.sbti-mini-card p,
.sbti-hero-stat-desc {
  color: #617483;
  line-height: 1.85;
}

.sbti-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .9fr);
  gap: 28px;
  align-items: stretch;
}

.sbti-home-actions {
  justify-content: flex-start;
}

.sbti-home-hero-aside {
  display: grid;
  gap: 16px;
}

.sbti-hero-stat-card,
.sbti-mini-card,
.sbti-home-info-card,
.sbti-home-tags {
  margin-top: 0;
  border-radius: 24px;
  border: 1px solid rgba(33, 62, 74, 0.12);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 28px rgba(22, 44, 56, 0.08);
}

.sbti-hero-stat-value {
  display: block;
  margin-top: 10px;
  color: #173042;
  font-size: 30px;
  line-height: 1.2;
}

.sbti-hero-mini-grid,
.sbti-home-grid {
  display: grid;
  gap: 16px 24px;
}

.sbti-hero-mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sbti-home-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sbti-mini-badge,
.sbti-tag-pill,
.sbti-inline-note,
.sbti-test-page:not(.result-page-v2) .question-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.sbti-mini-badge,
.sbti-tag-pill,
.sbti-test-page:not(.result-page-v2) .question-badge {
  background: rgba(47, 124, 133, .1);
  color: #2f7c85;
  border: 1px solid rgba(47, 124, 133, .14);
}

.sbti-mini-badge,
.sbti-test-page:not(.result-page-v2) .question-badge {
  padding: 6px 12px;
  font-size: 12px;
}

.sbti-tag-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.sbti-tag-pill {
  min-height: 44px;
  padding: 10px 16px;
  color: #173042;
  background: #f5faf8;
}

.sbti-test-page:not(.result-page-v2) .primary-btn,
.sbti-test-page:not(.result-page-v2) .ghost-btn {
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
}

.sbti-test-page:not(.result-page-v2) .primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #2f7c85, #41968f);
  box-shadow: 0 12px 30px rgba(47, 124, 133, 0.24);
}

.sbti-test-page:not(.result-page-v2) .ghost-btn {
  color: #173042;
  border-color: rgba(33, 62, 74, 0.12);
  background: rgba(255,255,255,.82);
}

.sbti-test-page:not(.result-page-v2) .progress-meta {
  color: #617483;
}

.sbti-test-page:not(.result-page-v2) .progress-track {
  height: 12px;
  background: rgba(47, 124, 133, .1);
}

.sbti-test-page:not(.result-page-v2) .progress-bar {
  background: linear-gradient(90deg, #2f7c85, #6da6a1);
}

.sbti-test-page:not(.result-page-v2) .question-card {
  padding: 34px;
  border-radius: 28px;
  border-color: rgba(33, 62, 74, 0.12);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 42px rgba(22, 44, 56, 0.08);
}

.sbti-test-page:not(.result-page-v2) .question-cn {
  color: #173042;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
}

.sbti-test-page:not(.result-page-v2) .question-badge.is-muted {
  color: #617483;
  background: rgba(255,255,255,.76);
  border-color: rgba(33, 62, 74, 0.12);
}

.sbti-test-page:not(.result-page-v2) .option-list {
  gap: 14px;
  margin-top: 26px;
}

.sbti-test-page:not(.result-page-v2) .option-item {
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  border-color: rgba(33, 62, 74, 0.12);
  background: rgba(255,255,255,.92);
  color: #173042;
}

.sbti-test-page:not(.result-page-v2) .option-item:hover {
  border-color: rgba(47, 124, 133, .28);
  box-shadow: 0 16px 28px rgba(22, 44, 56, 0.08);
}

.sbti-test-page:not(.result-page-v2) .option-item.is-active {
  background: #edf5f2;
  border-color: rgba(47, 124, 133, .42);
  box-shadow: inset 0 0 0 1px rgba(47, 124, 133, .1), 0 14px 28px rgba(47, 124, 133, .08);
}

.sbti-test-page:not(.result-page-v2) .option-key {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #2f7c85, #6c8cc0);
}

.sbti-test-page:not(.result-page-v2) .option-text {
  color: #173042;
  line-height: 1.75;
}

.sbti-test-page:not(.result-page-v2) .selected-hint {
  color: #906a35;
}

@media (max-width: 960px) {
  .sbti-home-hero,
  .sbti-home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sbti-test-page:not(.result-page-v2) .sbti-header-inner,
  .sbti-test-page:not(.result-page-v2) .sbti-test-shell {
    width: min(100% - 24px, 100%);
  }

  .sbti-test-page:not(.result-page-v2) .panel {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .sbti-test-page:not(.result-page-v2) .button-row,
  .sbti-test-page:not(.result-page-v2) .test-actions {
    flex-direction: column;
  }

  .sbti-test-page:not(.result-page-v2) .primary-btn,
  .sbti-test-page:not(.result-page-v2) .ghost-btn {
    width: 100%;
  }

  .sbti-test-page:not(.result-page-v2) .question-card {
    padding: 24px 18px;
  }

  .sbti-test-page:not(.result-page-v2) .question-cn {
    font-size: 24px;
  }

  .sbti-test-page:not(.result-page-v2) .option-item {
    padding: 16px;
  }

  .sbti-hero-mini-grid {
    grid-template-columns: 1fr;
  }
}

.sbti-home-hero--solo {
  grid-template-columns: 1fr;
}

.sbti-home-hero--solo .sbti-home-hero-copy {
  max-width: 760px;
}

.sbti-home-page .sbti-home-shell {
  min-height: calc(100vh - 120px);
  align-content: center;
}

.sbti-home-page .sbti-home-hero--solo {
  width: 100%;
  min-height: clamp(520px, 72vh, 760px);
  display: flex;
  align-items: center;
}

.sbti-home-page .sbti-home-hero--solo .sbti-home-hero-copy {
  max-width: 820px;
}

.sbti-home-page .sbti-home-actions {
  margin-top: 34px;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

.sbti-home-page .sbti-home-actions .primary-btn,
.sbti-home-page .sbti-home-actions .ghost-btn {
  min-width: 180px;
  padding-inline: 28px;
}

.sbti-home-page .sbti-home-actions .ghost-btn {
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 640px) {
  .sbti-home-page .sbti-home-actions {
    align-items: stretch;
  }

  .sbti-home-page .sbti-home-actions .primary-btn,
  .sbti-home-page .sbti-home-actions .ghost-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Archive homepage */
.sbti-archive-page {
  background-color: #fafafc;
  color: #1a1a1a;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

.sbti-archive-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(209, 209, 209, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(209, 209, 209, 0.9) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.sbti-archive-page .sbti-header {
  background: rgba(244, 244, 247, 0.82);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  backdrop-filter: blur(10px);
}

.sbti-archive-page .sbti-header-inner {
  width: min(1200px, calc(100% - 36px));
}

.sbti-archive-page .sbti-brand {
  color: #1a1a1a;
}

.sbti-archive-page .sbti-brand-dot {
  background: linear-gradient(135deg, #7c6cff, #b2a8ff);
  box-shadow: 0 0 0 6px rgba(124, 108, 255, 0.12);
}

.sbti-archive-page .ghost-btn {
  border-color: rgba(26, 26, 26, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: #1a1a1a;
}

.archive-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1200px);
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 40px 18px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-card {
  position: relative;
  width: min(100%, 940px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  padding: 60px;
  overflow: hidden;
}

.archive-side-id {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background-color: #ff9d00;
}

.archive-decor-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #1a1a1a;
}

.archive-dot-tl { top: 12px; left: 16px; }
.archive-dot-br { bottom: 12px; right: 16px; }

.archive-header-group {
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 15px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.archive-title {
  margin: 0;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1a1a1a;
}

.archive-version {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: #ff9d00;
  font-weight: 700;
  white-space: nowrap;
}

.archive-intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 40px;
}

.archive-intro-text {
  display: grid;
  gap: 18px;
  font-size: 1.04rem;
  line-height: 1.9;
  color: #666666;
}

.archive-highlight {
  color: #1a1a1a;
  font-weight: 700;
  background: linear-gradient(transparent 70%, rgba(255, 157, 0, 0.2) 0);
}

.archive-side-panel {
  border-left: 1px solid #d1d1d1;
  padding-left: 20px;
  opacity: 0.68;
}

.archive-side-bar {
  width: 100%;
  height: 60px;
  background: #1a1a1a;
  margin-bottom: 10px;
}

.archive-side-line {
  width: 60%;
  height: 5px;
  background: #ff9d00;
  margin-bottom: 10px;
}

.archive-side-meta {
  font-size: 0.68rem;
  line-height: 1.7;
  color: #666666;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.archive-btn-wrapper {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.archive-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  color: white;
  text-decoration: none;
  border: none;
  padding: 18px 45px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-start-btn:hover {
  background-color: #ff9d00;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 157, 0, 0.3);
}

.archive-btn-hint {
  font-size: 0.76rem;
  color: #666666;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .archive-card {
    padding: 40px 28px;
  }

  .archive-header-group,
  .archive-intro-section {
    grid-template-columns: 1fr;
    display: grid;
  }

  .archive-header-group {
    gap: 12px;
    align-items: start;
  }

  .archive-version {
    white-space: normal;
  }

  .archive-side-panel {
    border-left: 0;
    border-top: 1px solid #d1d1d1;
    padding-left: 0;
    padding-top: 18px;
  }
}

@media (max-width: 640px) {
  .archive-shell {
    padding: 24px 12px 32px;
  }

  .archive-card {
    padding: 32px 20px;
  }

  .archive-title {
    font-size: 34px;
  }

  .archive-btn-wrapper {
    align-items: stretch;
  }

  .archive-start-btn {
    width: 100%;
    padding: 16px 20px;
  }
}

/* Scroll-style homepage */
.sbti-scroll-page {
  --paper-bg: #fdfaf5;
  --ink-black: #2c2c2c;
  --vermilion: #b22d24;
  --text-main: #3d3d3d;
  --text-fade: #8c8c8c;
  --accent-gold: #c9a063;
  --font-serif: "LXGW WenKai", "Source Han Serif SC", "SimSun", serif;

  background-color: var(--paper-bg);
  color: var(--text-main);
  font-family: var(--font-serif);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  padding: 32px 16px;
}

.sbti-scroll-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(44, 44, 44, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(44, 44, 44, 0.05) 0%, transparent 30%);
  z-index: 0;
  pointer-events: none;
}

.scroll-container {
  width: min(85%, 800px);
  background: rgba(255,255,255,0.96);
  padding: 60px 80px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  position: relative;
  z-index: 1;
  animation: openScroll 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes openScroll {
  from { opacity: 0; transform: scaleX(0.8); }
  to { opacity: 1; transform: scaleX(1); }
}

.corner-deco {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent-gold);
}

.tl { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.br { bottom: 15px; right: 15px; border-left: none; border-top: none; }

.sbti-scroll-page .header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.sbti-scroll-page .header::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--vermilion);
  margin: 15px auto 0;
}

.title-main {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.45rem;
  color: var(--ink-black);
}

.subtitle {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--text-fade);
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

.content-body {
  line-height: 2.2;
  font-size: 1.15rem;
  text-align: justify;
  color: var(--text-main);
  margin-bottom: 60px;
}

.keyword {
  color: var(--vermilion);
  border-bottom: 1px dashed var(--vermilion);
  padding: 0 4px;
}

.action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--ink-black);
  color: var(--ink-black);
  text-decoration: none;
  padding: 12px 45px;
  font-size: 1.25rem;
  letter-spacing: 0.4rem;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
  z-index: 1;
}

.start-btn:hover {
  color: #fff;
  border-color: var(--ink-black);
}

.start-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--ink-black);
  transition: all 0.4s;
  z-index: -1;
}

.start-btn:hover::before {
  width: 100%;
}

.footer-stamp {
  font-size: 0.75rem;
  color: var(--text-fade);
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.stamp {
  width: 40px;
  height: 40px;
  border: 2px solid var(--vermilion);
  color: var(--vermilion);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1.1;
  padding: 2px;
  opacity: 0.7;
  transform: rotate(-5deg);
}

@media (max-width: 860px) {
  .scroll-container {
    width: min(92%, 92%);
    padding: 42px 28px;
  }

  .title-main {
    font-size: 2.2rem;
    letter-spacing: 0.22rem;
  }

  .content-body {
    font-size: 1.02rem;
    line-height: 2;
  }
}

@media (max-width: 640px) {
  .sbti-scroll-page {
    padding: 18px 10px;
    align-items: flex-start;
    flex-direction: column;
  }

  .scroll-container {
    width: 100%;
    padding: 32px 18px;
  }

  .title-main {
    font-size: 1.9rem;
    letter-spacing: 0.12rem;
  }

  .start-btn {
    width: 100%;
    padding: 14px 20px;
    letter-spacing: 0.2rem;
  }

  .footer-stamp {
    flex-direction: column;
    align-items: flex-start;
  }
}

.sbti-scroll-page {
  background-image: url('/images/paper-texture.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sbti-scroll-page::before {
  background:
    linear-gradient(rgba(253, 250, 245, 0.72), rgba(253, 250, 245, 0.72)),
    radial-gradient(circle at 80% 20%, rgba(44, 44, 44, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(44, 44, 44, 0.035) 0%, transparent 30%);
}

/* Scroll-style test page */
.sbti-scroll-test-page {
  align-items: flex-start;
  padding: 28px 16px;
}

.scroll-test-container {
  width: min(92vw, 920px);
  padding: 28px 34px 36px;
}

.scroll-test-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-fade);
}

.scroll-nav-link,
.scroll-test-brand {
  color: var(--text-fade);
  text-decoration: none;
}

.scroll-nav-link {
  transition: color .25s ease, transform .25s ease;
}

.scroll-nav-link:hover {
  color: var(--vermilion);
  transform: translateX(-2px);
}

.scroll-test-header {
  margin-bottom: 28px;
}

.scroll-test-intro {
  margin: 0 auto 28px;
  text-align: center;
  color: var(--text-main);
  animation: scrollFadeUp .7s ease both;
}

.scroll-test-lead {
  margin: 0 auto;
  max-width: 620px;
  line-height: 2;
  font-size: 1.02rem;
}

.scroll-test-meta {
  margin-top: 12px;
  color: var(--text-fade);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.scroll-test-panel {
  animation: scrollFadeUp .85s ease both;
}

.scroll-card {
  border: 1px solid rgba(201, 160, 99, 0.26);
  background: rgba(255, 252, 247, 0.82);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(44, 44, 44, 0.04);
}

.scroll-test-app {
  animation: scrollFadeUp .55s ease both;
}

.scroll-progress-meta {
  color: var(--text-fade);
  font-size: 0.92rem;
}

.scroll-progress-track {
  height: 8px;
  margin-top: 14px;
  background: rgba(178, 45, 36, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.scroll-progress-bar {
  background: linear-gradient(90deg, rgba(178, 45, 36, 0.82), rgba(201, 160, 99, 0.92));
  transition: width .35s ease;
}

.scroll-question-card {
  margin-top: 22px;
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
}

.scroll-question-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0));
  pointer-events: none;
}

.scroll-question-badges {
  margin-bottom: 20px;
}

.scroll-badge {
  background: rgba(178, 45, 36, 0.06);
  border: 1px solid rgba(178, 45, 36, 0.18);
  color: var(--vermilion);
  transition: background .25s ease, border-color .25s ease;
}

.scroll-badge.is-muted {
  background: rgba(201, 160, 99, 0.08);
  border-color: rgba(201, 160, 99, 0.18);
  color: #8c7a5f;
}

.scroll-question-cn {
  position: relative;
  z-index: 1;
  color: var(--ink-black);
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  line-height: 1.75;
}

.scroll-question-en {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: var(--text-fade);
  font-size: 0.96rem;
}

.scroll-option-list {
  gap: 14px;
  margin-top: 24px;
}

.sbti-scroll-test-page .option-item {
  position: relative;
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(201, 160, 99, 0.22);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-main);
  box-shadow: 0 6px 20px rgba(44, 44, 44, 0.03);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
  animation: scrollFadeUp .35s ease both;
}

.sbti-scroll-test-page .option-item:hover {
  transform: translateY(-2px);
  border-color: rgba(178, 45, 36, 0.26);
  box-shadow: 0 10px 24px rgba(178, 45, 36, 0.08);
  background: rgba(255, 252, 248, 0.95);
}

.sbti-scroll-test-page .option-item.is-active {
  background: rgba(178, 45, 36, 0.08);
  border-color: rgba(178, 45, 36, 0.34);
  box-shadow: 0 12px 26px rgba(178, 45, 36, 0.08);
}

.sbti-scroll-test-page .option-key {
  background: linear-gradient(135deg, var(--vermilion), #c97352);
  width: 32px;
  height: 32px;
  box-shadow: 0 6px 12px rgba(178, 45, 36, 0.18);
}

.sbti-scroll-test-page .option-text {
  line-height: 1.8;
}

.scroll-selected-hint {
  margin-top: 18px;
  color: #8e5c54;
}

.scroll-test-actions {
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
}

.scroll-action-btn {
  min-width: 150px;
  border-radius: 999px;
}

.sbti-scroll-test-page .ghost-btn {
  border-color: rgba(201, 160, 99, 0.28);
  background: rgba(255,255,255,0.66);
  color: var(--ink-black);
}

.sbti-scroll-test-page .primary-btn {
  background: linear-gradient(135deg, #8f2e28, #b22d24);
  color: #fff8f2;
  box-shadow: 0 10px 24px rgba(178, 45, 36, 0.16);
}

.sbti-scroll-test-page .ghost-btn:hover,
.sbti-scroll-test-page .primary-btn:hover {
  transform: translateY(-2px);
}

@keyframes scrollFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .scroll-test-container {
    width: min(96vw, 96vw);
    padding: 24px 20px 28px;
  }

  .scroll-test-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .scroll-test-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-test-container {
    padding: 20px 16px 24px;
  }

  .scroll-question-card {
    padding: 22px 16px;
  }

  .scroll-test-actions {
    flex-direction: column;
  }

  .scroll-action-btn {
    width: 100%;
  }
}

/* Promo box */
.promo-box {
  position: fixed;
  bottom: 30px;
  right: 40px;
  width: 180px;
  background: #fff;
  border: 1px solid var(--accent-gold, #c9a063);
  padding: 15px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.08);
  transform: rotate(2deg);
  animation: float 3s ease-in-out infinite;
  z-index: 100;
}

@keyframes float {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-5px); }
}

.promo-box::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 10px;
  background: rgba(178, 45, 36, 0.2);
  border: 1px solid rgba(178, 45, 36, 0.3);
}

.promo-content {
  font-size: 0.85rem;
  color: var(--ink-black, #2c2c2c);
  line-height: 1.5;
  text-align: center;
  font-family: var(--font-serif, "Microsoft YaHei", sans-serif);
}

.promo-content b {
  color: var(--vermilion, #b22d24);
  display: block;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.promo-footer {
  font-size: 0.6rem;
  color: var(--text-fade, #8c8c8c);
  margin-top: 10px;
  text-align: right;
  font-family: sans-serif;
  letter-spacing: 0;
}

.promo-box-result {
  background: rgba(255, 250, 245, 0.96);
  border-color: rgba(205, 168, 127, 0.7);
}

@media (max-width: 860px) {
  .promo-box {
    right: 20px;
    bottom: 20px;
    width: 168px;
  }
}

@media (max-width: 640px) {
  .promo-box {
    position: static;
    width: 100%;
    max-width: 220px;
    margin: 18px auto 0;
    right: auto;
    bottom: auto;
  }

  .promo-box-scroll,
  .promo-box-result {
    transform: rotate(0deg);
    animation: none;
  }
}

.promo-box-result {
  bottom: 120px;
}

.sbti-scroll-test-page .promo-box-scroll {
  bottom: 110px;
}

@media (max-width: 860px) {
  .promo-box-result {
    bottom: 96px;
  }

  .sbti-scroll-test-page .promo-box-scroll {
    bottom: 88px;
  }
}

@media (max-width: 640px) {
  .promo-box {
    margin: 16px auto 0;
  }
}

@media (max-width: 640px) {
  .promo-box,
  .promo-box-scroll,
  .promo-box-result {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
    right: auto !important;
    bottom: auto !important;
    margin: 16px 0 0 !important;
    transform: none !important;
    animation: none !important;
    box-sizing: border-box !important;
  }

  .promo-box::before,
  .promo-box-scroll::before,
  .promo-box-result::before {
    display: none !important;
  }
}

/* Mobile promo banner override */
@media (max-width: 640px) {
  .promo-box,
  .promo-box-scroll,
  .promo-box-result {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 14px 16px !important;
    margin: 16px 0 0 !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    animation: none !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  .promo-box::before,
  .promo-box-scroll::before,
  .promo-box-result::before {
    display: none !important;
  }

  .promo-content {
    flex: 1 1 auto;
    text-align: left !important;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .promo-content b {
    margin-bottom: 4px;
    font-size: 0.92rem;
  }

  .promo-footer {
    flex: 0 0 auto;
    margin-top: 0;
    white-space: nowrap;
    text-align: right;
    font-size: 0.62rem;
  }

  .result-mobile-shell,
  .scroll-test-container,
  .scroll-container {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 420px) {
  .promo-box,
  .promo-box-scroll,
  .promo-box-result {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .promo-footer {
    width: 100%;
    text-align: left;
  }
}
