/* ========== 主题变量 ========== */
:root {
  --lc-primary: #005bac;
}

/* ========== 宣传视频 ========== */
.intro-text {
  display: inline-block;
  text-indent: 2em;
  color: #000;
  letter-spacing: 0.5px;
  line-height: 2;
}

.intro-content img {
  width: 40%;
  border-radius: 10px;
  border: 0.20rem solid var(--primary-color);
  height: auto;
  object-fit: cover;
  margin-left: 0.5rem;
  margin-top: 40px;
}

/* 视频遮罩层：全屏覆盖，默认隐藏 */
.video-mask {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
}

.video-mask.active {
  opacity: 1;
  visibility: visible;
}

.video-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
}

.video-container video {
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
}

.video-container .icon-close {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  padding: 10px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  display: block;
  cursor: pointer;
}

@media (max-width: 768px) {
  .top-nav {
    display: none;
  }

  .intro-content {
    padding: 0 .3rem;
  }

  .intro-content img {
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin-bottom: 0;
    margin-left: 0;
    margin-top: .3rem;
  }

  .aContent2 p {
    margin-top: .3rem;
  }

  .video-container {
    width: 100%;
  }

  .video-container .icon-close {
    top: auto;
    bottom: -60px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ========== 发展历程 ========== */
.development-history {
  position: relative;
  padding: 70px 0 10px;
  background: #f4f4f4;
}

.licheng {
  /* 与 Swiper 的 spaceBetween 同源，JS 初始化后会按实际值覆盖 */
  --lc-gap: 127px;
  position: relative;
  height: 268px;
  margin: 40px auto;
}

/* 年份轮播视口：铺满 licheng，年份与连接线在竖直方向居中对齐 */
.lc-viewport {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 100px;
  box-sizing: border-box;
}

.lcswiper {
  overflow: hidden;
  width: 100%;
}

.licheng h1 {
  height: 268px;
  text-align: center;
  font-size: 268px;
  line-height: 268px;
  background-image: linear-gradient(#e9e9e9, #e9e9e9 40%, #f4f4f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* 年份：默认小字，激活年份换成蓝色圆形徽标 */
.lcswiper h3 {
  display: block;
  height: 144px;
  margin: 72px auto 0;
  text-align: center;
  font-size: 20px;
  color: #333333;
  line-height: 42px;
  position: relative;
  z-index: 40;
  user-select: none;
}

.lcswiper .swiper-slide-active h3 {
  background: url('./lich-01.png') no-repeat center;
  line-height: 144px;
  font-size: 36px;
  color: #fff;
}

.lcswiper .swiper-slide {
  position: relative;
}

/* 连接线：由当前圆点向左延伸，正好衔接上一个圆点中心；层级压在大年份水印之下 */
.lcswiper .swiper-slide::before {
  content: "";
  display: block;
  width: calc(100% + var(--lc-gap));
  height: 6px;
  background-image: linear-gradient(to right, #d1d3d1, #b1b1b1);
  position: absolute;
  top: 140px;
  right: 50%;
  z-index: 3;
}

/* 连接线上的圆点 */
.lcswiper .swiper-slide::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #999999;
  position: absolute;
  top: 133px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

/* 激活年份由徽标代替圆点 */
.lcswiper .swiper-slide-active::after {
  display: none;
}

/* 已走过的节点：圆点变品牌蓝 */
.lcswiper .swiper-slide.active::after {
  background: var(--lc-primary);
}

/* 已走过的连接线：向品牌蓝过渡 */
.lcswiper .swiper-slide.active::before,
.lcswiper .swiper-slide-active::before {
  background-image: linear-gradient(to right, #f4f6fe, var(--lc-primary));
}

/* 左右切换箭头 */
.lc-left,
.lc-right {
  display: block;
  width: 60px;
  height: 60px;
  position: absolute;
  /* 垂直中心与连接线中心对齐 */
  top: 139px;
  z-index: 40;
  border-radius: 50%;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.lc-left {
  left: 0;
  background: url('./左箭头.png') no-repeat center;
  background-size: 20px;
  background-color: #fff;
}

.lc-right {
  right: 0;
  background: url('./右箭头.png') no-repeat center;
  background-size: 20px;
  background-color: #fff;
}

.lc-left:hover {
  background: url('./左箭头-hover.png') no-repeat center;
  background-size: 20px;
  background-color: var(--lc-primary);
}

.lc-right:hover {
  background: url('./右箭头-hover.png') no-repeat center;
  background-size: 20px;
  background-color: var(--lc-primary);
}

/* 已到最早/最新年份：箭头置灰不可点 */
.lc-left.disabled,
.lc-right.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* 年份对应的正文内容：同一时间只显示激活年份 */
.lc-content {
  margin: 0 auto 105px;
}

.lc-content .e_container {
  display: none;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  color: #333333;
}

.lc-content .e_container.active {
  display: block;
  animation: lcFadeUp 0.45s ease both;
}

@keyframes lcFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lc-content .e_container p {
  margin-bottom: 6px;
}

/* 年份配图轮播 */
.lc-bot-swi {
  position: relative;
  width: 588px;
  height: 382px;
  margin: 38px auto 0;
  overflow: hidden;
}

.lc-bot-swi .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lc-bot-swi .maximg img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
}

/* 配图轮播的分数分页 */
.lc-bot-swi .swiper-pagination {
  width: 74px;
  height: 40px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.5);
  left: auto;
  right: 24px;
  bottom: 20px;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
}

/* ========== 响应式（电脑版，手机版样式见 publicity-mobile.css） ========== */
@media (max-width: 1440px) {
  .lcswiper h3 {
    font-size: 16px;
  }

  .lcswiper .swiper-slide-active h3 {
    font-size: 30px;
  }

  .lc-content .e_container {
    font-size: 16px;
  }

  .lc-bot-swi .swiper-pagination {
    font-size: 14px;
  }
}
