/* 照片选片网站 · 前台样式
   布局和视觉参考苹果官网：浅灰底、居中内容区、大留白、半透明毛玻璃导航、圆角卡片、胶囊按钮。 */
:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --hair: #e8e8ed;
  --bg: #f5f5f7;
  --card: #fff;
  --blue: #0071e3;
  --link: #0066cc;
  --danger: #bf4800;
  --radius: 18px;
  --radius-s: 12px;
  --wrap: 1680px;
  --wrap-narrow: 760px;
  --gutter: 32px;
  --nav-h: 60px;
  --tab-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scrollbar-gutter: stable; }
body { margin: 0; font: 15px/1.5 var(--font); letter-spacing: -.01em; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; letter-spacing: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }
.wrap.mid { max-width: calc(980px + 2 * var(--gutter)); }
.wrap.xs { max-width: calc(520px + 2 * var(--gutter)); }

/* ---------- 全站导航：半透明毛玻璃，内容居中 ---------- */
.global-nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: rgba(251, 251, 253, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.global-nav .wrap { display: flex; align-items: center; height: 100%; gap: 44px; }
.global-nav a:not(.nav-logo) { color: var(--ink); opacity: .85; font-size: 18px; white-space: nowrap; }
.global-nav a:not(.nav-logo):hover { opacity: 1; text-decoration: none; }
.global-nav a.current { opacity: 1; font-weight: 600; }
.global-nav .count { display: inline-block; min-width: 20px; margin-left: 5px; padding: 0 6px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 12px; line-height: 20px; vertical-align: 2px; text-align: center; font-weight: 600; }
.global-nav .spacer { flex: 1; }
.nav-logo { display: flex; align-items: center; gap: 8px; margin-right: auto; flex-shrink: 0; }
.nav-logo-img { height: 36px; width: auto; display: block; }
.nav-logo-name { font-size: 17px; font-weight: 600; color: #1d1d1f; white-space: nowrap; }
.tab-bar { display: none; }

/* ---------- 页面栏：与首页筛选栏同样式，标题和导航、首页内容左对齐 ---------- */
.local-bar { position: sticky; top: var(--nav-h); z-index: 30; background: rgba(245, 245, 247, .86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.local-bar .wrap { display: flex; align-items: center; gap: 16px; min-height: 62px; padding-top: 10px; padding-bottom: 10px; }
.local-bar h1 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.local-bar .meta { min-width: 0; color: var(--muted); font-size: 14px; }
.local-bar .bar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.page-body { min-height: 60vh; padding-top: 24px; padding-bottom: 64px; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.layout-2.side-left { grid-template-columns: 360px minmax(0, 1fr); }
.sticky-side { position: sticky; top: calc(var(--nav-h) + 62px + 20px); }
.layout-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.center-col, .card.center-col { max-width: 480px; margin-left: auto; margin-right: auto; }
.read-col { max-width: 980px; }
.card { background: var(--card); border-radius: 16px; padding: 24px 26px; margin: 0 0 20px; }
.card h2 { margin: 0 0 14px; font-size: 17px; font-weight: 600; }
.card h2 .muted { font-weight: 400; font-size: 14px; }

/* ---------- 按钮、输入框（字号与首页一致） ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 20px; border: 0; border-radius: 980px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 400; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn:hover { background: #0077ed; text-decoration: none; }
.btn.secondary { background: #e8e8ed; color: var(--ink); }
.btn.secondary:hover { background: #dcdce1; }
.btn.ghost { background: transparent; color: var(--link); padding: 0 4px; min-height: 28px; font-size: 14px; }
.btn.small { min-height: 34px; padding: 0 16px; font-size: 14px; }
.btn.large { min-height: 46px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.input:disabled { background: var(--bg); color: var(--muted); }
.form-stack { display: grid; gap: 10px; margin: 14px 0; }
.form-label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.msg { min-height: 1.4em; margin: 10px 0 0; font-size: 13px; }
.msg.error { color: var(--danger); }
.msg.ok { color: #1d7d3a; }
.hint-text { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.empty-state { padding: 56px 16px; color: var(--muted); text-align: center; font-size: 15px; }
.empty-state .btn { margin-top: 16px; }

/* ---------- P01 找照片：筛选栏 ---------- */
.filter-bar { position: sticky; top: var(--nav-h); z-index: 30; background: rgba(245, 245, 247, .86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.filter-bar .wrap { padding-top: 14px; padding-bottom: 12px; }
.filter-row { display: flex; align-items: center; gap: 10px; }
.filter-row + .filter-row { margin-top: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 18px; border: 1px solid transparent; border-radius: 980px; background: #fff; color: var(--ink); font-size: 15px; cursor: pointer; box-shadow: 0 0 0 1px var(--hair) inset; }
.chip:hover { box-shadow: 0 0 0 1px var(--line) inset; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
/* 二级类目多时自动换行，全部显示出来（不用横着滑） */
.chips.sub { flex-wrap: wrap; row-gap: 6px; overflow: visible; }
.chips.sub .chip { height: 30px; padding: 0 14px; font-size: 14px; background: transparent; box-shadow: none; color: var(--muted); }
.chips.sub .chip[aria-pressed="true"] { background: #e8e8ed; color: var(--ink); font-weight: 600; }
.filter-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.search { position: relative; width: 220px; }
.search input { width: 100%; height: 36px; padding: 0 14px 0 36px; border: 0; border-radius: 980px; background: #fff; box-shadow: 0 0 0 1px var(--hair) inset; font-size: 15px; }
.search input:focus { outline: none; box-shadow: 0 0 0 2px var(--blue) inset; }
.search svg { position: absolute; left: 12px; top: 10px; width: 16px; height: 16px; color: var(--muted); }
.select-pill { position: relative; }
.select-pill > button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 980px; background: #fff; box-shadow: 0 0 0 1px var(--hair) inset; font-size: 14px; cursor: pointer; white-space: nowrap; }
.select-pill > button::after { content: ''; width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.pop-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; min-width: 150px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 10px 40px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .05); }
.pop-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; text-align: left; cursor: pointer; white-space: nowrap; }
.pop-menu button:hover { background: var(--bg); }
.pop-menu button[aria-pressed="true"]::after { content: '✓'; color: var(--blue); margin-left: 14px; }
.pop-menu .menu-title { padding: 6px 12px 4px; color: var(--muted); font-size: 12px; }
.notice { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.notice button { margin-left: 8px; padding: 0; border: 0; background: none; color: var(--link); cursor: pointer; font-size: 13px; }

/* ---------- P01 找照片：图库 ---------- */
.gallery-wrap { min-height: 70vh; padding-top: 26px; padding-bottom: 64px; }
.gallery { --columns: 5; display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 20px 12px; transition: opacity .15s; }
.gallery.busy { opacity: .45; pointer-events: none; }
.gallery[data-cols="3"] { gap: 22px 16px; }
.photo-card { min-width: 0; }
/* 照片框：横图、竖图一样大（2:3 竖框）。竖图占满（不加背景）；.mat = 横图，完整显示在中间，上下垫这张照片的淡灰模糊背景 */
.photo-frame { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius-s); background: #e8e8ed; cursor: zoom-in; }
.photo-frame img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.photo-frame.mat img { object-fit: contain; }
/* 横图上下的背景：用这张照片自己做的模糊图（模糊得很开、看不出光斑），再盖一层浅灰，整体偏灰、不刺眼 */
.photo-frame.mat, .photo-frame.mat.loaded { background: #d9dadd; }
.photo-frame .mat-bg { position: absolute; z-index: 0; left: -30%; top: -30%; width: 160%; height: 160%; filter: blur(34px) saturate(.5); }
.photo-frame.mat::after { content: ""; position: absolute; z-index: 1; inset: 0; background: rgba(226, 227, 230, .74); }
.photo-frame img.ready { opacity: 1; }
.photo-frame.loaded { background: transparent; }
.photo-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-height: 31px; padding: 0 6px 0 7px; } /* 编号价格离照片左边 7px，「选」离右边 6px（10-24 编号左移 5px、按钮右移 6px） */
.photo-meta .text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-width: 0; line-height: 1.3; }
.photo-meta .id { min-width: 0; font-size: 15px; font-weight: 500; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.photo-meta .price { flex: none; font-size: 15px; color: var(--muted); }
.select-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: #d4d4d9; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.select-btn:hover { background: #c7c7cc; } /* 「选」按钮：没选 = 浅灰圆 + 黑色大加号；已选 = 浅黑圆 + 白勾 */
.select-btn:not(.on) { color: #3a3a3c; } /* 加号颜色：比纯黑浅一点 */
.select-btn:not(.on) svg { width: 68%; height: 68%; } /* 加号再大一些：按钮直径的 68%（电脑约 21px），手机小按钮按比例缩小 */
@media (min-width: 768px) { .select-btn:not(.on) svg { width: 58%; height: 58%; } } /* 电脑版加号再小 15%（手机不变） */
.select-btn.on { background: #48484d; color: #fff; }
.select-btn.on:hover { background: #3a3a3e; }
.select-btn.on svg { width: 62%; height: 62%; } /* 勾和加号差不多大 */
.select-btn svg { width: 16.5px; height: 16.5px; }
.gallery[data-cols="6"] { gap: 16px 8px; }
.gallery[data-cols="7"], .gallery[data-cols="8"] { gap: 14px 6px; }
.gallery[data-cols="7"] .photo-meta .id, .gallery[data-cols="8"] .photo-meta .id { font-size: 13px; }
.gallery[data-cols="7"] .photo-meta .price, .gallery[data-cols="8"] .photo-meta .price { font-size: 13px; }
.gallery[data-cols="7"] .select-btn, .gallery[data-cols="8"] .select-btn { width: 27.5px; height: 27.5px; font-size: 12px; }
.gallery-note { margin: 0; padding: 48px 0 0; color: var(--muted); text-align: center; font-size: 15px; }
.gallery-note .btn { margin-left: 10px; }
/* 首页翻页：上一页 / 页码 / 下一页 / 跳到第几页 */
.pager { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 40px; }
.pager-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.pager .pg-nums { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.pager .pg { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 980px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.pager .pg:hover:not(:disabled):not(.on) { border-color: var(--ink); }
.pager .pg.on { background: var(--ink); border-color: var(--ink); color: #fff; cursor: default; }
.pager .pg:disabled { opacity: .35; cursor: default; }
.pager .pg-step { padding: 0 18px; }
.pager .pg-gap { min-width: 20px; color: var(--muted); text-align: center; }
.pg-jump { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.pg-jump .input { width: 76px; height: 36px; padding: 0 8px; text-align: center; }
.pager-info { color: var(--muted); font-size: 13px; }
.back-to-top { position: fixed; right: 28px; bottom: 28px; z-index: 30; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--ink); box-shadow: 0 4px 18px rgba(0, 0, 0, .14); cursor: pointer; }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- P02 大图预览：首页上的图片弹窗，右侧下部只有「选」按钮 ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; overflow: hidden; overscroll-behavior: contain; background: transparent; animation: viewer-in .2s ease-out; }
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
html.viewer-open { overflow: hidden; }
.viewer-inner { position: absolute; inset: 0; }
/* 弹窗：没有边框和底色，只有照片本身（比原图大 10%）＋右侧透明的一列 */
.viewer-stage { position: absolute; left: 0; top: 0; will-change: transform; }
#viewer-img { border-radius: 16px; }
#viewer-img.loading { background: #e8e8ed; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
#viewer-img.loading img { opacity: 0; }
#viewer-img img { display: block; width: min(var(--w), calc(100vw - 160px), calc((100vh - 32px) * var(--ar))); width: min(var(--w), calc(100vw - 160px), calc((100dvh - 32px) * var(--ar))); height: auto; border-radius: 16px; cursor: zoom-out; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
/* 图片右侧下部：只有「选」按钮，离图片底边 30px */
.viewer-side { position: absolute; left: calc(100% + 14px); bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.viewer-side .select-btn { margin-left: 0; }

/* ---------- P07 已选照片（参考苹果购物袋） ---------- */
.bag-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.bag-item:first-child { padding-top: 0; }
.bag-item:last-child { border-bottom: 0; padding-bottom: 0; }
.bag-item .thumb { width: 96px; aspect-ratio: 7 / 10; border-radius: 10px; overflow: hidden; background: #e8e8ed; }
.bag-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bag-item h3 { margin: 2px 0 4px; font-size: 16px; font-weight: 600; }
.bag-item .unit { color: var(--muted); font-size: 14px; }
.tag { display: inline-block; margin-top: 8px; padding: 1px 9px; border-radius: 980px; background: #fff4e5; color: #9a5300; font-size: 12px; }
.stepper { display: inline-flex; align-items: center; margin-top: 12px; border-radius: 980px; box-shadow: 0 0 0 1px var(--line) inset; }
.stepper button { width: 34px; height: 32px; border: 0; background: none; color: var(--link); font-size: 18px; cursor: pointer; }
.stepper button:disabled { color: var(--line); cursor: default; }
.stepper .qty { min-width: 24px; text-align: center; font-size: 15px; }
.bag-item .right { display: grid; justify-items: end; gap: 8px; }
.bag-item .subtotal { font-size: 16px; font-weight: 600; }
.summary { display: grid; gap: 10px; }
.summary .line { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; }
.summary .line .k { color: var(--muted); }
.summary .line.total { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 19px; font-weight: 600; }
.summary .line.total .k { color: var(--ink); }
.summary .hint { color: var(--muted); font-size: 12px; text-align: right; }
.pay-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pay-steps li { font-size: 15px; color: var(--ink-2); }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.pay-grid h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.qr-row { display: flex; gap: 14px; flex-wrap: wrap; }
.qr-card { font-size: 12px; color: var(--muted); text-align: center; }
.qr-slot { display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: 6px; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 12px; text-align: center; }
.info-list { border-radius: 12px; background: var(--bg); overflow: hidden; }
.info-list .row { display: flex; gap: 14px; padding: 11px 16px; font-size: 14px; }
.info-list .row + .row { border-top: 1px solid #fff; }
.info-list .k { width: 44px; flex: none; color: var(--muted); }
.info-list .v { min-width: 0; overflow-wrap: anywhere; }

/* ---------- P08 / P12 / P13 订单 ---------- */
.result-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: #e3f3e8; color: #1d7d3a; }
.result-icon svg { width: 26px; height: 26px; }
.result-title { margin: 0 0 4px; font-size: 19px; font-weight: 600; text-align: center; }
.result-sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; text-align: center; }
.center { text-align: center; }
.kv { display: grid; gap: 10px; }
.kv .line { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; }
.kv .line .k { color: var(--muted); }
.kv .line.total { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 19px; font-weight: 600; }
.kv .line.total .k { color: var(--ink); }
.order-list { display: grid; }
.order-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 90px 120px 24px; gap: 16px; align-items: center; padding: 16px 6px; border-bottom: 1px solid var(--hair); color: var(--ink); font-size: 15px; }
.order-row:last-child { border-bottom: 0; }
.order-row:hover { text-decoration: none; background: #fafafc; }
.order-row .no { font-weight: 600; }
.order-row .num { text-align: right; }
.order-row .chev { color: #b0b0b5; }
.order-head { padding: 0 6px 10px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--hair); }
.order-head:hover { background: none; }
.items-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.items-table th { padding: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 400; text-align: left; border-bottom: 1px solid var(--hair); }
.items-table td { padding: 13px 0; border-bottom: 1px solid var(--hair); }
.items-table tr:last-child td { border-bottom: 0; }
.items-table .num { text-align: right; white-space: nowrap; }

/* ---------- P06 个人中心（设置列表样式） ---------- */
.profile-hero { display: flex; align-items: center; gap: 16px; }
.avatar { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #a1c4fd, #6f86d6); color: #fff; font-size: 22px; font-weight: 600; }
.profile-hero h2 { margin: 0; font-size: 19px; }
.profile-hero p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.list-group { border-radius: 16px; background: #fff; overflow: hidden; margin: 0 0 20px; }
.list-item { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 12px 20px; color: var(--ink); cursor: pointer; list-style: none; }
.list-item::-webkit-details-marker { display: none; }
.list-group > * + * { border-top: 1px solid var(--hair); }
a.list-item:hover, summary.list-item:hover { text-decoration: none; background: #fafafc; }
.list-item .ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; color: #fff; }
.list-item .ico svg { width: 17px; height: 17px; }
.list-item .label { flex: 1; min-width: 0; }
.list-item .label strong { display: block; font-size: 15px; font-weight: 500; }
.list-item .label span { display: block; color: var(--muted); font-size: 13px; }
.list-item .chev { color: #b0b0b5; transition: transform .2s; }
details[open] > .list-item .chev { transform: rotate(90deg); }
.list-detail { padding: 0 20px 18px 64px; font-size: 14px; }
.list-detail p { margin: 6px 0; }
.list-detail .sub-link { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--hair); color: var(--ink); }
.list-detail .sub-link:first-child { border-top: 0; }
.list-detail .sub-link:hover { text-decoration: none; color: var(--link); }
.device { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hair); cursor: pointer; }
.device:first-of-type { border-top: 0; }
.device input { width: 17px; height: 17px; accent-color: var(--blue); }
.device .state { margin-left: auto; color: var(--muted); font-size: 12px; }
.logout { display: block; width: 100%; padding: 14px; border: 0; border-radius: 16px; background: #fff; color: var(--danger); font-size: 15px; cursor: pointer; }
.logout:hover { background: #fafafc; }

/* ---------- P04 登录 ---------- */
.puzzle { margin: 16px 0; padding: 14px; border-radius: 12px; background: var(--bg); }
.puzzle-title { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.puzzle-title span { color: var(--muted); font-size: 12px; }
.puzzle-scene { position: relative; height: 124px; overflow: hidden; border-radius: 10px; background: radial-gradient(circle at 76% 25%, #fff4c5 0 8%, transparent 9%), linear-gradient(170deg, transparent 58%, #5d8f84 59% 72%, #386e69 73%), linear-gradient(12deg, #c9dfe4 0 40%, #8fb0a6 41% 70%, #557f78 71%); }
.puzzle-hole, .puzzle-piece { position: absolute; top: 40px; width: 42px; height: 42px; border-radius: 8px; }
.puzzle-hole { left: 70%; background: rgba(0, 0, 0, .45); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9) inset; }
.puzzle-piece { left: 4%; background: linear-gradient(135deg, #e3f1f4, #79aeb3); box-shadow: 0 4px 12px rgba(0, 0, 0, .35), 0 0 0 2px #fff inset; }
.puzzle-track { position: relative; height: 44px; margin-top: 12px; border-radius: 980px; background: #fff; box-shadow: 0 0 0 1px var(--hair) inset; touch-action: none; overflow: hidden; }
.puzzle-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 50px; color: var(--muted); font-size: 12px; pointer-events: none; }
.puzzle-handle { position: absolute; top: 3px; left: 3px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); cursor: grab; user-select: none; }
.puzzle-handle svg { width: 17px; height: 17px; }
.puzzle-status { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.puzzle.ok .puzzle-handle { background: #1d7d3a; }
.puzzle.ok .puzzle-status { color: #1d7d3a; font-weight: 600; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair); text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- 联系方式 ---------- */
.contact-grid { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.contact-grid .info-list { flex: 1 1 260px; }

/* ---------- 图文页（P01F、P15、P16） ---------- */
.article { max-width: 720px; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.article h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.article p { margin: 14px 0; color: var(--ink-2); white-space: pre-line; }
.article figure { margin: 22px 0; }
.article img { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--hair); }
.article figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; }
.article .back { margin-top: 28px; }

/* ---------- 弹出提示框 ---------- */
.dialog-backdrop { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog { width: min(100%, 420px); padding: 32px 28px 24px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.dialog h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.dialog p { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; }
.dialog .info-list { text-align: left; margin-bottom: 22px; }
.dialog .actions { display: grid; gap: 10px; }

/* ---------- 维护提醒、游客限制、提示 ---------- */
.blocker { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg); overflow: auto; }
.blocker-panel { width: min(100%, 520px); padding: 40px 36px; border-radius: 24px; background: #fff; text-align: center; }
.blocker-panel h1 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.blocker-panel p { margin: 8px 0; color: var(--ink-2); font-size: 15px; }
.blocker-panel .info-list { margin: 22px 0 0; text-align: left; }
.blocker-panel .btn { margin-top: 26px; }
.blocker.maintenance h1 { color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: 36px; z-index: 300; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: rgba(29, 29, 31, .92); color: #fff; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); pointer-events: none; text-align: center; }
.no-save { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
.proto-bar { position: fixed; left: 12px; bottom: 12px; z-index: 55; padding: 6px 12px; border-radius: 980px; background: rgba(255, 244, 229, .95); color: #9a5300; font-size: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.proto-bar a { color: #9a5300; text-decoration: underline; }

/* ---------- 平板 ---------- */
@media (max-width: 1068px) {
  :root { --gutter: 24px; }
  .search { width: 180px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .dialog-backdrop { align-items: flex-end; padding: 0; }
  .dialog { width: 100%; border-radius: 22px 22px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .global-nav { display: none; }
  .tab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(250, 250, 252, .88); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(0, 0, 0, .1); }
  /* 底部导航只有文字，不要图标 */
  .tab-bar a { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; color: #8e8e93; font-size: 16px; }
  .tab-bar a:hover { text-decoration: none; }
  .tab-bar a.current { color: var(--blue); font-weight: 600; }
  .tab-bar svg { width: 25px; height: 25px; }
  .tab-bar .badge { position: static; min-width: 17px; font-weight: 400; padding: 0 5px; border-radius: 9px; background: #ff3b30; color: #fff; font-size: 11px; line-height: 17px; text-align: center; }
  .local-bar { top: 0; }
  .local-bar .wrap { min-height: 54px; flex-wrap: wrap; row-gap: 2px; }
  .local-bar h1 { font-size: 19px; }
  .local-bar .meta { font-size: 13px; }
  .page-body { padding-top: 14px; padding-bottom: 28px; }
  .layout-2, .layout-2.side-left, .layout-cols { grid-template-columns: 1fr; gap: 0; }
  .sticky-side { position: static; }
  .card { padding: 20px 16px; border-radius: 14px; margin-bottom: 14px; }
  .filter-bar { top: 0; }
  .filter-bar .wrap { padding-top: 10px; padding-bottom: 10px; }
  .filter-row.top { flex-wrap: wrap; }
  .filter-row.top .filter-tools { width: 100%; margin-left: 0; order: -1; }
  .filter-row.top .search { flex: 1; width: auto; }
  .chip { height: 34px; padding: 0 16px; font-size: 15px; }
  .gallery-wrap { padding-top: 16px; padding-bottom: 28px; }
  .gallery { gap: 14px 5px; }
  .pager { margin-top: 28px; gap: 12px; }
  /* 手机：页码一行，下面「上一页」「下一页」两个大按钮并排 */
  .pager-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .pager .pg-nums { grid-column: 1 / -1; order: -1; gap: 5px; }
  .pager .pg { min-width: 36px; height: 36px; padding: 0 10px; font-size: 14px; }
  .pager .pg-step { height: 44px; font-size: 15px; }
  .gallery[data-cols="1"] { gap: 18px; }
  .gallery[data-cols="3"] { gap: 11px 4px; }
  .gallery[data-cols="4"], .gallery[data-cols="5"] { gap: 9px 3px; }
  .gallery[data-cols="3"] .photo-meta .id, .gallery[data-cols="4"] .photo-meta .id, .gallery[data-cols="5"] .photo-meta .id { font-size: 11px; }
  .gallery[data-cols="3"] .photo-meta .price, .gallery[data-cols="4"] .photo-meta .price, .gallery[data-cols="5"] .photo-meta .price { font-size: 11px; }
  .gallery[data-cols="4"] .photo-meta, .gallery[data-cols="5"] .photo-meta { flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 3px; }
  .select-btn { width: 28px; height: 28px; font-size: 11.5px; } /* 手机每行 1–2 张 */
  .select-btn svg { width: 14px; height: 14px; }
  .gallery[data-cols="4"] .select-btn, .gallery[data-cols="5"] .select-btn { margin-left: 0; width: 21px; height: 21px; font-size: 10px; }
  .gallery[data-cols="3"] .select-btn { width: 22.5px; height: 22.5px; font-size: 10.5px; }
  .gallery[data-cols="3"] .select-btn svg, .gallery[data-cols="4"] .select-btn svg, .gallery[data-cols="5"] .select-btn svg { width: 11.5px; height: 11.5px; }
  .photo-frame { border-radius: 10px; }
  .gallery[data-cols="4"] .photo-frame, .gallery[data-cols="5"] .photo-frame { border-radius: 6px; }
  .back-to-top { right: 16px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); }
  .viewer-stage { display: flex; align-items: flex-end; gap: 8px; }
  #viewer-img img { width: min(var(--w), calc(100vw - 64px), calc((100dvh - 16px) * var(--ar))); }
  .viewer-side { position: static; margin-bottom: 30px; }
  .bag-item { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .bag-item .thumb { width: 76px; }
  .bag-item .right { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .pay-grid { grid-template-columns: 1fr; }
  .order-head { display: none; }
  .order-row { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 4px 12px; padding: 16px 0; }
  .order-row .no { grid-column: 1; }
  .order-row .time { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 13px; }
  .order-row .count { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 13px; text-align: right; }
  .order-row .amount { grid-column: 2; grid-row: 1; font-weight: 600; }
  .order-row .chev { grid-column: 3; grid-row: 1 / 3; }
  .list-item { padding: 12px 16px; }
  .list-detail { padding: 0 16px 16px 60px; }
  .article h2 { font-size: 21px; }
  .blocker-panel { padding: 30px 22px; }
  .proto-bar { bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom)); }
}

/* =====================================================================
   前台子页面（已选、订单、个人中心、登录、联系、说明文章…）
   参考苹果官网购物袋 / Apple ID 页面：居中内容列、大标题、灰底白色圆角面板、细分隔线、大留白
   ===================================================================== */
.subpage { min-height: 70vh; padding-top: 56px; padding-bottom: 104px; }
.col { max-width: 980px; margin: 0 auto; }
.col.m { max-width: 692px; }
.col.r { max-width: 760px; }
.col.s { max-width: 460px; }
.ph { margin: 0 0 28px; }
.ph.center { text-align: center; }
.ph .back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 10px; font-size: 15px; }
.ph .back svg { width: 15px; height: 15px; transform: rotate(180deg); }
.ph h1 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.ph p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ph .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.ph.center .actions { justify-content: center; }
.btn.xl { min-height: 44px; padding: 0 28px; font-size: 15px; }
.ph-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; }
.ph-icon svg { width: 28px; height: 28px; }
.ph-icon.ok { background: #e3f3e8; color: #1d7d3a; }
.ph-icon.info { background: #e8f1fc; color: var(--blue); }

.panel { border-radius: 18px; background: #fff; }
.panel.pad { padding: 28px 32px; }
.panel h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.panel h3 .muted { font-size: 15px; font-weight: 400; }
.panel .desc { margin: -6px 0 16px; color: var(--muted); font-size: 14px; }
.panel > .rowline + .rowline { border-top: 1px solid var(--hair); }
.sec { margin-top: 40px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.sec-h h2 { margin: 0; font-size: 18px; font-weight: 600; }
.sec-desc { margin: -6px 0 16px; color: var(--muted); font-size: 15px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }

/* 已选页：点缩略图看大图 */
.bag-big { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .82); cursor: zoom-out; animation: viewer-in .2s ease-out; }
.bag-big figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.bag-big img { display: block; max-width: min(100%, 1100px); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); object-fit: contain; border-radius: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); }
.bag-big figcaption { color: #fff; font-size: 15px; opacity: .85; }
.sum { display: grid; gap: 12px; }
.sum .line { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; }
.sum .line .k { color: var(--muted); }
.sum .line.total .k { color: var(--ink); }
.sum .hint { margin-top: -6px; color: var(--muted); font-size: 13px; text-align: right; }
.sum .line.total { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 18px; font-weight: 600; }
.sum .line.total .k { color: var(--ink); }
.panel .form-stack { margin: 0; }
.panel .input { height: 44px; font-size: 15px; border-radius: 10px; }
.submit-area .btn { margin-top: 24px; }
.submit-area .hint-text { text-align: center; }

/* 付款方式：三步 + 收款码 + 联系方式 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.step { padding: 26px 28px; }
.step .num { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 50%; background: #e8f1fc; color: var(--blue); font-size: 15px; font-weight: 600; }
.step p { margin: 0; font-size: 15px; line-height: 1.5; }
.pay-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; }
.pay-panel h3 { font-size: 15px; }
.pay-panel .qr-row { gap: 18px; }
.qr-slot { width: 132px; height: 132px; border-radius: 14px; }
.kv-rows { flex: 1 1 260px; }
.kv-row { display: flex; gap: 20px; padding: 13px 0; font-size: 15px; border-top: 1px solid var(--hair); }
.kv-row:first-child { border-top: 0; padding-top: 0; }
.kv-row .k { width: 48px; flex: none; color: var(--muted); }
.kv-row .v { min-width: 0; overflow-wrap: anywhere; }
.contact-panel { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }

/* 订单列表、订单详情 */
a.order-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 20px; gap: 28px; align-items: center; padding: 24px 32px; color: var(--ink); }
a.order-item:hover { text-decoration: none; background: #fafafc; }
.panel > a.order-item:first-child { border-radius: 18px 18px 0 0; }
.panel > a.order-item:last-child { border-radius: 0 0 18px 18px; }
.panel > a.order-item:only-child { border-radius: 18px; }
.order-item .no { display: block; font-size: 15px; font-weight: 500; }
.order-item .time { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.mini-thumbs { display: flex; }
.mini-thumbs span { width: 40px; aspect-ratio: 7 / 10; margin-left: -10px; border-radius: 6px; overflow: hidden; background: #e8e8ed; box-shadow: 0 0 0 2px #fff; }
.mini-thumbs span:first-child { margin-left: 0; }
.mini-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.order-item .money { text-align: right; }
.order-item .money b { display: block; font-size: 15px; font-weight: 500; }
.order-item .money span { color: var(--muted); font-size: 15px; }
.order-item .chev { color: #b0b0b5; }
.line-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 32px; }
.line-item .thumb { width: 72px; aspect-ratio: 7 / 10; border-radius: 10px; overflow: hidden; background: #e8e8ed; }
.line-item .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.line-item strong { display: block; font-size: 15px; font-weight: 500; }
.line-item .meta { margin-top: 4px; color: var(--muted); font-size: 15px; }
/* 订单详情：照片已被删除时在编号后显示「已删除」（各语言都显示中文；编号和金额保留）；颜色同已选页的「已下架」 */
.line-item .gone-tag { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 8px; background: rgba(253, 236, 234, .95); color: #b42318; font-size: 12px; font-weight: 400; line-height: 20px; vertical-align: 1px; }
.line-item .amt { font-size: 15px; font-weight: 500; }
.recipient { margin: 0; font-size: 15px; line-height: 1.7; }

/* 个人中心 */
.me-hero { margin: 0 0 28px; text-align: center; }
.me-hero .avatar { width: 80px; height: 80px; margin: 0 auto 14px; font-size: 30px; }
.me-hero h1 { margin: 0; font-size: 18px; font-weight: 600; }
.me-hero p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.subpage .list-group { border-radius: 18px; margin: 0; }
.subpage .list-item { min-height: 62px; padding: 12px 24px; }
.subpage .list-item .ico { width: 34px; height: 34px; border-radius: 9px; }
.subpage .list-item .ico svg { width: 19px; height: 19px; }
.subpage .list-item .label strong { font-size: 15px; font-weight: 400; }
.subpage .list-item .label span { font-size: 14px; }
.subpage .list-detail { padding: 0 24px 20px 72px; font-size: 15px; }
.subpage .logout { margin-top: 20px; padding: 16px; border-radius: 18px; font-size: 15px; }

/* 登录、表单 */
.form-panel { padding: 36px 36px 30px; }
.form-panel h3 { font-size: 15px; }
.form-panel .btn { margin-top: 18px; }
.form-foot { margin-top: 26px; text-align: center; color: var(--muted); font-size: 15px; }
.stack-20 > * + * { margin-top: 20px; }

/* 文章 */
.subpage .article { max-width: none; font-size: 15px; line-height: 1.8; }
.subpage .article p { margin: 0 0 18px; color: var(--ink); }
.subpage .article .lead { font-size: 15px; line-height: 1.8; color: var(--ink); }
.subpage .article figure { margin: 32px 0; }
.subpage .article img { border-radius: 18px; box-shadow: none; }
.subpage .article figcaption { margin-top: 10px; font-size: 14px; text-align: center; }

@media (max-width: 1068px) {
}
@media (max-width: 767px) {
  .subpage { padding-top: 28px; padding-bottom: 56px; }
  .ph { margin-bottom: 26px; }
  .ph p { margin-top: 8px; font-size: 15px; }
  .ph .actions { margin-top: 20px; }
  .ph .actions .btn { flex: 1 1 auto; }
  .ph-icon { width: 60px; height: 60px; margin-bottom: 16px; }
  .ph-icon svg { width: 30px; height: 30px; }
  .panel, .subpage .list-group, .subpage .logout { border-radius: 16px; }
  .panel.pad, .form-panel { padding: 22px 20px; }
  .sec { margin-top: 40px; }
  .sec-h h2 { font-size: 18px; }
  .sec-desc { font-size: 15px; }
  .two, .steps, .pay-panel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pay-panel { gap: 26px; }
  .step { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; }
  .step .num { flex: none; width: 28px; height: 28px; margin: 0; font-size: 15px; }
  .step p { font-size: 15px; }
  .sum .line { font-size: 15px; }
  .sum .line.total { font-size: 18px; }
  .panel .input { height: 46px; font-size: 15px; }
  a.order-item { grid-template-columns: minmax(0, 1fr) auto 16px; gap: 14px; padding: 18px 20px; }
  .order-item .mini-thumbs { display: none; }
  .order-item .no, .order-item .money b { font-size: 15px; }
  .order-item .time, .order-item .money span { font-size: 13px; }
  .line-item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; padding: 16px 20px; }
  .line-item .thumb { width: 56px; }
  .line-item strong, .line-item .amt { font-size: 15px; }
  .line-item .meta { font-size: 13px; }
  .kv-row { font-size: 15px; }
  .qr-slot { width: 112px; height: 112px; }
  .me-hero .avatar { width: 80px; height: 80px; font-size: 18px; }
  .me-hero h1 { font-size: 18px; }
  .subpage .list-item { padding: 12px 18px; }
  .subpage .list-detail { padding: 0 18px 18px 18px; }
  .subpage .article { font-size: 15px; }
  .subpage .article .lead { font-size: 18px; }
}

/* ---------- 游客进入首页：不允许滚动时的底部提示、登录弹窗打开时锁定滚动 ---------- */
html.guest-noscroll, html.guest-noscroll body, html.popup-open { overflow: hidden; }
.guest-more { position: fixed; left: 50%; bottom: 28px; z-index: 45; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; border-radius: 980px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 8px 30px rgba(0, 0, 0, .16); font-size: 15px; white-space: nowrap; }
@media (max-width: 767px) { .guest-more { bottom: calc(var(--tab-h) + 52px + env(safe-area-inset-bottom)); font-size: 14px; } }

/* 已选页：数量可以直接输入（不限上限） */
.stepper input.qty { width: 56px; height: 30px; border: 0; background: none; text-align: center; font: inherit; font-size: 15px; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input.qty::-webkit-outer-spin-button, .stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input.qty:focus { outline: 2px solid var(--link); outline-offset: -2px; border-radius: 6px; }

/* 「禁止下载」处置：整页不能选中、长按保存、拖拽；打印时不输出内容 */
html.no-download body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.no-download img { -webkit-user-drag: none; -webkit-touch-callout: none; }
html.no-download input, html.no-download textarea { -webkit-user-select: text; user-select: text; }
@media print { html.no-download body { display: none !important; } }

/* 拼图：每次随机换背景；拖动后隐藏提示文字，避免被滑块挡住 */
.puzzle-scene.scene-2 { background: radial-gradient(circle at 22% 30%, #fff1d0 0 9%, transparent 10%), linear-gradient(195deg, transparent 52%, #b98a6a 53% 68%, #7d5a45 69%), linear-gradient(-8deg, #f3dcc4 0 38%, #d7a98a 39% 66%, #a1735a 67%); }
.puzzle-scene.scene-3 { background: radial-gradient(circle at 55% 22%, #ffffff 0 7%, transparent 8%), linear-gradient(160deg, transparent 48%, #6b7fa8 49% 70%, #3f4f78 71%), linear-gradient(20deg, #dfe6f5 0 45%, #9fb0d6 46% 72%, #6576a3 73%); }
.puzzle-scene.scene-4 { background: radial-gradient(circle at 85% 70%, #ffe7ef 0 10%, transparent 11%), linear-gradient(185deg, transparent 60%, #8f6f9a 61% 78%, #5d4468 79%), linear-gradient(-15deg, #efe2f3 0 35%, #c4a8cf 36% 64%, #8d6a9b 65%); }
.puzzle-track.moved .puzzle-hint { opacity: 0; transition: opacity .15s; }

@media (max-width: 1068px) {
}
@media (max-width: 767px) {
  /* 手机上一列排：收件信息放在订单金额和「提交订单」按钮上面 */
  .two .checkout-recv { order: -1; }
}

/* 收款码、微信二维码：上传的图片不管多大都缩放到方框里，不撑破页面 */
.qr-slot { overflow: hidden; }
.qr-slot img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* 首页：登录客户以前下单买过的照片，价格旁边红字提醒 */
.photo-meta .bought { flex: none; font-size: 13px; font-weight: 400; color: var(--muted); } /* 编号、价格、「买过」同一个灰色（10-23） */
.gallery[data-cols="7"] .photo-meta .bought, .gallery[data-cols="8"] .photo-meta .bought { font-size: 12px; }
@media (max-width: 767px) { .gallery[data-cols="3"] .photo-meta .bought, .gallery[data-cols="4"] .photo-meta .bought, .gallery[data-cols="5"] .photo-meta .bought { font-size: 11px; } }

/* ---------- 多语言：顶部语言下拉、语言提示条、首页页脚（语言链接 + 右下角「文章 ›」） ---------- */
.lang-menu { position: relative; margin-left: auto; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid #d2d2d7; border-radius: 980px; font-size: 14px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 168px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 10px 34px rgba(0, 0, 0, .16); }
.lang-pop a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 9px; font-size: 15px; color: var(--ink); opacity: 1; }
.lang-pop a:hover { background: #f5f5f7; text-decoration: none; }
.lang-pop a[aria-current] { font-weight: 600; }
.lang-pop .tick { color: var(--blue); }
.lang-bar { background: #eef5ff; border-bottom: 1px solid #d6e6fb; font-size: 14px; }
.lang-bar .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.lang-bar a { font-weight: 600; }
.lang-bar button { margin-left: auto; border: 0; background: none; color: var(--muted, #6e6e73); font-size: 14px; min-height: 36px; cursor: pointer; }
.site-footer { background: #fff; border-top: 1px solid #e5e5ea; }
.site-footer .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: #6e6e73; }
.site-footer .foot-langs a[aria-current] { color: var(--ink); font-weight: 600; }
.foot-articles { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 980px; background: #f5f5f7; color: var(--ink); font-size: 15px; font-weight: 600; }
.foot-articles:hover { text-decoration: none; background: #ebebef; }
.foot-links a { color: #6e6e73; font-size: 13px; }
.foot-articles span { color: #6e6e73; }
.guest-more-art { color: var(--ink); font-weight: 600; padding: 0 10px; }
@media (max-width: 767px) {
  .site-footer .wrap { gap: 12px; padding-top: 16px; padding-bottom: 16px; }
}
/* 手机：个人中心里的语言选择（底部弹出） */
.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .35); display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop[hidden] { display: none; }
.sheet { width: 100%; max-width: 520px; background: #fff; border-radius: 20px 20px 0 0; padding: 10px 0 calc(24px + env(safe-area-inset-bottom)); }
.sheet .grip { width: 40px; height: 5px; border-radius: 3px; background: #d2d2d7; margin: 0 auto 10px; }
.sheet .head { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 8px; font-size: 17px; }
.sheet .head button { border: 0; background: none; color: var(--blue); font-size: 16px; min-height: 44px; cursor: pointer; }
.sheet .opt { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; border-top: 1px solid #f0f0f2; font-size: 17px; color: var(--ink); }
.sheet .opt:hover { text-decoration: none; background: #f9f9fb; }
.sheet .opt .tick { color: var(--blue); font-size: 18px; }
.sheet .note { margin: 14px 18px 0; font-size: 13px; color: #6e6e73; }
button.list-item { width: 100%; border: 0; background: none; font: inherit; text-align: left; }
button.list-item:hover { background: #fafafc; }

/* ---------- 文章栏目（静态页面）：没有封面图，只有分类、标题、摘要、日期 ---------- */
.preview-bar { position: sticky; top: 0; z-index: 70; padding: 8px 16px; background: #fff4e5; color: #8a4b00; text-align: center; font-size: 14px; }
.art-wrap { max-width: 1040px; padding-top: 22px; padding-bottom: 64px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.art-head h1 { margin: 0; font-size: 40px; letter-spacing: -.01em; }
.art-head p { margin: 10px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 720px; }
.art-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 18px; }
.art-cats .chip { display: inline-flex; align-items: center; text-decoration: none; }
.art-cats .chip[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }
.art-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 18px; background: #fff; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.art-card:hover { text-decoration: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); transform: translateY(-1px); }
.art-card .meta { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.art-card .meta:empty { display: none; }
.art-card .pin { padding: 1px 8px; border-radius: 980px; background: #fff0f0; color: #d70015; font-weight: 600; }
.art-card .cat { color: var(--blue); font-weight: 600; }
.art-card h2 { margin: 0; font-size: 19px; line-height: 1.35; }
.art-card.big { margin-bottom: 16px; padding: 28px 30px; }
.art-card.big h2 { font-size: 26px; }
.art-card .sum { margin: 0; color: #424245; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-card time { color: var(--muted); font-size: 13px; }
.art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.art-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.art-pager a, .art-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 980px; background: #fff; color: var(--ink); font-size: 15px; }
.art-pager span[aria-current] { background: var(--ink); color: #fff; }
.art { max-width: 760px; margin: 0 auto; }
.art h1 { margin: 0 0 12px; font-size: 36px; line-height: 1.25; letter-spacing: -.01em; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.art-langs { margin-top: 10px; font-size: 14px; color: var(--muted); }
.art-body { margin-top: 26px; font-size: 18px; line-height: 1.85; color: #1d1d1f; overflow-wrap: anywhere; }
.art-body > :first-child { margin-top: 0; }
.art-body p { margin: 0 0 1.1em; }
.art-body h2 { margin: 1.8em 0 .6em; font-size: 26px; line-height: 1.35; }
.art-body h3 { margin: 1.5em 0 .5em; font-size: 21px; }
.art-body h4 { margin: 1.3em 0 .4em; font-size: 18px; }
.art-body img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 12px; }
.art-body figure { margin: 1.6em 0; }
.art-body figure.align-left { float: left; max-width: 50%; margin: .3em 1.4em 1em 0; }
.art-body figure.align-right { float: right; max-width: 50%; margin: .3em 0 1em 1.4em; }
.art-body figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; line-height: 1.5; }
.art-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid #d2d2d7; color: #424245; }
.art-body ul, .art-body ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.art-body li { margin: .3em 0; }
.art-body hr { border: 0; border-top: 1px solid #e5e5ea; margin: 2em 0; }
.art-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; display: block; overflow-x: auto; }
.art-body th, .art-body td { padding: 8px 12px; border: 1px solid #e5e5ea; text-align: left; vertical-align: top; }
.art-body th { background: #f5f5f7; }
.art-body::after { content: ""; display: block; clear: both; }
.art-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.art-tags .tag { margin: 0; background: #f0f0f3; color: #424245; font-size: 13px; padding: 3px 11px; }
.art-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 22px; }
.art-cta:hover { text-decoration: none; opacity: .92; }
.art-cta b { display: block; font-size: 17px; }
.art-cta span span { display: block; font-size: 13px; opacity: .75; margin-top: 2px; }
.art-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.art-prevnext a { padding: 14px 18px; border-radius: 14px; background: #fff; color: var(--ink); }
.art-prevnext a.next { text-align: right; }
.art-prevnext a:hover { text-decoration: none; background: #fafafc; }
.art-prevnext span { display: block; color: var(--muted); font-size: 13px; }
.art-prevnext b { font-size: 15px; font-weight: 600; }
.art-rel-h { margin: 34px 0 12px; font-size: 21px; }
.art-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.art-related a { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 92px; padding: 14px 16px; border-radius: 14px; background: #fff; color: var(--ink); }
.art-related a:hover { text-decoration: none; background: #fafafc; }
.art-related b { font-size: 15px; font-weight: 600; line-height: 1.4; }
.art-related span { color: var(--muted); font-size: 12px; }
.art-msg { max-width: 560px; margin: 60px auto; padding: 36px; border-radius: 20px; background: #fff; text-align: center; }
.art-msg h1 { margin: 0 0 10px; font-size: 28px; }
.art-msg p { color: var(--muted); margin: 0 0 22px; }
@media (max-width: 767px) {
  .art-wrap { padding-top: 14px; padding-bottom: 28px; }
  .art-head h1 { font-size: 30px; }
  .art-grid, .art-related { grid-template-columns: 1fr; }
  .art-card { padding: 16px 18px; border-radius: 14px; }
  .art-card.big { padding: 20px; }
  .art-card.big h2 { font-size: 22px; }
  .art h1 { font-size: 27px; }
  .art-body { font-size: 17px; line-height: 1.8; }
  .art-body h2 { font-size: 22px; }
  .art-body figure.align-left, .art-body figure.align-right { float: none; max-width: 100%; margin: 1.4em 0; }
  .art-prevnext { grid-template-columns: 1fr; }
  .art-prevnext a.next { text-align: left; }
}
.art-body figure.image { display: table; margin-left: auto; margin-right: auto; }
.art-body figure.w-100 { width: 100%; } .art-body figure.w-70 { width: 70%; } .art-body figure.w-50 { width: 50%; }
.art-body figure img { width: 100%; }
.art-body figure:not(.w-100):not(.w-70):not(.w-50) img { width: auto; }
@media (max-width: 767px) { .art-body figure.w-70, .art-body figure.w-50 { width: 100%; } }

/* 首页每行 9–12 张（电脑）：紧凑排列。编号一行、价格（和「买过」）一行，「选」在右边，和平时同样的排版，只是字小一点 */
.pop-menu { max-height: 70vh; overflow-y: auto; }
.gallery.dense { gap: 14px 6px; }
.gallery.dense .photo-meta { gap: 6px; margin-top: 4px; padding: 0; }
.gallery.dense .photo-meta .text { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; row-gap: 1px; flex: 1; }
.gallery.dense .photo-meta .id { max-width: 100%; font-size: 12px; }
.gallery.dense .photo-meta .price, .gallery.dense .photo-meta .bought { font-size: 12px; white-space: nowrap; }
.photo-meta .pb { display: inline-flex; align-items: baseline; column-gap: 8px; }
.gallery.dense .photo-meta .pb { column-gap: 5px; }
.gallery.dense .select-btn { flex: none; width: 24.5px; height: 24.5px; font-size: 11.5px; }

/* ---------- P01 首页第一排：照片类别 ---------- */
.cat-strip { margin-bottom: 4px; }
.cat-strip-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cat-strip-head h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.cat-strip-hint { color: var(--muted); font-size: 13px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cat-strip-x { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: #e8e8ed; color: var(--muted); cursor: pointer; }
.cat-strip-x:hover { background: #dcdce1; color: var(--ink); }
.cat-strip-x svg { width: 14px; height: 14px; }
.cat-strip-body { position: relative; }
.cat-strip-track { display: flex; gap: var(--strip-gap, 12px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 3px 2px; margin: -4px -3px 0; }
.cat-strip-track::-webkit-scrollbar { display: none; }
.strip-card { flex: none; width: var(--strip-w, 200px); min-width: 0; scroll-snap-align: start; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.strip-frame { display: block; width: 100%; aspect-ratio: 7 / 10; overflow: hidden; border-radius: var(--radius-s); background: #e8e8ed; transition: transform .15s, box-shadow .15s; }
.strip-frame.loaded { background: transparent; }
.strip-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.strip-card:hover .strip-frame { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .14); }
.strip-card.on .strip-frame { box-shadow: 0 0 0 3px var(--blue); }
.strip-name { display: block; margin-top: 9px; padding: 0 12px; font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.strip-card.on .strip-name { color: var(--blue); }
.cat-strip.dense .strip-name { padding: 0 2px 0 4px; font-size: 13px; }
.cat-strip.dense .strip-frame { border-radius: 8px; }
.cat-strip-arrow { position: absolute; top: calc(50% - 32px); z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); cursor: pointer; }
.cat-strip-arrow svg { width: 18px; height: 18px; }
.cat-strip-arrow.left { left: -16px; }
.cat-strip-arrow.right { right: -16px; }
.cat-strip-arrow[hidden] { display: none; }
.cat-strip-dots { display: flex; justify-content: center; gap: 6px; min-height: 6px; margin-top: 10px; }
.cat-strip-dots i { width: 6px; height: 6px; border-radius: 3px; background: #d2d2d7; transition: width .2s; }
.cat-strip-dots i.on { width: 16px; background: #86868b; }
.cat-strip-sep { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; color: var(--muted); font-size: 13px; }
.cat-strip-sep::after { content: ''; flex: 1; height: 1px; background: rgba(0, 0, 0, .08); }
.pop-menu .menu-sep { margin: 6px 4px; border: 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.pop-menu .menu-extra { color: var(--link); }
@media (max-width: 767px) {
  .cat-strip-head { margin-bottom: 10px; }
  .cat-strip-head h2 { font-size: 16px; }
  .cat-strip-hint { font-size: 12px; }
  .strip-frame { border-radius: 10px; }
  .strip-name { margin-top: 7px; padding: 0 4px; font-size: 14px; }
  .cat-strip-dots { margin-top: 8px; }
  .cat-strip-sep { margin: 10px 0 12px; }
}

/* P07 已选：一键清除 */
.bag-tools { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.bag-tools .btn[disabled] { opacity: .45; cursor: default; }
.btn.danger-text { color: #d70015; }
.btn.danger-bg { background: #d70015; color: #fff; }
@media (max-width: 767px) { .bag-tools { justify-content: stretch; } .bag-tools .btn { flex: 1; } }
.btn.danger-bg:hover { background: #bf0012; }

/* P01F 拿奖励：文章列表，点标题原地展开 */
.reward-list { padding: 0; overflow: hidden; }
.reward-item + .reward-item { border-top: 1px solid var(--hair); }
.reward-item summary { display: flex; align-items: center; gap: 16px; padding: 20px 28px; cursor: pointer; list-style: none; }
.reward-item summary::-webkit-details-marker { display: none; }
.reward-item summary:hover { background: #fafafc; }
.reward-item .t { flex: 1; min-width: 0; }
.reward-item .t b { display: block; font-size: 17px; font-weight: 600; }
.reward-item .t span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }
.reward-item .chev { flex: none; width: 9px; height: 9px; border-right: 2px solid #c7c7cc; border-bottom: 2px solid #c7c7cc; transform: rotate(-45deg); transition: transform .2s; }
.reward-item[open] .chev { transform: rotate(45deg); }
.reward-item[open] summary { background: #fafafc; }
.reward-body { margin: 0; padding: 6px 28px 26px; font-size: 16px; }
@media (max-width: 767px) {
  .reward-item summary { padding: 16px 18px; }
  .reward-body { padding: 4px 18px 20px; }
}

/* 密码框右边的「显示密码」按钮 */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap > input { width: 100%; padding-right: 46px; }
.pw-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8e8e93; cursor: pointer; }
.pw-eye:hover { color: #1d1d1f; background: rgba(0, 0, 0, .05); }
.pw-eye svg { width: 20px; height: 20px; }
/* 手机：照片下面的编号、价格、「买过」字小一些（10-23 晚上，约小 1/3） */
@media (max-width: 767px) {
  .photo-meta { margin-top: 2px; min-height: 28px; } /* 手机：编号紧贴上面的照片 */
  .photo-meta .id, .photo-meta .price { font-size: 10px; }   /* 每行 1–2 张：15 → 10 */
  .photo-meta .bought { font-size: 9px; }                     /* 13 → 9 */
  .photo-meta .text, .photo-meta .pb { column-gap: 5px; }
  .gallery[data-cols="3"] .photo-meta .id, .gallery[data-cols="4"] .photo-meta .id, .gallery[data-cols="5"] .photo-meta .id,
  .gallery[data-cols="3"] .photo-meta .price, .gallery[data-cols="4"] .photo-meta .price, .gallery[data-cols="5"] .photo-meta .price,
  .gallery[data-cols="3"] .photo-meta .bought, .gallery[data-cols="4"] .photo-meta .bought, .gallery[data-cols="5"] .photo-meta .bought { font-size: 7.5px; } /* 每行 3–5 张：11 → 7.5 */
}

/* 已选页：缩略图墙（草图 C2）。电脑每行 10 张、手机每行 4 张；照片下面是很小的编号和金额，再下面「− 数量 ＋」（减到 0 = 移除）；
   点照片看大图；左上角「买过」「已下架」标签；已下架的下面有「删除」 */
#list.bag-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 14px 10px; padding: 18px; }
.bag-row { position: relative; min-width: 0; }
.bag-row .thumb { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: #e8e8ed; cursor: zoom-in; }
.bag-row .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bag-row .tag { position: absolute; left: 4px; top: 4px; z-index: 2; margin: 0; padding: 0 6px; border-radius: 8px; background: rgba(255, 244, 229, .95); color: #9a5300; font-size: 10px; line-height: 17px; }
.bag-row .off-tag { background: rgba(253, 236, 234, .95); color: #b42318; }
.bag-row .meta { display: flex; justify-content: space-between; gap: 4px; margin-top: 4px; font-size: 10px; line-height: 1.4; color: var(--muted); }
.bag-row .meta .no { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.bag-row .amt { flex: none; }
.bag-row .stepper { display: flex; justify-content: space-between; width: 100%; height: 24px; margin: 4px 0 0; }
.bag-row .stepper button { width: 24px; height: 24px; font-size: 15px; line-height: 1; padding: 0; }
.bag-row .stepper input.qty { width: 28px; min-width: 0; height: 22px; font-size: 12px; padding: 0; }
.bag-row .stepper-off { margin-top: 4px; height: 24px; line-height: 24px; color: var(--muted); font-size: 10px; text-align: center; }
.bag-row.off .thumb img { opacity: .35; filter: grayscale(1); }
.bag-row .rm-off { padding: 0; border: 0; background: none; color: var(--link); font: inherit; cursor: pointer; }
@media (max-width: 1068px) { #list.bag-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  #list.bag-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; padding: 10px; }
  .bag-row .meta { flex-direction: column; gap: 0; font-size: 9px; }
  .bag-row .stepper { height: 22px; }
  .bag-row .stepper button { width: 20px; height: 22px; font-size: 13px; }
  .bag-row .stepper input.qty { width: 20px; height: 20px; font-size: 11px; }
  }
