/* ==========================================================
   Champs Motor — 「金屬精密度與深邃信任感」 Sophisticated Tech & Deep Trust
   Earth-grey base · deep navy primary · silver/champagne metal accents
   Lime (#BADA55 family) appears ONLY inside the logo artwork.
   ========================================================== */
:root {
  /* Base (earth / matte grey) */
  --bg: #F2F2F2;            /* main matte grey */
  --bg-alt: #E5E5E5;        /* alt sections */
  --camel: #D4C4B7;         /* thin warm hairline only */
  --surface: #FAFAFA;       /* cards / panels (softer than pure white) */
  --white: #FFFFFF;
  /* Primary (water) */
  --navy-900: #001F3F;      /* header / hero / footer / primary buttons */
  --navy-950: #00172F;      /* hover / deeper */
  --navy-800: #0B2C52;
  --navy-700: #1D3F66;
  --titanium: #1A1A1A;      /* text + secondary dark UI */
  /* Metal accents */
  --silver: #C0C0C0;        /* lines, icons, rings */
  --silver-200: #D9DCDF;
  --silver-600: #8E959C;
  --gold: #D4AF37;          /* champagne gold — primary CTA */
  --gold-600: #BF9B2C;      /* hover */
  --gold-100: #F3EBD0;
  /* Ink / forest green (墨綠) — subtle accent ONLY, never a fill or primary */
  --accent-green: #0F3D2E;        /* ink green: hairlines, active underline, outline buttons */
  --accent-green-hover: #2F6B55;  /* softer forest: hover states */
  --accent-green-on-dark: #5E9C82;/* lifted tone so thin lines stay visible on navy */
  --accent-green-100: #E3ECE8;    /* faint tint for outline-button hover on light bg */
  /* Text */
  --text: var(--titanium);
  --text-muted: #4A5560;    /* 6.8:1 on #F2F2F2 */
  --text-on-dark: #E9EDF2;
  --text-on-dark-muted: #AEB8C2; /* 8.2:1 on navy */
  /* Lines */
  --line: #D6D8DB;
  --line-strong: #B9BEC4;
  --line-dark: rgba(192,192,192,.22);
  /* Functional */
  --danger: #8B1E2D;
  --danger-bg: #F6E9EB;
  --wa: #075E54;            /* WhatsApp's own green, small buttons only */
  /* Legacy aliases (admin.js / older markup) */
  --graphite-900: var(--navy-900);
  --graphite-950: var(--navy-950);
  --graphite-700: var(--navy-700);
  --graphite-600: var(--text-muted);
  --graphite-400: var(--silver-600);
  --graphite-300: var(--text-on-dark-muted);
  --graphite-200: var(--silver-200);
  --n-50: var(--bg);
  /* Texture */
  --brushed: repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, rgba(255,255,255,0) 1px 3px);
  --brushed-light: repeating-linear-gradient(90deg, rgba(0,31,63,.018) 0 1px, rgba(255,255,255,0) 1px 4px);
  --metal-line: linear-gradient(90deg, rgba(192,192,192,0), #C0C0C0 18%, #EDEDED 50%, #C0C0C0 82%, rgba(192,192,192,0));
  --shadow-sm: 0 1px 2px rgba(0,31,63,.06), 0 1px 1px rgba(0,0,0,.03);
  --shadow-md: 0 8px 24px -12px rgba(0,31,63,.28);
  --radius: 3px;
  --font: "Noto Sans TC", "Source Han Sans TC", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  --font-display: "Montserrat", "Roboto", "Noto Sans TC", system-ui, sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: .005em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.container { width: min(calc(var(--max) + 2 * var(--gutter)), 100%); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy-900); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 0; z-index: 9; }

/* —— Header (navy, brushed) —— */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--brushed), linear-gradient(180deg, #032748 0%, var(--navy-900) 100%); color: var(--text-on-dark); border-bottom: 1px solid rgba(192,192,192,.35); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.15; }
.brand-text { display: flex; flex-direction: column; }
.brand-mark { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #F7F7F7 60%, #ECECEC 100%); border: 2px solid var(--silver); box-shadow: 0 0 0 1px rgba(255,255,255,.25), inset 0 1px 2px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.25); display: grid; place-items: center; overflow: hidden; padding: 0; }
.brand-mark img { width: 52px; height: 52px; object-fit: contain; image-rendering: auto; }
.brand-en { font-family: var(--font-display); font-weight: 700; letter-spacing: .2em; font-size: .9rem; color: #fff; }
.brand-zh { font-size: .74rem; letter-spacing: .26em; color: var(--silver); margin-top: 4px; }
.nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: inline-flex; border: 1px solid rgba(192,192,192,.55); border-radius: var(--radius); overflow: hidden; }
.lang-toggle button { appearance: none; border: 0; background: transparent; color: var(--text-on-dark-muted); min-width: 44px; height: 36px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .06em; }
.lang-toggle button + button { border-left: 1px solid rgba(192,192,192,.55); }
.lang-toggle button[aria-pressed="true"] { color: var(--navy-900); background: linear-gradient(180deg, #F4F4F4, #C9CCCF); }

/* —— Buttons (rectangular, metal) —— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--navy-900); background: var(--navy-900); color: #fff; text-decoration: none; cursor: pointer; border-radius: var(--radius); font-weight: 700; letter-spacing: .04em; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn:hover { background: var(--navy-800); border-color: var(--navy-800); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .84rem; }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--silver-600); }
.btn-outline:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #054A42; border-color: #054A42; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
/* champagne gold primary CTA (navy text — 7.9:1). .btn-lime kept as alias for older markup. */
.btn-gold, .btn-lime { background: linear-gradient(180deg, #E2C35A 0%, var(--gold) 55%, #C49F2E 100%); color: var(--navy-900); border-color: #B8962A; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), var(--shadow-sm); }
.btn-gold:hover, .btn-lime:hover { background: linear-gradient(180deg, #D8B84C 0%, var(--gold-600) 100%); color: var(--navy-950); border-color: #A88824; }

/* —— Hero (photo + navy gradient overlay — Champs Motif, not a clone) —— */
.hero { position: relative; overflow: hidden; color: #fff; min-height: clamp(360px, 52vw, 520px);
  display: flex; align-items: flex-end; padding: 0 0 clamp(40px, 5vw, 64px); background: var(--navy-900); }
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-color: var(--navy-900);
  background-size: cover; background-position: center 40%; background-repeat: no-repeat;
  opacity: 0; transition: opacity .7s ease;
  transform: scale(1.02);
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(105deg, rgba(0,20,42,.88) 0%, rgba(0,31,63,.72) 42%, rgba(0,31,63,.35) 70%, rgba(0,31,63,.2) 100%),
    linear-gradient(0deg, rgba(0,20,42,.55) 0%, transparent 45%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--metal-line); z-index: 3; }
.hero-content { position: relative; z-index: 3; max-width: 36rem; padding-top: clamp(72px, 10vw, 120px); }
.hero-controls {
  position: absolute; right: var(--gutter); bottom: clamp(18px, 3vw, 28px);
  z-index: 4; display: flex; align-items: center; gap: 10px;
}
.hero-nav {
  appearance: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(192,192,192,.55); background: rgba(0,31,63,.55);
  color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(4px);
  transition: background .15s, border-color .15s;
}
.hero-nav:hover { background: var(--navy-900); border-color: var(--gold); color: var(--gold); }
.hero-dots { display: flex; gap: 8px; align-items: center; }
.hero-dot {
  appearance: none; width: 10px; height: 10px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(212,175,55,.85); background: transparent; cursor: pointer;
}
.hero-dot[aria-selected="true"] {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(0,31,63,.35);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
@media (max-width: 719px) {
  .hero-controls { right: 12px; bottom: 14px; gap: 6px; }
  .hero-nav { width: 36px; height: 36px; font-size: 1.25rem; }
}
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--silver); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--metal-line); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: .02em; font-weight: 700; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-sub { margin-top: 12px; max-width: 28em; color: var(--text-on-dark); font-size: 1.12rem; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero .btn-outline { color: #fff; border-color: rgba(192,192,192,.7); }
.hero .btn-outline:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.hero-note { margin-top: 12px; color: var(--text-on-dark-muted); font-size: .82rem; }

/* —— Quick vehicle finder (under hero) —— */
.quick-search { position: sticky; top: var(--header-h); z-index: 35;
  background: var(--surface); border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 6px 18px -12px rgba(0,31,63,.35); }
.quick-search-inner { padding: 14px 0 12px; display: grid; gap: 12px; }
.finder { display: grid; gap: 12px; }
.finder-title { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.finder-label { font-family: var(--font-display); font-weight: 700; letter-spacing: .08em;
  color: var(--navy-900); font-size: .95rem; }
.finder-hint { color: var(--text-muted); font-size: .78rem; }
.finder-fields {
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
}
.finder-field { display: grid; gap: 4px; min-width: 0; }
.finder-field > span {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
}
.finder-field-grow { grid-column: 1 / -1; }
.finder-q, .finder-input, .finder-select {
  height: 42px; border: 1px solid var(--line-strong); padding: 0 12px;
  background: #fff; border-radius: var(--radius); color: var(--titanium); width: 100%;
  font-size: .95rem;
}
.finder-q:focus, .finder-input:focus, .finder-select:focus {
  border-color: var(--navy-900); outline: none; box-shadow: 0 0 0 3px rgba(0,31,63,.12);
}
.finder-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.finder-go { min-height: 42px; white-space: nowrap; }
.finder-reset { min-height: 42px; }
@media (min-width: 720px) {
  .finder-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .finder-field-grow { grid-column: span 2; }
  .finder-actions { align-items: end; padding-bottom: 1px; }
}
@media (min-width: 1040px) {
  .finder-fields { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
}
.quick-search { z-index: 35; }
.quick-search-inner { padding: 12px 0 10px; }

/* —— Sections —— */
.section { padding: clamp(44px, 6vw, 72px) 0; background: var(--bg); }
.section-stock { padding-top: clamp(28px, 4vw, 40px); }
.section-alt { background: var(--brushed-light), var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head-tight { margin-bottom: 20px; }
.section-head-tight p { margin-top: 8px; font-size: .95rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy-900); }
.section h2 { color: var(--navy-900); }
.section-head p { margin-top: 12px; color: var(--text-muted); }
.kicker { font-family: var(--font-display); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.kicker > span:first-child { display: inline-block; width: 28px; height: 1px; background: var(--silver-600); margin-right: 12px; vertical-align: middle; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line-strong); }
.filters button { appearance: none; border: 0; background: none; cursor: pointer; padding: 10px 16px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; letter-spacing: .03em; }
.filters button:hover { color: var(--navy-900); }
.filters button[aria-pressed="true"] { color: var(--navy-900); font-weight: 700; border-bottom-color: var(--navy-900); }
.search { height: 42px; border: 1px solid var(--line-strong); padding: 0 12px; min-width: min(280px, 100%); background: var(--surface); border-radius: var(--radius); }
.search:focus { border-color: var(--navy-900); outline: none; box-shadow: 0 0 0 3px rgba(0,31,63,.12); }

/* —— Product cards (inventory feel — matte + gold/navy ribbon) —— */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--silver); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow-md); border-top-color: var(--navy-900); }
.card-media { position: relative; aspect-ratio: 4/3; background: linear-gradient(180deg, #EEF0F2, #E2E5E8); border-bottom: 1px solid var(--line); cursor: pointer; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.04) brightness(1.01); }
.card.is-parts .card-media img { object-fit: contain; filter: saturate(.88) contrast(1.06) brightness(1.01) hue-rotate(-4deg); }
.ph { height: 100%; display: grid; place-items: center; color: var(--silver-600); font-size: .85rem; }
.card-ribbon {
  position: absolute; top: 12px; left: -6px; z-index: 2;
  background: linear-gradient(180deg, #E2C35A 0%, var(--gold) 55%, #C49F2E 100%);
  color: var(--navy-900); font-family: var(--font-display); font-weight: 700;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px 6px 16px; border: 1px solid #B8962A;
  box-shadow: 2px 3px 8px rgba(0,31,63,.28), inset 0 1px 0 rgba(255,255,255,.4);
  max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-ribbon::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 0;
  border-style: solid; border-width: 0 6px 6px 0; border-color: transparent #8A6E1C transparent transparent;
}
.card-ribbon.is-navy {
  background: linear-gradient(180deg, #0B2C52 0%, var(--navy-900) 100%);
  color: #fff; border-color: rgba(192,192,192,.45);
}
.card-ribbon.is-navy::after { border-color: transparent #00101F transparent transparent; }
.card-ribbon.is-sold {
  background: linear-gradient(180deg, #243B55 0%, #0B1F33 100%);
  color: #E8ECF0;
  border-color: rgba(192,192,192,.35);
  letter-spacing: .14em;
}
.card-ribbon.is-sold::after { border-color: transparent #061018 transparent transparent; }
.card.is-sold .card-media img { filter: saturate(.75) contrast(1.02) brightness(.92); }
.card-media.has-sold-stamp,
.detail-main-frame.has-sold-stamp,
.detail-thumb.has-sold-stamp {
  position: relative;
}
.sold-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%) rotate(-18deg);
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(232, 236, 240, 0.92);
  background: rgba(11, 31, 51, 0.55);
  border: 2px solid rgba(192, 198, 206, 0.55);
  padding: 8px 18px;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 16, 31, 0.35);
  white-space: nowrap;
  line-height: 1;
}
.sold-stamp.is-detail {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  padding: 10px 22px;
}
.sold-stamp.is-thumb {
  font-size: .62rem;
  letter-spacing: .12em;
  padding: 3px 6px;
  border-width: 1px;
  transform: translate(-50%, -50%) rotate(-16deg);
  background: rgba(11, 31, 51, 0.62);
}
.price.is-sold-out {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--navy-800); letter-spacing: .08em; margin-top: 6px;
}
.detail-specs-prices.is-sold-out .detail-specs-price.is-sold-out {
  border-top-color: #0B1F33;
}
.detail-specs-price.is-sold-out .detail-specs-price-amt {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem); letter-spacing: .1em;
  color: var(--navy-900);
}
.detail-status.is-sold {
  background: linear-gradient(180deg, #243B55 0%, #0B1F33 100%);
  color: #E8ECF0;
  border-color: rgba(192,192,192,.4);
  letter-spacing: .14em;
}
.sale-status-radios {
  display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 4px 0 6px;
}
.sale-status-select {
  font: inherit; font-size: .8rem;
  padding: 4px 8px; border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--titanium);
  max-width: 5.5rem;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tag { font-family: var(--font-display); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-700); }
.card h3 { font-size: 1.12rem; color: var(--titanium); line-height: 1.3; }
.card h3 button { appearance: none; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; font-weight: 700; }
.card h3 button:hover { color: var(--navy-800); text-decoration: underline; text-decoration-color: var(--silver); text-underline-offset: 3px; }
.blurb { display: none; } /* dense text off cards — detail dialog holds copy */
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--navy-900); letter-spacing: .01em; margin-top: 4px; }
.price.is-ask { font-size: 1.05rem; color: var(--navy-700); }
.price-dual { display: grid; gap: 4px; margin-top: 6px; }
.price-row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 10px; line-height: 1.25;
}
.price-lab {
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .06em; color: var(--text-muted);
}
.price-amt {
  font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  color: var(--navy-900); letter-spacing: .01em;
}
.detail-price-block { display: grid; gap: 6px; margin-top: 10px; }
.detail-price-row .price-lab { font-size: .82rem; }
.detail-price-row .price-amt { font-size: 1.55rem; }
.detail-price-lg.is-ask { font-size: 1.15rem; color: var(--navy-700); }
.price-note { color: var(--text-muted); font-size: .78rem; }
.stock-foot-note { margin-top: 16px; }
.sku { color: var(--text-muted); font-size: .78rem; font-family: var(--font-display); letter-spacing: .04em; }
.card-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: auto; padding-top: 4px;
}
.card-actions .btn { width: 100%; margin-top: 0; }
.card .btn { margin-top: auto; }
@media (max-width: 380px) {
  .card-actions { grid-template-columns: 1fr; }
}
.filters { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line-strong); overflow-x: auto; }
.quick-search .filters { border-bottom: 0; gap: 6px; }
.quick-search .filters button {
  appearance: none; border: 1px solid var(--line-strong); background: #fff; cursor: pointer;
  padding: 8px 14px; color: var(--text-muted); border-radius: 999px; margin: 0; letter-spacing: .02em; font-size: .9rem;
}
.quick-search .filters button:hover { color: var(--navy-900); border-color: var(--navy-700); }
.quick-search .filters button[aria-pressed="true"] {
  color: #fff; font-weight: 700; background: var(--navy-900); border-color: var(--navy-900);
}

.prose { white-space: pre-line; color: var(--text); }
.prose.muted, .muted { color: var(--text-muted); }
.split { display: grid; gap: 28px; }
.rule-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.rule-list article { padding: 22px 0 22px 18px; border-bottom: 1px solid var(--line); position: relative; }
.rule-list article::before { content: ""; position: absolute; left: 0; top: 28px; width: 6px; height: 6px; border: 1px solid var(--silver-600); transform: rotate(45deg); }
.rule-list h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--navy-900); }

.quotes { display: grid; gap: 16px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.quote p { font-size: 1rem; }
.quote footer { margin-top: 14px; color: var(--text-muted); font-size: .88rem; }
.t-grid { display: grid; gap: 12px; margin-top: 22px; }
.t-grid figure { margin: 0; background: var(--surface); border: 1px solid var(--line); }
.t-grid img { width: 100%; height: 220px; object-fit: contain; background: var(--bg); }
.t-grid figcaption { padding: 10px 12px; font-size: .85rem; color: var(--text-muted); }

.plates { display: grid; gap: 8px; grid-template-columns: 1fr; }
.plate { display: flex; justify-content: space-between; gap: 12px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, #FBFBFB, #EDEEEF); padding: 12px 14px; border-radius: var(--radius); }
.plate b { font-family: var(--font-display); letter-spacing: .08em; color: var(--navy-900); }

.contact-grid { display: grid; gap: 18px; }
.contact-card { border-top: 1px solid var(--navy-900); padding-top: 14px; }
.contact-card a { color: var(--navy-900); }

/* —— Footer (navy + camel hairline) —— */
.site-footer { background: var(--brushed), var(--navy-900); color: var(--text-on-dark-muted); padding: 40px 0; font-size: .88rem; border-top: 3px solid var(--camel); }
.site-footer a { color: #fff; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }

.dialog { position: fixed; inset: 0; background: rgba(0,20,42,.62); z-index: 60; display: grid; place-items: center; padding: 20px; backdrop-filter: blur(2px); }
.dialog-card { background: var(--surface); width: min(760px, 100%); max-height: min(86vh, 860px); overflow: auto; padding: 24px; border-radius: var(--radius); border-top: 3px solid var(--navy-900); box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); }
.dialog-card h3 { font-size: 1.35rem; margin: 8px 0 12px; color: var(--navy-900); }
.dialog-card img { width: 100%; max-height: 360px; object-fit: contain; background: var(--bg); margin-bottom: 14px; }
.confirm-card { width: min(420px, 100%); }

/* —— Admin —— */
.admin-body { background: var(--bg); min-height: 100vh; --admin-bar-h: 72px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--brushed), linear-gradient(160deg, #0A2B50 0%, var(--navy-900) 55%, #00142A 100%); }
.login-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--silver); border-top: 3px solid var(--gold); padding: 28px; border-radius: var(--radius); box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); }
.login-card .brand-mark { margin-bottom: 14px; }
.login-card .brand-en { color: var(--navy-900); }
.login-card h1 { font-size: 1.4rem; margin: 4px 0 8px; color: var(--navy-900); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: .85rem; font-weight: 700; color: var(--titanium); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-strong); background: #fff; padding: 10px 12px; border-radius: var(--radius); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-900); outline: none; box-shadow: 0 0 0 3px rgba(0,31,63,.12); }
.field textarea { min-height: 88px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--navy-900); }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0 16px; }
.error { color: var(--danger); background: var(--danger-bg); padding: 8px 10px; margin-bottom: 12px; border-left: 2px solid var(--danger); }

