/* pickleball.fashion 設計系統
   分區式雜誌版面：置中報頭、細線導覽、每區大標＋粗線、兩欄棋盤（桌面）／單欄（手機）
   字體：Playfair Display（拉丁 display）＋ Noto Serif TC（中文標題）＋系統無襯線（內文）
   規則：零破折號、每行最多一個「·」、只有兩種形狀（膠囊按鈕、直角影像） */

:root {
  --bg: #ffffff;
  --band: #f4f4f2;
  --text: #111111;
  --muted: #5a5a5a;
  --rule: #111111;
  --soft: #dcdcd8;
  --maxw: 1200px;
  --pad: 48px;

  /* 分區色取自匹克球場實際使用的壓克力面漆。文字一律維持墨黑，
     顏色只走標籤、線條、色塊與圖示，質感才守得住。 */
  --accent: #1b4e9b;   /* 球場藍 */
  --tint: #eef2f9;     /* 該區的淡色底 */
  --ball: #dce535;     /* 螢光球黃，只當底色，永遠不當文字色 */
}

[data-section="courts"]  { --accent: #1b4e9b; --tint: #edf1f9; }  /* 球場藍 */
[data-section="paddles"] { --accent: #0a6b5c; --tint: #e8f3f0; }  /* 非截擊區綠 */
[data-section="apparel"] { --accent: #8a6a00; --tint: #fdf7e0; }  /* 淡黃。文字用深金才過得了對比，底色才是淡黃 */
[data-section="learn"]   { --accent: #b0472b; --tint: #fbeee9; }  /* 紅土 */
[data-section="news"]    { --accent: #a8306b; --tint: #fbecf3; }  /* 場地桃紅 */

*,
*::before,
*::after { box-sizing: border-box; }

/* hidden 屬性必須贏過所有 class 的 display。
   UA 樣式表的 [hidden]{display:none} 權重再高也輸給作者樣式，
   .card{display:flex}、.nearcard{display:grid} 之類會直接把它蓋掉，
   結果就是 JS 設了 hidden 但畫面上照樣看得見。 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto 不可省。圖片帶著 width／height 屬性時，只給 max-width
   會讓寬度縮小但高度維持屬性值，整張圖被垂直拉長。 */
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.display { font-family: "Playfair Display", Georgia, "Times New Roman", serif; }
.serif { font-family: "Noto Serif TC", "Playfair Display", Georgia, serif; }
.photo { filter: saturate(0.85) contrast(1.04); }

.lbl {
  font-size: 12px;
  letter-spacing: 0.24em;
  font-weight: 500;
  line-height: 1.6;
}

.muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- 報頭 ---------- */

.masthead-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  color: var(--muted);
  gap: 16px;
}
.masthead-bar a { color: var(--muted); }
.masthead-bar .links { display: flex; gap: 24px; }

.masthead {
  text-align: center;
  padding-top: 22px;
}
.masthead .tagline {
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  margin-bottom: 8px;
}
.masthead a {
  font-size: clamp(18px, 3.4vw, 36px);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1;
  display: inline-block;
}

.nav {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--soft);
  padding: 14px 0;
  display: flex;
  justify-content: center;
  gap: 48px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.nav::-webkit-scrollbar { display: none; }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--text); }

/* ---------- 區塊 ---------- */

.section { padding-bottom: 72px; }
.section.band { background: var(--band); }

.section-head {
  border-top: 2px solid var(--rule);
  padding-top: 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.section-head .titles { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.section-head h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.section-head .en {
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
}
.section-head .more { color: var(--muted); white-space: nowrap; }

/* 首頁兩欄棋盤 */
.board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 72px;
  padding-bottom: 80px;
}
.board > .cell-left { padding-right: 36px; }
.board > .cell-right { padding-left: 36px; border-left: 1px solid var(--soft); }
.board > .cell-full { grid-column: span 2; }

/* ---------- 封面 ---------- */

.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 56px;
}
.hero .art { aspect-ratio: 3 / 2; overflow: hidden; background: var(--band); }
.hero .art img { width: 100%; height: 100%; object-fit: cover; }
.hero .copy { display: flex; flex-direction: column; gap: 18px; }
.hero h1 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.hero p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.hero .copy h1 a:hover { color: var(--accent); }

/* ---------- 卡片格 ---------- */

.grid { display: grid; gap: 24px 20px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; gap: 8px; }
.grid > [data-item] { content-visibility: auto; contain-intrinsic-size: auto 180px; }
.district-links { margin: -4px 0 4px; line-height: 1.9; }
.district-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.district-links a:hover { color: var(--accent); }
.thumb { overflow: hidden; background: var(--band); }
.thumb.r43 { aspect-ratio: 4 / 3; }
.thumb.r11 { aspect-ratio: 1 / 1; }
.thumb.r34 { aspect-ratio: 3 / 4; }
.thumb.r169 { aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.contain img { object-fit: contain; padding: 8%; }
.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 2px 0 0;
  line-height: 1.45;
}
.card .meta { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 佔位圖（沒有照片時） */
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--band);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.24em;
}

/* ---------- 清單列 ---------- */

.rows { display: flex; flex-direction: column; }
.row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--soft);
}
.row:first-child { border-top: none; padding-top: 0; }
.row .date { font-size: 12px; color: var(--muted); }
.row h3 { font-size: 18px; font-weight: 600; line-height: 1.5; margin: 0; }

.event-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--soft);
  align-items: center;
}
.event-row .d { font-size: 28px; line-height: 1.1; }
.event-row h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0; }
.event-row .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 標籤與按鈕 ---------- */

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--text);
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 500;
  background: none;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}
