/* 产品列表页 products.html — 依赖 styles.css 中的 :root 变量 */

.page-products {
  --product-hero-blue: #3d6eae;
  /* 答疑解惑条竖向居中压在「分类灰底」与「页脚白底」分界上：数值约为条高的半数 */
  --product-cta-overlap: clamp(72px, 11vw, 120px);
  background: #ffffff;
}

.product-page-hero {
  position: relative;
  min-height: clamp(220px, 32vw, 380px);
  overflow: hidden;
}

.product-page-hero-stripes {
  display: flex;
  flex-direction: row;
  min-height: clamp(220px, 32vw, 380px);
}

.product-page-hero-stripe-red {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  overflow: hidden;
  background: var(--color-primary);
}

.product-page-hero-stripe-blue {
  flex: 1 1 50%;
  min-width: 0;
  background-color: var(--product-hero-blue);
  background-image: url("/static/cms/assets/home/imgs/Image-1-3copy.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 首屏装饰大图 - 移除背景色和阴影，作为普通占位图使用 */
.product-page-hero-red-bg {
  position: absolute;
  top: 50%;
  right: clamp(0.4rem, 3vw, 2rem);
  z-index: 0;
  width: min(46vw, clamp(200px, 38vw, 380px));
  height: auto;
  aspect-ratio: 1;
  transform: translateY(-50%);
  object-fit: contain;
  pointer-events: none;
}

/* 产品中心：红条内装饰图上下留白（仅 stripe-red，不影响 about 等内页） */
.product-page-hero-stripe-red > .product-page-hero-red-bg {
  width: auto;
  max-width: min(46vw, clamp(200px, 38vw, 380px));
  max-height: calc(100% - clamp(1.25rem, 4vw, 2.5rem));
}

/* 内页：浅红条内装饰图同样保留上下留白（honors / talent 等） */
.product-page-hero-stripe-red-light > .product-page-hero-red-bg {
  width: auto;
  max-width: min(46vw, clamp(200px, 38vw, 380px));
  max-height: calc(100% - clamp(1.25rem, 4vw, 2.5rem));
}

.product-page-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  min-height: clamp(220px, 32vw, 380px);
  width: 100%;
  padding: clamp(1.25rem, 4vw, 2.75rem) clamp(0.75rem, 2vw, 1.25rem) clamp(1.25rem, 4vw, 2.75rem) max(24px, calc((100vw - var(--container)) / 2));
  /* 宽度相对「左半屏」计算，避免 max-width 过小导致中文逐字断行 */
  max-width: 24rem;
  color: #ffffff;
}

.product-page-hero-title {
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  word-break: keep-all;
}

.product-page-hero-subtitle {
  margin: 0.65rem 0 0;
  font-size: clamp(0.7rem, 1.35vw, 0.95rem);
  font-weight: 600;
  font-size: 36px;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  opacity: 0.96;
}

@media (min-width: 640px) {
  .product-page-hero-title {
    white-space: nowrap;
  }

  .product-page-hero-subtitle {
    white-space: nowrap;
  }
}

.site-header--page {
  position: relative;
  z-index: 30;
  padding-top: 24px;
  padding-bottom: 0;
  background: linear-gradient(180deg, #1f1f1f 0%, #2a2a2a 55%, #2e2e2e 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.site-header--page .header-divider {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.2);
}

/* 内页顶栏仍为深色底，导航文字保持浅色（首页白底顶栏在 styles.css 使用深色字） */
.site-header--page .site-nav>a,
.site-header--page .nav-dropdown-trigger {
  color: rgba(255, 255, 255, 0.92);
}

.site-header--page .site-nav>a.is-active,
.site-header--page .nav-dropdown-trigger.is-active {
  color: var(--color-primary);
}

.site-header--page .header-service {
  color: rgba(255, 255, 255, 0.92);
}

.page-products-breadcrumb {
  padding: 14px 0;
  background: #f7f7f7;
  border-bottom: 1px solid #e8e8e8;
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: #555;
}

.breadcrumb-nav a {
  color: #333;
  font-weight: 600;
}

.breadcrumb-nav a:hover,
.breadcrumb-nav a:focus-visible {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: #b0b0b0;
  font-weight: 500;
}

.breadcrumb-current {
  color: #888;
  font-weight: 500;
}

.product-list-main {
  padding-top: 0;
}

/* 分类栅格：对齐 lanhu group_34 / section_13（灰底、白卡、上蓝下图区比例、描边按钮靠右） */
.section-product-portfolio {
  position: relative;
  z-index: 1;
  padding-top: 46px;
  /* 灰底向下延伸，供下方条带「上半截」叠在灰底上 */
  padding-bottom: calc(48px + var(--product-cta-overlap));
  background: #e2e2e2;
}

.product-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.product-category-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.product-category-card:hover {
  box-shadow: var(--shadow-soft);
}

/* 上图区：稿中约 714×346，底色蓝 #4a60b2 */
.product-category-media {
  flex-shrink: 0;
  aspect-ratio: 714 / 346;
  background-color: #4a60b2;
}

.product-category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-category-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  padding: 32px clamp(20px, 4.6vw, 55px) 30px;
}

.product-category-body h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.45;
  color: #000000;
}