.admin-bar { position: sticky; top: 0; z-index: 60; background: var(--brushed), linear-gradient(180deg, #032748 0%, var(--navy-900) 100%); color: #fff; border-bottom: 1px solid rgba(192,192,192,.35); }
.admin-bar .header-inner { min-height: 72px; }
.admin-bar a { color: #fff; text-decoration: none; }
.admin-bar .brand-mark { width: 50px; height: 50px; }
.admin-bar .brand-mark img { width: 40px; height: 40px; object-fit: contain; }
.admin-bar .btn-outline { color: #fff; border-color: rgba(192,192,192,.6); }
.admin-bar .btn-outline:hover { background: #fff; color: var(--navy-900); }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-strong); margin: 8px 0 18px; overflow-x: auto; }
.tabs button { appearance: none; border: 0; background: none; cursor: pointer; padding: 12px 18px; color: var(--text-muted); border-bottom: 2px solid transparent; white-space: nowrap; letter-spacing: .03em; }
.tabs button:hover { color: var(--navy-900); }
.tabs button[aria-pressed="true"] { color: var(--navy-900); font-weight: 700; border-bottom-color: var(--navy-900); }
.panel { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--silver); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.plist { display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); padding: 8px; background: var(--surface); border-radius: var(--radius); }
.prow:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.prow img, .thumb-ph { width: 72px; height: 54px; object-fit: contain; background: var(--bg); }
.thumb-ph { display: grid; place-items: center; color: var(--silver-600); font-size: .7rem; }
.prow h3 { font-size: .95rem; font-family: var(--font); color: var(--titanium); }
.prow .meta { color: var(--text-muted); font-size: .8rem; }
.prow .ops { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }

.content-block { border-top: 1px solid var(--line); padding: 14px 0; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }


/* —— Dropdown / mobile primary nav (Wix-aligned structure) —— */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 36px; margin-left: 4px;
  border: 1px solid rgba(192,192,192,.55); border-radius: var(--radius);
  background: transparent; color: #fff; cursor: pointer;
  font-size: 1.25rem; line-height: 1;
}
.nav-toggle[aria-expanded="true"] { background: rgba(255,255,255,.12); }
.nav { display: none; align-items: center; gap: 4px 18px; flex-wrap: wrap; position: relative; }
.nav-item { position: relative; }
.nav-item > a, .nav-item > button.nav-trigger {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  text-decoration: none; font: inherit; font-size: .82rem; font-weight: 500;
  letter-spacing: .04em; padding: 8px 2px; color: var(--text-on-dark);
  border-bottom: 1px solid transparent; display: inline-flex; align-items: center; gap: 4px;
}
.nav-item > a:hover, .nav-item > button.nav-trigger:hover { border-bottom-color: var(--accent-green-on-dark); color: #fff; }
.nav-item > a[aria-current="page"], .nav-item.is-open > button.nav-trigger { color: #fff; border-bottom: 2px solid var(--accent-green-on-dark); }
.nav-trigger::after { content: "▾"; font-size: .65rem; opacity: .85; }
.nav-dd {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: rgba(255,255,255,.72); color: var(--titanium);
  border: 1px solid rgba(192,192,192,.45);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px -14px rgba(0,31,63,.35), inset 0 1px 0 rgba(255,255,255,.65);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding: 8px 0; z-index: 50;
}
.nav-item.is-open > .nav-dd, .nav-item:focus-within > .nav-dd { display: block; }
.nav-dd a {
  display: block; padding: 9px 16px; text-decoration: none; color: var(--titanium);
  font-size: .88rem; border: 0; border-bottom: 0 !important; letter-spacing: 0; font-weight: 500;
}
.nav-dd a:hover { background: rgba(0,31,63,.08); color: var(--navy-900); }
.nav-dd .nav-sub { position: relative; }
.nav-dd .nav-sub > button {
  appearance: none; width: 100%; text-align: left; background: transparent; border: 0;
  padding: 9px 16px; font: inherit; font-size: .88rem; color: var(--titanium); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-dd .nav-sub > button::after { content: "▸"; font-size: .7rem; opacity: .7; }
.nav-dd .nav-sub-dd {
  display: none; position: absolute; left: calc(100% - 4px); top: -8px; min-width: 180px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(192,192,192,.45);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px -14px rgba(0,31,63,.32), inset 0 1px 0 rgba(255,255,255,.7);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding: 8px 0; z-index: 51;
}
.nav-dd .nav-sub.is-open > .nav-sub-dd, .nav-dd .nav-sub:focus-within > .nav-sub-dd { display: block; }
.nav-dd .nav-sub-dd a { padding: 8px 14px; font-size: .84rem; }
.page-banner { background: var(--navy-900); color: #fff; padding: 28px 0 22px; border-bottom: 1px solid rgba(192,192,192,.25); }
.page-banner h1 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 0 0 6px; }
.page-banner p { margin: 0; color: var(--text-on-dark-muted); font-size: .95rem; }
.subnav-anchors { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.subnav-anchors a {
  text-decoration: none; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--navy-900);
}
.subnav-anchors a:hover { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.section-jump { scroll-margin-top: 96px; }
.home-more { margin-top: 22px; text-align: center; }
.service-block { margin-bottom: 36px; }
.service-block h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--navy-900); }
.brand-series-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-top: 14px; }
.brand-series-grid a {
  display: block; text-decoration: none; padding: 16px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); color: var(--navy-900);
  font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; text-align: center;
}
.brand-series-grid a:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.nav-panel-open .nav { display: flex !important; }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .nav { display: flex; flex: 1; justify-content: center; }
  .grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr 1fr; }
  .t-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .plates { grid-template-columns: 1fr 1fr; }
  .contact-grid, .split { grid-template-columns: 1.2fr .8fr; }
}
@media (min-width: 1040px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 979px) {
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid rgba(192,192,192,.35);
    padding: 8px 0 14px; box-shadow: var(--shadow-md); max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  body.nav-panel-open .nav { display: flex; }
  .nav-item { border-top: 1px solid rgba(192,192,192,.15); }
  .nav-item > a, .nav-item > button.nav-trigger { width: 100%; padding: 12px var(--gutter); justify-content: space-between; }
  .nav-dd, .nav-item.is-open > .nav-dd, .nav-item:focus-within > .nav-dd {
    position: static; display: none; min-width: 0; box-shadow: none; border: 0; background: rgba(0,0,0,.18); border-radius: 0;
  }
  .nav-item.is-open > .nav-dd { display: block; }
  .nav-dd .nav-sub-dd, .nav-dd .nav-sub.is-open > .nav-sub-dd, .nav-dd .nav-sub:focus-within > .nav-sub-dd {
    position: static; display: none; box-shadow: none; border: 0; background: rgba(0,0,0,.12);
  }
  .nav-dd .nav-sub.is-open > .nav-sub-dd { display: block; }
  .nav-dd a, .nav-dd .nav-sub > button { color: var(--text-on-dark); }
  .nav-dd a:hover, .nav-dd .nav-sub > button:hover { background: rgba(255,255,255,.08); color: #fff; }
}
@media (max-width: 719px) {
  .brand-mark { width: 48px; height: 48px; }
  .brand-mark img { width: 38px; height: 38px; object-fit: contain; }
  .brand-zh { display: none; }
  .hero { min-height: 320px; }
  .card-ribbon { font-size: .68rem; padding: 5px 12px 5px 14px; }
}

/* —— Product media badges & features —— */
.card-media { position: relative; }
.media-badge {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(0,31,63,.86); color: #fff; border: 1px solid rgba(192,192,192,.4);
  font-size: .72rem; font-family: var(--font-display); letter-spacing: .04em;
  padding: 4px 8px; border-radius: 2px;
}
.feat-row { display: flex; flex-wrap: wrap; gap: 6px; }
.feat-chip {
  display: inline-flex; align-items: center;
  border: 1px solid var(--silver); background: linear-gradient(180deg, #FAFAFA, #ECEDEE);
  color: var(--navy-900); font-size: .72rem; padding: 3px 8px;
  border-radius: 2px; line-height: 1.3;
}
.detail-feats { margin-top: 12px; }

/* —— Detail gallery (base; vehicle polish overrides below) —— */
.detail-gallery { margin-bottom: 14px; }
.detail-main {
  width: 100%; max-height: 420px; object-fit: contain;
  background: var(--n-50); border: 1px solid var(--line);
}
.detail-video { margin: 8px 0 16px; }
.detail-video video {
  width: 100%; max-height: 420px; background: #000; border: 1px solid var(--line);
}
.dialog-card { width: min(880px, 100%); }

/* —— Testimonials: avatar + chat bubbles (Design Brief) —— */
.quotes.chat-list, .chat-list {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
.chat-list { gap: 22px; }
.chat-row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px 18px;
  align-items: flex-start;
}
.chat-avatar {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--silver); background: var(--navy-900);
  box-shadow: var(--shadow-md); flex: 0 0 auto;
  display: grid; place-items: center;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-avatar.is-mono {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: .04em; color: #fff;
  background: linear-gradient(145deg,
    hsl(var(--mono-hue, 210), 42%, 28%) 0%,
    var(--navy-900) 100%);
  border-color: var(--gold);
}
.chat-bubble {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 6px 18px 18px 18px;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.chat-bubble::before {
  content: ""; position: absolute; left: -8px; top: 22px;
  width: 14px; height: 14px; background: var(--surface);
  border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.chat-head {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
  margin-bottom: 12px;
}
.chat-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--navy-900); letter-spacing: .02em;
}
.chat-date { color: var(--text-muted); font-size: .88rem; }
.chat-bought {
  margin: 0 0 12px; font-size: 1.08rem; color: var(--titanium); line-height: 1.45;
  font-weight: 600;
}
.chat-bought-lab {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-900); background: var(--gold-100);
  border: 1px solid #E2D4A0; padding: 4px 10px; border-radius: 2px;
  margin-right: 8px; vertical-align: middle;
}
.chat-car-thumb {
  width: min(100%, 320px); aspect-ratio: 16/10; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); margin: 0 0 14px;
}
.chat-car-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) contrast(1.04);
}
.chat-quote {
  margin: 0; padding: 14px 16px;
  border-left: 3px solid var(--accent-green);
  background: var(--bg);
  color: var(--titanium); font-size: 1.05rem; line-height: 1.7;
  white-space: pre-line;
}
.chat-shot {
  display: block; width: 100%; max-height: 380px; object-fit: contain;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.stories-pager {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  margin-top: 22px;
}
.stories-pager button {
  appearance: none; min-width: 44px; min-height: 42px; padding: 0 14px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--navy-900);
  border-radius: var(--radius); cursor: pointer; font-family: var(--font-display);
  font-weight: 700; letter-spacing: .04em;
}
.stories-pager button:hover { border-color: var(--navy-900); }
.stories-pager button[aria-current="true"] {
  background: var(--navy-900); color: #fff; border-color: var(--navy-900);
}
.stories-pager button:disabled { opacity: .4; cursor: not-allowed; }
.stories-pager-meta { color: var(--text-muted); font-size: .9rem; min-width: 5em; text-align: center; }
@media (min-width: 720px) {
  .chat-list { grid-template-columns: 1fr; max-width: 840px; }
}
@media (min-width: 1040px) {
  .chat-list { grid-template-columns: 1fr; max-width: 900px; }
}
@media (max-width: 719px) {
  .chat-row { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .chat-avatar { width: 56px; height: 56px; font-size: .95rem; border-width: 2px; }
  .chat-bubble { padding: 16px 16px 18px; }
  .chat-name { font-size: 1.05rem; }
  .chat-bought { font-size: 1rem; }
  .chat-quote { font-size: 1rem; padding: 12px 14px; }
}

/* legacy story-card hooks (admin previews may still reference) —— */
.story-card {
  display: grid; gap: 0; background: var(--surface); border-top: 2px solid var(--silver) !important;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.story-media { aspect-ratio: 16/10; background: var(--n-50); border-bottom: 1px solid var(--line); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.story-vehicle { font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--graphite-900); }
.story-quote { margin: 0; padding: 14px 16px; border-left: 2px solid var(--silver-600); background: var(--n-50); }
.story-shot { width: 100%; max-height: 280px; object-fit: contain; background: var(--n-50); border: 1px solid var(--line); }
.story-foot { color: var(--text-muted); font-size: .85rem; margin-top: auto; }

/* —— Admin media + features —— */
.hint { color: var(--text-muted); font-size: .82rem; margin: 6px 0 0; }
.feature-box {
  border: 1px solid var(--line); padding: 12px 14px 6px; margin: 0 0 16px; background: var(--surface);
}
.feature-box legend {
  font-size: .85rem; font-weight: 700; padding: 0 6px;
}
.feature-grid {
  display: grid; gap: 6px 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin: 8px 0 10px;
}
.feature-chip {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: .82rem; line-height: 1.35; cursor: pointer;
}
.feature-chip input { margin-top: 2px; flex: 0 0 auto; }
.spec-groups { display: grid; gap: 14px; margin-top: 6px; }
.spec-group {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.spec-group:first-child { border-top: 0; padding-top: 0; }
.spec-group-title {
  margin: 0 0 6px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--graphite-900);
}

.admin-dual-price {
  display: grid;
  gap: 0 14px;
  grid-template-columns: 1fr 1fr;
}
.admin-spec-identity {
  display: grid;
  gap: 0 14px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-top: 4px;
}
@media (max-width: 640px) {
  .admin-dual-price { grid-template-columns: 1fr; }
}

.spec-display { display: grid; gap: 10px; margin-top: 12px; }
.spec-display-row { display: grid; gap: 6px; }
.spec-display-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: var(--text-muted); text-transform: uppercase;
}

.thumb-list {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-top: 10px;
}
.thumb-card {
  position: relative; border: 1px solid var(--line); background: var(--n-50);
  padding: 6px; display: grid; gap: 6px;
}
.thumb-card.is-cover { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.thumb-card img { width: 100%; height: 90px; object-fit: contain; background: #fff; }
.cover-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--graphite-900); color: #fff;
  font-size: .68rem; padding: 2px 6px; font-family: var(--font-display);
}
.thumb-ops { display: flex; flex-wrap: wrap; gap: 4px; }
.video-preview-wrap { margin-top: 10px; display: grid; gap: 8px; }
.video-preview-wrap video {
  width: min(100%, 420px); max-height: 240px; background: #000; border: 1px solid var(--line);
}

.story-admin-card { padding-top: 16px; }
.story-deleted-wrap {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}
.story-deleted-title {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--text-muted);
}
.story-admin-card-deleted {
  opacity: 0.72;
  background: var(--n-50);
  padding: 12px 10px;
  border: 1px solid var(--line);
}
.story-deleted-name {
  margin: 0 0 4px;
  font-weight: 700;
  text-decoration: line-through;
}
.story-deleted-quote {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.story-admin-grid {
  display: grid; gap: 12px; grid-template-columns: 1fr;
}
.story-admin-media {
  width: 100%; max-width: 220px; aspect-ratio: 4/3;
  background: var(--n-50); border: 1px solid var(--line);
}
.story-admin-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) {
  .story-admin-grid { grid-template-columns: 200px 1fr; align-items: start; }
}


