/* ============================================================
   拼豆匠 · 视觉系统（沿用豆拼拼黑白灰玻璃语言）
   Monochrome glass · 三端自适应（手机 / 平板 / 电脑）
   ============================================================ */
:root {
  --bg: #f2f3f5;
  --ink: #17181c;
  --ink-2: #4c4f58;
  --ink-3: #9a9da6;
  --line: rgba(255, 255, 255, 0.68);
  --line-dark: rgba(23, 24, 28, 0.10);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --accent: #4a4f5b;
  --accent-press: #3a3e48;
  --accent-grad: linear-gradient(135deg, #eef0f4, #d7dbe4);
  --danger: #d65f6f;
  --ok: #4e9c79;
  --r-lg: 22px;
  --r-md: 15px;
  --r-sm: 10px;
  --shadow-card: 0 10px 34px rgba(16, 17, 21, 0.07), 0 2px 8px rgba(16, 17, 21, 0.04);
  --shadow-float: 0 16px 48px rgba(16, 17, 21, 0.14);
  --spring: cubic-bezier(0.34, 1.36, 0.44, 1);
  --ease: cubic-bezier(0.28, 0.9, 0.36, 1);
  --topbar-h: 58px;
  --tabbar-h: 64px;
  --s-top: max(env(safe-area-inset-top), 0px);
  --s-bottom: max(env(safe-area-inset-bottom), 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { height: 100%; overflow-x: clip; }
body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
  overflow-x: clip;
  /* 禁止文字被选中 / 双击放大（输入框等可编辑元素单独放开） */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; touch-action: manipulation; }
input, textarea, select { font-family: inherit; color: var(--ink); font-size: 15px; -webkit-user-select: text; user-select: text; }
code, .selectable { -webkit-user-select: text; user-select: text; }
img { display: block; max-width: 100%; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
[hidden], .hidden { display: none !important; }

/* ---------------- 环境光背景 ---------------- */
.ambient { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.b1 { width: 480px; height: 480px; background: #dcdee3; top: -160px; left: -120px; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 420px; height: 420px; background: #e6e7eb; top: 30%; right: -160px; animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 380px; height: 380px; background: #d8dade; bottom: -140px; left: 10%; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(70px,50px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-60px,-40px) scale(0.95); } }
@keyframes drift3 { from { transform: translate(0,0) scale(0.95); } to { transform: translate(50px,-60px) scale(1.12); } }

/* ---------------- 屏幕切换（修复登录页叠加问题） ---------------- */
.screen { position: relative; z-index: 1; min-height: 100%; }
#app-screen { display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; max-width: 100vw; }
#app-screen.hidden { display: none !important; }

/* ---------------- 玻璃卡 ---------------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.card { padding: 18px; }
.card-title {
  font-size: 16px; font-weight: 800; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
}
.step-dot {
  font-style: normal; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--accent);
}

/* ================= 通用控件 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 20px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 700; line-height: 1;
  position: relative; overflow: hidden; isolation: isolate;
  --ripple: rgba(255,255,255,0.45);
  transition: transform 0.22s var(--spring), background 0.2s, box-shadow 0.2s, opacity 0.2s;
}
/* 液态按压涟漪（圆心跟随触点 --rx/--ry，JS 在 pointerdown 写入） */
.btn::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), var(--ripple) 0%, transparent 46%) center/0 0 no-repeat;
  opacity: 0;
}
.btn:active::after { opacity: 1; background-size: 280% 280%; transition: background-size 0.5s cubic-bezier(0.22,0.9,0.3,1), opacity 0.35s; }
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled::after { display: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(74,79,91,0.28); }
.btn-primary:active { background: var(--accent-press); }
.btn-ghost { background: rgba(255,255,255,0.7); color: var(--ink-2); border: 1px solid var(--line-dark); --ripple: rgba(23,24,28,0.10); }
.btn-ghost:active { background: #eceef2; }
.btn-danger-ghost { background: rgba(214,95,111,0.08); color: var(--danger); border: 1px solid rgba(214,95,111,0.25); --ripple: rgba(214,95,111,0.16); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 15px 20px; font-size: 16px; margin-top: 16px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }

.field { display: block; margin-bottom: 14px; }
.field > span, .form-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 7px;
}
.field input, .field select, textarea, .field input[type=text], .field input[type=password] {
  width: 100%; padding: 13px 15px;
  border-radius: var(--r-md); border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.85); outline: none;
  transition: box-shadow 0.25s, border 0.25s;
}
.field input:focus, .field select:focus, textarea:focus {
  border-color: rgba(23,24,28,0.35);
  box-shadow: 0 0 0 3.5px rgba(23,24,28,0.10);
}
textarea { width: 100%; resize: vertical; border-radius: var(--r-md); border: 1px solid var(--line-dark); background: rgba(255,255,255,0.85); padding: 12px 14px; outline: none; }
.form-error { color: var(--danger); font-size: 13px; margin: -4px 0 10px; }
.form-hint { font-size: 12px; color: var(--ink-3); margin-top: 7px; line-height: 1.6; }
.form-hint-b { color: var(--accent); font-weight: 700; margin-left: 6px; }
.link-btn { color: var(--accent); font-size: 12.5px; background: none; padding: 0; border-bottom: 1px dashed rgba(74,79,91,0.4); }

/* 分段控件 */
.seg {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  padding: 4px; border-radius: var(--r-md);
  background: rgba(23,24,28,0.05);
  position: relative; isolation: isolate;
}
.seg > button {
  position: relative; z-index: 1;
  padding: 9px 8px; border-radius: 11px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3);
  transition: color 0.25s var(--ease), transform 0.25s var(--spring), background 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.seg > button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(16,17,21,0.09); }
