/* ═══════════════════════════════════════
   BASE & VARIABLES
═══════════════════════════════════════ */
:root {
  --black:   #111111;
  --white:   #ffffff;
  --yellow:  #FFE500;
  --offwhite: #FFFEF5;
  --gray:    #888888;
  --green:   #22c55e;
  --red:     #ef4444;
  --amber:   #f59e0b;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Noto Sans SC', sans-serif;

  --border: 2px solid var(--black);
  --radius: 0;
  --max-w: 860px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--offwhite);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 6rem 2rem 5rem;
  text-align: left;
  max-width: 100%;
  border-bottom: 3px solid var(--yellow);
  position: relative;
  overflow: hidden;
}

/* 背景点阵装饰 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,229,0,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 2rem;
  position: relative;
}
.hero-title em {
  font-style: normal;
  color: var(--yellow);
  display: block;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  position: relative;
  max-width: 480px;
  margin-bottom: 3rem;
}

.hero-scroll-hint {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: var(--yellow);
  position: relative;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ═══════════════════════════════════════
   FORM WRAP
═══════════════════════════════════════ */
.form-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

/* ── 维度区块 ── */
.dim-section {
  margin-bottom: 4rem;
  position: relative;
}

.dim-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: var(--border);
}

.dim-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.dim-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.dim-sub {
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0.5px;
}

/* ── 题目卡片 ── */
.question-card {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border: var(--border);
  transition: box-shadow 0.15s;
}
.question-card:hover {
  box-shadow: 4px 4px 0 var(--black);
}
.question-card.answered {
  border-color: var(--black);
  background: var(--white);
}
.question-card.answered .q-num {
  background: var(--yellow);
  color: var(--black);
}

.q-text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-right: 0.6rem;
  flex-shrink: 0;
  vertical-align: middle;
  transition: background 0.15s, color 0.15s;
}

.q-note {
  font-size: 0.75rem;
  color: var(--gray);
  margin-left: 0.3rem;
}

/* ── 选项按钮 ── */
.options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.opt {
  flex: 1;
  min-width: 80px;
  padding: 9px 8px;
  background: var(--offwhite);
  border: 1.5px solid rgba(17,17,17,0.2);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-align: center;
  transition: background 0.12s, border-color 0.12s, transform 0.1s;
  line-height: 1.3;
}
.opt:hover {
  background: rgba(255,229,0,0.2);
  border-color: var(--black);
}
.opt.selected {
  background: var(--yellow);
  border-color: var(--black);
  color: var(--black);
  font-weight: 700;
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--black);
}

/* ── 进度条 + 提交 ── */
.submit-area {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--black);
  border: var(--border);
}

.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.progress-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--yellow);
  width: var(--progress, 0%);
  transition: width 0.3s ease;
}

.progress-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 18px 32px;
  background: var(--yellow);
  color: var(--black);
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 3px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.submit-btn:hover:not(:disabled) {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 rgba(255,255,255,0.3);
}
.submit-btn:disabled {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.3);
  cursor: not-allowed;
}

.submit-arrow {
  font-size: 1.4rem;
}

.submit-note {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   RESULT PAGE
═══════════════════════════════════════ */
.result-page {
  min-height: 100vh;
}
.result-page.hidden {
  display: none;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── 结论横幅 ── */
.verdict-banner {
  padding: 5rem 0 4rem;
  background: var(--black);
  border-bottom: 3px solid var(--yellow);
  position: relative;
  overflow: hidden;
}
.verdict-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,229,0,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.verdict-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
  position: relative;
}

.verdict-score-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.verdict-score {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 9rem);
  line-height: 1;
  color: var(--yellow);
  letter-spacing: -2px;
}

.verdict-score-max {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(255,255,255,0.4);
}

.verdict-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  position: relative;
}

.verdict-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 540px;
  line-height: 1.8;
  position: relative;
  margin-bottom: 1.5rem;
}

.verdict-motive {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}

.motive-tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1.5px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2px;
}

/* ── 结果主体 ── */
.result-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--gray);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--border);
}

.radar-wrap canvas {
  width: 100% !important;
  max-width: 360px;
}

/* ── 维度详解 ── */
.dim-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(17,17,17,0.1);
}
.dim-detail-item:last-child { border-bottom: none; }

.dim-detail-tag {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1rem;
  flex-shrink: 0;
}

.dim-detail-info { flex: 1; }
.dim-detail-name {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.dim-detail-bar {
  height: 4px;
  background: rgba(17,17,17,0.1);
  position: relative;
}
.dim-detail-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--yellow);
  transition: width 0.8s ease;
}
.dim-detail-score {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--black);
  white-space: nowrap;
}

/* ── 建议区 ── */
.advice-section {
  padding-bottom: 4rem;
  border-top: var(--border);
  padding-top: 3rem;
}

.advice-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.advice-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: var(--white);
  border: var(--border);
  transition: box-shadow 0.15s;
}
.advice-item:hover { box-shadow: 4px 4px 0 var(--black); }

.advice-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.advice-content {}
.advice-title {
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.advice-body {
  font-size: 0.88rem;
  color: rgba(17,17,17,0.7);
  line-height: 1.7;
}

/* ── 重测区 ── */
.retry-area {
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border-top: var(--border);
}

.retry-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 3px;
  padding: 12px 28px;
  background: var(--black);
  color: var(--yellow);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.retry-btn:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--black);
}

.retry-note {
  font-size: 0.82rem;
  color: var(--gray);
}

/* ── footer ── */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.35);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 2px;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Verdict 颜色主题 ── */
.verdict-banner.level-strong { border-bottom-color: var(--green); }
.verdict-banner.level-strong .verdict-score { color: var(--green); }
.verdict-banner.level-strong .motive-tag { border-color: var(--green); color: var(--green); }

.verdict-banner.level-consider {}

.verdict-banner.level-caution { border-bottom-color: var(--amber); }
.verdict-banner.level-caution .verdict-score { color: var(--amber); }
.verdict-banner.level-caution .motive-tag { border-color: var(--amber); color: var(--amber); }

.verdict-banner.level-no { border-bottom-color: var(--red); }
.verdict-banner.level-no .verdict-score { color: var(--red); }
.verdict-banner.level-no .motive-tag { border-color: var(--red); color: var(--red); }

/* ── 响应式 ── */
@media (max-width: 680px) {
  .hero-title { font-size: 4.5rem; }
  .result-body { grid-template-columns: 1fr; gap: 2rem; }
  .verdict-score { font-size: 5rem; }
  .options { flex-direction: column; }
  .opt { min-width: unset; text-align: left; }
}
