/* PEMNI Life Resources - shared styles (public site + admin) */
:root {
  --bg: #fffdf8; --surface: #ffffff; --surface-2: #fbf4e0; --ink: #15130f; --muted: #6b6253; --line: #ece2c8;
  --brand: #94691a; --brand-ink: #ffffff; --brand-soft: #f8efd6; --gold: #e9b52c; --gold-soft: #fdf4d3;
  --ok: #2f7d5b; --ok-soft: #e3f1ea; --warn: #9a6512; --warn-soft: #f8ecd6; --bad: #b42318; --bad-soft: #fbe5e2;
  --shadow: 0 14px 40px rgba(60, 45, 10, .09);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0c0a; --surface: #16140f; --surface-2: #201c13; --ink: #f6efdd; --muted: #b6aa90; --line: #332c1c;
    --brand: #e2bb5e; --brand-ink: #15130f; --brand-soft: #2a2312; --gold: #f6cc4a; --gold-soft: #2a2310;
    --ok: #6fcf9f; --ok-soft: #1d3329; --warn: #e8b766; --warn-soft: #382c17; --bad: #f08a80; --bad-soft: #3b1f1c;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0c0a; --surface: #16140f; --surface-2: #201c13; --ink: #f6efdd; --muted: #b6aa90; --line: #332c1c;
  --brand: #e2bb5e; --brand-ink: #15130f; --brand-soft: #2a2312; --gold: #f6cc4a; --gold-soft: #2a2310;
  --ok: #6fcf9f; --ok-soft: #1d3329; --warn: #e8b766; --warn-soft: #382c17; --bad: #f08a80; --bad-soft: #3b1f1c;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.65;
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  transition: background .25s, color .25s;
}
h1, h2, h3 { font-family: "Noto Serif SC", "Playfair Display", Georgia, serif; line-height: 1.25; margin: 0 0 .4em; font-weight: 700; }
a { color: var(--brand); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark, .logo-mark { display: inline-block; flex: none; background: var(--brand);
  -webkit-mask: url(/img/logo-mark.png) center / contain no-repeat; mask: url(/img/logo-mark.png) center / contain no-repeat; }
.brand-mark { width: 44px; height: 44px; }
.brand-txt b { display: block; font-family: "Noto Serif SC", serif; font-size: 19px; letter-spacing: 6px; line-height: 1.1; color: var(--brand); }
.brand-txt span { display: block; font-size: 9.5px; letter-spacing: 2.6px; color: var(--brand); opacity: .85; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.nav a:hover { background: var(--surface-2); }
.nav a.on { color: var(--brand); font-weight: 600; }
.tools { display: flex; gap: 6px; align-items: center; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; height: 38px; min-width: 38px; padding: 0 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; }
.icon-btn:hover { border-color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; display: none; }
  .nav.open { display: flex; }
  .tools { margin-left: auto; }
}

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 22px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 15px; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-wa { background: #25d366; color: #0b2e17; }

label.f { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
label.f .req { color: var(--brand); }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); outline: none;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
textarea.input { min-height: 110px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label { flex: 1; min-width: 150px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; background: var(--surface); }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { accent-color: var(--brand); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 16px; }
.check input { accent-color: var(--brand); margin-top: 5px; }

/* ---------- cards & sections ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }

.hero { position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 70%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); display: block; }
/* home hero: the full 生命运数 logo lockup */
.hero-logo { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 40px 28px 34px; text-align: center; }
.hero-logo::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--brand-soft); border-radius: 20px; pointer-events: none; }
.hero-logo .logo-mark { width: min(250px, 62vw); aspect-ratio: 1; }
.hero-logo .word b { display: block; font-family: "Noto Serif SC", serif; font-size: clamp(34px, 5vw, 46px); letter-spacing: .32em; margin: 18px 0 0 .32em; color: var(--brand); line-height: 1.2; }
.hero-logo .word span { display: block; letter-spacing: .3em; font-size: clamp(11px, 1.6vw, 14px); color: var(--brand); margin-top: 8px; }
.hero-logo .tagline { margin: 18px auto 0; padding-top: 14px; border-top: 1px solid var(--line); max-width: 300px; color: var(--muted); font-size: 14px; }
.hero-logo .tagline b { color: var(--brand); }
.badge-float { position: absolute; left: -18px; bottom: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.badge-float b { display: block; font-size: 22px; color: var(--brand); font-family: "Noto Serif SC", serif; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-logo { order: -1; } .hero { padding: 40px 0 56px; } .badge-float { left: 12px; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--muted); margin: 0 0 14px; }
.feature a { font-weight: 600; text-decoration: none; }

.band { background: var(--surface-2); }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 24px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; }
.list-check li::before { content: "✦"; color: var(--gold); flex: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; text-align: center; }
.stats b { display: block; font-family: "Noto Serif SC", serif; font-size: 34px; color: var(--brand); }

.cta-band { background: var(--brand); color: var(--brand-ink); border-radius: 24px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }
.cta-band .btn { background: var(--brand-ink); color: var(--brand); }

/* page header for inner pages */
.page-head { padding: 52px 16px 28px; text-align: center; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); }
.page-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.lock-note { display: inline-flex; gap: 8px; align-items: center; background: var(--ok-soft); color: var(--ok); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-top: 14px; }

