/* 二手GPU · 官方检测选卡区（找靓机分类页式），配合 usedgpu-mall.js，类名前缀 ugm-。
   选择器统一加 body.usedgpu-page 前缀，压过全站 .preview-app 的按钮、输入框、标题默认样式 */

/* 有新选卡区时隐藏旧的筛选、排序、网格（DOM 保留给旧脚本和旧自测） */
body.usedgpu-page #ug-mall~#ug-filters,body.usedgpu-page #ug-mall~.ug-sortbar,body.usedgpu-page #ug-mall~#ug-count,body.usedgpu-page #ug-mall~#ug-grid,body.usedgpu-page #ug-mall~#ug-more,body.usedgpu-page #ug-mall~#ug-empty{display:none!important}

body.usedgpu-page .ugm{--ugm-side:112px;--ugm-green:#0F8A4B;display:block;min-width:0;background:#fff;border-radius:2px;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm [hidden]{display:none!important}
body.usedgpu-page :where(.ugm) button{display:block;margin:0;padding:0;min-height:0;border:0;border-radius:0;background:none;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:pointer}
body.usedgpu-page :where(.ugm) p{margin:0}
body.usedgpu-page .ugm-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- 头部：标题 + 服务条、搜索、入口按钮 ---------- */
body.usedgpu-page .ugm-head{display:grid;grid-template-columns:auto minmax(200px,1fr) auto;align-items:center;gap:12px 20px;padding:16px 18px 14px;border-bottom:1px solid var(--dc-line,#F2F4FA)}
body.usedgpu-page .ugm-title{margin:0;font-size:20px;line-height:1.3;font-weight:700;letter-spacing:0;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-promise{display:flex;flex-wrap:wrap;gap:4px 12px;margin:6px 0 0;font-size:12px;line-height:1.5;color:var(--dc-sub,#606370)}
body.usedgpu-page .ugm-promise span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
body.usedgpu-page .ugm-promise span::before{content:"";flex:none;width:12px;height:12px;border-radius:50%;background:var(--ugm-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.2 5.2l1.9 1.9L7.9 3.2' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/9px no-repeat}
body.usedgpu-page .ugm-search{position:relative;display:flex;align-items:center;justify-self:center;width:100%;max-width:420px;margin:0}
body.usedgpu-page .ugm-search input{width:100%;height:38px;box-sizing:border-box;margin:0;padding:0 44px 0 16px;border:1px solid transparent;border-radius:19px;background:#F5F6FA;font-size:14px;color:var(--dc-text,#1F2129);outline:none}
body.usedgpu-page .ugm-search input:focus{border-color:var(--dc-yellow,#FFCC32);background:#fff}
body.usedgpu-page .ugm-search-btn{position:absolute;top:4px;right:4px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;color:var(--dc-sub,#606370)}
body.usedgpu-page .ugm-search-btn:hover{background:#E9EBF2;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-search-btn svg{width:17px;height:17px}
body.usedgpu-page .ugm-acts{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px}
body.usedgpu-page .ugm-act{position:relative;display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 12px;border-radius:17px;font-size:13.5px;color:var(--dc-sub,#606370);text-decoration:none;white-space:nowrap}
body.usedgpu-page .ugm-act:hover{background:#F5F6FA;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-act-main{margin-left:4px;padding:0 18px;background:var(--dc-yellow,#FFCC32);color:var(--dc-text,#1F2129);font-weight:600}
body.usedgpu-page .ugm-act-main:hover{background:#F5BE14;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-badge{display:inline-block;min-width:16px;height:16px;padding:0 4px;box-sizing:border-box;border-radius:8px;background:var(--dc-red,#E62021);color:#fff;font-size:11px;line-height:16px;font-weight:600;text-align:center}
body.usedgpu-page .ugm-toast{margin:0;padding:8px 18px;background:#FFF8DD;color:#7A5A00;font-size:13px}

/* ---------- 主体：左侧竖排品牌栏 + 右侧内容 ---------- */
body.usedgpu-page .ugm-body{display:grid;grid-template-columns:var(--ugm-side) minmax(0,1fr);align-items:start;min-height:560px;background:linear-gradient(90deg,#F5F6FA 0,#F5F6FA var(--ugm-side),#fff var(--ugm-side))}
body.usedgpu-page .ugm-side{position:sticky;top:0;align-self:start;display:flex;flex-direction:column;max-height:100vh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;background:#F5F6FA}
body.usedgpu-page .ugm-side::-webkit-scrollbar{display:none}
body.usedgpu-page .ugm-side-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;min-height:58px;padding:8px 6px;box-sizing:border-box;text-align:center;color:var(--dc-sub,#606370)}
body.usedgpu-page .ugm-side-item:hover{background:#ECEEF4;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-side-item.is-on,body.usedgpu-page .ugm-side-item.is-on:hover{background:#fff;color:var(--dc-text,#1F2129);font-weight:700}
body.usedgpu-page .ugm-side-item.is-on::before{content:"";position:absolute;top:50%;left:0;width:3px;height:22px;margin-top:-11px;border-radius:0 2px 2px 0;background:var(--dc-yellow,#FFCC32)}
body.usedgpu-page .ugm-side-name{font-size:14px;line-height:1.3;word-break:break-all}
body.usedgpu-page .ugm-side-num{font-size:11px;line-height:1.3;font-weight:400;color:var(--dc-label,#979AA8)}
body.usedgpu-page .ugm-side-item.is-dim .ugm-side-name{color:var(--dc-label,#979AA8)}
body.usedgpu-page .ugm-side-skel{display:block;height:34px;margin:12px 16px;border-radius:4px;background:linear-gradient(90deg,#ECEEF4 25%,#F5F6FA 50%,#ECEEF4 75%);background-size:200% 100%;animation:ugm-skel 1.2s linear infinite}
@keyframes ugm-skel{0%{background-position:100% 0}100%{background-position:-100% 0}}
body.usedgpu-page .ugm-content{display:grid;align-content:start;gap:18px;min-width:0;padding:14px 16px 24px}
body.usedgpu-page .ugm-state{padding:56px 16px;text-align:center;font-size:14px;color:var(--dc-label,#979AA8)}

/* 推荐页横幅 */
body.usedgpu-page .ugm-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-radius:8px;background:linear-gradient(110deg,#FFF4CC 0%,#FFFAE8 55%,#EEF9F2 100%)}
body.usedgpu-page .ugm-banner-main{display:grid;gap:4px;min-width:0}
body.usedgpu-page .ugm-banner-title{font-size:17px;line-height:1.35;font-weight:700}
body.usedgpu-page .ugm-banner-text{font-size:13px;color:var(--dc-sub,#606370)}
body.usedgpu-page .ugm-steps{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0;padding:0;list-style:none;counter-reset:ugm-step}
body.usedgpu-page .ugm-steps li{display:inline-flex;align-items:center;gap:5px;padding:3px 10px 3px 4px;border-radius:12px;background:#fff;font-size:12px;line-height:1.4;counter-increment:ugm-step}
body.usedgpu-page .ugm-steps li::before{content:counter(ugm-step);display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:var(--dc-yellow,#FFCC32);font-size:11px;font-weight:700}
body.usedgpu-page .ugm-banner-side{display:flex;flex:none;flex-direction:column;align-items:flex-end;gap:8px}
body.usedgpu-page .ugm-banner-stat{font-size:12.5px;color:var(--dc-sub,#606370);white-space:nowrap}
body.usedgpu-page .ugm-banner-stat b{font-size:15px;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-banner-cta{padding:8px 18px;border-radius:18px;background:var(--dc-text,#1F2129);color:#fff;font-size:13.5px;font-weight:600;white-space:nowrap}
body.usedgpu-page .ugm-banner-cta:hover{background:#3A3D48;color:#fff}

/* 分区、系列分组标题 */
body.usedgpu-page .ugm-sec,body.usedgpu-page .ugm-group{display:grid;gap:10px;min-width:0}
body.usedgpu-page .ugm-sec-title,body.usedgpu-page .ugm-group-title{display:flex;align-items:baseline;gap:8px;margin:0;font-size:15px;line-height:1.4;font-weight:700;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-sec-sub,body.usedgpu-page .ugm-group-num{font-size:12px;font-weight:400;color:var(--dc-label,#979AA8)}
body.usedgpu-page .ugm-group-empty{padding-top:14px;border-top:1px dashed var(--dc-border,#E6E8F2)}

/* 品牌横幅 */
body.usedgpu-page .ugm-brandbar{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:8px;background:#F7F8FC;background:color-mix(in srgb,var(--ugm-brand,#979AA8) 10%,#fff)}
body.usedgpu-page .ugm-logo{display:inline-flex;flex:none;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--ugm-brand,#979AA8);color:#fff;font-size:15px;font-weight:700}
body.usedgpu-page .ugm-brandbar-text{display:grid;flex:1;gap:2px;min-width:0}
body.usedgpu-page .ugm-brandbar-text b{font-size:17px;line-height:1.35}
body.usedgpu-page .ugm-brandbar-text span{font-size:12.5px;color:var(--dc-sub,#606370)}
body.usedgpu-page .ugm-brandbar-sell{flex:none;padding:6px 14px;border:1px solid var(--dc-border2,#C9CBD6);border-radius:16px;background:#fff;font-size:13px;color:var(--dc-text,#1F2129);white-space:nowrap}
body.usedgpu-page .ugm-brandbar-sell:hover{border-color:var(--dc-text,#1F2129);background:#fff}

/* 型号格子 */
body.usedgpu-page .ugm-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px}
body.usedgpu-page .ugm-tile{display:flex;flex-direction:column;gap:3px;min-width:0;padding:8px 8px 10px;border:1px solid var(--dc-line,#F2F4FA);border-radius:8px;background:#fff;transition:border-color .15s,box-shadow .15s}
body.usedgpu-page .ugm-tile:hover{border-color:var(--dc-border,#E6E8F2);background:#fff;box-shadow:0 6px 16px rgba(15,23,42,.08)}
body.usedgpu-page .ugm-tile-img,body.usedgpu-page .ugm-card-img{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;overflow:hidden;border-radius:6px;background:#F5F6FA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23C9CBD6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='17' width='54' height='27' rx='4'/%3E%3Ccircle cx='21' cy='30.5' r='7.5'/%3E%3Ccircle cx='43' cy='30.5' r='7.5'/%3E%3Cpath d='M11 44v6h7v-6M25 44v6h15v-6'/%3E%3C/svg%3E") center/46% no-repeat;color:#C9CBD6}
body.usedgpu-page .ugm-tile-img{margin-bottom:5px}
body.usedgpu-page .ugm-tile-img img,body.usedgpu-page .ugm-card-img img,body.usedgpu-page .ugm-modelhead-img img{display:block;width:100%;height:100%;object-fit:cover}
body.usedgpu-page .ugm-gpu{width:46%;height:46%;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
body.usedgpu-page .ugm-tile-flag{position:absolute;top:5px;left:5px;padding:1px 6px;border-radius:4px;background:var(--ugm-green);color:#fff;font-size:11px;line-height:1.5;font-weight:600}
body.usedgpu-page .ugm-tile-flag.is-mod{background:#5B3FD1}
body.usedgpu-page .ugm-tile-name{overflow:hidden;font-size:13.5px;line-height:1.35;font-weight:700;white-space:nowrap;text-overflow:ellipsis}
body.usedgpu-page .ugm-tile-sub{overflow:hidden;font-size:12px;color:var(--dc-label,#979AA8);white-space:nowrap;text-overflow:ellipsis}
body.usedgpu-page .ugm-tile-price{font-size:13px;font-weight:700;color:var(--dc-red,#E62021)}
body.usedgpu-page .ugm-ghosts{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
body.usedgpu-page .ugm-ghosts-label{margin-right:2px;font-size:12px;color:var(--dc-label,#979AA8)}
body.usedgpu-page .ugm-group-empty .ugm-ghosts-label{min-width:76px;color:var(--dc-sub,#606370)}
body.usedgpu-page .ugm-ghost{padding:3px 10px;border-radius:12px;background:#F5F6FA;font-size:12px;line-height:1.5;color:var(--dc-label,#979AA8)}
body.usedgpu-page .ugm-ghost:hover{background:#ECEEF4;color:var(--dc-sub,#606370)}

/* 商品卡 */
body.usedgpu-page .ugm-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(196px,1fr));gap:12px}
body.usedgpu-page .ugm-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--dc-line,#F2F4FA);border-radius:8px;background:#fff;transition:border-color .15s,box-shadow .15s}
body.usedgpu-page .ugm-card:hover{border-color:var(--dc-border,#E6E8F2);background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.09)}
body.usedgpu-page .ugm-card.is-official{border-color:#BFE6CF}
body.usedgpu-page .ugm-card.is-third{border-color:#C7D2E3}
body.usedgpu-page .ugm-card-img{border-radius:0}
body.usedgpu-page .ugm-flag{position:absolute;top:8px;left:8px;padding:2px 8px;border-radius:4px;font-size:12px;line-height:1.5;font-weight:600;color:#fff}
body.usedgpu-page .ugm-flag.is-official{background:var(--ugm-green)}
body.usedgpu-page .ugm-flag.is-pending{background:rgba(31,33,41,.55);font-weight:500}
body.usedgpu-page .ugm-flag.is-third{background:#5A6C8C;font-weight:600}
body.usedgpu-page .ugm-card-body{display:grid;gap:5px;padding:9px 10px 11px}
body.usedgpu-page .ugm-card-title{display:-webkit-box;min-height:2.7em;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:13.5px;line-height:1.35;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-card-meta{overflow:hidden;font-size:12px;color:var(--dc-label,#979AA8);white-space:nowrap;text-overflow:ellipsis}
body.usedgpu-page .ugm-card-foot{display:flex;align-items:center;justify-content:space-between;gap:6px}
body.usedgpu-page .ugm-card-price{font-size:16px;font-weight:700;color:var(--dc-red,#E62021)}
body.usedgpu-page .ugm-card-self{flex:none;padding:0 6px;border:1px solid #9AD5B3;border-radius:4px;font-size:11px;line-height:18px;color:var(--ugm-green)}
body.usedgpu-page .ugm-card-self.is-third{border-color:#C7D2E3;color:#5A6C8C}

/* 型号页：面包屑、型号头、工具条 */
body.usedgpu-page .ugm-crumb{display:flex;align-items:center;gap:10px;min-width:0;font-size:13px;color:var(--dc-sub,#606370)}
body.usedgpu-page .ugm-back{flex:none;padding:4px 12px 4px 10px;border-radius:14px;background:#F5F6FA;font-size:13px;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-back:hover{background:#ECEEF4}
body.usedgpu-page .ugm-crumb-path{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body.usedgpu-page .ugm-crumb-path b{color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-modelhead{display:flex;align-items:center;gap:14px;padding:12px;border-radius:8px;background:#F7F8FC}
body.usedgpu-page .ugm-modelhead-img{position:relative;display:flex;flex:none;align-items:center;justify-content:center;width:88px;height:88px;overflow:hidden;border-radius:6px;background:#fff;color:#C9CBD6}
body.usedgpu-page .ugm-modelhead-text{display:grid;gap:4px;min-width:0}
body.usedgpu-page .ugm-modelhead-name{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;font-size:19px;line-height:1.3;font-weight:700}
body.usedgpu-page .ugm-mod{padding:1px 6px;border-radius:4px;background:#F1ECFF;font-size:12px;font-weight:600;color:#5B3FD1}
body.usedgpu-page .ugm-modelhead-spec,body.usedgpu-page .ugm-modelhead-stat{font-size:13px;color:var(--dc-sub,#606370)}
body.usedgpu-page .ugm-modelhead-stat b{color:var(--dc-red,#E62021)}
body.usedgpu-page .ugm-modelhead-note{font-size:12px;line-height:1.5;color:#5B3FD1}
body.usedgpu-page .ugm-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding-bottom:10px;border-bottom:1px solid var(--dc-line,#F2F4FA)}
body.usedgpu-page .ugm-conds{display:flex;flex:1;flex-wrap:wrap;gap:6px;min-width:0}
body.usedgpu-page .ugm-cond{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;border-radius:14px;background:#F5F6FA;font-size:13px;color:var(--dc-sub,#606370)}
body.usedgpu-page .ugm-cond span{font-size:11px;color:var(--dc-label,#979AA8)}
body.usedgpu-page .ugm-cond:hover{background:#ECEEF4;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-cond.is-on,body.usedgpu-page .ugm-cond.is-on:hover{background:#FFF4CC;box-shadow:inset 0 0 0 1px var(--dc-yellow,#FFCC32);font-weight:600;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-only{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--dc-sub,#606370);white-space:nowrap;cursor:pointer}
body.usedgpu-page .ugm-only input{width:15px;height:15px;margin:0;padding:0;accent-color:var(--ugm-green)}
body.usedgpu-page .ugm-sort select{height:30px;margin:0;padding:0 8px;border:1px solid var(--dc-border,#E6E8F2);border-radius:15px;background:#fff;font-size:13px;color:var(--dc-text,#1F2129)}

/* 搜索结果头、空状态 */
body.usedgpu-page .ugm-searchhead{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;color:var(--dc-sub,#606370)}
body.usedgpu-page .ugm-searchhead b{color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-search-clear{flex:none;padding:4px 12px;border-radius:14px;background:#F5F6FA;font-size:13px;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-search-clear:hover{background:#ECEEF4}
body.usedgpu-page .ugm-empty{display:grid;justify-items:center;gap:6px;padding:40px 16px;text-align:center;color:#C9CBD6}
body.usedgpu-page .ugm-empty .ugm-gpu{width:64px;height:64px}
body.usedgpu-page .ugm-empty-title{font-size:15px;font-weight:600;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-empty-sub{font-size:13px;color:var(--dc-label,#979AA8)}
body.usedgpu-page .ugm-empty-cta,body.usedgpu-page .ugm-reset,body.usedgpu-page .ugm-retry{margin-top:8px;padding:7px 18px;border-radius:16px;background:var(--dc-yellow,#FFCC32);font-size:13.5px;font-weight:600;color:var(--dc-text,#1F2129)}
body.usedgpu-page .ugm-empty-cta:hover,body.usedgpu-page .ugm-reset:hover,body.usedgpu-page .ugm-retry:hover{background:#F5BE14}

@media(prefers-reduced-motion:reduce){body.usedgpu-page .ugm-side-skel{animation:none}body.usedgpu-page .ugm-tile,body.usedgpu-page .ugm-card{transition:none}}
@media(max-width:1180px){
  body.usedgpu-page .ugm-head{grid-template-columns:minmax(0,1fr) auto}
  body.usedgpu-page .ugm-search{grid-column:1/-1;grid-row:2;justify-self:stretch;max-width:none}
}
@media(max-width:760px){
  body.usedgpu-page .ugm{--ugm-side:84px}
  body.usedgpu-page .ugm-head{grid-template-columns:minmax(0,1fr);gap:10px;padding:12px}
  body.usedgpu-page .ugm-search{grid-column:auto;grid-row:auto}
  body.usedgpu-page .ugm-acts{justify-content:flex-start}
  body.usedgpu-page .ugm-act{padding:0 10px}
  body.usedgpu-page .ugm-act-main{margin-left:auto}
  body.usedgpu-page .ugm-content{gap:14px;padding:10px 10px 20px}
  body.usedgpu-page .ugm-side-item{min-height:52px;padding:6px 4px}
  body.usedgpu-page .ugm-side-name{font-size:13px}
  body.usedgpu-page .ugm-tiles,body.usedgpu-page .ugm-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.usedgpu-page .ugm-banner{flex-direction:column;align-items:stretch;padding:14px}
  body.usedgpu-page .ugm-banner-side{flex-direction:row;align-items:center;justify-content:space-between}
  body.usedgpu-page .ugm-brandbar{padding:12px}
  body.usedgpu-page .ugm-brandbar-sell{display:none}
  body.usedgpu-page .ugm-modelhead{align-items:flex-start}
  body.usedgpu-page .ugm-modelhead-img{width:64px;height:64px}
  body.usedgpu-page .ugm-modelhead-name{font-size:17px}
  body.usedgpu-page .ugm-card-body{padding:8px}
  body.usedgpu-page .ugm-card-price{font-size:15px}
  body.usedgpu-page .ugm-flag{top:6px;left:6px;padding:1px 6px;font-size:11px}
}
