/* 2026-10-26 首屏调整。仅覆盖 Banner；标题仍为 HTML 文字。 */
.hero.hero-starry {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 48vw, 760px);
  padding-block: 64px 80px;
}
.hero-starry .hero-copy { width: 60%; max-width: 780px; z-index: 2; }
.hero-starry .hero-copy h1 {
  margin: 0 0 28px;
  font-size: clamp(30px, 2.85vw, 44px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.025em;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .38);
}
.hero-starry h1 > span { display: block; }
.hero-starry .hero-copy .lead {
  max-width: 630px;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.8;
  color: #c8cdd8;
}
.hero-starry .actions { margin-top: 32px; }
.hero-starry .hero-art {
  position: absolute; inset: 0; display: block; margin: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-starry .hero-art img {
  width: 100%; height: 100%; max-height: none;
  object-fit: contain; mix-blend-mode: normal;
}
.hero-starry .hero-art::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, transparent 9%, transparent 91%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(8,9,11,.5) 8%, transparent 33%, transparent 94%, var(--bg) 100%);
}
@media (max-width: 1000px) and (min-width: 901px) {
  .hero-starry .hero-copy { width: 62%; }
  .hero-starry .hero-copy h1 { font-size: 28px; }
}
@media (max-width: 900px) {
  .hero.hero-starry { display: block; min-height: 0; padding-block: 35px 24px; }
  .hero-starry .hero-copy { width: 100%; max-width: none; }
  .hero-starry .hero-copy h1 { font-size: clamp(25px, 4vw, 36px); line-height: 1.55; margin-bottom: 22px; }
  .hero-starry .hero-art { position: relative; height: clamp(320px, 55vw, 440px); margin-top: 22px; min-height: 0; }
  .hero-starry .hero-art img { object-fit: cover; object-position: 86% center; }
  .hero-starry .hero-copy .lead { max-width: none; }
  .hero-starry .actions { margin-top: 26px; }
}
@media (max-width: 480px) {
  .hero-starry .hero-copy h1 { font-size: clamp(22px, 5.7vw, 27px); }
  .hero-starry .hero-copy .lead { font-size: 13px; }
  .hero-starry .hero-art { height: 360px; }
}

/* 首页轮播：banner.png（第 1 张）+ 星空 hero（第 2 张） */
.hero-carousel {
  margin-top: calc(var(--header-h) * -1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: height 620ms cubic-bezier(.4, 0, .2, 1);
}
.hero-carousel-track {
  padding-top: var(--header-h);
  display: flex;
  align-items: flex-start;
  transition: transform 620ms cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
}
.hero-banner {
  margin-top: calc(var(--header-h) * -1);
  position: relative;
  display: block;
  padding-inline: 0;
  overflow: hidden;
}
.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 轮播控件：底部居中，圆点 + 左右箭头 */
.hero-carousel-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  color: #d9deeb;
  background: rgba(12, 15, 21, .55);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  display: none;
}
.hero-carousel-arrow:hover {
  background: rgba(38, 45, 56, .9);
  color: #fff;
  transform: scale(1.06);
}
.hero-carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 245, 247, .35);
  cursor: pointer;
  transition: width var(--transition), background var(--transition);
}
.hero-carousel-dots button[aria-current="true"] {
  width: 26px;
  border-radius: 5px;
  background: #eef1f8;
}

/* 移动端适配 */
@media (max-width: 900px) {
  .hero-carousel-controls { bottom: 16px; gap: 12px; }
  .hero-carousel-arrow { width: 34px; height: 34px; font-size: 18px; }
}

/* 手机端 header 不再压在 banner 上，banner 落到 header 下方（与 --header-h 的 640px 断点对齐） */
@media (max-width: 640px) {
  .hero-banner { margin-top: 0; }
}

/* Preserve the existing technology-only routes. */
.focus-tech .hero.hero-starry,
.focus-tech .hero-carousel { display: none; }

/* A skip link is visible only during keyboard navigation. */
.skip-link:not(:focus-visible) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; padding: 0; }
.skip-link:focus-visible { top: 16px; }