/* 首页 Banner 以下区域的专属布局，不影响其他页面。 */

.home-section {
  --home-ink: #20202a;
  --home-muted: #706d78;
  --home-line: rgba(32, 32, 42, 0.1);
  --home-paper: #f7f4f1;
  position: relative;
  padding-block: clamp(5rem, 9vw, 8.75rem);
}

.home-section .container,
.home-metrics .container,
.home-contact .container {
  max-width: 1240px;
}

.home-section__heading {
  max-width: none;
  margin-inline: 0;
  text-align: left;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.home-section__heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
}

.home-section__heading h2 {
  max-width: 13ch;
  margin: 1.15rem 0 0;
  background: none;
  color: var(--home-ink);
  -webkit-text-fill-color: currentColor;
  font-size: clamp(2.4rem, 5vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.home-section__heading > p {
  max-width: 34rem;
  margin: 0 0 0.35rem;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.8;
  text-wrap: pretty;
}

.home-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1D4ED8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.home-section__eyebrow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

/* 能力矩阵：一张主卡配合紧凑的信息单元。 */
.home-capabilities {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.09), transparent 24rem),
    var(--home-paper);
}

.home-capabilities::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(32, 32, 42, 0.22) 0.55px, transparent 0.55px);
  background-size: 9px 9px;
  mask-image: linear-gradient(to bottom, #000, transparent 42%);
}

.home-capabilities__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(22rem, 1.08fr) repeat(2, minmax(0, 0.72fr));
  grid-template-rows: repeat(4, minmax(8.25rem, auto));
  gap: 0;
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
}

.home-capabilities .bento-card {
  min-height: 0;
  padding: 1.55rem 1.65rem;
  border: 0;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
  transition: background 220ms ease, transform 220ms ease;
}

.home-capabilities .bento-card::before {
  display: none;
}

.home-capabilities .bento-card:hover {
  z-index: 1;
  transform: translateY(-3px);
  border-color: var(--home-line);
  background: #fff;
  box-shadow: 0 18px 42px rgba(80, 45, 35, 0.09);
}

.home-capabilities .bento-card--hero {
  grid-column: 1;
  grid-row: 1 / 5;
  justify-content: flex-end;
  padding: clamp(2rem, 4vw, 3.6rem);
  overflow: hidden;
  color: #fff;
  background: #2563EB;
}

.home-capabilities .bento-card--hero::after {
  content: '';
  position: absolute;
  width: 25rem;
  aspect-ratio: 1;
  top: -10rem;
  right: -9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 3.5rem rgba(255, 255, 255, 0.035), 0 0 0 7rem rgba(255, 255, 255, 0.025);
}

.home-capabilities .bento-card--hero:hover {
  background: #1D4ED8;
}