.seg > button:active { transform: scale(0.95); }
/* 液态滑动滑块（has-glider 时由 ::before 承托白底，active 按钮自身变透明） */
.seg::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  left: 0; top: 0; width: var(--gw, 40px); height: var(--gh, 30px);
  border-radius: 11px; background: #fff;
  box-shadow: 0 2px 10px rgba(16,17,21,0.10);
  transform: translate(var(--gx, 0px), var(--gy, 0px));
  transition: transform 0.38s cubic-bezier(0.34,1.32,0.44,1),
             width 0.38s cubic-bezier(0.34,1.32,0.44,1),
             height 0.38s cubic-bezier(0.34,1.32,0.44,1);
  opacity: 0;
}
.seg.has-glider::before { opacity: 1; }
.seg.has-glider > button { background: transparent; box-shadow: none; }
.seg.has-glider > button.active { background: transparent; box-shadow: none; color: var(--ink); }
.seg-sm > button { padding: 6px 10px; font-size: 12.5px; }
.seg-wrap { grid-template-columns: repeat(2, 1fr); }
#palette-seg > button { white-space: normal; line-height: 1.3; min-height: 38px; }
#block-seg { grid-template-columns: repeat(3, 1fr); }
#ratio-seg, .ratio-row {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px;
}
.ratio-row > button {
  padding: 7px 2px; border-radius: 9px; font-size: 11.5px; font-weight: 600;
  color: var(--ink-3); background: rgba(23,24,28,0.05);
  transition: background 0.22s var(--ease), color 0.22s, transform 0.22s var(--spring);
}
.ratio-row > button.active { background: var(--accent); color: #fff; }
.ratio-row > button:active { transform: scale(0.92); }

/* 滑条行 */
.dim-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
.dim-row > span { font-size: 12.5px; color: var(--ink-2); width: 38px; flex-shrink: 0; }
.dim-row > b { font-size: 12.5px; width: 48px; text-align: right; color: var(--ink); flex-shrink: 0; }
.dim-row input[type=range] { flex: 1; accent-color: var(--accent); height: 24px; }
input[type=range] { accent-color: var(--accent); }

.form-block { padding: 12px 0; border-bottom: 1px solid rgba(23,24,28,0.06); }
.form-block:last-of-type { border-bottom: none; }

.switch-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); padding: 7px 0; cursor: pointer; }
.switch-row input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }

/* ================= 登录页 ================= */
#login-screen { display: flex; align-items: center; justify-content: center; padding: 24px 16px; min-height: 100vh; }
.login-card {
  width: 100%; max-width: 400px;
  padding: 36px 30px 26px;
  text-align: center;
  animation: rise 0.55s var(--ease) both;
}
.login-logo { width: 84px; height: 84px; margin: 0 auto 14px; }
.brand { font-size: 30px; font-weight: 800; letter-spacing: 6px; }
.brand-sub { color: var(--ink-3); font-size: 13px; letter-spacing: 2px; margin: 8px 0 28px; }
.login-card .field { text-align: left; }
.buy-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; padding: 10px 18px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--accent);
  background: rgba(255,255,255,0.6); border: 1px solid var(--line-dark);
  transition: transform 0.2s var(--spring);
}
.buy-link:active { transform: scale(0.95); }
.buy-link svg { width: 17px; height: 17px; }
.login-note { margin-top: 16px; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.5px; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ================= 顶栏 ================= */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  height: calc(var(--topbar-h) + var(--s-top));
  padding: var(--s-top) 16px 0;
  background: rgba(242,243,245,0.78);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  border-bottom: 1px solid var(--line-dark);
}
.topbar-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.topbar-logo { width: 32px; height: 32px; }
.topbar-name { font-size: 17px; font-weight: 800; letter-spacing: 1.5px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tier-badge {
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-grad); color: #3c404a; letter-spacing: 0.5px;
}
.usage-pill { font-size: 12px; color: var(--ink-2); font-weight: 600; }

