/* 韓畫刻印 Han Kream — 設計系統（ChatGPT R0 美術方向）
   奶油白底、霧粉／霧藍色塊、暖可可字、陶土玫瑰按鈕；宋體標題＋黑體內文；6px 微圓角、無陰影卡片 */
:root {
  --cream: #FBF8F2;
  --pink: #EAD8D5;
  --pink-soft: #F4E9E6;
  --blue: #D9E3E7;
  --blue-soft: #E8EEF0;
  --ink: #51473F;
  --ink-2: #7A6E65;
  --rose: #95665A;
  --rose-d: #7E5549;
  --linen: #E3D9CD;
  --beige: #F1EADF;
  --white: #FFFDF9;
  --serif: "Noto Serif TC", "Noto Serif KR", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --latin: "Cormorant Garamond", "Noto Serif TC", serif;
  --r: 6px;
  --wrap: 1160px;
  --gut: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 15px/1.8 var(--sans); letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .04em; line-height: 1.45; margin: 0; }
h2 { font-size: 23px; }
p { margin: 0; }
[hidden] { display: none !important; }
.kicker { font-family: var(--latin); font-style: italic; font-size: 15px; color: var(--rose); letter-spacing: .04em; }
.lead { color: var(--ink-2); }
.fine { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.demo-bar { background: var(--ink); color: #F6EFE6; font-size: 12px; text-align: center; padding: 6px 16px; line-height: 1.5; }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r); border: 1px solid var(--rose); text-decoration: none; cursor: pointer; font-weight: 500; letter-spacing: .08em; transition: background .18s, color .18s; white-space: nowrap; }
.btn--main { background: var(--rose); color: #fff; }
.btn--main:hover { background: var(--rose-d); border-color: var(--rose-d); }
.btn--line { background: transparent; color: var(--rose); }
.btn--line:hover { background: var(--pink-soft); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled { background: var(--linen); border-color: var(--linen); color: var(--ink-2); cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

/* 頂部 */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 var(--gut); background: rgba(251, 248, 242, .96); border-bottom: 1px solid var(--linen); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo__mark { width: 34px; height: 34px; object-fit: contain; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.2; }
.logo__txt b { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .16em; color: #B9827C; }
.logo__txt small { font-family: var(--latin); font-size: 12px; color: var(--ink-2); letter-spacing: .06em; }
.nav { display: none; }
.top__act { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { background: none; border: 0; padding: 8px 10px; font-size: 14px; color: var(--ink); cursor: pointer; min-height: 44px; }
.cart-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.cart-btn svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.cart-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

/* 主視覺 */
.hero { display: grid; gap: 28px; padding: 24px var(--gut) 40px; max-width: var(--wrap); margin: 0 auto; }
.hero__photo { position: relative; margin: 0; order: -1; }
.hero__photo > img:first-child { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; object-position: 50% 62%; border-radius: var(--r); }
.hero__stars { position: absolute; width: 112px; height: auto; right: -6px; top: -14px; mix-blend-mode: multiply; pointer-events: none; }
.hero h1 { font-size: 27px; line-height: 1.55; margin: 10px 0 14px; white-space: pre-line; }
.hero .lead { max-width: 30em; }
.hero__btns { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero__btns .btn { flex: 1 1 140px; }
.hero__note { margin-top: 14px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.hero__note::before { content: ""; width: 18px; height: 1px; background: var(--rose); }

/* 流程 */
.steps { background: var(--blue); padding: 36px var(--gut); }
.steps__list { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap); display: grid; gap: 20px; counter-reset: st; }
.steps__list li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.steps__ic { width: 56px; height: 56px; object-fit: contain; }
.steps__list em { display: block; font-family: var(--latin); font-style: normal; font-size: 15px; color: var(--rose); line-height: 1.2; }
.steps__list b { display: block; font-family: var(--serif); font-weight: 500; font-size: 16px; letter-spacing: .06em; }
.steps__list span { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

/* 區塊標題 */
.sec-head { max-width: var(--wrap); margin: 0 auto 28px; }
.sec-head h2 { margin-bottom: 10px; }
.sec-head .lead { max-width: 40em; }

/* 商品卡（照老闆線框：石材照→名稱→尺寸金額→臍帶→流蘇→其他加購→備註→小計→加入購物車） */
.order { padding: 56px var(--gut) 48px; }
.cards { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 28px; }
.card { background: var(--white); border: 1px solid var(--linen); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; }
.card__photo { position: relative; aspect-ratio: 4/3; background: var(--beige); cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; }
.card__badge { position: absolute; left: 12px; top: 12px; background: var(--cream); color: var(--rose); font-size: 12px; padding: 2px 10px; border-radius: 3px; letter-spacing: .08em; }
.card__thumbs { display: flex; gap: 6px; padding: 8px 12px 0; }
.card__thumbs button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--linen); border-radius: 4px; overflow: hidden; background: none; cursor: pointer; }
.card__thumbs button[aria-current="true"] { border-color: var(--rose); }
.card__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card__name h3 { font-size: 19px; }
.card__size { font-size: 13px; color: var(--ink-2); }
.card__price { font-family: var(--latin); font-size: 22px; color: var(--rose); font-weight: 500; letter-spacing: .02em; }
.card__intro { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.card__left { font-size: 12.5px; color: var(--ink-2); }
.card__left b { color: var(--rose); font-weight: 500; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt > legend, .opt__t { padding: 0; font-size: 14px; font-weight: 500; margin-bottom: 8px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.opt__req { font-size: 11.5px; color: var(--rose); font-weight: 400; }
.opt__hint { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--linen); border-radius: var(--r); background: var(--cream); font-size: 13.5px; line-height: 1.4; cursor: pointer; }
.chip small { color: var(--rose); font-size: 12px; }
.chip input:checked + span { border: 2px solid var(--rose); padding: 5px 11px; background: var(--pink-soft); }
.chip input:checked + span::before { content: "✓"; color: var(--rose); font-size: 12px; }
.chip input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.sw { position: relative; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw span { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; }
.sw i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(81, 71, 63, .18); }
.sw input:checked + span { box-shadow: inset 0 0 0 2px var(--rose); }
.sw input:focus-visible + span { outline: 2px solid var(--rose); }
.sw--text span { width: auto; height: 40px; border-radius: var(--r); border: 1px solid var(--linen); padding: 0 12px; font-size: 13px; background: var(--cream); margin-left: 2px; }
.sw--text input:checked + span { box-shadow: none; border: 2px solid var(--rose); background: var(--pink-soft); }
.sw-name { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; min-height: 1.6em; }
.field { display: block; }
.field input, .field textarea, .field select, .sel { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #CDBFB2; border-radius: var(--r); background: #fff; font-size: 16px; line-height: 1.5; }
.field textarea { min-height: 96px; resize: vertical; }
.sel { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2395665A' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; padding-right: 36px; }
.extra { border-top: 1px dashed var(--linen); padding-top: 12px; }
.extra > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; min-height: 40px; }
.extra > summary::-webkit-details-marker { display: none; }
.extra > summary::after { content: "＋"; color: var(--rose); }
.extra[open] > summary::after { content: "－"; }
.extra > summary small { color: var(--rose); font-weight: 400; margin-left: auto; margin-right: 10px; }
.extra__in { display: grid; gap: 16px; padding-top: 8px; }
.opt__img { width: 100%; max-width: 280px; border-radius: 4px; margin-top: 8px; cursor: zoom-in; border: 1px solid var(--linen); }
.card__foot { margin-top: auto; display: grid; gap: 10px; padding-top: 6px; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; background: var(--beige); border-radius: var(--r); padding: 10px 14px; font-size: 14px; }
.subtotal b { font-family: var(--latin); font-size: 22px; color: var(--rose); font-weight: 500; }
.soldout { font-size: 13px; color: var(--ink-2); text-align: center; }
.order > .fine { max-width: var(--wrap); margin: 24px auto 0; }

/* 訂購需知 */
.notice { background: var(--blue-soft); padding: 52px var(--gut); }
.notice__in { max-width: 860px; margin: 0 auto; }
.notice__in h2 { margin-bottom: 18px; }
.notice details { border-top: 1px solid #C9D2D6; }
.notice details:last-child { border-bottom: 1px solid #C9D2D6; }
.notice summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 54px; font-family: var(--serif); font-size: 16px; letter-spacing: .06em; }
.notice summary::-webkit-details-marker { display: none; }
.notice summary::after { content: "＋"; color: var(--rose); font-family: var(--sans); }
.notice details[open] summary::after { content: "－"; }
.notice ul { margin: 0 0 18px; padding-left: 1.2em; color: var(--ink-2); font-size: 14px; }
.notice li { margin: 4px 0; }
.notice li::marker { color: var(--rose); }
.notice p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }

/* 品牌故事 */
.story { background: var(--pink); padding: 56px var(--gut); display: grid; gap: 32px; }
.story__photos { position: relative; margin: 0; max-width: 560px; width: 100%; padding-bottom: 18%; }
.story__a { width: 78%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.story__b { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); border: 6px solid var(--pink); }
.story__text h2 { margin: 8px 0 18px; }
.story__body p { margin: 0 0 14px; }
.story__sign { margin-top: 18px; font-family: var(--serif); color: var(--rose); letter-spacing: .1em; }

/* 作品集 */
.works { padding: 56px var(--gut); }
.masonry { max-width: var(--wrap); margin: 0 auto; columns: 2; column-gap: 10px; }
.masonry button { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: var(--beige); border-radius: 4px; overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.masonry img { width: 100%; height: auto; }
.masonry figcaption { font-size: 12px; color: var(--ink-2); padding: 4px 8px 6px; text-align: left; background: var(--cream); }
.btn--more { display: flex; margin: 20px auto 0; }

/* FAQ */
.faq { padding: 8px var(--gut) 56px; max-width: 860px; margin: 0 auto; }
.faq h2 { margin-bottom: 16px; }
.faq details { border-top: 1px solid var(--linen); }
.faq details:last-child { border-bottom: 1px solid var(--linen); }
.faq summary { cursor: pointer; list-style: none; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--rose); }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 0 16px; color: var(--ink-2); font-size: 14px; }

/* 聯絡 */
.contact { background: var(--beige); text-align: center; padding: 56px var(--gut); }
.contact__mark { width: 56px; height: 56px; margin: 0 auto 10px; mix-blend-mode: multiply; object-fit: contain; }
.contact h2 { margin-bottom: 10px; }
.contact .lead { max-width: 32em; margin: 0 auto; }
.contact__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.contact__btns .btn { min-width: 150px; }
.contact__line { font-size: 13px; color: var(--ink-2); margin-top: 12px; width: 100%; }

/* 頁尾 */
.foot { padding: 32px var(--gut) 96px; text-align: center; font-size: 12.5px; color: var(--ink-2); display: grid; gap: 6px; }
.foot__brand { font-family: var(--serif); letter-spacing: .14em; color: var(--ink); font-size: 14px; }
.foot__links a { margin: 0 8px; }
.foot__credit a { color: var(--ink-2); }

/* 手機底部購物車列 */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--linen); font-size: 14px; }
.bar b { color: var(--rose); font-weight: 500; }

/* 全頁表單視窗 */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(60, 50, 44, .42); }
.sheet { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; background: var(--cream); }
.sheet__in { display: flex; flex-direction: column; height: 100%; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gut); border-bottom: 1px solid var(--linen); background: var(--cream); }
.sheet__head h2 { font-size: 20px; }
.x { width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); }
.sheet__body { flex: 1; overflow-y: auto; padding: 18px var(--gut) 28px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linen); background: var(--white); }
.sum { font-size: 14px; }
.sum b { font-family: var(--latin); font-size: 22px; color: var(--rose); font-weight: 500; margin-left: 4px; }
.eg-stone { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--linen); margin-bottom: 18px; }
.eg-stone img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.eg-stone b { font-family: var(--serif); font-weight: 500; font-size: 17px; }
.eg-stone small { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 1.6; }
.eg-sec { display: grid; gap: 18px; margin-bottom: 26px; }
.eg-sec > h3 { font-size: 16px; display: flex; gap: 10px; align-items: baseline; }
.eg-sec > h3 span { font-family: var(--latin); color: var(--rose); font-size: 18px; }
.nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.nums label { position: relative; }
.nums input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nums span { display: grid; place-items: center; height: 44px; border: 1px solid var(--linen); border-radius: var(--r); background: #fff; font-family: var(--latin); font-size: 17px; cursor: pointer; position: relative; }
.nums input:checked + span { border: 2px solid var(--rose); background: var(--pink-soft); color: var(--rose); }
.nums input:checked + span::after { content: attr(data-rank); position: absolute; top: -7px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--rose); color: #fff; font: 500 11px/18px var(--sans); text-align: center; }
.nums input:focus-visible + span { outline: 2px solid var(--rose); }
.batch { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.batch button { flex: 0 0 78%; max-width: 360px; padding: 0; border: 1px solid var(--linen); border-radius: 4px; overflow: hidden; background: none; cursor: zoom-in; scroll-snap-align: start; }
.batch img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.err { color: #A2463A; font-size: 13px; margin-top: 6px; }
.opt.is-err .chips, .opt.is-err .sel, .opt.is-err input, .opt.is-err textarea { outline: 2px solid #C98479; outline-offset: 2px; border-radius: var(--r); }

/* 購物車 */
.line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linen); }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.line h3 { font-size: 16px; display: flex; justify-content: space-between; gap: 8px; }
.line h3 b { font-family: var(--latin); color: var(--rose); font-weight: 500; font-size: 18px; white-space: nowrap; }
.line dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.line dt { color: var(--ink); white-space: nowrap; }
.line dd { margin: 0; word-break: break-word; }
.line .rm { margin-top: 6px; background: none; border: 0; padding: 6px 0; color: var(--rose); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.totals { display: grid; gap: 4px; padding: 16px 0; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 16px; padding-top: 8px; border-top: 1px solid var(--linen); margin-top: 6px; }
.totals .grand b { font-family: var(--latin); font-size: 24px; color: var(--rose); font-weight: 500; }
.form { display: grid; gap: 14px; }
.form h3 { font-size: 17px; margin-top: 10px; }
.form .lbl { font-size: 14px; font-weight: 500; margin-bottom: 6px; display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; cursor: pointer; padding: 4px 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rose); flex: none; }
.pays { display: grid; gap: 8px; }
.pay { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--linen); border-radius: var(--r); background: #fff; cursor: pointer; }
.pay input { accent-color: var(--rose); width: 18px; height: 18px; margin-top: 3px; }
.pay small { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 1.6; }
.pay:has(input:checked) { border: 2px solid var(--rose); padding: 11px 13px; background: var(--pink-soft); }
.memo { background: var(--blue-soft); border-radius: var(--r); padding: 12px 14px; font-size: 13.5px; line-height: 1.7; }
.empty { text-align: center; padding: 40px 0; color: var(--ink-2); display: grid; gap: 14px; justify-items: center; }
.empty img { width: 96px; mix-blend-mode: multiply; }
.done { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 10px 0 20px; }
.done img { width: 92px; mix-blend-mode: multiply; }
.done__no { font-family: var(--latin); font-size: 26px; letter-spacing: .06em; color: var(--rose); user-select: all; }
.box { background: var(--white); border: 1px solid var(--linen); border-radius: var(--r); padding: 14px 16px; text-align: left; width: 100%; font-size: 14px; }
.box h3 { font-size: 16px; margin-bottom: 6px; }
.flow { display: flex; gap: 4px; flex-wrap: wrap; font-size: 12px; margin: 6px 0 2px; }
.flow span { padding: 3px 8px; border-radius: 3px; background: var(--beige); color: var(--ink-2); }
.flow span.on { background: var(--rose); color: #fff; }
.flow span.past { background: var(--pink); color: var(--ink); }
.msgs { display: grid; gap: 6px; font-size: 13px; }
.msgs p { background: var(--beige); border-radius: 4px; padding: 6px 10px; }
.msgs p.cust { background: var(--pink-soft); }
.msgs time { color: var(--ink-2); font-size: 11.5px; margin-right: 6px; }
.proof { width: 100%; border-radius: 4px; border: 1px solid var(--linen); cursor: zoom-in; }

/* 燈箱 */
.lightbox { background: rgba(40, 33, 29, .92); width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; display: none; place-items: center; padding: 48px 12px; }
.lightbox[open] { display: grid; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.lightbox p { color: #F3EAE0; font-size: 13px; margin-top: 10px; text-align: center; }
.lightbox .x { position: fixed; top: 8px; right: 8px; color: #fff; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r); font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100% - 40px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── 平板以上 ── */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 3; column-gap: 14px; }
  .masonry button { margin-bottom: 14px; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  :root { --gut: 40px; }
  h2 { font-size: 30px; }
  .top { height: 76px; }
  .logo__mark { width: 42px; height: 42px; }
  .logo__txt b { font-size: 19px; }
  .nav { display: flex; gap: 34px; margin-left: auto; }
  .nav a { text-decoration: none; font-size: 15px; letter-spacing: .1em; padding: 8px 0; border-bottom: 1px solid transparent; }
  .nav a:hover { border-color: var(--rose); color: var(--rose); }
  .nav a:last-child { font-family: var(--latin); font-size: 17px; letter-spacing: .04em; }
  .top__act { margin-left: 20px; }
  .hero { grid-template-columns: 42fr 58fr; align-items: center; gap: 56px; padding: 56px var(--gut) 72px; }
  .hero__photo { order: 0; }
  .hero__photo > img:first-child { aspect-ratio: 5/4; max-height: 560px; }
  .hero__stars { width: 150px; right: -36px; top: -40px; }
  .hero h1 { font-size: 40px; }
  .hero__btns .btn { flex: 0 0 auto; }
  .steps { padding: 44px var(--gut); }
  .steps__list { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps__list li { grid-template-columns: 1fr; align-items: start; gap: 10px; }
  .steps__ic { width: 64px; height: 64px; }
  .order { padding: 96px var(--gut) 72px; }
  .sec-head { margin-bottom: 40px; }
  .sec-head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
  .card__photo { aspect-ratio: 4/3.2; }
  .notice { padding: 88px var(--gut); }
  .story { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; padding: 96px max(var(--gut), calc((100% - var(--wrap)) / 2)); }
  .works { padding: 96px var(--gut); }
  .masonry { columns: 4; }
  .faq { padding-bottom: 88px; }
  .contact { padding: 88px var(--gut); }
  .bar { display: none; }
  .foot { padding-bottom: 40px; }
  .sheet { width: min(640px, 100%); height: 100%; margin: 0 0 0 auto; }
  .lightbox img { max-height: calc(100vh - 120px); }
  .batch button { flex-basis: 48%; }
}
@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media print { .top, .bar, .demo-bar { display: none; } }
.story__text { position: relative; }
.story__flower { width: 76px; margin-top: 18px; }
/* 手機：選項排兩欄，卡片不要太長 */
@media (max-width: 639px) {
  .card .chips { display: grid; grid-template-columns: 1fr 1fr; }
  .card .chip span { width: 100%; min-height: 44px; font-size: 13px; padding: 6px 10px; }
  .card .chip input:checked + span { padding: 5px 9px; }
  .card .swatches { gap: 0; }
  .card .sw span { width: 40px; height: 44px; }
  .card .sw i { width: 28px; height: 28px; }
}
.card__price, .subtotal b, .sum b, .totals .grand b, .line h3 b, .nums span, .done__no, .steps__list em, .kicker { font-variant-numeric: lining-nums; }
.eg-sec > h3 .opt__req { font-family: var(--sans); font-size: 12px; color: var(--rose); }
@media (max-width: 639px) {
  .card .chip span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding-right: 22px; }
  .card .chip input:checked + span { padding-right: 21px; }
  .card .chip input:checked + span::before { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
  .card .chip small { font-size: 11.5px; }
  .card .sw--text { flex-basis: 100%; margin-top: 4px; }
  .card .sw--text span { margin-left: 0; }
}
.sw--text span { display: inline-flex; align-items: center; white-space: nowrap; }

/* ── ChatGPT R1 修改 ── */
.chip span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
.chip b { font-weight: 400; }
.chip span::before { display: none; }
.chip input:checked + span { background: var(--pink); }
.chip input:checked + span::after { content: "✓"; position: absolute; right: 9px; top: 8px; color: var(--rose); font-size: 12px; }
.card .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card .chip span, .sheet .chip span { width: 100%; min-height: 56px; padding: 8px 24px 8px 12px; font-size: 13.5px; }
.card .chip input:checked + span, .sheet .chip input:checked + span { padding: 7px 23px 7px 11px; }
.chip small { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.chip input:checked + span small { color: var(--rose); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 4px; }
.sw span { width: 100%; height: auto; min-height: 60px; display: grid; justify-items: center; align-content: center; gap: 4px; border-radius: var(--r); padding: 6px 2px; }
.sw i { width: 28px; height: 28px; }
.sw em { font-style: normal; font-size: 12px; color: var(--ink-2); line-height: 1.2; text-align: center; }
.sw input:checked + span { box-shadow: none; background: var(--pink); }
.sw input:checked + span i { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--rose); }
.sw input:checked + span em { color: var(--rose); }
.sw--text { grid-column: 1 / -1; }
.sw--text span, .card .sw--text span { width: 100%; min-height: 44px; height: auto; display: flex; justify-content: center; margin: 0; border-radius: var(--r); white-space: normal; text-align: center; font-size: 13px; }
.card .sw span { width: 100%; height: auto; }
.card .sw i { width: 28px; height: 28px; }
.extra--note { border-top: 0; padding-top: 0; }
.extra--note > summary { color: var(--rose); font-weight: 400; min-height: 36px; }
.extra--note > summary::after { content: ""; }
.subtotal { background: none; border-top: 1px solid var(--linen); border-radius: 0; padding: 12px 0 2px; }
.card__next { font-size: 12px; color: var(--ink-2); text-align: center; line-height: 1.5; }
.card__thumbs button { width: 42px; height: 42px; }
.eg-back { display: inline-block; margin-top: 4px; background: none; border: 0; padding: 4px 0; color: var(--rose); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.nums { grid-template-columns: repeat(3, 1fr); }
.nums span { height: 48px; }
.nums input:checked + span { background: var(--pink); }
.nums input:checked + span::after { width: 22px; height: 22px; line-height: 22px; font-size: 14px; top: -8px; }
.rank { font-size: 13.5px; color: var(--rose); }
.line__meta { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-top: 2px; }
.line__eng { margin-top: 8px; background: #F6EDE2; border-radius: var(--r); padding: 10px 12px; display: grid; gap: 2px; }
.line__eng b { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: .1em; }
.line__eng span { font-size: 14px; font-variant-numeric: lining-nums; }
.line__eng small { font-size: 12.5px; color: var(--ink-2); }
.line__act { display: flex; gap: 18px; }
.rm--quiet { color: var(--ink-2) !important; }
/* 作品集：桌機一大四小（第一張 2×2）、手機兩欄 */
.masonry { columns: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.masonry button { margin: 0; aspect-ratio: 3/4; }
.masonry img { width: 100%; height: 100%; object-fit: cover; }
.masonry figcaption { display: none; }
@media (min-width: 640px) { .masonry { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 900px) {
  .masonry { grid-template-columns: repeat(4, 1fr); }
  .masonry button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .hero { grid-template-columns: minmax(440px, 44fr) 56fr; }
  .hero h1 { font-size: 40px; line-height: 1.5; letter-spacing: .03em; }
  .hero__stars { width: 112px; right: -24px; top: -30px; }
  .card .chips { gap: 6px; }
  .card .chip span { min-height: 54px; }
  .story { padding-top: 88px; padding-bottom: 88px; }
  .works { padding: 88px var(--gut); }
}

/* ── ChatGPT R2 修改 ── */
.btn--two { min-height: 60px; flex-direction: column; gap: 3px; line-height: 1.2; }
.btn--two span { font-size: 15px; font-weight: 500; }
.btn--two small { font-size: 12px; font-weight: 400; letter-spacing: .04em; opacity: .92; }
.btn.is-wait { background: var(--linen); border-color: var(--linen); color: #796A60; }
.sum { display: grid; gap: 2px; }
.sum__miss { font-size: 12px; color: #A2463A; line-height: 1.4; max-width: 15em; }
.sum__miss:empty { display: none; }
.sheet__body { padding-bottom: 96px; }
.sw em { color: var(--ink); }
.sw input:checked + span em { font-weight: 600; }
.sw input:checked + span i { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--rose); }
.chip input:checked + span::after { font-size: 14px; }
.batch img { aspect-ratio: auto; height: 210px; object-fit: cover; }
.steps__ic { width: 72px; height: 72px; padding: 8px; }
.steps__list em { margin-bottom: 4px; }
.steps__list span { font-size: 14px; }
@media (min-width: 900px) { .steps__ic { width: 72px; height: 72px; } .steps__list li { gap: 12px; } }

.opt__pic { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--linen); border-radius: var(--r); background: var(--white); color: var(--rose); font-size: 13px; cursor: zoom-in; }
.opt__pic img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
/* 2026-11-28：製作摘要（固定順序）、可複選標籤、已被訂走的編號 */
.srows { margin: 0; display: grid; grid-template-columns: 7.6em 1fr; gap: 5px 10px; font-size: 13px; line-height: 1.6; }
.srows dt { color: var(--ink-2); white-space: normal; }
.srows dd { margin: 0; word-break: break-word; color: var(--ink); }
.srows dd b { font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: .1em; line-height: 1.3; }
.opt__multi { margin-left: 8px; font-size: 11.5px; color: var(--ink-2); font-weight: 400; letter-spacing: 0; }
.nums label.taken span { background: #EFEAE4; color: #B5AAA0; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
.line__meta .gone { color: #B5AAA0; text-decoration: line-through; }
.line.is-err { background: #FBEDEA; border-radius: var(--r); padding-left: 8px; padding-right: 8px; }
.line .err { font-size: 13px; margin-top: 4px; }
.line dl.srows { grid-template-columns: 6.6em 1fr; gap: 5px 10px; font-size: 13px; color: var(--ink); margin: 0; }
.line dl.srows dt { white-space: normal; color: var(--ink-2); }
/* 2026-11-28 下午：一枚只選一顆（選中打勾）；摘要每項一行、分組之間多一點空間 */
.nums input:checked + span::after { content: "\2713"; }
.srows { gap: 6px 12px; }
.srows dt.gs, .srows dd.gs { margin-top: 6px; padding-top: 8px; border-top: 1px dashed #E2D3C6; }
.line dl.srows { grid-template-columns: 7.4em 1fr; gap: 6px 10px; }

/* ── 2026-11-30 訂製兩步（步驟 1 石頭＋刻字 → 步驟 2 臍帶放置＋加購） ── */
.btn--eg { min-height: 52px; padding-left: 18px; padding-right: 18px; max-width: 62%; text-align: center; }
.btn--eg small:empty { display: none; }
.eg-stone small:empty, .eg-back[hidden] { display: none; }
.eg-sec--extra { gap: 6px; }
