/* ============================================================
   趣诚工具箱 · 统一样式表（移动优先）
   设计目标：清爽科技风 / 移动端优先 / 单列为主不横向滚动
   ============================================================ */

:root {
  --brand: #2b6cff;
  --brand-dark: #1a4fd6;
  --brand-soft: #eef4ff;
  --brand-soft2: #e3edff;
  --accent: #06b6d4;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --line: #e5eaf2;
  --ok: #16a34a;
  --ok-soft: #e9f9ef;
  --warn: #f59e0b;
  --danger: #e11d48;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .12);
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0; }
.section-tight { padding: 26px 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 700; font-size: 16px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 16px; color: var(--text); }
.logo-text em { font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: .04em; }

.nav-toggle {
  width: 44px; height: 44px; padding: 0;
  display: grid; place-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-xs);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text-2); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px 16px 16px;
  box-shadow: var(--shadow);
}
.site-nav.open { display: block; }
.site-nav a {
  display: block; padding: 12px 4px; color: var(--text-2);
  font-size: 15px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.site-nav a:last-child { border-bottom: 0; }
.site-nav a.active { color: var(--brand); font-weight: 600; }
.site-nav a.nav-cta {
  margin-top: 10px; text-align: center; border: 0;
  background: var(--brand); color: #fff; border-radius: var(--radius-sm); font-weight: 600;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: .18s; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(43, 108, 255, .28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn-lg { min-height: 50px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 卡片 / 通用块 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 14px; }

.section-head { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 6px; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 999px; font-size: 12px; font-weight: 600;
}

/* ---------- 首页 Hero ---------- */
.hero {
  background:
    radial-gradient(900px 340px at 12% -12%, #dfeaff 0%, rgba(255,255,255,0) 70%),
    radial-gradient(760px 300px at 92% 0%, #d9f6fb 0%, rgba(255,255,255,0) 68%);
  padding: 34px 0 30px;
}
.hero h1 { font-size: 27px; margin-bottom: 12px; }
.hero .lead { color: var(--text-2); font-size: 15.5px; margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; font-size: 12.5px; color: var(--text-2);
}
.tag::before { content: "✓"; color: var(--ok); font-weight: 700; }

/* ---------- 工具卡片网格 ---------- */
.tool-grid { grid-template-columns: repeat(2, 1fr); }
.tool-card {
  display: block; padding: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: .18s;
}
.tool-card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tool-ico {
  width: 38px; height: 38px; margin-bottom: 10px;
  display: grid; place-items: center; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand); font-size: 18px;
}
.tool-card h3 { font-size: 15px; margin-bottom: 4px; }
.tool-card p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- 首页「更多工具」与查看全部 ---------- */
.more-tools { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.more-tools span { margin: 0 7px; color: var(--line); }
.more-tools a { color: var(--text-2); }
.more-tools a:hover { color: var(--brand); }
.tools-more { text-align: center; margin-top: 16px; }

/* ---------- 本地处理信任条 ---------- */
.trustbar { background: var(--ok-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trustbar-inner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; }
.trustbar-ico { font-size: 17px; line-height: 1.45; color: var(--brand); }
.trustbar p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.trustbar b { color: var(--text); }

/* ---------- 特性列表 ---------- */
.feature { display: flex; gap: 12px; }
.feature-ico {
  flex: 0 0 36px; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--ok-soft); color: var(--ok); font-size: 17px;
}
.feature h4 { margin-bottom: 2px; }
.feature p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: s; }
.step { display: flex; gap: 13px; }
.step-num {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--brand); color: #fff;
}
.step h4 { margin: 3px 0 3px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- 工具工作台 ---------- */
.tooler { display: grid; gap: 14px; }

.dropzone {
  border: 2px dashed #c7d5ee; border-radius: var(--radius);
  background: #fff; padding: 28px 18px; text-align: center;
  transition: .18s; cursor: pointer;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .dz-ico { font-size: 30px; margin-bottom: 8px; }
.dropzone h3 { margin-bottom: 5px; }
.dropzone p { color: var(--muted); font-size: 13.5px; }
.dz-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }

.tool-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-tab {
  flex: 0 0 auto; min-height: 40px; padding: 0 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-2); font-size: 14px; font-weight: 500;
}
.tool-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.panel-group { display: none; }
.panel-group.active { display: block; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 8px;
}
.field-value { font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }

input[type="range"] {
  width: 100%; height: 32px; margin: 0; background: transparent;
  -webkit-appearance: none; appearance: none;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--brand-soft2); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -8px; border-radius: 50%;
  background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(15,23,42,.28);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--brand-soft2); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; }

