/* 媧石皇家 demo 3 — 門市據點 (prefix v3-) */

/* ---------- 1. Hero ---------- */
.v3-hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; overflow: hidden; background: var(--dark); color: #fff; }
.v3-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.v3-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.v3-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 24, 22, .45) 0%, rgba(29, 24, 22, .12) 30%, rgba(29, 24, 22, .55) 62%, rgba(29, 24, 22, .9) 100%); pointer-events: none; }
.v3-hero__in { position: relative; z-index: 1; display: grid; gap: 26px; justify-items: start; padding-top: calc(var(--hd-h) + 80px); padding-bottom: clamp(40px, 5vw, 72px); }
.v3-hero__title { font-family: var(--f-zh-serif); font-size: clamp(2.3rem, 6vw, 6rem); line-height: 1.2; letter-spacing: .06em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.v3-hero__foot { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 64px; align-items: end; margin-top: 8px; }
.v3-hero__lead { max-width: 30em; font-size: var(--fs-lead); line-height: 1.9; color: rgba(255, 255, 255, .86); }
.v3-hero__jump { display: grid; gap: 0; min-width: min(380px, 100%); border-top: 1px solid rgba(255, 255, 255, .3); }
.v3-hero__jump a { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, .3); font: 400 1.125rem/1.4 var(--f-zh-serif); letter-spacing: .12em; transition: padding .4s var(--ease), background .4s; }
.v3-hero__jump a::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.v3-hero__jump a:hover { padding-left: 14px; background: rgba(255, 255, 255, .06); }
.v3-hero__jump small { font-size: .875rem; color: #E9C9C3; }
.v3-hero__cap { position: absolute; right: var(--gutter); top: calc(var(--hd-h) + 24px); font-size: var(--fs-label); letter-spacing: .12em; color: rgba(255, 255, 255, .72); }

/* ---------- 2. Stores ---------- */
.v3-stores__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px clamp(40px, 6vw, 112px); align-items: start; }
.v3-store { display: grid; gap: 0; scroll-margin-top: calc(var(--hd-h) + 16px); }
.v3-store + .v3-store { margin-top: clamp(0px, 8vw, 120px); }
.v3-store__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--ink); }
.v3-store__idx { display: flex; align-items: baseline; gap: 14px; font-size: var(--fs-small); letter-spacing: .2em; }
.v3-store__idx .num { font-size: 1.5rem; color: var(--burgundy); font-style: italic; }
.v3-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 99px; background: var(--burgundy-tint); color: var(--burgundy); font-size: var(--fs-label); letter-spacing: .1em; }
.v3-badge[hidden] { display: none; }
.v3-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.v3-badge.is-open { background: #E6EFE3; color: #2F5A34; }
.v3-badge.is-open i { animation: v3-pulse 2s var(--ease) infinite; }
@keyframes v3-pulse { 50% { opacity: .25; } }
.v3-store__fig { aspect-ratio: 4 / 3; min-height: 0; }
.v3-store__cap { margin-bottom: clamp(24px, 3vw, 40px); }
.v3-store__name { font-family: var(--f-zh-serif); font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.25; letter-spacing: .1em; }
.v3-store__en { margin-top: 6px; font: italic 400 1.125rem/1.4 var(--f-serif); letter-spacing: .04em; color: var(--muted); }
.v3-store__dl { margin-top: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.v3-store__dl > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.v3-store__dl dt { font-size: var(--fs-label); letter-spacing: .2em; color: var(--muted); padding-top: 3px; }
.v3-store__dl dd { font-size: var(--fs-body); line-height: 1.7; }
.v3-store__dl a { border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.v3-store__dl a:hover { color: var(--burgundy); border-color: var(--burgundy); }
.v3-store__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hours ribbon */
.v3-hours { margin-top: clamp(72px, 9vw, 136px); padding: clamp(24px, 3vw, 44px); background: var(--sand); border-radius: var(--r-lg); }
.v3-hours__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 24px; }
.v3-hours__t { font: 400 clamp(1.25rem, 1.8vw, 1.6rem)/1.4 var(--f-zh-serif); letter-spacing: .1em; }
.v3-hours__n { font-size: var(--fs-small); color: var(--muted); }
.v3-hours__scale, .v3-hours__rows li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 16px; align-items: center; }
.v3-hours__scale { position: relative; height: 22px; font-size: .8125rem; color: var(--muted); }
.v3-hours__scale span { position: absolute; transform: translateX(-50%); }
.v3-hours__scale span:nth-child(1) { left: calc(4rem + 16px); transform: none; }
.v3-hours__scale span:nth-child(2) { left: calc(4rem + 16px + (100% - 4rem - 16px) * .25); }
.v3-hours__scale span:nth-child(3) { left: calc(4rem + 16px + (100% - 4rem - 16px) * .5); }
.v3-hours__scale span:nth-child(4) { left: calc(4rem + 16px + (100% - 4rem - 16px) * .75); }
.v3-hours__scale span:nth-child(5) { right: 0; transform: none; }
.v3-hours__rows li { padding: 7px 0; }
.v3-hours__rows b { font-weight: 400; font-size: var(--fs-small); letter-spacing: .14rem; color: var(--muted); }
.v3-hours__bar { position: relative; height: 12px; border-radius: 99px; background: rgba(38, 32, 28, .07); }
.v3-hours__bar i { position: absolute; top: 0; bottom: 0; left: 52.083%; width: 37.5%; border-radius: 99px; background: rgba(107, 29, 44, .3); transform-origin: left; }
.v3-hours__rows li.is-today b { color: var(--burgundy); }
.v3-hours__rows li.is-today i { background: var(--burgundy); }
.v3-hours__rows li.is-today .v3-hours__bar::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: var(--now, 50%); width: 2px; border-radius: 2px; background: var(--ink); }

