/* 西.台灣 — shared styles */
:root {
  --paper: #fbf6ee;
  --paper-2: #f3ebdf;
  --card: #ffffff;
  --text: #24212c;
  --muted: #6c6577;
  --line: #e6dccd;
  --ink: #15122a;
  --dusk: #2b2150;
  --sun: #ff8a3d;
  --coral: #f2545b;
  --gold: #ffc65c;
  --sea: #1d4f7a;
  --accent: #d9542b;
  --shadow: 0 1px 2px rgba(40, 25, 10, .06), 0 8px 24px rgba(40, 25, 10, .08);
  --radius: 18px;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14121c;
    --paper-2: #1c1927;
    --card: #211e2d;
    --text: #eee9f2;
    --muted: #a69fb2;
    --line: #322d42;
    --accent: #ff9a5a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14121c;
  --paper-2: #1c1927;
  --card: #211e2d;
  --text: #eee9f2;
  --muted: #a69fb2;
  --line: #322d42;
  --accent: #ff9a5a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
main { overflow-x: clip; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.3; margin: 0 0 .5em; letter-spacing: .02em; }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.section { padding: 72px 0; }
.section + .section { padding-top: 24px; }
.lead { font-size: 18px; color: var(--muted); max-width: 40em; }

/* ---------- sale bar + header ---------- */
.salebar {
  background: linear-gradient(90deg, var(--coral), var(--sun) 55%, var(--gold));
  color: #2a1406;
  font-size: 14px;
  text-align: center;
  padding: 7px 16px;
  line-height: 1.5;
}
.salebar a { color: inherit; font-weight: 700; }
.salebar .en { opacity: .75; margin-left: .5em; }
@media (max-width: 560px) { .salebar .en { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.logo {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .06em;
}
.logo .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe3a3, var(--sun) 60%, var(--coral));
  box-shadow: 0 0 14px rgba(255, 138, 61, .8);
}
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: 15px;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { color: #2a1406; background: var(--gold); font-weight: 700; }
@media (max-width: 720px) {
  .site-header .wrap { gap: 0; padding-top: 8px; }
  .nav { margin: 0 -16px; padding: 6px 12px 10px; width: calc(100% + 32px); }
}

/* ---------- dusk hero (shared) ---------- */
.dusk {
  position: relative;
  color: #fff;
  background:
    radial-gradient(120% 70% at 10% 100%, rgba(255, 138, 61, .55), transparent 60%),
    radial-gradient(80% 60% at 0% 80%, rgba(242, 84, 91, .45), transparent 60%),
    linear-gradient(180deg, #0f0c24 0%, #241b4a 45%, #5a2f5e 78%, #a8475a 100%);
  overflow: hidden;
  isolation: isolate;
}
.dusk::before {
  /* stars */
  content: "";
  position: absolute;
  inset: 0 0 40% 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 8%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 46% 22%, #fff, transparent),
    radial-gradient(1px 1px at 61% 12%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 74% 28%, #fff, transparent),
    radial-gradient(1px 1px at 88% 9%, #fff, transparent),
    radial-gradient(1px 1px at 93% 35%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 36% 38%, #fff, transparent),
    radial-gradient(1px 1px at 6% 42%, #fff, transparent),
    radial-gradient(1px 1px at 55% 4%, #fff, transparent);
  opacity: .7;
  animation: twinkle 6s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .85; } }
.dusk .wrap { position: relative; }
.dusk h1 { color: #fff; }
.dusk .kicker { color: var(--gold); }
.dusk .lead { color: rgba(255, 255, 255, .78); }

.page-hero { padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(38px, 7vw, 68px); font-weight: 900; margin-bottom: 14px; }
.page-hero .sun {
  position: absolute;
  width: 220px; height: 220px;
  left: -60px; bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff1c9 0%, #ffc65c 35%, #ff8a3d 60%, rgba(242, 84, 91, 0) 72%);
  filter: blur(2px);
  z-index: -1;
  animation: sunset 9s ease-out both;
}
@keyframes sunset { from { transform: translateY(-80px); } to { transform: translateY(0); } }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: linear-gradient(135deg, var(--gold), var(--sun)); color: #2a1406; box-shadow: 0 8px 24px rgba(255, 138, 61, .35); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit;
  font-size: 15px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.dusk .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.dusk .chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #2a1406; }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  padding: 48px 0 36px;
  font-size: 15px;
  margin-top: 40px;
}
.site-footer .cols { display: grid; gap: 28px; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--serif); font-size: 17px; margin: 0 0 10px; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer .forsale {
  border: 1px solid rgba(255, 198, 92, .4);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(255, 198, 92, .06);
}
.site-footer .forsale strong { color: var(--gold); }
.site-footer .fine { margin-top: 32px; font-size: 13px; color: rgba(255, 255, 255, .45); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ================= home ================= */
.home-hero { padding: 40px 0 24px; }
.hero-sun {
  position: absolute;
  left: 4%; bottom: -140px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3d1 0%, #ffcf6e 30%, #ff8a3d 55%, rgba(242, 84, 91, 0) 72%);
  z-index: -1;
  animation: sunset 12s cubic-bezier(.2, .6, .2, 1) both, breathe 6s 12s ease-in-out infinite alternate;
}
@keyframes breathe { from { filter: brightness(1); } to { filter: brightness(1.15); } }
.hero-grid { display: grid; gap: 8px; align-items: center; }
@media (min-width: 960px) {
  .home-hero { padding: 24px 0; }
  .hero-grid { grid-template-columns: minmax(340px, .8fr) 1.2fr; min-height: calc(100vh - 100px); }
}
.hero-copy { padding: 24px 0 8px; position: relative; z-index: 2; min-width: 0; }
.hero-title {
  font-size: clamp(64px, 15vw, 112px);
  font-weight: 900;
  line-height: 1;
  margin: 6px 0 22px;
  display: flex;
  letter-spacing: .04em;
}
.hero-title span {
  display: inline-block;
  background: linear-gradient(180deg, #fff 30%, #ffd9a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 1s cubic-bezier(.2, .7, .2, 1.2) both;
}
.hero-title span:nth-child(2) { animation-delay: .12s; color: var(--gold); -webkit-text-fill-color: var(--gold); margin: 0 -.08em; }
.hero-title span:nth-child(3) { animation-delay: .24s; }
.hero-title span:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotate(-6deg); } to { opacity: 1; transform: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.sun-mini {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
  line-height: 1.4;
}
.sun-mini:hover { background: rgba(255, 255, 255, .12); }
.sun-mini small { color: rgba(255, 255, 255, .7); font-size: 13px; }
.sun-mini b { font-size: 22px; font-family: var(--serif); color: var(--gold); }
.sun-mini [data-left] { font-size: 14px; color: rgba(255, 255, 255, .8); }
.sun-mini-icon {
  width: 38px; height: 38px; border-radius: 10px; position: relative; overflow: hidden;
  background: linear-gradient(#5a2f5e, #ff8a3d 70%, #1d4f7a 70%);
}
.sun-mini-icon::after {
  content: ""; position: absolute; left: 50%; top: 52%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: #ffe2a0; box-shadow: 0 0 10px #ffc65c;
  animation: bob 4s ease-in-out infinite alternate;
}
@keyframes bob { from { transform: translateY(-4px); } to { transform: translateY(4px); } }

.map-root { position: relative; height: 72vh; min-height: 440px; max-height: 820px; }
@media (min-width: 960px) { .map-root { height: calc(100vh - 120px); margin-right: -28px; } }
.map-stage {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
}
.map-stage canvas { width: 100% !important; height: 100% !important; cursor: grab; }
.map-stage svg { width: 100%; height: 100%; }
.map-labels { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s; }
.map-labels[data-ready="1"] { opacity: 1; }
.map-label { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .4s; will-change: transform; }
.map-label.stn {
  font-size: 12px; font-weight: 700; color: #2a1406;
  background: rgba(255, 241, 201, .92); padding: 1px 7px; border-radius: 6px; margin-top: -14px;
}
.map-label.region { font-family: var(--serif); font-weight: 900; letter-spacing: .2em; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.map-label.island { font-size: 22px; color: #fff; }
.map-label.west { font-size: 15px; color: var(--gold); }
.map-label.mainland { font-size: 30px; color: rgba(230, 220, 255, .35); transition: opacity .4s, color .6s, font-size .6s; }
.map-label.sea { font-size: 13px; color: rgba(255, 255, 255, .55); letter-spacing: .5em; }
.map-root[data-mode="geo"] .only-meme, .map-root[data-mode="meme"] .only-geo { visibility: hidden; }
.map-root[data-mode="meme"] .map-label.mainland { color: #f1eaff; font-size: 40px; }
.map-root[data-mode="meme"] .map-label.stn { visibility: hidden; }
.map-tip {
  position: absolute; left: 0; top: 0; pointer-events: none; z-index: 5;
  background: rgba(21, 18, 42, .92); color: #fff; font-size: 14px; line-height: 1.4;
  padding: 8px 12px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.map-tip small { color: var(--gold); }
.map-ui { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; pointer-events: none; }
.map-ui > * { pointer-events: auto; }
.map-caption { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .82); max-width: 32em; padding: 0 8px; min-height: 2.6em; }
.map-caption b { color: var(--gold); }
.map-caption a { color: var(--gold); }
.map-hint { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .45); }
.no-webgl .map-hint { display: none; }

.features .feature { display: block; padding: 22px; text-decoration: none; color: var(--text); transition: transform .25s, box-shadow .25s; }
.features .feature:hover { transform: translateY(-6px); }
.features .more { color: var(--accent); font-weight: 700; font-size: 15px; }
.feat-art { height: 170px; border-radius: 14px; margin-bottom: 18px; }
.marquee { overflow: hidden; background: var(--ink); color: #fff; padding: 18px 0; transform: rotate(-1.2deg); margin: 30px -10px; }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--serif); font-weight: 900; font-size: 26px; white-space: nowrap; }
.marquee span:nth-child(3n+1) { color: var(--gold); }
.marquee span:nth-child(3n+2) { color: #ff9a7a; }
@keyframes marquee { to { transform: translateX(-50%); } }

.rail-strip { list-style: none; padding: 0; margin: 36px 0 0; display: flex; justify-content: space-between; position: relative; overflow-x: auto; padding-bottom: 8px; gap: 4px; }
.rail-strip::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 4px; background: linear-gradient(90deg, var(--gold), var(--sun), var(--coral)); border-radius: 2px; }
.rail-strip li { position: relative; flex: 1 0 44px; text-align: center; }
.rail-strip a { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; writing-mode: horizontal-tb; }
.rail-strip i { width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 4px solid var(--sun); transition: transform .25s, background .25s; position: relative; }
.rail-strip a:hover i { transform: scale(1.3); background: var(--gold); }
.rail-strip a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .rail-strip a { font-size: 13px; }
  .rail-strip i { width: 22px; height: 22px; border-width: 3px; }
  .rail-strip::before { top: 9px; }
}

.two-meanings { margin-top: 28px; }
.meaning { padding: 26px; }
.meaning .tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--paper-2); color: var(--accent); margin-bottom: 12px; }
.meaning.meme { background: linear-gradient(160deg, var(--card), color-mix(in srgb, #8c7bc4 16%, var(--card))); }

/* ================= 高鐵 ================= */
.hero-track { position: absolute; left: 0; right: 0; bottom: 22px; height: 3px; background: linear-gradient(90deg, transparent, rgba(255, 241, 201, .5) 20%, rgba(255, 241, 201, .5) 80%, transparent); }
.hero-train {
  position: absolute; top: -6px; left: -120px; width: 110px; height: 15px; border-radius: 4px 40px 40px 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 30%); box-shadow: 0 0 22px #ffd27a;
  animation: zoom 6s cubic-bezier(.5, 0, .5, 1) infinite;
}
@keyframes zoom { 0% { left: -120px; } 60%, 100% { left: 110%; } }
.station-jump {
  position: sticky; top: 60px; z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding-top: 12px; padding-bottom: 12px; background: var(--paper);
}
.station-jump::-webkit-scrollbar { display: none; }
.station-jump a { flex: 0 0 auto; text-decoration: none; color: var(--text); font-size: 15px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.station-jump a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) { .station-jump { top: 98px; } }

.timeline { list-style: none; margin: 0; padding: 0 0 0 42px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--gold), var(--sun) 50%, var(--coral)); }
.tl-train {
  position: absolute; left: 5px; top: 0; width: 20px; height: 56px; border-radius: 12px 12px 6px 6px; z-index: 2;
  background: linear-gradient(180deg, #fff 0%, #fff 60%, #ffd27a); box-shadow: 0 0 0 3px var(--paper), 0 0 22px rgba(255, 138, 61, .7);
  transition: transform .15s linear;
}
.station { position: relative; margin-bottom: 26px; padding: 22px 22px 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 130px; }
.station::before { content: ""; position: absolute; left: -38px; top: 30px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 4px solid var(--sun); }
.station:target { outline: 3px solid var(--gold); }
.st-head { display: flex; align-items: baseline; gap: 14px; }
.st-no { font-family: var(--serif); font-weight: 900; font-size: 34px; color: var(--sun); line-height: 1; }
.st-head h2 { font-size: 28px; margin: 0; }
.st-head small { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: .08em; }
.st-meta { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.st-cols { display: grid; gap: 4px 22px; }
@media (min-width: 760px) { .st-cols { grid-template-columns: repeat(3, 1fr); } }
.st-cols h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .15em; color: var(--accent); margin: 0 0 2px; }
.st-cols p { font-size: 16px; }
.st-cols .sunset h3 { color: var(--coral); }
.st-cols .sunset a { display: inline-block; font-size: 14px; margin-left: 4px; }
.small-note { font-size: 14px; }
.plan { padding: 24px; }
.plan-tag { display: inline-block; background: var(--ink); color: var(--gold); font-weight: 700; font-size: 13px; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.plan ol { margin: 0; padding-left: 1.3em; color: var(--muted); }
.plan li { margin: 4px 0; }

/* ================= 美食 ================= */
.food-hero .steam { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.food-hero .steam span {
  position: absolute; bottom: -60px; font-family: var(--serif); font-weight: 900; font-size: 48px;
  color: rgba(255, 210, 122, .16); animation: steam 14s linear infinite;
}
.food-hero .steam span:nth-child(1) { left: 52%; animation-delay: 0s; }
.food-hero .steam span:nth-child(2) { left: 64%; animation-delay: -2s; font-size: 72px; }
.food-hero .steam span:nth-child(3) { left: 76%; animation-delay: -4s; }
.food-hero .steam span:nth-child(4) { left: 88%; animation-delay: -6s; font-size: 60px; }
.food-hero .steam span:nth-child(5) { left: 70%; animation-delay: -8s; font-size: 40px; }
.food-hero .steam span:nth-child(6) { left: 58%; animation-delay: -10s; }
.food-hero .steam span:nth-child(7) { left: 82%; animation-delay: -12s; font-size: 56px; }
@keyframes steam {
  0% { transform: translateY(0) rotate(-6deg); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-460px) translateX(30px) rotate(10deg); opacity: 0; }
}
.food-filter { margin-bottom: 26px; }
.food-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.food { padding: 22px; position: relative; transition: transform .3s, box-shadow .3s; }
.food:hover { transform: translateY(-5px) rotate(-.4deg); }
.food[hidden] { display: none; }
.food.pop { animation: pop .45s cubic-bezier(.2, .7, .2, 1.3); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.food .stamp {
  float: right; margin: 0 0 8px 12px; width: 62px; height: 62px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 900; font-size: 34px; color: #c0392b;
  border: 3px solid currentColor; border-radius: 14px; transform: rotate(-8deg);
  background: color-mix(in srgb, #c0392b 6%, transparent);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1.5);
}
.food:hover .stamp { transform: rotate(6deg) scale(1.1); }
.food[data-region="central"] .stamp { color: #c76a12; }
.food[data-region="south"] .stamp { color: #a3366b; }
:root[data-theme="dark"] .food .stamp { filter: brightness(1.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .food .stamp { filter: brightness(1.5); } }
.food h2 { font-size: 24px; margin: 0; }
.food .where { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.food p { font-size: 16px; }
.food .go { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin: 0; clear: both; }

/* ================= 夕陽 ================= */
.sky {
  --sky-top: #3a2160; --sky-bottom: #ff7a45; --sun: #ff5e3a; --sun-y: 0%; --glint: 1; --stars: 0;
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  min-height: min(78vh, 680px); display: flex; align-items: flex-start;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 64%);
  transition: background 1.2s;
}
.sky::before {
  content: ""; position: absolute; inset: 0 0 40% 0; z-index: -1; opacity: var(--stars); transition: opacity 1.2s;
  background-image:
    radial-gradient(1.3px 1.3px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 25% 8%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 40% 30%, #fff, transparent), radial-gradient(1px 1px at 58% 14%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 72% 26%, #fff, transparent), radial-gradient(1px 1px at 86% 10%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 94% 32%, #fff, transparent), radial-gradient(1px 1px at 33% 44%, #fff, transparent);
}
.sky-sun {
  position: absolute; left: 50%; bottom: 36%; width: 150px; height: 150px; margin-left: -75px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, #fffbe8 0%, var(--sun) 55%, transparent 72%);
  box-shadow: 0 0 120px 40px color-mix(in srgb, var(--sun) 45%, transparent);
  transform: translateY(calc(var(--sun-y) * -4)); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), background 1.2s, box-shadow 1.2s;
}
.sky-sea {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36%; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sky-bottom) 55%, #0b2a48), #071a2e);
  transition: background 1.2s;
}
.sky-sea::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 14px); animation: waves 6s linear infinite; }
@keyframes waves { to { background-position: 0 28px; } }
.sky-glint {
  position: absolute; left: 50%; top: 0; width: 120px; height: 100%; margin-left: -60px; opacity: var(--glint);
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--sun) 85%, #fff) 0 3px, transparent 3px 11px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  animation: glint 2.4s ease-in-out infinite alternate; transition: opacity 1.2s;
}
@keyframes glint { from { transform: scaleX(.85); } to { transform: scaleX(1.1); } }
.sky-copy { padding-top: 48px; padding-bottom: 40px; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.sky .kicker { color: #fff3d1; }
.sky h1 { font-size: clamp(40px, 8vw, 76px); font-weight: 900; margin-bottom: 6px; }
.sky-when { font-size: 22px; margin: 0; }
.sky-when b { font-family: var(--serif); font-size: 44px; color: #fff3d1; margin-left: 6px; }
.sky-left { font-size: 18px; opacity: .9; }
.sky-scrub { display: flex; flex-direction: column; gap: 6px; max-width: 360px; font-size: 14px; margin-top: 18px; }
.sky-scrub input { width: 100%; accent-color: #ffc65c; }

.sun-panel { padding-top: 36px; }
.spot-chips { margin-bottom: 22px; }
.sun-stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .sun-stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.stat small { color: var(--muted); font-size: 14px; }
.stat b { font-family: var(--serif); font-size: 32px; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.hot { background: linear-gradient(140deg, var(--gold), var(--sun)); color: #2a1406; border-color: transparent; }
.stat.hot small, .stat.hot span { color: rgba(42, 20, 6, .75); }
.stat .arrow { display: inline-block; font-family: var(--sans); color: var(--accent); transition: transform .8s cubic-bezier(.2, .7, .2, 1.3); }
.week-title { font-size: 22px; margin-top: 36px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(72px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.week .day { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.week .day small { display: block; color: var(--muted); font-size: 13px; }
.week .day b { font-family: var(--serif); font-size: 20px; }
.week .day.today { border-color: var(--sun); box-shadow: inset 0 0 0 1px var(--sun); }
.spots { margin-top: 24px; }
.spot { padding: 22px; scroll-margin-top: 110px; }
.spot h3 small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.spot:target { outline: 3px solid var(--gold); }
.tips { padding: 24px; margin-top: 28px; }
.tips ul { padding-left: 1.2em; margin: 0 0 12px; }
.tips li { margin: 6px 0; }

/* ================= 西台灣 ================= */
.meme-hero-grid { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .meme-hero-grid { grid-template-columns: 1fr 1fr; } }
.strait { margin: 0; text-align: center; }
.strait-svg { width: 100%; max-width: 480px; margin: 0 auto; overflow: visible; }
.strait figcaption { font-size: 14px; color: rgba(255, 255, 255, .6); }
.strait .tw { fill: #ffb45c; stroke: #fff3d1; stroke-width: .08; filter: drop-shadow(0 0 1.2px rgba(255, 180, 92, .8)); }
.strait .cn { fill: rgba(140, 123, 196, .35); animation: loom 3s 2.2s ease-in-out infinite alternate; }
.strait .coast { fill: none; stroke: rgba(230, 220, 255, .7); stroke-width: .12; }
.strait .arrow {
  fill: none; stroke: #ffc65c; stroke-width: .45; stroke-linecap: round; stroke-dasharray: 26; stroke-dashoffset: 26;
  animation: draw 1.6s .5s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes loom { from { fill: rgba(140, 123, 196, .3); } to { fill: rgba(170, 150, 230, .55); } }
.strait .lbl { font-family: var(--serif); font-weight: 900; fill: #fff; text-anchor: middle; }
.strait .tw-l { font-size: 2.6px; }
.strait .cn-l { font-size: 4.2px; fill: #efe7ff; opacity: 0; animation: popin .6s 2s cubic-bezier(.2, .7, .2, 1.4) forwards; }
.strait .sea-l { font-size: 1.6px; letter-spacing: .4px; fill: rgba(255, 255, 255, .6); }
@keyframes popin { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }

.narrow { max-width: 820px; }
.flips { margin-top: 24px; }
.flip { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; perspective: 1200px; min-height: 240px; text-align: left; }
.flip-inner { display: block; position: relative; width: 100%; height: 100%; min-height: 240px; transition: transform .8s cubic-bezier(.3, .7, .2, 1.1); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; justify-content: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow);
}
.flip-face.front b { font-family: var(--serif); font-size: 60px; font-weight: 900; line-height: 1.2; }
.flip-face.front small { font-size: 14px; letter-spacing: .2em; opacity: .8; }
.flip-face.front em { font-style: normal; font-size: 15px; font-weight: 700; align-self: flex-start; padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.flip-face.geo { background: linear-gradient(140deg, #ffd27a, #ff7a45); color: #2a1406; }
.flip-face.net { background: linear-gradient(140deg, #3a2f6e, #8c7bc4); color: #fff; }
.flip-face.back { transform: rotateY(180deg); background: var(--card); border: 1px solid var(--line); font-size: 17px; line-height: 1.8; }
.flip:focus-visible .flip-inner { outline: 3px solid var(--gold); border-radius: var(--radius); }

.meme-timeline { list-style: none; padding: 0 0 0 28px; margin: 34px 0 0; border-left: 3px solid var(--line); }
.meme-timeline li { position: relative; padding: 0 0 22px 10px; }
.meme-timeline li::before { content: ""; position: absolute; left: -38px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid #8c7bc4; }
.meme-timeline time { font-family: var(--serif); font-weight: 900; font-size: 19px; color: #8c7bc4; }
.meme-timeline p { margin: 4px 0 0; }
.con { padding: 22px; }
.stance { padding: 30px; background: linear-gradient(150deg, var(--card), color-mix(in srgb, var(--sun) 12%, var(--card))); }
.sources { margin-top: 36px; font-size: 15px; }
.sources ul { padding-left: 1.2em; color: var(--muted); }

.lost { min-height: 70vh; display: flex; align-items: center; }

/* ================= photos ================= */
.ph { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.credit {
  position: absolute; right: 6px; bottom: 6px; max-width: calc(100% - 12px);
  font-size: 11px; line-height: 1.4; padding: 2px 8px; border-radius: 999px;
  background: rgba(10, 8, 20, .55); color: rgba(255, 255, 255, .88);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: .75; transition: opacity .3s;
}
.ph:hover .credit { opacity: 1; }
.credit a { color: inherit; text-decoration: none; }
.credit a:hover { text-decoration: underline; }
.feature:hover .ph img, .food:hover .ph img, .spot:hover .ph img, .station:hover .ph img { transform: scale(1.06); }

.food .ph { margin: -22px -22px 16px; aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; }
.food .stamp { position: absolute; top: 14px; left: 14px; float: none; margin: 0; z-index: 2; background: rgba(251, 246, 238, .94); }
:root[data-theme="dark"] .food .stamp { background: rgba(33, 30, 45, .9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .food .stamp { background: rgba(33, 30, 45, .9); } }

.station .ph { aspect-ratio: 4 / 3; border-radius: 12px; margin: 0 0 16px; }
@media (min-width: 860px) {
  .station { display: grid; grid-template-columns: 300px 1fr; column-gap: 26px; align-items: start; padding-bottom: 14px; }
  .station .ph { grid-row: 1 / span 3; margin: 0 0 8px; }
  .station > :not(.ph) { grid-column: 2; }
}

.spot .ph { margin: -22px -22px 16px; aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; }

.credits { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 14px; }
.credits li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--muted); }
.credits img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.credits b { color: var(--text); font-size: 16px; }
.credits a { word-break: break-all; }
.feature .ph { margin-bottom: 18px; }