/* 手机端顶部信息条：桌面隐藏 */
.mobile-userbar { display: none; }

/* 导航：桌面在顶栏里 */
.main-nav { display: none; align-items: center; gap: 2px; margin-left: 10px; }
.nav-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--ink-3);
  transition: all 0.2s;
}
.nav-btn svg { width: 18px; height: 18px; }
.nav-btn.active { color: var(--ink); background: rgba(255,255,255,0.75); box-shadow: 0 1px 6px rgba(16,17,21,0.08); }

/* ================= 页面 ================= */
.pages { flex: 1; position: relative; }
.page { display: none; padding: 16px 16px calc(var(--tabbar-h) + 24px + var(--s-bottom)); overflow-x: clip; }
.page.active { display: block; animation: fadeUp 0.38s var(--spring) both; }
@keyframes fadeUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
/* 结果卡生成后液态入场 */
#card-result:not(.hidden) { animation: cardPop 0.44s var(--spring) both; }
@keyframes cardPop { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ================= 工作台布局 ================= */
.work-grid { display: flex; flex-direction: column; gap: 14px; }
#card-preview { z-index: 5; }

/* 预览折叠 */
.preview-head-right { display: flex; align-items: center; gap: 8px; }
.preview-collapse {
  flex-shrink: 0; width: 34px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; color: var(--ink-3);
  background: rgba(23,24,28,0.05); transition: all 0.2s;
}
.preview-collapse:active { background: rgba(23,24,28,0.12); }
.preview-collapse svg { width: 17px; height: 17px; }
#card-preview.collapsed { padding-bottom: 14px; }
#card-preview.collapsed .preview-body { display: none; }

.uploader {
  border: 1.8px dashed rgba(23,24,28,0.22); border-radius: var(--r-md);
  background: rgba(255,255,255,0.45);
  min-height: 150px; display: flex; align-items: center; justify-content: center;
  text-align: center; cursor: pointer; overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.uploader.dragover { border-color: var(--accent); background: rgba(74,79,91,0.06); }
.uploader-empty { padding: 22px 16px; color: var(--ink-3); }
.uploader-empty svg { width: 40px; height: 40px; margin: 0 auto 8px; }
.uploader-empty p { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.uploader-empty span { font-size: 12px; }
.uploader-filled { display: flex; align-items: center; gap: 13px; padding: 12px; width: 100%; }
.uploader-filled img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.uploader-meta { flex: 1; text-align: left; min-width: 0; }
.uploader-meta p { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; word-break: break-all; }

.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.preview-stage {
  display: flex; align-items: center; justify-content: center;
  min-height: 220px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line-dark);
  padding: 12px; overflow: hidden;
}
.preview-placeholder { color: var(--ink-3); text-align: center; padding: 30px 16px; }
.preview-placeholder svg { width: 52px; height: 52px; margin: 0 auto 10px; }
.preview-placeholder p { font-size: 13px; }
#preview-canvas, #preview-source { max-width: 100%; max-height: 42vh; border-radius: 6px; }
#preview-source { object-fit: contain; }
.preview-stat { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; text-align: center; font-weight: 600; }

/* 结果区 */
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.result-head-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.result-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.result-tabs button {
  min-width: 34px; padding: 5px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 700;
  background: rgba(23,24,28,0.06); color: var(--ink-3);
  transition: background 0.2s var(--ease), color 0.2s, transform 0.2s var(--spring);
}
.result-tabs button:active { transform: scale(0.9); }
.result-tabs button.active { background: var(--accent); color: #fff; }
.result-stage {
  border-radius: var(--r-md); border: 1px solid var(--line-dark); background: #fff;
  padding: 10px; overflow: auto; max-height: 64vh;
  display: flex; justify-content: center;
  cursor: zoom-in;
}
.result-stage svg, .result-stage canvas { max-width: 100%; height: auto; border-radius: 6px; }

.color-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.color-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 6px; border-radius: 999px;
  background: rgba(255,255,255,0.75); border: 1px solid var(--line-dark);
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  transition: transform 0.22s var(--spring), box-shadow 0.2s, opacity 0.2s;
}
.color-chip:active { transform: scale(0.93); }
.color-chip i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.08); flex-shrink: 0; }
.color-chip em { font-style: normal; color: var(--ink-3); font-weight: 500; }

