/* 号卡监控后台样式（1.3.0 重写）。配色照用户内网的"云速文档"：浅灰蓝的底、白色卡片和细线、蓝紫渐变做主色（#4F7CFF → #6C5CE7）。
   这一版的规矩：
   - 颜色少用：主色只给主按钮、选中、链接；绿、红、琥珀只表示状态；其余一律中性的灰（石板灰），运营商只用一个小圆点区分。
   - 按钮三种：主按钮（渐变）、普通按钮（白底细线，悬停变浅灰，不变色）、浅色按钮（主色的淡底），再加文字按钮；同一处并排的用同一种。
   - 控件一样高（38px，小号 32px），圆角 10px；卡片 16px；阴影很淡。
   - 顶栏、手机的顶栏和底栏、轻提示、弹窗后面的遮罩带一点毛玻璃；内容卡片是实心白底，不加模糊，保证字清楚。
   字体是 MiSans（小米的屏幕字体，免费商用），文件放在 assets/fonts/ 里跟着程序走（服务器在内网，不能从网上加载），
   浏览器只下载页面上用到的那部分字。视觉规则的说明在 dev/设计说明.md。 */

:root {
  --bg: #f4f6fa;
  --ink: #0f172a;
  --text: #1e293b;
  --text-2: #334155;
  --text-3: #64748b;
  --text-4: #94a3b8;
  --line: #e2e8f0;
  --line-2: #edf1f6;
  --hair: #e7ecf2;
  --tile: #f7f9fc;
  --muted: #f1f4f9;
  --hover: rgba(15, 23, 42, .04);
  --track: #eceff5;

  --brand-50: #f3f6ff;
  --brand-100: #e7edff;
  --brand-200: #cfdbff;
  --brand-300: #a9bdff;
  --brand-400: #7d9bff;
  --brand-500: #4f7cff;
  --brand-600: #3e67f1;
  --brand-700: #3351d3;
  --brand2: #6c5ce7;
  --sky: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --green: #22c55e;
  --green-600: #16a34a;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --amber: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --rose: #ef4444;
  --rose-600: #dc2626;
  --rose-50: #fef2f2;
  --rose-100: #fee2e2;
  --violet: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --indigo: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-50: #eef2ff;
  --teal: #14b8a6;
  --teal-600: #0d9488;
  --teal-50: #f0fdfa;

  --op-yd: #0ea5e9;
  --op-lt: #ef4444;
  --op-dx: #6366f1;
  --op-gd: #a855f7;

  /* 主色：蓝紫渐变（和云速文档一样）；浅的用在选中、悬停的底色上 */
  --brand: linear-gradient(135deg, #4f7cff, #6c5ce7);
  --brand-soft: linear-gradient(135deg, rgba(79, 124, 255, .1), rgba(108, 92, 231, .1));
  --ai: linear-gradient(135deg, #4f7cff 0%, #6c5ce7 60%, #a855f7 100%);

  /* 毛玻璃：半透明白加背景模糊，只用在顶栏、手机的顶栏和底栏上 */
  --glass-bar: rgba(255, 255, 255, .78);
  --blur: blur(14px) saturate(160%);

  --sh-card: 0 1px 2px rgba(15, 23, 42, .04);
  --sh-hover: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -12px rgba(15, 23, 42, .18);
  --sh-lg: 0 16px 40px -12px rgba(15, 23, 42, .2);
  --sh-pop: 0 24px 64px -16px rgba(15, 23, 42, .3);
  --sh-brand: 0 1px 2px rgba(62, 103, 241, .22), 0 6px 16px -6px rgba(79, 124, 255, .55);
  --ring: 0 0 0 3px rgba(79, 124, 255, .18);

  --r-xl: 16px;
  --r-lg: 12px;
  --r-md: 10px;
  --r-sm: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --font: "MiSans VF", "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --num: "MiSans VF", "MiSans", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  /* 字的粗细：MiSans 可变字体的刻度和一般字体不一样（380 中等、450 半粗、520 较粗、630 粗），
     下面统一用这四个变量，不直接写数字。字体还没下载完、临时用微软雅黑时，这几个数会自动落到雅黑的常规和粗体上 */
  --fw-normal: 400;
  --fw-medium: 450;
  --fw-semi: 520;
  --fw-bold: 630;

  --side-w: 248px;
  --head-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  background: radial-gradient(900px 380px at 100% -8%, rgba(108, 92, 231, .06), transparent 60%), radial-gradient(760px 340px at -6% 0%, rgba(79, 124, 255, .07), transparent 58%), var(--bg);
  font: var(--fw-normal) 14px/1.65 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
a { color: var(--brand-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: var(--fw-semi); line-height: 1.35; }
p { margin: 0 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
b, strong, th { font-weight: var(--fw-semi); }
code, .mono { font-family: var(--mono); font-size: .92em; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.faint { color: var(--text-4); }
.nowrap { white-space: nowrap; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; border-radius: 8px; }
svg.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -.22em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, .45); }

/* ================= 外框：左边导航、顶栏、内容 ================= */

.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; min-height: 100dvh; }
.side {
  width: var(--side-w); flex: none; position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 30;
  display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 18px; flex: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); box-shadow: var(--sh-brand); flex: none; }
.logo > span { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; }
.logo svg { width: 19px; height: 19px; stroke-width: 2; }
.brand-text { min-width: 0; }
.brand-text b {
  display: block; font-size: 16px; font-weight: var(--fw-bold); letter-spacing: .02em; line-height: 1.3;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text small { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; white-space: nowrap; }
/* 左上角的"添加监控链接"：和云速文档的"新建文档"一样，一整条渐变按钮 */
.side-add { flex: none; margin: 2px 14px 10px; height: 40px; border-radius: var(--r-md); }

.beat {
  margin: 0 14px 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px;
  border-radius: var(--r-md); background: var(--tile); border: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: var(--fw-medium); color: var(--text-2); flex: none;
}
.beat > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.beat em { font-style: normal; font-size: 12px; font-weight: var(--fw-semi); color: var(--green-600); background: rgba(34, 197, 94, .1); padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.beat.bad em { color: var(--rose-600); background: rgba(239, 68, 68, .1); }

.ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; display: inline-block; }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.9s cubic-bezier(0, 0, .2, 1) infinite; }
.ping.bad { background: var(--rose); }
@keyframes ping { 75%, 100% { transform: scale(2.7); opacity: 0; } }

.nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 2px 10px 10px; }
.nav-group { padding: 14px 12px 6px; font-size: 12px; font-weight: var(--fw-semi); color: var(--text-4); letter-spacing: .04em; white-space: nowrap; }
.nav a {
  display: flex; align-items: center; gap: 10px; height: 40px; margin: 1px 0; padding: 0 12px; border-radius: var(--r-md);
  color: var(--text-2); font-size: 14px; font-weight: var(--fw-medium); position: relative; transition: background .15s, color .15s;
}
.nav a .it { width: 20px; height: 20px; display: grid; place-items: center; flex: none; color: var(--text-4); transition: color .15s, transform .3s var(--spring); }
.nav a .it svg { width: 18px; height: 18px; }
.nav a .lb { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a:hover .it { color: var(--text-2); transform: scale(1.06); }
.nav a.on { background: var(--brand-50); color: var(--brand-600); font-weight: var(--fw-semi); }
.nav a.on .it { color: var(--brand-500); }
/* 选中的一项左边有一道渐变竖条 */
.nav a.on::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
@keyframes glow { 50% { box-shadow: 0 0 2px var(--brand-500); opacity: .65; } }

.me-card { padding: 12px 14px; border-top: 1px solid var(--hair); display: flex; align-items: center; gap: 10px; flex: none; }
.avatar {
  position: relative; width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: var(--fw-bold); font-size: 13px; text-transform: uppercase;
}
.avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.me-card .who { flex: 1; min-width: 0; }
.me-card .who b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink); }
.me-card .who b em { font-style: normal; font-size: 11.5px; font-weight: var(--fw-semi); color: var(--brand-600); background: var(--brand-50); padding: 0 6px; border-radius: 5px; line-height: 18px; }
.me-card .who span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card form { margin: 0; }

