:root {
  --page: #efe9de;
  --surface: #f8f5ee;
  --surface-strong: #fdfbf6;
  --surface-soft: #e7e1d5;
  --ink: #19251f;
  --muted: #69736d;
  --line: #ddd7cd;
  --accent: #2f6e54;
  --accent-strong: #1e503e;
  --accent-soft: #deebe3;
  --event: #b86846;
  --event-strong: #93472f;
  --event-soft: #f1e2d9;
  --danger: #a43f3f;
  --shadow: 0 26px 80px rgba(49, 53, 43, .12);
  --shadow-soft: 0 12px 36px rgba(49, 53, 43, .08);
  --radius-card: 22px;
  --radius-control: 14px;
  color: var(--ink);
  background: var(--page);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% -8%, rgba(221, 203, 177, .28), transparent 28rem),
    radial-gradient(circle at 100% 18%, rgba(203, 221, 209, .24), transparent 30rem),
    var(--page);
}
body.dialog-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .46; }
button:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible, input:focus-visible, textarea:focus-visible, label:focus-within {
  outline: 3px solid color-mix(in srgb, var(--accent) 24%, transparent);
  outline-offset: 2px;
}
img { display: block; width: 100%; }

.store-header {
  position: sticky; top: 0; z-index: 20; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: #f8f5ed; background: var(--ink); border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 13px; box-shadow: 0 7px 18px rgba(25, 37, 31, .14);
  font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 700;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 12px; letter-spacing: .18em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.header-link, .back-button, .close-button {
  padding: 8px 0; color: var(--accent-strong); background: transparent; border: 0; font-weight: 750;
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions a { text-decoration: none; }

.announcement-bar {
  width: min(1220px, calc(100% - 48px)); min-height: 42px; margin: 12px auto 0;
  display: flex; align-items: center; gap: 12px; overflow: hidden;
  color: var(--ink); background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-soft);
}
.announcement-icon { flex: 0 0 38px; display: grid; place-items: center; color: var(--event-strong); font-size: 16px; }
.announcement-viewport { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.announcement-track { display: inline-flex; align-items: center; min-width: max-content; gap: 14px; animation: announcement-marquee 30s linear infinite; }
.announcement-bar.is-paused .announcement-track { animation-play-state: paused; }
.announcement-item { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.announcement-item b { padding: 3px 7px; color: var(--event-strong); background: var(--event-soft); border-radius: 999px; font-size: 10px; }
.announcement-item strong { color: var(--ink); }
.announcement-item time { color: var(--event-strong); font-variant-numeric: tabular-nums; }
.announcement-separator { color: var(--line); font-style: normal; }
.announcement-toggle { flex: 0 0 32px; width: 30px; height: 30px; margin-right: 6px; color: var(--accent-strong); background: transparent; border: 0; border-radius: 50%; font-size: 11px; }
.announcement-toggle:hover { background: var(--accent-soft); }
@keyframes announcement-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.store-shell { width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 26px 0 150px; }
.site-footer {
  padding: 0 18px 30px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 24%, transparent);
  outline-offset: 4px;
  border-radius: 4px;
}
.intro {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
  min-height: 450px; overflow: hidden; position: relative; background: var(--surface-strong);
  border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow);
}
.intro::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 253, 250, .25), transparent 42%, rgba(47, 110, 84, .06));
}
.intro-copy { align-self: center; position: relative; z-index: 1; padding: clamp(46px, 6vw, 88px); }
.eyebrow { margin: 0 0 18px; color: var(--event-strong); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 {
  max-width: 8em; margin-bottom: 22px; color: var(--ink);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(42px, 5.4vw, 72px); font-weight: 600; line-height: .98; letter-spacing: -.065em;
}
.intro-copy > p:last-child { max-width: 29em; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.intro-visual { margin: 0; min-height: 450px; position: relative; background: var(--surface-soft); }
.intro-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 253, 250, .28), transparent 36%); pointer-events: none; }
.intro-visual img { height: 100%; object-fit: cover; transform: scale(1.02); }

