:root {
  --bg: #090a0d;
  --surface: #111318;
  --surface-2: #171a20;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2f0e9;
  --muted: #96979c;
  --gold: #d9b86c;
  --gold-light: #f2d99c;
  --green: #85b89a;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 0%, rgba(120, 91, 42, 0.12), transparent 32rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.topbar {
  height: 82px; max-width: var(--max); margin: auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(217,184,108,.55); color: var(--gold-light); font-family: serif;
  transform: rotate(45deg); border-radius: 9px;
}
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand b { display: block; letter-spacing: .18em; font-size: 17px; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .28em; }
.nav { display: flex; gap: 32px; color: #bab9b5; font-size: 14px; }
.nav a:hover { color: var(--gold-light); }
.nav-toggle { display: none; color: var(--text); background: none; border: 0; }
main { min-height: calc(100vh - 240px); }

.page { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; animation: enter .45s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
.eyebrow { color: var(--gold); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Georgia, "Songti SC", serif; font-weight: 400; font-size: clamp(50px, 8vw, 92px); line-height: 1.06; letter-spacing: -.04em; }
h2 { font-family: Georgia, "Songti SC", serif; font-size: clamp(30px, 4.5vw, 48px); font-weight: 400; }
.muted { color: var(--muted); }
.gold { color: var(--gold-light); }
.button {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 9px;
  padding: 0 24px; border: 1px solid transparent; border-radius: 100px; cursor: pointer;
  font-weight: 600; font-size: 15px; transition: .2s ease;
}
.button-primary { color: #16140e; background: linear-gradient(135deg, #f0d698, #c9a75b); box-shadow: 0 10px 35px rgba(201,167,91,.15); }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(201,167,91,.25); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.03); color: var(--text); }
.button-secondary:hover { border-color: rgba(217,184,108,.5); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 13px; }

.hero { min-height: 620px; padding: 80px 0 90px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; }
.hero-copy h1 { margin: 18px 0 24px; }
.hero-copy h1 span { display: block; color: var(--gold-light); }
.hero-copy > p { max-width: 530px; color: #aeada8; font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.microcopy { margin-top: 20px; color: #6f7075; font-size: 12px; letter-spacing: .05em; }
.mirror {
  position: relative; aspect-ratio: .77; max-height: 500px; display: grid; place-items: center;
  border: 1px solid rgba(217,184,108,.35); border-radius: 50% 50% 18px 18px / 32% 32% 18px 18px;
  background: radial-gradient(circle at 50% 30%, #242018, #0b0d11 68%);
  box-shadow: inset 0 0 0 8px #0d0e11, inset 0 0 0 9px rgba(217,184,108,.13), 0 30px 80px #000;
}
.mirror::before, .mirror::after { content: ""; position: absolute; border: 1px solid rgba(217,184,108,.18); border-radius: inherit; }
.mirror::before { inset: 18px; }
.mirror::after { inset: 35px; }
.mirror-type { text-align: center; z-index: 1; }
.mirror-type b { display: block; color: var(--gold-light); font: 64px/1 Georgia, serif; letter-spacing: .08em; }
.mirror-type span { display: block; margin-top: 14px; color: var(--muted); font-size: 12px; letter-spacing: .28em; }
.mirror-orbit { position: absolute; inset: -20px; animation: rotate 24s linear infinite; }
.mirror-orbit i { position: absolute; top: 48%; left: -5px; width: 9px; height: 9px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 20px var(--gold); }
@keyframes rotate { to { transform: rotate(360deg); } }

.section { padding: 95px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 38px; }
.section-head h2 { max-width: 540px; margin: 0; }
.section-head p { max-width: 380px; line-height: 1.8; margin: 0; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode-card, .feature, .panel {
  position: relative; overflow: hidden; padding: 32px; border: 1px solid var(--line);
  border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}
.mode-card { min-height: 270px; display: flex; flex-direction: column; align-items: flex-start; }
.mode-card.featured { border-color: rgba(217,184,108,.35); background: linear-gradient(145deg, rgba(217,184,108,.09), rgba(255,255,255,.015)); }
.badge { padding: 6px 10px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: 11px; }
.featured .badge { border-color: rgba(217,184,108,.35); color: var(--gold-light); }
.mode-card h3 { margin: 28px 0 8px; font-size: 24px; }
.mode-card p { color: var(--muted); line-height: 1.7; flex: 1; }
.mode-meta { position: absolute; top: 30px; right: 30px; color: #595b60; font: 32px Georgia, serif; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-num { color: var(--gold); font: 14px Georgia, serif; }
.feature h3 { margin: 36px 0 12px; }
.feature p { color: var(--muted); line-height: 1.8; font-size: 14px; }

.quiz-page { max-width: 780px; padding: 58px 0 100px; }
.quiz-top { display: flex; justify-content: space-between; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.progress { height: 3px; background: #25272d; border-radius: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--gold); transition: width .35s ease; }
.question-card { padding: clamp(36px, 7vw, 68px) 0 20px; }
.question-number { color: var(--gold); font: 15px Georgia, serif; }
.question-card h1 { margin: 18px 0 46px; font-family: inherit; font-size: clamp(27px, 5vw, 40px); line-height: 1.45; letter-spacing: -.02em; }
.choice {
  width: 100%; min-height: 82px; padding: 18px 22px; margin-bottom: 13px; display: flex; align-items: center; gap: 16px;
  color: var(--text); text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: .18s ease;
}
.choice:hover { border-color: rgba(217,184,108,.5); background: #16171b; transform: translateX(3px); }
.choice.selected { border-color: var(--gold); background: rgba(217,184,108,.08); }
.choice-letter { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #3b3c40; border-radius: 50%; color: var(--gold-light); font: 14px Georgia, serif; }
.quiz-bottom { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.text-button { color: var(--muted); border: 0; background: none; cursor: pointer; padding: 10px 0; }
.text-button:disabled { opacity: .25; cursor: default; }

.result-page { max-width: 900px; padding: 70px 0 110px; }
.result-hero { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 55px; }
.type-seal {
  width: 220px; height: 260px; display: grid; place-items: center; text-align: center;
  border: 1px solid rgba(217,184,108,.45); border-radius: 48% 48% 20px 20px;
  background: radial-gradient(circle at 50% 35%, rgba(217,184,108,.13), transparent 55%);
}
.type-seal b { display: block; font: 40px Georgia, serif; color: var(--gold-light); letter-spacing: .1em; }
.type-seal small { display: block; margin-top: 10px; color: var(--muted); }
.result-label { color: var(--gold); letter-spacing: .2em; font-size: 11px; }
.result-copy h1 { font-size: clamp(45px, 8vw, 72px); margin: 12px 0 20px; }
.result-copy h1 span { color: var(--muted); font-size: .45em; letter-spacing: .08em; }
.result-copy p { color: #bbb9b2; line-height: 1.9; font-size: 16px; }
.axis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 34px; margin: 55px 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.axis-row header { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.axis-row header b { color: var(--text); }
.axis-bar { height: 7px; display: flex; background: #292b31; border-radius: 8px; overflow: hidden; }
.axis-bar i { display: block; background: linear-gradient(90deg, #9c8048, var(--gold-light)); }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.free-note { margin-top: 14px; color: #696b71; font-size: 12px; }

.gate-shell { min-height: calc(100vh - 82px); display: grid; place-items: center; padding: 55px 0 100px; }
.gate-backdrop { position: absolute; width: min(800px, 85vw); opacity: .2; filter: blur(8px); pointer-events: none; }
.type-skeleton { color: var(--gold-light); font: 90px Georgia, serif; text-align: center; margin-bottom: 50px; }
.skeleton-line { width: 75%; height: 18px; margin: 20px auto; background: #555; border-radius: 20px; }
.skeleton-line.wide { width: 100%; }
.skeleton-line.short { width: 48%; }
.code-dialog {
  position: relative; z-index: 2; width: min(100%, 540px); padding: clamp(30px, 7vw, 52px);
  text-align: center; border: 1px solid rgba(217,184,108,.32); border-radius: 28px;
  background: rgba(17,19,24,.96); box-shadow: 0 35px 100px rgba(0,0,0,.65);
}
.code-dialog .lock-icon { margin-bottom: 20px; }
.code-dialog h1 { margin: 12px 0 16px; font-family: inherit; font-size: clamp(30px, 7vw, 42px); letter-spacing: -.03em; }
.code-dialog > p { color: var(--muted); line-height: 1.75; font-size: 14px; }
.code-dialog form { margin-top: 30px; }
.code-dialog label { display: block; margin-bottom: 10px; color: #bbb9b2; text-align: left; font-size: 12px; }
.code-dialog input {
  width: 100%; height: 62px; padding: 0 18px; color: var(--text); text-align: center;
  letter-spacing: .28em; font: 23px Georgia, monospace; text-transform: uppercase;
  border: 1px solid #34363c; border-radius: 14px; outline: none; background: #0b0c10;
}
.code-dialog input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,184,108,.1); }
.code-dialog form .button { width: 100%; margin-top: 12px; }
.code-dialog form .button:disabled { opacity: .55; cursor: wait; }
.form-message { min-height: 22px; margin-top: 14px; font-size: 13px; }
.form-message.error { color: #e7a39e; }
.gate-links { margin-top: 12px; display: flex; justify-content: center; align-items: center; gap: 22px; color: var(--muted); font-size: 12px; }

.full-report { max-width: 940px; }
.report-body { margin: 70px 0; border-top: 1px solid var(--line); }
.report-section { padding: 58px 0; display: grid; grid-template-columns: 240px 1fr; gap: 46px; border-bottom: 1px solid var(--line); }
.report-section > header { display: flex; gap: 16px; align-items: flex-start; }
.report-section > header > span { color: var(--gold); font: 14px Georgia, serif; }
.report-section h2 { margin: -8px 0 5px; font-family: inherit; font-size: 28px; font-weight: 500; }
.report-section header p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.report-copy { color: #bbb9b3; font-size: 15px; line-height: 2.05; }
.report-copy p { margin-bottom: 1.15em; }
.contact-panel { padding: 38px; margin-bottom: 28px; border: 1px solid rgba(217,184,108,.28); border-radius: var(--radius); background: linear-gradient(145deg, rgba(217,184,108,.07), rgba(255,255,255,.015)); }
.contact-panel .section-head { margin-bottom: 25px; }
.contact-panel h2 { margin: 10px 0 0; font-family: inherit; font-size: 26px; }
.contact-panel .qr-grid { max-width: 500px; }

.detail-page { max-width: 940px; padding: 60px 0 110px; }
.detail-intro { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.detail-intro h1 { margin: 12px 0 18px; font-size: clamp(40px, 7vw, 64px); }
.locked-report { position: relative; min-height: 520px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.blurred { filter: blur(7px); opacity: .32; user-select: none; pointer-events: none; }
.blurred h3 { font-size: 21px; margin-top: 28px; }
.blurred p { color: #aaa; line-height: 1.8; }
.lock-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: linear-gradient(transparent 0, rgba(9,10,13,.66) 32%, rgba(9,10,13,.96) 70%); }
.lead-card { width: min(100%, 700px); margin-top: 120px; text-align: center; }
.lock-icon { margin: auto; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(217,184,108,.45); border-radius: 50%; color: var(--gold); }
.lead-card h2 { font-family: inherit; font-size: 26px; margin: 18px 0 10px; }
.lead-card > p { color: var(--muted); }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.qr-item { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #101116; }
.qr-item img { width: 132px; max-width: 100%; aspect-ratio: 1; border-radius: 8px; }
.qr-item b, .qr-item small { display: block; }
.qr-item b { margin-top: 9px; }
.qr-item small { color: var(--muted); margin-top: 4px; }
.contact-email { display: inline-block; margin-top: 20px; color: var(--gold-light); border-bottom: 1px solid rgba(217,184,108,.35); }

.content-page { max-width: 820px; padding: 65px 0 110px; }
.content-page > h1 { font-size: clamp(42px, 7vw, 64px); margin: 12px 0 35px; }
.prose { line-height: 1.9; color: #b8b7b2; }
.prose h3 { color: var(--text); margin-top: 36px; }
.history-list { display: grid; gap: 12px; }
.history-item { padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.history-type { display: flex; align-items: center; gap: 16px; }
.history-type b { color: var(--gold-light); font: 22px Georgia, serif; letter-spacing: .08em; }
.history-type span, .history-item time { color: var(--muted); font-size: 13px; }
.empty { padding: 70px 25px; text-align: center; border: 1px dashed #303238; border-radius: var(--radius); }
.empty-mark { color: #43454b; font: 60px Georgia, serif; }
.empty h3 { margin: 15px 0 8px; }
.empty p { color: var(--muted); }
.not-found { text-align: center; padding: 120px 20px; }

footer { width: min(var(--max), calc(100% - 48px)); margin: auto; padding: 40px 0 50px; border-top: 1px solid var(--line); color: #6f7074; font-size: 11px; line-height: 1.7; }
.footer-brand { color: #aaa9a4; letter-spacing: .12em; margin-bottom: 12px; }
.footer-brand span { color: var(--gold); }
.copyright { margin: 12px 0 0; }

@media (max-width: 760px) {
  .topbar { height: 70px; padding: 0 18px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand small { display: none; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 62px; left: 16px; right: 16px; padding: 18px;
    flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 16px; background: #111318; box-shadow: 0 20px 50px #000;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .page { width: min(100% - 36px, var(--max)); }
  .hero { padding: 45px 0 75px; display: block; min-height: auto; }
  .hero-copy h1 { font-size: 51px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .mirror { width: 78%; margin: 70px auto 0; }
  .mirror-type b { font-size: 46px; }
  .section { padding: 68px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 17px; }
  .mode-grid, .feature-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 245px; }
  .question-card h1 { margin-bottom: 34px; }
  .choice { min-height: 76px; }
  .result-page { padding-top: 40px; }
  .result-hero { grid-template-columns: 1fr; gap: 32px; }
  .type-seal { width: 150px; height: 178px; margin: auto; }
  .type-seal b { font-size: 30px; }
  .result-copy { text-align: center; }
  .axis-grid { grid-template-columns: 1fr; padding: 24px; }
  .result-actions .button { width: 100%; }
  .gate-shell { min-height: calc(100vh - 70px); padding-top: 35px; }
  .code-dialog { border-radius: 22px; }
  .gate-links { flex-direction: column; gap: 2px; }
  .report-section { grid-template-columns: 1fr; gap: 14px; padding: 42px 0; }
  .report-section h2 { font-size: 24px; }
  .contact-panel { padding: 24px; }
  .contact-panel .section-head { display: block; }
  .contact-panel .section-head > p { margin-top: 12px; }
  .locked-report { padding: 20px; min-height: 650px; }
  .lead-card { margin-top: 100px; }
  .qr-item img { width: 112px; }
  .content-page { padding-top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
