/* KakSHOP — 前台样式（手写，无框架：比原站 bootstrap+DataTables 轻一个量级） */
:root{
  --brand:#2563eb; --brand-d:#1d4ed8; --brand-l:#eff4ff;
  --ink:#0f172a; --ink-2:#334155; --muted:#64748b; --line:#e5e9f0;
  --ok:#15803d; --ok-l:#ecfdf5; --warn:#b45309; --warn-l:#fffbeb; --err:#dc2626; --err-l:#fef2f2;
  --bg:#f7f9fc; --card:#fff; --radius:12px; --shadow:0 1px 2px rgba(15,23,42,.06),0 8px 24px rgba(15,23,42,.06);
  --maxw:1240px;
  /* 站头实际高度（导航条 66 + 分类条 ~52 = 实测 118px）。所有吸顶元素（筛选栏/表头/
     购买盒/购物车汇总）的 top 偏移都引用它：写死 76/88 会小于站头高度，滚动时吸顶条
     钻到站头底下被盖住，视觉上就是"两条横栏重叠"。JS 会按实测值改写（后台无站头=0px）。 */
  --hdr-h:118px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
.container{max-width:var(--maxw);margin:0 auto;padding:0 18px;width:100%}
.skip{position:absolute;left:-9999px}
/* 跳转链接获得焦点时必须可见，否则键盘用户看不见它 */
.skip:focus{left:10px;top:10px;z-index:100;background:#111827;color:#fff;padding:8px 14px;border-radius:8px}
/* 读屏专用文本：空表头等需要可访问名但不该出现在视觉里的位置 */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* 正文内链接不能只靠颜色区分（WCAG 1.4.1 / axe link-in-text-block；按钮类已排除） */
p a:not(.btn):not(.buy-btn):not(.btn-primary),.card li a:not(.btn):not(.buy-btn):not(.btn-primary){text-decoration:underline;text-underline-offset:2px}
h1,h2,h3,h4{line-height:1.25;margin:0 0 10px}
main{min-height:50vh;padding-bottom:40px}

/* ---------- header ---------- */
.util{background:var(--ink);color:#cbd5e1;font-size:13px}
.util-in{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:34px;flex-wrap:wrap}
.util a{color:#cbd5e1;margin-right:14px}
.util a:hover{color:#fff}
.hdr{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:60}
.hdr-in{display:flex;align-items:center;gap:16px;min-height:66px}
.logo{display:flex;align-items:center;gap:9px;font-weight:800;font-size:19px;color:var(--ink);white-space:nowrap}
.logo:hover{text-decoration:none}
.logo-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,var(--brand),#7c3aed);color:#fff;font-weight:900}
.search{display:flex;flex:1;min-width:180px;max-width:620px;border:1.5px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.search:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-l)}
.search input{flex:1;border:0;padding:11px 14px;font-size:14.5px;outline:none;background:transparent}
.search button{border:0;background:var(--brand);color:#fff;padding:0 16px;cursor:pointer;font-size:15px}
.hdr-actions{display:flex;align-items:center;gap:10px}
.icon-btn{position:relative;font-size:20px;line-height:1;padding:6px}
.badge{position:absolute;top:-4px;right:-6px;background:var(--err);color:#fff;border-radius:20px;font-size:11px;padding:1px 6px;font-weight:700}
.bal{font-weight:700;color:var(--ok);white-space:nowrap}
.acct{position:relative}
.acct-btn{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-menu{display:none;position:absolute;right:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);min-width:190px;padding:6px;z-index:70}
.acct:hover .acct-menu,.acct:focus-within .acct-menu{display:block}
.acct-menu a{display:block;padding:9px 11px;border-radius:8px;color:var(--ink-2)}
.acct-menu a:hover{background:var(--brand-l);text-decoration:none;color:var(--brand-d)}

/* categories / mega menu */
.cats{background:#fff;border-top:1px solid var(--line);position:relative}
.cats-in{display:flex;align-items:center;gap:14px;min-height:46px;position:static}
.mega-wrap{position:relative}
.cats-all{background:var(--brand);color:#fff;border:0;border-radius:9px;padding:9px 14px;font-weight:600;cursor:pointer;white-space:nowrap}
.mega{display:none;position:absolute;left:0;top:calc(100% + 6px);z-index:80;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);width:min(1080px,92vw);padding:14px}
.mega-wrap:hover .mega,.mega-wrap:focus-within .mega{display:block}
.mega-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-height:62vh;overflow:auto}
.mega-title{display:flex;align-items:center;gap:7px;font-weight:700;color:var(--ink);margin-bottom:5px}
.mega-title img{border-radius:6px}
.mega-sub{display:block;color:var(--muted);font-size:13.5px;padding:2.5px 0}
.mega-sub:hover{color:var(--brand)}
.mega-more{display:block;font-size:12.5px;color:var(--brand);margin-top:3px}
.cats-strip{display:flex;gap:14px;overflow-x:auto;white-space:nowrap;font-size:14px;color:var(--ink-2);padding:2px 0;
  scrollbar-width:thin;-webkit-mask-image:linear-gradient(to right,#000 94%,transparent);mask-image:linear-gradient(to right,#000 94%,transparent)}
.cats-strip a{color:var(--ink-2)}
.cats-strip a:hover{color:var(--brand)}

/* ---------- generic ui ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:10px;padding:10px 16px;font-size:14.5px;font-weight:600;cursor:pointer;line-height:1.1}
.btn:hover{text-decoration:none}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-d)}
.btn-buy{background:var(--ok);color:#fff}
.btn-buy:hover{background:#15803d}
.btn-ghost{background:#fff;border-color:var(--line);color:var(--ink-2)}
.btn-ghost:hover{border-color:var(--brand);color:var(--brand)}
.btn-block{width:100%}
.btn-lg{padding:14px 20px;font-size:16px}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.pad{padding:18px}
.grid{display:grid;gap:18px}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.flash{margin:14px 0 0;padding:12px 14px;border-radius:10px;border:1px solid var(--line);background:#fff}
.flash-success{border-color:#bbf7d0;background:var(--ok-l);color:#166534}
.flash-error{border-color:#fecaca;background:var(--err-l);color:#991b1b}
.flash-warn{border-color:#fde68a;background:var(--warn-l);color:#92400e}
table{width:100%;border-collapse:collapse}
th,td{padding:11px 12px;text-align:left;border-bottom:1px solid var(--line);font-size:14px;vertical-align:middle}
th{font-size:12.5px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);background:#fbfcfe}
.tbl-wrap{overflow-x:auto}
.muted{color:var(--muted)}
.small{font-size:13px}
.strong{font-weight:700}
.price{font-weight:800;color:var(--ok);white-space:nowrap}
.pill{display:inline-block;font-size:11.5px;padding:2px 8px;border-radius:99px;background:var(--brand-l);color:var(--brand-d);font-weight:700}
.pill .muted{color:#5b6a7d}
.pill-ok{background:var(--ok-l);color:#166534}
.pill-warn{background:var(--warn-l);color:#92400e}
.st{display:inline-block;font-size:12px;font-weight:700;padding:3px 9px;border-radius:99px}
.st-ok{background:var(--ok-l);color:#166534}
.st-info{background:var(--brand-l);color:var(--brand-d)}
.st-warn{background:var(--warn-l);color:#92400e}
.st-err{background:var(--err-l);color:#991b1b}
.st-muted{background:#f1f5f9;color:var(--muted)}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=search],input[type=tel],select,textarea{
  width:100%;padding:10px 12px;border:1.5px solid var(--line);border-radius:9px;font:inherit;background:#fff;outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-l)}
label{display:block;font-size:13px;font-weight:600;color:var(--ink-2);margin:0 0 5px}
.field{margin-bottom:13px}
.crumbs{margin:16px 0 8px;font-size:13.5px;color:var(--muted)}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:7px;padding:0;margin:0}
.crumbs li+li::before{content:"›";margin-right:7px;color:#cbd5e1}

/* ---------- home ---------- */
.hero{background:linear-gradient(135deg,#0f172a,#1e293b 55%,#1d4ed8);color:#fff;padding:44px 0 40px}
.hero h1{font-size:clamp(24px,3.4vw,40px);margin-bottom:12px;letter-spacing:-.02em}
.hero p{color:#c7d2fe;max-width:760px;font-size:16.5px;margin:0 0 20px}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap}
.trust{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0 0}
.trust-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;gap:11px;align-items:center}
.trust-card b{display:block;font-size:14.5px}
.trust-ico{font-size:22px}
.sec-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:28px 0 12px}
.sec-head h2{font-size:21px;margin:0}
.acc-block{background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:16px;overflow:hidden;box-shadow:var(--shadow)}
.acc-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;background:#fbfcfe;border-bottom:1px solid var(--line)}
.acc-head h3{margin:0;font-size:15.5px;display:flex;align-items:center;gap:9px}
.acc-head img{border-radius:7px}
.acc-head .sub{font-size:13px;color:var(--muted)}
.row-title{font-weight:600;color:var(--ink)}
.row-title:hover{color:var(--brand-d)}
.stock{white-space:nowrap}
.stock b{color:var(--ok)}
.buy-btn{background:var(--ok);color:#fff;border-radius:9px;padding:8px 14px;font-weight:700;font-size:13.5px;white-space:nowrap}
.buy-btn:hover{background:#15803d;text-decoration:none}
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:8px}
.step{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px}
.step b{display:block;margin:8px 0 4px}
.step-n{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--brand-l);color:var(--brand-d);font-weight:800}

/* ---------- product ---------- */
.pdp{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:22px;margin-top:10px}
.pdp-title{font-size:24px;letter-spacing:-.01em}
.pdp-media{display:flex;gap:16px;align-items:flex-start;margin:14px 0}
.pdp-media img{width:96px;height:96px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#fff;padding:8px}
.pdp-facts{display:flex;gap:20px;flex-wrap:wrap;color:var(--ink-2);font-size:14px}
.buybox{position:sticky;top:calc(var(--hdr-h) + 10px);height:max-content}
.buybox .price-big{font-size:30px;font-weight:900;color:var(--ink)}
.buybox .price-alt{color:var(--muted);font-size:14px}
.qty-row{display:flex;gap:10px;align-items:flex-end;margin:12px 0}
.qty-row .field{margin:0;flex:1}
.total-row{display:flex;justify-content:space-between;padding:8px 0;border-top:1px dashed var(--line);font-size:14px}
.total-row.big{font-size:17px;font-weight:800;border-top:1px solid var(--line)}
.desc{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-top:18px;overflow-wrap:anywhere}
.desc h2,.desc h3{font-size:16px}
.desc img{max-width:100%;height:auto}
.note{background:var(--brand-l);border:1px solid #dbeafe;color:var(--brand-d);border-radius:10px;padding:10px 12px;font-size:13.5px;margin:10px 0}
.cred{background:#0b1220;color:#d1fae5;border-radius:10px;padding:14px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;white-space:pre-wrap;word-break:break-all}
.qty-ctl{display:inline-flex;border:1.5px solid var(--line);border-radius:9px;overflow:hidden}
.qty-ctl button{border:0;background:#fff;padding:7px 12px;cursor:pointer;font-size:16px}
.qty-ctl input{border:0;width:56px;text-align:center;padding:7px 0}

/* ---------- auth / account ---------- */
.auth{max-width:430px;margin:34px auto;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:26px}
.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:18px 0}
.tabs a{padding:9px 12px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent}
.tabs a.on{color:var(--brand);border-color:var(--brand)}
.stat-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}
.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px}
.stat b{display:block;font-size:22px;margin-top:4px}
.ftr{background:var(--ink);color:#94a3b8;margin-top:36px;padding:36px 0 0}
.ftr .logo{color:#fff}
.ftr-in{display:grid;grid-template-columns:1.4fr 1fr;gap:26px}
.ftr-brand p{max-width:520px;font-size:14px}
.ftr-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.ftr-col h2,.ftr-col h3,.ftr-col h4{color:#fff;font-size:14px;margin-bottom:9px}
.ftr-col a{display:block;color:#94a3b8;font-size:14px;padding:3px 0}
.ftr-col a:hover{color:#fff}
.ftr-cloud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:24px;padding-top:20px;border-top:1px solid rgba(255,255,255,.09)}
.ftr-cloud .ftr-col a{font-size:13.5px}
.ftr-bottom{border-top:1px solid #1e293b;margin-top:28px;padding:14px 0;font-size:13px}
.ftr-bottom .container{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);background:var(--ink);color:#fff;padding:11px 18px;border-radius:10px;opacity:0;transition:.2s;pointer-events:none;z-index:200;font-size:14px}
.toast.on{opacity:1;transform:translate(-50%,0)}
.warnbar{background:var(--warn-l);border:1px dashed #fcd34d;color:#92400e;border-radius:10px;padding:10px 13px;font-size:13.5px;margin:14px 0}
.kv{display:grid;grid-template-columns:150px 1fr;gap:6px 14px;font-size:14px}
.kv dt{color:var(--muted)}

/* 语言切换 */
.langsw{display:inline-flex;border:1px solid #334155;border-radius:999px;overflow:hidden;margin-right:10px}
.langsw a{padding:1px 10px;color:#cbd5e1;font-size:12.5px;font-weight:600}
.langsw a.on{background:var(--brand);color:#fff}
.langsw a:hover{text-decoration:none;color:#fff}

/* 商品属性标签（中文要点） */
.chips{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 4px}
.chip{background:var(--brand-l);color:var(--brand-d);border:1px solid #dbeafe;border-radius:999px;
      padding:4px 11px;font-size:12.5px;font-weight:600;line-height:1.5}
.desc-sub{font-size:14.5px;margin:16px 0 8px;color:var(--ink-2);border-left:3px solid var(--brand);padding-left:9px}
.points{margin:0 0 6px;padding-left:20px;font-size:14px;color:var(--ink-2)}
.points li{margin:5px 0}
.orig{margin-top:14px;border-top:1px dashed var(--line);padding-top:12px}
.orig summary{cursor:pointer;font-weight:600;color:var(--brand);font-size:14px}
.orig-body{margin-top:10px;font-size:14px;color:var(--ink-2);overflow-wrap:anywhere}
.orig-body img{max-width:100%;height:auto}
/* 商品页生成正文 + FAQ（tools/seo_listings_fill.php 落库的内容）：
   复用 .desc 卡片，只为新元素补最少的样式，不引入任何新依赖 */
.seo-body{font-size:14.5px;color:var(--ink-2);line-height:1.68}
.seo-body h3{font-size:14.5px;margin:16px 0 8px;color:var(--ink-2);border-left:3px solid var(--brand);padding-left:9px}
.seo-body ul{margin:0 0 8px;padding-left:20px}
.seo-body li{margin:5px 0}
.seo-body b{color:var(--ink)}
.faq{margin-top:14px}
.faq-item{border-top:1px solid var(--line);padding:9px 0}
.faq-item summary{cursor:pointer;font-weight:600;font-size:14.5px;color:var(--ink)}
.faq-a{margin-top:7px;font-size:14px;color:var(--ink-2);line-height:1.66}



/* 分类卡片网格（首页视觉升级） */
.catgrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.catcard{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);
         border-radius:12px;padding:14px 10px;text-align:center;color:var(--ink);box-shadow:var(--shadow);transition:.16s}
.catcard:hover{border-color:var(--brand);transform:translateY(-2px);text-decoration:none;box-shadow:0 8px 22px rgba(37,99,235,.14)}
.cc-ico{display:grid;place-items:center;width:44px;height:44px;border-radius:11px;background:var(--brand-l);overflow:hidden}
.cc-ico img{border-radius:8px;object-fit:contain}
.cc-emoji{font-size:22px}
.cc-name{font-size:13.5px;font-weight:600;line-height:1.3;min-height:34px;display:flex;align-items:center}
.cc-cnt{font-size:11.5px;color:var(--muted)}
.catcard-more .cc-ico{font-size:22px;color:var(--brand-d);font-weight:700}
@media(max-width:1040px){.catgrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){
  .catgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  .catcard{padding:10px 7px}
  .cc-ico{width:38px;height:38px}
  .cc-name{font-size:12.5px;min-height:32px}
}


/* 桌面表格可读性：斑马纹 + hover（移动端卡片不参与） */
@media(min-width:761px){
  .tbl-wrap tbody tr:nth-child(even){background:#fcfdff}
  .tbl-wrap tbody tr:hover{background:var(--brand-l)}
  .tbl-wrap tbody tr{transition:background .12s}
}



/* ==================== 搜索联想 / 收藏 / 最近浏览 ==================== */
.search{position:relative}
.suggest{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--line);
         border-radius:12px;box-shadow:var(--shadow);z-index:95;overflow:hidden;max-height:64vh;overflow-y:auto}
.sg{display:flex;gap:9px;align-items:center;padding:10px 12px;border-bottom:1px solid #f1f5f9;color:var(--ink);font-size:14px}
.sg:last-child{border-bottom:0}
.sg:hover,.sg.sel{background:var(--brand-l);text-decoration:none}
.sg-ico{flex:0 0 auto;font-size:15px}
.sg-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sg-p{flex:0 0 auto;color:var(--ok);font-weight:700;font-size:13px}
.fav-btn{background:#fff;border:1px solid var(--line);color:var(--ink-2);border-radius:10px;padding:10px 12px;
         cursor:pointer;font-size:17px;line-height:1;min-width:46px;min-height:44px}
.fav-btn:hover,.fav-btn.on{color:#e11d48;border-color:#fecdd3;background:#fff1f2}
.rv-list{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px}
.rv-card{flex:0 0 auto;min-height:44px;max-width:220px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;color:var(--ink)}
.rv-card b{display:block;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}
.rv-card span{font-size:12.5px;color:var(--ok);font-weight:700}
.rv-card:hover{border-color:var(--brand);text-decoration:none}

/* ==================== 筛选侧栏 / 列表布局 ==================== */
.list-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;align-items:start}
.list-main{min-width:0}
.filters{position:sticky;top:calc(var(--hdr-h) + 10px);max-height:calc(100vh - var(--hdr-h) - 34px);overflow:auto}
.fx-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.fx-group{border-top:1px solid var(--line);padding:10px 0}
.fx-title{font-size:13px;font-weight:700;color:var(--ink);margin-bottom:6px}
.fx-opts{display:flex;flex-direction:column;gap:3px}
.fx-opt{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:6px 8px;border-radius:8px;
        color:var(--ink-2);font-size:13.5px;border:1px solid transparent}
.fx-opt:hover{background:var(--brand-l);text-decoration:none;color:var(--brand-d)}
.fx-opt.on{background:var(--brand-l);border-color:#bfdbfe;color:var(--brand-d);font-weight:700}
.fx-n{font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.fx-opt.on .fx-n{color:var(--brand-d)}
.fx-foot{margin-top:10px;border-top:1px solid var(--line);padding-top:10px;line-height:1.6}
.fx-chips{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:6px 0 12px}
.fx-sortbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
/* 粘性表头（长列表）
   注意 top 必须为 0：.tbl-wrap 有 overflow-x:auto，overflow-y 因此计算成 auto，
   于是它成了 sticky 的约束容器——给非 0 的 top（旧值 76px）会把表头**整体往下顶**
   到表格顶部以下 76px，横栏就压在头几行数据上（前后端所有表格列表都中招）。
   top:0 时表头贴在表格顶边；哪天给 .tbl-wrap 加 max-height 变成可纵向滚动，这里也就直接生效了。 */
@media(min-width:1041px){
  .tbl-wrap thead th{position:sticky;top:0;z-index:5;background:#fbfcfe;box-shadow:inset 0 -1px 0 var(--line)}
}
@media(max-width:1040px){
  .list-layout{grid-template-columns:1fr}
  .filters{position:static;max-height:none}
  .filters .fx-group{display:none}
  .filters.fx-open .fx-group{display:block}
}

/* ==================== 体验优化层（移动端 / 可点性 / 表格 / 无障碍） ==================== */
/* 1) 键盘可达的焦点样式（原来只有输入框有） */
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{
  outline:2.5px solid var(--brand);outline-offset:2px;border-radius:6px}
/* 2) 触控目标 ≥44px（移动端） */
@media(max-width:760px){
  .btn,.buy-btn,.cats-all,.icon-btn,.langsw a,.qty-ctl button{min-height:44px}
  .btn{padding:12px 16px}
  .hdr-actions{gap:6px}
  /* 双币种在小屏只留主价，避免价格被挤断 */
  .price .small,.price-alt .small{display:none}
  .acc-head .sub{display:none}
}
/* 3) 分类大菜单：支持点击展开（原来只有 :hover，手机点不动） */
.mega-wrap.open .mega{display:block}
.mega-open-mark::after{content:"▾";margin-left:6px;font-size:11px}
@media(max-width:760px){
  .mega{width:calc(100vw - 24px);left:-6px;padding:12px}
  .mega-grid{grid-template-columns:1fr 1fr;max-height:70vh}
  .mega-col{border-bottom:1px dashed var(--line);padding-bottom:8px}
  .mega-sub{padding:6px 0;font-size:14px}
}
/* 4) 表格 → 移动端卡片（商品列表在 390px 下不再被挤爆） */
@media(max-width:760px){
  .tbl-wrap.card,.card.tbl-wrap{border:0;box-shadow:none;background:transparent}
  .tbl-wrap table,.tbl-wrap tbody,.tbl-wrap tr,.tbl-wrap td{display:block;width:100%}
  .tbl-wrap thead{display:none}
  .tbl-wrap tr{background:#fff;border:1px solid var(--line);border-radius:12px;
               box-shadow:var(--shadow);margin-bottom:10px;padding:12px 12px 10px}
  .tbl-wrap td{border:0;padding:3px 0;display:flex;justify-content:space-between;gap:12px;align-items:center}
  .tbl-wrap td[data-label]:not([data-label=""])::before{
    content:attr(data-label);color:var(--muted);font-size:12.5px;flex:0 0 auto;font-weight:600}
  .tbl-wrap td.row-main{display:block;font-size:15px;padding-bottom:8px}
  .tbl-wrap td.row-main::before{content:none}
  .tbl-wrap td.row-action{margin-top:8px}
  .tbl-wrap td.row-action .buy-btn,.tbl-wrap td.row-action .btn{width:100%;justify-content:center}
  .hide-sm{display:none !important}
}
/* 5) 商品页：移动端购买卡提前 + 吸底购买栏 */
.pdp-head{margin-top:4px}

/* ==================== 第二轮体验优化 ==================== */
/* 吸底购买栏：桌面不显示；手机端由 JS 常显（主购买卡常在小屏首屏之下） */
#buybar{display:none}
@media(min-width:761px){#buybar{display:none !important}}
/* 手机端语言切换：桌面顶栏已有，手机上补一个（原来 .util-right 被隐藏 → 手机无法切换语言） */
.langsw-mobile{display:none}
@media(max-width:760px){.langsw-mobile{display:inline-flex;margin-right:0;border-color:var(--line)}
  .langsw-mobile a{color:var(--ink-2)}          /* 白底上用深色字：#cbd5e1 对白底只有 1.48:1 */
  .langsw-mobile a:hover{color:var(--ink)}
  .langsw-mobile a.on{background:var(--brand);color:#fff}}
/* 属性标签在手机上最多 5 个，避免把购买卡推到很远 */
@media(max-width:760px){
  .chips .chip:nth-child(n+6){display:none}
  .pdp-head{margin-top:0}
  .pdp-title{font-size:20px;line-height:1.35}
  .desc{padding:14px;margin-top:12px}
  .pdp-media{margin:10px 0}
  .pdp-media img,.pdp-media .ph{width:64px;height:64px}
  .note{padding:9px 11px;font-size:13px}
  /* 购物车/结算：小屏把金额汇总卡提到前面，先看钱再看列表 */
  .cart-grid{display:flex;flex-direction:column}
  .cart-grid > .cart-sum{order:-1;position:sticky;top:calc(var(--hdr-h) + 10px);z-index:20}
}
/* 极小屏（≤430px）只留品牌标记，给搜索和操作区腾空间 */
@media(max-width:430px){
  .logo span:not(.logo-mark){display:none}
  .hdr-in{gap:8px}
}

@media(max-width:1040px){
  .pdp{display:flex;flex-direction:column}
  .pdp > aside{order:-1}
}
.buybar{display:none}
@media(max-width:760px){
  .buybar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:90;gap:10px;align-items:center;
          background:#fff;border-top:1px solid var(--line);padding:9px 12px calc(9px + env(safe-area-inset-bottom));
          box-shadow:0 -6px 20px rgba(15,23,42,.08)}
  .buybar .bb-price{flex:1;min-width:0}
  .buybar .bb-price b{display:block;font-size:19px;color:var(--ok);line-height:1.2}
  .buybar .bb-price span{font-size:12px;color:var(--muted)}
  .buybar .btn{flex:0 0 auto;padding:12px 14px}
  body.has-buybar{padding-bottom:78px}
}
/* 6) 空状态 / 提示 */
.empty{text-align:center;padding:34px 18px}
.empty .ico{font-size:40px;line-height:1;color:var(--brand)}
.empty h2,.empty h3{margin:10px 0 6px;font-size:17px}
.empty .hotsearch{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:12px}
.empty-acts{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:12px 0 2px}
/* 7) 选中态更明确（支付方式、排序） */
.opt{cursor:pointer;transition:.15s}
.opt:has(input:checked){border-color:var(--brand);background:var(--brand-l);box-shadow:0 0 0 3px #dbeafe}
/* 8) 锚点不被吸顶头挡住（偏移跟着站头实测高度走，别写死 96px） */
section[id],div[id]{scroll-margin-top:calc(var(--hdr-h) + 14px)}
/* 9) 回到顶部 */
.totop{position:fixed;right:14px;bottom:16px;z-index:80;width:42px;height:42px;border-radius:50%;
       border:1px solid var(--line);background:#fff;box-shadow:var(--shadow);cursor:pointer;display:none;
       font-size:17px;color:var(--ink-2)}
.totop.on{display:block}
@media(max-width:760px){.totop{bottom:86px}}
/* 10) 商品图占位（无图时不留空洞） */
.pdp-media .ph{width:96px;height:96px;border:1px solid var(--line);border-radius:12px;background:var(--brand-l);
               display:grid;place-items:center;font-size:30px;color:var(--brand-d);flex:0 0 auto}
/* 11) 数字列等宽对齐更像电商 */
.stock,.price{font-variant-numeric:tabular-nums}

@media(max-width:1040px){
  .mega-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pdp{grid-template-columns:1fr}
  .grid-3,.grid-4,.trust,.steps,.stat-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .hdr-in{flex-wrap:wrap;min-height:auto;padding:10px 0;gap:10px}
  .search{order:3;max-width:none;flex-basis:100%}
  .util-right{display:none}
  .cats-strip{font-size:13px}
  .mega-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-3,.grid-4,.trust,.steps,.stat-cards,.ftr-in,.ftr-cols,.ftr-cloud,.dir-prods,.whygrid{grid-template-columns:1fr}
  .kv{grid-template-columns:1fr}
  th,td{padding:9px 8px;font-size:13px}
  .hide-sm{display:none}
  .pdp-title{font-size:19px}
}


/* ==================================================================
   KakSHOP —— 分组导航 / 首页卡片化（2026-09 重构）
   信息架构真源：lib/nav_groups.php（8 大分组 → 分类 → 子分类）
   ================================================================== */

/* ---------- 图标与渐进增强 ---------- */
.ico{display:inline-block;vertical-align:-.16em;flex:none}
.ico-fill{fill:currentColor}
.heading-sm{font-size:19px;margin:0 0 10px}
/* 卡片内的小标题：语义上用 h2（整页是 h1→h2 两层；此前这些位置用 h3，axe 会报
   heading-order 跳级），字号保持与原先的 h3 一致（1.17em），视觉零变化。 */
.card-h{font-size:1.17em;font-weight:700;margin:0 0 10px}
.ico-inline{margin-right:6px}
.no-js .js-only{display:none !important}

/* ---------- 品牌字标 ---------- */
.logo-word{font-weight:800;font-size:20px;letter-spacing:-.02em;color:var(--ink)}
.logo-word b{color:var(--brand);font-weight:800}
.logo .logo-mark{background:none;border-radius:0;width:34px;height:34px;display:block}
.ftr .logo-word{color:#fff}
.ftr .logo-word b{color:#93c5fd}
.ftr .logo .logo-mark{width:30px;height:30px}
.ftr-brand p{margin-top:8px}
.ftr-in>*{min-width:0}
.ftr-brand p,.ftr-col a{overflow-wrap:anywhere}

/* ---------- 横向导航栏：8 大分组 + 下拉面板 ---------- */
.cats-in{min-height:50px;gap:6px}
/* 热区必须顶到面板顶边：父容器高度来自 min-height，子元素写 height:100% 解不出百分比高度（实测无效），
   要用 align-self:stretch 让它填满导航条高度 —— 否则链接底边到面板顶边留 14px 真空，鼠标一往下移面板就消失。*/
.nav-list{display:flex;align-items:stretch;list-style:none;margin:0;padding:0;flex-wrap:nowrap;align-self:stretch}
.nav-item{position:static;display:flex;align-items:stretch}
.nav-link{display:flex;align-items:center;gap:4px;padding:0 11px;font-size:14.5px;font-weight:600;
          color:var(--ink-2);white-space:nowrap;border-radius:9px}
.nav-link .ico{opacity:.45}
.nav-link:hover{background:var(--brand-l);color:var(--brand-d);text-decoration:none}
.nav-link:hover .ico{opacity:.9}
.nav-item:hover>.nav-link,.nav-item:focus-within>.nav-link{background:var(--brand-l);color:var(--brand-d)}
.nav-low{color:#047857}
.nav-low .ico{opacity:.85}
.nav-low:hover{background:#ecfdf5;color:#065f46}
.nav-item-plain{margin-left:8px;border-left:1px solid var(--line)}
.nav-side{margin-left:auto;display:flex;align-items:stretch;border-left:1px solid var(--line)}

.nav-drop{display:none;position:absolute;left:0;right:0;top:100%;z-index:75;
          background:#fff;border-bottom:1px solid var(--line);border-radius:0 0 14px 14px;
          box-shadow:0 14px 34px rgba(15,23,42,.14)}
/* 下拉必须「移进去不消失」：热区（.nav-item/.nav-list）满高顶到面板顶边，
   否则链接底边与面板顶边之间那段空隙会让 :hover 断开，鼠标一往下移面板就没了（客户点不到里面的链接）。
   实测过：修前空隙 14px。JS 侧再加 260ms 宽限（.nav-open）。*/
.nav-item:hover .nav-drop,.nav-item:focus-within .nav-drop,.nav-item.nav-open .nav-drop{display:block}
.nav-drop-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,300px);gap:20px;
             padding:16px 18px 18px;max-width:var(--maxw);margin:0 auto;width:100%}
.drop-head{grid-column:1/-1;display:flex;align-items:center;gap:8px;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid var(--line)}
.drop-head b{font-size:15px;color:var(--ink)}
.drop-head-ico{width:26px;height:26px;border-radius:8px;background:var(--brand-l);color:var(--brand-d);display:grid;place-items:center;flex:none}
.drop-head .drop-all{margin-top:0;margin-left:auto}
.drop-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 18px;align-content:start}
.drop-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.drop-list{list-style:none;margin:0;padding:0}
.drop-list a{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;font-size:14px;color:var(--ink-2);min-width:0}
.drop-list a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drop-subs a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drop-list a:hover{background:var(--brand-l);color:var(--brand-d);text-decoration:none}
.drop-list img{border-radius:5px}
.drop-dot{width:17px;height:17px;border-radius:5px;background:var(--brand-l);border:1px solid #dbeafe;flex:none}
.drop-side{border-left:1px solid var(--line);padding-left:16px}
.drop-side-t{font-size:11.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-bottom:7px}
.drop-subs{display:flex;flex-direction:column}
.drop-subs a{display:flex;align-items:center;gap:8px;padding:5px 7px;border-radius:7px;font-size:13.5px;color:var(--ink-2)}
.drop-subs a:hover{background:var(--brand-l);color:var(--brand-d);text-decoration:none}
.drop-list em,.drop-subs em{margin-left:auto;font-style:normal;font-size:11.5px;font-weight:700;color:var(--muted);flex:none}
.drop-all{display:inline-flex;align-items:center;gap:5px;margin-top:10px;font-size:13.5px;font-weight:700;color:var(--brand)}
.drop-all:hover{text-decoration:none}

/* 大菜单（全部分类）微调 */
.mega-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px}
.mega-title .ico{color:var(--brand);opacity:.9}
.mega-cnt{margin-left:auto;font-style:normal;font-size:11.5px;font-weight:700;color:var(--muted)}
.mega-sub{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mega-sub em{font-style:normal;font-size:11.5px;color:var(--muted)}

/* ---------- Hero 数据条 ---------- */
.hero-stats{display:flex;gap:30px;flex-wrap:wrap;margin-top:18px;font-size:12.5px;opacity:.85}
.hero-stats b{display:block;font-size:20px;font-weight:800;line-height:1.25;opacity:1}

/* ---------- Hero 两栏（左文案 / 右热门平台） ---------- */
.hero-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:36px;align-items:center}
.hero h1{text-wrap:balance}
.hero-main{min-width:0}
.hero-plats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.hero .platcard{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#fff;
                box-shadow:none;padding:12px 8px;backdrop-filter:blur(2px)}
.hero .platcard:hover{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.45);text-decoration:none}
.hero .plat-ico{background:rgba(255,255,255,.94)}
.hero .plat-name{font-size:12.5px;font-weight:600}
.hero .plat-cnt{color:rgba(255,255,255,.72)}

/* ---------- 热门平台 ---------- */
.platgrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.platcard{display:flex;flex-direction:column;align-items:center;gap:6px;background:var(--card);border:1px solid var(--line);
          border-radius:12px;padding:14px 10px;text-align:center;box-shadow:var(--shadow);transition:.16s;color:var(--ink)}
.platcard:hover{border-color:#c7d7fe;transform:translateY(-1px);text-decoration:none}
.plat-ico{width:40px;height:40px;border-radius:11px;background:var(--brand-l);display:grid;place-items:center;overflow:hidden}
.plat-ico img{width:30px;height:30px;object-fit:contain}
.plat-name{font-weight:700;font-size:13.5px;line-height:1.25;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.plat-cnt{font-size:11.5px;color:var(--muted)}

/* ---------- 商品卡 ---------- */
.pgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.pcard{display:flex;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
       box-shadow:var(--shadow);padding:13px;transition:.16s}
.pcard:hover{border-color:#c7d7fe;transform:translateY(-1px)}
.pcard-top{flex:none;width:44px;height:44px;border-radius:11px;background:var(--brand-l);display:grid;place-items:center;overflow:hidden}
.pcard-top img{width:34px;height:34px;object-fit:contain}
.pcard-abbr{font-weight:800;font-size:17px;color:var(--brand-d)}
.pcard-body{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.pcard-cat{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcard-cat:hover{color:var(--brand);text-decoration:none}
.pcard-sep{margin:0 4px}
.pcard-title{font-size:14px;font-weight:600;line-height:1.35;color:var(--ink);min-height:2.7em;
             display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcard-title:hover{color:var(--brand-d);text-decoration:none}
.pcard-meta{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;overflow:hidden;min-height:21px}
.pcard-meta .pill{white-space:nowrap}
.pcard-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;
            padding-top:9px;border-top:1px dashed var(--line);flex-wrap:wrap}
.pcard-price{display:flex;flex-direction:column;font-size:16px;font-weight:800;color:var(--ink);line-height:1.15;min-width:0}
.pcard-price em{font-style:normal;font-size:11.5px;font-weight:500}
.pcard-acts{display:flex;align-items:center;gap:6px}
.pcard-add{width:34px;height:34px;border-radius:9px;border:1px solid var(--line);background:#fff;color:var(--ink-2);
           cursor:pointer;display:grid;place-items:center;padding:0}
.pcard-add:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-l)}
.btn.btn-sm{padding:8px 13px;font-size:13.5px;border-radius:9px}

/* ---------- 分类目录（大分组 → 分类 → 热门子分类 → 组内商品卡） ----------
   参考源站的长处：首页每个分类都能扫到货、看到价格、直接买；但没有像源站那样堆 127 张表，
   改成「一整行一个分组 + 卡片」，体积和移动端都守得住。 */
.dirgrid{display:grid;grid-template-columns:1fr;gap:16px;align-items:stretch}
.dir-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px 18px}
.dir-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.dir-ico{width:34px;height:34px;border-radius:10px;background:var(--brand-l);color:var(--brand-d);display:grid;place-items:center;flex:none}
.dir-title{font-size:16px;font-weight:800;color:var(--ink)}
.dir-title:hover{color:var(--brand-d);text-decoration:none}
.dir-all{margin-left:auto;font-weight:700;color:var(--brand);display:inline-flex;align-items:center;gap:4px}
.dir-all:hover{text-decoration:none}
.dir-cats{display:flex;flex-wrap:wrap;gap:7px}
.dir-cat{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:9px;
         padding:6px 10px;font-size:13.5px;color:var(--ink-2);background:#fbfcfe}
.dir-cat:hover{border-color:var(--brand);color:var(--brand-d);background:var(--brand-l);text-decoration:none}
.dir-cat em{font-style:normal;font-size:11.5px;font-weight:700;color:var(--muted)}
.dir-cat i{font-style:normal;font-size:11px;font-weight:800;color:#15803d;background:#f0fdf4;
           border:1px solid #dcfce7;border-radius:6px;padding:1px 5px}
/* 组内商品卡：让客户在首页就能扫到该组的实物、价格、库存并直接加购 */
.dir-prods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:13px;
           padding-top:13px;border-top:1px dashed var(--line)}
.dir-prods-head{grid-column:1/-1;display:flex;align-items:center;gap:8px;margin-bottom:-2px}
.dir-prods-head b{font-size:12px;font-weight:800;letter-spacing:.03em;color:var(--muted);text-transform:uppercase}
.dir-prods-head a{margin-left:auto;font-size:13.5px;font-weight:700;color:var(--brand);display:inline-flex;align-items:center;gap:4px}
.dir-prods-head a:hover{text-decoration:none}

/* 「为什么选我们」——对齐源站的 Why Choose 段落 */
.whygrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.why{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 15px}
.why b{display:block;font-size:14.5px;margin-bottom:5px;color:var(--ink)}
.why span{font-size:13px;color:var(--muted);line-height:1.55}
.why a{font-weight:600}
.dir-subs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:12px;padding-top:11px;border-top:1px dashed var(--line)}
.dir-subs-t{font-size:11.5px;font-weight:800;color:var(--muted);letter-spacing:.03em;margin-right:2px}
.chip{display:inline-flex;align-items:center;gap:6px}
.chip em{font-style:normal;font-size:11.5px;font-weight:700;color:#4465d6}
.chip-muted em{color:var(--ink-2)}
.chip-muted{background:#f1f5f9;border-color:var(--line);color:var(--ink-2)}

/* ---------- 分类页的分组头 / 分组内分类标签 ---------- */
.grp-head{display:flex;align-items:center;gap:12px;margin:4px 0 12px;flex-wrap:wrap}
.grp-head h1{font-size:22px;margin:0}
.grp-sort{margin-left:auto}
.grp-ico{width:42px;height:42px;border-radius:12px;background:var(--brand-l);color:var(--brand-d);display:grid;place-items:center;flex:none}
.grp-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}

/* ---------- 响应式 ---------- */
@media(max-width:1120px){
  .nav-link{padding:0 9px;font-size:14px}
  .nav-side .nav-link{padding:0 8px}
}
/* 导航宽度分级：放不下就按优先级收起，宁可少显示也不横向溢出（全部入口大菜单里都有） */
@media(max-width:1460px){
  .nav-side{display:none}                                   /* 先收起右侧「全部商品/质保政策」 */
}
@media(max-width:1290px){
  .nav-list .nav-item:nth-child(n+7):not(.nav-item-plain){display:none}   /* 再收起最后两个分组 */
}
@media(max-width:1120px){
  .nav-list .nav-item:nth-child(n+5):not(.nav-item-plain){display:none}   /* 只留前 4 个分组 */
}
@media(max-width:1040px){
  /* 页脚在平板宽度会横向溢出（长邮箱 + 三列链接），收紧为单栏 + 断词 */
  .ftr-in{grid-template-columns:1fr}
  .ftr-cols{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ftr-col a{overflow-wrap:anywhere}
  .pgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dir-prods{grid-template-columns:repeat(2,minmax(0,1fr))}
  .whygrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .platgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero-grid{grid-template-columns:1fr;gap:24px}
  .hero-plats{grid-template-columns:repeat(5,minmax(0,1fr))}
  /* 平板宽度放不下 8 个分组标签：只留前 4 组 + 低价榜，其余走「全部分类」大菜单，避免横向溢出 */
  .nav-list .nav-item:nth-child(n+5):not(.nav-item-plain){display:none}
}
@media(max-width:900px){
  .dirgrid{grid-template-columns:1fr}
}
@media(max-width:760px){
  /* 手机上横向导航只留「全部分类」大菜单 + 低价榜，其余走大菜单，避免挤成一团 */
  .nav-drop{display:none !important}
  .nav-item:not(.nav-item-plain){display:none}
  .nav-side{display:flex;margin-left:auto}
  .nav-side .nav-link:last-child{display:none}
  .cats-in{gap:10px}
  .cats-all{flex:none}
  .pgrid,.platgrid{grid-template-columns:1fr}
  .platgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-plats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-plats .platcard{padding:10px 6px}
  .dir-card{padding:14px}
  .dir-all{margin-left:0}
  .drop-side{border-left:0;padding-left:0}
  .hero-stats{gap:20px;margin-top:14px}
  .hero-stats b{font-size:17px}
  .pcard-top{width:40px;height:40px}
  .pcard-add{width:40px;height:40px}
  .btn.btn-sm{min-height:40px}
  .drop-cols{grid-template-columns:1fr}
}

/* ===== 首页增强（第十轮）：真实成交条 / 低价榜 / 分组起价 / 说明段 ===== */
.statbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;margin:18px 0 0;
  background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d;border-radius:12px;padding:11px 15px;font-size:13.5px}
.statbar-lead{font-weight:800;background:#15803d;color:#fff;border-radius:999px;padding:3px 10px;font-size:12px}
.statbar b{font-size:16.5px;font-weight:800;line-height:1}
.hot-tbl{margin-top:2px}
.hot-tbl .tbl td{vertical-align:middle}
.row-cat{font-size:12.5px;color:var(--muted)}
.row-cat a{color:var(--brand-d)}
.hot-price{font-weight:800;color:var(--ink);white-space:nowrap}
.hot-price em{display:block;font-style:normal;font-weight:500;font-size:11.5px;color:var(--muted)}
.hot-tbl .row-action{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.dir-from{font-style:normal;font-size:11.5px;font-weight:800;color:#15803d;background:#f0fdf4;
  border:1px solid #bbf7d0;border-radius:999px;padding:3px 9px;white-space:nowrap}
.seo-note{margin:28px 0 4px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px;
  font-size:13.5px;line-height:1.78;color:var(--ink-2)}
.seo-note h2{font-size:16px;margin:0 0 9px}
.seo-note p{margin:0 0 8px}
.seo-note p:last-child{margin-bottom:0}

@media (max-width:900px){
  .statbar{gap:5px 16px;font-size:12.5px;padding:10px 13px}
  .statbar b{font-size:15px}
  .seo-note{font-size:13px;padding:14px 15px}
}

/* ---------- 移动端收尾（必须放文件最末尾） ----------
   踩过的坑：@media(max-width:1040px) 块写在本文件靠后位置，同优先级下会盖掉前面 760 断点的规则，
   结果手机上 .dir-prods 仍是 2 列 → 卡片只有 156px 宽，卡片里的「购买 / 加购」按钮溢出屏幕
   （ui_audit 390px 报横向溢出 scrollWidth 425）。所以要在这里显式收成单列。 */
@media(max-width:760px){
  /* 必须是 minmax(0,1fr)：写 1fr 时最小值是 auto，卡片里 nowrap 的长文本会把轨道撑宽（实测 320px 顶出 17px） */
  .dir-prods,.whygrid{grid-template-columns:minmax(0,1fr)}
}
/* 再窄一点：商品卡改单列，卡片内部才放得下价格 + 按钮（2 列时卡片仅 ~171px） */
@media(max-width:560px){
  .pgrid{grid-template-columns:minmax(0,1fr)}
  .pcard{padding:12px}
  .pcard-acts{margin-left:auto}
}
/* 英文标签天生比中文长（「全部商品」 vs "All listings"）：≤560px 时右侧这一项会把导航条顶出 10px
   （实测 390px 视口 scrollWidth=400）。它的入口在大菜单里都有，按 760 断点既定原则直接收起。 */
@media(max-width:560px){
  .nav-side{display:none}
}
/* 极窄机型（320px，iPhone SE 一代）：.dir-cats 的列宽是按 min-content 撑的，卡片会被顶出 32px。
   网格项默认 min-width:auto，内部长文本（分类名 + 起价 + 数量）能把轨道撑宽 —— 这里显式放开。 */
@media(max-width:560px){
  .dir-card,.dir-head,.dir-cats,.dir-cat,.dir-prods,.dir-prods-head{min-width:0}
  .dir-cats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dir-cat span,.dir-subs-t,.dir-prods-head b{overflow-wrap:anywhere}
}
/* 导航条永远不许把页面顶宽：外层容器固定 1240px，标签一长（英文长名尤其）就横向溢出
   （实测英文 8 组 + 低价榜需 1468px，把 1440 视口的页面顶到 1750px）。
   分级收起之外再加一道「缩不破」兜底：允许收缩 + 省略号，任何字体/宽度都不溢出。 */
.nav-list{min-width:0}
.nav-item{min-width:0}
.nav-item>.nav-link{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 320px（iPhone SE 一代）收尾：组内商品行标题 + 「查看全部」挤成一行会顶出 17px；
   分类标签里的「·」不换行也会顶出。 */
@media(max-width:560px){
  .dir-prods-head{flex-wrap:wrap}
  .pcard-cat,.pcard-title{overflow-wrap:anywhere;min-width:0}
}
/* ===== 移动端收尾 · 第二轮（mobile_audit.py 实测出来的问题）===== */
/* 内联写死的 px 侧栏在手机上堆不下来：
   结算页 minmax(0,1fr) 400px 在 390px 视口把整页顶宽 46px（Chrome 只能缩放着显示），
   API 文档页同病（420px，还导致内容列被挤成 0 宽、表格看不见）。
   规矩：响应式栅格一律走类，别写内联；侧栏断点统一在 1040px 收起。 */
.co-grid{grid-template-columns:minmax(0,1fr) 400px;margin-top:14px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
/* API 文档页原来用内联 style 写死 420px 侧栏：手机上侧栏 420px 挤爆 390px 视口，
   内容列被压成 0 宽（表格 clientWidth=0，根本看不见）→ 单列堆叠。 */
@media(max-width:1040px){
  /* 侧栏类栅格统一在 1040px 收起（原来只修了 API 文档页，结算页漏了 → 390px 顶部顶宽 46px） */
  .docs-grid,.co-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:560px){
  /* 手机上两列表单字段每个只剩 ~150px 太挤，注册页改单列 */
  .grid-2{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
  /* 页脚内链云是 inline 链接，padding 撑不起行高 → 每页 50+ 条只有 17px 高，
     手指点不准（实测 1047 处 26×17）。改成块级并给足行高。 */
  .ftr-cloud a,.ftr-cloud .ftr-col a{display:inline-block;padding:6px 0;min-height:28px;line-height:1.5}
  .pcard-cat{display:inline-block;padding:3px 0;min-height:24px}
}

@media(max-width:760px){
  /* 1) 大菜单够不到：实测 390×600 时面板 446px 高、底部 657 超出视口，overflow:visible 不能滚，
        最后几个分组（代理/工具）手机上点不到 → 高度由 JS 的 --mega-h 决定，滚动交给面板自身。 */
  .mega{max-height:var(--mega-h,calc(100vh - 232px));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .mega-grid{max-height:none;overflow:visible}
  @supports (height:100dvh){ .mega{max-height:var(--mega-h,calc(100dvh - 232px))} }

  /* 2) iOS 聚焦放大整页：Safari 对字号 <16px 的输入框会自动缩放页面（用户得手动缩回）。
        实测全站输入框 15px、下拉 13px → 手机上表单控件一律 16px。 */
  /* 用排除法：会员中心的 tel/url/无 type 的输入框以前漏掉了（实测还有 6 个 <16px） */
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=file]):not([type=range]),
  select,textarea{font-size:16px}

  /* 3) 触点偏小：11.5px 的 pill、20px 高的「查看全部」、页脚链接（17px 行高）在手机上都不好点。 */
  .pill{font-size:12.5px;padding:4px 9px}
  .plat-cnt{font-size:12px}
  .dir-all,.down-all,.ftr a,.dir-prods-head a,a.small,.drop-all,.more-lnk{display:inline-flex;align-items:center;min-height:26px}
}

/* 手机上辅助小字再抬一档：美元参考价 11.5px、起价徽章 11px 在 390px 屏上偏小（实测首页 275 处 <12px）。 */
@media(max-width:760px){
  .pcard-price em,.buybox .price-alt,.price-alt{font-size:12px}
  .dir-cat i,.dir-from,.dir-subs-t{font-size:12px}
  .pcard-meta{min-height:23px}
}

/* 大菜单里的分类计数 11.5px → 12px（手机上太细） */
@media(max-width:760px){
  .mega-cnt,.drop-side-t{font-size:12px}
}

/* 大菜单里的分组/子分类链接（手机上只有 19px 高，却是「全部分类」的主要点选区） */
@media(max-width:760px){
  .mega-col a,.drop-subs a,.mega a{display:flex;align-items:center;min-height:26px}
}

/* 手机上还有两类 17-19px 的文字链：顶部服务条(.util)与热销表里的分类链接(.tbl td a) */
@media(max-width:760px){
  .util a,.tbl td a,.tbl th a{display:inline-flex;align-items:center;min-height:26px}
}

/* 首页分组卡的「购买」按钮手机上 37px，差一点到 40px 触控标准 */
@media(max-width:760px){
  /* min-height 对 display:inline 的元素无效（要配 inline-flex）；
     且 .tbl td a 那条 26px 的规则优先级更高会盖住它，所以这里把表格里的按钮显式再写一遍。 */
  .buy-btn,.tbl td a.buy-btn,.tbl .buy-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px}
}

/* 手机端头部：sticky 时 177px 常驻（占屏幕 21%），让它随页面滚走；桌面不受影响 */
@media(max-width:760px){
  header.hdr{position:static}
  /* 站头随页面滚走（上面一行），吸顶元素就不该再让出 118px，否则顶部留一条空洞 */
  :root{--hdr-h:0px}
  /* 列表表格/卡片里的分类链接实测只有 20px 高（每页 38-40 个） */
  td.small a,.small > a{display:inline-flex;align-items:center;min-height:26px}
  /* 段头小链接（Docs → 之类）23px */
  .sec-head a{display:inline-flex;align-items:center;min-height:26px}
  /* 大菜单子分类计数 11.5px → 12px（只动计数，不动链接正文） */
  .mega-sub em,.drop-subs em{font-size:12px}
}

/* 手机上所有 11.5px 的辅助小字统一抬到 12px：
   探针实测列表页 30 处、首页 46 处 <12px（筛选计数 .fx-n、热销价 .hot-price em、
   目录卡分类计数 .dir-cat em、大菜单 .drop-list em 等各自散落，之前只改了其中几条）。 */
@media(max-width:760px){
  .pill,.cc-cnt,.fx-n,.drop-side-t,.drop-list em,.drop-subs em,.mega-cnt,.mega-sub em,.plat-cnt,
  .pcard-price em,.dir-cat em,.dir-subs-t,.chip em,.hot-price em,.dir-from{font-size:12px}
}

/* ===== 手机端分类导航重做（≤760px）：一行可滑分类条 + 单列分组面板 =====
   桌面端（>760px）完全不受影响；这里必须用 !important：
   文件里 589/592/606/614 行的多重 :nth-child 隐藏规则在 390px 下全部命中，
   普通特异性覆盖不掉。 */
@media(max-width:760px){
  /* —— 1) 分类条：一级分类 + 低价榜 平铺成胶囊，放不下就横向滑动 —— */
  .cats-in{display:flex;flex-wrap:nowrap;gap:8px;min-height:auto;padding:8px 12px;align-items:center}
  .mega-wrap{flex:0 0 auto}
  .nav-list{flex:1 1 auto;min-width:0;display:flex;flex-wrap:nowrap;gap:6px;align-self:center;
            overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;
            -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);
            mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
  .nav-list::-webkit-scrollbar{display:none}
  .nav-list .nav-item,.nav-list .nav-item:not(.nav-item-plain){display:flex!important;flex:0 0 auto;min-width:0}
  .nav-list .nav-item>.nav-link{height:36px;padding:0 12px;border-radius:18px;background:#f2f5f9;
            border:1px solid var(--line);font-size:13.5px;font-weight:600;white-space:nowrap;
            overflow:visible;text-overflow:clip;display:inline-flex;align-items:center;gap:4px}
  .nav-list .nav-item>.nav-link .ico{display:none}          /* 手机端没有下拉了，去掉箭头 */
  .nav-item-plain{margin-left:0;border-left:0}
  .nav-list .nav-low{background:#ecfdf5;border-color:#a7f3d0;color:#047857}
  .cats-all{flex:0 0 auto;height:36px;padding:0 12px;border-radius:18px;display:inline-flex;
            align-items:center;gap:6px;font-size:13.5px}

  /* —— 2) 面板：单列分组；组标题独占一行、计数靠右；子分类两列等宽、计数统一靠右；组间分隔线 —— */
  .mega{padding:10px 12px 12px}
  .mega-grid{display:block!important;max-height:none;overflow:visible}
  .mega-col{display:grid!important;grid-template-columns:1fr 1fr;column-gap:12px;align-items:start;
            border-bottom:1px solid var(--line);padding:4px 0 8px}
  .mega-col:last-child{border-bottom:0;padding-bottom:2px}
  .mega-title{grid-column:1/-1;height:40px;margin:0;font-size:14.5px;gap:8px}
  .mega-title .mega-cnt{margin-left:auto;font-size:12px;flex:none}
  .mega-col .mega-sub{display:flex;align-items:center;min-height:34px;padding:0;font-size:13.5px;gap:6px;line-height:1.25}
  .mega-sub em{margin-left:auto;font-style:normal;font-size:12px;color:var(--muted);flex:none}
  .mega-more{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;min-height:32px;
            margin:6px 0 0;padding:0 10px;border-radius:8px;background:#f7f9fc;color:var(--brand);font-size:12.5px}
}

/* ===== 手机端分类页/列表页：可点 pill 与面包屑的触控尺寸（≤760px） ===== */
@media(max-width:760px){
  a.pill{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;font-size:12.5px}  /* 只改可点的，徽标 span.pill 不动 */
  .crumbs{font-size:13px;margin:12px 0 6px}
  .crumbs a{display:inline-flex;align-items:center;min-height:28px;padding:0 2px}
  .subs-lbl{display:block;font-size:13px;color:var(--muted);margin:0 0 9px}
  .subs-chips{display:flex;flex-wrap:wrap;gap:8px}
}

/* ===== 分类页子分类胶囊：桌面基线（原来靠内联样式，改类名后必须补回） ===== */
.subs-lbl{display:block;font-size:13px;font-weight:700;color:var(--muted);margin:0 0 9px}
.subs-chips{display:flex;flex-wrap:wrap;gap:8px}
.subs-chips a{display:inline-flex;align-items:center;gap:8px}
.subs-chips a em{font-style:normal;font-size:11.5px;opacity:.75}
.subs-chips a.on{background:var(--brand);color:#fff}

@media(max-width:760px){
  /* 手机端：两列等宽网格，避免长名参差成"一行一列+右侧大片留白" */
  .subs-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .subs-chips a{min-height:38px;padding:6px 11px;line-height:1.22;white-space:normal;text-align:left}
  .subs-chips a .t{flex:1 1 auto;min-width:0}
  .subs-chips a em{flex:0 0 auto;margin-left:auto}
  /* 分类页标题区：手机端改成上下堆叠，标题不再被排序控件挤断行 */
  .sec-head{flex-direction:column;align-items:flex-start;gap:10px}
  .sec-head h1{font-size:20px!important;line-height:1.28}
  .crumbs a{padding:0}
}

/* ===== 触屏/窄屏：大菜单收起（修「展开后收不起来」）=====
   原规则 `.mega-wrap:hover .mega,.mega-wrap:focus-within .mega{display:block}` 在触屏上恒成立
   （被点过的 .cats-all 一直保持焦点 → :focus-within 恒真），于是 JS 摘掉 .open 后面板 display 仍是 block：
   实测第 2 次 tap 后 open 类/aria 均已为 false，面板却依然展开，用户无法收拢。
   处置：触屏与 ≤760px 只认 JS 的 .open；键盘仍可 Enter 切换、Esc 关闭（均已由 site.js 覆盖）。 */
@media (max-width:760px), (hover:none){
  .mega-wrap:hover .mega,.mega-wrap:focus-within .mega{display:none}
  .mega-wrap.open .mega{display:block}
}

/* ===== 折叠栏（长尾页 hub 用）：<details>/<summary> 服务端渲染，默认收起。
   链接全在 DOM 里 → 折叠不影响抓取；summary min-height 44px 保证移动端触控目标达标。===== */
.acc{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow);margin:0 0 12px;overflow:hidden}
.acc>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:13px 16px;cursor:pointer;font-weight:700;font-size:15px;color:var(--ink);list-style:none}
.acc>summary::-webkit-details-marker{display:none}
.acc>summary::after{content:"+";margin-left:auto;font-weight:800;color:var(--brand);font-size:19px;line-height:1}
.acc[open]>summary::after{content:"−"}
.acc>summary:hover{background:var(--brand-l)}
.acc>summary:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.acc>summary .n{font-size:12px;font-weight:700;color:var(--muted);background:#f1f5f9;border-radius:99px;padding:2px 9px;white-space:nowrap}
.acc-note{margin:0;padding:0 16px 10px;font-size:12.5px;line-height:1.6;color:var(--muted)}
.acc-body{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 16px}
.acc-body a.pill{display:inline-flex;align-items:center;min-height:30px;padding:5px 11px;font-size:12.5px;text-decoration:none}
.acc-body a.pill:hover{background:var(--brand-d);color:#fff}
@media (max-width:760px){
  .acc>summary{font-size:14px;padding:12px}
  .acc-note{padding:0 12px 8px}
  .acc-body{padding:0 12px 12px}
}

/* ===== 页脚 SEO 内链矩阵（做法对齐 meitgou 页脚的折叠长尾栏）=====
   默认收起；链接全在 DOM 里 → 折叠不影响爬虫抓取，也不会把手机页面拉长。 */
.hot-topics{border-top:1px solid var(--line);background:#fbfcfe}
.hot-topics-head{cursor:pointer;list-style:none}
.hot-topics-head::-webkit-details-marker{display:none}
.hot-topics-bar{display:flex;align-items:center;gap:10px;min-height:52px;padding:6px 0;color:var(--ink)}
.hot-topics-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px;font-weight:700}
.hot-topics-count{font-size:11.5px;font-weight:800;color:var(--brand);background:var(--brand-l);border-radius:99px;padding:2px 9px}
.hot-topics-hint{font-size:11.5px;font-weight:600;color:var(--muted)}
.hot-topics-hint .hint-c{display:none}
.hot-topics[open] .hot-topics-hint .hint-o{display:none}
.hot-topics[open] .hot-topics-hint .hint-c{display:inline}
.hot-topics-toggle{margin-left:auto;display:inline-flex;color:var(--muted);transition:transform .2s ease}
.hot-topics[open] .hot-topics-toggle{transform:rotate(180deg)}
.hot-topics-head:hover .hot-topics-title{color:var(--brand)}
.hot-topics-body{padding:2px 0 20px;border-top:1px dashed var(--line)}
.hot-topics-group{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;padding:8px 0;border-bottom:1px dotted #e8eef7;font-size:12.5px}
.hot-topics-group:last-child{border-bottom:0}
.hot-topics-label{flex:0 0 118px;font-weight:700;color:#334155}
.hot-topics-label a{color:inherit;text-decoration:none;border-bottom:1px dotted #cbd5e1}
.hot-topics-label a:hover{color:var(--brand)}
.hot-topics-links{display:flex;flex-wrap:wrap;gap:6px 8px;flex:1 1 420px;min-width:0}
.hot-topics-links a{display:inline-block;padding:4px 9px;border-radius:7px;background:#f1f5f9;color:#334155;text-decoration:none;line-height:1.5;font-size:12.5px}
.hot-topics-links a:hover{background:var(--brand);color:#fff}
.hot-topics-more{font-weight:700;color:var(--brand) !important}
@media (max-width:760px){
  .hot-topics-bar{min-height:48px}
  .hot-topics-title{font-size:13px}
  .hot-topics-hint{display:none}
  .hot-topics-label{flex:0 0 100%;color:var(--brand-d)}
  .hot-topics-group{padding:6px 0}
  .hot-topics-links{gap:6px 6px}
  .hot-topics-links a{padding:7px 10px}
}

/* ===== 页脚「热门」常显行（不折叠；顺序依据 lib/Popular.php：谷歌建议实测 + 库存深度）===== */
.hot-row{border-top:1px solid var(--line);background:#f8fafc}
.hot-row-in{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;padding:11px 0;min-height:54px}
.hot-row-title{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;font-size:13.5px;font-weight:800;color:var(--brand-d)}
.hot-row-links{display:flex;flex-wrap:wrap;gap:6px 8px;flex:1 1 420px;min-width:0}
.hot-row-links a{display:inline-block;padding:5px 10px;border-radius:7px;background:#fff;border:1px solid #e2e8f0;
  color:#334155;font-size:12.5px;font-weight:600;text-decoration:none;line-height:1.5}
.hot-row-links a:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-l)}
@media (max-width:760px){
  /* 用户视角：12 条热门铺开占 234px≈1/4 屏，把折叠栏和底部信息全推下去 → 改成单行横向滑动（约 52px），
     链接仍在 DOM 里（爬虫照抓），要全看的人左右滑一下即可 */
  .hot-row-in{flex-wrap:nowrap;align-items:center;gap:8px;padding:8px 0;min-height:52px;min-width:0}
  .hot-row-title{flex:0 0 auto}
  .hot-row-links{flex:1 1 auto;flex-wrap:nowrap;min-width:0;overflow-x:auto;overflow-y:hidden;
    -webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scrollbar-width:none;padding:2px 2px 4px}
  .hot-row-links::-webkit-scrollbar{display:none}
  .hot-row-links a{flex:0 0 auto;scroll-snap-align:start;padding:7px 11px;font-size:13px}
}

/* 落地页版式修正：.list-layout 的骨架是「260px 筛选侧栏 + 928px 主列」，
   而 /landing/* 没有筛选侧栏、只有一个子元素 → 它被塞进 260px 那一格：
   200+ 行商品表挤在 260px 里横向滚动，右边 928px 全空（实测 250 页全中，分类/全部商品页有侧栏故正常）。 */
.list-layout.lp{grid-template-columns:minmax(0,1fr);}
