/* ==========================================================
 * style.css — 版面與視覺
 * 主要顏色都集中在 :root，要換品牌色改這裡即可
 * ========================================================== */

/* 繁中字型的彎引號（’ “ ”）是全形寬度，英文的 don’t、“…” 會出現一大塊空隙；
   這幾個符號改用電腦／手機內建的西文字型 */
@font-face {
  font-family: "Latin Quotes";
  src: local("Segoe UI"), local("Helvetica Neue"), local("Arial"), local("Roboto");
  unicode-range: U+2018-2019, U+201C-201D;
}

:root {
  --paper: #F6F0E6;
  --paper-deep: #EEE5D5;
  --card: #FFFCF7;
  --ink: #1F1A15;
  --ink-2: #4A4239;
  --muted: #7C7266;
  --line: #E6DCCB;
  --line-strong: #D2C4AC;

  --coral: #DE5236;
  --coral-deep: #B83C23;
  --coral-soft: #FBE7DF;
  --sun: #F0B23A;
  --sun-soft: #FCF0D4;
  --blue: #2D59A3;
  --blue-soft: #E4EBF7;
  --green: #2E7A52;
  --green-soft: #DFF0E5;
  --danger: #C4361C;

  --serif: "Latin Quotes", "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Latin Quotes", "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --display: "Fraunces", "Noto Serif TC", Georgia, serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, .06);
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 14px 34px -18px rgba(60, 40, 20, .28);
  --shadow-lg: 0 2px 6px rgba(60, 40, 20, .06), 0 34px 70px -28px rgba(60, 40, 20, .4);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --topbar-h: 68px;
}

/* 日文用日文字型、英文標題用 Fraunces */
html[lang="ja"] {
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --display: "Fraunces", "Noto Serif JP", Georgia, serif;
}
html[lang="en"] { --serif: "Fraunces", "Noto Serif TC", Georgia, serif; }

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* 紙張顆粒 */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .24 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer, .topbar { position: relative; z-index: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.35; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sun-soft); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

