:root {
  --bg: #120e0d;
  --bg-soft: #1d1614;
  --panel: rgba(26, 19, 17, 0.94);
  --panel-strong: rgba(34, 24, 21, 0.97);
  --line: rgba(214, 183, 147, 0.16);
  --line-strong: rgba(214, 183, 147, 0.34);
  --text: #f5eee6;
  --text-soft: rgba(245, 238, 230, 0.76);
  --gold: #d7b37f;
  --accent: #b25f45;
  --accent-soft: rgba(178, 95, 69, 0.16);
  --ok: #84a789;
  --warn: #c97763;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --title-font: "Songti SC", "STSong", "Noto Serif SC", serif;
  --body-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(178, 95, 69, 0.14), transparent 24%),
    radial-gradient(circle at 82% 6%, rgba(215, 179, 127, 0.10), transparent 20%),
    linear-gradient(180deg, #171110 0%, #120e0d 42%, #0e0b0a 100%);
  color: var(--text);
  font-family: var(--body-font);
  scroll-behavior: smooth;
}

body {
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

a {
  color: inherit;
}

button {
  font: inherit;
  touch-action: manipulation;
}

button:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid rgba(215, 179, 127, 0.92);
  outline-offset: 3px;
}

.app-shell {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.skip-link {
  position: fixed;
  top: -42px;
  left: 16px;
  z-index: 40;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(10, 7, 6, 0.96);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  transition: top 0.16s ease;
}

.skip-link:focus-visible {
  top: 16px;
}

.product-card,
.section-card,
.question-option,
.role-chip,
.phase-chip,
.result-box,
.role-spotlight,
.perspective-item,
.timeline-item,
.summary-item {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-card,
.section-card {
  border-radius: var(--radius-xl);
  background: var(--panel);
}

.product-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  position: relative;
}

.product-cover {
  min-height: 224px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.52)),
    center / cover no-repeat;
}

.product-body {
  padding: 22px;
  display: grid;
  gap: 12px;
}

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

.hero-stat {
  border-radius: var(--radius-md);
  border: 1px solid rgba(214, 183, 147, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(178, 95, 69, 0.09));
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}

.hero-stat-value {
  font-family: var(--title-font);
  font-size: 26px;
  color: var(--text);
}

.hero-stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.quick-nav {
  position: sticky;
  top: max(12px, env(safe-area-inset-top));
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(14, 11, 10, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 183, 147, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.quick-link:hover,
.quick-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(178, 95, 69, 0.52);
  background: rgba(178, 95, 69, 0.14);
}

.product-meta,
.section-kicker,
.mini-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-title,
.section-title,
.question-title,
.role-name,
.result-title,
.timeline-title {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product-title {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.02;
}

.product-subtitle {
  font-size: 17px;
  color: var(--text);
}

.product-copy,
.body-copy,
.question-copy,
.result-copy,
.role-copy,
.perspective-copy,
.timeline-copy,
.timeline-bullet,
.section-note {
  color: var(--text-soft);
  line-height: 1.72;
}

.product-tags,
.product-actions,
.test-actions,
.result-actions,
.phase-chip-row,
.mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag,
.chip,
.mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(214, 183, 147, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 13px;
}

.primary-button,
.secondary-button {
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.primary-button {
  border: none;
  background: linear-gradient(90deg, var(--accent), #d08764);
  color: #fff9f4;
  font-weight: 700;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover,
.question-option:hover,
.role-chip:hover,
.phase-chip:hover {
  transform: translateY(-1px);
}

.main-column {
  display: grid;
  gap: 16px;
}

.section-card {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: end;
}

.section-title {
  font-size: clamp(24px, 4vw, 34px);
}

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

.intro-item,
.result-box,
.summary-item {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
}

.intro-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #b25f45, #d7b37f);
  transition: width 0.18s ease;
}

.question-panel {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(178, 95, 69, 0.12), rgba(255, 255, 255, 0.03)),
    var(--panel-strong);
  padding: 18px;
  display: grid;
  gap: 16px;
}

.question-index {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.question-headrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.question-tip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(214, 183, 147, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 13px;
}

.question-title {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.18;
}

.question-options {
  display: grid;
  gap: 10px;
}

.question-option {
  width: 100%;
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  cursor: pointer;
}

.question-option.selected {
  border-color: rgba(178, 95, 69, 0.54);
  background: linear-gradient(180deg, rgba(178, 95, 69, 0.18), rgba(255, 255, 255, 0.05));
}

.question-option-title {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 6px;
}

.question-option-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.question-option-meta {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(214, 183, 147, 0.18);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.result-stack,
.score-list,
.perspective-list,
.timeline-list {
  display: grid;
  gap: 12px;
}

.result-stack {
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.92fr);
}

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

.result-box {
  display: grid;
  gap: 10px;
}

.result-primary {
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: stretch;
}

.result-visual {
  min-height: 224px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.48)),
    center / cover no-repeat;
}

.result-main {
  display: grid;
  gap: 10px;
}

.result-subcopy {
  color: var(--gold);
  font-size: 13px;
}

.result-secondary {
  align-content: start;
}

.result-rank {
  grid-column: 1 / -1;
}

.result-visual-small {
  min-height: 148px;
}

.result-title {
  font-size: clamp(28px, 4vw, 40px);
}

.result-title-small {
  font-size: clamp(24px, 3vw, 32px);
}

.test-note {
  color: var(--text-soft);
  font-size: 13px;
}

.score-item {
  display: grid;
  gap: 8px;
}

.score-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.score-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.score-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b25f45, #d7b37f);
}

.role-chip,
.phase-chip {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.role-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.role-chip {
  border-radius: var(--radius-lg);
  padding: 10px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
}

.role-chip-visual {
  min-height: 90px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.44)),
    center / cover no-repeat;
}

