/* ==========================================================================
   ABOUT 页面专属样式 (about.css)
   ========================================================================== */

:root {
  --primary-color: #c12022;
  --primary-hover: #b82d19;
  --about-dark-bg: #0b0d10;
}

/* ================= 1. 顶部全屏循环播放视频 Banner ================= */
.about-hero-banner {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.about-hero-banner .banner-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

.about-hero-banner .banner-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
  pointer-events: none;
}

/* 红色正圆形视频播放按钮（与 digital-sandbox 一致） */
.play-btn-circle {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
  box-shadow: 0 0 0 10px rgba(218, 60, 37, 0.25);
  transition: all 0.3s ease;
  z-index: 3;
  cursor: pointer;
}

.play-btn-circle i {
  font-size: 52px;
}

.play-btn-circle:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 0 18px rgba(218, 60, 37, 0.35);
}

.play-btn-circle.is-hidden {
  display: none;
}

/* ================= 3. 公司简介图文板块 ================= */
.about-intro-section {
  background-color: #ffffff;
  padding: 120px 0 80px 0;
  color: #333333;
  position: relative;
  z-index: 2;
}

.intro-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 60px;
}

.intro-left-media {
  flex: 1;
  max-width: 550px;
  min-height: 440px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.intro-left-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-right-text {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro-right-text p {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.6px;
  color: #666666;
  text-align: justify;
  margin-bottom: 16px;
}

.intro-right-text .lead-text {
  font-weight: bold;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.8px;
  color: #222222;
  margin-bottom: 18px;
}

.intro-right-text .intro-slogan {
  font-weight: bold;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 1px;
  color: #666666;
  margin-top: 10px;
}

/* ==========================================================================
   关于我们 - 主要产品与服务 (about-products-services-block)
   ========================================================================== */

.about-products-services-block {
  width: 100%;
  background-color: #111417; /* 与设计稿保持一致的纯黑背景 */
  padding: 70px 0 90px 0;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* 顶部标题：| 主要产品与服务 | */
.about-products-services-block .stats-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 70px;
}

/* ================= 拓扑总容器 ================= */
.products-topology-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ================= 中间核心长胶囊与虚线轨道 ================= */
.center-core-capsule-track {
  position: relative;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* 外围包覆的浅白虚线框（跑道圆角） */
.core-dashed-border {
  position: absolute;
  top: -10px;
  left: -12px;
  right: -12px;
  bottom: -10px;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 50px;
  pointer-events: none;
  z-index: 1;
}

/* 核心实心红底胶囊 */
.core-red-capsule {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-color: #b72814; /* 沉稳工程红 */
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2.5px;
  box-shadow: 0 4px 20px rgba(183, 40, 20, 0.4);
}

/* ================= 上下分支公共排版 ================= */
.top-branch-row,
.bottom-branch-row {
  position: relative;
  width: 100%;
  height: 90px;
}

/* 分支单元：绝对定位并居中锚定 */
.branch-item {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 白底红字小胶囊 */
.branch-capsule {
  background-color: #ffffff;
  color: #b72814;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 24px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
  cursor: pointer;
  z-index: 3;
}

.branch-capsule:hover {
  transform: translateY(-2px) scale(1.04);
  background-color: #fff4f2;
}

/* 引线与实心圆点 */
.branch-line {
  width: 1px;
  background-color: rgba(255, 255, 255, 0.85);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.branch-line.to-bottom {
  height: 48px;
}

.branch-line.to-top {
  height: 48px;
}

/* 白点端头 */
.branch-line .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.branch-line.to-bottom .dot {
  bottom: 0;
}

.branch-line.to-top .dot {
  top: 0;
}

/* ================= 4. 数据统计与优势指标板块 ================= */
.about-stats-section {
  background-color: #fff;
  padding: 60px 0 90px 0;
  position: relative;
  z-index: 2;
}

.stats-inner-box {
  background-color: #111417;
  padding: 50px 60px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.stats-header-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.stats-header-title span {
  color: var(--primary-color);
  font-weight: normal;
  margin: 0 6px;
}

.stats-sub-line {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 40px auto 35px auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stats-sub-line .line-text {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #111417;
  padding: 0 14px;
  font-size: 12px;
  color: #888888;
  letter-spacing: 1.5px;
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

.stat-card {
  background-color: #272d32;
  padding: 35px 20px;
  border-radius: 4px;
  text-align: center;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  background-color: #31383e;
}

.stat-num-row {
  color: #ffffff;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: bold;
  font-size: 72px;
  line-height: 1;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}

.stat-num-row .unit {
  display: inline-block;
  font-size: 13px;
  border-radius: 50%;
  font-weight: normal;
  color: #ffffff;
  background-color: var(--primary-color);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  line-height: 1.4;
  vertical-align: super;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.stat-label {
  color: #d1d5db;
  font-size: 15px;
  letter-spacing: 1px;
}

.stats-icons-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 15px;
}

.stat-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
}

.stat-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(218, 60, 37, 0.35);
}

.stat-icon-circle img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.stat-icon-item .icon-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.stat-icon-item .icon-sub {
  color: #9ca3af;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ================= 5. 工艺与品类切换展厅板块 ================= */
.about-category-section {
  position: relative;
  width: 100%;
  height: 620px;
  background-color: #1a1e22;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.category-header-title {
  position: relative;
  z-index: 10;
  margin-top: 45px;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.category-header-title .red-bar {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 24px;
}

.category-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
  z-index: 1;
}

.category-bg-layer.active {
  opacity: 1;
  z-index: 2;
  visibility: visible;
}

.category-bg-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* 底部 Tab 栏 */
.category-tabs-bar {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 100%;
  /* max-width: 1100px; */
  height: 72px;
  background: rgba(18, 22, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.category-tab-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s ease;
  user-select: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.category-tab-item:last-child {
  border-right: none;
}

.category-tab-item .tab-icon i {
  font-size: 22px;
}

.category-tab-item .tab-name {
  font-size: 14px;
  letter-spacing: 0.8px;
  font-weight: 500;
}

.category-tab-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.category-tab-item.active {
  background-color: var(--primary-color) !important;
  color: #ffffff;
  font-weight: bold;
}

/* ==========================================================================
   6. 优质移动端 (<= 768px) 专项重构规范
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* 1. 顶部视频高占比优化 */
  .about-hero-banner {
    height: 52vh;
  }

  .about-hero-banner .banner-video {
    width: 100%;
    height: 52vh;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  .play-btn-circle {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  /* 3. 公司简介移动端微调 */
  .about-intro-section {
    padding: 55px 0 40px 0;
  }

  .intro-container {
    flex-direction: column;
    gap: 24px;
    margin: 0 auto;
  }

  .intro-right-text {
    padding: 0 12px;
  }

  .intro-left-media {
    max-width: calc(100% - 24px);
    min-height: auto;
    height: 210px;
    border-radius: 6px;
    margin: 0 auto;
  }

  .intro-right-text p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #555555;
  }

  .intro-right-text .lead-text {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  .intro-right-text .intro-slogan {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 6px;
    padding-left: 10px;
  }

  /* 2. 产品服务模块移动端微调 */

  .about-products-services-block {
    padding: 45px 15px;
  }

  .products-sec-header {
    gap: 15px;
    margin-bottom: 35px;
  }

  .products-sec-header .header-text {
    font-size: 18px;
  }

  .products-sec-header .red-bar {
    height: 18px;
  }

  /* 手机端转为垂直流式排版，防止胶囊左右重叠 */
  .products-topology-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .core-dashed-border {
    display: none; /* 移动端隐藏大虚线圈 */
  }

  .center-core-capsule-track {
    height: 48px;
    order: 1; /* 核心放顶部 */
    margin-bottom: 10px;
  }

  .core-red-capsule {
    font-size: 15px;
    padding: 0 20px;
  }

  /* 将上方 3 个与下方 4 个转为自适应网格 */
  .top-branch-row,
  .bottom-branch-row {
    position: static;
    height: auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .top-branch-row {
    order: 2;
  }

  .bottom-branch-row {
    order: 3;
  }

  .branch-item {
    position: static;
    transform: none;
    width: 100%;
  }

  .branch-line {
    display: none; /* 移动端隐藏连接竖线 */
  }

  .branch-capsule {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    font-size: 13px;
    padding: 8px 10px;
  }

  /* 4. 数据统计与优势指标模块移动端规范 */
  .about-stats-section {
    padding: 35px 0 50px 0;
  }

  .stats-inner-box {
    padding: 30px 16px;
    border-radius: 8px;
  }

  .stats-header-title {
    font-size: 15px;
    letter-spacing: 1px;
    margin-bottom: 18px;
  }

  .stats-sub-line {
    margin: 25px auto 25px auto;
  }

  .stats-sub-line .line-text {
    font-size: 11px;
    padding: 0 10px;
  }

  .stats-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 30px;
  }

  .stat-card {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border-radius: 6px;
  }

  .stat-num-row {
    font-size: 40px;
    margin-bottom: 0;
  }

  .stat-num-row .unit {
    font-size: 11px;
    margin-left: 6px;
  }

  .stat-label {
    font-size: 13px;
    text-align: right;
  }

  .stats-icons-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
    padding-top: 5px;
  }

  .stat-icon-item {
    width: 100%;
  }

  .stat-icon-circle {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
  }

  .stat-icon-circle img {
    width: 24px;
    height: 24px;
  }

  .stat-icon-item .icon-title {
    font-size: 14px;
  }

  .stat-icon-item .icon-sub {
    font-size: 12px;
  }

  /* 5. 品类展厅区域移动端体验 */
  .about-category-section {
    height: 420px;
  }

  .category-header-title {
    margin-top: 25px;
    font-size: 15px;
    letter-spacing: 1px;
  }

  .category-header-title .red-bar {
    font-size: 18px;
  }

  /* 手机端 Tab 贴底横滑卡片，防止按钮被挤压或隐藏 */
  .category-tabs-bar {
    bottom: 16px;
    left: 12px;
    transform: none;
    width: calc(100% - 24px);
    height: 50px;
    border-radius: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-tabs-bar::-webkit-scrollbar {
    display: none;
  }

  .category-tab-item {
    flex: none;
    padding: 0 16px;
    height: 100%;
    gap: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }

  .category-tab-item .tab-icon i {
    font-size: 16px;
  }

  .category-tab-item .tab-name {
    font-size: 13px;
  }

  .category-bg-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* 6. 页脚排版微调 */
  /* .footer-links-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px 16px !important;
  } */
}

/* 平板端 (769px ~ 992px) 平滑过渡 */
@media screen and (min-width: 769px) and (max-width: 992px) {
  .about-hero-banner {
    height: 60vh;
  }
  .sub-nav-bar {
    height: 90px;
    top: -45px;
  }
  .intro-container {
    flex-direction: column;
    gap: 30px;
  }
  .intro-left-media {
    max-width: 100%;
    height: 320px;
  }
  .stats-inner-box {
    padding: 35px 25px;
  }
  .stat-num-row {
    font-size: 52px;
  }
  .about-category-section {
    height: 500px;
  }
  .category-tabs-bar {
    bottom: 5%;
    max-width: 90%;
    height: 60px;
  }
}
