/* ==========================================================================
   蛋蛋不语 · 首页专属样式
   仅 index.html 加载
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: 96px 88px;
  overflow: hidden;
}

/* 顶部氛围光 */
.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  right: -140px;
  width: 860px;
  height: 640px;
  background: radial-gradient(
    ellipse at center,
    rgba(185, 160, 255, 0.16) 0%,
    rgba(185, 160, 255, 0.05) 42%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  margin-bottom: 22px;
}

.hero__title {
  font-size: 52px;
  line-height: 1.3;
  text-wrap: balance;
}

.hero__lede {
  margin-top: 22px;
  max-width: 500px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__caption {
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-4);
}

/* Hero 视觉：桌面截图 + 手机模型叠放 */
.hero__visual {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
}

/* 桌面截图略收窄，为手机模型让出叠放空间 */
.hero__shot {
  width: 84%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.hero__phone {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 176px;
  padding: 8px;
  background: #0e0e14;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6);
}

.hero__phone img {
  width: 100%;
  border-radius: 18px;
}

/* --------------------------------------------------------------------------
   2. 平台矩阵
   -------------------------------------------------------------------------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.22s var(--ease);
}

.platform:hover {
  border-color: var(--accent-line);
}

.platform__icon {
  color: var(--accent);
}

.platform__icon svg {
  width: 28px;
  height: 28px;
}

.platform__name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #e4e0ee;
}

.overview-note {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--text-5);
}

/* --------------------------------------------------------------------------
   3. Explore 体验卡
   -------------------------------------------------------------------------- */
.explore-grid {
  display: grid;
  gap: 20px;
}

/* 第一行：2 张大卡 */
.explore-grid__row--2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* 第二行：3 张卡 */
.explore-grid__row--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.explore {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 258px;
  padding: 30px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.explore--tall {
  min-height: 283px;
}

.explore:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

.explore__num {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.explore__title {
  font-size: 26px;
  line-height: 1.35;
  color: var(--text-2);
}

.explore--compact .explore__title {
  font-size: 24px;
}

.explore__desc {
  font-size: 14.5px;
  line-height: 1.8;
  color: #9a94a9;
}

.explore--compact .explore__desc {
  font-size: 14px;
}

/* 底部标签 */
.explore__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.chip {
  padding: 6px 12px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: #c4bed2;
}

.explore__tag {
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-5);
}

/* --------------------------------------------------------------------------
   4. 深空横幅
   -------------------------------------------------------------------------- */
.banner {
  position: relative;
  padding: 84px 0;
  overflow: hidden;
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

.banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.banner__inner {
  position: relative;
  text-align: center;
}

.banner__title {
  margin-top: 16px;
  font-size: 34px;
}

.banner__sub {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   5. 下载 CTA 区（首页简版）
   -------------------------------------------------------------------------- */
.dl-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.22s var(--ease);
}

.dl-card:hover {
  border-color: var(--accent-line);
}

.dl-card__name {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text-2);
}

.dl-card__meta {
  font-size: 13px;
  color: var(--text-4);
}

.dl-card__link {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.notice {
  margin-top: 26px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-5);
}

/* --------------------------------------------------------------------------
   6. 光影留声（语录轮播）
   -------------------------------------------------------------------------- */
.quotes {
  position: relative;
}

.quotes__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.quotes__counter {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-5);
  font-variant-numeric: tabular-nums;
}

.quotes__stage {
  position: relative;
  min-height: 190px;
}

/* 当前语录 */
.quote-now {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-now__text {
  max-width: 900px;
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.55;
  color: var(--text-2);
}

.quote-now__source {
  font-size: 15px;
  color: var(--text-4);
}

/* 下一条预览（缩小淡出） */
.quote-next {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 34px;
  padding-left: 20px;
  border-left: 2px solid var(--line);
  opacity: 0.85;
}

.quote-next__text {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: #dcd7e6;
}

.quote-next__source {
  font-size: 12.5px;
  color: var(--text-5);
}

/* 切换动效 */
.quote-now.is-fading {
  animation: quoteFade 0.5s var(--ease);
}

@keyframes quoteFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 控制条 */
.quotes__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.quote-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s var(--ease), width 0.2s var(--ease);
}

.quote-dot.is-active {
  width: 22px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   7. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero__visual {
    height: auto;
    max-width: 720px;
  }

  .hero__phone {
    right: 0;
  }

  .platforms,
  .dl-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .explore-grid__row--2,
  .explore-grid__row--3 {
    grid-template-columns: 1fr;
  }

  .explore,
  .explore--tall {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-block: 56px 60px;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero__lede {
    font-size: 15.5px;
  }

  .hero__visual {
    padding-bottom: 40px;
  }

  .hero__phone {
    width: 132px;
    bottom: -12px;
  }

  .platforms,
  .dl-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform {
    padding: 20px 8px;
  }

  .quote-now__text {
    font-size: 22px;
    line-height: 1.6;
  }

  .quote-next {
    display: none;
  }
}