.role-chip-body {
  display: grid;
  gap: 4px;
}

.role-chip-name {
  font-family: var(--title-font);
  font-size: 20px;
}

.role-chip-subtitle {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.phase-chip {
  border-radius: 999px;
  padding: 10px 14px;
}

.role-chip.active,
.phase-chip.active,
.secondary-button.active {
  border-color: rgba(178, 95, 69, 0.54);
  background: rgba(178, 95, 69, 0.16);
}

.role-spotlight {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--panel-strong);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}

.role-visual {
  min-height: 240px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.44)),
    center / cover no-repeat;
}

.role-content {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.role-head {
  display: grid;
  gap: 6px;
}

.role-name {
  font-size: clamp(28px, 4vw, 40px);
}

.role-subtitle {
  color: var(--gold);
}

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

.detail-box {
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.detail-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-lines {
  display: grid;
  gap: 8px;
}

.detail-line {
  position: relative;
  padding-left: 14px;
  color: var(--text-soft);
  line-height: 1.68;
}

.detail-line::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

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

.perspective-feature {
  display: grid;
}

.perspective-feature-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel-strong);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.perspective-feature-visual {
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46)),
    center / cover no-repeat;
}

.perspective-feature-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.perspective-item,
.timeline-item {
  border-radius: var(--radius-lg);
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.perspective-item.active {
  border-color: rgba(178, 95, 69, 0.52);
  background: linear-gradient(180deg, rgba(178, 95, 69, 0.14), rgba(255, 255, 255, 0.04));
}

.perspective-shell {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.perspective-visual {
  min-height: 116px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.44)),
    center / cover no-repeat;
}

.perspective-main {
  display: grid;
  gap: 8px;
}

.perspective-focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(178, 95, 69, 0.4);
  color: var(--gold);
  background: rgba(178, 95, 69, 0.14);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.perspective-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.perspective-name {
  font-family: var(--title-font);
  font-size: 22px;
}

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

.summary-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.timeline-item {
  display: grid;
  gap: 10px;
  position: relative;
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.timeline-cluster {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.timeline-main {
  display: grid;
  gap: 6px;
}

.timeline-step {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(214, 183, 147, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.timeline-copy {
  margin: 0;
}

.timeline-visual {
  min-height: 148px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46)),
    center / cover no-repeat;
}

.timeline-title {
  font-size: 24px;
}

.timeline-time {
  color: var(--gold);
  font-weight: 700;
}

.timeline-bullets {
  display: grid;
  gap: 6px;
}

@media (max-width: 860px) {
  .product-card,
  .hero-stats,
  .result-stack,
  .result-primary,
  .role-spotlight,
  .perspective-feature-card,
  .intro-grid,
  .role-chip-row,
  .role-grid,
  .perspective-list,
  .timeline-summary {
    grid-template-columns: 1fr;
  }

  .product-cover {
    min-height: 260px;
  }

  .product-body,
  .section-card {
    padding: 16px;
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .quick-nav {
    border-radius: var(--radius-lg);
  }

  .timeline-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .perspective-shell {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .perspective-visual {
    min-height: 96px;
  }
}

#roleTest,
#roleRoster,
#perspectiveSection,
#timelineSection {
  scroll-margin-top: 96px;
}
