/* ── 昀日排盤 style.css v2 ─ 設計語言沿用詳批報告（核心/templates/report.css）：
      宣紙、乾燥玫瑰、深玫瑰標題、金眉標、陶土強調、宋體、金色八芒星、層疊水彩帶 ── */
:root {
  --ink: #3d2d32;
  --pine: #865367;
  --pine-deep: #643b49;
  --muted: #74676b;
  --quiet: #817579;
  --gold: #b88b3f;
  --gold-soft: #d7c29a;
  --clay: #a65f4c;
  --line: rgba(116, 79, 93, 0.30);
  --paper: #fbf4ef;
  --card: rgba(255, 247, 243, 0.72);
  --body-tag: #7a5c8a;
  /* 五行點綴（沿用報告四化章的色系） */
  --wx-木: #4f7f5e; --wx-火: #a6503f; --wx-土: #b8763f; --wx-金: #8a8b82; --wx-水: #4a6b8a;
  --serif: "Songti TC", "Noto Serif TC", "Hiragino Mincho ProN", serif;
  --sans: "PingFang TC", "Noto Sans TC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-x: hidden;
}
/* 宣紙：報告同一張底圖（乾淨.jpg 調暖加紋版）＋一層細紋 */
.paper-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: image-set(url("/static/paper.webp?v=20261006") type("image/webp"),
                        url("/static/paper.jpg?v=20261006") type("image/jpeg")) center / cover no-repeat;
  background-color: var(--paper);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3'/%3E%3C/filter%3E%3Crect width='190' height='190' filter='url(%23n)' opacity='.085'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
/* 卡片自帶宣紙纖維紋（卡越白，紋越要自己長在卡上） */
.share-card, .trait, .special-box, .cell, .center {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5 .58' numOctaves='3' seed='4'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23p)' opacity='.075'/%3E%3C/svg%3E");
}

/* 中文排版：不用西文的 balance/pretty（會做出像亂按 Enter 的斷句），
   改走書本式——每行填滿、左右對齊（分享卡置中內容除外） */
.trait p, .sec-note, .chart-note, .grid-note,
.special-box p, footer p, .field .hint, .fineprint {
  text-align: justify;
}
.trait .t-hook { text-align: left; }
.seg { display: inline-block; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; position: relative; }

/* ── 品牌列（照封面：昀日字標＋金色細線） ── */
.brand { padding: 26px 0 0; }
.brand .mark {
  font-family: var(--serif); font-size: 22px; font-weight: 900;
  letter-spacing: .22em; color: var(--pine-deep); line-height: 1.2;
}
.brand .rule { width: 54px; height: 2px; background: var(--gold); margin-top: 5px; }

/* ── 封面水彩帶（報告封面.jpg 右側裁圖；貼齊視窗右緣） ── */
.page-art {
  position: fixed; top: 0; right: 0; z-index: 0; pointer-events: none;
  will-change: opacity;
  width: min(56vw, 430px); height: min(172vw, 900px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 76%, transparent 98%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 76%, transparent 98%);
}
.page-art picture { display: block; width: 100%; height: 100%; }
.page-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: right top; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%);
  mask-image: linear-gradient(to right, transparent 0, #000 20%);
}
.page-art .ta { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
@media (min-width: 900px) { .page-art { width: 400px; height: 900px; } }
.page-art { transition: opacity .7s ease; }
body:not(.view-hero):not(.view-menu) .page-art { opacity: 0 !important; }

/* 八芒星：緩慢呼吸（只動透明度；動 transform 會蓋掉定位） */
.tw { animation: twinkle 4.6s ease-in-out infinite; }
.tw2 { animation: twinkle 6.2s ease-in-out 1.4s infinite; }
@keyframes twinkle { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tw, .tw2 { animation: none; } }

/* ── Hero ── */
#hero { padding: 8vh 0 56px; position: relative; }
.hero-text { position: relative; z-index: 1; }
h1 {
  font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 9vw, 50px);
  line-height: 1.3; letter-spacing: .06em; color: var(--pine-deep); margin: 40px 0 12px;
}
h1 em { font-style: normal; color: var(--gold); }
.sub { color: var(--muted); font-size: 15.5px; letter-spacing: .12em; margin-bottom: 42px; max-width: 15em; }