.chip[aria-pressed="true"],
.chip.on { background: var(--text); color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { color: #fff; opacity: 0.86; }
.btn.ghost { background: none; color: var(--text); }
.btn.ghost:hover { color: var(--text); }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 1px solid var(--soft);
  padding: 4px 8px;
  color: var(--muted);
}
.tag.solid { background: var(--text); color: #fff; border-color: var(--text); }

.nearby {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.nearby .status { font-size: 13px; color: var(--muted); }

/* ---------- 內頁 ---------- */

.page-head { padding: 40px 0 32px; border-bottom: 2px solid var(--rule); }
.page-head h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin: 10px 0 0;
  line-height: 1.25;
}
.page-head p { color: var(--muted); margin: 12px 0 0; max-width: 42em; }

.detail {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  padding: 40px 0 72px;
  align-items: start;
}
.detail .gallery { display: flex; flex-direction: column; gap: 12px; }
.detail .gallery .main { aspect-ratio: 4 / 3; overflow: hidden; background: var(--band); }
.detail .gallery .main img { width: 100%; height: 100%; object-fit: cover; }

.facts { width: 100%; border-collapse: collapse; }
.facts th,
.facts td {
  text-align: left;
  padding: 12px 0;
  border-top: 1px solid var(--soft);
  vertical-align: top;
  font-size: 15px;
}
.facts th {
  width: 34%;
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.facts tr:first-child th,
.facts tr:first-child td { border-top: none; }
.facts a { color: var(--accent); }

/* 規格對照：多欄資料表。.facts 本體是兩欄鍵值表，欄寬與零左右間距都不適用 */
.spec-scroll { overflow-x: auto; }
.facts.spec-table { table-layout: fixed; min-width: 880px; }
/* 欄名的 .facts th { display: flex }（放圖示用）會讓表頭脫離表格欄模型，
   欄寬與 table-layout: fixed 全部失效，規格表要收回 table-cell */
.facts.spec-table th { display: table-cell; }
.facts.spec-table th,
.facts.spec-table td { padding: 13px 20px 13px 0; }
.facts.spec-table th:last-child,
.facts.spec-table td:last-child { padding-right: 0; }
.facts.spec-table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.facts.spec-table .wrap-txt { color: var(--muted); font-size: 14px; }
.facts.spec-table th.c-name { width: 37%; }
.facts.spec-table th.c-thick { width: 7%; }
.facts.spec-table th.c-face { width: 21%; }
.facts.spec-table th.c-type { width: 8%; }
.facts.spec-table th.c-weight { width: 12%; }
.facts.spec-table th.c-price { width: 15%; }

.prose { max-width: 42em; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; line-height: 1.4; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose h4 { font-size: 16px; margin: 22px 0 6px; }
.prose p { margin: 0 0 16px; }
.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--rule);
  font-family: "Noto Serif TC", Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
}
.prose blockquote p { margin: 0; }

/* 著作權頁的照片出處清單：預設收起，展開才佔版面 */
.credit-list {
  margin: 0 0 16px;
  border: 1px solid var(--soft);
  border-radius: 4px;
  background: var(--tint, #f7f7f7);
}
.credit-list > summary {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: .04em;
}
.credit-list[open] > summary { border-bottom: 1px solid var(--soft); }
.credit-list .credits {
  margin: 12px 0;
  padding-left: 2.2em;
  font-size: 14px;
  columns: 2;
  column-gap: 32px;
}
.credit-list .credits li { break-inside: avoid; margin-bottom: 4px; }
.credit-list .fine {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 640px) { .credit-list .credits { columns: 1; } }
.prose figure { margin: 28px 0; }
.prose figure img { width: 100%; border: 1px solid var(--soft); background: #fff; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--band);
  padding: 1px 5px;
}

.source-line { font-size: 12px; color: var(--muted); margin-top: 10px; }
.source-line a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.notice {
  border: 1px solid var(--soft);
  background: var(--band);
  padding: 16px 18px;
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0;
}

.pager { display: flex; gap: 16px; padding: 24px 0 0; border-top: 1px solid var(--soft); }

/* ---------- 頁尾 ---------- */

.foot {
  border-top: 1px solid var(--rule);
  margin-top: 24px;
  padding: 32px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.foot .wordmark { font-size: 24px; letter-spacing: 0.12em; }
.foot .links { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.foot .links a { color: var(--muted); }
.foot .fine { font-size: 12px; color: var(--muted); max-width: 40em; }

/* ---------- 響應式 ---------- */

@media (max-width: 1023px) {
  :root { --pad: 28px; }
  .board { grid-template-columns: 1fr; row-gap: 48px; }
  .board > .cell-left { padding-right: 0; }
  .board > .cell-right { padding-left: 0; border-left: none; }
  .board > .cell-full { grid-column: span 1; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding: 24px 0 40px; }
  .detail { grid-template-columns: 1fr; gap: 32px; }
  .grid.c4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --pad: 20px; }
  body { font-size: 15px; }
  /* 五個分類在窄螢幕排不下一列。以前靠橫向捲動，最後一項被裁掉一半又沒有提示；
     改成置中換行，兩列都看得完整。 */
  .nav { gap: 6px 22px; justify-content: center; flex-wrap: wrap; white-space: normal; overflow: visible; padding: 12px 0; }
  .section { padding-bottom: 48px; }
  .section-head { padding-top: 16px; margin-bottom: 16px; }
  .section-head h2 { font-size: 26px; }
  .section-head .en { font-size: 14px; }
  .grid { gap: 24px 16px; }
  .grid.c3,
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-row { grid-template-columns: 68px 1fr; }
  .event-row .tag { grid-column: 2; justify-self: start; }
  .hero .art { aspect-ratio: 4 / 3; }
  .card h3 { font-size: 16px; }
  .row h3 { font-size: 17px; }
  .facts th { width: 40%; }
  .masthead-bar .links { gap: 16px; }
  .masthead .tagline { letter-spacing: 0.06em; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  .nav, .foot .links, .chips, .nearby { display: none; }
  body { color: #000; }
}

/* 沒有授權照片時的文字卡片：用粗線與標題取代灰色佔位 */
.card.textcard {
  border-top: 2px solid var(--rule);
  padding-top: 12px;
  gap: 6px;
}
.card.textcard h3 { font-size: 19px; margin-top: 0; }
.grid .card.textcard + .card.textcard { }

/* 沒有照片的單頁：資料表佔滿版面，不留灰塊 */
.detail.no-media { grid-template-columns: 1fr; max-width: 760px; }
.detail.no-media .facts th { width: 28%; }
.detail.no-media .facts th,
.detail.no-media .facts td { font-size: 16px; padding: 14px 0; }

/* 可引用摘要：給讀者也給答案引擎的一段話 */
.key-summary {
  border-left: 3px solid var(--rule);
  padding: 4px 0 4px 18px;
  margin: 24px 0 0;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}
.key-summary p { margin: 0; }
.key-summary strong { font-weight: 600; }

/* 手機上摘要框原本壓在標題前面，首屏看到的是一段說明文字而不是這一頁是什麼。
   縮成一行小字，留給答案引擎與想快速看結論的人，標題才是首屏的主角。 */
@media (max-width: 767px) {
  .key-summary {
    font-size: 13px;
    line-height: 1.7;
    padding: 8px 12px;
    margin-top: 12px;
    border-left-width: 2px;
    color: var(--muted);
  }
  .key-summary strong { color: var(--text); }
}

/* ---------- 示意照片 ---------- */

/* 圖庫照片是通用素材，不是該場館或該商品的實景。
   每一張都掛一個小標記，讀者一眼就知道，不會被誤導。 */
.stock { position: relative; }
.stock .tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  background: var(--text);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1;
  padding: 6px 9px 5px;
  pointer-events: none;
}

/* 明細頁主圖下方的完整說明 */
.stock-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
}
.stock-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* 頁尾的照片出處，比照雜誌把 credit 收在同一處 */
.photo-credits {
  border-top: 1px solid var(--soft);
  margin-top: 48px;
  padding-top: 14px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.photo-credits a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.photo-credits .lbl { display: block; margin-bottom: 4px; }

/* 分區頁頂端的橫幅照片 */
.banner {
  position: relative;
  /* 分區頁的重點是清單與篩選，橫幅只當一條視覺帶，不能佔掉整個首屏 */
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: var(--band);
  margin: 8px 0 34px;
}
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; }

@media (max-width: 767px) {
  .banner { aspect-ratio: 2 / 1; margin-bottom: 22px; }
  .stock .tag { font-size: 10px; padding: 5px 7px 4px; }
}

/* ---------- 兩欄並排 ----------
   原本寫在行內樣式裡，媒體查詢蓋不掉，手機上會撐出水平捲軸。 */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.split.ruled > :last-child { padding-left: 36px; border-left: 1px solid var(--soft); }
.split.ruled > :first-child { padding-right: 36px; }

@media (max-width: 1023px) {
  .split.ruled { gap: 0 28px; }
  .split.ruled > :last-child { padding-left: 24px; }
  .split.ruled > :first-child { padding-right: 24px; }
}

@media (max-width: 767px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.ruled > :first-child { padding-right: 0; }
  .split.ruled > :last-child {
    padding-left: 0;
    padding-top: 26px;
    border-left: 0;
    border-top: 1px solid var(--soft);
  }
}

/* ---------- 首頁卡牌 ----------
   首頁只給五個入口，每張卡一張照片加上該分區的數字，細節留給分區頁。 */

.home-lead {
  border-bottom: 1px solid var(--rule);
  padding: 6px 0 14px;
  margin-bottom: 28px;
}
.home-lead h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding-bottom: 64px;
}
.deck .tile.wide { grid-column: 1 / -1; }

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--text);
  color: #fff;
}
.tile.wide { aspect-ratio: 21 / 8; }
/* 寬幅卡是從 4:3 裁出來的，取景往上挪一點才不會切到人頭 */
.tile.wide img { object-position: 50% 32%; }
.tile:hover { color: #fff; }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile:hover img { transform: scale(1.04); }

.tile .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.12) 0%,
    rgba(17, 17, 17, 0.28) 42%,
    rgba(17, 17, 17, 0.86) 100%
  );
}
.tile .tag { top: 0; bottom: auto; }

