﻿/* 滚动渐显区块：防止 transform 撑出横向滚动条 */
.home-reveal-target {
  max-width: 100%;
  overflow-x: clip;
}

/* ========== 轮播 Hero ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  touch-action: pan-y;
  max-width: 100%;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  background: none;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-slide-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
}

.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
}

.hero-slide.is-active::before {
  animation: hero-slide-zoom 5s ease-out forwards;
}

.hero-slide:not(.is-active)::before {
  animation: none;
  transform: scale(1);
}

@keyframes hero-slide-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

.hero-slide.is-active.is-link {
  pointer-events: auto;
  cursor: pointer;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(0, 20, 40, 0.35) 0%,
      rgba(0, 20, 40, 0.15) 40%,
      rgba(0, 20, 40, 0.25) 100%);
}

.hero-slider--fallback .hero-slide {
  --hero-slide-bg: url("../images/hero.jpg"),
    linear-gradient(135deg, #2a4a6b 0%, #4a6a8b 50%, #1a3050 100%);
}

.hero-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  z-index: 5;
}

[v-cloak] {
  display: none !important;
}

.hero-controls {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;
}

/* 移动端隐藏轮播圆点与箭头，保留滑动切换 */
@media (max-width: 1024px) {
  .hero-controls {
    display: none;
  }
}

.hero-controls .container,
.hero-controls button {
  pointer-events: auto;
}

