/* ====================================================================
   home-scoped.css —— 首页区块层（3/3 分层方案）
   ▶ 对应 Vue 打包前源码（scoped 用「区块 id 前缀」模拟组件作用域）：
       src/views/home/component/VideoSwiper.vue → #video-swiper
       src/views/home/component/Symbiosis.vue   → #symbiosis
       src/views/home/component/CoCreation.vue  → #co-creation
       src/views/home/component/WinWin.vue      → #win-win
       src/views/home/component/Map.vue         → #map（Vue 无 id，H5 补挂）
   ▶ pxTorem(N) = N/16 rem（见 index.css 头注释）
   ==================================================================== */

/* ==================== VideoSwiper.vue ==================== */
#video-swiper.section {
  width: 100%;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
}
.swiper-bg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.swiper-bg > img { width: 100%; height: 100%; object-fit: cover; }

@media screen and (max-width: 768px) {
  #video-swiper.section { max-height: 65vh; }
}

/* ==================== Symbiosis.vue ==================== */
#symbiosis.section { overflow: hidden; }

#symbiosis .s-56 {
  position: absolute;
  color: #fff;
  top: 9.375rem;                    /* pxTorem(150) */
  left: 13.6%;
  font-family: 'Impact';
  z-index: 3;
  font-size: 3.5rem;                /* pxTorem(56) */
  text-transform: uppercase;
  line-height: 1.2;
}

#symbiosis .txt {
  position: absolute;
  color: #fff;
  top: 18.0625rem;                  /* pxTorem(289) */
  left: 13.6%;
  z-index: 3;
  white-space: pre-wrap;
}

#symbiosis .car {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 30.5%;
}
#symbiosis .road {
  position: absolute;
  width: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
#symbiosis .car-part {
  position: absolute;
  width: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

#symbiosis .getmore {
  display: block;
  background-color: #0082e6;
  position: absolute;
  color: #fff;
  padding: 0.25rem 1.5625rem;       /* pxTorem(4/25) */
  font-size: 1rem;                  /* pxTorem(16) */
  top: 28rem;
  left: 13.6%;
  z-index: 8;
  border: none;
}

/* 动画 */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes car-in {
  from { left: 150%; top: -25%; }
  to   { left: 50%;  top: 50%; }
}
@keyframes car-in3 {
  from { left: 150%; top: -25%; }
  to   { left: 50%;  top: 55%; }
}
@keyframes shine {
  from { opacity: 1; } 50% { opacity: 0.5; } to { opacity: 1; }
}
@keyframes car-out {
  from { left: 50%;  top: 50%; }
  to   { left: -50%; top: 130%; }
}

#symbiosis .getmore {
  opacity: 0;
  animation-name: fade-in;
  animation-duration: 1s;
  animation-delay: 1.5s;
  animation-fill-mode: forwards;
}
#symbiosis .ani-step1 {
  opacity: 0;
  animation-name: fade-in;
  animation-duration: 2s;
  animation-delay: 0s;
  animation-fill-mode: forwards;
}
#symbiosis .ani-step2 {
  opacity: 0;
  animation-name: fade-in, fade-out;
  animation-duration: 1s, 1s;
  animation-delay: 0s, 4s;
  animation-fill-mode: forwards;
}
#symbiosis .ani-car {
  left: 150%;
  top: -25%;
  animation-name: car-in, shine, car-out;
  animation-duration: 2s, 1s, 2s;
  animation-delay: 0s, 3s, 4s;
  animation-fill-mode: forwards;
}
#symbiosis .ani-step3 {
  opacity: 0;
  animation-name: fade-in, fade-out;
  animation-duration: 1s, 1s;
  animation-delay: 2s, 4s;
  animation-fill-mode: forwards;
}
#symbiosis .ani-step4 {
  opacity: 0;
  animation-name: fade-in, fade-out;
  animation-duration: 1s, 1s;
  animation-delay: 5s, 9s;
  animation-fill-mode: forwards;
}
#symbiosis .ani-car2 {
  left: 150%;
  top: -25%;
  width: 42.6%;
  animation-name: car-in, shine, car-out;
  animation-duration: 2s, 1s, 2s;
  animation-delay: 5s, 8s, 9s;
  animation-fill-mode: forwards;
}
#symbiosis .ani-step5 {
  opacity: 0;
  animation-name: fade-in, fade-out;
  animation-duration: 1s, 1s;
  animation-delay: 7s, 9s;
  animation-fill-mode: forwards;
}
#symbiosis .ani-step6 {
  opacity: 0;
  animation-name: fade-in;
  animation-duration: 1s;
  animation-delay: 10s;
  animation-fill-mode: forwards;
}
#symbiosis .ani-car3 {
  left: 150%;
  top: -15%;
  width: 45%;
  animation-name: car-in3, shine;
  animation-duration: 2s, 1s;
  animation-delay: 10s, 13s;
  animation-fill-mode: forwards;
}
#symbiosis .ani-step7 {
  opacity: 0;
  animation-name: fade-in;
  animation-duration: 1s;
  animation-delay: 12s;
  animation-fill-mode: forwards;
}

