/* ==========================================================================
   Deadly Sins Test — 黑曜冷银 × 微量圣殿金 × 猩红点睛
   严格还原确认版视觉稿：深邃克制、冷银几何、手术刀式猩红 CTA
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #07080b;
  --bg-elevated: #0e1017;
  --surface: rgba(16, 19, 27, 0.82);
  --surface-solid: #11141c;
  --surface-hover: rgba(24, 29, 40, 0.94);
  --ink: #f4f1ea;
  --ink-soft: #abb3c3;
  --ink-dim: #7f889a;
  --silver: #d8dee9;
  --silver-bright: #eef2f8;
  --gold: #dfd0b2;
  --gold-deep: #b8a37c;
  --crimson: #d92b3a;
  --crimson-bright: #ef3b4b;
  --line: rgba(216, 222, 233, 0.12);
  --line-strong: rgba(216, 222, 233, 0.28);
  --line-gold: rgba(223, 208, 178, 0.34);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-editorial: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-card: 0 24px 64px rgba(0, 0, 0, 0.72);
  --shadow-silver: 0 0 42px rgba(216, 222, 233, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 58% 480px at 78% 12%, rgba(132, 154, 190, 0.16), transparent 72%),
    radial-gradient(ellipse 42% 380px at 18% 28%, rgba(223, 208, 178, 0.05), transparent 70%),
    radial-gradient(ellipse 56% 460px at 50% 88%, rgba(120, 140, 175, 0.07), transparent 75%);
  color: var(--ink);
  font: 16px/1.68 var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景冷银与微金星尘画布 */
#embers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1180px, 90%);
  margin-inline: auto;
}

a {
  color: inherit;
  text-underline-offset: 4px;
  transition: color 0.22s ease;
}

a:hover {
  color: var(--gold);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--silver-bright);
  outline-offset: 3px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

/* ==========================================================================
   顶部悬浮圆角毛玻璃导航栏（1:1 还原效果图）
   ========================================================================== */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  width: min(1220px, 94%);
  margin: 14px auto 0;
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(35, 41, 52, 0.72) 0%, rgba(19, 23, 31, 0.8) 100%);
  border: 1px solid rgba(216, 224, 238, 0.16);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.site-header .container {
  width: 100%;
  padding-inline: 26px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.brand em {
  font-style: normal;
  color: var(--gold);
  font-weight: 500;
}

.brand-sigil {
  display: inline-flex;
  width: 34px;
  height: 34px;
  color: var(--silver);
  flex-shrink: 0;
}

.brand-sigil svg {
  width: 100%;
  height: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease-out);
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(216, 222, 233, 0.36);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: 600 13.5px var(--font-sans);
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s var(--ease-out);
}

