.page-home {
  --home-gap: 20px;
  --home-radius: 4px;
  color: var(--by-text);
}

.page-home .by-wrap--band {
  padding-inline: 0;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 40px;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(38, 239, 208, 0.16), transparent 62%),
    linear-gradient(180deg, var(--by-jade), var(--by-ink) 72%);
  border-bottom: 1px solid var(--by-line);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--by-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--by-line) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 78%);
  pointer-events: none;
}

.page-home .home-hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-home .home-hero__lead .by-display {
  margin: 12px 0 16px;
  max-width: 20ch;
  line-height: 1.06;
}

.page-home .home-hero__lead .by-lede {
  max-width: 54ch;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.page-home .home-hero__facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--by-line);
  padding-top: 20px;
}

.page-home .home-hero__facts li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--by-silver);
}

.page-home .home-hero__facts .by-mono {
  color: var(--by-orange);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.page-home .home-hero__side {
  align-self: start;
  padding: 22px 20px 20px;
  background: linear-gradient(180deg, rgba(18, 58, 48, 0.72), rgba(7, 26, 22, 0.88));
  border: 1px solid var(--by-line);
  border-radius: var(--home-radius);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9);
}

.page-home .home-hero__side .by-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--by-line);
}

.page-home .home-hero__side .by-subtitle {
  margin: 0;
}

.page-home .home-notice {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-notice li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--by-silver);
}

.page-home .home-notice li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--by-cyan);
}

.page-home .home-hero__sidebtn {
  width: 100%;
  justify-content: center;
}

/* ---------- 横向主题带 ---------- */
.page-home .home-bandsec {
  background: linear-gradient(180deg, var(--by-ink), var(--by-ink-2));
}

.page-home .home-bandsec__note {
  margin: 14px 0 22px;
  max-width: 62ch;
  color: var(--by-mist);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.page-home .home-band {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-band .by-band__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  scroll-snap-align: start;
  padding: 12px 18px;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--by-line);
  border-radius: var(--home-radius);
  background: rgba(13, 43, 37, 0.5);
  white-space: nowrap;
}

.page-home .home-band__k {
  font-size: 0.6875rem;
  color: var(--by-mist);
  letter-spacing: 0.1em;
}

/* ---------- 桌面端面板 ---------- */
.page-home .home-desk__in {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.page-home .home-desk__text .by-title {
  margin: 10px 0 16px;
}

.page-home .home-desk__body {
  max-width: 56ch;
  color: var(--by-silver);
  line-height: 1.75;
}

.page-home .home-checklist {
  list-style: none;
  margin: 22px 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-checklist li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--by-silver);
}

.page-home .home-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 12px;
  height: 2px;
  background: var(--by-cyan);
}

.page-home .home-desk__figure {
  margin: 0;
}

.page-home .by-figure__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--home-radius);
}

/* ---------- 标签页内容区 ---------- */
.page-home .home-feeds {
  background:
    linear-gradient(180deg, rgba(13, 43, 37, 0.42), transparent 60%),
    var(--by-ink);
  border-top: 1px solid var(--by-line);
  border-bottom: 1px solid var(--by-line);
}

.page-home .home-feeds__tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--by-line);
}

.page-home .home-feeds .by-tab {
  padding: 10px 16px;
  border-radius: var(--home-radius);
  border: 1px solid var(--by-line);
  background: rgba(4, 16, 13, 0.5);
  color: var(--by-silver);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.page-home .home-feeds .by-tab[aria-selected="true"] {
  color: var(--by-ink);
  background: var(--by-cyan);
  border-color: var(--by-cyan);
  font-weight: 600;
}

.page-home .home-feeds .by-tab:focus-visible {
  outline: 2px solid var(--by-orange);
  outline-offset: 2px;
}

.page-home .home-feeds__panels {
  margin-top: 26px;
}

.page-home .home-feed .by-subtitle {
  margin: 0 0 12px;
}

.page-home .home-feed__note {
  max-width: 58ch;
  color: var(--by-silver);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.page-home .home-list {
  list-style: none;
  margin: 18px 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--by-mist);
}

.page-home .home-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--by-cyan);
  transform: rotate(45deg);
}

