:root {
  --brand: #e22d22; --brand-2: #ff7058; --brand-soft: #fff1ef;
  --brand-dark: #b81d14; --line: #ececf0; --text: #23232b;
  --hint: #8a8a96; --bg: #f6f7f9; --card: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.hidden { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }
.hd { background: linear-gradient(120deg, var(--brand-2), var(--brand)); color: #fff;
  padding: 22px 0 26px; margin-bottom: 18px; }
.hd-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex;
  align-items: center; justify-content: space-between; gap: 12px; }
h1 { font-size: 21px; margin: 0 0 4px; font-weight: 700; }
.sub { margin: 0; font-size: 12px; opacity: .9; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(20,20,30,.04); }
.card h2 { margin: 0 0 6px; font-size: 19px; }
.card h3 { margin: 0 0 10px; font-size: 16px; }
.login-card { max-width: 420px; margin: 34px auto; }
label { display: block; font-size: 12px; color: var(--hint); margin: 12px 0; }
label input { display: block; width: 100%; height: 40px; margin-top: 5px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--text); background: #fff; }
label input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.btn { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 8px;
  height: 36px; padding: 0 14px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.btn:hover { border-color: var(--brand-2); color: var(--brand-dark); }
.btn.primary { background: linear-gradient(120deg, var(--brand-2), var(--brand));
  color: #fff; border-color: transparent; font-weight: 600; }
.btn.primary:hover { opacity: .92; color: #fff; }
.btn.ghost { background: #fff; }
.btn.block { width: 100%; height: 42px; margin-top: 8px; font-size: 15px; }
.btn.small { height: 30px; padding: 0 10px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.tip { color: var(--hint); font-size: 12px; margin: 4px 0 14px; }
.tip.small { margin-top: 16px; font-size: 11px; }
.err { color: var(--brand-dark); font-size: 13px; min-height: 20px; margin-top: 10px; }
.bar { background: var(--brand-soft); border: 1px solid #ffd9d2; color: var(--brand-dark);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.bar b { font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters select, .filters input { height: 36px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; font-size: 13px; color: var(--text); }
.filters input[type=search] { flex: 1 1 150px; min-width: 120px; }
.stats { color: var(--hint); font-size: 12px; margin-bottom: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: #fafafb; color: var(--hint); font-weight: 600; font-size: 12px; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--brand-soft); }
td.price { color: var(--brand-dark); font-weight: 700; }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 5px;
  background: #eef4ff; color: #2b62b3; }
.tag.internal { background: #fff3e0; color: #a35b00; }
.empty { text-align: center; color: var(--hint); padding: 26px !important; }
.cards { display: none; }
.mcard { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.mcard .top { display: flex; justify-content: space-between; gap: 8px; }
.mcard .nm { font-weight: 600; }
.mcard .pr { color: var(--brand-dark); font-weight: 700; }
.mcard .meta { color: var(--hint); font-size: 12px; margin: 4px 0; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin-top: 12px; font-size: 12px; color: var(--hint); }
.pager span { margin-right: auto; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 140px; overflow-x: auto; padding: 6px 0; }
.spark .bar { width: 22px; min-width: 22px; background: linear-gradient(180deg, var(--brand-2), var(--brand));
  border-radius: 3px 3px 0 0; }
.ft { text-align: center; color: var(--hint); font-size: 11px; padding: 14px 0 22px;
  border-top: 1px solid var(--line); line-height: 1.8; }
.hd-actions { display: flex; align-items: center; gap: 10px; }
.whoami { color: #fff; font-size: 13px; opacity: .95; text-decoration: none;
  padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.14); white-space: nowrap; }
.hd-link { color: #fff; font-size: 13px; opacity: .95; text-decoration: none;
  padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.14); white-space: nowrap; }
.hd-link:hover { background: rgba(255,255,255,.26); }
a.whoami:hover { background: rgba(255,255,255,.26); color: #fff; }
a.whoami::after { content: " ›"; opacity: .8; }
.bar b { color: var(--brand-dark); }

/* 登录 / 注册弹窗 */
.mask { position: fixed; inset: 0; background: rgba(20,20,30,.5); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-box { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2); max-height: 92vh; overflow-y: auto; }
.auth-box .tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.auth-box .tabs button { flex: 1; border: 0; background: none; padding: 10px 0; font-size: 15px;
  color: var(--hint); cursor: pointer; border-bottom: 2px solid transparent; }
.auth-box .tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.auth-box .tip b { color: var(--brand-dark); }
.auth-box label input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }

/* 首页说明条（后台可编辑） */
.notice { background: var(--brand-soft, #fff4f1); border: 1px solid #ffe0d8; color: #7a4b40;
  font-size: 12px; line-height: 1.7; border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; }
.notice:empty { display: none; }

/* 邮箱验证码输入行 */
.inline-row { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; }
.inline-row input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 12px;
  border: 1px solid var(--line, #ececf0); border-radius: 8px; font-size: 14px; }
.inline-row input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.inline-row .btn { flex: 0 0 auto; white-space: nowrap; height: 40px; }
.inline-row .btn:disabled { opacity: .6; cursor: not-allowed; }
.tip.tiny { font-size: 11px; line-height: 1.6; margin: 4px 0 0; }

@media (max-width: 720px) {
  .hd-actions { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .whoami { font-size: 12px; }
  .wrap { padding: 0 10px 30px; }
  .hd { padding: 16px 0 20px; }
  h1 { font-size: 17px; }
  .card { padding: 13px; }
  .table-wrap { display: none; }
  .cards { display: block; }
  .filters select, .filters input { flex: 1 1 100%; }
  .btn { flex: 1 1 auto; }
}

/* ---------- 城市锁 / 价格波动（2026-11-19） ---------- */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-between h3 { margin: 0; }
.seg { display: inline-flex; background: #f4f4f7; border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: transparent; font-size: 12.5px; color: var(--hint);
  padding: 5px 14px; border-radius: 7px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--brand-dark); font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,.09); }
.fluct-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 2px 0 4px; flex-wrap: wrap; }
.fprice { font-size: 27px; font-weight: 800; letter-spacing: -.5px; }
.funit { font-size: 12px; color: var(--hint); margin-left: 6px; }
.chg { font-size: 12px; font-weight: 700; border-radius: 7px; padding: 3px 9px; background: #f2f2f5; color: #6b6b76; }
.chg.up { background: #fdecea; color: #c62828; }
.chg.down { background: #e9f6ee; color: #1a7f4b; }
.spark .bar.dim { background: linear-gradient(180deg, #f0c4bd, #dfb0a8); }
.spark .bar.up { background: linear-gradient(180deg, #ff9d8c, #e22d22); }
.spark .bar.down { background: linear-gradient(180deg, #9fd9b8, #1a7f4b); }
.city-tip { background: #fffaf0; border: 1px solid #ffe0a3; color: #8a5a00; border-radius: 9px;
  padding: 9px 12px; font-size: 12.5px; margin-bottom: 12px; display: none; }
.city-tip b { color: #a5730c; }
.city-tip a { color: var(--brand-dark); font-weight: 700; text-decoration: none; cursor: pointer; }
.lock-opt { color: #b0b0bb; }
