@charset "UTF-8";
/* ==========================================================================
   潛點情報與訓練器共用：彩色圖示的色票、狀況卡、數值磚、圖表
   只在 dive.php / spot.php / trainer.php / 首頁小工具載入。
   ========================================================================== */

/* --- 彩色圖示色票（深色只覆寫這幾個） ----------------------------------- */
:root {
  --ci-sun:     #ffb020;
  --ci-sunset:  #ff7a45;
  --ci-sky:     #5fb3ee;
  --ci-sea:     #0b5fa0;
  --ci-sea-soft:#bfe0f7;
  --ci-aqua:    #5ee0c6;
  --ci-aqua-soft:#cff5ec;
  --ci-red:     #e5303f;
  --ci-good:    #16a34a;
  --ci-good-soft:#d8f3e2;
  --ci-fair:    #f59e0b;
  --ci-bad:     #dc2626;
  --ci-grey:    #8a9aa6;
  --ci-grey-soft:#dde5ec;
  --ci-cloud:   #cbd8e2;
  --ci-cloud-dark:#8fa3b3;
  --ci-ink:     #14212b;
  --ci-white:   #ffffff;
  --ci-sand:    #e8c98a;
  --ci-coral:   #ff8a80;
  --ci-thermo:  #dbe6ee;
  --ci-wind:    #4a90c2;
  --ci-moon:    #c9d3e6;
  --lv-good:    #16a34a;  --lv-good-bg: #e6f6ec;  --lv-good-ink: #0f6b34;
  --lv-fair:    #f59e0b;  --lv-fair-bg: #fff4de;  --lv-fair-ink: #8a5300;
  --lv-bad:     #dc2626;  --lv-bad-bg:  #fde8e8;  --lv-bad-ink:  #9f1616;
  --lv-unknown: #8a9aa6;  --lv-unknown-bg: #eef2f5; --lv-unknown-ink: #4d5c66;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ci-sea-soft:#1c3d5a; --ci-aqua-soft:#164a42; --ci-good-soft:#173b26; --ci-grey-soft:#2c3a45;
    --ci-cloud:#8fa3b3; --ci-cloud-dark:#5f7384; --ci-ink:#e6eef4; --ci-thermo:#33475a; --ci-moon:#dfe6f3;
    --lv-good-bg:#12301c; --lv-good-ink:#8de0a8; --lv-fair-bg:#3a2a08; --lv-fair-ink:#ffc76a;
    --lv-bad-bg:#3b1414; --lv-bad-ink:#ff9a9a; --lv-unknown-bg:#1b2731; --lv-unknown-ink:#b3c1cb;
  }
}
:root[data-theme="dark"] {
  --ci-sea-soft:#1c3d5a; --ci-aqua-soft:#164a42; --ci-good-soft:#173b26; --ci-grey-soft:#2c3a45;
  --ci-cloud:#8fa3b3; --ci-cloud-dark:#5f7384; --ci-ink:#e6eef4; --ci-thermo:#33475a; --ci-moon:#dfe6f3;
  --lv-good-bg:#12301c; --lv-good-ink:#8de0a8; --lv-fair-bg:#3a2a08; --lv-fair-ink:#ffc76a;
  --lv-bad-bg:#3b1414; --lv-bad-ink:#ff9a9a; --lv-unknown-bg:#1b2731; --lv-unknown-ink:#b3c1cb;
}