.material-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.material-strip-label { margin-right: 4px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .06em; }
.material-strip-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px 5px 6px; background: rgba(236, 232, 224, .64); border: 1px solid var(--line); border-radius: 999px;
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), border-color .28s ease, background .28s ease;
}
.material-strip-item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--surface-strong); }
.material-strip-item img, .material-strip-item .material-fallback {
  width: 26px; height: 26px; border-radius: 7px; object-fit: cover; aspect-ratio: auto; flex-shrink: 0;
}
.material-strip-item em { font-style: normal; color: var(--ink); font-size: 12px; font-weight: 700; }

.step-nav {
  position: sticky; top: 72px; z-index: 15; display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 28px 0; padding: 6px; background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(18px); box-shadow: var(--shadow-soft);
}
.step-tab {
  min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); background: transparent; border: 0; border-radius: 11px; font-weight: 750;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.step-tab:not(:disabled):hover { color: var(--accent-strong); background: rgba(222, 235, 227, .58); transform: translateY(-1px); }
.step-tab span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; }
.step-tab.active { color: var(--accent-strong); background: var(--accent-soft); }
.step-tab.active span { color: #f3f7f5; background: var(--accent); border-color: var(--accent); }

.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 30px; }
.flow-column { min-width: 0; }
.flow-step { padding: clamp(28px, 4vw, 54px); background: color-mix(in srgb, var(--surface-strong) 96%, transparent); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-soft); }
.flow-step:not(.active) { box-shadow: none; }
/* 2026-08-20:移除 .flow-step.active 的 step-in 动画——后台标签页动画被浏览器节流暂停,
   切回页面时内容卡在 from(opacity:0)导致「一打开看不到信息」。步骤内容必须直接可见。 */
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }
.section-heading { margin-bottom: 42px; }
.section-heading h2 {
  margin-bottom: 12px; color: var(--ink); font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -.045em;
}
.section-heading p { max-width: 42em; margin-bottom: 0; color: var(--muted); line-height: 1.75; }
.back-button { margin: -10px 0 18px; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.option-group + .option-group { margin-top: 40px; }
legend { padding: 0; color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.field-help { margin: 7px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.material-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.material-card { position: relative; min-width: 0; }
.material-card input { position: absolute; opacity: 0; pointer-events: none; }
.material-card label {
  display: block; height: 100%; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-control);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.material-card label:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); box-shadow: var(--shadow-soft); background: var(--surface-strong); }
.material-card input:checked + label { position: relative; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.material-card input:checked + label::after {
  content: "已选"; position: absolute; top: 10px; right: 10px;
  padding: 3px 10px; color: #f3f7f5; background: var(--accent); border-radius: 999px;
  font-size: 11px; font-weight: 800;
}
.material-card img { aspect-ratio: 1; object-fit: cover; background: var(--surface-soft); }
.material-card-copy { display: block; min-height: 58px; padding: 11px 12px; line-height: 1.35; }
.material-card-copy strong { display: block; font-size: 13px; font-weight: 750; }
.material-card-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 600; }
.material-card .material-fallback { min-height: 0; padding: 0; font-size: 0; line-height: 0; }

/* 无图材质占位块(与图片同尺寸的纹理色块,替代首字) */
.material-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background:
    repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--line) 55%, transparent) 7px 8px),
    var(--surface-soft);
}
.material-fallback.family-metallic {
  background: linear-gradient(135deg, #d6d1bd, #f1efe8 47%, #b7b29f);
}
.material-fallback.family-textured-paper {
  background: repeating-linear-gradient(45deg, var(--surface-soft), var(--surface-soft) 3px, color-mix(in srgb, var(--line) 72%, transparent) 4px);
}
.material-fallback.family-transparent {
  background: linear-gradient(135deg, var(--surface-soft) 25%, transparent 25%) 0 0 / 12px 12px, linear-gradient(315deg, var(--surface-soft) 25%, transparent 25%) 0 0 / 12px 12px;
}
.material-fallback.family-synthetic {
  background: repeating-linear-gradient(0deg, var(--surface-soft), var(--surface-soft) 4px, color-mix(in srgb, var(--line) 50%, transparent) 5px);
}
/* 材质选项(choice)里的小占位块,与缩略图同尺寸 */
#materialOptions .material-fallback {
  width: 30px;
  height: 30px;
  aspect-ratio: auto;
  border-radius: 6px;
  flex-shrink: 0;
}
/* 查看全部材质列表里的占位块填满 46px 缩略图 */
.material-thumb .material-fallback {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: inherit;
}
.material-thumb .material-fallback.family-metallic {
  background: linear-gradient(135deg, #d6d1bd, #f1efe8 47%, #b7b29f);
}

.product-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.product-card { position: relative; }
.product-card input { position: absolute; opacity: 0; pointer-events: none; }
.product-card label {
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 104px; padding: 18px 19px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.product-card label:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); box-shadow: var(--shadow-soft); background: var(--surface-strong); }
.product-card label strong { font-size: 15px; font-weight: 800; }
.product-card label > span:not(.product-glyph) { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.product-card input:checked + label { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--accent); }
.product-glyph {
  position: relative; width: 34px; height: 34px; margin-bottom: 12px; flex-shrink: 0;
  background: var(--accent-soft); border: 2px solid var(--accent); border-radius: 6px;
}
.product-glyph.glyph-tag::before {
  content: ""; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; background: var(--surface); border: 2px solid var(--accent); border-radius: 50%;
}
.product-glyph.glyph-circle { border-radius: 50%; }
.product-glyph.glyph-strip { width: 44px; height: 15px; border-radius: 4px; margin: 10px 0 22px; }
.product-glyph.glyph-card::after {
  content: ""; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 7px; background: var(--accent); border-radius: 0 0 3px 3px;
}