/* —— Admin drop zones + inbox picker —— */
.media-workaround { background: #EEF1F4; border: 1px solid var(--silver); border-left: 2px solid var(--navy-700); padding: 8px 10px; margin: 0 0 10px; }
.drop-zone {
  position: relative;
  border: 2px dashed var(--line-strong);
  background: var(--n-50);
  padding: 18px 14px;
  text-align: center;
  transition: border-color .15s, background .15s;
  margin-top: 6px;
}
.drop-zone:hover, .drop-zone:focus { border-color: var(--graphite-700); outline: none; }
.drop-zone.is-drag {
  border-color: var(--navy-900);
  background: #E6ECF2;
}
.drop-zone-sm { padding: 12px 10px; }
.drop-zone-video { margin-bottom: 8px; }
.drop-title { font-weight: 700; font-size: .95rem; margin: 0 0 4px; }
.drop-sub { color: var(--text-muted); font-size: .8rem; margin: 0 0 10px; }
.drop-actions {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
}
.drop-zone input[type="file"] {
  display: block; width: min(100%, 420px); margin: 8px auto 0;
  padding: 8px; border: 1px solid var(--line-strong); background: #fff;
  font-size: .85rem; cursor: pointer;
}
.file-label { cursor: pointer; display: none; } /* native input is visible */
.inbox-card { width: min(640px, 100%); }
.inbox-toolbar { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.inbox-list {
  max-height: min(50vh, 360px); overflow: auto;
  border: 1px solid var(--line); background: #fff;
}
.inbox-row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 8px;
  align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line);
  font-size: .85rem; text-align: left;
}
.inbox-row:last-child { border-bottom: 0; }
.inbox-row .meta { color: var(--text-muted); font-size: .75rem; }
.inbox-empty { padding: 24px 12px; color: var(--text-muted); text-align: center; }




