/* ==============================================================
   BRILLIANCE ENERGY — Product Detail Pages (product.css)
   展示模式学自外包产品手册：Hero大图 → 核心优势 → 应用场景 → 规格参数表
   ============================================================== */

/* ---------- Product Hero ---------- */
.prod-hero {
  background: linear-gradient(135deg, #0a1628 0%, #1a365d 55%, #0d2847 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.prod-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,102,204,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== 方案B（2026-11-28 顾总拍板）：家储页 hero 光带层次背景 =====
   叠多层渐变：斜向光束带 + 主图背后光晕 + 底部托底压暗，形成深蓝层次 */
.prod-hero-v2 {
  background:
    linear-gradient(118deg, transparent 50%, rgba(70,140,230,0.20) 57%, rgba(70,140,230,0.06) 63%, transparent 70%),
    linear-gradient(62deg, transparent 70%, rgba(50,110,200,0.16) 78%, transparent 86%),
    radial-gradient(ellipse 60% 70% at 85% 25%, rgba(46,112,208,0.38) 0%, transparent 65%),
    linear-gradient(160deg, #0a1628 0%, #0f2342 34%, #17325c 62%, #0a1e3a 100%);
}
.prod-hero-v2::after {
  content: '';
  position: absolute;
  left: -10%;
  bottom: -30%;
  width: 900px;
  height: 500px;
  background: linear-gradient(90deg, rgba(20,80,160,0.20) 0%, rgba(20,80,160,0) 65%);
  transform: rotate(-8deg);
  pointer-events: none;
}
/* 底部渐变托底，让画面重心更稳 */
.prod-hero-v2::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent 0%, rgba(5,14,28,0.55) 100%);
  pointer-events: none;
  z-index: 0;
}
.prod-hero-v2 .prod-hero-inner { z-index: 1; }

/* hex 背景层（产品页前缀版本——修复顶部空白：原规则只有 .page-hero 前缀，prod-hero 下 hex 退化为文档流块，把内容推下 1600px） */
.prod-hero .page-hex-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.prod-hero .page-hex-bg .hex {
  position: absolute;
  width: 300px;
  height: 346px;
  background: rgba(255,255,255,0.02);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: floatHex 20s ease-in-out infinite;
}
.prod-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.prod-hero-text h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 16px 0 20px;
  letter-spacing: -0.5px;
}
.prod-hero-text p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin-bottom: 32px;
}
.prod-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 100px;
  color: #fff;
  transition: all .3s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.prod-hero-img img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
}

/* PV 页 hero 悬浮效果（Astronergy 官网风格：透明组件图轻浮在背景上，无相框）
   仅 products-pv.html 使用，不影响其他产品页。图片自带深蓝投影，故不加 CSS 阴影，
   只做轻浮动画（Astronergy 悬浮感核心）。 */
.prod-hero-img img.hero-float {
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-height: 420px;
  animation: heroFloat 5s ease-in-out infinite;
  transform-origin: center bottom;
}

/* TITAN 2.0 宽幅 hero 图再放大一档（2026-11-29 16:53 顾总指示「稍微再大一些」）
   仅选中 titan2-float.png 两页（product-titan2 / products-utility），不影响 PV 页 hero-float */
.prod-hero-img img.hero-float[src="images/titan2-float.png"] {
  width: 112%;
  margin-left: -6%;
  max-height: 500px;
}
@media (max-width: 992px) {
  .prod-hero-img img.hero-float[src="images/titan2-float.png"] {
    width: 100%;
    margin-left: 0;
    max-height: 420px;
  }
}

/* LITECELL Agile hero 方图放大档（2026-12-01 顾总「图有点小，和其他工商业柜子一样大」）
   900x900 方图，按 TITAN 2.0 同档外扩放大；仅选中 agile-float.png 所在页，不影响其他 hero-float */
.prod-hero-img img.hero-float[src="images/agile-float.png"] {
  width: 112%;
  margin-left: -6%;
  max-height: 500px;
}
@media (max-width: 992px) {
  .prod-hero-img img.hero-float[src="images/agile-float.png"] {
    width: 100%;
    margin-left: 0;
    max-height: 420px;
  }
}

/* STOREASY Wing hero 竖版浮图（2026-12-01 顾总供官方渲染图 2418x2826 透明底）
   竖版高机型必须 width:auto + 按高缩放，避免 .hero-float 的 width:100% 把竖图放爆 */