[data-text] { white-space: pre-line; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  color: var(--coral);
  letter-spacing: .01em;
  margin-bottom: 10px;
}
.eyebrow:empty { display: none; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 15px/1 var(--sans);
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 22px -10px rgba(222, 82, 54, .7);
}
.btn--primary:hover { background: var(--coral-deep); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #3A322A; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- 頂部導覽 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  background: rgba(246, 240, 230, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(60, 40, 20, .4); }
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__mark { display: block; width: 36px; height: 36px; flex: none; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; gap: 28px; }
.topnav a { font-size: 15px; color: var(--ink-2); text-decoration: none; position: relative; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--coral); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after { transform: scaleX(1); }

/* 語系切換 */
.lang { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .5); }
.lang__btn {
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { background: var(--ink); color: var(--paper); }

/* ---------- 首頁主視覺 ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero__title { font-size: clamp(34px, 4.8vw, 58px); font-weight: 900; line-height: 1.28; letter-spacing: .015em; text-wrap: balance; }
.hero__title-en:empty { display: none; }
.notice__en:not(:has(p:not(:empty))) { display: none; }
.hero__title-en { margin-top: 10px; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(20px, 2.2vw, 26px); color: var(--ink-2); letter-spacing: -.005em; }
.hero__scribble { width: min(220px, 50%); height: auto; margin: 14px 0 22px; }
.hero__lead { font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding-top: 24px; border-top: 1px dashed var(--line-strong); }
.hero__badges li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hero__badges svg { width: 18px; height: 18px; color: var(--coral); flex: none; }
.hero__art { position: relative; }
/* 插畫：背景圖形（svg）上疊原畫與 3D 模型，位置都用百分比，跟著寬度等比縮放 */
.art { position: relative; aspect-ratio: 560 / 500; }
.art__bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.art__paper { position: absolute; left: 1%; top: 9%; width: 56%; margin: 0; animation: float 9s ease-in-out infinite reverse; }
.art__drawing {
  display: block;
  width: 100%;
  height: auto;
  padding: 6px;
  background: #fff;
  border-radius: 6px;
  transform: rotate(-6deg);
  box-shadow: 0 24px 36px -18px rgba(60, 42, 20, .42), 0 2px 6px rgba(60, 42, 20, .1);
}
.art__model { position: absolute; right: 0; bottom: 0; width: 66%; aspect-ratio: 1; }
.art__model model-viewer { display: block; width: 100%; height: 100%; background: transparent; --poster-color: transparent; }
.art__poster { display: block; width: 100%; height: 100%; object-fit: contain; }
.art__spark { animation: twinkle 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art__spark--2 { animation-delay: -1.1s; }
.art__spark--3 { animation-delay: -2.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .5; } }

/* 簡介說明卡片 */
.notices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
/* 圖示在正上方，文字全部置中；卡片高度隨內容伸縮 */
.notice {
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 26px 24px 24px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.notice__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; }
.notice__icon svg { width: 22px; height: 22px; }
.notice:nth-child(3n + 1) .notice__icon { background: var(--coral-soft); color: var(--coral); }
.notice:nth-child(3n + 2) .notice__icon { background: var(--sun-soft); color: #B7801A; }
.notice:nth-child(3n + 3) .notice__icon { background: var(--blue-soft); color: var(--blue); }
.notice__title { font-size: 18px; line-height: 1.4; text-wrap: balance; }
.notice__body { margin-top: 8px; color: var(--ink-2); font-size: 15px; text-wrap: pretty; }
.notice__en { justify-self: stretch; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 13.5px; line-height: 1.6; color: var(--muted); }
@media (min-width: 901px) { /* 三張卡片的標題、說明文字與英文段落對齊同一高度 */
  .notices { grid-template-rows: repeat(4, auto); row-gap: 0; }
  .notice { grid-row: span 4; grid-template-rows: subgrid; }
}
.notice__en-title { margin-bottom: 4px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.notice__en-title:empty { display: none; }

/* ---------- 區塊 ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--band { background: var(--card); border-block: 1px solid var(--line); }
/* 方案與價格、訂購須知都用奶茶色（中間的製作流程是白色帶狀） */
#plans, #tips { background: var(--paper-deep); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.section__title { font-size: clamp(28px, 3.4vw, 40px); }
.section__lead { margin-top: 12px; color: var(--ink-2); font-size: 17px; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 勾選清單 */
.checklist { display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.5 2.6 2.5L13 6.5' fill='none' stroke='%23DE5236' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.checklist--dot li::before { background: none; width: 8px; height: 8px; top: .72em; left: 6px; border-radius: 50%; background-color: var(--sun); }

/* ---------- 方案卡 ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.plan::after { /* 角落裝飾圓 */
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1.5px dashed var(--line-strong);
  pointer-events: none;
}
.plan__tag { font-family: var(--display); font-weight: 600; font-size: 56px; line-height: 1; letter-spacing: -.02em; color: var(--coral); }
.plan__tag em { font-style: italic; font-weight: 500; color: var(--sun); }
.plan__tag-sub { font-size: .42em; font-weight: 500; letter-spacing: .01em; color: var(--sun); }
.plan__name { margin-top: 18px; font-size: 22px; }
.plan__desc { margin-top: 10px; color: var(--ink-2); }
.plan .checklist { margin-top: 22px; }
/* 各地區價格排成三欄，標籤長短不同（例如英文 Overseas）時金額仍對齊 */
.plan__prices { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: auto auto 1fr; gap: 4px 10px; }
.price { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); transition: opacity .3s; }
.price__label { font-size: 14px; color: var(--muted); min-width: 3.2em; }
.price__amt { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1; letter-spacing: -.01em; }
.price__unit { font-size: 14px; color: var(--muted); }
body[data-region="TW"] .price:not([data-cur="TWD"]),
body[data-region="JP"] .price:not([data-cur="JPY"]),
body[data-region="INTL"] .price:not([data-cur="USD"]) { opacity: .35; }

.plan--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan--featured::after { border-color: rgba(255, 255, 255, .16); }
.plan--featured .price__label,
.plan--featured .price__unit { color: rgba(246, 240, 230, .6); }
.plan--featured .plan__desc,
.plan--featured .checklist li { color: rgba(246, 240, 230, .85); }
.plan--featured .checklist li::before { background-color: rgba(222, 82, 54, .22); }
.plan--featured .price { border-top-color: rgba(255, 255, 255, .12); }
.plan__ribbon {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 1;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}

/* ---------- 製作流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: flow; }
.flow__item { position: relative; padding: 4px 4px 0; }
.flow__num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  position: relative;
  z-index: 1;
}
.flow__item:not(:last-child)::after { /* 虛線連接 */
  content: "";
  position: absolute;
  left: 64px;
  right: -12px;
  top: 30px;
  border-top: 1.5px dashed var(--line-strong);
}
.flow__item h3 { font-size: 19px; margin-bottom: 6px; }
.flow__item p { color: var(--ink-2); font-size: 15px; }
.flow__item:nth-child(1) .flow__num { background: var(--coral-soft); }
.flow__item:nth-child(2) .flow__num { background: var(--sun-soft); }
.flow__item:nth-child(3) .flow__num { background: var(--blue-soft); }
.flow__item:nth-child(4) .flow__num { background: var(--green-soft); }

/* ---------- 訂購須知 ---------- */
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tipcard { padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.tipcard__title { font-size: 20px; margin-bottom: 18px; }

/* ---------- 訂製表單 ---------- */
.order { padding-bottom: clamp(80px, 10vw, 140px); }
.order__grid { display: grid; grid-template-columns: minmax(0, 1fr) 368px; gap: 28px; align-items: start; }
.order__form { display: grid; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.step {
  padding: clamp(22px, 3vw, 32px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .25s;
}
.step.is-invalid { border-color: rgba(196, 54, 28, .45); }
.step__head { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.step__num {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
}
.tag { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-deep); font: 500 12px/1.7 var(--sans); letter-spacing: .06em; }
.tag--soft { background: var(--paper-deep); color: var(--muted); }
.step__hint { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.step > .choices, .step > .dropzone, .step > .fields, .step > .field { margin-top: 20px; }
.placeholder { margin-top: 16px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); font-size: 15px; text-align: center; }

/* 選項卡片 */
.choices { display: grid; gap: 12px; }
.choices--2 { grid-template-columns: repeat(2, 1fr); }
/* 三選一（所在地區）：版面夠寬時排成三欄直式卡片，窄的時候一張一列 */
.step:has(> .choices--3) { container-type: inline-size; }
@container (min-width: 600px) {
  .choices--3 { grid-template-columns: repeat(3, 1fr); }
  .choices--3 .choice { flex-direction: column; gap: 12px; padding: 18px 18px 20px; }
}
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 48px 16px 18px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice:hover { border-color: var(--line-strong); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__body { display: grid; gap: 2px; }
.choice__name { font-weight: 700; font-size: 16px; }
.choice__desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.choice__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--paper-deep);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.01em;
}
.choice__icon--newebpay { background: var(--blue); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 700; font-style: normal; }
.choice__icon--paypal { background: #003087; color: #fff; font-style: italic; }
.choice__check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  transition: all .2s;
}
.choice--lg { padding-block: 20px; }
.choice:has(input:checked) { border-color: var(--coral); background: #FFF8F4; box-shadow: 0 0 0 3px var(--coral-soft); }
.choice:has(input:checked) .choice__check {
  border-color: var(--coral);
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6.5 11.5 3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.choice:has(input:checked) .choice__icon:not(.choice__icon--newebpay):not(.choice__icon--paypal) { background: var(--coral); color: #fff; }
.choice:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 2px; }

/* 欄位 */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field__label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field label small { font-size: 12px; color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 112px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
/* 下拉選單：自訂箭頭，未選擇時字色和提示文字相同 */
.field select {
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%234A4239' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
  cursor: pointer;
}
.field select:has(option[value=""]:checked) { color: #B3A898; }
.field select option { color: var(--ink); }
.field select:disabled { background-color: var(--paper); cursor: not-allowed; }
.field input::placeholder, .field textarea::placeholder { color: #B3A898; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }
.help { font-size: 13px; color: var(--muted); }
.error { font-size: 13px; color: var(--danger); font-weight: 500; }
.error:empty { display: none; }
.step > .error { margin-top: 12px; }
.shipfields, .payfields { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }

/* 7-11 門市：欄位上方的填寫提醒 */
.ship-note { padding: 10px 14px; background: var(--sun-soft); border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.help__link { margin-left: 4px; color: var(--coral-deep); text-decoration: underline; text-underline-offset: 3px; }
.help__link:hover { color: var(--coral); }

/* 上傳區 */
.dropzone {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 36px 20px;
  text-align: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 1px 1px, rgba(124, 114, 102, .14) 1px, transparent 0) 0 0 / 14px 14px,
    var(--paper);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--coral); background-color: var(--coral-soft); }
.dropzone.is-over { transform: scale(1.01); }
.dropzone.is-full { cursor: not-allowed; opacity: .6; }
.dropzone__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); color: var(--coral); }
.dropzone__icon svg { width: 26px; height: 26px; }
.dropzone__title { font-weight: 700; font-size: 17px; }
.dropzone__desc { font-size: 14px; color: var(--muted); }

.upmeta { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.upmeta__bar { flex: 1; height: 6px; border-radius: 6px; background: var(--paper-deep); overflow: hidden; }
.upmeta__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--coral); transition: width .4s var(--ease); }

.drawings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; margin-top: 16px; }
.drawings:empty { display: none; }
.drawing {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: pop .35s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.drawing__thumb { position: relative; aspect-ratio: 4 / 3; background: var(--paper-deep); }
.drawing__thumb img { width: 100%; height: 100%; object-fit: cover; }
.drawing__thumb .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 18px; color: var(--muted); text-transform: uppercase; }
.drawing__no {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(31, 26, 21, .78);
  color: #fff;
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
}
.drawing__remove {
  position: absolute;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color .2s, color .2s;
}
.drawing__remove:hover { background: var(--danger); color: #fff; }
.drawing__crop { top: auto; bottom: 8px; }
.drawing__crop:hover { background: var(--ink); color: #fff; }
.drawing__body { display: grid; gap: 10px; padding: 12px 14px 14px; }
.drawing__file { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; background: var(--paper-deep); border-radius: 11px; }
.seg__btn {
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-active { background: #fff; color: var(--coral); box-shadow: var(--shadow-sm); }
.seg__btn.is-active[data-plan="3dar"] { background: var(--ink); color: var(--sun); }
.drawing__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.drawing__plan { min-width: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawing__amt { flex: none; font-family: var(--display); font-weight: 600; font-size: 18px; }

/* 訂單明細 */
.order__aside { position: sticky; top: calc(var(--topbar-h) + 20px); }
.summary {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.summary__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.summary__head h3 { font-size: 20px; }
.summary__cur { padding: 2px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 12px/1.7 var(--display); letter-spacing: .08em; }
.sum-meta { margin: 0; padding: 14px 0; display: grid; gap: 6px; border-bottom: 1px dashed var(--line-strong); }
.sum-meta div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sum-meta dt { color: var(--muted); flex: none; }
.sum-meta dd { margin: 0; text-align: right; font-weight: 500; }
.sum-meta dd.is-empty { color: #B3A898; font-weight: 400; }
.sum-lines { padding: 14px 0; display: grid; gap: 8px; border-bottom: 1px dashed var(--line-strong); }
.sum-lines li, .sum-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-lines li span:last-child, .sum-rows span:last-child { font-variant-numeric: tabular-nums; }
.sum-rows { padding: 14px 0; display: grid; gap: 6px; color: var(--ink-2); }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0 20px; border-top: 1.5px solid var(--ink); }
.sum-total span { font-weight: 700; }
.sum-total strong { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -.01em; color: var(--coral); }
.sum-empty { padding: 26px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.sum-empty svg { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--line-strong); }
.summary__error { margin-top: 12px; font-size: 13.5px; color: var(--danger); font-weight: 500; text-align: center; }
.summary__error:empty { display: none; }
.summary__hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- 視窗 ---------- */
.modal {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal[open] { display: flex; animation: modalIn .35s var(--ease); }
.modal::backdrop { background: rgba(31, 26, 21, .5); backdrop-filter: blur(3px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__panel { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 32px); }
.modal__head { position: relative; padding: 26px 64px 18px 28px; border-bottom: 1px solid var(--line); }
.modal__head h3 { font-size: 22px; }
.modal__head p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.modal__x { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper-deep); cursor: pointer; }
.modal__x:hover { background: var(--line); }
.modal__body { flex: 1; overflow: auto; padding: 8px 28px 20px; overscroll-behavior: contain; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--paper); }
.modal__note { padding: 12px 28px; border-top: 1px solid var(--line); background: #EAF8EF; color: #1D6B3E; font-size: 14px; font-weight: 500; }

/* 裁切畫作：框外變暗，拖曳框線四角／四邊調整大小，拖曳框內移動 */
.modal--crop { width: min(760px, calc(100% - 24px)); }
.crop__count { margin: 0 0 2px !important; color: var(--coral) !important; font: 600 13px/1.4 var(--sans) !important; letter-spacing: .06em; }
.crop__count:empty { display: none; }
.crop__stage { flex: 1; min-height: 0; display: grid; justify-items: center; align-content: center; gap: 10px; padding: 18px 20px 14px; background: #2B2520; overflow: auto; }
.crop__frame { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.crop__frame img { display: block; max-width: 100%; max-height: min(56dvh, 560px); width: auto; height: auto; pointer-events: none; -webkit-user-drag: none; }
.crop__box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(20, 16, 12, .6); cursor: move; }
.crop__box::after { content: ""; position: absolute; inset: 0; border: 1px dashed rgba(255, 255, 255, .55); background:
  linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 33.33% 0 / 1px 100% no-repeat,
  linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 66.66% 0 / 1px 100% no-repeat,
  linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 0 33.33% / 100% 1px no-repeat,
  linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 0 66.66% / 100% 1px no-repeat; pointer-events: none; }
.crop__h { position: absolute; z-index: 1; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 2px solid var(--coral); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.crop__h[data-h="nw"] { left: 0; top: 0; cursor: nwse-resize; }
.crop__h[data-h="n"] { left: 50%; top: 0; cursor: ns-resize; }
.crop__h[data-h="ne"] { left: 100%; top: 0; cursor: nesw-resize; }
.crop__h[data-h="e"] { left: 100%; top: 50%; cursor: ew-resize; }
.crop__h[data-h="se"] { left: 100%; top: 100%; cursor: nwse-resize; }
.crop__h[data-h="s"] { left: 50%; top: 100%; cursor: ns-resize; }
.crop__h[data-h="sw"] { left: 0; top: 100%; cursor: nesw-resize; }
.crop__h[data-h="w"] { left: 0; top: 50%; cursor: ew-resize; }
.crop__hint { margin: 0; max-width: 520px; color: rgba(255, 255, 255, .72); font-size: 13px; text-align: center; }
@media (pointer: coarse) {
  .crop__h { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
}

/* 訂單內容（確認視窗與成功頁共用） */
.rv { padding: 18px 0; border-bottom: 1px dashed var(--line-strong); }
.rv:last-child { border-bottom: 0; }
.rv h4 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.kvs { margin: 0; display: grid; gap: 6px; }
.kvs div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; font-size: 15px; }
.kvs dt { color: var(--muted); }
.kvs dd { margin: 0; white-space: pre-line; word-break: break-word; }
.rv-items { display: grid; gap: 10px; }
.rv-items li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; }
.rv-items .rv-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--paper-deep); border: 1px solid var(--line); }
.rv-items b { display: block; font-size: 15px; }
.rv-items small { font-size: 13px; color: var(--muted); }
.rv-text { font-size: 15px; }
.rv-amt { font-family: var(--display); font-weight: 600; min-width: 5.5em; text-align: right; }
.rv-total { display: grid; gap: 6px; }
.rv-total div { display: flex; justify-content: space-between; color: var(--ink-2); }
.rv-total .is-total { margin-top: 6px; padding-top: 12px; border-top: 1.5px solid var(--ink); color: var(--ink); font-weight: 700; align-items: baseline; }
.rv-total .is-total strong { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--coral); }

/* 訂單明細圖片 */
.modal--receipt { width: min(560px, calc(100% - 24px)); }
.receipt { padding: 16px; background: var(--paper); }
.receipt img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); -webkit-touch-callout: default; }

/* 上傳進度 */
.modal--progress { width: min(420px, calc(100% - 24px)); }
.progress { align-items: center; padding: 40px 32px 32px; text-align: center; }
.progress h3 { font-size: 20px; }
.progress p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.progress__ring {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 4px solid var(--coral-soft);
  border-top-color: var(--coral);
  border-right-color: var(--sun);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress__bar { width: 100%; height: 8px; margin-top: 22px; border-radius: 8px; background: var(--paper-deep); overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--sun)); transition: width .5s var(--ease); }
.progress .progress__count { margin-top: 10px; font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 500; }

/* ---------- 送出成功 ---------- */
.success {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  outline: none;
}
.success__badge { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.success__badge svg { width: 36px; height: 36px; }
.success__title { font-size: clamp(26px, 3vw, 34px); }
.success__lead { margin-top: 10px; color: var(--ink-2); }
.success__lead .para { margin: 0; text-wrap: balance; } /* 置中文字換行時，兩行長度平均 */
.success__lead .para + .para { margin-top: 8px; }
.success__no { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 26px; padding: 14px 28px; border: 1.5px dashed var(--coral); border-radius: var(--r); }
.success__no span { font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.success__no strong { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.success__demo { margin-top: 18px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--sun-soft); color: #7A5310; font-size: 14px; }
.success__detail { margin-top: 30px; text-align: left; }
.success__detail h3 { padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); font-size: 17px; }
.success__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- 暫停接單 ---------- */
.closed {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 52px) clamp(22px, 5vw, 48px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.closed__badge { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--coral-soft); color: var(--coral); }
.closed__badge svg { width: 32px; height: 32px; }
.closed__title { font-size: clamp(22px, 2.6vw, 28px); }
.closed__text { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.is-closed #order .section__lead, .is-closed .mbar { display: none; }

/* ---------- 頁尾 ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 40px; font-size: 14px; color: var(--muted); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 20px 24px; }
.footer__label { margin-bottom: 10px; color: var(--ink); font: 700 14px/1.4 var(--sans); letter-spacing: .08em; }
.footer__list { display: grid; gap: 8px; }
.footer__item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.footer__icon { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; margin-right: 2px; }
.footer__icon--mail { border-radius: 6px; background: var(--paper-deep); color: var(--ink-2); }
.footer__value { color: var(--ink-2); word-break: break-all; }
.footer__line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.footer__line .footer__value { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.footer__line:hover .footer__value { color: #06A14A; text-decoration-color: currentColor; }
.footer__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.footer__admin { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--muted); font: 500 13px/1 var(--sans); cursor: pointer; }
.footer__admin:hover { color: var(--ink); border-color: var(--ink-2); }
.footer__policy { padding: 8px 14px; background: var(--card); color: var(--ink-2); font-size: 14px; }
.footer__copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 13px; }
@media (max-width: 640px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__actions { justify-content: flex-start; }
}

/* ---------- 退換貨政策視窗 ---------- */
.modal--policy { width: min(620px, calc(100% - 24px)); }
.policy { display: grid; gap: 22px; padding: 20px 28px 28px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.policy__intro { padding: 14px 18px; border-radius: var(--r-sm); background: var(--paper-deep); color: var(--ink); }
.policy__intro .para + .para { margin-top: 6px; }
.policy__sec h4 { margin-bottom: 6px; color: var(--ink); font: 700 16px/1.5 var(--sans); }
.policy__list { display: grid; gap: 8px; margin-top: 10px; }
.policy__list li { position: relative; padding-left: 18px; }
.policy__list li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.policy__list b { color: var(--ink); font-weight: 700; }
.policy__note { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ---------- LINE 客服 QR 碼視窗 ---------- */
.modal--line { width: min(400px, calc(100% - 24px)); }
.line-qr { display: grid; justify-items: center; gap: 12px; padding: 24px 28px 28px; text-align: center; }
.line-qr__img { width: 240px; height: 240px; padding: 8px; /* 內容 222px = 37 格 × 6px，格子邊緣清楚 */ border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.line-qr__id { color: var(--ink); font: 700 18px/1.2 var(--sans); letter-spacing: .04em; }
.btn--line { background: #06C755; color: #fff; }
.btn--line:hover { background: #05A648; }

/* ---------- 手機底部列 ---------- */
.mbar { display: none; }

/* ---------- 提示訊息 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: min(520px, calc(100% - 32px));
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14.5px;
  white-space: pre-line;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
 * 響應式
 * ========================================================== */
@media (max-width: 1040px) {
  .order__grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .flow__item:nth-child(2)::after { display: none; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 480px; margin: 0 auto; width: 100%; }
  .order__grid { grid-template-columns: minmax(0, 1fr); }
  .order__aside { position: static; }
  .topnav { display: none; }
  .notices { grid-template-columns: 1fr; }
  .mbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 20px;
    border-radius: 999px;
    background: rgba(31, 26, 21, .94);
    color: var(--paper);
    box-shadow: var(--shadow-lg);
    transform: translateY(140%);
    transition: transform .35s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar__total { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
  .mbar__total strong { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--sun); }
  .toast { bottom: 96px; }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } /* 底部合計列不要蓋住頁尾 */
}

@media (max-width: 720px) {
  .plans, .tips { grid-template-columns: 1fr; }
  .choices--2 { grid-template-columns: 1fr; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: 1fr; row-gap: 0; }
  .flow__item { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding-bottom: 28px; }
  .flow__num { grid-row: span 2; margin-bottom: 0; }
  .flow__item:not(:last-child)::after { display: block; left: 26px; right: auto; top: 56px; bottom: 0; border-top: 0; border-left: 1.5px dashed var(--line-strong); }
  .flow__item:nth-child(2)::after { display: block; }
  .modal__head { padding: 22px 56px 16px 20px; }
  .modal__body { padding: 4px 20px 16px; }
  .modal__foot { flex-wrap: wrap-reverse; padding: 14px 20px; } /* 放不下時送出按鈕換到上一列 */
  .modal__note { padding: 12px 20px; }
  .policy { padding: 16px 20px 22px; }
  .line-qr { padding: 20px; }
  .modal__foot .btn { flex: 1 1 auto; padding: 0 12px; }
  .rv-items li { gap: 10px; grid-template-columns: 44px 1fr auto; }
  .rv-items .rv-thumb { width: 44px; height: 44px; }
  .kvs div { grid-template-columns: 6em 1fr; }
}

@media (max-width: 560px) {
  .topbar__inner { gap: 10px; }
  .brand__name { display: none; }
  .lang__btn { padding: 0 9px; }
}

@media (max-width: 420px) {
  .hero__actions .btn { flex: 1; }
  .plan__tag { font-size: 46px; }
  .price__amt { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 列印（成功頁的「列印／儲存明細」） ---------- */
@media print {
  body { background: #fff; }
  body::before, .topbar, .hero, #plans, #process, #tips, .order .section__head, .footer, .mbar, .toast, .success__actions { display: none !important; }
  .section { padding: 0; }
  .success { box-shadow: none; border: 0; max-width: none; }
}
