/* ==========================================================================
   算数·海辕 —— www 官网 / portal 渠道商门户（亮色 现代汽车品牌风）
   对外端默认 pt-BR
   ========================================================================== */

:root {
    --s-bg: #ffffff;
    --s-bg-soft: #f5f7fb;
    --s-ink: #0d1420;
    --s-ink-2: #46536b;
    --s-muted: #7d8a9e;
    --s-line: #e6eaf2;
    --s-brand: #0f5fff;
    --s-brand-dark: #0b46bd;
    --s-brand-soft: #eef3ff;
    --s-dark: #0a1120;
    --s-accent: #00c2a8;
    --s-radius: 16px;
    --s-radius-sm: 10px;
    --s-shadow: 0 18px 48px rgba(13, 20, 32, .1);
    --s-shadow-sm: 0 4px 16px rgba(13, 20, 32, .06);
    --s-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body.site {
    margin: 0; background: var(--s-bg); color: var(--s-ink);
    font-family: var(--s-font); font-size: 15px; line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.site a { color: var(--s-brand); text-decoration: none; }
body.site a:hover { text-decoration: underline; }
body.site h1, body.site h2, body.site h3, body.site h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }

.s-container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.s-section { padding: 62px 0; }
.s-section.tight { padding: 36px 0; }
.s-section.soft { background: var(--s-bg-soft); }

/* 顶部导航 */
.s-nav {
    position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--s-line);
}
.s-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 22px; height: 68px; display: flex; align-items: center; gap: 26px; }
.s-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--s-ink); }
.s-logo .s-logo-mark {
    width: 34px; height: 34px; border-radius: 11px; color: #fff; font-size: 14px;
    background: linear-gradient(135deg, var(--s-brand), var(--s-accent));
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.s-nav-links { display: flex; gap: 24px; }
.s-nav-links a { color: var(--s-ink-2); font-size: 14.5px; font-weight: 500; }
.s-nav-links a:hover, .s-nav-links a.is-active { color: var(--s-brand); text-decoration: none; }
.s-nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.s-lang { font-size: 13px; color: var(--s-muted); }
@media (max-width: 980px) { .s-nav-links { display: none; } }

/* 按钮 */
.s-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
    background: var(--s-brand); color: #fff; font-size: 15px; font-weight: 600;
    font-family: inherit; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
}
.s-btn:hover { background: var(--s-brand-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--s-shadow-sm); }
.s-btn.outline { background: transparent; border-color: var(--s-line); color: var(--s-ink); }
.s-btn.outline:hover { border-color: var(--s-brand); color: var(--s-brand); background: transparent; }
.s-btn.ghost-light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.s-btn.ghost-light:hover { background: rgba(255, 255, 255, .24); }
.s-btn.sm { height: 36px; padding: 0 15px; font-size: 13.5px; border-radius: 9px; }
.s-btn.block { width: 100%; }

/* Hero */
.s-hero {
    position: relative; color: #fff; background: linear-gradient(120deg, #060c18 0%, #0d2038 45%, #06304a 100%);
    overflow: hidden;
}
.s-hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(700px 380px at 82% 18%, rgba(0, 194, 168, .28), transparent 62%),
                radial-gradient(600px 400px at 8% 100%, rgba(15, 95, 255, .32), transparent 60%);
}
.s-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 78px 22px 90px; }
.s-hero h1 { font-size: clamp(30px, 5vw, 52px); max-width: 760px; }
.s-hero p.lead { font-size: 17px; color: rgba(255, 255, 255, .82); max-width: 620px; margin: 18px 0 30px; }
.s-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.s-hero-stats { display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.s-hero-stats .st-v { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.s-hero-stats .st-l { font-size: 12.5px; color: rgba(255, 255, 255, .66); }

/* 卡片/网格 */
.s-grid { display: grid; gap: 20px; }
.s-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.s-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .s-grid.c3, .s-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .s-grid.c2, .s-grid.c3, .s-grid.c4 { grid-template-columns: 1fr; } }

.s-card {
    background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius);
    overflow: hidden; transition: box-shadow .16s, transform .16s;
}
.s-card:hover { box-shadow: var(--s-shadow); transform: translateY(-2px); }
.s-card-body { padding: 20px; }
.s-card h3 { font-size: 18px; margin-bottom: 6px; }
.s-card .s-sub { color: var(--s-muted); font-size: 13.5px; }