.outline-button, .primary-button {
  min-height: 50px; border-radius: var(--radius-control); font-weight: 800; white-space: nowrap;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.outline-button { padding: 0 18px; color: var(--accent-strong); background: transparent; border: 1px solid var(--line); }
.outline-button:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.full-button { width: 100%; margin-top: 14px; }
.primary-button { padding: 0 22px; color: #f5f8f6; background: var(--accent); border: 1px solid var(--accent); box-shadow: 0 8px 20px rgba(47, 110, 84, .17); }
.primary-button:hover:not(:disabled) { background: var(--accent-strong); box-shadow: 0 11px 26px rgba(47, 110, 84, .23); transform: translateY(-2px); }

.choice-row { display: flex; flex-wrap: wrap; gap: 9px; }
.custom-size-inputs {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px;
}
.custom-size-inputs label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.custom-size-inputs input {
  width: 76px; height: 44px; padding: 0 10px; font-size: 15px; font-weight: 700;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control);
}
.lamination-row .choice input:disabled + label { opacity: 0.45; cursor: not-allowed; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  min-width: 78px; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); font-weight: 750;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.choice label:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
.choice input:checked + label { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 62%, transparent); }
.choice-material-thumb { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; background: var(--surface-soft); flex-shrink: 0; }
.baseline-note {
  display: flex; justify-content: space-between; gap: 22px; margin-top: 42px; padding: 18px 20px;
  color: var(--accent-strong); background: var(--accent-soft); border-radius: var(--radius-control); font-size: 13px;
}
.baseline-note span { color: var(--muted); text-align: right; }