.hero-controls .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-dots {
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-dot.is-active,
.hero-dot:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.hero-arrows {
  display: flex;
  gap: 14px;
}

.hero-arrow {
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: background 0.3s, border-color 0.3s, opacity 0.3s;
}

.hero-arrow__img {
  display: block;
  width: auto;
  height: 22px;
  max-width: 22px;
  object-fit: contain;
  pointer-events: none;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.hero-arrow:active {
  opacity: 0.85;
}

/* PC 端轮播控制按钮放大 */
@media (min-width: 1025px) {
  .hero-dots {
    gap: 14px;
  }

  .hero-dot {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .hero-arrows {
    gap: 18px;
  }

  .hero-arrow {
    width: 72px;
    height: 72px;
  }

  .hero-arrow__img {
    height: 30px;
    max-width: 30px;
  }
}

/* ========== 简介统计区 ========== */
.intro-section {
  --intro-text: #394e59;
  padding: 80px 0 17px;
  background-color: #fff;
  max-width: 100%;
  overflow-x: clip;
}

.intro-section .container {
  position: relative;
}

.section-title {
  text-align: center;
  font-weight: 700;
}

/* 点阵地图仅铺在统计区，标题在其上方白底区域 */
.intro-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 100px;
  min-height: 400px;
  padding: 40px 0;
  overflow: hidden;
  box-sizing: border-box;
}

.intro-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/static/index/images/dtbj.png");
  background-position: center center;
  background-size: 100% 108%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.intro-body .stats-grid,
.intro-body .btn-profile {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.section-title .title-dark {
  color: var(--intro-text);
}

.section-title .title-highlight {
  color: var(--color-accent);
}

.section-title .section-title__part2 {
  margin-left: 16px;
}

/* 移动优先：默认 2 列，小屏 1 列；PC 端 4 列（须在 home.css 内写，因本文件在 responsive 之后加载） */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 24px;
  column-gap: 14px;
  padding-top: 72px;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 28px;
    column-gap: 30px;
    padding-top: 88px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    row-gap: 20px;
    column-gap: 10px;
    padding-top: 48px;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  min-width: 0;
}

.stat-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--color-accent);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.stat-icon svg {
  width: 36px;
  height: 36px;
}

.stat-icon-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.stat-number {
  /* font-weight: 700; */
  color: var(--intro-text);
  margin-bottom: 0;
  line-height: 1.35;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stat-label {
  color: var(--intro-text);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
}

.btn-profile {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  background: var(--intro-text);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-profile:hover {
  background: var(--color-accent);
}

/* ========== 占位内容（便于测试滚动） ========== */
.page-placeholder {
  padding: 60px 0 120px;
  background: #f7f8fa;
  text-align: center;
  color: var(--color-text-light);
  font-size: 14px;
}

/* PC 端简介标题与数据成果字号 */
@media (min-width: 1025px) {
  .section-title {
    font-size: 51px;
    margin-bottom: 48px;
    letter-spacing: 2px;
  }

  .stat-number {
    font-size: 55px;
  }

  .stat-label {
    font-size: 20px;
  }

  .intro-body {
    gap: 120px;
    min-height: 480px;
    padding: 48px 0;
  }

  .stat-item {
    gap: 14px;
  }

  .stat-icon {
    width: 68px;
    height: 68px;
  }

  .stat-icon-img {
    width: 50px;
    height: 50px;
  }

  .btn-profile {
    width: 160px;
    margin-top: 0;
    padding: 12px 0;
    font-size: 19px;
  }

  .intro-body::before {
    background-size: 100% 115%;
  }
}

/* 移动端简介标题：横向排列，宽度不足时整段换行（勿用 flex 列布局） */
@media (max-width: 1024px) {
  .section-title {
    display: block;
    font-size: 22px;
    margin-bottom: 24px;
    letter-spacing: 1px;
    line-height: 1.45;
    padding: 0 8px;
    text-align: center;
  }

  .section-title .title-dark,
  .section-title .title-highlight {
    display: inline;
  }

  .section-title .section-title__part2 {
    margin-left: 0.35em;
  }

  .stat-number {
    font-size: 22px;
  }

  .stat-label {
    font-size: 13px;
  }

  .intro-body {
    gap: 84px;
  }

  .stats-grid {
    padding-top: 56px;
  }

  .stat-item {
    gap: 12px;
  }

  .stat-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
  }

  .stat-icon-img {
    width: 42px;
    height: 42px;
  }

  .btn-profile {
    width: min(140px, 68%);
    margin-top: 0;
    padding: 9px 12px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-label {
    font-size: 12px;
  }

  .intro-body {
    gap: 76px;
  }

  .btn-profile {
    width: min(128px, 65%);
    margin-top: 0;
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .stat-number {
    font-size: 18px;
  }

  .stat-label {
    font-size: 12px;
  }

  .intro-body {
    gap: 72px;
  }

  .stat-item {
    gap: 10px;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
  }

  .stat-icon-img {
    width: 36px;
    height: 36px;
  }

  .btn-profile {
    width: min(118px, 62%);
    margin-top: 0;
    padding: 8px 8px;
    font-size: 12px;
  }
}

/* 移动端简介区：下方无内边距（覆盖 responsive.css） */
@media (max-width: 1024px) {
  .intro-section {
    padding-bottom: 0;
  }

  .intro-body {
    min-height: 380px;
    padding: 32px 0;
  }

  .intro-body::before {
    background-size: 100% 110%;
  }
}

@media (max-width: 768px) {
  .intro-body {
    min-height: 340px;
  }

  .intro-body::before {
    background-size: 100% 108%;
  }
}

/* ========== 生产能力 / 质量保障：文字自右向左再回位 ========== */
@keyframes home-text-slide-in {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }

  55% {
    opacity: 1;
    transform: translateX(-12px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.production-section,
.home-features__item {
  max-width: 100%;
  overflow-x: clip;
}

.production-section[data-home-reveal-state="hidden"] .home-text-slide,
.home-features__item[data-home-reveal-state="hidden"] .home-text-slide {
  opacity: 0;
  transform: translateX(40px);
}

.production-section.is-text-revealed .home-text-slide,
.home-features__item.is-text-revealed .home-text-slide {
  animation: home-text-slide-in 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--text-slide-delay, 0ms);
}

.production-card__body,
.home-feature__panel {
  overflow: hidden;
}