.tile .inner {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px 24px;
}
.tile .en { color: rgba(255, 255, 255, 0.72); }
.tile h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}
.tile .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 30px;
  margin-top: 4px;
}
.tile .stat { display: flex; flex-direction: column; gap: 2px; }
.tile .stat b {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1;
}
.tile .stat .lbl { color: rgba(255, 255, 255, 0.74); font-size: 12px; }
.tile .note {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  max-width: 46em;
}

/* 近一日瀏覽數，沒有資料時整塊不出現 */
.tile .views {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  padding: 7px 11px 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1;
}

@media (max-width: 1023px) {
  .deck { gap: 18px; }
  .tile .inner { padding: 20px; }
  .tile .stats { gap: 4px 20px; }
}

@media (max-width: 767px) {
  .deck { grid-template-columns: 1fr; gap: 16px; }
  .tile,
  .tile.wide { aspect-ratio: 3 / 2; }
  .tile .stats { gap: 4px 18px; }
  .tile .note { display: none; }
}

/* ---------- 進階篩選 ---------- */

.filters {
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--soft);
  margin-bottom: 26px;
}
.frow {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: baseline;
  gap: 12px 16px;
  padding: 13px 0;
  border-top: 1px solid var(--soft);
}
.frow:first-child { border-top: 0; }
.frow > .lbl { color: var(--muted); padding-top: 4px; }
.frow .chips { margin: 0; }

.frow select {
  font: inherit;
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--text);
  border-radius: 0;
  max-width: 100%;
}

.frow.status { align-items: center; }
.frow.status .count { font-size: 14px; font-weight: 600; }
.frow.status .fnote {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.linkbtn {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--accent); }

/* 篩到沒有結果時給一句話，不留一片空白 */
[data-list][data-empty="true"]::after {
  content: "沒有符合這些條件的結果，試著放寬一項再看看。";
  grid-column: 1 / -1;
  padding: 34px 0;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 767px) {
  .frow {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }
  .frow.status { grid-template-columns: 1fr auto; align-items: center; }
  .frow select { width: 100%; }
}

/* ---------- 圖示 ---------- */

/* 雪碧圖本體不佔版面 */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 描邊屬性要下在 <use> 的宿主上，才會繼承進 shadow tree；
   寫在 .sprite g 上不會生效，圖示會變成一團黑。 */
.ic {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* ---------- 卡片上的資訊層級 ----------
   地點是脈絡、名稱是錨點、設施是圖形、價格是決策變數。
   四種不同性質的事實給四種不同的份量，不再擠成一句話。 */

.card .place {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.4;
}
.card .place .ic { color: var(--muted); }
.card .place [data-distance] { color: var(--accent); font-weight: 600; }
.card .place [data-distance]:not(:empty)::after { content: "・"; color: var(--muted); font-weight: 400; }

.card h3 { margin-top: 1px; }

.specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 2px;
}
.spec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}
/* 只有圖示的設施：已查證為「有」，詞彙由篩選列教過。
   不加外框，否則同一列裡有框的圖示與無框的文字會變成兩套視覺系統。 */
.spec.only { gap: 0; }
.spec.only .ic { width: 16px; height: 16px; flex-basis: 16px; }
.specs { gap: 6px 11px; }
.spec.only + .spec.only { margin-left: -3px; }