.export-row { display: flex; flex-wrap: wrap; gap: 9px; }
.export-row .btn { flex: 1; min-width: 150px; }

/* ================= 辅助拼豆 ================= */
.aux-bar { margin-top: 13px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.66); border: 1px solid var(--line-dark); }
.aux-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aux-head .btn { flex-shrink: 0; }
.aux-head .btn.on { background: rgba(47,111,237,0.12); border-color: rgba(47,111,237,0.4); color: #2f6fed; font-weight: 700; }
.aux-hint { font-size: 12px; color: var(--ink-3); line-height: 1.45; flex: 1; min-width: 180px; }
.aux-opts { margin-top: 10px; display: flex; flex-direction: column; gap: 9px; }
.aux-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aux-row > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); flex-shrink: 0; }
.aux-colors { display: inline-flex; gap: 8px; }
.aux-colors button {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.1);
  background: var(--c); cursor: pointer; padding: 0; position: relative;
}
.aux-colors button.active { border-color: var(--c); box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--c); }
/* 辅助模式下色号可点：高亮 / 已拼完态 */
.color-chip.aux-on { cursor: pointer; transition: box-shadow 0.15s; }
.color-chip.aux-on:active { transform: scale(0.96); }
.color-chip.aux-hl { border-color: var(--aux-c, #e74c3c); box-shadow: 0 0 0 2px var(--aux-c, #e74c3c); }
.color-chip.aux-done { opacity: 0.55; }
.color-chip.aux-done .cc-code { text-decoration: line-through; }
.color-chip .cc-done {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-dark);
  background: #fff; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; color: transparent;
}
.color-chip .cc-done.did { background: #12a15a; border-color: #12a15a; color: #fff; }
.color-chip .cc-done svg { width: 11px; height: 11px; }

/* ================= 我的图纸库 ================= */
.lib-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.lib-back {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.8); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-2); flex-shrink: 0;
}
.lib-back svg { width: 18px; height: 18px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.lib-item {
  border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.72); display: flex; flex-direction: column;
}
.lib-thumb { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.lib-thumb canvas { display: block; width: 100%; height: auto; }
.lib-mode {
  position: absolute; right: 7px; bottom: 7px; padding: 2.5px 8px; border-radius: 999px;
  background: rgba(17,19,24,0.62); color: #fff; font-size: 11px; font-weight: 600; backdrop-filter: blur(6px);
}
.lib-info { padding: 9px 11px 4px; }
.lib-title { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-meta { margin: 3px 0 0; font-size: 12px; color: var(--ink-2); }
.lib-date { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); }
.lib-actions { display: flex; gap: 8px; padding: 9px 11px 11px; margin-top: auto; }
.lib-actions .btn { flex: 1; min-width: 0; padding: 7px 6px; font-size: 12.5px; border-radius: 10px; }
.lib-empty { grid-column: 1 / -1; text-align: center; padding: 34px 10px; color: var(--ink-3); font-size: 13.5px; }

/* ================= 单列页（反馈/我的/管理） ================= */
.single-col { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-item { background: rgba(255,255,255,0.6); border: 1px solid var(--line-dark); border-radius: var(--r-sm); padding: 12px 14px; }
.info-item span { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.info-item b { font-size: 15px; color: var(--ink); word-break: break-all; }

/* 反馈 */
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item { background: rgba(255,255,255,0.6); border: 1px solid var(--line-dark); border-radius: var(--r-sm); padding: 12px 14px; }
.fb-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); margin-bottom: 6px; flex-wrap: wrap; }
.fb-tag { padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 11px; }
.fb-tag.suggestion { background: rgba(74,79,91,0.12); color: var(--accent); }
.fb-tag.bug { background: rgba(214,95,111,0.12); color: var(--danger); }
.fb-status { margin-left: auto; }
.fb-status.pending { color: #c98a2e; }
.fb-status.replied, .fb-status.resolved { color: var(--ok); }
.fb-content { font-size: 14px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.fb-reply { margin-top: 9px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(74,79,91,0.07); font-size: 13px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }

/* ================= 管理员 ================= */
.admin-col { max-width: 1060px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-card); padding: 15px; text-align: center; }
.stat-num { font-size: 24px; font-weight: 800; }
.stat-label { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.admin-create-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
#btn-create-user { margin-top: 10px; }

.create-result {
  margin-top: 14px; padding: 16px;
  border-radius: var(--r-md);
  background: rgba(78,156,121,0.10); border: 1px solid rgba(78,156,121,0.3);
}
.cr-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; flex-wrap: wrap; }
.cr-row .cr-lab { color: var(--ink-3); font-size: 12.5px; width: 76px; flex-shrink: 0; }
.cr-row code {
  flex: 1; min-width: 120px; font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
  background: rgba(255,255,255,0.75); border: 1px solid var(--line-dark); border-radius: 9px; padding: 7px 11px;
  user-select: all; -webkit-user-select: text; word-break: break-all;
}
.cr-copy { padding: 6px 13px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
.cr-all { margin-top: 10px; }
.cr-note { margin-top: 8px; font-size: 12px; color: var(--ink-3); }

.admin-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-fb-list { display: flex; flex-direction: column; gap: 10px; }
.admin-fb { background: rgba(255,255,255,0.6); border: 1px solid var(--line-dark); border-radius: var(--r-sm); padding: 12px 14px; }
.admin-fb textarea { margin: 9px 0; }
.admin-fb-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.admin-users { display: flex; flex-direction: column; gap: 10px; }
.user-card { background: rgba(255,255,255,0.6); border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: 13px 14px; }
.user-card.disabled { opacity: 0.62; }
.uc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.uc-code { font-size: 16px; font-weight: 800; letter-spacing: 0.5px; }
.uc-nick { font-size: 12px; color: var(--ink-3); }
.uc-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-grad); color: #3c404a; }
.uc-badge.tier-pro { background: linear-gradient(135deg,#4a4f5b,#2c2f37); color: #fff; }
.uc-state { margin-left: auto; font-size: 11.5px; font-weight: 700; }
.uc-state.on { color: var(--ok); }
.uc-state.off { color: var(--danger); }
.uc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 9px 0; font-size: 12.5px; color: var(--ink-2); }
.uc-pwd { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.uc-pwd span { font-size: 12px; color: var(--ink-3); }
.uc-pwd code {
  flex: 1; min-width: 80px; font-size: 13px; letter-spacing: 0.5px;
  background: rgba(255,255,255,0.8); border: 1px solid var(--line-dark); border-radius: 8px; padding: 5px 9px;
  user-select: all; -webkit-user-select: text;
}
.uc-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.uc-actions .btn { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.uc-actions select { padding: 7px 8px; border-radius: 9px; border: 1px solid var(--line-dark); background: rgba(255,255,255,0.8); font-size: 12.5px; }
.btn-tiny-danger { background: rgba(214,95,111,0.1); color: var(--danger); border: 1px solid rgba(214,95,111,0.25); }

/* ================= 弹层 / Toast ================= */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(23,24,28,0.32); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.2s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 380px; padding: 22px 22px 24px; background: var(--glass-strong); animation: modalPop 0.36s var(--spring) both; }
@keyframes modalPop { from { opacity: 0; transform: translateY(16px) scale(0.94); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { font-size: 17px; font-weight: 800; }
.icon-x { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); }
.icon-x svg { width: 19px; height: 19px; }
.icon-x:active { background: rgba(0,0,0,0.06); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 26px + var(--s-bottom));
  transform: translateX(-50%);
  z-index: 200; max-width: 86vw;
  background: rgba(23,24,28,0.88); color: #fff;
  padding: 11px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-float);
  animation: toastIn 0.3s var(--spring) both;
  text-align: center;
}
.toast.ok { background: rgba(46,110,82,0.92); }
.toast.err { background: rgba(186,62,78,0.92); }
@keyframes toastIn { from { transform: translate(-50%, 14px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ================= 大弹层（购买） ================= */
.modal-lg { max-width: 520px; max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 20px 22px; }
.buy-lead { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; text-align: center; }

.tier-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.tier-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.62); border: 1px solid var(--line-dark);
}
.tr-main { display: flex; align-items: center; gap: 8px; }
.tr-main b { font-size: 15px; }
.tr-tag { font-size: 10.5px; font-weight: 700; color: var(--accent); background: var(--accent-grad); padding: 2px 8px; border-radius: 999px; }
.tr-spec { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; grid-column: 1 / 2; }
.tr-spec li { font-size: 11.5px; color: var(--ink-3); position: relative; padding-left: 10px; line-height: 1.55; }
.tr-spec li::before { content: '·'; position: absolute; left: 2px; }
/* 分板说明较长，独占一行避免拥挤 */
.tr-spec li:nth-child(3) { flex: 1 1 100%; }
.tr-price { grid-row: 1 / 3; grid-column: 2 / 3; font-size: 20px; font-weight: 800; color: var(--ink); white-space: nowrap; }

.buy-channels { display: flex; flex-direction: column; gap: 11px; margin-bottom: 16px; }
.buy-channel {
  padding: 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.62); border: 1px solid var(--line-dark);
}
.bc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.bc-head b { font-size: 14.5px; }
.bc-badge { font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 3px 9px; border-radius: 7px; color: #fff; background: var(--accent); }
.bc-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; margin-bottom: 10px; }
.bc-tip { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }
.btn-disabled { opacity: 0.5; pointer-events: none; }

.wechat-row { display: flex; align-items: center; gap: 9px; }
.wechat-row code {
  flex: 1; min-width: 0; text-align: center;
  font-size: 16px; font-weight: 800; letter-spacing: 1px;
  background: rgba(255,255,255,0.85); border: 1px dashed var(--line-dark);
  border-radius: var(--r-md); padding: 10px 12px; color: var(--ink-2);
}

.buy-steps { padding: 13px 14px; border-radius: var(--r-md); background: rgba(23,24,28,0.04); }
.buy-steps h4 { font-size: 13.5px; margin-bottom: 8px; }
.buy-steps ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.buy-steps li { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.buy-faq { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }

/* ================= 危险确认弹层 ================= */
.danger-title { color: var(--danger); }
.danger-warn {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 13px; border-radius: var(--r-md); margin-bottom: 14px;
  background: rgba(214,95,111,0.09); border: 1px solid rgba(214,95,111,0.28);
}
.danger-warn svg { width: 21px; height: 21px; color: var(--danger); flex-shrink: 0; margin-top: 1px; }
.danger-warn p { font-size: 13.5px; font-weight: 700; line-height: 1.55; margin-bottom: 3px; }
.danger-warn span { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.danger-actions { display: flex; gap: 10px; margin-top: 6px; }
.danger-actions .btn { flex: 1; }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-danger-solid:disabled { opacity: 0.4; }

/* 通用确认弹层 */
.modal-sm { max-width: 330px; }
.confirm-body {
  font-size: 14px; line-height: 1.7; color: var(--ink-2);
  margin: -4px 0 18px; white-space: pre-wrap; word-break: break-word;
}
.export-hint { margin-top: 8px; font-size: 11.5px; line-height: 1.6; }

/* ================= 平板（≥720px） ================= */
@media (min-width: 720px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-create-grid { grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; }
  .admin-create-grid .field { margin-bottom: 0; }
  #btn-create-user { margin-top: 0; height: 46px; white-space: nowrap; }
  .info-list { grid-template-columns: repeat(3, 1fr); }
}

/* ================= 电脑（≥960px）：导航作为顶部第二条磨砂横条 ================= */
@media (min-width: 960px) {
  :root { --tabbar-h: 0px; }

  .main-nav {
    display: flex; align-items: center; gap: 4px;
    position: sticky; top: calc(var(--topbar-h) + var(--s-top)); z-index: 29;
    margin: 0; padding: 8px 24px;
    background: rgba(242,243,245,0.78);
    backdrop-filter: blur(22px) saturate(1.8);
    -webkit-backdrop-filter: blur(22px) saturate(1.8);
    border-bottom: 1px solid var(--line-dark);
  }
  .topbar-right { margin-left: auto; }

  .page { padding: 20px 24px 28px; }

  .work-grid {
    display: grid; gap: 16px;
    grid-template-columns: 400px minmax(0, 1fr);
    grid-template-areas:
      "upload  preview"
      "params  preview"
      "params  result";
    align-items: start;
    max-width: 1320px; margin: 0 auto;
  }
  #card-upload { grid-area: upload; }
  #card-preview { grid-area: preview; position: static; }
  #card-params { grid-area: params; }
  #card-result { grid-area: result; }

  #preview-canvas, #preview-source { max-height: 46vh; }
  .seg-wrap { grid-template-columns: repeat(3, 1fr); }

  .stat-grid { grid-template-columns: repeat(6, 1fr); }
  .info-list { grid-template-columns: repeat(3, 1fr); }
}

/* ================= 手机导航：顶部栏隐藏，底部 TabBar ================= */
@media (max-width: 959.98px) {
  /* 导航已独立出 topbar，手机端直接隐藏整个顶部栏 */
  .topbar { display: none; }

  .page { padding-top: calc(12px + var(--s-top)); }

  /* 工作台顶部玻璃信息条（豆拼拼同款磨砂） */
  .mobile-userbar {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.62);
    backdrop-filter: blur(28px) saturate(1.8);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
  }
  .mobile-userbar-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .mobile-userbar-logo { width: 26px; height: 26px; }
  .mobile-userbar-name { font-size: 15px; font-weight: 800; letter-spacing: 1px; }
  .mobile-userbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

  /* 底部磨砂 TabBar：独立元素，全宽贴边，左右内边距对称 */
  .main-nav {
    position: fixed; left: 0; right: 0; bottom: 0;
    width: 100%; margin: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    padding: 7px 10px calc(7px + var(--s-bottom));
    /* 顶部受光、底部略透的玻璃渐变，避免整块白板 */
    background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.55) 100%);
    backdrop-filter: blur(30px) saturate(1.9) brightness(1.05);
    -webkit-backdrop-filter: blur(30px) saturate(1.9) brightness(1.05);
    border: none;
    border-top: 1px solid rgba(255,255,255,0.95);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.9),
      inset 0 -12px 24px rgba(255,255,255,0.25),
      0 -10px 34px rgba(16,17,21,0.09);
    /* 强制独立合成层，保证 iOS Safari 毛玻璃稳定渲染 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  /* 玻璃顶部反光线 */
  .main-nav::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
    pointer-events: none;
  }
  .main-nav:has(.admin-only.hidden) { grid-template-columns: repeat(3, 1fr); }
  .nav-btn { position: relative; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 10.5px; border-radius: 12px; justify-content: center; }
  .nav-btn svg { width: 21px; height: 21px; }
  .nav-btn.active { background: rgba(23,24,28,0.07); box-shadow: none; }
}

/* 小屏微调 */
@media (max-width: 380px) {
  .brand { font-size: 26px; letter-spacing: 4px; }
  .seg > button { font-size: 12.5px; padding: 8px 4px; }
  .export-row .btn { min-width: 100%; }
}

/* ============================================================
   v20250911k · 裁剪编辑器 / 图纸查看器 / 色号横滑 dock
   ============================================================ */

/* ---------- 裁剪取景入口 ---------- */
.crop-entry {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 7px 12px 7px 7px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.75); border: 1px solid var(--line-dark);
  transition: transform 0.22s var(--spring), box-shadow 0.22s, border-color 0.2s;
}
.crop-entry:active { transform: scale(0.985); box-shadow: 0 4px 16px rgba(16,17,21,0.08); }
.crop-entry img {
  width: 58px; height: 58px; border-radius: 11px; object-fit: cover;
  background: #eceef2; flex-shrink: 0;
}
.crop-entry-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; text-align: left; min-width: 0; }
.crop-entry-txt b { font-size: 13.5px; color: var(--ink); font-weight: 700; }
.crop-entry-txt em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.crop-entry > svg { width: 18px; height: 18px; color: var(--ink-3); flex-shrink: 0; }
.crop-entry:disabled { opacity: 0.5; pointer-events: none; }