.s-car-visual {
    height: 178px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(150deg, #eef3ff, #f7fafd); position: relative; overflow: hidden;
}
.s-car-visual .cv-shape {
    width: 76%; height: 66px; border-radius: 40px 60px 16px 16px;
    background: linear-gradient(120deg, #c8d8f5, #9fb8ea); position: relative;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, .06);
}
.s-car-visual .cv-shape::before {
    content: ""; position: absolute; left: 22%; top: -22px; width: 46%; height: 34px;
    border-radius: 22px 26px 0 0; background: linear-gradient(120deg, #dbe6fa, #b6c9ee);
}
.s-car-visual .cv-shape::after {
    content: ""; position: absolute; bottom: -12px; left: 12%; width: 20%; height: 20px;
    border-radius: 50%; background: #2b3murk; background: #303b4f; box-shadow: 92px 0 0 #303b4f;
}
.s-car-visual .cv-badge {
    position: absolute; top: 12px; left: 12px; background: rgba(10, 17, 32, .82); color: #fff;
    font-size: 11.5px; padding: 3px 10px; border-radius: 20px; font-weight: 600;
}

.s-kv { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--s-muted); }
.s-kv b { color: var(--s-ink); font-weight: 700; }

.s-price { font-size: 20px; font-weight: 800; color: var(--s-brand); }
.s-price small { font-size: 12px; color: var(--s-muted); font-weight: 500; }

.s-badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px;
    background: var(--s-brand-soft); color: var(--s-brand); font-weight: 600;
}
.s-badge.gray { background: var(--s-bg-soft); color: var(--s-ink-2); }
.s-badge.green { background: rgba(0, 194, 168, .12); color: #067a6c; }

/* 表单 */
.s-field { margin-bottom: 15px; }
.s-field label { display: block; font-size: 13px; color: var(--s-ink-2); font-weight: 600; margin-bottom: 6px; }
.s-field .req { color: #d33; }
.s-input, .s-select, .s-textarea {
    width: 100%; height: 46px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--s-line);
    background: #fff; color: var(--s-ink); font-size: 14.5px; font-family: inherit; outline: none;
}
.s-textarea { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.6; }
.s-input:focus, .s-select:focus, .s-textarea:focus { border-color: var(--s-brand); box-shadow: 0 0 0 4px var(--s-brand-soft); }
.s-help { font-size: 12px; color: var(--s-muted); margin-top: 4px; }
.s-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .s-form-grid { grid-template-columns: 1fr; } }

.s-alert { padding: 12px 15px; border-radius: 11px; font-size: 13.5px; margin-bottom: 15px; background: var(--s-bg-soft); border: 1px solid var(--s-line); }
.s-alert.ok { background: rgba(0, 194, 168, .1); border-color: rgba(0, 194, 168, .35); color: #06675b; }
.s-alert.err { background: rgba(221, 51, 51, .08); border-color: rgba(221, 51, 51, .3); color: #a01d1d; }

/* 表格（portal） */
.s-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.s-table th { text-align: left; font-size: 12px; color: var(--s-muted); text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; border-bottom: 1px solid var(--s-line); white-space: nowrap; }
.s-table td { padding: 13px 14px; border-bottom: 1px solid var(--s-line); vertical-align: middle; }
.s-table tbody tr:hover { background: var(--s-bg-soft); }
.s-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-table-wrap { overflow-x: auto; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: #fff; }

.s-panel { background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius); margin-bottom: 18px; }
.s-panel-head { padding: 14px 18px; border-bottom: 1px solid var(--s-line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.s-panel-head h3 { font-size: 16px; }
.s-panel-head .ph-right { margin-left: auto; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.s-panel-body { padding: 18px; }

.s-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 15px 18px; background: var(--s-bg-soft); border-bottom: 1px solid var(--s-line); }
.s-filter .sf { display: flex; flex-direction: column; gap: 4px; }
.s-filter .sf label { font-size: 11.5px; color: var(--s-muted); font-weight: 600; }
.s-filter .sf .s-input, .s-filter .sf .s-select { height: 38px; min-width: 142px; font-size: 13.5px; }

/* 门户侧边栏 */
.s-shell { display: flex; min-height: 100vh; background: var(--s-bg-soft); }
.s-side { width: 236px; flex: 0 0 236px; background: var(--s-dark); color: #fff; padding: 18px 12px; }
.s-side .s-side-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; font-weight: 700; }
.s-side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; color: rgba(255, 255, 255, .72); font-size: 14px; }
.s-side nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.s-side nav a.is-active { background: var(--s-brand); color: #fff; font-weight: 600; }
.s-side .s-side-group { font-size: 11px; color: rgba(255, 255, 255, .4); text-transform: uppercase; letter-spacing: .08em; padding: 14px 11px 6px; }
.s-main { flex: 1; min-width: 0; }
.s-top { background: #fff; border-bottom: 1px solid var(--s-line); padding: 0 22px; height: 62px; display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 30; }
.s-top .st-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.s-top .st-user { font-size: 13.5px; }
.s-top .st-user b { display: block; }
.s-top .st-user span { color: var(--s-muted); font-size: 11.5px; }
.s-content { padding: 22px; }

@media (max-width: 980px) {
    .s-side { display: none; }
}

/* 页脚 */
.s-footer { background: var(--s-dark); color: rgba(255, 255, 255, .7); padding: 46px 0 26px; font-size: 13.5px; }
.s-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.s-footer a { color: rgba(255, 255, 255, .7); display: block; padding: 3px 0; }
.s-footer a:hover { color: #fff; }
.s-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px; font-size: 12.5px; color: rgba(255, 255, 255, .5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.s-steps { display: flex; gap: 14px; flex-wrap: wrap; }
.s-step { flex: 1; min-width: 190px; background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 20px; }
.s-step .sn {
    width: 30px; height: 30px; border-radius: 50%; background: var(--s-brand); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; margin-bottom: 12px;
}

.s-pager { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 18px 0; font-size: 13.5px; flex-wrap: wrap; }
.s-pager a { padding: 6px 12px; border-radius: 9px; border: 1px solid var(--s-line); background: #fff; color: var(--s-ink-2); }
.s-pager a.is-active { background: var(--s-brand); border-color: var(--s-brand); color: #fff; font-weight: 600; }
.s-pager a:hover { text-decoration: none; border-color: var(--s-brand); }

.s-calc { background: var(--s-bg-soft); border-radius: var(--s-radius); padding: 18px; }
.s-calc .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--s-line); font-size: 14px; }
.s-calc .row:last-child { border-bottom: 0; }
.s-calc .row b { font-size: 17px; color: var(--s-brand); }

.s-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--s-line); margin-bottom: 18px; overflow-x: auto; }
.s-tabs a { padding: 10px 15px; color: var(--s-muted); font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.s-tabs a.is-active { color: var(--s-brand); border-bottom-color: var(--s-brand); font-weight: 600; }
.s-tabs a:hover { text-decoration: none; color: var(--s-ink); }

.s-empty { text-align: center; padding: 54px 20px; color: var(--s-muted); }

.s-chip { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; background: var(--s-bg-soft); color: var(--s-ink-2); margin: 0 4px 4px 0; }
.s-chip.ok { background: rgba(0, 194, 168, .12); color: #067a6c; }
.s-chip.warn { background: rgba(240, 160, 20, .14); color: #96620a; }
.s-chip.err { background: rgba(221, 51, 51, .1); color: #a01d1d; }

/* 18 出品方标识：官网/门户页脚署名 + 商务联系 + 演示水印 */
.s-footer-brand {
    border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 18px; padding-top: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.s-footer-brand .sfb-contact { display: flex; align-items: center; gap: 14px; }
.s-footer-brand .sfb-txt { display: flex; flex-direction: column; line-height: 1.5; font-size: 12.5px; }
.s-footer-brand .sfb-txt b { color: #fff; font-size: 12.5px; }
.s-footer-brand .sfb-txt a { display: inline; padding: 0; font-size: 19px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.s-footer-brand .sfb-txt span { color: rgba(255, 255, 255, .6); }
.s-footer-brand .sfb-qr { width: 92px; height: 92px; border-radius: 10px; background: #fff; padding: 5px; }
.s-footer-brand .sfb-vendor { color: rgba(255, 255, 255, .62); font-size: 12.5px; padding: 0; display: inline-block; }
.s-footer-brand .sfb-vendor:hover { color: #fff; }
@media (max-width: 700px) { .s-footer-brand .sfb-txt a { font-size: 17px; } }

.brand-watermark {
    position: fixed; inset: 0; z-index: 60; pointer-events: none;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.brand-watermark span {
    font-size: 20px; font-weight: 800; letter-spacing: .10em; line-height: 2.1;
    color: rgba(11, 18, 32, .07); transform: rotate(-24deg); white-space: pre-wrap; text-align: center;
    -webkit-user-select: none; user-select: none;
}
@media (max-width: 760px) { .brand-watermark span { font-size: 15px; letter-spacing: .06em; } }

/* 商务直联卡（联系页）：电话突出 + 企微二维码 */
.s-contact-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.s-contact-card .scc-phone a { font-size: 26px; font-weight: 800; color: var(--s-ink); letter-spacing: .02em; }
.s-contact-card .scc-phone a:hover { color: var(--s-brand); }
.s-contact-card .scc-qr { width: 104px; height: 104px; border-radius: 10px; border: 1px solid var(--s-line); background: #fff; padding: 5px; }

/* ================================================================
   渠道商门户 · 车型目录与下单（/portal/catalog）
   原来的页面是一张九列宽表：表头每列都双语、车名折行、价格与零售价并排、
   提交按钮压在页面最底部，选完还要滚到底。现在拆成三层：
   ① 顶部「本渠道价目」信息带 ② 可搜索/筛选/排序的紧凑表（六列） ③ 常驻底部下单条。
   ================================================================ */

/* 双语副标：主标用葡文（客户看的），中文降一级做辅助，避免满屏同权重的双语噪声 */
.s-cn { font-weight: 500; opacity: .5; margin-left: 5px; }
.s-dim { color: var(--s-muted); font-weight: 400; }

/* ---- ① 顶部信息带 ---- */
.s-cat-head {
    display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap;
    background: linear-gradient(135deg, #0a1120 0%, #16305e 58%, #0f5fff 140%);
    color: #fff; border-radius: var(--s-radius); padding: 22px 24px; margin-bottom: 18px;
}
.s-cat-head-l { min-width: 260px; flex: 1 1 300px; }
.s-cat-head-l h2 { font-size: 21px; color: #fff; margin-bottom: 6px; }
.s-cat-head-l h2 .s-cn { opacity: .62; }
.s-cat-head-l p { font-size: 13px; color: rgba(255, 255, 255, .72); line-height: 1.7; max-width: 520px; }
.s-cat-head-l p b { color: #fff; }
.s-cat-head-l p .s-dim { color: rgba(255, 255, 255, .5); display: block; }
.s-cat-meta { display: grid; grid-template-columns: repeat(4, minmax(112px, 1fr)); gap: 1px; background: rgba(255, 255, 255, .14); border-radius: var(--s-radius-sm); overflow: hidden; }
.s-cat-meta-i { background: rgba(255, 255, 255, .07); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.s-cat-meta-i .k { font-size: 11px; color: rgba(255, 255, 255, .58); text-transform: uppercase; letter-spacing: .05em; }
.s-cat-meta-i b { font-size: 16px; font-variant-numeric: tabular-nums; }
.s-cat-meta-i b.is-bad { color: #ffb4b4; }
.s-cat-meta-i .s-dim { font-size: 11px; color: rgba(255, 255, 255, .5); }
@media (max-width: 900px) { .s-cat-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- ② 工具条 ---- */
.s-cat-panel { overflow: hidden; padding-bottom: 0; }
.s-cat-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--s-line); }
.s-cat-search { position: relative; display: flex; align-items: center; flex: 1 1 240px; max-width: 330px; }
.s-cat-search > span { position: absolute; left: 11px; font-size: 13px; opacity: .55; pointer-events: none; }
.s-cat-search .s-input { padding-left: 32px; }
.s-cat-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.s-chip-btn {
    font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap;
    padding: 6px 12px; border-radius: 999px; border: 1px solid var(--s-line);
    background: #fff; color: var(--s-ink-2); transition: all .14s ease;
}
.s-chip-btn i { font-style: normal; opacity: .5; margin-left: 3px; }
.s-chip-btn:hover { border-color: var(--s-brand); color: var(--s-brand); }
.s-chip-btn.is-on { background: var(--s-brand); border-color: var(--s-brand); color: #fff; font-weight: 600; }
.s-chip-btn.is-on i { opacity: .75; }
.s-cat-tools-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.s-cat-tools-r .s-select { height: 36px; font-size: 13px; }
.s-cat-check { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--s-ink-2); white-space: nowrap; cursor: pointer; }
.s-cat-check i { font-style: normal; opacity: .5; }
@media (max-width: 760px) {
    .s-cat-tools-r { margin-left: 0; width: 100%; }
    .s-cat-tools-r .s-select { flex: 1; }
}

/* ---- ② 表格本体 ---- */
/* 注意：`.s-table-wrap` 默认 overflow-x:auto，一旦有 overflow，`position:sticky` 的参照物
   就从视口变成这个滚动容器，th 的 top:62px 会把表头整体往下推 62px、压住第一行数据。
   所以宽屏下这里显式放开 overflow，让 th 贴住视口顶部；窄屏需要横向滚动时再把 sticky 关掉。 */
.s-table-flush { border: 0; border-radius: 0; overflow: visible; }
.s-cat-table th { background: var(--s-bg-soft); position: sticky; top: 62px; z-index: 2; box-shadow: inset 0 -1px 0 var(--s-line); }
.s-cat-table td { padding: 12px 14px; }
.s-cat-table tbody tr { transition: background .14s ease; }
.s-cat-table tbody tr.is-picked { background: var(--s-brand-soft); box-shadow: inset 3px 0 0 var(--s-brand); }
.s-cat-table tbody tr.is-dark { display: none; }
.s-cat-table [data-cat-color] { max-width: 152px; }

.s-cat-model { display: flex; align-items: center; gap: 11px; min-width: 148px; }
.s-cat-mono {
    flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(140deg, #0f5fff, #00c2a8);
    color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .02em;
}
.s-cat-model b { display: block; font-size: 14.5px; line-height: 1.35; }
.s-cat-model .s-dim { display: block; font-size: 12px; }

.s-cat-spec { display: flex; gap: 14px; white-space: nowrap; }
.s-cat-spec span { display: flex; flex-direction: column; font-size: 11px; color: var(--s-muted); }
.s-cat-spec b { font-size: 13.5px; color: var(--s-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.s-cat-price { display: block; font-size: 15.5px; color: var(--s-brand); font-variant-numeric: tabular-nums; }
.s-cat-mrp { display: block; font-size: 11.5px; color: var(--s-muted); text-decoration: line-through; }
.s-cat-gap {
    display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 999px;
    font-size: 11px; background: rgba(0, 194, 168, .12); color: #067a6c; white-space: nowrap;
}

.s-stock {
    display: inline-block; min-width: 34px; padding: 3px 9px; border-radius: 8px;
    background: var(--s-bg-soft); color: var(--s-muted); font-weight: 700; font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.s-stock.is-ok { background: rgba(0, 194, 168, .14); color: #067a6c; }
.s-cat-stock-tip { display: block; font-size: 10.5px; color: var(--s-muted); margin-top: 3px; }

/* 数量步进器：原来是个裸 number 输入框，默认 0，点击上下箭头很难点中 */
.s-qty { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
.s-qty-btn {
    width: 30px; height: 32px; flex: 0 0 30px; cursor: pointer;
    border: 1px solid var(--s-line); background: #fff; border-radius: var(--s-radius-sm);
    color: var(--s-ink-2); font-size: 15px; line-height: 1; transition: all .12s ease;
}
.s-qty-btn:hover { border-color: var(--s-brand); color: var(--s-brand); background: var(--s-brand-soft); }
.s-qty-in { width: 54px; height: 32px; text-align: center; padding: 0 4px; font-weight: 700; }

/* 筛选后一条都不剩时的提示（表格是空的，没有提示会以为是页面坏了） */
.s-cat-none { padding: 40px 20px; text-align: center; color: var(--s-muted); font-size: 13.5px; border-top: 1px solid var(--s-line); }

/* ---- ③ 常驻底部下单条 ---- */
/* 只放「已选摘要 + 提交」，付款方式与备注移到表格下方的独立面板：
   之前把它们塞进下单条，手机上条子长到 580px、把提交按钮顶出屏幕外，
   既占了半个屏又点不到，反而不如把条子做薄、永远能点到提交。 */
.s-orderbar {
    position: sticky; bottom: 0; z-index: 20; margin: 0 0 18px;
    background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius);
    box-shadow: 0 -8px 26px -18px rgba(13, 20, 32, .34), var(--s-shadow-sm);
}
.s-orderbar-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 18px; }
.s-orderbar-sum { display: flex; flex-direction: column; gap: 1px; flex: 1 1 240px; min-width: 0; }
.s-orderbar-k { font-size: 11px; color: var(--s-muted); text-transform: uppercase; letter-spacing: .05em; }
.s-orderbar-sum b { font-size: 14.5px; }
.s-orderbar-sum .s-dim { font-size: 11.5px; }
.s-orderbar-total { font-size: 19px; font-weight: 800; color: var(--s-brand); font-variant-numeric: tabular-nums; }
.s-orderbar .s-btn { flex: 0 0 auto; height: 42px; padding: 0 22px; }
.s-orderbar .s-btn[disabled] { opacity: .45; cursor: not-allowed; }
.s-orderbar .s-btn[disabled]:hover { background: var(--s-brand); transform: none; box-shadow: none; }
.s-orderbar-alert { border-top: 1px solid var(--s-line); padding: 9px 18px; font-size: 12.5px; line-height: 1.6; color: #a01d1d; background: rgba(221, 51, 51, .05); }
.s-orderbar-alert.is-warn { color: #96620a; background: rgba(240, 160, 20, .08); }
@media (max-width: 560px) {
    .s-orderbar-in { flex-direction: column; align-items: stretch; gap: 9px; }
    /* 手机上把摘要折成两行（标签+数量 / 金额+提示），比竖排四行省下约 25px 屏高 */
    .s-orderbar-sum { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
    .s-orderbar .s-btn { width: 100%; }
}

/* 窄屏：规格/在库提示先收，保留车型、价格、数量三件必需信息 */
@media (max-width: 900px) {
    .s-cat-spec { flex-direction: column; gap: 2px; }
    .s-cat-stock-tip { display: none; }
}

/* 中等宽度：横向放不下时退回「容器内横向滚动」，同时把表头 sticky 关掉
   （有 overflow 容器时 sticky 会错位，与其错位不如不粘） */
@media (max-width: 1240px) {
    .s-table-flush { overflow-x: auto; }
    .s-cat-table th { position: static; box-shadow: none; }
    .s-cat-table th, .s-cat-table td { padding: 12px 10px; }
    .s-cat-model { min-width: 0; }
    .s-cat-spec { gap: 9px; }
}