.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--r-md); flex: none; position: relative; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text-3); box-shadow: var(--sh-card);
  transition: color .15s, background .15s, border-color .15s, transform .15s; padding: 0;
}
.icon-btn:hover { color: var(--text); background: #f8fafc; border-color: #cbd5e1; }
.icon-btn:active { transform: scale(.94); }
.icon-btn.flat { background: transparent; border-color: transparent; box-shadow: none; }
.icon-btn.flat:hover { background: var(--hover); color: var(--text); border-color: transparent; }
.icon-btn .dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 2px #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; height: var(--head-h); display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: var(--glass-bar); border-bottom: 1px solid var(--hair); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.crumb { min-width: 0; }
.crumb b { display: block; max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: var(--fw-bold); color: var(--ink); }
.clock {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-sm); white-space: nowrap;
  font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: var(--fw-medium); color: var(--text-3); background: var(--muted);
}
.clock svg { color: var(--brand-500); width: 14px; height: 14px; }
.top .gap { flex: 1; }
.top .btn { height: 34px; padding: 0 12px; font-size: 13px; }
.top .icon-btn { width: 34px; height: 34px; }
.top-search { position: relative; width: 240px; }
.top-search svg { position: absolute; left: 11px; top: 50%; margin-top: -8px; width: 16px; height: 16px; color: var(--text-4); pointer-events: none; }
.top-search input {
  width: 100%; height: 34px; padding: 0 12px 0 34px; border-radius: var(--r-md); border: 1px solid transparent;
  background: var(--muted); font-size: 13px; outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.top-search input::placeholder { color: var(--text-4); }
.top-search input:focus { background: #fff; border-color: var(--brand-400); box-shadow: var(--ring); }

.view { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 24px 28px 56px; }
.mtop, .tabbar { display: none; }

/* 页面加载时顶部的一条细进度条 */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.progress.go { opacity: 1; animation: progress 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes progress { 0% { transform: scaleX(0); } 20% { transform: scaleX(.45); } 100% { transform: scaleX(.92); } }

/* ---------- 进场动画：带 .rise 的块依次浮上来 ---------- */

.fade { animation: fade .4s ease both; }
@keyframes fade { from { opacity: 0; } }

/* ---------- 页面标题 ---------- */

.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.phead h1 { font-size: 22px; font-weight: var(--fw-bold); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phead p { margin: 6px 0 0; color: var(--text-3); font-size: 13.5px; max-width: 760px; }
.phead-a { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ================= 卡片 ================= */

.card { position: relative; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-xl); box-shadow: var(--sh-card); }
.card.pad { padding: 20px 22px; }
.card.lift { transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
@media (hover: hover) {
  .card.lift:hover { transform: translateY(-2px); box-shadow: var(--sh-hover); border-color: #dde4ee; }
}
.card + .card { margin-top: 16px; }
.chead { display: flex; align-items: center; gap: 10px; padding: 16px 20px 6px; flex-wrap: wrap; }
.chead h2 { font-size: 15px; font-weight: var(--fw-semi); display: flex; align-items: center; gap: 10px; }
.chead .sub { font-size: 13px; color: var(--text-3); }
.chead .more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: var(--fw-medium); color: var(--brand-600); white-space: nowrap; }
.chead .more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.chead .more:hover svg { transform: translateX(3px); }
.cbody { padding: 8px 20px 18px; }
.ctile { width: 28px; height: 28px; border-radius: var(--r-sm); display: inline-grid; place-items: center; flex: none; background: var(--brand-50); color: var(--brand-500); }
.ctile svg { width: 16px; height: 16px; }
.ctile.sky { background: var(--sky-50); color: var(--sky-600); }
.ctile.green { background: var(--green-50); color: var(--green-600); }
.ctile.amber { background: var(--amber-50); color: var(--amber-600); }
.ctile.violet { background: var(--violet-50); color: var(--violet-600); }
.ctile.rose { background: var(--rose-50); color: var(--rose-600); }
.ctile.indigo { background: var(--indigo-50); color: var(--indigo-600); }
.ctile.teal { background: var(--teal-50); color: var(--teal-600); }
.section { margin-top: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 18px; align-items: start; }

/* 卡片里面的小块：浅灰底 */
.tile { background: var(--tile); border-radius: var(--r-lg); }

/* ================= 按钮 =================
   普通按钮：白底细线，悬停变浅灰（不变色，免得和主按钮抢）；主按钮：渐变；浅色按钮：主色的淡底；文字按钮：没有边框 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: #fff; color: var(--text); box-shadow: var(--sh-card);
  font-size: 13.5px; font-weight: var(--fw-medium); white-space: nowrap; cursor: pointer; text-decoration: none; position: relative; overflow: hidden;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s, filter .15s, opacity .2s;
}
.btn svg { width: 16px; height: 16px; stroke-width: 1.9; }
.btn:hover { background: #f8fafc; border-color: #cbd5e1; color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn.primary { color: #fff; border-color: transparent; background: var(--brand); box-shadow: var(--sh-brand), inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn.primary:hover { color: #fff; background: var(--brand); filter: brightness(1.06); box-shadow: 0 1px 2px rgba(62, 103, 241, .24), 0 10px 22px -8px rgba(79, 124, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn.soft { background: var(--brand-50); border-color: transparent; color: var(--brand-600); box-shadow: none; }
.btn.soft:hover { background: var(--brand-100); border-color: transparent; color: var(--brand-700); }
.btn.danger { color: var(--rose-600); background: var(--rose-50); border-color: transparent; box-shadow: none; }
.btn.danger:hover { background: var(--rose-100); color: var(--rose-600); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); box-shadow: none; }
.btn.ghost:hover { background: var(--hover); border-color: transparent; color: var(--ink); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: var(--r-sm); gap: 5px; }
.btn.sm svg { width: 14px; height: 14px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: var(--r-lg); }
.btn.block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .7; pointer-events: none; }
.btn.is-busy::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite; flex: none;
}
.btn.is-busy svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; margin: 0; }

/* ================= 表单 ================= */

.form { max-width: 860px; }
.fset + .fset { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line); }
.fset > h3 { font-size: 15px; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.fset > .desc { color: var(--text-3); font-size: 13px; margin: 4px 0 16px; }
.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; font-size: 13px; font-weight: var(--fw-semi); color: var(--text-2); margin-bottom: 7px; }
.field .help { font-size: 12.5px; color: var(--text-3); margin-top: 6px; line-height: 1.55; }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--line);
  background-color: #fff; color: var(--text); font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.select {
  padding-right: 32px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:hover, .select:hover, .textarea:hover { border-color: #cbd5e1; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-400); box-shadow: var(--ring); }
.select.sm { height: 32px; font-size: 13px; border-radius: var(--r-sm); }
.input.num-in { width: 120px; font-family: var(--num); font-variant-numeric: tabular-nums; }
.unit { display: inline-flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 13px; flex-wrap: wrap; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.sub-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--text-3); }

/* 选项卡片（单选、多选都用它）：选中时线变成主色、底色是主色的淡底 */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.opt {
  position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-lg); cursor: pointer;
  background: #fff; border: 1px solid var(--line); transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.opt:hover { border-color: #cbd5e1; background: #fcfdfe; }
.opt:active { transform: scale(.99); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mk {
  width: 18px; height: 18px; border-radius: 5px; border: 1.6px solid #cbd5e1; background: #fff; flex: none; margin-top: 2px;
  display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.opt .mk svg { width: 12px; height: 12px; stroke-width: 3; color: #fff; transform: scale(0); transition: transform .3s var(--spring); }
.opt input[type="radio"] + .mk { border-radius: 50%; }
.opt input:checked + .mk { background: var(--brand); border-color: transparent; box-shadow: 0 2px 6px -1px rgba(79, 124, 255, .5); }
.opt input:checked + .mk svg { transform: scale(1); }
.opt input[type="radio"] + .mk::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .3s var(--spring); }
.opt input[type="radio"]:checked + .mk::after { transform: scale(1); }
.opt input[type="radio"] + .mk svg { display: none; }
.opt:has(input:checked) { border-color: var(--brand-400); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand-400) inset; }
.opt:has(input:disabled) { cursor: default; opacity: .7; }
.opt:has(input:focus-visible) { box-shadow: var(--ring); }
.opt .tx { min-width: 0; font-size: 14px; font-weight: var(--fw-medium); color: var(--text); line-height: 1.5; }
.opt .tx small { display: block; font-size: 12.5px; font-weight: var(--fw-normal); color: var(--text-3); margin-top: 1px; }
.opts.inline { display: flex; flex-wrap: wrap; }
.opts.inline .opt { padding: 8px 14px; align-items: center; }
.opts.inline .opt .mk { margin-top: 0; }

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; font-weight: var(--fw-medium); color: var(--text-2); user-select: none; position: relative; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .tr { width: 38px; height: 22px; border-radius: 11px; background: #cbd5e1; position: relative; flex: none; transition: background .2s; }
.switch .tr::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: transform .3s var(--spring);
}
.switch input:checked + .tr { background: var(--brand); }
.switch input:checked + .tr::after { transform: translateX(16px); }
.switch input:focus-visible + .tr { box-shadow: var(--ring); }
.field > label.switch { display: inline-flex; margin-bottom: 0; font-weight: var(--fw-medium); color: var(--text-2); }

/* ---------- 分段切换：浅灰的槽 + 白色滑块（滑块会跟着滑） ---------- */

.seg {
  position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-lg); max-width: 100%;
  background: var(--track); overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg > a, .seg > button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 9px; flex: none;
  border: 0; background: none; color: var(--text-3); font-size: 13px; font-weight: var(--fw-medium); white-space: nowrap; cursor: pointer; transition: color .2s;
}
.seg > a svg, .seg > button svg { width: 15px; height: 15px; }
.seg > a:hover, .seg > button:hover { color: var(--text); }
.seg > .on, .seg > .on:hover { color: var(--ink); font-weight: var(--fw-semi); }
.seg > .on svg { color: var(--brand-500); }
.seg > a b { font-family: var(--num); font-size: 11.5px; font-weight: var(--fw-semi); color: var(--text-3); background: rgba(15, 23, 42, .06); padding: 0 6px; border-radius: 6px; line-height: 17px; }
.seg > .on b { color: var(--brand-600); background: var(--brand-50); }
.seg .knob { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .06); transition: transform .45s var(--spring), width .45s var(--spring); }
.seg:not(.ready) > .on { background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.seg.sm > button { height: 28px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.seg.sm .knob { border-radius: 8px; }

/* ================= 标签、角标、运营商 ================= */

.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; white-space: nowrap;
  font-size: 12px; font-weight: var(--fw-semi); line-height: 1; border: 1px solid transparent; vertical-align: middle;
  background: var(--muted); color: var(--text-2);
}
.tag svg { width: 13px; height: 13px; stroke-width: 2; color: var(--text-4); }
.tag.green { background: var(--green-50); color: var(--green-600); }
.tag.rose { background: var(--rose-50); color: var(--rose-600); }
.tag.amber { background: var(--amber-50); color: var(--amber-700); }
.tag.sky { background: var(--sky-50); color: var(--sky-600); }
.tag.violet { background: var(--violet-50); color: var(--violet-600); }
.tag.brand { background: var(--brand-50); color: var(--brand-600); }
.tag.indigo { background: var(--indigo-50); color: var(--indigo-600); }
.tag:is(.green, .rose, .amber, .sky, .violet, .brand, .indigo) svg { color: currentColor; }
.tag.line { background: #fff; border-color: var(--line); color: var(--text-2); }
.tag .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; flex: none;
  background: var(--rose); color: #fff; font-family: var(--num); font-size: 11px; font-weight: var(--fw-bold); line-height: 1;
}
/* 运营商：只有小圆点带颜色，字是中性的 */
.op { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-semi); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.op::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--text-4)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #94a3b8) 16%, transparent); }
.op.yd { --c: var(--op-yd); }
.op.lt { --c: var(--op-lt); }
.op.dx { --c: var(--op-dx); }
.op.gd { --c: var(--op-gd); }

/* 信号格 */
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sig i { width: 3.5px; border-radius: 2px; background: #e2e8f0; }
.sig i:nth-child(1) { height: 5px; }
.sig i:nth-child(2) { height: 8px; }
.sig i:nth-child(3) { height: 11px; }
.sig i:nth-child(4) { height: 14px; }
.sig.s4 i { background: var(--green); }
.sig.s2 i:nth-child(-n+2) { background: var(--amber); }
.sig.s1 i:nth-child(1) { background: var(--rose); }

/* ================= 提示条：白底细线；有问题的是很淡的黄、红底 ================= */

.flash { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.note {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-lg); font-size: 14px; line-height: 1.6;
  background: #fff; border: 1px solid var(--hair); color: var(--text); box-shadow: var(--sh-card);
}
.note > .ni { width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; background: var(--brand-50); color: var(--brand-500); }
.note > .ni svg { width: 15px; height: 15px; stroke-width: 2; }
.note > .nt { flex: 1; min-width: 0; padding-top: 2px; }
.note > .nt b { font-weight: var(--fw-semi); }
.note > .nx { margin: -4px -6px -4px 0; }
.note.ok { background: #f6fdf8; border-color: #cdeed8; }
.note.ok > .ni { background: var(--green-100); color: var(--green-600); }
.note.warn { background: #fffcf2; border-color: #f7e2ae; }
.note.warn > .ni { background: var(--amber-100); color: var(--amber-600); }
.note.bad { background: #fff7f7; border-color: #f9cfcf; }
.note.bad > .ni { background: var(--rose-100); color: var(--rose-600); }
.flash .note:nth-child(2) { animation-delay: .06s; }
.note.gone { animation: note-out .3s ease forwards; }
@keyframes note-out { to { opacity: 0; transform: translateY(-6px); height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; } }

/* ================= 空状态 ================= */

.empty { text-align: center; padding: 44px 20px; color: var(--text-3); }
.empty .ei {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-500);
  animation: bob 3.6s ease-in-out infinite;
}
.empty .ei svg { width: 28px; height: 28px; }
.empty h3 { font-size: 16px; margin-bottom: 6px; }
.empty p { margin: 0 auto; max-width: 440px; font-size: 13.5px; }
.empty .btn { margin-top: 16px; }
@keyframes bob { 50% { transform: translateY(-5px); } }

/* ================= 名称-值 ================= */

.kv { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--text-3); font-weight: var(--fw-medium); }
.kv dd { margin: 0; color: var(--text); word-break: break-all; min-width: 0; }

/* ================= 列表行 ================= */

.rows { list-style: none; margin: 0; padding: 4px 10px 10px; }
.rows > a {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-lg); color: var(--text); position: relative;
  transition: background .15s;
}
.rows > a + a::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; background: var(--line-2); }
.rows > a:hover { background: var(--tile); }
.rows > a:hover::before, .rows > a:hover + a::before { opacity: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rows .t { font-size: 14.5px; font-weight: var(--fw-semi); color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.rows .t .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rows .s { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.rows .chev { width: 16px; height: 16px; color: var(--text-4); transition: transform .25s var(--ease), color .15s; }
.rows > a:hover .chev { transform: translateX(3px); color: var(--text-2); }

/* ================= 表格（电脑上用；窄屏每行变成卡片） ================= */

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 12.5px; font-weight: var(--fw-semi); color: var(--text-3); padding: 11px 14px; white-space: nowrap;
  background: var(--tile); border-bottom: 1px solid var(--line-2);
}
.tbl th:first-child { border-top-left-radius: var(--r-lg); }
.tbl th:last-child { border-top-right-radius: var(--r-lg); }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: var(--tile); }
.tbl .r { text-align: right; }
.tbl .sm { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* ================= 翻页 ================= */

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.pager .info { font-size: 13px; color: var(--text-3); }
.pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pages a, .pages span {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: var(--r-sm); display: inline-grid; place-items: center; font-family: var(--num);
  font-size: 13.5px; font-weight: var(--fw-medium); color: var(--text-2); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-card);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.pages a:hover { background: #f8fafc; border-color: #cbd5e1; color: var(--ink); }
.pages a:active { transform: scale(.95); }
.pages .on { color: #fff; background: var(--brand); border-color: transparent; box-shadow: var(--sh-brand); }
.pages .gap { background: none; border: 0; box-shadow: none; min-width: 20px; padding: 0; color: var(--text-4); }
.pages .dis { opacity: .45; pointer-events: none; }
.pages svg { width: 16px; height: 16px; }
.pager .per { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.pager .per .select { width: auto; height: 34px; }
.mpager { display: none; }
.mpager .mid { position: relative; }
.mpager .mid select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }

/* ================= 弹出的东西：提示、确认框、抽屉、底部弹层、小菜单 ================= */

/* 轻提示：屏幕上方中间一条深色的胶囊（和云速文档一样），成功是深绿、失败是深红 */
.toasts { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; padding: 9px 18px 9px 10px; border-radius: 24px; max-width: min(460px, 90vw);
  background: rgba(15, 23, 42, .92); color: #fff; box-shadow: var(--sh-lg); font-size: 13.5px; font-weight: var(--fw-medium);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: toast-in .3s var(--spring) both; pointer-events: auto;
}
.toast .ti { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .16); color: #fff; }
.toast .ti svg { width: 13px; height: 13px; stroke-width: 2.6; }
.toast.ok { background: rgba(21, 94, 52, .95); }
.toast.bad { background: rgba(153, 27, 27, .95); }
.toast.out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-20px) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-20px) scale(.9); } }

.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* 确认框：白色、圆角 20px，图标、标题、说明都居中，两个按钮一样宽 */
.dialog {
  position: fixed; left: 50%; top: 50%; z-index: 70; width: min(420px, calc(100vw - 32px)); padding: 30px 28px 24px; border-radius: 20px; text-align: center;
  background: #fff; box-shadow: var(--sh-pop); transform: translate(-50%, -46%) scale(.94); opacity: 0;
  pointer-events: none; transition: transform .35s var(--spring), opacity .25s;
}
.dialog.show { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.dialog .di { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--rose-50); color: var(--rose-600); }
.dialog .di svg { width: 28px; height: 28px; }
.dialog h3 { font-size: 18px; font-weight: var(--fw-bold); margin-bottom: 6px; }
.dialog p { color: var(--text-3); font-size: 13.5px; margin: 0 0 22px; }
.dialog .btns { justify-content: center; flex-wrap: nowrap; }
.dialog .btns .btn { flex: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 65; width: min(620px, 100vw); display: flex; flex-direction: column;
  background: var(--bg); border-left: 1px solid var(--hair); box-shadow: var(--sh-pop);
  transform: translateX(105%); transition: transform .4s var(--ease);
}
.drawer.show { transform: none; }
.drawer-h { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--hair); flex: none; background: #fff; }
.drawer-h h3 { flex: 1; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-b { flex: 1; overflow-y: auto; padding: 18px 20px 30px; overscroll-behavior: contain; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 86vh; display: flex; flex-direction: column;
  padding: 8px 0 calc(16px + var(--safe-b)); border-radius: 20px 20px 0 0; background: #fff; box-shadow: var(--sh-pop);
  transform: translateY(105%); transition: transform .45s var(--ease);
}
.sheet.show { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #e2e8f0; margin: 4px auto 8px; flex: none; }
.sheet h3 { font-size: 16px; text-align: center; padding: 4px 20px 12px; }
.sheet .sb { overflow-y: auto; padding: 0 18px; }

/* 小菜单："更多"按钮点开，点别处或按 Esc 收起 */
.pop-wrap { position: relative; }
.pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 208px; padding: 6px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--hair); box-shadow: var(--sh-lg);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity .15s, transform .2s var(--ease);
}
.pop.show { opacity: 1; transform: none; pointer-events: auto; }
.pop form { margin: 0; }
.pop-i {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--text); font-size: 13.5px; font-weight: var(--fw-medium); text-align: left; cursor: pointer; transition: background .15s;
}
.pop-i:hover { background: var(--tile); color: var(--ink); }
.pop-i svg { width: 16px; height: 16px; color: var(--text-3); }
.pop-i > span { flex: 1; }
.pop-i.danger, .pop-i.danger svg { color: var(--rose-600); }
.pop-i.danger:hover { background: var(--rose-50); }
.pop-i .sw { width: 30px; height: 18px; border-radius: 9px; background: #cbd5e1; position: relative; flex: none; transition: background .2s; }
.pop-i .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .25); transition: transform .25s var(--spring); }
.pop-i[aria-pressed="true"] .sw { background: var(--brand); }
.pop-i[aria-pressed="true"] .sw::after { transform: translateX(12px); }
.pop-i:disabled { opacity: .5; cursor: default; }

.skel { background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 37%, #eef1f6 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--r-lg); }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* 小折线图：打开时一笔画出来 */
.spark { display: block; overflow: visible; }
.spark .ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s var(--ease) .3s forwards; }
.spark .ar { opacity: 0; animation: fade .9s ease 1s forwards; }
.spark .pt { opacity: 0; animation: fade .4s ease 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ================= 首页 ================= */

/* 问候卡：白到浅蓝的渐变，左边一道渐变竖条，右上角一团淡淡的光 */
.hero {
  padding: 24px 26px 24px 30px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(135deg, #fff 0%, #f5f8ff 100%); border-color: var(--hair); border-radius: 20px;
}
.hero::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); pointer-events: none; }
.hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(108, 92, 231, .12), rgba(79, 124, 255, .06) 45%, transparent 70%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-pills { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: var(--fw-semi);
  background: var(--brand-50); color: var(--brand-600); white-space: nowrap;
}
.pill.ok { color: var(--green-600); background: var(--green-50); }
.pill.bad { color: var(--rose-600); background: var(--rose-50); }
.hero-date { font-size: 13px; color: var(--text-3); font-weight: var(--fw-medium); }
.hero h1 { font-size: 26px; font-weight: var(--fw-bold); letter-spacing: -.01em; }
.hero h1 .wave { display: inline-block; transform-origin: 70% 80%; animation: wave 2.4s ease-in-out 1s 2; }
@keyframes wave { 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40%, 100% { transform: none; } }
.hero p { margin: 8px 0 0; color: var(--text-3); font-size: 14px; }
.hero-r {
  min-width: 260px; padding: 14px 16px; display: grid; gap: 9px; font-size: 13.5px;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-card);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-r > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--text-2); }
.hero-r span { display: inline-flex; align-items: center; gap: 7px; }
.hero-r span svg { width: 16px; height: 16px; color: var(--text-4); }
.hero-r b { font-family: var(--num); font-variant-numeric: tabular-nums; color: var(--ink); }
.hero-r .ok { color: var(--green-600); }
.hero-r .bad { color: var(--rose-600); }
.alerts { display: grid; gap: 10px; margin-top: 16px; }

/* 四个数字：白卡片，左边一道彩色的短竖条，图标是浅色底 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.stat { display: block; padding: 18px 18px 14px 20px; color: var(--text); overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 20px; height: 22px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bar, var(--brand-500)); }
.stat:has(.g-sky) { --bar: var(--sky-500); }
.stat:has(.g-green) { --bar: var(--green); }
.stat:has(.g-rose) { --bar: var(--rose); }
.stat:has(.g-amber) { --bar: var(--amber); }
.stat:hover { color: var(--text); }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st-k { font-size: 13px; font-weight: var(--fw-semi); color: var(--text-3); }
.st-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; transition: transform .45s var(--spring); }
.st-ic svg { width: 19px; height: 19px; stroke-width: 2; }
.stat:hover .st-ic { transform: rotate(-8deg) scale(1.06); }
.g-sky { background: var(--sky-50); color: var(--sky-600); }
.g-green { background: var(--green-50); color: var(--green-600); }
.g-rose { background: var(--rose-50); color: var(--rose-600); }
.g-amber { background: var(--amber-50); color: var(--amber-600); }
.st-n { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.st-n b { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 32px; font-weight: var(--fw-bold); color: var(--ink); line-height: 1; letter-spacing: -.01em; }
.st-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-3); min-height: 40px; }
.st-f > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-f .spark { width: 84px; height: 26px; flex: none; }

/* 电脑上左边导航已经有这些入口了，"常用"只在手机上显示（手机没有左边导航） */
.qa { margin-top: 16px; display: none; }
.qa-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; padding: 10px 20px 20px; }
.qa-i {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 6px 12px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; font-weight: var(--fw-medium); text-align: center;
  transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s, color .2s;
}
.qa-i:hover { border-color: #dde4ee; color: var(--ink); box-shadow: var(--sh-hover); transform: translateY(-2px); }
.qa-i:active { transform: scale(.96); }
.qa-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: linear-gradient(135deg, var(--g1), var(--g2)); transition: transform .45s var(--spring); }
.qa-ic svg { width: 21px; height: 21px; stroke-width: 2; }
.qa-i:hover .qa-ic { transform: scale(1.1) rotate(-6deg); }
.qa-i .badge { position: absolute; top: 8px; right: calc(50% - 32px); }

