:root {
  --brand: #00a3a3;
  --brand-dark: #007d7d;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f9fa;
  --card: #ffffff;
  --danger: #dc2626;
  --ok: #16a34a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #e7edf0;
  line-height: 1.6;
}
a { color: var(--brand-dark); }
.container { max-width: 720px; margin: 0 auto; padding: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 22px rgba(15, 23, 32, .10), 0 1px 3px rgba(15, 23, 32, .06);
}
h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
button:hover { background: var(--brand-dark); }
button:disabled { background: #9aa5b1; cursor: not-allowed; }
button.ghost { background: #fff; color: var(--brand-dark); border: 1.5px solid var(--brand); }
button.ghost:hover { background: #f0fbfa; }
button.danger { background: #fff; color: var(--danger); border: 1.5px solid var(--danger); }

/* 页面主入口按钮（更大、居中、更有质感） */
button.btn-main {
  font-size: 21px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00bfbf 0%, #008a8a 100%);
  box-shadow: 0 10px 26px rgba(0, 163, 163, .30), 0 2px 6px rgba(0, 163, 163, .16);
}
button.btn-main:hover { background: linear-gradient(135deg, #00adad 0%, #007676 100%); }
button.btn-main:active { box-shadow: 0 4px 14px rgba(0, 163, 163, .22); }

/* 一般操作按钮（放大一档） */
button.btn-lg {
  font-size: 17px;
  padding: 17px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 163, 163, .18);
}
button.btn-lg.ghost { box-shadow: none; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.muted { color: var(--muted); font-size: 12px; }
.hidden { display: none !important; }
.error { color: var(--danger); font-size: 13px; margin: 8px 0; }
.pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.pill.unpaid { background: #fef3c7; color: #b45309; }
.pill.paid { background: #d1fae5; color: #047857; }
.pill.paying { background: #ffedd5; color: #c2410c; }
.pill.printing { background: #dbeafe; color: #1d4ed8; }
.tag-pay { display: inline-block; margin-top: 3px; padding: 1px 6px; border-radius: 999px; background: #e0f2fe; color: #0369a1; font-size: 11px; white-space: nowrap; }
.pill.done { background: #e5e7eb; color: #374151; }
.pill.cancelled { background: #fee2e2; color: #b91c1c; }

.model-cover { width: 100%; border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; background: #eef1f3; }
.instance {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  margin-bottom: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px;
}
.instance.selected { border-color: var(--brand); background: #f0fbfa; }
.instance .w { font-weight: 700; white-space: nowrap; }
.price-big { font-size: 26px; font-weight: 800; color: var(--brand-dark); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.btn-sm { width: auto; padding: 5px 10px; font-size: 12px; border-radius: 6px; }

.banner { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.banner.info { background: #e0f2fe; color: #075985; }
.banner.warn { background: #fef3c7; color: #92400e; }
.banner.ok { background: #d1fae5; color: #065f46; }

/* ---------- 图文引导弹窗（含过渡动效） ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(15, 23, 32, .5);
  -webkit-backdrop-filter: blur(3px) saturate(120%);
  backdrop-filter: blur(3px) saturate(120%);
}
.modal-box {
  position: relative; background: #fff; border-radius: 16px;
  width: 100%; max-width: 470px; max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 32, .28), 0 2px 8px rgba(15, 23, 32, .12);
  will-change: transform, opacity;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line); flex: none;
  background: linear-gradient(180deg, #fbfdfd, #fff);
}
.modal-head h2 { margin: 0; font-size: 17px; letter-spacing: .3px; }
.modal-close {
  width: auto; background: transparent; color: var(--muted);
  font-size: 19px; line-height: 1; padding: 4px 8px; border-radius: 8px;
}
.modal-close:hover { background: #f1f5f9; color: var(--ink); }
.modal-body {
  overflow-y: auto; padding: 16px 16px 4px;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.modal-foot {
  padding: 14px 16px 18px; border-top: 1px solid var(--line); flex: none;
  background: linear-gradient(0deg, #fbfdfd, #fff);
}
/* 弹窗按钮：放大 + 居中，主操作（下一步）更宽更突出 */
.modal-foot .row { gap: 10px; align-items: stretch; }
.modal-foot .row #guidePrev {
  flex: 0 0 36%; font-size: 16px; padding: 16px 10px; border-radius: 13px;
}
.modal-foot .row #guideNext {
  flex: 1 1 auto; font-size: 17px; padding: 16px 12px; border-radius: 13px;
  box-shadow: 0 6px 18px rgba(0, 163, 163, .22);
}
.modal-foot .paste-clipboard {
  font-size: 15px; padding: 14px; border-radius: 13px; margin-top: 10px;
}

/* 进出场动画 */
@keyframes dshMaskIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes dshMaskOut { from { opacity: 1 } to { opacity: 0 } }
@keyframes dshBoxIn {
  from { opacity: 0; transform: translateY(18px) scale(.955) }
  to { opacity: 1; transform: none }
}
@keyframes dshBoxOut {
  from { opacity: 1; transform: none }
  to { opacity: 0; transform: translateY(10px) scale(.97) }
}
@keyframes dshStepRight {
  from { opacity: 0; transform: translateX(28px) }
  to { opacity: 1; transform: none }
}
@keyframes dshStepLeft {
  from { opacity: 0; transform: translateX(-28px) }
  to { opacity: 1; transform: none }
}
@keyframes dshPop {
  0% { transform: scale(.5); opacity: 0 }
  62% { transform: scale(1.14) }
  100% { transform: scale(1); opacity: 1 }
}
.modal:not(.hidden) .modal-mask { animation: dshMaskIn .26s ease both; }
.modal:not(.hidden) .modal-box { animation: dshBoxIn .42s cubic-bezier(.22, 1.15, .36, 1) both; }
.modal.closing .modal-mask { animation: dshMaskOut .2s ease both; }
.modal.closing .modal-box { animation: dshBoxOut .2s cubic-bezier(.4, 0, 1, 1) both; }

/* 步骤切换（前进从右滑入，后退从左滑入） */
.guide-step { display: none; }
.guide-step.active { display: block; animation: dshStepRight .34s cubic-bezier(.22, .9, .3, 1) both; }
.guide-step.active.back { animation-name: dshStepLeft; }

.step-h { font-size: 17px; font-weight: 700; margin: 14px 0 6px; text-align: center; }
.step-p { font-size: 14px; color: var(--muted); line-height: 1.75; margin: 0; text-align: center; }
.guide-dots { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 18px 0 8px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: #d7dee4;
  transition: width .34s cubic-bezier(.34, 1.4, .5, 1), background-color .3s ease, transform .3s ease;
}
.dot.on { background: var(--brand); width: 24px; border-radius: 5px; }
.step-img {
  width: 100%; display: block; border-radius: 12px; margin: 0 auto;
  border: 1px solid var(--line); background: #f7f9fa;
  max-height: 46vh; object-fit: contain; cursor: zoom-in;
  opacity: 0; transform: scale(.985);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22, .9, .3, 1);
}
.step-img.loaded { opacity: 1; transform: none; }
.step-img.zoomed { max-height: none; cursor: zoom-out; transform: none; }
.step-note {
  font-size: 14px; color: var(--muted); line-height: 1.75;
  background: linear-gradient(135deg, #f0fbfa, #f6fdfd);
  border: 1px solid #d9f2f0; border-radius: 12px; padding: 16px 14px;
}
.guide-step[data-step="4"] > div:first-child { animation: dshPop .55s cubic-bezier(.2, 1.35, .4, 1) both; }

/* ---------- 背景墙：热门模型图清晰滚动（直接作为主背景） ---------- */
.bg-wall {
  filter: blur(1.1px) saturate(1.06);
  position: fixed; inset: 0; z-index: -2;
  display: flex; gap: 6px; overflow: hidden;
  pointer-events: none;
}
.bg-wall .bg-col {
  flex: 1 1 0; display: flex; flex-direction: column; gap: 6px;
  will-change: transform;
}
.bg-wall .bg-col.up { animation: bgScrollUp linear infinite; }
.bg-wall .bg-col.down { animation: bgScrollDown linear infinite; }
.bg-wall img {
  width: 100%; display: block; border-radius: 8px;
  background: #dfe6ea;
}
@keyframes bgScrollUp { from { transform: translateY(0) } to { transform: translateY(-50%) } }
@keyframes bgScrollDown { from { transform: translateY(-50%) } to { transform: translateY(0) } }
/* 顶部标题直接压在图片上，用文字阴影保证可读 */
h1, .sub { text-shadow: 0 1px 12px rgba(255, 255, 255, .98), 0 0 4px rgba(255, 255, 255, .95), 0 1px 2px rgba(255, 255, 255, .9); }
.muted { text-shadow: 0 1px 8px rgba(255, 255, 255, .9); }

@media (prefers-reduced-motion: reduce) {
  .bg-wall .bg-col { animation: none !important; }
}

/* 按钮按压反馈 */
button { transition: transform .16s ease, background-color .16s ease, opacity .16s ease; }
button:active:not(:disabled) { transform: scale(.975); }

/* ---------- 后台登录层 ---------- */
.login-layer {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: #e7edf0;
}
.login-box {
  background: #fff; border-radius: 18px; padding: 26px 22px;
  width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(15, 23, 32, .18), 0 2px 8px rgba(15, 23, 32, .08);
}
#agentKey { font-family: Consolas, Monaco, monospace; font-size: 13px; }

/* ---------- 统计面板 ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat-box {
  background: linear-gradient(160deg, #f7fdfd, #eef8f8);
  border: 1px solid #d9eef0; border-radius: 12px;
  padding: 12px 10px; text-align: center;
}
.stat-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.stat-num { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.stat-num.brand { color: var(--brand-dark); }

/* 多色标签 */
.tag-multi {
  display: inline-block; padding: 1px 6px; border-radius: 999px;
  background: #fff1e6; color: #c2410c; font-size: 11px; font-weight: 700;
  vertical-align: middle;
}

/* 多盘打印提示 */
.warn-plate {
  margin-top: 6px; font-size: 12px; line-height: 1.5;
  background: #fff7ed; color: #b45309;
  border: 1px solid #fed7aa; border-radius: 8px; padding: 5px 8px;
}

/* 高级打印选项开关行 */
.switch-row {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 16px; padding: 12px 14px;
  background: #f7fdfd; border: 1px solid #d9eef0; border-radius: 12px;
  cursor: pointer; font-size: 14px; line-height: 1.6;
}
.switch-row input[type="checkbox"] {
  width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--brand);
}
.switch-row > span { display: block; }
.switch-row .muted { display: block; margin-top: 4px; }
#matRows input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }

/* ===== 下单页两个入口 ===== */
.entry-row { display: flex; flex-direction: column; gap: 10px; }
button.entry-own {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 10px 26px rgba(217, 119, 6, .28), 0 2px 6px rgba(217, 119, 6, .16);
}
button.entry-own:hover { background: linear-gradient(135deg, #e08c07 0%, #b45309 100%); }
button.entry-web { font-size: 19px; padding: 17px; }
@media (min-width: 560px) {
  .entry-row { flex-direction: row; }
  .entry-row > button { flex: 1; font-size: 17px; padding: 18px 10px; }
}

/* ===== 店内自有模型 ===== */
.tag-own {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  background: #fef3c7; color: #b45309; font-size: 11px; font-weight: 700;
}
.om-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .om-grid { grid-template-columns: repeat(3, 1fr); } }
.om-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; cursor: pointer; transition: transform .12s, border-color .12s, box-shadow .12s;
  display: flex; flex-direction: column;
}
.om-card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(0, 163, 163, .14); transform: translateY(-2px); }
.om-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #eef1f3; display: block; }
.om-card .om-noimg { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; background: #f1f5f9; font-size: 30px; }
.om-card .om-body { padding: 8px 10px 10px; }
.om-card .om-name { font-size: 13px; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.om-card .om-price { font-size: 16px; font-weight: 800; color: var(--brand-dark); }
.om-card .om-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.om-picked { display: flex; gap: 14px; align-items: flex-start; }
.om-picked-img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); flex: none; background: #eef1f3; }
.om-admin-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #eef1f3; }

/* 后台自有模型表格：窄屏横向滚动，不要把按钮挤成竖排 */
table.om-table { min-width: 720px; }
table.om-table th, table.om-table td { vertical-align: middle; }
table.om-table td:nth-child(2) { min-width: 130px; }
table.om-table td:last-child { white-space: nowrap; }
table.om-table .pill { white-space: nowrap; }




/* 页脚版本号 */
.ver-line { text-align: center; color: #9aa7b1; font-size: 12px; padding: 18px 0 26px; letter-spacing: .3px; }
.ver-badge { display:inline-block; font-size:11px; font-weight:600; color:#5b6b78; background:#eef2f5; border:1px solid var(--line); border-radius:999px; padding:1px 8px; vertical-align:middle; letter-spacing:.3px; }

/* 店内模型扫码进入：标签与二维码弹窗 */
.tag-qr {
  display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #7c2d12; background: #ffedd5; border: 1px solid #fed7aa;
}
.qr-print-card { text-align: center; padding: 18px; }
/* 二维码弹窗底部的下载链接：跟按钮长得一样 */
.modal-foot a.btn-sm {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  color: var(--ink); background: #fff; text-decoration: none;
}

/* ============================
   v0.02 客户下单页视觉改版
   ============================ */
body {
  background:
    radial-gradient(1200px 520px at 50% -8%, #d9f5f0 0%, rgba(217, 245, 240, 0) 62%),
    linear-gradient(180deg, #eef4f6 0%, #e7edf0 100%);
  min-height: 100vh;
}
.container { padding: 18px 16px 26px; }

.hero {
  position: relative;
  border-radius: 22px;
  padding: 20px 20px 18px;
  color: #fff;
  background: linear-gradient(150deg, #0f766e 0%, #0d9488 46%, #14b8a6 100%);
  box-shadow: 0 14px 34px rgba(13, 148, 136, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -60px; top: -80px;
  width: 210px; height: 210px; border-radius: 50%;
  background: rgba(255, 255, 255, .15);
}
.hero-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-badge {
  font-size: 12px; letter-spacing: .5px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
}
.hero-store { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.hero-title { position: relative; z-index: 1; font-size: 26px; line-height: 1.25; margin: 12px 0 6px; letter-spacing: .5px; }
.hero-sub { position: relative; z-index: 1; margin: 0 0 14px; font-size: 13px; color: rgba(255, 255, 255, .88); }
.hero-steps { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.step-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: #ecfeff;
}
.step-chip b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; color: #0f766e; font-size: 11px;
}

.entry-stack { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 10px; }
button.entry-card {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 16px; border-radius: 18px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15, 23, 32, .07);
  transition: transform .12s ease, box-shadow .12s ease;
}
button.entry-card:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(15, 23, 32, .12); }
button.entry-card:active { transform: translateY(0); }
.entry-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
button.entry-own .entry-icon { background: #fff7ed; }
button.entry-web .entry-icon { background: #ecfeff; }
.entry-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.entry-title { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.entry-desc { font-size: 12px; color: var(--muted); font-weight: 400; }
.entry-arrow { flex: 0 0 auto; font-size: 22px; line-height: 1; color: #9ca3af; }
.entry-hint { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 14px; }

.card { border-radius: 18px; padding: 18px; box-shadow: 0 10px 28px rgba(15, 23, 32, .08); }
.card h2 { letter-spacing: .2px; }
.price-big { font-size: 26px; }

@media (max-width: 380px) {
  .hero-title { font-size: 23px; }
  .entry-title { font-size: 15px; }
}

/* 首页「或者」分隔 + 粘贴卡片弱化 */
.or-line { display: flex; align-items: center; gap: 10px; color: #9ca3af; font-size: 12px; margin: 4px 0 8px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#pasteCard { box-shadow: none; border-style: dashed; background: rgba(255, 255, 255, .62); }
#pasteCard summary { font-size: 14px; color: var(--muted); font-weight: 600; }

.om-card { border-radius: 14px; }
.om-card .om-body { padding: 10px 12px 12px; }

/* 背景热门模型墙压淡一层，避免顶到文字（v0.02） */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(238, 244, 246, .52) 0%, rgba(231, 237, 240, .62) 100%);
  pointer-events: none;
  /* background-veil */
}

/* 热门分类（v0.03） */
.hot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hot-head h2 { margin: 0; font-size: 18px; }
.hot-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
.hot-tabs::-webkit-scrollbar { display: none; }
.hot-tab {
  width: auto; flex: 0 0 auto; white-space: nowrap;
  border: 1px solid var(--line); background: #fff; color: #475569;
  border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.hot-tab.on { background: #0f766e; border-color: #0f766e; color: #fff; }
.hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hot-card { position: relative; padding: 0; border: none; background: #eef1f3; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 1 / 1; }
.hot-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hot-card .hot-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 6px 5px;
  font-size: 11px; line-height: 1.25; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, .68));
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
@media (min-width: 560px) { .hot-grid { grid-template-columns: repeat(4, 1fr); } }

/* text-scrim：背景墙露出来后，零散文字单独加薄底保证可读 */
body .entry-hint, body #scanHint {
  display: table; margin: 10px auto 0; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}
body .ver-line {
  display: table; margin: 20px auto 0; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .8);
}

/* 「或者」分隔在背景墙上也看得清 */
.or-line span { background: rgba(255, 255, 255, .82); padding: 2px 10px; border-radius: 999px; }

/* ===== COS 道具库（0.04） ===== */
.entry-card.entry-cos { background: linear-gradient(135deg, #fff1f2, #ffe4e6); }
.entry-card.entry-cos .entry-icon { background: linear-gradient(135deg, #fb7185, #e11d48); }
.cos-ips, .cos-subs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
.cos-ips::-webkit-scrollbar, .cos-subs::-webkit-scrollbar { display: none; }
.cos-ip {
  flex: 0 0 auto; width: auto; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700;
}
.cos-ip.on { background: #0d9488; border-color: #0d9488; color: #fff; }
.cos-sub {
  flex: 0 0 auto; width: auto; border: 1px solid var(--line); background: #f8fafc; color: #475569;
  border-radius: 999px; padding: 5px 12px; font-size: 13px;
}
.cos-sub.on { background: #ccfbf1; border-color: #5eead4; color: #0f766e; font-weight: 700; }
.tag-own.tag-cos { background: #ffe4e6; color: #be123c; }
/* 后台 COS / 开关卡片 */
.cos-ip-block { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #fff; }
.cos-ip-block .ip-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cos-ip-block .ip-name { font-weight: 700; font-size: 15px; }
.cos-sub-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cos-sub-chips .chip { background: #f1f5f9; border-radius: 999px; padding: 3px 10px; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
.feat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.feat-row:last-child { border-bottom: 0; }
.feat-row .feat-name { font-weight: 700; }
.feat-row .feat-desc { color: var(--muted); font-size: 12px; margin-top: 2px; }
.switch { position: relative; width: 48px; height: 28px; flex: 0 0 48px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: #0d9488; }
.switch input:checked + span::after { transform: translateX(20px); }
/* COS 标签（后台订单列表 / 客户卡片） */
.tag-cos { background: #ffe4e6; color: #be123c; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
/* 选中卡片右上角「换一个」不要折行 */
#ownChange { white-space: nowrap; padding: 6px 10px; font-size: 13px; }

/* 「上架」状态用绿色，区别于订单的「完成」 */
.pill.on { background: #d1fae5; color: #047857; }
/* 网络模型区（热门推荐 / 复制链接 / 粘贴 收在一个卡片里） */
.web-zone { padding: 16px; }
.web-zone .hot-head h2 { font-size: 17px; }
.web-zone .entry-card { box-shadow: none; }
#printBtn.in-zone { margin: 4px 0 8px; }
#pasteCard.paste-in-zone {
  box-shadow: none; border: 0; background: transparent; padding: 0; margin: 0;
}
#pasteCard.paste-in-zone summary {
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 0;
}
#pasteCard.paste-in-zone textarea { margin-top: 8px; }
.zone-hot {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
}
#hotRefresh { width: auto; flex: 0 0 auto; white-space: nowrap; }
#hotRefresh:disabled { opacity: .6; }

/* 只留大字：页面上不再有小号说明文字，这里把剩下的正文再放大一档 */
.entry-title { font-size: 18px; }
.hot-name { font-size: 13px; padding: 8px 8px 7px; }
.web-zone .hot-head h2 { font-size: 18px; }
.om-name { font-size: 16px; }
#ownName { font-size: 22px; }
.hot-tab { font-size: 14px; }

/* 分盘预览（0.04 追加） */
.plate-preview {
  margin-top: 8px; width: auto; padding: 6px 10px; font-size: 13px;
  border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.plate-preview:hover { border-color: #0d9488; color: #0f766e; }
.plate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plate-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.plate-item img { display: block; width: 100%; height: auto; background: #f3f4f6; }
.plate-noimg { padding: 24px 10px; text-align: center; color: #9ca3af; font-size: 13px; }
.plate-cap { display: flex; justify-content: space-between; gap: 6px; padding: 7px 9px; font-size: 13px; }
.plate-cap span { color: var(--muted); }
@media (max-width: 420px) { .plate-grid { grid-template-columns: 1fr; } }

.plate-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #fef3c7; color: #b45309; font-size: 11px; font-weight: 500; }

/* 性能：背景墙已经很淡，移动端不再做 blur（模糊 50+ 层图片很吃 GPU，点击会卡） */
@media (max-width: 640px) {
  .bg-wall { filter: none; }
  .bg-wall .bg-col { animation-duration: 60s !important; }
}
/* 点模型后立即出现的「正在解析」浮条，避免以为没反应 */
.busy-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15, 23, 32, .88); color: #fff;
  font-size: 14px; padding: 10px 16px; border-radius: 999px;
  z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  max-width: calc(100% - 32px); white-space: nowrap;
}
.busy-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  animation: busyPulse 1s ease-in-out infinite;
}
@keyframes busyPulse { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

.busy-bar.busy-err { background: rgba(153, 27, 27, .92); max-width: calc(100% - 32px); white-space: normal; text-align: left; line-height: 1.35; }
.busy-bar.busy-err .busy-dot { display: none; }

/* Excel 模板下载 / 导入条（后台自有模型库、COS 道具库） */
.impex-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.impex-bar .btn-sm { width: auto; white-space: nowrap; }
.imp-msg { font-size: 13px; color: var(--muted); }
.imp-msg.ok { color: #047857; }
.imp-msg.warn { color: #b91c1c; }

/* 读取中弹窗（点热门模型后等待解析） */
.loading-box {
  width: min(86vw, 300px);
  max-width: 300px;
  padding: 30px 20px 26px;
  text-align: center;
  border-radius: 18px;
}
.loading-spin {
  width: 44px; height: 44px; margin: 2px auto 14px;
  border: 4px solid #d7e3e3;
  border-top-color: #0d9488;
  border-radius: 50%;
  animation: mp-spin .9s linear infinite;
}
@keyframes mp-spin { to { transform: rotate(360deg); } }
.loading-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.loading-sub { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* 高级打印选项：多色做成一个按钮 */
#multiRow { margin-bottom: 10px; }
.multi-btn {
  width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px;
  border: 1.5px dashed #cbd5e1; background: #fff; font-size: 15px; font-weight: 700;
  color: #334155; cursor: pointer;
}
.multi-btn.on {
  border: 1.5px solid #f59e0b; background: linear-gradient(90deg, #fff7ed, #ffedd5);
  color: #b45309;
}


/* 经营统计：图表区 */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
@media (max-width: 640px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; margin-top: 12px; }
.chart-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.chart-box canvas { width: 100%; height: 140px; display: block; }
.kw-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: #f1f5f9; color: #334155; font-size: 13px; font-weight: 600; }
.kw-chip b { color: #0f766e; font-size: 12px; }
.kw-chip.hot { background: linear-gradient(90deg, #fff7ed, #ffedd5); color: #b45309; }
.kw-chip.hot b { color: #b45309; }
.top-list { display: flex; flex-direction: column; gap: 8px; }
.top-row { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center; font-size: 13px; }
.top-rank { color: #94a3b8; font-weight: 700; }
.top-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: #eef2f4; overflow: hidden; }
.top-bar i { display: block; height: 100%; background: linear-gradient(90deg, #14b8a6, #0d9488); }
.stats-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.stats-actions .btn-sm { width: auto; }
button.danger { border-color: #fecaca; color: #b91c1c; background: #fff; }
button.danger:hover { background: #fef2f2; }

/* 分盘勾选：可选盘 + 底部合计 */
.plate-item.pick { position: relative; cursor: pointer; transition: opacity .15s; }
.plate-item.pick input.plate-chk { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; accent-color: #0d9488; cursor: pointer; z-index: 2; }
.plate-item.pick:not(.on) { opacity: .45; }
.plate-item.pick.on { outline: 2px solid #0d9488; outline-offset: -2px; border-radius: 12px; }
.plate-foot { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.plate-foot-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plate-sum { margin-left: auto; font-size: 13px; color: #475569; }
.plate-sum b { color: #0f766e; font-size: 15px; }
.tag-plate { background: #ccfbf1; color: #0f766e; border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 6px; white-space: nowrap; }