/* NaviNana 八字合盤 · 網站頁面樣式
 * 跟隨 qimennavi.com 首頁「星夜」設計（home-night.css 的色彩、字型與元件）。
 * 所有規則只作用於 .hp 之內；報告頁（.nr-page，見 report.css）不受影響。
 */
.hp, .hp-lightbox {
  --bg: #0A0C1C;
  --glow: rgba(46, 50, 128, .6);
  --card: #171C45;
  --card-2: #121638;
  --card-3: #1D2255;
  --gold: #D4B06A;
  --gold-l: #E6C888;
  --on-gold: #1A1532;
  --ink: #F4ECDD;
  --muted: #C9C2D6;
  --soft: #B8B0C8;
  --dim: #8F88A8;
  --line: rgba(212, 176, 106, .3);
  --line-2: rgba(212, 176, 106, .18);
  --field: #0A0C1C;
  --pa: #B9A6F2;
  --pa-bg: rgba(140, 116, 220, .1);
  --pa-line: rgba(185, 166, 242, .45);
  --pb: #F0A6BF;
  --pb-bg: rgba(224, 120, 155, .09);
  --pb-line: rgba(240, 166, 191, .45);
  --ok: #9FDDB5;
  --ok-bg: rgba(111, 201, 146, .14);
  --warn-bg: rgba(212, 176, 106, .12);
  --bad: #F4AFA4;
  --bad-bg: rgba(240, 128, 112, .14);
  --serif: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  color-scheme: dark;
}
html:has(.hp), body:has(.hp) { background: #0A0C1C; }
.hp {
  position: relative;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-inline: 16px;
  padding-block: 0 56px;
  min-height: 100%;
}
.hp :where(*:not(.nr-page, .nr-page *)) { box-sizing: border-box; }
:where(.hp) button, :where(.hp) select, :where(.hp) input { font: inherit; color: inherit; }
.hp [hidden], .hp-lightbox [hidden] { display: none !important; }
.hp :focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.hp a { color: var(--gold-l); }
.hp-wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.hp-wrap .hp-wrap { width: 100%; }
.hp-serif { font-family: var(--serif); }
.hp-h { font-family: var(--serif); font-weight: 700; margin: 0; line-height: 1.4; text-wrap: balance; letter-spacing: .02em; }
.hp-eyebrow { font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.hp-note { font-size: 13px; color: var(--soft); }

/* 星空背景 */
.hp::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 900px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 760px 460px at 30% 260px, var(--glow) 0%, rgba(26, 30, 80, .3) 55%, rgba(10, 12, 28, 0) 100%); }
.hp-sky { position: absolute; left: 0; right: 0; top: 0; height: 1000px; pointer-events: none; z-index: 0; opacity: .85;
  background:
    radial-gradient(1.4px 1.4px at 6% 18%, #F4ECDD 50%, transparent 51%), radial-gradient(1px 1px at 18% 62%, #F4ECDD 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 34% 8%, #F4ECDD 50%, transparent 51%), radial-gradient(1px 1px at 47% 30%, #F4ECDD 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 58% 12%, #E6C888 50%, transparent 51%), radial-gradient(1px 1px at 88% 10%, #F4ECDD 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 95% 34%, #F4ECDD 50%, transparent 51%), radial-gradient(1px 1px at 3% 80%, #F4ECDD 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 42% 70%, #F4ECDD 50%, transparent 51%), radial-gradient(1px 1px at 26% 40%, #F4ECDD 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 72% 22%, #F4ECDD 50%, transparent 51%), radial-gradient(1px 1px at 80% 48%, #E6C888 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 12% 92%, #F4ECDD 50%, transparent 51%), radial-gradient(1px 1px at 64% 88%, #F4ECDD 50%, transparent 51%); }
.hp-sky i { position: absolute; width: 14px; height: 14px; color: var(--gold-l); animation: hp-twinkle 5s ease-in-out infinite; }
.hp-sky i svg { width: 100%; height: 100%; display: block; }
.hp-sky i:nth-child(2) { animation-delay: 1.7s; width: 10px; height: 10px; }
.hp-sky i:nth-child(3) { animation-delay: 3.1s; width: 12px; height: 12px; }
@keyframes hp-twinkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* 頂部 */
.hp-top { position: relative; z-index: 2; border-bottom: 1px solid var(--line-2); margin-inline: -16px; padding-inline: 16px; }
.hp-top > div { max-width: 1040px; margin: 0 auto; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hp-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.hp .hp-brand { color: var(--ink); }
.hp-brand svg { width: 38px; height: 38px; flex: none; }
.hp-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.hp-brand b { font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: .14em; white-space: nowrap; }
.hp-brand small { margin-top: 4px; font-size: 9px; letter-spacing: .42em; color: var(--gold); }
.hp-ghostlink { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid rgba(212, 176, 106, .5); border-radius: 19px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.hp .hp-ghostlink { color: var(--gold-l); }
.hp .hp-ghostlink:hover { background: rgba(212, 176, 106, .1); }

/* Hero */
.hp-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy visual"; column-gap: 48px; align-items: center; padding-top: 56px; }
.hp-hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 14px; }
.hp-hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.3; letter-spacing: .04em; margin: 0; text-wrap: balance; }
.hp-hero .lead { margin: 0; font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 34em; }
.hp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hp-tags span { font-size: 12.5px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); }
.hp-visual { grid-area: visual; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hp-visual figcaption { font-size: 11.5px; color: var(--dim); text-align: center; max-width: 360px; }
.hp-visual .nana { width: 118px; height: auto; margin-top: -6px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }

/* 雙盤連線示意 */
.hp-duo { --c: 78px; --gp: 6px; width: calc(var(--c) * 4 + var(--gp) * 3 + 14px); padding: 7px; border: 1px solid rgba(212, 176, 106, .55); border-radius: 12px; background: rgba(14, 18, 48, .55); animation: hp-glow 4s ease-in-out infinite; }
.hp-duo-who { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--soft); padding: 2px 2px 5px; }
.hp-duo-who.b { padding: 5px 2px 2px; }
.hp-duo-who i { width: 7px; height: 7px; border-radius: 50%; background: var(--pa); }
.hp-duo-who.b i { background: var(--pb); }
.hp-duo-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gp); }
.hp-duo-cell { position: relative; height: calc(var(--c) * 1.08); border: 1px solid rgba(212, 176, 106, .3); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.hp-duo-cell.dm { border-color: rgba(230, 200, 136, .7); background: rgba(212, 176, 106, .1); }
.hp-duo-cell small { position: absolute; left: 5px; top: 3px; font-size: 10px; color: var(--dim); }
.hp-duo-cell em { position: absolute; right: 4px; top: 3px; font-size: 9px; font-style: normal; color: var(--gold); }
.hp-duo-cell b { font-family: var(--serif); font-weight: 700; font-size: calc(var(--c) * .28); color: var(--gold-l); }
.hp-duo-cell span { font-family: var(--serif); font-weight: 700; font-size: calc(var(--c) * .28); }
.hp-duo-band { position: relative; height: calc(var(--c) * 1.05); min-height: 70px; }
.hp-duo-band svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hp-duo-band path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.hp-duo-band .he { stroke: var(--gold-l); animation: hp-line 3.6s ease-in-out infinite; }
.hp-duo-band .he + .he { animation-delay: 1.2s; }
.hp-duo-band .ch { stroke: var(--pb); stroke-dasharray: 5 4; animation: hp-line 3.6s ease-in-out 2.4s infinite; }
.hp-duo-band .chip { position: absolute; transform: translate(-50%, -50%); font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 999px; background: var(--bg); border: 1px solid var(--gold); color: var(--gold-l); white-space: nowrap; }
.hp-duo-band .chip.ch { border-color: var(--pb); color: var(--pb); }
@keyframes hp-line { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes hp-glow { 0%, 100% { box-shadow: 0 0 0 rgba(230, 200, 136, 0); } 50% { box-shadow: 0 0 28px rgba(230, 200, 136, .3); } }

/* 起盤表單（對應首頁 .ask） */
.hp-ask { background: var(--card); border: 1px solid rgba(212, 176, 106, .4); border-radius: 18px; padding: 26px 28px; display: flex; flex-direction: column; gap: 22px; }
.hp-ask-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hp-ask-head h2 { font-size: 22px; }
.hp-ask-head span { font-size: 12.5px; color: var(--soft); }
.hp-step { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hp-step > b { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.hp-step h2, .hp-step h3 { font-family: var(--serif); font-weight: 700; font-size: 18px; margin: 0; line-height: 1.4; }
.hp-step span { color: var(--soft); font-size: 13px; }

/* 關係選擇（對應首頁 .topic） */
.hp-rels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hp-rel { position: relative; min-width: 0; }
.hp-rel input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.hp-rel label { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 8px 8px 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.hp-rel label .art { display: block; border-radius: 10px; background: linear-gradient(160deg, #F1EBFB 0%, #E6DCF6 55%, #EEE2F4 100%); }
.hp-rel label img { display: block; width: 100%; height: auto; aspect-ratio: 1476 / 1066; object-fit: contain; }
.hp-rel label .txt { min-width: 0; padding: 0 4px; }
.hp-rel label b { display: block; font-size: 15px; font-weight: 700; }
.hp-rel label small { display: block; font-size: 12px; color: var(--soft); line-height: 1.45; }
.hp-rel label:hover { border-color: rgba(212, 176, 106, .6); }
.hp-rel input:checked + label { background: rgba(212, 176, 106, .14); border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.hp-rel input:checked + label::after { content: "✓"; position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-size: 14px; font-weight: 700; line-height: 24px; text-align: center; }
.hp-rel input:focus-visible + label { outline: 2px solid var(--gold-l); outline-offset: 2px; }

/* 人物表單 */
.hp-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hp-person { min-width: 0; border-radius: 14px; padding: 16px 18px; border: 1px solid; display: flex; flex-direction: column; gap: 12px; }
.hp-person.a { background: var(--pa-bg); border-color: var(--pa-line); }
.hp-person.b { background: var(--pb-bg); border-color: var(--pb-line); }
.hp-person .who { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hp-person .who b { font-family: var(--serif); font-size: 17px; }
.hp-person.a .who b { color: var(--pa); }
.hp-person.b .who b { color: var(--pb); }
.hp-field { display: flex; flex-direction: column; gap: 5px; }
.hp-field > span { font-size: 13px; color: var(--gold-l); }
.hp-row { display: flex; gap: 8px; flex-wrap: wrap; }
.hp-row > * { flex: 1 1 0; min-width: 0; }
.hp input[type=text], .hp select { width: 100%; background: var(--field); border: 1px solid rgba(212, 176, 106, .35); border-radius: 12px; padding: 8px 12px; min-height: 44px; color: var(--ink); }
.hp input[type=text]::placeholder { color: var(--dim); }
.hp input[type=text]:hover, .hp select:hover { border-color: rgba(212, 176, 106, .6); }
.hp select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-l) 50%), linear-gradient(135deg, var(--gold-l) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.hp select option, .hp select optgroup { background: #121638; color: #F4ECDD; }
.hp-seg { display: inline-flex; background: var(--field); border: 1px solid rgba(212, 176, 106, .35); border-radius: 12px; padding: 3px; gap: 2px; }
.hp-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hp-seg label { padding: 5px 14px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--soft); white-space: nowrap; }
.hp-seg input:checked + label { background: var(--gold); color: var(--on-gold); font-weight: 700; }
.hp-seg input:focus-visible + label { outline: 2px solid var(--gold-l); }
.hp-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.hp-check input { margin-top: 4px; accent-color: var(--gold); }
.hp-hint { font-size: 12.5px; color: var(--gold-l); background: var(--warn-bg); border-radius: 10px; padding: 6px 10px; }
.hp-hint.hi { color: var(--bad); background: var(--bad-bg); }
.hp-error { color: var(--bad); font-size: 13.5px; background: var(--bad-bg); border: 1px solid rgba(240, 128, 112, .35); border-radius: 12px; padding: 8px 12px; }

.hp-go { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hp-perks { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--soft); }
.hp-perks b { color: var(--gold-l); font-weight: 400; }

/* 按鈕（對應首頁 .btn / .btn-ghost） */
.hp-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border: 0; border-radius: 26px; background: var(--gold); color: var(--on-gold); font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: .06em; cursor: pointer; transition: background .15s, transform .1s; }
.hp .hp-btn { color: var(--on-gold); }
.hp-btn:hover { background: var(--gold-l); }
.hp-btn:active { transform: translateY(1px); }
.hp-btn.big { min-height: 52px; width: min(100%, 440px); font-size: 17px; letter-spacing: .08em; }
.hp-btn.gold { background: var(--gold); }
.hp-btn.gold:hover { background: var(--gold-l); }
.hp .hp-btn.ghost { background: transparent; color: var(--gold-l); border: 1px solid rgba(212, 176, 106, .55); font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.hp-btn.ghost:hover { background: rgba(212, 176, 106, .1); }
.hp-btn[disabled] { opacity: .55; cursor: progress; }
.hp-btn svg { width: 18px; height: 18px; }

/* 區塊卡 */
.hp-section { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px 26px; }
.hp-sec-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.hp-sec-head h2 { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.45; margin: 0; text-wrap: balance; }
.hp-sec-head p { margin: 0; font-size: 13.5px; color: var(--soft); }
.hp-sec-head.center { align-items: center; text-align: center; }
.hp-bare { background: none; border: 0; padding: 0; }
.hp-bare .hp-sec-head h2 { font-size: clamp(22px, 3vw, 30px); }

/* 結果摘要 */
.hp-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.hp-scorecircle { width: 156px; height: 156px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(212, 176, 106, .14) 0); display: grid; place-items: center; }
.hp-scorecircle > div { width: 128px; height: 128px; border-radius: 50%; background: var(--card-2); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hp-scorecircle b { font-family: var(--serif); font-weight: 900; font-size: 48px; line-height: 1; color: var(--gold-l); font-variant-numeric: tabular-nums; }
.hp-scorecircle small { font-size: 12px; color: var(--soft); margin-top: 4px; }
.hp-typename { font-family: var(--serif); font-size: 24px; margin: 8px 0 6px; line-height: 1.4; }
.hp-grade { display: inline-flex; gap: 8px; align-items: center; background: rgba(212, 176, 106, .12); border: 1px solid var(--line); color: var(--gold-l); border-radius: 999px; padding: 2px 12px 2px 3px; font-size: 13px; }
.hp-grade b { background: var(--gold); color: var(--on-gold); border-radius: 999px; padding: 0 10px; font-family: var(--serif); }
.hp-typedesc { margin: 0; color: var(--muted); font-size: 14.5px; }
.hp-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; margin-top: 14px; }
.hp-dim { display: grid; grid-template-columns: 5.4em minmax(0, 1fr) 2em; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.hp-dim .bar { height: 7px; border-radius: 4px; background: rgba(212, 176, 106, .14); overflow: hidden; }
.hp-dim .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-l)); border-radius: 4px; }
.hp-dim b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

/* 報告預覽縮圖（報告頁本身不改） */
.hp-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.hp-thumb { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #FFFBF4; cursor: zoom-in; padding: 0; text-align: left; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .7); transition: transform .15s, border-color .15s; }
.hp-thumb:hover { transform: translateY(-2px); border-color: var(--gold); }
.hp-thumb .scaler { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.hp-thumb .cap { position: absolute; left: 8px; bottom: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; }
.hp-thumb .cap span { background: rgba(18, 22, 56, .9); color: var(--ink); border-radius: 999px; padding: 1px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 報告目錄（付款前只顯示目錄，不顯示任何計算結果） */
.hp-toc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.hp-toc li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(10, 12, 28, .35); }
.hp-toc .pn { flex: none; min-width: 34px; font-size: 12px; line-height: 22px; color: var(--gold); font-variant-numeric: tabular-nums; }
.hp-toc b { display: block; font-size: 14.5px; line-height: 22px; }
.hp-toc small { display: block; font-size: 12.5px; line-height: 1.6; color: var(--soft); }
.hp-toc li.opt { border-style: dashed; border-color: var(--line); }
.hp-toc li.opt .pn { color: var(--gold-l); }

/* 示例報告連結（虛構人物）及本機暫存說明 */
.hp-sample { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 0; }
.hp-sample small { flex: 1 1 260px; font-size: 12.5px; line-height: 1.6; color: var(--soft); }
.hp-privacy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); }
.hp-privacy .hp-note { flex: 1 1 320px; margin: 0; }
.hp-btn.small { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.hp-method .hp-method-text { max-width: 760px; margin: 0 auto; font-size: 15px; line-height: 1.9; color: var(--soft); }
.hp-method .hp-note.center { text-align: center; margin-top: 10px; }

/* 報告會講甚麼：合得來／容易有摩擦（原版 NaviNana 插圖） */
.hp-moods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hp-mood { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: center; padding: 24px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .9); background: linear-gradient(160deg, #F1EBFB 0%, #E6DCF6 55%, #EEE2F4 100%); box-shadow: inset 0 0 0 5px rgba(241, 235, 251, .9), inset 0 0 0 6px rgba(190, 150, 80, .45); color: #241A45; }
.hp-mood img { display: block; justify-self: center; width: 100%; max-width: 240px; height: auto; aspect-ratio: 1476 / 1066; object-fit: contain; }
.hp-mood .tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid #D7CAEE; font-size: 13px; font-weight: 700; color: #6B4FC0; }
.hp-mood .tag.rub { color: #8F3B2E; }
.hp-mood h3 { margin: 10px 0 8px; font-family: var(--serif); font-size: 21px; letter-spacing: .06em; color: #241A45; }
.hp-mood ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 14.5px; line-height: 1.6; color: #3A2A70; }

/* 付款列 */
.hp-pay { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 28px; align-items: center; padding: 18px 20px; border-radius: 14px; background: linear-gradient(135deg, var(--card-3), #2A2463); border: 1px solid rgba(212, 176, 106, .4); }
.hp-pay-price b { display: block; font-family: var(--serif); font-weight: 900; font-size: 38px; line-height: 1.15; color: var(--gold-l); font-variant-numeric: tabular-nums; }
.hp-pay-price small { display: block; font-size: 12.5px; color: var(--soft); }
.hp-pay-go { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hp-pay-go .hp-note { margin: 0; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hp-topnav { display: flex; gap: 8px; }
.hp-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* 核對資料（付款前） */
.hp-modal { position: fixed; inset: 0; z-index: 60; background: rgba(6, 7, 18, .82); display: flex; align-items: flex-start; justify-content: center; padding: calc(env(safe-area-inset-top, 0px) + 24px) 12px 24px; overflow: auto; }
.hp-modal-card { width: min(760px, 100%); background: var(--card); border: 1px solid rgba(212, 176, 106, .45); border-radius: 18px; padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.hp-modal-card h2 { font-size: 22px; }
.hp-modal-card .hp-note { margin: 0; }
.hp-mdl-rel b { color: var(--gold-l); }
.hp-mdl-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hp-mdl-people > div { border-radius: 12px; padding: 12px 14px; border: 1px solid; }
.hp-mdl-people .a { background: var(--pa-bg); border-color: var(--pa-line); }
.hp-mdl-people .b { background: var(--pb-bg); border-color: var(--pb-line); }
.hp-mdl-people h3 { font-family: var(--serif); font-size: 17px; margin: 0 0 6px; }
.hp-mdl-people .a h3 { color: var(--pa); }
.hp-mdl-people .b h3 { color: var(--pb); }
.hp-mdl-people dl { margin: 0; display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 3px 8px; font-size: 13.5px; }
.hp-mdl-people dt { color: var(--soft); }
.hp-mdl-people dd { margin: 0; }
.hp-mdl-people dd.gz { font-family: var(--serif); color: var(--gold-l); letter-spacing: 2px; }
.hp-mdl-go { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* 我的合盤報告 */
.hp-rec { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hp-rec li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); }
.hp-rec b { display: block; font-family: var(--serif); font-size: 16px; }
.hp-rec small { color: var(--soft); font-size: 12.5px; }

/* 為甚麼要用（對應首頁 .point） */
.hp-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hp-why > div { display: flex; gap: 12px; align-items: flex-start; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; }
.hp-why .seal { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid rgba(212, 176, 106, .5); display: flex; align-items: center; justify-content: center; color: var(--gold-l); font-family: var(--serif); font-weight: 700; }
.hp-why b { display: block; font-size: 15px; margin-bottom: 2px; }
.hp-why p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--soft); }

/* 方法說明（對應首頁 .method） */
.hp-method p { font-size: 13.5px; line-height: 1.75; color: var(--muted); margin: 0; }

/* 時間校正 */
.hp-calib { background: rgba(10, 12, 28, .55); border: 1px dashed rgba(212, 176, 106, .35); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; }
.hp-calib-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.hp-calib-h b { color: var(--gold-l); font-weight: 500; }
.hp-calib ol { margin: 0; padding-left: 18px; color: var(--soft); }
.hp-calib li { margin: 1px 0; }
.hp-calib li::marker { color: var(--dim); }
.hp-calib li span { color: var(--ink); margin-right: 6px; }
.hp-calib-p { margin-top: 6px; color: var(--soft); }
.hp-calib-p b { font-family: var(--serif); color: var(--gold-l); letter-spacing: 2px; font-size: 14px; }
.hp-cert { border-radius: 999px; padding: 0 9px; font-size: 12px; line-height: 20px; white-space: nowrap; }
.hp-cert.ok { background: var(--ok-bg); color: var(--ok); }
.hp-cert.mid { background: var(--warn-bg); color: var(--gold-l); }
.hp-cert.low { background: var(--bad-bg); color: var(--bad); }
.hp-calib .hp-hint { margin-top: 6px; }

/* AI 解讀與追問 */
.hp-ai-card { background: rgba(212, 176, 106, .07); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 18px; margin-top: 14px; }
.hp-ai-card b { font-family: var(--serif); color: var(--gold-l); font-size: 17px; }
.hp-ai-card p { margin: 6px 0; color: var(--muted); }
.hp-ai-card ul { margin: 4px 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.hp-ai-card li::marker { color: var(--gold); }
.hp-qa { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.hp-qa-item { background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; }
.hp-qa-item b { color: var(--gold-l); font-weight: 500; }
.hp-qa-item p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.hp-qa-form { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.hp-qa-form label { font-size: 13px; color: var(--gold-l); }

/* 常見問題（對應首頁 .faq） */
.hp-faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; width: 100%; margin: 0 auto; }
.hp-faq details { border: 1px solid rgba(212, 176, 106, .2); border-radius: 12px; padding: 0 16px; }
.hp-faq details[open] { background: var(--card); border-color: transparent; }
.hp-faq summary { list-style: none; cursor: pointer; padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 500; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: "＋"; color: var(--gold-l); flex: none; }
.hp-faq details[open] summary::after { content: "－"; }
.hp-faq details p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.hp-foot { margin: 8px 0 0; text-align: center; font-size: 11.5px; line-height: 1.7; color: #9C95AE; }

/* 放大檢視 */
.hp-lightbox { position: fixed; inset: 0; background: rgba(6, 7, 18, .9); z-index: 50; display: flex; flex-direction: column; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 14px) 12px 14px; overflow: auto; font-family: var(--sans); }
.hp-lightbox .bar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; color: var(--ink); font-size: 14px; }
.hp-lightbox .bar button { background: transparent; color: var(--gold-l); border: 1px solid rgba(212, 176, 106, .55); border-radius: 999px; padding: 6px 16px; cursor: pointer; font: inherit; }
.hp-lightbox .bar button:hover { background: rgba(212, 176, 106, .12); }
.hp-lightbox .bar button[disabled] { opacity: .4; cursor: default; }
.hp-lightbox .frame { position: relative; flex: none; box-shadow: 0 16px 50px rgba(0, 0, 0, .55); border-radius: 6px; overflow: hidden; background: #fff; }
.hp-lightbox .frame .scaler { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* 輸出用（畫面外） */
.hp-render { position: fixed; left: 0; top: 0; width: 794px; z-index: -10; opacity: 1; pointer-events: none; transform: translateX(-12000px); }

.hp-loading { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); padding: 34px 0; }
.hp-loading .spin { width: 34px; height: 34px; animation: hpspin 1.6s linear infinite; }
@keyframes hpspin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .hp-loading .spin, .hp-duo, .hp-duo-band path, .hp-sky i { animation: none; }
  .hp-btn, .hp-thumb, .hp-rel label { transition: none; }
}

@media (max-width: 980px) {
  .hp-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hp-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "copy"; row-gap: 26px; padding-top: 32px; }
  .hp-hero-copy { text-align: center; align-items: center; }
  .hp-tags { justify-content: center; }
  .hp-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-pay { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
}
@media (max-width: 760px) {
  .hp-rels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-moods, .hp-mood { grid-template-columns: minmax(0, 1fr); }
  .hp-people { grid-template-columns: minmax(0, 1fr); }
  .hp-summary { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .hp-dims { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
  .hp-toc { grid-template-columns: minmax(0, 1fr); }
  .hp-mdl-people { grid-template-columns: minmax(0, 1fr); }
  .hp-rec li { grid-template-columns: minmax(0, 1fr) auto; }
  .hp-rec li .hp-btn { grid-column: 1 / -1; }
  .hp-why { grid-template-columns: minmax(0, 1fr); }
  .hp-ask { padding: 20px 16px; }
  .hp-section { padding: 20px 16px; }
  .hp-modal-card { padding: 20px 16px; }
}
@media (max-width: 520px) {
  .hp-visual { flex-direction: row; align-items: flex-end; flex-wrap: wrap; justify-content: center; }
  .hp-visual figcaption { flex-basis: 100%; }
  .hp-duo { --c: 54px; --gp: 4px; }
  .hp-duo-cell small { font-size: 9px; left: 3px; }
  .hp-duo-cell em { display: none; }
  .hp-duo-band .chip { font-size: 10px; padding: 3px 6px; }
  .hp-visual .nana { width: 74px; margin: 0 -8px 0 -2px; }
  .hp-hero .lead { font-size: 15px; }
  .hp-brand b { font-size: 17px; letter-spacing: .08em; }
  .hp-ghostlink { height: 34px; padding: 0 12px; font-size: 13px; }
  .hp-rel label b { font-size: 14px; }
  .hp-dims { grid-template-columns: minmax(0, 1fr); }
  .hp-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 360px) {
  .hp-duo { --c: 48px; }
  .hp-visual .nana { width: 62px; }
  .hp-brand small { letter-spacing: .25em; }
}

/* 上司／家長身份選擇（身份跟隨本人） */
.hp-senior { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding: 10px 12px; border: 1px dashed rgba(212, 176, 106, .45); border-radius: 12px; }
.hp-senior[hidden] { display: none !important; }
.hp-senior > span { font-weight: 700; }
.hp-senior small { flex-basis: 100%; opacity: .8; }
/* 網上報告：長期大運「展開更多年份」 */
.hp-luckmore { margin-top: 10px; }
.hp-luckmore .nr-luckmore { background: #fff; color: #2B2150; border-radius: 16px; padding: 14px; font-family: inherit; }
.hp-luckmore .nr-card { background: #FAF7FF; border-radius: 12px; padding: 8px 12px; }
.hp-luckmore .nr-tiny { font-size: 12.5px; line-height: 1.6; }
