:root {
  --lake: #123a38;
  --lake-2: #1d4f4b;
  --brass: #b8894a;
  --brass-ink: #8a6328;
  --paper: #f2f3ef;
  --ink: #1f2624;
  --stone: #66706c;
  --line: #d6dbd5;
  --lake-deep: #0e2c2a;
  --brass-light: #e7cf9f;
  --brass-hover: #c99a58;
  --on-brass: #1d1608;
  --notice: #e6e0d2;
  --holiday: #efe6d4;
  --shade: 10 30 29;
  --surface: var(--lake);
  --surface-2: var(--lake-2);
  --surface-deep: var(--lake-deep);
  --surface-border: transparent;
  --surface-rule: rgba(255,255,255,.25);
  --on-surface: #ffffff;
  --on-surface-muted: rgba(255,255,255,.78);
  --on-surface-faint: rgba(255,255,255,.58);
  --accent-on-surface: var(--brass-light);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --pad: max(var(--gutter), calc((100vw - var(--max)) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- 頁首 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--pad);
  background: var(--surface); color: var(--on-surface);
  border-bottom: 1px solid var(--surface-border);
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.brand-zh { font-family: var(--serif); font-size: 19px; letter-spacing: .08em; }
.brand-en { font-size: 11px; color: var(--on-surface-faint); letter-spacing: .06em; }
.topnav { display: flex; gap: 20px; margin-left: auto; }
.topnav a { text-decoration: none; font-size: 15px; color: var(--on-surface-muted); }
.topnav a:hover { color: var(--on-surface); }
.call {
  text-decoration: none; font-size: 14px; white-space: nowrap;
  padding: 7px 14px; border: 1px solid var(--brass); color: var(--accent-on-surface); border-radius: 2px;
}
.call:hover { background: var(--brass); color: var(--on-brass); }
@media (max-width: 720px) {
  .topnav { display: none; }
  .call { margin-left: auto; }
}

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  padding: 12px 22px; font-size: 15px; letter-spacing: .04em; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-brass { background: var(--brass); color: var(--on-brass); }
.btn-brass:hover { background: var(--brass-hover); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ink { background: var(--lake); color: #fff; }
.btn-ink:hover { background: var(--lake-2); }
.btn-block { display: block; width: 100%; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; min-height: min(86vh, 760px);
  display: flex; align-items: flex-end;
  padding: 0 var(--pad) clamp(32px, 7vh, 72px);
  background: var(--lake) var(--hero, none) center / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(var(--shade) / .15) 30%, rgb(var(--shade) / .82) 100%);
}
.hero-text { position: relative; max-width: 640px; }
.hero h1 { font-size: clamp(30px, 5.4vw, 64px); letter-spacing: .1em; font-weight: 500; text-wrap: balance; }
.hero-tag { font-family: var(--serif); font-size: clamp(17px, 2.2vw, 22px); color: rgba(255,255,255,.88); margin-top: 8px; }
.hero-meta { color: rgba(255,255,255,.78); font-size: 15px; }
.hero-meta strong { color: var(--brass-light); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-caption {
  position: absolute; right: var(--pad); bottom: 16px; margin: 0;
  font-size: 13px; color: rgba(255,255,255,.7); text-decoration: none;
}
.hero-caption:hover { color: #fff; text-decoration: underline; }
@media (max-width: 600px) { .hero-caption { display: none; } }

/* ---------- 區塊共用 ---------- */
main > section { padding: clamp(48px, 8vw, 96px) var(--pad); }
main h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 20px; }
.prose { max-width: 38em; }
.prose p { margin-bottom: 1em; }

.notice { background: var(--notice); padding-top: 28px !important; padding-bottom: 28px !important; }
.notice h2 { font-size: 18px; margin-bottom: 6px; color: var(--brass-ink); }
.notice p { margin: 0; }

.about { display: grid; }
.about .prose { font-size: 17px; }

/* ---------- 房型 ---------- */
.rooms { background: #fff; }
.rooms-head { margin-bottom: 40px; }
.rooms-sub { color: var(--stone); max-width: 38em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font: inherit; font-size: 14px; cursor: pointer;
  padding: 5px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--lake); border-color: var(--lake); color: #fff; }
.filter-empty { color: var(--brass-ink); margin-top: 16px; }

.floor {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.floor[hidden] { display: none; }
.floor-label {
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 500; color: var(--lake);
  position: sticky; top: 84px; align-self: start; line-height: 1;
}
.room-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px;
}
.room-card a { display: block; text-decoration: none; }
.room-card[hidden] { display: none; }
.room-photo { aspect-ratio: 3 / 2; overflow: hidden; background: #dfe3dd; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.room-card a:hover .room-photo img { transform: scale(1.04); }
.no-photo { display: grid; place-items: center; height: 100%; color: var(--stone); font-size: 14px; }
.room-info {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px;
  padding: 10px 0 0; border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.room-no { font-family: var(--serif); font-size: 22px; color: var(--brass-ink); font-variant-numeric: lining-nums; }
.room-name { font-family: var(--serif); font-size: 17px; }
.room-price { font-size: 14px; color: var(--stone); white-space: nowrap; }
.room-card a:hover .room-name { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
  .floor { grid-template-columns: 1fr; gap: 12px; }
  .floor-label { position: static; font-size: 36px; }
}

/* ---------- 周邊 ---------- */
.nearby { background: var(--surface-2); color: var(--on-surface); }
.nearby h2 { color: var(--on-surface); }
.nearby-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.nearby-list li { border-top: 1px solid var(--surface-rule); padding-top: 16px; }
.nearby-list h3 { font-size: 21px; font-weight: 500; color: var(--accent-on-surface); margin-bottom: 8px; }
.nearby-list p { color: var(--on-surface-muted); margin: 0; max-width: 28em; }

/* ---------- 訂房須知 ---------- */
.rules-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.price-notes { margin: 0; padding: 20px 24px; background: #fff; border-left: 3px solid var(--brass); }
.price-notes dt { font-family: var(--serif); font-weight: 700; margin-top: 12px; }
.price-notes dt:first-child { margin-top: 0; }
.price-notes dd { margin: 2px 0 0; color: var(--stone); }
@media (max-width: 800px) { .rules-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 交通 ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; background: var(--surface); color: var(--on-surface); }
.visit h2 { color: var(--on-surface); }
.visit-addr { font-family: var(--serif); font-size: 20px; }
.visit a:not(.btn) { color: var(--accent-on-surface); }
.visit .btn-ink { background: var(--brass); color: var(--on-brass); margin-top: 12px; }
.visit .btn-ink:hover { background: var(--brass-hover); }
.map { width: 100%; min-height: 320px; border: 0; filter: grayscale(.35); }
@media (max-width: 800px) { .visit { grid-template-columns: 1fr; } }

/* ---------- 頁尾 ---------- */
.foot { background: var(--surface-deep); color: var(--on-surface-muted); border-top: 1px solid var(--surface-border); padding: 40px var(--pad) 24px; font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.foot-name { font-family: var(--serif); color: var(--on-surface); font-size: 17px; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot a { color: var(--accent-on-surface); }
.copy { margin: 24px 0 0; font-size: 12px; color: var(--on-surface-faint); }

/* ---------- 房間頁 ---------- */
.room-page { padding: 16px var(--pad) 64px; }
.room-page > section { padding: 0; }
.crumbs { font-size: 14px; color: var(--stone); margin-bottom: 12px; }
.crumbs a { color: var(--stone); }
.gallery-main { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: #dfe3dd; aspect-ratio: 3 / 2; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { padding: 0; border: 0; cursor: pointer; aspect-ratio: 3 / 2; overflow: hidden; background: #dfe3dd; opacity: .8; }
.gallery-thumbs button:hover, .gallery-thumbs button.on { opacity: 1; outline: 2px solid var(--brass); outline-offset: -2px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { aspect-ratio: 3/1; display: grid; place-items: center; background: #dfe3dd; color: var(--stone); }

.room-body { display: grid; grid-template-columns: 1fr 340px; gap: 48px; margin-top: 36px; }
.room-kicker { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--brass-ink); margin: 0; }
.room-title { font-size: clamp(30px, 4vw, 42px); font-weight: 500; letter-spacing: .06em; margin: 6px 0 20px; }
.sub { font-size: 20px; margin: 28px 0 12px; }
.amenities { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.amenities li { padding: 4px 12px; border: 1px solid var(--line); background: #fff; font-size: 14px; }

.price-card { background: #fff; padding: 24px; border-top: 3px solid var(--brass); align-self: start; position: sticky; top: 84px; }
.price-today-label { font-size: 14px; color: var(--stone); margin: 0; }
.price-today { font-family: var(--serif); font-size: 36px; color: var(--lake); margin: 2px 0 16px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th { text-align: left; font-weight: 400; color: var(--stone); padding: 6px 0; }
.price-table td { text-align: right; padding: 6px 0; }
.price-table tr + tr { border-top: 1px solid var(--line); }
.price-table .list td { text-decoration: line-through; color: var(--stone); }
.week { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 12px; text-align: center; }
.week li { background: var(--paper); padding: 6px 2px; display: flex; flex-direction: column; }
.week .wd { color: var(--stone); font-size: 11px; }
.week .holiday { background: var(--holiday); }
.week .special { background: var(--lake); color: #fff; }
.week .special .wd { color: rgba(255,255,255,.7); }
.period-note { font-size: 13px; color: var(--brass-ink); }
.price-fine { font-size: 13px; color: var(--stone); margin: 10px 0 0; text-align: center; }
@media (max-width: 860px) {
  .room-body { grid-template-columns: 1fr; gap: 28px; }
  .price-card { position: static; }
  .room-kicker { font-size: 48px; }
}

.room-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 20px; }
.room-pager a { text-decoration: none; font-family: var(--serif); font-size: 17px; }
.room-pager a span { display: block; font-family: var(--sans); font-size: 13px; color: var(--stone); }
.room-pager .next { text-align: right; }

.missing { padding: 96px var(--pad); }

/* ---------- 燈箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgb(var(--shade) / .95); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 12px 18px; line-height: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 12px; color: rgba(255,255,255,.7); font-size: 14px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .room-photo img { transition: none; }
}

.gallery-main { max-height: 72vh; }
@media (max-width: 600px) {
  .room-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .room-info { grid-template-columns: auto 1fr; gap: 0 6px; }
  .room-no { font-size: 18px; }
  .room-name { font-size: 15px; }
  .room-price { font-size: 12.5px; gap: 2px 8px; }
  .room-price .rp em { margin-right: 3px; }
}

/* ---------- 水紋線 ---------- */
.topbar { padding-bottom: 18px; }
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 8px;
  background: var(--brass); opacity: .8; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M0 4 C20 0 40 0 60 4 S100 8 120 4' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 8px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M0 4 C20 0 40 0 60 4 S100 8 120 4' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 8px;
}
.foot { position: relative; padding-top: 56px; border-top: 0; }
.foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 20px;
  background: var(--accent-on-surface); opacity: .55; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='20' viewBox='0 0 180 20'%3E%3Cpath d='M0 6 C30 0 60 0 90 6 S150 12 180 6' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M0 14 C30 8 60 8 90 14 S150 20 180 14' fill='none' stroke='black' stroke-width='1' opacity='.6'/%3E%3C/svg%3E") repeat-x 0 0 / 180px 20px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='20' viewBox='0 0 180 20'%3E%3Cpath d='M0 6 C30 0 60 0 90 6 S150 12 180 6' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M0 14 C30 8 60 8 90 14 S150 20 180 14' fill='none' stroke='black' stroke-width='1' opacity='.6'/%3E%3C/svg%3E") repeat-x 0 0 / 180px 20px;
}

/* ---------- 動態 ---------- */
:root {
  --display: "Playfair Display", var(--serif);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-io: cubic-bezier(.645, .045, .355, 1);
  --qb-h: 0px;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 捲動淡入 ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms);
}
.js [data-reveal="left"] { transform: translateX(28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 區塊標題 ---------- */
.sec-title { margin-bottom: 32px; }
.sec-en {
  font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1; letter-spacing: .03em; color: var(--ink); margin: 0 0 14px;
}
.sec-big { font-style: italic; font-size: 1.6em; color: var(--brass); margin-right: .02em; line-height: .7; }
main .sec-title h2 {
  display: flex; align-items: center; gap: 14px; margin: 0;
  font-size: clamp(16px, 1.6vw, 19px); font-weight: 500; letter-spacing: .24em; color: var(--stone);
}
main .sec-title h2::before { content: ""; width: 36px; height: 1px; background: var(--brass); }
.nearby .sec-en, .visit .sec-en { color: var(--on-surface); }
.nearby .sec-big, .visit .sec-big { color: var(--accent-on-surface); }
.nearby .sec-title h2, .visit .sec-title h2 { color: var(--on-surface-muted); }
.nearby .sec-title h2::before, .visit .sec-title h2::before { background: var(--accent-on-surface); }

/* ---------- 按鈕箭頭 ---------- */
.btn-arrow::after, .link-arrow::after {
  content: ""; display: inline-block; width: 22px; height: 10px; margin-left: 12px; vertical-align: middle;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center / contain;
}
.btn-arrow:hover::after, .link-arrow:hover::after { animation: nudge 1s ease-in-out infinite; }
.btn { transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.link-arrow {
  display: inline-flex; align-items: center; margin-top: 12px; padding-bottom: 6px;
  font-family: var(--display); font-style: italic; font-size: 17px; letter-spacing: .06em;
  color: var(--brass-ink); text-decoration: none; border-bottom: 1px solid var(--line);
}

/* ---------- 首頁透明頁首 ---------- */
.topbar { transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease); }
.js .home .topbar { position: fixed; left: 0; right: 0; }
.js .home .topbar:not(.is-solid) {
  background: linear-gradient(rgb(var(--shade) / .55), rgb(var(--shade) / 0)) border-box no-repeat;
  color: #fff; border-color: transparent;
}
.js .home .topbar:not(.is-solid)::after { opacity: 0; }
.js .home .topbar:not(.is-solid) .brand-en,
.js .home .topbar:not(.is-solid) .topnav a { color: rgba(255,255,255,.82); }
.js .home .topbar:not(.is-solid) .topnav a:hover { color: #fff; }
.js .home .topbar:not(.is-solid) .call { color: #fff; border-color: rgba(255,255,255,.6); }
.topbar.is-solid { box-shadow: 0 6px 24px rgb(var(--shade) / .08); }
.topbar::after { transition: opacity .5s var(--ease); }
.brand-en { font-family: var(--display); font-style: italic; letter-spacing: .12em; }
.topnav a { position: relative; transition: color .3s; }
.topnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.topnav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 首屏輪播 ---------- */
.home .hero { min-height: 100vh; min-height: 100svh; overflow: hidden; padding-bottom: clamp(56px, 10vh, 112px); }
.hero-slides { position: absolute; inset: 0; will-change: transform; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s var(--ease-io); }
.hero-slide.is-on { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 8s linear; }
.hero-slide.is-on img { transform: scale(1); }
.hero::before { z-index: 1; }
.hero-text { z-index: 2; }
.hero-en {
  display: flex; align-items: center; gap: 14px; margin: 0 0 14px;
  font-family: var(--display); font-style: italic; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: .22em;
  color: var(--brass-light);
}
.hero-en::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .7; }
.hero h1 { letter-spacing: .14em; }
.js .hero-text > * { opacity: 0; }
.hero-go .hero-text > * { animation: rise 1s var(--ease) both; }
.hero-go .hero-text > :nth-child(2) { animation-delay: .15s; }
.hero-go .hero-text > :nth-child(3) { animation-delay: .35s; }
.hero-go .hero-text > :nth-child(4) { animation-delay: .55s; }
.hero-go .hero-text > :nth-child(5) { animation-delay: .75s; }
.hero-caption { z-index: 2; transition: opacity .6s; }
.hero-pager {
  position: absolute; z-index: 2; right: var(--pad); bottom: 52px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 14px; letter-spacing: .1em; color: rgba(255,255,255,.75);
}
.hero-idx { color: #fff; }
.hero-bar { width: 72px; height: 1px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero-bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.hero-bar i.run { animation: fill var(--slide-ms, 6000ms) linear forwards; }
.scroll-down {
  position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.8); text-decoration: none;
  font-family: var(--display); font-size: 11px; letter-spacing: .3em;
}
.scroll-down i { position: relative; width: 1px; height: 64px; background: rgba(255,255,255,.25); overflow: hidden; }
.scroll-down i::before { content: ""; position: absolute; inset: 0; background: #fff; animation: drip 2.4s var(--ease-io) infinite; }
@media (max-width: 720px) {
  .scroll-down, .hero-pager { display: none; }
}

/* ---------- 開場 ---------- */
.intro { display: none; }
.js .intro {
  display: block; position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: pointer;
  background: var(--lake-deep); transition: opacity 1.2s var(--ease-io), visibility 0s 1.2s;
}
.js.intro-skip .intro { display: none; }
.intro-on body { overflow: hidden; }
.intro.is-out { opacity: 0; visibility: hidden; }
.intro-photos { position: absolute; inset: 0; }
.intro-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.intro::after { content: ""; position: absolute; inset: 0; background: rgb(var(--shade) / .5); }
.intro-brand {
  position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; color: #fff; text-align: center; padding: 24px;
}
.intro-zh, .intro-en { opacity: 0; }
.intro-zh { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 4.4vw, 48px); letter-spacing: .32em; padding-left: .32em; }
.intro-en { font-family: var(--display); font-style: italic; font-size: clamp(14px, 1.6vw, 18px); letter-spacing: .3em; color: var(--brass-light); }
@keyframes introImg { to { opacity: 1; } }
@keyframes introZoom { from { transform: scale(1.02); } to { transform: scale(1.16); } }
.intro.is-run .intro-zh { animation: rise 1s var(--ease) .1s both; }
.intro.is-run .intro-en { animation: rise 1s var(--ease) .35s both; }
.intro.is-run .intro-photos { animation: introZoom 6s linear both; }
.intro.is-run .intro-photos img { animation: introImg 1.6s var(--ease-io) forwards; }
.intro.is-run .intro-photos img:nth-child(1) { animation-delay: .4s; }
.intro.is-run .intro-photos img:nth-child(2) { animation-delay: 1.8s; }
.intro.is-run .intro-photos img:nth-child(3) { animation-delay: 3.2s; }

/* ---------- 優惠橫條 ---------- */
.notice { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 20px; }
.notice-en { margin: 0; font-family: var(--display); font-style: italic; font-size: 20px; color: var(--brass-ink); }
.notice h2 { margin: 0 !important; letter-spacing: .12em; color: var(--ink) !important; }
@media (max-width: 600px) { .notice { grid-template-columns: auto 1fr; } .notice > div { grid-column: 1 / -1; } }

/* ---------- 關於 ---------- */
.about.has-collage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about .prose { line-height: 2; letter-spacing: .04em; }
.collage { position: relative; aspect-ratio: 1 / .92; }
.collage::before {
  content: ""; position: absolute; left: 12%; top: 8%; width: 58%; height: 70%;
  border: 1px solid var(--brass); opacity: .45;
}
.collage-item { position: absolute; display: block; overflow: hidden; background: var(--line); box-shadow: 0 20px 50px rgb(var(--shade) / .18); }
.collage-item img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.1);
  transition: filter .6s var(--ease);
}
.collage-item span {
  position: absolute; left: 12px; bottom: 10px; font-size: 12px; letter-spacing: .08em; color: #fff;
  text-shadow: 0 1px 6px rgb(0 0 0 / .5); opacity: 0; transform: translateY(6px); transition: .5s var(--ease);
}
.collage-item:hover span { opacity: 1; transform: none; }
.collage-item:hover img { filter: brightness(1.06); }
.collage .c1 { left: 0; top: 0; width: 50%; aspect-ratio: 3 / 4; }
.collage .c2 { right: 0; top: 16%; width: 44%; aspect-ratio: 4 / 5; z-index: 1; }
.collage .c3 { left: 26%; bottom: 0; width: 38%; aspect-ratio: 1; z-index: 2; }
@media (max-width: 860px) {
  .about.has-collage { grid-template-columns: 1fr; }
  .collage { aspect-ratio: auto; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 10px; }
  .collage::before { display: none; }
  .collage-item, .collage .c1, .collage .c2, .collage .c3 { position: relative; inset: auto; width: auto; box-shadow: none; }
  .collage .c1 { grid-row: span 2; aspect-ratio: auto; }
  .collage .c2, .collage .c3 { aspect-ratio: 4 / 3; }
  .collage-item span { opacity: 1; transform: none; }
}

/* ---------- 房型卡片 ---------- */
.rooms-head { margin-bottom: 48px; }
.floor-label { font-family: var(--serif); letter-spacing: .08em; }
.room-photo { position: relative; }
.room-photo img { transition: transform 1.2s var(--ease); }
.room-veil {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgb(var(--shade) / .42); opacity: 0; transition: opacity .5s var(--ease);
}
.room-veil span {
  padding: 8px 18px; border: 1px solid rgba(255,255,255,.75); color: #fff;
  font-family: var(--display); font-style: italic; font-size: 15px; letter-spacing: .14em;
  transform: translateY(8px); transition: transform .6s var(--ease);
}
@media (hover: hover) {
  .room-card a:hover .room-photo img { transform: scale(1.08); }
  .room-card a:hover .room-veil { opacity: 1; }
  .room-card a:hover .room-veil span { transform: none; }
}
.room-no { font-family: var(--display); font-variant-numeric: lining-nums; letter-spacing: .02em; }
.room-name { letter-spacing: .06em; }
.chip { transition: background-color .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--brass); }

/* ---------- 周邊 ---------- */
.nearby-no {
  display: block; margin-bottom: 4px; font-family: var(--display); font-style: italic;
  font-size: 34px; line-height: 1; color: var(--accent-on-surface); opacity: .8;
}

/* ---------- 頁尾 ---------- */
.foot-en { font-family: var(--display); font-style: italic; letter-spacing: .12em; color: var(--on-surface-faint); margin-top: -6px; }

/* ---------- 快捷列 ---------- */
.quickbar { position: fixed; z-index: 30; }
.quickbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; }
.quickbar svg { width: 20px; height: 20px; fill: currentColor; }
.quickbar span { font-size: 11px; letter-spacing: .08em; }
@media (min-width: 721px) {
  .quickbar { right: 24px; bottom: 24px; }
  .quickbar a:not(.to-top) { display: none; }
  .quickbar .to-top {
    width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--on-surface);
    box-shadow: 0 6px 20px rgb(var(--shade) / .18); border: 1px solid var(--surface-border);
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: .5s var(--ease);
  }
  .quickbar .to-top span { font-family: var(--display); font-size: 10px; }
  .show-top .quickbar .to-top { opacity: 1; transform: none; pointer-events: auto; }
  .quickbar .to-top:hover { background: var(--brass); color: var(--on-brass); }
}
@media (max-width: 720px) {
  :root { --qb-h: 58px; }
  body { padding-bottom: calc(var(--qb-h) + env(safe-area-inset-bottom)); }
  .quickbar {
    left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
    height: calc(var(--qb-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); color: var(--on-surface); border-top: 1px solid var(--surface-border);
    box-shadow: 0 -6px 20px rgb(var(--shade) / .08);
  }
  .quickbar a:first-child { background: var(--brass); color: var(--on-brass); }
  .home .hero { min-height: calc(100svh - var(--qb-h)); }
}

/* ---------- 房間頁 ---------- */
.room-kicker { font-family: var(--display); font-variant-numeric: lining-nums; font-weight: 500; }
.room-kicker span {
  display: block; margin-bottom: 6px; font-size: 15px; font-style: italic; letter-spacing: .3em; color: var(--stone);
}
.js .room-kicker, .js .room-title { animation: rise 1s var(--ease) both; }
.js .room-title { animation-delay: .15s; }
.gallery-main img { transition: opacity .35s var(--ease), transform 1.2s var(--ease); }
.gallery-main:hover img { transform: scale(1.02); }
.gallery-main img.is-fading { opacity: 0; }
.gallery-thumbs button { transition: opacity .3s; }
@keyframes lbIn { from { opacity: 0; } }
@keyframes lbImg { from { opacity: 0; transform: scale(.96); } }
.lightbox:not([hidden]) { animation: lbIn .35s var(--ease); }
.lightbox:not([hidden]) img { animation: lbImg .5s var(--ease); }
.room-pager a { transition: color .3s; }
.room-pager a:hover { color: var(--brass-ink); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .hero-text > *, .hero-go .hero-text > * { opacity: 1; animation: none; }
  .hero-slide, .hero-slide img, .room-photo img, .collage-item img { transition: none; transform: none; }
  .scroll-down i::before, .hero-bar i.run, .btn-arrow:hover::after, .link-arrow:hover::after { animation: none; }
  .js .room-kicker, .js .room-title, .lightbox:not([hidden]), .lightbox:not([hidden]) img { animation: none; }
  .js .intro { display: none; }
}

@media (min-width: 601px) {
  .floor-label { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .28em; font-size: clamp(28px, 3vw, 38px); justify-self: center; }
}
@media (max-width: 720px) { .call { display: none; } }

/* ---------- 優惠專案 ---------- */
.offers { background: #fff; }
.offers-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.track-nav { display: flex; gap: 10px; margin-bottom: 32px; }
.track-nav[hidden] { display: none; }
.track-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background-color .3s, color .3s, border-color .3s, opacity .3s;
}
.track-btn:hover:not(:disabled) { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.track-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 720px) { .track-nav { display: none; } }

.preview-note { margin: 0; padding: 8px var(--pad); background: #7a5520; color: #fff; font-size: 14px; text-align: center; }
.promo-page { padding: 16px var(--pad) 72px; }
.promo-band {
  position: relative; overflow: hidden; margin: 0 0 clamp(28px, 5vw, 48px);
  padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 56px);
  background: var(--pc-bg); color: var(--pc-fg);
}
.promo-band h1 { position: relative; margin: 6px 0 12px; max-width: 20em; font-size: clamp(26px, 4vw, 42px); font-weight: 700; letter-spacing: .06em; line-height: 1.35; }
.promo-band .pc-kicker, .promo-band-date { position: relative; }
.promo-band-date { margin: 0; color: var(--pc-mu); letter-spacing: .12em; font-size: 15px; }
.promo-band-mark {
  position: absolute; right: -12px; bottom: -0.32em; font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: clamp(110px, 16vw, 220px); line-height: 1; color: var(--pc-ac); opacity: .14; pointer-events: none; white-space: nowrap;
}
.js .promo-band > :not(.promo-band-mark) { animation: rise 1s var(--ease) both; }
.js .promo-band > :nth-child(3) { animation-delay: .12s; }
.js .promo-band > :nth-child(4) { animation-delay: .24s; }
.promo-body.has-photos { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.promo-body .gallery { position: sticky; top: 92px; }
.promo-body:not(.has-photos) .promo-text { max-width: 40em; }
.promo-text .prose { max-width: none; font-size: 16.5px; line-height: 2; letter-spacing: .03em; }
.promo-text .prose a { color: var(--brass-ink); word-break: break-all; }
.gallery.is-poster .gallery-main { aspect-ratio: auto; max-height: none; background: transparent; }
.gallery.is-poster .gallery-main img { height: auto; max-height: 82vh; object-fit: contain; }
.promo-facts { display: grid; grid-template-columns: auto 1fr; margin: 28px 0 0; border-top: 1px solid var(--line); }
.promo-facts dt, .promo-facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.promo-facts dt { font-family: var(--serif); padding-right: 28px; color: var(--stone); }
.promo-facts dd a { color: var(--brass-ink); }
.promo-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-line::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #06c755; margin-right: 10px; vertical-align: middle; }
.btn-line:hover { border-color: var(--ink); }
.promo-others { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .promo-body.has-photos { grid-template-columns: 1fr; }
  .promo-body .gallery { position: static; }
}
@media (prefers-reduced-motion: reduce) { .js .promo-band > * { animation: none; } }

/* ---------- 房型分組 ---------- */
.floor-plain, .floor-row { grid-template-columns: 1fr; }
.floor-row { gap: 18px; }
.floor-price {
  margin: 0; display: flex; align-items: baseline; gap: 14px;
  font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.2vw, 26px);
  color: var(--lake); letter-spacing: .04em; font-variant-numeric: lining-nums;
}

.room-info { grid-template-columns: auto 1fr; row-gap: 6px; }
.room-price {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px;
  white-space: nowrap; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.room-price .rp-list { color: var(--stone); text-decoration-thickness: 1px; }
.room-price .rp em { font-style: normal; font-size: .9em; color: var(--stone); margin-right: 3px; }
.room-price .rp-ask { color: var(--stone); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 首頁彈窗 ---------- */
.promo-pop {
  width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 28px 24px 24px; border: 0; background: var(--paper); color: var(--ink); text-align: center;
  box-shadow: 0 24px 60px rgb(0 0 0 / .35);
}
.promo-pop::backdrop { background: rgb(var(--shade) / .62); }
.promo-pop[open] { animation: pop-in .45s var(--ease) both; }
.promo-pop[open]::backdrop { animation: fade-in .45s ease both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.promo-pop-x {
  position: absolute; top: 6px; right: 8px; width: 44px; height: 44px;
  border: 0; background: none; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer;
}
.promo-pop-x:hover { color: var(--brass-ink); }
.promo-pop-kicker { margin: 4px 0 0; font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: .24em; padding-left: .24em; color: var(--lake); }
.promo-pop-card { display: flex; justify-content: center; margin: 12px 0 20px; }
.promo-pop-card .pcard { --pc-w: min(280px, calc(100vw - 80px)); }
.promo-pop-go { min-width: 200px; justify-content: center; }
.promo-pop .btn-ghost-ink { border: 1px solid var(--lake); background: transparent; color: var(--lake); }
.promo-pop .btn-ghost-ink:hover { background: var(--lake); color: #fff; }
.promo-pop .pc-more { font-size: 17px; font-weight: 600; letter-spacing: .12em; }
.promo-pop:focus { outline: none; }
.promo-pop :focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
html.pop-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .promo-pop[open], .promo-pop[open]::backdrop { animation: none; } }

/* ---------- 前台不顯示房號 ---------- */
.room-info { grid-template-columns: 1fr; }
.room-name { font-size: 19px; }
.room-kicker { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .12em; line-height: 1.4; margin: 0 0 4px; color: var(--brass-ink); }
.room-kicker span { font-family: var(--display); }
@media (max-width: 600px) { .room-kicker { font-size: 17px; } .room-name { font-size: 16px; } }

/* ---------- 頁尾按鈕 ---------- */
.foot-links { gap: 8px; }
.foot-btn {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 7px 14px 7px 10px; border: 1px solid var(--surface-border); border-radius: 2px;
  color: var(--on-surface); text-decoration: none; font-size: 14px; letter-spacing: .04em;
  transition: border-color .3s, background-color .3s;
}
.foot-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; opacity: .85; }
.foot-btn:hover { border-color: var(--brass); background: rgb(255 255 255 / .04); }

/* ---------- 翻牌看板 ---------- */
.flap { --cell: 22px; display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; max-width: 520px; margin: 0 auto; }
.flap + .topnav, .ticker + .topnav { margin-left: 0; }
.flap-label { font-family: var(--display); font-style: italic; font-size: 13px; letter-spacing: .18em; color: var(--brass-ink); }
.js .home .topbar:not(.is-solid) .flap-label { color: #e2c07c; }
.flap-board {
  flex: 0 1 auto; min-width: 0; display: flex; gap: 2px; padding: 4px; overflow: hidden;
  background: #0d0f10; border-radius: 4px; box-shadow: inset 0 1px 3px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .06);
  text-decoration: none; cursor: default;
}
.flap-board[href] { cursor: pointer; }
.flap-text { color: #efe4c8; font-size: 14px; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flap-cell {
  position: relative; flex: none; display: grid; place-items: center; width: var(--cell); height: 30px; perspective: 120px;
  background: linear-gradient(#2a2d2f 0 calc(50% - .5px), #0b0c0d calc(50% - .5px) calc(50% + .5px), #212426 calc(50% + .5px) 100%); border-radius: 2px;
  color: #efe4c8; font: 600 16px/1 -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.flap-cell b { position: relative; font-weight: inherit; display: block; transform-origin: 50% 50%; backface-visibility: hidden; text-shadow: 0 1px 0 rgb(0 0 0 / .5); }
.flap-cell.flip b { animation: flap .12s ease-in; }
@keyframes flap { from { transform: rotateX(80deg); opacity: .3; } to { transform: none; opacity: 1; } }
.flap-board[href]:hover .flap-cell { color: #fff3d6; }
.brand, .topnav, .call { flex-shrink: 0; }
.brand-zh, .brand-en, .topnav a { white-space: nowrap; }
@media (max-width: 1279px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .flap, .ticker { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .flap + .topnav, .ticker + .topnav { margin-left: auto; }
  html { scroll-padding-top: 112px; }
}
@media (max-width: 720px) { .flap { --cell: 20px; } .flap-cell { height: 28px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .flap-cell.flip b { animation: none; } }

/* ---------- 留言板 ---------- */
.gb { padding: 56px var(--pad) 96px !important; }
.gb-intro { max-width: 640px; color: var(--stone); margin: 18px 0 40px; }
.gb-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 48px; align-items: start; }
.gb-form { position: sticky; top: 96px; display: grid; gap: 16px; padding: 24px; background: #fff; border-top: 3px solid var(--brass); }
.gb-form label { display: grid; gap: 6px; font-size: 14px; letter-spacing: .04em; }
.gb-form label small { color: var(--stone); font-size: 12px; }
.gb-form input, .gb-form textarea {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink);
}
.gb-form input:focus, .gb-form textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent; }
.gb-form textarea { resize: vertical; min-height: 140px; }
.gb-form .btn { justify-self: start; }
.gb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gb-ok, .gb-err { margin: 0; padding: 10px 14px; font-size: 14px; }
.gb-ok { background: #e6f0e8; color: #24553a; }
.gb-err { background: #f6e3e0; color: #8a2a20; }
.gb-list { display: grid; gap: 0; }
.gb-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.gb-item:first-child { padding-top: 0; }
.gb-item header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.gb-item header b { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.gb-item time { font-family: var(--display); font-size: 13px; letter-spacing: .08em; color: var(--stone); }
.gb-body p { margin: 0 0 8px; overflow-wrap: anywhere; }
.gb-reply { margin-top: 14px; padding: 14px 18px; background: var(--paper); border-left: 3px solid var(--brass); font-size: 15px; }
.gb-reply p { margin: 0 0 6px; }
.gb-reply-by { font-size: 13px; letter-spacing: .08em; color: var(--brass-ink); }
.gb-empty { color: var(--stone); }
.gb-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.gb-pager a, .gb-pager span { min-width: 38px; padding: 6px 10px; text-align: center; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.gb-pager span { background: var(--lake); border-color: var(--lake); color: #fff; }
@media (max-width: 860px) {
  .gb-grid { grid-template-columns: 1fr; gap: 40px; }
  .gb-form { position: static; }
}

/* ---------- 跑馬燈 ---------- */
.ticker { display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; max-width: 560px; margin: 0 auto; }
.ticker-view {
  position: relative; flex: 1 1 auto; min-width: 0; height: 34px; overflow: hidden;
  background: #0d0f10; border-radius: 17px; box-shadow: inset 0 1px 3px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .06);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
          mask: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.ticker-track {
  display: flex; align-items: center; height: 100%; width: max-content; margin: 0; padding: 0 0 0 18px; list-style: none;
  white-space: nowrap; font-size: 14px; letter-spacing: .06em; color: #efe4c8;
}
.ticker-track li { display: flex; align-items: center; }
.ticker-track li::after { content: "◆"; margin: 0 22px; font-size: 8px; color: #c9a25e; }
.ticker-track a { color: #f6e7c1; text-decoration: underline; text-decoration-color: rgb(246 231 193 / .45); text-underline-offset: 4px; }
.ticker-track a:hover { color: #fff; text-decoration-color: #fff; }
.ticker.is-run .ticker-track { animation: ticker var(--dur, 30s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(var(--shift, -50%)); } }
@media (max-width: 1279px) { .ticker { order: 5; flex-basis: 100%; max-width: none; margin: 0; } }
@media (max-width: 720px) { .ticker-view { height: 32px; } .ticker-track { font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) {
  .ticker.is-run .ticker-track { animation: none; }
  .ticker-view { overflow-x: auto; -webkit-mask: none; mask: none; }
}

/* ---------- 手機選單 ---------- */
.menu-btn { display: none; }
@media (max-width: 720px) {
  .menu-btn {
    display: inline-grid; align-content: center; gap: 5px; margin-left: auto; width: 44px; height: 44px; padding: 0 10px;
    border: 0; background: none; color: inherit; cursor: pointer;
  }
  .menu-btn span { display: block; height: 2px; background: currentColor; border-radius: 1px; transition: transform .3s var(--ease), opacity .2s; }
  .topbar.nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topbar.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  .topbar.nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .js .home .topbar:not(.is-solid) .menu-btn { color: #fff; }
  .topbar.nav-open .topnav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    padding: 6px var(--pad) 14px; background: var(--surface); box-shadow: 0 14px 30px rgb(var(--shade) / .18);
  }
  .topbar.nav-open .topnav a { padding: 14px 4px; font-size: 16px; color: var(--on-surface) !important; border-bottom: 1px solid var(--surface-border); }
  .topbar.nav-open .topnav a::after { display: none; }
}
