.page-home {
  background: #ffffff;
}

.home-main {
  background: #ffffff;
  color: #191c1e;
}

.home-hero {
  position: relative;
  min-height: 960px;
  overflow: hidden;
  background: linear-gradient(167deg, rgba(216, 226, 255, 0.4), rgba(223, 220, 253, 0.6) 50%, rgba(247, 249, 251, 0.8));
}

.home-hero__bg {
  position: absolute;
  inset: 0 -42%;
  background: var(--home-hero-image, url("../../images/home-hero-bg.png")) center top / cover no-repeat;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  padding-top: 168px;
  text-align: center;
}

.home-hero h1 {
  color: #ffffff;
  font-size: 64px;
  font-weight: 700;
  line-height: 72px;
}

.home-hero p {
  width: min(672px, 100%);
  margin: 0 auto;
  padding-top: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.home-hero__video {
  position: relative;
  display: grid;
  place-items: center;
  width: min(896px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  margin-top: 104px;
  border: 1px solid rgba(193, 198, 215, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.home-hero__video::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
}

.home-hero__play {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 88, 188, 0.9);
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.home-hero__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #ffffff;
  transform: translate(-38%, -50%);
}

.home-hero__video span {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: #191c1e;
  font-size: 14px;
  line-height: 20px;
}

.home-stats {
  padding: 96px 0;
  background:
    radial-gradient(circle at center, rgba(0, 88, 188, 0.05) 0 4%, transparent 4%),
    #ffffff;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.home-section-head h2,
.home-pricing__head h2 {
  color: #191c1e;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
}

.home-section-head p,
.home-pricing__head p {
  margin-top: 16px;
  color: #414755;
  font-size: 16px;
  line-height: 24px;
}

.home-stats__head > span {
  display: block;
  width: 48px;
  height: 4px;
  background: #0058bc;
}

.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.home-stat {
  min-height: 198px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 24px rgba(0, 88, 188, 0.04);
  backdrop-filter: blur(6px);
}

.home-stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 88, 188, 0.1);
}

.home-stat__icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.home-stat--violet .home-stat__icon {
  background: rgba(223, 220, 253, 0.5);
}

.home-stat--sky .home-stat__icon {
  background: rgba(212, 227, 255, 0.6);
}

.home-stat--rose .home-stat__icon {
  background: rgba(255, 218, 214, 0.45);
}

.home-stat strong {
  display: block;
  margin-top: 24px;
  color: #191c1e;
  font-size: 30px;
  line-height: 36px;
}

.home-stat span {
  display: block;
  margin-top: 4px;
  color: rgba(65, 71, 85, 0.6);
  font-size: 14px;
  line-height: 20px;
}

.home-features {
  padding: 128px 0;
  background: rgba(242, 244, 246, 0.46);
}

.home-features__inner,
.home-tech__inner {
  display: grid;
  gap: 160px;
}

.home-feature-row,
.home-tech-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 96px;
  align-items: center;
}

.home-feature-row.is-reverse .home-feature-row__media,
.home-tech-row.is-reverse .home-tech-row__media {
  order: 2;
}

.home-feature-row__media,
.home-tech-row__media {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 20px 60px rgba(0, 88, 188, 0.1);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.home-feature-row__media img {
  width: 100%;
  aspect-ratio: 562 / 335;
  object-fit: cover;
  padding: 9px;
}

.home-eyebrow,
.home-tech-row__copy span {
  display: inline-flex;
  margin-bottom: 32px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(0, 88, 188, 0.1);
  color: #0058bc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.home-feature-row__copy h2,
.home-tech-row__copy h2 {
  color: #191c1e;
  font-size: 36px;
  line-height: 45px;
}

.home-feature-row__copy p,
.home-tech-row__copy p {
  margin-top: 32px;
  color: rgba(65, 71, 85, 0.8);
  font-size: 18px;
  line-height: 29px;
}

.home-feature-row__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
  padding-top: 17px;
  border-top: 1px solid rgba(193, 198, 215, 0.3);
}

.home-feature-row__metrics strong {
  display: block;
  color: #0058bc;
  font-size: 20px;
  line-height: 28px;
}

.home-feature-row__metrics span {
  display: block;
  margin-top: 4px;
  color: #414755;
  font-size: 14px;
  line-height: 20px;
}

.home-feature-link {
  display: inline-block;
  margin-top: 32px;
  color: #0058bc;
  font-weight: 700;
}

.home-feature-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.home-feature-card {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 88, 188, 0.08);
  overflow: hidden;
}