/* 球拍與球衣的規格標籤 */
.chiplet {
  font-size: 11px;
  line-height: 1;
  padding: 4px 7px;
  border: 1px solid var(--soft);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* 價格是這一頁真正要比較的東西，給它展示字體 */
.price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.price b {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.price .cur { font-size: 11px; color: var(--muted); }
.price .unit {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-left: 2px;
}
.price .ask { font-size: 12px; color: var(--muted); }

/* 全站唯一花掉強調色的地方 */
.price .free {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--accent);
  padding: 4px 9px 3px;
  line-height: 1;
}

/* 文字卡（沒有照片時）稍微拉開，讓圖示列有呼吸空間 */
.card.textcard { gap: 7px; }

/* ---------- 篩選列的圖示 ----------
   同一個圖形在篩選列帶著文字出現，讀者學會後才看得懂卡片上的裸圖示。 */
.chip .ic { color: currentColor; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 設施圖示說明 */
.spec-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: -8px 0 18px;
}
.spec-note .ic { display: inline-block; vertical-align: -3px; margin: 0 2px; }

@media (max-width: 767px) {
  .specs { gap: 5px 9px; }
  .price b { font-size: 17px; }
}

/* 目前作用中的切換鈕 */
.btn.ghost[aria-pressed="true"] { background: var(--text); color: #fff; }

/* ---------- 分區色的落點 ----------
   報頭與導覽永遠是墨黑，那是品牌的定錨；顏色只在框內換，
   讀者換區時感覺得到色調變了，但版面骨架沒動。 */

/* 眉標與英文區名帶上該區的顏色 */
.section-head .en,
.page-head .lbl,
.card .place .ic { color: var(--accent); }

.nav a[aria-current="page"] { color: var(--accent); }

/* 可引用摘要的左側線與淡底 */
.key-summary {
  border-left-color: var(--accent);
  background: var(--tint);
  padding: 14px 0 14px 18px;
  padding-right: 18px;
}

/* 分區大標下方的粗線改成該區的顏色 */
.page-head { border-bottom-color: var(--accent); }

/* 交錯底色的區塊用該區的淡色，不再是灰 */
.section.band { background: var(--tint); }

/* 篩選：選中的條件用該區的顏色，未選的維持細框 */
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"]:hover { color: #fff; }

.btn.ghost[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }

/* 設施圖示上色。文字留墨黑，圖示帶色，一列裡就有了層次 */
.spec .ic { color: var(--accent); }
.spec.only .ic { opacity: 0.9; }

/* 規格標籤的框改成該區顏色的淡版 */
.chiplet { border-color: color-mix(in srgb, var(--accent) 30%, var(--soft)); }

/* 免費是全站唯一用到螢光球黃的地方，換成球的顏色打底、黑字 */
.price .free {
  background: var(--ball);
  color: var(--text);
}

/* 距離讀數是「此刻」的資訊，用球黃打底才跳得出來 */
.card .place [data-distance]:not(:empty) {
  background: var(--ball);
  color: var(--text);
  font-weight: 600;
  padding: 2px 5px 1px;
  margin-right: 2px;
}
.card .place [data-distance]:not(:empty)::after { content: none; }

/* 首頁卡牌：每張罩上自己分區的顏色，五張並排就是五個色場 */
.tile .veil {
  background:
    linear-gradient(180deg, transparent 0%, transparent 24%, var(--accent) 92%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.06) 0%, rgba(17, 17, 17, 0.3) 45%, rgba(17, 17, 17, 0.72) 100%);
  mix-blend-mode: normal;
}
/* 卡片上的字壓在色場上，眉標維持半透明白 */
.tile .en { color: rgba(255, 255, 255, 0.8); }
.tile .views { color: var(--accent); }

/* 明細頁的資料表：欄名留墨黑，連結用該區顏色 */
.facts a { color: var(--accent); }
.prose a { color: var(--accent); }

/* 分區橫幅底下壓一條該區的色線，替換原本的細灰線 */
.banner { border-bottom: 3px solid var(--accent); }

/* ---------- 找球場的台灣地圖 ----------
   圖磚套灰階，分區色才跳得出來；分群圓圈用站台自己的字體與顏色，
   不用 Leaflet 預設那組綠黃藍圓球。 */

/* 地圖收窄拉高，狹長的台灣才填得滿；右欄放分區統計 */
.mapwrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 1fr);
  gap: 32px;
  margin: 8px 0 32px;
}

#court-map {
  height: 580px;
  background: var(--band);
  border: 1px solid var(--soft);
  border-bottom: 3px solid var(--accent);
  z-index: 0;
}
#court-map .leaflet-tile-pane { filter: grayscale(1) contrast(0.92) brightness(1.06); }

.mapfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding-top: 9px;
  font-size: 12px;
  color: var(--muted);
}
.mapfoot [data-map-count] { color: var(--text); font-weight: 600; }

/* 分群圓圈。
   選擇器要帶上 .leaflet-marker-icon：Leaflet 對這個 class 設了 display:block，
   權重與單一 class 相同，只靠載入順序取勝太脆弱。 */
.leaflet-marker-icon.court-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.court-cluster:hover { transform: scale(1.07); }
.court-cluster .display { font-size: 15px; line-height: 1; letter-spacing: 0.02em; white-space: nowrap; }

/* 單一球場 */
.leaflet-marker-icon.court-dot { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.court-dot i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease;
}
.court-dot:hover i { transform: scale(1.35); background: var(--accent); }

/* 你的位置 */
.leaflet-marker-icon.court-here { display: flex; align-items: center; justify-content: center; }
.court-here i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ball);
  border: 2px solid var(--text);
}

/* 明細頁的主角：這一座球場。整張圖只有一個，所以做得比分布圖的點大 */
.leaflet-marker-icon.court-here-pin { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.court-here-pin i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 2px 8px rgba(17, 17, 17, 0.28);
  transition: transform 0.15s ease;
}
.court-here-pin:hover i { transform: scale(1.2); }

/* 附近的公共停車場。刻意比球場淡，不跟主角搶 */
.leaflet-marker-icon.park-dot { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.park-dot i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text);
  opacity: 0.72;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.park-dot:hover i { opacity: 1; transform: scale(1.25); }