.page-home .home-feed__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.page-home .home-feed__figure {
  margin: 0;
}

/* ---------- 适用场景 ---------- */
.page-home .home-cases__in {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.page-home .home-cases__figure {
  margin: 0;
}

.page-home .home-scenes {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.page-home .home-scenes li {
  position: relative;
  padding: 18px 0 0 0;
  border-top: 1px solid var(--by-line);
}

.page-home .home-scenes__idx {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--by-orange);
}

.page-home .home-scenes .by-subtitle {
  margin: 0 0 8px;
}

.page-home .home-scenes p {
  margin: 0;
  color: var(--by-mist);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ---------- 数据与承诺 ---------- */
.page-home .home-metrics {
  background: var(--by-ink-2);
  border-top: 1px solid var(--by-line);
  border-bottom: 1px solid var(--by-line);
}

.page-home .home-metrics__grid {
  margin-top: 22px;
}

.page-home .home-stat {
  display: grid;
  gap: 10px;
  padding: 20px 18px;
  background: linear-gradient(180deg, rgba(18, 58, 48, 0.5), rgba(4, 16, 13, 0.6));
  border: 1px solid var(--by-line);
  border-left: 2px solid var(--by-cyan);
  border-radius: var(--home-radius);
}

.page-home .home-stat .by-stat__value {
  font-size: 1.5rem;
  color: var(--by-cyan);
  letter-spacing: 0.01em;
}

.page-home .home-stat .by-stat__label {
  color: var(--by-silver);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ---------- 三步开始 ---------- */
.page-home .home-start__in {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.page-home .home-start__text .by-title {
  margin: 10px 0 20px;
}

.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.page-home .home-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--by-line);
}

.page-home .home-steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .home-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--by-line-strong);
  border-radius: 50%;
  color: var(--by-cyan);
  font-size: 0.875rem;
}

.page-home .home-steps .by-subtitle {
  margin: 6px 0 8px;
}

.page-home .home-steps p {
  margin: 0;
  color: var(--by-mist);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.page-home .home-start__figure {
  margin: 0;
}

/* ---------- 联系 ---------- */
.page-home .home-contact__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 28px 22px;
  background: linear-gradient(135deg, rgba(18, 58, 48, 0.62), rgba(4, 16, 13, 0.8));
  border: 1px solid var(--by-line);
  border-radius: var(--home-radius);
}

.page-home .home-contact__main .by-title {
  margin: 10px 0 14px;
}

.page-home .home-contact__desc {
  max-width: 52ch;
  margin: 0 0 20px;
  color: var(--by-silver);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.page-home .home-contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .home-contact__list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--by-line);
  font-size: 0.9375rem;
  word-break: break-word;
}

.page-home .home-contact__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .home-contact__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--by-orange);
}

.page-home .home-contact__note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--by-line);
  color: var(--by-mist);
  font-size: 0.8125rem;
  line-height: 1.7;
}

/* ---------- 中屏 ---------- */
@media (min-width: 768px) {
  .page-home .home-hero {
    padding: 64px 0 56px;
  }

  .page-home .home-hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .page-home .home-hero__facts li {
    display: block;
  }

  .page-home .home-hero__facts .by-mono {
    display: block;
    margin-bottom: 6px;
  }

  .page-home .home-desk__in,
  .page-home .home-cases__in,
  .page-home .home-start__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-home .home-feed__split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .page-home .home-scenes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .page-home .home-contact__panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    padding: 34px 30px;
  }
}

/* ---------- 宽屏 ---------- */
@media (min-width: 1024px) {
  .page-home .home-hero__in {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: start;
  }

  .page-home .home-hero__lead .by-display {
    font-size: clamp(2.6rem, 4.2vw, 4rem);
  }

  .page-home .home-desk__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 56px;
  }

  .page-home .home-cases__in {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 52px;
  }

  .page-home .home-start__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 52px;
  }

  .page-home .home-stat .by-stat__value {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-band {
    scroll-behavior: auto;
  }
}
