:root {
  --bg: #0b0c0f;
  --panel: #14161b;
  --panel2: #171a20;
  --line: #262931;
  --gold: #c8a15a;
  --gold-light: #d8b46f;
  --text: #e9e7e2;
  --muted: #8b919c;
  --faint: #5a6270;
  --hero-blue: #5b8fb9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; touch-action: manipulation; -ms-touch-action: manipulation; }
body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 50% -140px, rgba(200, 161, 90, 0.10), transparent 70%) no-repeat,
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.shell > main#app {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.topbar {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff22;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.brand-mark { color: var(--gold); display: inline-flex; line-height: 1; }
.brand-mark svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.top-note { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }

main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 30px 0;
  flex: 1;
  display: flex;
  align-items: safe center;
}

.footer {
  margin-top: auto;
  flex-shrink: 0;
  text-align: center;
  padding: 56px 20px max(24px, env(safe-area-inset-bottom, 0px));
}
.footer .footer-tip {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}
.footer .footer-copy {
  margin: 7px 0 0;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--faint);
}

.eyebrow {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* 首页双栏：DOM 顺序为左侧视觉区 → .hero-copy，与投资/历史一致，勿用 order 对调 */
.hero {
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
}
.hero-copy { min-width: 0; display: flex; flex-direction: column; text-align: left; }
.hero-lead { color: var(--muted); line-height: 1.9; max-width: 540px; font-size: 16px; margin: 0; }
.hero h1 {
  font-size: clamp(48px, 6.2vw, 70px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p {
  color: var(--muted);
  line-height: 1.9;
  max-width: 480px;
  font-size: 16px;
}

.button {
  border: 0;
  border-radius: 11px;
  background: var(--gold);
  color: #191307;
  font-weight: 700;
  padding: 16px 25px;
  min-height: 56px;
  transition: 0.2s;
}
.button:hover { background: var(--gold-light); transform: translateY(-2px); }

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  white-space: nowrap;
  min-width: 212px;
}
.start-main { display: inline-flex; align-items: center; gap: 6px; }
.btn-arrow { font-size: 1.08em; line-height: 1; }
.start-button:has(.start-access:not([hidden])) .btn-arrow { display: none; }
.start-access[hidden] { display: none; }
.start-access {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.start-access svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lane-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.lane-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent);
}
.lane-dots-label {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.1em;
  margin-left: 4px;
}

/* ===== 首页样本报告卡 ===== */
.report-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.report-stage::before {
  content: "";
  position: absolute;
  width: min(92vw, 360px);
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 161, 90, 0.16), transparent 65%);
  filter: blur(8px);
  pointer-events: none;
}
.report {
  position: relative;
  width: min(100%, 344px);
  height: 500px;
  border-radius: 24px;
  border: 1px solid #c8a15a44;
  background: linear-gradient(160deg, #181b22, #101218 70%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  animation: floatCard 4.5s ease-in-out infinite;
  overflow: hidden;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.report-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 700;
  flex-shrink: 0;
}
.report-top .kicker-meta { letter-spacing: 0.2em; }
.report-top .live { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-light); }
.report-top .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: reportPulse 1.6s infinite;
}
@keyframes reportPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.report-hero {
  flex-shrink: 0;
  margin: 12px 0 0;
  text-align: center;
  width: 100%;
}
.report-hero-main {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  text-align: left;
}
.hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.report-hero .hname {
  flex: 1;
  min-width: 0;
  font-size: 32px;
  font-weight: 850;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0;
  transition: opacity 0.35s;
}
.hero-title {
  margin: 7px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  transition: opacity 0.35s;
  line-height: 1.35;
}
.fit-score {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  white-space: nowrap;
  text-align: right;
  padding-top: 2px;
}
.fit-score b {
  font-size: 26px;
  color: var(--gold-light);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fit-score .fit-label {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-top: 3px;
}
.chips {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.chip {
  font-size: 10px;
  color: var(--gold-light);
  border: 1px solid #c8a15a55;
  background: #c8a15a12;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.report-radar {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 4px 0 2px;
  padding: 0 2px;
  width: 100%;
}
.report-radar svg.radar-main {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}
.radar-legend {
  display: flex;
  justify-content: center;
  font-size: 9px;
  color: var(--muted);
  margin: 4px 0 0;
  letter-spacing: 0.04em;
}
.radar-legend .legend-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.radar-legend i {
  display: inline-block;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 4px;
  position: relative;
  top: -1px;
}
.lg-you { background: var(--gold); }
.lg-hero { background: var(--hero-blue); opacity: 0.92; }
.report-summary {
  flex-shrink: 0;
  border-top: 1px solid #ffffff12;
  padding-top: 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sum-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #c4c8cf;
  line-height: 1.42;
  transition: opacity 0.3s;
}
.sum-ico {
  flex: none;
  width: 15px;
  height: calc(1em * 1.42);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  margin-top: 0;
}
.sum-ico svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .report { animation: none; }
  .report-top .dot { animation: none; }
}

/* 访问码弹窗 */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.78);
  backdrop-filter: blur(7px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}