.home-feature-card img {
  width: 100%;
  aspect-ratio: 518 / 324;
  object-fit: cover;
  padding: 32px 32px 0;
}

.home-feature-card div {
  padding: 24px 32px 32px;
}

.home-feature-card h3 {
  color: #191c1e;
  font-size: 24px;
  line-height: 32px;
}

.home-feature-card p {
  margin-top: 12px;
  color: rgba(65, 71, 85, 0.8);
  font-size: 16px;
  line-height: 24px;
}

.home-tech {
  padding: 128px 0;
  background: #ffffff;
}

.home-tech-row__media {
  background: #05070f;
}

.home-tech-row__media img {
  width: 100%;
  aspect-ratio: 682 / 392;
  object-fit: cover;
  padding: 13px;
}

.home-future-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.home-future-card {
  position: relative;
  min-height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: #05070f;
}

.home-future-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-future-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72));
}

.home-future-card div {
  position: absolute;
  z-index: 1;
  left: 40px;
  right: 40px;
  bottom: 40px;
  color: #ffffff;
}

.home-future-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 16px;
}

.home-future-card h3 {
  margin-top: 8px;
  font-size: 24px;
  line-height: 32px;
}

.home-future-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 20px;
}

.home-pricing {
  padding: 88px 0 108px;
  background: rgba(242, 244, 246, 0.46);
}

.home-pricing__head {
  text-align: center;
}

.home-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.home-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  padding: 32px;
  border: 1px solid rgba(193, 198, 215, 0.6);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(0, 88, 188, 0.08);
}

.home-price-card.is-featured {
  border-color: rgba(0, 88, 188, 0.45);
  transform: translateY(-10px);
}

.home-price-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #0058bc;
  color: #ffffff;
  font-size: 12px;
  line-height: 16px;
}

.home-price-card__icon {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 30px;
  height: 29px;
}

.home-price-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-price-card h3 {
  margin-top: 8px;
  color: #191c1e;
  font-size: 24px;
  line-height: 32px;
}

.home-price-card p {
  margin-top: 8px;
  color: #414755;
  font-size: 14px;
  line-height: 20px;
}

.home-price-card__price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 28px;
}

.home-price-card__price strong {
  color: #191c1e;
  font-size: 38px;
  line-height: 44px;
}

.home-price-card__price span {
  padding-bottom: 7px;
  color: #414755;
  font-size: 14px;
}

.home-price-card ul {
  display: grid;
  gap: 16px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.home-price-card li {
  color: #414755;
  font-size: 15px;
  line-height: 22px;
}

.home-price-card li::before {
  content: "✓";
  margin-right: 10px;
  color: #0058bc;
  font-weight: 700;
}

.home-price-card .btn {
  margin-top: auto;
  width: 100%;
}

.home-cta {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
  overflow: hidden;
  background: #05070f;
}

.home-cta__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 15, 0.16), rgba(5, 7, 15, 0.52)),
    var(--home-cta-image, url("../../images/home-cta-bg.png")) center / cover no-repeat;
}

.home-cta__inner {
  position: relative;
  z-index: 1;
  width: min(896px, calc(100% - 40px));
  text-align: center;
}

.home-cta h2 {
  color: #ffffff;
  font-size: 48px;
  line-height: 1.18;
}

.home-cta__actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.home-cta .btn {
  min-width: 186px;
  min-height: 70px;
  font-size: 18px;
}