.nav-cta:hover {
  background: rgba(216, 222, 233, 0.14);
  border-color: var(--silver-bright);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   按钮组件 — 猩红仅保留在核心主 CTA 上做手术刀式点睛
   ========================================================================== */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid rgba(255, 130, 142, 0.38);
  border-radius: 999px;
  background: linear-gradient(135deg, #e53545 0%, #c82233 60%, #ad1928 100%);
  color: #ffffff;
  font: 600 15px var(--font-sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(217, 43, 58, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.26s var(--ease-out), box-shadow 0.26s ease, filter 0.26s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease-out);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(217, 43, 58, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  filter: brightness(1.06);
}

.btn-primary:hover:not(:disabled)::before {
  left: 145%;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(216, 222, 233, 0.12);
  color: rgba(216, 222, 233, 0.34);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-primary.btn-sm {
  padding: 11px 20px;
  font-size: 14px;
}

.btn-arrow {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease-out);
}

.btn-primary:hover:not(:disabled) .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(216, 222, 233, 0.32);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: 500 14px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s var(--ease-out);
}

.btn-ghost {
  padding: 13px 24px;
  font-size: 14.5px;
}

.btn-ghost:hover,
.btn-secondary:hover:not(:disabled) {
  background: rgba(216, 222, 233, 0.1);
  border-color: var(--silver-bright);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary.is-confirming {
  border-color: var(--crimson-bright);
  background: rgba(217, 43, 58, 0.18);
  color: #ffd6da;
}

/* ==========================================================================
   首屏 Hero 与 3D 冷银黑曜塔罗祭坛（1:1 还原效果图构图）
   ========================================================================== */
.hero {
  padding: clamp(34px, 4.4vw, 56px) 0 clamp(26px, 3vw, 40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca5b6;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* 手术刀式猩红指示点 */
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson-bright);
  box-shadow: 0 0 12px rgba(239, 59, 75, 0.9);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
}

.hero-copy h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero-lead {
  font-family: var(--font-editorial);
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.52;
  max-width: 44ch;
  color: #b4bccb;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

/* 极简圆点分隔四项指标，无多余分割线 */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: #9aa3b4;
}

.hero-meta i {
  font-style: normal;
  color: rgba(216, 222, 233, 0.45);
  margin: 0 2px;
}

/* 右侧 3D 塔罗牌舞台 */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

.heptagram-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(390px, 88%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: spinSlow 54s linear infinite;
  filter: drop-shadow(0 0 20px rgba(216, 222, 233, 0.18));
}

.tarot-deck {
  position: relative;
  width: min(440px, 100%);
  height: 356px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease-out;
}

.tarot-card {
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  position: absolute;
  width: 176px;
  aspect-ratio: 0.62;
  padding: 10px 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(223, 208, 178, 0.36);
  background: linear-gradient(170deg, #12151e 0%, #090b10 100%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(216, 222, 233, 0.06) inset;
  transform-origin: 50% 88%;
  transition: transform 0.45s var(--ease-out), box-shadow 0.38s ease, border-color 0.3s ease;
}

/* 卡牌内部双层冷银微金细框 */
.tarot-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(223, 208, 178, 0.28);
  border-radius: 8px;
  pointer-events: none;
}

.card-foil {
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(238, 242, 248, 0.14) 48%,
    rgba(223, 208, 178, 0.24) 50%,
    rgba(238, 242, 248, 0.08) 52%,
    transparent 65%
  );
  transform: translateX(-85%) rotate(12deg);
  transition: transform 0.78s var(--ease-out);
  pointer-events: none;
  z-index: 3;
}

.tarot-card:hover .card-foil {
  transform: translateX(85%) rotate(12deg);
}

/* 拱形内框承载暗底银白古典版画 */
.card-arch {
  flex: 1;
  min-height: 0;
  border-radius: 86px 86px 4px 4px;
  overflow: hidden;
  border: 1px solid rgba(223, 208, 178, 0.48);
  background: #0a0c11;
  position: relative;
  display: block;
}

.card-arch::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 82px 82px 2px 2px;
  border: 1px solid rgba(216, 222, 233, 0.24);
  pointer-events: none;
}

.card-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transform: scale(1.06);
  transition: transform 0.55s var(--ease-out);
}

.tarot-card:hover .card-arch img {
  transform: scale(1.12);
}

.card-title {
  display: block;
  text-align: center;
  font-family: var(--font-editorial);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.1;
  padding-bottom: 1px;
}

/* 三张牌扇形层次：左 Envy、中 Pride 主位、右 Wrath */
.card-envy {
  transform: translate(-102px, 12px) rotate(-14deg);
  z-index: 1;
}

.card-wrath {
  transform: translate(102px, 12px) rotate(14deg);
  z-index: 1;
}

.card-pride {
  transform: translate(0, -10px) rotate(0deg);
  z-index: 2;
  border-color: rgba(223, 208, 178, 0.62);
  animation: floatCard 5.2s ease-in-out infinite;
}

.tarot-deck:hover .card-envy {
  transform: translate(-118px, 10px) rotate(-17deg);
}

.tarot-deck:hover .card-wrath {
  transform: translate(118px, 10px) rotate(17deg);
}

.tarot-card:hover {
  z-index: 5 !important;
  border-color: var(--gold);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.88),
    0 0 32px rgba(223, 208, 178, 0.24);
}

.card-envy:hover {
  transform: translate(-122px, -8px) rotate(-11deg) scale(1.05) !important;
}

.card-wrath:hover {
  transform: translate(122px, -8px) rotate(11deg) scale(1.05) !important;
}

.card-pride:hover {
  animation-play-state: paused;
  transform: translate(0, -22px) rotate(0deg) scale(1.06) !important;
}

/* ==========================================================================
   通用分区与滚动显现动效
   ========================================================================== */
.section {
  padding: clamp(54px, 6vw, 88px) 0;
  scroll-margin-top: 90px;
}

/* 示例雷达图区紧贴首屏下方探头呈现，复刻效果图首屏构图 */
.sample-section {
  padding-top: 10px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 3.6vw, 46px);
}