.access-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 34px;
  background: linear-gradient(155deg, #171a20, #101216 78%);
  border: 1px solid rgba(200, 161, 90, 0.35);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}
.access-close {
  position: absolute;
  right: 17px;
  top: 13px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  border-radius: 8px;
}
.access-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.access-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(200, 161, 90, 0.1);
  border: 1px solid rgba(200, 161, 90, 0.35);
  border-radius: 13px;
  margin-bottom: 24px;
}
.access-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.access-eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.access-panel h2 {
  font-size: 29px;
  letter-spacing: 0.02em;
  margin: 9px 0 10px;
}
.access-panel > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 27px;
}
.access-form { display: grid; gap: 10px; }
.access-form label {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}
.access-form input {
  width: 100%;
  height: 51px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0f13;
  color: #fff;
  padding: 0 15px;
  font: inherit;
  outline: none;
}
.access-form input::placeholder { color: var(--faint); }
.access-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 161, 90, 0.15);
}
.access-error {
  font-size: 12px;
  color: #ffb8aa;
  line-height: 1.5;
  margin: 0;
}
.access-error[hidden] { display: none; }
.access-submit { width: 100%; margin-top: 8px; }

/* ---------- 移动端：恢复原版顺序，雷达图在标题下 ---------- */
@media (max-width: 750px) {
  .shell { min-height: 100dvh; }
  .topbar { padding: 17px 24px; }
  .brand { font-size: 10px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .top-note { display: none; }
  main {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8px 24px 0;
  }
  .footer { padding: 56px 24px max(24px, env(safe-area-inset-bottom, 0px)); font-size: 11px; }

  .hero {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 22px;
    align-items: stretch;
    text-align: left;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    min-width: 0;
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 48px);
    margin: 16px 0 19px;
    letter-spacing: 0.05em;
    line-height: 1.27;
  }
  .report-stage {
    width: 100%;
    flex: none;
  }
  .report-stage::before {
    width: 100%;
    height: 300px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }
  .report {
    height: 318px;
    min-height: 318px;
    width: 100%;
    max-width: none;
    padding: 11px 14px 9px;
    border-radius: 18px;
    animation: none;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .report-top { font-size: 8px; letter-spacing: 0.14em; }
  .report-hero { margin: 6px 0 0; }
  .report-hero-main { max-width: none; }
  .report-hero .hname { font-size: 28px; }
  .hero-title { margin-top: 6px; font-size: 11px; }
  .fit-score b { font-size: 24px; }
  .fit-score .fit-label { font-size: 7.5px; }
  .chips { margin-top: 9px; gap: 4px; justify-content: flex-start; width: 100%; }
  .chip { font-size: 8.5px; padding: 2px 8px; }
  .report-radar {
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    margin: 4px 0 2px;
    min-height: 132px;
    padding: 0;
    width: 100%;
    overflow: visible;
  }
  .report-radar svg.radar-main {
    max-width: 100%;
    width: 100%;
    height: auto;
    transform: none !important;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
  }
  .radar-legend {
    font-size: 8px;
    margin-top: 3px;
    justify-content: flex-end;
    width: 100%;
    padding: 0 2px 0 0;
  }
  .radar-legend .legend-group {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    line-height: 1;
  }
  .report-summary {
    padding-top: 7px;
    margin: 0;
    width: 100%;
    border-top: 1px solid #ffffff12;
  }
  .sum-line { font-size: 9.5px; line-height: 1.38; }
  .sum-ico { height: calc(1em * 1.38); }
  .sum-line:nth-child(n+2) { display: none; }
  .hero-lead,
  .hero p.hero-lead {
    font-size: 14px;
    line-height: 1.85;
    max-width: none;
    text-align: left;
    margin: 0;
  }
  .meta-row,
  .lane-dots.meta-row {
    margin-top: 22px;
  }
  .hero-actions {
    width: 100%;
    margin-top: 16px;
    justify-content: stretch;
  }
  .start-button { width: 100%; min-height: 56px; }

  .access-panel { padding: 29px 23px; }
  .access-panel h2 { font-size: 26px; }
  .footer { font-size: 11px; margin-top: auto; padding: 56px 24px max(24px, env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 751px) {
  main { padding-left: 78px; padding-right: 16px; }
  main:has(> .hero):not(:has(.quiz-wrap)):not(:has(.result-head)) {
    padding-left: 78px;
    padding-right: 16px;
    padding-bottom: 6vh;
  }
  .hero { gap: 108px; }
  main:has(> .hero):not(:has(.quiz-wrap)):not(:has(.result-head)) .report-stage {
    min-height: 480px;
    justify-content: center;
    align-items: center;
  }
  .hero-copy { text-align: left; }
  main:has(> .hero):not(:has(.quiz-wrap)):not(:has(.result-head)) .hero-copy {
    align-self: center;
    transform: translateY(-24px);
  }
  .hero h1 {
    font-size: clamp(44px, 5vw, 62px);
    line-height: 1.1;
    letter-spacing: 0.06em;
    margin: 24px 0;
  }
  main:has(> .hero):not(:has(.quiz-wrap)):not(:has(.result-head)) .hero h1 {
    margin: 0 0 30px;
  }
  .hero p {
    font-size: 16px;
    line-height: 1.9;
    max-width: 540px;
    text-align: left;
  }
  main:has(> .hero):not(:has(.quiz-wrap)):not(:has(.result-head)) .meta-row,
  main:has(> .hero):not(:has(.quiz-wrap)):not(:has(.result-head)) .lane-dots.meta-row {
    margin-top: 28px;
  }
  .lane-dots { justify-content: flex-start; }
  .hero-actions { justify-content: flex-start; margin-top: 36px; }
  main:has(> .hero):not(:has(.quiz-wrap)):not(:has(.result-head)) .hero-actions {
    margin-top: 21px;
  }
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.2;
}
.meta-ico {
  flex: none;
  width: 15px;
  height: 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 750px) {
  .report-stage { margin-top: 14px; }
}

/* 移动端首页：标题下～页脚上区间整体约减 20px */
@media (max-width: 750px) {
  main:has(> .hero):not(:has(.quiz-wrap)):not(:has(.result-head)) .hero { gap: 18px; }
  main:has(> .hero):not(:has(.quiz-wrap)):not(:has(.result-head)) .report-stage { margin-top: 11px; }
  main:has(> .hero):not(:has(.quiz-wrap)):not(:has(.result-head)) .hero h1 { margin: 6px 0 13px; }
  main:has(> .hero):not(:has(.quiz-wrap)):not(:has(.result-head)) .meta-row { margin-top: 19px; }
  main:has(> .hero):not(:has(.quiz-wrap)):not(:has(.result-head)) .hero-actions { margin-top: 14px; }
}