.product-category-desc {
  margin: 14px 0 0;
  flex: 1;
  min-height: 0;
  color: #a0a0a0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.product-category-actions {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 14px;
}

/* 稿中约 142×44、红描边、文案+箭头 */
.product-category-more {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 120px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--color-primary);
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.product-category-more:hover,
.product-category-more:focus-visible {
  background: rgba(220, 0, 22, 0.06);
  color: var(--color-primary-dark);
}

.product-category-more-icon {
  position: relative;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* 新增：第二种（详细）展示形式的样式适配 */
.product-category-card--detailed .product-category-body {
  padding-top: 40px;
  /* 适当增加顶部间距以容纳分类标签 */
}

.product-category-label {
  display: block;
  font-size: 16px;
  color: #a0a0a0;
  font-weight: 400;
  margin-bottom: 24px;
}

.product-category-card--detailed .product-category-title {
  margin-bottom: 36px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}

.product-detail-specs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.product-spec-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.product-spec-label {
  flex-shrink: 0;
  width: 42px;
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  line-height: 1.4;
}

.product-spec-value {
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  line-height: 1.4;
}

/* 条带整体上移，跨灰/白交界；区块本身透明，避免整块白底盖住灰区 */
.product-list-cta-section {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--product-cta-overlap));
  padding-top: 0;
  padding-bottom: 72px;
  background: transparent;
}

.product-list-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(200px, 32%);
  align-items: stretch;
  min-height: clamp(220px, 28vw, 306px);
  border: 1px solid #d8d8d8;
  background: transparent;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.product-list-cta-copy {
  box-sizing: border-box;
  padding: clamp(36px, 5vw, 54px) clamp(24px, 6vw, 48px) clamp(36px, 5vw, 48px) clamp(24px, 8vw, 112px);
  background: #ffffff;
}

.product-list-cta-copy h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
}

.product-list-cta-lead {
  margin: 19px 0 0;
  max-width: 24rem;
  color: #000000;
  font-size: 16px;
  line-height: 24px;
}

.product-list-cta-label {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #000000;
}

.product-list-cta-contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.product-list-cta-name {
  font-size: 21px;
  line-height: 30px;
  color: #000000;
}

.product-list-cta-phone-icon {
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  display: block;
  object-fit: contain;
}

.product-list-cta-phone {
  margin-left: 0;
  font-size: 23px;
  font-weight: 900;
  line-height: 34px;
  color: var(--color-primary);
}

.product-list-cta-phone:hover,
.product-list-cta-phone:focus-visible {
  text-decoration: underline;
}

/* 稿中窄白缝，避免与右侧蓝块直接贴死 */
.product-list-cta-gutter {
  flex-shrink: 0;
  width: 24px;
  background: #ffffff;
}

.product-list-cta-visual {
  min-height: 100%;
  background-color: #2d4f8f;
  background-image: url("/static/cms/assets/home/imgs/34bc4030f6bdc796c79bd058f18367cfabfc6baa311f4-uoBJQ9_fw1200webp.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 991px) {
  .page-products {
    --product-cta-overlap: clamp(48px, 12vw, 84px);
  }

  .site-header--page {
    padding-top: 18px;
  }

  /* 内页顶栏为深色，移动端下拉恢复深色底+白字，避免白底白字 */
  .site-header--page .site-nav {
    background: rgba(8, 10, 13, 0.96);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
  }

  .section-product-portfolio {
    padding-bottom: calc(40px + var(--product-cta-overlap));
  }

  .product-category-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-list-cta {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-list-cta-gutter {
    display: none;
  }

  .product-list-cta-copy {
    padding: 28px 22px 32px;
  }

  .product-list-cta-visual {
    min-height: 200px;
  }
}

@media (max-width: 639px) {

  /* 白块已隐藏：红区按文案+内边距自然高度，不再用 76vh 撑高 */
  .product-page-hero {
    min-height: 0;
  }

  .product-page-hero-stripes {
    flex-direction: column;
    min-height: 0;
  }

  .product-page-hero-stripe-red {
    flex: 0 0 auto;
  }

  .product-page-hero-stripe-blue {
    flex: 0 0 auto;
    min-height: clamp(96px, 26vw, 160px);
  }

  .product-page-hero-red-bg {
    display: none;
  }

  .product-page-hero-copy {
    min-height: 0;
    min-width: 0;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: clamp(1.75rem, 6vw, 2.75rem) 1rem;
    text-align: center;
  }

  .product-page-hero-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    white-space: normal;
  }

  .product-page-hero-subtitle {
    font-size: clamp(0.62rem, 2.8vw, 0.82rem);
    letter-spacing: 0.1em;
    white-space: normal;
  }
}