@font-face {
  font-family: "Xiangshao Brush";
  src: url("public/fonts/xiangshao-brush.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 响哨官网 · 首屏浮岛英雄区（Skyprompt 骨架 × 体育工具谱皮肤）
 * 只被 index.html 引入。场景是一整张背景板 + 同构图循环视频，代码不绘制场景。
 * 坐标基于 1440×823 背景板；frame-unit：--u = max(100vw/1440, 100vh/823)。
 */

.hero {
  /* 天空采样色（板顶部 #2c9efa → 中部 #5bb7fd），用于无图降级与页面融合 */
  --sky-top: #2c9efa;
  --sky-mid: #5bb7fd;
  --sky-low: #bfe6ff;
  /* frame-unit：一屏放下（头部高 clamp(65px,6.35vw,88px)）。
     u 取宽适配与「头以下高度适配」的较小者，整岛构图不被裁切。 */
  --header-h: clamp(65px, 6.35vw, 88px);
  --u: min(calc(100vw / 1440), calc((100vh - var(--header-h)) / 823));
  position: relative;
  width: 100%;
  height: calc(823 * var(--u));
  min-height: 480px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
  overflow: hidden;
  margin: 0;
  border-bottom: none;
}

.hero-frame {
  position: absolute;
  top: 0;
  /* 先把 1440 板的左缘精确放到视口水平中心，再纯 scale（u 视口1440时为1） */
  left: calc(50vw - 720px);
  width: 1440px;
  height: 823px;
  transform: scale(var(--u));
  transform-origin: top left;
}

/* ---- 背景板与循环视频 ---- */
.hero-plate,
.hero-loop {
  position: absolute;
  inset: 0;
  width: 1440px;
  height: 823px;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-loop {
  /* 视频镜像扩展后按 111.11% 宽、左 −5.556% 叠放，中线对齐板 */
  width: 111.11%;
  left: -5.556%;
  height: 100%;
}
.hero-loop[hidden] { display: none; }

/* ---- 标题块 ---- */
.hero-scrim {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 330px;
  background: radial-gradient(closest-side, rgba(9, 45, 96, 0.5), rgba(9, 45, 96, 0.12) 62%, rgba(9, 45, 96, 0));
  z-index: 2;
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  top: 84px;
  left: 0;
  width: 1440px;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}
.hero-copy h1, .hero-copy .hero-subtitle, .hero-copy .hero-description { pointer-events: auto; }

.hero-subtitle {
  margin: 0 0 10px;
  font-family: "Xiangshao Brush", "Kaiti SC", "Kai", serif;
  font-size: 30px;
  letter-spacing: 0.12em;
  color: #eaf6ff;
  text-shadow: 0 2px 14px rgba(9, 45, 96, 0.55);
}

.hero-title {
  margin: 0;
  font-family: "Xiangshao Brush", "Kaiti SC", "Kai", serif;
  font-size: 76px;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: #ffffff;
  /* 笔锋外的深色衬影：白字悬在蓝天上仍有劲道 */
  text-shadow:
    0 3px 0 rgba(9, 60, 122, 0.22),
    0 16px 48px rgba(9, 60, 122, 0.38);
}

.hero-description {
  margin: 14px auto 0;
  font-size: 17.9px;
  line-height: 1.5;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.06em;
  max-width: 620px;
}
/* 说明压在草地/云海上，用深蓝底片保证白字对比度（最差底 ≥5.7:1） */
.hero-description > span {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 999px;
  background: rgba(13, 42, 84, 0.72);
  text-shadow: 0 1px 8px rgba(9, 45, 96, 0.5);
}

/* ---- 高光笔标签（毛边，绝非干净矩形）---- */
.hl {
  position: relative;
  display: inline-block;
  padding: 0.06em 0.28em 0.12em;
  isolation: isolate;
}
.hl .hl-swipe {
  content: "";
  position: absolute;
  inset: -0.08em -0.16em -0.04em;
  z-index: -1;
  background: var(--orange);
  /* 手绘毛边：多边形抖动出笔触感 */
  clip-path: polygon(2% 18%, 6% 6%, 22% 10%, 38% 3%, 55% 9%, 72% 4%, 90% 10%, 98% 20%, 100% 45%, 97% 68%, 99% 84%, 88% 96%, 70% 92%, 52% 99%, 34% 93%, 18% 98%, 6% 90%, 0% 72%, 3% 48%);
  border-radius: 6px;
  filter: drop-shadow(0 0 1.5px rgba(216, 62, 0, 0.55));
  transform: rotate(-1.2deg);
  transform-origin: left center;
}
.hl--orange .hl-swipe { background: var(--orange); filter: drop-shadow(0 0 1.5px rgba(216, 62, 0, 0.55)); }
.hl .hl-text {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* ---- 弧形自动滚动产品卡 ---- */
.hero-orbit {
  position: absolute;
  /* no-JS 兜底：静态弧形居中排布 */
  left: 300px;
  top: 430px;
  width: 840px;
  height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  z-index: 4;
}
.hero-orbit.is-live {
  display: block;
  left: 0;
  top: 0;
  width: 1440px;
  height: 823px;
}
.orbit-card {
  padding: 0;
  border: 4px solid #ffffff;
  border-radius: 12px;
  overflow: hidden;
  background: #e9eef2;
  box-shadow: 0 18px 40px rgba(9, 45, 96, 0.30), 0 3px 10px rgba(9, 45, 96, 0.22);
  cursor: inherit; /* 继承全站哨子指针 */
  transition: box-shadow 0.3s var(--ease);
  will-change: transform;
}
.hero-orbit.is-live .orbit-card { position: absolute; }
.orbit-card--wide { width: 200px; height: 150px; flex: none; }
.orbit-card--tall { width: 112px; height: 150px; flex: none; }
.orbit-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  font-size: 0;
  color: transparent;
  text-indent: -9999px;
}
.orbit-card:hover, .orbit-card:focus-visible {
  box-shadow: 0 30px 64px rgba(9, 45, 96, 0.48), 0 0 0 3px #ffffff;
}
.orbit-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---- 云：腾云驾雾（代码绘制的云团，多层视差漂移） ---- */
.hero-clouds { position: absolute; inset: 0; pointer-events: none; }
.hero-clouds--back { z-index: 1; }
.hero-clouds--front { z-index: 5; }
.cloud {
  position: absolute;
  width: 300px;
  height: 100px;
  animation: cloud-drift linear infinite;
  will-change: transform;
}
.cloud::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side, rgba(255,255,255,0.96) 58%, rgba(255,255,255,0) 100%) 18% 64%/150px 84px no-repeat,
    radial-gradient(closest-side, rgba(255,255,255,0.96) 58%, rgba(255,255,255,0) 100%) 50% 34%/190px 110px no-repeat,
    radial-gradient(closest-side, rgba(255,255,255,0.96) 58%, rgba(255,255,255,0) 100%) 82% 66%/160px 88px no-repeat,
    radial-gradient(closest-side, rgba(255,255,255,0.8) 58%, rgba(255,255,255,0) 100%) 50% 82%/330px 64px no-repeat;
  filter: blur(1.5px);
  animation: cloud-bob 6.5s ease-in-out infinite alternate;
}
@keyframes cloud-drift {
  from { transform: translateX(-360px); }
  to { transform: translateX(1800px); }
}
@keyframes cloud-bob {
  from { transform: translateY(-6px); }
  to { transform: translateY(9px); }
}
/* 远层：小而慢，掠过天空（腾云驾雾的景深） */
.cloud--a { top: 210px; animation-duration: 46s; animation-delay: -14s; opacity: 0.75; scale: 0.62; }
.cloud--b { top: 320px; animation-duration: 62s; animation-delay: -38s; opacity: 0.6; scale: 0.5; }
/* 前景：大而快，掠过岛脚与云海上沿 */
.cloud--c { top: 688px; animation-duration: 21s; animation-delay: -4s; opacity: 0.95; scale: 1.25; }
.cloud--d { top: 742px; animation-duration: 29s; animation-delay: -17s; opacity: 0.9; scale: 1.6; }
.cloud--e { top: 640px; animation-duration: 25s; animation-delay: -9s; opacity: 0.8; scale: 0.9; }

/* ---- 岛上 CTA ---- */
.hero-cta {
  position: absolute;
  left: 0;
  width: 1440px;
  top: 582.3px;
  text-align: center;
  z-index: 3;
}
.hero-cta-hl { margin: 0 0 10.7px; }
.hero-cta-hl .hl-text { font-size: 15.2px; }
.hero-cta-pill {
  display: inline-block;
  padding: 12.5px 35.7px;
  background: #ffffff;
  color: var(--blue);
  font-weight: 600;
  font-size: 17px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(9, 45, 96, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.hero-cta-pill:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 20px 44px rgba(9,45,96,.36); }
.hero-cta-pill:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.hero-cta-note {
  margin: 10.7px 0 0;
  font-size: 14.3px;
  color: #0f3d6e;
  font-weight: 600;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 14px rgba(255, 255, 255, 0.7);
}

/* ---- 入场动画初始态（JS 加 .js 后才隐藏，no-JS 立即可见）---- */
html.js [data-blur], html.js [data-hl] .hl-text { opacity: 0; }
html.js [data-hl] .hl-swipe { transform: rotate(-1.2deg) scaleX(0); }

/* ---- 降级：无图时仍有可读天空 ---- */
.hero.asset-unavailable { background-image: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 55%, var(--sky-low)); }
.hero.asset-unavailable .hero-plate, .hero.asset-unavailable .hero-loop { display: none; }

/* ---- 减少动态 ---- */
@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
  .hero-loop { display: none; }
  html.js [data-blur], html.js [data-hl] .hl-text { opacity: 1; }
  html.js [data-hl] .hl-swipe { transform: rotate(-1.2deg) scaleX(1); }
}