.bento-card__kicker,
.bento-card__number {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.bento-card__kicker {
  position: absolute;
  top: 2rem;
  left: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.bento-card__number {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  color: rgba(32, 32, 42, 0.38);
  font-variant-numeric: tabular-nums;
}

.home-capabilities .bento-card__icon {
  width: 2.45rem;
  height: 2.45rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 0.65rem;
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1D4ED8 !important;
}

.home-capabilities .bento-card__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 1.8;
}

.home-capabilities .bento-card--hero .bento-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.home-capabilities .bento-card__title {
  max-width: 15ch;
  margin-bottom: 0.45rem;
  color: var(--home-ink);
  font-size: 1rem;
  line-height: 1.25;
}

.home-capabilities .bento-card__desc {
  color: var(--home-muted);
  line-height: 1.55;
}

.home-capabilities .bento-card--hero .bento-card__title {
  max-width: 9ch;
  color: #fff;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.home-capabilities .bento-card--hero .bento-card__desc {
  max-width: 26rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

.home-capabilities .bento-card--hero .btn {
  width: fit-content;
  margin-top: 2rem !important;
  border: 0;
  border-radius: 0.7rem;
  background: #fff;
  color: #1D4ED8;
}

/* 产品界面：用编辑台式边框替代普通大图卡片。 */
.home-preview {
  background: #fff;
}

.home-preview .product-preview {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  max-width: none;
  margin: 0;
  border: 1px solid var(--home-line);
  border-radius: 0.4rem;
  background: #f0ece8;
  box-shadow: 0 34px 70px rgba(48, 38, 35, 0.12);
}

.product-preview__rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-right: 1px solid var(--home-line);
  color: rgba(32, 32, 42, 0.5);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.home-preview .product-preview img {
  width: 100%;
  min-width: 0;
}

/* 场景展示：首项横跨，后两项并排，压缩无效滚动距离。 */
.home-showcases {
  overflow: hidden;
  background: var(--home-paper);
}

.home-showcases .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-showcases .home-section__heading {
  grid-column: 1 / -1;
}

.home-showcases .showcase {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.home-showcases .showcase--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  align-items: stretch;
}

.home-showcases .showcase__content {
  order: 2;
  max-width: none;
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: left;
}

.home-showcases .showcase--lead .showcase__content {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 29rem;
}

.home-showcases .showcase__visual,
.home-showcases .showcase:nth-child(even) .showcase__visual {
  order: 1;
  min-height: 20rem;
  overflow: hidden;
  background: #f1ece8;
}

.home-showcases .showcase--lead .showcase__visual {
  order: 2;
  min-height: 29rem;
}

.home-showcases .showcase__image,
.home-showcases .showcase__video-wrapper,
.home-showcases .runtime-visual {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: inherit;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

.home-showcases .showcase__image:hover {
  transform: scale(1.015);
  box-shadow: none;
}

.home-showcases .showcase__index {
  display: block;
  margin-bottom: auto;
  padding-bottom: 2rem;
  color: #1D4ED8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.home-showcases .showcase__content h3 {
  margin-bottom: 1rem;
  color: var(--home-ink);
  font-size: clamp(1.75rem, 3vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.home-showcases .showcase:not(.showcase--lead) .showcase__content h3 {
  font-size: clamp(1.65rem, 2.3vw, 2.35rem);
}

.home-showcases .gradient-text {
  background: none;
  color: #2563EB;
  -webkit-text-fill-color: currentColor;
}

.home-showcases .showcase__content p {
  max-width: 35rem;
  color: var(--home-muted);
  line-height: 1.75;
}

.home-showcases .showcase__tag {
  border: 0;
  border-radius: 0.45rem;
  background: rgba(37, 99, 235, 0.08);
  color: #1D4ED8;
}

/* 数据区：紧凑的横向规模展示，避免标题和数字被过度切割。 */
.home-metrics {
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
  background: #fff;
}

.home-metrics::before {
  display: none;
}

.home-metrics__panel {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.8fr);
  align-items: end;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.home-metrics__intro {
  padding-bottom: 1.75rem;
}

.home-metrics__intro span {
  color: #1D4ED8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
}

.home-metrics__intro p {
  max-width: 15ch;
  margin: 1.4rem 0 0;
  color: var(--home-ink);
  font-size: clamp(1.65rem, 2.7vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-metrics .stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 0;
  border-top: 1px solid rgba(32, 32, 42, 0.14);
}

.home-metrics .stat-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 12rem;
  padding: 2rem clamp(0.8rem, 1.6vw, 1.5rem) 1.75rem;
  border-right: 1px solid rgba(32, 32, 42, 0.1);
  text-align: left;
  transition: background 220ms ease, transform 220ms ease;
}

.home-metrics .stat-item:nth-child(2n) {
  border-right: 0;
}

.home-metrics .stat-item:first-child {
  padding-left: 0;
}

.home-metrics .stat-item:hover {
  background: #f7f4f1;
  transform: translateY(-3px);
}

.home-metrics .stat-item__number {
  margin-bottom: 1rem;
  color: var(--home-ink);
  font-size: clamp(2.35rem, 4vw, 3.1rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.home-metrics .stat-item__number span {
  background: none;
  color: var(--home-ink);
  -webkit-text-fill-color: currentColor;
}

.home-metrics .stat-item__label {
  color: var(--home-muted);
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0.04em;
}

/* 联系区域：标题和入口收进一个完整面板，桌面端保持同屏。 */
.home-contact {
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
  text-align: left;
  background: #eee9e4;
}

.home-contact .container {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(27rem, 1.15fr);
  align-items: stretch;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(2.25rem, 5vw, 4.5rem);
  border-radius: 1.25rem;
  background: #20202a;
}

.home-contact__heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  margin: 0;
  text-align: left;
}

.home-contact .home-section__eyebrow {
  color: #60A5FA;
}

.home-contact__heading h2 {
  max-width: 11ch;
  margin: 1.25rem 0 1.1rem;
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(2.55rem, 4.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.home-contact__heading p {
  max-width: 27rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
}

.home-contact .contact-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.home-contact .contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  box-shadow: none;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.home-contact .contact-card:first-child {
  grid-row: auto;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto;
  align-items: center;
  padding: 1.35rem 1.5rem;
  background: rgba(37, 99, 235, 0.16);
}

.home-contact .contact-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: none;
  transform: translateY(-3px);
}

.home-contact .contact-card:first-child:hover {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(37, 99, 235, 0.24);
}

.home-contact .contact-card__icon {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  color: #60A5FA;
}

.home-contact .contact-card:first-child .contact-card__icon {
  grid-column: auto;
  width: 3rem;
  height: 3rem;
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(96, 165, 250, 0.12);
  color: #93C5FD;
}

.contact-card__copy {
  min-width: 0;
}

.home-contact .contact-card__title {
  margin-bottom: 0.3rem;
  color: #fff;
  font-size: 1.05rem;
}

.home-contact .contact-card:first-child .contact-card__copy {
  grid-column: auto;
  align-self: auto;
  padding-top: 0;
}

.home-contact .contact-card:first-child .contact-card__title {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.home-contact .contact-card__desc {
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.55;
}

.home-contact .contact-card:first-child .contact-card__desc {
  max-width: none;
  color: rgba(255, 255, 255, 0.64);
}

.contact-card__arrow {
  width: 1.2rem;
  height: 1.2rem;
  color: #60A5FA;
  transition: transform 220ms ease;
}

.home-contact .contact-card:first-child .contact-card__arrow {
  grid-column: auto;
  grid-row: auto;
  color: #93C5FD;
}

.home-contact .contact-card:hover .contact-card__arrow {
  transform: translate(3px, -3px);
}

@media (max-width: 900px) {
  .home-section__heading--split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-section__heading h2,
  .home-contact__heading h2 {
    max-width: 15ch;
  }

  .home-capabilities__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .home-capabilities .bento-card--hero {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 28rem;
  }

  .home-showcases .showcase--lead {
    grid-template-columns: 1fr;
  }

  .home-showcases .showcase--lead .showcase__content,
  .home-showcases .showcase--lead .showcase__visual {
    min-height: 22rem;
  }

  .home-showcases .showcase--lead .showcase__content {
    order: 2;
  }

  .home-showcases .showcase--lead .showcase__visual {
    order: 1;
  }

  .home-metrics__panel {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .home-metrics__intro {
    max-width: 34rem;
    padding-bottom: 0;
  }

  .home-metrics__intro p {
    max-width: 18ch;
  }

  .home-contact .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .home-contact__heading {
    max-width: 38rem;
  }
}

@media (max-width: 640px) {
  .home-section {
    padding-block: 4.25rem;
  }

  .home-section__heading {
    margin-bottom: 2.5rem;
  }

  .home-section__heading h2,
  .home-contact__heading h2 {
    font-size: clamp(2.25rem, 12vw, 3.3rem);
  }

  .home-capabilities__grid,
  .home-showcases .container {
    grid-template-columns: 1fr;
  }

  .home-capabilities .bento-card--hero,
  .home-showcases .showcase,
  .home-showcases .showcase--lead,
  .home-showcases .home-section__heading {
    grid-column: auto;
  }

  .home-capabilities .bento-card--hero {
    min-height: 24rem;
  }

  .home-capabilities .bento-card {
    min-height: 8.75rem;
  }

  .home-preview .product-preview {
    grid-template-columns: 1fr;
    margin-inline: 0;
    border: 1px solid var(--home-line);
    border-radius: 0.35rem;
  }

  .product-preview__rail {
    display: none;
  }

  .home-showcases .showcase__visual,
  .home-showcases .showcase--lead .showcase__visual {
    min-height: 16rem;
  }

  .home-showcases .showcase--lead .showcase__content {
    min-height: 0;
  }

  .home-metrics__intro {
    display: block;
    min-height: 0;
  }

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

  .home-metrics .stat-item,
  .home-metrics .stat-item:first-child {
    min-height: 10.5rem;
    padding: 1.5rem;
  }

  .home-metrics .stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(32, 32, 42, 0.11);
  }

  .home-metrics .stat-item:nth-child(2n) {
    border-right: 0;
  }

  .home-metrics .stat-item__number {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .home-contact {
    padding-block: 4.5rem;
  }

  .home-contact .container {
    display: block;
    margin-inline: 1rem;
    padding: 2rem 1.25rem;
  }

  .home-contact .contact-grid {
    max-width: none;
    margin-top: 2.25rem;
  }

  .home-contact .contact-card:first-child {
    grid-row: auto;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-capabilities .bento-card,
  .home-showcases .showcase__image,
  .home-metrics .stat-item,
  .home-contact .contact-card,
  .contact-card__arrow {
    transition: none;
  }
}
