/* D120: block variants and the new block types (docs/site-schema.md). Only
   copied into a site, and linked after style.css, when its site definition
   uses a variant other than the first, a new block type or an extra page,
   so a site that uses none of them builds exactly as before. Same tokens and
   rules as style.css: flat colours, AA contrast, 44 px targets, no motion
   beyond style.css's own. */

/* ---- hero ------------------------------------------------------------------ */
.hero.v-short { min-height: 60vh; min-height: 60svh; }
.hero.v-split { min-height: 0; display: flex; flex-direction: column; align-items: stretch; background: var(--surface); color: var(--text); }
.hero.v-split .hero-img { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; }
.hero.v-split .hero-img.ph { min-height: 0; }
.hero.v-split .hero-scrim { display: none; }
.hero.v-split .hero-text { padding-top: var(--spacing-400); padding-bottom: var(--spacing-600); }
.hero.v-split .hero-title { background: none; color: var(--text); -webkit-background-clip: border-box; background-clip: border-box; }
.hero.v-split .tagline { color: var(--text); }
.hero.v-split .lead { color: var(--text-2); }
.hero.v-split .btn:focus-visible { outline-color: var(--brand-ink); }
@media (max-width: 767px) { .hero.v-split .hero-img { margin-top: calc(var(--topbar-space) - var(--spacing-100)); border-radius: var(--radius-card); width: calc(100% - 2 * var(--gutter)); margin-left: var(--gutter); } }
@media (min-width: 768px) {
  .hero.v-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-top: var(--topbar-space); }
  .hero.v-split .hero-img { order: 2; height: 100%; min-height: 420px; aspect-ratio: auto; }
  .hero.v-split .hero-text { order: 1; max-width: none; padding: var(--spacing-700) var(--spacing-600); }
  /* D152: the text starts where every section's content starts (the 1120 px wrap), not 48 px from the window's edge. */
  .hero.v-split .hero-text { padding-left: max(var(--spacing-600), calc((100vw - 1120px) / 2 + var(--gutter))); }
}

/* ---- about / statement / items / gallery / faq ---------------------------------- */
@media (min-width: 960px) { .about.v-reverse .about-img { order: 2; } }
.about.v-centered .about-img { display: none; }
.about.v-centered .about-grid, .about.v-centered .about-grid.has-img { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.about.v-centered .section-head { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }
.statement.v-quiet { padding: var(--spacing-600) 0; }
.statement.v-quiet .statement-text { font-size: 1.5rem; line-height: 2rem; }
.items.v-list .grid { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 840px; }
.items.v-list .grid > .card { display: block; border-width: 0 0 1px; border-radius: 0; background: none; }
.items.v-list .grid > .card:hover { transform: none; }
.items.v-list .card-img { display: none; }
.items.v-list .card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--spacing-200); padding: var(--spacing-200) 0; }
.items.v-list .card-body > * { grid-column: 1; }
.items.v-list .card-foot { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 0; flex-direction: column; align-items: flex-end; justify-content: flex-start; }
@media (min-width: 640px) { .gallery.v-large .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-300); } }
@media (min-width: 960px) { .faq.v-two-col .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; align-items: start; } }

/* ---- rich text ------------------------------------------------------------------ */
.rt { max-width: 680px; color: var(--text-2); }
.rt > * { margin: 0 0 var(--spacing-200); }
.rt > :last-child { margin-bottom: 0; }
.rt h3 { color: var(--text); margin-top: var(--spacing-300); }
.rt h3:first-child { margin-top: 0; }
.rt ul { padding-left: 1.25em; }
.rt li + li { margin-top: var(--spacing-50); }
.rt strong { color: var(--text); font-weight: 600; }
.rt a { display: inline; min-height: 0; }
.b-text.v-centered .wrap { text-align: center; }
.b-text.v-centered .rt, .b-text.v-centered .section-head { margin-left: auto; margin-right: auto; }
.b-text.v-centered .rt ul { display: inline-block; text-align: left; }

/* ---- image + text ------------------------------------------------------------------ */
.it-grid { display: grid; gap: var(--spacing-300); }
.it-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); background: var(--surface-2); }
.it-text { display: flex; flex-direction: column; gap: var(--spacing-200); }
.it-text > * { margin: 0; }
@media (min-width: 768px) {
  .it-grid.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--spacing-600); }
  .b-image-text.v-image-right .it-img { order: 2; }
}

/* ---- buttons, notice, video ---------------------------------------------------------- */
.b-buttons { padding: var(--spacing-500) 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--spacing-100); }
.b-buttons.v-center .wrap { text-align: center; }
.b-buttons.v-center .btn-row { justify-content: center; }
.b-buttons.v-center .section-head { margin-left: auto; margin-right: auto; }
.b-notice, .section.b-notice:nth-of-type(even) { padding: var(--spacing-300) 0; background: transparent; }
.notice-box { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-100) var(--spacing-200); padding: var(--spacing-200) var(--spacing-300); border-radius: var(--radius-card); background: var(--warning-bg); border: 1px solid var(--border); color: var(--text); }
.notice-box > p { margin: 0; flex: 1 1 16em; }
.notice-box .icon { color: var(--warning); }
.notice-link { display: inline-flex; align-items: center; gap: var(--spacing-50); min-height: 44px; color: var(--brand-ink); }
.b-notice.v-highlight .notice-box { background: var(--brand-ink); border-color: transparent; color: #ffffff; }
.b-notice.v-highlight .notice-box .icon, .b-notice.v-highlight .notice-link { color: #ffffff; }
.b-notice.v-highlight .notice-link:focus-visible { outline-color: #ffffff; }
.b-video .video-player { aspect-ratio: 16 / 9; object-fit: contain; }
.b-video.v-narrow .video-player { max-width: 420px; aspect-ratio: 9 / 16; margin: 0 auto; }
.video-caption { margin-top: var(--spacing-100); }

/* ---- 詢問表單 (D153) ---------------------------------------------------------------------
   The 「已收到」 box shows instead of the form when the URL is #inquiry-sent (the platform's
   answer without JavaScript) or when inquiry.js adds .is-shown. Fields as on the booking page:
   16 px text (no zoom on iPhone), 44 px targets, the error colour and text together. */
.inq { max-width: 640px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--spacing-300); }
.inq-form { display: flex; flex-direction: column; gap: var(--spacing-200); }
.inq-field { display: flex; flex-direction: column; gap: var(--spacing-75); }
.inq-field label { font-size: .875rem; line-height: 1.25rem; font-weight: 600; color: var(--text); }
.inq-field input, .inq-field textarea { width: 100%; min-height: 44px; box-sizing: border-box; font: inherit; font-size: 1rem; line-height: 1.5rem; padding: var(--spacing-75) var(--spacing-100); border: 1px solid var(--border-strong); border-radius: min(var(--radius-lg), var(--radius-xl)); background: var(--surface); color: var(--text); }
.inq-field textarea { min-height: 136px; resize: vertical; }
.inq-field input:focus-visible, .inq-field textarea:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 0; border-color: var(--brand-ink); }
.inq-field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.inq-hint { margin: 0; color: var(--text-2); }
.inq-check { display: flex; align-items: flex-start; gap: var(--spacing-100); min-height: 44px; color: var(--text-2); }
.inq-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand-ink); }
.inq-check a { color: var(--brand-ink); font-weight: 600; }
.inq-msg { margin: 0; padding: var(--spacing-100) var(--spacing-200); border-radius: var(--radius-xl); border: 1px solid var(--danger); background: var(--danger-bg); color: var(--danger); }
.inq-send { align-self: flex-start; min-width: 8em; }
.inq-send[disabled] { opacity: .6; cursor: progress; }
.inq-done { display: none; }
.inq-done:target, .inq-done.is-shown { display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-100); outline: none; }
.inq-done:target + .inq-form, .inq-done.is-shown + .inq-form { display: none; }
.inq-done > p { margin: 0; }
.inq-done-title { display: flex; align-items: center; gap: var(--spacing-75); color: var(--success); }
.inq-hp { display: none !important; }
/* D152: variant 跳出視窗 (v-dialog). The form takes no room on the page: a link to #inquiry (the site's
   main action, any button) opens it in a dialog (inquiry.js moves it there). Without JavaScript the
   same link shows it in the page (:target), and the answer page of the platform still comes back to
   #inquiry-sent. On phones it is the first block of the 聯絡 tab but shows nothing, so the block
   after it takes the room under the top bar. */
