/* ============================================================
   SNOWER v4 — 「TRAIL MAP」Design System
   雪道圖語言：純白紙面 × ink 黑 × 國際分級符號（●■◆）
   安全橘僅用於 CTA。硬陰影紙片卡。零外部字型。
   Mobile-first：660px / 980px
   ============================================================ */

:root {
  --ink:      #14181c;
  --ink-90:   rgba(20,24,28,.9);
  --sub:      #46525a;
  --faint:    #79858d;
  --line:     #d8dde0;
  --line-2:   #b9c2c7;

  --paper:    #ffffff;
  --paper-2:  #f4f5f2;   /* 紙感淺灰 */
  --paper-3:  #ebede8;

  /* 雪道分級（國際慣例） */
  --lv-beg:   #0e9152;   /* ● 綠 初級 */
  --lv-int:   #1f63cf;   /* ■ 藍 中級 */
  --lv-adv:   #16181a;   /* ◆ 黑 上級 */

  --cta:      #f44d0a;   /* 安全橘 — 只給 CTA / active */
  --cta-d:    #cf3c00;
  --cta-tint: #fff0e8;

  --shadow-card: 4px 4px 0 var(--ink-90);
  --shadow-sm:   2px 2px 0 var(--ink-90);

  --r: 10px;
  --r-sm: 6px;

  --fs-h1: clamp(1.8rem, 1.1rem + 3.4vw, 3.4rem);
  --fs-h2: clamp(1.35rem, 1rem + 1.5vw, 2rem);
  --fs-h3: clamp(1.08rem, 1rem + .4vw, 1.25rem);

  --header-h: 60px;

  --font: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei",
          -apple-system, BlinkMacSystemFont, "Helvetica Neue",
          "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI",
          "Noto Sans Thai", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cta-d); }
p { margin: 0 0 1em; }
button { font-family: inherit; }

h1, h2, h3 {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.kicker {
  display: block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cta-d);
  margin-bottom: 10px;
}
.lead { color: var(--sub); font-size: clamp(1rem, .95rem + .35vw, 1.15rem); max-width: 640px; }

::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 18px; font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
section { padding: 52px 0; }
@media (min-width: 660px) { section { padding: 72px 0; } }
section.tight { padding: 28px 0; }
.band { background: var(--paper-2); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.nav {
  display: flex; align-items: center; gap: 12px;
  max-width: 1240px; margin: 0 auto;
  padding: 0 20px; min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-weight: 900; letter-spacing: -.02em; font-size: 1.15rem; }
.logo .logo-flake { color: var(--cta); font-size: 1.3rem; line-height: 1; }
.logo small { font-weight: 600; color: var(--faint); font-size: .72rem; letter-spacing: .12em; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
  display: block; padding: 7px 13px;
  font-weight: 700; font-size: .93rem;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
}
.nav-links a:hover { border-color: var(--ink); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: #fff; }

.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); border: 1.5px solid var(--ink);
  border-radius: var(--r-sm); padding: 6px 12px;
  font-size: .84rem; font-weight: 700; cursor: pointer;
}
.lang-btn:hover { box-shadow: var(--shadow-sm); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--paper); border: 1.5px solid var(--ink);
  border-radius: var(--r-sm); box-shadow: var(--shadow-card);
  padding: 4px; min-width: 160px; display: none; z-index: 60;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: left;
  border: 0; background: none; padding: 9px 12px;
  border-radius: 4px; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--ink);
}
.lang-menu button:hover { background: var(--paper-2); }
.lang-menu button.active { background: var(--ink); color: #fff; }

.menu-toggle {
  display: none; width: 40px; height: 40px;
  background: none; border: 1.5px solid var(--ink); border-radius: var(--r-sm);
  font-size: 19px; cursor: pointer; color: var(--ink);
}
@media (max-width: 979px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    padding: 10px 20px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--ink); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  font-weight: 800; font-size: .97rem; line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform .12s ease, box-shadow .12s ease, background .12s, color .12s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink-90); color: var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn-cta { background: var(--cta); border-color: var(--ink); color: #fff; }
.btn-cta:hover { background: var(--cta-d); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .84rem; box-shadow: var(--shadow-sm); border-width: 1.5px; }
.btn-sm:hover { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink-90); }
.btn-plain { box-shadow: none; border-width: 1.5px; }
.btn-plain:hover { transform: none; box-shadow: var(--shadow-sm); }

/* ---------- 分級符號（國際雪道標示） ---------- */
.lv { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; color: var(--sub); white-space: nowrap; }
.lv i { display: inline-block; width: 11px; height: 11px; flex-shrink: 0; }
.lv-b i { background: var(--lv-beg); border-radius: 50%; }
.lv-i i { background: var(--lv-int); }
.lv-a i { background: var(--lv-adv); transform: rotate(45deg) scale(.92); }