/* ---------- 全屏裁剪编辑器 ---------- */
.crop-mask { padding: 0; display: block; background: #0c0d10; backdrop-filter: none; -webkit-backdrop-filter: none; }
.crop-sheet { display: flex; flex-direction: column; height: 100vh; height: 100dvh; animation: cropSheetIn 0.34s var(--spring) both; }
@keyframes cropSheetIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.crop-topbar {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--s-top)) 18px 10px;
  background: rgba(20,21,25,0.72); color: #fff; border: none; border-radius: 0;
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: none;
}
.crop-topbar b { font-size: 15px; font-weight: 800; }
.crop-tb-btn { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 600; padding: 8px 4px; }
.crop-tb-btn:active { transform: scale(0.94); }
.crop-done-btn { color: #ffd23d; font-weight: 800; font-size: 15.5px; }
.crop-stage {
  flex: 1; min-height: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  overflow: hidden; background: #0c0d10; padding: 12px;
}
.crop-viewport {
  position: relative; overflow: hidden; background: #1c1e24;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.9), 0 18px 60px rgba(0,0,0,0.55);
  touch-action: none;
}
.crop-viewport img {
  position: absolute; left: 50%; top: 50%;
  transform-origin: center center; will-change: transform;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.crop-grid { position: absolute; inset: 0; pointer-events: none; }
.crop-grid b { position: absolute; background: rgba(255,255,255,0.55); }
.crop-grid .crop-h1 { left: 0; right: 0; top: 33.333%; height: 1px; }
.crop-grid .crop-h2 { left: 0; right: 0; top: 66.667%; height: 1px; }
.crop-grid .crop-v1 { top: 0; bottom: 0; left: 33.333%; width: 1px; }
.crop-grid .crop-v2 { top: 0; bottom: 0; left: 66.667%; width: 1px; }
.crop-size { color: rgba(255,255,255,0.62); font-size: 12px; font-weight: 600; }
.crop-bottom {
  flex-shrink: 0; display: flex; flex-direction: column; gap: 9px; align-items: center;
  padding: 12px 22px calc(16px + var(--s-bottom));
  background: rgba(20,21,25,0.72); color: #fff; border: none; border-radius: 0;
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: none;
}
.crop-bottom .link-btn { color: #ffd23d; border-bottom-color: rgba(255,210,61,0.5); }
.crop-zoom-row { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 440px; }
.crop-zoom-row svg { width: 18px; height: 18px; color: rgba(255,255,255,0.7); flex-shrink: 0; }
.crop-zoom-row input { flex: 1; accent-color: #ffd23d; }
.crop-zoom-row b { width: 46px; text-align: right; font-size: 12.5px; color: #fff; }
.crop-tip { font-size: 11.5px; color: rgba(255,255,255,0.45); }

/* ---------- 图纸全屏查看器 ---------- */
.viewer-mask {
  display: flex; flex-direction: column; align-items: stretch; padding: 0;
  background: rgba(8,9,11,0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  z-index: 120; animation: fadeIn 0.22s ease both;
}
.viewer-top {
  flex-shrink: 0; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--s-top)) 14px 8px; color: #fff;
}
.viewer-top span {
  font-size: 12.5px; color: rgba(255,255,255,0.68); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.viewer-close {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  color: #fff; font-size: 14px; font-weight: 700; padding: 6px 10px 6px 4px;
  border-radius: 999px; background: rgba(255,255,255,0.12);
  transition: transform 0.2s var(--spring), background 0.2s;
}
.viewer-close:active { transform: scale(0.93); background: rgba(255,255,255,0.22); }
.viewer-close svg { width: 17px; height: 17px; }
.viewer-viewport {
  flex: 1; min-height: 0; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; touch-action: none;
}
.viewer-viewport canvas {
  max-width: 96vw; max-height: 100%; border-radius: 4px;
  transform-origin: center center; will-change: transform; touch-action: none;
  box-shadow: 0 12px 48px rgba(0,0,0,0.55);
}
.viewer-hint {
  flex-shrink: 0; text-align: center; color: rgba(255,255,255,0.5); font-size: 12px;
  padding: 8px 16px calc(14px + var(--s-bottom));
}

/* ---------- 手机端：色号选择吸底玻璃 dock（固定 3 排，多色横向翻页） ---------- */
@media (max-width: 959.98px) {
  #color-list {
    position: sticky; bottom: calc(var(--tabbar-h) + 8px + var(--s-bottom));
    z-index: 8;
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    align-items: center;
    gap: 7px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin: 13px -18px 0; padding: 10px 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.92) 100%);
    backdrop-filter: blur(26px) saturate(1.8); -webkit-backdrop-filter: blur(26px) saturate(1.8);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 -8px 24px rgba(16,17,21,0.06);
  }
  #color-list::-webkit-scrollbar { display: none; }
  #color-list .color-chip { flex-shrink: 0; width: max-content; }
  /* 翻页吸附，滑一下正好一屏 */
  #color-list { scroll-snap-type: x proximity; }
  #color-list .color-chip { scroll-snap-align: start; }

  /* 底部导航按压液态反馈 */
  .nav-btn { transition: color 0.2s, background 0.2s, transform 0.25s var(--spring); }
  .nav-btn:active { transform: scale(0.88); }
  .nav-btn.active svg { transform: translateY(-1px); transition: transform 0.3s var(--spring); }

  /* 色号 dock 吸底时，下方导出按钮留出一点呼吸 */
  .export-row { position: relative; z-index: 1; }
}

/* ---------- 电脑端：查看器/裁剪不受移动端布局影响 ---------- */
@media (min-width: 960px) {
  .crop-sheet { max-width: 560px; margin: 0 auto; }
}