/* ---------- 3. Journey (pinned horizontal ≥992, native swipe below) ---------- */
.v3-journey { position: relative; overflow: hidden; padding-block: clamp(72px, 9vw, 120px) clamp(56px, 6vw, 88px); }
.v3-journey__in { display: flex; align-items: center; gap: clamp(40px, 5vw, 88px); }
.v3-journey__head { flex: 0 0 clamp(260px, 26vw, 380px); display: grid; gap: 22px; justify-items: start; }
.v3-journey__head .h2 { font-family: var(--f-zh-serif); }
.v3-journey__hint { font-size: var(--fs-label); letter-spacing: .2em; color: var(--on-dark-muted); }
.v3-journey__hint-m { display: none; }
.v3-journey__track { flex: none; display: flex; gap: clamp(18px, 2vw, 28px); outline-offset: 4px; }
.v3-leg { flex: 0 0 clamp(280px, 24vw, 360px); display: grid; gap: 20px; align-content: start; }
.v3-leg:nth-child(even) { padding-top: clamp(24px, 4vw, 64px); }
.v3-leg__fig { aspect-ratio: 4 / 5; min-height: 0; overflow: hidden; border-radius: var(--r); background: rgba(244, 237, 227, .06); }
.v3-leg__fig img { width: 100%; height: 100%; object-fit: cover; }
.v3-leg__txt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: baseline; }
.v3-leg__no { grid-row: span 2; font-size: 2rem; line-height: 1; color: #E9C9C3; font-style: italic; }
.v3-leg h3 { font: 400 clamp(1.2rem, 1.5vw, 1.4rem)/1.5 var(--f-zh-serif); letter-spacing: .08em; color: var(--on-dark); }
.v3-leg p { font-size: var(--fs-small); line-height: 1.85; color: var(--on-dark-muted); }
.v3-journey__prog { position: relative; z-index: 3; height: 1px; margin-top: clamp(32px, 4vw, 56px); background: rgba(244, 237, 227, .18); }
.v3-journey__prog span { position: absolute; inset: -1px 0; background: var(--on-dark); transform-origin: left; transform: scaleX(var(--hp, 0)); }
.v3-journey.is-pinned { height: 100vh; min-height: 640px; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--hd-h) * .5) 40px; }
.v3-journey.is-pinned .v3-journey__in { width: 100%; }
.v3-journey.is-pinned .v3-journey__head { position: relative; z-index: 2; align-self: stretch; align-content: center; background: var(--dark); box-shadow: -100vw 0 0 100vw var(--dark); }
.v3-journey.is-pinned .v3-journey__head::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: clamp(24px, 3vw, 48px); background: linear-gradient(90deg, var(--dark), rgba(29, 24, 22, 0)); pointer-events: none; }

