/* ============================================================
   产品中心 v2 —— 图文并茂的产品详情与列表
   与 site.css 设计变量共用：深蓝 × 香槟金
   ============================================================ */

/* ---------- 列表页：产品线导航 ---------- */
.pline-nav { position: sticky; top: 66px; z-index: 25; background: rgba(245, 247, 251, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.pn-inner { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.pn-inner::-webkit-scrollbar { display: none; }
.pn-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13.5px; white-space: nowrap; transition: .25s; }
.pn-chip:hover { border-color: var(--gold); color: var(--gold-ink); transform: translateY(-1px); }
.pn-chip i { font-style: normal; font-size: 11px; color: var(--faint); background: var(--bg); border-radius: 999px; padding: 1px 7px; }
.pn-chip:hover i { color: var(--gold-ink); background: #fbf6ec; }

/* ---------- 列表页：产品线区块 ---------- */
.pline { padding: 64px 0; scroll-margin-top: 120px; }
.pline + .pline { border-top: 1px solid var(--line); }
.pline-head { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; margin-bottom: 34px; }
.pline-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--gold-2); background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); box-shadow: 0 10px 24px rgba(10, 26, 63, .22); }
.pline-ic svg { width: 26px; height: 26px; }
.pline-head h2 { font-size: 25px; letter-spacing: .01em; }
.pline-head .pl-tag { font-size: 13px; color: var(--gold-ink); letter-spacing: .04em; margin-top: 3px; }
.pline-head .pl-sum { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 720px; }
.pline-count { font-size: 12px; color: var(--faint); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; white-space: nowrap; }

/* 6 列基准网格：普通卡占 2 列；末行不足 3 张时自动补齐，绝不居中悬空 */
.psheet { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.pcard { grid-column: span 2; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: #d9e2f4; }
.pcard.is-last2 { grid-column: span 3; }
.pcard.is-last1 { grid-column: span 6; flex-direction: row; }
.pcard.is-last1 .pcard-cover { width: 40%; flex: none; aspect-ratio: auto; }
.pcard.is-last1 .pcard-body { justify-content: center; padding: 26px 34px; }
.pcard.is-last1 h3 { font-size: 21px; }
.pcard.is-last1 p { font-size: 14.5px; max-width: 560px; }
.pcard-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.pcard:hover .pcard-cover img { transform: scale(1.05); }
.pcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-tag { font-size: 12.5px; color: var(--gold-ink); letter-spacing: .02em; }
.pcard h3 { font-size: 17px; line-height: 1.45; }
.pcard p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.pcard-meta i { font-style: normal; font-size: 11.5px; color: var(--faint); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

/* ---------- 详情页：深色头部 ---------- */
.pd-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(158deg, var(--navy-950) 0%, var(--navy-900) 46%, var(--navy-800) 100%); padding: 52px 0 60px; }
.pd-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000, transparent 78%); }
.pd-hero::after { content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(236,214,164,.16), transparent 62%); }
.pd-hero .container { position: relative; z-index: 1; }
.pd-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: center; }
.pd-crumb { font-size: 12.5px; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.pd-crumb a { color: rgba(255,255,255,.62); }
.pd-crumb a:hover { color: var(--gold-2); }
.pd-eyebrow { font-size: 12px; letter-spacing: .16em; color: var(--gold-2); text-transform: uppercase; }
.pd-hero h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.24; color: #fff; margin: 10px 0 6px; }
.pd-tag { font-size: 16px; color: var(--gold-2); font-weight: 400; margin-bottom: 16px; }
.pd-sum { font-size: 15px; line-height: 1.85; color: rgba(255,255,255,.72); max-width: 560px; }
.pd-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.pd-cover { border-radius: 18px; overflow: hidden; border: 1px solid rgba(236,214,164,.26); box-shadow: 0 34px 80px rgba(0,0,0,.5); }
.pd-cover img { width: 100%; display: block; }

.pd-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.pd-metric { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid rgba(236,214,164,.18); }
.pd-metric b { display: block; font-size: 24px; color: var(--gold-2); letter-spacing: .02em; line-height: 1.2; }
.pd-metric span { font-size: 12.5px; color: rgba(255,255,255,.56); }

/* ---------- 详情页：正文区块 ---------- */
.pd-body { padding: 72px 0 80px; }
.pd-sec { margin-bottom: 72px; }
.pd-sec:last-child { margin-bottom: 0; }
.pd-sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.pd-sec-head h2 { font-size: 24px; }
.pd-sec-head .pd-en { font-size: 11.5px; letter-spacing: .18em; color: var(--faint); text-transform: uppercase; }
.pd-sec-head .pd-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* 功能模块：同样用 6 列补齐，末行不留居中孤卡 */
.pmods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.pmod { grid-column: span 2; position: relative; padding: 22px 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: .3s; overflow: hidden; }
.pmod.is-last2 { grid-column: span 3; }
.pmod.is-last1 { grid-column: span 6; padding: 24px 30px; background: linear-gradient(100deg, #fffdf8, #fff 62%); border-color: rgba(200,166,112,.34); }
.pmod.is-last1 h3 { font-size: 17px; }
.pmod.is-last1 p { max-width: 900px; font-size: 14px; }
.pmod::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--gold-2), transparent); opacity: .0; transition: .3s; }
.pmod:hover { border-color: #dbe4f5; box-shadow: var(--shadow-1); transform: translateY(-3px); }
.pmod:hover::before { opacity: 1; }
.pmod .pm-no { font-size: 11px; letter-spacing: .14em; color: var(--gold-ink); }
.pmod h3 { font-size: 15.5px; margin: 8px 0 8px; }
.pmod p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }

/* 架构分层 */

/* 场景 */
.pscenes { display: flex; flex-wrap: wrap; gap: 12px; }
.pscene { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.pscene::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* 参数表 */
.pd-specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-1); }
.pd-specs td { padding: 14px 20px; border-bottom: 1px solid #f0f3f9; font-size: 14px; vertical-align: top; }
.pd-specs tr:last-child td { border-bottom: 0; }
.pd-specs td:first-child { width: 180px; color: var(--faint); background: #fafbfe; }
.pd-specs td:last-child { color: var(--ink); }

/* 介绍段落：长文双栏，首段跨栏作导语 */
.pd-copy { max-width: none; column-count: 2; column-gap: 46px; }
.pd-copy p { font-size: 14.6px; line-height: 1.95; color: #33415c; margin-bottom: 15px; break-inside: avoid; }
.pd-copy p:first-child {
  column-span: all; font-size: 16px; line-height: 1.9; color: var(--ink);
  padding: 2px 0 16px 18px; border-left: 3px solid var(--gold);
  margin-bottom: 22px; background: linear-gradient(90deg, rgba(200,166,112,.06), transparent 60%);
}
.pd-copy p:last-child { margin-bottom: 0; }

/* ---------- 产品图解 · 图文讲述 ---------- */
.pd-story { padding-top: 4px; }
.pstory-lead { font-size: 14px; line-height: 1.85; color: var(--muted); margin: -10px 0 34px; max-width: 800px; }
.pstory-row { display: grid; grid-template-columns: 1.06fr .94fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.pstory-row:last-child { margin-bottom: 0; }
.pstory-row.is-flip .pstory-fig { order: 2; }
.pstory-row.is-flip .pstory-txt { order: 1; }
.pstory-fig { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .4s ease, box-shadow .4s ease; }
.pstory-fig:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.pstory-fig img { width: 100%; display: block; }
.pstory-fig figcaption { font-size: 11.5px; color: var(--faint); padding: 11px 18px; border-top: 1px solid var(--line); background: #fafbfe; letter-spacing: .02em; }
.pstory-kicker { font-size: 11px; letter-spacing: .16em; color: var(--gold-ink); text-transform: uppercase; }
.pstory-txt h3 { font-size: 22px; line-height: 1.45; margin: 12px 0 15px; }
.pstory-txt > p { font-size: 14.5px; line-height: 1.95; color: var(--muted); }
.pstory-points { display: grid; gap: 9px; margin-top: 24px; }
.pstory-points li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.2px; color: var(--ink); list-style: none; }
.pstory-points li svg { width: 14px; height: 14px; color: var(--ok); flex: none; margin-top: 3px; }

/* 交付物 */
.pd-deliv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pd-deliv li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; color: var(--ink); list-style: none; }
.pd-deliv li svg { width: 15px; height: 15px; color: var(--ok); flex: none; margin-top: 3px; }

/* 特性清单（放在深色头部） */
.pd-feats { display: grid; gap: 10px; margin-top: 22px; }
.pd-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: rgba(255,255,255,.78); line-height: 1.7; list-style: none; }
.pd-feats li svg { width: 14px; height: 14px; color: var(--gold-2); flex: none; margin-top: 4px; }

/* 相关产品 */
.pd-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

@media (max-width: 1120px) {
  .psheet, .pmods { grid-template-columns: repeat(2, 1fr); }
  .pcard, .pcard.is-last2, .pcard.is-last1,
  .pmod, .pmod.is-last2, .pmod.is-last1 { grid-column: auto; }
  .pcard.is-last1 { flex-direction: column; }
  .pcard.is-last1 .pcard-cover { width: 100%; aspect-ratio: 16 / 10; }
  .pcard.is-last1 .pcard-body { padding: 18px 20px 20px; }
  .pcard.is-last1 h3 { font-size: 17px; }
  .pcard.is-last1 p { font-size: 13.5px; }
  .pmod.is-last1 { padding: 22px 22px 24px; }
  .pd-related { grid-template-columns: repeat(2, 1fr); }
  .pd-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .pline-head { grid-template-columns: 48px 1fr; }
  .pline-count { display: none; }
}

@media (max-width: 720px) {
  .psheet, .pmods, .pd-metrics, .pd-deliv, .pd-related { grid-template-columns: 1fr; }
  .pcard, .pcard.is-last2, .pcard.is-last1,
  .pmod, .pmod.is-last2, .pmod.is-last1 { grid-column: auto; }
  .pmod.is-last1 { padding: 22px 22px 24px; }
  .pcard.is-last1 .pcard-cover { aspect-ratio: 16 / 10; }
  .pd-copy { column-count: 1; }
  .pd-copy p:first-child { padding-left: 14px; }
  .pstory-txt h3 { font-size: 19px; }
  .pline { padding: 44px 0; }
  .pd-body { padding: 44px 0 56px; }
  .pd-sec { margin-bottom: 48px; }
  .pd-specs td:first-child { width: 120px; }
}

/* ============================================================
   详情页 · 业务流程图
   ============================================================ */
.pflow { padding: 4px 0 0; }
.pflow-rail { display: none; }

.pflow-steps {
  display: grid; grid-template-columns: repeat(var(--n, 4), 1fr);
  gap: 0; margin: 0; padding: 0; list-style: none;
}
.pf-step { display: flex; flex-direction: column; min-width: 0; }

.pf-top { display: flex; align-items: center; }
.pf-line { flex: 1; height: 2px; background: linear-gradient(90deg, rgba(29,85,216,.16), rgba(29,85,216,.28)); }
.pf-step:first-child .pf-line:first-child { visibility: hidden; }
.pf-step:last-child .pf-line:last-child { visibility: hidden; }
.pf-step .pf-line:last-child { position: relative; }
.pf-step:not(.is-end) .pf-line:last-child::after {
  content: ""; position: absolute; right: 3px; top: 1px;
  width: 6px; height: 6px; transform: translateY(-50%) rotate(45deg);
  border-top: 1.5px solid rgba(29,85,216,.5); border-right: 1.5px solid rgba(29,85,216,.5);
}

.pf-node {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: #fff; border: 1.5px solid rgba(29,85,216,.28);
  box-shadow: 0 4px 14px rgba(13,33,80,.08);
}
.pf-node em {
  font-style: normal; font-size: 14px; font-weight: 700; color: var(--blue);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.pf-node::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(29,85,216,.10);
}
.pf-step.is-end .pf-node { background: linear-gradient(135deg, #1d55d8, #3d74f2); border-color: transparent; }
.pf-step.is-end .pf-node em { color: #fff; }

.pf-card {
  position: relative;
  margin: 14px 7px 0; padding: 16px 17px 17px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  border-top: 2px solid rgba(29,85,216,.30);
  text-align: left; height: 100%;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.pf-step.is-end .pf-card { border-top-color: var(--gold); }
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(29,85,216,.22); }
.pf-card b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: .4px; }
.pf-card p { margin-top: 8px; font-size: 12.6px; line-height: 1.75; color: var(--muted); text-wrap: pretty; }

.pflow-cap {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 20px;
  font-size: 12.4px; color: var(--faint); line-height: 1.7;
}
.pflow-cap svg { width: 13px; height: 13px; margin-top: 4px; flex: none; color: var(--gold-ink); }

/* ============================================================
   详情页 · 分层架构图
   ============================================================ */
.parch {
  background: linear-gradient(180deg, #fbfcff, #f3f6fd);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 24px 26px;
}
.parch-legend {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-bottom: 15px; margin-bottom: 18px;
  border-bottom: 1px dashed rgba(13,33,80,.12);
}
.pl-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.3px; color: var(--muted); }
.pl-item i {
  width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center;
  font-style: normal; font-size: 10px; font-weight: 700;
}
.pl-up { background: rgba(29,85,216,.10); color: var(--blue); }
.pl-down { background: rgba(200,166,112,.16); color: var(--gold-ink); }
.pl-hint { margin-left: auto; font-size: 12px; color: var(--faint); }

.parch-stack { position: relative; }
.parch-stack::before {
  content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 1px;
  background: linear-gradient(180deg, rgba(200,166,112,.10), rgba(200,166,112,.55), rgba(200,166,112,.10));
}
.parch-row {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px;
  align-items: center; position: relative;
}
.parch-row + .parch-row { margin-top: 11px; }
.parch-no {
  position: relative; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid rgba(200,166,112,.48);
  font-size: 11.5px; font-weight: 700; color: var(--gold-ink);
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
  box-shadow: 0 2px 6px rgba(13,33,80,.05);
}
.parch-ic {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(13,33,80,.04); color: var(--navy-800);
}
.parch-ic svg { width: 16px; height: 16px; }

.parch-bar {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 15px 20px 15px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 2px 8px rgba(13,33,80,.035);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.parch-bar::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(200,166,112,.12));
}
.parch-bar:hover { transform: translateX(3px); box-shadow: 0 8px 22px rgba(13,33,80,.09); border-color: rgba(29,85,216,.18); }
.parch-tier {
  flex: none; font-size: 11.5px; letter-spacing: .1em; color: var(--gold-ink);
  background: rgba(200,166,112,.11); border-radius: 6px; padding: 4px 9px;
}
.parch-name { font-size: 14.8px; font-weight: 600; color: var(--ink); letter-spacing: .3px; min-width: 0; }
.parch-lead { flex: 1; min-width: 14px; height: 1px; margin: 0 12px; align-self: center;
  background: repeating-linear-gradient(90deg, rgba(13,33,80,.16) 0 4px, transparent 4px 9px); }
.parch-role { flex: none; font-size: 12px; color: var(--faint); }

.parch-row:first-child .parch-bar { border-color: rgba(200,166,112,.42); background: linear-gradient(90deg, #fffdf8, #fff); }
.parch-row:last-child .parch-bar { border-style: dashed; }

/* 移动端：流程改纵向，架构图收窄 */
@media (max-width: 900px) {
  .pstory-row { grid-template-columns: 1fr; gap: 22px; margin-bottom: 38px; }
  .pstory-row.is-flip .pstory-fig, .pstory-row.is-flip .pstory-txt { order: 0; }
  .pstory-txt h3 { font-size: 20px; }
  .pflow-steps { grid-template-columns: 1fr; gap: 0; }
  .pf-step { display: block; position: relative; padding-left: 60px; padding-bottom: 12px; }
  .pf-top {
    position: absolute; left: 0; top: 0; width: 46px; height: 100%;
    flex-direction: column; align-items: center;
  }
  .pf-line { width: 2px; height: auto; flex: 1; background: linear-gradient(180deg, rgba(29,85,216,.40), rgba(29,85,216,.18)); }
  .pf-line:first-child { flex: none; height: 4px; }
  .pf-step:first-child .pf-line:first-child { visibility: visible; height: 4px; }
  .pf-step:last-child .pf-line:last-child { visibility: visible; flex: none; height: 0; }
  .pf-node { width: 40px; height: 40px; }
  .pf-node em { font-size: 13px; }
  .pf-card { margin: 0; text-align: left; height: auto; }
  .pf-card b { font-size: 14px; }
  .parch { padding: 16px 14px 20px; }
  .parch-row { grid-template-columns: 30px 1fr; gap: 10px; }
  .parch-stack::before { left: 14px; }
  .parch-no { width: 28px; height: 28px; font-size: 10.5px; }
  .parch-ic { display: none; }
  .parch-bar { padding: 13px 14px 13px 16px; gap: 10px; flex-wrap: wrap; }
  .parch-tier { font-size: 11px; padding: 3px 7px; }
  .parch-name { font-size: 13.6px; }
  .parch-role, .parch-lead { display: none; }
  .pl-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-card, .parch-bar { transition: none; }
}