.prod-hero-img img.hero-float[src="images/wing-float.png"] {
  width: auto;
  max-height: 480px;
  margin: 0 auto;
}
@media (max-width: 992px) {
  .prod-hero-img img.hero-float[src="images/wing-float.png"] {
    max-height: 380px;
  }
}

/* 家储页 hero：主图跟随小卡切换（竖版 float 独立变体）
   竖柜/高机型图用 width:auto + 按高缩放，避免 .hero-float 的 width:100% 把竖图放爆
   透明底浮图必须覆盖通用规则的白色描边/圆角/阴影（否则一圈白框+圆角露馅） */
.prod-hero-img .resid-float {
  display: none;
  width: auto;
  max-height: 340px;
  margin: 0 auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  animation: heroFloat 5s ease-in-out infinite;
  transform-origin: center bottom;
}
.prod-hero-img .resid-float.active { display: block; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Cross-Product Nav (horizontal tiles) ---------- */
.product-nav-bar {
  background: #ffffff;
  padding: 28px 0;
  border-bottom: 1px solid #eef1f6;
}
.p-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
/* 三卡布局：家储页 hero 下小视图区（16 kWh / 并联扩展 / 堆叠式） */
.p-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
/* 双卡布局：家储精简版（CUBE 16 / HESS System） */
.p-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
/* 单卡布局：PV 精简版（N-Type 640W 单款） */
.p-grid-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 420px;
  margin: 0 auto;
}
@media (max-width: 992px) {
  .p-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .p-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .p-grid-single { max-width: 360px; }
}
@media (max-width: 640px) {
  .p-grid-3 { grid-template-columns: 1fr; }
}
.p-card {
  display: block;
  text-align: center;
  padding: 18px 10px 14px;
  border: 1px solid #e8edf4;
  border-radius: 20px;
  transition: all .3s;
  background: #fff;
}
.p-card:hover {
  border-color: #0066cc;
  box-shadow: 0 10px 30px rgba(0,102,204,0.12);
  transform: translateY(-4px);
}
.p-card.active-product {
  border-color: #0066cc;
  background: linear-gradient(180deg, #f5f9ff 0%, #fff 100%);
  box-shadow: 0 6px 20px rgba(0,102,204,0.10);
}
.p-card-img {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.p-card-img img {
  max-height: 64px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 14px;
}
.p-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0,102,204,0.08);
  color: #0066cc;
  margin-bottom: 6px;
}
.p-card h4 { font-size: 15px; font-weight: 700; color: #1a365d; margin-bottom: 2px; }
.p-card p { font-size: 12px; color: #7c8aa0; }

/* ---------- Sections ---------- */
.prod-section { padding: 84px 0; }
.prod-section:nth-child(even) { background: #f7f9fc; }

/* Core advantages */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.feat-card {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 20px;
  padding: 32px 26px;
  transition: all .3s;
}
.feat-card:hover {
  box-shadow: 0 16px 40px rgba(26,54,93,0.08);
  transform: translateY(-4px);
}
.feat-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(0,102,204,0.08);
  margin-bottom: 18px;
}
.feat-card h3 { font-size: 18px; color: #1a365d; margin-bottom: 10px; }
.feat-card p { font-size: 14px; color: #5b6b82; line-height: 1.7; }

/* Scenarios */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.scenario-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 16px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #1a365d;
  transition: all .3s;
  overflow: hidden;
}
.scenario-card:hover { border-color: #0066cc; color: #0066cc; transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,102,204,0.12); }
.scenario-img {
  width: 100%;
  height: 132px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}
.scenario-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.scenario-card:hover .scenario-img img { transform: scale(1.05); }
.scenario-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px 4px;
}
.scenario-ic {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,102,204,0.1);
  color: #0066cc;
  font-size: 12px;
  font-weight: 800;
}

/* Spec table */
.spec-table-wrap {
  margin-top: 40px;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(26,54,93,0.05);
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid #f0f3f8; }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 14px 26px; font-size: 14px; }
.spec-name { color: #7c8aa0; font-weight: 500; width: 38%; background: #fafbfd; }
.spec-value { color: #1a365d; font-weight: 600; }
.spec-table thead th { padding: 14px 26px; font-size: 14px; font-weight: 700; color: #1a365d; background: #eef2f9; border-bottom: 2px solid #d7e0ee; text-align: left; }
.spec-table th.spec-name { width: 38%; }
.spec-h { width: 31%; }
.spec-table .col2 { text-align: left; }
.spec-table tr.spec-section td { background: #1a365d; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 26px; }
.spec-table .spec-section:first-child td { border-radius: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #0a1628 0%, #1a365d 100%);
  padding: 80px 0;
  color: #fff;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(16px, 4vw, 32px); margin-bottom: 14px; white-space: nowrap; }
.cta-inner p { color: rgba(255,255,255,0.75); margin-bottom: 30px; font-size: 16px; }
.btn-accent {
  display: inline-block;
  background: #ff9800;
  color: #1a365d;
  padding: 15px 38px;
  border-radius: 100px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  transition: all .3s;
}
.btn-accent:hover { background: #ffb03a; transform: translateY(-2px); }

/* Product structure (exploded view) */
.structure-img-wrap {
  margin-top: 36px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(9,25,52,0.15);
}
.structure-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .prod-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .prod-hero-text p { margin-left: auto; margin-right: auto; }
  .prod-hero-actions { justify-content: center; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .p-grid { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .inv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .prod-hero-text h1 { font-size: 32px; }
  .feat-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-table td { padding: 12px 16px; font-size: 13px; }
  .inv-grid { grid-template-columns: 1fr; }
}

/* ---------- Inverter Catalog Grid (Powerease-style) ---------- */
.prod-catalog-grid {
  background: #f7f9fc;
}
.inv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.inv-card {
  background: var(--white);
  border: 1px solid #eef2f7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(9,25,52,0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.inv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(9,25,52,0.12);
}
.inv-card-img {
  aspect-ratio: 1 / 1;
  background: #fafbfd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #f0f3f8;
}
.inv-card-img img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.inv-card:hover .inv-card-img img {
  transform: scale(1.05);
}
.inv-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.inv-card-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--mid-blue);
  background: var(--off-white);
  padding: 3px 10px;
  border-radius: 30px;
}
.inv-card h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #1a365d;
  margin: 2px 0 0;
  line-height: 1.35;
}
.inv-card .inv-model {
  font-size: 12px;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.2px;
}
.inv-card .inv-spec {
  font-size: 13px;
  color: #7c8aa0;
  margin: 0;
}
.inv-note {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: #7c8aa0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
/* ---------- Utility Page: 深蓝 hero + 白底主图白色相框过渡 ----------
   仅 products-utility.html 使用 prod-hero-img-card：白底主图外套白色圆角卡片+深投影，
   在深蓝 hero 上自然过渡，不影响其他产品页深蓝 hero 的直接图样式 */
.prod-hero-img-card {
  background: #ffffff;
  border-radius: 20px;
  /* 左右留白加大：白卡内两侧露出纯白背景，集装箱完整居中不裁边 */
  padding: 16px clamp(24px, 8%, 64px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.prod-hero-img-card img {
  display: block;
  border-radius: 14px;
  /* 宽幅主图按容器宽度完整显示，解除通用 max-height:360px 限制 */
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
/* ---------- Residential 页：家储一体机白卡充满栏框 ----------
   白卡内背景与家储机图纯白底一致，cover 填满整个栏框，无边缝 }
 */
.resid-hero-card {
  padding: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.resid-hero-card img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  aspect-ratio: 1 / 1;
}

/* ============ Application Scenes Gallery (2026-12-01) ============ */
.app-scenes { background: #f7f9fc; }
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene-item { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(16,42,90,.08); }
.scene-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.scene-item figcaption { padding: 12px 16px; font-size: 14px; font-weight: 600; color: #1a365d; text-align: center; }
@media (max-width: 992px) { .scene-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .scene-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Downloads 全家福主图 — 磨砂不锈钢相框（顾总 2026-12-02）
   配合 brochure-family.jpg（去黑框版），护栏式金属细框
   ============================================================ */
.prod-hero-img .family-frame {
  max-height: 400px;
  border-radius: 2px;
  border: 1px solid #b6bcc6;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 28%),
    linear-gradient(145deg, #f5f6f8 0%, #c9cdd5 22%, #8f96a3 50%, #e4e7ec 78%, #a9afba 100%);
  box-shadow:
    0 14px 34px rgba(26,54,93,0.28),
    0 4px 10px rgba(0,0,0,0.16),
    inset 0 2px 1px rgba(255,255,255,0.95),
    inset 0 -2px 3px rgba(96,102,114,0.55),
    inset 1px 0 1px rgba(255,255,255,0.75),
    inset -1px 0 1px rgba(110,116,128,0.45);
  object-fit: contain;
}
@media (max-width: 768px) {
  .prod-hero-img .family-frame { max-height: 300px; padding: 10px; }
}
