/* ============================================================
   首页样式
   ============================================================ */

/* ---------- Hero ---------- */
.zy-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--zy-header-h) + 40px) 0 120px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #052438 0%, #0A4C7C 55%, #04131F 100%);
}

.zy-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.zy-hero-video-el {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* 视频实际可播放后再淡入，未加载或失败时保留渐变背景 */
.zy-hero-video-el.is-ready {
  opacity: 1;
}

.zy-hero-mask {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, rgba(4, 18, 30, 0.62) 0%, rgba(10, 76, 124, 0.28) 45%, rgba(4, 18, 30, 0.5) 100%),
    linear-gradient(to bottom, rgba(4, 18, 30, 0.35) 0%, rgba(4, 18, 30, 0) 38%, rgba(4, 18, 30, 0.55) 100%);
}

.zy-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 70% 40%, rgba(0, 0, 0, 0.7), transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 70% 40%, rgba(0, 0, 0, 0.7), transparent 72%);
}

.zy-hero-inner {
  position: relative;
  z-index: 2;
}

.zy-hero-content {
  max-width: 760px;
}

.zy-hero-tag {
  display: inline-block;
  padding: 8px 18px;
  margin-bottom: 26px;
  border-radius: var(--zy-radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  animation: zyFadeUp 0.9s var(--zy-ease) 0.1s both;
}

.zy-hero-title {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.12;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 26px;
  animation: zyFadeUp 0.9s var(--zy-ease) 0.25s both;
}

.zy-hero-title span {
  background-image: linear-gradient(120deg, #ffffff 0%, #D6ECFF 45%, #7FD0FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.zy-hero-desc {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  animation: zyFadeUp 0.9s var(--zy-ease) 0.4s both;
}

.zy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: zyFadeUp 0.9s var(--zy-ease) 0.55s both;
}

.zy-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 46px;
  margin-top: 66px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  animation: zyFadeUp 0.9s var(--zy-ease) 0.7s both;
}

.zy-hero-badge strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.zy-hero-badge span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 1px;
}

.zy-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.55);
}

.zy-hero-scroll i {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
  animation: zyScroll 1.8s ease-in-out infinite;
}

@keyframes zyFadeUp {
  from {
    opacity: 0;
    transform: translateY(42px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zyScroll {
  0%,
  100% {
    transform: scaleY(0.5);
    transform-origin: top;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
}

/* ---------- 功能特色 ---------- */
.zy-features {
  padding: 110px 0 100px;
  background: #fff;
}

.zy-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.zy-feature-card {
  position: relative;
  display: block;
  padding: 44px 34px 36px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--zy-line);
  box-shadow: 0 14px 40px rgba(10, 58, 102, 0.07);
  overflow: hidden;
  transition: transform 0.5s var(--zy-ease), box-shadow 0.5s var(--zy-ease), border-color 0.5s var(--zy-ease);
}

.zy-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(9, 149, 247, 0.1), rgba(77, 184, 255, 0.02) 46%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.5s var(--zy-ease);
}

.zy-feature-card:hover {
  transform: translateY(-12px);
  border-color: rgba(9, 149, 247, 0.32);
  box-shadow: 0 30px 60px rgba(10, 58, 102, 0.16);
}

.zy-feature-card:hover::before {
  opacity: 1;
}

.zy-feature-num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
  color: rgba(9, 149, 247, 0.07);
  transition: color 0.5s var(--zy-ease);
}

.zy-feature-card:hover .zy-feature-num {
  color: rgba(9, 149, 247, 0.16);
}

.zy-feature-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 26px;
  border-radius: 20px;
  color: var(--zy-primary-deep);
  background: linear-gradient(150deg, rgba(9, 149, 247, 0.12), rgba(77, 184, 255, 0.16));
  transition: all 0.5s var(--zy-ease);
}

.zy-feature-icon svg {
  width: 30px;
  height: 30px;
}

.zy-feature-card:hover .zy-feature-icon {
  color: #fff;
  background: var(--zy-grad);
  transform: rotate(-8deg) scale(1.06);
  box-shadow: var(--zy-shadow-glow);
}

.zy-feature-card h3 {
  position: relative;
  font-size: 21px;
  margin-bottom: 14px;
}

.zy-feature-card p {
  position: relative;
  font-size: 15px;
  line-height: 1.9;
  color: var(--zy-text-sub);
}