/* 分級比例條 */
.lv-bar { display: flex; height: 10px; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--paper); }
.lv-bar > span { height: 100%; }
.lv-bar .b { background: var(--lv-beg); }
.lv-bar .i { background: var(--lv-int); }
.lv-bar .a { background: var(--lv-adv); }
.lv-legend { display: flex; gap: 14px; margin-top: 6px; }

/* ---------- 距離 chips ---------- */
.dist {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--ink); border-radius: var(--r-sm);
  padding: 2px 9px; font-size: .78rem; font-weight: 800;
  background: var(--paper); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dist.near { background: var(--lv-beg); border-color: var(--lv-beg); color: #fff; }
.dist.mid  { background: var(--paper); }
.chip {
  display: inline-block; padding: 2px 9px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: .75rem; font-weight: 600; color: var(--sub);
  background: var(--paper); white-space: nowrap;
}
.chip.hot { border-color: var(--cta); color: var(--cta-d); background: var(--cta-tint); }

/* ---------- Hero（首頁） ---------- */
.hero4 {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.hero4-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: .38; }
.hero4::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,13,16,.88) 10%, rgba(10,13,16,.5) 60%, rgba(10,13,16,.2));
}
.hero4-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 64px 20px 56px; }
@media (min-width: 660px) { .hero4-inner { padding: 88px 20px 72px; } }
.hero4 h1 { color: #fff; max-width: 720px; }
.hero4 .lead { color: rgba(255,255,255,.85); }
.hero4 .kicker { color: #ff9c6b; }
.hero4-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero4-meta .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.92); font-weight: 700; }

/* ---------- 雪場列卡（首頁核心） ---------- */
.resort-list { display: flex; flex-direction: column; gap: 14px; }

.resort-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: transform .12s ease, box-shadow .12s ease;
  position: relative;
}
a.resort-row:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink-90); color: inherit; }
@media (min-width: 980px) {
  .resort-row { grid-template-columns: 64px minmax(210px, 1.25fr) minmax(0, 2.1fr) auto; align-items: center; gap: 18px; padding: 16px 20px; }
}

.rr-rank {
  display: none;
  font-family: var(--mono);
  font-size: 1.5rem; font-weight: 800; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.rr-rank b { color: var(--ink); font-size: 1.9rem; }
@media (min-width: 980px) { .rr-rank { display: block; } }

.rr-name { min-width: 0; }
.rr-name h3 { margin: 0 0 2px; font-size: 1.18rem; }
.rr-name .ja { font-size: .8rem; color: var(--faint); font-weight: 600; }
.rr-name .rr-rank-inline { font-family: var(--mono); color: var(--faint); font-size: .8rem; font-weight: 700; margin-right: 6px; }
@media (min-width: 980px) { .rr-name .rr-rank-inline { display: none; } }
.rr-name .lv-bar { max-width: 190px; margin-top: 8px; }

.rr-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 14px;
}
@media (min-width: 660px) { .rr-specs { grid-template-columns: repeat(6, auto); justify-content: start; gap: 8px 22px; } }
.spec { min-width: 0; }
.spec b {
  display: block; font-size: 1.06rem; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap;
}
.spec b .u { font-size: .72rem; font-weight: 600; color: var(--faint); }
.spec span { display: block; font-size: .7rem; color: var(--faint); font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.spec .price { color: var(--cta-d); }

.rr-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
@media (min-width: 980px) { .rr-side { align-items: flex-end; } }
.rr-access { font-size: .78rem; color: var(--sub); font-weight: 600; max-width: 230px; }
@media (min-width: 980px) { .rr-access { text-align: right; } }
.rr-tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* ---------- 篩選 / 排序工具列 ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  border: 2px solid var(--ink); border-radius: var(--r);
  background: var(--paper-2);
  padding: 12px 16px;
  margin-bottom: 22px;
}
.tb-group { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.tb-label { font-size: .8rem; font-weight: 800; color: var(--sub); margin-right: 2px; letter-spacing: .03em; }
.tb-btn {
  background: var(--paper); border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm); padding: 5px 13px;
  font-size: .84rem; font-weight: 700; color: var(--ink); cursor: pointer;
  transition: border-color .1s, background .1s, color .1s;
}
.tb-btn:hover { border-color: var(--ink); }
.tb-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tb-count { margin-left: auto; font-size: .8rem; color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; }

select.tb-select {
  font-family: inherit; font-size: .85rem; font-weight: 700;
  border: 1.5px solid var(--ink); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  padding: 5px 10px; cursor: pointer;
}

