/* ==========================================================================
   车型系列（/series 列表页、/series/{slug} 详情页）专用样式
   颜色、圆角、阴影沿用 tailwind-config.js / styles.css 的站点设计变量
   ========================================================================== */

/* ----- 选车器 ----- */
.sf-card { background: #fff; border-radius: 16px; box-shadow: rgba(5,0,56,0.08) 0px 12px 32px -4px; padding: 20px; }
.sf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px)  { .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sf-grid.sf-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sf-field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #6E6E7E; margin: 0 0 6px; }
.sf-select { position: relative; }
.sf-select select { width: 100%; height: 48px; border: 1px solid #D6D6D0; border-radius: 8px; padding: 0 38px 0 14px; background: #fff; color: #1A1A2E; font-family: inherit; appearance: none; -webkit-appearance: none; cursor: pointer; }
.sf-select::after { content: ''; position: absolute; right: 16px; top: 19px; width: 8px; height: 8px; border-right: 2px solid #8E8E9A; border-bottom: 2px solid #8E8E9A; transform: rotate(45deg); pointer-events: none; }
.sf-select select:focus { outline: none; border-color: #C8102E; box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.sf-select select:disabled { background: #FAFAF8; color: #B0B0BA; cursor: not-allowed; }
.sf-loading { cursor: progress; }
.sf-loading select { opacity: .7; }

/* ----- 当前车辆条 ----- */
.sf-vehicle { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.sf-vehicle .sf-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #FCE7EA; color: #9E0C24; font-weight: 500; font-size: 14px; }
.sf-reset { font-size: 13px; color: #6E6E7E; text-decoration: underline; background: none; border: 0; cursor: pointer; padding: 0; }
.sf-reset:hover { color: #C8102E; }

/* ----- 系列卡片（参考 carcovers.com 卡片：角标/丝带/适配提示/卖点/性能评分/点赞） ----- */
.sc-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #E5E5E0; border-radius: 12px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.sc-card:hover { box-shadow: rgba(5,0,56,0.08) 0px 12px 32px -4px; border-color: #D6D6D0; }
.sc-card.is-fit { border-color: #2e9e4f; }
.sc-img { display: block; position: relative; aspect-ratio: 4 / 3; background: #fff; }
.sc-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 18px; }
.sc-badges { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sc-badges span { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .3px; line-height: 1; padding: 5px 8px; border-radius: 2px; text-transform: uppercase; }
.sc-ribbon { position: absolute; right: 0; top: 0; width: 96px; height: 96px; overflow: hidden; z-index: 2; pointer-events: none; }
.sc-ribbon span { position: absolute; right: -34px; top: 22px; width: 150px; transform: rotate(45deg); background: #2e7d32; color: #fff; text-align: center; font-size: 11px; font-weight: 700; line-height: 1.15; padding: 6px 0; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.sc-body { padding: 4px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.sc-fit { display: none; align-self: flex-start; align-items: center; gap: 6px; background: #F6F6F4; color: #1A1A2E; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 4px; margin-bottom: 10px; }
.sc-fit svg { width: 16px; height: 16px; }
.sc-card.is-fit .sc-fit { display: inline-flex; }
.sc-brand { font-size: 12px; font-weight: 600; color: #8E8E9A; letter-spacing: .3px; }
.sc-title { font-size: 19px; line-height: 1.25; font-weight: 700; color: #1A1A2E; margin-top: 2px; }
.sc-title a:hover { color: #C8102E; }
.sc-for { color: #1A1A2E; }
.sc-price { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.sc-price b { font-size: 24px; font-weight: 700; color: #2e7d32; }
.sc-points { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.sc-points li { display: flex; gap: 8px; font-size: 13px; line-height: 1.4; color: #2E2E3A; }
.sc-points svg { flex: 0 0 16px; width: 16px; height: 16px; color: #2e9e4f; margin-top: 1px; }
.sc-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; border-top: 1px solid #EFEFEC; margin: 16px -18px 0; padding: 14px 18px 2px; }
.sc-rate-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #1A1A2E; }
.sc-rate-h svg { width: 22px; height: 22px; color: #1A1A2E; flex: 0 0 22px; }
.sc-bars { display: flex; gap: 3px; margin-top: 7px; }
.sc-bars i { flex: 1; height: 4px; border-radius: 2px; background: #E5E5E0; }
.sc-bars i.on { background: #2e9e4f; }
.sc-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 8px; }
.sc-card.is-dim { opacity: .45; }
.like-btn.sc-like { width: 100%; height: 48px; justify-content: center; border-radius: 6px; border: 0; background: #C8102E; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.like-btn.sc-like:hover { background: #9E0C24; border-color: transparent; color: #fff; }
.like-btn.sc-like.is-liked { background: #7A0A1C; color: #fff; border-color: transparent; }
.like-btn.sc-like svg { width: 22px; height: 22px; }
.sc-more { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 6px; border: 1px solid #D6D6D0; color: #4A4A5A; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.sc-more:hover { border-color: #1A1A2E; color: #1A1A2E; }

/* ----- 点赞按钮 ----- */
.like-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid #D6D6D0; background: #fff; color: #4A4A5A; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all .15s; }
.like-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.like-btn:hover { border-color: #C8102E; color: #C8102E; }
.like-btn.is-liked { border-color: #C8102E; background: #FCE7EA; color: #C8102E; }
.like-btn.is-liked svg { fill: currentColor; transform: scale(1.08); }
.like-btn.sc-like.is-liked svg { fill: #fff; stroke: #fff; }
.like-btn:disabled { opacity: .6; }
.like-btn.lg { height: 42px; padding: 0 18px; font-size: 14px; }

/* ----- 结果提示 ----- */
.sr-box { border-radius: 12px; padding: 18px; }
.sr-ok { background: #e8f6ee; }
.sr-no { background: #fff6e6; }
.sr-title { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 16px; }
.sr-title svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; }
.sr-ok .sr-title { color: #0f8a4b; }
.sr-no .sr-title { color: #b45309; }
.sr-size { background: #fff; border-radius: 10px; padding: 14px 16px; margin-top: 12px; border: 1px solid rgba(15,138,75,.25); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sr-size b { font-size: 20px; font-weight: 700; }
.sr-sum { padding: 12px 16px; border: 1px solid transparent; }
.sr-sum .sf-reset { white-space: nowrap; }
.sr-sum.sr-ok { border-color: rgba(15,138,75,.3); }
.sr-sum.sr-no { border-color: rgba(180,83,9,.3); }
.sr-sum .sr-title { font-size: 18px; }
@media (min-width: 1024px) { .sr-sum .sr-title { font-size: 20px; } .sr-sum .sr-title svg { flex-basis: 26px; width: 26px; height: 26px; } }
.sr-hits { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.sr-hits li { display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(15,138,75,.25); font-size: 14px; color: #1A1A2E; }
.sr-hits b { color: #0f8a4b; font-weight: 700; white-space: nowrap; }
.btn-red { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; background: #C8102E; color: #fff; font-weight: 500; font-size: 14px; transition: background .15s; white-space: nowrap; }
.btn-red:hover { background: #9E0C24; }
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; background: #1fa855; color: #fff; font-weight: 500; font-size: 14px; white-space: nowrap; }
.btn-wa svg { width: 18px; height: 18px; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid #D6D6D0; color: #1A1A2E; font-weight: 500; font-size: 14px; background: #fff; white-space: nowrap; }
.btn-line:hover { border-color: #1A1A2E; }

/* ----- 详情页 ----- */
.sd-badge { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .3px; line-height: 1; padding: 6px 9px; border-radius: 2px; text-transform: uppercase; }
.sd-price { font-size: 30px; font-weight: 700; color: #2e7d32; }
.sd-rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding: 16px 0; border-top: 1px solid #EFEFEC; border-bottom: 1px solid #EFEFEC; }
@media (min-width: 640px) { .sd-rates { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sd-color { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #E5E5E0; border-radius: 999px; padding: 5px 14px 5px 5px; font-size: 14px; background: #fff; color: #1A1A2E; font-family: inherit; }
.sd-color.has-img { cursor: pointer; }
.sd-color.has-img:hover { border-color: #C8102E; }
.sd-color i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); display: block; background: #ccc; }
.sd-point { display: flex; gap: 14px; padding: 18px; border-radius: 12px; background: #FAFAF8; border: 1px solid #EFEFEC; }
.sd-point .ic { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #FCE7EA; color: #C8102E; display: flex; align-items: center; justify-content: center; }
.sd-point .ic svg { width: 16px; height: 16px; }
.sd-vcard { display: block; width: 100%; padding: 0; text-align: left; font-family: inherit; cursor: pointer; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #EFEFEC; box-shadow: rgba(5,0,56,0.06) 0px 8px 24px -6px; transition: box-shadow .2s; }
.sd-vcard:hover { box-shadow: rgba(5,0,56,0.12) 0px 12px 32px -6px; }
.sd-video { position: relative; overflow: hidden; background: #111; aspect-ratio: 16 / 9; }
.sd-video { display: block; }
.sd-video img, .sd-video video { width: 100%; height: 100%; display: block; border: 0; object-fit: cover; pointer-events: none; }
.sd-vplay { pointer-events: none; position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; border: 0; background: #C8102E; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(200,16,46,.22), 0 10px 30px rgba(0,0,0,.35); transition: transform .15s, background .15s; }
.sd-vplay svg { width: 30px; height: 30px; margin-left: 4px; }
.sd-vcard:hover .sd-vplay { transform: scale(1.08); background: #9E0C24; }
.sd-video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35)); pointer-events: none; }
.sd-vtitle { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 15px; font-weight: 600; color: #1A1A2E; }
.sd-vtitle svg { flex: 0 0 22px; width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: #FCE7EA; color: #C8102E; }
@media (max-width: 767px) {
  .sd-vplay { width: 58px; height: 58px; box-shadow: 0 0 0 7px rgba(200,16,46,.22), 0 8px 22px rgba(0,0,0,.35); }
  .sd-vplay svg { width: 24px; height: 24px; }
  .sd-vtitle { padding: 10px 12px; font-size: 14px; }
}
table.sd-sizes { width: 100%; border-collapse: collapse; }
table.sd-sizes th, table.sd-sizes td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #EFEFEC; font-size: 14px; }
table.sd-sizes th { font-size: 11px; color: #8E8E9A; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
table.sd-sizes td:first-child { font-weight: 600; white-space: nowrap; }

/* ----- 标题字号（手机小一号） ----- */
.sl-h1 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.2px; }
.sl-h2 { font-size: 17px; line-height: 1.3; font-weight: 600; }
.sd-title { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.2px; }
.sd-h2 { font-size: 19px; line-height: 1.3; font-weight: 600; }
@media (min-width: 1024px) {
  .sl-h1 { font-size: 28px; font-weight: 500; letter-spacing: -.4px; }
  .sl-h2 { font-size: 22px; font-weight: 500; }
  .sd-title { font-size: 34px; font-weight: 500; letter-spacing: -.5px; }
  .sd-h2 { font-size: 28px; font-weight: 500; }
}

/* ----- 手机端压缩留白 ----- */
@media (max-width: 767px) {
  .sf-card { padding: 10px; border-radius: 10px; box-shadow: rgba(5,0,56,0.06) 0px 4px 14px 0px; }
  .sf-grid { gap: 8px; }
  .sf-field label { font-size: 10px; margin-bottom: 3px; }
  .sf-select select { height: 42px; padding: 0 30px 0 10px; }
  .sf-select::after { right: 12px; top: 15px; width: 7px; height: 7px; }
  .sf-vehicle .sf-chip { font-size: 13px; padding: 4px 10px; }

  .sc-img { aspect-ratio: 16 / 9; }
  .sc-img img { padding: 4px 6px; }
  .sc-badges { left: 6px; top: 6px; gap: 3px; }
  .sc-badges span { font-size: 10px; padding: 4px 6px; }
  .sc-ribbon { width: 78px; height: 78px; }
  .sc-ribbon span { right: -38px; top: 16px; font-size: 9.5px; padding: 4px 0; }
  .sc-card { border-radius: 10px; }
  .sc-body { padding: 0 10px 10px; }
  .sc-fit { font-size: 11px; padding: 4px 7px; margin-bottom: 6px; }
  .sc-brand { font-size: 10.5px; }
  .sc-title { font-size: 16px; }
  .sc-price { margin-top: 6px; }
  .sc-price b { font-size: 20px; }
  .sc-points { margin-top: 8px; gap: 4px; }
  .sc-points li { font-size: 12.5px; gap: 6px; }
  .sc-points svg { width: 14px; height: 14px; flex-basis: 14px; }
  .sc-rates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; margin: 10px -10px 0; padding: 10px 10px 0; }
  .sc-rate-h { font-size: 11px; gap: 5px; }
  .sc-rate-h svg { width: 16px; height: 16px; flex-basis: 16px; }
  .sc-bars { margin-top: 5px; gap: 2px; }
  .sc-bars i { height: 3px; }
  .sc-foot { grid-template-columns: 1fr 1fr; padding-top: 12px; }
  .like-btn.sc-like { height: 40px; font-size: 14px; }
  .like-btn.sc-like svg { width: 18px; height: 18px; }
  .sc-more { height: 40px; font-size: 12px; }

  .sd-price { font-size: 24px; }
  .like-btn.lg { height: 38px; padding: 0 14px; font-size: 13px; }
  .sd-color { padding: 3px 10px 3px 3px; font-size: 13px; }
  .sd-color i { width: 20px; height: 20px; }
  .sd-point { padding: 10px; gap: 10px; }
  .sd-point .ic { flex-basis: 26px; height: 26px; }
  .sr-box { padding: 10px; }
  .sr-title { font-size: 14px; gap: 8px; }
  .sr-title svg { width: 20px; height: 20px; flex-basis: 20px; }
  .sr-size { padding: 10px; margin-top: 8px; }
  .sr-size b { font-size: 17px; }
  .btn-red, .btn-wa, .btn-line { height: 40px; padding: 0 16px; font-size: 13px; }
  table.sd-sizes th, table.sd-sizes td { padding: 9px 8px; font-size: 13px; }
}

/* ----- 头部车辆类型导航（图标 + 名称，后台「车辆类型」维护） ----- */
.cat-nav { justify-content: center; max-width: 1280px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav li { flex: 0 0 auto; border-left: 1px solid rgba(255,255,255,.28); }
.cat-nav li:last-child { border-right: 1px solid rgba(255,255,255,.28); }
.cat-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 120px; height: 84px; padding: 8px 6px; color: #fff; text-align: center; transition: background .2s; }
.cat-link:hover, .cat-link.active { background: rgba(0,0,0,.16); }
.cat-ico { display: flex; align-items: center; justify-content: center; height: 30px; }
.cat-ico img { max-height: 30px; max-width: 64px; }
.cat-label { font-size: 13px; font-weight: 600; line-height: 1.2; }
/* 手机端 MENU 展开：同款图标格子 */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.28); }
.cat-grid li { border-right: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); }
.cat-grid li:nth-child(4n) { border-right: 0; }
.cat-grid .cat-link { width: auto; height: 76px; gap: 5px; padding: 8px 4px; }
.cat-grid .cat-ico { height: 24px; }
.cat-grid .cat-ico img { max-height: 24px; max-width: 52px; }
.cat-grid .cat-label { font-size: 11.5px; }
@media (max-width: 359px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid li:nth-child(4n) { border-right: 1px solid rgba(255,255,255,.28); }
  .cat-grid li:nth-child(3n) { border-right: 0; }
}

/* ----- 详情页底部赞 / 踩（醒目大按钮） ----- */
.sd-vote { text-align: center; padding: 22px 16px; border-radius: 14px; background: #FAFAF8; border: 1px solid #EFEFEC; }
.sd-vote-btns { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.vote-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 150px; height: 56px; padding: 0 22px; border-radius: 999px; border: 2px solid #D6D6D0; background: #fff; color: #4A4A5A; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: all .15s; }
.vote-btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.vote-btn.down svg { transform: rotate(180deg); }
.vote-btn b { font-size: 18px; font-weight: 700; }
.vote-btn.up:hover { border-color: #C8102E; color: #C8102E; }
.vote-btn.down:hover { border-color: #1A1A2E; color: #1A1A2E; }
.vote-btn.up.on { background: #C8102E; border-color: #C8102E; color: #fff; }
.vote-btn.down.on { background: #1A1A2E; border-color: #1A1A2E; color: #fff; }
.vote-btn.on svg { fill: currentColor; }
.vote-btn.up.on svg { transform: scale(1.1); }
.vote-btn.down.on svg { transform: rotate(180deg) scale(1.1); }
.vote-btn:disabled { opacity: .6; }
@media (max-width: 767px) {
  .vote-btn { flex: 1 1 0; min-width: 0; height: 52px; padding: 0 12px; font-size: 15px; gap: 8px; }
  .vote-btn svg { width: 24px; height: 24px; }
}

/* ----- 详情页：从列表页带车过来时收起选车表单，只留结果 ----- */
.sd-finder.is-collapsed { padding: 0; background: transparent; box-shadow: none; }
.sd-finder.is-collapsed #result { margin-top: 0; }
.sd-finder.is-collapsed #finder-modal { display: none; }
.sd-finder.is-collapsed #finder-modal.open { display: flex; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 16px; background: rgba(15,15,30,.55); }
#finder-modal.open #finder-form { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px 20px 20px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px -12px rgba(0,0,0,.35); }
.fm-close { display: none; }
#finder-modal.open .fm-close { display: block; position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; color: #8E8E9A; cursor: pointer; }
#finder-modal.open .fm-close:hover { color: #1A1A2E; }

/* ----- 详情页性能评分：电脑端保持原样，手机端做成醒目卡片 ----- */
.sd-rate-row { display: flex; align-items: center; gap: 8px; }
.sd-rate-row .sc-bars { flex: 1; }
.sd-rate-sc { display: none; }
@media (max-width: 767px) {
  .sd-rates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 0; border-bottom: 0; }
  .sd-rate { padding: 12px; border-radius: 12px; background: #FAFAF8; border: 1px solid #EFEFEC; }
  .sd-rate .sc-rate-h { font-size: 14px; font-weight: 700; gap: 9px; }
  .sd-rate .sc-rate-h svg { flex: 0 0 34px; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #fff; border: 1px solid #E5E5E0; color: #1A1A2E; }
  .sd-rate-row { margin-top: 10px; }
  .sd-rate .sc-bars { margin-top: 0; gap: 3px; }
  .sd-rate .sc-bars i { height: 7px; border-radius: 4px; }
  .sd-rate-sc { display: block; font-size: 14px; font-weight: 700; color: #2e9e4f; }
}


/* ----- 防护等级：标签 + 列表页筛选 ----- */
.lv-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--lv, #6B7280); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
.lv-tag-lg { height: 26px; padding: 0 12px; font-size: 12px; }
.sc-body .lv-tag { align-self: flex-start; width: max-content; margin-bottom: 6px; }
.lv-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #D6D6D0; background: #fff; color: #1A1A2E; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.lv-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--lv, #6B7280); }
.lv-chip span { font-weight: 500; color: #8E8E9A; }
.lv-chip:hover { border-color: #1A1A2E; }
.lv-chip.on { background: #1A1A2E; border-color: #1A1A2E; color: #fff; }
.lv-chip.on span { color: rgba(255,255,255,.7); }
.lv-chip.on[data-lv]:not([data-lv=""]) { background: var(--lv); border-color: var(--lv); }
.lv-chip.on i { background: #fff; }
.sc-card.lv-hide { display: none !important; }
@media (max-width: 767px) {
  .lv-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -8px; margin-right: -8px; padding: 0 8px; }
  .lv-filter::-webkit-scrollbar { display: none; }
  .lv-chip { flex: 0 0 auto; height: 34px; padding: 0 12px; }
}

/* ----- 详情页标题区尺码按钮（沿用主站 pd-option-btn；匹配到的尺码高亮） ----- */
.sd-size-opt { cursor: default; }

/* ----- 视频播放弹窗 ----- */
.vmodal { display: none; position: fixed; inset: 0; z-index: 1100; align-items: center; justify-content: center; padding: 24px; background: rgba(10,10,20,.82); }
.vmodal.open { display: flex; }
.vmodal-box { position: relative; width: 100%; max-width: 1080px; }
.vmodal-stage { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.vmodal-stage video, .vmodal-stage iframe { width: 100%; height: 100%; display: block; border: 0; }
.vmodal-title { margin-top: 12px; color: #fff; font-size: 16px; font-weight: 600; }
.vmodal-close { position: absolute; top: -46px; right: -4px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.vmodal-close:hover { background: rgba(255,255,255,.25); }
@media (max-width: 767px) {
  .vmodal { padding: 12px; }
  .vmodal-stage { border-radius: 8px; }
  .vmodal-title { font-size: 14px; }
}

/* ----- 列表页选车总结：带出所选车辆（车图 + 尺寸），Change vehicle 在文字区 ----- */
.sr-veh { position: relative; display: flex; align-items: center; gap: 18px; }
.sr-veh-img { flex: 0 0 auto; width: 340px; max-width: 100%; aspect-ratio: 422 / 250; object-fit: contain; background: #fff; border-radius: 10px; }
.sr-veh-info { flex: 1 1 auto; min-width: 0; }
.sr-veh-name, .sr-veh-dims { padding-right: 120px; }
.sr-veh-res { margin-top: 14px; }
.sr-veh-name { font-size: 20px; font-weight: 700; color: #1A1A2E; line-height: 1.3; }
.sr-veh-dims { margin-top: 6px; font-size: 15px; color: #4A4A5A; font-variant-numeric: tabular-nums; }
.sr-veh-info .sf-reset { position: absolute; top: 0; right: 0; white-space: nowrap; }
@media (max-width: 767px) {
  .sr-veh { gap: 10px; flex-direction: column; align-items: stretch; }
  .sr-veh-img { width: 100%; }
  .sr-veh-name, .sr-veh-dims { padding-right: 0; }
  .sr-veh-res { margin-top: 10px; }
  .sr-veh-name { font-size: 16px; }
  .sr-veh-dims { font-size: 13px; }
  .sr-veh-info .sf-reset { position: static; display: inline-block; margin-top: 4px; }
}
/* 没有车图时：所属类型图标（与顶部导航同款红底白线） */
.sr-veh-ph { display: flex; align-items: center; justify-content: center; background: #EB1C24; }
.sr-veh-ph img { width: 46%; height: auto; }
.sr-veh-na { color: #8E8E9A; font-style: italic; }
@media (max-width: 767px) { .sr-veh-ph { aspect-ratio: 3 / 1; } .sr-veh-ph img { width: 26%; } }

/* ----- 详情页：所选车辆图作为图集最后一张；右侧结果只留文字 ----- */
.sr-veh.no-reset .sr-veh-name, .sr-veh.no-reset .sr-veh-dims { padding-right: 0; }
.sd-finder .sr-veh-name { font-size: 17px; }
.sd-finder .sr-veh-dims { font-size: 13px; }
.sd-finder .sr-veh-res .sr-size { margin-top: 10px; }
.pd-thumb.sd-veh-thumb { position: relative; }
.sd-veh-thumb img, .sd-veh-slide img { object-fit: contain; background: #fff; }
.sd-veh-slide { position: relative; }
.sd-veh-tag { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px; background: #C8102E; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.sd-veh-thumb span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(200,16,46,.9); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; line-height: 16px; text-align: center; }
/* 详情页图集占满左栏（主站默认最宽 460），缩小与右栏的间距 */
@media (min-width: 1024px) { #sd-gallery { max-width: none; } }

/* 跳转详情页时顶部进度条（series-finder.js 的 PageProgress） */
/* 顶部导航是吸顶的红条，进度条用白色才看得见 */
.pg-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: #FFFFFF; box-shadow: 0 1px 4px rgba(0,0,0,.35); z-index: 9999; opacity: 0; pointer-events: none; transition: width .35s ease, opacity .2s ease; }
.pg-bar.on { opacity: 1; }
.sc-more.is-loading { border-color: #C8102E; color: #C8102E; }

/* 可搜索下拉：Tom Select（css/vendor/tom-select.css）外观改成与原下拉一致 */
.sf-select .ts-wrapper { width: 100%; }
.sf-select::after { z-index: 2; }   /* 下拉箭头别被 Tom Select 盖住 */
.sf-select .ts-wrapper.dropdown-active + .x, .sf-select:has(.ts-wrapper.dropdown-active)::after { transform: rotate(-135deg); top: 23px; }
.sf-select:has(.ts-wrapper.disabled)::after { opacity: .4; }
.sf-select .ts-wrapper.single .ts-control { height: 48px; display: flex; align-items: center; flex-wrap: nowrap; border: 1px solid #D6D6D0; border-radius: 8px; padding: 0 38px 0 14px; background: #fff; box-shadow: none; color: #1A1A2E; font-size: 15px; cursor: pointer; overflow: hidden; }
.sf-select .ts-wrapper.single .ts-control > .item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-select .ts-wrapper.sf-typing .ts-control > .item { display: none; }
.sf-select .ts-control input { font-size: 15px; color: #1A1A2E; min-width: 4rem; }
.sf-select .ts-control input::placeholder { color: #6E6E7E; }
.sf-select .ts-wrapper.focus .ts-control { border-color: #C8102E; box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.sf-select .ts-wrapper.disabled .ts-control { background: #FAFAF8; opacity: 1; cursor: not-allowed; }
.sf-select .ts-wrapper.disabled .ts-control input::placeholder { color: #B0B0BA; }
.sf-dd { z-index: 1200; margin-top: 4px; border: 1px solid #D6D6D0; border-radius: 10px; box-shadow: 0 12px 32px -6px rgba(5,0,56,.22); padding: 6px; }
.sf-dd .ts-dropdown-content { max-height: 300px; overscroll-behavior: contain; }
.sf-dd .option { padding: 9px 10px; border-radius: 6px; font-size: 14px; color: #1A1A2E; }
.sf-dd .option.active { background: #F4F4F1; color: #1A1A2E; }
.sf-dd .option.selected { color: #C8102E; font-weight: 600; }
.sf-dd .no-results { padding: 10px; font-size: 13px; color: #8E8E9A; }
.sf-dd .highlight { background: none; color: #C8102E; font-weight: 600; }
@media (max-width: 767px) {
  .sf-select .ts-wrapper.single .ts-control { height: 42px; padding: 0 30px 0 10px; font-size: 14px; }
  .sf-select .ts-control input { font-size: 16px; }   /* iPhone 输入框小于 16px 会自动放大页面 */
  .sf-dd .ts-dropdown-content { max-height: 45vh; }
  .sf-select:has(.ts-wrapper.dropdown-active)::after { top: 19px; }
}

/* 列表页选车总结车图点击放大 */
img.sr-veh-img { cursor: zoom-in; }
.img-zoom { display: none; position: fixed; inset: 0; z-index: 1300; background: rgba(10,10,20,.88); align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.img-zoom.open { display: flex; }
.img-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.img-zoom-x { position: absolute; top: 12px; right: 16px; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

/* 选完车后的过渡：结果框加载态 → 淡入 + 光晕，卡片依次淡入 */
.sr-sum.sr-loading { border-color: #E6E6E1; }
.sr-skel { background: linear-gradient(90deg, #F1F1EE 25%, #E7E7E2 50%, #F1F1EE 75%); background-size: 200% 100%; animation: srShimmer 1.2s linear infinite; }
.sr-checking { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #6E6E7E; font-size: 14px; }
.sr-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #E0E0DA; border-top-color: #C8102E; animation: srSpin .7s linear infinite; }
.sr-reveal { animation: srIn .45s cubic-bezier(.2,.7,.2,1) both; }
.sr-sum.sr-ok.sr-glow { animation: srIn .45s cubic-bezier(.2,.7,.2,1) both, srGlowOk 1.2s ease-out .25s 1; }
.sr-sum.sr-no.sr-glow { animation: srIn .45s cubic-bezier(.2,.7,.2,1) both, srGlowNo 1.2s ease-out .25s 1; }
.sc-reveal { animation: srIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes srIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes srGlowOk { 0% { box-shadow: 0 0 0 0 rgba(15,138,75,.45); } 100% { box-shadow: 0 0 0 14px rgba(15,138,75,0); } }
@keyframes srGlowNo { 0% { box-shadow: 0 0 0 0 rgba(180,83,9,.45); } 100% { box-shadow: 0 0 0 14px rgba(180,83,9,0); } }
@keyframes srShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes srSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sr-reveal, .sc-reveal, .sr-glow, .sr-skel, .sr-spin { animation: none !important; } }