@media (max-width: 1024px) {
  .home-hero__inner {
    width: calc(100% - 48px);
  }

  .home-hero h1 {
    font-size: 48px;
    line-height: 58px;
  }

  .home-stats__grid,
  .home-pricing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feature-row,
  .home-tech-row {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: 760px;
  }

  .home-hero__inner {
    padding-top: 126px;
  }

  .home-hero h1 {
    font-size: 36px;
    line-height: 44px;
  }

  .home-hero p {
    margin-top: 16px;
    font-size: 16px;
    line-height: 26px;
  }

  .home-hero__video {
    margin-top: 56px;
  }

  .home-section-head,
  .home-feature-row,
  .home-tech-row,
  .home-feature-card-grid,
  .home-future-grid,
  .home-pricing__grid {
    grid-template-columns: 1fr;
  }

  .home-section-head {
    display: grid;
  }

  .home-feature-row.is-reverse .home-feature-row__media,
  .home-tech-row.is-reverse .home-tech-row__media {
    order: 0;
  }

  .home-stats__grid {
    grid-template-columns: 1fr;
  }

  .home-features,
  .home-tech {
    padding: 80px 0;
  }

  .home-features__inner,
  .home-tech__inner {
    gap: 80px;
  }

  .home-feature-row__copy h2,
  .home-tech-row__copy h2,
  .home-section-head h2,
  .home-pricing__head h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .home-feature-row__copy p,
  .home-tech-row__copy p {
    font-size: 16px;
    line-height: 26px;
  }

  .home-price-card.is-featured {
    transform: none;
  }

  .home-cta h2 {
    font-size: 34px;
  }

  .home-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .home-feature-row__metrics {
    grid-template-columns: 1fr;
  }

  .home-feature-card img {
    padding: 20px 20px 0;
  }

  .home-feature-card div,
  .home-price-card {
    padding: 24px;
  }

  .home-future-card div {
    left: 24px;
    right: 24px;
    bottom: 28px;
  }
}

@keyframes home-ambient-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.home-hero__video {
  animation: home-ambient-float 6.4s ease-in-out infinite;
}

.home-stat,
.home-feature-row__media,
.home-tech-row__media,
.home-feature-card,
.home-future-card,
.home-price-card {
  transition:
    transform var(--motion-medium) var(--motion-ease-out),
    box-shadow var(--motion-medium) ease,
    border-color var(--motion-fast) ease;
}

.home-feature-row__media img,
.home-tech-row__media img,
.home-feature-card img,
.home-future-card img {
  transition: transform var(--motion-slow) var(--motion-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .home-stat:hover,
  .home-feature-card:hover,
  .home-future-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 58px rgba(0, 88, 188, 0.13);
  }

  .home-feature-row__media:hover,
  .home-tech-row__media:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 68px rgba(0, 88, 188, 0.14);
  }

  .home-feature-row__media:hover img,
  .home-tech-row__media:hover img,
  .home-feature-card:hover img {
    transform: scale(1.018);
  }

  .home-future-card:hover img {
    transform: scale(1.035);
  }

  .home-price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 88, 188, 0.35);
    box-shadow: 0 24px 58px rgba(0, 88, 188, 0.13);
  }

  .home-price-card.is-featured:hover {
    transform: translateY(-14px);
  }
}

@media (max-width: 768px) {
  .home-hero__video {
    animation: none;
  }

  .home-stat,
  .home-feature-row__media,
  .home-tech-row__media,
  .home-feature-card,
  .home-future-card,
  .home-price-card {
    transition-duration: var(--motion-fast);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__video {
    animation: none;
  }
}

/* 首页产品演示视频弹窗 */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.demo-modal.is-open {
  display: flex;
}

.demo-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 15, 0.55);
  backdrop-filter: blur(6px);
}

.demo-modal__panel {
  position: relative;
  width: 100%;
  max-width: 960px;
  border-radius: var(--radius-lg);
  background: #0b1220;
  box-shadow: 0 30px 80px rgba(5, 18, 40, 0.45);
  overflow: hidden;
}

.demo-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  transition: background 160ms ease;
}

.demo-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.demo-modal__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b1220;
}

@media (max-width: 768px) {
  .demo-modal {
    padding: 12px;
  }
}