/* 圖示本體：尺寸跟著文字，顏色靠 class */
.ci { width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: -0.28em; }
.ci--sm { width: 1em; height: 1em; }
.ci--lg { width: 2em; height: 2em; }
.ci--xl { width: 3.2em; height: 3.2em; }
.ci-sun { fill: var(--ci-sun); }
.ci-sun-ray { stroke: var(--ci-sun); stroke-width: 1.8; stroke-linecap: round; fill: none; }
.ci-sunset { fill: var(--ci-sunset); }
.ci-cloud { fill: var(--ci-cloud); }
.ci-cloud-dark { fill: var(--ci-cloud-dark); }
.ci-rain { stroke: var(--ci-sky); stroke-width: 2; stroke-linecap: round; fill: none; }
.ci-bolt { fill: var(--ci-sun); }
.ci-fog { stroke: var(--ci-grey); stroke-width: 2; stroke-linecap: round; fill: none; }
.ci-moon { fill: var(--ci-moon); }
.ci-sea { fill: var(--ci-sea); }
.ci-sea-soft { fill: var(--ci-sea-soft); }
.ci-sea-line { stroke: var(--ci-sea); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ci-sea-line-thick { stroke: var(--ci-sea); stroke-width: 3; stroke-linecap: round; fill: none; }
.ci-foam { stroke: var(--ci-white); stroke-width: 2; stroke-linecap: round; fill: none; }
.ci-ink { fill: var(--ci-ink); }
.ci-ink-line { stroke: var(--ci-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ci-thermo-tube { fill: var(--ci-thermo); }
.ci-red { fill: var(--ci-red); }
.ci-wind { stroke: var(--ci-wind); stroke-width: 2; stroke-linecap: round; fill: none; }
.ci-ring { fill: none; stroke: var(--ci-grey); stroke-width: 2; }
.ci-white { fill: var(--ci-white); }
.ci-white-line { stroke: var(--ci-white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ci-good { fill: var(--ci-good); }
.ci-good-soft { fill: var(--ci-good-soft); }
.ci-good-line { stroke: var(--ci-good); stroke-width: 2; stroke-linecap: round; fill: none; }
.ci-fair { fill: var(--ci-fair); }
.ci-bad { fill: var(--ci-bad); }
.ci-grey { fill: var(--ci-grey); }
.ci-grey-soft { fill: var(--ci-grey-soft); }
.ci-sand { fill: var(--ci-sand); }
.ci-coral { stroke: var(--ci-coral); stroke-width: 2; stroke-linecap: round; fill: none; }
.ci-aqua { fill: var(--ci-aqua); }
.ci-aqua-soft { fill: var(--ci-aqua-soft); }
.ci-aqua-arc { fill: none; stroke: var(--ci-aqua); stroke-width: 2.5; stroke-dasharray: 34 100; stroke-linecap: round; }
.ci-arrow { width: 1em; height: 1em; }
.ci-arrow-head { fill: currentColor; }
.ci-arrow--wind { color: var(--ci-wind); }
.ci-arrow--sea { color: var(--ci-sea); }
:root[data-theme="dark"] .ci-arrow--sea { color: var(--ci-sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ci-arrow--sea { color: var(--ci-sky); } }

/* 區塊標題帶圖示 */
.sec-h { display: flex; align-items: center; gap: var(--space-2); }

/* --- 等級標籤與狀態色 ---------------------------------------------------- */
.lvtag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 6px; border-radius: 999px;
  font-size: var(--text-sm); font-weight: 600; line-height: 1.5;
  background: var(--lv-unknown-bg); color: var(--lv-unknown-ink);
}
.lvtag--good { background: var(--lv-good-bg); color: var(--lv-good-ink); }
.lvtag--fair { background: var(--lv-fair-bg); color: var(--lv-fair-ink); }
.lvtag--bad  { background: var(--lv-bad-bg);  color: var(--lv-bad-ink); }

/* --- 頁首與統計 ----------------------------------------------------------- */
.page-head--dive { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 860px) { .page-head--dive { grid-template-columns: minmax(0, 1fr) auto; } }
.tally { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.tally__item {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); min-width: 104px;
}
.tally__item strong { font-size: var(--text-xl); line-height: 1; font-variant-numeric: tabular-nums; }
.tally__item span { font-size: var(--text-xs); color: var(--text-muted); }
.tally__item--good { border-left: 3px solid var(--lv-good); }
.tally__item--fair { border-left: 3px solid var(--lv-fair); }
.tally__item--bad { border-left: 3px solid var(--lv-bad); }
.tally__item--unknown { border-left: 3px solid var(--lv-unknown); }

/* --- 篩選列 -------------------------------------------------------------- */
.dfilter { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: var(--space-4) 0 var(--space-2); }
.dfilter__group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dfilter .chip { cursor: pointer; font: inherit; font-size: var(--text-sm); font-weight: 500; }
.dfilter .chip.is-on { background: var(--select); color: var(--on-select); border-color: var(--select); font-weight: 700; }
.dfilter .chip--good.is-on { background: var(--lv-good); border-color: var(--lv-good); color: #fff; }
.dempty { color: var(--text-muted); padding: var(--space-8) 0; text-align: center; }

/* --- 區域與卡片格 ------------------------------------------------------- */
.darea { margin-top: var(--space-8); }
.darea__h { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-lg); margin-bottom: var(--space-4); }
.darea__n { font-size: var(--text-xs); font-weight: 500; color: var(--text-muted); margin-left: var(--space-1); }
.dgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px)  { .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.dcard { position: relative; }
.dcard__link {
  display: flex; flex-direction: column; gap: var(--space-2);
  height: 100%; padding: var(--space-4) var(--space-5) var(--space-4);
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--lv-unknown);
  border-radius: var(--radius-lg); text-decoration: none; color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dcard__link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); color: var(--text); }
.dcard--good .dcard__link { border-top-color: var(--lv-good); }
.dcard--fair .dcard__link { border-top-color: var(--lv-fair); }
.dcard--bad  .dcard__link { border-top-color: var(--lv-bad); }
.dcard__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.dcard__status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--text-sm); }
.dcard--good .dcard__status { color: var(--lv-good-ink); }
.dcard--fair .dcard__status { color: var(--lv-fair-ink); }
.dcard--bad  .dcard__status { color: var(--lv-bad-ink); }
.dcard--unknown .dcard__status { color: var(--lv-unknown-ink); }
.dcard__lvl { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); color: var(--text-muted); }
.dcard__name { margin: 0; font-size: var(--text-lg); }
.dcard__sub { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.dcard__stats { list-style: none; margin: var(--space-2) 0 0; padding: var(--space-3) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dcard__stats li { display: flex; align-items: center; gap: 4px; font-size: var(--text-sm); min-width: 0; }
.dcard__v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dcard__v small { font-size: 10px; font-weight: 500; color: var(--text-muted); margin-left: 1px; }
.dcard__reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dcard__reason { font-size: var(--text-xs); padding: 2px 8px; border-radius: 999px; background: var(--lv-unknown-bg); color: var(--lv-unknown-ink); }
.dcard__reason--good { background: var(--lv-good-bg); color: var(--lv-good-ink); }
.dcard__reason--fair { background: var(--lv-fair-bg); color: var(--lv-fair-ink); }
.dcard__reason--bad  { background: var(--lv-bad-bg);  color: var(--lv-bad-ink); }
.dcard__tide { margin: auto 0 0; display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--text-muted); padding-top: var(--space-2); }

/* --- 規則表 -------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table-scroll > table { min-width: 36rem; }
.rules { width: 100%; border-collapse: collapse; font-size: var(--text-sm); background: var(--surface); }
.rules th, .rules td { padding: var(--space-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.rules thead th { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; }
.rules tbody th { white-space: nowrap; font-weight: 600; }
.rules__practice { color: var(--text-muted); }

/* --- 警示框 --------------------------------------------------------------- */
.alertbox { border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: var(--radius); padding: var(--space-4) var(--space-5); margin: var(--space-4) 0; background: var(--surface); }
.alertbox__title { margin: 0 0 var(--space-1); font-weight: 700; display: flex; align-items: center; gap: var(--space-2); }
.alertbox__body, .alertbox__time, .alertbox__areas { margin: 0 0 var(--space-1); font-size: var(--text-sm); color: var(--text-muted); }
.alertbox__text { white-space: pre-wrap; font-size: var(--text-sm); margin-top: var(--space-2); }
.alertbox__more summary { cursor: pointer; font-size: var(--text-sm); color: var(--brand); }
.alertbox--warn { border-left-color: var(--lv-bad); background: var(--lv-bad-bg); }
.alertbox--warn .alertbox__title { color: var(--lv-bad-ink); }
.alertbox--unknown { border-left-color: var(--lv-unknown); background: var(--lv-unknown-bg); }
.alertbox--clear { border-left-color: var(--lv-good); }

/* --- 出處 ---------------------------------------------------------------- */
.srcnote { margin-top: var(--space-4); border-top: 1px solid var(--border); padding-top: var(--space-3); font-size: var(--text-sm); }
.srcnote summary { cursor: pointer; color: var(--text-muted); min-height: 32px; display: flex; align-items: center; }
.srcnote summary:hover { color: var(--text); }
.srcnote dl { margin: var(--space-3) 0 0; }
.srcnote dl > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: var(--space-3); padding: var(--space-1) 0; }
.srcnote dt { color: var(--text-muted); margin: 0; }
.srcnote dd { margin: 0; min-width: 0; word-break: break-word; }

