/* =========================================================
   Inner pages — extends design.css
   Page hero, breadcrumb, filters, product grid, PDP,
   news list, article, case grid.
   Same locks: one accent (#B45309), radius 2px, no serif.
   ========================================================= */

/* ---------------- page hero ---------------- */
.page-hero {
  padding: 132px var(--pad) 56px;
  background: linear-gradient(180deg, #F8F9FB 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 22px;
}
.crumb a { color: var(--text-2); transition: color .18s var(--ease); }
.crumb a:hover { color: var(--text); }
.crumb-sep { color: #C9CFD6; }

.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -.032em;
  font-weight: 640;
  max-width: 22ch;
}
.page-hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--text-2);
  max-width: 58ch;
}

/* ---------------- filter bar ---------------- */
.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.filter-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-btn {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 18px 14px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 540;
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.filter-btn:hover { color: var(--text); }
.filter-btn.is-on { color: var(--text); border-bottom-color: var(--accent); }
.filter-count {
  font-size: 11.5px;
  color: var(--text-3);
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

/* ---------------- product grid ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(44px, 5vw, 72px) var(--pad) clamp(76px, 8vw, 120px);
}
.pcard[hidden] { display: none; }

.pcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  background: #fff;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.pcard:hover { border-color: #CBD1D8; box-shadow: var(--shadow-1); transform: translateY(-2px); }
.pcard-img {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.pcard-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.035); }
.pcard-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-cat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 560; }
.pcard-body h3 { margin: 0; font-size: 16.5px; font-weight: 620; letter-spacing: -.015em; line-height: 1.3; }
.pcard-spec {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-go {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 560;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.pcard:hover .pcard-go { opacity: 1; transform: none; }

.empty-state {
  grid-column: 1 / -1;
  padding: 72px 24px;
  text-align: center;
  color: var(--text-2);
  font-size: 15px;
}

/* ---------------- product detail (PDP) ---------------- */
.pdp {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(76px + 24px) var(--pad) clamp(70px, 8vw, 112px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.pdp-gallery { position: sticky; top: 96px; }
.pdp-main {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: #fff;
  display: grid;
  place-items: center;
  padding: 32px;
  overflow: hidden;
}
.pdp-main img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb {
  flex: none;
  width: 84px; height: 84px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: #fff;
  padding: 6px;
  cursor: pointer;
  transition: border-color .18s var(--ease);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb:hover { border-color: #C3C9D1; }
.pdp-thumb.is-on { border-color: var(--accent); }

.pdp-info h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -.028em;
  font-weight: 650;
}
.pdp-cat {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 14px;
}
.pdp-lead {
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 46ch;
}
.pdp-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.pdp-hl {
  padding: 16px 14px;
  background: var(--bg-alt);
}
.pdp-hl .k { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 5px; }
.pdp-hl .v { font-size: 17px; font-weight: 620; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.pdp-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

/* ---------------- spec table ---------------- */
.spec-block { border-top: 1px solid var(--line); padding-top: 28px; }
.spec-block h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -.015em;
}
.spec-block .spec-sub { margin: 0 0 18px; font-size: 13px; color: var(--text-3); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--line-soft); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left;
  font-weight: 480;
  color: var(--text-2);
  padding: 11px 16px 11px 0;
  vertical-align: top;
  width: 52%;
}
.spec-table td {
  padding: 11px 0;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* ---------------- related ---------------- */
.related { border-top: 1px solid var(--line); background: var(--bg-alt); }
.related-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 6vw, 88px) var(--pad); }
.related h2 {
  margin: 0 0 28px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 630;
  letter-spacing: -.025em;
}
.related .product-grid { padding: 0; }

/* ---------------- news list ---------------- */
.news-list {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(44px, 5vw, 72px) var(--pad) clamp(76px, 8vw, 120px);
  display: grid;
  gap: 2px;
}
.news-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .18s var(--ease);
}
.news-item:hover { background: #FAFBFC; }
.news-date {
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.news-title { font-size: 18px; font-weight: 590; letter-spacing: -.018em; }
.news-tag {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------------- article ---------------- */
/* ---------------- article (news detail) ---------------- */
.article {
  max-width: 1120px;
  margin: 0 auto;
  /* 顶部留够固定导航(76px)的高度，否则面包屑会被压在导航条底下 */
  padding: clamp(88px, 9vw, 112px) var(--pad) clamp(80px, 8vw, 120px);
}
/* 标题区与正文同为 720 的阅读栏，首图放宽到整栏 */
.article-head,
.article-body,
.article-foot { max-width: 720px; margin-left: auto; margin-right: auto; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 20px;
  font-size: 12px;
  color: var(--text-3);
}
.article-meta .news-tag { order: 0; }
.article h1 {
  margin: 0;
  font-size: clamp(30px, 3.9vw, 46px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 650;
  text-wrap: balance;
}
.article-lead {
  margin: 22px 0 0;
  font-size: clamp(17px, 1.55vw, 19px);
  line-height: 1.62;
  color: var(--text-2);
}
/* 首图：比正文宽，居中 */
.article-figure { margin: clamp(32px, 4vw, 44px) 0 clamp(38px, 4.6vw, 54px); }
.article-figure img {
  display: block;
  width: 100%;
  height: auto;          /* 有了 width/height 属性时，不加这句 aspect-ratio 不生效 */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-panel);
  background: var(--bg-alt);
}
.article-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-3);
}

.article-body { font-size: 17px; line-height: 1.78; color: #23282F; }
.article-body p { margin: 0 0 24px; }
.article-body h2 {
  margin: 52px 0 18px;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.25;
  letter-spacing: -.022em;
  font-weight: 620;
}
.article-body h3 {
  margin: 36px 0 12px;
  font-size: 19px;
  font-weight: 610;
}
.article-body img { margin: 28px 0; border-radius: var(--r-panel); width: 100%; height: auto; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 24px; }
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--text-3); }
.article-body blockquote {
  margin: 32px 0;
  padding: 2px 0 2px 22px;
  border-left: 2px solid var(--accent);
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.6;
}
.article-body strong { font-weight: 650; }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }

/* 文章里的对比/参数表（产品新闻用） */
.article-body .table-wrap {
  margin: 8px 0 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}
.article-body thead th {
  padding: 10px 14px;
  text-align: left;
  vertical-align: bottom;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.article-body tbody td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.article-body tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.article-body code {
  font-size: .92em;
  padding: 1px 5px;
  background: var(--bg-alt);
  border-radius: var(--r-panel);
}

/* 文末 */
.article-foot {
  margin-top: clamp(44px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}
.article-back:hover { color: var(--accent); }

/* ---------------- case grid ---------------- */
.case-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(44px, 5vw, 72px) var(--pad) clamp(76px, 8vw, 120px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  background: #fff;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.case-card:hover { border-color: #CBD1D8; box-shadow: var(--shadow-1); transform: translateY(-2px); }
.case-img { aspect-ratio: 16 / 10; overflow: hidden; background: #EDEFF2; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.case-card:hover .case-img img { transform: scale(1.04); }
.case-body { padding: 20px 22px 24px; }
.case-body h3 { margin: 0 0 6px; font-size: 17px; font-weight: 620; letter-spacing: -.015em; }
.case-body p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.case-meta {
  display: flex; gap: 14px; margin-top: 12px;
  font-size: 12px; color: var(--text-3);
}

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .pdp-main { aspect-ratio: 4 / 3; }
}

@media (max-width: 860px) {
  .page-hero { padding-top: 112px; }
  .filter-bar { top: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pdp-highlights { grid-template-columns: repeat(2, 1fr); }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-tag { order: -1; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .pdp-highlights { grid-template-columns: 1fr; }
}


/* ---------- product detail: advantage + parameter (2026-11-24) ---------- */
.pdp-sec {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(34px, 4vw, 60px) var(--pad) 0;
}
.sec-h2 {
  font-size: clamp(21px, 2.3vw, 29px);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.adv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.adv-list li {
  display: flex;
  gap: 14px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: #fff;
}
.adv-n {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.adv-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}
.param-wrap {
  display: grid;
  gap: 26px;
  padding-bottom: clamp(40px, 5vw, 70px);
}
.param-group h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.spec-table.horiz {
  font-size: 12.5px;
}
.spec-table.horiz th {
  background: #FAFAF8;
  font-size: 12px;
  white-space: nowrap;
}
.spec-table.horiz td,
.spec-table.horiz th {
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.spec-table.horiz tbody tr:nth-child(even) td { background: #FCFCFB; }


/* ---------- PDP v2: hero + parameter tabs (2026-11-24) ---------- */
.pdp-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(76px + clamp(20px, 2.6vw, 38px)) var(--pad) clamp(26px, 3.4vw, 48px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
}
.pdp-hero-media {
  background: linear-gradient(180deg, #F6F8FB 0%, #E9EEF5 100%);
  border-radius: var(--r-panel);
  padding: clamp(18px, 3vw, 46px);
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  max-height: 620px;
}
.pdp-hero-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pdp-hero-side .pdp-cat { margin: 0 0 10px; }
.pdp-hero-side h1 {
  font-size: clamp(26px, 3.1vw, 42px);
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  line-height: 1.15;
}
.pdp-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.param-sec {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 3.4vw, 52px) var(--pad) clamp(40px, 5vw, 78px);
}
.param-title {
  text-align: center;
  font-size: clamp(23px, 2.7vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.param-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 54px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.ptab {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 11px 2px 13px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .18s, border-color .18s;
}
.ptab:hover { color: var(--text); }
.ptab.is-on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.ppane { display: none; }
.ppane.is-on { display: block; }

.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.param-table td {
  padding: 11px 16px;
  text-align: center;
  border: 0;
}
.param-table tr:nth-child(odd) td { background: #FAFAF8; }
.param-table td:first-child { color: var(--text-2); }
.param-table.horiz { font-size: 12.5px; }
.param-table.horiz th {
  background: #F1F4F7;
  padding: 10px 12px;
  font-weight: 600;
  text-align: center;
  font-size: 12px;
  white-space: nowrap;
}
.param-table.horiz td { text-align: center; padding: 9px 12px; }
.param-table.horiz tbody tr:nth-child(odd) td { background: #FAFAF8; }

@media (max-width: 860px) {
  .pdp-hero { grid-template-columns: 1fr; gap: 20px; }
  .pdp-hero-media { aspect-ratio: 4 / 3; }
}

/* =========================================================
   栏目页首图：整图通屏 + 文字居中（2026-12-02）
   Solutions / Projects / News / About / Contact 五页共用。
   图片由 _scripts/113_hero_build.py 统一裁成 1920x540（手机 1200x900），
   页面里用 <picture> 切换，所以「高度统一、左右通屏」是同一套 CSS。
   ========================================================= */
.page-hero.page-hero--photo {
  --hero-h: clamp(320px, 28vw, 460px);   /* 五页共用高度 */
  --nav-h: 76px;                          /* design.css 固定导航 */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: calc(var(--hero-h) + var(--nav-h));
  padding: var(--nav-h) var(--pad) 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: #0B0D10;
  color: #fff;
  border-bottom: 0;
}

.page-hero--photo .page-hero-media,
.page-hero--photo .page-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;                        /* design.css 的 img{max-width:100%} 不影响 cover */
  object-fit: cover;
  object-position: center 50%;
}

/* 压暗：中间文字区一团柔光罩（保证白字对比度），上下压深做过渡，
   左右两侧留亮 —— 照片仍然看得清，不是一整块黑幕 */
.page-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(58% 76% at 50% 58%, rgba(8,11,16,.66) 0%, rgba(8,11,16,.38) 62%,
                    rgba(8,11,16,0) 100%),
    linear-gradient(180deg, rgba(8,11,16,.58) 0%, rgba(8,11,16,.10) 30%,
                    rgba(8,11,16,.16) 66%, rgba(8,11,16,.74) 100%);
}

.page-hero--photo .page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 82ch;
  margin: 0 auto;
}

.page-hero--photo .crumb {
  justify-content: center;
  margin-bottom: 20px;
  color: rgba(255,255,255,.62);
}
.page-hero--photo .crumb a { color: rgba(255,255,255,.84); }
.page-hero--photo .crumb a:hover { color: #fff; }
.page-hero--photo .crumb-sep { color: rgba(255,255,255,.34); }

.page-hero--photo h1 {
  margin: 0 0 18px;
  max-width: none;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -.038em;
  font-weight: 620;
  text-shadow: 0 1px 26px rgba(4,6,10,.30);
}

.page-hero--photo p {
  max-width: 62ch;
  margin: 0 auto;
  color: rgba(255,255,255,.82);
  font-size: clamp(14.5px, 1.15vw, 17px);
  line-height: 1.6;
  text-wrap: pretty;
}

@media (max-width: 860px) {
  .page-hero.page-hero--photo {
    --hero-h: 300px;   /* 导航仍是 76px（design.css 只做滚动后收缩），别改成 64 */
  }
  .page-hero--photo .crumb { margin-bottom: 14px; font-size: 11.5px; }
  .page-hero--photo h1 {
    font-size: clamp(27px, 7.6vw, 36px);
    margin-bottom: 12px;
  }
  .page-hero--photo p {
    max-width: 36ch;
    font-size: 13.8px;
    line-height: 1.55;
  }
}