.zy-feature-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--zy-primary-deep);
}

.zy-feature-more i {
  font-style: normal;
  transition: transform 0.35s var(--zy-ease);
}

.zy-feature-card:hover .zy-feature-more i {
  transform: translateX(6px);
}

/* ---------- 区块标题左对齐 ---------- */
.zy-title-left {
  display: block;
}

.zy-title-left::after {
  left: 0;
  transform: none;
}

.zy-wiki-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 46px;
}

.zy-wiki-sub {
  margin-top: 30px;
  font-size: 15.5px;
  color: var(--zy-text-sub);
  max-width: 620px;
}

/* ---------- 百科卡片 ---------- */
.zy-wiki {
  padding: 96px 0;
}

.zy-wiki-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.zy-wiki-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--zy-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(9, 149, 247, 0.07);
  box-shadow: 0 12px 34px rgba(10, 58, 102, 0.08);
  transition: transform 0.5s var(--zy-ease), box-shadow 0.5s var(--zy-ease);
}

.zy-wiki-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--zy-shadow-lg);
}

.zy-wiki-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #E4F1FC, #C9E3F8);
}

.zy-wiki-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--zy-ease);
}

.zy-wiki-card:hover .zy-wiki-cover img {
  transform: scale(1.08);
}

.zy-wiki-cat {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 14px;
  border-radius: var(--zy-radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(6, 102, 168, 0.82);
  backdrop-filter: blur(6px);
}

.zy-wiki-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.zy-wiki-body h3 {
  font-size: 17.5px;
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s var(--zy-ease);
}

.zy-wiki-card:hover .zy-wiki-body h3 {
  color: var(--zy-primary-deep);
}

.zy-wiki-body p {
  flex: 1;
  font-size: 14px;
  line-height: 1.8;
  color: var(--zy-text-mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zy-wiki-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--zy-line);
  font-size: 12.5px;
  color: var(--zy-text-mute);
}

.zy-wiki-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zy-wiki-meta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ---------- 数据统计 ---------- */
.zy-stats {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background-image: radial-gradient(circle at 20% 20%, rgba(9, 149, 247, 0.55), rgba(4, 22, 36, 0) 55%),
    radial-gradient(circle at 85% 80%, rgba(77, 184, 255, 0.28), rgba(4, 22, 36, 0) 50%);
  background-color: #0A2438;
}

.zy-title-light {
  color: #fff;
}

.zy-stats .zy-eyebrow {
  color: #BFE1FB;
  background: rgba(255, 255, 255, 0.1);
}

.zy-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.zy-stat-card {
  padding: 46px 24px;
  text-align: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: all 0.45s var(--zy-ease);
}

.zy-stat-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(77, 184, 255, 0.5);
  transform: translateY(-8px);
}

.zy-stat-num {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 1px;
  background-image: linear-gradient(120deg, #fff, #7FD0FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.zy-stat-label {
  font-size: 14.5px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- 帖子卡片 ---------- */
.zy-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.zy-post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--zy-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(9, 149, 247, 0.07);
  box-shadow: 0 12px 34px rgba(10, 58, 102, 0.08);
  transition: transform 0.5s var(--zy-ease), box-shadow 0.5s var(--zy-ease);
}

.zy-post-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--zy-shadow-lg);
}

.zy-post-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #071B2B;
}

.zy-post-cover img,
.zy-post-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--zy-ease);
}

.zy-post-card:hover .zy-post-cover img,
.zy-post-card:hover .zy-post-cover video {
  transform: scale(1.07);
}

.zy-post-play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
  background: rgba(6, 102, 168, 0.95);
  box-shadow: 0 10px 24px rgba(6, 102, 168, 0.4);
}

.zy-post-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.zy-post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.zy-post-author strong {
  display: block;
  font-size: 14.5px;
  color: var(--zy-text);
}

.zy-post-author em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--zy-text-mute);
}

.zy-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--zy-grad);
  flex-shrink: 0;
}

.zy-avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

.zy-post-body h3 {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zy-post-body p {
  flex: 1;
  font-size: 14px;
  line-height: 1.8;
  color: var(--zy-text-mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zy-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--zy-text-mute);
}

/* ---------- 评价卡 ---------- */
.zy-testimonials {
  padding: 100px 0;
}

.zy-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.zy-testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid transparent;
  box-shadow: 0 14px 40px rgba(10, 58, 102, 0.08);
  overflow: hidden;
  transition: all 0.5s var(--zy-ease);
}