/* 手機表單落在深玫瑰水彩上時，加暖白閱讀底層，不改輸入流程與欄位尺寸。 */
@media (max-width: 600px) {
  #f { isolation: isolate; }
  #f::before {
    content: ""; position: absolute; inset: -14px -12px; z-index: -1;
    background: rgba(255, 250, 247, .88); border-radius: 12px; pointer-events: none;
  }
}

/* ── 表單 ── */
form { display: grid; gap: 17px; max-width: 430px; position: relative; z-index: 1; }
.field label { display: block; font-size: 13.5px; letter-spacing: .14em; color: var(--pine); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--quiet); margin-top: 4px; }
input[type="text"], input[type="date"], input[type="time"], select {
  width: 100%; padding: 14px 15px; font-size: 17px; font-family: var(--serif);
  font-weight: 700; letter-spacing: .04em;
  color: var(--pine-deep); background: #fffaf7;
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(116, 79, 93, .07);
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23b88b3f' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
select:invalid { color: var(--quiet); font-family: var(--sans); font-weight: 400; }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { opacity: .45; }
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
@media (max-width: 359px) {
  /* 最窄手機保留原生日期欄位的可讀寬度，不讓兩欄撐出表單。 */
  #f .duo { grid-template-columns: minmax(0, 1fr); }
}
.radio-row { display: flex; gap: 10px; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row label {
  flex: 1; text-align: center; padding: 13px; border: 1px solid var(--line);
  border-radius: 8px; background: #fffaf7; cursor: pointer; font-size: 16px; margin: 0;
  box-shadow: inset 0 1px 3px rgba(116, 79, 93, .07);
}
.radio-row input:checked + label { background: var(--pine-deep); color: var(--paper); border-color: var(--pine-deep); }
.hp { position: absolute; left: -9999px; opacity: 0; }
button.go {
  margin-top: 10px; padding: 15px; font-size: 16.5px; font-family: var(--serif); font-weight: 700;
  letter-spacing: .4em; text-indent: .4em; color: var(--paper);
  background: var(--pine-deep); border: 0; border-radius: 6px; cursor: pointer;
}
button.go:active { transform: translateY(1px); }
button.go:disabled { opacity: .55; cursor: wait; }
.fineprint { font-size: 12px; color: var(--quiet); line-height: 1.7; }
.error-msg { color: var(--clay); font-size: 14px; display: none; }

/* ── 排盤中：星軌環繞（三圈金環、星體各繞各的、中心細芒星呼吸） ── */
#loading { text-align: center; padding: 14vh 0 19vh; }
#loading .orbits { width: 190px; height: 190px; margin: 0 auto 24px; display: block; }
#loading .orbits .orb { transform-origin: 95px 95px; }
#loading .orbits .o1 { animation: orbitspin 9s linear infinite; }
#loading .orbits .o2 { animation: orbitspin 15s linear infinite reverse; }
#loading .orbits .o3 { animation: orbitspin 6.5s linear infinite; }
#loading .orbits .r-out { animation: orbitspin 40s linear infinite; transform-origin: 95px 95px; }
@keyframes orbitspin { to { transform: rotate(360deg); } }
#loading .orbits .core { animation: breathe 3.6s ease-in-out infinite; transform-origin: 95px 95px; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .82; } }
@media (prefers-reduced-motion: reduce) {
  #loading .orbits .orb, #loading .orbits .core, #loading .orbits .r-out { animation: none; }
}
/* ── 眉標（照報告：小字金松綠＋細線＋宋體大標） ── */
.eyebrow-row { display: flex; align-items: center; gap: 12px; margin: 78px 0 6px; }
.eyebrow {
  font-family: var(--serif); font-size: 13.5px; font-weight: 700;
  letter-spacing: .5em; color: var(--gold); white-space: nowrap;
}
.eyebrow-row .rule { flex: 1; height: 1px; background: var(--line); }
.sec-title {
  font-family: var(--serif); font-weight: 900; font-size: 29px;
  letter-spacing: .08em; color: var(--pine-deep); margin-bottom: 24px;
}
.sec-note { font-size: 13px; color: var(--muted); margin: -14px 0 22px; }

/* ── 分享卡 ── */
.share-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 38px 26px 26px; margin-top: 44px; text-align: center;
  overflow: hidden;
}
.share-card .corner-star { position: absolute; top: 18px; right: 18px; width: 26px; height: 26px; }
.share-card .who { font-size: 13px; letter-spacing: .3em; color: var(--muted); }
.share-card .star-name.two { font-size: clamp(30px, 8.2vw, 46px); letter-spacing: .1em; white-space: nowrap; }
.share-card .star-name {
  font-family: var(--serif); font-weight: 900; font-size: clamp(50px, 14vw, 76px);
  line-height: 1.2; letter-spacing: .08em; color: var(--pine-deep); margin: 10px 0 2px;
}
.share-card .kw { color: var(--gold); font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: .32em; }
.share-card .tag {
  margin-top: 24px; padding-top: 15px; border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: .26em; color: var(--quiet);
}
.share-card .tag b { color: var(--gold); font-weight: 700; }

/* ── 命盤 4×4（正規排法：外圈十二宮、中宮個資＋八字；照報告命盤頁） ── */
.chart {
  display: grid; gap: 5px; margin-top: 6px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(88px, auto));
}
.cell {
  background: rgba(250, 245, 231, .58); border: 1px solid var(--line); border-radius: 6px;
  padding: 7px 7px 5px; position: relative; display: flex; flex-direction: column;
  min-width: 0;
}
.cell .stars {
  font-family: var(--serif); font-weight: 700; font-size: 14px; line-height: 1.4;
  letter-spacing: .04em; color: var(--ink);
}
.cell.has-tag .stars { padding-right: 34px; }
.cell .stars .mut {
  display: inline-block; font-style: normal; font-family: var(--sans);
  font-size: 8.5px; line-height: 1.5; color: #fff; border-radius: 3px;
  padding: 0 3px; margin-left: 2px; vertical-align: 2px; letter-spacing: 0;
}
.mut-祿 { background: #4f7f5e; } .mut-權 { background: #b8763f; }
.mut-科 { background: #4a6b8a; } .mut-忌 { background: #a6503f; }
.cell .minor {
  font-size: 9.5px; color: var(--quiet); line-height: 1.6; margin-top: 2px;
  letter-spacing: 0; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cell .foot .age { display: none; }
@media (min-width: 560px) {
  .cell .foot .age { display: inline; font-size: 8.5px; color: var(--quiet); flex: 1; margin-left: 3px; letter-spacing: 0; }
}
.cell .stars.empty { color: var(--quiet); font-weight: 400; }
.cell .borrow { font-size: 10.5px; color: var(--quiet); line-height: 1.5; margin-top: 1px; }
.cell .foot {
  margin-top: auto; display: flex; justify-content: space-between; align-items: baseline;
  gap: 2px; flex-wrap: nowrap; white-space: nowrap;
}
.cell .pname { font-size: 10.5px; font-weight: 600; color: var(--pine); letter-spacing: 0; }
.cell .gz { font-size: 9.5px; color: var(--quiet); letter-spacing: 0; }
.cell .tag {
  position: absolute; top: 5px; right: 5px; font-size: 8.5px; letter-spacing: .1em;
  color: #fff; border-radius: 3px; padding: 1px 4px; line-height: 1.5;
}
.cell .tag.life { background: #9b6478; }
.cell .tag.body { background: var(--body-tag); }
.cell.is-life { border-color: rgba(49, 89, 77, .55); background: rgba(252, 248, 238, .72); }
.cell.is-body { border-color: rgba(122, 92, 138, .45); background: rgba(252, 248, 238, .66); }

/* 中宮：個資＋八字 */
.center {
  grid-column: 2 / 4; grid-row: 2 / 4;
  background: rgba(250, 245, 231, .68); border: 1px solid var(--gold-soft); border-radius: 6px;
  padding: 12px 12px 10px; display: flex; flex-direction: column; justify-content: space-between;
}
.center .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11.5px; line-height: 1.9; }
.center .row .k { color: var(--quiet); letter-spacing: .18em; white-space: nowrap; }
.center .row .v { color: var(--ink); font-weight: 600; text-align: right; }
.center .bz { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.center .bz .p { text-align: center; }
.center .bz .pl { font-size: 9.5px; color: var(--quiet); letter-spacing: .15em; }
.center .bz .pg { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: .06em; }
.center .bz .p.day .pg { color: var(--gold); }
.center .bz .ps { font-size: 9.5px; color: var(--pine); margin-top: 1px; }
.center .bz .p.day .ps { color: var(--gold); font-weight: 700; }
.center .bz .pn2 { font-size: 9px; color: var(--quiet); letter-spacing: 0; }
.center .bz .pn3 { font-size: 8.5px; color: var(--quiet); letter-spacing: 0; margin-top: 2px; }
.center .bz .pn3.ling { color: var(--gold); font-weight: 700; }
.chart-note { font-size: 12.5px; color: var(--quiet); margin-top: 14px; line-height: 1.8; }

/* 貼文對照退為一句提示，閱讀主線留給免費內容與完整詳批。 */
.chart-next { margin-top: 8px; font-size: 13px; color: var(--muted); }
.chart-next a { display: inline; color: var(--pine); text-underline-offset: 4px; }
.chart-next a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.purchase-help { margin: 18px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.purchase-help a { display: inline-block; padding: 9px 4px; color: var(--pine); text-underline-offset: 4px; }
.purchase-help a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── 三段個性 ── */
.trait {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 22px 24px 20px; margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.trait .wm {
  position: absolute; top: 16px; right: 12px; pointer-events: none;
  writing-mode: vertical-rl; font-family: var(--serif); font-weight: 900;
  font-size: 46px; letter-spacing: .14em; line-height: 1;
  color: rgba(49, 89, 77, .09); user-select: none;
}
.trait > p, .trait h3 { position: relative; }
.trait .t-label { font-size: 12px; letter-spacing: .3em; color: var(--gold); font-family: var(--serif); font-weight: 700; }
.trait h3 { font-family: var(--serif); font-size: 23px; font-weight: 900; color: var(--pine-deep); margin: 5px 0 2px; letter-spacing: .05em; }
.trait .t-sub { font-size: 13px; color: var(--muted); letter-spacing: .06em; margin-bottom: 4px; }
.trait .t-hooks {
  position: relative; margin: 10px 0 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.trait .t-hooks .t-hook {
  font-family: var(--serif); font-weight: 700; font-size: 17.5px; color: var(--pine);
  line-height: 1.9; margin: 0;
}
.trait .t-hook + .t-hook { margin-top: 8px; }
.trait .t-hook .seg { white-space: nowrap; }
.trait p { font-size: 15.5px; margin-bottom: 11px; color: var(--ink); }
/* 組內 5px、組間 18px，小標和它的正文保持靠近。 */
.trait .t-section { position: relative; margin: 18px 0 0; }
.trait .t-heading {
  font-family: var(--serif); font-size: 12px; font-weight: 700;
  color: var(--pine); letter-spacing: .14em; line-height: 1.6; margin: 0 0 5px;
}
.trait .t-section p { margin: 0; }
.trait .t-more { position: relative; margin-top: 18px; }
.trait .t-more summary {
  width: fit-content; padding: 6px 12px; border: 1px solid var(--line); border-radius: 5px;
  color: var(--pine); font-size: 13px; cursor: pointer;
}
.trait .t-more summary:hover { background: rgba(184, 139, 63, .08); }
.trait .t-more summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.trait .close { position: relative; font-family: var(--serif); font-size: 16px; color: var(--ink); margin: 20px 0 0; }

/* 報告原版三種螢光筆，範圍限於結果卡。 */
.trait .hl {
  background-repeat: no-repeat;
  background-size: 100% 0.95em;
  background-position: 0 0.62em;
  padding: 0 0.8mm;
  font-weight: 700;
  color: var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* 筆觸一：下筆稍重，收筆往右上提、帶拖尾 */
.trait .hl.hl1 {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M2,7 C50,4 120,10 190,6 C235,3 270,8 288,4 L296,7 L292,22 L282,25 C250,27 200,20 140,24 C85,28 30,22 2,25 Z' fill='%23e6cf95' fill-opacity='0.62'/%3E%3C/svg%3E");
}
/* 筆觸二：起筆略粗、中段飽滿、尾端收細 */
.trait .hl.hl2 {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M3,5 C45,9 105,3 165,7 C215,10 262,6 294,10 L297,13 L290,24 C255,21 205,27 155,23 C98,18 42,26 5,23 L2,18 Z' fill='%23e3cd9b' fill-opacity='0.66'/%3E%3C/svg%3E");
}
/* 筆觸三：來回塗過兩次，右端明顯淡出 */
.trait .hl.hl3 {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3ClinearGradient id='f' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23e9d49d' stop-opacity='0.72'/%3E%3Cstop offset='0.78' stop-color='%23e9d49d' stop-opacity='0.6'/%3E%3Cstop offset='1' stop-color='%23e9d49d' stop-opacity='0.12'/%3E%3C/linearGradient%3E%3Cpath d='M2,8 C58,13 108,4 158,10 C208,15 256,5 297,9 L294,25 C250,21 200,29 150,23 C100,17 52,27 3,23 Z' fill='url(%23f)'/%3E%3C/svg%3E");
}


/* ── 產品區 ── */
.product { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.product .pn { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--pine-deep); letter-spacing: .06em; }
.product .pd { font-size: 13px; color: var(--muted); margin-top: 1px; }
.product .pp { font-family: var(--serif); font-size: 17px; color: var(--gold); white-space: nowrap; }
.cta-row { display: grid; gap: 11px; margin-top: 16px; }
.cta {
  display: block; text-align: center; padding: 15px; border-radius: 6px; text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: 15.5px; letter-spacing: .28em; text-indent: .28em;
}
.cta.primary { background: var(--pine-deep); color: var(--paper); }
.cta.secondary { border: 1.5px solid var(--pine); color: var(--pine); }
button.cta.secondary { background: transparent; cursor: pointer; }
.cta.ghost { color: var(--quiet); font-size: 12.5px; border: 0; background: none; cursor: pointer; font-family: var(--sans); letter-spacing: .12em; }

/* ── 特殊盤 ── */
.special-box { background: var(--card); border: 1px solid var(--gold); border-radius: 8px; padding: 28px 24px; margin-top: 40px; }
.special-box h3 { font-family: var(--serif); font-size: 19px; font-weight: 900; color: var(--pine-deep); margin-bottom: 10px; }
.special-box p { font-size: 14px; margin-bottom: 16px; }

/* ── 頁尾 ── */
footer { margin-top: 84px; padding: 26px 0 44px; border-top: 1px solid var(--line); }
footer .foot-brand { font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .5em; color: var(--pine-deep); margin-bottom: 8px; }
footer p { font-size: 12px; color: var(--quiet); line-height: 1.9; }
footer a { color: var(--gold); }

/* ── 進場 ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 次要商品直接列出，詳批仍是前面的主要訂製入口。 */
.other-readings{margin:28px 0 10px;border-top:1px solid var(--line);padding-top:18px}
.other-readings>h2{font-family:var(--serif);font-size:18px;font-weight:700;color:var(--pine-deep);line-height:1.7;margin:0 0 4px}
.other-readings .product .pn{margin:0;font-size:17px}
.other-readings .product .pd{margin:4px 0 0;line-height:1.7}
.other-readings .product .pp{color:#82612e}
.other-readings .fineprint{margin-top:10px}

/* ── 2026-11-28 只知道生日 ── */
#birthday { padding-top: 28px; }
#t-field[hidden] { display: none; }
.bday-box {
  background: rgba(250, 245, 231, .68); border: 1px solid var(--gold-soft); border-radius: 6px;
  padding: 14px 16px 12px; margin-bottom: 18px;
}
.bday-box .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; line-height: 1.9; }
.bday-box .row .k { color: var(--quiet); letter-spacing: .18em; white-space: nowrap; }
.bday-box .row .v { color: var(--ink); font-weight: 600; text-align: right; }
.bday-box .bz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.bday-box .bz .p { text-align: center; }
.bday-box .bz .pl { font-size: 11px; color: var(--quiet); letter-spacing: .15em; }
.bday-box .bz .pg { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: .08em; }
.bday-box .bz .p.day .pg { color: var(--gold); }
.bday-box .bz .ps { font-size: 12px; color: var(--pine); }
.bday-box .bz .p.day .ps { color: var(--gold); font-weight: 700; }
.bday-box .bz .pn2 { font-size: 11px; color: var(--quiet); }
.bday-box .bz .pn3 { font-size: 11px; color: var(--quiet); margin-top: 2px; }
.bday-box .bz .pn3.ling { color: var(--gold); font-weight: 700; }
.bday-alert { margin-top: 12px; padding: 10px 12px; border-radius: 6px; background: rgba(166, 95, 76, .08); color: var(--clay); font-size: 13px; line-height: 1.8; }
.bday-next { background: var(--card); border: 1px solid var(--gold); border-radius: 8px; padding: 24px 22px; margin: 26px 0 14px; text-align: center; }
.bday-next h3 { font-family: var(--serif); font-weight: 700; color: var(--pine-deep); font-size: 18px; letter-spacing: .12em; margin-bottom: 8px; }
.bday-next p { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.9; }
.bday-next .cta { width: 100%; border: 0; cursor: pointer; }
.bday-fine { text-align: center; margin-bottom: 8px; }

/* ── 直接訂購入口、頁尾連結 ── */
.order-direct { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }
.order-direct a { color: var(--pine-deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold-soft); padding-bottom: 1px; margin-left: 4px; }
.order-direct a:focus-visible, .foot-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
footer .foot-links { margin-top: 10px; font-size: 13px; letter-spacing: .08em; }
footer .foot-links a { color: var(--pine); text-decoration: none; }
footer .foot-links span { color: var(--gold-soft); margin: 0 8px; }

/* ── 內頁（直接訂購、購買須知、隱私權政策）── */
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; }
.page-top .back { font-size: 13px; color: var(--quiet); text-decoration: none; letter-spacing: .1em; }
.page-head { padding: 7vh 0 18px; }
.page-head .eyebrow { display: inline-block; margin-bottom: 10px; }
.page-head h1 { font-size: clamp(30px, 8vw, 42px); }
.page-head .sub { margin-top: 10px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 6px; padding: 0; list-style: none; font-size: 12.5px; color: var(--quiet); letter-spacing: .1em; }
.steps li { display: flex; align-items: center; gap: 6px; }
.steps b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.picker { display: grid; gap: 10px; margin: 6px 0 4px; }
.pick { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: pointer; }
.pick input { margin-top: 6px; accent-color: var(--pine-deep); width: 16px; height: 16px; flex: none; }
.pick .pn { font-family: var(--serif); font-weight: 700; font-size: 16.5px; color: var(--pine-deep); letter-spacing: .1em; }
.pick .pd { font-size: 13px; color: var(--muted); line-height: 1.75; }
.pick .pp { margin-left: auto; font-family: var(--serif); font-weight: 700; color: var(--gold); white-space: nowrap; }
.pick:has(input:checked) { border-color: var(--pine); background: rgba(241, 226, 229, .7); }
.order-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 2px 4px; font-size: 14px; color: var(--muted); }
.order-total b { font-family: var(--serif); font-size: 22px; color: var(--pine-deep); }
.doc { padding-bottom: 20px; }
.doc .updated { font-size: 12.5px; color: var(--quiet); margin: -6px 0 26px; }
.doc section { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; margin-bottom: 14px; }
.doc h2 { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--pine-deep); letter-spacing: .1em; margin-bottom: 8px; }
.doc p, .doc li { font-size: 14.5px; line-height: 1.95; }
.doc ul { padding-left: 1.3em; }
.doc li + li { margin-top: 4px; }
.doc a { color: var(--pine-deep); }
.doc .todo { background: rgba(184, 139, 63, .18); padding: 0 4px; border-radius: 3px; }
.page-head + .eyebrow-row { margin-top: 34px; }
.view-order .eyebrow-row { margin-top: 46px; }

/* ── 首頁選單：昀日票券（2026-11-28）──
   票面（宣紙）＋存根（深玫瑰）兩段，中間虛線、上下半圓缺口；點下去先打孔再撕存根。 */
#menu { padding: 8vh 0 40px; position: relative; }
#menu .sub { margin-bottom: 30px; }
.menu-back { background: none; border: 0; color: var(--quiet); font-size: 13px; letter-spacing: .1em; cursor: pointer; padding: 0; font-family: var(--sans); }

.tk {
  --stub: 104px; --notch: 11px; --stub-bg: var(--pine-deep);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--stub);
  min-height: 132px; text-decoration: none; color: var(--ink); cursor: pointer;
  border: 0; padding: 0; background: none; width: 100%; text-align: left; font: inherit;
  filter: drop-shadow(0 1px 0 rgba(100,59,73,.10)) drop-shadow(0 10px 14px rgba(100,59,73,.16));
  transform: rotate(var(--tilt, 0deg));
  transition: transform .25s cubic-bezier(.2,.8,.2,1), filter .25s;
}
.tk:hover { transform: translateY(-3px) rotate(calc(var(--tilt, 0deg) - .3deg)); }
.tk:active { transform: translateY(1px) rotate(var(--tilt, 0deg)); }
.tk:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 8px; }

/* 票面：右上右下挖半圓 */
.tk-face {
  position: relative; overflow: hidden; padding: 16px 18px 14px 20px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.55), transparent 55%),
    linear-gradient(160deg, #fffaf5, #f8ece6);
  border-radius: 8px 0 0 8px;
  -webkit-mask: radial-gradient(circle var(--notch) at 100% 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 100% 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}
.tk-face::after {   /* 淡淡的八芒星浮水印 */
  content: ""; position: absolute; right: -16px; bottom: -22px; width: 96px; height: 96px; opacity: .09; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-14 -14 28 28'%3E%3Cpath d='M0,-13 L1.6,-1.6 L13,0 L1.6,1.6 L0,13 L-1.6,1.6 L-13,0 L-1.6,-1.6 Z' fill='%23643b49'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tk-no { display: block; font-size: 11px; letter-spacing: .32em; color: var(--gold); font-weight: 600; }
.tk-name { display: block; margin-top: 2px; font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: .14em; color: var(--pine-deep); white-space: nowrap; }
.tk-desc { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.tk-note { display: inline-block; margin-top: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12px; color: var(--clay); background: rgba(166,95,76,.10); }

/* 存根：左上左下挖半圓，左緣虛線 */
.tk-stub {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 14px 8px; color: #fff7f2; text-align: center;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(170deg, #77495a, var(--stub-bg));
  border-radius: 0 8px 8px 0;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 0 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 0 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  transform-origin: 0 0;
  transition: transform .46s cubic-bezier(.55,0,.75,.4) .2s, opacity .46s ease .2s;
}
.tk-stub::before {  /* 撕線 */
  content: ""; position: absolute; left: 0; top: var(--notch); bottom: var(--notch);
  border-left: 2px dashed rgba(215,194,154,.75);
}
.tk-stub small { font-size: 11px; letter-spacing: .3em; text-indent: .3em; color: var(--gold-soft); }
.tk-stub b { font-family: var(--serif); font-weight: 900; font-size: 30px; line-height: 1.05; letter-spacing: .02em; color: #fff7f2; }
.tk-stub .tk-go { margin-top: 6px; font-size: 12.5px; letter-spacing: .16em; text-indent: .16em; color: var(--gold-soft); border-top: 1px solid rgba(215,194,154,.35); padding-top: 5px; }
.tk-hole {   /* 剪票打出來的洞 */
  position: absolute; left: 50%; top: 18px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 1px 2px rgba(0,0,0,.35), 0 0 0 2px var(--gold-soft);
  transform: scale(0); opacity: 0;
}
.tk.punched .tk-hole { animation: tk-punch .18s cubic-bezier(.3,1.6,.5,1) forwards; }
.tk.punched .tk-stub { transform: translate(14px, 34px) rotate(16deg); opacity: 0; }
.tk.punched .tk-seal { transition: opacity .3s ease .2s; opacity: 0 !important; }
.tk.punched { pointer-events: none; }
@keyframes tk-punch { 0% { transform: scale(1.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* 商品票：交錯一點角度，依序進場 */
.menu-products { display: grid; gap: 14px; }
.menu-products .tk:nth-child(odd) { --tilt: -.5deg; }
.menu-products .tk:nth-child(even) { --tilt: .45deg; }
.tk-in { opacity: 0; translate: 0 18px; transition: opacity .5s ease, translate .55s cubic-bezier(.2,.8,.2,1); }
.tk-in.in { opacity: 1; translate: 0 0; }

/* 免費入場券：大一號，存根寫「免費」，蓋章 */
.tk.free { --stub: 112px; min-height: 168px; margin-bottom: 4px; }
.tk.free .tk-face { padding: 22px 34px 18px 22px; background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.6), transparent 55%), linear-gradient(160deg, #fffaf5, #f6e7e3); }
.tk.free .tk-name { font-size: 27px; }
.tk.free .tk-desc { font-size: 13.5px; }
.tk.free .tk-stub { --stub-bg: #4f2c39; }
.tk.free .tk-stub b { font-size: 34px; letter-spacing: .1em; text-indent: .1em; }
.tk-seal {
  position: absolute; z-index: 2; right: calc(var(--stub) - 30px); top: -14px; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,250,245,.55);
  border: 2px solid rgba(166,95,76,.75); color: rgba(166,95,76,.9); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 900; font-size: 13px; letter-spacing: .1em; line-height: 1.15; text-align: center;
  transform: rotate(-12deg); opacity: 0; animation: tk-seal .5s cubic-bezier(.3,1.6,.5,1) .7s forwards;
}
.tk-seal::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid rgba(166,95,76,.45); }
@keyframes tk-seal { 0% { opacity: 0; transform: rotate(-12deg) scale(1.8); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }

.menu-order-all { margin-top: 18px; }
.menu-fine { text-align: center; margin-top: 10px; }
.menu-help { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 34px; }
.mh-card { display: block; text-decoration: none; background: rgba(250,245,231,.6); border: 1px solid var(--gold-soft); border-radius: 8px; padding: 14px 14px 12px; }
.mh-card .mh-t { display: block; font-family: var(--serif); font-weight: 700; color: var(--pine-deep); letter-spacing: .12em; font-size: 15px; }
.mh-card .mh-s { display: block; font-size: 12px; color: var(--quiet); line-height: 1.7; margin-top: 2px; }
.mh-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 359px) { .tk { --stub: 88px; } .tk-stub b { font-size: 25px; } .tk-name { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) {
  .tk, .tk-stub, .tk-in { transition: none; }
  .tk-in { opacity: 1; translate: none; }
  .tk-seal { animation: none; opacity: 1; }
}

/* iPhone（WebKit）不會把 <button> 裡的格線子項目拉成同高：免費入場券改由內層 .tk-body 排版 */
button.tk { display: block; }
button.tk > .tk-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--stub); min-height: inherit; }

/* 直接訂購頁沒有載入 reading.css：「讓報告更貼近你」選填框沿用首頁表單的樣式 */
#of .reading-context {
  min-width: 0;
  margin: 6px 0 0;
  padding: 8px 14px 16px;
  border: 1px solid rgba(142, 117, 73, .4);
  border-radius: 8px;
  background: rgba(255, 247, 243, .68);
}
#of .reading-context legend {
  padding: 0 7px;
  color: var(--pine);
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.7;
}
#of .reading-context legend span { margin-left: 10px; font-family: var(--sans); font-size: .75rem; font-weight: 500; color: #82612e; }
#of .reading-context-note { margin: 1px 0 13px; color: #76676d; font-size: .8125rem; line-height: 1.7; }
#of .reading-context-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
#of .reading-context-fields .field { min-width: 0; }
#of .reading-context-fields .field label { font-size: .8125rem; letter-spacing: .015em; }
#of .reading-context-fields select { padding: 12px 26px 12px 10px; background-position: right 10px center; font-family: var(--sans); font-size: 1rem; font-weight: 400; }
@media (min-width: 360px) {
  #of .reading-context-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* 直接訂購頁底部小字裡的連結 */
#of .fineprint a { color: var(--pine); text-decoration: underline; text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }

/* 直接訂購頁：安卓原生日期／時間欄位有最小寬度，360px 手機會把兩欄撐出畫面 2px；改成可縮的欄寬 */
#of .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#of .duo input { min-width: 0; width: 100%; }
@media (max-width: 380px) { #of .duo, #f .duo { grid-template-columns: minmax(0, 1fr); } }
#f .duo > * { min-width: 0; }
#f .duo input { min-width: 0; width: 100%; }

/* 票券說明：短句整句換行（太長的句子仍會在句內折行，不會超出票面） */
.tk-desc .ph, .mh-s .ph { display: inline-block; }
