/* =============================================================
   九如软件官网 · 产品详情页专用样式
   依赖 style.css（复用其 CSS 变量与基础类 .container/.section/.btn 等）
   组件：面包屑 / 子首屏 / 产品子导航 / 功能卡片网格
        / 技术架构分层 / 应用场景 / 价值数据带 / 底部 CTA
   ============================================================= */

/* ---------- 子首屏 ---------- */
.page-hero {
  position: relative;
  background: var(--grad-primary);
  color: #fff;
  padding: calc(var(--header-h) + 56px) 0 72px;
  overflow: hidden;
}
.page-hero .ph-deco { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero .ph-deco::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 78%);
}
.page-hero .ph-deco::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: #00B4D8;
  filter: blur(90px);
  opacity: .4;
  top: -120px; right: -80px;
}
.page-hero .container { position: relative; z-index: 1; }

/* 面包屑 */
.breadcrumb {
  font-size: 13.5px;
  opacity: .85;
  margin-bottom: 22px;
}
.breadcrumb a { opacity: .85; transition: opacity .2s; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb span { margin: 0 8px; opacity: .6; }

.page-hero .ph-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 800;
  letter-spacing: 2px;
}
.page-hero .ph-orient {
  font-size: clamp(16px, 2vw, 20px);
  margin: 16px 0 0;
  opacity: .95;
  max-width: 720px;
  line-height: 1.6;
}
.page-hero .ph-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* 暖色变体（供热页） */
.page-hero.warm { background: var(--grad-warm); }
.page-hero.warm .ph-deco::after { background: #ffb27a; }

/* ---------- 产品子导航（sticky） ---------- */
.product-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 0;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-link {
  flex-shrink: 0;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.subnav-link:hover { color: var(--primary); background: rgba(21,101,192,.07); }
.subnav-link.active { background: var(--grad-primary); color: #fff; box-shadow: 0 8px 18px rgba(21,101,192,.28); }

/* ---------- 概述区块 ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 50px;
  align-items: start;
}
.overview-text p { color: var(--muted); font-size: 16px; line-height: 1.9; margin: 0 0 16px; }
.overview-aside {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--line);
}
.overview-aside h4 { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.overview-aside h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.overview-aside .cust-chip {
  display: inline-block;
  padding: 7px 14px;
  margin: 0 8px 10px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink);
}

/* ---------- 核心功能卡片网格 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.fc-ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(21,101,192,.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 700;
  transition: background .3s, color .3s;
}
.feature-card:hover .fc-ico { background: var(--grad-primary); color: #fff; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.75; }

/* ---------- 技术架构分层 ---------- */
.arch-wrap { max-width: 940px; margin: 0 auto; }
.arch-stack { display: flex; flex-direction: column; gap: 12px; }
.arch-layer {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease);
}
.arch-layer:hover { transform: translateX(6px); }
.arch-layer .layer-name {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  text-align: center;
}
/* 五层配色（由上至下：展现→感知） */
.arch-layer.l-show .layer-name    { background: linear-gradient(135deg, #0D47A1, #1565C0); }
.arch-layer.l-app   .layer-name   { background: linear-gradient(135deg, #1565C0, #1e88e5); }
.arch-layer.l-plat  .layer-name   { background: linear-gradient(135deg, #1e88e5, #00B4D8); }
.arch-layer.l-trans .layer-name   { background: linear-gradient(135deg, #00B4D8, #00C9A7); }
.arch-layer.l-sense .layer-name   { background: linear-gradient(135deg, #00C9A7, #2dd4bf); }
.arch-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 应用场景 ---------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.scenario-card {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.scenario-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sc-num {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(21,101,192,.1);
  color: var(--primary);
  font-weight: 800;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.scenario-card h4 { font-size: 16.5px; margin-bottom: 6px; }
.scenario-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.7; }

/* ---------- 价值数据带 ---------- */
.value-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.vb-item {
  text-align: center;
  padding: 40px 24px;
  color: #fff;
  position: relative;
}
.vb-item + .vb-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 60px;
  background: rgba(255,255,255,.25);
}
.vb-num {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, #fff, #9fe9ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vb-label { font-size: 14.5px; opacity: .9; margin-top: 12px; }
.value-band.warm { background: var(--grad-warm); }

/* ---------- 底部 CTA ---------- */
.cta-band {
  background: var(--primary-deep);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: #00B4D8;
  filter: blur(90px);
  opacity: .3;
  top: -120px; right: -60px;
}
.cta-band h3 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); position: relative; }
.cta-band p { color: rgba(255,255,255,.78); margin: 10px 0 0; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- 系统界面截图（2026-11-13 真实项目截图上线） ---------- */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.shot-grid figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.shot-grid figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* 首图通栏（总览/一张图类大图） */
.shot-grid figure.shot-lead { grid-column: 1 / -1; }
.shot-grid a { display: block; }
.shot-grid img { display: block; width: 100%; height: auto; }
.shot-grid figcaption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--bg);
  line-height: 1.6;
}
.shot-grid figcaption b { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* =============================================================
   详情页响应式
   ============================================================= */
@media (max-width: 1024px) {
  .overview-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .feature-grid, .scenario-grid, .shot-grid { grid-template-columns: 1fr; }
  .arch-layer { grid-template-columns: 1fr; gap: 14px; }
  .arch-layer .layer-name { text-align: left; width: fit-content; }
  .cta-band { padding: 34px 26px; flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
}
