﻿/* ==========================================================================
   内页组件：产品详情 / 新闻详情
   依赖 style.css 的骨架与 brand.css 的 token；这里只加内页专属结构
   ========================================================================== */

/* ---------- 面包屑条 ---------- */

.crumb-bar { background: var(--bg-soft); border-bottom: 1px solid var(--line-2); }
.crumb-bar .wrap { padding: 16px 0; }

/* ---------- 产品详情：首屏 ---------- */

.pdp { padding: 56px 0 72px; }
.pdp-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: start; }

.pdp-media {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcfe, #f4f7fb);
  overflow: hidden;
}
.pdp-media svg { width: 100%; height: auto; display: block; }
.pdp-media .badge {
  position: absolute; left: 16px; top: 16px;
  height: 26px; padding: 0 11px;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--brand-dark);
}
.pdp-media .badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

.pdp-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.pdp-thumbs button {
  width: 74px; height: 56px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pdp-thumbs button.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--tint); }
.pdp-thumbs svg { width: 100%; height: 100%; }

.pdp-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand);
}
.pdp-title { margin-top: 14px; font-size: clamp(26px, 2.9vw, 38px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.pdp-model {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.pdp-model::before { content: ""; width: 16px; height: 1px; background: var(--line-3); }
.pdp-lede { margin-top: 20px; font-size: 16px; line-height: 1.9; color: var(--ink-2); }

.pdp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pdp-chips span {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 500; color: var(--ink);
}
.pdp-chips b { font-weight: 700; color: var(--brand-dark); }

.pdp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pdp-cta .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.pdp-meta { margin-top: 30px; border-top: 1px solid var(--line-2); }
.pdp-meta div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.pdp-meta dt, .pdp-meta span:first-child { color: var(--ink-3); }
.pdp-meta span:last-child { color: var(--ink); font-weight: 500; }

/* ---------- 锚点导航 ---------- */

.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.subnav a {
  position: relative;
  padding: 17px 16px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.subnav a:hover { color: var(--brand); }
.subnav a.is-on { color: var(--brand); font-weight: 600; }
.subnav a.is-on::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px;
  height: 2px; background: var(--brand);
}

/* ---------- 概述 / 特点 ---------- */

.overview-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: start; }
.overview-copy h2 { font-size: clamp(24px, 2.3vw, 30px); font-weight: 700; margin-top: 12px; }
.overview-copy p { margin-top: 18px; font-size: 15.5px; line-height: 1.95; color: var(--ink-2); }
.overview-copy .quote {
  margin-top: 26px; padding: 18px 20px;
  border-left: 3px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 8px 8px 0;
  font-size: 14px; color: var(--ink-2); line-height: 1.85;
}

.feature-list { display: grid; gap: 14px; }
.feature {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding: 20px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.feature:hover { border-color: var(--line-3); box-shadow: 0 8px 22px rgba(17, 24, 39, .05); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--brand);
}
.feature .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.feature h3 { font-size: 15.5px; font-weight: 600; }
.feature p { margin-top: 7px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }

/* ---------- 参数表 ---------- */

.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.spec-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 12px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.spec-table { max-width: none; }
.spec-table td:last-child { text-align: right; }
.spec-table tr.group th {
  padding: 13px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
}
.spec-table td { padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { width: 220px; color: var(--ink-3); }
.spec-table td:last-child { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- 应用场景 ---------- */

.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.app-card::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 3px; background: var(--brand);
  transform: scaleY(0); transform-origin: top;
  transition: transform .28s var(--ease);
}
.app-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(17, 24, 39, .07); border-color: var(--line-3); }
.app-card:hover::before { transform: scaleY(1); }
.app-card .no { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.app-card h3 { margin-top: 14px; font-size: 17px; font-weight: 600; }
.app-card p { margin-top: 10px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }

/* ---------- 相关产品 ---------- */

.related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.related-head h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; }

/* ---------- 新闻详情 ---------- */

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding: 48px 0 88px; align-items: start; }

.article-head .cat {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 11px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--brand-dark);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
}
.article-head h1 {
  margin-top: 18px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: -.015em;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 20px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.article-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-3); }