.quote-column { position: sticky; top: 156px; }
.quote-card { position: relative; overflow: hidden; padding: 30px; background: linear-gradient(145deg, #1c2a23, #101914); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-card); box-shadow: var(--shadow); color: #eff4f1; }
.quote-card::before { content: ""; position: absolute; width: 220px; height: 220px; top: -105px; right: -80px; border: 1px solid rgba(219, 182, 137, .25); border-radius: 50%; pointer-events: none; }
.quote-card-heading { display: flex; align-items: center; justify-content: space-between; position: relative; color: #c2cec6; font-size: 13px; }
.quote-card-heading small { color: #b9d9c6; }
.price { display: block; position: relative; margin: 30px 0 28px; color: #d79a76; font-family: Georgia, "Times New Roman", serif; font-size: 46px; font-weight: 600; letter-spacing: -.045em; }
.quote-summary { margin: 0 0 22px; padding: 18px 0; border-top: 1px solid #34453c; border-bottom: 1px solid #34453c; }
.quote-summary div { display: flex; justify-content: space-between; gap: 16px; }
.quote-summary div + div { margin-top: 11px; }
.quote-summary dt { color: #aebcb4; }
.quote-summary dd { margin: 0; text-align: right; }
.order-notice { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #d9a441; border-radius: 10px; background: rgba(217, 164, 65, 0.08); }
.order-notice .notice-head { font-weight: 600; color: #d9a441; margin-bottom: 8px; font-size: 14px; }
.order-notice ul { margin: 0; padding-left: 18px; }
.order-notice li { font-size: 13px; line-height: 1.7; color: #c9d4cd; }
.order-notice li.notice-warn { color: #f0b357; font-weight: 500; }
.order-notice li.notice-info { color: #c9d4cd; }
.order-notice li.notice-file { color: #9db2a6; font-size: 12.5px; }
.quote-message { min-height: 20px; color: #eabbbb; font-size: 12px; line-height: 1.55; }
.quote-card .primary-button { width: 100%; background: #dcebe3; border-color: #dcebe3; color: #153d2e; }
.secure-copy { margin: 14px 0 0; color: #91a299; font-size: 11px; line-height: 1.55; text-align: center; }

.upload-panel { padding: 14px; background: linear-gradient(145deg, var(--surface-soft), #e7e2d8); border: 1px solid var(--line); border-radius: var(--radius-card); }
.upload-panel > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-target {
  min-height: 235px; display: grid; place-content: center; gap: 10px; padding: 28px; text-align: center;
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent); border: 1px dashed #9baba2; border-radius: var(--radius-control); cursor: pointer;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.upload-target:hover { border-color: var(--accent); background: var(--surface-strong); transform: translateY(-2px); }
.upload-target strong { font-size: 19px; }
.upload-target span, .service-notice { color: var(--muted); font-size: 13px; }
.file-list { margin-top: 10px; overflow: hidden; background: var(--surface-strong); border-radius: var(--radius-control); }
.file-item { display: grid; gap: 9px; padding: 14px; }
.file-item > div { display: flex; justify-content: space-between; gap: 18px; }
.file-item + .file-item { border-top: 1px solid var(--line); }
.file-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item span { color: var(--muted); font-size: 12px; }
.file-assessment { margin: 0; font-size: 12px; line-height: 1.5; }
.file-enhancement-note { margin: 0; color: var(--accent-strong); font-size: 12px; line-height: 1.5; }
.background-mode { display: grid; gap: 10px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); }
.background-mode legend { font-size: 13px; font-weight: 800; }
.background-mode label { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 13px; }
.background-mode button { width: fit-content; min-height: 42px; }
.background-mode input { accent-color: var(--accent); }
.assessment-good { color: var(--accent-strong) !important; }
.assessment-review { color: #7a5b18 !important; }
.assessment-warning { color: var(--danger) !important; font-weight: 750; }
.assessment-neutral { color: var(--muted) !important; }
.file-item.file-verified span { color: var(--accent-strong); font-weight: 750; }
.file-item.file-error span { color: var(--danger); }
.file-item progress { width: 100%; height: 5px; overflow: hidden; accent-color: var(--accent); border: 0; border-radius: 999px; }
.service-notice { margin: 14px 0 0; padding: 15px 17px; border-left: 3px solid var(--accent); background: var(--surface-soft); line-height: 1.6; }

.customer-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-field { display: grid; gap: 8px; }
.form-field.wide { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 800; }
.form-field label span { color: var(--muted); font-weight: 500; }
.form-field input, .form-field textarea, .dialog-search input {
  width: 100%; min-height: 50px; padding: 12px 14px; resize: vertical;
  color: var(--ink); background: var(--surface); border: 1px solid #aebbb4; border-radius: var(--radius-control);
}
.field-error, .submit-error { min-height: 18px; margin: 0; color: var(--danger); font-size: 12px; }

.confirmation { display: grid; gap: 14px; }
.confirm-block { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); }
.confirm-block h3 { margin: 0 0 14px; font-size: 15px; }
.confirm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 24px; }
.confirm-grid span { display: block; color: var(--muted); font-size: 11px; }
.confirm-grid strong { display: block; margin-top: 4px; font-size: 14px; }
.confirm-files { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.confirm-files div { display: grid; gap: 4px; }
.confirm-files strong { overflow-wrap: anywhere; font-size: 13px; }
.confirm-files span { font-size: 12px; line-height: 1.5; }
.agreement { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 10px; cursor: pointer; }
.agreement input { width: 20px; height: 20px; accent-color: var(--accent); }

.mobile-action { display: none; }

dialog { color: var(--ink); background: var(--surface-strong); border: 1px solid var(--line); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(13, 26, 19, .48); backdrop-filter: blur(5px); }
.materials-dialog, .help-dialog { width: min(680px, calc(100% - 28px)); max-height: min(82dvh, 780px); padding: 0; border-radius: var(--radius-card); }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px; background: var(--surface-strong); border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin-bottom: 4px; font-size: 24px; }
.dialog-header p { margin: 0; color: var(--muted); font-size: 12px; }
.dialog-search { display: grid; gap: 7px; padding: 18px 22px 12px; }
.dialog-search label { font-size: 12px; font-weight: 750; }
.all-materials { padding: 6px 22px 28px; }
.material-row { position: relative; }
.material-row input { position: absolute; opacity: 0; }
.material-row label { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 68px; padding: 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.material-row input:checked + label { color: var(--accent-strong); background: var(--accent-soft); border-radius: 10px; }
.material-thumb { width: 46px; height: 46px; overflow: hidden; display: grid; place-items: center; color: var(--muted); background: var(--surface-soft); border-radius: 9px; font-weight: 850; }
.material-thumb img { height: 100%; object-fit: cover; }
.material-thumb.family-metallic { background: linear-gradient(135deg, #d6d1bd, #f1efe8 47%, #b7b29f); color: #514d40; }
.material-thumb.family-textured-paper { background: repeating-linear-gradient(45deg, var(--surface-soft), var(--surface-soft) 3px, color-mix(in srgb, var(--line) 72%, transparent) 4px); }
.material-thumb.family-transparent { background: linear-gradient(135deg, var(--surface-soft) 25%, transparent 25%) 0 0 / 12px 12px, linear-gradient(315deg, var(--surface-soft) 25%, transparent 25%) 0 0 / 12px 12px; }
.material-text strong, .material-text small { display: block; }
.material-text small { margin-top: 3px; color: var(--muted); }
.material-check { color: var(--accent); font-weight: 800; }
.help-dialog { padding: 0 0 22px; }
.help-dialog ol { display: grid; gap: 0; margin: 0; padding: 0 22px; list-style: none; }
.help-dialog li { display: grid; gap: 5px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.help-dialog li span { color: var(--muted); line-height: 1.6; }
.help-body { padding: 2px 22px 6px; }
.help-section h3 { margin: 20px 0 0; font-size: 14px; }
.help-dialog .help-section ol { padding: 0; }
.help-dialog .help-section li:last-child { border-bottom: 0; }
.success-dialog { width: min(430px, calc(100% - 32px)); padding: 36px; text-align: center; border-radius: var(--radius-card); }
.success-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 20px; color: var(--accent-strong); background: var(--accent-soft); border-radius: 50%; font-weight: 850; }
.success-dialog h2 { font-size: 30px; }
.success-dialog p { color: var(--muted); line-height: 1.65; }
.success-dialog .primary-button { width: 100%; margin-top: 10px; }
.success-link { display: grid; place-items: center; width: 100%; margin-top: 20px; text-decoration: none; }

.material-preview { position: relative; width: min(560px, calc(100% - 32px)); padding: 0; border-radius: var(--radius-card); }
.preview-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center;
  color: var(--ink); background: var(--surface-strong); border: 1px solid var(--line); border-radius: 50%;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.preview-media { display: grid; place-items: center; padding: 20px; background: var(--surface-soft); border-radius: var(--radius-card) var(--radius-card) 0 0; }
.preview-media img { max-width: 100%; max-height: 54dvh; object-fit: contain; border-radius: 8px; }
.preview-media .material-fallback { width: 100%; max-height: 54dvh; aspect-ratio: 1; border-radius: 8px; }
.preview-title { margin: 0; padding: 18px 22px 4px; font-size: 17px; font-weight: 800; }
.preview-note { margin: 0; padding: 6px 22px 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* 文字设计 */
.text-design { margin-top: 18px; }
#toggleTextDesign { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
#toggleTextDesign strong { font-weight: 800; }
#toggleTextDesign.is-open strong { color: var(--accent-strong); }
.text-design-panel { margin-top: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.td-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; }
.td-field { margin-bottom: 18px; }
.td-field > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.td-field > label span { color: var(--muted); font-weight: 400; }
.td-field input[type="text"] { width: 100%; padding: 12px 14px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-control); font-size: 15px; box-sizing: border-box; }
.td-fonts, .td-templates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.td-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; text-align: left; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-family: inherit; }
.td-chip span { font-size: 14px; font-weight: 750; }
.td-chip small { font-size: 11px; color: var(--muted); font-weight: 400; }
.td-chip.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.td-font-chip span { font-size: 17px; }
.td-font-chip.is-loading { cursor: wait; opacity: .72; }
.td-font-chip.is-loading::after { content: "加载字体…"; color: var(--accent-strong); font-size: 10px; }
.td-colors { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.td-swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.td-swatch.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.td-custom-color { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.td-custom-color input[type="color"] { width: 28px; height: 28px; padding: 0; border: none; border-radius: 6px; background: none; cursor: pointer; }
.td-preview { position: relative; display: grid; place-items: center; align-self: start; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 14px; }
.td-preview canvas { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow); }
.td-empty { position: absolute; color: var(--muted); font-size: 13px; text-align: center; padding: 0 20px; pointer-events: none; }
.td-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 680px) {
  .td-layout { grid-template-columns: 1fr; }
  .td-preview { order: -1; }
}

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr 280px; min-height: 340px; }
  .intro-visual { min-height: 340px; }
  .order-layout { grid-template-columns: 1fr; }
  .quote-column { display: none; }
  .material-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-action {
    position: fixed; inset: auto 0 0; z-index: 25; min-height: 78px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(138px, .72fr); align-items: center; gap: 16px;
    padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--surface-strong) 94%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(20px); box-shadow: 0 -18px 55px rgba(28, 55, 42, .1);
  }
  .mobile-action div span, .mobile-action div strong { display: block; }
  .mobile-action div span { margin-bottom: 3px; color: var(--muted); font-size: 11px; }
  .mobile-action div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 21px; }
  .mobile-action .primary-button { width: 100%; }
  .site-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}

@media (max-width: 680px) {
  .store-header { height: 62px; padding-inline: max(14px, env(safe-area-inset-left)); }
  .header-actions { gap: 12px; }
  .header-actions .header-link { font-size: 12px; }
  .announcement-bar { width: calc(100% - 24px); min-height: 40px; margin-top: 10px; border-radius: 14px; }
  .announcement-icon { flex-basis: 30px; font-size: 14px; }
  .announcement-item { font-size: 11px; }
  .announcement-toggle { flex-basis: 28px; width: 26px; height: 26px; }
  .store-shell { width: min(100% - 24px, 1180px); padding-top: 18px; }
  .intro { grid-template-columns: 1fr; min-height: 0; }
  .intro-copy { padding: 32px 24px 28px; }
  .eyebrow { margin-bottom: 12px; font-size: 10px; }
  h1 { margin-bottom: 14px; font-size: clamp(38px, 12vw, 52px); }
  .intro-copy > p:last-child { font-size: 14px; line-height: 1.7; }
  .material-strip { margin-top: 24px; gap: 7px; }
  .material-strip-label { width: 100%; margin: 0 0 2px; }
  .material-strip-item { padding-right: 10px; }
  .intro-visual { min-height: 0; aspect-ratio: 1.75; }
  .step-nav { top: 62px; margin: 14px 0; }
  .step-tab { min-height: 44px; gap: 5px; font-size: 12px; }
  .step-tab span { width: 19px; height: 19px; }
  .flow-step { padding: 28px 18px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: 29px; }
  .section-heading p { font-size: 13px; }
  .material-card-copy { min-height: 54px; padding: 10px; }
  .material-card-copy strong { font-size: 12px; }
  .option-group + .option-group { margin-top: 36px; }
  .choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quantity-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choice label { min-width: 0; padding: 0 8px; }
  #materialOptions.choice-row { grid-template-columns: 1fr; }
  #materialOptions .choice label { justify-content: flex-start; text-align: left; min-height: 54px; gap: 12px; }
  #materialOptions .choice label span { line-height: 1.4; white-space: normal; overflow-wrap: break-word; }
  .baseline-note { display: grid; gap: 5px; padding: 16px; }
  .baseline-note span { text-align: left; }
  .customer-form { grid-template-columns: 1fr; gap: 14px; }
  .form-field.wide { grid-column: auto; }
  .confirm-grid { grid-template-columns: 1fr; }
  .materials-dialog, .help-dialog { width: 100%; max-height: 88dvh; margin: auto 0 0; border-radius: var(--radius-card) var(--radius-card) 0 0; }
  .dialog-header { padding: 20px 18px; }
  .dialog-search { padding: 16px 18px 10px; }
  .all-materials { padding: 4px 18px calc(24px + env(safe-area-inset-bottom)); }
}

/* Sevensnail uses a light paper UI by design. Do not inherit the OS dark preference:
   the ordering flow contains warm-gray copy and material previews that lose contrast in forced dark mode. */
:root { color-scheme: light; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 2026-08-19:对话框过渡(状态转换动机) */
dialog[open] {
  animation: dialog-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialog-in {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  dialog[open] { animation: none; }
}

/* 2026-08-20:视觉升级补丁 —— 更少噪音，更清晰的层级与反馈 */
.header-link { position: relative; transition: color .25s ease; }
.header-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}
.header-link:hover { color: var(--event-strong); }
.header-link:hover::after { transform: scaleX(1); transform-origin: left; }

.material-card input:checked + label,
.product-card input:checked + label,
.choice input:checked + label { animation: selection-settle .32s cubic-bezier(.16, 1, .3, 1); }
@keyframes selection-settle { from { transform: scale(.985); } to { transform: scale(1); } }

.quote-card .primary-button:focus-visible { outline-color: rgba(215, 154, 118, .7); }
.quote-message:not(:empty) { padding: 10px 12px; border: 1px solid rgba(215, 154, 118, .22); border-radius: 10px; background: rgba(215, 154, 118, .08); }
.order-notice { box-shadow: inset 3px 0 0 rgba(240, 179, 87, .75); }

.form-field input, .form-field textarea, .dialog-search input, .td-field input[type="text"], .custom-size-inputs input {
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.form-field input:hover, .form-field textarea:hover, .dialog-search input:hover, .td-field input[type="text"]:hover, .custom-size-inputs input:hover { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
.form-field input:focus, .form-field textarea:focus, .dialog-search input:focus, .td-field input[type="text"]:focus, .custom-size-inputs input:focus {
  border-color: var(--accent); background: var(--surface-strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-soft) 68%, transparent);
}

.dialog-header, .quote-card, .intro, .flow-step { isolation: isolate; }
.material-preview .preview-close { transition: transform .25s ease, background .25s ease; }
.material-preview .preview-close:hover { transform: rotate(8deg); background: var(--event-soft); }

@media (prefers-reduced-motion: reduce) {
  .header-link::after { transition: none; }
  .material-card input:checked + label, .product-card input:checked + label, .choice input:checked + label { animation: none; }
}

/* 材质选择：两列并排，减少单行过长；弹窗内仍保持单列可读性。 */
.material-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#materialsDialog .material-list { display: block; }
.spec-options { display: grid; gap: 0; }
.spec-options .option-group { padding-bottom: 26px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.spec-options .option-group + .option-group { padding-top: 26px; }
@media (max-width: 680px) { .material-list { grid-template-columns: 1fr; } }

/* 2026-08-20:材质行对比度增强(用户反馈颜色浅) */
#materialOptions .material-row label {
  border-bottom-color: color-mix(in srgb, var(--line) 78%, transparent);
}

#materialOptions .material-thumb {
  width: 52px;
  height: 52px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

/* 2026-08-20:材质行文字对比增强 */
#materialOptions .material-text strong { font-size: 15px; color: var(--ink); }
#materialOptions .material-text small { font-size: 12px; color: #4c5751; }
#materialOptions .material-check { color: var(--accent-strong); }

/* 2026-08-20:材质预览浮层——点击位置弹出(非模态,不滚动页面) */
.material-preview[open] { position: fixed; z-index: 90; margin: 0; }

/* 图鉴大图浮层 */
.guide-dialog {
  width: min(92vw, 860px);
  max-height: 92dvh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: transparent;
  overflow: hidden;
}
.guide-dialog img { display: block; width: 100%; max-height: 92dvh; object-fit: contain; border-radius: var(--radius-card); background: var(--surface-strong); }
.guide-dialog .preview-close { top: 10px; right: 10px; }

/* 2026-08-20:价格刷新高亮(纯 CSS,不依赖动画引擎) */
.price-flash {
  animation: price-flash 0.6s ease-out;
}
@keyframes price-flash {
  0% { color: var(--accent-strong); background: var(--accent-soft); border-radius: 6px; }
  100% { color: inherit; background: transparent; }
}

/* 2026-08-20:省市区级联选择 */
#customerForm select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  cursor: pointer;
}
#customerForm select:disabled { color: var(--muted); background: var(--surface-soft); cursor: not-allowed; }
#customerForm select:focus { outline: 3px solid color-mix(in srgb, var(--accent) 24%, transparent); border-color: var(--accent); }

/* 2026-08-20:复购模式横幅 */
.reorder-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-card);
}
.reorder-banner strong { color: var(--accent-strong); font-size: 14px; white-space: nowrap; }
.reorder-banner span { color: var(--ink); font-size: 13px; line-height: 1.5; }
.reorder-cancel {
  margin-left: auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--muted); background: transparent; border: 0;
  font-size: 18px; cursor: pointer; border-radius: 50%;
}
.reorder-cancel:hover { background: var(--surface-soft); }

/* 2026-08-20:不干胶材质图鉴——按原规格直接展示(用户要求,不做点击缩略) */
.guide-section {
  margin-top: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.guide-heading { margin-bottom: 14px; }
.guide-heading h3 { margin: 0 0 6px; color: var(--ink); font-size: 17px; font-weight: 750; }
.guide-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.guide-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--surface-strong);
}

/* 2026-08-20:上传文件自动尺寸建议 */
.size-suggestion {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, #b45309) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #b45309) 30%, transparent);
  color: var(--text-strong, #292524);
  font-size: 13.5px;
  line-height: 1.55;
}

/* 2026-08-20:裁切与尺寸预览(形状模拟效果图) */
.artwork-preview-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 12px;
  background: var(--card, #ffffff);
}
.artwork-preview-box h3, .confirm-artwork h3 { margin: 0 0 6px; font-size: 15px; }
.preview-help { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: var(--muted-foreground, #78716c); }
.preview-help strong { color: #dc2626; }
.artwork-preview-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #f5f5f4;
}
.artwork-preview-notice { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: #b45309; }
.artwork-controls { display: grid; gap: 10px; margin-top: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); }
.artwork-controls label { display: grid; grid-template-columns: 76px 1fr 42px; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.artwork-controls input[type="range"] { width: 100%; accent-color: var(--accent); }
.artwork-controls output { color: var(--accent-strong); text-align: right; font-variant-numeric: tabular-nums; }
.confirm-artwork { margin-top: 14px; }
@media (max-width: 680px) { .artwork-controls label { grid-template-columns: 70px 1fr 38px; gap: 7px; } }

/* 2026-08-22:底色处理(更换底色) */
.recolor-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  align-items: center;
}
.recolor-swatch {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 2px solid #d6d3d1;
  font-size: 11px;
  color: #57534e;
  cursor: pointer;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.recolor-swatch.is-selected { border-color: #b4552d; box-shadow: 0 0 0 2px rgba(180, 85, 45, 0.25); }
.recolor-custom { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #57534e; }
.recolor-custom input[type="color"] { width: 34px; height: 34px; border: 1px solid #d6d3d1; border-radius: 8px; padding: 2px; cursor: pointer; }

/* 文字设计背景色 */
.td-bg-swatch { border: 2px solid #d6d3d1; }