.home-split { margin-top: 16px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px rgba(79, 124, 255, .15); animation: glow 2s infinite; flex: none; }

/* 动态（首页和记录页共用）：白色的行、浅浅的线，悬停时浮起来一点 */
.feed { display: grid; gap: 10px; padding: 8px 20px 20px; }
.fd {
  display: flex; align-items: flex-start; gap: 14px; padding: 13px 16px; border-radius: var(--r-lg); min-width: 0;
  background: #fff; border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s;
}
.fd:hover { border-color: #dde4ee; box-shadow: var(--sh-hover); }
.fd-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--green-50); color: var(--green-600); }
.fd-ic svg { width: 17px; height: 17px; stroke-width: 2.2; }
.fd.down .fd-ic { background: var(--rose-50); color: var(--rose-600); }
.fd.reup .fd-ic { background: var(--sky-50); color: var(--sky-600); }
.fd.chg .fd-ic { background: var(--amber-50); color: var(--amber-600); }
.fd-b { flex: 1; min-width: 0; }
.fd-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fd-t b, .fd-t a { font-size: 14.5px; font-weight: var(--fw-semi); color: var(--ink); min-width: 0; word-break: break-all; }
.fd-t a:hover { color: var(--brand-600); }
/* 卡名后面的商品 ID（1.7.32，名字相似、重复的卡分得清） */
.fd-id, .pc-id { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: var(--fw-medium); color: var(--text-3); white-space: nowrap; }
.fd-m { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 5px; font-size: 13px; color: var(--text-3); }
.fd-m span { display: inline-flex; align-items: center; gap: 5px; }
.fd-m svg { width: 14px; height: 14px; color: var(--text-4); }
.fd-m b { color: var(--text); font-weight: var(--fw-semi); }
.fd-chg { margin-top: 8px; display: grid; gap: 6px; }
.fd-chg > div {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 11px; border-radius: var(--r-sm); font-size: 13px;
  background: #fffcf2; border: 1px solid #f7e6b8;
}
.fd-chg .k { color: var(--text-3); font-weight: var(--fw-medium); }
.fd-chg del { color: var(--text-4); }
.fd-chg ins { text-decoration: none; color: var(--amber-700); font-weight: var(--fw-semi); }
.fd-chg svg { width: 14px; height: 14px; color: var(--amber-600); }
.fd time { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: var(--fw-medium); color: var(--text-4); white-space: nowrap; padding-top: 2px; }
.feed .empty { padding: 30px 10px; }