.article-cover { margin: 26px 0 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.article-cover svg, .article-cover img { display: block; width: 100%; height: auto; }
.article-cover img { background: #0d1522; }
/* 竖版封面：限宽居中，避免在正文里占满整屏 */
.article-cover.is-portrait { max-width: 520px; margin-left: auto; margin-right: auto; }
.article-cover.is-portrait img { height: auto; }
.featured-media.is-portrait img { object-position: center 28%; }
.article-cover figcaption { padding: 10px 14px; font-size: 12px; color: var(--ink-3); background: #fff; border-top: 1px solid var(--line); }

.prose { margin-top: 34px; font-size: 16px; line-height: 1.95; color: var(--ink); }
.prose > * + * { margin-top: 18px; }
.prose h2 {
  margin-top: 42px;
  font-size: 22px; font-weight: 700; line-height: 1.4;
  letter-spacing: -.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; font-size: 17px; font-weight: 600; }
.prose p { color: #374151; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { color: #374151; margin-top: 8px; list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--brand-dark); border-bottom: 1px solid var(--tint-2); }
.prose a:hover { border-bottom-color: var(--brand); }
.prose blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  color: var(--ink-2);
  font-size: 15px;
}
.prose blockquote p { color: var(--ink-2); margin: 0; }
.prose figure { margin: 26px 0; }
.prose figure svg { border: 1px solid var(--line-2); border-radius: 10px; width: 100%; height: auto; }
.prose figcaption { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 600; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.article-tags a {
  height: 30px; padding: 0 12px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 12px; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.article-tags a:hover { border-color: var(--brand); color: var(--brand); background: var(--tint); }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.article-nav a {
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.article-nav a:hover { border-color: var(--line-3); box-shadow: 0 8px 22px rgba(17, 24, 39, .05); }
.article-nav small { display: block; font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.article-nav strong { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--ink); }
.article-nav a:last-child { text-align: right; }

/* ---------- 侧栏 ---------- */

.side { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 22px; }
.side h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.side-list { display: grid; gap: 2px; margin-top: 14px; }
.side-list a { display: block; padding: 14px 0; border-top: 1px solid var(--line-2); }
.side-list a:last-child { border-bottom: 1px solid var(--line-2); }
.side-list time { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.side-list strong { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.65; color: var(--ink); transition: color .2s var(--ease); }
.side-list a:hover strong { color: var(--brand); }

.side-card {
  padding: 22px;
  border-radius: 10px;
  background: linear-gradient(165deg, #0d1522, #16304f);
  color: #fff;
}
.side-card h4 { color: rgba(255, 255, 255, .55); }
.side-card p { margin-top: 10px; font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .7); }
.side-card .btn { margin-top: 16px; width: 100%; height: 40px; font-size: 13px; }

@media (max-width: 1080px) {
  .pdp-grid, .overview-grid { grid-template-columns: 1fr; gap: 36px; }
  .article-layout { grid-template-columns: 1fr; gap: 44px; }
  .side { position: static; }
  .app-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .app-grid { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .spec-table td:first-child { width: 120px; }
  .subnav a { padding: 14px 12px; font-size: 13px; }
  .pdp { padding: 36px 0 48px; }
  .pdp-thumbs button { width: 64px; height: 48px; }
}

/* ==========================================================================
   新闻列表（二级页）
   ========================================================================== */

.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding: 44px 0 88px; }

.post-cat {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 9px;
  border-radius: 5px;
  background: var(--tint);
  color: var(--brand-dark);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
}
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.post-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-3); }

/* 头条 */
.featured-post {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.featured-post:hover { box-shadow: 0 12px 34px rgba(17, 24, 39, .08); border-color: var(--line-3); }
.featured-media { background: var(--bg-soft); border-right: 1px solid var(--line-2); }
.featured-media svg, .featured-media img { display: block; width: 100%; height: 100%; }
.featured-media img { object-fit: cover; }
.featured-body { padding: 34px 32px; display: flex; flex-direction: column; }
.featured-body h2 { margin-top: 16px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.featured-body p { margin-top: 14px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.featured-body .link-more { margin-top: auto; padding-top: 24px; align-self: flex-start; }

/* 工具条 */
.news-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin: 40px 0 4px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.news-toolbar .count { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* 列表行 */
.post-row {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-2);
}
.post-row:last-of-type { border-bottom: 0; }
.post-thumb {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
}
.post-thumb svg, .post-thumb img { display: block; width: 100%; height: 100%; }
.post-thumb img { object-fit: cover; }
.post-row h3 { margin-top: 10px; font-size: 17px; font-weight: 600; line-height: 1.55; transition: color .2s var(--ease); }
.post-row:hover h3 { color: var(--brand); }
.post-row p { margin-top: 9px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.post-row .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); transition: color .2s var(--ease); }
.post-row:hover .more { color: var(--brand); }

/* 分页 */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; }
.pagination a {
  min-width: 38px; height: 38px;
  padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-size: 13px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transition: all .2s var(--ease);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination a.is-disabled { color: var(--ink-4); pointer-events: none; }

/* 侧栏分类 */
.side-cat { display: grid; }
.side-cat a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink);
  transition: color .2s var(--ease);
}
.side-cat a:first-of-type { border-top: 1px solid var(--line-2); }
.side-cat a:last-of-type { border-bottom: 1px solid var(--line-2); }
.side-cat a:hover { color: var(--brand); }
.side-cat span { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.side-cat a.is-on { color: var(--brand); font-weight: 600; }

@media (max-width: 1080px) {
  .news-layout { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-media { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .featured-body { padding: 24px; }
  .post-row { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .post-row h3 { font-size: 15.5px; }
  .post-row p { display: none; }
  .news-toolbar { margin-top: 28px; }
}

/* 产品概述：没有描述时用特点列表呈现 */
.prose-sm { margin-top: 16px; font-size: 15.5px; line-height: 1.9; color: #374151; }
.prose-sm p { margin: 0; }
.prose-sm ul { padding-left: 18px; }
.prose-sm li { list-style: disc; margin-top: 6px; }