/* ---------- 通用卡片（住宿/吃飯） ---------- */
.grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 660px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.pcard {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .12s ease, box-shadow .12s ease;
}
a.pcard:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink-90); color: inherit; }
.pcard-img { position: relative; aspect-ratio: 16/9; background: var(--paper-3); border-bottom: 2px solid var(--ink); overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-img .dist { position: absolute; left: 10px; bottom: 10px; box-shadow: var(--shadow-sm); }
.pcard-img .badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink); color: #fff;
  font-size: .74rem; font-weight: 800;
  padding: 3px 10px; border-radius: var(--r-sm);
}
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; gap: 6px; }
.pcard-body h3 { margin: 0; font-size: 1.05rem; }
.pcard-sub { font-size: .78rem; color: var(--faint); font-weight: 600; }
.pcard-desc { font-size: .88rem; color: var(--sub); flex: 1; margin: 2px 0 4px; }
.pcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pcard-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.pcard-price .u { font-size: .72rem; color: var(--faint); font-weight: 600; }
.pcard-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.g-slot:empty { display: none; }

/* Google 評分 */
.g-rating {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  padding: 2px 8px; font-size: .8rem; font-weight: 700;
}
.g-rating strong { color: #1a5fc8; }
.g-rating .g-count { color: var(--faint); font-weight: 500; }

.empty-state { grid-column: 1/-1; text-align: center; color: var(--faint); padding: 48px 0; font-weight: 600; }

/* ---------- 雪場 Hub 頁 ---------- */
.hub-head {
  background: var(--ink); color: #fff;
  border-bottom: 2px solid var(--ink);
  position: relative; overflow: hidden;
}
.hub-head-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .34; }
.hub-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,13,16,.92) 15%, rgba(10,13,16,.55) 65%, rgba(10,13,16,.25)); }
.hub-head-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 40px 20px 34px; }
.hub-head h1 { color: #fff; margin-bottom: 4px; }
.hub-head .ja { color: rgba(255,255,255,.66); font-weight: 600; font-size: .95rem; }
.hub-head .breadcrumb, .hub-head .breadcrumb a { color: rgba(255,255,255,.7); }
.hub-head .lv-bar { max-width: 260px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); margin-top: 14px; }
.hub-head .lv-legend .lv { color: rgba(255,255,255,.85); }
.hub-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hub-tags .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.92); }

/* 規格看板 */
.spec-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 2px solid var(--ink); border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--ink);
  gap: 1.5px;
}
@media (min-width: 660px) { .spec-board { grid-template-columns: repeat(4, 1fr); } }
.sb-cell { background: var(--paper); padding: 14px 16px; }
.sb-cell b { display: block; font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.2; }
.sb-cell b .u { font-size: .76rem; font-weight: 600; color: var(--faint); }
.sb-cell span { font-size: .73rem; color: var(--faint); font-weight: 700; letter-spacing: .05em; }
.sb-cell.price { background: var(--cta-tint); }
.sb-cell.price b { color: var(--cta-d); }

.hub-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hub-sec-head h2 { margin: 0; }
.hub-sec-head .more { font-size: .88rem; font-weight: 800; color: var(--cta-d); white-space: nowrap; }
.hub-note {
  border-left: 4px solid var(--ink);
  background: var(--paper-2);
  padding: 12px 16px; font-size: .9rem; color: var(--sub);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 18px;
}

