/* RB NUMBER — 版面和颜色照现在的 rbnumber.com：米色底、深棕顶栏、金色点缀 */
:root {
  --cream: #f1efe3; --ink: #0f172a; --head: #170d0c; --foot: #2c1c17; --strip: #4a3d35;
  --gold: #b68e46; --gold-l: #dcc08a; --gold-d: #8f6c2c; --line: #43b817; --call: #ec2229; --wechat: #07c160;
  --card: #fff; --muted: #6b6257; --border: #e2ddcc; --ok: #1f7a3d; --err: #b42318; --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); color: var(--ink); font: 16px/1.6 'Noto Sans Thai', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif; }
html[lang='zh-Hans'] body { font-family: 'Noto Sans SC', 'Noto Sans Thai', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
main { flex: 1 0 auto; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.block { display: block; margin-top: .4em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; } .tiny { max-width: 460px; }
.pad { padding-top: 28px; padding-bottom: 40px; }
.ok { color: var(--ok); background: #e8f5ec; border: 1px solid #b9dfc5; padding: 10px 14px; border-radius: 10px; }
.err { color: var(--err); background: #fdecea; border: 1px solid #f3c1bb; padding: 10px 14px; border-radius: 10px; }
.warn { background: #fff6e0; border: 1px solid #ecd49a; padding: 10px 14px; border-radius: 10px; }
.warn-inline { color: #8a5a00; font-size: .8rem; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--gold); background: #fff; color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(.96); } .btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #c9a45c, var(--gold)); border-color: var(--gold-d); color: #fff; }
.btn.ghost { background: transparent; }
.btn.line { background: var(--line); border-color: var(--line); color: #fff; }
.btn.call { background: var(--call); border-color: var(--call); color: #fff; }
.btn.wechat { background: var(--wechat); border-color: var(--wechat); color: #fff; }
.btn.small { min-height: 34px; padding: 4px 14px; font-size: .9rem; }
.btn.wide { width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
form.inline { display: inline; }

/* 顶栏 */
.top { background: var(--head); color: #fff; position: sticky; top: 0; z-index: 50; }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 56px; }
.logo { text-decoration: none; display: flex; align-items: center; flex: none; }
.logo-img { height: 30px; width: auto; }
.logo-text { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 1.45rem; letter-spacing: .14em; white-space: nowrap; color: var(--gold-l); background: linear-gradient(180deg, #f1dca8, #b68e46 60%, #8f6c2c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; font-size: .95rem; }
.nav a, .nav summary, .nav .linklike { color: #fff; text-decoration: none; white-space: nowrap; cursor: pointer; }
.nav a:hover, .nav summary:hover, .nav .linklike:hover { color: var(--gold-l); }
.drop { position: relative; }
.drop summary { list-style: none; } .drop summary::-webkit-details-marker { display: none; }
.drop summary::after { content: ' ▾'; font-size: .8em; }
.drop-menu { position: absolute; top: calc(100% + 14px); left: 0; min-width: 190px; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); padding: 6px; display: grid; }
.drop-menu a { color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.drop-menu a:hover { background: var(--cream); color: var(--ink); }
.lang { display: flex; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; overflow: hidden; flex: none; font-size: .85rem; }
.lang a { padding: 4px 12px; text-decoration: none; color: #fff; }
.lang a.on { background: var(--gold); }
.burger { display: none; position: relative; }
.burger summary { list-style: none; width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.burger summary::-webkit-details-marker { display: none; }
.burger summary span { display: block; width: 22px; height: 2px; background: #fff; }
.burger-menu { position: fixed; left: 0; right: 0; top: 56px; max-height: calc(100vh - 56px); overflow: auto; background: var(--head); display: grid; padding: 8px 16px 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.burger-menu a, .burger-menu .linklike { color: #fff; text-decoration: none; padding: 11px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; width: 100%; }
@media (max-width: 1020px) {
  .nav { display: none; } .burger { display: block; } .lang { margin-left: auto; }
}

/* 首页 */
.hero { padding-top: 16px; }
.hero-text { border-radius: var(--radius); padding: 54px 24px; text-align: center; color: #fff; background: radial-gradient(120% 140% at 50% 0%, #4a2f22 0%, #24130f 55%, #170d0c 100%); border: 1px solid #5a4030; }
.hero-h { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; letter-spacing: .04em; color: var(--gold-l); }
.hero-s { margin-top: 8px; font-size: clamp(1rem, 2.4vw, 1.25rem); color: #f3ead8; }
.hero-c { margin-top: 18px; font-size: .95rem; color: #cbb892; letter-spacing: .05em; }
.hero-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; }
.hero-slides::-webkit-scrollbar { display: none; }
.hero-slides img { flex: 0 0 100%; width: 100%; scroll-snap-align: center; object-fit: cover; }
.strip { margin-top: 16px; }
.strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--strip); color: #fff; border-radius: var(--radius); padding: 14px 20px; }
.strip.wrap { width: calc(100% - 32px); max-width: 1148px; }
.strip p { margin: 0; flex: 1 1 320px; }
.strip div { display: flex; gap: 8px; }
.pill { padding: 6px 20px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.pill.gold { background: var(--gold); color: #fff; } .pill.dark { background: rgba(255, 255, 255, .14); color: #fff; }
.catbtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.catbtns a { background: linear-gradient(180deg, #c9a45c, var(--gold)); color: #fff; text-decoration: none; padding: 8px 20px; border-radius: 999px; font-weight: 500; box-shadow: 0 2px 0 var(--gold-d); }
.cta3 { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.cta3 .btn { min-width: 220px; }
.sec-title { text-align: center; margin: 34px 0 16px; font-size: 1.5rem; }
.sec-title::after { content: ''; display: block; width: 56px; height: 3px; background: var(--gold); margin: 8px auto 0; border-radius: 2px; }
.pad > .sec-title:first-child { margin-top: 0; }

/* 搜索 */
.search { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.s-label { font-weight: 500; margin: 6px 0 8px; } .s-label small { color: var(--muted); font-weight: 400; }
.pos-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 560px; }
.pos { width: 100%; aspect-ratio: 1 / 1.1; text-align: center; font: 700 1.25rem/1 inherit; border: 1px solid var(--border); border-radius: 10px; background: #faf8f0; color: var(--ink); padding: 0; }
.pos:focus, .search select:focus, .search input:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 14px 0 8px; }
.s-grid label, .form label { display: grid; gap: 4px; font-weight: 500; font-size: .95rem; }
.s-grid input, .s-grid select, .form input:not([type='checkbox']):not([type='radio']):not([type='file']), .form select, .form textarea, .filters input, .filters select, .rowform input:not([type='file']), .rowform select, .apply input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); width: 100%; }
.ex-row { display: flex; flex-wrap: wrap; gap: 8px; }
.exd input { position: absolute; opacity: 0; width: 0; height: 0; }
.exd span { display: grid; place-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: #faf8f0; font-weight: 700; cursor: pointer; user-select: none; }
.exd input:checked + span { background: var(--call); border-color: var(--call); color: #fff; text-decoration: line-through; }
.exd input:focus-visible + span { outline: 2px solid var(--gold); }
.s-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

/* 号码卡片 */
.cat-sec { margin-top: 30px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 12px; border-bottom: 2px solid var(--gold); padding-bottom: 6px; }
.cat-head h1, .cat-head h2 { margin: 0; font-size: 1.3rem; }
.cat-head span { color: var(--muted); font-size: .9rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.ncard { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; min-height: 62px; transition: box-shadow .15s, transform .15s; }
.ncard:hover { box-shadow: 0 6px 18px rgba(60, 40, 10, .13); transform: translateY(-1px); }
.ncard b { font-size: 1.22rem; letter-spacing: .02em; white-space: nowrap; }
.ncard i { font-style: normal; color: var(--muted); font-size: .85rem; }
.ncard em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--gold-d); border-left: 2px solid var(--gold); padding-left: 12px; white-space: nowrap; }
.ncard .badge { margin-left: auto; }
.ncard.off b { color: #9a9488; }
.car { flex: none; display: inline-grid; place-content: center; min-width: 44px; height: 26px; padding: 0 8px; border-radius: 7px; font-size: .74rem; font-weight: 700; letter-spacing: .03em; color: #fff; background: #555; }
.car-ais { background: #5f9a1f; } .car-true { background: #d8262c; } .car-dtac { background: #1b74c5; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.badge.sold { background: #2b2b2b; color: #fff; } .badge.locked { background: #fff1d6; color: #8a5a00; border: 1px solid #ecd49a; }
.more { text-align: center; margin-top: 14px; }
/* 特价区（2026-11-26） */
.sp-sec { margin-top: 30px; scroll-margin-top: 66px; }
.ncard { position: relative; }
.ncard .sp { position: absolute; top: -8px; left: 12px; background: var(--call); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1; padding: 3px 8px; border-radius: 999px; text-decoration: none; letter-spacing: .02em; }
.ncard.is-sp { border-color: #e7b3ad; }
.chip.sp-chip { background: var(--call); border-color: var(--call); color: #fff; font-weight: 700; }
.drop-menu a.sp-link { color: #b42318; font-weight: 700; } .burger-menu a.sp-link { color: #ffb4ab; font-weight: 700; }
.catbtns a.sp-btn { background: linear-gradient(180deg, #e2574c, #b42318); color: #fff; border-color: #b42318; }
.sp-sec .cat-head h2, .sp-page .cat-head h1 { background: linear-gradient(180deg, #d9534a, #a3271c); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px 0; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 22px; }
.pager a, .pager b, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-content: center; border-radius: 10px; text-decoration: none; background: #fff; border: 1px solid var(--border); }
.pager b { background: var(--gold); border-color: var(--gold); color: #fff; } .pager span { border: 0; background: none; }
.ad img, .gallery img { border-radius: var(--radius); }
.ad { margin-top: 30px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.about p { max-width: 900px; margin-left: auto; margin-right: auto; }
.contact-block { text-align: center; padding-bottom: 40px; font-size: 1.1rem; }
.contact-block a { color: var(--gold-d); font-weight: 700; text-decoration: none; }

/* 详情页 */
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: 14px; } .crumb a { color: var(--gold-d); text-decoration: none; }
.d-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.d-top { display: flex; gap: 8px; align-items: center; }
.chip { background: var(--cream); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: .85rem; }
.d-label { color: var(--muted); margin-top: 14px; font-size: .9rem; }
.digits { display: flex; flex-wrap: nowrap; gap: clamp(2px, 1vw, 6px); align-items: center; margin: 6px 0 14px; }
.dg { display: grid; place-content: center; flex: 1 1 0; min-width: 0; max-width: 52px; aspect-ratio: 4 / 5; border-radius: clamp(6px, 2vw, 10px); background: linear-gradient(180deg, #2b1a14, var(--head)); color: var(--gold-l); font-size: clamp(1.1rem, 4.6vw, 2rem); font-weight: 700; }
.dash { flex: none; color: var(--gold); font-weight: 700; }
.d-price { font-size: 1.9rem; font-weight: 700; color: var(--gold-d); }
.d-info { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 14px 0; } .d-info dt { color: var(--muted); } .d-info dd { margin: 0; font-weight: 500; }
.d-actions { margin: 16px 0 10px; }
.apply { display: grid; gap: 8px; } .apply small, .d-actions small { color: var(--muted); }
.d-contact { display: flex; gap: 10px; flex-wrap: wrap; } .d-contact .btn { flex: 1 1 160px; }
.pairs { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.pairs li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.pairs b { flex: none; min-width: 74px; color: var(--gold-d); font-size: 1.05rem; }

/* 号码测算 */
.f-form { display: flex; gap: 10px; max-width: 520px; margin: 18px auto 22px; }
.f-form input { flex: 1; min-width: 0; min-height: 50px; border-radius: 999px; border: 1px solid var(--gold); padding: 8px 20px; font: inherit; font-size: 1.15rem; text-align: center; letter-spacing: .06em; background: #fff; }
.f-form .btn { min-height: 50px; flex: none; }
.f-result { position: relative; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='170'%3E%3Ctext x='130' y='92' text-anchor='middle' transform='rotate(-24 130 85)' font-family='Georgia,serif' font-size='22' font-weight='700' letter-spacing='4' fill='%23b68e46' fill-opacity='.075'%3ERB NUMBER%3C/text%3E%3C/svg%3E"); border: 1px solid var(--border); border-radius: var(--radius); overflow: clip; scroll-margin-top: 66px; }
.brand-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--head); padding: 12px 18px; }
.brand-strip .logo-text { font-size: 1.3rem; } .brand-strip .logo-img { height: 28px; }
.brand-url { color: var(--gold-l); font-size: .9rem; letter-spacing: .04em; }
.brand-tag { text-align: right; font-family: Georgia, 'Times New Roman', serif; font-size: .72rem; letter-spacing: .1em; color: var(--gold); opacity: .85; margin-top: 8px; }
.f-head { text-align: center; padding: 22px 18px 16px; border-bottom: 1px solid var(--border); }
.f-number { font-size: clamp(1.6rem, 6vw, 2.3rem); font-weight: 700; letter-spacing: .06em; }
.f-tier { display: inline-block; margin-top: 6px; padding: 4px 22px; border-radius: 999px; font-size: 1.25rem; font-weight: 700; color: #fff; background: var(--gold); }
.f-tier.tier-S { background: linear-gradient(180deg, #d9b25f, #a97c2c); } .f-tier.tier-A { background: #b68e46; } .f-tier.tier-B { background: #8d7a55; } .f-tier.tier-C { background: #7d766a; font-size: 1.05rem; }
.f-score { margin-top: 10px; color: var(--muted); } .f-score b { font-size: 1.5rem; color: var(--ink); }
.bar { height: 10px; background: #ece7d6; border-radius: 999px; overflow: hidden; max-width: 420px; margin: 8px auto 0; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, #e3c781, var(--gold)); border-radius: 999px; }
.w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; }
.w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }
.f-sum { margin-top: 8px; color: var(--muted); font-size: .92rem; }
.f-sys { margin: 0; padding: 12px 18px; background: var(--strip); color: #fff; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand-mini { font-family: Georgia, 'Times New Roman', serif; font-size: .8rem; letter-spacing: .14em; color: var(--gold-l); white-space: nowrap; font-weight: 700; }
.f-head .brand-tag { margin-top: 10px; }
.f-block { padding: 18px; border-bottom: 1px solid var(--border); }
.f-block > h2 { font-size: 1.1rem; color: var(--gold-d); }
.aspects { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.aspects dt { font-weight: 700; color: var(--strip); } .aspects dd { margin: 0; }
.asp { display: block; } .asp b { display: inline-block; min-width: 4.2em; margin-right: 6px; color: var(--gold-d); font-variant-numeric: tabular-nums; }
.f-pair { padding: 14px 0; border-top: 1px dashed var(--border); } .f-pair:first-of-type { border-top: 0; }
.f-pair header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.f-pair header b { font-size: 1.3rem; color: var(--gold-d); letter-spacing: .04em; } .f-pair header span { color: var(--muted); font-size: .9rem; }
.f-pair h3 { margin: 4px 0 6px; } .f-pair p { margin: 0; }
.stars { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; } .stars span { color: var(--muted); }
.f-result > .muted { padding: 14px 18px 0; margin: 0; }
.f-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 16px 18px; }
.f-contact { background: var(--head); color: var(--gold-l); text-align: center; padding: 10px 14px; font-size: .9rem; letter-spacing: .03em; }
/* 贴在屏幕底边的一小条：结果区在屏幕上的时候它一直在，怎么截图都带着 RB 的名字和网址 */
.f-sticky { position: sticky; bottom: 0; z-index: 2; background: rgba(23, 13, 12, .93); color: var(--gold-l); text-align: center; font: 700 .72rem/1.4 Georgia, 'Times New Roman', serif; letter-spacing: .14em; padding: 5px 10px; }
.cat-sec, #search, #about { scroll-margin-top: 66px; }
.f-save { text-align: center; padding: 16px 18px 0; }
#saveOut { margin-top: 12px; } #saveOut:empty { margin: 0; }
.f-shot { max-width: min(100%, 360px); margin: 0 auto 8px; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 8px 22px rgba(60, 40, 10, .16); }

/* 表单 */
.form { display: grid; gap: 14px; }
.form small { font-weight: 400; color: var(--muted); }
.tiny-form { max-width: 420px; }
main h2[id] { scroll-margin-top: 66px; margin-top: 1.4em; }
.form fieldset { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 16px; display: grid; gap: 12px; margin: 0; min-width: 0; }
.form legend { font-weight: 700; padding: 0 8px; color: var(--gold-d); }
.radios { display: flex; gap: 20px; flex-wrap: wrap; } .radios label { display: flex; gap: 6px; align-items: center; font-weight: 500; }
.wifi:has(input[name='id_type'][value='thai']:checked) .only-passport, .wifi:has(input[name='id_type'][value='passport']:checked) .only-thai { display: none; }
.only-thai, .only-passport { display: grid; gap: 12px; }
.file input { font: inherit; width: 100%; max-width: 100%; }
.form > *, .form fieldset > *, .only-thai > *, .only-passport > * { min-width: 0; }
.file-info { font-weight: 400; color: var(--ok); font-size: .85rem; }
.file-info img { max-height: 120px; border-radius: 8px; border: 1px solid var(--border); margin-top: 4px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; } .check input { margin-top: 5px; flex: none; width: 18px; height: 18px; }
.map { width: 100%; height: 240px; border: 1px solid var(--border); border-radius: 10px; }
.ref { font-size: 1.6rem; font-weight: 700; letter-spacing: .08em; color: var(--gold-d); }
.prose ol { padding-left: 1.2em; display: grid; gap: 10px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; } .doc-grid img { border-radius: 10px; border: 1px solid var(--border); }

/* 表格、后台 */
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; font-size: .93rem; }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl th { background: var(--strip); color: #fff; font-weight: 500; white-space: nowrap; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; background: #eee; }
.st-pending { background: #fff1d6; color: #8a5a00; } .st-locked { background: #e8f5ec; color: var(--ok); } .st-declined, .st-failed { background: #fdecea; color: var(--err); }
.atabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.atabs a { padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); text-decoration: none; font-size: .93rem; }
.atabs a.on { background: var(--head); border-color: var(--head); color: var(--gold-l); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stats a { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-decoration: none; display: grid; }
.stats b { font-size: 1.9rem; color: var(--gold-d); } .stats span { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center; } .filters input, .filters select { width: auto; min-height: 38px; }
.rowform { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .rowform input:not([type='file']), .rowform select { width: auto; min-height: 34px; padding: 4px 10px; }
.admin .form.narrow { max-width: 560px; margin-bottom: 18px; }
.danger { margin-top: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; } .pre { white-space: pre-wrap; word-break: break-word; }
.doclist { padding-left: 1.2em; display: grid; gap: 8px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; } .thumbs figure { margin: 0; display: grid; gap: 4px; justify-items: center; } .thumbs img { height: 90px; width: auto; border-radius: 8px; border: 1px solid var(--border); background: var(--head); }
p.links, .foot .links { display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* 页脚和悬浮按钮 */
.foot { background: var(--foot); color: #e9e0cf; margin-top: 40px; padding: 34px 0 0; font-size: .93rem; }
.foot a { color: #e9e0cf; text-decoration: none; } .foot a:hover { color: var(--gold-l); }
.foot h3 { color: var(--gold-l); font-size: 1rem; margin: 0 0 8px; } .foot h3:not(:first-child) { margin-top: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 26px; }
.foot-brand { font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; letter-spacing: .12em; color: var(--gold-l); margin-bottom: 8px; }
.copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 24px; padding-top: 14px; padding-bottom: 18px; text-align: center; color: #a89b85; font-size: .85rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } .cta3 .btn { min-width: 0; width: 100%; } .f-form { flex-direction: column; } .aspects, .kv { grid-template-columns: 1fr; gap: 2px 0; } .aspects dd, .kv dd { margin-bottom: 8px; } }
/* 窄屏手机（宽 420 以下）：顶栏、号码卡片、品牌条收紧一点，保证不会左右晃动 */
@media (max-width: 420px) {
  .top-in { gap: 8px; }
  .logo-text { font-size: 1.12rem; letter-spacing: .09em; }
  .lang { font-size: .78rem; } .lang a { padding: 3px 9px; }
  .burger summary { width: 34px; }
  .ncard { gap: 7px; padding: 10px 11px; flex-wrap: wrap; row-gap: 2px; }
  .ncard b { font-size: 1.06rem; } .ncard em { padding-left: 9px; }
  .car { min-width: 38px; padding: 0 6px; }
  .brand-strip { flex-wrap: wrap; row-gap: 2px; padding: 10px 14px; } .brand-strip .logo-text { font-size: 1.12rem; }
  .hero-text { padding: 40px 16px; }
}
@media (max-width: 340px) { .ncard i { display: none; } .logo-text { font-size: 1rem; letter-spacing: .06em; } .wrap { padding: 0 12px; } }
.float { position: fixed; right: 14px; bottom: 18px; display: grid; gap: 10px; z-index: 40; }
.float a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-content: center; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, .28); }
.f-call { background: var(--call); font-size: 1.4rem; } .f-line { background: var(--line); font-size: .78rem; letter-spacing: .03em; }
@media (max-width: 520px) {
  .float { right: 10px; bottom: 14px; gap: 8px; } .float a { width: 46px; height: 46px; } .f-call { font-size: 1.2rem; } .f-line { font-size: .7rem; }
  .asp b { min-width: 0; margin-right: 10px; }
}
/* ===== 第 2 轮（2026-11-26） ===== */
/* 首页轮播：照旧站裁成 1280:533；另有手机竖图时，窄屏只显示竖图 */
.hero-wide img { aspect-ratio: 1280 / 533; }
.hero-narrow { display: none; }
@media (max-width: 767px) { .hero-wide.has-mobile { display: none; } .hero-narrow { display: flex; } }
.gallery a { display: block; } .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* 分类按钮：旧站的金色底图 */
.catbtns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 980px; }
.catbtns a { background: #dcc590 url('/static/img/bg-cat.png') center / cover no-repeat; color: #5c3d12; font-weight: 700; text-align: center; padding: 10px 8px; border-radius: 12px; border: 1px solid rgba(211, 162, 71, .55); box-shadow: 0 1px 3px rgba(60, 40, 10, .14); }
.catbtns a:hover { filter: brightness(1.04); }
@media (max-width: 720px) { .catbtns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 分类标题：旧站的金色胶囊，前面一个 SIM 卡小图标 */
.cat-head { border-bottom: 0; align-items: center; }
.cat-head h1, .cat-head h2 { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 1.1rem; padding: 7px 26px 7px 18px; border-radius: 999px; background: linear-gradient(180deg, #b59049, #8e6527); }
.cat-head h1::before, .cat-head h2::before { content: ''; flex: none; width: 24px; height: 24px; background: url('/static/img/sim.png') center / contain no-repeat; }
/* 两个测算页顶上的切换 */
.f-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.f-tabs a { padding: 8px 22px; border-radius: 999px; border: 1px solid var(--gold); background: #fff; text-decoration: none; font-weight: 500; }
.f-tabs a.on { background: var(--head); border-color: var(--head); color: var(--gold-l); }
/* 车牌 */
.pl { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 2px solid #111; border-radius: 9px; padding: 7px 10px 5px; min-width: 132px; color: #111; line-height: 1.1; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.pl-t { font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; white-space: nowrap; }
.pl-p { font-size: .7rem; font-weight: 600; margin-top: 3px; white-space: nowrap; }
.pl-pickup { color: #0b7a3e; border-color: #0b7a3e; } .pl-van { color: #1e4fae; border-color: #1e4fae; } .pl-gold { background: linear-gradient(180deg, #f8e7ad, #dbb654); }
.reco { border-top: 1px solid var(--border); }
.pcards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 10px; margin-top: 20px; }
@media (max-width: 1000px) { .pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 660px) { .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pcards .pl { min-width: 0; width: 100%; max-width: 150px; } .pcards .pl-t { font-size: 1.3rem; } .plate-big .pl { padding: 10px 16px 8px; } }
.pl-kind { font-size: .72rem; font-weight: 600; } .pl-kind-pickup { color: #0b7a3e; } .pl-kind-van { color: #1e4fae; }
.pcard { display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; }
.pcard-a { position: relative; display: grid; justify-items: center; gap: 6px; text-decoration: none; }
.pcard-a:hover .pl { box-shadow: 0 6px 16px rgba(60, 40, 10, .22); transform: translateY(-1px); }
.pcard-a b { font-size: .86rem; color: #a8770a; background: #fff; border: 1px solid #c2943c; border-radius: 7px; padding: 1px 10px; min-width: 92px; text-align: center; }
.pl-sum { position: absolute; top: -9px; right: -7px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; background: #d8262c; color: #fff; font-size: .74rem; font-style: normal; font-weight: 700; display: grid; place-content: center; }
.pcard-try { font-size: .78rem; color: var(--muted); }
.plate-big { display: flex; justify-content: center; margin-bottom: 10px; }
.plate-big .pl { padding: 12px 26px 10px; border-width: 3px; border-radius: 12px; }
.plate-big .pl-t.f-number { font-size: clamp(1.9rem, 9vw, 3rem); letter-spacing: .05em; }
.p-calc { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 6px; margin: 12px 0 6px; }
.p-parts, .p-total { display: flex; align-items: flex-end; gap: 6px; }
.p-calc span { display: grid; justify-items: center; min-width: 32px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 8px; background: #faf7ee; }
.p-calc b { font-size: 1.05rem; } .p-calc i { font-style: normal; font-size: .78rem; color: var(--gold-d); }
.p-calc em { font-style: normal; color: var(--muted); padding-bottom: 9px; } .p-calc strong { font-size: 1.45rem; color: var(--gold-d); padding-bottom: 3px; }
@media (max-width: 480px) { .p-parts { gap: 2px; } .p-calc span { min-width: 20px; padding: 3px 3px; border-radius: 6px; } .p-calc b { font-size: .95rem; } .p-calc em { font-size: .72rem; padding-bottom: 8px; } }
.plate-result .f-block > p { margin: 10px 0 0; }
/* 引到 LINE、微信、电话 */
.contact-box { margin: 14px 0; padding: 14px; border: 1px solid #cfe6c4; background: #f3faef; border-radius: var(--radius); }
.contact-box p { margin: 0 0 10px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 8px; } .contact-btns .btn { flex: 1 1 170px; min-width: 0; }
.center .contact-btns { justify-content: center; }
/* 后台 */
.tails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } .tails label { font-weight: 500; font-size: .9rem; } .tails input { width: 100%; min-width: 0; }
@media (max-width: 620px) { .tails { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sysline { margin-top: 14px; }
.rowform span { margin-right: 8px; }
.line-bind { margin: 8px 0; } .line-bind b { font-size: 1.15rem; letter-spacing: .06em; } .form input[readonly] { background: #f4f1e8; color: var(--muted); }
.admin .d-card h2 { font-size: 1.05rem; } .admin .d-card h2 small { font-weight: 400; color: var(--muted); }
.admin textarea { font: inherit; width: 100%; }
@media print { .top, .foot, .float, .f-form, .f-cta, .f-save { display: none; } .f-sticky { position: static; } body { background: #fff; } }