/* 彈出視窗沿用卡片的資訊層級 */
.leaflet-popup-content-wrapper { border-radius: 0; box-shadow: 0 6px 26px rgba(17, 17, 17, 0.18); }
.leaflet-popup-content { margin: 14px 16px; font-family: inherit; }
.map-pop .place { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.map-pop h3 { margin: 2px 0 6px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.map-pop .meta { font-size: 12px; color: var(--text); }
.map-pop .p { font-size: 13px; margin-top: 3px; }
.map-pop .go {
  display: inline-block;
  margin-top: 9px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { font-size: 10px; }

/* 分區統計 */
.regions { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.regions .lbl { color: var(--muted); margin-bottom: 8px; }
.rrow {
  display: grid;
  grid-template-columns: 3.4em 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 11px 0;
  border: 0;
  border-top: 1px solid var(--soft);
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.rrow:hover { color: var(--accent); }
.rrow:hover .rbar i { background: var(--accent); }
.rname { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.rbar { height: 3px; background: var(--soft); display: block; }
.rbar i { display: block; height: 100%; background: var(--text); transition: background 0.2s; }
.rnum { font-size: 22px; line-height: 1; }
.rsub {
  grid-column: 2 / -1;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.rrow.all { border-top-width: 2px; border-top-color: var(--rule); grid-template-columns: 3.4em 1fr; }
.rrow.all .rnum { grid-column: 2; justify-self: end; }
.rrow[aria-pressed="true"] { color: var(--accent); }
.rrow[aria-pressed="true"] .rbar i { background: var(--accent); }

@media (max-width: 1023px) {
  .mapwrap { grid-template-columns: 1fr; gap: 20px; }
  #court-map { height: 420px; }
  .regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
  .regions .lbl { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  #court-map { height: 340px; }
  .mapfoot .hint { display: none; }
  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rrow { grid-template-columns: 3em 1fr auto; padding: 9px 0; }
  .rnum { font-size: 19px; }
}

/* ---------- 球場設施晶片 ----------
   原本擠在資料表兩個欄位裡的「室內，4 面，有燈光」「有冷氣，有停車場」
   拆成一排晶片。三態欄位查不到就不出現，不用「沒有晶片」代表「沒有」。 */

.facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.fchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px 8px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.fchip .ic { width: 16px; height: 16px; flex-basis: 16px; }

/* 室內或戶外是這座球場最定義性的事實，用該區的顏色填滿當定錨 */
.fchip.lead { background: var(--accent); border-color: var(--accent); color: #fff; }
.fchip.lead .ic { color: #fff; }

/* 面數是數量，用墨線框住 */
.fchip.fact { border-color: var(--rule); color: var(--text); }
.fchip.fact .ic { color: var(--text); }

/* 查證過確實有：淡色底加彩色圖示 */
.fchip.yes {
  background: var(--tint);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--tint));
  color: var(--text);
}
.fchip.yes .ic { color: var(--accent); }

/* 查證過確實沒有：灰框灰字，與「查不到」不同，後者根本不會出現 */
.fchip.no { border-color: var(--soft); color: var(--muted); }
.fchip.no .ic { color: var(--soft); }

/* 相簿的附圖列：欄數跟著照片數量走，不再固定三欄把單張壓成窄條 */
.shots { display: grid; gap: 12px; margin-top: 12px; }

@media (max-width: 767px) {
  .facilities { gap: 6px; margin-top: 18px; }
  .fchip { font-size: 12px; padding: 8px 10px 7px; gap: 6px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---------- 設施顏色 ----------
   每一項設施給一個對應語意的顏色，讓人靠顏色就認得出來，不必逐字讀：
   冷氣冰藍、燈光琥珀、淋浴水藍、停車場沿用臺灣停車標誌的藍、
   租拍用非截擊區綠、訂位用紫、戶外用陽光橘、室內用球場藍。
   同一個顏色在篩選列、卡片與明細頁三處一致，看過一次就記得住。 */

[data-fx] { --fx: var(--accent); }
[data-fx="indoor"]  { --fx: #1450b5; }   /* 球場藍 */
[data-fx="outdoor"] { --fx: #c05609; }   /* 陽光橘 */
[data-fx="courts"]  { --fx: #111111; }   /* 面數是數量，維持墨色 */
[data-fx="light"]   { --fx: #9a7500; }   /* 琥珀。壓深過，淺琥珀在淡底上達不到 4.5:1 */
[data-fx="ac"]      { --fx: #0079b8; }   /* 冰藍 */
[data-fx="parking"] { --fx: #3a4ac9; }   /* 停車標誌的藍 */
[data-fx="rental"]  { --fx: #00846d; }   /* 非截擊區綠 */
[data-fx="shower"]  { --fx: #007d8c; }   /* 水藍 */
[data-fx="booking"] { --fx: #7d3fd6; }   /* 紫 */

/* 明細頁晶片：室內或戶外填滿當定錨，其餘用淡色底加彩色圖示 */
.fchip.lead { background: var(--fx); border-color: var(--fx); color: #fff; }
.fchip.lead .ic { color: #fff; }
.fchip.fact { border-color: var(--fx); color: var(--fx); }
.fchip.fact .ic { color: var(--fx); }
.fchip.yes {
  background: color-mix(in srgb, var(--fx) 14%, #fff);
  border-color: color-mix(in srgb, var(--fx) 42%, #fff);
  color: color-mix(in srgb, var(--fx) 88%, #111);
  font-weight: 600;
}
.fchip.yes .ic { color: var(--fx); }

/* 沒有 color-mix 的舊瀏覽器至少還有顏色可看 */
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .fchip.yes { border-color: var(--fx); color: var(--fx); }
}

/* 卡片上的圖示同色，掃清單時一整欄看下來顏色就分得出設施 */
.spec .ic { color: var(--fx); }
.spec[data-fx="indoor"],
.spec[data-fx="outdoor"],
.spec[data-fx="courts"] { color: var(--text); }

/* 篩選列：選中時填自己的顏色，讀者在這裡學會顏色代表什麼 */
.chip[data-fx]:hover { border-color: var(--fx); color: var(--fx); }
.chip[data-fx][aria-pressed="true"] {
  background: var(--fx);
  border-color: var(--fx);
  color: #fff;
}
.chip[data-fx][aria-pressed="true"] .ic { color: #fff; }
.chip[data-fx] .ic { color: var(--fx); }

/* ---------- 離我最近的五個球場 ---------- */

.nearstate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 22px;
}
.nearstate .msg { font-size: 13px; color: var(--muted); line-height: 1.7; }

.mapwrap.solo { grid-template-columns: 1fr; }
.mapwrap.solo #court-map { height: 420px; }

.nearlist { display: flex; flex-direction: column; }

.nearcard {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0 22px;
  padding: 26px 0;
  border-top: 1px solid var(--soft);
}
.nearcard:first-of-type { border-top: 2px solid var(--rule); }

.rank { padding-top: 2px; }
.rank .display {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.nearbody { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.nearbody h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}
.nearbody .place [data-distance]:not(:empty) {
  background: var(--ball);
  color: var(--text);
  font-weight: 600;
  padding: 2px 6px 1px;
  margin-right: 6px;
}
.nearbody .facilities { margin-top: 2px; }
.nearbody .facts { margin-top: 6px; }
.nearbody .facts th { width: 22%; }
.nearbody .go { align-self: flex-start; margin-top: 4px; }

@media (max-width: 767px) {
  .nearcard { grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; padding: 20px 0; }
  .rank .display { width: 34px; height: 34px; font-size: 16px; }
  .nearbody .facts th { width: 30%; }
  .mapwrap.solo #court-map { height: 320px; }
}

/* ---------- 卡片標籤改成色塊 ----------
   原本只有 15px 的細圖示帶顏色，整排看下來仍是黑白。
   把每個標籤做成帶淡色底的小色塊，掃清單時靠顏色就分得出設施。 */

.specs { gap: 5px; }
.spec {
  gap: 5px;
  padding: 4px 7px 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--fx) 15%, #fff);
  border: 1px solid color-mix(in srgb, var(--fx) 40%, #fff);
  color: color-mix(in srgb, var(--fx) 76%, #111);
  border-radius: 2px;
}
.spec .ic { color: var(--fx); width: 14px; height: 14px; flex-basis: 14px; }
.spec.only { padding: 4px 5px 3px; gap: 0; }
.spec.only .ic { width: 15px; height: 15px; flex-basis: 15px; }
.spec.only + .spec.only { margin-left: 0; }

/* 室內與戶外是最定義性的一項，底色再深一點站得住 */
.spec[data-fx="indoor"],
.spec[data-fx="outdoor"] {
  background: color-mix(in srgb, var(--fx) 20%, #fff);
  border-color: color-mix(in srgb, var(--fx) 50%, #fff);
}
/* 面數是數量不是狀態，維持墨色不搶戲 */
.spec[data-fx="courts"] {
  background: #fff;
  border-color: var(--soft);
  color: var(--text);
}

/* 篩選列未選取時也帶自己的淡色，整條列就是一份顏色圖例 */
.chip[data-fx] {
  background: color-mix(in srgb, var(--fx) 8%, #fff);
  border-color: color-mix(in srgb, var(--fx) 30%, #fff);
  color: color-mix(in srgb, var(--fx) 78%, #111);
}
.chip[data-fx]:hover {
  background: color-mix(in srgb, var(--fx) 16%, #fff);
  border-color: var(--fx);
  color: color-mix(in srgb, var(--fx) 92%, #111);
}
.chip[data-fx][aria-pressed="true"],
.chip[data-fx][aria-pressed="true"]:hover {
  background: var(--fx);
  border-color: var(--fx);
  color: #fff;
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
  .spec { background: #fff; border-color: var(--soft); color: var(--text); }
  .chip[data-fx] { background: #fff; border-color: var(--soft); color: var(--text); }
}

/* ---------- 其餘標籤的顏色 ----------
   球感、分級、服飾類別、活動狀態、新聞分類各給一個對應語意的顏色。 */

[data-fx="ruler"]           { --fx: #4a4a4a; }
[data-fx="type-control"]    { --fx: #0a6b5c; }   /* 控制型：穩，用綠 */
[data-fx="type-power"]      { --fx: #b0472b; }   /* 攻擊型：猛，用紅土 */
[data-fx="type-all-round"]  { --fx: #2f4f9e; }   /* 全面型：中性藍 */
[data-fx="lv-beginner"]     { --fx: #0a72a8; }
[data-fx="lv-intermediate"] { --fx: #6a3fa0; }
[data-fx="lv-advanced"]     { --fx: #a8306b; }
[data-fx="cat-top"],
[data-fx="cat-bottom"],
[data-fx="cat-dress"]       { --fx: #1b4e9b; }
[data-fx="cat-shoes"]       { --fx: #b0472b; }
[data-fx="cat-bag"]         { --fx: #0a6b5c; }
[data-fx="cat-hat"],
[data-fx="cat-accessory"]   { --fx: #6a3fa0; }
[data-fx^="news-"]          { --fx: #4a4a4a; }
[data-fx="news-賽事"]        { --fx: #a8306b; }
[data-fx="news-產業"]        { --fx: #2f4f9e; }
[data-fx="news-器材"]        { --fx: #0a6b5c; }
[data-fx="news-球場"]        { --fx: #1b4e9b; }
[data-fx="news-規則"]        { --fx: #6a3fa0; }
[data-fx="news-人物"]        { --fx: #b0472b; }

/* 資料表欄名的圖示：掃一眼就知道哪一列是電話、哪一列是費用。
   圖示用行內對齊，不能對 th 下 display:flex，那會把儲存格移出表格佈局，
   規格對照表會整個垮掉。 */
.facts th .ic {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
  color: var(--accent);
}
.facts th span { display: inline; }

/* 新聞分類標籤 */
.newstag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 6px 1px;
  font-size: 10px;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--fx) 13%, #fff);
  color: color-mix(in srgb, var(--fx) 78%, #111);
}
.newstag .ic { width: 12px; height: 12px; flex-basis: 12px; color: var(--fx); }

/* 活動報名狀態：報名中要一眼看見，其餘沉下去 */
.regtag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border: 1px solid var(--soft);
  color: var(--muted);
}
.regtag .ic { width: 13px; height: 13px; flex-basis: 13px; }
.regtag[data-reg="open"] {
  background: var(--ball);
  border-color: var(--ball);
  color: var(--text);
}
.regtag[data-reg="soon"] {
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  border-color: color-mix(in srgb, var(--accent) 34%, #fff);
  color: color-mix(in srgb, var(--accent) 86%, #111);
}

/* ---------- 動畫 ----------
   .motion 這個 class 只有在 JS 執行、而且使用者沒有要求減少動態時才會加上，
   所以沒有 JS 的情況下不會有任何東西卡在透明狀態。

   這裡只留「回應操作」的動效：篩選後清單閃一下、地圖第一次畫出來時標記彈一下、
   球場頁的位置標記脈動。原本的捲動浮現（.rise）已移除：手機快速捲動時
   內容先空白再逐一淡入，讀起來就是整頁在閃。 */

/* 篩選結果換了就閃一下 */
@keyframes list-flash { from { opacity: 0.3; } to { opacity: 1; } }
.motion .flash { animation: list-flash 0.26s ease-out; }

/* 卡片與列的微互動 */
.card,
.row,
.event-row,
.tile,
.rrow {
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.2s ease;
}
.card:hover,
.row:hover,
.event-row:hover { transform: translateY(-2px); }
.card.textcard:hover { border-top-color: var(--accent); }

/* 標籤與晶片 */
.spec, .fchip, .chip, .chiplet, .newstag, .regtag {
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

/* 地圖標記第一次出現時輕輕彈一下。
   只限第一次：分布圖每次平移縮放都會重建標記，若每次都彈，手機上拖地圖就是滿版閃爍。
   map.js 在第一次畫完後給容器加上 .map-ready，之後的標記直接出現。 */
@keyframes marker-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
.motion #court-map:not(.map-ready) .court-cluster,
.motion #court-map:not(.map-ready) .court-dot i { animation: marker-pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards; }

/* 球場頁的位置標記：一圈脈動慢慢往外散，讓人一眼找到「就是這裡」 */
@keyframes pin-ping {
  0% { transform: scale(0.6); opacity: 0.55; }
  100% { transform: scale(2.6); opacity: 0; }
}
.court-here-pin { position: relative; }
.motion .court-here-pin::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  animation: pin-ping 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
  pointer-events: none;
}

/* 按鈕 */
.btn { transition: opacity 0.18s ease, background-color 0.18s ease, color 0.18s ease; }

/* 使用者要求減少動態時，上面全部不作數 */
@media (prefers-reduced-motion: reduce) {
  .motion .flash,
  .motion .court-cluster,
  .motion .court-dot i,
  .motion .court-here-pin::before { animation: none; }
  .card:hover, .row:hover, .event-row:hover { transform: none; }
}

/* ---------- 意見回報表單 ---------- */

.report { max-width: 640px; }

.field { margin-bottom: 26px; }
.flabel {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 8px;
}
.fhint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
}
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea.input { resize: vertical; line-height: 1.7; }

/* 回報類型：整塊都可以點，不是只有小圓鈕 */
.kinds { display: grid; gap: 8px; }
.kind {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2px 10px;
  padding: 11px 13px;
  border: 1px solid var(--soft);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.kind:hover { border-color: var(--accent); }
.kind input { margin: 0; accent-color: var(--accent); }
.kname { font-size: 14px; font-weight: 600; }
.khint { grid-column: 2; font-size: 12px; color: var(--muted); line-height: 1.6; }
.kind:has(input:checked) { border-color: var(--accent); background: var(--tint); }

/* 蜜罐欄位：給機器人填的，人看不到 */
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.report .btn { margin-top: 4px; }
.fnote {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 46em;
}

@media (max-width: 767px) {
  .kind { padding: 10px 11px; }
  .input { font-size: 16px; }   /* 小於 16px 時 iOS 會自動放大頁面 */
}

/* ---------- 學打球：課程目錄 ----------
   五個單元一條接一條直排，白底與淺灰底交替。每個單元左邊一張直式示意照片，
   右邊是大號單元編號、單元名，與帶圖示的課目列。偶數單元照片換到右側。
   課程本身就是有順序的，所以編號是資訊，不是裝飾。 */

.learn-head .actions { margin-top: 22px; }
.units-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.units-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  color: var(--text);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.units-nav a .ic { color: var(--accent); }
.units-nav a .display { font-size: 13px; color: var(--muted); }
.units-nav a:hover { border-color: var(--accent); background: var(--tint); color: var(--text); }

/* 選擇器帶上 section：卡片價格的計價單位也叫 .unit，不加標籤名這段 padding 會灌進
   每一張卡片的「每小時」小字，整張卡被撐高一倍。 */
section.unit { padding: 56px 0 64px; scroll-margin-top: 16px; }
section.unit.alt { background: var(--band); }
.unit-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}
section.unit:nth-child(even) .unit-photo { order: 2; }
.unit-photo { position: sticky; top: 24px; }
.thumb.r45 { aspect-ratio: 4 / 5; }

.unit-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--rule);
}
.unit-head .no {
  font-size: 64px;
  line-height: 0.9;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.unit-head h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  margin: 2px 0 0;
}
.unit-head p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 34em; }

.lessons { list-style: none; margin: 0; padding: 0; }
.lessons li + li .lesson { border-top: 1px solid var(--soft); }
.lesson {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px 0;
  color: var(--text);
}
.lesson .ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.lesson .ico .ic { width: 20px; height: 20px; flex-basis: 20px; }
.lesson .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lesson .no { font-size: 12px; letter-spacing: 0.12em; color: var(--muted); line-height: 1.5; }
.lesson .ttl { font-size: 19px; font-weight: 600; line-height: 1.45; }
.lesson .sum { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 40em; }
a.lesson:hover { color: var(--text); }
a.lesson:hover .ico { background: var(--accent); color: #fff; }
a.lesson:hover .ttl { color: var(--accent); }

/* 文章頁側欄：同單元課目的精簡版 */
.lessons.compact .lesson { grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; }
.lessons.compact .ico { width: 34px; height: 34px; }
.lessons.compact .ico .ic { width: 16px; height: 16px; flex-basis: 16px; }
.lessons.compact .ttl { font-size: 16px; }
.lessons.compact .lesson[aria-current="page"] .ico { background: var(--accent); color: #fff; }
.lessons.compact .lesson[aria-current="page"] .ttl { color: var(--accent); }

@media (max-width: 1023px) {
  .unit-grid { grid-template-columns: 4fr 7fr; gap: 32px; }
  .unit-head .no { font-size: 52px; }
  .unit-head h2 { font-size: 26px; }
}

@media (max-width: 767px) {
  section.unit { padding: 36px 0 44px; }
  .unit-grid { grid-template-columns: 1fr; gap: 22px; }
  section.unit:nth-child(even) .unit-photo { order: 0; }
  .unit-photo { position: static; }
  .thumb.r45 { aspect-ratio: 16 / 9; }
  .unit-head { gap: 14px; padding-bottom: 14px; }
  .unit-head .no { font-size: 44px; }
  .unit-head h2 { font-size: 24px; }
  .lesson { grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; }
  .lesson .ico { width: 36px; height: 36px; }
  .lesson .ico .ic { width: 17px; height: 17px; flex-basis: 17px; }
  .lesson .ttl { font-size: 17px; }
  .units-nav a { min-height: 36px; font-size: 12px; padding: 0 13px 0 10px; }
}

/* ---------- 分享 ----------
   只放連結，不載入社群平台的 SDK：沒有第三方腳本、沒有追蹤像素。
   按鈕沿用 .chip 的直角與字距，只是邊框放淡，讓它退到內容後面。
   內頁標題區一列（compact），每一頁頁尾前再一個完整區塊。 */

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share > .lbl { margin-right: 4px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--soft);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.share-btn:hover,
.share-btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.share-btn .ic { width: 14px; height: 14px; flex-basis: 14px; }
.share-msg { flex-basis: 100%; font-size: 12px; color: var(--accent); }
.share-msg:empty { display: none; }

.page-head .share { margin-top: 22px; }

.share-section { padding-top: 44px; padding-bottom: 4px; }
.share-block {
  border-top: 2px solid var(--rule);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  flex-wrap: wrap;
}
.share-block .titles { min-width: 0; flex: 1 1 280px; }
.share-block .ttl {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 767px) {
  .share-section { padding-top: 32px; }
  .share-btn { min-height: 40px; padding: 0 12px; }
}

/* ---------- 球友投稿：照片與評價 ----------
   照片一律標投稿者暱稱，評價一律附星等。表單收在 details 裡，
   打開才佔版面；沒有 JS 時表單照樣能送（一般 POST，API 回一頁結果）。 */

.community .ugc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
  margin-bottom: 20px;
}
.community .ugc { margin: 0; }
.community .ugc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--band); }
.community .ugc figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.community .empty { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

.rating-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}
.rating-summary .score { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.stars { color: var(--accent); letter-spacing: 0.08em; font-size: 13px; white-space: nowrap; }
.review .who { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.review .who b { color: var(--text); font-weight: 600; }
.review .text { font-size: 15px; line-height: 1.8; margin-top: 6px; white-space: pre-line; }

.ugc-form { margin: 8px 0 44px; }
.ugc-form > summary {
  list-style: none;
  display: inline-flex;
  width: auto;
}
.ugc-form > summary::-webkit-details-marker { display: none; }
.ugc-form[open] > summary { margin-bottom: 24px; }
.ugc-form .report { max-width: 640px; }
.ugc-form .field.compact { margin-bottom: 18px; }
.ugc-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.ugc-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.ugc-form .consent input { margin-top: 5px; }
.ugc-form input[type=file] { font: inherit; font-size: 14px; }
.ugc-msg { margin-top: 14px; font-size: 14px; color: var(--accent); }
.ugc-msg:empty { display: none; }
.ugc-msg.err { color: #a0281e; }

/* 星等單選：五顆按鈕，選到哪顆就亮到哪顆 */
.starpick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starpick label { font-size: 26px; line-height: 1; color: var(--soft); cursor: pointer; padding: 0 2px; }
.starpick input:checked ~ label,
.starpick label:hover,
.starpick label:hover ~ label { color: var(--accent); }
.starpick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1023px) { .community .ugc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .community .ugc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ugc-form .two { grid-template-columns: 1fr; }
}

/* ---------- 球場頁：動作列 ----------
   導航、撥打、訂位、官網、社群。原本是資料表裡各一行文字連結，
   現在是一排帶圖示的按鈕，手機上單手就按得到。 */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.action .ic { width: 17px; height: 17px; flex-basis: 17px; color: var(--accent); }
.action:hover,
.action:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.action:hover .ic,
.action:focus-visible .ic { color: #fff; }
/* 第一個是導航，也是最常按的，直接填色 */
.action:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.action:first-child .ic { color: #fff; }
.action:first-child:hover { opacity: 0.88; }

@media (max-width: 767px) {
  .actions { gap: 6px; margin-top: 16px; }
  .action { min-height: 42px; padding: 0 14px 0 12px; font-size: 12px; }
}

/* ---------- 球場頁：一眼看板 ----------
   費用用大字，開放時段畫成一週七格。這兩件事決定「今天去不去」，放在資料表之前。 */

.glance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px 40px;
  padding: 4px 0 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--soft);
}
.glance .g-price { min-width: 0; overflow-wrap: anywhere; }
.glance .lbl { margin-bottom: 10px; }
.glance .g-price .price { margin-top: 0; }
.glance .g-price .price b { font-size: 40px; line-height: 1; }
.glance .g-price .price .cur { font-size: 14px; }
.glance .g-price .price .unit { font-size: 12px; }
.glance .g-price .price .free { font-size: 18px; padding: 8px 14px 7px; }
.glance .g-price .source-line { margin-top: 8px; }
.glance .hours { min-width: 0; }

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.week .day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 2px 8px;
  border: 1px solid var(--soft);
  border-radius: 4px;
  color: var(--muted);
  min-height: 64px;
  text-align: center;
}
.week .day .d {
  font-family: "Noto Serif TC", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.week .day .t {
  font-size: 10.5px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.week .day.on {
  background: var(--tint);
  border-color: color-mix(in srgb, var(--accent) 34%, #fff);
  color: var(--text);
}
.week .day.on .d { color: var(--accent); }
.week .day .t.none::before { content: "－"; color: var(--soft); }
/* 今天：由 site.js 標記，加一條該區顏色的底線 */
.week .day.today { box-shadow: inset 0 -3px 0 var(--accent); }
.week .day.today .d::after { content: "今天"; display: block; font-family: inherit; font-size: 9px; font-weight: 500; letter-spacing: 0.1em; margin-top: 3px; color: var(--accent); }
.hours .source-line { margin-top: 8px; }

@media (max-width: 1100px) {
  .glance { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .glance { grid-template-columns: 1fr; gap: 18px; padding-bottom: 18px; }
  .glance .g-price .price b { font-size: 34px; }
  .week { gap: 3px; }
  .week .day { min-height: 58px; padding: 7px 1px; gap: 5px; }
  .week .day .d { font-size: 14px; }
  .week .day .t { font-size: 9.5px; }
}

/* ---------- 球場頁：附近停車場 ----------
   每座停車場一條距離長條，最近的最短，不必逐一讀公尺數再比。 */

.parking { margin-top: 22px; }
.parking .lbl { margin-bottom: 8px; }
.parklist { list-style: none; margin: 0; padding: 0; }
.park {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name dist" "meta dist" "bar dist";
  gap: 2px 14px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--soft);
}
.park:first-child { border-top: 0; padding-top: 4px; }
.park .pname {
  grid-area: name;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
}
.park .pname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.park .pname .ic { color: #3a4ac9; }
.park .pname:hover { color: var(--accent); }
.park .pmeta { grid-area: meta; font-size: 12px; color: var(--muted); }
.park .pmeta:empty { display: none; }
.park .pbar { grid-area: bar; display: block; height: 4px; background: var(--band); margin-top: 4px; }
.park .pbar i { display: block; height: 100%; background: var(--accent); }
.park .pdist {
  grid-area: dist;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.park .pdist small { font-family: "Noto Sans TC", system-ui, sans-serif; font-size: 11px; color: var(--muted); margin-left: 3px; }

/* ---------- 找球場：清單手機版改單欄精簡列 ----------
   兩百多張兩欄文字卡在手機上疊出兩萬多像素。單欄一列一座：名稱靠左、價格靠右、
   設施圖示在下，一頁高度省一半，拇指掃過去也不會按錯。 */

@media (max-width: 767px) {
  .grid.courtlist { display: flex; flex-direction: column; gap: 0; }
  .grid.courtlist .card.textcard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "place place" "name price" "specs price";
    gap: 3px 12px;
    align-items: center;
    border-top: 1px solid var(--soft);
    padding: 12px 0;
  }
  .grid.courtlist .card.textcard:first-child { border-top: 2px solid var(--rule); }
  .grid.courtlist .card .place { grid-area: place; }
  .grid.courtlist .card h3 { grid-area: name; font-size: 17px; line-height: 1.35; margin: 0; }
  .grid.courtlist .card .specs { grid-area: specs; margin-top: 2px; }
  /* 價格靠右：金額與「元」同一行，計價單位小字在下一行。
     不能用直向 flex，.price 本身是 flex-wrap，直向加換行會把三個字塊撐成一整欄，
     整列高度跟著被拉到快兩倍。 */
  .grid.courtlist .card .price {
    grid-area: price;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    align-items: baseline;
    column-gap: 3px;
    row-gap: 0;
    margin: 0;
    text-align: right;
  }
  .grid.courtlist .card .price b { font-size: 18px; }
  .grid.courtlist .card .price .unit { grid-column: 1 / -1; padding-left: 0; }
  .grid.courtlist .card .price .free,
  .grid.courtlist .card .price .ask { grid-column: 1 / -1; }
  .grid.courtlist > [data-item] { contain-intrinsic-size: auto 92px; }
  .grid.courtlist .card:hover { transform: none; }
}

/* ---------- 球拍頁：規格刻度 ---------- */

.gauges {
  display: grid;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--soft);
}
.gauge { display: grid; gap: 8px; }
.gauge .gl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
}
.gauge .gl .ic { color: var(--accent); }
.gauge .gbar {
  position: relative;
  display: block;
  height: 6px;
  margin: 26px 0 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--tint), color-mix(in srgb, var(--accent) 45%, var(--tint)));
}
.gauge .gbar i { position: absolute; top: 50%; }
.gauge .gbar .mark {
  width: 14px;
  height: 14px;
  margin-left: -7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #fff;
}
.gauge .gbar .band {
  height: 12px;
  transform: translateY(-50%);
  border-radius: 6px;
  background: var(--accent);
  min-width: 12px;
}
.gauge .gbar b {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 7px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}
.gauge .gbar b small { font-family: "Noto Sans TC", system-ui, sans-serif; font-size: 11px; color: var(--muted); margin: 0 2px; }
.gauge .gends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.gauge .gseg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.gauge .gseg span {
  text-align: center;
  padding: 9px 4px 8px;
  border: 1px solid var(--soft);
  border-radius: 4px;
  font-size: 13px;
  color: var(--muted);
}
.gauge .gseg span.on {
  background: var(--fx);
  border-color: var(--fx);
  color: #fff;
  font-weight: 600;
}
.gauge.seg .gends { justify-content: flex-start; }

/* 保留來源、FAQ 與關鍵字查詢所需的閱讀樣式。 */
.keyword-row { grid-template-columns: 84px minmax(0, 1fr); }
.keyword-row input { width: 100%; min-width: 0; min-height: 46px; padding: 9px 14px; border: 1px solid var(--soft); border-radius: 0; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.keyword-row input::placeholder { color: var(--muted); opacity: 1; }
.portal-faq { padding-top: 0; padding-bottom: 64px; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.faq-list details { border-bottom: 1px solid var(--soft); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; line-height: 1.7; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--soft); border-radius: 50%; font: 20px Arial, sans-serif; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0; padding: 0 30px 20px 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.faq-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.event-detail { padding: 8px 0 28px; border-bottom: 1px solid var(--soft); scroll-margin-top: 24px; }
.event-detail .event-row { border: 0; }
.event-description { margin-left: 128px; max-width: 65em; }
.event-description > p { margin: 8px 0 16px; line-height: 1.9; }
.event-facts { color: var(--muted); font-size: 13px; }
.event-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
@media (max-width: 767px) { .faq-list { grid-template-columns: 1fr; } .event-description { margin-left: 0; } }

/* 完整日期沿用舊欄位，避免 YYYY-MM-DD 拆成三行。 */
.event-row .d { font-size: 16px; white-space: nowrap; letter-spacing: 0; }
@media (max-width: 767px) { .event-row .d { font-size: 13px; } .event-row .regtag { grid-column: 2; justify-self: start; } }
