@charset "UTF-8";
/* ==========================================================================
   玄機閣 · 設計系統
   深空底 + 金色命理重點，襯線標題建立古典厚度
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #070910;
  --bg-soft: #0a0d18;
  --panel: #10141f;
  --panel-2: #151a28;
  --panel-3: #1b2131;

  --ink: #f4f1e9;
  --ink-2: #cfccc2;
  --muted: #949ab0;

  --gold: #d9b45b;
  --gold-1: #f2dda4;
  --gold-2: #a8822f;
  --gold-dim: rgba(217, 180, 91, .55);

  --violet: #8b7bf0;
  --jade: #52c4a8;
  --crimson: #e2685c;

  --line: rgba(217, 180, 91, .16);
  --line-soft: rgba(255, 255, 255, .07);

  --serif: "Noto Serif TC", "Songti TC", "PingFang TC", serif;
  --sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --pill: 999px;

  --wrap: 1140px;
  --wrap-narrow: 780px;

  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
  --glow-gold: 0 0 0 1px rgba(217, 180, 91, .22), 0 18px 50px -24px rgba(217, 180, 91, .35);

  --ease: cubic-bezier(.22, .8, .26, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(217, 180, 91, .28); }

/* ---------- 版面 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--panel { background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------- 文字層級 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold-dim); }
.h-xl { font-size: clamp(2rem, 5.4vw, 3.6rem); letter-spacing: -.01em; }
.h-lg { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.h-md { font-size: clamp(1.24rem, 2.2vw, 1.55rem); }
.h-sm { font-size: 1.06rem; }
.gold { color: var(--gold); }
.gold-grad {
  background: linear-gradient(100deg, #f6e6b8 8%, #d9b45b 45%, #b3873a 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; line-height: 1.7; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 12px; color: var(--muted); }

/* ---------- 按鈕 ---------- */
.btn {
  --btn-bg: linear-gradient(135deg, #f4e0aa 0%, #d9b45b 46%, #bb8f37 100%);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 26px;
  border: 0; border-radius: var(--pill);
  background: var(--btn-bg); color: #1a1405;
  font-family: var(--sans); font-weight: 700; font-size: .96rem; letter-spacing: .02em;
  cursor: pointer; position: relative; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), filter .25s;
  box-shadow: 0 10px 30px -14px rgba(217, 180, 91, .8);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -16px rgba(217, 180, 91, .9); filter: brightness(1.04); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 3px; }
.btn--wide { width: 100%; }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 1.02rem; }
.btn--ghost {
  background: transparent; color: var(--gold-1);
  border: 1px solid var(--line); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--gold-dim); background: rgba(217, 180, 91, .07); box-shadow: none; }
