/* 选品小工具 · 原型样式
   通规：只用浅色（color-scheme: light，不跟随系统深色）、字够大、按钮够大、
   卡片式分区、手机单列不溢出。
   2026-11-22 美化（老板亲令）：模块与按钮加立体感、带很淡的天蓝色、整体更灵动。
   只动样式层：卡片白→极淡天蓝微渐变＋柔和多层阴影浮起、按钮淡天蓝渐变＋
   轻阴影＋悬停微抬/按压回落、页签选中与小角标用天蓝点缀、页面底极淡蓝灰衬托。
   文字配色沿用原值并逐对核算对比度 ≥4.5:1（磁贴角标橙底由 #f79009 加深到
   #b54708，白字对比度 2.35→5.5，橙色系不变）；纯 CSS，不引外部资源。 */
:root {
  color-scheme: light;
  --ink: #1d2733;
  --ink-soft: #43536a;
  --line: #cfe0f4;
  --bg: #eef5fd;
  --card: #ffffff;
  --brand: #175cd3;
  --brand-hi: #2273d9;
  --brand-ink: #ffffff;
  --sky-wash: #f4faff;
  --sky-tint: #e8f2ff;
  --ok: #067647;
  --warn: #b54708;
  --bad: #b42318;
  --chip: #e8f2ff;
  --shadow-card: 0 1px 2px rgba(23, 92, 211, .05), 0 10px 26px rgba(31, 111, 216, .09);
  --shadow-lift: 0 2px 4px rgba(23, 92, 211, .07), 0 16px 34px rgba(31, 111, 216, .14);
  --shadow-btn: 0 1px 2px rgba(23, 92, 211, .22), 0 6px 14px rgba(31, 111, 216, .20);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: linear-gradient(180deg, #e9f3fd 0%, #f4f9ff 340px, #eef5fd 100%);
  background-color: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
.wrap { max-width: 1060px; width: 100%; margin: 0 auto; padding: 0 16px 48px; }
header.top {
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(31, 111, 216, .08);
  position: sticky; top: 0; z-index: 5;
}
.top-in { max-width: 1060px; margin: 0 auto; padding: 10px 16px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.logo { font-size: 20px; font-weight: 700; margin-right: 8px; color: var(--brand); }
nav.main { display: flex; flex-wrap: wrap; gap: 6px; }
nav.main a {
  color: var(--ink-soft); text-decoration: none; padding: 10px 14px;
  border: 1px solid transparent; border-radius: 12px; min-height: 48px;
  display: inline-flex; align-items: center;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
nav.main a:hover { background: #eef6ff; transform: translateY(-1px); }
nav.main a.on {
  background: linear-gradient(180deg, #eef6ff, #e0efff);
  border-color: #bcd8fb; color: var(--brand); font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 8px rgba(31, 111, 216, .12);
}
h1 { font-size: 26px; margin: 22px 0 6px; }
.sub { color: var(--ink-soft); margin: 0 0 16px; }
.card {
  background: linear-gradient(180deg, #ffffff, var(--sky-wash));
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 18px; margin: 0 0 16px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.stat { text-align: left; }
.stat .num { font-size: 34px; font-weight: 800; line-height: 1.2; color: var(--brand); }
.stat .lab { color: var(--ink-soft); }
a.stat { text-decoration: none; color: var(--ink); display: block;
  transition: transform .15s ease, box-shadow .15s ease; }
a.stat:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 10px 18px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--brand);
  background: linear-gradient(180deg, var(--brand-hi), var(--brand));
  color: var(--brand-ink);
  box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255, 255, 255, .28);
  font-size: 17px; font-family: inherit; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(23, 92, 211, .22), 0 10px 20px rgba(31, 111, 216, .24),
    inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn:active { transform: translateY(0);
  box-shadow: inset 0 2px 5px rgba(10, 45, 110, .35); }
.btn.ghost {
  background: linear-gradient(180deg, #ffffff, #eef6ff); color: var(--brand);
  border-color: #a9ccf8;
  box-shadow: 0 1px 2px rgba(23, 92, 211, .08), 0 5px 12px rgba(31, 111, 216, .10),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}
.btn.ghost:active { box-shadow: inset 0 2px 5px rgba(23, 92, 211, .22); }
.btn.plain {
  background: linear-gradient(180deg, #ffffff, #f4f9ff); color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(23, 92, 211, .06), 0 5px 12px rgba(31, 111, 216, .08),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}
.btn.plain:active { box-shadow: inset 0 2px 5px rgba(23, 92, 211, .18); }
.btn.small { min-height: 44px; padding: 6px 14px; font-size: 16px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
input[type="text"], input[type="number"], input[type="email"], input[type="password"],
select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 17px;
  border: 1px solid #b9d2f2; border-radius: 12px; font-family: inherit;
  background: #ffffff; color: var(--ink);
  box-shadow: inset 0 1px 3px rgba(31, 111, 216, .07);
}
input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus,
input[type="password"]:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 115, 217, .22), inset 0 1px 3px rgba(31, 111, 216, .07);
}
label.f { display: block; margin: 0 0 12px; }
label.f > span { display: block; margin-bottom: 4px; font-weight: 600; }
.hint { color: var(--ink-soft); font-size: 15px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line);
  vertical-align: top; }
th { color: var(--ink-soft); font-weight: 600; white-space: nowrap; background: #f2f8ff; }
.thumb {
  width: 64px; height: 64px; border-radius: 12px; color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -8px 14px rgba(0, 0, 0, .12),
    0 4px 10px rgba(16, 24, 40, .18);
}
.thumb.big { width: 84px; height: 84px; font-size: 34px; }
.rowflex { display: flex; gap: 14px; align-items: flex-start; }
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 700;
  background: linear-gradient(180deg, #f2f8ff, var(--sky-tint));
  border: 1px solid #c3dcfb;
  box-shadow: 0 1px 3px rgba(31, 111, 216, .12);
  color: var(--brand); margin-right: 6px;
}
.badge.a { background: #fef0c7; border-color: #fbe3a1; color: #93370d; }
.badge.b { background: #d1fadf; border-color: #a6f4c5; color: #027a48; }
.badge.c { background: #e0eaFF; border-color: #bcd0fb; color: #175cd3; }
.chip { display: inline-block; background: linear-gradient(180deg, #f2f8ff, var(--sky-tint));
  border: 1px solid #d3e5fb; border-radius: 999px;
  padding: 2px 10px; font-size: 15px; color: var(--ink-soft); }
.gate { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.gate:last-child { border-bottom: none; }
.pass { color: var(--ok); font-weight: 700; }
.fail { color: var(--bad); font-weight: 700; }
.empty {
  text-align: center; padding: 34px 18px; color: var(--ink-soft);
}
.empty .big { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.step { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  box-shadow: 0 1px 3px rgba(31, 111, 216, .08);
  color: var(--ink-soft); font-size: 15px; }
.step.done { background: linear-gradient(180deg, #e7fcef, #d1fadf); color: #027a48; border-color: #a6f4c5; }
.step.now { background: linear-gradient(180deg, var(--brand-hi), var(--brand));
  color: #fff; border-color: var(--brand); font-weight: 700;
  box-shadow: var(--shadow-btn); }
.notice-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .45);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px;
}
.notice-box {
  background: linear-gradient(180deg, #ffffff, var(--sky-wash));
  border: 1px solid var(--line); border-radius: 18px; max-width: 460px; width: 100%;
  padding: 22px; box-shadow: 0 24px 48px rgba(10, 45, 110, .28);
}
.notice-box h2 { margin: 0 0 8px; font-size: 20px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 16px; padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 10px rgba(31, 111, 216, .06); }
legend { font-weight: 700; padding: 0 6px; }
.radio-line { display: block; padding: 8px 0; }
.radio-line input { width: 22px; height: 22px; vertical-align: -4px; margin-right: 8px; }
.footer-note { color: var(--ink-soft); font-size: 15px; margin-top: 26px; }
/* 货源小磁贴（2026-11-21 同步主系统定版形态）：上图下详情，定版价橙框＋角标 */
.tiles { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.tile {
  width: 158px; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 1px 2px rgba(23, 92, 211, .05), 0 6px 16px rgba(31, 111, 216, .08);
  color: var(--ink);
  text-decoration: none; position: relative; display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(23, 92, 211, .07), 0 12px 24px rgba(31, 111, 216, .13); }
.tile img { width: 100%; height: 112px; object-fit: cover; display: block; }
.tile-noimg {
  height: 112px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f2f8ff, #e6f1fd); color: var(--ink-soft); font-size: 15px;
}
.tile-info { padding: 8px 10px; font-size: 14px; line-height: 1.5; }
.tile-shop { font-weight: 700; }
.tile-sim { color: var(--warn); }
.tile.picked { border: 2px solid #f79009;
  box-shadow: 0 0 0 3px rgba(247, 144, 9, .18), 0 8px 18px rgba(31, 111, 216, .10); }
.tile-badge {
  position: absolute; top: 6px; left: 6px; background: #b54708; color: #fff;
  font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(147, 55, 13, .35);
}
.kv { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 6px 14px; }
.kv dt { color: var(--ink-soft); } .kv dd { margin: 0; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 23px; }
  .grid { grid-template-columns: 1fr 1fr; }
  table { min-width: 520px; }
  .rowflex { flex-direction: row; }
  .tile { width: calc(50% - 5px); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, a.stat, .tile, nav.main a { transition: none; }
  .btn:hover, a.stat:hover, .tile:hover, nav.main a:hover { transform: none; }
}