/* 首页右边：店铺列表 */
.shop-list { display: grid; gap: 8px; padding: 6px 16px 12px; }
.shop-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-lg); color: var(--text);
  background: #fff; border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s, transform .2s var(--ease);
}
.shop-row:hover { border-color: var(--hc, #dde4ee); color: var(--text); box-shadow: var(--sh-hover); transform: translateX(2px); }
.shop-row .grow { flex: 1; min-width: 0; }
.shop-row .t { display: flex; align-items: center; gap: 7px; min-width: 0; }
.shop-row .t b { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.shop-row:hover .t b { color: var(--hc2, var(--brand-600)); }
.shop-row .s { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-row .v { text-align: right; flex: none; }
.shop-row .v b { display: block; font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 19px; font-weight: var(--fw-bold); color: var(--ink); line-height: 1.15; }
.shop-row .v span { font-size: 12px; font-weight: var(--fw-semi); white-space: nowrap; }
.sh-av { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: var(--fw-bold); font-size: 15px; flex: none; }
.p-h172 { background: linear-gradient(135deg, #38bdf8, #3b82f6); }
.p-haoyi { background: linear-gradient(135deg, #fbbf24, #fb7185); }
.p-linxi { background: linear-gradient(135deg, #34d399, #14b8a6); }
.p-kaye { background: linear-gradient(135deg, #c084fc, #ec4899); }
.st-ok { color: var(--green-600); }
.st-warn { color: var(--amber-600); }
.st-bad { color: var(--rose-600); }
.st-off { color: var(--text-4); }
.card-foot { padding: 4px 16px 16px; }

/* 首页右边：AI 小卡片 */
.ai-mini { overflow: hidden; }
.ai-mini::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; background: linear-gradient(180deg, rgba(108, 92, 231, .06), transparent); pointer-events: none; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.ai-av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--ai); flex: none; box-shadow: 0 6px 14px -6px rgba(79, 124, 255, .6); }
.ai-av svg { width: 18px; height: 18px; stroke-width: 2; }
.ai-av.lg { width: 56px; height: 56px; border-radius: 16px; }
.ai-av.lg svg { width: 28px; height: 28px; }
.asks { display: grid; gap: 8px; padding: 6px 16px 12px; margin: 0; }
.ask {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px; border-radius: var(--r-md); text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line-2); color: var(--text); font-size: 13.5px; font-weight: var(--fw-medium);
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.ask svg { width: 15px; height: 15px; color: var(--brand-500); flex: none; }
.ask span { flex: 1; min-width: 0; }
.ask .go { color: var(--text-4); transition: transform .25s var(--ease), color .15s; }
.ask:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.ask:hover .go { transform: translateX(3px); color: var(--brand-500); }
.ask:active { transform: scale(.98); }
.ask-box { position: relative; margin: 2px 16px 16px; }
.ask-box input { width: 100%; height: 42px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; padding: 0 48px 0 14px; outline: none; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.ask-box input:focus { border-color: var(--brand-400); box-shadow: var(--ring); }
.ask-box button { position: absolute; right: 5px; top: 5px; width: 32px; height: 32px; border-radius: var(--r-sm); border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--sh-brand); transition: transform .15s, filter .15s; }
.ask-box button:hover { filter: brightness(1.06); }
.ask-box button:active { transform: scale(.9); }
.ask-box button svg { width: 16px; height: 16px; }

/* ================= 监控站点 ================= */

.shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.shop { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.sh-top { display: flex; align-items: flex-start; gap: 12px; }
.sh-top .grow { flex: 1; min-width: 0; }
.sh-top h3 { font-size: 15.5px; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-top h3 a { color: var(--ink); }
.sh-top h3 a:hover { color: var(--brand-600); }
.health { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: var(--fw-semi); white-space: nowrap; }
.health svg { width: 15px; height: 15px; }
.health.ok { color: var(--green-600); }
.health.warn { color: var(--amber-600); }
.health.bad { color: var(--rose-600); }
.health.off { color: var(--text-3); }
.sh-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sh-num b { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 34px; font-weight: var(--fw-bold); line-height: 1; color: var(--ink); }
.sh-num span { font-size: 13px; color: var(--text-3); font-weight: var(--fw-medium); }
.sh-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.shop .spark { width: 100%; height: 40px; }
.sh-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); padding-top: 12px; border-top: 1px solid var(--line-2); }
.sh-foot span { display: inline-flex; align-items: center; gap: 5px; }
.sh-foot svg { width: 14px; height: 14px; color: var(--text-4); }
.sh-act { display: flex; gap: 8px; }
.sh-act > * { flex: 1; }
.sh-act .btn { width: 100%; }
.shop.add {
  align-items: center; justify-content: center; text-align: center; color: var(--text-3); border: 1.5px dashed #cdd7e6;
  background: rgba(255, 255, 255, .55); min-height: 260px; box-shadow: none;
}
.shop.add:hover { color: var(--brand-600); background: #fff; border-color: var(--brand-400); }
.shop.add .ei { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: var(--sh-brand); transition: transform .45s var(--spring); }
.shop.add:hover .ei { transform: rotate(90deg) scale(1.06); }
.shop.add b { color: var(--ink); font-size: 15px; }

/* 站点详情 */
.site-top { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.site-state { padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.site-state .big { display: flex; align-items: baseline; gap: 10px; }
.site-state .big b { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 44px; font-weight: var(--fw-bold); line-height: 1; color: var(--ink); }
.site-state .big span { color: var(--text-3); font-weight: var(--fw-medium); }
.site-state .foot { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); padding-top: 12px; border-top: 1px solid var(--line-2); }
.pause-box { margin-bottom: 16px; }

/* ================= 商品 ================= */

/* 资料抓取进度（1.7.3，用户 2026-10-03 从演示页里选的 B）：和分类放在同一行的右边，一行灰色小字，没有底色、没有框。
   小圆点（都抓完了是绿的；正在抓是橙色、一闪一闪），"资料已更新 224/224 · 27 分钟前更新 · 重新抓取"，最后的是文字按钮 */
.toolbar.cat-bar { justify-content: space-between; flex-wrap: wrap; row-gap: 8px; }
.cat-bar > .seg { flex: none; max-width: 100%; }
.fetch { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.fetch .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); flex: none; }
.fetch.run .dot { background: var(--brand-500); box-shadow: 0 0 0 3px rgba(242, 154, 88, .2); animation: glow 2s infinite; }
.fetch b { font-family: var(--num); font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: var(--fw-semi); }
.fetch [data-p-total] { font-family: var(--num); font-variant-numeric: tabular-nums; }
.fetch .sep { color: var(--text-4); }
.fetch form { margin: 0; display: inline-flex; }
.fetch .lnk { display: inline-flex; align-items: center; gap: 4px; padding: 0 2px; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--brand-700); font-weight: var(--fw-medium); cursor: pointer; }
.fetch .lnk svg { width: 13px; height: 13px; }
.fetch .lnk:hover { color: var(--brand-600); text-decoration: underline; }
.fetch .lnk.is-busy { color: var(--text-4); pointer-events: none; }

.filters { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
/* 商品页的搜索和筛选（1.7.4，用户 2026-10-03 从演示页里选的 B）：一行放下，没有白色大框。
   左边搜索框，右边一串圆角小下拉，最后是搜索按钮；都是白底、细细一圈边，选了的下拉变成淡橙色。只管商品页（上下架和变动页还用原来的 .filters 卡片） */
.filters.pf-bar { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0; background: none; border: 0; box-shadow: none; }
/* 放得下就一行。右边那一串（.pf-tail：下拉、年龄、搜索按钮）和搜索框一行放不下时，整串换到下一行，搜索框自己占一行；
   下拉不往窄里挤（以前挤得"河南省"只露一半）。下拉按最长的选项定宽，点开的列表和框一样宽（1.7.5 按选中的那项定宽，列表比框宽，用户说不协调） */
.pf-q { flex: 1 1 200px; min-width: 200px; }
.pf-tail { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.pf-q .input, .pf-sel, .pf-age { height: 40px; border-radius: 999px; background-color: #fff; border-color: transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.pf-q .input:focus, .pf-sel:focus, .pf-age:focus { box-shadow: var(--ring); border-color: var(--brand-400); }
.pf-more { display: contents; }
.pf-sel { width: auto; min-width: 0; max-width: 220px; flex: none; padding-left: 14px; font-size: 13.5px; color: var(--text-2); text-overflow: ellipsis; }
.pf-sel.set, .pf-age.set { background-color: var(--brand-50); color: var(--brand-700); box-shadow: 0 0 0 1px var(--brand-200); }
.pf-age { width: 84px; flex: none; padding: 0 14px; font-size: 13.5px; }
.pf-go { height: 40px; flex: none; }
.pf-open b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand-500); color: #fff; font-family: var(--num); font-size: 11.5px; }
.f-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-row .grow { flex: 1 1 240px; min-width: 0; }
.f-lab { font-size: 13px; font-weight: var(--fw-medium); color: var(--text-3); white-space: nowrap; }
.f-row .select, .f-row .input { width: auto; min-width: 128px; height: 38px; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; margin-top: -8px; width: 16px; height: 16px; color: var(--text-4); pointer-events: none; }
.search .input { padding-left: 36px; width: 100%; }
.f-open { display: none; }
.result { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 2px 12px; font-size: 13.5px; color: var(--text-3); }
.result b { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 20px; font-weight: var(--fw-bold); color: var(--ink); }
.result .conds { display: flex; gap: 6px; flex-wrap: wrap; }
.result .clear { margin-left: auto; font-weight: var(--fw-medium); }

/* 商品卡片：电脑上固定一行 4 张（用户 2026-10-03："默认就一行4个"）；以前按宽度自动排，宽屏上一行能放五六张。
   窄一点的电脑一行 3 张、平板 2 张、手机 1 张（下面的 @media），免得卡片挤得字都看不清 */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1279px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 四家运营商各一种很淡的颜色（用户 2026-09-25 要的，照标志的颜色：移动天蓝、联通红、电信靛蓝；
   广电的标志也是蓝色，为了四家分得开用紫色，和小圆点一样）。商品页的卡片、AI 回答里的卡片、分组小标题都用它。
   --c 深色（运营商、月租、复制），--c-bg 卡片很淡的底，--c-tag 小标签的底，--c-line 边框 */
.pcard, .kc, .kg-h { --c: var(--brand-600); --c-bg: #f8faff; --c-tag: var(--brand-50); --c-line: var(--line); }
.pcard.yd, .kc.yd, .kg-h.yd { --c: #0a78c2; --c-bg: #f1f8fe; --c-tag: #e2f1fc; --c-line: #d2e6f6; }
.pcard.lt, .kc.lt, .kg-h.lt { --c: #d63030; --c-bg: #fff6f6; --c-tag: #fdeaea; --c-line: #f5d7d7; }
.pcard.dx, .kc.dx, .kg-h.dx { --c: #4f46e5; --c-bg: #f6f6ff; --c-tag: #ebebfe; --c-line: #dcdcf8; }
.pcard.gd, .kc.gd, .kg-h.gd { --c: #9038d8; --c-bg: #fbf6ff; --c-tag: #f3e8fd; --c-line: #e9dbf8; }
.pcard { padding: 16px 16px 10px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; overflow: hidden;
  border-color: var(--c-line); background: linear-gradient(180deg, var(--c-bg), #fff 70%); }
.pcard.lift:hover { border-color: color-mix(in srgb, var(--c) 32%, #fff); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 30px -18px color-mix(in srgb, var(--c) 55%, transparent); }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-name { font-size: 15px; font-weight: var(--fw-semi); color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-name:hover { color: var(--c); }
.pc-id { display: block; margin-top: -4px; }
.pc-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.pc-price b { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 28px; font-weight: var(--fw-bold); line-height: 1; color: var(--c); letter-spacing: -.01em; }
.pc-price small { font-size: 12.5px; font-weight: var(--fw-medium); color: var(--text-3); margin-right: 8px; }
.pc-price .sp { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pc-price .sp em { font-style: normal; font-size: 12px; font-weight: var(--fw-semi); color: var(--text-2); background: var(--c-tag); padding: 2px 8px; border-radius: 6px; }
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-ship { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.pc-ship svg { width: 15px; height: 15px; margin-top: 2px; color: var(--text-4); }
.pc-ship span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 9px; border-top: 1px solid var(--c-line); font-size: 12.5px; color: var(--text-3); }
.pc-foot .shop-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--fw-medium); }
.pc-foot form { margin: 0; }
/* 归类：平时看着就是一行小字，鼠标放上去才像个下拉框 */
.pc-foot .select {
  height: 28px; font-size: 12.5px; padding: 0 24px 0 8px; border-radius: var(--r-sm); width: auto; border-color: transparent; background-color: transparent;
  background-position: right 5px center; background-size: 14px; font-weight: var(--fw-medium); color: var(--text-3); box-shadow: none;
}
.pc-foot .select:hover { background-color: var(--muted); border-color: transparent; color: var(--text); }
.pc-foot .select:focus { background-color: #fff; border-color: var(--brand-400); color: var(--text); }
.pc-why { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.pcard.off { opacity: .78; --c: var(--text-3); --c-bg: var(--tile); --c-tag: var(--muted); --c-line: var(--line); }

/* ================= 商品详情 ================= */

.pd { display: flex; flex-direction: column; gap: 16px; }
.pd-head { padding: 22px 24px; }
.pd-head h1 { font-size: 21px; font-weight: var(--fw-bold); line-height: 1.4; margin: 10px 0; }
.pd-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-3); }
.pd-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pd-meta svg { width: 14px; height: 14px; color: var(--text-4); }
.pd-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px; gap: 8px; }
.fig { padding: 16px 16px 14px; border-radius: var(--r-lg); background: var(--tile); min-width: 0; }
.fig .k { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: var(--fw-semi); color: var(--text-3); }
.fig .k svg { width: 16px; height: 16px; color: var(--fc, var(--brand-500)); }
.fig .v { margin-top: 8px; font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 28px; font-weight: var(--fw-bold); line-height: 1.1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fig .v small { font-family: var(--font); font-size: 13px; font-weight: var(--fw-medium); color: var(--text-3); margin-left: 3px; }
.fig .v.txt { font-family: var(--font); font-size: 17px; white-space: normal; }
.fig .x { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.fig.f1 { --fc: var(--brand-500); background: linear-gradient(160deg, #eef3ff, #f7f9fc 70%); }
.fig.f2 { --fc: var(--sky-500); background: linear-gradient(160deg, #e9f6fe, #f7f9fc 70%); }
.fig.f3 { --fc: var(--brand2); background: linear-gradient(160deg, #f2efff, #f7f9fc 70%); }
.fig.f4 { --fc: var(--green); background: linear-gradient(160deg, #e9f9ef, #f7f9fc 70%); }
/* 抽屉只有 620px 宽，四个数字一行放不下（"18-60 岁"会被截断），改成两个一行 */
.drawer-b .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ship-sum { font-size: 16px; font-weight: var(--fw-semi); color: var(--ink); line-height: 1.6; }
.ship-src { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.ship-notes { list-style: none; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-lg); background: #fffcf2; border: 1px solid #f7e6b8; display: grid; gap: 5px; font-size: 13.5px; color: var(--amber-700); }
.ship-notes li { display: flex; gap: 8px; align-items: flex-start; }
.ship-notes svg { width: 15px; height: 15px; margin-top: 3px; flex: none; }
.pmap { margin-top: 18px; }
.pmap-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); gap: 6px; max-width: 560px; }
.pv {
  aspect-ratio: 1.18; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 12.5px; font-weight: var(--fw-semi); cursor: pointer; border: 1px solid transparent;
  white-space: nowrap; overflow: hidden; padding: 0; min-width: 0;
  background: #f1f4f9; color: #8b95a7;
  animation: pv-in .6s var(--spring) both; animation-delay: calc(var(--d, 0) * 45ms + 150ms); transition: transform .2s var(--spring), box-shadow .2s;
}
.pv.full { background: var(--brand); color: #fff; border-color: transparent; box-shadow: 0 6px 14px -6px rgba(79, 124, 255, .6); }
.pv.part { background: var(--brand-100); color: var(--brand-700); border: 1.5px dashed var(--brand-300); }
.pv:hover { transform: translateY(-2px) scale(1.06); }
.pv.sel { outline: 2.5px solid var(--amber); outline-offset: 2px; }
@keyframes pv-in { from { opacity: 0; transform: scale(.6); } }
.pmap-leg { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.pmap-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.pmap-info { margin-top: 12px; padding: 11px 14px; border-radius: var(--r-lg); background: var(--tile); font-size: 13.5px; color: var(--text-2); min-height: 44px; }
.pmap-info b { color: var(--ink); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.spec { padding: 12px 14px; border-radius: var(--r-lg); background: var(--tile); min-width: 0; }
.spec .k { font-size: 12.5px; color: var(--text-3); font-weight: var(--fw-medium); }
.spec .v { margin-top: 3px; font-size: 14px; font-weight: var(--fw-medium); color: var(--text); word-break: break-all; }
.spec.wide { grid-column: 1 / -1; }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 20px; flex-wrap: wrap; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.fold > summary .sub { font-size: 13px; color: var(--text-3); }
.fold > summary .arr { margin-left: auto; width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--muted); color: var(--text-3); transition: transform .35s var(--spring); }
.fold[open] > summary .arr { transform: rotate(180deg); }
.fold > .fb { padding: 4px 20px 20px; animation: fade .4s ease; }
.texts { display: grid; gap: 10px; }
.tx-i { border-radius: var(--r-lg); background: var(--tile); overflow: hidden; }
.tx-i > summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: var(--fw-semi); color: var(--text); }
.tx-i > summary::-webkit-details-marker { display: none; }
.tx-i > summary svg { margin-left: auto; width: 16px; height: 16px; color: var(--text-4); transition: transform .3s var(--ease); }
.tx-i[open] > summary svg { transform: rotate(90deg); }
.tx-i .tx { padding: 0 14px 14px; font-size: 13.5px; line-height: 1.8; color: var(--text-2); white-space: pre-wrap; word-break: break-all; }

/* ================= 上下架和资料变动（按日期分组的时间线） ================= */

.tl { padding: 6px 20px 20px; }
.tl-day { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; font-size: 13.5px; font-weight: var(--fw-bold); color: var(--ink); }
.tl-day:first-child { margin-top: 6px; }
.tl-day em { font-style: normal; font-weight: var(--fw-medium); color: var(--text-3); }
.tl-day::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.tl .feed { padding: 0; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { flex: 1 1 220px; min-width: 0; }
.toolbar .select { width: auto; min-width: 130px; }

/* ================= 检查日志、通知记录 ================= */

.lrow { display: grid; grid-template-columns: 118px minmax(120px, 170px) 150px 120px minmax(0, 1fr) 90px; gap: 14px; align-items: start; padding: 13px 16px; border-radius: var(--r-lg); font-size: 13.5px; color: var(--text); transition: background .15s; }
.lrow + .lrow { border-top: 1px solid var(--line-2); }
a.lrow:hover { background: var(--tile); color: var(--text); }
.lrow .tm { font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: var(--fw-semi); color: var(--text-2); white-space: nowrap; }
.lrow .sm, .lrow-sm { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.lrow .r { text-align: right; font-family: var(--num); font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.lrow .sum { min-width: 0; word-break: break-all; }
.lrow .msg { display: block; font-size: 12.5px; color: var(--rose-600); margin-top: 3px; }
.lhead { display: grid; grid-template-columns: 118px minmax(120px, 170px) 150px 120px minmax(0, 1fr) 90px; gap: 14px; padding: 12px 16px 8px; font-size: 12.5px; font-weight: var(--fw-semi); color: var(--text-3); }
.lhead .r { text-align: right; }
.list-pad { padding: 6px 8px 8px; }
.nrow { display: grid; grid-template-columns: 118px 140px 110px minmax(0, 1fr) 120px 96px; gap: 14px; align-items: start; padding: 13px 16px; font-size: 13.5px; }
.nrow + .nrow { border-top: 1px solid var(--line-2); }
.nrow summary { cursor: pointer; font-weight: var(--fw-semi); color: var(--ink); }
.nrow pre { white-space: pre-wrap; word-break: break-all; margin: 10px 0 0; padding: 12px; border-radius: var(--r-md); background: var(--tile); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.nrow .err { font-size: 12.5px; color: var(--rose-600); margin-top: 4px; }
.nrow .act { justify-self: end; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-lg); background: var(--tile); font-size: 14px; }
.steps-list .si { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--green-100); color: var(--green-600); }
.steps-list .si svg { width: 14px; height: 14px; stroke-width: 2.6; }
.steps-list .warn .si { background: var(--amber-100); color: var(--amber-600); }
.steps-list .bad .si { background: var(--rose-100); color: var(--rose-600); }
.steps-list .d { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; word-break: break-all; }
pre.raw { white-space: pre-wrap; word-break: break-all; margin: 12px 0 0; padding: 14px; border-radius: var(--r-lg); background: var(--tile); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); max-height: 480px; overflow: auto; }

/* ================= 系统设置 ================= */

.set-tabs { margin-bottom: 18px; }
.set-grid { display: grid; gap: 16px; }
.checklist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: var(--r-lg); background: var(--tile); font-size: 14px; }
.checklist .ck { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--green-100); color: var(--green-600); animation: pv-in .5s var(--spring) both; }
.checklist .ck svg { width: 14px; height: 14px; stroke-width: 2.8; }
.checklist .bad .ck { background: var(--rose-100); color: var(--rose-600); }
.checklist .warn .ck { background: var(--amber-100); color: var(--amber-600); }
.checklist .d { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 1px; word-break: break-all; }
.cmd { display: block; padding: 14px 16px; border-radius: var(--r-lg); background: #0f172a; color: #e2e8f0; font-family: var(--mono); font-size: 13px; word-break: break-all; line-height: 1.6; }
/* 9 种通知排成两列（一列太长），每一行左边是名字、右边三个选项 */
.who-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(480px, 100%), 1fr)); }
.who-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-lg); background: var(--tile); }
.who-row .nm { font-weight: var(--fw-semi); font-size: 14px; }
.who-inputs { display: none; grid-column: 2; gap: 8px; grid-template-columns: 1fr 1fr; }
.who-row:has(input[value="users"]:checked) .who-inputs { display: grid; }
.data-rows { display: grid; gap: 10px; }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px 150px auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); background: var(--tile); }
.drow .nm b { display: block; font-size: 14px; }
.drow .nm span { font-size: 12.5px; color: var(--text-3); }
.drow .n { font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: var(--fw-semi); text-align: right; }
.drow .n small { display: block; font-family: var(--font); font-size: 12px; font-weight: var(--fw-medium); color: var(--text-3); }
.drow .keep .input { width: 80px; }
.drow .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.price-rows { display: grid; gap: 10px; }
.prow { display: grid; grid-template-columns: 150px 70px repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-lg); background: var(--tile); font-size: 13.5px; }
.prow.h { background: none; padding-top: 0; padding-bottom: 0; font-size: 12.5px; font-weight: var(--fw-semi); color: var(--text-3); }
.prow .input { height: 34px; }
/* 监控大屏的样子（1.7.29）：两张选项卡片，上面一张小示意图（分栏看板三栏、侧栏时间线左边一条） */
.lay-opts { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); max-width: 680px; }
.lay-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "mini mini" "mk tx"; gap: 12px 10px; padding: 12px 14px 14px; }
.lay-opt .mk { grid-area: mk; }
.lay-opt .tx { grid-area: tx; }
.lay-mini { grid-area: mini; aspect-ratio: 16 / 9; border-radius: 10px; padding: 6%; display: grid; gap: 5%; overflow: hidden;
  background: radial-gradient(60% 90% at 10% 0%, rgba(190, 198, 255, .7), transparent 70%), radial-gradient(50% 80% at 90% 0%, rgba(255, 219, 190, .75), transparent 70%), linear-gradient(180deg, #ece9f4, #efeaf1); }
.lay-mini i, .lay-mini b, .lay-mini s, .lay-mini em, .lay-mini u { display: block; text-decoration: none; font-style: normal; }
.lay-mini .m-body { background: #f7f7f8; border-radius: 6px; padding: 5%; display: grid; gap: 5%; min-height: 0; }
.lay-mini.board { grid-template-rows: 9% minmax(0, 1fr); }
.lay-mini.board .m-hd { display: flex; align-items: center; gap: 4%; }
.lay-mini.board .m-hd b { width: 7%; aspect-ratio: 1; border-radius: 3px; background: linear-gradient(135deg, #ffc08e, #f59a57); }
.lay-mini.board .m-hd em { width: 22%; height: 45%; border-radius: 3px; background: rgba(0, 0, 0, .14); }
.lay-mini.board .m-hd u { margin-left: auto; width: 16%; height: 70%; border-radius: 999px; background: rgba(255, 255, 255, .75); }
.lay-mini.board .m-body { grid-template-columns: 1.08fr 1fr .86fr; }
.lay-mini .m-col { background: #fff; border-radius: 5px; padding: 8% 7%; display: flex; flex-direction: column; gap: 6%; }
.lay-mini .m-col b { height: 9%; width: 55%; border-radius: 2px; background: var(--c); }
.lay-mini .m-col s { height: 15%; border-radius: 3px; background: var(--tile); }
.lay-mini .up { --c: var(--green); }
.lay-mini .down { --c: var(--rose); }
.lay-mini .change { --c: var(--amber); }
.lay-mini.timeline { grid-template-columns: 26% minmax(0, 1fr); }
.lay-mini .m-side { background: rgba(255, 255, 255, .85); border-radius: 6px; padding: 10% 9%; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 6%; }
.lay-mini .m-side b { grid-column: 1 / -1; height: 12px; width: 82%; border-radius: 3px; background: rgba(0, 0, 0, .55); }
.lay-mini .m-side s { height: 16px; border-radius: 3px; background: var(--tile); }
.lay-mini .m-side em { grid-column: 1 / -1; height: 18px; border-radius: 3px; background: linear-gradient(90deg, var(--green) 0 8%, transparent 8% 13%, var(--green) 13% 21%, transparent 21% 26%, var(--rose) 26% 34%, transparent 34% 39%, var(--green) 39% 47%, transparent 47% 52%, var(--rose) 52% 60%, transparent 60% 65%, var(--green) 65% 73%, transparent 73%); opacity: .75; }
.lay-mini.timeline .m-body { align-content: start; gap: 9%; padding: 6% 7%; }
.lay-mini .m-ev { height: 13px; display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 6%; align-items: center; }
.lay-mini .m-ev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.lay-mini .m-ev::after { content: ""; height: 100%; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }

/* 我的（手机上的设置入口） */
.me-hero { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.me-hero .avatar { width: 56px; height: 56px; font-size: 21px; }
.me-hero > div { min-width: 0; }
.me-hero > div > b { font-size: 18px; color: var(--ink); }
.me-hero > div > span { display: block; color: var(--text-3); font-size: 13px; white-space: nowrap; }
.me-hero form { margin-left: auto; }
.menu-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; box-shadow: 0 4px 10px -4px rgba(15, 23, 42, .25); }
.menu-ic svg { width: 18px; height: 18px; stroke-width: 2; }

/* ================= AI 助理 =================
   用户 2026-09-25 从三个演示里选了方案三"商品卡片"：上面一条头像、名字、清空上下文和"更多"；中间是聊天记录，铺满聊天框（用户嫌两边空），
   AI 的回答不套气泡，卡做成一张张小卡片，按宽度一行排几张；下面一块浅灰底，里面是常用问题、白色的输入框，
   输入框下面一排切换模型和思考强度（用户说放进输入框里挤在一块不好看、输入框和背景一样白没有框的感觉）。 */

.chat { position: relative; display: flex; flex-direction: column; height: calc(100vh - var(--head-h) - 44px); height: calc(100dvh - var(--head-h) - 44px); min-height: 480px; overflow: hidden; }
.chat-h { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--hair); flex-wrap: wrap; flex: none; background: #fff; }
.chat-id { display: flex; align-items: center; gap: 11px; margin-right: auto; min-width: 0; }
.chat-id b { display: block; font-size: 15px; color: var(--ink); }
.chat-id small { display: block; font-size: 12.5px; color: var(--text-3); }
.chat-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-ctl .icon-btn { width: 32px; height: 32px; border-radius: var(--r-sm); }
.chat-more { display: none; }
/* 没填 Key、计划任务停了：一条窄的提示，不挡聊天记录 */
.chat-alert { display: flex; align-items: center; gap: 8px; padding: 8px 18px; font-size: 13px; flex: none; border-bottom: 1px solid var(--line-2); background: #fffcf2; color: var(--amber-700); }
.chat-alert.bad { background: #fff7f7; color: var(--rose-600); }
.chat-alert svg { width: 15px; height: 15px; flex: none; }
.chat-alert a { font-weight: var(--fw-semi); }
.chat-log { flex: 1; overflow-y: auto; padding: 26px 28px 22px; display: flex; flex-direction: column; gap: 24px; overscroll-behavior: contain; scroll-behavior: smooth; background: #fff; }
.msg { display: flex; gap: 12px; }
.msg.me { justify-content: flex-end; }
.msg .col { min-width: 0; display: flex; flex-direction: column; }
.msg.me .col { align-items: flex-end; max-width: min(640px, 80%); }
.msg.ai .col { flex: 1; max-width: calc(100% - 44px); }
.msg.ai .ai-av { width: 32px; height: 32px; border-radius: 10px; }
.msg.ai .ai-av svg { width: 17px; height: 17px; }
.msg.me .bub { background: var(--brand-50); color: var(--ink); border: 1px solid var(--brand-100); padding: 10px 16px; border-radius: 16px 16px 4px 16px; font-size: 14.5px; line-height: 1.65; word-break: break-word; }
.msg.ai .bub { padding-top: 4px; font-size: 15px; line-height: 1.8; color: var(--text); word-break: break-word; }
.msg.ai.failed .bub { padding: 11px 14px; border-radius: 12px; background: #fff7f7; border: 1px solid #f9cfcf; font-size: 14.5px; }
.msg .tm { font-size: 12px; color: var(--text-4); margin-top: 6px; font-family: var(--num); font-variant-numeric: tabular-nums; }
.bub p { margin: 0 0 10px; }
.bub > :last-child { margin-bottom: 0; }
.bub h4 { font-size: 15px; margin: 16px 0 8px; }
.bub h4:first-child { margin-top: 0; }
.bub ul, .bub ol { margin: 4px 0 12px; padding-left: 1.4em; }
.bub li { margin: 4px 0; padding-left: 2px; }
.bub li::marker { color: var(--text-4); }
.bub b { color: var(--ink); }
.bub hr { border: 0; height: 1px; background: var(--line); margin: 14px 0; }
.bub code { background: rgba(15, 23, 42, .06); padding: 1px 6px; border-radius: 6px; }
.bub .ai-table { overflow-x: auto; margin: 8px 0 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.bub .ai-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.6; }
.bub .ai-table th, .bub .ai-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
.bub .ai-table tr:last-child td { border-bottom: 0; }
.bub .ai-table th { background: var(--tile); font-weight: var(--fw-semi); color: var(--text-3); }
/* 四家运营商的淡颜色在"商品"那一段（.pcard、.kc、.kg-h 共用） */
.kc.off { --c: var(--text-3); --c-bg: var(--tile); --c-tag: var(--muted); --c-line: var(--line); }
.kc.unsure { border-style: dashed; }
/* 分组的小标题："联通 5 张" */
.bub .kg-h { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 14px 0 10px; padding: 2px 10px; border-radius: 8px; background: var(--c-tag); font-size: 13px; font-weight: var(--fw-semi); color: var(--c); line-height: 1.6; }
.bub .kg-h:first-child { margin-top: 0; }
.bub .kg-h em { font-style: normal; font-weight: var(--fw-medium); color: color-mix(in srgb, var(--c) 60%, #fff); }
/* 商品卡片：屏幕越宽一行排得越多 */
.bub .kl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; margin: 4px 0 16px; }
.bub .kl:last-child { margin-bottom: 0; }
.kc { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 14px 10px; border: 1px solid var(--c-line); border-radius: 14px; background: linear-gradient(180deg, var(--c-bg), #fff 78%); line-height: 1.55; transition: border-color .2s, box-shadow .2s, transform .25s var(--ease); }
.kc:hover { border-color: color-mix(in srgb, var(--c) 32%, #fff); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 30px -18px color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.kc-top { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; font-weight: var(--fw-semi); color: var(--text-2); }
.kc-no { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; display: grid; place-items: center; flex: none; background: var(--c-tag); color: var(--c); font-family: var(--num); font-size: 12px; font-weight: var(--fw-bold); }
.kc-op { flex: none; padding: 0 8px; border-radius: 6px; background: var(--c-tag); color: var(--c); font-size: 12px; line-height: 22px; }
.kc-shop { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: var(--fw-medium); color: var(--text-4); }
.kc-top .tag { flex: none; }
.kc-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-size: 14.5px; font-weight: var(--fw-semi); text-decoration: none; transition: color .15s; }
a.kc-name:hover { color: var(--c); }
.kc-spec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.kc-price { margin-right: 4px; white-space: nowrap; font-family: var(--num); font-size: 12.5px; font-weight: var(--fw-semi); color: var(--c); }
.kc-price b { margin-right: 2px; font-size: 24px; line-height: 1; font-weight: var(--fw-bold); letter-spacing: -.01em; }
.kc-s { padding: 0 8px; border-radius: 6px; background: var(--c-tag); color: var(--text-2); font-size: 12px; line-height: 22px; white-space: nowrap; }
.kc-note { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; line-height: 1.6; color: var(--amber-700); }
.kc-note svg { width: 14px; height: 14px; margin-top: .2em; flex: none; }
.kc-note b { color: inherit; }
/* 资费和平台填的不一样（1.7.41）：比首充那行醒目一点 */
.kc-note.kc-warn { color: var(--rose-600); font-weight: var(--fw-medium); }
.kc-act { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--c-line); }
.kc-copy, .kc-open {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; border: 0; border-radius: var(--r-sm); background: transparent;
  color: var(--text-3); font-size: 12.5px; font-weight: var(--fw-medium); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.kc-copy svg, .kc-open svg { width: 15px; height: 15px; }
.kc-copy { color: var(--c); background: var(--c-tag); }
.kc-copy:hover { color: var(--c); background: color-mix(in srgb, var(--c) 15%, #fff); }
.kc-open:hover { color: var(--ink); background: var(--hover); }
.kc-copy:active, .kc-open:active { transform: scale(.96); }
.kc-copy.done { color: var(--green-600); background: var(--green-50); }
/* 句子里提到的卡：卡名、店铺、复制 */
.pref { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-semi); color: var(--ink); text-decoration: none; transition: color .15s; }
a.pref:hover { color: var(--brand-600); }
.pref.bad { color: var(--rose-600); }
.op-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-4); flex: none; display: inline-block; }
.op-dot.yd { background: var(--op-yd); }
.op-dot.lt { background: var(--op-lt); }
.op-dot.dx { background: var(--op-dx); }
.op-dot.gd { background: var(--op-gd); }
.pref-shop { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: var(--fw-semi); color: var(--text-3); background: var(--muted); padding: 0 7px; border-radius: 6px; line-height: 20px; vertical-align: 1px; }
.pcopy { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 2px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--text-4); cursor: pointer; vertical-align: -6px; transition: color .15s, background .15s, transform .15s; }
.pcopy svg { width: 15px; height: 15px; }
.pcopy:hover { color: var(--brand-600); background: var(--brand-50); }
.pcopy:active { transform: scale(.88); }
.pcopy.done { color: var(--green-600); background: var(--green-50); }
/* 回答下面一排：复制给客户、查询过程，最右边是时间、用时和费用 */
.msg-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.msg-bar .copy-all { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line); background: #fff; color: var(--text-2); }
.msg-bar .copy-all:hover { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-700); }
.msg-bar .copy-all.done { border-color: #bbf7d0; background: var(--green-50); color: var(--green-600); }
.msg-bar .meta { margin: 0 0 0 auto; }
.msg-bar .trace[open] { order: 3; flex-basis: 100%; }
.trace { font-size: 12.5px; color: var(--text-3); }
.trace summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 15px; font-weight: var(--fw-medium); }
.trace summary::-webkit-details-marker { display: none; }
.trace summary:hover { background: var(--hover); color: var(--text); }
.trace summary svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.trace[open] summary svg { transform: rotate(90deg); }
.trace ol { list-style: none; margin: 4px 0 0; padding: 0 0 0 12px; display: grid; gap: 4px; }
.trace li { display: flex; gap: 7px; align-items: flex-start; }
.trace li svg { width: 14px; height: 14px; color: var(--green); margin-top: 3px; flex: none; }
.msg .meta { font-size: 12px; color: var(--text-4); margin-top: 6px; }
.msg-bar .meta { margin-top: 0; }
.live-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.live-steps li { display: flex; align-items: center; gap: 10px; }
.live-steps .ok { width: 20px; height: 20px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; flex: none; animation: pop .45s var(--spring); }
.live-steps .ok svg { width: 12px; height: 12px; stroke-width: 3.2; }
.live-steps .run { width: 20px; height: 20px; border-radius: 50%; flex: none; background: conic-gradient(from 0deg, #4f7cff, #6c5ce7, #38bdf8, #4f7cff); -webkit-mask: radial-gradient(circle 7px, transparent 98%, #000); mask: radial-gradient(circle 7px, transparent 98%, #000); animation: spin .9s linear infinite; }
.live-steps .now { color: var(--ink); font-weight: var(--fw-semi); }
.live-steps .secs { color: var(--text-3); font-size: 12.5px; padding-left: 30px; }
@keyframes pop { from { transform: scale(0); } }
.typing { display: inline-flex; gap: 5px; padding: 6px 0 2px 30px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-300); animation: typing 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; background: #b7acf5; }
.typing i:nth-child(3) { animation-delay: .3s; background: var(--sky); }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
/* 还没聊过：欢迎语 + 六个常用问题（做成小卡片） */
.chat-empty { margin: auto; max-width: 780px; padding: 20px 10px; text-align: center; animation: fade .6s ease; }
.chat-empty .ai-av { margin: 0 auto 16px; animation: bob 3.4s ease-in-out infinite; }
.chat-empty h3 { font-size: 22px; font-weight: var(--fw-bold); margin-bottom: 8px; }
.chat-empty p { max-width: 540px; margin: 0 auto 22px; color: var(--text-3); font-size: 14px; line-height: 1.75; }
.chat-empty .asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; text-align: left; }
.chat-empty .ask { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 108px; padding: 14px; border-radius: 14px; line-height: 1.5; }
.chat-empty .ask > svg:first-child { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--brand-50); }
.chat-empty .ask .go { display: none; }
/* 往上翻看记录时，下面中间出来一个"回到最新" */
.to-bottom {
  position: absolute; left: 50%; bottom: 168px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px;
  border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--text-2); font-size: 12.5px; font-weight: var(--fw-medium); cursor: pointer;
  box-shadow: var(--sh-lg); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.to-bottom.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.to-bottom:hover { color: var(--ink); background: #f8fafc; }
.to-bottom svg { width: 15px; height: 15px; }
.to-bottom.new::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); }
/* 下面的输入区：浅灰底，白色的输入框有边框，一眼能看出是个框 */
.chat-f { flex: none; padding: 12px 28px 12px; border-top: 1px solid var(--hair); background: #f5f7fa; }
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 0 2px 10px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
/* 空的时候中间已经有一排问题可以点，底下的快捷问题先收起来 */
.chat:has(#chat-empty) .quick { display: none; }
.quick button { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line); background: #fff; color: var(--text-2); font-size: 12.5px; font-weight: var(--fw-medium); cursor: pointer; transition: color .15s, border-color .15s, background .15s, transform .15s; }
.quick button:hover { color: var(--brand-700); border-color: var(--brand-200); background: var(--brand-50); }
.quick button:active { transform: scale(.95); }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 7px 7px 7px 16px; border-radius: 14px; background: #fff; border: 1px solid #d5dce6; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px -12px rgba(15, 23, 42, .25); transition: box-shadow .15s, border-color .15s; }
.composer:hover { border-color: #c3ccd9; }
.composer textarea { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; resize: none; min-height: 38px; max-height: 180px; padding: 8px 0; font-size: 14.5px; line-height: 1.55; }
.composer textarea::placeholder { color: var(--text-4); }
.send { width: 38px; height: 38px; border-radius: 11px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: var(--sh-brand); transition: transform .2s var(--spring), box-shadow .15s, filter .15s, background .2s; }
.send svg { width: 17px; height: 17px; stroke-width: 2; }
.send:hover { filter: brightness(1.06); transform: translateY(-1px); }
.send:active { transform: scale(.92); }
.send:disabled { background: #d5dbe4; box-shadow: none; filter: none; cursor: default; transform: none; }
/* 输入框下面一排：切换模型、思考强度；右边是快捷键 */
.chat-opts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chat-opts .seg { background: #e9edf3; }
.chat-hint { margin-left: auto; font-size: 12px; color: var(--text-4); }
.icon-btn[aria-pressed="true"] { color: var(--brand-600); background: var(--brand-50); border-color: var(--brand-100); }
.sheet-set { padding: 2px 0 10px; }
.sheet-set .field > .label { display: block; font-size: 13.5px; font-weight: var(--fw-semi); margin-bottom: 8px; }
.sheet-segs { display: grid; gap: 10px; justify-items: start; }
.sheet-row { display: flex; gap: 24px; flex-wrap: wrap; }
.sheet-set .btns { flex-direction: column; align-items: stretch; }
.sheet-set .btns form { margin: 0; }

/* 使用统计 */
.ufigs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ufig { padding: 18px 20px; }
.ufig .k { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: var(--fw-semi); color: var(--text-2); }
.ufig .v { margin-top: 12px; font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 28px; font-weight: var(--fw-bold); color: var(--ink); line-height: 1.1; }
.ufig .x { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.trend { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 4px; height: 150px; align-items: end; padding: 8px 0 0; }
.trend .bar { height: 100%; display: flex; align-items: flex-end; position: relative; }
.trend .bar span { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #8aa6ff, #4f7cff 60%, #6c5ce7); transform-origin: 50% 100%; animation: grow .9s var(--spring) both; animation-delay: calc(var(--d, 0) * 25ms + 200ms); min-height: 3px; }
.trend .bar.zero span { background: #eef1f6; }
.trend .bar:hover span { filter: brightness(1.08) saturate(1.15); }
@keyframes grow { from { transform: scaleY(0); } }
.trend-x { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-3); }

/* ================= 登录、安装、出错：白色卡片，上面是居中的大图标和名字（照云速文档的登录框） ================= */

.solo { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 40px 16px; }
.solo > div { width: 100%; }
.solo-card { width: 100%; max-width: 420px; margin: 0 auto; padding: 32px 32px 28px; border-radius: 20px; box-shadow: var(--sh-pop); }
.solo-card.wide { max-width: 640px; }
.solo-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 24px; }
.logo.lg { width: 68px; height: 68px; border-radius: 18px; background: var(--brand-soft); box-shadow: none; }
.logo.lg > span { color: var(--brand-500); }
.logo.lg svg { width: 32px; height: 32px; stroke-width: 1.9; }
.solo-brand b { display: block; font-size: 20px; font-weight: var(--fw-bold); color: var(--ink); letter-spacing: .02em; }
.solo-brand small { display: block; color: var(--text-3); font-size: 13px; margin-top: 4px; }
.solo-card h2 { font-size: 17px; margin-bottom: 6px; }
.solo-card:not(.wide) > h2, .solo-card:not(.wide) > h2 + p { text-align: center; }
.solo-foot { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.in-ic { position: relative; }
.in-ic > svg { position: absolute; left: 14px; top: 50%; margin-top: -9px; color: var(--text-4); pointer-events: none; transition: color .15s; }
.in-ic .input { padding-left: 42px; height: 46px; border-radius: var(--r-lg); background-color: var(--tile); border-color: var(--line-2); }
.in-ic .input:focus { background-color: #fff; border-color: var(--brand-400); box-shadow: var(--ring); }
.in-ic:focus-within > svg { color: var(--brand-500); }
.isteps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.isteps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: var(--fw-semi); color: var(--text-4); text-align: center; }
.isteps li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.isteps li:first-child::before { display: none; }
.isteps .n { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-family: var(--num); font-size: 13px; color: var(--text-3); }
.isteps .n svg { width: 15px; height: 15px; stroke-width: 3; }
.isteps .done { color: var(--green-600); }
.isteps .done::before, .isteps .on::before { background: linear-gradient(90deg, var(--green), var(--brand-400)); }
.isteps .done .n { background: var(--green); border-color: var(--green); color: #fff; }
.isteps .on { color: var(--brand-600); }
.isteps .on .n { background: var(--brand); border-color: transparent; color: #fff; box-shadow: var(--sh-brand); animation: pop .5s var(--spring); }

/* ================= 各页面补充 ================= */

/* 放在网格、竖排里的卡片之间已经有间距，不要再加上边距 */
:is(.set-grid, .stack, .grid2, .shops, .pgrid, .pd, .stats, .split, .site-top, .ufigs, .shop-list) > .card + .card { margin-top: 0; }
.chead form.more { display: inline-flex; }

/* 商品卡片 */
.pc-why svg { width: 14px; height: 14px; color: var(--text-4); }
.fd-m a { display: inline-flex; align-items: center; gap: 4px; font-weight: var(--fw-medium); }
.fd-m a svg { color: currentColor; }

/* 检查日志、通知记录里的小字 */
.lrow .st .tag, .nrow .st .tag { max-width: 100%; }
.nrow .kind, .nrow .site { color: var(--text-2); }
/* 站点详情里半宽的检查列表：一行两层 */
.compact-log .lrow { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "tm kind st" "sum sum r"; gap: 4px 12px; }
.compact-log .lrow .tm { grid-area: tm; }
.compact-log .lrow .site { display: none; }
.compact-log .lrow .kind { grid-area: kind; }
.compact-log .lrow .st { grid-area: st; justify-self: end; }
.compact-log .lrow .sum { grid-area: sum; font-size: 13px; color: var(--text-2); }
.compact-log .lrow .r { grid-area: r; }

/* 添加站点：核对到的店铺 */
.samples { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.samples li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 11px; border-radius: var(--r-md); font-size: 13.5px; color: var(--text-2); background: var(--tile); }
.samples li svg { width: 15px; height: 15px; color: var(--brand-400); }
.samples li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-opts .opt .tx small { word-break: break-all; font-family: var(--mono); font-size: 12px; margin-top: 3px; }
.site-state .kv { grid-template-columns: 110px minmax(0, 1fr); font-size: 13.5px; gap: 8px 12px; }

/* 站点设置表单：选"默认的群"时不用填单独的群 */
.hook-set:has(input[name="webhook_mode"][value="default"]:checked) .own-hook { display: none; }
.nt-group + .nt-group { margin-top: 14px; }
.nt-group .f-lab { display: block; margin-bottom: 8px; }

/* ================= 适配 ================= */

@media (min-width: 1680px) {
  .view { max-width: 1600px; }
  .split { grid-template-columns: minmax(0, 1fr) 412px; }
}

@media (min-width: 2200px) {
  .view { max-width: 1880px; }
  .split { grid-template-columns: minmax(0, 1fr) 452px; }
}

/* 笔记本、平板横屏：左边导航收成只有图标 */
@media (max-width: 1279px) {
  :root { --side-w: 76px; }
  .brand { justify-content: center; padding: 0; }
  .brand-text, .nav-group, .nav a .lb, .nav a .badge, .me-card .who, .beat > span > b, .beat em, .side-add span { display: none; }
  .side-add { width: 44px; height: 44px; padding: 0; margin: 2px auto 10px; }
  .side-add svg { width: 20px; height: 20px; }
  .beat { justify-content: center; margin: 0 14px 4px; padding: 9px 0; }
  .nav { padding: 6px 12px; }
  .nav-sep { display: block; height: 1px; margin: 8px 6px; background: var(--hair); }
  .nav a { justify-content: center; padding: 0; gap: 0; height: 44px; }
  .nav a .it svg { width: 20px; height: 20px; }
  .nav a[data-tip]:hover::before {
    content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; z-index: 50;
    padding: 6px 11px; border-radius: var(--r-sm); background: rgba(15, 23, 42, .92); color: #fff; font-size: 12.5px; font-weight: var(--fw-medium); pointer-events: none;
  }
  .nav a .dotn { position: absolute; top: 8px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 2px #fff; }
  .me-card { flex-direction: column; gap: 8px; padding: 10px 0; }
  .top { padding: 0 20px; }
  .top-search { width: 220px; }
  .view { padding: 22px 22px 48px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .ufigs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-id small { display: none; }
  /* 平板上卡片也排两列 */
  .bub .kl { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
}
.nav-sep { display: none; }

@media (max-width: 1023px) {
  .top-search, .clock { display: none; }
  .site-top { grid-template-columns: minmax(0, 1fr); }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .lhead { display: none; }
  .lrow { grid-template-columns: 110px minmax(0, 1fr) auto; grid-template-areas: "tm site st" "tm kind r" "sum sum sum"; gap: 4px 12px; }
  .lrow .tm { grid-area: tm; }
  .lrow .site { grid-area: site; }
  .lrow .kind { grid-area: kind; }
  .lrow .st { grid-area: st; justify-self: end; }
  .lrow .r { grid-area: r; }
  .lrow .sum { grid-area: sum; margin-top: 4px; }
  .nrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tm st" "body body" "act act"; gap: 6px 12px; }
  .nrow .tm { grid-area: tm; }
  .nrow .st { grid-area: st; justify-self: end; }
  .nrow .body { grid-area: body; }
  .nrow .site, .nrow .kind { display: none; }
  .nrow .act { grid-area: act; }
  .drow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm nm" "n b" "keep keep" "acts acts"; gap: 8px 12px; }
  .drow .nm { grid-area: nm; }
  .drow .n1 { grid-area: n; text-align: left; }
  .drow .n2 { grid-area: b; }
  .drow .keep { grid-area: keep; }
  .drow .acts { grid-area: acts; justify-content: flex-start; }
  .prow { grid-template-columns: 1fr 1fr 1fr; }
  .prow.h { display: none; }
  .chat-ctl .btn:not(.pub-clr) .lb { display: none; }
}

/* 手机 */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .side, .top { display: none; }
  .mtop {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 25; padding: calc(12px + var(--safe-t)) 14px 10px 18px;
    background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid var(--hair);
  }
  .mtop h1 { flex: 1; min-width: 0; font-size: 21px; font-weight: var(--fw-bold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mtop .icon-btn { width: 40px; height: 40px; border-radius: var(--r-lg); }
  .mtop .back { margin-left: -6px; }
  .main { padding-bottom: calc(92px + var(--safe-b)); }
  .tabbar {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); height: 62px; z-index: 40; padding: 0 6px;
    border-radius: 18px; background: rgba(255, 255, 255, .94); border: 1px solid rgba(226, 232, 240, .95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 14px 36px -8px rgba(15, 23, 42, .2);
  }
  .tabbar a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: var(--fw-medium); color: var(--text-3); position: relative; }
  .tabbar a .ti { width: 44px; height: 28px; border-radius: 10px; display: grid; place-items: center; transition: background .3s var(--spring), transform .3s var(--spring); }
  .tabbar a .ti svg { width: 21px; height: 21px; }
  .tabbar a.on { color: var(--brand-600); font-weight: var(--fw-semi); }
  .tabbar a.on .ti { background: var(--brand-50); transform: translateY(-1px); }
  .tabbar a .badge { position: absolute; top: 4px; left: calc(50% + 7px); min-width: 18px; height: 18px; font-size: 10.5px; border: 2px solid #fff; box-sizing: content-box; }
  .tabbar a.ai .ti { width: 48px; height: 48px; border-radius: 16px; margin-top: -24px; background: var(--ai); color: #fff; box-shadow: 0 8px 20px rgba(79, 124, 255, .45); border: 3px solid #fff; }
  .tabbar a.ai .ti svg { width: 24px; height: 24px; }
  .tabbar a.ai.on .ti { transform: translateY(-2px) rotate(-6deg); }
  .view { padding: 10px 14px 20px; }
  .phead { margin-bottom: 14px; }
  .phead > div:first-child h1 { display: none; }
  .phead p { margin-top: 0; font-size: 13.5px; }
  .card { border-radius: var(--r-xl); }
  .card.pad { padding: 18px 16px; }
  .chead { padding: 16px 16px 4px; }
  .cbody { padding: 6px 16px 16px; }
  .hero { padding: 20px 18px 20px 22px; }
  .hero h1 { font-size: 22px; }
  .hero-r { min-width: 0; width: 100%; }
  .stats { gap: 12px; margin-top: 12px; }
  .stat { padding: 16px 14px 12px 16px; }
  .st-n b { font-size: 28px; }
  .st-ic { width: 34px; height: 34px; }
  .st-f .spark { display: none; }
  .qa { margin-top: 12px; display: block; }
  .qa-grid { gap: 8px; padding: 6px 12px 16px; }
  .qa-i { padding: 12px 2px 10px; font-size: 12.5px; }
  .qa-ic { width: 40px; height: 40px; }
  .home-split { margin-top: 12px; }
  .feed { padding: 6px 12px 14px; gap: 10px; }
  .fd { position: relative; padding: 12px; gap: 11px; }
  .fd-ic { width: 32px; height: 32px; }
  .fd time { position: absolute; right: 14px; top: 12px; }
  .fd-t { padding-right: 44px; }
  .shop-list { padding: 4px 12px 10px; }
  .card-foot { padding: 4px 12px 14px; }
  .asks { padding: 4px 12px 10px; }
  .ask-box { margin: 2px 12px 14px; }
  .shops { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shop.add { min-height: 150px; }
  /* 手机上这一行小字换到分类下面；放不下时"重新抓取"换到下一行靠右（窄手机上会被挡住一半） */
  .fetch { margin-left: 2px; width: 100%; flex-wrap: wrap; row-gap: 6px; }
  .fetch form { margin-left: auto; }
  .fetch .sep:last-of-type { display: none; } /* 按钮前面那个点：按钮换到右边时就多余了 */
  .filters { padding: 12px; }
  .f-more { display: none; }
  .filters.open .f-more { display: flex; }
  .f-open { display: inline-flex; }
  .filters.pf-bar { padding: 0; flex-wrap: wrap; }
  .pf-tail { display: contents; }
  .pf-q { flex-basis: 100%; }
  .filters.pf-bar .pf-more { display: none; }
  .filters.pf-bar.open .pf-more { display: contents; }
  .filters.pf-bar .pf-more > * { order: 1; } /* 展开的下拉排到"筛选、搜索"下面，两个按钮不跟着跳 */
  .filters.pf-bar.open .pf-sel { flex: 1 1 calc(50% - 4px); max-width: none; }
  .filters.pf-bar.open .pf-age { flex: 1 1 calc(50% - 4px); width: auto; min-width: 0; }
  .pf-open, .pf-go { flex: 1 1 calc(50% - 4px); height: 40px; } /* 两个按钮占满一行，展开的下拉从下一行开始 */
  .filters.pf-bar.open .pf-open { background: var(--brand-50); color: var(--brand-700); box-shadow: 0 0 0 1px var(--brand-200); }
  .f-row .select, .f-row .input { flex: 1 1 140px; }
  .filters .search.grow { flex-basis: 100%; }
  .filters .f-row > .btn { flex: 1 1 0; }
  .pgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pc-price b { font-size: 26px; }
  .pages { display: none; }
  .pager .per { display: none; }
  .mpager { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; }
  .mpager .btn { flex: 1; }
  .mpager .mid { flex: none; }
  .pager .info { width: 100%; text-align: center; order: 2; }
  .drawer { width: 100vw; border-left: 0; }
  .drawer-h { padding-top: var(--safe-t); height: calc(60px + var(--safe-t)); }
  .drawer-b { padding: 14px 12px calc(24px + var(--safe-b)); }
  .figs { padding: 6px; gap: 6px; }
  .fig { padding: 13px 12px 11px; }
  .fig .v { font-size: 23px; }
  .pmap-grid { gap: 4px; }
  .pv { font-size: 10.5px; border-radius: 6px; letter-spacing: -.03em; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .spec { padding: 10px 12px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .tl { padding: 4px 12px 16px; }
  .who-row { grid-template-columns: minmax(0, 1fr); }
  .who-inputs { grid-column: 1; grid-template-columns: minmax(0, 1fr); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .toasts { top: calc(12px + var(--safe-t)); width: calc(100vw - 32px); }
  .toast { max-width: 100%; }
  .ufigs { gap: 12px; }
  .ufig { padding: 14px 16px; }
  .ufig .v { font-size: 23px; }
  .trend { height: 110px; gap: 2px; }
  .view:has(.chat) { padding: 0; }
  .chat { height: calc(100dvh - 64px - var(--safe-t) - 92px - var(--safe-b)); min-height: 360px; border-radius: 0; border-left: 0; border-right: 0; }
  .chat-h { display: none; }
  .chat-log { padding: 16px 12px 12px; gap: 16px; }
  .msg.ai .col { max-width: calc(100% - 42px); }
  .msg.me .col { max-width: 88%; }
  .chat-empty .asks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-empty .ask { min-height: 96px; }
  .to-bottom { bottom: 124px; }
  .chat-f { padding: 8px 12px 10px; }
  .chat-opts { display: none; }
  .msg-bar .meta { margin-left: 2px; flex-basis: 100%; }
  .solo { padding: 24px 14px; place-items: start center; padding-top: calc(8vh + var(--safe-t)); }
  .solo-card { padding: 26px 20px 22px; }
  .isteps li { font-size: 11.5px; }
  .dialog { padding: 24px 20px 20px; }
}

@media (max-width: 379px) {
  .st-n b { font-size: 25px; }
  .qa-i { font-size: 11.5px; }
  .qa-ic { width: 36px; height: 36px; }
  .fig .v { font-size: 21px; }
  .hero h1 { font-size: 20px; }
  .tabbar a { font-size: 11px; }
}

/* 矮屏：手机横屏、窗口很矮的笔记本 */
@media (max-height: 560px) and (min-width: 768px) {
  :root { --head-h: 56px; }
  .brand { height: 58px; }
  .beat { display: none; }
  .nav a { height: 38px; }
  .nav-group { padding-top: 8px; }
  .me-card { padding: 6px 0; }
  .me-card .avatar { width: 32px; height: 32px; }
  .view { padding-top: 16px; }
  .chat { min-height: 280px; height: calc(100dvh - var(--head-h) - 36px); }
  .view:has(.chat) { padding-top: 10px; padding-bottom: 10px; }
  .quick, .chat-opts { display: none; }
  .chat-log { padding: 12px 16px; }
  .chat-h { padding: 6px 12px; flex-wrap: nowrap; }
  .chat-id small, .chat-ctl { display: none; }
  .chat-more { display: inline-grid; }
  .chat-id .ai-av { width: 30px; height: 30px; border-radius: 9px; }
  .to-bottom { bottom: 90px; }
  .drawer-h { height: 54px; }
}

@media (hover: none) {
  .card.lift:hover, .qa-i:hover, .shop-row:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .side, .top, .mtop, .tabbar { display: none !important; }
  .card { box-shadow: none; background: #fff; }
}

/* =====================================================================
   1.5.0：换成 Tabbit 的配色和动画（用户 2026-09-26 定："可以，就用这个模板吧""动画效果也按他们那个网站的那种"）。
   参照：https://www.tabbit.com/ 和 Tabbit 浏览器的新标签页。页面怎么排、有哪些内容都不变，这一段只换颜色和动画，放在最后覆盖前面的。
   - 四周（左边菜单、顶栏）是淡淡的彩色渐变（淡紫、粉、杏、薄荷、天蓝），会慢慢流动；内容放在中间一块浅灰的大圆角面板上；
   - 主色是很淡的橙；主按钮是黑色胶囊（鼠标放上去放大、流过一道彩色的光）；卡片白色、线很淡，鼠标放上去线变淡橙；
   - 进场：每一块从下面浮上来、0.8 秒、一块接一块；换页：新页面从右边推进来，旧页面往左推走（App 滑动）。
   ===================================================================== */

:root {
  --frame:
    radial-gradient(34% 62% at 6% 0%, rgba(190, 198, 255, .95), transparent 72%),
    radial-gradient(28% 52% at 30% 0%, rgba(255, 196, 222, .9), transparent 72%),
    radial-gradient(28% 52% at 55% 0%, rgba(255, 219, 190, .9), transparent 72%),
    radial-gradient(28% 52% at 78% 0%, rgba(214, 240, 196, .85), transparent 72%),
    radial-gradient(26% 50% at 98% 4%, rgba(190, 232, 255, .9), transparent 72%),
    radial-gradient(40% 60% at 0% 100%, rgba(206, 222, 255, .85), transparent 72%),
    radial-gradient(40% 60% at 100% 100%, rgba(243, 208, 255, .8), transparent 72%),
    linear-gradient(180deg, #ece9f4, #efeaf1);
  --bg: #f7f7f8;
  --ink: #1d1d1f; --text: #2c2c2e; --text-2: #3c3c43; --text-3: #6e6e73; --text-4: #a1a1a6;
  --line: rgba(0, 0, 0, .08); --line-2: rgba(0, 0, 0, .055); --hair: rgba(0, 0, 0, .06);
  --tile: #f4f4f6; --muted: rgba(0, 0, 0, .045); --hover: rgba(0, 0, 0, .04); --track: rgba(0, 0, 0, .06);
  --brand-50: #fff6ef; --brand-100: #ffecdd; --brand-200: #ffdcc2; --brand-300: #ffc79f; --brand-400: #f9ad76;
  --brand-500: #f29a58; --brand-600: #e3843f; --brand-700: #c86e2c; --brand2: #f39a5b;
  --brand: linear-gradient(135deg, #ffc08e, #f59a57);
  --brand-soft: linear-gradient(135deg, rgba(255, 162, 92, .14), rgba(239, 113, 41, .12));
  --ai: linear-gradient(135deg, #ffc896 0%, #f6a063 60%, #ec8645 100%);
  --sh-card: 0 0 0 1px rgba(0, 0, 0, .035), 0 2px 8px -4px rgba(40, 30, 60, .08);
  --sh-hover: 0 0 0 1px rgba(0, 0, 0, .05), 0 16px 32px -18px rgba(40, 30, 60, .3);
  --sh-brand: 0 6px 16px -8px rgba(242, 154, 88, .6);
  --ring: 0 0 0 4px rgba(239, 122, 49, .15);
  --r-xl: 18px; --r-lg: 13px; --r-md: 11px; --r-sm: 9px;
}
body { background: var(--frame); background-attachment: fixed; }
::selection { background: #ffc79a; color: var(--ink); }

/* 外框：左边菜单、顶栏都直接放在彩色渐变上 */
.side { background: transparent; border-right: 0; }
.brand-text b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
.brand-text small { color: rgba(0, 0, 0, .5); }
.logo { border-radius: 11px; box-shadow: 0 6px 14px -6px rgba(239, 113, 41, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.side-add, .side-add:hover { background: linear-gradient(180deg, #2d2d30, #0c0c0d); color: #fff; border-color: transparent; border-radius: 999px; filter: none; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .75); }
.beat { background: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .6); border-radius: 999px; }
.nav-group { color: rgba(0, 0, 0, .42); }
.nav a { color: rgba(0, 0, 0, .72); border-radius: 11px; }
.nav a .it { color: rgba(0, 0, 0, .45); }
.nav a:hover { background: rgba(255, 255, 255, .45); color: var(--ink); }
.nav a.on { background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 14px -8px rgba(40, 30, 60, .25); }
.nav a.on::after { display: none; }
.me-card { border-top-color: transparent; }
.me-card .icon-btn { background: rgba(255, 255, 255, .4); }
.avatar { background: linear-gradient(135deg, #3a3a3e, #111113); }
.avatar::after { border-color: #eeeaf2; }
.top { background: var(--frame); background-attachment: fixed; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.clock { background: rgba(255, 255, 255, .5); border-radius: 999px; }
.clock svg { color: var(--brand-500); }
.top-search input { background: rgba(255, 255, 255, .55); border-radius: 999px; }
.top-search input:focus { background: #fff; }
.top .btn, .top .icon-btn { background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .7); }

/* 页面内容：一块浅灰的大圆角面板，浮在渐变上 */
.view {
  width: auto; max-width: none; margin: 0 12px 12px 0; border-radius: 20px; background: var(--bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 18px 44px -26px rgba(40, 30, 70, .35);
  padding: 26px max(28px, calc((100% - 1440px) / 2)) 56px;
}

/* 按钮：主按钮黑色胶囊，普通按钮白色胶囊 */
.btn { border-radius: 999px; }
.btn.primary, .btn.primary:hover { background: linear-gradient(180deg, #2d2d30, #0c0c0d); color: #fff; filter: none; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn.soft { background: var(--brand-50); color: var(--brand-700); }
.btn.soft:hover { background: var(--brand-100); color: var(--brand-700); }
.icon-btn { border-radius: 50%; }
.input, .select, .textarea { border-radius: 12px; }
.seg, .seg > a, .seg > button, .seg .knob { border-radius: 999px; }
.tag { border-radius: 999px; }
.pages a, .pages span { border-radius: 999px; }
.pages .on { background: var(--ink); }

/* 卡片：白色、线很淡 */
.card { border-color: transparent; }
.ctile { border-radius: 50%; }
.fd, .shop-row { border-color: transparent; background: #f6f6f8; }
.fd:hover, .shop-row:hover { background: #f0f0f3; }
.ask { border-radius: 999px; border-color: transparent; background: #f4f4f6; }
.ask-box input { border-radius: 999px; }
.ask-box button { border-radius: 50%; }

/* 首页问候卡：白底，右上角是 Tabbit 新标签页那种一圈圈淡淡的暖光 */
.hero { background: #fff; }
.hero::after {
  right: -180px; top: -300px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255, 168, 108, .26), rgba(255, 168, 108, .07) 34%, transparent 60%),
    repeating-radial-gradient(circle, transparent 0 34px, rgba(150, 100, 70, .045) 34px 68px);
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}
.hero-r { background: rgba(247, 247, 248, .9); border-color: transparent; box-shadow: none; }

/* AI 助理：输入框是白色大圆角，点进去有一圈淡淡的橙光；自己发的消息是浅橙色气泡 */
.chat-f { background: #f6f6f8; }
.composer { border-radius: 22px; border-color: rgba(0, 0, 0, .07); }
.composer:focus-within { border-color: rgba(239, 122, 49, .45); box-shadow: 0 14px 40px -18px rgba(239, 122, 49, .45), 0 0 0 4px rgba(239, 122, 49, .1); }
.send { border-radius: 50%; }
.msg.me .bub { background: #fff1e6; border-color: #ffe1ca; border-radius: 20px 20px 6px 20px; }
.quick button { border-color: transparent; background: #fff; }
.view:has(.chat) { padding-bottom: 12px; }

@media (max-width: 1279px) {
  .view { padding: 22px 22px 48px; }
}
@media (max-width: 767px) {
  .mtop { background: var(--frame); background-attachment: fixed; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mtop .icon-btn { background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .7); }
  .view { margin: 0 8px 8px; border-radius: 20px; padding: 14px 12px 20px; }
  .tabbar { background: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .9); border-radius: 22px; }
  .tabbar a.on .ti { background: var(--brand-50); }
}

/* 问候卡左边的竖条也淡一点 */
.hero::before { background: linear-gradient(180deg, #ffc896, #f6a063); }

/* ---------- 动画（1.7.42 起淡了很多：用户 2026-11-16 说"这个动画效果太重了看着不舒服"，看了演示选了"只动一下"） ----------
   以前（1.5.0 照 tabbit.com）：新页面从右边 64 像素推进来，里面每一块从下面 60 像素浮上来、一块接一块（要 2 秒才停稳）；
   黑色按钮鼠标放上去放大、流过一道彩色的光；四周的彩色一直流动；小灯一直闪。
   现在：只在换页时整页一起从右边 10 像素淡进来一次（0.28 秒），旧页面淡出去；里面的不再单独动；
   按钮、卡片鼠标放上去只变颜色，不放大、不动；背景、小灯不动。AI 回答答完整段淡出来一次。
   点了以后才有的反馈照旧（右边滑出来的详情、确认框、轻提示、开关、分段滑块），只是快一点、不回弹；"正在忙"的转圈、三个点也照旧，不然看不出在干活 */
:root { --out: cubic-bezier(.2, .8, .2, 1); }
.view { animation: m-in .28s var(--out) both; }
html.leaving body { opacity: 1; transition: none; }
html.leaving .view { animation: m-out .12s ease-in forwards; }
@keyframes m-in { from { opacity: 0; transform: translateX(10px); } }
@keyframes m-out { to { opacity: 0; } }
.rise, .flash .note, .reveal > *, .reveal .kc, .live-steps li, .live-steps .ok, .pv, .checklist .ck, .isteps .on .n, .trend .bar span,
.hero h1 .wave, .empty .ei, .chat-empty .ai-av, .dupe-ai.run .ctile svg { animation: none; }
.spark .ln { animation: none; stroke-dashoffset: 0; }
.spark .ar, .spark .pt { animation: none; opacity: 1; }
.msg, .reveal, .chat-empty { animation: fade .3s ease-out both; }
.fold > .fb, .fade { animation-duration: .25s; }

/* 黑色胶囊按钮：鼠标放上去颜色变浅一点（以前放大 1.06 倍、里面流过一道彩色的光） */
.btn.primary, .side-add { position: relative; overflow: hidden; transition: filter .15s, box-shadow .2s; }
.btn.primary:hover, .side-add:hover { filter: brightness(1.5); }
.btn.primary:active, .side-add:active { transform: none; filter: brightness(1.2); }

/* 卡片：鼠标放上去线变淡橙、多一层淡阴影，不上下跳 */
.card.lift, .kc, .fd, .shop-row { transition: border-color .25s ease, box-shadow .25s ease, background .2s ease; }
.card.lift:hover, .kc:hover, .shop-row:hover, .qa-i:hover, .pv:hover, .send:hover { transform: none; }
/* 鼠标放上去图标也不转、不放大（1.7.42）；"全部记录 >"这种小箭头往右挪一点照旧 */
.nav a:hover .it, .stat:hover .st-ic, .qa-i:hover .qa-ic, .shop.add:hover .ei { transform: none; }
.card.lift:hover { border-color: rgba(229, 133, 34, .35); box-shadow: 0 0 0 1px rgba(229, 133, 34, .28), 0 12px 28px rgba(0, 0, 0, .06); }
.kc:hover { box-shadow: 0 0 0 1px rgba(229, 133, 34, .3), 0 12px 28px rgba(0, 0, 0, .06); }

/* 四周的彩色渐变：不再流动（1.7.42；以前 16 秒一圈），停在原来动画开头的样子 */
body, .top { background-size: 160% 160%; }
/* 小灯不闪（1.7.42）："监控运行中"的绿点不往外扩圈，外面留一圈淡淡的光；首页"今天的动态"的橙点不闪；正在抓取的点慢慢呼吸（看得出在干活） */
.ping::after { animation: none; opacity: 0; }
.ping { box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.ping.bad { box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
.live-dot { animation: none; }
.fetch.run .dot { animation: m-breathe 3s ease-in-out infinite; }
@keyframes m-breathe { 50% { opacity: .5; } }
/* 弹出来的东西：轻提示、确认框淡入（以前从上面弹下来、带回弹）；右边的详情、底部弹层滑得快一点；开关、分段滑块不回弹 */
.toast { animation: fade .2s ease-out both; }
.toast.out { animation: m-out .18s ease-in forwards; }
.dialog, .dialog.show { transform: translate(-50%, -50%); transition: opacity .18s ease-out; }
.drawer { transition: transform .26s var(--out); }
.sheet { transition: transform .28s var(--out); }
.seg .knob { transition: transform .2s var(--out), width .2s var(--out); }
.switch .tr::after, .opt .mk svg, .opt input[type="radio"] + .mk::after, .dupe-c .mk svg, .pop-i .sw::after { transition: transform .2s var(--out); }
.tabbar a .ti { transition: background .2s; }
.tabbar a.on .ti { transform: none; }
.nav a .it, .st-ic, .qa-ic, .shop.add .ei { transition: color .15s; }
/* 常用问题这一排能左右滑，超出去的会被切掉：点过的按钮外面那圈（键盘焦点的圈）只剩半圈（用户 2026-09-27 截图）。
   上下左右留出一点地方，圈画在按钮里面贴着边，用鼠标点的不显示这圈 */
.quick { padding: 4px 4px 10px; margin: -4px -4px 0; }
.quick button:focus { outline: none; }
.quick button:focus-visible { outline: 2px solid var(--brand-400); outline-offset: -2px; }
/* 旧的几处蓝紫色换成淡橙 */
.ai-mini::before { background: linear-gradient(180deg, rgba(242, 154, 88, .07), transparent); }
.ai-av { box-shadow: 0 6px 14px -6px rgba(242, 154, 88, .6); }
.opt input:checked + .mk { box-shadow: 0 2px 6px -1px rgba(242, 154, 88, .5); }
.live-dot { box-shadow: 0 0 0 4px rgba(242, 154, 88, .16); }
.pv.full { box-shadow: 0 6px 14px -6px rgba(242, 154, 88, .6); }
.live-steps .run { background: conic-gradient(from 0deg, #ffc08e, #f59a57, #ffd9b8, #ffc08e); }
.typing i:nth-child(2) { background: #ffcfa8; }
.typing i:nth-child(3) { background: #f9ad76; }
.chat.is-busy .composer { box-shadow: 0 0 0 3px rgba(242, 154, 88, .16); }
.trend .bar span { background: linear-gradient(180deg, #ffc896, #f59a57 60%, #ec8645); }
.fig.f1 { background: linear-gradient(160deg, #fff4ec, #f7f7f8 70%); }
.fig.f3 { background: linear-gradient(160deg, #fdf1e7, #f7f7f8 70%); }
.card.lift:hover, .qa-i:hover, .fd:hover { border-color: rgba(229, 133, 34, .3); }
.shop.add { border-color: rgba(229, 133, 34, .3); }
.tabbar a.ai .ti { box-shadow: 0 8px 20px rgba(242, 154, 88, .45); }
@media (prefers-reduced-motion: reduce) {
  .view, .msg, .reveal, .chat-empty, .fetch.run .dot { animation: none !important; }
}

/* ---------- 公开的 AI 助理页面（chat.php，1.6.0）：没有左边菜单和顶栏，聊天框铺满整个屏幕，浮在彩色渐变上 ---------- */
.pub-main { position: relative; z-index: 1; max-width: 1480px; margin: 0 auto; padding: 14px 14px calc(14px + var(--safe-b)); }
.pub-main > .flash { margin-bottom: 10px; }
.pub .chat { height: calc(100vh - 28px); height: calc(100dvh - 28px - var(--safe-b)); }
.pub-ctl { display: flex; }
/* 提示音开关（1.6.10）：按钮里带一个小开关，开着、关着一眼看得出来 */
.pub-snd .sw { width: 30px; height: 18px; border-radius: 9px; background: #cbd5e1; position: relative; flex: none; transition: background .2s; }
.pub-snd .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .25); transition: transform .2s var(--out); }
.pub-snd[aria-pressed="true"] .sw { background: var(--brand); }
.pub-snd[aria-pressed="true"] .sw::after { transform: translateX(12px); }
.pub-snd[aria-pressed="false"] > svg { color: var(--text-4); }
.pub .chat-more { display: none !important; }
.pub-opts { justify-content: flex-end; }
.pub-opts .chat-hint { margin-left: 0; }
.pc-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pc-link .input { flex: 1 1 320px; min-width: 0; font-family: var(--num); }
@media (max-width: 767px) {
  .pub-main { padding: 0; }
  .pub .chat { height: 100vh; height: 100dvh; border-radius: 0; }
  .pub .chat-h { display: flex; padding: calc(8px + var(--safe-t)) 12px 8px; flex-wrap: nowrap; }
  .pub .chat-id small { display: none; }
  .pub .chat-ctl { display: flex; }
  .pub .chat-ctl .btn:not(.pub-clr) .lb { display: none; }
  /* 右边两个按钮不换行（"清空记录"一直写着字，用户 2026-10-20）；很窄的手机上让名字省略，按钮不挤成上下两行 */
  .pub .chat-ctl { flex-wrap: nowrap; flex: none; }
  .pub .chat-id b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pub .chat-id > div { min-width: 0; }
  .pub .chat-opts { display: flex; }
  .pub .to-bottom { bottom: 150px; }
  .pub .chat-f { padding-bottom: calc(10px + var(--safe-b)); }
}
@media (max-height: 560px) and (min-width: 768px) {
  .pub .chat-ctl { display: flex; }
}
/* 聚合下单页右下角"AI 客服"悬浮球点开的小窗里（chat.php?embed=1，1.7.12）：外面已经有标题栏，这里不要自己的头，聊天框铺满小窗 */
.pub.embed .pub-main { padding: 0; max-width: none; }
.pub.embed .chat { height: 100vh; height: 100dvh; border-radius: 0; border: 0; box-shadow: none; min-height: 0; }
.pub.embed .chat-id { display: none; }
.pub.embed .chat-h { padding: 6px 10px; justify-content: flex-end; flex-wrap: nowrap; }
.pub.embed .chat-ctl .btn:not(.pub-clr) .lb { display: none; }
.pub.embed .chat-log { padding: 16px 14px 14px; }
.pub.embed .chat-f { padding: 10px 12px; }
.pub.embed .chat-empty .asks { grid-template-columns: 1fr; }
.pub.embed .chat-empty .ask { min-height: 0; flex-direction: row; align-items: center; }
.pub.embed .chat-empty h3 { font-size: 18px; }

/* 手机上：AI 回答的头像放到回答上面一行，回答铺满整行，左右留的空一样多
   （用户 2026-09-29："左边有头像，右边没有头像，手机访问的话两边看着不协调，两边空出来的位置不一样多"） */
@media (max-width: 767px) {
  .msg.ai { flex-direction: column; gap: 8px; }
  .msg.ai .ai-av { width: 26px; height: 26px; border-radius: 8px; }
  .msg.ai .ai-av svg { width: 15px; height: 15px; }
  .msg.ai .col { flex: none; width: 100%; max-width: 100%; }
}

/* 列表里的站点：系统名是一个带平台颜色的小标签，后面是店铺名（1.6.4，用户：店铺名基本都一样，要写上是什么系统的） */
.sys { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: var(--fw-semi); color: #fff; white-space: nowrap; line-height: 1; }
.sys-n { margin-left: 6px; color: var(--text-3); }
.fd-site { gap: 0 !important; }
.lrow .site .sys-n, .nrow .site .sys-n { display: block; margin: 4px 0 0; font-size: 12.5px; }

/* ---------- 只在换页面时放进场动画（1.6.5，用户 2026-09-29："就只让它切换页面的时候才有这些动画"）----------
   翻页、刷新、点保存以后、筛选、搜索（还是同一个页面）：html 上有 still（partials/motion.php 加的），进场的动画一律不放，直接显示。
   点了以后才有的反馈（按钮、弹窗、抽屉、轻提示、AI 回答一条条出来）不受影响 */
html.still .view,
html.still .rise,
html.still .flash .note,
html.still .spark .ln, html.still .spark .ar, html.still .spark .pt,
html.still .pv, html.still .trend .bar span, html.still .checklist .ck,
html.still .chat-empty, html.still .msg:not(.fresh) { animation: none !important; }
html.still .spark .ln { stroke-dashoffset: 0; }
html.still .spark .ar, html.still .spark .pt { opacity: 1; }

/* AI 不推荐的卡（系统设置 → AI，1.6.6） */
.blk-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.blk-add .input { flex: 3 1 360px; min-width: 0; }
.blk-add .blk-note { flex: 1 1 180px; }
.blk-empty { margin-top: 14px; font-size: 13.5px; }
.blk-list { display: grid; gap: 8px; margin-top: 14px; }
.blk-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: #f6f6f8; }
.blk-main { flex: 1; min-width: 0; }
.blk-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: var(--fw-semi); color: var(--ink); }
.blk-name a { color: var(--ink); }
.blk-name a:hover { color: var(--brand-600); }
.blk-meta { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.blk-meta .mono { font-family: var(--num); }

/* 监控站点卡片右上角：系统名 + 监控开关（1.6.7） */
.sh-r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.sh-sw { display: inline-flex; }
.sh-sw .switch { gap: 0; }
.sh-sw.paused .switch { cursor: pointer; opacity: .55; }
.sh-sw.paused .tr { background: var(--rose-100, #ffe4e6); }
.shop:has(.sh-sw input[type="checkbox"]:not(:checked)) .sh-num, .shop:has(.sh-sw input[type="checkbox"]:not(:checked)) .sh-tags, .shop:has(.sh-sw input[type="checkbox"]:not(:checked)) .spark { opacity: .45; }

/* 首页下面这一排：左边"今天的动态"和右边"监控的店铺 + AI 助理"上下一样高（1.6.9，用户 2026-09-29："这 3 个框最好上下高度保持一致"）。
   两列拉成一样高；右边两块中间留原来的空；左边的动态少的时候，"查看全部"按钮贴在最下面。只在两列并排时这样（窄屏是上下排，不用管） */
@media (min-width: 1280px) {
  .home-split { align-items: stretch; }
  .home-split > .card { display: flex; flex-direction: column; }
  .home-split > .card > .feed { flex: 1; align-content: start; }
  .home-split > .card > .card-foot { margin-top: auto; }
  .home-split > .stack > .card { flex: 1; display: flex; flex-direction: column; }
  .home-split > .stack > .card > .shop-list { flex: 1; align-content: start; }
  .home-split > .stack > .card > .card-foot { margin-top: auto; }
  .home-split > .stack > .ai-mini > .asks { flex: 1; align-content: start; }
}
@media (min-width: 1280px) {
  /* 今天还没有变化：那句提示放在中间 */
  .home-split > .card > .feed:has(> .empty) { align-content: center; }
}
@media (min-width: 1280px) {
  /* 右边两块平分多出来的高度（左边动态多、比右边高时），AI 助理的输入框贴在最下面、问题在上面 */
  .home-split > .stack > .card { flex: 1 1 0; min-height: min-content; }
  .home-split > .stack > .ai-mini > .ask-box { margin-top: auto; }
}

/* AI 不推荐的卡：选卡的下拉框（1.6.10，点输入框就列出在售的卡，边打字边搜） */
.blk-pick { position: relative; flex: 3 1 360px; min-width: 0; }
.blk-pick > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-4); pointer-events: none; }
.blk-pick .input { width: 100%; padding-left: 38px; }
.blk-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 340px; overflow-y: auto; padding: 6px; border-radius: 14px; background: #fff; box-shadow: var(--sh-pop); border: 1px solid var(--line); }
.blk-menu[hidden] { display: none; }
.blk-menu.up { top: auto; bottom: calc(100% + 6px); }
.blk-cnt { padding: 6px 10px 8px; font-size: 12px; color: var(--text-4); }
.blk-bb { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 5px; font-size: 11.5px; line-height: 18px; vertical-align: 1px; background: #eef2f7; color: var(--text-3); font-weight: var(--fw-medium); }
.blk-opt { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 10px; cursor: pointer; font: inherit; color: var(--text); }
.blk-opt:hover, .blk-opt.on { background: #f4f4f6; }
.blk-t { display: block; font-size: 14px; font-weight: var(--fw-semi); color: var(--ink); }
.blk-s { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.blk-s .mono { font-family: var(--num); }
.blk-none { padding: 14px 10px; font-size: 13px; color: var(--text-3); }

/* 首页 AI 助理卡片：两个快捷问题 + 今天的用量（1.6.12，用户 2026-09-30 要的）。用量那一行和问题一样高、一样的胶囊，点了看使用统计 */
.asks-q { display: grid; gap: 8px; margin: 0; }
/* 这一列不能被里面的字撑宽（用量那一行不换行，不这样的话数字大了会把整张卡片、手机上整个页面撑宽） */
.ai-mini .asks, .asks-q { grid-template-columns: minmax(0, 1fr); }
.ai-today { min-width: 0; }
/* 一直是一行，和上面两个问题一样高：数字很大（一天上千次、几千万 token）放不下时，ui.js 的 data-fit 把字调小一点 */
.ai-today { color: var(--text-2); text-decoration: none; }
.ai-today .at-v { display: flex; align-items: center; flex-wrap: nowrap; gap: .6em; white-space: nowrap; overflow: hidden; line-height: 22px; }
.ai-today .at-v.tight .at-q { display: none; }
.ai-today .at-v span { flex: none; }
.ai-today b { color: var(--ink); font-weight: var(--fw-semi); }
.ai-today i { width: 1px; height: 12px; background: var(--line); flex: none; }
.ai-today:hover { color: var(--brand-700); }
.ai-today:hover b { color: var(--brand-700); }

/* ---------- 聚合下单页的后台（shop，1.7.12；1.7.16 用户说"整体不太好看，上传图片的地方不搭"，全部改成后台自己的样子） ---------- */
/* 最上面：页面地址 + 开放开关，地址那一行和"公开的 AI 助理页面"的链接一样（.pc-link） */
.shop-url .su-t { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.shop-url .su-t h2 { font-size: 15px; font-weight: var(--fw-semi); display: flex; align-items: center; gap: 10px; }
.shop-url .su-t .muted { font-size: 13px; }
.shop-url .su-sw { margin-left: auto; }
.shop-url .su-sw .switch { white-space: nowrap; }
.shop-url .su-off { margin-top: 8px; }
.shop-url .pc-link .input { font-size: 13.5px; }
.shop-set .form { max-width: none; }
.shop-set .fset > h3 .tag { margin-left: 2px; font-weight: var(--fw-medium); }
/* 开关下面的提醒（没有 GD、公开的 AI 页面关着）：小一号的提示条 */
.sw-note { margin-top: 10px; padding: 9px 12px; font-size: 13px; box-shadow: none; }
.sw-note > .ni { width: 22px; height: 22px; }
.sw-note > .ni svg { width: 13px; height: 13px; }
.sw-note > .nt { padding-top: 1px; }
/* 客服：选了哪一种，下面就只显示要填的那几项 */
.kefu-set:has(input[name="kefu_mode"][value="off"]:checked) :is(.kf-qr, .kf-link),
.kefu-set:has(input[name="kefu_mode"][value="qr"]:checked) .kf-link,
.kefu-set:has(input[name="kefu_mode"][value="link"]:checked) .kf-qr { display: none; }

/* 传图片（横幅、客服二维码）：左边一个预览框（浅灰底、圆角 12px），右边"上传"按钮和说明。
   真正的 <input type="file"> 藏在按钮里；选好的图先在框里预览（ui.js 的 [data-upl]），点保存才换上 */
.upl { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.upl-pv { position: relative; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: var(--r-lg); background: var(--tile); }
.upl-pv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.upl-pv img[hidden] { display: none; }
.upl.wide .upl-pv { width: 320px; max-width: 100%; aspect-ratio: 5 / 2; }
.upl-pv.qr { width: 120px; height: 120px; padding: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.upl-pv.qr img { object-fit: contain; border-radius: 4px; }
.upl-empty { display: none; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-4); }
.upl-empty svg { width: 24px; height: 24px; }
.upl-pv:has(img[hidden]) { background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); border: 0; }
.upl-pv:has(img[hidden]) .upl-empty { display: flex; }
.upl-pv.picked { box-shadow: inset 0 0 0 2px var(--brand-400); }
.upl-pv.reset img { opacity: .4; }
.upl-side { flex: 1 1 220px; min-width: 0; padding-top: 2px; }
.upl-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.upl-btns label.btn { cursor: pointer; }
.upl-btns input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upl-btns label.btn:has(input:focus-visible) { box-shadow: var(--ring); }
.upl-reset:has(input:checked) { background: var(--brand-50); color: var(--brand-700); }
.upl-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--brand-700); font-weight: var(--fw-medium); word-break: break-all; }
.upl-note[hidden] { display: none; }
.upl-note svg { width: 15px; height: 15px; flex: none; }
.upl-side .help { margin-top: 8px; }
.upl-stat { font-size: 14px; color: var(--text); }
.upl-stat b { font-weight: var(--fw-semi); }

/* 显示哪些卡：选卡框里选好的卡排成小标签 */
.pick-chips { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.pick-chips:empty { display: none; }
.pchip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; height: 28px; padding: 0 4px 0 12px; border-radius: 999px; font-size: 13px; background: var(--brand-50); color: var(--brand-700); }
.pchip button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; }
.pchip button:hover { background: var(--brand-100); }
.blk-opt.picked { background: var(--brand-50); }
.blk-ok { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; line-height: 18px; vertical-align: 1px; background: var(--brand-500); color: #fff; font-weight: var(--fw-medium); }
.pick-n { font-weight: var(--fw-semi); }
/* 平台标了主推的卡：收在可以展开的一块里，一张一行（以前是一大片小标签） */
.rec-tip { margin: 0 0 12px; font-size: 13px; color: var(--text-3); }
.rec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.rec-i { min-width: 0; padding: 10px 14px; border-radius: var(--r-lg); background: var(--tile); }
.rec-n { display: block; font-size: 13.5px; font-weight: var(--fw-semi); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-n:hover { color: var(--brand-600); }
.rec-m { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; margin-top: 5px; font-size: 12.5px; color: var(--text-3); }
.rec-i.off .rec-n { color: var(--text-4); text-decoration: line-through; }

/* 重复的卡：每组一块浅灰底，勾选框和"选项卡片"的勾一样 */
.dupe-go { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.dupe-go span { flex: 1 1 280px; font-size: 12.5px; color: var(--text-3); }
.dupe-sum { margin: 18px 0 10px; font-size: 13.5px; color: var(--text-2); }
.dupe-groups { display: grid; gap: 10px; }
.dupe-g { padding: 6px 14px 12px; border-radius: var(--r-lg); background: var(--tile); }
.dupe-c { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.dupe-c:last-of-type { border-bottom: 0; }
.dupe-c input { position: absolute; opacity: 0; pointer-events: none; }
.dupe-c .mk { width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; border: 1.6px solid #cbd5e1; background: #fff; flex: none; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.dupe-c .mk svg { width: 12px; height: 12px; stroke-width: 3; color: #fff; transform: scale(0); transition: transform .3s var(--spring); }
.dupe-c input:checked + .mk { background: var(--brand); border-color: transparent; }
.dupe-c input:checked + .mk svg { transform: scale(1); }
.dupe-c input:focus-visible + .mk { box-shadow: var(--ring); }
.dupe-c:has(input:not(:checked)) .dupe-b { opacity: .55; }
.dupe-b { flex: 1; min-width: 0; display: grid; gap: 4px; }
.dupe-n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: var(--fw-semi); color: var(--ink); }
.dupe-m { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.dupe-a { display: flex; justify-content: flex-end; margin-top: 4px; }
.dupe-cards { display: grid; gap: 8px; }
.dupe-l { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.dupe-l b { font-weight: var(--fw-semi); color: var(--ink); }
/* 名字不一样的重复卡：AI 在后台看（1.7.26） */
.dupe-ai { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0 2px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--violet-50); }
.dupe-ai > div { display: grid; gap: 3px; min-width: 0; }
.dupe-ai b { font-size: 13.5px; font-weight: var(--fw-semi); color: var(--ink); }
.dupe-ai span { font-size: 12.5px; color: var(--text-3); }
.dupe-ai .ctile { background: #fff; }
.dupe-ai.run .ctile svg { animation: m-breathe 3s ease-in-out infinite; } /* AI 正在看：图标慢慢一明一暗（1.7.42 以前上下跳） */
.dupe-ai-fresh { display: none; margin-left: 6px; color: var(--violet-600); font-weight: var(--fw-medium); }
.dupe-ai.fresh .dupe-ai-fresh { display: inline; }
.dupe-say { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 2px; font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.dupe-say svg { width: 14px; height: 14px; margin-top: 3px; flex: none; color: var(--violet-600); }
.dupe-f { color: var(--text-2); }
.dupe-x { margin: 8px 0 0; font-size: 12.5px; color: var(--text-3); }
.dupe-k { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--violet-50); color: var(--violet-600); font-size: 11.5px; font-weight: var(--fw-semi); font-variant-numeric: tabular-nums; }
.dupe-h { margin: 24px 0 4px; font-size: 14px; font-weight: var(--fw-semi); color: var(--ink); }
.dupe-hd { margin: 0 0 10px; font-size: 12.5px; color: var(--text-3); }
.dupe-no { margin-top: 20px; }
.dupe-no .dupe-hd { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .dupe-ai.run .ctile svg { animation: none; } }

/* 点击统计：上面两个数字（和"商品详情"的 .figs 一样），下面的列表每行一根细条 */
.figs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.click-list { display: grid; gap: 2px; }
.click-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px 8px 4px; border-radius: var(--r-md); }
.click-row:hover { background: var(--tile); }
.click-i { color: var(--text-4); font-size: 13px; text-align: right; }
.click-n { font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.click-n a { color: var(--ink); }
.click-n a:hover { color: var(--brand-600); }
.meter { height: 6px; margin-top: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-300), var(--brand-500)); }
.click-v { font-size: 15px; font-weight: var(--fw-semi); color: var(--ink); min-width: 32px; text-align: right; }
@media (max-width: 767px) {
  .shop-url .su-sw { margin-left: 0; flex-basis: 100%; }
  .upl.wide .upl-pv { width: 100%; }
  .rec-list { grid-template-columns: minmax(0, 1fr); }
  .figs.two .fig .x { display: none; }
}