.btn--quiet {
  background: rgba(255, 255, 255, .05); color: var(--ink);
  border: 1px solid var(--line-soft); box-shadow: none; font-weight: 500;
}
.btn--quiet:hover { background: rgba(255, 255, 255, .09); box-shadow: none; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .86rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-arrow::after { content: "→"; font-family: var(--sans); }
.link {
  color: var(--gold-1); border-bottom: 1px solid rgba(217, 180, 91, .3);
  padding-bottom: 1px; transition: border-color .2s, color .2s;
}
.link:hover { border-color: var(--gold); color: #fff; }

/* ---------- 導覽 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(7, 9, 16, .78);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .3s;
}
.site-header.is-scrolled { background: rgba(7, 9, 16, .94); }
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__seal {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; border: 1px solid rgba(217, 180, 91, .45);
  background: radial-gradient(120% 120% at 30% 20%, rgba(217, 180, 91, .28), rgba(217, 180, 91, .04));
  font-family: var(--serif); font-size: 1.05rem; color: var(--gold-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.brand__name { font-family: var(--serif); font-size: 1.12rem; letter-spacing: .12em; }
.brand__name small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .3em; color: var(--muted); margin-top: -2px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 9px 13px; border-radius: var(--pill); font-size: .9rem; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--gold-1); background: rgba(217, 180, 91, .09); }
.nav__cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav__login { font-size: .88rem; color: var(--muted); padding: 8px; }
.nav__login:hover { color: var(--ink); }
.nav__burger {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .04);
  cursor: pointer; margin-left: 4px;
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 0 auto;
  position: relative; transition: transform .3s, opacity .2s;
}
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
body.drawer-open .nav__burger span { background: transparent; }
body.drawer-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
body.drawer-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 68px 0 0; z-index: 55;
  background: rgba(7, 9, 16, .98);
  padding: 22px;
  display: none; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
body.drawer-open .drawer { display: flex; }
.drawer a { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
.drawer .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(52px, 8vw, 96px) 0 clamp(48px, 7vw, 84px); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__bg::before {
  content: ""; position: absolute; left: 50%; top: -18%; width: 1300px; height: 1300px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(217, 180, 91, .13), transparent 62%),
    radial-gradient(closest-side at 70% 40%, rgba(90, 84, 200, .12), transparent 60%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: -10% -10% auto; height: 130%;
  background:
    repeating-radial-gradient(circle at 50% 12%, rgba(217, 180, 91, .07) 0 1px, transparent 1px 86px);
  mask-image: radial-gradient(60% 60% at 50% 22%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 22%, #000 0%, transparent 78%);
  opacity: .8;
}
.stars { position: absolute; inset: 0; }
.star {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; opacity: .35;
  animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .12; } 50% { opacity: .7; } }

.hero__inner { position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(217, 180, 91, .28); border-radius: var(--pill);
  padding: 7px 16px 7px 12px; font-size: .8rem; color: var(--gold-1);
  background: rgba(217, 180, 91, .07);
}
.hero__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 { margin: 22px 0 0; }
.hero__sub { margin-top: 20px; max-width: 620px; color: var(--ink-2); font-size: clamp(1rem, 1.5vw, 1.1rem); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: .84rem; color: var(--muted); }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 15px; height: 15px; stroke: var(--gold); fill: none; stroke-width: 1.6; }

/* hero 表單卡 */
.panel {
  background: linear-gradient(180deg, rgba(24, 29, 44, .92), rgba(13, 17, 27, .96));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.panel--pad { padding: clamp(20px, 3vw, 30px); }
.panel__title { font-family: var(--serif); font-size: 1.18rem; margin-bottom: 4px; }

.field { margin-top: 17px; }
.field > label, .field__label {
  display: block; font-size: .8rem; color: #a9afc2; margin-bottom: 7px; letter-spacing: .04em;
}
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px; color: var(--ink); font-size: .98rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none;
}
.input::placeholder { color: #8b91a6; }
.input:hover { border-color: rgba(255, 255, 255, .18); }
.input:focus { outline: 0; border-color: var(--gold-dim); background: rgba(217, 180, 91, .05); box-shadow: 0 0 0 3px rgba(217, 180, 91, .1); }
select.input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23d9b45b' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; gap: 8px; }
.seg label {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 50px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03); cursor: pointer; font-size: .94rem; border-color: rgba(255,255,255,.16);
  transition: all .2s;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: #1a1405; }
.seg label:has(input:checked) {
  background: linear-gradient(135deg, #f4e0aa, #d3a94f); border-color: transparent;
  color: #1a1405; font-weight: 700; box-shadow: 0 8px 22px -14px rgba(217, 180, 91, .9);
}
.form-note { margin-top: 12px; font-size: .76rem; color: var(--muted); display: flex; gap: 7px; align-items: flex-start; }
.form-note svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 3px; stroke: var(--gold-dim); fill: none; stroke-width: 1.7; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; padding: 24px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line-soft); border-radius: var(--r);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(217, 180, 91, .28); background: linear-gradient(170deg, rgba(217, 180, 91, .07), rgba(255, 255, 255, .02)); }
.card__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid rgba(217, 180, 91, .3); background: rgba(217, 180, 91, .08);
  margin-bottom: 16px;
}
.card__icon svg { width: 21px; height: 21px; stroke: var(--gold-1); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .92rem; line-height: 1.85; }
.card__meta { margin-top: 14px; font-size: .78rem; color: var(--gold-dim); letter-spacing: .08em; }

/* 工具大卡（首頁四分類） */
.tool {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  min-height: 210px; padding: 24px; border-radius: var(--r);
  border: 1px solid var(--line-soft); position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  transition: transform .35s var(--ease), border-color .3s;
}
.tool::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(closest-side, var(--tool-accent, rgba(217,180,91,.2)), transparent 70%);
  opacity: .8; transition: transform .5s var(--ease), opacity .4s;
}
.tool:hover { transform: translateY(-4px); border-color: rgba(217, 180, 91, .32); }
.tool:hover::after { transform: scale(1.25); opacity: 1; }
.tool__glyph { width: 46px; height: 46px; stroke: var(--gold-1); fill: none; stroke-width: 1.3; position: relative; z-index: 1; }
.tool h3 { font-size: 1.22rem; margin-bottom: 6px; }
.tool p { font-size: .88rem; color: var(--muted); line-height: 1.8; }
.tool__go { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--gold-1); position: relative; z-index: 1; }
.tool__go::after { content: "→"; transition: transform .3s; }
.tool:hover .tool__go::after { transform: translateX(4px); }

