:root {
  --ink: #1f2926;
  --ink-soft: #52605a;
  --paper: #f3eee5;
  --paper-deep: #e7dece;
  --cream: #fbf8f2;
  --red: #9c382d;
  --red-dark: #72261f;
  --gold: #a77b3c;
  --green: #496b5a;
  --line: rgba(31, 41, 38, .14);
  --shadow: 0 26px 70px rgba(59, 46, 31, .14);
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .35;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.prototype-ribbon { position: relative; z-index: 30; padding: 7px 16px; text-align: center; color: #f8efe6; background: var(--ink); font: 12px/1.2 system-ui, sans-serif; letter-spacing: .08em; }
.topbar { max-width: 1180px; margin: auto; height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-seal, .seal-small { display: grid; place-items: center; color: #fff7ea; background: var(--red); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.brand-seal { width: 43px; height: 43px; font-size: 23px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; letter-spacing: .12em; }
.brand small { margin-top: 3px; color: var(--ink-soft); font: 11px/1.2 system-ui, sans-serif; letter-spacing: .12em; }

.ghost-button, .demo-button { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.28); border-radius: 999px; padding: 11px 19px; transition: .25s ease; }
.ghost-button:hover, .demo-button:hover { background: var(--ink); color: white; transform: translateY(-1px); }
.primary-button { border: 0; color: #fff9ef; background: var(--red); border-radius: 3px; padding: 15px 22px; box-shadow: 0 12px 26px rgba(128, 41, 32, .19); transition: .25s ease; }
.primary-button:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(128, 41, 32, .24); }
.primary-button.wide { width: 100%; display: flex; justify-content: center; gap: 18px; }
.text-button { border: 0; background: none; color: var(--ink); padding: 12px 5px; border-bottom: 1px solid var(--ink); }
.text-button.center { display: block; margin: 8px auto 0; border: 0; color: var(--ink-soft); }

.hero { min-height: 690px; max-width: 1180px; margin: auto; padding: 82px 38px 92px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 88px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 100vw; height: 1px; transform: translateX(-50%); background: var(--line); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 16px; color: var(--red); font: 700 12px/1.4 system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 25px; font-size: clamp(45px, 5.1vw, 76px); line-height: 1.12; letter-spacing: -.045em; font-weight: 500; }
h1 em { color: var(--red); font-style: normal; }
.hero-intro { max-width: 610px; color: var(--ink-soft); font-size: 18px; line-height: 1.9; }
.hero-actions { display: flex; gap: 24px; align-items: center; margin-top: 36px; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 34px; color: var(--ink-soft); font: 12px/1.5 system-ui, sans-serif; }
.trust-row span::before { content: "○"; margin-right: 6px; color: var(--red); }
.hero-orbit { position: absolute; border: 1px solid rgba(156, 56, 45, .13); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 520px; height: 520px; right: -150px; top: 30px; }
.orbit-two { width: 320px; height: 320px; left: -230px; bottom: -80px; }

.energy-card { position: relative; z-index: 2; border: 1px solid rgba(255,255,255,.65); padding: 26px; background: rgba(251, 248, 242, .66); box-shadow: var(--shadow); backdrop-filter: blur(15px); transform: rotate(1.2deg); }
.card-header { display: flex; justify-content: space-between; color: var(--ink-soft); font: 12px/1.4 system-ui, sans-serif; letter-spacing: .12em; }
.card-header i { width: 9px; height: 9px; background: var(--red); border-radius: 50%; }
.energy-wheel { height: 340px; position: relative; margin: 16px 0; background: radial-gradient(circle, rgba(167,123,60,.08), transparent 55%); }
.energy-wheel::before { content: ""; position: absolute; inset: 55px; border: 1px dashed rgba(31,41,38,.18); border-radius: 50%; }
.node { width: 68px; height: 68px; position: absolute; display: grid; place-items: center; align-content: center; border-radius: 50%; color: white; font-size: 22px; box-shadow: 0 8px 20px rgba(31,41,38,.16); }
.node small { font: 9px/1.4 system-ui, sans-serif; opacity: .8; }
.wood { left: 10%; top: 40%; background: #527564; }.fire { left: 31%; top: 5%; background: #a64b39; }.earth { right: 14%; top: 14%; background: #a78650; }.metal { right: 10%; bottom: 15%; background: #68716d; }.water { left: 31%; bottom: 3%; background: #365d70; }
.wheel-center { width: 94px; height: 94px; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; align-content: center; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; background: var(--cream); }
.wheel-center b { font-size: 26px; }.wheel-center small { color: var(--ink-soft); font: 10px/1.5 system-ui, sans-serif; }
.energy-card > p { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); line-height: 1.7; font-size: 14px; }

.method, .experience, .result, .principles { max-width: 1120px; margin: auto; padding: 110px 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2, .form-intro h2, .principles h2 { max-width: 620px; margin: 0; font-size: clamp(34px, 4vw, 54px); font-weight: 500; letter-spacing: -.035em; }
.method-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.method-grid article { padding: 28px 40px 10px 0; border-right: 1px solid var(--line); min-height: 245px; }
.method-grid article + article { padding-left: 40px; }
.method-grid article:last-child { border-right: 0; }
.method-grid span { color: var(--red); font: 12px/1 system-ui, sans-serif; }
.method-grid h3 { margin: 58px 0 12px; font-size: 23px; font-weight: 600; }
.method-grid p { color: var(--ink-soft); line-height: 1.8; font-size: 15px; }

.experience { max-width: 1060px; margin-bottom: 90px; background: var(--cream); box-shadow: var(--shadow); padding: 70px 76px; position: relative; }
.experience::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); pointer-events: none; }
.form-intro { position: relative; z-index: 1; text-align: center; }
.form-intro h2 { margin: auto; }
.form-intro > p:last-child { margin: 16px auto 45px; color: var(--ink-soft); font: 13px/1.7 system-ui, sans-serif; }
.reading-form { position: relative; z-index: 1; }
fieldset { padding: 0; border: 0; margin: 0 0 34px; }
legend, .reading-form label > span { display: block; margin-bottom: 11px; font-weight: 600; font-size: 14px; }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.topic { position: relative; overflow: hidden; padding: 18px 14px; border: 1px solid var(--line); background: #fffdfa; transition: .2s ease; }
.topic input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.topic span { margin: 0 !important; }
.topic small { display: block; margin-top: 7px; color: var(--ink-soft); font: 11px/1.45 system-ui, sans-serif; }
.topic.active { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #fff8f3; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 26px; padding: 6px; background: var(--paper); border: 1px solid var(--line); }
.mode-switch button { min-height: 48px; border: 0; color: var(--ink-soft); background: transparent; transition: .2s ease; }
.mode-switch button.active { color: white; background: var(--ink); box-shadow: 0 8px 20px rgba(31,41,38,.12); }
.input-panel { padding: 24px; margin-bottom: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.3); }
.calculation-note, .privacy-note { display: flex; flex-direction: column; justify-content: center; min-height: 49px; padding: 7px 14px; color: var(--ink-soft); background: rgba(167,123,60,.08); }
.calculation-note b, .privacy-note b { color: var(--ink); font-size: 12px; }
.calculation-note span, .privacy-note span { margin-top: 4px; font: 10px/1.45 system-ui, sans-serif; }
.direct-heading { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 18px; }
.direct-heading span { color: var(--ink-soft); font: 11px/1.5 system-ui, sans-serif; }
.linked-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pillar-trigger { min-width: 0; padding: 16px 10px 13px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); text-align: center; transition: .2s ease; }.pillar-trigger:hover:not(:disabled), .pillar-trigger.selected { border-color: var(--gold); box-shadow: 0 8px 24px rgba(43,36,28,.08); transform: translateY(-1px); }.pillar-trigger:disabled { cursor: not-allowed; opacity: .48; }.pillar-trigger > span { display: block; color: var(--ink-soft); font: 10px/1.4 system-ui, sans-serif; letter-spacing: .08em; }.pillar-trigger > div { display: flex; justify-content: center; gap: 6px; margin: 13px 0 10px; }.pillar-trigger i, .pillar-choice i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); font-size: 21px; font-style: normal; }.pillar-trigger small { display: block; min-height: 28px; color: var(--ink-soft); font: 9px/1.5 system-ui, sans-serif; }
.pillar-trigger i[data-element="木"], .pillar-choice i[data-element="木"] { color: #3f7d55; background: #edf7ee; }.pillar-trigger i[data-element="火"], .pillar-choice i[data-element="火"] { color: #a64035; background: #faeeee; }.pillar-trigger i[data-element="土"], .pillar-choice i[data-element="土"] { color: #a17322; background: #f7f1e3; }.pillar-trigger i[data-element="金"], .pillar-choice i[data-element="金"] { color: #68716d; background: #eff1ef; }.pillar-trigger i[data-element="水"], .pillar-choice i[data-element="水"] { color: #326683; background: #eef4f8; }
.link-rule { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 13px 15px; background: var(--paper); }.link-rule b { flex: 0 0 auto; color: var(--gold); font-size: 11px; }.link-rule p { margin: 0; color: var(--ink-soft); font: 10px/1.6 system-ui, sans-serif; }
.validation-message { min-height: 18px; margin: 12px 0 0; color: var(--red); font: 12px/1.5 system-ui, sans-serif; }
.common-fields { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 2px; background: #fffdfa; color: var(--ink); outline: 0; transition: .2s ease; }
input, select { height: 49px; padding: 0 14px; }
textarea { min-height: 98px; padding: 14px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(156,56,45,.08); }
.goal-field { display: block; margin-top: 21px; position: relative; }
.goal-field span small { color: var(--ink-soft); font-weight: 400; }
.goal-field b { position: absolute; right: 10px; bottom: 8px; color: var(--ink-soft); font: 10px/1 system-ui, sans-serif; }
.consent-row { margin: 20px 0; padding: 15px; background: rgba(167,123,60,.08); }
.consent-row label { display: flex; gap: 10px; color: var(--ink-soft); font: 12px/1.6 system-ui, sans-serif; }
.consent-row input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--red); }
.form-actions { display: grid; grid-template-columns: 170px 1fr; gap: 12px; }

