:root {
  --bg: #f4f5f7;
  --card: #fff;
  --text: #1d2129;
  --muted: #6b7280;
  --line: #e3e5e8;
  --primary: #2f5bd3;
  --primary-ink: #fff;
  --danger: #c62828;
  --lux: #8a6a2f;
  --shopper: #2e7d5b;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 16px; margin: 0 0 12px; }
h1 small, h2 small { font-weight: normal; font-size: 13px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 16px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }

/* 顶栏 */
.top { background: #1f2430; color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { height: 32px; max-width: 120px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #e6e8ee; padding: 6px 10px; border-radius: 6px; }
.nav a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.nav a.on { background: rgba(255,255,255,.18); color: #fff; }
.nav a.muted { color: #aab0bd; }

/* 卡片、标题 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.card.narrow { max-width: 400px; margin: 40px auto; }
.card.empty { text-align: center; color: var(--muted); padding: 40px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-head.cat-lux h1 { border-left: 5px solid var(--lux); padding-left: 10px; }
.page-head.cat-shopper h1 { border-left: 5px solid var(--shopper); padding-left: 10px; }
.crumbs { margin: 0 0 4px; font-size: 13px; }

/* 提示 */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }
.flash.err { background: #fdecea; color: #8e1c1c; border-color: #f5c6c4; }
.flash ul { margin: 0; padding-left: 18px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text);
  font: inherit; cursor: pointer; white-space: nowrap; min-height: 38px;
}
.btn:hover { text-decoration: none; background: #f6f7f9; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--danger); border-color: #f0c2c2; }
.btn.ghost { background: transparent; }
.btn.block { display: flex; width: 100%; }
.btn.tiny { padding: 3px 9px; min-height: 28px; font-size: 13px; }
.btn[disabled] { opacity: .35; cursor: default; }

/* 表单 */
input, select, textarea {
  font: inherit; color: inherit; width: 100%; padding: 8px 10px; border: 1px solid #cfd3d9; border-radius: 8px; background: #fff; min-height: 38px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(47,91,211,.25); border-color: var(--primary); }
input[disabled] { background: #f3f4f6; color: var(--muted); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; margin: 0 6px 0 0; }
input[type=file] { padding: 6px; }
textarea { resize: vertical; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; margin-bottom: 12px; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld.wide { grid-column: 1 / -1; }
.fld.end { justify-content: flex-end; }
.fld > label { font-size: 13px; color: #4b5563; font-weight: 500; }
.fld small { font-size: 12px; }
.req { color: var(--danger); }
label.check { display: flex; align-items: center; font-size: 14px; color: var(--text); cursor: pointer; padding-top: 22px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { display: flex; align-items: center; border: 1px solid #cfd3d9; border-radius: 8px; padding: 7px 12px; cursor: pointer; background: #fff; }
.seg label:has(input:checked) { border-color: var(--primary); background: #eef2fd; }
.checks { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; }
.combo { display: flex; flex-direction: column; gap: 6px; }
.plate { display: flex; flex-direction: column; gap: 8px; }
.plate-public, .plate-custom { display: flex; flex-direction: column; gap: 6px; }
.plate-preview { max-width: 240px; max-height: 160px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fafafa; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px; }
.filters input[name=q] { flex: 1 1 220px; width: auto; }
.filters select { width: auto; }
.filters label.inline { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.filters label.inline input { width: auto; }

/* 首页 */
.home { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.home-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.home-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 20px; color: #fff; }
.home-head:hover { text-decoration: none; filter: brightness(1.05); }
.home-head h2 { font-size: 28px; margin: 0; letter-spacing: .5px; }
.cat-lux .home-head { background: linear-gradient(135deg, #7a5a22, #b08d4f); }
.cat-shopper .home-head { background: linear-gradient(135deg, #1f6b4a, #3f9b72); }
.home-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 16px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 8px; color: var(--text); }
.stat:hover { background: #f5f6f8; text-decoration: none; }
.stat b { font-size: 22px; }
.home-card > .btn { margin: 0 16px 16px; width: auto; }

/* 状态标签 */
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 99px; background: #eef0f3; color: #4b5563; vertical-align: middle; white-space: nowrap; }
.s-wait { background: #fff4e0; color: #8a5300; }
.s-run { background: #e3edff; color: #1f4fbf; }
.s-done { background: #e3f5e8; color: #1e6b35; }
.s-pause { background: #f1e8ff; color: #6537a8; }
.s-cancel { background: #eceff1; color: #6b7280; }
.s-mod { background: #fdecea; color: #b42318; }

/* 列表 */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.card .table-wrap { border: 0; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.list th { font-size: 13px; color: var(--muted); font-weight: 500; background: #fafbfc; white-space: nowrap; }
table.list th.r, table.list td.r { text-align: right; }
table.list tbody tr:hover { background: #f8f9fb; }
table.list tbody tr[onclick] { cursor: pointer; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.off td { color: var(--muted); }
ul.cards { display: none; list-style: none; padding: 0; margin: 0 0 16px; }
ul.cards li a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; color: var(--text); }
ul.cards li a:hover { text-decoration: none; }
ul.cards .row1 { display: flex; justify-content: space-between; align-items: center; }
ul.cards .row2 { margin: 2px 0; }
ul.cards .row3 { font-size: 13px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; }

/* 详情 */
dl.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
dl.kv > div { padding: 8px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
dl.kv > div.wide { grid-column: 1 / -1; }
dl.kv > div.hl dd { font-size: 20px; font-weight: 700; }
dl.kv dt { font-size: 12px; color: var(--muted); }
dl.kv dd { margin: 2px 0 0; font-weight: 500; word-break: break-word; }
.notes { margin-top: 12px; white-space: pre-wrap; }
.progress .grid { margin-bottom: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fafafa; }
.gallery img { width: 100%; height: 200px; object-fit: contain; display: block; background: #fff; }
.gallery figcaption { padding: 6px 8px; font-size: 13px; word-break: break-all; }
.pdf-tile { display: flex; align-items: center; justify-content: center; height: 200px; background: #fff; }
.pdf { display: inline-flex; align-items: center; justify-content: center; background: #d93025; color: #fff; font-weight: 700; border-radius: 6px; padding: 10px 14px; font-size: 18px; }
ul.att-edit { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.att-edit li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
ul.att-edit img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
ul.att-edit .pdf { padding: 6px 8px; font-size: 12px; }
ul.att-edit li > span { flex: 1; word-break: break-all; }
ul.att-edit .del { color: var(--danger); white-space: nowrap; display: flex; align-items: center; }
ul.history { list-style: none; padding: 0; margin: 0; }
ul.history > li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
ul.history > li:last-child { border-bottom: 0; }
ul.history ul { margin: 4px 0 0; padding-left: 20px; font-size: 14px; color: #374151; }
.danger-zone { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
details.card summary { cursor: pointer; }
h2.inline { display: inline; }

/* 后台 */
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 8px 12px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a.on { color: var(--text); border-bottom-color: var(--primary); font-weight: 600; }
.subnav a:hover { text-decoration: none; color: var(--text); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs a { padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); }
.tabs a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.tabs a:hover { text-decoration: none; }
.plate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.plate-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.plate-card:hover { text-decoration: none; border-color: var(--primary); }
.plate-card.off { opacity: .5; }
.plate-card img, .plate-card .noimg { width: 100%; height: 120px; object-fit: contain; background: #fafafa; border-radius: 6px; margin-bottom: 4px; }
.plate-card .noimg { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.plate-big { max-width: 320px; max-height: 240px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; }
.logo-preview { max-width: 200px; max-height: 80px; object-fit: contain; }
.user-row { padding: 12px 16px; }
.user-row .grid { margin-bottom: 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.user-row.off { opacity: .6; }
ul.simple { margin: 0; padding-left: 18px; }

/* 手机 */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .table-wrap:has(table.list tr[onclick]) { display: none; }
  ul.cards { display: block; }
  .home-stats { grid-template-columns: repeat(5, 1fr); padding: 10px; }
  .stat b { font-size: 18px; }
  .page-head { align-items: flex-start; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid > .fld:has(textarea), .grid > .fld:has(.combo), .grid > .fld:has(.seg) { grid-column: 1 / -1; }
  dl.kv { grid-template-columns: 1fr 1fr; }
  .form-actions .btn { flex: 1; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: auto; max-height: 70vh; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}

/* 语言 */
.lang-switch { display: inline-flex; margin-left: 6px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; overflow: hidden; }
.lang-switch a { padding: 4px 8px; border-radius: 0; font-size: 13px; color: #aab0bd; }
.lang-switch a.on { background: rgba(255,255,255,.2); color: #fff; }
.alt { color: var(--muted); font-weight: normal; }
dt .alt, .fld > label .alt, th .alt { font-size: .92em; }
.home-head .alt, .btn .alt { color: inherit; opacity: .8; }
.print-group { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.print-group > span { padding: 0 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.print-group .btn { border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.filters { flex-direction: column; align-items: stretch; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-row input[name=q] { flex: 1 1 220px; width: auto; }
.filter-row select { width: auto; max-width: 100%; }
.filter-row select.on { border-color: var(--primary); background: #eef2fd; }
table.list tr.group-row td { background: #f1f3f6; font-size: 13px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
ul.cards li.group-head { padding: 10px 4px 4px; font-size: 13px; color: var(--muted); }
.size-link { color: inherit; border-bottom: 1px dashed #b0b6c0; }
.size-link:hover { text-decoration: none; color: var(--primary); }
.gallery a.thumb { display: block; }
.gallery .pdf-tile[hidden] { display: none; }
.gallery figcaption a { font-size: 12px; }
.badge.pdfb { background: #fde8e7; color: #b42318; }

/* 款式、印刷版多行 */
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.product-msg { font-size: 14px; min-height: 1em; }
.product-msg.ok { color: #1e6b35; }
.product-msg.err { color: var(--danger); }
.plates { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.plate-rows { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.plate-row { display: grid; grid-template-columns: 90px 120px minmax(0, 1fr) 64px auto; gap: 8px; align-items: center;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fafbfc; }
.plate-row .pr-idx { font-size: 13px; color: var(--muted); font-weight: 600; }
.plate-row .pr-pub, .plate-row .pr-cus { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }
.plate-row .pr-pub[hidden], .plate-row .pr-cus[hidden] { display: none; }
.plate-row .pr-cus select, .plate-row .pr-pub select { flex: 1 1 180px; width: auto; }
.plate-row .pr-name { flex: 1 1 160px; width: auto; }
.plate-row .pr-up { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.plate-row .pr-up input { width: auto; max-width: 220px; }
.plate-row .pr-note { font-size: 12px; color: #1e6b35; }
.plate-row .pr-thumb { width: 60px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.plate-row .pr-btns { display: flex; gap: 4px; }
ul.att-edit .keep { white-space: nowrap; display: flex; align-items: center; color: #1e6b35; }
@media (max-width: 760px) {
  .plate-row { grid-template-columns: 1fr auto; }
  .plate-row .pr-kind, .plate-row .pr-pub, .plate-row .pr-cus { grid-column: 1 / -1; }
}
.plate-row [hidden] { display: none !important; }

/* 订单 */
.pre { white-space: pre-line; }
.otag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 1px 7px; border-radius: 4px; color: #fff; text-transform: uppercase; }
.otag.lux { background: var(--lux); } .otag.shopper { background: var(--shopper); }
.olines { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.oline { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 12px; background: #fcfcfd; }
.oline.cat-lux { border-left-color: var(--lux); } .oline.cat-shopper { border-left-color: var(--shopper); }
.oline-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.oline-no { font-weight: 700; color: var(--muted); min-width: 28px; }
.oline-head .ol-art { flex: 0 1 200px; width: auto; font-weight: 600; }
.oline-head .ol-pname { flex: 1 1 220px; width: auto; }
.ol-btns { display: flex; gap: 4px; margin-left: auto; }
.ol-msg { color: #1e6b35; font-size: 13px; min-height: 0; }
.ol-msg:empty { display: none; }
.ol-money .ol-amount { font-weight: 700; background: #f3f4f6; }
.ol-files { display: flex; flex-direction: column; gap: 6px; }
.ol-files input[type=file] { width: auto; }
ul.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
ul.file-list li { display: flex; gap: 12px; align-items: center; font-size: 14px; }
ul.file-list .del { color: var(--danger); display: flex; align-items: center; font-size: 13px; }
.file-list-inline { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.o-totals { display: flex; gap: 24px; justify-content: flex-end; margin-top: 12px; font-size: 15px; }
.o-totals b { font-size: 18px; }
.due { padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.due.due-soon { background: #fff4e0; color: #8a5300; font-weight: 600; }
.due.due-over { background: #fdecea; color: #b42318; font-weight: 600; }
table.olist .spec { display: inline-block; margin-right: 10px; white-space: nowrap; }
table.olist tfoot td { border-top: 2px solid var(--text); border-bottom: 0; }
.addr-pick { margin-bottom: 4px; }
.addr-row { display: grid; grid-template-columns: 200px 1fr auto; gap: 8px; align-items: start; margin-bottom: 8px; }
@media (max-width: 760px) { .addr-row { grid-template-columns: 1fr; } }
.cat-tabs { margin-bottom: 8px; }
.gal-h { font-size: 14px; margin: 14px 0 8px; color: var(--muted); }
.gal-h:first-child { margin-top: 0; }
.line-files select { width: auto; }
ul.att-edit select { width: auto; min-width: 110px; }
.olines.is-empty::before { content: attr(data-empty); display: block; padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.import-form label.btn { cursor: pointer; }

/* 手机：筛选栏每项占一整行，日期框可以缩小，不再左右溢出 */
@media (max-width: 600px) {
  .filter-row > * { min-width: 0; }
  .filter-row input[name=q], .filter-row select { flex: 1 1 100%; width: 100%; }
  .filters label.inline { flex: 1 1 100%; flex-wrap: wrap; white-space: normal; }
  .filters label.inline input[type=date] { flex: 1 1 0; min-width: 0; }
  .filters label.inline select { flex: 1 1 auto; }
}

/* v1.9：款式分标准 / 定制 */
.ol-kind { flex-wrap: nowrap; gap: 0; }
.ol-kind label { padding: 5px 12px; border-radius: 0; font-size: 13px; }
.ol-kind label:first-child { border-radius: 8px 0 0 8px; }
.ol-kind label + label { border-radius: 0 8px 8px 0; margin-left: -1px; }
.ol-kind input, .kind-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ol-kind label:has(input:checked), .kind-seg label:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.ol-art:disabled { background: #f3f4f6; }
input.bad { border-color: #ef4444; background: #fff7f7; }
.ol-msg.ok, .product-msg.ok { color: #166534; }
.ol-msg.info { color: #1e40af; }
.ol-msg.err, .product-msg.err { color: #991b1b; }
/* 标准款：长、宽、高、材质等锁定；“标准款可改”的字段（.std-edit）照常填写 */
.ol-spec.locked .fld:not(.std-edit), .spec-locked .fld.lockable { pointer-events: none; }
.ol-spec.locked .fld:not(.std-edit) input, .ol-spec.locked .fld:not(.std-edit) select, .ol-spec.locked .fld:not(.std-edit) textarea,
.spec-locked .fld.lockable input, .spec-locked .fld.lockable select, .spec-locked .fld.lockable textarea,
.spec-locked .fld.lockable .seg label { background: #f3f4f6; color: var(--muted); }
.kind-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 99px; vertical-align: middle; }
.kind-tag.standard { background: #ecfdf3; color: #166534; }
.kind-tag.custom { background: #f5f3ff; color: #5b21b6; }
dialog.style-dlg { border: 0; border-radius: 12px; width: 600px; max-width: 92vw; padding: 22px 24px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
dialog.style-dlg::backdrop { background: rgba(15,23,42,.45); }
dialog.style-dlg h2 { margin: 0 0 8px; font-size: 19px; }
dialog.style-dlg table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
dialog.style-dlg th, dialog.style-dlg td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; }
dialog.style-dlg td.new { color: #1d4ed8; font-weight: 600; }
dialog.style-dlg .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 22px; }
.scard { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.scard .img { height: 170px; background: #f7f7f5; display: flex; align-items: center; justify-content: center; }
.scard .img img { max-width: 100%; max-height: 170px; object-fit: contain; }
.scard .b { padding: 10px 12px; }
.scard .a { font-weight: 700; font-size: 15px; }
.scard .n { color: #475569; font-size: 13px; margin-bottom: 6px; }
.scard .s { font-size: 12px; color: var(--muted); line-height: 1.6; }
.scard .f { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.cgroup { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 10px; flex-wrap: wrap; }
.cgroup h3 { margin: 0; font-size: 16px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs a { padding: 7px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #334155; }
.tabs a.on { background: #eef2fd; border-color: #93b4f5; color: #1d4ed8; font-weight: 600; }
.kind-seg { margin-bottom: 12px; }