.section-head p {
  font-size: 16.5px;
  margin-bottom: 0;
}

/* ==========================================================================
   实时交互示例雷达图预览区 (#sample) — 左雷达图 + 右进度条（1:1 复刻效果图）
   ========================================================================== */
.sample-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
  padding: clamp(26px, 3.6vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(216, 222, 233, 0.16);
  background:
    radial-gradient(ellipse 65% 80% at 22% 50%, rgba(160, 178, 210, 0.08), transparent 70%),
    linear-gradient(155deg, rgba(22, 26, 35, 0.88), rgba(12, 14, 20, 0.94));
  box-shadow: var(--shadow-card), var(--shadow-silver);
}

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

.sample-info h2 {
  margin: 8px 0 0;
  font-size: clamp(22px, 2.4vw, 30px);
}

.preset-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(7, 8, 12, 0.78);
  border: 1px solid var(--line);
}

.preset-tab {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: 600 13px var(--font-sans);
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

.preset-tab:hover {
  color: var(--ink);
}

.preset-tab.is-active {
  background: rgba(216, 222, 233, 0.14);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--line-gold);
}

.sample-bars,
.result-bars {
  display: grid;
  gap: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 46px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.bar-label {
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sin-color, var(--gold));
  box-shadow: 0 0 8px color-mix(in srgb, var(--sin-color, var(--gold)) 70%, transparent);
  flex-shrink: 0;
}

.bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(216, 222, 233, 0.09);
  overflow: hidden;
}

/* 进度条采用克制冷银 + 圣殿香槟金渐变，呼应确认稿 */
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9fa9bc 0%, #d8dee9 55%, var(--gold) 100%);
  width: var(--pct, 0%);
  transition: width 0.6s var(--ease-out);
}

.bar-row.is-peak .bar-fill {
  background: linear-gradient(90deg, #c2ad84 0%, #efe2c6 100%);
  box-shadow: 0 0 12px rgba(223, 208, 178, 0.45);
}

.bar-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--silver-bright);
  font-size: 13.5px;
}

.sample-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.sample-note {
  font-size: 13px;
  color: var(--ink-dim);
}

.sample-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.radar-shell {
  width: min(360px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}

.radar-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.radar-polygon {
  transition: all 0.52s var(--ease-out);
}

.radar-point {
  transition: cx 0.52s var(--ease-out), cy 0.52s var(--ease-out), r 0.2s ease;
  cursor: pointer;
}

.radar-point:hover {
  r: 7;
}

.sample-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: rgba(10, 12, 18, 0.85);
  font-size: 13.5px;
}

.badge-label {
  color: var(--ink-dim);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.sample-badge strong {
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   七宗罪图鉴画廊 (#sins) — 4 + 3 居中对称排布，银白蚀刻暗卡风格
   ========================================================================== */
.sin-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.sin-card {
  --sin-accent: var(--gold);
  flex: 0 1 calc(25% - 15px);
  min-width: 240px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.32s var(--ease-out), border-color 0.32s ease, box-shadow 0.32s ease;
}

.sin-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-gold);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.65),
    0 0 26px rgba(216, 222, 233, 0.1);
}

.sin-card-media {
  position: relative;
  aspect-ratio: 0.92;
  overflow: hidden;
  background: #090b10;
  border-bottom: 1px solid var(--line);
}

.sin-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 19, 27, 0.72) 0%, transparent 34%);
  pointer-events: none;
}

.sin-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transform: scale(1.04);
  transition: transform 0.55s var(--ease-out);
}

.sin-card:hover .sin-card-media img {
  transform: scale(1.1);
}

.sin-numeral {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 8, 11, 0.88);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.sin-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sin-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sin-header h3 {
  font-size: 21px;
  color: var(--ink);
}

.sin-latin {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 15.5px;
  color: var(--gold);
}

.sin-card-body p {
  font-size: 14px;
  line-height: 1.62;
  margin-bottom: 16px;
  flex: 1;
}

.sin-footer {
  padding-top: 12px;
  border-top: 1px solid rgba(216, 222, 233, 0.08);
}

.virtue-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-dim);
}

.virtue-pill strong {
  color: var(--silver-bright);
  font-weight: 600;
}

/* ==========================================================================
   GEO 结构化对照表
   ========================================================================== */