/* —— Parts / accessories section (separate from vehicle stock) —— */
.section-parts .section-head-tight { margin-bottom: 18px; }
.parts-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.parts-filters { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 0; }
.parts-filters button {
  appearance: none; border: 1px solid var(--line-strong); background: #fff; cursor: pointer;
  padding: 8px 14px; color: var(--text-muted); border-radius: 999px; margin: 0;
  letter-spacing: .02em; font-size: .9rem;
}
.parts-filters button:hover { color: var(--navy-900); border-color: var(--navy-700); }
.parts-filters button[aria-pressed="true"] {
  color: #fff; font-weight: 700; background: var(--navy-900); border-color: var(--navy-900);
}
.parts-search { height: 44px; border: 1px solid var(--line-strong); padding: 0 12px;
  min-width: min(260px, 100%); background: #fff; border-radius: var(--radius); }
.parts-search:focus { border-color: var(--navy-900); outline: none; box-shadow: 0 0 0 3px rgba(0,31,63,.12); }
.grid-parts .card-media img { object-fit: contain; filter: saturate(.88) contrast(1.06) brightness(1.01) hue-rotate(-4deg); }

/* —— Detail dialog: separated gallery / specs / info (dealer clarity) —— */
.dialog-card { width: min(920px, 100%); }
.detail-layout { display: grid; gap: 0; }
.detail-block { padding: 18px 0; border-top: 1px solid var(--line); }
.detail-block:first-child { border-top: 0; padding-top: 8px; }
.detail-block-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy-900);
}
.detail-block-head::before {
  content: ""; width: 22px; height: 2px; background: var(--gold); flex: 0 0 auto;
}
.detail-title-row { display: grid; gap: 6px; margin-bottom: 4px; }
.detail-title-row h3 { margin: 0; font-size: 1.45rem; }
.detail-meta { color: var(--text-muted); font-size: .92rem; margin: 0; }
.detail-price-lg {
  font-family: var(--font-display); font-weight: 700; font-size: 1.55rem;
  color: var(--navy-900); margin: 8px 0 0;
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.detail-info .prose { margin: 0; white-space: pre-line; color: var(--text); line-height: 1.7; }
.detail-empty { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* ==========================================================
   墨綠點綴 Ink-green accent layer (sparing — navy / gold stay primary)
   ========================================================== */
/* Header nav: active + hover underline */
/* nav active styles live under .nav-item */
/* Category tabs (front filters + admin tabs) */
.tabs button[aria-pressed="true"] { border-bottom-color: var(--accent-green); }
.tabs button:hover { color: var(--accent-green); }
.quick-search .filters button[aria-pressed="true"] { border-bottom-color: transparent; }
.quick-search .filters button:hover { color: var(--navy-900); }
/* Product + story cards: thin ink-green top edge */
.card { border-top-color: var(--accent-green); }
.card:hover { border-top-color: var(--accent-green-hover); }
.story-card { border-top-color: var(--accent-green) !important; }
.card h3 button:hover { text-decoration-color: var(--accent-green-hover); }
/* Secondary outline buttons (light backgrounds only; gold CTA untouched) */
.btn-outline { color: var(--accent-green); border-color: var(--accent-green); }
.btn-outline:hover { background: var(--accent-green-100); color: var(--accent-green); border-color: var(--accent-green-hover); }
.hero .btn-outline, .admin-bar .btn-outline { color: #fff; border-color: rgba(192,192,192,.7); }
.hero .btn-outline:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
/* A few hairlines / markers where silver was */
.kicker > span:first-child { background: var(--accent-green); }
.rule-list article::before { border-color: var(--accent-green); }
.hero-side { border-left-color: var(--accent-green-on-dark); }


/* —— Detail: Mingfung-inspired hierarchy (Champs styling — no brand/copy clone) —— */
.dialog-card { width: min(1040px, 100%); max-height: min(92vh, 960px); }
/* Detail dialog: close + scroll body + sticky CTA dock (scroll does not hide WA／分享) */
#detail .dialog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px 24px 0;
  width: min(1040px, 100%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#detail .dialog-card > #detail-close {
  flex: 0 0 auto;
  align-self: flex-end;
  margin: 0 0 8px;
  position: sticky;
  top: 0;
  z-index: 6;
}
#detail .dialog-card > #detail-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  box-sizing: border-box;
}
#detail .dialog-card.has-sticky-ctas > #detail-body {
  /* right-side FABs overlay — keep a little end padding only */
  padding-bottom: 8px;
  padding-right: 4px;
}
.detail-layout {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.detail-layout.is-vehicle { gap: 0; }
.detail-hero {
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  background: linear-gradient(180deg, #FAFAFA 0%, #F2F2F2 100%);
  margin: 0 0 8px; padding: 12px 4px 16px;
  border-radius: var(--radius);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.detail-title-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-bottom: 4px;
}
.detail-title-row h3 {
  margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  color: var(--navy-900); letter-spacing: .02em; flex: 1 1 auto;
}
.detail-status {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px;
  background: linear-gradient(180deg, #E2C35A, var(--gold));
  color: var(--navy-900); border: 1px solid #B8962A;
}
.detail-status.is-navy {
  background: var(--navy-900); color: #fff; border-color: var(--navy-900);
}
.detail-meta { color: var(--text-muted); font-size: .9rem; margin: 0 0 10px; }
.detail-price-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px; margin: 8px 0 12px;
}
.detail-price-card {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-top: 3px solid var(--gold); border-radius: var(--radius);
  padding: 12px 14px; display: grid; gap: 4px;
  box-shadow: var(--shadow-sm);
}
.detail-price-card.is-cash { border-top-color: var(--navy-900); }
.detail-price-card.is-ask { border-top-color: var(--silver-600); }
.detail-price-lab {
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
}
.detail-price-amt {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem); color: var(--navy-900);
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.detail-actions-bottom {
  margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line);
}
.btn-share {
  color: var(--navy-900);
  border-color: var(--navy-900);
  background: #fff;
  font-weight: 600;
}
.btn-share:hover {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 4000;
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--navy-900);
  color: #fff;
  border: 1px solid #B8962A;
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.22));
  font-size: .92rem;
  letter-spacing: .02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.share-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.detail-main-row {
  display: grid;
  gap: 18px;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.detail-gallery-block,
.detail-specs,
.detail-gallery,
.detail-main-frame,
.detail-thumbs-scroller {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.detail-gallery .detail-main,
.detail-main-frame img {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* KEY FACTS — distinct heavier block (buyer-first) */
.detail-key-facts {
  margin: 0 0 14px;
  padding: 12px 12px 10px;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--navy-900);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #F4F6F9 0%, #EEF1F5 100%);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}
.detail-key-facts-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin: 0 0 10px;
}
.detail-key-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.detail-key-fact {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 0;
}
.detail-key-fact-lab {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.detail-key-fact-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
  line-height: 1.25;
  word-break: break-word;
}
.spec-table-caption {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.spec-table.is-secondary .spec-table-lab {
  font-weight: 600;
  color: #3A4A5C;
  background: #F7F8FA;
}
.spec-table.is-secondary .spec-table-val {
  color: #4A5560;
  font-size: .94rem;
}
.detail-specs-prices.is-soft {
  opacity: 0.92;
}
.detail-specs-prices.is-soft .detail-specs-price-amt {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}
.detail-specs-prices.is-soft .detail-specs-price.is-cash .detail-specs-price-amt {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

@media (min-width: 820px) {
  .detail-layout.is-vehicle .detail-main-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 22px;
    align-items: stretch;
  }
  .detail-layout.is-vehicle .detail-gallery-block,
  .detail-layout.is-vehicle .detail-specs {
    border-top: 0;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    height: auto;
  }
  .detail-layout.is-vehicle .detail-gallery {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 0;
  }
  .detail-layout.is-vehicle .detail-main-frame {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    background: #EEF0F2;
  }
  .detail-layout.is-vehicle .detail-thumbs-scroller {
    margin-top: auto;
    flex: 0 0 auto;
  }
  .detail-layout.is-vehicle .detail-main {
    max-height: none;
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
  .detail-layout.is-vehicle .detail-specs .spec-table,
  .detail-layout.is-vehicle .detail-specs .detail-key-facts {
    flex: 0 0 auto;
  }
  .detail-key-facts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.detail-title-strip { padding: 8px 0 4px; }
.detail-title-strip h3 { margin: 0 0 4px; font-size: 1.45rem; color: var(--navy-900); }
.detail-price-summary {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 4px;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-900);
}
.detail-price-summary b {
  font-size: .72rem; letter-spacing: .08em; color: var(--text-muted);
  font-weight: 700; margin-right: 6px;
}

/* Specs card: dedicated dual-price block (cash first / strongest) */
.detail-specs-prices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 12px;
}
@media (min-width: 420px) {
  .detail-specs-prices { grid-template-columns: 1.15fr 0.95fr; }
}
.detail-specs-price {
  display: grid; gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.detail-specs-price.is-cash {
  border-top: 3px solid var(--navy-900);
  background: linear-gradient(180deg, #F7F8FA 0%, #EEF1F5 100%);
}
.detail-specs-price.is-hire {
  border-top: 3px solid var(--gold);
}
.detail-specs-price.is-ask {
  border-top: 3px solid var(--silver-600);
}
.detail-specs-price-lab {
  font-family: var(--font-display); font-weight: 700;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
}
.detail-specs-price-amt {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  color: var(--navy-900); letter-spacing: .01em; line-height: 1.2;
}
.detail-specs-price.is-cash .detail-specs-price-amt {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  color: var(--navy-900);
}
.detail-specs-price.is-hire .detail-specs-price-amt {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--titanium);
}

.spec-table {
  display: grid; gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.spec-table-row {
  display: grid; grid-template-columns: minmax(118px, 36%) 1fr;
  gap: 0; border-top: 1px solid var(--line);
}
.spec-table-row:first-child { border-top: 0; }
.spec-table-row.is-group-start {
  border-top: 2px solid rgba(0, 31, 63, 0.18);
}
.spec-table-lab {
  padding: 10px 14px; background: #F3F5F7;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .04em; color: var(--navy-900); border-right: 1px solid var(--line);
}
.spec-table-val {
  padding: 10px 14px; color: var(--titanium); font-size: .96rem;
  word-break: break-word;
}
.spec-table-row.is-buyer .spec-table-lab {
  background: #E9EEF3;
  font-size: .84rem;
}
.spec-table-row.is-buyer .spec-table-val {
  font-weight: 600; color: var(--navy-900); font-size: 1rem;
}
.spec-table-row.is-secondary .spec-table-lab {
  font-weight: 600; color: #3A4A5C; background: #F7F8FA;
}
.spec-table-row.is-secondary .spec-table-val {
  color: #4A5560; font-size: .94rem;
}
.spec-table-val.is-price {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--navy-900);
}
.spec-features-lab {
  margin: 14px 0 8px; font-family: var(--font-display); font-weight: 700;
  font-size: .78rem; letter-spacing: .1em; color: var(--text-muted); text-transform: uppercase;
}
/* 配備 — two-column list (Mingfung-like), not chip pile */
.detail-equip-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
@media (min-width: 560px) {
  .detail-equip-list { grid-template-columns: 1fr 1fr; }
}
.detail-equip-list li {
  position: relative;
  padding: 10px 14px 10px 28px;
  border-top: 1px solid var(--line);
  color: var(--titanium); font-size: .95rem; line-height: 1.45;
}
.detail-equip-list li:nth-child(-n+2) { border-top: 0; }
@media (max-width: 559px) {
  .detail-equip-list li:first-child { border-top: 0; }
  .detail-equip-list li:nth-child(2) { border-top: 1px solid var(--line); }
}
.detail-equip-list li::before {
  content: ""; position: absolute; left: 12px; top: 1.05em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 1px rgba(0,31,63,.15);
}
@media (min-width: 560px) {
  .detail-equip-list li:nth-child(2n) { border-left: 1px solid var(--line); }
}
/* 其他資料 — selling-point bullets */
.detail-bullets {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
}
.detail-bullets li {
  position: relative; padding: 2px 0 2px 22px;
  color: var(--titanium); line-height: 1.55; font-size: .98rem;
}
.detail-bullets li::before {
  content: "★"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-size: .85rem; line-height: 1.7;
}
.detail-info-prose { margin-bottom: 12px; color: var(--text-muted); }

/* Gallery frame + thumbnail strip with arrows (no native chunky scrollbar) */
.detail-main-frame {
  background: #EEF0F2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
}
.detail-gallery .detail-main {
  max-height: 460px; width: 100%; display: block;
  object-fit: contain; background: #EEF0F2; border: 0;
}
.detail-thumbs-scroller {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}
.detail-thumbs-scroller:not(.has-overflow) {
  grid-template-columns: 0 minmax(0, 1fr) 0;
  gap: 0;
}
.detail-thumbs-scroller:not(.has-overflow) .detail-thumbs-nav {
  display: none;
}
.detail-thumbs-nav {
  appearance: none; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #FAFAFA, #ECEDEE);
  color: var(--navy-900);
  width: 40px; height: 72px; min-width: 40px; min-height: 44px;
  border-radius: var(--radius); cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 0;
  box-shadow: var(--shadow-sm);
}
.detail-thumbs-nav:hover:not(:disabled) {
  border-color: var(--gold); background: #fff;
}
.detail-thumbs-nav:disabled {
  opacity: .35; cursor: default;
}
.detail-thumbs {
  display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 4px 2px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.detail-thumbs::-webkit-scrollbar { display: none; height: 0; }
.detail-thumb {
  appearance: none; border: 2px solid transparent; padding: 0;
  background: #E8EBEE; cursor: pointer;
  flex: 0 0 auto;
  width: 96px; height: 72px; min-width: 72px; min-height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.detail-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none;
}
.detail-thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--navy-900), 0 2px 8px rgba(0,31,63,.18);
}
.detail-thumb:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

/* <820: single column gallery → price → specs; kill horizontal page scroll */
@media (max-width: 819px) {
  #detail.dialog {
    padding: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    align-items: end;
    overflow-x: hidden;
  }
  #detail .dialog-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: min(94vh, 960px);
    border-radius: 12px 12px 8px 8px;
    padding: 12px 14px 0;
    box-sizing: border-box;
  }
  .detail-layout.is-vehicle .detail-main-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .detail-layout.is-vehicle .detail-gallery-block { order: 1; width: 100%; min-width: 0; max-width: 100%; }
  .detail-layout.is-vehicle .detail-specs { order: 2; width: 100%; min-width: 0; max-width: 100%; }
  .detail-gallery,
  .detail-main-frame,
  .detail-thumbs-scroller {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .detail-gallery .detail-main,
  .detail-main-frame img {
    max-height: 360px;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  .detail-main-frame { min-height: 200px; }
  .detail-thumbs-scroller {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    width: 100%;
  }
  .detail-thumbs {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .detail-thumbs-nav { width: 44px; height: 72px; min-width: 44px; }
  .detail-thumb {
    width: 88px; height: 68px; min-width: 72px; min-height: 64px;
  }
  .detail-price-cards {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }
  .detail-specs-prices {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }
  .detail-key-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-specs-price-amt { font-size: 1.4rem; }
  .detail-specs-price.is-cash .detail-specs-price-amt { font-size: 1.55rem; }
  .detail-cta-fab {
    right: 8px;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    top: auto;
    transform: none;
  }
  .detail-fab {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
  .spec-table,
  .spec-table-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .spec-table-row {
    grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .spec-table-row { grid-template-columns: minmax(0, 1fr); }
  .spec-table-lab { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
  .spec-table-val { padding-top: 6px; }
  .detail-hero { margin: 0 0 8px; padding: 8px 0 14px; }
  .detail-price-amt { font-size: 1.28rem; }
  .detail-specs-prices { grid-template-columns: minmax(0, 1fr); }
  .detail-key-facts-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-cta-fab { right: 6px; }
}

.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* Admin product type filter + list toolbar「更新」 */
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
}
.list-toolbar .type-filters {
  margin-bottom: 0;
  border-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.list-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 0 6px;
}
.list-toolbar-actions #list-update-status {
  margin: 0;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: .85rem;
}
.list-toolbar-actions #list-update-btn {
  min-width: 88px;
}
.list-toolbar-actions #list-update-btn.list-update-pending {
  box-shadow: 0 0 0 2px rgba(3, 39, 72, .18);
}
.list-search-field {
  display: flex;
  align-items: center;
  flex: 1 1 180px;
  min-width: 140px;
  max-width: 280px;
  margin: 0;
  padding: 4px 0 6px;
}
.list-search-field input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: inherit;
}
.list-search-field input[type="search"]:focus {
  outline: 2px solid rgba(3, 39, 72, .25);
  outline-offset: 1px;
  border-color: var(--navy, #032748);
}
.type-filters { margin-bottom: 4px; }
.type-filters button[aria-pressed="true"] { border-bottom-color: var(--accent-green); }


/* —— Header / footer social icons —— */
.social-icons { display: inline-flex; align-items: center; gap: 6px; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(192,192,192,.55); color: var(--text-on-dark-muted);
  background: transparent; transition: background .15s, color .15s, border-color .15s;
  text-decoration: none; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.social-icon:hover { color: var(--navy-900); background: linear-gradient(180deg, #F4F4F4, #C9CCCF); border-color: #C9CCCF; }
.social-icon svg { display: block; }
.social-wa { /* same size/stroke as FB/IG; brand green only on hover fill via currentColor */ }
.header-actions .social-icons { margin-right: 0; }

/* ≤819: hide header IG/WA — footer already has social; stops ~80px horizontal overflow */
@media (max-width: 819px) {
  #header-social { display: none !important; }
  .header-inner {
    gap: 8px;
    min-width: 0;
    max-width: 100%;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
    max-width: 100%;
  }
  .brand { min-width: 0; }
  .brand-text { overflow: hidden; }
}

.site-footer .foot-social { display: inline-flex; gap: 8px; align-items: center; }
.site-footer .social-icon {
  width: 32px; height: 32px; color: var(--text-muted);
  border-color: var(--line); background: var(--surface);
}
.site-footer .social-icon:hover { color: var(--navy-900); }

/* —— IG / video embeds grid —— */
.ig-cta-row { margin: 0 0 18px; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.ig-card .ig-media { aspect-ratio: 9/16; max-height: 420px; background: #0a1220; position: relative; overflow: hidden; }
.ig-card .ig-media video,
.ig-card .ig-media iframe {
  width: 100%; height: 100%; object-fit: contain; background: #000; display: block; border: 0;
}
.ig-card .ig-media.is-youtube {
  aspect-ratio: 16/9;
  max-height: 280px;
}
.ig-card .ig-media.is-linkout {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0a1220, #132238 55%, #1a2f4a);
}
.ig-linkout-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
  width: 100%;
  height: 100%;
}
.ig-linkout-inner img {
  max-width: 100%;
  max-height: 60%;
  object-fit: cover;
  border-radius: 8px;
}
.ig-card .ig-caption {
  margin: 4px 0 0; font-size: .92rem; color: var(--titanium);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ig-card .ig-date { font-size: .8rem; margin: 0; }
.ig-admin-media video { width: 100%; max-height: 220px; background: #000; border-radius: 8px; }
.ig-admin-linkph { font-size: .85rem; line-height: 1.45; padding: 12px; word-break: break-all; }

@media (max-width: 720px) {
  .social-icons { gap: 4px; }
  .social-icon { width: 32px; height: 32px; }
  .ig-card .ig-media { max-height: 360px; }
  .ig-card .ig-media.is-youtube { max-height: 220px; }
}



/* —— Admin product form: always-visible Save/Update —— */
.product-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  margin: 0 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.product-form-actions-top {
  position: sticky;
  top: var(--admin-bar-h, 72px);
  z-index: 55;
  margin: -6px -6px 16px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--navy-900);
  border-left-width: 4px;
  box-shadow: 0 10px 28px -14px rgba(0,31,63,.45);
}
.product-form-actions-hint {
  flex: 1 1 100%;
  margin: 0;
  color: var(--text-muted);
}
.product-form-visible { margin: 0; font-weight: 600; }
#product-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 50;
  margin: 18px -6px 0;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 -10px 24px -16px rgba(0,0,0,.4);
}
body.admin-product-editing #product-form-actions,
body.admin-product-editing .product-form-actions-top {
  outline: 0;
}
#product-form { padding-bottom: 8px; overflow: visible; }
#tab-form { overflow: visible; }
@media (max-width: 640px) {
  .product-form-actions { align-items: stretch; }
  .product-form-actions .row-actions { width: 100%; }
  .product-form-actions .row-actions .btn { flex: 1 1 auto; }
  .product-form-actions-top {
    top: var(--admin-bar-h, 72px);
    margin-left: -4px;
    margin-right: -4px;
  }
}


/* —— Detail right-side icon FABs: WhatsApp + Share (fixed in dialog while body scrolls) —— */
#detail .dialog-card {
  position: relative;
}
.detail-cta-fab {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.detail-fab {
  pointer-events: auto;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(0, 20, 42, 0.55), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.detail-fab:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 12px 28px -10px rgba(0, 20, 42, 0.6), 0 3px 8px rgba(0, 0, 0, 0.14);
}
.detail-fab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.detail-fab svg {
  display: block;
  flex: 0 0 auto;
}
.detail-fab-wa {
  background: var(--wa);
  border-color: #054A42;
  color: #fff;
}
.detail-fab-wa:hover {
  background: #054A42;
  color: #fff;
}
.detail-fab-share {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.detail-fab-share:hover {
  background: #0a2a4a;
  color: #fff;
}
.share-toast {
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 819px) {
  .detail-cta-fab {
    right: 8px;
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    top: auto;
    transform: none;
  }
  .detail-fab {
    width: 48px;
    height: 48px;
  }
}

/* —— Admin success / error toast (產品儲存／列表更新) —— */
.admin-toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(14px);
  z-index: 5000;
  min-width: min(280px, calc(100vw - 32px));
  max-width: min(420px, calc(100vw - 24px));
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--navy-900);
  color: #fff;
  border: 1px solid #B8962A;
  box-shadow: 0 12px 32px -12px rgba(0, 20, 42, 0.55);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: .04em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.admin-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.admin-toast.is-error {
  background: #5C1A1A;
  border-color: #C45C5C;
}

/* —— 返回頂部 (back to top) —— */
.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 50; /* below .dialog (60) */
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold, #D4AF37);
  background: #001F3F;
  color: #C0C0C0;
  cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(0, 20, 42, 0.55), 0 2px 6px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background .15s ease, color .15s ease;
}
.back-to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: #1A1A1A; color: #D4AF37; }
.back-to-top:focus-visible { outline: 2px solid #D4AF37; outline-offset: 3px; }
.back-to-top svg { display: block; }
.detail-fab-top {
  background: #001F3F;
  border-color: #D4AF37;
  color: #C0C0C0;
}
.detail-fab-top:hover { background: #1A1A1A; color: #D4AF37; }
.detail-fab[hidden] { display: none; }
@media (max-width: 560px) {
  .back-to-top { right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}

/* —— Hero lead: <picture> WebP + PNG fallback —— */
.hero-slide picture, .hero-slide picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.hero-slide picture img { object-fit: cover; object-position: center 40%; }

/* —— Fixed FAB stack: (mobile) WhatsApp + 返回頂部 —— */
.fab-stack {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.fab-stack > * { pointer-events: auto; }
.fab-stack .back-to-top { position: static; right: auto; bottom: auto; }
.back-to-top:not(.is-on) { pointer-events: none; }
/* —— Stock: toolbar (count / sort / active chips) —— */
.stock-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin: 0 0 16px; min-width: 0;
}
.stock-count { margin: 0; font-weight: 700; color: #001F3F; }
.stock-sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: .92rem; color: #1A1A1A; }
.stock-sort select { min-width: 0; max-width: 100%; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; min-width: 0; }
.active-chips[hidden] { display: none; }
.active-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 5px 10px 5px 12px; border-radius: 999px; cursor: pointer;
  background: #001F3F; color: #fff; border: 1px solid #D4AF37; font: inherit; font-size: .86rem;
}
.active-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.active-chip-x { color: #D4AF37; font-size: 1.05em; line-height: 1; }
.active-chip:hover { background: #1A1A1A; }
.active-chip:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }

.stock-sort > span { white-space: nowrap; }

/* —— Tap targets ≥44px (stock / finder) —— */
.finder-select, .finder-input, .finder .search, .finder-go, .finder-reset,
#filters button, .active-chip, #sort-select, .filter-toggle,
.filter-sheet-foot .btn, .filter-sheet-close { min-height: 44px; }
#filters button { min-width: 44px; }
.active-chip { padding: 6px 6px 6px 14px; }
.active-chip-x { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 1.25rem; }
.active-chip:hover .active-chip-x { background: rgba(212,175,55,.18); }

/* —— Stock: mobile filter bottom sheet —— */
.filter-toggle { display: none; align-items: center; justify-content: center; gap: 6px; }
.filter-sheet[hidden] { display: none; }
.filter-sheet {
  position: fixed; inset: 0; z-index: 70; background: rgba(0, 20, 42, .62);
  display: flex; align-items: flex-end; justify-content: center;
}
.filter-sheet-panel {
  background: var(--surface, #fff); width: 100%; max-width: 640px;
  max-height: min(88vh, 88dvh); display: flex; flex-direction: column;
  border-radius: 16px 16px 0 0; border-top: 3px solid #D4AF37;
  box-shadow: 0 -18px 48px -20px rgba(0,0,0,.5); box-sizing: border-box; min-width: 0;
}
.filter-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line, #e3e6ea); }
.filter-sheet-head h2 { margin: 0; font-size: 1.1rem; color: #001F3F; }
.filter-sheet-close { width: 44px; border-radius: 50%; border: 1px solid var(--line, #d0d5db); background: #fff; color: #001F3F; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.filter-sheet-close:focus-visible, .filter-sheet-foot .btn:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }
.filter-sheet-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; padding: 14px 16px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr);
}
.filter-sheet-body .finder-field { min-width: 0; }
.filter-sheet-body .finder-select, .filter-sheet-body .finder-input { width: 100%; box-sizing: border-box; }
.filter-sheet-body #filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-sheet-foot {
  flex: 0 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line, #e3e6ea); background: var(--surface, #fff);
}
html.sheet-lock, html.sheet-lock body { overflow: hidden; }
@media (max-width: 768px) {
  body[data-page="stock"] .filter-toggle,
  body[data-page="home"] .filter-toggle { display: inline-flex; width: 100%; margin: 0 0 10px; }
  body[data-page="stock"] .finder .finder-hint,
  body[data-page="stock"] .finder .finder-actions,
  body[data-page="home"] .finder .finder-hint,
  body[data-page="home"] .finder .finder-actions { display: none; }
  body[data-page="stock"] .finder .finder-fields,
  body[data-page="home"] .finder .finder-fields { grid-template-columns: minmax(0, 1fr); }
  /* Compact sticky bar: only toggle + keyword — no tall sticky block */
  body[data-page="home"] .quick-search,
  body[data-page="stock"] .quick-search {
    position: sticky; top: var(--header-h); z-index: 35;
  }
  body[data-page="home"] .finder-title { display: none; }
  .stock-sort { margin-left: 0; }
}

/* —— Hero ≤560: image band (full logo text visible) + copy below —— */
@media (max-width: 560px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 0 0 28px; }
  .hero-track { position: relative; inset: auto; width: 100%; aspect-ratio: 3 / 2; flex: 0 0 auto; }
  .hero-slide { transform: none; background-position: center; }
  .hero-slide picture img { object-position: center; }
  .hero-shade { inset: auto 0 0 0; top: 0; height: calc(100vw * 2 / 3); background: linear-gradient(0deg, rgba(0,20,42,.55) 0%, transparent 35%); }
  .hero-content { padding-top: 18px; }
  .hero-controls { bottom: auto; top: calc(100vw * 2 / 3 - 50px); }
}
.filter-sheet-body { display: flex; flex-direction: column; }
.filter-sheet-body > * { flex: 0 0 auto; }
.filter-sheet-body #filters { border-bottom: 0; overflow: visible; padding-bottom: 4px; }
.filter-sheet-body #filters button {
  border: 1px solid var(--line-strong, #c9ced6); border-radius: 999px; padding: 8px 16px; margin: 0;
  color: #001F3F; background: #fff;
}
.filter-sheet-body #filters button[aria-pressed="true"] { background: #001F3F; color: #fff; border-color: #001F3F; }

/* —— QA r2: tap targets ≥44px —— */
.card-actions .btn,
.card-actions .btn-sm { min-height: 44px; }
.hero-nav { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.nav-toggle { height: 44px; min-height: 44px; }
.lang-toggle button { height: 44px; min-height: 44px; }
@media (max-width: 719px) {
  .hero-nav { width: 44px; height: 44px; font-size: 1.25rem; }
}

/* —— Hide page 返回頂部 while detail overlay is open —— */
body.detail-open .fab-stack,
body:has(#detail:not([hidden])) .fab-stack {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

/* —— Hero: no dark flash before first image —— */
.hero { background: #0b1c33; }
.hero:not(.is-ready) .hero-slide { transition: none; }
.hero:not(.is-ready) .hero-slide.is-active { opacity: 1; }
.hero-slide.is-active { opacity: 1; }
.hero-slide picture img {
  opacity: 0;
  transition: opacity .35s ease;
  background: transparent;
}
.hero.is-ready .hero-slide.is-active picture img,
.hero-slide.is-active picture img.is-loaded { opacity: 1; }
.hero:not(.is-ready) .hero-slide.is-active picture img { opacity: 1; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide picture img { transition: none; }
}

/* —— Hero sharpness: no resample zoom; image at native srcset size —— */
.hero-slide { transform: none; }

/* —— QA r3: card buttons — 40px desktop, 44px mobile —— */
.card-actions .btn,
.card-actions .btn-sm {
  min-height: 40px; height: auto; display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 12px; line-height: 1.2; box-sizing: border-box; white-space: nowrap;
}
@media (max-width: 768px) {
  .card-actions .btn,
  .card-actions .btn-sm { min-height: 44px; }
}

/* —— Illustrative images (示意圖片) —— */
.illus-figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #0b1c33; }
.illus-figure picture, .illus-figure img { display: block; width: 100%; height: 100%; }
.illus-figure img { object-fit: cover; }
.illus-badge { display: none !important; }
/* Home scene cards */
.scenes { padding-bottom: 0; }
.scene-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.scene-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface, #fff);
  border: 1px solid var(--line, #e3e6ea); border-top: 3px solid #001F3F; border-radius: var(--radius); overflow: hidden; min-width: 0; }
.scene-card .illus-figure { aspect-ratio: 4 / 3; border-radius: 0; }
.scene-card:hover { border-top-color: #D4AF37; }
.scene-card:focus-visible { outline: 2px solid #D4AF37; outline-offset: 3px; }
.scene-copy { padding: 16px 18px 20px; }
.scene-copy h3 { color: #001F3F; font-size: 1.1rem; line-height: 1.4; margin: 0 0 6px; }
.scene-copy p { margin: 0; color: var(--text-muted); font-size: .95rem; }
/* Welcab feature */
.welcab-feature-grid { display: grid; gap: 24px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.welcab-feature .illus-figure { aspect-ratio: 16 / 9; }
.welcab-feature-copy h2 { color: #001F3F; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; margin: 0 0 10px; }
.welcab-feature-copy p { margin: 0; color: var(--text-muted); font-size: 1.05rem; }
@media (min-width: 960px) { .welcab-feature-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; } }
/* Handover (real photos only) */
.handover[hidden], .handover-photo[hidden] { display: none; }
.handover-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.handover-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.handover-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Detail bottom enquiry */
.detail-enquiry { display: grid; gap: 16px; margin: 24px 0 8px; padding: 16px; border: 1px solid var(--line, #e3e6ea);
  border-top: 3px solid #D4AF37; border-radius: var(--radius); background: #f7f8fa; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.detail-enquiry .illus-figure { aspect-ratio: 16 / 9; }
.detail-enquiry h3 { color: #001F3F; margin: 0 0 6px; font-size: 1.1rem; }
.detail-enquiry p { margin: 0 0 14px; color: var(--text-muted); }
.detail-enquiry .btn-wa { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 820px) {
  .detail-enquiry { grid-template-columns: 360px minmax(0, 1fr); align-items: center; padding-right: 76px; }
}
@media (max-width: 819px) { .detail-enquiry { margin-right: 56px; } }
.detail-hero > .detail-meta:last-child { margin-bottom: 0; }

/* —— Hero: illustrative scene slides (moved from #scenes) —— */
/* illus-19-jdm-break: slogans in large hero <h1>; JDM breaks after ——; no badge */
.hero-scene-cap,
.hero-scene-badge,
.hero-scene-title { display: none !important; }
.hero-content { max-width: 36rem; }
.hero-content.hero-content-long { max-width: min(56rem, 96vw); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: .02em;
  font-weight: 700;
  line-height: 1.18;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
  transition: opacity .25s ease;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: pre-line;
}
.hero-content.hero-content-long h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
}

/* —— Hero slide 1: responsive placeholder bg (no 768 blur on wide screens) —— */
.hero-slide[data-static-lead], .hero-slide.hero-lead-bg { background-image: url("assets/hero/champs-since-2013-harbor-768.webp"); }
@media (min-width: 769px) { .hero-slide[data-static-lead], .hero-slide.hero-lead-bg { background-image: url("assets/hero/champs-since-2013-harbor-1920.webp"); } }
@media (min-width: 1921px), (min-width: 1281px) and (min-resolution: 1.5dppx) { .hero-slide[data-static-lead], .hero-slide.hero-lead-bg { background-image: url("assets/hero/champs-since-2013-harbor-2560.webp"); } }
/* —— Hero: keep price note clear of the "Since 2013" lettering in slide 1 —— */
@media (min-width: 720px) { .hero { padding-bottom: clamp(88px, 8.8vw, 120px); } }

/* —— Warmth pack illus-12: slightly warmer greys/ivory, more champagne, softer radii —— */
:root {
  --bg: #F3F0EB;
  --bg-alt: #EBE6DF;
  --surface: #FAF8F5;
  --gold: #C9A227;
  --gold-600: #B08E1E;
  --gold-100: #F5EDD4;
  --camel: #D9C7B4;
  --radius: 10px;
  --radius-lg: 14px;
}
body { background: var(--bg); }
.btn { border-radius: var(--radius); letter-spacing: .01em; }
.btn-gold { box-shadow: 0 1px 0 rgba(255,255,255,.18) inset; }
.hero h1 { font-weight: 600; letter-spacing: .01em; max-width: 16em; }
.hero-sub { max-width: 36em; line-height: 1.55; color: var(--text-on-dark); }
.hero-actions-triple { gap: 10px; }
.hero-actions-triple .btn { flex: 1 1 140px; text-align: center; min-height: 44px; }
.hero-wa { margin-top: 10px; }
.hero-wa .btn { border-color: rgba(212,175,55,.55); color: var(--gold-100); }
.hero-wa .btn:hover { background: rgba(212,175,55,.12); color: #fff; border-color: var(--gold); }

.section-lines { background: var(--surface); padding: clamp(36px, 5vw, 56px) 0; }
.line-cards { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.line-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 24px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  box-shadow: 0 8px 24px rgba(0,31,63,.04);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.line-card:hover { border-color: var(--gold); box-shadow: 0 10px 28px rgba(0,31,63,.08); transform: translateY(-1px); }
.line-card h3 { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--navy-900); line-height: 1.35; }
.line-card p { margin: 0; color: var(--text-muted); line-height: 1.55; font-size: .95rem; }

.section-charity { background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.charity-inner { max-width: 40rem; }
.section-charity h2 { margin: 0 0 12px; font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.85rem); color: var(--gold-100); }
.section-charity p { margin: 0 0 10px; color: var(--text-on-dark); line-height: 1.6; }
.charity-note { font-size: .85rem; color: var(--text-on-dark-muted) !important; }

.about-layout { display: grid; gap: 28px; grid-template-columns: 1.45fr 1fr; align-items: start; }
.about-story { max-width: 44rem; }
.about-story .about-eyebrow {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold-600, #C49F2E);
}
.about-story p {
  margin: 0 0 1.05em;
  line-height: 1.75;
  color: var(--text);
  font-size: 1.02rem;
}
.about-story .about-close {
  margin-top: 1.35em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line, rgba(0,0,0,.08));
  color: var(--navy-900, #00142a);
  font-weight: 500;
}
.about-banner-sub {
  margin: 8px 0 0;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--gold-100, #F5EDD4);
}
.about-facts { display: grid; gap: 12px; }
.about-fact {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--gold, #D4AF37);
}
.about-fact strong { color: var(--gold-600); font-size: 1.05rem; letter-spacing: .02em; }
.about-fact span { color: var(--text-muted); font-size: .92rem; line-height: 1.45; }
.about-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  padding-top: 8px;
}
.about-cms { grid-column: 1 / -1; }
@media (max-width: 799px) {
  .line-cards { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .hero-actions-triple .btn { flex: 1 1 100%; }
  .about-cta .btn { flex: 1 1 100%; text-align: center; }
}

/* —— illus-13: hero single CTA; line cards are storytelling (non-link) —— */
.line-card { cursor: default; }
.line-card:hover { transform: none; border-color: var(--line); box-shadow: 0 8px 24px rgba(0,31,63,.04); }
.lines-cta { margin-top: 22px; text-align: center; }
.hero-actions { gap: 12px; }

.hero-sub:empty { display: none; }

/* —— illus-15-story: compact brand strip + harbor watermark crop —— */
.section-story {
  padding: clamp(28px, 4vw, 40px) 0;
  background: var(--surface, #f6f7f9);
  border-bottom: 1px solid var(--line, rgba(0,0,0,.08));
}
.story-strip { max-width: 46rem; }
.story-title {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: var(--navy-900, #00142a);
  letter-spacing: .01em;
}
.story-beats { display: grid; gap: 10px; }
.story-beats p {
  margin: 0;
  color: var(--text-muted, #4a5563);
  line-height: 1.6;
  font-size: .98rem;
}
.story-cta { margin: 16px 0 0; }
.about-lead {
  font-weight: 600;
  color: var(--navy-900, #00142a);
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.welcab-purpose {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted, #4a5563);
  max-width: 40rem;
}
/* Harbor slide: crop baked-in watermark + soft veil */
.hero-slide.hero-lead-bg picture img {
  object-position: center 78%;
}
.hero-slide.hero-lead-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,20,42,.34) 0%, rgba(0,20,42,.18) 42%, rgba(0,20,42,.52) 100%);
}

.welcab-story {
  margin: 12px 0 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted, #4a5563);
  max-width: 42rem;
}


/* —— welcab-ui-1: structured Welcab landing —— */
.welcab-purpose-fig {
  aspect-ratio: 21 / 9;
  margin: 0 0 22px;
  border-radius: var(--radius-lg, 14px);
}
@media (max-width: 639px) {
  .welcab-purpose-fig { aspect-ratio: 16 / 10; }
}

.welcab-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #00142a;
}
.welcab-hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.welcab-hero-media picture, .welcab-hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
}
.welcab-hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,20,42,.78) 0%, rgba(0,20,42,.42) 48%, rgba(0,20,42,.28) 100%),
    linear-gradient(180deg, rgba(0,20,42,.25) 0%, rgba(0,20,42,.55) 100%);
}
.welcab-hero-inner {
  position: relative; z-index: 2;
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
  max-width: 42rem;
}
.welcab-eyebrow {
  margin: 0 0 12px;
  font-size: .92rem;
  letter-spacing: .04em;
  color: var(--gold-100, #F5EDD4);
  font-weight: 600;
}
.welcab-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: .01em;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
  max-width: 14em;
}
.welcab-hero-sub {
  margin: 0 0 22px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  color: var(--text-on-dark, #E9EDF2);
  max-width: 36em;
}
.welcab-hero-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.welcab-hero-actions .btn {
  flex: 1 1 140px; text-align: center; min-height: 44px;
}
.welcab-btn-on-dark {
  color: #fff !important;
  border-color: rgba(192,192,192,.7) !important;
  background: transparent;
}
.welcab-btn-on-dark:hover {
  background: #fff !important;
  color: var(--navy-900) !important;
  border-color: #fff !important;
}
.welcab-hero-note {
  margin: 14px 0 0;
  font-size: .9rem;
  color: var(--text-on-dark-muted, #AEB8C2);
}
.welcab-hero-split {
  margin: 16px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  font-size: .95rem;
}
.welcab-hero-split a {
  color: var(--gold-100, #F5EDD4);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.welcab-hero-split a:hover { color: #fff; }
.welcab-subnav { margin-top: 8px; margin-bottom: 0; }

.welcab-purpose-sec .welcab-purpose { margin-top: 8px; }
.welcab-pain-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}
.welcab-pain-card {
  background: var(--surface, #FAF8F5);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-900);
  border-radius: var(--radius-lg, 14px);
  padding: 22px 22px 24px;
  box-shadow: 0 8px 24px rgba(0,31,63,.04);
  min-width: 0;
}
.welcab-pain-card:nth-child(2) { border-top-color: var(--gold); }
.welcab-pain-icon { color: var(--navy-900); margin-bottom: 10px; }
.welcab-pain-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--navy-900);
  font-weight: 600;
}
.welcab-pain-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 1rem;
}
.welcab-inline-cta {
  margin: 22px 0 0;
  font-weight: 600;
}
.welcab-inline-cta a {
  color: var(--navy-900);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.welcab-inline-cta a:hover { color: var(--gold-600); }

.welcab-why-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.welcab-why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  padding: 20px 18px 22px;
  min-width: 0;
  box-shadow: 0 6px 18px rgba(0,31,63,.04);
}
.welcab-why-icon { color: var(--gold-600); margin-bottom: 10px; }
.welcab-why-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: var(--navy-900);
  font-weight: 600;
}
.welcab-why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.55;
}

.welcab-equip-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.welcab-equip-card {
  display: flex; flex-direction: column;
  background: var(--surface, #FAF8F5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 8px 24px rgba(0,31,63,.04);
}
.welcab-equip-fig { aspect-ratio: 16 / 10; border-radius: 0; }
.welcab-equip-fig-tone {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #E8EEF4 0%, #D5DEE8 100%);
  color: var(--navy-900);
}
.welcab-equip-placeholder { opacity: .75; }
.welcab-equip-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.welcab-equip-type {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 700;
}
.welcab-equip-body h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--navy-900);
  font-weight: 600;
}
.welcab-equip-body > p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: .98rem; }
.welcab-equip-list {
  margin: 4px 0 0;
  padding: 0 0 0 1.1em;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.55;
}
.welcab-equip-fit {
  margin-top: auto !important;
  padding-top: 8px;
  font-size: .88rem !important;
  color: var(--navy-800, #0B2C52) !important;
  font-weight: 500;
  border-top: 1px solid var(--line);
}
.welcab-equip-cta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}

.welcab-series-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.55;
  max-width: 40rem;
}

.welcab-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: none;
}
.welcab-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
}
.welcab-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-100, #F5EDD4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.welcab-step h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--navy-900);
  font-weight: 600;
}
.welcab-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.55;
}

.welcab-trust-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.welcab-trust-card {
  display: grid; gap: 6px;
  padding: 16px 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.welcab-trust-card strong {
  color: var(--gold-600);
  font-size: 1.25rem;
  letter-spacing: .02em;
  font-family: var(--font-display);
}
.welcab-trust-card span {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.45;
}
.welcab-care {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg, 14px);
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  max-width: 42rem;
}
.welcab-care h3 {
  margin: 0 0 10px;
  color: var(--gold-100, #F5EDD4);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
}
.welcab-care p { margin: 0 0 8px; color: var(--text-on-dark); line-height: 1.6; }
.welcab-care-note { font-size: .85rem !important; color: var(--text-on-dark-muted) !important; }

.welcab-faq-list { display: grid; gap: 10px; max-width: 48rem; }
.welcab-faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
}
.welcab-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--navy-900);
  font-size: 1.02rem;
  line-height: 1.4;
}
.welcab-faq-item summary::-webkit-details-marker { display: none; }
.welcab-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold-600);
  font-weight: 700;
}
.welcab-faq-item[open] summary::after { content: "–"; }
.welcab-faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: .98rem;
}

.welcab-cta-band {
  background: linear-gradient(180deg, #00172F 0%, #001F3F 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 72px) 0;
}
.welcab-cta-inner { max-width: 40rem; }
.welcab-cta-band h2 {
  margin: 0 0 12px;
  color: var(--gold-100, #F5EDD4);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
}
.welcab-cta-band > .container > p,
.welcab-cta-inner > p {
  margin: 0 0 20px;
  color: var(--text-on-dark);
  line-height: 1.6;
}
.welcab-cta-contact {
  margin: 18px 0 0 !important;
  font-size: .92rem;
  color: var(--text-on-dark-muted) !important;
}

.welcab-sticky {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: rgba(0, 31, 63, .96);
  border-top: 1px solid rgba(192,192,192,.25);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
}
.welcab-sticky a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  border: 1px solid rgba(192,192,192,.45);
}
.welcab-sticky-wa {
  background: var(--wa);
  border-color: var(--wa) !important;
}
body[data-page="welcab"] { padding-bottom: 0; }

@media (max-width: 959px) {
  .welcab-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcab-equip-grid { grid-template-columns: 1fr; }
  .welcab-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .welcab-pain-grid { grid-template-columns: 1fr; }
  .welcab-why-grid { grid-template-columns: 1fr; }
  .welcab-trust-grid { grid-template-columns: 1fr; }
  .welcab-hero-actions .btn { flex: 1 1 100%; }
  .welcab-sticky { display: flex; }
  body[data-page="welcab"] { padding-bottom: 64px; }
  .welcab-hero { min-height: min(68vh, 560px); }
  .welcab-hero h1 { font-size: clamp(1.65rem, 7vw, 2.1rem); }
}
@media (min-width: 960px) {
  .welcab-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
  .welcab-step {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
    min-height: 100%;
  }
}


/* —— welcab-ui-1 illus badges —— */
/* Creative 2026-10-24: show 示意圖片 label on Welcab landing illustrative figures */
body.page-welcab .illus-badge,
.welcab-hero .illus-badge,
.welcab-purpose-fig .illus-badge,
.welcab-equip-fig .illus-badge,
.welcab-feature .illus-badge {
  display: inline-block !important;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 20, 42, 0.72);
  color: #F5EDD4;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.welcab-hero-media { position: absolute; inset: 0; } /* ensure badge anchors */
.welcab-hero-media .illus-badge { z-index: 3; }

.welcab-equip-examples {
  display: grid;
  gap: 14px;
  margin: 8px 0 22px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .welcab-equip-examples { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
.welcab-equip-example { aspect-ratio: 16 / 9; border-radius: var(--radius-lg, 14px); }
.welcab-equip-examples .illus-badge { display: inline-block !important; }

/* —— club-ui-1 illus badges —— */
body[data-page="club"] .illus-badge,
body[data-page="member"] .illus-badge,
.club-hero-media .illus-badge,
.member-card-fig .illus-badge,
.member-lifestyle-banner .illus-badge {
  display: inline-block !important;
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  bottom: auto;
  z-index: 3;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 20, 42, 0.72);
  color: #F5EDD4;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* === club-ui-1 === */
.club-hero {
  position: relative;
  min-height: min(58vh, 520px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
}
.club-hero-media {
  position: absolute;
  inset: 0;
}
.club-hero-media picture,
.club-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.club-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,31,63,.92) 0%, rgba(0,31,63,.72) 42%, rgba(0,31,63,.35) 100%),
    linear-gradient(0deg, rgba(0,23,47,.55) 0%, transparent 55%);
  border-bottom: 2px solid rgba(212,175,55,.45);
  pointer-events: none;
}
.club-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
  max-width: 44rem;
}
.club-eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-100, #F3EBD0);
}
.club-hero h1,
.club-hero .club-hook {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3.6vw, 2.35rem);
  color: #fff;
  letter-spacing: .02em;
  line-height: 1.35;
  max-width: 18em;
  font-weight: 700;
}
.club-lead {
  margin: 0 0 22px;
  color: var(--text-on-dark);
  line-height: 1.65;
  font-size: 1.02rem;
}
.club-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.club-btn-on-dark {
  color: #fff !important;
  border-color: rgba(255,255,255,.55) !important;
  background: transparent !important;
}
.club-btn-on-dark:hover {
  background: #fff !important;
  color: var(--navy-900) !important;
  border-color: #fff !important;
}
.club-hub-sec { padding-top: clamp(28px, 4vw, 40px); }
.club-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.club-hub-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px 20px 20px;
  border: 1px solid var(--silver, #C9CCCF);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.club-hub-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--navy-900);
  transform: translateY(-2px);
}
.club-hub-card-alt { border-top-color: var(--navy-900); }
.club-hub-icon { color: var(--navy-900); }
.club-hub-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--navy-900);
}
.club-hub-card p {
  margin: 0;
  color: var(--text-muted, #5a6570);
  line-height: 1.5;
  font-size: .95rem;
}
.club-hub-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 1.25rem;
  color: var(--gold);
}
.club-hub-foot {
  margin: 28px 0 0;
  text-align: center;
}


/* === club-ui-3 home CTA + hook (+ illus-v2 visual) === */
.section-home-club {
  padding: clamp(28px, 4vw, 48px) 0;
  background: linear-gradient(180deg, #f7f5ef 0%, var(--surface, #fff) 100%);
}
.home-club-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--silver, #C9CCCF);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--navy-900);
  box-shadow: var(--shadow-sm);
  text-align: left;
  overflow: hidden;
  min-height: 280px;
}
.home-club-copy {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 3.5vw, 40px) clamp(20px, 3vw, 36px);
  color: #fff;
  background: linear-gradient(90deg, rgba(0,23,47,.94) 0%, rgba(0,31,63,.78) 70%, rgba(0,31,63,.28) 100%);
}
.home-club-media {
  position: relative;
  margin: 0;
  min-height: 220px;
  background: var(--navy-900);
}
.home-club-media picture,
.home-club-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.home-club-media .illus-badge {
  display: inline-block !important;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 20, 42, 0.72);
  color: #F5EDD4;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.home-club-eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-100, #F3EBD0);
}
.section-home-club h2.home-club-title,
.home-club-copy .home-club-title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  color: #fff !important;
  line-height: 1.35;
  font-weight: 700;
  max-width: 18em;
}
.home-club-body {
  margin: 0 0 18px;
  color: var(--text-on-dark, rgba(255,255,255,.86));
  line-height: 1.6;
  font-size: .98rem;
  max-width: 32rem;
}
.home-club-copy .btn-gold { box-shadow: 0 0 0 1px rgba(212,175,55,.35); }
@media (max-width: 879px) {
  .home-club-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-club-media {
    order: -1;
    aspect-ratio: 16 / 9;
    max-height: 260px;
  }
  .home-club-copy {
    background: linear-gradient(180deg, rgba(0,23,47,.96) 0%, rgba(0,31,63,.92) 100%);
  }
}
@media (max-width: 719px) {
  .club-hero .club-hook { max-width: none; font-size: clamp(1.28rem, 5.2vw, 1.65rem); }
  .home-club-copy { padding: 20px 16px 22px; }
  .home-club-title { max-width: none; }
  .home-club-media { max-height: 220px; }
}

