/* 视觉约定：照片是主角，鸢尾紫只用于操作；手机上一屏只保留一个主要动作。 */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #29243d;
  background: #f7f8fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --paper: #fff;
  --page: #f7f8fc;
  --ink: #29243d;
  --muted: #6a6378;
  --purple: #6955d9;
  --purple-dark: #5743c3;
  --lilac: #eeebfb;
  --mint: #dcefe5;
  --line: #e8e7ef;
  --display: "STKaiti", "Kaiti SC", "KaiTi", "STFangsong", "Songti SC", serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tool-height: calc(56px + var(--safe-bottom));
}
* { box-sizing: border-box; }
html { touch-action: manipulation; scroll-behavior: smooth; scroll-padding-bottom: 180px; }
body { margin: 0; min-width: 320px; min-height: 100svh; padding-bottom: calc(var(--tool-height) + 24px); }
button, input { font: inherit; }
button, label[role="button"], a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
button, input, a, label[role="button"] { outline-offset: 4px; }
:focus-visible { outline: 3px solid #b4a6f1; }
button { border: 0; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: 28px; font-weight: 650; line-height: 1.3; letter-spacing: -.8px; }
h2 { font-size: 18px; font-weight: 650; line-height: 1.4; }
p { line-height: 1.65; }
.icon { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
.mobile-only { display: inline; }
.desktop-break { display: none; }
.site-header { display: flex; align-items: center; width: min(100% - 40px, 1120px); height: 76px; margin: 0 auto; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 750; text-decoration: none; letter-spacing: -.7px; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 33px; height: 36px; color: var(--purple); transform: rotate(-7deg); }
.brand-icon .icon { width: 31px; height: 31px; stroke-width: 1.5; }
.brand-light { margin-left: 4px; font-weight: 450; }
.open-label { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.open-label i, .status-pill i { width: 6px; height: 6px; background: #54a27a; border-radius: 50%; }
.header-title { font-size: 16px; font-weight: 600; }
.header-order { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 8px 0 8px 10px; margin-left: auto; color: var(--purple); background: transparent; font-size: 12px; white-space: nowrap; }
.header-order .icon { width: 17px; height: 17px; }
.icon-button { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; color: var(--ink); border-radius: 50%; background: transparent; }
.icon-button:hover { background: var(--lilac); }
.icon-button.subtle { color: var(--muted); }
.customer-main { width: min(100% - 40px, 1120px); margin: 0 auto; }
.welcome { display: flex; flex-direction: column; padding-top: 14px; }
.welcome-copy { position: relative; z-index: 1; text-align: center; }
.size-pill { display: inline-flex; gap: 12px; align-items: center; padding: 6px 11px; color: #6e6593; background: var(--lilac); font-size: 12px; border-radius: 30px; }
.size-pill span { padding-left: 12px; border-left: 1px solid #d5ceee; font-weight: 650; }
.welcome h1 { margin-top: 15px; font-family: var(--display); font-size: 47px; font-weight: 500; line-height: 1.23; letter-spacing: 0; }
.welcome-copy > p { margin-top: 13px; color: var(--muted); font-size: 14px; }
.hero-actions { display: flex; flex-direction: column; gap: 5px; width: min(100%, 290px); margin: 17px auto 0; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; gap: 9px; padding: 11px 20px; border: 1px solid transparent; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer; }
.button .icon { width: 20px; height: 20px; }
.button.primary { color: white; background: var(--purple); box-shadow: 0 4px 8px #6955d914; }
.button.primary:hover { background: var(--purple-dark); }
.button.secondary { background: white; border-color: var(--line); color: #5e566f; }
.button.secondary:hover { border-color: #c9c0ee; background: #fbfaff; }
.button.tint { color: var(--purple); background: var(--lilac); }
.button.plain { color: var(--muted); background: transparent; }
.button.small { min-height: 44px; padding: 10px 13px; font-size: 13px; border-radius: 10px; }
.button.wide { width: 100%; }
[data-file-label] { overflow: hidden; }
[data-file-label] input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; clip-path: inset(50%); }
.demo-link { display: inline-flex; min-height: 44px; justify-content: center; align-items: center; padding: 9px 8px; color: var(--muted); background: transparent; font-size: 12px; text-underline-offset: 4px; }
.demo-link:hover { color: var(--purple); text-decoration: underline; }
.welcome-facts { display: flex; justify-content: center; gap: 24px; margin-top: 2px; color: var(--muted); font-size: 12px; }
.welcome-facts > span { display: inline-flex; gap: 5px; align-items: center; }
.welcome-facts .icon { width: 15px; height: 15px; }
.photo-collage { position: relative; width: 100%; max-width: 440px; height: 286px; margin: 12px auto 0; }
.photo-collage::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; top: 13px; left: calc(50% - 110px); background: #edebf8; }
.collage-photo { position: absolute; width: 47%; max-width: 185px; padding: 8px 8px 0; background: white; box-shadow: 0 9px 22px #32254813, 0 0 0 1px #32254805; }
.collage-photo img { display: block; width: 100%; height: 175px; object-fit: cover; }
.collage-photo figcaption { display: flex; align-items: center; justify-content: center; min-height: 32px; color: var(--muted); font: 14px var(--display); }
.photo-left { left: 7%; top: 18px; transform: rotate(-11deg); }
.photo-right { right: 7%; top: 37px; transform: rotate(9deg); }
.collage-caption { position: absolute; left: 0; bottom: 7px; width: 100%; text-align: center; font: 15px var(--display); color: var(--muted); }
.details-strip { display: grid; gap: 21px; padding: 26px 16px; margin-top: 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.details-strip > div { display: flex; align-items: center; gap: 13px; }
.detail-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 12px; background: #f0edf9; color: var(--muted); }
.details-strip strong, .details-strip small { display: block; }
.details-strip strong { color: #5d546e; font-size: 14px; font-weight: 550; }
.details-strip small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.how-it-works { padding: 38px 0 10px; text-align: center; }
.how-it-works h2 { color: #655b75; font: 24px/1.5 var(--display); }
.how-it-works ol { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; margin: 22px auto 0; list-style: none; max-width: 400px; }
.how-it-works li { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.how-it-works li > span { width: 23px; height: 23px; display: grid; place-items: center; color: var(--muted); background: #eeebf6; border-radius: 50%; font-size: 12px; }
.site-footer { width: min(100% - 40px, 1120px); display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 37px auto 0; padding: 21px 0; color: var(--muted); font-size: 12px; }
.site-footer > span:first-child { color: var(--muted); font-family: var(--display); font-size: 16px; }
.section-kicker { color: var(--muted); font-size: 12px; line-height: 1.5; }
.has-photos { padding-top: 12px; padding-bottom: 20px; }
.album-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.album-heading h1 { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 27px; }
.album-heading h1 > span { color: var(--muted); font-size: 16px; font-weight: 450; }
.album-heading > .button { padding: 10px; }
.album-heading > .button .icon { width: 17px; }
.selection-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 8px; color: var(--muted); font-size: 12px; }
.selection-toolbar > button { min-height: 44px; padding: 10px 0 10px 15px; color: var(--purple); background: transparent; font-size: 13px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px 12px; }
.photo-card { position: relative; min-width: 0; background: white; border-radius: 14px; padding: 6px; border: 1.5px solid transparent; }
.photo-card.is-selected { border-color: #8e7de1; }
.photo-toggle { position: relative; display: block; width: 100%; aspect-ratio: 100 / 132; padding: 0; overflow: hidden; border-radius: 9px; background: #eae8f0; }
.photo-toggle img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-tick { display: grid; place-items: center; position: absolute; bottom: 8px; right: 8px; width: 25px; height: 25px; border: 1.5px solid white; border-radius: 50%; background: #ffffffc9; }
.is-selected .photo-tick { color: white; background: var(--purple); border-color: white; }
.photo-tick .icon { width: 16px; height: 16px; }
.photo-card-bottom { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 3px; padding: 0 0 0 4px; color: var(--muted); font-size: 12px; }
.photo-card-bottom button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 6px 4px 6px 8px; color: #7765b5; background: transparent; font-size: 12px; }
.photo-card-bottom button .icon { width: 15px; height: 15px; }
.remove-photo { position: absolute; top: 7px; left: 7px; width: 44px; height: 44px; display: grid; place-items: center; padding: 10px; color: white; background: transparent; }
.remove-photo .icon { width: 22px; height: 22px; padding: 3px; background: #2c24435c; border-radius: 50%; }
.add-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; min-height: 230px; gap: 9px; position: relative; color: var(--muted); background: #f0edf9; border: 1px dashed #d6ccec; border-radius: 14px; cursor: pointer; font-size: 13px; }
.add-tile .icon { width: 27px; height: 27px; stroke-width: 1.4; }
.crop-hint { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 20px 0; color: var(--muted); font-size: 12px; }
.crop-hint .icon { width: 15px; height: 15px; }
.order-summary { display: none; }
.checkout-dock { position: fixed; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; left: 0; right: 0; bottom: var(--tool-height); min-height: 83px; padding: 13px 20px; background: #fffffff5; border-top: 1px solid var(--line); box-shadow: 0 -5px 25px #32254804; backdrop-filter: blur(12px); }
.checkout-dock > div { display: grid; gap: 3px; }
.checkout-dock small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.checkout-dock strong { color: #453560; font-size: 24px; line-height: 1.15; font-weight: 650; }
.checkout-dock .button { min-width: 191px; padding-left: 17px; padding-right: 17px; }
body:has(.checkout-dock) { padding-bottom: calc(var(--tool-height) + 125px); }
.prototype-bar { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: var(--tool-height); height: var(--tool-height); padding: 3px 10px calc(3px + var(--safe-bottom)); border-top: 1px solid #e0dceb; background: #edeaf3; color: var(--muted); }
.prototype-bar > button { flex: 0 0 auto; min-width: 46px; min-height: 44px; padding: 8px; background: transparent; font-size: 12px; }
.demo-badge { flex: 0 0 auto; padding: 4px 5px; color: var(--muted); font-size: 12px; }
.variant-nav { display: flex; justify-content: center; align-items: center; flex: 1 1 auto; max-width: 250px; gap: 0; }
.variant-nav button { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; color: var(--muted); }
.variant-nav .icon { width: 16px; height: 16px; }
.variant-nav > span { color: var(--muted); font-size: 12px; white-space: nowrap; text-align: center; }
.variant-nav b { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(var(--tool-height) + 111px); max-width: min(340px, 86vw); padding: 12px 18px; transform: translate(-50%, 12px); opacity: 0; visibility: hidden; background: #3d334e; color: white; border-radius: 12px; box-shadow: 0 5px 30px #29243d14; font-size: 13px; line-height: 1.55; text-align: center; pointer-events: none; transition: opacity .18s, transform .18s, visibility .18s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); visibility: visible; }

/* 大图底片与清单方案各自拥有不同的信息结构。 */
.focus-stage { min-width: 0; }
.focus-image { position: relative; min-height: 300px; height: min(48svh, 430px); padding: 22px; display: flex; align-items: center; justify-content: center; background: #eeebf4; border-radius: 14px; overflow: hidden; }
.focus-image > img { display: block; width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; border: 7px solid white; box-shadow: 0 8px 18px #48315c12; }
.paper-size { position: absolute; bottom: 9px; right: 12px; color: var(--muted); font-size: 12px; }
.focus-controls { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.focus-controls .button { flex: 1; }
.filmstrip { display: flex; align-items: center; gap: 9px; padding: 20px 1px 9px; overflow-x: auto; scrollbar-width: thin; }
.film-item { position: relative; padding: 3px; flex: 0 0 65px; width: 65px; height: 83px; background: transparent; border: 2px solid transparent; border-radius: 9px; }
.film-item.active { border-color: var(--purple); background: white; }
.film-item img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 4px; background: var(--lilac); }
.film-item > span { position: absolute; bottom: 5px; right: 5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--purple); color: white; border: 1px solid white; }
.film-item > span .icon { width: 12px; height: 12px; }
.focus-counter { padding-top: 3px; text-align: center; color: var(--muted); font-size: 12px; }
.photo-list { padding: 0 0 8px; }
.photo-list-row { display: flex; align-items: center; min-width: 0; gap: 1px; min-height: 116px; border-bottom: 1px solid var(--line); }
.list-select { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; min-height: 110px; padding: 8px 0; text-align: left; background: transparent; }
.list-check { flex: 0 0 21px; width: 21px; height: 21px; border: 1.5px solid #cfc6df; border-radius: 50%; }
.list-check.checked { color: white; background: var(--purple); border-color: var(--purple); }
.list-check .icon { width: 18px; height: 18px; }
.list-select > img { width: 60px; height: 83px; object-fit: contain; background: var(--lilac); border: 4px solid white; box-shadow: 0 2px 9px #3e31500b; }
.list-select > span:last-child { min-width: 0; }
.list-select strong, .list-select small { display: block; }
.list-select strong { color: #51455f; font-size: 14px; font-weight: 550; }
.list-select small { overflow: hidden; text-overflow: ellipsis; max-width: 115px; white-space: nowrap; margin-top: 6px; color: var(--muted); font-size: 12px; }
.photo-list-row .icon-button { width: 44px; flex-basis: 44px; padding: 10px; }
.photo-list-row .icon-button .icon { width: 19px; height: 19px; }

/* 付款页以相纸实际预览为重点，收据与打印进度使用不同布局表达层级。 */
.checkout-main { width: min(100% - 40px, 650px); margin: 17px auto 0; }
.page-intro h1 { font-family: var(--display); font-size: 32px; font-weight: 500; letter-spacing: 0; }
.page-intro p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.checkout-photo-grid { display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 12px; margin: 22px 0 26px; }
.checkout-photo-grid > button { display: flex; flex-direction: column; align-items: center; padding: 8px 8px 0; background: white; border-radius: 3px; box-shadow: 0 3px 13px #41314c08; }
.checkout-photo-grid img { display: block; width: 100%; height: auto; object-fit: contain; background: #f5f3f8; }
.checkout-photo-grid button > span { display: flex; gap: 5px; align-items: center; justify-content: center; min-height: 44px; color: var(--muted); font-size: 12px; }
.checkout-photo-grid button .icon { width: 15px; height: 15px; }
.receipt { padding: 21px 19px 9px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.receipt-title { display: flex; justify-content: space-between; padding-bottom: 17px; margin-bottom: 3px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.receipt-title > span:first-child { color: #655b76; }
.receipt-title > span:last-child { color: var(--muted); }
dl { margin: 0; }
dl > div { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 44px; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; color: #5b506d; }
dl > div.total-line { padding: 15px 0 16px; border-bottom: 1px solid #f0edf6; }
.total-line dt { color: #5d506c; }
.total-line dd { color: #5b43b5; font-size: 23px; font-weight: 650; }
.payment-choice { display: flex; align-items: center; gap: 8px; min-height: 71px; color: #5d546a; font-size: 14px; }
.wechat-icon { color: #237a4c; }
.wechat-icon .icon { width: 24px; height: 24px; }
.payment-choice > span:last-child { margin-left: auto; max-width: 130px; color: var(--muted); font-size: 12px; text-align: right; }
.checkout-privacy { display: flex; align-items: flex-start; justify-content: center; gap: 5px; padding: 17px 0 12px; color: var(--muted); font-size: 12px; }
.checkout-privacy .icon { width: 14px; height: 18px; }
.order-main { max-width: 460px; width: min(100% - 56px, 460px); margin: 25px auto 0; text-align: center; }
.order-illustration { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 25px; background: #eeebfb; color: var(--purple); }
.order-illustration .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.order-illustration.ready { background: #e0f1e7; color: #397653; }
.order-illustration.failed { color: #9b5b45; background: #fbebe4; }
.order-illustration.failed > span { font-size: 34px; font-weight: 500; }
.order-main > h1 { font-size: 26px; }
.order-description { max-width: 300px; margin: 11px auto 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.print-summary { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.progress-steps { display: flex; justify-content: space-between; padding: 0; margin: 29px 0 23px; list-style: none; }
.progress-steps li { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 9px; }
.progress-steps li::after { content: ''; position: absolute; top: 12px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 1px; background: #e4deee; }
.progress-steps li:last-child::after { display: none; }
.progress-steps li > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--muted); background: #eeebf3; font-size: 12px; }
.progress-steps li > span .icon { width: 14px; height: 14px; }
.progress-steps strong { color: var(--muted); font-size: 12px; font-weight: 450; }
.progress-steps li.done > span { color: white; background: var(--purple); }
.progress-steps li.done strong { color: var(--muted); }
.order-info { display: flex; align-items: flex-start; justify-content: center; gap: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.order-info .icon { width: 14px; height: 18px; }
.order-page-actions { display: grid; gap: 6px; margin-top: 25px; }

/* 工作台移动端直接展示订单动作，无需横向表格。 */
.admin-main { width: min(100% - 40px, 860px); margin: 17px auto 0; }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-title h1 { margin-top: 6px; font-size: 26px; }
.status-pill { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 9px 11px; background: #e8f3ed; color: #397653; border-radius: 30px; font-size: 12px; white-space: nowrap; }
.status-pill.offline { color: #806146; background: #f5eee5; }
.status-pill.offline i { background: #bd9c7f; }
.device-panel { display: flex; align-items: center; gap: 12px; margin-top: 23px; padding: 16px; border-radius: 15px; background: #eeebf6; }
.device-visual { display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 45px; color: var(--purple); background: #fbfaff; border-radius: 12px; }
.device-visual .icon { width: 26px; height: 26px; stroke-width: 1.4; }
.device-panel > div { flex: 1; min-width: 0; }
.device-panel strong { color: #77618d; font-size: 14px; font-weight: 550; }
.device-panel p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.device-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #7db393; }
.device-dot.offline { background: #b9a291; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px 0 22px; }
.admin-stats > div { text-align: center; }
.admin-stats > div + div { border-left: 1px solid var(--line); }
.admin-stats small { display: block; color: var(--muted); font-size: 12px; }
.admin-stats strong { display: block; margin-top: 7px; color: #6c547e; font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; }
.admin-stats em { color: var(--muted); font-size: 12px; font-style: normal; padding: 0 4px; }
.queue-heading { display: flex; align-items: center; justify-content: space-between; margin: 5px 0 14px; }
.filter-tabs { display: inline-flex; padding: 3px; background: #eeebf5; border-radius: 30px; }
.filter-tabs button { min-height: 44px; min-width: 58px; padding: 8px 12px; color: var(--muted); background: transparent; border-radius: 20px; font-size: 12px; }
.filter-tabs button.active { color: #85639e; background: #fff; box-shadow: 0 2px 7px #533f6e06; }
.order-list { display: grid; gap: 13px; }
.admin-order { padding: 17px; border: 1px solid #ebe5f0; border-radius: 15px; background: white; }
.admin-order.attention { border-color: #ead2c7; }
.admin-order-top { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.admin-order-top > div { display: flex; align-items: center; gap: 11px; }
.admin-order-top strong { color: #765b87; font-size: 21px; font-weight: 550; }
.admin-order-top small { color: var(--muted); font-size: 12px; }
.order-badge { display: inline-flex; justify-content: center; align-items: center; min-height: 27px; padding: 4px 8px; border-radius: 6px; color: var(--purple); background: #f2edf8; font-size: 12px; }
.order-badge.ready { color: #397653; background: #eaf5ee; }
.order-badge.failed { color: #9b5b45; background: #fbefe5; }
.order-badge.wait { color: #7c652c; background: #f8f2df; }
.order-badge.printing { color: var(--purple); background: #f0eaf9; }
.order-badge.muted { color: var(--muted); background: #f2eef6; }
.admin-order-details { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px; color: var(--muted); font-size: 13px; }
.admin-order-details > span:last-child { color: var(--muted); font-size: 12px; }
.dot-divider { margin: 0 8px; color: var(--muted); }
.admin-order-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #f4eff6; }
.admin-order-actions .button { min-width: 95px; }
.order-error { margin-top: 12px; padding: 8px 10px; color: #8b6242; background: #fcf5ee; border-radius: 7px; font-size: 12px; }
.finished-label { min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: 12px; }
.admin-footnote { margin: 20px 8px 0; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.8; }
.empty-state { padding: 50px 20px; color: var(--muted); text-align: center; }
.empty-state > .icon { width: 38px; height: 38px; margin-bottom: 13px; }
.empty-state h3 { color: var(--muted); font-size: 16px; font-weight: 500; }
.empty-state p { margin-top: 8px; font-size: 13px; }
.login-main { width: min(100% - 56px, 350px); margin: 65px auto 0; text-align: center; }
.login-symbol { display: grid; place-items: center; width: 65px; height: 65px; margin: 0 auto 21px; background: var(--lilac); color: var(--purple); border-radius: 20px; }
.login-symbol .icon { width: 29px; height: 29px; }
.login-main h1 { font-size: 27px; }
.login-main > p { margin-top: 9px; color: var(--muted); font-size: 14px; }
.login-main form { margin-top: 32px; text-align: left; }
.login-main form > label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 13px; }
input[type="password"], input[type="number"] { width: 100%; min-height: 51px; padding: 12px 14px; border: 1px solid #e5dcee; border-radius: 10px; background: white; color: #705982; font-size: 16px; }
input::placeholder { color: var(--muted); }
.field-error { min-height: 26px; margin-top: 8px; color: #9b5b45; font-size: 12px; }
.login-main .login-hint { margin-top: 20px; font-size: 12px; color: var(--muted); }

/* 原生弹层保留焦点陷阱，画布限定在手机可见区域。 */
.dialog { width: min(100% - 28px, 460px); max-height: calc(100svh - 28px); padding: 20px; margin: auto; overflow-y: auto; color: var(--ink); background: #fff; border: 0; border-radius: 20px; box-shadow: 0 24px 100px #2d1d4830; }
.dialog::backdrop { background: #34234575; backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.dialog-header h2 { color: #6d527e; font-size: 20px; }
.dialog-header > .icon-button { margin: -7px -8px -7px 0; color: var(--muted); }
.dialog-description { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.crop-stage { display: flex; align-items: center; justify-content: center; min-height: 230px; height: min(37svh, 310px); padding: 13px; margin-top: 17px; background: #f0ecf6; border-radius: 12px; }
#crop-canvas { display: block; width: auto; height: 100%; max-width: 100%; max-height: 100%; aspect-ratio: 100 / 148; object-fit: contain; box-shadow: 0 3px 14px #553c6b0c; }
#crop-canvas.landscape { width: 100%; height: auto; aspect-ratio: 148 / 100; }
.crop-orientation { display: flex; justify-content: center; gap: 0; width: 160px; padding: 3px; margin: 15px auto; border-radius: 25px; background: #f1edf7; }
.crop-orientation button { min-height: 44px; flex: 1; padding: 8px 15px; background: transparent; color: var(--muted); border-radius: 22px; font-size: 13px; }
.crop-orientation button.active { color: var(--purple); background: white; }
.crop-sliders { display: grid; gap: 0; margin-top: 2px; }
.crop-sliders label { display: flex; align-items: center; min-height: 44px; gap: 17px; color: var(--muted); font-size: 12px; }
.crop-sliders label > span { flex: 0 0 58px; }
.crop-sliders input { width: 100%; height: 44px; padding: 0; accent-color: var(--purple); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.dialog-actions > .button { flex: 1; }
.dialog .helper { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.field-label { display: block; margin: 22px 0 10px; color: var(--muted); font-size: 13px; }

@media (min-width: 700px) {
  .site-header { height: 90px; }
  .brand { font-size: 22px; }
  .brand-icon { margin-right: 2px; }
  .open-label { font-size: 13px; }
  .customer-main { width: min(100% - 64px, 1120px); }
  .welcome { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 10px; min-height: 570px; padding: 25px 0 40px; }
  .welcome-copy { text-align: left; padding-left: 10px; }
  .welcome h1 { font-size: clamp(48px, 5.1vw, 66px); margin-top: 24px; line-height: 1.25; }
  .welcome-copy > p { margin-top: 23px; font-size: 16px; line-height: 1.8; }
  .desktop-break { display: inline; }
  .hero-actions { width: 245px; margin: 26px 0 0; }
  .hero-actions > .button { min-height: 55px; }
  .hero-actions .demo-link { justify-content: flex-start; padding-left: 0; }
  .welcome-facts { justify-content: flex-start; gap: 25px; margin-top: 9px; }
  .photo-collage { height: 430px; max-width: 530px; margin: 0; }
  .photo-collage::before { width: 320px; height: 320px; top: 40px; left: calc(50% - 160px); }
  .collage-photo { width: 47%; max-width: 228px; padding: 11px 11px 0; }
  .collage-photo img { height: 272px; }
  .collage-photo figcaption { min-height: 43px; font-size: 16px; }
  .photo-left { top: 25px; left: 4%; }
  .photo-right { top: 69px; right: 1%; }
  .collage-caption { bottom: 9px; font-size: 18px; }
  .details-strip { grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 0; padding: 32px 9px; }
  .details-strip > div { gap: 10px; }
  .details-strip strong { font-size: 14px; }
  .details-strip small { font-size: 12px; }
  .detail-icon { width: 41px; height: 41px; flex-basis: 41px; }
  .how-it-works { display: flex; align-items: center; justify-content: space-between; padding: 50px 5px 15px; text-align: left; }
  .how-it-works h2 { font-size: 27px; }
  .mobile-only { display: none; }
  .how-it-works ol { width: 360px; margin: 0 0 0 20px; }
  .site-footer { flex-direction: row; justify-content: space-between; width: min(100% - 64px, 1120px); margin-top: 40px; border-top: 1px solid var(--line); }
  .has-photos { padding-top: 35px; }
  .album-heading { margin-bottom: 26px; }
  .album-heading h1 { font-size: 32px; }
  .album-heading > .button { padding-left: 17px; padding-right: 17px; }
  .album-layout, .focus-layout, .list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 35px; align-items: start; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
  .photo-card-bottom { font-size: 12px; }
  .add-tile { min-height: 0; aspect-ratio: 100 / 165; }
  .order-summary { display: block; position: sticky; top: 24px; padding: 23px; background: white; border: 1px solid var(--line); border-radius: 18px; }
  .order-summary h2 { color: #7b658f; font-size: 18px; }
  .summary-stack { display: flex; min-height: 120px; align-items: center; padding: 17px 0; }
  .summary-stack img { width: 47px; height: 68px; margin-left: -8px; object-fit: contain; background: var(--lilac); border: 3px solid white; box-shadow: 0 4px 12px #40305508; transform: rotate(4deg); }
  .summary-stack img:first-child { margin-left: 0; transform: rotate(-7deg); }
  .summary-stack b { color: var(--muted); font-size: 13px; margin-left: 10px; }
  .order-summary dl > div { font-size: 13px; }
  .order-summary .total-line { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 10px; padding-top: 19px; padding-bottom: 20px; }
  .order-summary .button { padding-left: 12px; padding-right: 12px; font-size: 14px; }
  .order-summary .helper { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
  .order-summary .helper .icon { width: 13px; height: 13px; }
  .checkout-dock:not(.confirm-dock) { display: flex; }
  body:has(.checkout-dock:not(.confirm-dock)) { padding-bottom: calc(108px + var(--safe-bottom)); }
  .confirm-dock { left: calc(50% - 335px); right: auto; width: 670px; bottom: calc(var(--tool-height) + 22px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 5px 20px #41294c08; padding: 15px 24px; }
  .prototype-bar { left: 50%; right: auto; transform: translateX(-50%); width: 440px; bottom: 12px; height: 52px; min-height: 52px; padding: 3px 10px; border: 1px solid #e2d9eb; border-radius: 12px; box-shadow: 0 4px 25px #3c254f0c; }
  .variant-nav { max-width: none; }
  .focus-image { height: 480px; }
  .focus-controls { max-width: 360px; margin-left: auto; margin-right: auto; }
  .filmstrip { justify-content: center; }
  .checkout-main { padding-top: 20px; }
  .checkout-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; }
  .checkout-photo-grid img { max-height: 260px; }
  .photo-list-row { min-height: 130px; }
  .list-select { min-height: 120px; gap: 17px; }
  .list-select > img { width: 66px; height: 96px; }
  .list-select strong { font-size: 16px; }
  .list-select small { max-width: 230px; font-size: 13px; }
  .photo-list-row .icon-button { width: 44px; flex-basis: 44px; }
  .order-main { margin-top: 45px; }
  .admin-main { margin-top: 25px; }
  .admin-title h1 { font-size: 32px; }
  .device-panel { padding: 21px; }
  .device-panel p { font-size: 13px; }
  .admin-stats { max-width: 560px; margin: 0 auto; padding: 33px 0; }
  .admin-stats strong { font-size: 34px; }
  .order-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .admin-order { padding: 21px; }
  .dialog { max-height: calc(100svh - 60px); padding: 26px; border-radius: 22px; }
  .crop-stage { height: min(40svh, 350px); }
}
@media (min-width: 1050px) {
  .welcome-copy { padding-left: 50px; }
  .photo-collage { margin-left: 15px; }
  .details-strip { padding-left: 35px; padding-right: 35px; }
  .details-strip strong { font-size: 15px; }
  .details-strip small { font-size: 13px; }
  .album-layout, .focus-layout, .list-layout { gap: 55px; }
}
@media (max-width: 374px) {
  .site-header { width: calc(100% - 32px); }
  .brand { font-size: 17px; gap: 4px; }
  .brand-icon { width: 29px; }
  .open-label { font-size: 12px; gap: 4px; }
  .customer-main { width: calc(100% - 32px); }
  .welcome h1 { font-size: 43px; }
  .photo-collage { height: 266px; }
  .collage-photo img { height: 155px; }
  .prototype-bar { gap: 0; padding-left: 2px; padding-right: 2px; }
  .prototype-bar > button { min-width: 44px; padding: 5px; }
  .demo-badge { padding: 4px 2px; }
  .variant-nav button { width: 44px; }
  .variant-nav b { margin-left: 2px; }
  .checkout-dock { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .checkout-dock .button { min-width: 180px; padding-left: 13px; padding-right: 13px; font-size: 14px; }
  .photo-card-bottom { padding-left: 0; }
  .photo-card-bottom button { padding-left: 4px; gap: 2px; }
}
@media (max-height: 740px) and (max-width: 699px) {
  .crop-stage { min-height: 160px; height: 28svh; }
  .crop-dialog { padding: 16px; }
  .crop-dialog .dialog-description { margin-top: 4px; }
  .crop-dialog .crop-orientation { margin-top: 10px; margin-bottom: 6px; }
  .crop-dialog .dialog-actions { margin-top: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { touch-action: manipulation; scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.admin-photo-strip { display: flex; gap: 6px; align-items: center; margin: 14px 0; }
.admin-photo-strip img { width: 40px; height: 56px; object-fit: contain; background: var(--lilac); border: 2px solid white; border-radius: 4px; }
.admin-photo-strip > span { color: var(--muted); font-size: 12px; }
/* 正式版本沿用已选定的手机视觉，取消原型工具条的底部占位。 */
:root { --tool-height: 0px; }
body { padding-bottom: calc(24px + var(--safe-bottom)); }
body.with-dock { padding-bottom: calc(108px + var(--safe-bottom)); }
.checkout-dock { bottom: 0; padding-bottom: calc(14px + var(--safe-bottom)); }
.loading { display: grid; min-height: 70svh; place-items: center; color: var(--muted); }
.file-picker { overflow: hidden; position: relative; }
.file-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-picker:focus-within { outline: 3px solid #b4a6f1; outline-offset: 4px; }
.file-picker.disabled { opacity: .45; }
.hero-actions .helper { margin: 8px 0; font-size: 12px; }
.message-banner { position: relative; padding: 12px 44px 12px 20px; background: var(--lilac); color: var(--purple-dark); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.message-banner.error { background: #f9e9e9; color: #9a3434; }
.message-banner button { position: absolute; top: 0; right: 0; width: 44px; height: 44px; background: transparent; font-size: 23px; color: inherit; }
.login-main { width: min(100% - 40px, 380px); margin: 50px auto; }
.login-main h1 { font: 29px/1.5 var(--display); margin: 20px 0 10px; }
.login-main p { color: var(--muted); font-size: 14px; }
.login-main form { margin-top: 28px; }
.login-main label { display: block; margin-bottom: 8px; }
.login-main input { width: 100%; min-height: 50px; margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.admin-main { width: min(100% - 40px, 900px); margin: 20px auto; }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.admin-title h1 { margin-top: 6px; }
.admin-settings { display: flex; gap: 24px; justify-content: space-between; align-items: center; margin: 26px 0; padding: 22px 0; border-block: 1px solid var(--line); }
.admin-settings label { font-size: 14px; }
.price-control { display: flex; gap: 10px; margin-top: 8px; }
.price-control input { width: 110px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.admin-hint { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.admin-orders { display: grid; gap: 18px; }
.admin-order { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.admin-order-header { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 10px; }
.admin-order > p { font-size: 14px; color: var(--muted); }
.admin-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; }
.admin-thumbs img { flex: 0 0 auto; width: 66px; height: 88px; object-fit: contain; background: var(--page); border-radius: 5px; }
.admin-order-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.empty-orders { padding: 45px 0; text-align: center; color: var(--muted); }
.empty-orders p { margin-top: 10px; }
.order-time { margin-top: 24px; }
.crop-sliders { display: grid; gap: 8px; padding: 12px 0; }
.crop-sliders label { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; font-size: 13px; }
.crop-sliders input { width: 100%; accent-color: var(--purple); }
.orientation-tabs { display: flex; justify-content: center; gap: 8px; margin: 12px 0; }
.orientation-tabs button { min-width: 80px; min-height: 40px; border-radius: 8px; background: var(--page); }
.orientation-tabs button.active { color: white; background: var(--purple); }
.crop-stage { height: min(39svh, 400px); display: grid; place-items: center; background: #eeedf4; padding: 10px; }
.crop-stage canvas { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.crop-stage canvas.landscape { height: auto; width: 100%; max-height: 100%; }
@media (max-width: 420px) { .admin-settings { gap: 10px; flex-wrap: wrap; } .admin-order-header { flex-wrap: wrap; } }
@media (min-width: 760px) { .has-photos > .photo-grid { max-width: 700px; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