/* 步驟 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 0 22px 0 0; position: relative; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--serif); font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(217, 180, 91, .5);
  display: block; margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .88rem; color: var(--muted); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 20px; right: 0; width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--line), transparent);
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r); background: rgba(255, 255, 255, .018); }
table.cmp { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.cmp thead th { font-family: var(--serif); font-size: .95rem; font-weight: 600; background: rgba(255, 255, 255, .03); position: sticky; top: 0; }
table.cmp thead th:first-child { width: 46%; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody tr:hover { background: rgba(217, 180, 91, .04); }
table.cmp th:not(:first-child), table.cmp td:not(:first-child) { text-align: center; }
table.cmp td:not(:first-child) { color: var(--ink-2); }
.yes { color: var(--jade); }
.no { color: #6b7285; }
.price-tag { display: block; font-size: .76rem; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 46px 20px 0; position: relative;
  font-size: 1rem; color: var(--ink); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--gold); font-family: var(--sans); font-weight: 300;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { color: var(--gold-1); }
.faq .a { padding: 0 46px 22px 0; color: var(--ink-2); font-size: .93rem; line-height: 1.95; animation: fadeDown .35s var(--ease); }
.faq .a p + p { margin-top: 10px; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-group + .faq-group { margin-top: 34px; }
.faq-group > h3 { font-size: .8rem; letter-spacing: .18em; color: var(--gold); margin-bottom: 6px; text-transform: uppercase; font-family: var(--sans); }

/* ---------- 頁尾 ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-soft); padding: 54px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; color: var(--gold); margin-bottom: 12px; text-transform: uppercase; }
.footer-grid a { display: block; font-size: .88rem; color: var(--muted); padding: 5px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--ink); }
.footer-note { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: .76rem; color: #6e7488; line-height: 1.9; }
.footer-note strong { color: var(--muted); font-weight: 500; }

/* ---------- 命盤 ---------- */
.ziwei-frame {
  position: relative; border-radius: var(--r-lg); padding: 10px;
  background: linear-gradient(160deg, rgba(217, 180, 91, .16), rgba(217, 180, 91, .03) 46%, rgba(255, 255, 255, .04));
  border: 1px solid rgba(217, 180, 91, .3);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .95);
}
.ziwei {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, minmax(112px, auto));
  gap: 1px; background: rgba(217, 180, 91, .16); border-radius: 14px; overflow: hidden;
}
.ziwei__cell {
  position: relative; background: #0c101a; padding: 9px 10px 8px;
  display: flex; flex-direction: column; min-height: 112px;
  transition: background .25s;
}
.ziwei__cell:hover { background: #101623; }
.ziwei__cell.is-empty { background: #080b12; }
.ziwei__center {
  grid-column: 2 / 4; grid-row: 2 / 4; background: #080b12;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 16px; text-align: center; gap: 4px;
}
.ziwei__center .nm { font-family: var(--serif); font-size: 1rem; color: var(--gold-1); letter-spacing: .1em; }
.ziwei__center .sub { font-size: .74rem; color: var(--muted); }
.ziwei__center .big { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 6px 0 2px; letter-spacing: .06em; }
.ziwei__center .fmt { font-size: .72rem; color: var(--gold-dim); letter-spacing: .1em; }

.zw-name { position: absolute; top: 7px; right: 9px; font-size: .7rem; color: var(--gold); letter-spacing: .05em; }
.zw-name b { color: var(--gold-1); font-weight: 600; }
.zw-body { position: absolute; top: 7px; left: 9px; font-size: .62rem; color: #0d1017; background: var(--gold); border-radius: 3px; padding: 1px 4px; font-weight: 700; }
.zw-stars { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: flex-start; }
.zw-star { position: relative; font-family: var(--serif); font-size: .95rem; line-height: 1.35; color: var(--ink); white-space: nowrap; }
.zw-star sup { font-family: var(--sans); font-size: .56rem; color: var(--muted); margin-left: 1px; top: -.5em; position: relative; }
.zw-star .h { display: inline-flex; gap: 1px; margin-left: 2px; vertical-align: super; }
.zw-h { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.zw-h--lu { background: var(--jade); }
.zw-h--quan { background: var(--violet); }
.zw-h--ke { background: #6fa8ff; }
.zw-h--ji { background: var(--crimson); }
.zw-minor { font-family: var(--sans); font-size: .68rem; color: #a9aec0; line-height: 1.55; letter-spacing: .02em; }
.zw-minor .sha { color: #d98b7f; }
.zw-foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; gap: 4px; font-size: .58rem; color: #6d7488; letter-spacing: .02em; }
.zw-branch { font-family: var(--serif); font-size: .68rem; color: var(--gold-dim); }
.zw-cell--decadal { box-shadow: inset 0 0 0 1.5px rgba(217, 180, 91, .55); background: #10151f; }
.zw-cell--decadal::after {
  content: "大限"; position: absolute; bottom: 6px; right: 8px; font-size: .54rem;
  color: #0d1017; background: var(--gold-dim); border-radius: 2px; padding: 0 3px;
}
.zw-cell--year { background: linear-gradient(180deg, rgba(139, 123, 240, .12), #0c101a); }
.zw-tag-year {
  position: absolute; bottom: 6px; left: 8px; font-size: .54rem; font-weight: 700;
  color: #0b0d14; background: var(--violet); border-radius: 2px; padding: 1px 4px; letter-spacing: .06em;
}
.zw-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: .74rem; color: var(--muted); }
.zw-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.zw-legend .k-lu { background: var(--jade); } .zw-legend .k-quan { background: var(--violet); }
.zw-legend .k-ke { background: #6fa8ff; } .zw-legend .k-ji { background: var(--crimson); }
.zw-legend .k-dec { box-shadow: inset 0 0 0 1.5px rgba(217,180,91,.7); }
.zw-legend .k-year { background: var(--violet); }

/* 解讀區 */
.reading { display: grid; gap: 18px; }
.reading-block {
  padding: 24px 26px; border-radius: var(--r);
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .022);
}
.reading-block--hero { border-color: rgba(217, 180, 91, .3); background: linear-gradient(170deg, rgba(217, 180, 91, .09), rgba(255, 255, 255, .02)); }
.reading-block > h3 { font-size: 1.16rem; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.reading-block > h3 .idx { font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; color: var(--gold); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
.reading-block .summary { margin-top: 12px; color: var(--ink); font-size: 1rem; line-height: 1.95; }
.reading-item { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-soft); }
.reading-item h4 { font-family: var(--sans); font-size: .86rem; color: var(--gold-1); letter-spacing: .06em; margin-bottom: 6px; font-weight: 600; }
.reading-item p { font-size: .93rem; color: var(--ink-2); line-height: 1.95; }
.locked {
  margin-top: 12px; display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; border-radius: 10px; font-size: .82rem;
  background: rgba(139, 123, 240, .07); border: 1px dashed rgba(139, 123, 240, .32); color: #b9b1f7;
}
.locked b { color: #d7d1ff; font-weight: 600; }
.typing::after { content: "▍"; color: var(--gold); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 塔羅 ---------- */
.tarot-stage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tcard {
  position: relative; aspect-ratio: 2 / 3.35; border-radius: 14px; cursor: pointer;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(139, 123, 240, .35), transparent 60%),
    linear-gradient(165deg, #1b1f33, #0b0e18);
  border: 1px solid rgba(217, 180, 91, .35);
  display: grid; place-items: center; padding: 14px; text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
  overflow: hidden;
}
.tcard::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(217, 180, 91, .22); border-radius: 9px; pointer-events: none;
}
.tcard:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(139, 123, 240, .7); border-color: var(--gold); }
.tcard.is-picked { transform: none; }
.tcard__back { display: grid; gap: 10px; place-items: center; }
.tcard__back svg { width: 46%; stroke: var(--gold-dim); fill: none; stroke-width: 1; }
.tcard__back span { font-family: var(--serif); font-size: .72rem; letter-spacing: .34em; color: var(--gold-dim); writing-mode: vertical-rl; }
.tcard.is-flipped .tcard__back { display: none; }
.tcard__face { display: none; }
.tcard.is-flipped .tcard__face { display: grid; gap: 8px; place-items: center; animation: flipIn .55s var(--ease); }
@keyframes flipIn { from { opacity: 0; transform: rotateY(80deg); } to { opacity: 1; transform: none; } }
.tcard__num { font-size: .64rem; letter-spacing: .2em; color: var(--gold-dim); }
.tcard__glyph { width: 54px; height: 54px; stroke: var(--gold-1); fill: none; stroke-width: 1.2; }
.tcard__name { font-family: var(--serif); font-size: 1rem; }
.tcard__en { font-size: .6rem; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.tcard__rev { position: absolute; top: 10px; left: 10px; font-size: .58rem; letter-spacing: .1em; color: #0b0e18; background: var(--crimson); border-radius: 3px; padding: 1px 5px; font-weight: 700; }
.tcard__pos { position: absolute; bottom: 10px; left: 0; right: 0; font-size: .66rem; color: var(--gold); letter-spacing: .18em; }
.tcard--ghost { opacity: .25; pointer-events: none; }
.tarot-drawn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* 八字四柱 */
.bazi-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pillar {
  text-align: center; padding: 18px 8px 14px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--line-soft);
}
.pillar h4 { font-family: var(--sans); font-size: .66rem; letter-spacing: .18em; color: var(--gold); margin-bottom: 10px; }
.pillar .ss { font-size: .64rem; color: var(--muted); }
.pillar .gz { font-family: var(--serif); font-size: 1.75rem; line-height: 1.3; margin: 4px 0; }
.pillar .gz span { display: block; }
.pillar .hz { font-size: .6rem; color: #7c8296; line-height: 1.6; }
.pillar--day { border-color: rgba(217, 180, 91, .4); background: linear-gradient(180deg, rgba(217, 180, 91, .12), rgba(255, 255, 255, .02)); }
.wx-bars { display: grid; gap: 8px; margin-top: 6px; }
.wx-bar { display: grid; grid-template-columns: 34px 1fr 42px; gap: 10px; align-items: center; font-size: .78rem; }
.wx-bar .track { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.wx-bar .fill { height: 100%; border-radius: 99px; transition: width .8s var(--ease); }
.wx-mu { background: #57b98a; } .wx-huo { background: #e0705f; } .wx-tu { background: #d9b45b; }
.wx-jin { background: #cfd4de; } .wx-shui { background: #5b93e6; }
.dayun { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.dayun__item { flex: 0 0 auto; text-align: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-soft); font-size: .74rem; color: var(--muted); min-width: 78px; }
.dayun__item b { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.dayun__item.is-now { border-color: var(--gold); background: rgba(217, 180, 91, .1); color: var(--gold-1); }

/* ---------- 其他元件 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: var(--pill); border: 1px solid var(--line); font-size: .76rem; color: var(--gold-1);
  background: rgba(217, 180, 91, .06);
}
.chip--violet { border-color: rgba(139, 123, 240, .4); color: #c3bcfb; background: rgba(139, 123, 240, .1); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; min-height: 42px; padding: 0 16px; border-radius: var(--pill);
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03); color: var(--ink-2);
  cursor: pointer; font-size: .86rem; transition: all .2s; white-space: nowrap;
}
.tab:hover { border-color: var(--gold-dim); color: var(--ink); }
.tab[aria-selected="true"] { background: linear-gradient(135deg, #f4e0aa, #d3a94f); color: #1a1405; font-weight: 700; border-color: transparent; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  z-index: 200; padding: 13px 22px; border-radius: var(--pill);
  background: rgba(20, 25, 38, .97); border: 1px solid var(--line);
  font-size: .88rem; color: var(--ink); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .86rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }

.article-card { display: flex; flex-direction: column; gap: 10px; }
.article-card .tag { font-size: .68rem; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.article-card h3 { font-size: 1.02rem; line-height: 1.6; }
.article-card:hover h3 { color: var(--gold-1); }

.prose { font-size: 1rem; line-height: 2.05; color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--ink); margin-top: 46px; }
.prose h3 { font-size: 1.12rem; color: var(--ink); margin-top: 32px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose ul li { margin-top: 8px; }
.prose blockquote {
  margin: 26px 0; padding: 18px 22px; border-left: 2px solid var(--gold);
  background: rgba(217, 180, 91, .05); border-radius: 0 10px 10px 0;
  font-family: var(--serif); color: var(--ink); font-size: 1.05rem;
}
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line-soft); padding: 10px 12px; text-align: left; }
.prose th { color: var(--gold-1); font-weight: 600; }

.note {
  padding: 16px 18px; border-radius: 12px; font-size: .84rem; line-height: 1.85;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .025); color: var(--muted);
}
.note--warn { border-color: rgba(217, 180, 91, .3); background: rgba(217, 180, 91, .06); color: #e3d3a8; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split--top { align-items: start; }
.sticky { position: sticky; top: 88px; }

/* 老師卡 */
.master { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
.master__portrait {
  aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; position: relative;
  background:
    radial-gradient(90% 70% at 50% 20%, rgba(217, 180, 91, .3), transparent 62%),
    linear-gradient(180deg, #1a1f2f, #0b0e17);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.master__portrait svg { width: 62%; stroke: rgba(242, 221, 164, .6); fill: none; stroke-width: .9; }
.master__portrait figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px; text-align: center;
  font-size: .7rem; letter-spacing: .18em; color: var(--gold); background: linear-gradient(transparent, rgba(7, 9, 16, .9));
}
blockquote.quote {
  font-family: var(--serif); font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.9;
  color: var(--gold-1); margin: 22px 0 0; padding-left: 20px; border-left: 1px solid var(--gold-dim);
}

/* 誠實標示 */
.demo-flag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; letter-spacing: .06em;
  color: #cbb98b; border: 1px dashed rgba(217, 180, 91, .35); border-radius: 5px; padding: 2px 7px;
}

/* ---------- 響應式 ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__login { display: none; }
  .nav__burger { display: grid; place-items: center; }
  .nav { height: 62px; }
  .drawer { inset-block-start: 62px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .master { grid-template-columns: 1fr; }
  .master__portrait { max-width: 260px; }
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 640px) {
  body { line-height: 1.75; }
  .wrap, .wrap-narrow { padding: 0 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .ziwei { grid-template-rows: repeat(4, minmax(96px, auto)); }
  .ziwei__cell { min-height: 96px; padding: 7px 7px 6px; }
  .zw-star { font-size: .82rem; }
  .zw-minor { font-size: .6rem; }
  .zw-foot { font-size: .5rem; }
  .zw-name { font-size: .62rem; top: 5px; right: 6px; }
  .zw-body { font-size: .55rem; top: 5px; left: 5px; }
  .zw-stars { margin-top: 15px; gap: 1px 5px; }
  .ziwei__center .big { font-size: 1.1rem; }
  .ziwei__center .nm { font-size: .82rem; }
  .bazi-pillars { gap: 6px; }
  .pillar .gz { font-size: 1.25rem; }
  .pillar { padding: 12px 4px 10px; }
  .tarot-stage, .tarot-drawn { gap: 8px; }
  .tcard { border-radius: 10px; padding: 8px; }
  .tcard__glyph { width: 34px; height: 34px; }
  .tcard__name { font-size: .8rem; }
  .reading-block { padding: 18px 18px; }
  .table-wrap { border-radius: 12px; }
  .btn { min-height: 48px; }
  .panel--pad { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 迷你命盤（首頁範例） ---------- */
.ziwei-frame--mini { padding: 7px; border-radius: 18px; }
.ziwei--mini { grid-template-rows: repeat(4, minmax(76px, auto)); border-radius: 12px; }
.ziwei--mini .ziwei__cell { min-height: 76px; padding: 6px 7px; }
.ziwei--mini .zw-star { font-size: .8rem; }
.ziwei--mini .zw-stars { margin-top: 14px; gap: 1px 4px; }
.ziwei--mini .zw-minor { font-size: .54rem; line-height: 1.45; }
.ziwei--mini .zw-foot { font-size: .5rem; }
.ziwei--mini .zw-foot span:last-child { display: none; }
.ziwei--mini .zw-name { font-size: .6rem; top: 5px; right: 6px; }
.ziwei--mini .zw-body { font-size: .5rem; top: 5px; left: 5px; }
.ziwei--mini .ziwei__center { padding: 10px 6px; gap: 2px; }
.ziwei--mini .ziwei__center .big { font-size: 1rem; margin: 2px 0; }
.ziwei--mini .ziwei__center .nm { font-size: .64rem; }
.ziwei--mini .ziwei__center .sub { font-size: .58rem; }
.ziwei--mini .zw-tag-year { font-size: .48rem; bottom: 4px; left: 5px; }
@media (max-width: 640px) {
  .ziwei--mini { grid-template-rows: repeat(4, minmax(66px, auto)); }
  .ziwei--mini .ziwei__cell { min-height: 66px; }
  .ziwei--mini .zw-star { font-size: .7rem; }
  .ziwei--mini .zw-minor { display: none; }
}

/* 小牌點陣 */
.tcard__pips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; align-content: center; max-width: 84%; }
.tcard__pips > span { display: grid; place-items: center; }
.tcard__pips svg { stroke: var(--gold-1); fill: none; stroke-width: 1.3; }
.tcard__pips .big svg { width: 40px; height: 40px; }
.tcard__pips .mid svg { width: 24px; height: 24px; }
.tcard__pips .sm svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .tcard__pips { gap: 3px; }
  .tcard__pips .big svg { width: 28px; height: 28px; }
  .tcard__pips .mid svg { width: 18px; height: 18px; }
  .tcard__pips .sm svg { width: 11px; height: 11px; }
}

/* ---------- 十二宮明細 ---------- */
.zw-list { margin-top: 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255, 255, 255, .02); overflow: hidden; }
.zw-list summary {
  cursor: pointer; padding: 13px 16px; font-size: .84rem; color: var(--gold-1);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.zw-list summary::-webkit-details-marker { display: none; }
.zw-list summary::after { content: "＋"; color: var(--gold); font-size: .9rem; }
.zw-list[open] summary::after { content: "－"; }
.zw-list[open] summary { border-bottom: 1px solid var(--line-soft); }
.zw-list__body { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .06); }
.zw-row { background: #0b0f18; padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.zw-row__hd { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.zw-row__br { font-size: .72rem; color: var(--gold-dim); font-family: var(--serif); }
.zw-row__tag { font-size: .58rem; background: var(--gold); color: #0b0d14; border-radius: 3px; padding: 1px 4px; font-weight: 700; }
.zw-row__tag--y { background: var(--violet); }
.zw-row__stars { font-family: var(--serif); font-size: .95rem; line-height: 1.6; }
.zw-row__stars sup { font-family: var(--sans); font-size: .6rem; color: var(--muted); }
.zw-row__minors { font-size: .72rem; color: #a9aec0; line-height: 1.6; }
.zw-row__foot { font-size: .62rem; color: #6d7488; }

/* ---------- 觸控與可及性微調 ---------- */
.footer-grid a { padding: 9px 0; }
.btn--sm { min-height: 44px; }
.tab { min-height: 44px; }
@media (max-width: 960px) {
  .footer-grid a { padding: 11px 0; }
  .nav__login { padding: 12px; }
}
@media (max-width: 640px) {
  .zw-list__body { grid-template-columns: 1fr; }
  .zw-minor { display: none; }
  .zw-foot span:last-child { display: none; }
  .zw-star { font-size: .88rem; }
  .ziwei__cell { min-height: 92px; }
}
