/* 首頁（2026-11-18 上線）：長相照 首頁方向稿-20261013\5-延伸.html 的精簡版（羊皮紙＋墨線星圖）。
   只管首頁那一頁：所有規則都關在 .h5 底下，顏色變數也只在 .h5 裡生效，不影響「我的」「開團」「管理」那些頁。
   類別名刻意避開 style.css 用掉的（btn、note、row、hero、facts、res、top、me…），所以這裡叫 hbtn、hnote、qrow、hero5、hfacts、reslist。
   深淺色跟著網站的主題走：右上選單選了深色（<html data-theme="dark">）或系統是深色，都換成下面那組深色。 */
/* 標題字 HomeSerif 的 @font-face 與 --serif 在 style.css（全站共用） */
main.home5 { max-width: none; padding: 0; }
.h5 {
  --bg: #f0e9d6; --panel: #f7f2e3; --panel2: #eae3cf; --border: #d5c9ac; --text: #2b2416; --muted: #6f6450; --dim: #a09377;
  --accent: #2e4170; --accent-ink: #f7f2e3; --seal: #8e2a1e; --brass: #9a7426; --ok: #047857; --warn: #b4690e;
  --p1: #8e2a1e; --p2: #2e4170; --s1: #0e7490; --s2: #5b3b8a;
  --sans: "Segoe UI", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  background: var(--bg); color: var(--text); font: 15px/1.65 var(--sans);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .h5 {
  --bg: #1c1914; --panel: #26221b; --panel2: #2f2a21; --border: #4a4234; --text: #ece4d0; --muted: #b0a48a; --dim: #7d725d;
  --accent: #a9b8e0; --accent-ink: #161107; --seal: #e07a63; --brass: #d6a94c; --ok: #5ec29a; --warn: #e0a24a;
  --p1: #e07a63; --p2: #a9b8e0; --s1: #6cc3d6; --s2: #b79be0; } }
:root[data-theme="dark"] .h5 {
  --bg: #1c1914; --panel: #26221b; --panel2: #2f2a21; --border: #4a4234; --text: #ece4d0; --muted: #b0a48a; --dim: #7d725d;
  --accent: #a9b8e0; --accent-ink: #161107; --seal: #e07a63; --brass: #d6a94c; --ok: #5ec29a; --warn: #e0a24a;
  --p1: #e07a63; --p2: #a9b8e0; --s1: #6cc3d6; --s2: #b79be0; }

.h5 a { color: var(--accent); }
.h5 .wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.h5 > section { padding: 44px 0; scroll-margin-top: 56px; }
/* 區塊底色一深一淺輪流，照實際排出來的順序算 */
.h5 > section:nth-of-type(odd) { background: var(--panel2); }
.h5 h1, .h5 h2, .h5 h3, .h5 h4 { color: var(--text); }
.h5 h2 { font: 800 26px var(--serif); margin: 0 0 4px; }
.h5 .lead { color: var(--muted); margin: 0 0 22px; }
.h5 .hbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 700 15px var(--sans); text-decoration: none; cursor: pointer; }
.h5 .hbtn.ghost { background: transparent; color: var(--accent); }
.h5 .htag { display: inline-block; font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: 99px; border: 1px solid currentColor; margin-right: 4px; white-space: nowrap; }
.h5 .htag.p1 { color: var(--p1); } .h5 .htag.p2 { color: var(--p2); } .h5 .htag.s1 { color: var(--s1); } .h5 .htag.s2 { color: var(--s2); }
.h5 .htag.full { color: var(--warn); } .h5 .htag.left { color: var(--ok); }
.h5 a:focus-visible, .h5 button:focus-visible, .h5 summary:focus-visible, .h5 .chart .star:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 開場：字＋墨線星圖 */
.h5 .hero5 { display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px; align-items: center; padding-block: 36px 40px; }
.h5 .hero5 h1 { font: 800 40px/1.25 var(--serif); margin: 0 0 14px; }
.h5 .hero5 h1 em { font-style: normal; color: var(--seal); }
.h5 .hero5 p { font-size: 16px; margin: 0 0 18px; }
.h5 .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.h5 .hfacts { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; min-height: 62px; }
.h5 .hfacts div { font-size: 13px; color: var(--muted); }
.h5 .hfacts b { display: block; font: 800 26px var(--serif); color: var(--text); }
.h5 .chartbox { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: inset 0 0 40px rgba(120, 90, 40, .12); }
.h5 svg.chart { width: 100%; height: auto; display: block; }
.h5 .chart .ring { fill: none; stroke: var(--border); }
.h5 .chart .grid { stroke: var(--border); stroke-dasharray: 2 6; }
.h5 .chart .isle { fill: var(--brass); fill-opacity: .09; stroke: var(--brass); stroke-opacity: .4; stroke-width: 1; stroke-linejoin: round; }
.h5 .chart .rose { fill: none; stroke: var(--dim); }
.h5 .chart .star { cursor: pointer; }
.h5 .chart .star .core { fill: var(--seal); }
.h5 .chart .star.soon .core { fill: none; stroke: var(--muted); stroke-width: 2; }
.h5 .chart .star .hit { fill: transparent; }
.h5 .chart .star .halo { fill: var(--seal); opacity: .12; }
.h5 .chart .star.soon .halo { opacity: 0; }
.h5 .chart .star:hover .halo { opacity: .2; }
.h5 .chart .star.soon:hover .halo { opacity: .1; }
.h5 .chart .star.on .halo { opacity: .3; }
/* 名字後面墊一圈底色，壓在海岸線上也讀得清楚 */
.h5 .chart .star text { fill: var(--text); font: 800 15px var(--serif); paint-order: stroke; stroke: var(--panel); stroke-width: 3.5px; stroke-linejoin: round; }
/* 地圖上平常只有點，沒有地名（2026-11-18 他定的，電腦、手機都一樣）。會顯示名字的時候：點了那顆星（.on，手機就是這樣看）、
   鍵盤停在上面、有滑鼠的裝置把滑鼠移上去。:hover 只給有滑鼠的裝置：手機點過一下之後 :hover 會黏著，再點一次取消時名字會收不回去。
   名字本身不接滑鼠與點擊：看不見的字不該有感應範圍 */
.h5 .chart .star text { opacity: 0; pointer-events: none; transition: opacity .12s; }
.h5 .chart .star:focus-visible text, .h5 .chart .star.on text { opacity: 1; }
@media (hover: hover) { .h5 .chart .star:hover text { opacity: 1; } }
.h5 .chart .star.soon text { fill: var(--muted); font-weight: 400; font-family: var(--sans); }
.h5 .chart .star .cnt { fill: var(--seal); font: 700 11.5px var(--sans); }
.h5 .chart .lbl { fill: var(--dim); font: 11px var(--sans); letter-spacing: .2em; }
.h5 .pop { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 10px; min-height: 96px; }
.h5 .pop h3 { font: 800 17px var(--serif); margin: 0 0 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.h5 .pop h3 span { font: 12.5px var(--sans); color: var(--muted); }
.h5 .pop .a { color: var(--muted); font-size: 13px; }
.h5 .pop .tb { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--border); font-size: 14px; flex-wrap: wrap; }
.h5 .pop .tb b { color: var(--seal); }
.h5 .pop .how { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 14px; }
.h5 .pop .more { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 13.5px; }

/* 讀者入口 */
.h5 .aud { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.h5 .aud .c { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; }
.h5 .aud img { width: 44px; height: 44px; opacity: .85; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .h5 .aud img { filter: invert(1); } }
:root[data-theme="dark"] .h5 .aud img { filter: invert(1); }
.h5 .aud h3 { font: 800 18px var(--serif); margin: 10px 0 4px; }
.h5 .aud p { margin: 0 0 12px; color: var(--muted); flex: 1; }
.h5 .aud .go { font-weight: 700; text-decoration: none; }

/* 佈告欄：近期開團 */
.h5 .board h3 { font: 800 17px var(--serif); margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.h5 .board h3 a { font: 600 13.5px var(--sans); }
.h5 .notes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.h5 a.hnote { display: block; background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 12px 14px 12px 18px; margin-bottom: 10px; position: relative; box-shadow: 0 2px 0 var(--border); text-decoration: none; color: var(--text); }
.h5 a.hnote:hover { border-color: var(--seal); }
.h5 .hnote::before { content: ""; position: absolute; left: -5px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--seal); }
.h5 .hnote .when { font-size: 13px; color: var(--seal); font-weight: 700; }
.h5 .hnote .ttl { font-weight: 800; font-size: 16px; }
.h5 .hnote .meta { color: var(--muted); font-size: 13.5px; }
/* 沒有人開團時：改列各分部上一場是哪天 */
.h5 .quiet { border: 2px dashed var(--border); border-radius: 10px; padding: 18px 20px; max-width: 680px; }
.h5 .quiet > b { display: block; margin-bottom: 2px; }
.h5 .quiet > p { margin: 0 0 10px; color: var(--muted); }
.h5 .qrow { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--border); }
.h5 .qrow .n { font: 800 16px var(--serif); }
.h5 .qrow .d { font-size: 14px; }
.h5 .qrow .d b { color: var(--seal); }
.h5 .qrow a { font-weight: 700; font-size: 13.5px; white-space: nowrap; }

/* 找分部 */
.h5 .bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.h5 .bgrid.many { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.h5 .reg { font: 700 13px var(--sans); color: var(--muted); letter-spacing: .12em; margin: 20px 0 8px; }
.h5 .bcard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 70px; }
.h5 .bcard.on { border-color: var(--seal); box-shadow: 0 0 0 2px var(--seal); }
.h5 .bcard h3 { font: 800 19px var(--serif); margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.h5 .bcard h3 small { font: 600 12px var(--sans); color: var(--muted); white-space: nowrap; }
.h5 .bcard .st { font: 700 12.5px var(--sans); color: var(--ok); }
.h5 .bcard .v { font-weight: 700; }
.h5 .bcard .a { color: var(--muted); font-size: 13px; }
.h5 .bcard .when { font-size: 13.5px; }
.h5 .bcard .when b { color: var(--seal); }
.h5 .bcard .how { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); font-size: 14px; }
/* 還沒有固定開團的：一排虛線小卡，跟星圖的空心星同一套記號 */
.h5 .bminis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.h5 .bmini { border: 1px dashed var(--dim); border-radius: 10px; padding: 11px 14px; scroll-margin-top: 70px; }
.h5 .bmini.on { border: 1px solid var(--seal); box-shadow: 0 0 0 2px var(--seal); }
.h5 .bmini b { font: 800 17px var(--serif); }
.h5 .bmini .a { color: var(--muted); font-size: 13px; }
.h5 .bmini a { font-size: 13.5px; font-weight: 700; }
/* 分部自己給的對外連結：圖示＋字的小鈕，點了另開分頁 */
.h5 .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.h5 a.ilink { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 12px 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--text); text-decoration: none; font: 700 13.5px var(--sans); }
.h5 a.ilink:hover, .h5 a.ilink:focus-visible { border-color: var(--seal); color: var(--seal); }
.h5 a.ilink svg { flex: none; }
/* 開新分部 */
.h5 .nb { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: center; margin-top: 26px; border: 1px dashed var(--dim); border-radius: 12px; padding: 22px 24px; scroll-margin-top: 70px; }
.h5 .nb h3 { font: 800 21px var(--serif); margin: 0 0 6px; }
.h5 .nb p { margin: 0 0 14px; color: var(--muted); }
.h5 .nb .after { margin: 10px 0 0; font-size: 13.5px; }
.h5 .nb ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.h5 .nb li { border-left: 2px solid var(--border); padding-left: 14px; }
.h5 .nb li b { display: block; color: var(--text); font-size: 15px; }
.h5 .nb li span { color: var(--muted); font-size: 13.5px; }

/* 已經在玩了：一行 */
.h5 > section.strip { padding: 22px 0; }
.h5 .strip .wrap { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; }
.h5 .strip p { margin: 0; flex: 1; min-width: 260px; }

/* 分部長什麼樣子 */
.h5 .hchips { display: flex; gap: 6px; flex-wrap: wrap; margin: -10px 0 18px; }
.h5 .hchip { border: 1px solid var(--border); background: var(--panel); color: var(--muted); border-radius: 99px; padding: 3px 14px; cursor: pointer; font: 600 13.5px var(--sans); min-height: 32px; }
.h5 .hchip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.h5 .habit { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.h5 .bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; border-bottom: 2px solid var(--text); padding-top: 18px; }
.h5 .bars div { flex: 1; max-width: 72px; background: var(--seal); opacity: .8; border-radius: 3px 3px 0 0; position: relative; min-width: 0; min-height: 1px; }
.h5 .bars div.hi { opacity: 1; }
.h5 .bars div span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--text); }
.h5 .axis { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.h5 .axis span { flex: 1; max-width: 72px; text-align: center; min-width: 0; }
.h5 .dow { display: grid; gap: 5px; }
.h5 .dow div { display: grid; grid-template-columns: 34px 1fr 38px; gap: 8px; align-items: center; font-size: 13.5px; }
.h5 .dow i { display: block; height: 12px; background: var(--accent); border-radius: 2px; opacity: .75; min-width: 1px; }
.h5 .dow .hi i { opacity: 1; background: var(--seal); }
.h5 .dow b { font-weight: 600; color: var(--muted); text-align: right; }
.h5 .callout { font: 800 18px/1.5 var(--serif); margin: 16px 0 0; }

/* 階梯、比較表、問答 */
.h5 .ladder { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; }
.h5 .step { background: var(--panel); border: 1px solid var(--border); border-bottom: 0; padding: 14px; }
.h5 .step:nth-child(1) { min-height: 130px; } .h5 .step:nth-child(2) { min-height: 160px; } .h5 .step:nth-child(3) { min-height: 190px; } .h5 .step:nth-child(4) { min-height: 220px; }
.h5 .step .n { font: 800 13px var(--sans); color: var(--seal); }
.h5 .step h4 { font: 800 17px var(--serif); margin: 2px 0 6px; }
.h5 .step .w { font-size: 13px; color: var(--muted); }
.h5 .step p { margin: 6px 0 0; font-size: 14px; }
.h5 .ground { height: 6px; background: var(--text); border-radius: 3px; }
.h5 .klite { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.h5 .klite span.kt { font-weight: 700; }
.h5 .klite b { color: var(--seal); }
.h5 .path { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 20px; color: var(--muted); }
.h5 .path b { color: var(--text); }
.h5 table.cmp { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); }
.h5 .cmp th, .h5 .cmp td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.h5 .cmp thead th { font: 800 16px var(--serif); background: var(--panel2); }
.h5 .cmp tbody th { color: var(--muted); font-weight: 600; width: 140px; }
.h5 .faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.h5 .faq details { border-bottom: 1px solid var(--border); padding: 10px 0; }
.h5 .faq summary { font-weight: 700; cursor: pointer; color: var(--text); margin: 0; }
.h5 .faq p { margin: 6px 0 0; color: var(--muted); }
.h5 .about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.h5 .org { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--seal); }
.h5 .org li { padding: 4px 0 12px 16px; }
.h5 .org b { display: block; }
.h5 .org span { color: var(--muted); font-size: 13.5px; }
.h5 .facs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.h5 .facs span { border: 1px solid var(--border); background: var(--panel); border-radius: 99px; padding: 1px 10px; font-size: 13px; }
.h5 .reslist { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.h5 .reslist a { display: block; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--text); }
.h5 .reslist a span { display: block; color: var(--muted); font-size: 13.5px; }
.h5 .reslist .g { grid-column: 1/-1; font-weight: 700; color: var(--muted); margin-top: 6px; }

@media (max-width: 760px) {
  .h5 .hero5, .h5 .about, .h5 .habit, .h5 .faq, .h5 .nb, .h5 .notes { grid-template-columns: 1fr; }
  .h5 .nb { padding: 18px; gap: 18px; }
  .h5 .bgrid, .h5 .bgrid.many { grid-template-columns: 1fr; }
  .h5 .bminis { grid-template-columns: 1fr 1fr; }
  .h5 .chart .star text { font-size: 21px; }
  .h5 .chart .star .cnt { font-size: 15px; }
  .h5 .qrow { grid-template-columns: 48px 1fr; }
  .h5 .qrow a { grid-column: 2; }
  .h5 .hero5 h1 { font-size: 30px; }
  .h5 .hero5 { padding-block: 24px 30px; }
  .h5 .ladder { grid-template-columns: 1fr 1fr; }
  .h5 .step { min-height: 0 !important; border-bottom: 1px solid var(--border); }
  .h5 .ground { display: none; }
  .h5 .cmp tbody th { width: 96px; }
  .h5 > section { padding: 32px 0; }
}