@media screen and (max-width: 1600px) {
  #symbiosis .s-56 { font-size: 3rem; }
  #symbiosis .s-30 { font-size: 1.6rem; }
}

@media screen and (max-width: 768px) {
  #symbiosis.section { max-height: 80vh; height: 400px; }
  #symbiosis .getmore { top: 31rem; }   /* 24rem→31rem：html 8px 时 192→248px，避开英文 4 行文本（bottom≈209px），间距与 PC 一致 */
  #symbiosis .road { top: auto; bottom: -25%; }
  #symbiosis .car { top: auto; bottom: -20%; }
  #symbiosis .ani-car { bottom: 50%; width: 40%; }
  #symbiosis .ani-car2 { width: 50%; }
  #symbiosis .ani-car3 { width: 50%; animation-name: car-in, shine; }
  #symbiosis .car-part { top: auto; bottom: -25%; }
  #symbiosis .s-56 { left: 10%; }
  #symbiosis .s-30 { left: 10%; }
  #symbiosis .getmore { left: 10%; }

  @keyframes car-in {
    from { left: 125%; bottom: 30%; }
    to   { left: 50%;  bottom: 0; }
  }
  @keyframes car-out {
    from { left: 50%;  bottom: 0; }
    to   { left: -50%; bottom: -35%; }
  }
}

/* ==================== CoCreation.vue ==================== */
#co-creation.section {
  width: 100%;
  height: 100vh;
  max-height: 55vw;
  position: relative;
  overflow: hidden;
}

#co-creation .section-txt {
  position: absolute;
  top: 8.25rem;                     /* pxTorem(132) */
  left: 13.6%;
  letter-spacing: calc(var(--letterSpacing) * 0.3);
  z-index: 8;
}
#co-creation .section-txt h3 {
  margin-bottom: 20px;
  font-size: 1.875rem;              /* pxTorem(30) */
}
#co-creation .section-txt p {
  font-size: 1.375rem;              /* pxTorem(22) */
}

#co-creation button.build {
  display: block;
  background-color: #0082e6;
  color: #fff;
  padding: 0.25rem 1.5625rem;       /* pxTorem(4/25) */
  font-size: 1rem;                  /* pxTorem(16) */
  margin-top: 2rem;
  z-index: 3;
  border: none;
}
#co-creation button.scene {
  display: block;
  background-color: #0082e6;
  position: absolute;
  color: #fff;
  padding: 0.25rem 1.5625rem;
  font-size: 1rem;
  top: 20rem;                       /* pxTorem(320) */
  left: 13.6%;
  z-index: 3;
  border: none;
}

#co-creation .cover {
  position: absolute;
  bottom: 0px;
  width: 100%;
}

.slide-fade-enter-active { transition: all 0.3s ease-out; }
.slide-fade-leave-active { transition: all 0.8s cubic-bezier(1, 0.5, 0.8, 1); }
.slide-fade-enter-from,
.slide-fade-leave-to { transform: translateX(20px); opacity: 0; }

@media screen and (max-width: 768px) {
  #co-creation.section { max-height: 50vh; }
  #co-creation .section-txt { left: 10%; }
}

/* ==================== WinWin.vue ==================== */
#win-win.section {
  display: flex;
  flex-direction: column;
}

#win-win .develop {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  top: 12.5rem;                     /* pxTorem(200)，源码无 position，此值不生效，忠实保留 */
  flex: 1;
}

#win-win .develop .about {
  display: block;
  height: 70%;
  padding-left: 13.6%;
  background-color: #000;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  position: relative;
  letter-spacing: calc(var(--letterSpacing) * 0.3);
  width: 65%;
  padding-top: 4.375rem;            /* pxTorem(70) */
  padding-bottom: 4.375rem;
}
/* 背景图只挂在 ::after（opacity 0.8），.about 本体只有黑底 —— 与源码一致，
   不能把背景图写到 .about 上（会被 ::after 黑底盖住变成纯黑） */
#win-win .develop .about::after {
  content: ' ';
  display: block;
  background-image: url('/assets/home/home-about-bg.png');
  background-color: #000;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0.8;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 0;
}

#win-win .develop .about h2 {
  margin: 15% 0 3.125rem 0;         /* pxTorem(50) */
  font-size: 3rem;                  /* pxTorem(48) */
  z-index: 1;
  position: relative;
}
#win-win .develop .about h3 {
  font-size: 1.75rem;               /* pxTorem(28) */
  margin-bottom: 1.25rem;           /* pxTorem(20) */
  padding-right: 10%;
  line-height: 1.5;
  z-index: 1;
  position: relative;
}
#win-win .develop .about p {
  padding-right: 10%;
  line-height: 1.5;
  letter-spacing: 2px;
  opacity: 0.4;
  z-index: 1;
  position: relative;
}

/* .news 是 absolute（不定位的 .develop 使其锚定到 .section，与 Vue 一致） */
#win-win .develop .news {
  position: absolute;
  width: 35%;
  height: 100%;
  padding: 3rem;
  background-color: #1b1b1b;
  right: 0;
  overflow: auto;
}