.b-inquiry.v-dialog { display: none; }
.b-inquiry.v-dialog:target, .b-inquiry.v-dialog:has(:target) { display: block; }
.b-inquiry.v-dialog.is-dialog { display: none; }
.inq-dialog { width: min(560px, calc(100% - 2 * var(--spacing-200))); max-height: calc(100vh - 2 * var(--spacing-200)); max-height: calc(100dvh - 2 * var(--spacing-200)); padding: 0; border: 0; border-radius: var(--radius-card); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sheet); overflow: auto; }
.inq-dialog::backdrop { background: var(--scrim); }
.inq-dialog .wrap { padding: var(--spacing-300); }
.inq-dialog .section-head { margin-bottom: var(--spacing-300); padding-right: var(--spacing-600); }
.inq-dialog .inq { max-width: none; padding: 0; border: 0; background: none; }
.inq-close { position: absolute; top: var(--spacing-100); right: var(--spacing-100); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-full); background: none; color: var(--text); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.inq-close:hover { background: var(--hover-tint); }
.inq-close:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
@media (max-width: 767px) {
  .tabs-on > .b-inquiry.v-dialog.panel-top + .section, .tabbed > .b-inquiry.v-dialog.panel-top + .section { padding-top: calc(var(--topbar-space) + var(--spacing-300)); }
}
@media (max-width: 639px) { .inq { padding: var(--spacing-200); } .inq-send { align-self: stretch; } }

/* ---- extra pages ----------------------------------------------------------------------- */
.page-top { padding-top: calc(var(--topbar-space) + var(--spacing-500)); padding-bottom: 0; }
.page-top + .section { padding-top: var(--spacing-400); }

/* ---- gallery: 輪播 (D154) ------------------------------------------------------------
   One wide slide at a time in a strip that snaps (works without JavaScript:
   swipe, scroll, arrow keys; the next slide peeks in and a thin scroll bar
   shows there is more). With scripting the slide fills the strip and
   carousel.js shows the controls under it: buttons on the page's own
   surface (no text on photos), 44 px, the dot of the shown slide filled and
   larger (not colour alone). Fixed aspect ratios, so nothing moves while
   photos load. */
.gallery.v-carousel .tiles { position: relative; display: flex; gap: var(--spacing-200); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 0; padding: 0 0 var(--spacing-100); scroll-padding: 0; scrollbar-width: thin; }
.gallery.v-carousel .tiles::-webkit-scrollbar { display: block; height: 6px; }
.gallery.v-carousel .tiles::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); }
.gallery.v-carousel .tiles > .tile { flex: 0 0 calc(100% - var(--spacing-600)); min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery.v-carousel .tile-img { aspect-ratio: 4 / 3; border-radius: var(--radius-xl); background: var(--surface-2); }
.gallery.v-carousel video.tile-img { background: #000000; object-fit: contain; }
.gallery.v-carousel .tiles:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
@media (min-width: 640px) { .gallery.v-carousel .tile-img { aspect-ratio: 3 / 2; } }
@media (min-width: 960px) { .gallery.v-carousel .tile-img { aspect-ratio: 16 / 9; } }
@media (scripting: enabled) {
  .gallery.v-carousel .tiles { padding-bottom: 0; scrollbar-width: none; }
  .gallery.v-carousel .tiles::-webkit-scrollbar { display: none; }
  .gallery.v-carousel .tiles > .tile { flex-basis: 100%; }
}
/* D152: the controls sit on the picture, not under it: previous / next at its sides, the dots (or the
   count) at its foot, pause / play in its corner. .cr-controls is a box of the picture's own shape laid
   over the strip (the caption under the picture stays free); only the buttons take clicks. On any photo
   the buttons are white discs with a shadow and the dots sit in a dark pill, so both stay visible. */
.carousel { position: relative; }
.cr-controls { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 4 / 3; pointer-events: none; }
@media (min-width: 640px) { .cr-controls { aspect-ratio: 3 / 2; } }
@media (min-width: 960px) { .cr-controls { aspect-ratio: 16 / 9; } }
.cr-controls > * { position: absolute; pointer-events: auto; }
.cr-dots, .cr-count { left: 50%; bottom: var(--spacing-100); transform: translateX(-50%); margin: 0; padding: 0 var(--spacing-100); border-radius: var(--radius-full); background: var(--badge-dark); color: #ffffff; }
.cr-dots { display: none; }
.cr-count { min-height: 28px; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .cr-dots:not(.is-many) { display: flex; }
  .cr-dots:not(.is-many) + .cr-count { display: none; }
}
.cr-dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-full); background: none; cursor: pointer; }
.cr-dot span { width: 8px; height: 8px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .55); transition: transform var(--dur-fade) var(--ease), background-color var(--dur-fade) var(--ease); }
.cr-dot:hover span { background: rgba(255, 255, 255, .8); }
.cr-dot[aria-current="true"] span { background: #ffffff; transform: scale(1.4); }
.cr-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-full); background: var(--glass-strong); color: var(--text); box-shadow: 0 2px 12px rgba(12, 10, 9, .28); cursor: pointer; transition: background-color var(--dur-fade) var(--ease); }
.cr-btn:hover { background: #ffffff; }
.cr-prev, .cr-next { top: 50%; transform: translateY(-50%); }
.cr-prev { left: var(--spacing-100); }
.cr-next { right: var(--spacing-100); }
.cr-play { top: var(--spacing-100); right: var(--spacing-100); }
.cr-btn:focus-visible, .cr-dot:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--text); }
.cr-play .i-play, .cr-play.is-paused .i-pause { display: none; }
.cr-play.is-paused .i-play { display: block; }