.input, select.input {
  width: 100%; min-height: 44px; padding: 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xs);
}
.input:focus, select.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 38px; padding: 0 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-2); font-size: 13.5px;
}
.chip.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.switch-row span { font-size: 13.5px; font-weight: 600; color: var(--text-2); }

/* 预览对比 */
.compare { display: grid; gap: 12px; }
.compare-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-cap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--text-2); background: #fbfcfe;
}
.compare-cap b { color: var(--brand); font-variant-numeric: tabular-nums; }
.canvas-stage {
  padding: 12px; min-height: 150px;
  display: grid; place-items: center;
  background: repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 50% / 18px 18px;
}
.canvas-stage.stage-crop { cursor: crosshair; position: relative; touch-action: none; }
.canvas-stage canvas { max-width: 100%; height: auto; border-radius: 6px; }
.stage-empty { color: var(--muted); font-size: 13px; padding: 30px 0; }

/* 吸底操作条 */
.action-bar {
  position: sticky; bottom: 0; z-index: 40;
  display: grid; gap: 8px;
  padding: 10px 0 14px;
  background: linear-gradient(to top, var(--bg) 72%, rgba(246, 248, 252, 0));
}
.action-bar .btn { min-height: 48px; }

/* ---------- 价格页 ---------- */
.plan-grid { grid-template-columns: 1fr; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column;
}
.plan.hot { border-color: var(--brand); box-shadow: 0 14px 40px rgba(43, 108, 255, .16); }
.plan-badge {
  position: absolute; top: -11px; left: 20px;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-size: 11.5px; font-weight: 700;
}
.plan h3 { font-size: 16px; margin-bottom: 2px; }
.plan-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 4px; }
.plan-price .cur { font-size: 16px; font-weight: 700; color: var(--brand); }
.plan-price .num { font-size: 34px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; line-height: 1; }
.plan-price .unit { font-size: 13px; color: var(--muted); }
.plan-note { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.plan ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--text-2); }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 700;
}
.plan .btn { margin-top: auto; }