#win-win .develop .news .title {
  font-size: 1.875rem;              /* pxTorem(30) */
  padding-bottom: 1.875rem;         /* pxTorem(30) */
  letter-spacing: calc(var(--letterSpacing) * 0.3);
}

#win-win .develop .news ul li {
  border-top: 1px solid #666;
  padding: 1.25rem 0;               /* pxTorem(20) */
}
#win-win .develop .news ul li h3 {
  font-size: 1.5rem;                /* pxTorem(24) */
  margin: 1.875rem 0;               /* pxTorem(30) */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
}
#win-win .develop .news ul li a {
  color: #fff;
  display: inline-block;
}
#win-win .develop .news ul li a img {
  margin-left: 0.625rem;            /* pxTorem(10) */
}

#win-win .txt {
  letter-spacing: calc(var(--letterSpacing) * 0.15);
  padding-right: 5%;
}

/* bottom-shadow（WinWin 内的 30% 高度版，覆盖全局 .bottom-shadow 的 50vh） */
#win-win .bottom-shadow {
  height: 30%;
  background-image: url('/assets/home/winwin-shadow.png');
}
#win-win .bottom-shadow > div {
  padding: 6.625rem 0;              /* pxTorem(106) */
}
#win-win .bottom-shadow > div:last-child::after { z-index: -1; }
/* Vue 源码里标题/按钮都是 div，靠 .bottom-shadow > div > div 命中；
   H5 的"查看详情"是 <a class="btn-block">，需一并纳入（padding-left 27.2%
   + :last-child 的 margin-top 2.5rem），否则按钮贴到区块左边缘 */
#win-win .bottom-shadow > div > div,
#win-win .bottom-shadow > div > a.btn-block { padding-left: 27.2%; }
#win-win .bottom-shadow > div > a.btn-block { margin-top: 2.5rem; flex-grow: 0; }

#win-win .news-btn {
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
#win-win .news-btn:hover { color: #2a609f; }

@media screen and (max-width: 768px) {
  #win-win.section { max-height: unset; height: auto; }
  #win-win .develop .about { width: 100%; padding-left: 10%; }
  #win-win .develop .news { position: relative; width: 100%; height: auto; padding-left: 10%; }
  #win-win .bottom-shadow > div:nth-child(n) { display: none; }
  #win-win .bottom-shadow > div:first-child { display: block; }
  #win-win .bottom-shadow > div > div,
  #win-win .bottom-shadow > div > a.btn-block { padding-left: 10%; }
}

/* ==================== Map.vue ==================== */
#map {
  height: 12.5rem;                  /* pxTorem(200)（模板内联 fit-content 覆盖） */
}
#map .map-btn {
  text-align: center;
  font-weight: lighter;
  position: relative;
  background-image: url('/assets/home/map-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 1rem 0;
  cursor: pointer;
}
#map .map-btn::after {
  content: '';
  display: block;
  width: 3rem;
  height: 0.2rem;
  background-color: #0381e6;
  margin: 1rem auto;
  border-radius: 2rem;
}
#map .map-btn:hover > svg,
#map .map-btn:hover::after { filter: invert(1); }
#map .map-btn > svg { display: inline-block; vertical-align: -0.125em; line-height: 1; }

#map .maps {
  padding: 0 14.3%;
  display: flex;
  align-items: center;
  height: 0;
  overflow: hidden;
  transition: all 0.5s;
}
#map .maps.show {
  padding: 5% 14.3%;
  height: fit-content;
}
#map .contact { width: 50%; }
#map .contact .contact-item {
  font-size: 1.2rem;
  line-height: 2;
  margin: 1rem 0;
}
#map .baidumap {
  width: 50%;
  display: flex;
  align-items: center;
}
#map .baidumap img { width: 100%; }

#map .contact-item:nth-child(-n + 3) { cursor: pointer; }
#map .contact-item:nth-child(-n + 3):hover { text-decoration: underline; }

@media screen and (max-width: 768px) {
  #map .maps.show { flex-direction: column; padding: 10%; }
  #map .maps > div { width: 100%; }
}

/* ====================================================================
   home/index.html 内联 style 抽离（SEO：避免内联 style）
   ==================================================================== */
#video-swiper .video-cover { object-fit: cover; }
#symbiosis .ws-prewrap, #co-creation .ws-prewrap, #win-win .ws-prewrap { white-space: pre-wrap; }
#symbiosis .w-full, #co-creation .w-full, #map .w-full { width: 100%; }
#co-creation.ls-0 { letter-spacing: 0 !important; }
#co-creation .tt-none { text-transform: none; }
#win-win .op-4 { opacity: 0.4; }
#win-win .btn-flex { display: flex; align-items: center; }
#win-win .divide { width: 0.5px; }
#win-win .news-more { font-size: 1rem; letter-spacing: normal; margin-left: 1rem; }
#map { height: fit-content; }
#map .map-btn { cursor: pointer; }
#map .map-icon-color { color: #0381e6; }
#map .baidumap { height: 50vh; }
