/* 字型改由各頁面 <head> 的 <link> 載入（D4），@import 會等這支 CSS 下載完才開始抓字型 */
/* Shared visual language for the English commission guide and error page. */
:root {
  color-scheme: light;
  --midnight: #131b2b;
  --paper: #f2f3f7;
  --ink: #222b3f;
  --lavender: #b8adf0;
  --muted: #657084;
  --line: #d8dce6;
  --card: #ffffff;
  --text: var(--ink);
  --text-dim: var(--muted);
  --text-faint: var(--muted);
  --rose-deep: #675486;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  background: var(--paper);
  background-image: linear-gradient(rgba(102,90,156,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(102,90,156,.10) 1px,transparent 1px);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: 'Outfit', 'Noto Serif SC', 'Microsoft JhengHei', system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid #7864b5; outline-offset: 5px; }
::selection { color: var(--midnight); background: #d8cef8; }
.skip-link { position: fixed; top: 10px; left: 18px; z-index: 10000; transform: translateY(-150%); padding: 10px 18px; background: white; color: var(--ink); }
.skip-link:focus { transform: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 84px;
  padding: 17px max(28px, calc((100vw - 1224px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--midnight);
  color: var(--paper);
  border-bottom: 1px solid #343d51;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; border-radius: 50%; background: white; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: .02em; line-height: 1.3; }
.brand-name small { display: block; padding-top: 5px; font-size: 9px; font-weight: 500; letter-spacing: .18em; color: #aeb7c9; }
.header-links { display: flex; align-items: center; gap: 27px; }
.header-links a { padding: 8px 0; font-size: 12px; font-weight: 600; text-decoration: none; }
.header-links a:hover { color: var(--lavender); }
.header-links .lang-switch { padding: 9px 15px; border: 1px solid #697087; border-radius: 4px; }
.lang-switch span { margin-left: 14px; color: var(--lavender); }
.wrap { width: min(100% - 64px, 1224px); margin: 0 auto; padding-bottom: 88px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 64px; padding: 78px 0 0; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .19em; line-height: 1.5; }
.hero h1 { margin-top: 23px; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -.055em; }
.hero h1 span { color: #796999; }
.hero-intro { padding-top: 28px; }
.hero-intro > p:first-child { max-width: 470px; font-size: 15px; line-height: 1.9; }
.hero-intro .muted { margin-top: 17px; }
.hero-banner { display: block; grid-column: 1 / -1; width: 100%; height: auto; max-height: 156px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn, .home-btn { display: inline-flex; justify-content: center; align-items: center; gap: 23px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 1.5; text-decoration: none; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.btn-primary { color: var(--paper); background: var(--midnight); }
.btn-primary:hover { background: #38445b; }
.btn-primary span { color: var(--lavender); }
.btn-ghost { border-color: #9ca4b6; background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: #7864b5; background: #e6e2f4; }
h2.section { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 70px 0 22px; padding-bottom: 17px; border-bottom: 1px solid #a5aebf; font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.section-caption { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.card, .price-row, .step { border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.card { padding: 26px 28px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.8; }
.note-plate { padding: 18px 22px; background: #e8ebf2; border-left: 2px solid #8776b2; border-radius: 0 4px 4px 0; }
ul.rules { list-style: none; font-size: 14px; }
ul.rules li { position: relative; padding: 7px 0 7px 17px; }
ul.rules li::before { content: ''; position: absolute; left: 0; top: 18px; width: 4px; height: 4px; background: #9887c1; }
.pill { display: inline-block; padding: 2px 7px; border: 1px solid #cfc7e3; border-radius: 3px; background: #f0edf7; color: #675486; font-size: 11px; font-weight: 600; }
.ok-card { border-top: 3px solid #708d85; }
.no-card { border-top: 3px solid #ae8b9d; }
.hl { color: #675486; font-weight: 700; }
.note-band { margin-top: 16px; padding: 17px 22px; border-radius: 4px; background: var(--midnight); color: #e0e4ed; font-size: 13px; }
.note-band a { color: var(--lavender) !important; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 29px max(28px, calc((100vw - 1224px) / 2)); background: var(--midnight); border-top: 1px solid #343d51; color: #adb7c9; font-size: 12px; }
.foot a { color: var(--lavender); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 23px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.step b { display: block; margin: 19px 0 8px; color: var(--ink); font-size: 16px; line-height: 1.4; }
.step::before { counter-increment: step; content: '0' counter(step); display: block; color: #786899; font-size: 30px; font-weight: 300; line-height: 1; letter-spacing: -.04em; }
.price-rows { display: flex; flex-direction: column; gap: 16px; }
.price-row { display: flex; gap: 38px; align-items: stretch; padding: 30px; }
.price-row-info { flex: 1 1 44%; min-width: 0; }
.price-name { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; line-height: 1.6; }
.price-amt { margin: 9px 0 13px; font-size: 32px; font-weight: 750; color: var(--ink); line-height: 1.35; letter-spacing: -.045em; }
.price-amt small { display: inline-block; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.price-typical { display: inline-block; margin-bottom: 14px; padding: 6px 10px; border-radius: 3px; background: #efecf7; color: #675486; font-size: 11px; font-weight: 600; }
.price-list { list-style: none; font-size: 13px; color: var(--muted); }
.price-list li { position: relative; padding: 3px 0 3px 14px; }
.price-list li::before { content: '·'; position: absolute; left: 1px; color: #796999; }
.table-scroll { overflow-x: auto; border-radius: 3px; scrollbar-color: #b5accb #ebe9f1; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 14px 13px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
td:first-child, th:first-child { min-width: 180px; white-space: normal; }
thead { background: #edf0f5; }
thead th { color: #505c72; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fafbfc; }
td strong { color: var(--ink); }
tbody td:not(:first-child) { color: #675486; font-weight: 600; }
.price-row-gallery { flex: 1 1 56%; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-content: center; }
.price-row-gallery[hidden] { display: none !important; }
.price-thumb { display: block; position: relative; width: 100%; padding: 5px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 4px; background: #f5f6f9; cursor: zoom-in; transition: border-color .18s ease; }
.price-thumb:hover { border-color: #8978b3; }
.price-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.price-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 64px 24px 32px; background: rgba(11, 17, 30, .95); cursor: zoom-out; }
.price-lightbox .lb-holder { position: relative; display: inline-block; }
.price-lightbox img { display: block; max-width: min(92vw, 1100px); max-height: calc(100dvh - 106px); border-radius: 4px; object-fit: contain; }
.price-lightbox-close { position: absolute; top: 16px; right: 22px; width: 44px; height: 44px; border: 1px solid #737d91; border-radius: 4px; color: white; background: #283248; font-size: 18px; cursor: pointer; }
.contact-card { padding: 38px; }
.contact-card .btn { font-size: 14px; }

/* The lost-page illustration remains the focal point. */
.error-page { min-height: 100dvh; display: flex; flex-direction: column; background-color: var(--midnight); background-image:linear-gradient(rgba(184,173,240,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(184,173,240,.08) 1px,transparent 1px); color: var(--paper); }
.error-brand { width: min(100% - 80px, 1280px); margin: 0 auto; padding: 24px 0; border-bottom: 1px solid #394256; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.error-label { color: #9eabc1; font-size: 9px; letter-spacing: .18em; }
.error-layout { width: min(100% - 80px, 1100px); flex: 1; margin: 0 auto; padding: 34px 0; display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 560px); align-items: center; gap: 48px; }
.error-copy .eyebrow { color: #a0abc1; }
.error-code { display: flex; align-items: flex-start; gap: 20px; margin-top: 24px; font-size: clamp(90px, 12vw, 160px); line-height: .95; font-weight: 800; letter-spacing: -.07em; color: var(--lavender); }
.error-code span { font-size: 29px; margin-top: 7px; }
.error-copy h1 { margin: 28px 0 15px; font-size: 32px; font-weight: 800; letter-spacing: .05em; }
.error-copy > p:not(.eyebrow):not(.error-code) { color: #bec8da; font-size: 14px; }
.error-copy .en-line { margin-top: 14px; font-size: 12px !important; color: #91a0b8 !important; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.home-btn { color: var(--midnight); background: var(--lavender); }
.home-btn:hover { background: #d0c7fa; }
/* 正方形插圖，寬度約等於右側文字區高度（約 470px），兩欄看起來同高 */
.error-art-plain { display: block; width: 100%; max-width: 470px; height: auto; margin: 0; }
.error-foot { display: flex; justify-content: space-between; gap: 24px; width: min(100% - 80px, 1280px); margin: 0 auto; padding: 18px 0; border-top: 1px solid #394256; color: #8f9db4; font-size: 9px; letter-spacing: .12em; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 36px; padding-top: 56px; }
  .header-links { gap: 20px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-row { gap: 24px; }
  .error-layout { gap: 40px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 92px; }
  .topbar { min-height: 74px; padding: 13px 20px; gap: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 15px; }
  .brand-name small { font-size: 8px; letter-spacing: .12em; }
  .header-links > a:not(.lang-switch) { display: none; }
  .header-links .lang-switch { padding: 9px 11px; font-size: 11px; white-space: nowrap; }
  .lang-switch span { margin-left: 8px; }
  .wrap { width: calc(100% - 40px); padding-bottom: 54px; }
  .hero { display: block; padding-top: 38px; }
  .hero h1 { margin-top: 18px; font-size: clamp(36px, 7.5vw, 52px); }
  .hero-intro { padding-top: 24px; }
  .hero-intro > p:first-child { font-size: 14px; line-height: 1.85; }
  .hero-intro .muted br { display: none; }
  .hero-banner { margin-top: 28px; min-height: 74px; object-position: center; }
  .cta-row { margin-top: 20px; }
  h2.section { margin-top: 44px; margin-bottom: 18px; font-size: 25px; gap: 10px; }
  .section-caption { font-size: 10px; }
  .grid2 { grid-template-columns: 1fr; }
  .card { padding: 21px; }
  .price-row { flex-direction: column; gap: 20px; padding: 23px 21px; }
  .price-row-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-amt { font-size: 30px; }
  .price-typical { max-width: 100%; }
  .table-card { padding: 17px 14px; }
  .note-plate { padding: 16px; }
  .steps { gap: 10px; }
  .step { padding: 19px 16px; font-size: 12px; }
  .step b { font-size: 15px; }
  .note-band { padding: 17px; }
  .contact-card .btn { max-width: 100%; padding: 12px 14px; font-size: 12px; overflow-wrap: anywhere; }
  .foot { flex-direction: column; gap: 5px; padding: 24px 20px; font-size: 11px; line-height: 2; }
  .error-brand, .error-foot { width: calc(100% - 40px); }
  .error-brand { padding: 20px 0; }
  .error-label { font-size: 8px; letter-spacing: .1em; }
  .error-layout { width: calc(100% - 40px); grid-template-columns: 1fr; padding: 36px 0; gap: 34px; }
  .error-code { font-size: 104px; margin-top: 20px; }
  .error-copy h1 { font-size: 29px; margin-top: 22px; }
  .error-copy > p:not(.eyebrow):not(.error-code) { font-size: 13px; }
  .error-actions { margin-top: 25px; }
  .home-btn { padding: 12px 16px; font-size: 11px; gap: 15px; }
  .error-copy { order: -1; }
  .error-art-plain { max-width: 280px; justify-self: start; }
}
.btn, .home-btn {
  box-shadow: 0 3px 0 rgba(77,66,124,.18),inset 0 1px 0 rgba(255,255,255,.22);
  transition: background-color .18s ease,box-shadow .18s ease,translate .12s ease;
}
:is(.btn,.home-btn,.en-btn):active {
  translate: 0 2px;
  box-shadow: 0 1px 0 rgba(77,66,124,.18);
}
@media(max-width:760px){body{background-size:32px 32px}}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 英文頁：品項開放／名額（跟中文委託頁讀同一份「網站設定」） */
.price-row.is-unavailable .price-row-info > :not(.price-paused),
.price-row.is-unavailable .price-row-gallery { opacity: .45; filter: grayscale(.7); }
.price-paused { display: inline-block; margin: 0 0 10px; padding: 4px 12px 3px; border: 2px solid #a84a64; border-radius: 4px; color: #a84a64; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; transform: rotate(-3deg); }
.price-states { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.price-states span { padding: 3px 10px 2px; border-radius: 999px; background: #eeeaf7; color: #4d427c; font-size: 12px; font-weight: 700; }
.price-states span[data-state="closed"] { background: #f7e9ee; color: #a84a64; }