/* --- 潛點頁：頁首 ------------------------------------------------------- */
.spot-hero { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); padding: var(--space-4) 0 var(--space-6); }
@media (min-width: 860px) { .spot-hero { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); align-items: start; } }
.spot-hero h1 { margin-bottom: var(--space-2); }
.spot-hero__official { color: var(--text-muted); font-size: var(--text-sm); }
.spot-hero__tags { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.spot-hero__tags li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-alt); font-size: var(--text-sm); }
.spot-hero__status { border-radius: var(--radius-lg); padding: var(--space-5); background: var(--lv-unknown-bg); text-align: center; }
.spot-hero--good .spot-hero__status { background: var(--lv-good-bg); }
.spot-hero--fair .spot-hero__status { background: var(--lv-fair-bg); }
.spot-hero--bad  .spot-hero__status { background: var(--lv-bad-bg); }
.spot-hero__label { margin: var(--space-2) 0 0; font-size: var(--text-2xl); font-weight: 700; line-height: 1.2; }
.spot-hero--good .spot-hero__label { color: var(--lv-good-ink); }
.spot-hero--fair .spot-hero__label { color: var(--lv-fair-ink); }
.spot-hero--bad  .spot-hero__label { color: var(--lv-bad-ink); }
.spot-hero--unknown .spot-hero__label { color: var(--lv-unknown-ink); }
.spot-hero__desc { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.spot-hero__reasons { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

/* --- 數值磚 --------------------------------------------------------------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px)  { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: var(--space-4) var(--space-4) var(--space-3) var(--space-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  min-height: 118px;
}
.tile > .ci { width: 2em; height: 2em; position: absolute; right: var(--space-3); top: var(--space-3); }
.tile__k { font-size: var(--text-xs); color: var(--text-muted); }
.tile__v { font-size: var(--text-xl); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; margin-top: var(--space-2); }
.tile__v small { font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); margin-left: 2px; }
.tile__s { font-size: var(--text-xs); color: var(--text-muted); margin-top: auto; padding-top: var(--space-1); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }

/* --- 羅盤與潮汐並排 ------------------------------------------------------ */
.spot-grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .spot-grid { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } }
.compass { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto var(--space-3); }
.compass__ring { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.2; }
.compass__ring2 { fill: none; stroke: var(--border); stroke-width: 1; }
.compass__sector { fill: var(--surface-alt); stroke: var(--surface); stroke-width: 1; }
.compass__sector.is-exposed { fill: var(--lv-fair); fill-opacity: .55; }
.compass__lab { fill: var(--text-muted); font-size: 11px; font-weight: 600; }
.compass__lab.is-exposed { fill: var(--lv-fair-ink); }
.compass__face { fill: var(--brand); }
.compass__center { fill: var(--text); font-size: 12px; font-weight: 700; }
.compass__arrow path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.compass__arrow--wind path { stroke: var(--ci-wind); }
.compass__arrow--wave path { stroke: var(--ci-sea); stroke-dasharray: 4 3; }
:root[data-theme="dark"] .compass__arrow--wave path { stroke: var(--ci-sky); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--text-xs); color: var(--text-muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend__sw { width: 14px; height: 10px; border-radius: 3px; background: var(--surface-alt); border: 1px solid var(--border); }
.legend__sw--exposed { background: var(--lv-fair); opacity: .6; }
.legend__sw--wind { background: var(--ci-wind); }
.legend__sw--wave { background: var(--ci-sea); }
.legend__sw--good { background: var(--lv-good); }
.legend__sw--fair { background: var(--lv-fair); }
.legend__sw--bad { background: var(--lv-bad); }
.legend__sw--onshore { background: transparent; border: 2px solid var(--text); }

/* --- 潮汐圖與表 ---------------------------------------------------------- */
.tidechart { display: block; width: 100%; height: auto; margin-bottom: var(--space-2); }
.tidechart__day { stroke: var(--border); stroke-width: 1; }
.tidechart__date, .tidechart__y { fill: var(--text-muted); font-size: 11px; }
.tidechart__area { fill: var(--ci-sea); fill-opacity: .12; }
.tidechart__line { fill: none; stroke: var(--ci-sea); stroke-width: 2.2; stroke-linejoin: round; }
:root[data-theme="dark"] .tidechart__line { stroke: var(--ci-sky); }
.tidechart__pt.is-high { fill: var(--ci-sea); }
.tidechart__pt.is-low { fill: var(--surface); stroke: var(--ci-sea); stroke-width: 2; }
.tidechart__lab { fill: var(--text); font-size: 11px; font-weight: 600; }
.tidechart__now { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tidechart__nowlab { fill: var(--accent-ink); font-size: 11px; font-weight: 700; }
.tidetable { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.tidetable th, .tidetable td { padding: var(--space-3) var(--space-2); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.tidetable tbody th { white-space: nowrap; font-weight: 600; }
.tidetable__lunar { display: block; font-size: 10px; color: var(--text-muted); font-weight: 400; }
.tide-range { font-size: var(--text-xs); padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border-strong); white-space: nowrap; }
.tide-range--big { border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.tide-times { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.tide-times li { display: inline-flex; align-items: baseline; gap: 4px; }
.tide-times__k { font-size: 10px; padding: 0 6px; border-radius: 999px; }
.tide-times__k--high { background: var(--ci-sea-soft); color: var(--ci-sea); }
:root[data-theme="dark"] .tide-times__k--high { color: var(--ci-sky); }
.tide-times__k--low { background: var(--surface-alt); color: var(--text-muted); }
.tide-times__t { font-weight: 700; font-variant-numeric: tabular-nums; }
.tide-times__h { font-size: 10px; color: var(--text-muted); }

/* --- 波高圖 --------------------------------------------------------------- */
.wavewrap { position: relative; }
.wavechart { display: block; width: 100%; height: auto; }
.wavechart__th { stroke-width: 1; stroke-dasharray: 4 4; }
.wavechart__th--fair { stroke: var(--lv-fair); }
.wavechart__th--bad { stroke: var(--lv-bad); }
.wavechart__thlab, .wavechart__time, .wavechart__date { fill: var(--text-muted); font-size: 11px; }
.wavechart__day { stroke: var(--border); }
.wavechart__bar { fill: var(--lv-good); }
.wavechart__bar--fair { fill: var(--lv-fair); }
.wavechart__bar--bad { fill: var(--lv-bad); }
.wavechart__bar.is-onshore { stroke: var(--text); stroke-width: 2; }
.wavechart__val { fill: var(--text); font-size: 11px; font-weight: 600; }
.wavechart__arrow path { fill: var(--ci-sea); }
:root[data-theme="dark"] .wavechart__arrow path { fill: var(--ci-sky); }
.wavetip { position: absolute; pointer-events: none; background: var(--deep-sea); color: #fff; font-size: var(--text-xs); padding: 4px 8px; border-radius: 6px; white-space: nowrap; z-index: 2; }

/* --- 逐 3 小時天氣列 ------------------------------------------------------ */
.wxstrip { list-style: none; margin: 0; padding: 0 0 var(--space-2); display: flex; gap: var(--space-2); min-width: max-content; }
.wx { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; padding: var(--space-3) var(--space-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: var(--text-xs); text-align: center; }
.wx.is-onshore { border-color: var(--lv-fair); box-shadow: inset 0 0 0 1px var(--lv-fair); }
.wx__t { color: var(--text-muted); line-height: 1.3; }
.wx__t strong { color: var(--text); font-size: var(--text-sm); }
.wx__temp { font-size: var(--text-lg); font-weight: 700; }
.wx__wind, .wx__pop { display: inline-flex; align-items: center; gap: 3px; color: var(--text-muted); }
.wx__desc { color: var(--text-muted); min-height: 2.4em; }

/* --- 關於潛點 ------------------------------------------------------------ */
.spot-about { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .spot-about { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.spot-about__intro { font-size: var(--text-lg); line-height: 1.8; }
.spot-about__side { padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.spot-about__side h3 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.spot-about__side p { font-size: var(--text-sm); }
.checklist { margin: 0; padding-left: 1.3em; font-size: var(--text-sm); }
.checklist li { margin-bottom: var(--space-1); }

/* --- 首頁小工具 ---------------------------------------------------------- */
.divewidget { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .divewidget { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 型態／程度切換（伺服器端連結，沒有 JS 也能用） */
.dfilter--static { align-items: center; }
.dfilter--static .chip { text-decoration: none; }
.dfilter--static .chip.is-on { background: var(--select); color: var(--on-select); border-color: var(--select); }
.dfilter__note { flex: 0 0 100%; margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.dcard__ref { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--lv-fair-bg); color: var(--lv-fair-ink); font-weight: 600; }
.spot-hero__tags li.is-ref { background: var(--lv-fair-bg); color: var(--lv-fair-ink); }
.spot-hero__switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: var(--space-3) 0 0; }
.spot-hero__switch .chip { min-height: 32px; padding: 2px 10px; font-size: var(--text-xs); text-decoration: none; }
.spot-hero__switch .chip.is-on { background: var(--select); color: var(--on-select); border-color: var(--select); }

/* --- 頁首插圖 ------------------------------------------------------------- */
.banner { margin: 0 0 var(--space-6); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-alt); box-shadow: var(--shadow-sm); }
.banner__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
@media (max-width: 599px) { .banner__img { aspect-ratio: 16 / 10; } }
.banner__cap { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); color: var(--text-muted); }

/* --- 日期選擇（今天／明天／週末…） ---------------------------------------- */
.daypick { margin: 0 0 var(--space-4); min-width: 0; }
.daypick__h { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--space-2); font-size: var(--text-sm); font-weight: 700; }
.daypick__list { list-style: none; margin: 0; padding: 2px 2px 6px; display: flex; gap: var(--space-2); overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.daypick__list li { flex: 0 0 auto; scroll-snap-align: start; }
.daypick__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 86px; min-height: 66px; padding: 8px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.daypick__item:hover { border-color: var(--brand); color: var(--text); transform: translateY(-1px); text-decoration: none; }
.daypick__label { font-size: var(--text-base); font-weight: 700; line-height: 1.2; }
.daypick__md { font-size: var(--text-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.daypick__tag { min-height: 1.3em; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.daypick__item.is-weekend .daypick__label { color: var(--brand); }
.daypick__item.is-on { background: var(--select); border-color: var(--select); color: var(--on-select); }
.daypick__item.is-on .daypick__label, .daypick__item.is-on .daypick__md, .daypick__item.is-on .daypick__tag { color: var(--on-select); }
.daypick__note { display: block; margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--bg-subtle); border-left: 3px solid var(--lv-fair); font-size: var(--text-sm); line-height: 1.7; }
.daypick__note--ok { border-left-color: var(--lv-good); }
.daypick__note .ci { vertical-align: -3px; }
.daypick--compact { margin: var(--space-3) 0 0; }
.daypick--compact .daypick__list { justify-content: flex-start; }
.daypick--compact .daypick__item { min-width: 62px; min-height: 48px; padding: 4px 8px; border-radius: var(--radius); }
.daypick--compact .daypick__label { font-size: var(--text-sm); }
@media (min-width: 700px) { .spot-hero__status .daypick--compact .daypick__list { justify-content: center; flex-wrap: wrap; overflow: visible; } }