/* member */
.member-hero {
  background: linear-gradient(180deg, #032748 0%, var(--navy-900) 100%);
  color: #fff;
  padding: clamp(28px, 4vw, 40px) 0 8px;
  border-bottom: 2px solid rgba(212,175,55,.4);
}
.member-hero-inner { max-width: 46rem; }
.member-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-100, #F3EBD0);
}
.member-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: #fff;
}
.member-lead {
  margin: 0 0 18px;
  color: var(--text-on-dark);
  line-height: 1.65;
}
.member-subnav {
  margin-bottom: 18px;
}
.member-subnav a {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.member-subnav a:hover {
  background: #fff;
  color: var(--navy-900);
  border-color: #fff;
}

.member-own-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.member-own-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--silver, #C9CCCF);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.member-card-fig {
  margin: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--navy-900);
}
.member-card-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.member-own-body { padding: 16px 18px 20px; }
.member-perk-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-100, #F3EBD0);
  color: var(--navy-900);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.member-own-body h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--navy-900);
}
.member-own-body p {
  margin: 0;
  color: var(--text-muted, #5a6570);
  line-height: 1.55;
}

.member-partner-head { margin-bottom: 12px; }
.member-partner-note {
  margin: 8px 0 0;
  font-size: .9rem;
  color: var(--text-muted, #5a6570);
  line-height: 1.5;
}
.member-partner-note-foot { margin: 16px 0 0; }
.member-lifestyle-banner {
  margin: 0 0 18px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  height: clamp(200px, 26vw, 280px);
  aspect-ratio: auto;
  max-height: none;
  background: var(--navy-900);
}
.member-lifestyle-banner picture {
  display: block;
  width: 100%;
  height: 100%;
}
.member-lifestyle-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.member-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.member-partner-card {
  padding: 16px 16px 18px;
  border: 1px solid var(--silver, #C9CCCF);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold);
}
.member-partner-card-soft {
  border-left-color: var(--navy-700);
  background: #f7f8f9;
}
.member-partner-icon {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 8px;
}
.member-partner-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--navy-900);
}
.member-partner-card p {
  margin: 0;
  font-size: .92rem;
  color: var(--text-muted, #5a6570);
  line-height: 1.5;
}
.member-more {
  margin-top: 22px;
  border: 1px solid var(--silver, #C9CCCF);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 4px 14px 14px;
}
.member-more > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 4px;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.05rem;
}
.member-more > summary::-webkit-details-marker { display: none; }
.member-more > summary::after {
  content: "＋";
  float: right;
  color: var(--gold);
  font-weight: 700;
}
.member-more[open] > summary::after { content: "－"; }
.member-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 4px;
}

.member-cta-sec {
  background: linear-gradient(180deg, #f5f6f7 0%, #fff 100%);
  border-top: 1px solid var(--silver, #C9CCCF);
}
.member-cta-inner { max-width: 40rem; text-align: center; }
.member-footer-note {
  margin: 0 0 18px;
  color: var(--text-muted, #5a6570);
  font-size: .92rem;
  line-height: 1.55;
}
.member-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.terms-eyebrow {
  margin: 0 0 4px;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-100, #F3EBD0);
}
.terms-subnav { margin: 16px 0 0; }
.terms-wrap { max-width: 48rem; }
.terms-prose { line-height: 1.7; }

@media (max-width: 959px) {
  .member-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .club-hub-grid,
  .member-own-grid,
  .member-more-grid { grid-template-columns: 1fr; }
  .member-partner-grid { grid-template-columns: 1fr; }
  .member-lifestyle-banner { width: 100%; height: clamp(180px, 48vw, 240px); aspect-ratio: auto; }
  .club-hero { min-height: min(64vh, 480px); }
  .club-hero-actions .btn { flex: 1 1 100%; }
}


/* Welcab howto / official demo embeds */
.welcab-howto { margin-top: 36px; }
.welcab-howto-head { margin-bottom: 18px; }
.welcab-howto-head h3 { margin: 0 0 8px; font-size: 1.35rem; color: var(--navy, #001F3F); }
.welcab-howto-head p { margin: 0; color: var(--text-muted); max-width: 52rem; line-height: 1.6; }
.welcab-howto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.welcab-howto-card {
  background: #fff;
  border: 1px solid rgba(0,31,63,.08);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.welcab-howto-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1220;
}
.welcab-howto-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.welcab-howto-card h4 {
  margin: 12px 14px 4px;
  font-size: 1.02rem;
  color: var(--navy, #001F3F);
}
.welcab-howto-card p {
  margin: 0 14px 14px;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.55;
}
.welcab-howto-credit {
  margin: 14px 0 6px;
  font-size: .85rem;
  color: var(--text-muted);
}
.welcab-howto-more { margin: 0; }
.welcab-howto-more a { color: var(--navy, #001F3F); font-weight: 600; }
@media (max-width: 900px) {
  .welcab-howto-grid { grid-template-columns: 1fr; }
}


.welcab-custom {
  margin-top: 28px;
  border-radius: var(--radius-lg, 14px);
  background: linear-gradient(135deg, #001F3F 0%, #0a2f52 55%, #1a3a4a 100%);
  color: #fff;
  overflow: hidden;
}
.welcab-custom-inner { padding: 28px 26px; }
.welcab-custom h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  color: #fff;
  line-height: 1.35;
}
.welcab-custom p {
  margin: 0 0 18px;
  color: rgba(255,255,255,.88);
  line-height: 1.65;
  max-width: 46rem;
  font-size: .98rem;
}
.welcab-custom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.welcab-custom .btn-outline {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.welcab-custom .btn-outline:hover {
  background: rgba(255,255,255,.1);
}
@media (max-width: 640px) {
  .welcab-custom-inner { padding: 22px 18px; }
}


/* Welcab equip diagram placeholder — awaiting official Toyota-based Visual art */
figure.illus-figure.welcab-equip-fig--ph,
figure.illus-figure.welcab-equip-trio--ph {
  background: #e8eef4 !important; /* override .illus-figure navy #0b1c33 */
  border-radius: 0;
}
.welcab-equip-fig--ph {
  aspect-ratio: 4 / 3;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.welcab-equip-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  margin: 0;
  box-sizing: border-box;
  /* Soft daylight / warm gray — NOT navy void; no car silhouette */
  background-color: #e8eef4;
  background-image: linear-gradient(165deg, #dceaf5 0%, #eef2f6 40%, #f3efe8 78%, #ebe6de 100%);
  color: #6f6a62;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
}
.welcab-equip-ph span {
  padding: 0 12px;
  position: relative;
  z-index: 1;
}
.welcab-equip-trio--ph {
  margin: 1.25rem 0 0;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 7;
}
.welcab-equip-ph--trio {
  min-height: 140px;
  border-radius: 12px;
  aspect-ratio: auto;
  height: 100%;
}
.welcab-equip-fig--ph .illus-badge,
.welcab-equip-trio--ph .illus-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  bottom: auto;
  z-index: 2;
}


/* —— welcab-ui-1x-equip-v7: transparent cutout cards —— */
.welcab-equip-fig:not(.welcab-equip-fig--ph) {
  aspect-ratio: auto;
  margin: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Let card/page surface show through PNG alpha — NOT navy illus plate / gray plate */
  background: transparent !important;
}
.welcab-equip-media {
  aspect-ratio: 16 / 10;
  width: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.welcab-equip-fig:not(.welcab-equip-fig--ph) .welcab-equip-media picture,
.welcab-equip-fig:not(.welcab-equip-fig--ph) .welcab-equip-media img {
  display: block;
  width: 100%;
  height: 100%;
}
.welcab-equip-fig:not(.welcab-equip-fig--ph) .welcab-equip-media img {
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.welcab-equip-source {
  display: block;
  margin: 0;
  padding: 6px 12px 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted, #6f6a62);
  text-align: center;
  background: transparent;
  flex: 0 0 auto;
}


/* === about-ui-1a: values + care (Batch 3 option A) === */
.about-values {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.about-values-title {
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--navy-900, #00142a);
  letter-spacing: .01em;
}
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.about-value-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--silver, #C9CCCF);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.about-value-fig {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--navy-900);
}
.about-value-fig picture,
.about-value-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-value-body { padding: 16px 18px 20px; }
.about-value-body h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--navy-900);
}
.about-value-body p {
  margin: 0;
  color: var(--text-muted, #5a6570);
  line-height: 1.55;
  font-size: .95rem;
}
.about-care {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line, rgba(0,0,0,.08));
  background: linear-gradient(135deg, #faf7f0 0%, #f3f5f8 100%);
}
.about-care h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-900, #00142a);
}
.about-care p {
  margin: 0;
  color: var(--text-muted, #5a6570);
  line-height: 1.6;
  font-size: .96rem;
}
body[data-page="about"] .illus-badge,
.about-value-fig .illus-badge {
  display: inline-block !important;
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  bottom: auto;
  z-index: 3;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 20, 42, 0.72);
  color: #F5EDD4;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
@media (max-width: 899px) {
  .about-values-grid { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .about-values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-value-card:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
}

.welcab-equip-trio {
  margin: 1.25rem 0 0;
  max-width: 100%;
}
.welcab-equip-trio img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* === about-ui-2: brand story hero; value cards hidden pending Visual redraw === */
.about-values { display: none !important; }
.about-care { display: none !important; }


/* === about-ui-2d: development timeline (2013→2024; 2024 awards+media) === */
.about-timeline {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 28px 24px 22px;
  border-radius: var(--radius, 12px);
  background: linear-gradient(180deg, #001F3F 0%, #0B2C52 100%);
  color: #F5EDD4;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 10px 28px rgba(0, 31, 63, 0.18);
}
.about-timeline-head { margin: 0 0 22px; max-width: 40rem; }
.about-timeline-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: #F5EDD4;
  letter-spacing: .02em;
}
.about-timeline-lead {
  margin: 0;
  color: rgba(245, 237, 212, 0.82);
  line-height: 1.6;
  font-size: .98rem;
}
.about-timeline-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  position: relative;
}
.about-timeline-track::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 11px;
  height: 2px;
  background: linear-gradient(90deg, rgba(212,175,55,.25), #D4AF37 20%, #D4AF37 80%, rgba(212,175,55,.25));
  z-index: 0;
}
.about-timeline-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.about-timeline-dot {
  width: 14px;
  height: 14px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: #D4AF37;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.22), 0 0 0 1px rgba(0, 31, 63, 0.4);
  flex-shrink: 0;
}
.about-timeline-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 10px;
  padding: 14px 14px 16px;
  min-height: 100%;
}
.about-timeline-year {
  display: inline-block;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  color: #D4AF37;
  margin-bottom: 4px;
}
.about-timeline-node-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}
.about-timeline-card p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: rgba(245, 237, 212, 0.88);
}
.about-timeline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.about-timeline-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #001F3F;
  background: linear-gradient(180deg, #F5EDD4 0%, #D4AF37 100%);
  border: 1px solid rgba(212, 175, 55, 0.65);
}
.about-timeline-media {
  margin-top: 12px;
  padding: 0;
  border: none;
  background: transparent;
}
.about-timeline-media-title {
  display: none;
}
.about-timeline-media-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.about-timeline-media-list li {
  position: relative;
  padding-left: 14px;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(245, 237, 212, 0.92);
}
.about-timeline-media-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.75);
}
.about-timeline-node--2024 .about-timeline-card {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12);
}
.about-timeline-note {
  margin: 18px 0 0;
  font-size: .85rem;
}
.about-timeline-note a {
  color: #D4AF37;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-timeline-note a:hover { color: #F5EDD4; }

@media (max-width: 899px) {
  .about-timeline { padding: 22px 18px 18px; }
  .about-timeline-track {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 8px;
  }
  .about-timeline-track::before {
    left: 13px;
    right: auto;
    top: 8px;
    bottom: 8px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(212,175,55,.25), #D4AF37 15%, #D4AF37 85%, rgba(212,175,55,.25));
  }
  .about-timeline-node {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 0 0 20px;
  }
  .about-timeline-node:last-child { padding-bottom: 0; }
  .about-timeline-dot {
    margin: 6px 0 0;
    flex-shrink: 0;
  }
  .about-timeline-card { flex: 1; }
}

/* === about-ui-2f: founder + moment photo placeholders (no faces) === */
.about-founders,
.about-moments {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 24px 22px 20px;
  border-radius: var(--radius, 12px);
  background: linear-gradient(180deg, #F7F4EC 0%, #EEF3F8 100%);
  border: 1px solid rgba(0, 31, 63, 0.08);
  box-shadow: 0 6px 18px rgba(0, 31, 63, 0.06);
}
.about-founders-head,
.about-moments-head { margin: 0 0 16px; max-width: 40rem; }
.about-founders-head h2,
.about-moments-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: #001F3F;
  letter-spacing: .02em;
}
.about-moments-lead {
  margin: 0;
  color: rgba(0, 31, 63, 0.72);
  line-height: 1.55;
  font-size: .95rem;
}
.about-founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 560px;
}
.about-moments-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.about-photo-slot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-photo-slot figcaption {
  font-size: .85rem;
  font-weight: 600;
  color: #001F3F;
  text-align: center;
  letter-spacing: .01em;
}
.about-photo-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 12px;
  border: 1.5px dashed rgba(212, 175, 55, 0.65);
  background:
    linear-gradient(165deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #DCEAF6 0%, #E8F0F6 38%, #F0EBD8 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
  overflow: hidden;
}
.about-photo-slot--portrait .about-photo-ph {
  aspect-ratio: 3 / 4;
}
.about-photo-slot--landscape .about-photo-ph {
  aspect-ratio: 16 / 10;
}
.about-photo-ph-text {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #001F3F;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 2px 8px rgba(0, 31, 63, 0.08);
}
@media (max-width: 899px) {
  .about-founders,
  .about-moments { padding: 20px 16px 16px; }
  .about-founders-grid {
    max-width: none;
    gap: 12px;
  }
  .about-moments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .about-founders-grid { grid-template-columns: 1fr 1fr; }
  .about-photo-ph-text { font-size: .78rem; padding: 6px 10px; }
}

/* === about-ui-2f-timeline-6: six milestones === */
.about-timeline-track { gap: 12px; }
.about-timeline-card { padding: 12px 10px 14px; }
.about-timeline-node-title { font-size: .95rem; }
.about-timeline-card p { font-size: .82rem; }
.about-timeline-chip { font-size: .68rem; padding: 4px 8px; }
.about-timeline-media-list li { font-size: .78rem; }
@media (max-width: 1100px) and (min-width: 900px) {
  .about-timeline-track { gap: 8px; }
  .about-timeline-card { padding: 10px 8px 12px; }
}

/* === about-ui-2g: three illustrated stat cards (15+ / 98%+ / 100%) === */
.about-stats {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 26px 22px 22px;
  border-radius: var(--radius, 12px);
  background: linear-gradient(180deg, #F8F5EC 0%, #EEF3F8 100%);
  border: 1px solid rgba(0, 31, 63, 0.08);
  box-shadow: 0 6px 18px rgba(0, 31, 63, 0.06);
}
.about-stats-head { margin: 0 0 18px; }
.about-stats-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: #001F3F;
  letter-spacing: .02em;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.about-stat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 31, 63, 0.08);
  box-shadow: 0 4px 14px rgba(0, 31, 63, 0.06);
  overflow: hidden;
  min-width: 0;
}
.about-stat-media {
  margin: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #DCEAF6 0%, #E8F0F6 38%, #F0EBD8 100%);
  overflow: hidden;
}
.about-stat-media picture,
.about-stat-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-stat-body {
  padding: 16px 16px 18px;
  text-align: center;
}
.about-stat-value {
  margin: 0 0 6px;
  font-family: Montserrat, "Noto Sans TC", sans-serif;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  color: #001F3F;
  letter-spacing: .01em;
}
.about-stat-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #D4AF37;
  letter-spacing: .04em;
}
.about-stat-desc {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(0, 31, 63, 0.78);
}
@media (max-width: 899px) {
  .about-stats { padding: 20px 16px 16px; }
  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .about-stat-card {
    flex-direction: row;
    align-items: stretch;
  }
  .about-stat-media {
    width: 112px;
    flex: 0 0 112px;
    aspect-ratio: 1 / 1;
  }
  .about-stat-body {
    flex: 1;
    text-align: left;
    padding: 14px 14px 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .about-stat-value { font-size: 1.7rem; }
  .about-stat-title { font-size: .98rem; }
  .about-stat-desc { font-size: .86rem; }
}
@media (max-width: 480px) {
  .about-stat-media { width: 96px; flex-basis: 96px; }
  .about-stat-value { font-size: 1.55rem; }
}

/* SEO 2026-10-31 */
.site-nap { font-size: 0.875rem; line-height: 1.45; color: rgba(255,255,255,0.85); }
.site-nap p { margin: 0.15rem 0; }
.site-nap a { color: #D4AF37; }
.contact-nap.static-nap { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border: 1px solid rgba(0,31,63,0.12); border-radius: 8px; background: #f7f9fc; max-width: 36rem; }
.contact-nap.static-nap p { margin: 0.25rem 0; }
.seo-welcab-h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin: 0 0 0.5rem; }
.seo-welcab-h2 a { color: #001F3F; text-decoration: none; border-bottom: 2px solid #D4AF37; }
.seo-welcab-h2 a:hover { color: #003366; }
.seo-welcab-lead { margin: 0; color: #334; max-width: 40rem; }
.welcab-faq-cta { margin-top: 1.25rem; font-size: 0.95rem; }