/* ---- 手机（≤820px）：流式文案 + 场景裁切融入 ---- */
@media (max-width: 820px) {
  .hero {
    height: auto;
    min-height: 0;
    overflow: visible;
    background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 40%, var(--paper) 96%);
    padding: 76px 18px 8px;
    overflow-x: clip;
  }
  .hero-scrim { width: 100%; left: 0; transform: none; }
  .hero-frame {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
  }
  /* 文案在最上（Skyprompt 手机规格），场景与卡片在其下 */
  .hero-copy { order: 1; position: static; width: 100%; }
  .hero-cta { order: 2; }
  .hero-plate, .hero-loop { order: 3; }
  .hero-orbit { order: 4; }
  .hero-plate, .hero-loop {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    /* 围绕岛心裁切：只露下四分之三 */
    clip-path: inset(24% 0 0 0);
    margin-top: 10px;
    border-radius: 0 0 22px 22px;
  }
  .hero-loop { display: none; } /* 手机默认静态板，省流量 */
  .hero-title {
    white-space: normal;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  }
  .hero-orbit, .hero-orbit.is-live {
    position: static;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
  }
  .orbit-card, .orbit-card--wide, .orbit-card--tall {
    position: relative;
    left: auto !important; top: auto !important;
    width: 100%; height: auto;
    aspect-ratio: 4/3;
    transform: none !important;
    opacity: 1 !important;
    border-width: 3px;
  }
  .orbit-card--tall { aspect-ratio: 3/4; }
  .hero-title { font-size: clamp(28px, 8.6vw, 46px); line-height: 1.18; }
  .hero-subtitle { font-size: 19px; letter-spacing: 0.08em; }
  .hero-description { font-size: 16px; max-width: 100%; letter-spacing: 0.03em; }
  .cloud--b, .cloud--e { display: none; }
  .hero-cta { position: static; width: 100%; margin-top: 18px; padding-bottom: 6px; }
  .hero-cta-note { color: #0f3d6e; }
}

/* 逐字描入的初始态（span.g 由 JS 生成；no-JS 时无此类，文字直出） */
html.js .hero-title .g { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html.js .hero-title .g { opacity: 1; }
}