/* ---------- 4. Booking ticket ---------- */
.v3-book__head { display: grid; gap: 20px; justify-items: start; margin-bottom: clamp(40px, 5vw, 72px); }
.v3-book__head .h2 { font-family: var(--f-zh-serif); }
.v3-ticket { --notch: 18px; position: relative; display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(200px, 260px); border-radius: var(--r-lg); background: var(--sand); overflow: hidden; }
.v3-ticket__stub { position: relative; display: grid; align-content: space-between; gap: 32px; padding: clamp(28px, 3vw, 44px); background: var(--burgundy-deep); color: var(--on-dark); }
.v3-ticket__free { font: 400 clamp(2.6rem, 4.4vw, 4rem)/1 var(--f-zh-serif); letter-spacing: .14em; }
.v3-ticket__facts { display: grid; gap: 8px; font-size: var(--fs-small); letter-spacing: .16em; color: var(--on-dark-muted); }
.v3-ticket__facts li { display: flex; align-items: center; gap: 10px; }
.v3-ticket__facts li::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.v3-ticket__main { display: grid; gap: 24px; align-content: start; padding: clamp(28px, 3.4vw, 52px); }
.v3-ticket__q { font: 400 clamp(1.1rem, 1.5vw, 1.35rem)/1.85 var(--f-zh-serif); letter-spacing: .06em; max-width: 30em; }
.v3-ticket__ch { border-top: 1px solid var(--line); }
.v3-ticket__ch a { display: grid; grid-template-columns: 2.4em minmax(0, 8em) minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: color .3s, padding .4s var(--ease); }
.v3-ticket__ch a::after { content: ""; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); align-self: center; }
.v3-ticket__ch a:hover { color: var(--burgundy); padding-left: 8px; }
.v3-ticket__ch .num { font-size: .875rem; color: var(--muted); }
.v3-ticket__ch b { font: 500 1.0625rem/1.4 var(--f-sans); letter-spacing: .06em; }
.v3-ticket__ch em { font-style: normal; font-size: var(--fs-small); color: var(--muted); }
.v3-ticket__note { font-size: var(--fs-small); line-height: 1.85; color: var(--muted); }
.v3-ticket__qr { position: relative; display: grid; align-content: center; justify-items: center; gap: 14px; padding: clamp(28px, 3vw, 40px); border-left: 2px dashed var(--line); text-align: center; }
.v3-ticket__qr::before, .v3-ticket__qr::after { content: ""; position: absolute; left: calc(var(--notch) * -1 - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%; background: var(--paper); }
.v3-ticket__qr::before { top: calc(var(--notch) * -1); }
.v3-ticket__qr::after { bottom: calc(var(--notch) * -1); }
.v3-ticket__qr img { width: min(180px, 100%); padding: 10px; background: #fff; border-radius: var(--r); }
.v3-ticket__qr p { font-size: var(--fs-label); letter-spacing: .2em; color: var(--muted); }
.v3-book__more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; color: var(--muted); font-size: var(--fs-small); }
.v3-book__more .link { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .v3-hero__foot { grid-template-columns: minmax(0, 1fr); }
  .v3-hero__jump { min-width: 0; width: 100%; }
  .v3-stores__grid { grid-template-columns: minmax(0, 1fr); }
  .v3-store + .v3-store { margin-top: 0; }
  .v3-journey__in { display: grid; gap: 40px; }
  .v3-journey__head { flex: none; }
  .v3-journey__hint-d { display: none; }
  .v3-journey__hint-m { display: inline; }
  .v3-journey__track { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .v3-journey__track::-webkit-scrollbar { display: none; }
  .v3-journey__track::after { content: ""; flex: 0 0 1px; }
  .v3-leg { flex-basis: clamp(250px, 44vw, 320px); scroll-snap-align: start; }
  .v3-leg:nth-child(even) { padding-top: 0; }
  .v3-ticket { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .v3-ticket__stub { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .v3-ticket__facts { grid-auto-flow: column; justify-content: end; gap: 18px; }
  .v3-ticket__qr::before, .v3-ticket__qr::after { display: none; }
}
@media (max-width: 640px) {
  .v3-hero { min-height: min(100svh, 760px); }
  .v3-hero__cap { top: auto; bottom: 14px; right: var(--gutter); font-size: .8125rem; }
  .v3-hero__in { padding-bottom: 52px; }
  .v3-leg { flex-basis: 78vw; }
  .v3-ticket { grid-template-columns: minmax(0, 1fr); }
  .v3-ticket__stub { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .v3-ticket__facts { grid-auto-flow: row; justify-content: start; }
  .v3-ticket__ch a { grid-template-columns: 2em minmax(0, 1fr) auto; }
  .v3-ticket__ch em { grid-column: 2; grid-row: 2; }
  .v3-ticket__ch a::after { grid-column: 3; grid-row: 1 / span 2; }
  .v3-ticket__qr { border-left: 0; border-top: 2px dashed var(--line); }
  .v3-store__dl > div { grid-template-columns: 5em minmax(0, 1fr); }
  .v3-hours__scale, .v3-hours__rows li { grid-template-columns: 3rem minmax(0, 1fr); gap: 10px; }
  .v3-hours__scale span:nth-child(1) { left: calc(3rem + 10px); }
  .v3-hours__scale span:nth-child(2) { left: calc(3rem + 10px + (100% - 3rem - 10px) * .25); }
  .v3-hours__scale span:nth-child(3) { left: calc(3rem + 10px + (100% - 3rem - 10px) * .5); }
  .v3-hours__scale span:nth-child(4) { left: calc(3rem + 10px + (100% - 3rem - 10px) * .75); }
}
@media (prefers-reduced-motion: reduce) {
  .v3-badge.is-open i { animation: none; }
}