.form-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; padding-bottom: 64px; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.side-card h3 { font-size: 18px; }
.bank { background: var(--surface-2); border-radius: 12px; padding: 14px; margin-top: 10px; font-size: 14px; }
.bank b { font-size: 18px; letter-spacing: 1px; }

.alert { border-radius: 12px; padding: 12px 16px; margin-top: 16px; font-size: 14px; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.err { background: var(--bad-soft); color: var(--bad); }

/* lucky draw */
.draw-card { margin-bottom: 24px; }
.draw-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.open { background: var(--ok-soft); color: var(--ok); }
.pill.closed { background: var(--surface-2); color: var(--muted); }
.prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 18px 0; }
.prize { border: 1px dashed var(--gold); background: var(--gold-soft); border-radius: 14px; padding: 14px; }
.prize b { display: block; }
.winners { width: 100%; border-collapse: collapse; font-size: 14px; }
.winners td, .winners th { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.winners th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.enter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.enter-row .input { flex: 1; min-width: 200px; }

/* about */
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid img { border-radius: 20px; box-shadow: var(--shadow); display: block; }
.creds { display: grid; gap: 10px; margin: 18px 0; }
.creds div { display: flex; gap: 10px; }
.creds div::before { content: "◆"; color: var(--brand); font-size: 12px; margin-top: 5px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 { margin: 0 0 10px; font-size: 14px; letter-spacing: 1px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--brand); }
.site-foot p { margin: 4px 0; }
.copy { text-align: center; color: var(--muted); font-size: 12px; margin-top: 26px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 12px; opacity: 0; transition: .25s; z-index: 100; pointer-events: none; font-size: 14px; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ================= Premium layer: bold serif headings, clean sans body, black · gold · yellow · white ================= */
:root {
  --font-display: "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-kai: "Inter", "Noto Sans SC", system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  --font-latin: "Inter", "Noto Sans SC", system-ui, sans-serif; /* numbers: plain, upright, tabular */
  --gold-grad: linear-gradient(135deg, #f3d77a 0%, #d4a43a 45%, #a87a1e 100%);
  --black: #15130f;
}
body:not(.admin) { font-family: var(--font-kai); font-size: 16px; font-variant-numeric: tabular-nums lining-nums; }
body:not(.admin) h1 { font-family: var(--font-display); font-weight: 900; letter-spacing: .02em; }
body:not(.admin) h3 { font-family: var(--font-kai); font-weight: 700; }

.brand-txt b { font-family: var(--font-display); font-weight: 900; font-size: 21px; letter-spacing: .2em; }
.brand-txt span { font-family: var(--font-latin); font-size: 9.5px; letter-spacing: .26em; font-weight: 600; }

/* buttons: black with gold, and solid gold */
.btn { letter-spacing: .03em; font-weight: 700; }
.btn-primary { background: var(--gold-grad); color: var(--black); border-color: #c99a34; box-shadow: 0 6px 18px rgba(180, 135, 40, .25); }
.btn-dark { background: var(--black); color: #f3d77a; border-color: var(--black); }
:root[data-theme="dark"] .btn-dark { background: #000; border-color: #3a3220; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.nav a.on { color: var(--brand); position: relative; }
.nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--gold-grad); border-radius: 2px; }

/* ornaments */
.eyebrow { color: var(--brand); font-family: var(--font-latin); font-size: 12.5px; letter-spacing: .3em; font-weight: 700; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--brand); margin: 6px auto 0; max-width: 260px; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brand)); }
.ornament::after { transform: scaleX(-1); }
.card { border-radius: 20px; }
.feature { position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-grad); }
.feature .ico { background: var(--gold-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.list-check li::before { color: var(--gold); }
.stats b { font-family: var(--font-latin); font-weight: 800; font-size: 38px; color: var(--brand); }
.band { background: linear-gradient(180deg, var(--surface-2), var(--bg)); }

/* hero with arch-framed portrait */
.hero { padding: 64px 0 84px; }
.hero::before { background: radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.22; }
.hero h1 em { color: var(--brand); background: linear-gradient(transparent 68%, color-mix(in srgb, var(--gold) 45%, transparent) 68%); padding: 0 .05em; }
.hero-photo { position: relative; justify-self: center; width: min(470px, 92%); margin: 10px 0 0 18px; }
.hero-photo .arch { position: relative; aspect-ratio: 714 / 751; border-radius: 220px 220px 26px 26px; overflow: hidden; border: 6px solid var(--surface); box-shadow: var(--shadow); background: #fff; }
.hero-photo .arch img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hero-photo::before { content: ""; position: absolute; inset: -16px 18px 16px -18px; border: 1.5px solid var(--brand); border-radius: 230px 230px 30px 30px; opacity: .55; }
.hero-photo .sig { position: absolute; left: -26px; bottom: 34px; background: var(--black); color: #f3d77a; padding: 12px 20px; border-radius: 14px; box-shadow: var(--shadow); }
.hero-photo .sig b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: .06em; line-height: 1.2; }
.hero-photo .sig span { font-size: 12px; opacity: .85; letter-spacing: .08em; }
@media (max-width: 860px) { .hero-photo { order: -1; width: min(320px, 78%); margin: 10px auto 0; } .hero-photo .sig { left: -10px; } }

.cta-band { background: var(--black); color: #f6efdd; border: 1px solid #3a3220; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(233, 181, 44, .25), transparent 55%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #f3d77a; }
.cta-band .btn { background: var(--gold-grad); color: var(--black); }

.site-foot { background: var(--black); color: #d9cfb6; border-top: 3px solid transparent; border-image: var(--gold-grad) 1; }
.site-foot h4 { color: #f3d77a; }
.site-foot a { color: #f6efdd; }
.site-foot a:hover { color: #f3d77a; }
.site-foot .muted, .site-foot .copy { color: #a99f86; }
.site-foot .brand-mark { background: #e2bb5e; }
.site-foot .brand-txt b, .site-foot .brand-txt span { color: #e2bb5e; }

/* ---------- booking calendar ---------- */
.cal { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 16px; max-width: 420px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-size: 17px; letter-spacing: .05em; }
.cal-nav { border: 1px solid var(--line); background: var(--surface); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 0; background: none; border-radius: 50%; cursor: pointer; font-size: 15px; position: relative; }
.cal-day:hover:not(:disabled) { background: var(--gold-soft); }
.cal-day:disabled { color: color-mix(in srgb, var(--muted) 45%, transparent); cursor: default; }
.cal-day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand); }
.cal-day.sel { background: var(--black); color: #f3d77a; }
:root[data-theme="dark"] .cal-day.sel { background: var(--gold); color: var(--black); }
.cal-day.full { text-decoration: line-through; }
.date-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; cursor: pointer; }
.date-trigger svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.cal-pop { margin-top: 8px; animation: drop .22s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.slot { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 6px; cursor: pointer; text-align: center; transition: .15s; }
.slot b { display: block; font-family: var(--font-latin); font-size: clamp(16px, 4.2vw, 20px); font-weight: 800; white-space: nowrap; }
.slot span { font-size: 12.5px; color: var(--muted); }
.slot:hover:not(:disabled) { border-color: var(--brand); }
.slot.sel { background: var(--black); border-color: var(--black); color: #f3d77a; }
.slot.sel span { color: #d9cfb6; }
:root[data-theme="dark"] .slot.sel { background: var(--gold); color: var(--black); border-color: var(--gold); }
.slot:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* ---------- tests ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 20px; cursor: pointer; font-size: 15px; letter-spacing: .04em; }
.tabs button.on { background: var(--black); color: #f3d77a; border-color: var(--black); }
:root[data-theme="dark"] .tabs button.on { background: var(--gold); color: var(--black); }
.test-wrap { max-width: 820px; margin: 0 auto 64px; }
.q { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.q:last-of-type { border-bottom: 0; }
.q p { margin: 0 0 10px; font-size: 17px; }
.q p b { color: var(--brand); font-family: var(--font-latin); font-weight: 800; margin-right: 6px; }
.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 640px) { .opts { grid-template-columns: 1fr 1fr; } }
.opts label { border: 1px solid var(--line); border-radius: 12px; padding: 9px 8px; text-align: center; cursor: pointer; font-size: 14px; background: var(--surface); }
.opts label:has(input:checked) { background: var(--black); color: #f3d77a; border-color: var(--black); }
:root[data-theme="dark"] .opts label:has(input:checked) { background: var(--gold); color: var(--black); }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.progress { height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; margin: 6px 0 18px; }
.progress div { height: 100%; width: 0; background: var(--gold-grad); transition: width .25s; }
.result { margin-top: 24px; border-radius: 20px; padding: 26px; background: var(--black); color: #f6efdd; }
.result h3 { color: #f3d77a; font-size: 22px; }
.result .score { font-family: var(--font-latin); font-size: 60px; line-height: 1; color: #f3d77a; font-weight: 800; }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 16px 0 6px; }
.meter div { height: 8px; border-radius: 4px; background: #3a3220; }
.meter div.on { background: var(--gold-grad); }
.meter-l { display: grid; grid-template-columns: repeat(5, 1fr); font-size: 11.5px; color: #a99f86; text-align: center; }
.crisis { margin-top: 16px; background: #3b1f1c; color: #ffd9d3; border-radius: 14px; padding: 14px 16px; font-size: 14.5px; }
.crisis a { color: #fff; font-weight: 700; }
.disclaimer { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* numerology triangle */
.tri { display: grid; gap: 10px; justify-items: center; margin: 22px 0 8px; }
.tri .row { display: flex; gap: 10px; justify-content: center; }
.tri .n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-latin); font-size: 20px; font-weight: 700; border: 1px solid #5a4d2c; color: #f6efdd; position: relative; }
.tri .n small { position: absolute; top: -9px; right: -6px; font-size: 10px; color: #a99f86; font-family: var(--font-kai); }
.tri .row.base .n { width: 38px; height: 38px; font-size: 18px; border-style: dashed; }
.tri .n.main { width: 70px; height: 70px; font-size: 34px; background: var(--gold-grad); color: var(--black); border: 0; }
.codes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
@media (max-width: 640px) { .codes { grid-template-columns: 1fr 1fr; } }
.codes div { border: 1px solid #3a3220; border-radius: 14px; padding: 12px; text-align: center; }
.codes span { display: block; font-size: 12px; color: #a99f86; letter-spacing: .15em; }
.codes b { font-family: var(--font-latin); font-size: 26px; font-weight: 800; color: #f3d77a; letter-spacing: .08em; }
.type-card { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: start; margin-top: 10px; }
@media (max-width: 640px) { .type-card { grid-template-columns: 1fr; } }
.type-num { width: 110px; height: 110px; border-radius: 50%; background: var(--gold-grad); color: var(--black); display: grid; place-items: center; text-align: center; line-height: 1.05; }
.type-num b { font-family: var(--font-latin); font-size: 44px; font-weight: 800; display: block; }
.type-num span { font-size: 12px; }
.trait-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; padding: 0; list-style: none; margin: 12px 0 0; }
@media (max-width: 640px) { .trait-list { grid-template-columns: 1fr; } }
.trait-list li::before { content: "✦ "; color: #e9b52c; }
.dob-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.dob-row > div { flex: 1; min-width: 90px; }
/* ---------- testimonials (客户见证) ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.testi-card { position: relative; display: block; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; background: var(--black); aspect-ratio: 16 / 9; box-shadow: var(--shadow); transition: transform .2s; }
.testi-card:hover { transform: translateY(-3px); }
.testi-card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .88; transition: opacity .2s; }
.testi-card:hover img { opacity: 1; }
.testi-card .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--gold-grad); color: var(--black); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.testi-card .play svg { width: 26px; height: 26px; margin-left: 3px; }
.testi-card .cap { position: absolute; left: 12px; bottom: 10px; background: rgba(21,19,15,.78); color: #f3d77a; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .05em; }
.video-modal { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.video-box { position: relative; width: min(960px, 100%); }
.video-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-close { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--gold-grad); color: var(--black); font-size: 26px; line-height: 1; cursor: pointer; }