/* ---- 方案比較表 (D154) ----------------------------------------------------------------
   A real table in a box of its own. Phones: the box scrolls sideways (the
   page never does) and the feature column stays put. The 月繳／年繳 switch
   is two radios: with :has() the unchosen prices are hidden; without it the
   switch is not shown and both prices are (stacked). */
.cmp-note { margin-bottom: var(--spacing-300); }
/* position: relative keeps the visually hidden words of the cells (有／沒有) inside the box: absolutely
   positioned, they would otherwise escape it and widen the page on phones. */
.cmp-scroll { --cmp-bg: var(--surface); position: relative; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--cmp-bg); }
.section:nth-of-type(even) .cmp-scroll { --cmp-bg: var(--bg); }
.cmp-scroll:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.cmp-table { --n: 3; width: 100%; min-width: calc(8rem + var(--n) * 8rem); border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cmp-n1 { --n: 1; } .cmp-n2 { --n: 2; } .cmp-n4 { --n: 4; } .cmp-n5 { --n: 5; }
.cmp-table th, .cmp-table td { padding: var(--spacing-100); border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-table thead th { padding-top: var(--spacing-300); vertical-align: bottom; font-weight: 600; }
.cmp-corner, .cmp-table th[scope="row"] { position: sticky; left: 0; z-index: 1; width: 8rem; background: var(--cmp-bg); box-shadow: 1px 0 0 var(--border); text-align: left; }
.cmp-table th[scope="row"] { font-weight: 500; color: var(--text); }
.cmp-table td { color: var(--text-2); }
.cmp-name { display: block; color: var(--text); }
.cmp-badge { display: inline-block; margin-top: var(--spacing-50); padding: var(--spacing-25) var(--spacing-75); border-radius: var(--radius-full); background: var(--brand-ink); color: var(--on-brand); }
.cmp-desc { display: block; margin-top: var(--spacing-50); color: var(--text-2); font-weight: 400; }
.cmp-table .is-rec { background: var(--surface-2); background: color-mix(in srgb, var(--brand-ink) 7%, var(--cmp-bg)); }
.cmp-table thead .is-rec { box-shadow: inset 0 3px 0 var(--brand-ink); }
.cmp-table .price { margin: 0; color: var(--text); overflow-wrap: normal; }
.cmp-m, .cmp-y { display: block; }
.cmp-table .per { font-size: .875rem; line-height: 1.25rem; font-weight: 400; color: var(--text-2); }
.cmp-yes, .cmp-no { display: inline-flex; vertical-align: middle; }
.cmp-yes .icon { color: var(--brand-ink); }
.cmp-no .icon { color: var(--text-3); }
.cmp-acts .btn { width: 100%; padding-left: var(--spacing-75); padding-right: var(--spacing-75); font-size: .875rem; line-height: 1.25rem; }
@media (min-width: 768px) {
  .cmp-table th, .cmp-table td { padding: var(--spacing-200); }
  .cmp-corner, .cmp-table th[scope="row"] { width: 28%; }
  .cmp-acts .btn { font-size: 1rem; line-height: 1.5rem; }
}
.cmp-period { display: none; position: relative; min-width: 0; margin: 0 0 var(--spacing-300); padding: var(--spacing-25); border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface); }
.cmp-radio { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.cmp-period label { display: inline-flex; align-items: center; gap: var(--spacing-75); min-height: 44px; padding: var(--spacing-75) var(--spacing-200); border-radius: var(--radius-full); color: var(--text-2); font-size: .875rem; line-height: 1.25rem; font-weight: 600; cursor: pointer; transition: background-color var(--dur-fade) var(--ease), color var(--dur-fade) var(--ease); }
.cmp-period label:hover { color: var(--text); }
.cmp-radio:checked + label { background: var(--text); color: var(--bg); }
.cmp-radio:focus-visible + label { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.cmp-save { padding: 0 var(--spacing-75); border-radius: var(--radius-full); background: var(--success-bg); color: var(--success); }
@supports selector(:has(a)) {
  .cmp-period { display: inline-flex; gap: var(--spacing-25); }
  .cmp:has(.cmp-radio[value="year"]:checked) .cmp-m:not(.cmp-only),
  .cmp:has(.cmp-radio[value="month"]:checked) .cmp-y:not(.cmp-only) { display: none; }
}

/* ---- 主視覺：影片背景 (D156) ------------------------------------------------------------
   The hero's own video behind its text (muted, looping; effects.js starts it). The pause /
   play button is the carousel's (cr-btn cr-play), at the hero's lower right, shown by the script. */
.hero.v-video .hero-film { background: var(--accent); }
.cr-btn.hero-play { position: absolute; z-index: 2; top: auto; right: var(--gutter); bottom: var(--spacing-300); }
.cr-btn.hero-play[hidden] { display: none; }

/* ---- 項目組合 (D156) ---------------------------------------------------------------------
   One list of items, a layout per variant, the shop's style options as classes:
   cols-2/3/4 (電腦上一排幾個), cs-outlined / cs-tinted (卡片), al-center (置中),
   band-tinted / band-brand (區塊底色). Text colours: --text and --text-2 only (AA on
   every background used here); --brand-ink only for icons, large figures and lines
   (3:1 is enough for those), white on the brand band (--brand-ink is 4.6:1 or more
   with white). Links are dark text with a brand-coloured underline, so they stay AA
   on --bg and --surface-2 too, where small brand-coloured text would not. */
.b-cards { --cols: 3; }
.b-cards.v-stats, .b-cards.v-team { --cols: 4; }
.b-cards.v-logos { --cols: 6; }
.b-cards.cols-2 { --cols: 2; }
.b-cards.cols-3 { --cols: 3; }
.b-cards.cols-4 { --cols: 4; }
.ci-note { margin: 0 0 var(--spacing-300); max-width: 680px; }
.ci-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--spacing-300); }
@media (min-width: 640px) { .ci-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ci-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.ci { display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-75); min-width: 0; }
.ci > * { margin: 0; }
.ci-title { color: var(--text); overflow-wrap: anywhere; }
.ci-label { order: -1; color: var(--text-2); letter-spacing: .04em; }
.ci-text { color: var(--text-2); overflow-wrap: anywhere; }
.ci-icon, .ci-img, .ci-num, .ci-portrait, .ci-figure { order: -2; }
.ci-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: var(--spacing-75); border-radius: var(--radius-xl); background: var(--surface-2); background: color-mix(in srgb, var(--brand-ink) 10%, var(--surface)); color: var(--brand-ink); }
.ci-icon .icon { width: 24px; height: 24px; }
.ci-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: var(--spacing-75); border-radius: var(--radius-xl); background: var(--surface-2); }
.ci-link { display: inline-flex; align-items: center; gap: var(--spacing-50); min-height: 44px; margin-top: auto; color: var(--text); text-decoration: underline; text-decoration-color: var(--brand-ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ci-link .icon { width: 16px; height: 16px; color: var(--brand-ink); }
.ci-link:focus-visible, .ci-logo-link:focus-visible, .ci-tab:focus-visible, .ci-panel:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
/* card styles */
.b-cards.cs-outlined .ci-grid > .ci, .b-cards.cs-tinted .ci-grid > .ci { padding: var(--spacing-300); border-radius: var(--radius-card); }
.b-cards.cs-outlined .ci-grid > .ci { border: 1px solid var(--border); background: var(--surface); }
.section.b-cards.cs-outlined:nth-of-type(even) .ci-grid > .ci { background: var(--bg); }
.b-cards.cs-tinted .ci-grid > .ci { background: var(--surface-2); }
/* alignment (the timeline keeps its line on the left) */
.b-cards.al-center .section-head, .b-cards.al-center .ci-note { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }
.b-cards.al-center:not(.v-timeline) .ci { align-items: center; text-align: center; }
.b-cards.al-center .ci-quote figcaption { justify-content: center; }
.b-cards.al-center .ci-tablist { justify-content: center; }
/* bands */
.section.b-cards.band-tinted { background: var(--surface-2); }
.b-cards.band-tinted.cs-tinted .ci-grid > .ci, .section.b-cards.band-tinted.cs-outlined .ci-grid > .ci { background: var(--surface); }
.section.b-cards.band-brand { background: var(--brand-ink); color: #ffffff; }
.band-brand .note, .band-brand .ci-title, .band-brand .ci-text, .band-brand .ci-label, .band-brand .ci-figure, .band-brand .ci-date, .band-brand .ci-name,
.band-brand .ci-role, .band-brand .ci-link, .band-brand .ci-link .icon, .band-brand .ci-logo-name, .band-brand .ci-ba-item figcaption { color: #ffffff; }
.band-brand .ci-link { text-decoration-color: #ffffff; }
.band-brand .ci-icon { background: rgba(255, 255, 255, .16); color: #ffffff; }
.band-brand .ci-num { background: #ffffff; color: var(--brand-ink); }
.band-brand .ci-quote blockquote::before { color: #ffffff; }
.b-cards.band-brand.cs-outlined .ci-grid > .ci { border-color: rgba(255, 255, 255, .6); background: transparent; }
.b-cards.band-brand.cs-tinted .ci-grid > .ci { background: rgba(0, 0, 0, .18); } /* darker than the band: white text only gains contrast */
.band-brand .ph { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.band-brand .ci-link:focus-visible, .band-brand .ci-logo-link:focus-visible, .band-brand .ci-tab:focus-visible, .band-brand .ci-panel:focus-visible, .band-brand .mq-pause:focus-visible + .mq-btn { outline-color: #ffffff; }
.band-brand .v-timeline .ci-grid::before, .b-cards.band-brand.v-timeline .ci-grid::before { background: rgba(255, 255, 255, .5); }
.b-cards.band-brand.v-timeline .ci::before { background: var(--brand-ink); border-color: #ffffff; }
.band-brand .ci-tablist { border-bottom-color: rgba(255, 255, 255, .5); }
.band-brand .ci-tab { color: #ffffff; }
.band-brand .ci-tab:hover { background: rgba(255, 255, 255, .14); }
.band-brand .ci-tab[aria-selected="true"] { background: #ffffff; color: var(--brand-ink); }
.band-brand .mq-btn { border-color: rgba(255, 255, 255, .7); background: transparent; color: #ffffff; }
.band-brand .mq-pause:checked + .mq-btn { background: #ffffff; color: var(--brand-ink); border-color: #ffffff; }

/* 數字亮點: two a row on phones; the figure is large type (3:1 is enough for --brand-ink). While
   effects.js counts, the final figure keeps the width (cnt-ghost), so nothing moves. */
.ci-figure { font-size: 2.5rem; line-height: 1.1; font-weight: 700; color: var(--brand-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
@media (max-width: 639px) { .ci-figure { font-size: 2rem; } } /* two a row at 375 px: a 12-character figure may wrap at its space, never inside a number */
@media (min-width: 960px) { .ci-figure { font-size: 3rem; } }
.b-cards.v-stats .ci-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .b-cards.v-stats .ci-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.cnt-on { display: inline-grid; position: relative; }
.cnt-on > .cnt-ghost, .cnt-on > .cnt-run { grid-area: 1 / 1; }
.cnt-ghost { visibility: hidden; }

/* 客戶見證 */
.ci-quote { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--spacing-200); width: 100%; margin: 0; }
.ci-quote blockquote { position: relative; margin: 0; padding-top: var(--spacing-400); }
.ci-quote blockquote::before { content: "“"; content: "“" / ""; position: absolute; top: -.25rem; left: 0; font-size: 3.5rem; line-height: 1; font-weight: 700; color: var(--brand-ink); font-family: Georgia, "Times New Roman", serif; } /* D171: a Latin “ (a CJK font's is full width, its mark far from the left edge) */
.b-cards.al-center .ci-quote blockquote::before { left: 50%; transform: translateX(-50%); }
.ci-quote .ci-text { margin: 0; color: var(--text); }
.ci-quote figcaption { display: flex; align-items: center; gap: var(--spacing-100); margin-top: auto; }
.ci-face { flex: none; width: 48px; height: 48px; border-radius: var(--radius-full); object-fit: cover; background: var(--surface-2); }
.ci-who { display: flex; flex-direction: column; text-align: left; }
.ci-name { color: var(--text); }
.ci-role { color: var(--text-2); }

/* 步驟: the number is the list's own order (aria-hidden: the <ol> says it already). */
.ci-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: var(--spacing-75); border-radius: var(--radius-full); background: var(--brand-ink); color: var(--on-brand); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Logo 牆: every logo in a box of the same height (no shift while they load). */
.ci-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-200); align-items: center; }
@media (min-width: 640px) { .ci-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ci-logos { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.ci-logos > .ci { align-items: center; justify-content: center; min-height: 72px; }
.ci-logo { display: block; width: 100%; height: 56px; object-fit: contain; }
.ci-logo-link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; border-radius: var(--radius-lg); }
.ci-logo-name { display: block; width: 100%; padding: var(--spacing-100); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.band-brand .ci-logo-name { background: none; border-color: rgba(255, 255, 255, .6); }
/* The marquee (CSS only). Two copies of the row slide left; the second is aria-hidden and out of the
   tab order. The checkbox before them is the pause control (WCAG 2.2.2); the pointer and the
   keyboard focus pause it too. Under reduced motion: the plain row, no copy, no control. */
.ci-marquee { position: relative; }
.mq-pause { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.mq-btn { display: inline-flex; align-items: center; gap: var(--spacing-75); min-height: 44px; margin-bottom: var(--spacing-200); padding: 0 var(--spacing-200); border: 1px solid var(--border-strong); border-radius: var(--radius-full); background: var(--surface); color: var(--text); cursor: pointer; }
.mq-btn .icon { width: 16px; height: 16px; }
.mq-btn .i-play, .mq-pause:checked + .mq-btn .i-pause { display: none; }
.mq-pause:checked + .mq-btn .i-play { display: block; }
.mq-pause:checked + .mq-btn { background: var(--text); border-color: var(--text); color: var(--bg); }
.mq-pause:focus-visible + .mq-btn { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.mq-view { overflow: hidden; container-type: inline-size; }
.mq-copy { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .mq-track { display: flex; width: max-content; animation: mq-slide 40s linear infinite; }
  .mq-m .mq-track { animation-duration: 60s; }
  .mq-l .mq-track { animation-duration: 90s; }
  .mq-track > .ci-logos { display: flex; flex: none; justify-content: space-around; gap: var(--spacing-400); min-width: 100cqw; padding-right: var(--spacing-400); }
  .mq-track > .ci-logos > .ci { flex: none; width: 140px; }
  .ci-marquee:hover .mq-track, .ci-marquee:focus-within .mq-track, .mq-pause:checked ~ .mq-view .mq-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .mq-btn { display: none; } }
@keyframes mq-slide { to { transform: translateX(-50%); } }

/* 時間軸: one line on the left, a dot per event. */
.b-cards.v-timeline .ci-grid { position: relative; grid-template-columns: minmax(0, 1fr); gap: var(--spacing-400); max-width: 760px; padding-left: var(--spacing-400); }
.b-cards.v-timeline .ci-grid::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 7px; width: 2px; background: var(--border-strong); }
.b-cards.v-timeline .ci { position: relative; }
.b-cards.v-timeline .ci::before { content: ""; position: absolute; top: 4px; left: calc(-1 * var(--spacing-400) + 1px); width: 14px; height: 14px; box-sizing: border-box; border: 3px solid var(--brand-ink); border-radius: var(--radius-full); background: var(--surface); }
.b-cards.cs-outlined.v-timeline .ci::before, .b-cards.cs-tinted.v-timeline .ci::before { top: var(--spacing-300); }
.ci-date { color: var(--text-2); font-variant-numeric: tabular-nums; }
.b-cards.v-timeline .ci-img { max-width: 480px; order: 0; margin: var(--spacing-75) 0 0; }

/* 團隊: portrait cards, two a row on phones; without a photo the name's first letter (.ph). */
.ci-portrait { display: flex; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: var(--spacing-75); border-radius: var(--radius-xl); background: var(--surface-2); }
.ci-portrait.ph { width: 96px; aspect-ratio: 1; border-radius: var(--radius-full); font-size: 2rem; line-height: 1; } /* no photo: a small round initial (.ph: --brand-ink on a light tint of the brand) */
.b-cards.v-team .ci-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-300) var(--spacing-200); }
@media (min-width: 960px) { .b-cards.v-team .ci-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--spacing-300); } }

/* 頁籤: without JavaScript the panels stand one after another under their titles; with it
   (.tabs-on) the tab list shows and one panel at a time (effects.js). */
.ci-tabs { max-width: 960px; }
.b-cards.al-center .ci-tabs { margin-left: auto; margin-right: auto; }
.ci-tablist { display: flex; gap: var(--spacing-50); overflow-x: auto; margin: 0 0 var(--spacing-300); padding: var(--spacing-25) var(--spacing-25) var(--spacing-100); border-bottom: 1px solid var(--border); scrollbar-width: thin; }
.ci-tablist[hidden] { display: none; }
.ci-tab { flex: none; min-height: 44px; padding: var(--spacing-75) var(--spacing-200); border: 0; border-radius: var(--radius-full); background: none; color: var(--text-2); font: inherit; font-size: .875rem; line-height: 1.25rem; font-weight: 600; cursor: pointer; transition: background-color var(--dur-fade) var(--ease), color var(--dur-fade) var(--ease); }
.ci-tab:hover { background: var(--hover-tint); color: var(--text); }
.ci-tab[aria-selected="true"] { background: var(--text); color: var(--bg); }
.ci-panel { display: grid; gap: var(--spacing-200); align-items: start; border-radius: var(--radius-lg); }
.ci-panel[hidden] { display: none; }
.ci-panel > * { margin: 0; }
.ci-panel + .ci-panel { margin-top: var(--spacing-500); }
.ci-panel .ci-img { margin: 0; }
.ci-panel-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-100); }
.ci-panel-body > * { margin: 0; }
.ci-panel-title { color: var(--text); }
.b-cards.al-center .ci-panel-body { align-items: center; text-align: center; }
@media (min-width: 768px) {
  .ci-panel.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--spacing-500); align-items: center; }
  .ci-panel.has-img > .ci-panel-title { grid-column: 1 / -1; }
}
.tabs-on .ci-panel + .ci-panel { margin-top: 0; }
.tabs-on .ci-panel-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tabs-on .ci-panel { position: relative; }

/* 前後對比: side by side without JavaScript; with it (.ba-on) one picture over the other, the
   first clipped at the divider (--pos, set by effects.js from the range input that covers the
   picture: drag anywhere, or the arrow keys). The knob shows the keyboard focus. */
.ci-ba { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-200); max-width: 960px; }
.b-cards.al-center .ci-ba { margin-left: auto; margin-right: auto; }
.ci-ba-item { display: flex; flex-direction: column; gap: var(--spacing-75); margin: 0; }
.ci-ba-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); background: var(--surface-2); }
.ci-ba-item figcaption { color: var(--text-2); }
.ci-ba-handle { display: none; }
.ci-ba-range[hidden] { display: none; }
.ci-ba.ba-on { --pos: 50%; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-xl); background: var(--surface-2); }
.ba-on .ci-ba-item { position: absolute; inset: 0; }
.ba-on .ci-ba-img { height: 100%; aspect-ratio: auto; border-radius: 0; }
.ba-on .ci-ba-before { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-on .ci-ba-item figcaption { position: absolute; top: var(--spacing-100); max-width: calc(50% - var(--spacing-200)); padding: var(--spacing-25) var(--spacing-100); border-radius: var(--radius-full); background: var(--badge-dark); color: #ffffff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba-on .ci-ba-before figcaption { left: var(--spacing-100); }
.ba-on .ci-ba-after figcaption { right: var(--spacing-100); }
.ci-ba.ba-on::after { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #ffffff; box-shadow: 0 0 0 1px rgba(12, 10, 9, .25); pointer-events: none; }
.ba-on .ci-ba-handle { position: absolute; z-index: 3; top: 50%; left: var(--pos); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--glass-strong); color: var(--text); box-shadow: 0 2px 12px rgba(12, 10, 9, .28); transform: translate(-50%, -50%); pointer-events: none; }
.ba-on .ci-ba-handle .icon { width: 16px; height: 16px; }
.ci-ba-range { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ci-ba-range:focus-visible + .ci-ba-handle { outline: 2px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--text); }

/* ---- 小標 (D163) ------------------------------------------------------------------------
   The eyebrow the shop typed over a title (style.css's .eyebrow). In the standard look it is small
   and quiet: --text-2 (the brand ink on --bg is just under 4.5:1 for 12 px words); white over the
   photo heroes, where the hero's own text is white. The 清爽 look turns it into the large label
   beside the title (below). */
.section-head > .eyebrow, .it-text > .eyebrow, .hero.v-split .hero-text > .eyebrow { color: var(--text-2); }
.hero-text > .eyebrow { color: #ffffff; }

/* ==== D163: what was the private template 夜明曲工作室 ====================================
   Public variants (hero airy, statement mark, items plans, buttons band / phone-only, image_text
   band / panel) and the look 清爽 (theme.look = clean: <body class="look-clean">). The order and
   the selectors follow that template's CSS, so the cascade is the same; a look rule is the old
   rule behind :where(.look-clean), which adds no specificity. Colours come from the shop: the
   look's page colours are computed in render.js (lookColors) from its brand and accent; the dark
   bands are the accent, kept dark enough for white text (--deep); the light panels are the brand
   colour at 12 % on white. The footer's tokens (--surface-2, --text-2, --text-3) are untouched. */
body { --deep: var(--brand-ink); }
@supports (color: oklch(from red l c h)) { body { --deep: oklch(from var(--accent) min(l, .4) c h); } } /* the accent, never lighter than L 0.4: white on it 8:1 or more */
.look-clean { --radius-card: calc(var(--radius-2xl) * 1.25); } /* a little rounder than the 圓角 option says (20 px for the standard 16 px) */
:where(.look-clean) h1, :where(.look-clean) h2, :where(.look-clean) h3 { letter-spacing: -.02em; }
:where(.look-clean) .btn-primary, :where(.look-clean) .btn-small { background: var(--accent); } /* white on --accent: 4.5:1 or more (accentInk: the look is a theme option) */
:where(.look-clean) .btn-primary:hover, :where(.look-clean) .btn-small:hover { background: var(--brand-ink); }
:where(.look-clean) .chip.is-active { background: var(--accent); border-color: var(--accent); color: #ffffff; }

/* ---- hero airy: the picture fills the hero and fades into the page on the side of the text ---- */
.hero.v-airy { background: var(--surface); color: var(--text); align-items: center; }
/* The picture takes the right 58 % (so an upright illustration is not cropped to a strip) and its left edge fades into the page. */
.hero.v-airy .hero-img { left: auto; right: 0; width: 58%; object-position: center 20%; }
.hero.v-airy .hero-scrim { background: linear-gradient(90deg, #ffffff 0%, #ffffff 42%, rgba(255, 255, 255, .7) 52%, rgba(255, 255, 255, 0) 68%); background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 42%, color-mix(in srgb, var(--surface) 70%, transparent) 52%, transparent 68%); }
.hero.v-airy .hero-text { padding-bottom: var(--spacing-600); gap: var(--spacing-300); }
.hero.v-airy .hero-text > * { max-width: 480px; }
.hero.v-airy .hero-text > .eyebrow { font-size: .6875rem; line-height: 1rem; font-weight: 500; letter-spacing: .18em; color: var(--text-2); color: color-mix(in srgb, color-mix(in srgb, var(--text) 80%, var(--brand-ink)) 78%, var(--surface)); }
.hero.v-airy .hero-title { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); font-size: 2.125rem; line-height: 1.2; letter-spacing: -.025em; padding: 0; }
.hero.v-airy .tagline { color: var(--brand-ink); font-weight: 400; }
.hero.v-airy .lead { color: var(--text-2); color: color-mix(in srgb, var(--text) 82%, var(--surface)); }
.hero.v-airy .btn:focus-visible { outline-color: var(--brand-ink); }
@media (min-width: 960px) { .hero.v-airy .hero-title { font-size: 2.75rem; } }
@media (max-width: 767px) {
  .hero.v-airy { align-items: flex-end; }
  .hero.v-airy .hero-img { left: 0; width: 100%; height: 62%; object-position: center top; }
  .hero.v-airy .hero-scrim { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, .92) 50%, #ffffff 60%); background: linear-gradient(180deg, transparent 0%, transparent 26%, color-mix(in srgb, var(--surface) 92%, transparent) 50%, var(--surface) 60%); }
  .hero.v-airy .hero-text { padding-bottom: var(--spacing-400); gap: var(--spacing-200); }
}

/* ---- statement mark: centred, under a ✦ (a decoration: no words for screen readers) ---- */
.statement.v-mark .wrap::before { content: "✦"; content: "✦" / ""; display: block; text-align: center; color: var(--brand); font-size: 1.5rem; line-height: 1; margin-bottom: var(--spacing-300); }
.statement.v-mark .statement-text { max-width: 820px; margin: 0 auto; text-align: center; font-weight: 500; letter-spacing: -.02em; }

/* ---- 清爽: section titles. The 小標 large, the title beside it small, a hairline under both ---- */
:where(.look-clean) .section-head { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: var(--spacing-50) var(--spacing-200); padding-bottom: var(--spacing-200); border-bottom: 1px solid var(--border); }
:where(.look-clean) .section-head > .eyebrow { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -.025em; color: var(--text); }
:where(.look-clean) .section-head > .eyebrow + .heading-4 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; letter-spacing: 0; color: var(--text-2); }
:where(.look-clean) .section-head .note { flex-basis: 100%; }
:where(.look-clean) .about.v-centered .section-head { justify-content: center; }
/* D171: the other centred layouts too (the head is a row here, so align-items alone left the title at the left over centred buttons / text / items). */
:where(.look-clean) .b-buttons.v-center .section-head, :where(.look-clean) .b-text.v-centered .section-head, :where(.look-clean) .b-cards.al-center .section-head { justify-content: center; }
:where(.look-clean) .about.v-centered .about-grid .body { font-size: 1.125rem; line-height: 1.875rem; }

/* ---- 清爽: image + text numbered (01, 02…), the picture lifted off the page, ✦ bullets ---- */
:where(.look-clean) main { counter-reset: feat; }
:where(.look-clean) .b-image-text:not(.v-band):not(.v-panel) { counter-increment: feat; }
:where(.look-clean) .b-image-text:not(.v-band):not(.v-panel) .it-text::before { content: counter(feat, decimal-leading-zero) "  ——"; content: counter(feat, decimal-leading-zero) "  ——" / ""; font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .18em; color: var(--brand-ink); }
:where(.look-clean) .b-image-text .it-img { border-radius: var(--radius-card); box-shadow: 0 24px 60px rgba(12, 10, 9, .1); box-shadow: 0 24px 60px color-mix(in srgb, var(--accent) 12%, transparent); }
:where(.look-clean) .b-image-text .rt ul { list-style: none; padding-left: 0; }
:where(.look-clean) .b-image-text .rt li { position: relative; padding-left: 1.5em; }
:where(.look-clean) .b-image-text .rt li::before { content: "✦"; content: "✦" / ""; position: absolute; left: 0; top: .1em; font-size: .75em; color: var(--brand); }

/* ---- 清爽: 服務與價目 cards wider than a phone: no box, a rounded picture, the category as a pill, the price over a hairline ---- */
:where(.look-clean) .items .cat { align-self: flex-start; padding: var(--spacing-25) var(--spacing-100); border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface); color: var(--text-2); letter-spacing: 0; font-weight: 500; }
:where(.look-clean) .items .card-foot { border-top: 1px solid var(--border); padding-top: var(--spacing-200); }
@media (min-width: 640px) {
  :where(.look-clean) .items .grid > .card { background: transparent; border-color: transparent; }
  :where(.look-clean) .items .card-img { border-radius: var(--radius-xl); }
  :where(.look-clean) .items .price { font-size: 1.5rem; line-height: 2rem; letter-spacing: -.02em; }
  :where(.look-clean) .items .grid > .card:hover { transform: none; }
  :where(.look-clean) .items .grid > .card .card-img { transition: transform var(--dur-move) var(--ease); }
  :where(.look-clean) .items .grid > .card:hover .card-img { transform: translateY(-4px); }
  :where(.look-clean) .items .card-body { padding: var(--spacing-200) 0 0; }
}

/* ---- 清爽: gallery tiles; 常見問題 as lines (no boxes); with 兩欄, two columns of lines ---- */
:where(.look-clean) .tile-img { border-radius: var(--radius-card); }
:where(.look-clean) .section.faq .faq-list { gap: 0; }
@media (min-width: 960px) { :where(.look-clean) .section.faq.v-two-col .faq-list { column-gap: var(--spacing-600); } }
:where(.look-clean) .section.faq details { background: none; border-width: 1px 0 0; border-style: solid; border-color: var(--border); border-radius: 0; padding: 0; margin-bottom: -1px; border-bottom: 1px solid var(--border); }
:where(.look-clean) .section.faq summary { min-height: 64px; transition: padding var(--dur-fade) var(--ease); }
:where(.look-clean) .section.faq summary:hover { padding-left: var(--spacing-75); }

/* ---- buttons band: the closing call on the dark accent ---- */
.b-buttons.v-band, .section.b-buttons.v-band:nth-of-type(even) { background: var(--deep); color: #ffffff; padding: var(--spacing-800) 0; text-align: center; }
.b-buttons.v-band .section-head { justify-content: center; margin-left: auto; margin-right: auto; border: 0; padding: 0; }
.b-buttons.v-band .section-head .heading-4, .b-buttons.v-band .section-head > .eyebrow { color: #ffffff; }
.b-buttons.v-band .wrap::before { content: "✦"; content: "✦" / ""; display: block; color: var(--brand); font-size: 1.25rem; line-height: 1; margin-bottom: var(--spacing-200); }
.b-buttons.v-band .btn-row { justify-content: center; }
.b-buttons.v-band .btn-primary { background: #ffffff; color: var(--deep); }
.b-buttons.v-band .btn-primary:hover { background: var(--surface-2); background: color-mix(in srgb, var(--brand) 12%, #ffffff); color: var(--deep); }
.b-buttons.v-band .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .6); color: #ffffff; }
.b-buttons.v-band .btn-outline:hover { border-color: #ffffff; }
.b-buttons.v-band .btn:focus-visible { outline-color: #ffffff; }

/* ---- items plans: pricing columns. The rows are a row of equal columns (name, price, what is in it
   line by line, the button at the bottom); the one whose category is 推薦 is outlined in the dark
   accent with a filled label; rows of the category 加購 are wide, quieter cards under them; the
   category 方案 is not shown. No pictures, no category filter (the categories only say which kind
   of card a row is). ---- */
.items.v-plans .chips, .items.v-plans .card-img { display: none; }
.items.v-plans .grid > .card { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.items.v-plans .grid > .card:hover { transform: none; border-color: var(--border-strong); }
.items.v-plans .grid > .card > .card-body { gap: var(--spacing-100); padding: var(--spacing-300); }
.items.v-plans .card-foot { display: contents; }
.items.v-plans .cat { order: 0; }
.items.v-plans .card h3 { order: 1; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.items.v-plans .price { order: 2; font-size: 2rem; line-height: 2.5rem; letter-spacing: -.03em; padding-bottom: var(--spacing-200); border-bottom: 1px solid var(--border); }
.items.v-plans .desc { order: 3; line-height: 1.75rem; color: var(--text); }
.items.v-plans .desc.clamp { display: block; overflow: visible; -webkit-line-clamp: unset; } /* the list is the point: never folded on phones */
.items.v-plans .more-btn { display: none; }
.items.v-plans .card .btn { order: 4; margin-top: auto; align-self: stretch; }
.items.v-plans .card[data-category="方案"] .cat { visibility: hidden; }
.items.v-plans .card[data-category="推薦"] { border-color: var(--deep); box-shadow: 0 16px 40px rgba(12, 10, 9, .1); box-shadow: 0 16px 40px color-mix(in srgb, var(--deep) 12%, transparent); }
.items.v-plans .card[data-category="推薦"] .cat { background: var(--deep); border-color: var(--deep); color: #ffffff; }
/* D171: a label, not a bar across the column, in the standard look too (清爽 gives every .cat this shape). */
.items.v-plans .card[data-category="推薦"] .cat { align-self: flex-start; padding: var(--spacing-25) var(--spacing-100); border-radius: var(--radius-full); }
.items.v-plans .card[data-category="加購"] { background: transparent; }
.items.v-plans .card[data-category="加購"] .price { font-size: 1.125rem; line-height: 1.75rem; letter-spacing: 0; border: 0; padding: 0; color: var(--text-2); }
.items.v-plans .card[data-category="加購"] .btn { background: transparent; color: var(--text); border-color: var(--border-strong); align-self: flex-start; }
.items.v-plans .card[data-category="加購"] .btn:hover { border-color: var(--text); }
@media (min-width: 640px) { .items.v-plans .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-200); } .items.v-plans .card-body { padding: var(--spacing-300); } }
@media (min-width: 1024px) { .items.v-plans .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .items.v-plans .card[data-category="加購"] { grid-column: span 2; } }

/* ---- hero airy: the full height of the screen (on phones less the tab bar); the top bar comes in
   once the page is scrolled. Only on the page with this hero, only where scroll-driven animations
   exist and the visitor has not asked for reduced motion (elsewhere the bar is simply always there). ---- */
.hero.v-airy { min-height: 100vh; min-height: 100svh; }
@media (max-width: 767px) { .hero.v-airy { min-height: calc(100svh - var(--sticky-h)); } } /* the tab bar covers the bottom of the screen */
@keyframes mm-bar-in { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body:has(.hero.v-airy) .topbar { animation: mm-bar-in linear both; animation-timeline: scroll(root block); animation-range: 24px 200px; }
    body:has(.hero.v-airy) .nav-check:checked ~ .topbar { animation: none; }
  }
}

/* ---- 清爽: image + text, larger type ---- */
:where(.look-clean) .b-image-text .rt .body-3, :where(.look-clean) .b-image-text .rt li { font-size: 1.0625rem; line-height: 1.75rem; }
:where(.look-clean) .b-image-text .rt li { color: var(--text); }
@media (min-width: 960px) { :where(.look-clean) .b-image-text .heading-4 { font-size: 2.25rem; line-height: 2.75rem; } :where(.look-clean) .b-image-text .it-grid.has-img { gap: var(--spacing-800); } }

/* ---- image_text band: the dark accent, white words, the picture on the right and larger (not numbered) ---- */
.b-image-text.v-band, .section.b-image-text.v-band:nth-of-type(even) { background: var(--deep); color: #ffffff; }
.b-image-text.v-band .heading-4, .b-image-text.v-band .rt strong, .b-image-text.v-band .rt li, .b-image-text.v-band .it-text > .eyebrow { color: #ffffff; }
.b-image-text.v-band .rt, .b-image-text.v-band .rt a { color: #ffffff; }
@supports (color: oklch(from red l c h)) { .b-image-text.v-band .rt { color: color-mix(in srgb, #ffffff 84%, var(--deep)); } } /* 7:1 or more on --deep (only where --deep is the clamped accent) */
.b-image-text.v-band .it-img { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.b-image-text.v-band .btn-primary { background: #ffffff; color: var(--deep); }
.b-image-text.v-band .btn:focus-visible, .b-image-text.v-band .rt a:focus-visible { outline-color: #ffffff; }
@media (min-width: 768px) { .b-image-text.v-band .it-grid.has-img { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .b-image-text.v-band .it-img { order: 2; } }
/* ---- image_text panel: in a light panel of the brand colour, the picture on the right (not numbered) ---- */
.b-image-text.v-panel .it-grid { padding: var(--spacing-300); border-radius: calc(var(--radius-card) + 8px); background: var(--surface-2); background: color-mix(in srgb, var(--brand) 12%, #ffffff); }
.b-image-text.v-panel .it-img { box-shadow: none; }
.b-image-text.v-panel .rt a { color: var(--text); text-decoration-color: var(--brand-ink); text-decoration-thickness: 2px; } /* small brand-coloured words are under 4.5:1 on the panel */
@media (min-width: 768px) { .b-image-text.v-panel .it-grid { padding: var(--spacing-700); } .b-image-text.v-panel .it-img { order: 2; } }

/* ---- buttons phone-only: only on phones (e.g. the last thing of the 首頁 tab: on to the plans) ---- */
.b-buttons.v-phone-only { display: none; }
@media (max-width: 767px) { .b-buttons.v-phone-only { display: block; padding-top: 0; } .b-buttons.v-phone-only .btn { flex: 1 1 auto; min-height: 52px; } }

/* ---- 清爽: the floating main action stays visible over the dark bands (a light ring; nothing else of it changes) ---- */
@media (min-width: 960px) { :where(.look-clean) .sticky-cta .btn { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 8px 24px rgba(12, 10, 9, .16); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 8px 24px color-mix(in srgb, var(--accent) 20%, transparent); } }

/* ---- 清爽: 項目組合 (D156): light brand panels, larger type, the item's 小標 as the price line, the link
   as a pill, light step numbers. The default layout (圖示特色格) has no v- class. ---- */
:where(.look-clean) .b-cards.cs-tinted .ci-grid > .ci { background: var(--surface-2); background: color-mix(in srgb, var(--brand) 12%, #ffffff); }
:where(.look-clean) .b-cards .ci-grid { gap: var(--spacing-300); }
:where(.look-clean) .b-cards .ci-title { font-size: 1.375rem; line-height: 2rem; font-weight: 600; }
:where(.look-clean) .b-cards .ci-text { font-size: 1rem; line-height: 1.75rem; color: var(--text-2); color: color-mix(in srgb, var(--text) 82%, var(--surface)); }
:where(.look-clean) .b-cards:not([class*="v-"]) .ci-icon { color: var(--brand-ink); background: var(--surface); }
:where(.look-clean) .b-cards:not([class*="v-"]) .ci-label { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
:where(.look-clean) .b-cards .ci-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--spacing-200); border-radius: var(--radius-full); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
:where(.look-clean) .b-cards.v-steps .ci-num { width: auto; height: auto; border: 0; background: none; justify-content: flex-start; font-size: 3rem; line-height: 1; font-weight: 300; letter-spacing: -.04em; color: var(--brand-ink); }