.reference-table-wrap {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.table-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.table-header h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.table-header p {
  margin: 0;
  font-size: 14.5px;
}

.table-scroll {
  overflow-x: auto;
}

.reference-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 14.5px;
}

.reference-table th,
.reference-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(216, 222, 233, 0.07);
}

.reference-table th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gold);
  background: rgba(7, 8, 11, 0.72);
}

.reference-table tbody tr:hover {
  background: rgba(216, 222, 233, 0.04);
}

.reference-table tbody tr:last-child td {
  border-bottom: 0;
}

.reference-table td strong {
  color: var(--ink);
}

.reference-table td em {
  font-family: var(--font-editorial);
  font-size: 16px;
  color: var(--gold);
}

/* ==========================================================================
   透明计分方法 (#scoring)
   ========================================================================== */
.scoring-section {
  border-top: 1px solid var(--line);
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.formula-card {
  padding: 26px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.formula-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-3px);
}

.formula-num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: rgba(216, 222, 233, 0.06);
  border: 1px solid var(--line-gold);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
  font-size: 15px;
}

.formula-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--ink);
}

.formula-card p {
  margin: 0;
  font-size: 14.5px;
}

/* ==========================================================================
   深度指南 (#guide)
   ========================================================================== */
.guide-section {
  border-top: 1px solid var(--line);
}

.guide-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.guide-index {
  position: sticky;
  top: 96px;
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.guide-index h2 {
  margin: 10px 0 18px;
  font-size: 24px;
}

.guide-index nav {
  display: grid;
  margin-bottom: 22px;
}

.guide-index nav a {
  padding: 11px 0;
  border-top: 1px solid rgba(216, 222, 233, 0.08);
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-soft);
}

.guide-index nav a:hover {
  color: var(--gold);
}

.guide-mini-cta {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.guide-mini-cta p {
  font-size: 13.5px;
  margin-bottom: 12px;
}

.guide-mini-cta .btn-primary {
  width: 100%;
}

.guide-reading {
  max-width: 68ch;
}

.reading-intro {
  font-family: var(--font-editorial);
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 28px;
}

.guide-reading h3 {
  margin: 34px 0 12px;
  font-size: 24px;
  color: var(--ink);
  scroll-margin-top: 96px;
}

.scenario-list {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.scenario-list li {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(216, 222, 233, 0.08);
  background: rgba(16, 19, 27, 0.72);
  color: var(--ink-soft);
  font-size: 15px;
}

.scenario-list strong {
  color: var(--gold);
}

/* ==========================================================================
   底部高频问答 FAQ (#faq)
   ========================================================================== */
.faq-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 17, 24, 0.45) 0%, rgba(7, 8, 11, 0.92) 100%);
}

.faq-container {
  max-width: 860px;
}

.faq-head {
  text-align: center;
  margin: 0 auto 36px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 18px 22px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-list details[open] {
  border-color: var(--line-gold);
  background: rgba(20, 24, 34, 0.92);
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
}

/* ==========================================================================
   交互式答题与结果大厅 (#play)
   ========================================================================== */
.play-section {
  padding: clamp(28px, 4.5vw, 56px) 0;
}

.quiz-chamber {
  width: min(880px, 92%);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 70% 55% at 85% 0%, rgba(160, 178, 210, 0.1), transparent 68%),
    linear-gradient(160deg, rgba(18, 21, 30, 0.96), rgba(9, 11, 16, 0.98));
  box-shadow: var(--shadow-card), var(--shadow-silver);
  animation: panelReveal 0.42s var(--ease-out);
}

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

.quiz-step-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.quiz-exit {
  background: transparent;
  border: 0;
  color: #a4abbb;
  font: 500 13.5px var(--font-sans);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.quiz-exit:hover {
  color: #fff;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(216, 222, 233, 0.09);
  overflow: hidden;
  margin-bottom: 28px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #98a4ba 0%, #d8dee9 55%, #dfd0b2 100%);
  transition: width 0.4s var(--ease-out);
  box-shadow: 0 0 12px rgba(223, 208, 178, 0.36);
}

.question-stage {
  animation: questionFade 0.3s var(--ease-out);
}

.question-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.28;
  color: var(--ink);
  margin: 0 0 10px;
}

.question-text:focus {
  outline: none;
}

.question-sub {
  font-size: 14.5px;
  color: #9ba3b4;
  margin-bottom: 24px;
}