.zy-testimonial-card:hover {
  transform: translateY(-12px);
  border-color: rgba(9, 149, 247, 0.28);
  box-shadow: 0 30px 60px rgba(10, 58, 102, 0.18);
}

.zy-quote {
  position: absolute;
  top: 10px;
  right: 26px;
  font-family: Georgia, serif;
  font-size: 96px;
  line-height: 1;
  color: rgba(9, 149, 247, 0.1);
  transition: color 0.5s var(--zy-ease);
}

.zy-testimonial-card:hover .zy-quote {
  color: rgba(9, 149, 247, 0.2);
}

.zy-testimonial-text {
  position: relative;
  flex: 1;
  font-size: 16px;
  line-height: 1.9;
  color: #1E3A55;
  margin-bottom: 26px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zy-testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.zy-testimonial-author strong {
  display: block;
  font-size: 15px;
}

.zy-testimonial-author em {
  font-style: normal;
  font-size: 13px;
  color: var(--zy-text-mute);
}

.zy-testimonial-hover {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--zy-line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--zy-primary-deep);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.45s var(--zy-ease);
}

.zy-testimonial-card:hover .zy-testimonial-hover {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- CTA ---------- */
.zy-cta {
  padding: 0 0 110px;
}

.zy-cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 64px 60px;
  border-radius: 30px;
  overflow: hidden;
  color: #fff;
  background-image: radial-gradient(circle at 88% 20%, rgba(77, 184, 255, 0.38), rgba(6, 102, 168, 0) 46%);
  background-color: #0A4C7C;
  box-shadow: 0 30px 70px rgba(6, 102, 168, 0.28);
}

.zy-cta-card::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.08);
}

.zy-cta-text h2 {
  font-size: 34px;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 14px;
}

.zy-cta-text p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.78);
}

.zy-cta-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.zy-cta-actions .zy-btn {
  background: #fff;
  color: var(--zy-primary-deep);
  box-shadow: 0 16px 34px rgba(6, 30, 48, 0.24);
}

.zy-cta-actions .zy-btn:hover {
  color: var(--zy-primary-deep);
}

.zy-cta-actions .zy-btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .zy-wiki-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zy-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zy-feature-grid {
    grid-template-columns: 1fr;
  }

  .zy-post-grid,
  .zy-testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zy-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 40px;
  }
}

@media (max-width: 760px) {
  .zy-hero {
    min-height: auto;
    padding: calc(var(--zy-header-h) + 60px) 0 90px;
  }

  .zy-hero-desc {
    font-size: 16px;
  }

  .zy-hero-badges {
    gap: 26px;
    margin-top: 44px;
  }

  .zy-hero-badge strong {
    font-size: 20px;
  }

  .zy-hero-scroll {
    display: none;
  }

  .zy-features,
  .zy-wiki,
  .zy-stats,
  .zy-testimonials {
    padding: 64px 0;
  }

  .zy-wiki-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .zy-wiki-grid,
  .zy-post-grid,
  .zy-testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* 统计区：手机上一列排 4 张卡会占掉 1.3 屏（实测 1087px），
     改成 2×2 并压紧内边距，既保留数字节奏又不拖长页面。 */
  .zy-stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .zy-stat-card {
    padding: 26px 12px;
    border-radius: 16px;
  }

  .zy-stat-num {
    font-size: 27px;
    letter-spacing: 0;
    margin-bottom: 6px;
  }

  .zy-stat-label {
    font-size: 12.5px;
    letter-spacing: 0;
  }

  /* 「点击查看详情」只在 hover 时出现，但 opacity:0 仍占 43px 文档流，
     手机上表现为卡片底部一块固定空白。触屏没有 hover，直接不渲染。 */
  .zy-testimonial-hover {
    display: none;
  }

  .zy-cta {
    padding-bottom: 70px;
  }

  .zy-cta-card {
    padding: 36px 26px;
    border-radius: 22px;
  }

  .zy-cta-text h2 {
    font-size: 24px;
  }

  .zy-cta-actions {
    width: 100%;
    flex-direction: column;
  }
}
