:root {
  --red: #e8362f;
  --red-2: #ff5a4e;
  --text: #1f2126;
  --sub: #8b909a;
  --line: #f0f1f4;
  --bg: #f4f5f7;
  --card: #ffffff;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: #e9ebf0;
  color: var(--text);
  font-family: "Inter", "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  letter-spacing: .2px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 76px; }

@media (min-width: 560px) {
  #app { box-shadow: 0 0 48px rgba(20, 25, 40, .16); }
  body { background: #dfe2e8; }
}

svg.ico { display: inline-block; vertical-align: middle; }
.icon-text {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: calc(var(--is, 22px) * .58); font-weight: 700; letter-spacing: .5px; line-height: 1;
}

/* ---------- 顶部标题 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  height: 46px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; letter-spacing: .4px;
  border-bottom: 1px solid var(--line);
}
.topbar .brand { color: var(--text); }
.topbar .slogan { color: var(--red); margin-left: 2px; font-weight: 600; }

/* ---------- 导航九宫格 ---------- */
.nav-grid {
  background: #fff; padding: 14px 8px 8px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 4px;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; border: none; background: none; padding: 0; }
.nav-ico {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}
.nav-ico svg { width: 22px; height: 22px; }
.nav-ico.imgico { background: #fff; border: 1px solid #eceef2; box-shadow: 0 3px 9px rgba(22, 27, 40, .1); }
.nav-ico.imgico img { border-radius: 8px; }
.nav-title { font-size: 11.5px; color: #4a4f59; line-height: 1; white-space: nowrap; }

.g0 { background: linear-gradient(135deg, #ff7b6b, #f0453a); }
.g1 { background: linear-gradient(135deg, #ffa07a, #ff7043); }
.g2 { background: linear-gradient(135deg, #6fb1fc, #4364f7); }
.g3 { background: linear-gradient(135deg, #b083f0, #7c4dff); }
.g4 { background: linear-gradient(135deg, #4dd0a0, #12a37d); }
.g5 { background: linear-gradient(135deg, #ff8fb1, #f06292); }

/* ---------- 搜索卡 ---------- */
.search-wrap { background: #fff; margin-top: 8px; padding: 12px 14px 14px; }
.tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tab {
  flex: 1; text-align: center; font-size: 13px; padding: 7px 0; border-radius: 8px;
  background: #f5f6f8; color: #5a5f69; border: none; cursor: pointer; font-family: inherit;
}
.tab.active { background: #ffeceb; color: var(--red); font-weight: 600; }

.tip { font-size: 12px; color: #9aa0aa; margin: 0 0 9px; line-height: 1.5; }
.tip i { color: var(--red); font-style: normal; }

.pos-inputs { display: flex; gap: 4px; }
.pos-cell {
  flex: 1; min-width: 0; height: 34px; border: 1px solid #e4e7ec; border-radius: 5px;
  text-align: center; font-size: 15px; font-weight: 600; color: #222; background: #fbfcfd;
  font-family: inherit; padding: 0;
}
.pos-cell:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 2px rgba(232, 54, 47, .1); }
.pos-cell.filled { border-color: #ffc9c5; background: #fff7f6; color: var(--red); }

.kw-modes { display: flex; gap: 8px; margin-bottom: 8px; }
.kw-mode {
  padding: 5px 16px; border-radius: 20px; border: 1px solid #e4e7ec; background: #fbfcfd;
  color: #6b727d; font-size: 12.5px; font-family: inherit; cursor: pointer; line-height: 1.4;
}
.kw-mode.active {
  background: #fff1f0; border-color: #ffc9c5; color: var(--red); font-weight: 600;
}

.kw-box { position: relative; }
.kw-box input {
  width: 100%; height: 44px; border: 1px solid #e4e7ec; border-radius: 10px;
  padding: 0 14px; font-size: 15px; font-family: inherit; background: #fbfcfd; color: #222;
  letter-spacing: .5px; font-variant-numeric: tabular-nums;
}
.kw-box input:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(232, 54, 47, .08); }

/* ---------- 筛选 ---------- */
.filters { background: #fff; margin-top: 8px; padding: 8px 14px 14px; }
.frow { display: flex; align-items: center; min-height: 40px; gap: 8px; }
.flabel { flex: 0 0 60px; font-size: 12.5px; color: #6b727d; white-space: nowrap; }
.fbody { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }

.chip {
  padding: 4px 9px; font-size: 13px; border-radius: 5px; border: none;
  background: #f4f5f7; color: #5a5f69; cursor: pointer; font-family: inherit; line-height: 1.4;
}
.chip.active { background: linear-gradient(90deg, #ff5a4e, #e8362f); color: #fff; font-weight: 600; }

.sel {
  flex: 1; min-width: 0; height: 32px; border: 1px solid #e4e7ec; border-radius: 6px;
  background: #fbfcfd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a8aeb8' stroke-width='1.2' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding: 0 24px 0 10px; font-size: 13px; color: #3d434d; font-family: inherit;
  appearance: none; -webkit-appearance: none;
}
.sel:focus { outline: none; border-color: var(--red); }
.pair { display: flex; gap: 8px; flex: 1; min-width: 0; }

.digit {
  width: 24px; height: 26px; border-radius: 5px; border: none; background: #f4f5f7;
  color: #5a5f69; font-size: 13px; cursor: pointer; font-family: inherit; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.digit.active { background: var(--red); color: #fff; font-weight: 600; }
.pref-chip { padding: 4px 8px; font-size: 12px; border-radius: 5px; border: none; background: #f4f5f7; color: #5a5f69; cursor: pointer; font-family: inherit; }
.pref-chip.active { background: var(--red); color: #fff; font-weight: 600; }

.actions { display: flex; gap: 10px; padding: 4px 14px 16px; background: #fff; }
.btn { border: none; border-radius: 8px; height: 42px; font-size: 15px; font-family: inherit; cursor: pointer; font-weight: 600; letter-spacing: 1px; }
.btn-reset { flex: 0 0 34%; background: #f0f1f4; color: #5a5f69; }
.btn-search { flex: 1; background: linear-gradient(90deg, #ff5f52, #e0261e); color: #fff; box-shadow: 0 6px 14px rgba(224, 38, 30, .24); }
.btn:active { transform: translateY(1px); }

/* ---------- 结果列表 ---------- */
.list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 4px; font-size: 12px; color: #9aa0aa;
}
.list-head b { color: var(--red); font-weight: 600; }
.fav-ops { display: flex; align-items: center; gap: 14px; }
.fav-copyall { color: var(--red); font-weight: 600; cursor: pointer; }
.fav-clear { color: #b6bcc6; font-weight: 400; cursor: pointer; }

.list { background: transparent; padding: 2px 10px 6px; }

.ncard {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px; padding: 12px 13px; margin: 8px 0;
  min-height: 68px;
  border: 1px solid #eef0f4;
  box-shadow: 0 1px 1px rgba(22, 27, 40, .03), 0 5px 14px rgba(22, 27, 40, .05);
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.ncard:active { transform: scale(.99); box-shadow: 0 1px 2px rgba(22, 27, 40, .05); }
.ncard.pinned {
  border-color: #ffd9d5;
  background: linear-gradient(180deg, #fff9f8 0%, #ffffff 55%);
}

.nc-left { flex: 1; min-width: 0; }
.nc-num {
  display: flex; align-items: center; gap: 7px;
  font-size: 17px; font-weight: 800; letter-spacing: .8px; color: #171a20;
  font-variant-numeric: tabular-nums; line-height: 1.2;
  font-family: "SF Mono", "Roboto Mono", Menlo, Consolas, "Inter", Arial, sans-serif;
}
.nc-pin {
  font-size: 10px; font-weight: 700; letter-spacing: 0; color: #fff;
  background: linear-gradient(90deg, #ff6a5e, #e0251d);
  padding: 1.5px 6px; border-radius: 4px; box-shadow: 0 2px 5px rgba(224, 37, 29, .25);
}
.nc-meta { display: flex; gap: 5px; margin-top: 8px; overflow: hidden; }
.nc-chip {
  font-size: 11px; padding: 2.5px 7px; border-radius: 5px; white-space: nowrap;
  background: #f4f5f8; color: #6b7280;
  box-shadow: inset 0 -1px 0 rgba(22, 27, 40, .05);
}
.nc-chip.chip-loc { background: #f1f5fb; color: #4a6b99; }
.nc-chip.chip-op { background: #f0f8f3; color: #3b7a58; }
.nc-chip.chip-type { background: #fff5eb; color: #a4682a; }

.nc-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.nc-price {
  min-width: 76px; text-align: center;
  font-size: 17px; font-weight: 800; color: var(--red);
  background: #fff1f0; border-radius: 9px; padding: 5px 9px;
  box-shadow: inset 0 -1px 0 rgba(232, 54, 47, .14), 0 2px 6px rgba(232, 54, 47, .08);
  font-family: Helvetica, Arial, "Inter", sans-serif;
  font-variant-numeric: tabular-nums;
}
.nc-price small { font-size: 11px; font-weight: 700; }
.nc-copy {
  border: 1px solid #ffd6d3; background: #fff; color: var(--red);
  font-size: 11px; padding: 2.5px 10px; border-radius: 11px;
  font-family: inherit; cursor: pointer; line-height: 1.5;
}

.empty { background: #fff; padding: 60px 20px; text-align: center; color: #9aa0aa; font-size: 13px; line-height: 1.8; }
.empty .e-ico { width: 64px; height: 64px; border-radius: 50%; background: #f4f5f7; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: #c3c8d1; }

.load-more { display: block; width: 100%; padding: 16px; background: #fff; border: none; color: #9aa0aa; font-size: 13px; font-family: inherit; cursor: pointer; }
.load-more:disabled { color: #c3c8d1; }

/* ---------- 底部导航 ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: flex; z-index: 30;
}
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: none; background: none; color: #8b909a; font-size: 11px; cursor: pointer; font-family: inherit; padding: 0;
}
.bn-item svg { width: 21px; height: 21px; }
.bn-item.active { color: var(--red); }

/* ---------- 详情页 ---------- */
.page-head {
  position: sticky; top: 0; z-index: 20; background: #fff; height: 46px;
  display: flex; align-items: center; padding: 0 6px; border-bottom: 1px solid var(--line);
}
.page-head .back { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: none; background: none; color: #333; cursor: pointer; }
.page-head .ph-title { flex: 1; text-align: center; font-size: 15px; font-weight: 600; }
.page-head .ph-right { width: 40px; }

.detail-top { background: #fff; padding: 22px 16px 20px; }
.d-num { font-size: 26px; font-weight: 800; letter-spacing: .5px; font-family: "SF Mono", Menlo, Consolas, Arial, sans-serif; word-break: break-all; line-height: 1.3; }
.d-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.d-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #fff1f0; color: var(--red); font-weight: 600; }
.d-tag.gray { background: #f2f3f5; color: #8b909a; font-weight: 500; }
.d-price { margin-top: 16px; display: flex; align-items: baseline; gap: 6px; }
.d-price .cur { color: var(--red); font-size: 15px; font-weight: 600; }
.d-price .val { color: var(--red); font-size: 30px; font-weight: 800; font-family: Helvetica, Arial, sans-serif; }
.d-price .note { margin-left: auto; font-size: 12px; color: #9aa0aa; }

.d-card { background: #fff; margin-top: 8px; padding: 4px 16px; }
.d-line { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #f7f8fa; font-size: 14px; }
.d-line:last-child { border-bottom: none; }
.d-line .k { color: #8b909a; font-size: 13px; }
.d-line .v { color: #2b3038; font-weight: 500; text-align: right; max-width: 60%; }

.d-detail { background: #fff; margin-top: 8px; padding: 14px 16px 20px; }
.d-detail h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #2b3038; }
.d-detail p { margin: 0; font-size: 13px; color: #6b727d; line-height: 1.8; white-space: pre-wrap; }

.d-bar {
  position: fixed; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--line);
  display: flex; gap: 8px; padding: 10px 12px; z-index: 31;
}
.d-bar .fav-btn {
  flex: 0 0 48px; border: none; background: none; color: #8b909a; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font-family: inherit; padding: 4px 0;
}
.d-bar .fav-btn.on { color: var(--red); }
.d-bar .d-copy {
  flex: 0 0 96px; height: 44px; border: 1px solid #e4e7ec; border-radius: 8px; background: #f7f8fa;
  color: #3d434d; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.d-bar .d-copy:active { background: #eef0f4; }
.d-bar .d-consult { flex: 1; height: 44px; }

/* ---------- 弹层 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(20, 24, 33, .5); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.sheet {
  width: 100%; max-width: 480px; background: #fff; border-radius: 16px 16px 0 0;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px)); animation: up .24s ease;
  max-height: 82vh; overflow: auto;
}
@keyframes up { from { transform: translateY(30px); opacity: .6 } to { transform: translateY(0); opacity: 1 } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 6px; }
.sheet-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.sheet-close { border: none; background: none; color: #b6bcc6; cursor: pointer; padding: 4px; }
.cn-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f4f5f7; }
.cn-ico { width: 38px; height: 38px; border-radius: 10px; background: #fff1f0; color: var(--red); display: flex; align-items: center; justify-content: center; flex: 0 0 38px; }
.cn-info { flex: 1; min-width: 0; }
.cn-info .t { font-size: 13px; color: #8b909a; }
.cn-info .v { font-size: 15px; font-weight: 600; color: #222; margin-top: 2px; word-break: break-all; }
.cn-copy { border: 1px solid #ffd6d3; background: #fff; color: var(--red); font-size: 12px; padding: 5px 12px; border-radius: 20px; cursor: pointer; font-family: inherit; }
.sheet .tip-text { font-size: 12px; color: #9aa0aa; line-height: 1.7; margin-top: 16px; text-align: center; }
.consult-page { background: #fff; margin-top: 8px; padding: 4px 16px 24px; }
.qr-box { text-align: center; padding: 18px 0 6px; }
.qr-box img {
  width: 200px; height: 200px; object-fit: contain; border-radius: 14px;
  background: #fff; padding: 6px; border: 1px solid #eceef2;
  box-shadow: 0 6px 18px rgba(22, 27, 40, .08);
}
.qr-tip { font-size: 12.5px; color: #6b727d; margin: 12px 0 0; letter-spacing: .3px; }
.qr-box.qr-empty { color: #b6bcc6; font-size: 13px; padding: 40px 0; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9);
  background: rgba(28, 32, 40, .9); color: #fff; font-size: 13px; padding: 10px 18px;
  border-radius: 8px; z-index: 90; opacity: 0; pointer-events: none; transition: all .2s ease; max-width: 70%; text-align: center; line-height: 1.6;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.skeleton { background: transparent; padding: 4px 0; }
.sk-card {
  height: 68px; margin: 8px 0; border-radius: 12px;
  background: linear-gradient(90deg, #f2f3f5 25%, #e9ebef 37%, #f2f3f5 63%);
  background-size: 400% 100%; animation: sk 1.4s infinite;
}
.sk-row { height: 58px; border-bottom: 1px solid #f6f7f9; display: flex; align-items: center; padding: 0 14px; gap: 12px; }
.sk-line { background: linear-gradient(90deg, #f2f3f5 25%, #e9ebef 37%, #f2f3f5 63%); background-size: 400% 100%; animation: sk 1.4s infinite; border-radius: 4px; height: 14px; }
@keyframes sk { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }

/* ---------- 车牌靓号 ---------- */
.plate-hero {
  margin: 8px 0 0; padding: 16px 16px 14px; color: #fff;
  background: linear-gradient(135deg, #1f6bd8 0%, #0b4aa2 55%, #12325f 100%);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 6px 16px rgba(11, 74, 162, .22);
}
.plate-hero .ph-t { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.plate-hero .ph-s { font-size: 12px; opacity: .82; margin-top: 5px; }

.kw-box .kw-go {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: none; border-radius: 8px; cursor: pointer;
  background: linear-gradient(90deg, #ff5a4e, #e8362f); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(232, 54, 47, .3);
}
.kw-box input { padding-right: 46px; }

.plate-badge {
  display: inline-block; font-weight: 800;
  font-size: 15px; letter-spacing: 1.6px; line-height: 1.15;
  padding: 6px 10px 6px 12px; border-radius: 5px;
  font-family: "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  transform: skewX(-3deg);
}
.plate-badge.lg { font-size: 26px; padding: 11px 18px 11px 21px; letter-spacing: 3px; border-radius: 7px; }
.plate-blue {
  color: #fff; background: linear-gradient(180deg, #2a7ee0 0%, #1a63c4 45%, #0b4aa2 100%);
  border: 1.5px solid rgba(255, 255, 255, .9);
  text-shadow: 0 1px 2px rgba(0, 30, 80, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 3px rgba(0, 20, 60, .35), 0 3px 7px rgba(9, 45, 100, .32);
}
.plate-green {
  color: #0a2408; background: linear-gradient(180deg, #c4ef8f 0%, #8edb55 45%, #45b12c 100%);
  border: 1.5px solid rgba(255, 255, 255, .92);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 3px rgba(30, 90, 20, .28), 0 3px 7px rgba(40, 110, 30, .26);
}

.pcard {
  background: #fff; border-radius: 12px; padding: 12px 13px; margin: 8px 0;
  border: 1px solid #eef0f4; cursor: pointer;
  box-shadow: 0 1px 1px rgba(22, 27, 40, .03), 0 5px 14px rgba(22, 27, 40, .05);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pcard:active { transform: scale(.99); box-shadow: 0 1px 2px rgba(22, 27, 40, .05); }
.pcard.pinned { border-color: #ffd9d5; background: linear-gradient(180deg, #fff9f8 0%, #fff 55%); }
.pcard.blue { border-top: 2px solid #1a63c4; }
.pcard.green { border-top: 2px solid #45b12c; }

.pc-head { display: flex; align-items: center; gap: 8px; }
.pc-pin {
  font-size: 10px; padding: 1.5px 6px; border-radius: 4px;
  background: #fff1f0; color: var(--red); font-weight: 600;
}
.pc-copy {
  margin-left: auto; flex: 0 0 auto;
}
.pc-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.nc-chip.chip-green { background: #eefbe6; color: #3d7a28; }
.nc-chip.chip-blue { background: #edf3fd; color: #2b62a8; }
.pc-foot {
  display: flex; align-items: flex-end; justify-content: space-between; margin-top: 7px;
  padding-top: 7px; border-top: 1px dashed #f0f1f4;
}
.pc-owner { font-size: 11.5px; color: #9aa0aa; }
.pc-price {
  font-size: 18px; font-weight: 800; color: var(--red);
  font-family: Helvetica, Arial, "Inter", sans-serif; font-variant-numeric: tabular-nums;
}
.pc-price small { font-size: 11px; font-weight: 700; }

.plate-detail-top .pd-badge-wrap { text-align: center; padding: 20px 0 10px; }

/* ---------- 手机号详情页（立体号码牌 + 方块字段） ---------- */
.phone-detail-top { text-align: center; padding: 22px 16px 14px; }
.num-badge {
  display: inline-block; font-size: 21px; font-weight: 800; letter-spacing: 1.4px;
  color: #fff; padding: 12px 18px; border-radius: 10px;
  background: linear-gradient(180deg, #ff6a5e 0%, #e8362f 52%, #b7221c 100%);
  border: 1.5px solid rgba(255, 255, 255, .85);
  text-shadow: 0 1px 2px rgba(120, 10, 10, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 6px rgba(120, 10, 10, .35), 0 6px 14px rgba(232, 54, 47, .28);
  font-family: "PingFang SC", Helvetica, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.num-sub { margin-top: 9px; font-size: 12px; color: #8b909a; letter-spacing: .3px; }

.nfield-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 4px 12px 0;
}
.nfield {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  border: 1px solid #eef1f6; border-radius: 10px;
  padding: 10px 6px 9px; text-align: center;
  box-shadow: 0 2px 5px rgba(22, 27, 40, .06), inset 0 1px 0 #fff, inset 0 -2px 0 rgba(22, 27, 40, .03);
}
.nfield i { display: block; font-style: normal; font-size: 11px; color: #9aa0aa; margin-bottom: 3px; }
.nfield b { display: block; font-size: 13px; color: #2b3038; font-weight: 600; line-height: 1.35; word-break: break-all; }

.nc-price.ask, .pc-price.ask, .d-price.ask { letter-spacing: 1px; }
.d-price .val.ask { font-size: 26px; }

/* ---------- 前端模板模块 ---------- */
.tpl-hero { position: relative; margin: 0 0 10px; overflow: hidden; background: #0b1e3a; }
.tpl-hero .hero-slide { display: none; }
.tpl-hero .hero-slide.active { display: block; }
.tpl-hero .hero-slide img { display: block; width: 100%; height: 168px; object-fit: cover; }
.tpl-hero-txt { position: absolute; left: 0; right: 0; bottom: 12px; padding: 0 14px; pointer-events: none; }
.tpl-hero-txt .th-t { font-size: 17px; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.tpl-hero-txt .th-s { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .88); text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.hero-dots { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 5px; }
.hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: all .25s; }
.hero-dots span.active { width: 14px; border-radius: 3px; background: #fff; }
.tpl-notice { margin: 10px 12px 0; padding: 9px 12px; border-radius: 8px; background: #fff7e6; color: #ad6800; font-size: 12px; line-height: 1.6; }
.tpl-text { margin: 10px 12px 0; padding: 0 2px; font-size: 13px; color: #5b6270; line-height: 1.8; }
.tpl-image { margin: 10px 12px 0; }
.tpl-image img { display: block; width: 100%; border-radius: 10px; }

/* ---------- 详情页（5 格方块 + 车牌详情对齐手机详情） ---------- */
.plate-detail-top .pd-badge-wrap { margin-bottom: 10px; }
.plate-detail-top .d-price { margin-top: 14px; }
.detail-top .d-price:only-of-type { margin-bottom: 4px; }
.nfield-grid .nfield:nth-child(4):last-child,
.nfield-grid .nfield:nth-child(5):last-child { grid-column: span 1; }

/* =====================================================================
   第九轮 · 列表紧凑饱满 + 标签方块 + 详情页居中 + 购号须知/交易流程/温馨提示
   ===================================================================== */

/* ---------- 号码列表：压缩留白，左右两栏各自填满 ---------- */
.list { padding: 4px 8px 8px; }
.ncard {
  gap: 8px; padding: 10px 12px; margin: 7px 0; min-height: 0; border-radius: 11px;
}
.ncard.pinned { box-shadow: 0 2px 4px rgba(224, 37, 29, .07), 0 8px 18px rgba(224, 37, 29, .10); }
.nc-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nc-num { font-size: 19px; letter-spacing: .3px; line-height: 1.15; white-space: nowrap; }
.nc-meta { margin-top: 7px; gap: 4px; }
.nc-chip {
  font-size: 11px; font-weight: 600; color: #3a4049; background: #f2f3f7;
  padding: 2.5px 7px; border-radius: 5px; box-shadow: none; letter-spacing: 0;
}
.nc-chip.chip-loc { background: #eef3fb; color: #3f6396; }
.nc-chip.chip-op { background: #edf7f0; color: #33734f; }
.nc-chip.chip-type { background: #fff2ea; color: #ad5c1d; }
.nc-chip.chip-type.mid { background: #eef1ff; color: #4653b0; }
.nc-chip.chip-type.full { background: #f6eeff; color: #7b3fbb; }
.nc-chip.chip-type.normal { background: #f2f3f7; color: #7b818c; }
.nc-chip.chip-fee { background: #f4f5f8; color: #6b7280; font-weight: 500; max-width: 132px; overflow: hidden; text-overflow: ellipsis; }
.nc-right { gap: 2px; }
.nc-price-label { font-size: 10px; letter-spacing: 2px; color: #b6bcc6; line-height: 1; }
.nc-price {
  min-width: 82px; padding: 4px 9px; font-size: 17px; border-radius: 8px; line-height: 1.2;
}

/* ---------- 车牌列表：号牌 + 价格一行，下面标签方块（黑体） ---------- */
.pcard { padding: 10px 12px; margin: 7px 0; border-radius: 11px; }
.pcard.blue { border-top: none; border-left: 3px solid #1a63c4; }
.pcard.green { border-top: none; border-left: 3px solid #45b12c; }
.pc-head { display: flex; align-items: center; gap: 7px; }
.pc-price {
  margin-left: auto; font-size: 17px; font-weight: 800; color: var(--red);
  background: #fff1f0; border-radius: 8px; padding: 4px 10px; line-height: 1.2;
  box-shadow: inset 0 -1px 0 rgba(232, 54, 47, .14);
}
.pc-price small { font-size: 11px; font-weight: 700; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ptag {
  font-size: 11.5px; font-weight: 700; color: #1f2126; background: #f1f2f5;
  padding: 2px 7px; border-radius: 4px; letter-spacing: .2px;
  border: 1px solid #e9ebf1;
}
.ptag-rule { background: #fff2ea; color: #a5551a; border-color: #ffe2cd; }

/* ---------- 号码详情：号码 → 售价 整块居中 ---------- */
.detail-hero {
  background: linear-gradient(180deg, #ffffff 0%, #fff7f6 100%);
  padding: 16px 16px 16px; margin-bottom: 6px;
}
.dh-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #ab928d; letter-spacing: .6px; padding: 0 2px; }
.dh-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(232, 54, 47, .12); }
.dh-eyebrow-r { margin-left: auto; color: #c5a9a4; }
.detail-hero .num-badge { font-size: 24px; letter-spacing: 2px; padding: 13px 20px; margin-top: 10px; border-radius: 11px; }
.num-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ntag {
  font-size: 11.5px; font-weight: 600; color: #5a6270; background: #fff;
  border: 1px solid #edf0f5; border-radius: 12px; padding: 3px 10px;
}
.ntag-rule { color: var(--red); background: #fff1f0; border-color: #ffdad6; }
.dh-price-box {
  margin: 14px 8px 0; background: #fff; border: 1px solid #ffe4e1; border-radius: 12px;
  padding: 10px 12px 12px; box-shadow: 0 8px 20px rgba(232, 54, 47, .07);
}
.dh-price-label { display: block; font-size: 10.5px; letter-spacing: 3px; color: #bda39f; margin-bottom: 2px; }
.dh-price-box .d-price { margin-top: 0; justify-content: center; }
.dh-price-note { display: block; margin-top: 4px; font-size: 11.5px; color: #b39a96; letter-spacing: .3px; }
.dh-price-box .d-price .val { font-size: 28px; }

/* 5 个字段铺满两行：第一行 3 格，第二行 2 格各占 1.5 格 */
body[data-layout="classic"] .nfield-grid { grid-template-columns: repeat(6, 1fr); }
body[data-layout="classic"] .nfield-grid .nfield { grid-column: span 2; }
body[data-layout="classic"] .nfield-grid .nfield:nth-child(4),
body[data-layout="classic"] .nfield-grid .nfield:nth-child(5) { grid-column: span 3; }

/* ---------- 购号须知 / 交易流程 / 温馨提示 ---------- */
.mod-card { background: #fff; margin-top: 8px; padding: 14px 16px 14px; }
.mod-notice { background: linear-gradient(180deg, #fff8f7 0%, #fff 44%); border-top: 2px solid #ffd9d4; }
.mod-warn { background: linear-gradient(180deg, #fffaf0 0%, #fff 46%); }
.mod-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.mod-ic {
  width: 26px; height: 26px; border-radius: 8px; background: #fff0ee; color: var(--red);
  display: flex; align-items: center; justify-content: center; flex: 0 0 26px;
}
.mod-title { font-size: 14px; font-weight: 700; color: #22262e; letter-spacing: .3px; }
.mod-title span { margin-left: 8px; font-size: 11px; font-weight: 400; color: #aab1bb; letter-spacing: 0; }
.mod-list { margin: 0; padding-left: 17px; }
.mod-list li { font-size: 12.5px; color: #586070; line-height: 1.85; margin: 0 0 5px; }
.mod-list li b { color: #c0392b; font-weight: 700; margin-right: 2px; }
.mod-list li::marker { color: #e8362f; font-weight: 700; }

.flow-steps { display: flex; padding: 6px 0 2px; }
.flow-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.fs-ic {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(180deg, #fff3f2, #ffe6e4); color: #e8362f;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 9px rgba(232, 54, 47, .12);
}
.fs-t { font-size: 12px; font-weight: 600; color: #33383f; letter-spacing: .2px; }
.fs-line { position: absolute; top: 21px; left: calc(50% + 26px); width: calc(100% - 52px); border-top: 1px dashed #f2bdb8; }

/* ---------- 第十轮：悬浮收藏全部 / 收藏夹分区 / 营销素材图 ---------- */
.fab-fav {
  position: fixed; right: 14px; bottom: 86px; z-index: 40;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 15px; border: none; border-radius: 24px;
  background: linear-gradient(135deg, #ff5b52, #e8362f 60%, #cf271f);
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .3px;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(232, 54, 47, .32), 0 2px 6px rgba(0, 0, 0, .12);
  opacity: 0; transform: translateY(8px) scale(.96); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.fab-fav.show { opacity: 1; transform: none; pointer-events: auto; }
.fab-fav:active { transform: scale(.97); }
.fab-fav svg { width: 16px; height: 16px; flex: none; }

.fav-page { padding: 8px 12px 100px; }
.fav-sec {
  background: #fff; border: 1px solid #eff1f4; border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20, 28, 48, .05);
  margin-bottom: 12px; overflow: hidden;
}
.fav-sec-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 12px; flex-wrap: wrap;
  background: linear-gradient(180deg, #fff, #fafbfd);
  border-bottom: 1px solid #f1f2f6;
}
.fsec-title { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; color: #1d2026; letter-spacing: .2px; }
.fsec-ic { width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.fsec-ic.num { background: #ffeeec; color: #e8362f; }
.fsec-ic.plate { background: #eaf3ff; color: #2f6fb6; }
.fsec-ic svg { width: 14px; height: 14px; }
.fs-count { font-size: 11px; font-weight: 700; color: #8b909a; background: #f3f4f7; border-radius: 9px; padding: 2px 7px; }
.fsec-ops { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fs-btn {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  border: 1px solid #f6d9d6; background: #fff7f6; color: #e8362f;
  font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 14px;
  font-family: inherit;
}
.fs-btn svg { width: 13px; height: 13px; }
.fs-btn.ghost { border-color: #e8eaef; background: #fff; color: #7b818c; }
.fs-btn.mk { border-color: #e7c98d; background: linear-gradient(135deg, #fdf3dd, #f3ddae); color: #8a5a12; }
.fav-empty { padding: 26px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #9aa0aa; font-size: 13px; }
.fav-empty svg { width: 22px; height: 22px; color: #c7ccd4; }

.mk-sheet { padding-bottom: 18px; }
.mk-tip { margin: 4px 2px 12px; font-size: 12.5px; color: #8b909a; line-height: 1.6; }
.mk-kinds { display: flex; gap: 10px; margin-bottom: 14px; }
.mk-kind {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  border: 1.5px solid #eceef3; border-radius: 12px; background: #fff;
  padding: 12px 10px; text-align: center; cursor: pointer; transition: all .15s;
}
.mk-kind.active { border-color: #e8362f; background: #fff8f7; box-shadow: 0 4px 14px rgba(232, 54, 47, .12); }
.mk-kind b { font-size: 13.5px; color: #23272e; }
.mk-kind i { font-style: normal; font-size: 11px; color: #9aa0aa; }
.mk-plate { display: inline-block; padding: 6px 10px; border-radius: 6px; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px; }
.mk-plate.blue { background: linear-gradient(180deg, #2f6fb6, #134a82); border: 1px solid #9dc6f0; }
.mk-plate.green { background: linear-gradient(180deg, #39a06c, #12613f); border: 1px solid #9be0bc; }
.mk-go { margin-top: 6px; }
.mk-preview { padding-bottom: 16px; }
.mk-num { font-size: 11px; color: #9aa0aa; background: #f3f4f7; border-radius: 8px; padding: 2px 6px; margin-left: 6px; }
.mk-img { max-height: 56vh; overflow: auto; border-radius: 10px; background: #0b0a08; display: flex; justify-content: center; }
.mk-img img { width: 100%; display: block; border-radius: 10px; }
.mk-actions { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
.mk-actions .fs-btn { flex: 1; justify-content: center; padding: 11px; border-radius: 12px; }
.mk-actions .btn-search { flex: 1.4; }

/* 收藏卡片：标签不再被截断，车牌复制按钮贴右下 */
.nc-meta { flex-wrap: wrap; row-gap: 5px; }
.nc-chip { max-width: 100%; white-space: nowrap; }
.pcard { position: relative; }
.pcard .pc-copy { position: absolute; right: 12px; bottom: 10px; }

.mk-go { width: 100%; }


/* 车牌卡片右侧列（价格 + 复制），与手机号卡片一致 */
.pc-right { margin-left: auto; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.pc-right .pc-price { margin-left: 0; }

/* 推荐 / 特价 红色标记 */
.ncard { position: relative; }
.nc-pin, .nc-special, .pc-pin, .pc-special {
  display: inline-block; position: static; margin: 0 4px 0 0;
  font-size: 10px; font-weight: 700; line-height: 16px; padding: 0 6px; border-radius: 4px;
}
.nc-pin, .pc-pin { color: #fff; background: linear-gradient(90deg, #ff5a4f, #e0251d); box-shadow: 0 2px 6px rgba(224,37,29,.28); }
.nc-special, .pc-special { color: #d61f1a; background: #fff; border: 1px solid #f3b6b1; }

/* ---------- 分类 / 推荐 / 规则三种新排版 ---------- */
.lay-wrap { padding: 4px 10px 0; }
.lay-sec { margin: 0 0 14px; border-radius: 16px; background: #fff; padding: 12px 12px 13px; box-shadow: 0 2px 10px rgba(20,28,45,.05); }
.lay-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 10px; }
.lay-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.lay-title b { font-size: 15.5px; color: var(--text); white-space: nowrap; }
.lay-sub { font-size: 10.5px; color: #9aa0aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lay-logo { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.lay-logo-text { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: #f3f4f7; color: #6b727d; font-size: 11px; font-weight: 700; }
.lay-ico { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#ff7a6e,#e0251d); flex: 0 0 auto; }
.lay-ico.rec { background: linear-gradient(135deg,#ff6a5e,#d61f1a); }
.lay-ico.spe { background: #fff; color: #d61f1a; border: 1px solid #f3b6b1; }
.lay-ico.ran { background: linear-gradient(135deg,#8a6cff,#5b3df0); }
.lay-ico.rule { background: #fff5ec; color: #b45309; }
.lay-more { margin-left: auto; flex: 0 0 auto; border: 0; background: transparent; color: #8a9199; font-size: 11.5px; font-family: inherit; padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
.lay-more .lay-arrow { font-size: 15px; color: #c2c7cf; }
.lay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.lay-grid .ncard { margin: 0; min-height: 58px; padding: 9px 10px; border-radius: 11px; }
.lay-grid .ncard .nc-num { font-size: 14.5px; letter-spacing: 0; }
.lay-grid .ncard .nc-sub { margin-top: 2px; gap: 4px; flex-wrap: wrap; }
.lay-grid .ncard .nc-loc { font-size: 10.5px; }
.lay-grid .ncard .nc-price { font-size: 13.5px; padding: 1px 5px; border-radius: 5px; }
.lay-grid .ncard .nc-pin, .lay-grid .ncard .nc-special { font-size: 9px; line-height: 14px; padding: 0 4px; margin-bottom: 2px; }
.lay-grid .pcard { margin: 0; padding: 10px; border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.lay-grid .pcard .plate-badge { font-size: 12.5px; padding: 4px 6px 4px 8px; }
.lay-grid .pcard .pc-head { margin: 0; }
.lay-grid .pcard .pc-chips { margin-top: 3px; gap: 4px; align-items: center; }
.lay-grid .pcard .ptag { font-size: 10px; padding: 1px 5px; }
.lay-grid .pcard .pc-price { margin-left: auto; font-size: 13px; padding: 1px 5px; border-radius: 5px; background: #fff1f0; }
.lay-grid .pcard .pc-pin, .lay-grid .pcard .pc-special { font-size: 9px; line-height: 14px; padding: 0 4px; margin: 0; }
.sec-recommend { background: linear-gradient(180deg,#fff7f6 0,#fff 66%); }
.sec-special { background: linear-gradient(180deg,#fffaf0 0,#fff 66%); }
.sec-random, .sec-rule { background: linear-gradient(180deg,#f8f8ff 0,#fff 52%); }
@media (max-width: 520px) {
  .lay-grid { grid-template-columns: 1fr; }
  .lay-grid .ncard .nc-num { font-size: 15px; }
  .lay-grid .pcard .plate-badge { font-size: 12.5px; }
}
@media (max-width: 340px) {
  .lay-grid { grid-template-columns: 1fr; }
}

.pcard .pc-copy { position: static; right: auto; bottom: auto; }

/* ================= 本轮：新三种版式卡片重排 + 更多号码加载 ================= */
.lay-grid .ncard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 66px;
  padding: 9px 8px 10px;
  overflow: hidden;
}
.lay-grid .ncard.has-marks { padding-top: 22px; }
.lay-grid .ncard .nc-num {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}
.lay-grid .ncard .nc-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  gap: 4px 6px;
  flex-wrap: wrap;
}
.lay-grid .ncard .nc-loc {
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lay-grid .ncard .nc-price {
  flex: 0 0 auto;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.nc-marks,
.pc-marks {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  max-width: calc(100% - 8px);
  pointer-events: none;
}
.ncard.has-marks { padding-top: 22px; }
.lay-grid .nc-marks .nc-pin,
.lay-grid .nc-marks .nc-special,
.lay-grid .pc-marks .pc-pin,
.lay-grid .pc-marks .pc-special {
  margin: 0;
  flex: 0 0 auto;
}
.nc-marks .nc-special,
.pc-marks .pc-special {
  background: #fff;
}

.pcard {
  text-align: center;
}
.pcard .pc-head {
  width: 100%;
  justify-content: center;
}
.pcard .pc-chips {
  justify-content: center;
}
.pcard.has-marks { padding-top: 24px; }
.lay-grid .pcard {
  position: relative;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;
  padding: 13px 10px 12px;
  overflow: hidden;
}
.lay-grid .pcard.has-marks { padding-top: 25px; }
.lay-grid .pcard .pc-head,
.lay-grid .pcard .pc-chips {
  width: 100%;
  justify-content: center;
}
.lay-grid .pcard .pc-chips {
  margin-top: 8px;
  gap: 5px;
}
.lay-grid .pcard .ptag,
.lay-grid .pcard .ptag-loc {
  flex: 0 1 auto;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lay-grid .group-empty {
  grid-column: 1 / -1;
  padding: 26px 10px;
  text-align: center;
  color: var(--sub, #9aa0aa);
  font-size: 12.5px;
}
.group-tip {
  margin: 12px 0 2px;
  font-size: 12px;
}

