/* ============================================================
   GINTOL · 机箱散热专区（列表页 + 商品详情页）
   列表参考：深色 banner + 灰色分类条 + 白底 4 列产品网格
   详情参考：面包屑 / 大图与缩略图 / 标题描述 / tab / 黑白规格表
   ============================================================ */
[hidden] { display: none !important; }

/* ---------------- 顶部 banner ---------------- */
.cs-banner {
  position: relative; overflow: hidden;
  height: 340px; background: #05070f;
}
.cs-banner-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center 52%;
}
/* 左侧压暗盖住图内自带的「GINTOL 家族」字样，右侧保留机箱产品图 */
.cs-banner-mask {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #05070f 0%, #05070f 31%, rgba(5,7,15,.95) 40%,
      rgba(5,7,15,.62) 56%, rgba(5,7,15,.12) 78%, rgba(5,7,15,0) 100%),
    linear-gradient(0deg, rgba(5,7,15,.55), transparent 42%);
}
.cs-banner-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  color: #fff;
}
.cs-banner-kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .22em;
  color: #9fb4ff; border: 1px solid rgba(159,180,255,.42);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.cs-banner-inner h1 {
  margin: 0; font-size: clamp(32px, 4.2vw, 54px); font-weight: 860;
  letter-spacing: -.02em; line-height: 1.15; color: #fff;
}
.cs-banner-inner p {
  margin: 14px 0 0; max-width: 460px;
  font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.72);
}
.cs-banner-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.cs-banner-meta span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: rgba(255,255,255,.62);
}
.cs-banner-meta .ico { width: 15px; height: 15px; fill: none; stroke: #7fa0ff; stroke-width: 2; }
.cs-banner-meta b { color: #fff; font-size: 14px; }

/* ---------------- 分类导航条 ---------------- */
.cs-tabbar {
  background: #f0f1f4; border-bottom: 1px solid #e1e4ea;
}
.cs-tabbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 54px; flex-wrap: wrap;
}
.cs-cats { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.cs-cat {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 9px 15px; font-size: 13px; font-weight: 650; color: #6a7180;
  border-radius: 8px; transition: color .18s, background .18s;
  font-family: inherit; white-space: nowrap;
}
.cs-cat:hover { color: var(--o-deep); }
.cs-cat.is-active { color: #fff; background: #1b202b; font-weight: 750; }
.cs-crumb { font-size: 12px; color: #8a91a0; white-space: nowrap; }
.cs-crumb a { color: #6a7180; }
.cs-crumb b { color: #333a48; font-weight: 700; }

/* ---------------- 产品网格 ---------------- */
.cs-gallery { padding: 46px 0 84px; background: var(--bg, #f7f8fc); }
.cs-gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.cs-gallery-head h2 { margin: 0; font-size: 23px; font-weight: 800; color: #1c2333; }
.cs-gallery-head h2 small { font-size: 13px; font-weight: 600; color: #9aa1ad; margin-left: 10px; }
.cs-search {
  display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px;
  background: #fff; border: 1px solid #e3e7ee; border-radius: 11px; min-width: 260px;
}
.cs-search .ico { width: 17px; height: 17px; fill: none; stroke: #9aa1ad; stroke-width: 2; flex: none; }
.cs-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13.5px; color: #1c2333; font-family: inherit; }
.cs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cs-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 14px 22px; background: #fff; border: 1px solid #edf0f5; border-radius: 16px;
  text-decoration: none; color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cs-card:hover { transform: translateY(-5px); border-color: #ffd6bb; box-shadow: 0 18px 38px rgba(25,35,60,.1); }
.cs-card-art {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px;
  background: radial-gradient(circle at 50% 42%, #fff 0%, #fafbfd 62%, #f4f6fa 100%);
  display: grid; place-items: center; overflow: hidden;
}
.cs-card-art svg { width: 86%; height: 86%; filter: drop-shadow(0 12px 14px rgba(20,30,50,.14)); }
.cs-card-badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px;
  background: var(--o, #ff6a13); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .03em;
}
.cs-card-name { margin-top: 16px; font-size: 14.5px; font-weight: 750; color: #222a38; line-height: 1.35; }
.cs-card-variant { margin-top: 5px; font-size: 12px; color: #8b93a1; }
.cs-card-tag { margin-top: 9px; font-size: 11.5px; color: #a4abb7; line-height: 1.5; }
.cs-card-more { margin-top: 13px; font-size: 12px; font-weight: 700; color: var(--o-deep); opacity: 0; transform: translateY(-3px); transition: all .22s ease; }
.cs-card:hover .cs-card-more { opacity: 1; transform: none; }
.cs-empty { padding: 60px 20px; text-align: center; color: #9aa1ad; font-size: 14px; background: #fff; border: 1px dashed #e2e6ed; border-radius: 16px; }

/* ---------------- 详情页：面包屑 ---------------- */
.cd-top { background: #fff; padding: 26px 0 54px; }
.cd-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #8a91a0; padding-bottom: 26px; border-bottom: 1px solid #eef0f4; }
.cd-crumb a { color: #6a7180; }
.cd-crumb a:hover { color: var(--o-deep); }
.cd-crumb i { font-style: normal; color: #c3c8d2; }
.cd-crumb b { color: #333a48; font-weight: 700; }
.cd-back { margin-left: auto; color: #6a7180; }
.cd-back:hover { color: var(--o-deep); }

.cd-hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; padding-top: 38px; align-items: start; }
.cd-main-img {
  width: 100%; aspect-ratio: 1 / .88; border-radius: 18px;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #fafbfd 58%, #f2f5f9 100%);
  border: 1px solid #eef1f5; display: grid; place-items: center; overflow: hidden;
}
.cd-main-img svg { width: 76%; height: 76%; filter: drop-shadow(0 20px 24px rgba(20,30,50,.16)); }
.cd-thumbs { display: flex; gap: 10px; margin-top: 16px; }
.cd-thumb {
  width: 68px; height: 68px; border-radius: 11px; border: 1px solid #e4e8ef; background: #fafbfd;
  display: grid; place-items: center; cursor: pointer; padding: 5px; transition: border-color .18s, box-shadow .18s;
}
.cd-thumb svg { width: 100%; height: 100%; }
.cd-thumb:hover { border-color: #ffcba7; }
.cd-thumb.is-active { border-color: var(--o, #ff6a13); box-shadow: 0 0 0 2px rgba(255,106,19,.14); }

.cd-info { padding-top: 6px; }
.cd-badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
  background: var(--o, #ff6a13); color: #fff; font-size: 11px; font-weight: 800;
}
.cd-info h1 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 840; color: #1a2231; letter-spacing: -.02em; }
.cd-variant { margin: 9px 0 0; font-size: 14px; color: #8b93a1; }
.cd-intro { margin: 22px 0 0; font-size: 14px; line-height: 1.95; color: #596274; }
.cd-features { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 11px; }
.cd-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #3d4658; line-height: 1.6; }
.cd-features .ico { width: 17px; height: 17px; flex: none; margin-top: 2px; fill: none; stroke: var(--o, #ff6a13); stroke-width: 2.4; }
.cd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.cd-actions .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-ghost { border: 1px solid #dfe3ea; color: #596274; background: #fff; }
.btn-ghost:hover { border-color: var(--o); color: var(--o-deep); }

/* ---------------- tab 与规格表 ---------------- */
.cd-tabs-wrap { background: #e9ebef; border-top: 1px solid #dfe3ea; border-bottom: 1px solid #dfe3ea; }
.cd-tabs { display: flex; gap: 0; overflow-x: auto; }
.cd-tabs button {
  appearance: none; border: 0; background: transparent; cursor: pointer; font-family: inherit;
  padding: 17px 26px; font-size: 13.5px; font-weight: 700; color: #7b8494; white-space: nowrap;
  border-right: 1px solid #dcdfe6; transition: color .18s, background .18s;
}
.cd-tabs button:first-child { border-left: 1px solid #dcdfe6; }
.cd-tabs button:hover { color: #333a48; }
.cd-tabs button.is-active { color: #1a2231; background: #fff; border-bottom: 3px solid var(--o, #ff6a13); }
.cd-panel-area { background: #e9ebef; padding: 32px 0 64px; }
.cd-panel { background: #fff; border: 1px solid #e2e6ed; border-radius: 12px; padding: 26px; }
.cd-spec-table { border: 1px solid #e2e6ed; overflow: hidden; border-radius: 8px; }
.cd-spec-row { display: grid; grid-template-columns: 190px 1fr; font-size: 13.5px; line-height: 1.7; }
.cd-spec-row > span { padding: 12px 18px; }
.cd-spec-row > span:first-child { font-weight: 750; }
.cd-spec-row:nth-child(odd) { background: #f1f3f6; color: #2b3240; }
.cd-spec-row:nth-child(even) { background: #1b1f27; color: #fff; }
.cd-panel-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cd-image-cell {
  aspect-ratio: 1 / .82; border-radius: 12px; border: 1px solid #eef1f5;
  background: radial-gradient(circle at 50% 40%, #fff, #f5f7fa);
  display: grid; place-items: center;
}
.cd-image-cell svg { width: 74%; height: 74%; }
.cd-image-cell b { position: absolute; font-size: 11px; }
.cd-desc h3 { margin: 0 0 16px; font-size: 18px; font-weight: 800; color: #1a2231; }
.cd-desc p { margin: 0 0 16px; font-size: 14px; line-height: 2; color: #596274; }
.cd-desc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.cd-desc-card { padding: 18px; border-radius: 12px; background: #f7f9fc; border: 1px solid #eceff4; }
.cd-desc-card b { display: block; font-size: 13px; color: #1a2231; margin-bottom: 7px; }
.cd-desc-card span { font-size: 12.5px; color: #7b8494; line-height: 1.65; }
.cd-placeholder { text-align: center; padding: 64px 20px; color: #8a91a0; font-size: 14px; }
.cd-placeholder svg { width: 38px; height: 38px; fill: none; stroke: #b8bec9; stroke-width: 1.6; display: block; margin: 0 auto 14px; }
.cd-desc-img { display: block; max-width: 100%; height: auto; margin: 18px auto; border-radius: 12px; border: 1px solid #e9edf4; }
.cd-empty-note { margin: 14px 0 0; font-size: 14px; line-height: 1.8; color: #7b8494; }
.cd-video h3, .cd-downloads h3 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-size: 17px; font-weight: 800; color: #1a2231;
}
.cd-video h3 .ico, .cd-downloads h3 .ico { width: 19px; height: 19px; fill: none; stroke: var(--o); stroke-width: 1.9; }
.cd-downloads { display: grid; gap: 12px; }
.cd-dl-item {
  display: flex; align-items: center; gap: 14px; padding: 15px 17px;
  border: 1px solid #e6eaf0; border-radius: 12px; background: #fbfcfe;
  text-decoration: none; color: inherit; transition: .18s;
}
.cd-dl-item:hover { border-color: var(--o); background: #fff8f2; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 106, 19, .09); }
.cd-dl-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--o-soft); }
.cd-dl-ico .ico { width: 19px; height: 19px; fill: none; stroke: var(--o-deep); stroke-width: 2; }
.cd-dl-main { flex: 1; min-width: 0; }
.cd-dl-main b { display: block; font-size: 14px; font-weight: 700; color: #1a2231; }
.cd-dl-main small { display: block; margin-top: 3px; font-size: 12px; color: #8a91a0; }
.cd-dl-go .ico { width: 18px; height: 18px; fill: none; stroke: var(--o-deep); stroke-width: 2; }

.cd-related { padding: 56px 0 84px; background: #fff; }
.cd-related-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.cd-related-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: #1a2231; }
.cd-related-head a { font-size: 13px; color: var(--o-deep); display: inline-flex; align-items: center; gap: 6px; }
.cd-related-head .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.cs-grid-related { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .cs-grid, .cs-grid-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-hero { gap: 30px; }
  .cd-spec-row { grid-template-columns: 150px 1fr; }
}
@media (max-width: 760px) {
  .cs-banner { height: 280px; }
  .cs-banner-mask {
    background: linear-gradient(90deg, #05070f 0%, rgba(5,7,15,.94) 46%, rgba(5,7,15,.45) 78%, rgba(5,7,15,.2) 100%);
  }
  .cs-banner-inner p { max-width: 300px; font-size: 13px; }
  .cs-crumb { display: none; }
  .cs-grid, .cs-grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-gallery-head { flex-direction: column; align-items: stretch; }
  .cs-search { min-width: 0; }
  .cd-hero { grid-template-columns: 1fr; gap: 28px; }
  .cd-main-img { aspect-ratio: 1 / .8; }
  .cd-spec-row { grid-template-columns: 118px 1fr; font-size: 12.5px; }
  .cd-spec-row > span { padding: 10px 12px; }
  .cd-desc-grid { grid-template-columns: 1fr; }
  .cd-tabs button { padding: 14px 16px; font-size: 12.5px; }
}
@media (max-width: 480px) {
  .cs-banner { height: 240px; }
  .cs-banner-inner h1 { font-size: 27px; }
  .cs-banner-meta { gap: 12px; margin-top: 18px; }
  .cs-banner-meta span { font-size: 11px; }
  .cs-gallery { padding: 34px 0 60px; }
  .cs-grid, .cs-grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cs-card { padding: 12px 9px 16px; }
  .cs-card-name { font-size: 12.5px; margin-top: 12px; }
  .cs-card-tag { display: none; }
  .cd-panel { padding: 16px; }
  .cd-thumb { width: 56px; height: 56px; }
  .cd-panel-images { grid-template-columns: 1fr; }
  .cd-actions .btn { flex: 1 1 auto; justify-content: center; }
}


/* ------------------------------------------------------------
   后台上传的真实产品图（白底商品图，等比完整显示）
   未上传图片时仍由 cases.js 绘制矢量示意图
   ------------------------------------------------------------ */
.cs-photo { display: block; width: 100%; height: 100%; object-fit: contain; }
.cs-card-art .cs-photo,
.cd-main-img .cs-photo,
.cd-thumb .cs-photo,
.cd-image-cell .cs-photo { border-radius: 8px; }
