/* ===========================================================================
   现货图集 — 主图 + 参数 + 全部实拍
   =========================================================================== */

:root {
  --ink: #0f1111;
  --ink-2: #565959;
  --ink-3: #6f7373;
  --link: #007185;
  --orange: #ff9900;
  --btn: #ffd814;
  --nav: #131921;
  --nav-2: #232f3e;
  --bg: #eaeded;
  --card: #fff;
  --line: #d5d9d9;
  --line-2: #e7e9e9;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 17, 17, .08), 0 1px 6px rgba(15, 17, 17, .04);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
          "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 700; }

/* 顶栏 */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--nav); color: #fff; }
.hdr__row { display: flex; align-items: center; gap: 12px; padding: 8px 14px; }
.hdr__logo { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.hdr__logo:hover { text-decoration: none; color: #fff; }

.hdr__search { display: flex; flex: 1 1 auto; min-width: 0; height: 38px; border-radius: var(--radius); overflow: hidden; background: #fff; }
.hdr__search input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); }
.hdr__search input:focus { outline: 2px solid var(--orange); outline-offset: -2px; }
.hdr__search button { border: 0; background: var(--orange); color: #111; width: 46px; display: grid; place-items: center; cursor: pointer; }
.hdr__search button:hover { background: #f08804; }

.hdr__tag { font-size: 13px; color: #ddd; white-space: nowrap; }

.hdr__nav { display: flex; align-items: center; gap: 18px; background: var(--nav-2); color: #e6e8ea; padding: 8px 14px; font-size: 13px; overflow-x: auto; scrollbar-width: none; }
.hdr__nav::-webkit-scrollbar { display: none; }
.hdr__nav a { color: #e6e8ea; white-space: nowrap; }
.hdr__nav a:hover { color: #fff; text-decoration: none; }
.hdr__navspacer { flex: 1 1 auto; }
.hdr__ship { color: #9aa4b0; white-space: nowrap; }

.promo { background: linear-gradient(90deg, #fff4e0, #ffe9c7); color: #6b3f00; font-size: 13px; text-align: center; padding: 8px 14px; border-bottom: 1px solid #f3ddb8; }
.promo b { color: #4d2d00; }

.crumbs { padding: 10px 16px 0; font-size: 13px; color: var(--ink-2); max-width: 1400px; margin: 0 auto; }
.crumbs span { color: var(--ink); }

/* 主图 + 参数 */
.pdp {
  max-width: 1400px; margin: 0 auto; padding: 14px 16px 8px;
  display: grid; gap: 18px; grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  align-items: start;
}

.stage { margin: 0; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px; }
.stage img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }

.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.thumb { flex: 0 0 64px; width: 64px; height: 64px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { border-color: #a9b0b0; }
.thumb.is-active { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; }

.pdp__info { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.brand { font-size: 13px; color: var(--link); }
.pdp__info h1 { font-size: 24px; margin: 6px 0 14px; }

.usp { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.usp li { position: relative; padding-left: 22px; font-size: 14.5px; color: #21313c; }
.usp li::before { content: ""; position: absolute; left: 3px; top: .58em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.usp b { color: var(--ink); }

.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.specs th { width: 7.5em; font-weight: 600; color: var(--ink-2); background: #fafafa; }

/* 图片墙 */
.gallery { max-width: 1400px; margin: 0 auto; padding: 26px 16px 40px; }
.gallery__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.gallery__head h2 { font-size: 21px; }
.gallery__head p { margin: 0; font-size: 13px; color: var(--ink-3); }

.gtitle {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; margin: 26px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.gtitle span { font-size: 12px; font-weight: 500; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 0 7px; }

.shots { column-count: 3; column-gap: 12px; }
.shots--1 { column-count: 1; max-width: 520px; }
.shots--4 { column-count: 2; max-width: 900px; }

.shots figure { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; margin: 0 0 12px; }
.shots button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line-2);
  border-radius: 6px; background: #fff; cursor: zoom-in; overflow: hidden; line-height: 0;
  transition: box-shadow .15s, border-color .15s;
}
.shots button:hover { border-color: #c4c9c9; box-shadow: 0 4px 16px rgba(15, 17, 17, .1); }
.shots img { width: 100%; height: auto; display: block; }
.shots figcaption { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }

/* 页脚 */
.ftr { background: var(--nav-2); color: #8d97a4; padding: 16px; }
.ftr__base { max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; font-size: 12.5px; }

/* 放大 */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10, 12, 14, .94); display: grid; place-items: center; padding: 32px; cursor: zoom-out; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff; }
.lb__close { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lb__close:hover { background: rgba(255,255,255,.18); }

/* 响应式 */
@media (max-width: 960px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .pdp__info { padding: 16px; }
  .pdp__info h1 { font-size: 20px; }
  .shots { column-count: 2; column-gap: 10px; }
  .shots--1 { column-count: 1; }
  .shots--4 { column-count: 2; max-width: none; }
  .shots figure { margin-bottom: 10px; }
}

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .hdr__row { padding: 8px 10px; gap: 8px; }
  .hdr__logo span { display: none; }
  .hdr__tag { display: none; }
  .promo { font-size: 12px; padding: 7px 10px; }
  .crumbs { padding: 8px 12px 0; font-size: 12px; }
  .pdp { padding: 12px; gap: 12px; }
  .pdp__info h1 { font-size: 18px; }
  .specs th { width: 6.6em; }
  .specs th, .specs td { padding: 7px 8px; font-size: 13.5px; }
  .gallery { padding: 18px 12px 30px; }
  .gallery__head h2 { font-size: 18px; }
  .gtitle { font-size: 15px; margin: 20px 0 10px; }
  .shots figcaption { font-size: 11.5px; }
  .lb { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shots button { transition: none; }
}