.loading-panel { max-width: 980px; margin: 0 auto 90px; padding: 100px 30px; text-align: center; background: var(--cream); }
.loader-seal { width: 72px; height: 72px; display: grid; place-items: center; margin: auto; border: 1px solid var(--red); color: var(--red); font-size: 31px; animation: pulse 1.2s ease-in-out infinite; }
.loading-panel h2 { margin: 25px 0 10px; font-weight: 500; }.loading-panel p { color: var(--ink-soft); }
.loading-line { width: 260px; height: 2px; margin: 28px auto; overflow: hidden; background: var(--paper-deep); }.loading-line i { display: block; width: 45%; height: 100%; background: var(--red); animation: load 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .65; } }
@keyframes load { from { transform: translateX(-110%); } to { transform: translateX(240%); } }

.result { padding-top: 50px; }
.result-topline { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.result-topline h2 { margin: 0; font-size: 34px; font-weight: 500; }
.ai-badge { color: var(--green); border: 1px solid rgba(73,107,90,.35); border-radius: 999px; padding: 8px 12px; font: 11px/1 system-ui, sans-serif; white-space: nowrap; }
.calculation-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin: 34px 0 0; background: var(--line); border: 1px solid var(--line); }
.calculation-meta > div { min-height: 88px; padding: 18px; background: var(--cream); }
.calculation-meta small, .calculation-meta b { display: block; }
.calculation-meta small { margin-bottom: 8px; color: var(--ink-soft); font: 10px/1.4 system-ui, sans-serif; letter-spacing: .08em; }
.calculation-meta b { font-size: 13px; line-height: 1.55; }
.pillars-card { margin: 34px 0; padding: 28px; background: var(--ink); color: #f8f0e5; }
.pillars-title { display: flex; justify-content: space-between; margin-bottom: 22px; }.pillars-title small { color: rgba(255,255,255,.52); font: 11px/1.5 system-ui, sans-serif; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); }
.pillars > div { display: grid; place-items: center; padding: 25px 12px; background: var(--ink); }
.pillars small, .pillars span { font: 10px/1.5 system-ui, sans-serif; color: rgba(255,255,255,.5); }.pillars b { margin: 8px 0; font-size: 27px; letter-spacing: .12em; }.pillars .focus { background: var(--red-dark); }
.chart-details { display: grid; grid-template-columns: 1.4fr .8fr; gap: 20px; margin-bottom: 22px; }
.chart-details article { padding: 30px; border: 1px solid var(--line); background: var(--cream); }
.detail-row { display: grid; grid-template-columns: 1.1fr .8fr 1fr 1.3fr 1.2fr; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--ink-soft); line-height: 1.5; }
.detail-row small { display: block; margin-bottom: 3px; color: var(--gold); font: 9px/1.3 system-ui, sans-serif; }
.element-bars { margin-top: 22px; }
.element-bar-row { display: grid; grid-template-columns: 22px 1fr 18px; gap: 10px; align-items: center; margin: 13px 0; }
.element-bar-row b, .element-bar-row em { font-size: 12px; font-style: normal; }
.element-bar-row i { height: 8px; overflow: hidden; background: var(--paper-deep); border-radius: 99px; }
.element-bar-row i span { display: block; height: 100%; border-radius: inherit; }
.wood-bar { background: #527564; }.fire-bar { background: #a64b39; }.earth-bar { background: #a78650; }.metal-bar { background: #68716d; }.water-bar { background: #365d70; }
.chart-details article > small { display: block; margin-top: 18px; color: var(--ink-soft); font: 10px/1.6 system-ui, sans-serif; }
.preview-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.preview-main, .preview-side { padding: 42px; background: var(--cream); border: 1px solid var(--line); }
.card-kicker { color: var(--red); font: 700 11px/1.4 system-ui, sans-serif; letter-spacing: .13em; }
.preview-main h3 { margin: 22px 0; font-size: 31px; line-height: 1.45; font-weight: 500; }.preview-main > p:not(.card-kicker), .preview-side li { color: var(--ink-soft); line-height: 1.85; }
.insight-facts { margin-top: 28px; border-top: 1px solid var(--line); }.insight-facts > div { display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }.insight-facts span { padding-top: 3px; color: var(--gold); font: 700 10px/1.4 system-ui, sans-serif; letter-spacing: .08em; }.insight-facts p { margin: 0; color: var(--ink-soft); line-height: 1.75; }
.path-diagram { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 20px 12px; background: var(--paper); font-size: 13px; }.path-diagram span { padding: 8px 10px; background: var(--cream); }.path-diagram .strong { background: var(--red); color: white; }.path-diagram i { color: var(--gold); font-style: normal; }
.preview-side h4 { margin: 20px 0 18px; font-size: 23px; line-height: 1.5; }.reality-signals { list-style: none; margin: 0; padding: 0; counter-reset: signal; }.reality-signals li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); counter-increment: signal; }.reality-signals li::before { content: counter(signal); position: absolute; left: 0; top: 18px; display: grid; place-items: center; width: 20px; height: 20px; color: white; background: var(--green); border-radius: 50%; font: 10px/1 system-ui, sans-serif; }.reality-note { margin: 22px 0 0; padding: 14px 16px; color: var(--ink-soft); background: var(--paper); font: 10px/1.7 system-ui, sans-serif; }
.free-reading { margin-top: 22px; padding: 52px; background: var(--cream); border: 1px solid var(--line); }
.reading-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }.reading-header h2 { margin: 7px 0 0; }.reading-header > span { color: var(--gold); font: 700 10px/1 system-ui, sans-serif; letter-spacing: .16em; }
.reading-section { position: relative; padding: 44px 0; border-bottom: 1px solid var(--line); }.reading-section:last-child { border-bottom: 0; padding-bottom: 0; }.section-number { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; color: white; background: var(--red); font-size: 14px; }.reading-section > h3, .preference-heading h3 { margin: 0 0 18px; font-size: 29px; font-weight: 500; }.reading-section > p, .reading-subsection p, .preference-note { color: var(--ink-soft); line-height: 1.95; }.reading-section blockquote { margin: 24px 0 0; padding: 18px 22px; border-left: 3px solid var(--gold); background: var(--paper); color: var(--ink-soft); line-height: 1.8; }
.reading-subsection { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 24px 0; border-top: 1px dashed var(--line); }.reading-subsection > b { display: grid; place-items: center; width: 29px; height: 29px; color: var(--red); border: 1px solid var(--red); border-radius: 50%; }.reading-subsection h4 { margin: 2px 0 9px; font-size: 19px; }.reading-subsection p { margin: 0; }
.preference-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }.preference-heading > div { display: flex; gap: 15px; align-items: center; }.preference-heading .section-number { flex: 0 0 auto; margin: 0; }.preference-heading h3 { margin: 0; }.preview-count { flex: 0 0 auto; padding: 8px 12px; color: var(--red); background: rgba(156,56,45,.07); font: 11px/1.2 system-ui, sans-serif; }.preview-count b { font-size: 18px; }
.preference-list { list-style: none; margin: 28px 0 0; padding: 0; }.preference-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }.preference-list li > b { display: grid; place-items: center; width: 44px; height: 44px; color: white; background: var(--ink); font-size: 20px; }.preference-list strong { color: var(--red); font-size: 13px; }.preference-list p { margin: 6px 0 0; color: var(--ink-soft); line-height: 1.75; }.remaining-hint { display: flex; gap: 16px; align-items: center; margin-top: 12px; padding: 18px 20px; border: 1px dashed var(--gold); background: rgba(167,134,80,.06); }.remaining-hint > span { color: var(--gold); font-size: 22px; }.remaining-hint p, .remaining-hint small { display: block; margin: 0; }.remaining-hint small { margin-top: 4px; color: var(--ink-soft); font: 10px/1.5 system-ui, sans-serif; }
.locked-report { min-height: 560px; margin-top: 22px; position: relative; overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.blurred-copy { padding: 60px; filter: blur(7px); opacity: .33; }.blurred-copy h3 { font-size: 28px; margin-top: 40px; }.blurred-copy p { max-width: 700px; line-height: 2; }
.unlock-box { width: min(440px, calc(100% - 34px)); position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 34px; text-align: center; background: rgba(251,248,242,.96); box-shadow: 0 22px 70px rgba(43,36,28,.2); border: 1px solid rgba(255,255,255,.8); backdrop-filter: blur(10px); }
.seal-small { width: 44px; height: 44px; margin: auto; font-size: 20px; }.unlock-box h3 { margin: 18px 0 8px; font-size: 24px; }.unlock-box > p { color: var(--ink-soft); font: 12px/1.6 system-ui, sans-serif; }.unlock-box ul { display: inline-block; padding-left: 20px; text-align: left; color: var(--ink-soft); font-size: 13px; line-height: 1.9; }.price { margin: 15px 0 19px; }.price b { display: block; color: var(--red); font-size: 31px; }.price small, .unlock-box > small { color: var(--ink-soft); font: 10px/1.5 system-ui, sans-serif; }

.unlocked-banner { display: flex; gap: 13px; align-items: center; margin: 24px 0; padding: 16px 20px; color: white; background: var(--green); }.unlocked-banner > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }.unlocked-banner b, .unlocked-banner small { display: block; }.unlocked-banner small { opacity: .7; font: 10px/1.5 system-ui, sans-serif; }
.ai-report-panel { margin: 24px 0; padding: 36px; border: 1px solid rgba(73,107,90,.28); background: rgba(251,248,242,.9); }
.ai-report-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }.ai-report-heading h2 { margin: 0; font-size: 28px; font-weight: 500; }.ai-source-badge { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font: 10px/1 system-ui, sans-serif; }.ai-source-badge[data-source="ai"] { color: var(--green); border-color: rgba(73,107,90,.4); }.ai-source-badge[data-source="rule"] { color: var(--gold); border-color: rgba(167,123,60,.4); }
.ai-privacy-note { max-width: 760px; margin: 18px 0; color: var(--ink-soft); font: 12px/1.8 system-ui, sans-serif; }.ai-report-actions { display: flex; align-items: center; gap: 12px; }.ai-report-actions button:disabled { cursor: wait; opacity: .55; }.ai-generation-status { margin: 16px 0 0; color: var(--ink-soft); font: 11px/1.7 system-ui, sans-serif; }.ai-fallback { margin-top: 20px; padding: 17px 19px; border-left: 3px solid var(--gold); background: var(--paper); }.ai-fallback b { color: var(--gold); }.ai-fallback p { margin: 5px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.ai-report-content { margin-top: 28px; border-top: 1px solid var(--line); }.ai-report-content section { padding: 27px 0; border-bottom: 1px solid var(--line); }.ai-report-content h3 { margin: 0 0 13px; font-size: 23px; font-weight: 500; }.ai-report-content p { margin: 9px 0; color: var(--ink-soft); line-height: 1.9; white-space: pre-wrap; }
.report-layout { display: grid; grid-template-columns: 210px 1fr; gap: 42px; align-items: start; padding: 45px; background: var(--cream); border: 1px solid var(--line); }
.report-nav { position: sticky; top: 20px; display: grid; gap: 8px; }.report-nav b { margin-bottom: 14px; }.report-nav a { padding: 10px 13px; color: var(--ink-soft); text-decoration: none; border-left: 2px solid var(--line); font-size: 13px; }.report-nav a.active { color: var(--red); border-color: var(--red); background: rgba(156,56,45,.05); }
.report-copy section { padding-bottom: 42px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }.report-copy section:last-child { border: 0; }.report-copy section > span { color: var(--red); font: 11px/1 system-ui, sans-serif; }.report-copy h3 { margin: 10px 0 18px; font-size: 29px; font-weight: 500; }.report-copy p, .report-copy li { color: var(--ink-soft); line-height: 1.95; }.report-copy blockquote, .insight { margin: 25px 0 0; padding: 20px 24px; border-left: 3px solid var(--gold); background: var(--paper); color: var(--ink-soft); line-height: 1.8; }.insight b { color: var(--red); }.insight p { margin: 6px 0 0; }.action-list > div { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }.action-list > div > b { width: 34px; height: 34px; display: grid; place-items: center; background: var(--red); color: white; }.action-list p { margin: 0; }.action-list strong { color: var(--ink); }
.followup { margin-top: 24px; padding: 46px; background: var(--ink); color: white; }.followup > div:first-child p:last-child { color: rgba(255,255,255,.55); font: 12px/1.6 system-ui, sans-serif; }.suggestion-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }.suggestion-chips button { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 9px 13px; color: rgba(255,255,255,.76); background: transparent; }.suggestion-chips button:hover { background: rgba(255,255,255,.08); }.chatbox { display: grid; grid-template-columns: 1fr 82px; }.chatbox textarea { min-height: 72px; background: white; }.chatbox button { border: 0; color: white; background: var(--red); }.answer { margin-top: 16px; padding: 20px; background: rgba(255,255,255,.08); }.answer b { color: #d8b372; }.answer p { margin: 8px 0 0; color: rgba(255,255,255,.72); line-height: 1.8; }

.principles { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; border-top: 1px solid var(--line); }.principle-list p { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }.principle-list span { display: inline-grid; place-items: center; width: 29px; height: 29px; margin-right: 12px; color: white; background: var(--red); }
footer { padding: 50px max(30px, calc((100vw - 1120px)/2)); display: flex; justify-content: space-between; gap: 30px; align-items: center; color: #f5ede3; background: var(--ink); }footer .brand small { color: rgba(255,255,255,.5); }footer p { margin: 0; color: rgba(255,255,255,.5); text-align: right; font: 11px/1.8 system-ui, sans-serif; }

.payment-sheet { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; }.sheet-backdrop { position: absolute; inset: 0; border: 0; background: rgba(16,20,19,.65); backdrop-filter: blur(3px); }.sheet-card { width: min(520px, 100%); position: relative; padding: 14px 30px 35px; background: var(--cream); box-shadow: 0 -20px 70px rgba(0,0,0,.25); animation: rise .28s ease-out; }.sheet-handle { width: 42px; height: 4px; margin: 0 auto 24px; border-radius: 99px; background: var(--paper-deep); }.demo-tag { display: inline-block; color: var(--red); background: rgba(156,56,45,.08); padding: 6px 9px; font: 10px/1 system-ui, sans-serif; }.sheet-card h2 { margin: 16px 0 26px; font-size: 27px; }.order-row { display: flex; justify-content: space-between; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.order-row b { color: var(--red); font-size: 21px; }.order-note { display: flex; gap: 10px; margin: 20px 0; padding: 14px; background: rgba(73,107,90,.08); color: var(--green); }.order-note p { margin: 0; font: 12px/1.6 system-ui, sans-serif; }@keyframes rise { from { transform: translateY(100%); } }
.pillar-picker-sheet { position: fixed; inset: 0; z-index: 110; display: grid; place-items: end center; }.pillar-picker-card { width: min(680px, 100%); max-height: min(82vh, 720px); position: relative; overflow: auto; padding: 14px 30px 34px; background: var(--cream); box-shadow: 0 -20px 70px rgba(0,0,0,.25); animation: rise .28s ease-out; }.picker-title-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }.picker-title-row h2 { margin: 12px 0 0; font-size: 28px; }.picker-title-row > button { min-width: 86px; padding: 12px 18px; border: 0; border-radius: 999px; color: white; background: var(--ink); }.picker-title-row > button:disabled { opacity: .35; }.pillar-picker-card > p { margin: 18px 0; color: var(--ink-soft); font: 11px/1.7 system-ui, sans-serif; }.pillar-choice-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; padding-bottom: 4px; }.pillar-choice { display: flex; justify-content: center; gap: 3px; padding: 9px 4px; border: 1px solid transparent; background: var(--paper); }.pillar-choice:hover, .pillar-choice.active { border-color: var(--gold); background: white; box-shadow: 0 5px 16px rgba(43,36,28,.08); }.pillar-choice i { width: 34px; height: 34px; font-size: 17px; }
.picker-back { display: inline-block; margin: 0 8px 0 0; padding: 6px 8px; border: 0; color: var(--ink-soft); background: transparent; font: 10px/1 system-ui, sans-serif; }.single-symbol-grid { grid-template-columns: repeat(5, 1fr); }.pillar-choice.single-symbol { padding: 14px 6px; }.pillar-choice.single-symbol i { width: 44px; height: 44px; font-size: 21px; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translate(-50%, 20px); padding: 12px 18px; color: white; background: var(--ink); opacity: 0; pointer-events: none; transition: .25s ease; box-shadow: var(--shadow); font: 12px/1.4 system-ui, sans-serif; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

.direct-luck-fields { margin-top: 18px; padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.direct-luck-heading { display: grid; gap: 6px; margin-bottom: 16px; }.direct-luck-heading b { color: var(--ink); font-size: 13px; }.direct-luck-heading small { color: var(--gold); font-size: 11px; font-weight: 400; }.direct-luck-heading span, .direct-luck-fields > p { color: var(--ink-soft); font: 12px/1.65 system-ui, sans-serif; }.direct-luck-fields > p { margin: 12px 0 0; }
.luck-timeline { margin: 30px 0; padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.luck-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }.luck-summary b { color: var(--red); font-size: 15px; }.luck-summary span { max-width: 65%; color: var(--ink-soft); font: 12px/1.65 system-ui, sans-serif; text-align: right; }
.luck-period-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.luck-period { min-width: 0; padding: 16px 14px; border: 1px solid var(--line); background: var(--cream); }.luck-period.current { border-color: var(--red); background: rgba(156,56,45,.055); box-shadow: inset 0 0 0 1px var(--red); }.luck-period small { display: block; min-height: 32px; color: var(--ink-soft); font: 11px/1.45 system-ui, sans-serif; }.luck-period.current small { color: var(--red); font-weight: 700; }.luck-period h4 { margin: 10px 0 6px; color: var(--ink); font-size: 30px; font-weight: 500; }.luck-period p { margin: 0 0 12px; color: var(--red); font-size: 13px; }.luck-period > span { display: block; color: var(--ink-soft); font: 11px/1.6 system-ui, sans-serif; }
.luck-timeline .luck-boundary-note { margin: 20px 0 0; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--ink-soft); font-size: 13px; line-height: 1.75; }

@media (max-width: 850px) {
  .luck-period-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.luck-summary { flex-direction: column; }.luck-summary span { max-width: none; text-align: left; }
  .topbar { height: 74px; padding: 0 18px; }.topbar .ghost-button { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 55px; padding: 60px 22px 75px; }.energy-card { max-width: 540px; width: 100%; margin: auto; }.hero-actions { align-items: stretch; flex-direction: column; }.hero-actions .text-button { align-self: flex-start; }
  .method, .result, .principles { padding: 78px 20px; }.method-grid { grid-template-columns: 1fr; }.method-grid article, .method-grid article + article { min-height: auto; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }.method-grid h3 { margin-top: 28px; }
  .experience { margin: 0 14px 70px; padding: 60px 25px; }.topic-grid { grid-template-columns: repeat(2,1fr); }.preview-grid, .principles, .chart-details { grid-template-columns: 1fr; }.report-layout { grid-template-columns: 1fr; padding: 30px 22px; }.report-nav { display: none; }
  .calculation-meta { grid-template-columns: repeat(2,1fr); }
  .detail-row { grid-template-columns: 1fr 1fr; }.detail-row > b { grid-column: 1 / -1; }
  .result-topline { align-items: start; flex-direction: column; }.pillars-title { gap: 8px; flex-direction: column; }.preview-main, .preview-side { padding: 28px 23px; }.linked-pillars { grid-template-columns: repeat(2, 1fr); }.pillar-choice-grid { grid-template-columns: repeat(4, 1fr); }
  .free-reading { padding: 38px 28px; }.preference-heading { align-items: flex-start; flex-direction: column; }.preference-heading > div { align-items: flex-start; }
  footer { align-items: start; flex-direction: column; padding: 45px 24px; }footer p { text-align: left; }
}

@media (max-width: 520px) {
  h1 { font-size: 43px; }.hero-intro { font-size: 16px; }.energy-wheel { height: 290px; }.node { width: 58px; height: 58px; font-size: 18px; }.energy-wheel::before { inset: 48px; }.wheel-center { width: 78px; height: 78px; }
  .topic-grid, .form-grid, .form-actions { grid-template-columns: 1fr; }.form-actions .demo-button { order: 2; }.topic { padding: 15px 12px; }
  .mode-switch { grid-template-columns: 1fr; }.input-panel { padding: 18px 14px; }.direct-heading { align-items: flex-start; flex-direction: column; }.calculation-meta { grid-template-columns: 1fr; }.calculation-meta > div { min-height: auto; }.detail-row { grid-template-columns: 1fr; }
  .pillars-card { padding: 18px 12px; }.pillars b { font-size: 20px; }.pillars > div { padding: 20px 5px; }.pillars span { display: none; }
  .preview-main h3 { font-size: 25px; }.unlock-box { padding: 28px 20px; }.followup { padding: 34px 20px; }.chatbox { grid-template-columns: 1fr; }.chatbox button { padding: 14px; }
  .ai-report-panel { padding: 28px 20px; }.ai-report-heading, .ai-report-actions { align-items: stretch; flex-direction: column; }.ai-source-badge { align-self: flex-start; }.ai-report-heading h2 { font-size: 24px; }
  .free-reading { padding: 30px 20px; }.reading-header { align-items: flex-start; flex-direction: column; }.reading-section > h3, .preference-heading h3 { font-size: 24px; }.preference-list li { grid-template-columns: 42px 1fr; gap: 13px; }.preference-list li > b { width: 40px; height: 40px; }
  .principles { gap: 35px; }.sheet-card, .pillar-picker-card { padding-inline: 22px; }.picker-title-row h2 { font-size: 24px; }.pillar-choice-grid, .single-symbol-grid { grid-template-columns: repeat(3, 1fr); }.pillar-choice i { width: 32px; height: 32px; font-size: 16px; }.pillar-choice.single-symbol i { width: 42px; height: 42px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }


/* 线下服务码与管理后台 */
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions button { min-height: 44px; }
.unlocked-banner { flex-wrap: wrap; }
.unlocked-banner > button { margin-left: auto; min-height: 44px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.45); color: #f8f0e5; background: transparent; }
.unlocked-banner > button:hover { background: rgba(255,255,255,.1); }
.access-code-field { display: block; margin: 24px 0 8px; text-align: left; }
.access-code-field > span { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 600; }
.access-code-field input { height: 54px; text-align: center; text-transform: uppercase; letter-spacing: .08em; font: 600 17px/1.2 ui-monospace, monospace; }
.redeem-status { min-height: 22px; margin: 8px 0 0; color: var(--red); font: 12px/1.6 system-ui, sans-serif; }
.followup-answers { display: grid; gap: 14px; margin-top: 20px; }
.followup-answer { padding: 20px; background: rgba(255,255,255,.08); }
.followup-answer b { color: #d8b372; line-height: 1.7; }
.followup-answer p { margin: 10px 0 0; color: rgba(255,255,255,.82); line-height: 1.8; white-space: pre-wrap; }
.chatbox button:disabled { cursor: not-allowed; opacity: .5; }
.footer-admin-link { display: inline-block; margin-top: 12px; color: #f5ede3; text-underline-offset: 4px; font: 12px/1.5 system-ui, sans-serif; }

.admin-body { min-height: 100dvh; }
.admin-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 100px; }
.admin-intro { max-width: 720px; margin-bottom: 40px; }
.admin-intro h1 { margin-bottom: 18px; font-size: clamp(40px, 6vw, 62px); }
.admin-intro > p:last-child { max-width: 65ch; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.admin-login, .admin-create, .admin-records { padding: 32px; border: 1px solid var(--line); background: var(--cream); }
.admin-login { max-width: 720px; }
.admin-login label { display: block; margin-bottom: 8px; font-weight: 600; }
.admin-login p { color: var(--ink-soft); font: 13px/1.7 system-ui, sans-serif; }
.admin-login-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 20px; }
.admin-login-row button, .admin-create-form button { min-height: 49px; }
#adminWorkspace { display: grid; gap: 28px; }
.admin-create h2, .admin-records h2 { margin: 0; font-size: 30px; font-weight: 500; }
.admin-create-form { display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: end; margin-top: 28px; }
.admin-create-form label > span { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 600; }
.admin-new-code { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; margin-top: 24px; padding: 20px; border: 1px solid rgba(73,107,90,.35); background: rgba(73,107,90,.07); }
.admin-new-code > span { color: var(--green); font: 13px/1.6 system-ui, sans-serif; }
.admin-new-code code { color: var(--red); font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.admin-records-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font: 13px/1.6 system-ui, sans-serif; }
.admin-table th, .admin-table td { padding: 15px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.admin-table th { color: var(--ink-soft); font-size: 11px; letter-spacing: .06em; }
.admin-table td:nth-child(6) { max-width: 220px; white-space: normal; }
.admin-revoke { min-width: 52px; min-height: 44px; border: 1px solid rgba(156,56,45,.35); color: var(--red); background: transparent; }
.admin-revoke:hover { color: var(--cream); background: var(--red); }
.admin-empty { margin: 28px 0 0; color: var(--ink-soft); text-align: center; }
.admin-status { min-height: 28px; margin: 24px 0 0; color: var(--green); font: 14px/1.7 system-ui, sans-serif; }
.admin-status[data-error="true"] { color: var(--red); }

@media (max-width: 850px) {
  .admin-create-form { grid-template-columns: 120px 1fr; }
  .admin-create-form button { grid-column: 1 / -1; }
  .admin-new-code { grid-template-columns: 1fr; }
  .admin-new-code button { justify-self: start; }
}

@media (max-width: 520px) {
  .topbar-actions { gap: 6px; }
  .topbar-actions [data-scroll] { display: none; }
  .topbar-actions .ghost-button { padding-inline: 13px; font-size: 12px; }
  .unlocked-banner > button { width: 100%; margin-left: 0; }
  .admin-main { width: calc(100% - 28px); padding-top: 42px; }
  .admin-login, .admin-create, .admin-records { padding: 24px 18px; }
  .admin-login-row, .admin-create-form { grid-template-columns: 1fr; }
  .admin-records-heading { align-items: flex-start; flex-direction: column; }
  .admin-new-code code { font-size: 16px; overflow-wrap: anywhere; }
}


button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.suggestion-chips button, .text-button, .demo-button { min-height: 44px; }


.payment-sheet { overflow-y: auto; }
.sheet-card { max-height: 94dvh; overflow-y: auto; }
.admin-table { min-width: 760px; }