/* 交通卡 */
.access-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 660px) { .access-grid { grid-template-columns: 1fr 1fr; } }
.access-card {
  border: 2px solid var(--ink); border-radius: var(--r);
  background: var(--paper); padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.access-card .ac-from { font-size: .74rem; font-weight: 800; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.access-card .ac-main { font-size: 1.02rem; font-weight: 800; margin: 4px 0 2px; }
.access-card .ac-sub { font-size: .85rem; color: var(--sub); }

/* 共通券 */
.pass-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 16px;
}
.pass-card {
  flex: 1 1 240px;
  border: 1.5px dashed var(--ink); border-radius: var(--r-sm);
  padding: 10px 14px; font-size: .85rem; color: var(--sub);
  background: var(--paper);
}
.pass-card b { color: var(--ink); display: block; font-size: .92rem; }

/* ---------- 地圖頁 ---------- */
.map-page { display: grid; grid-template-columns: 1fr; }
@media (min-width: 980px) {
  .map-page { grid-template-columns: 350px 1fr; height: calc(100vh - var(--header-h)); }
  .map-page .map-side { overflow-y: auto; }
}
.map-side { background: var(--paper); border-right: 2px solid var(--ink); padding: 18px 20px; }
.map-view { height: 58vh; min-height: 380px; }
@media (min-width: 980px) { .map-view { height: 100%; } }
.poi-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px; margin-bottom: 7px;
  cursor: pointer; font-size: .88rem;
}
.poi-item:hover { border-color: var(--ink); }
.poi-item.active { background: var(--cta-tint); border-color: var(--cta); }
.poi-item .poi-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poi-item .poi-type { font-size: .68rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.poi-item > div { flex: 1; min-width: 0; }
.map-marker {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 rgba(20,24,28,.4);
  background: var(--ink);
}
.map-marker > span { transform: rotate(45deg); }
.map-marker--ski { background: var(--lv-int); }
.map-marker--hotel { background: var(--cta); }
.map-marker--food { background: var(--lv-beg); }
.map-marker--attr { background: #6b7280; }
.leaflet-popup-content { font-family: var(--font); min-width: 200px; }
.leaflet-popup-content h4 { margin: 4px 0 6px; font-size: 1rem; }
.leaflet-popup-content p { margin: 0 0 6px; font-size: .85rem; color: var(--sub); }
.popup-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.popup-actions a { display: inline-block; padding: 5px 10px; border-radius: var(--r-sm); font-size: .8rem; font-weight: 700; border: 1.5px solid var(--ink); }
.popup-actions a.pa-detail { background: var(--cta); color: #fff; border-color: var(--cta-d); }

/* ---------- Detail（住宿/吃飯詳細） ---------- */
.detail-head { border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.detail-head-inner { max-width: 1180px; margin: 0 auto; padding: 26px 20px 24px; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 980px) { .detail-grid { grid-template-columns: 1fr 350px; align-items: start; } }
.detail-photo { border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.detail-photo img { width: 100%; aspect-ratio: 16/8.5; object-fit: cover; }
.detail-body .intro { font-size: 1rem; color: var(--sub); line-height: 1.85; }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 980px) { .detail-side { position: sticky; top: calc(var(--header-h) + 16px); } }

.widget {
  border: 2px solid var(--ink); border-radius: var(--r);
  background: var(--paper); padding: 18px;
  box-shadow: var(--shadow-card);
}
.widget h3 { margin-bottom: 12px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.price-row strong { font-size: 1.4rem; font-weight: 900; color: var(--cta-d); font-variant-numeric: tabular-nums; }
.price-row span { color: var(--faint); font-size: .84rem; }
.book-btn {
  display: block; width: 100%; text-align: center;
  margin-bottom: 9px; padding: 11px;
  border: 1.5px solid var(--ink); border-radius: var(--r-sm);
  font-weight: 800; background: var(--paper); color: var(--ink);
}
.book-btn:hover { box-shadow: var(--shadow-sm); color: var(--ink); }
.book-btn.primary { background: var(--cta); border-color: var(--cta-d); color: #fff; }
.book-btn.primary:hover { background: var(--cta-d); color: #fff; }
.side-note { margin: 10px 0 0; padding-top: 10px; border-top: 1.5px solid var(--line); font-size: .75rem; color: var(--faint); }

.feature-list { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 660px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li { display: flex; gap: 9px; font-size: .92rem; color: var(--sub); }
.feature-list li::before { content: "✓"; font-weight: 900; color: var(--lv-beg); }

.gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 18px 0; }
@media (min-width: 660px) { .gallery { grid-template-columns: repeat(3,1fr); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1.5px solid var(--ink); border-radius: var(--r-sm); }
.gallery figcaption { font-size: .68rem; color: var(--faint); margin-top: 3px; }

.review-item { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1.5px solid var(--line); }
.review-item:last-of-type { border: 0; }
.review-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.review-head strong { font-size: .88rem; }
.review-stars { color: #d99a06; font-size: .8rem; letter-spacing: 1px; }
.review-item p { font-size: .85rem; color: var(--sub); margin: 0; line-height: 1.6; }
.review-time { font-size: .7rem; color: var(--faint); margin-top: 3px; }
.g-attribution { font-size: .7rem; color: var(--faint); margin-top: 8px; }

/* ---------- 其他 ---------- */
.breadcrumb { font-size: .82rem; color: var(--faint); margin-bottom: 12px; font-weight: 600; }
.breadcrumb a { color: var(--faint); }
.breadcrumb a:hover { color: var(--cta-d); }
.breadcrumb [aria-current] { color: var(--ink); }

.coming-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.coming-card {
  flex: 1 1 200px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r);
  padding: 16px 18px; color: var(--faint);
  background: var(--paper);
}
.coming-card b { display: block; color: var(--sub); font-size: 1.02rem; }
.coming-card small { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }

.site-footer {
  background: var(--ink); color: rgba(255,255,255,.75);
  padding: 48px 0 24px; font-size: .9rem; margin-top: 64px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 30px; }
@media (min-width: 660px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,.75); }
.footer-grid a:hover { color: #fff; }
.footer-note { font-size: .76rem; opacity: .55; margin-top: 10px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px;
  font-size: .78rem; color: rgba(255,255,255,.45);
}

.center { text-align: center; }
.mt-3 { margin-top: 14px; } .mt-4 { margin-top: 22px; } .mt-5 { margin-top: 34px; }