.choices-grid {
  display: grid;
  gap: 10px;
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 13px;
  border: 1px solid rgba(216, 222, 233, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  font: 500 15.5px var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.choice-btn:hover {
  border-color: rgba(216, 222, 233, 0.42);
  background: rgba(216, 222, 233, 0.06);
  transform: translateX(4px);
}

.choice-btn[aria-pressed="true"] {
  border-color: var(--gold);
  background: linear-gradient(120deg, rgba(223, 208, 178, 0.16), rgba(216, 222, 233, 0.08));
  color: #ffffff;
  box-shadow: 0 0 20px rgba(223, 208, 178, 0.14);
}

.choice-orb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.8px solid rgba(216, 222, 233, 0.36);
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.choice-btn[aria-pressed="true"] .choice-orb {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(223, 208, 178, 0.7);
}

.choice-key {
  margin-left: auto;
  font-size: 12px;
  color: #9ba3b4;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(216, 222, 233, 0.14);
}

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.kbd-hint {
  font-size: 13px;
  color: #9ba3b4;
}

/* 仪式感揭晓过场 */
.ritual-reveal {
  text-align: center;
  padding: 56px 20px;
}

.ritual-orb {
  width: 66px;
  height: 66px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  border-top-color: transparent;
  animation: spinSlow 0.9s linear infinite;
  box-shadow: 0 0 28px rgba(223, 208, 178, 0.3);
}

.ritual-reveal h2 {
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 8px;
}

/* 结果面板 */
.result-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.result-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.result-title {
  font-size: clamp(32px, 4.2vw, 52px);
  color: var(--ink);
  margin-bottom: 6px;
}

.result-archetype {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 14px;
}

.result-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: #c2c8d4;
  margin-bottom: 18px;
}

.result-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--ink-soft);
}

.result-pill strong {
  color: var(--ink);
}

.result-art-frame {
  position: relative;
  display: flex;
  justify-content: center;
}

.result-tarot {
  width: 196px;
  aspect-ratio: 0.66;
  padding: 11px;
  border-radius: 13px;
  border: 1px solid rgba(223, 208, 178, 0.55);
  background: linear-gradient(168deg, #131620 0%, #090b10 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.76), 0 0 32px rgba(223, 208, 178, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-tarot-img-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 82px 82px 5px 5px;
  overflow: hidden;
  border: 1px solid rgba(223, 208, 178, 0.34);
  background: #0a0c11;
}

.result-tarot-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 11, 16, 0.52) 0%, transparent 32%);
  pointer-events: none;
}

.result-tarot-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transform: scale(1.06);
}

.result-tarot span {
  text-align: center;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 14.5px;
  letter-spacing: 0.1em;
}

.result-analytics {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

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

.bars-head h3 {
  font-size: 20px;
}

.sort-toggle {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font: 600 12px var(--font-sans);
  cursor: pointer;
}

.sort-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.status-msg {
  margin: 12px 0 0;
  min-height: 20px;
  font-size: 13.5px;
  color: var(--gold);
}

/* ==========================================================================
   底部页脚与 Noscript
   ========================================================================== */
.noscript-banner {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  background: #050608;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--ink-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-links a {
  text-decoration: none;
}

/* ==========================================================================
   关键帧动画
   ========================================================================== */
@keyframes spinSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatCard {
  0%, 100% { transform: translate(0, -10px) rotate(0deg); }
  50% { transform: translate(0, -19px) rotate(0.8deg); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.42; transform: scale(0.82); }
}

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

@keyframes questionFade {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   响应式适配
   ========================================================================== */
@media (max-width: 1040px) {
  .sin-card {
    flex: 0 1 calc(50% - 10px);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .sample-card,
  .formula-grid,
  .result-hero,
  .result-analytics,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-index {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 8px;
    margin-top: 8px;
  }

  .site-header .container {
    padding-inline: 16px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1 {
    white-space: normal;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .tarot-deck {
    height: 290px;
  }

  .tarot-card {
    width: 146px;
    padding: 9px;
  }

  .card-title {
    font-size: 15.5px;
  }

  .card-envy {
    transform: translate(-68px, 12px) rotate(-17deg);
  }

  .card-wrath {
    transform: translate(68px, 12px) rotate(17deg);
  }

  .sin-card {
    flex: 1 1 100%;
  }

  .kbd-hint,
  .choice-key {
    display: none;
  }

  .quiz-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