/* 权益对比表 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 700px; }
table.cmp th, table.cmp td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.cmp thead th { background: #fbfcfe; font-size: 13px; color: var(--text-2); position: sticky; top: 0; }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; position: sticky; left: 0; background: #fff; font-weight: 600; }
table.cmp thead th:first-child { background: #fbfcfe; }
table.cmp tbody tr:hover td { background: #fafcff; }
table.cmp .grp td { background: var(--brand-soft); color: var(--brand); font-weight: 700; text-align: left; font-size: 12.5px; }
table.cmp .no { color: #cbd5e1; }
.table-tip { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- FAQ 折叠 ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 16px; background: transparent; border: 0; text-align: left;
  font-size: 14.5px; font-weight: 600; color: var(--text);
}
.faq-q::after { content: "+"; flex: 0 0 auto; font-size: 19px; color: var(--brand); font-weight: 400; transition: .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 16px 15px; color: var(--text-2); font-size: 13.8px; }
.faq-item.open .faq-a { display: block; }

/* ---------- 信息列表（关于我们 / 联系） ---------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.8px; }
.info-list li:last-child { border-bottom: 0; }
.info-list b { flex: 0 0 86px; color: var(--muted); font-weight: 500; }
.info-list span { color: var(--text); flex: 1; word-break: break-all; }

/* ---------- 长文（协议 / 政策） ---------- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.doc h2 { font-size: 19px; margin: 26px 0 10px; padding-top: 4px; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 15.5px; margin: 18px 0 8px; }
.doc p, .doc li { font-size: 14px; color: var(--text-2); }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 12px; }
.doc li { margin-bottom: 5px; }
.doc-meta { color: var(--muted); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }

/* ---------- 提示条 ---------- */
.notice {
  display: flex; gap: 10px; padding: 13px 15px;
  background: #fff8e6; border: 1px solid #ffe1a6; border-radius: var(--radius-sm);
  font-size: 13.5px; color: #92610a;
}
.notice.info { background: var(--brand-soft); border-color: #cfe0ff; color: var(--brand-dark); }

/* ---------- 图标（内联 SVG，替代原先的字符 / emoji） ---------- */
.ico { width: 1em; height: 1em; display: block; }
.notice-ico { flex: 0 0 auto; color: var(--brand); font-size: 15px; line-height: 1.5; }
/* ---------- 产品界面截图 ---------- */
.shot-grid { display: grid; gap: 16px; }
.shot-card { margin: 0; }
.shot-card img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.shot-card figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: center; }
/* ---------- 页脚 ---------- */
.site-footer { margin-top: 46px; background: #0f172a; color: #94a3b8; font-size: 13.5px; }
.footer-grid { display: grid; gap: 26px; padding-top: 34px; padding-bottom: 28px; }
.footer-logo .logo-text b { color: #fff; }
.footer-logo .logo-text em { color: #7c8aa5; }
.footer-brand p { margin-top: 12px; line-height: 1.7; font-size: 13px; }
.footer-col h4 { color: #fff; font-size: 13.5px; margin-bottom: 12px; letter-spacing: .02em; }
.footer-col a { display: block; padding: 5px 0; color: #94a3b8; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-contact p { margin: 0 0 7px; font-size: 13px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid #1f2b41; padding: 16px 0 22px; }
.footer-bottom .wrap { display: grid; gap: 5px; font-size: 12.5px; color: #7c8aa5; text-align: center; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 平板 / 桌面 ---------- */
@media (min-width: 640px) {
  body { font-size: 15.5px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .section { padding: 52px 0; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .compare { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero { padding: 52px 0 44px; }
  .hero h1 { font-size: 38px; }
  .action-bar { grid-template-columns: 1fr auto; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; align-items: center; gap: 4px;
    position: static; background: transparent; border: 0; box-shadow: none; padding: 0;
  }
  .site-nav a { border: 0; padding: 8px 12px; font-size: 14.5px; border-radius: var(--radius-xs); }
  .site-nav a:hover { background: var(--brand-soft); text-decoration: none; }
  .site-nav a.nav-cta { margin: 0 0 0 8px; padding: 0 16px; min-height: 38px; display: inline-flex; align-items: center; color: #fff; }
  .site-nav a.nav-cta:hover { background: var(--brand-dark); }

  .hero h1 { font-size: 42px; }
  .hero .lead { font-size: 16.5px; }
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .shot-grid { grid-template-columns: 1.7fr 1fr; align-items: start; gap: 20px; }
  .tooler { grid-template-columns: 340px 1fr; align-items: start; }
  .tooler .tooler-left {
    position: sticky; top: 74px;
    max-height: calc(100vh - 90px);   /* 关键：限制左栏高度，超出改为内部滚动 */
    overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .tooler .tooler-left::-webkit-scrollbar { width: 6px; }
  .tooler .tooler-left::-webkit-scrollbar-thumb { background: #c9d4e6; border-radius: 999px; }
  .tooler .tooler-left::-webkit-scrollbar-track { background: transparent; }
  .compare { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .footer-bottom .wrap { grid-template-columns: 1fr; }
  .action-bar { position: static; background: none; padding-top: 4px; grid-template-columns: 240px 240px; }
  .doc { padding: 32px 36px; }
  .section .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .section .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .section .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

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

/* ============================================================
   工作台 v2 新增组件：身份条 / 图片队列 / 开关 / 取色 / 提示
   ============================================================ */

/* ---------- 身份与额度 ---------- */
.idbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; margin-bottom: 14px;
  background: var(--brand-soft); border: 1px solid #cfe0ff; border-radius: var(--radius-sm);
}
.idbar-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.idbar-badge { font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.idbar-meta { font-size: 12px; color: var(--muted); }
.idbar-link { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* ---------- 图片队列 ---------- */
.queue {
  margin-bottom: 14px; padding: 10px 12px;
  background: #fbfcfe; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.queue-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px;
}
.queue-ops { display: flex; gap: 12px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-size: 12.5px; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

.thumb-list {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.thumb-list::-webkit-scrollbar { display: none; }
.thumb {
  position: relative; flex: 0 0 auto; width: 56px; height: 56px; padding: 0;
  border: 2px solid var(--line); border-radius: var(--radius-xs);
  background: #fff; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb canvas { width: 100%; height: 100%; display: block; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.thumb.active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.thumb-idx {
  position: absolute; top: 0; left: 0; min-width: 16px; height: 16px;
  padding: 0 3px; display: grid; place-items: center;
  background: rgba(15,23,42,.62); color: #fff;
  font-size: 10.5px; line-height: 1; border-radius: 0 0 8px 0;
}
.thumb-del {
  position: absolute; top: 0; right: 0; width: 18px; height: 18px;
  display: grid; place-items: center; background: rgba(15,23,42,.62);
  color: #fff; font-size: 13px; line-height: 1; border-radius: 0 0 0 8px;
}

.cur-file { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; word-break: break-all; }
.cur-file span { color: var(--text); }
.field-hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }

/* ---------- 开关 ---------- */
.toggle {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto; width: 46px; height: 26px; border-radius: 999px;
  background: #cbd5e1; position: relative; transition: .18s;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: .18s; box-shadow: 0 1px 3px rgba(15,23,42,.3);
}
.toggle:checked { background: var(--brand); }
.toggle:checked::after { transform: translateX(20px); }

.color-input { height: 44px; padding: 4px; cursor: pointer; }

/* ---------- 取色 ---------- */
.picker-readout { display: flex; align-items: center; gap: 12px; }
.picker-readout b { display: block; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.picker-readout em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.picker-swatch {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 50% / 12px 12px;
}
.palette { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); padding: 0; }

.stage-pick { cursor: crosshair; }

.b64-area {
  height: auto; min-height: 120px; padding: 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.5; resize: vertical; word-break: break-all;
}

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  max-width: 88vw; padding: 10px 16px; border-radius: 999px;
  background: rgba(15,23,42,.9); color: #fff; font-size: 13px;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 12px); transition: .22s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* ============================================================
   账号体系（登录入口 / 登录弹层）—— auth.js 配套样式
   ============================================================ */

/* ---------- 导航栏登录入口 ---------- */
.site-nav a.nav-login { color: var(--brand); font-weight: 600; }
.site-nav a.nav-login.is-on { color: var(--text); }

/* ---------- 价格 / 权益页顶部的登录态条 ---------- */
.auth-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px;
  padding: 10px 14px; margin: 0 0 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--muted);
}
.auth-strip b { color: var(--text); }
.auth-strip-btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; }

/* ---------- 工具页身份条：登录态一行 ---------- */
.idbar-user { font-size: 12px; color: var(--muted); margin-top: 3px; }
.idbar-user a { font-weight: 600; }

/* ---------- 登录 / 账号弹层 ---------- */
.qc-modal-mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(15, 23, 42, .48);
  -webkit-tap-highlight-color: transparent;
}
.qc-modal-mask[hidden] { display: none; }
.qc-modal {
  width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 18px 22px;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow-lg);
  animation: qcUp .22s ease-out;
}
@keyframes qcUp { from { opacity: .5; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.qc-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.qc-modal-head h3 { font-size: 17px; }
.qc-modal-close {
  flex: 0 0 auto; width: 32px; height: 32px; padding: 0; margin: -4px -4px 0 0;
  background: none; border: 0; border-radius: 8px;
  font-size: 22px; line-height: 1; color: var(--muted);
}
.qc-modal-close:hover { background: var(--bg); color: var(--text); }
.qc-modal-sub { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.qc-reason { margin: 0 0 14px; font-size: 13px; }

.qc-channel {
  width: 100%; min-height: 48px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 14px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; color: var(--text);
  transition: .16s;
}
.qc-channel:hover { border-color: var(--brand); color: var(--brand); }
.qc-channel-tag {
  flex: 0 0 auto; padding: 2px 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap;
}

.qc-hint {
  margin: 12px 0 0; padding: 9px 12px;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius-xs);
  font-size: 12.5px; line-height: 1.6; color: #9a3412;
}
.qc-hint[hidden] { display: none; }

.qc-rows {
  margin: 0 0 16px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.qc-rows .qc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 3px 0; }
.qc-rows .qc-row span:first-child { flex: 0 0 auto; color: var(--muted); }
.qc-rows .qc-row span:last-child { text-align: right; font-weight: 600; word-break: break-all; }

.qc-input {
  width: 100%; min-height: 46px; padding: 0 14px; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px;
}
.qc-input:focus { outline: 2px solid var(--brand-soft2); border-color: var(--brand); }
.qc-code-row { display: grid; grid-template-columns: 1fr 118px; gap: 8px; }
.qc-code-row .btn { min-height: 46px; padding: 0 10px; font-size: 13.5px; }

/* ---------- 弹层：平板与桌面居中 ---------- */
@media (min-width: 640px) {
  .qc-modal-mask { align-items: center; padding: 24px; }
  .qc-modal { border-radius: var(--radius); padding: 24px 24px 26px; }
}

/* ---------- 桌面导航：登录入口做成次级按钮 ---------- */
@media (min-width: 900px) {
  .site-nav a.nav-login {
    margin: 0; padding: 6px 14px; min-height: 38px;
    display: inline-flex; align-items: center;
    background: var(--brand-soft); border: 1px solid #cfe0ff;
    border-radius: var(--radius-xs); color: var(--brand-dark);
  }
  .site-nav a.nav-login:hover { background: var(--brand-soft2); }
  .site-nav a.nav-login.is-on { background: #fff; border-color: var(--line); color: var(--text); }
  .site-nav a.nav-cta { margin: 0 0 0 6px; }
}

/* 900–1080px：导航项变多，压缩间距避免挤爆换行 */
@media (min-width: 900px) and (max-width: 1080px) {
  .site-nav a { padding: 8px 8px; font-size: 13.5px; }
  .site-nav a.nav-login { padding: 6px 10px; }
  .site-nav a.nav-cta { padding: 0 12px; }
}

/* ---------- 账号密码渠道：登录 / 注册 切换 ---------- */
.qc-tabs {
  display: flex; gap: 4px; margin: 0 0 14px; padding: 3px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.qc-tab {
  flex: 1 1 0; min-height: 36px; padding: 0 8px;
  background: none; border: 0; border-radius: var(--radius-xs);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: .16s;
}
.qc-tab:hover { color: var(--text); }
.qc-tab.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(15, 23, 42, .07); }

/* 密码 / 邮箱表单里的输入框排布（与 .qc-code-row 对齐） */
.qc-form .qc-input { margin-bottom: 10px; }
.qc-form .qc-code-row .qc-input { margin-bottom: 10px; }


/* ============================================================
   订单 / 收银台（order.html）—— 第十六轮新增
   ============================================================ */
.order-head { margin-bottom: 16px; }
.order-title { font-size: 25px; margin-bottom: 6px; }
.order-lead { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.7; }

.order-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 18px; }
.order-step {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 9px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 12.5px; color: var(--muted);
}
.order-step-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 11px; font-weight: 700;
}
.order-step.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.order-step.is-on .order-step-i { background: var(--brand); border-color: var(--brand); color: #fff; }
.order-step.is-done { color: var(--text-2); }
.order-step.is-done .order-step-i { background: var(--ok-soft); border-color: #b7e4c7; color: #16a34a; }

.order-panel { margin-bottom: 6px; }
.order-h2 { font-size: 19px; margin-bottom: 6px; }
.order-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; line-height: 1.7; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.order-card-table { padding: 0; overflow-x: auto; }

.order-rows { display: grid; gap: 0; }
.order-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.order-row:last-child { border-bottom: 0; }
.order-row > span:first-child { color: var(--muted); flex: 0 0 auto; }
.order-row > span:last-child { text-align: right; font-weight: 600; word-break: break-all; }
.order-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.75; }

.order-agree { display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; font-size: 12.5px; color: var(--text-2); line-height: 1.75; }
.order-agree input { margin-top: 4px; flex: 0 0 auto; width: 15px; height: 15px; }

.order-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.order-actions .btn { flex: 1 1 170px; }

.order-plans { margin-bottom: 4px; }
.order-plan .btn { margin-top: auto; }

.pay-card { border-color: #cfe0ff; }
.pay-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.pay-amount { font-size: 30px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.pay-ttl { font-size: 12.5px; color: var(--muted); }
.pay-ttl b { color: #b45309; font-variant-numeric: tabular-nums; }
.pay-methods { margin-top: 16px; }
.pay-methods-t { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.pay-method {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left; margin-bottom: 8px; padding: 12px 15px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--text); transition: .16s;
}
.pay-method:hover { border-color: var(--brand); }
.pay-method.is-on { border-color: var(--brand); background: var(--brand-soft); }
/* 品牌块：只取渠道首字 + 品牌色，不复制官方图形标识 */
.pay-method-ico {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; line-height: 1; color: #fff;
}
.pay-method-ico.is-wechat { background: #07c160; }
.pay-method-ico.is-alipay { background: #1677ff; }
.pay-method-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-method-note { font-size: 12px; font-weight: 400; color: var(--muted); }
.pay-method-check {
  margin-left: auto; flex: 0 0 auto; font-size: 14px; font-weight: 700;
  color: var(--brand); opacity: 0; transition: .16s;
}
.pay-method.is-on .pay-method-check { opacity: 1; }

.order-done { text-align: center; }
.order-done-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--ok-soft); color: #16a34a; font-size: 24px; font-weight: 700;
}
.order-done .order-rows { text-align: left; margin-top: 10px; }
.order-done .order-actions { justify-content: center; }

.order-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.order-table th, .order-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.order-table th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg); }
.order-table td { color: var(--text-2); }
.order-table tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
  .order-steps { grid-template-columns: repeat(2, 1fr); }
  .order-step { font-size: 12px; padding: 9px 8px; }
  .pay-amount { font-size: 26px; }
  .order-row { font-size: 13.5px; }
  .order-actions .btn { flex: 1 1 100%; }
}
