/* ============================================
   页面：首页（/）
   作用域：.page-home
   ============================================ */

.page-home {
  --home-hero-bg: #0B1C3F;
  overflow-x: clip;
}

/* ---------- 1. 进站宣言 / 框景首屏 ---------- */

.page-home .home-hero {
  position: relative;
  background: var(--home-hero-bg);
  color: var(--color-paper);
  padding: 44px 0 60px;
  overflow: hidden;
}

.page-home .hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.page-home .hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 28, 63, 0.5) 0%, rgba(11, 28, 63, 0.84) 100%),
    linear-gradient(115deg, rgba(37, 99, 235, 0.3) 0%, transparent 56%);
}

.page-home .hero-frame {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 26px 18px 22px;
}

.page-home .hero-frame::before,
.page-home .hero-frame::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.page-home .hero-frame::before {
  top: -1px;
  left: 28px;
  width: 220px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.55) 0 6px,
    transparent 6px 14px
  );
}

.page-home .hero-frame::after {
  left: -1px;
  top: 28px;
  width: 1px;
  height: 160px;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0 6px,
    transparent 6px 14px
  );
}

.page-home .hero-frame__corner {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 2;
}

.page-home .hero-frame__corner--tl {
  top: 8px;
  left: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.65);
  border-left: 2px solid rgba(255, 255, 255, 0.65);
}

.page-home .hero-frame__corner--br {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.65);
  border-right: 2px solid rgba(255, 255, 255, 0.65);
}

.page-home .hero-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.page-home .hero-copy {
  max-width: 620px;
}

.page-home .hero-breadcrumbs {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 22px;
}

.page-home .hero-breadcrumbs a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color var(--ease) 0.2s, border-color var(--ease) 0.2s;
}

.page-home .hero-breadcrumbs a:hover {
  color: #93C5FD;
  border-color: #93C5FD;
}

.page-home .hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.page-home .hero-overline::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-accent);
  flex-shrink: 0;
}

.page-home .hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 10vw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
}

.page-home .hero-lede {
  font-size: 1.02rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34em;
  margin-bottom: 28px;
}

.page-home .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 30px;
}

.page-home .hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-home .hero-stat__num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #93C5FD 0%, #C084FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-home .hero-stat__label {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.62);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--color-paper);
  background: rgba(255, 255, 255, 0.06);
}

.page-home .hero-media {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.page-home .hero-figure {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.page-home .hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .hero-float-card {
  position: absolute;
  left: 2%;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 250px;
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--color-ink);
  box-shadow: 0 18px 40px rgba(5, 10, 30, 0.35);
}

.page-home .float-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-rose);
}

.page-home .float-card__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-rose);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.22);
}

.page-home .hero-float-card strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.page-home .hero-float-card span:last-child {
  font-size: 0.79rem;
  color: rgba(23, 25, 35, 0.66);
}

/* ---------- 2. 2025版登录三步走 ---------- */

.page-home .home-login {
  background: var(--color-paper);
  padding: 72px 0 40px;
}

.page-home .section-head {
  margin-bottom: 40px;
}

.page-home .section-head .overline {
  display: block;
  color: var(--color-blue);
}

.page-home .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  line-height: 1.22;
  max-width: 16em;
  margin-top: 8px;
  color: var(--color-navy);
}

.page-home .section-head .lede {
  margin-top: 14px;
  max-width: 46em;
  color: rgba(23, 25, 35, 0.72);
  line-height: 1.75;
}

.page-home .section-index {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-orange);
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 10px;
  background: rgba(249, 115, 22, 0.05);
}

.page-home .login-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .step-card {
  background: var(--color-glass);
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: 0 6px 18px rgba(15, 43, 91, 0.04);
  transition: transform var(--ease) 0.2s, box-shadow var(--ease) 0.2s;
}

.page-home .step-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 16px 32px rgba(15, 43, 91, 0.1);
}

.page-home .step-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .step-card__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-navy);
}

.page-home .step-card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-purple);
  border: 1px solid rgba(124, 58, 237, 0.28);
  padding: 3px 8px;
  border-radius: 30px;
}

.page-home .step-card h3 {
  font-family: var(--font-display);
  font-size: 1.14rem;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.page-home .step-card p {
  font-size: 0.91rem;
  line-height: 1.7;
  color: rgba(23, 25, 35, 0.74);
}

.page-home .login-cta {
  margin-top: 32px;
  background: rgba(37, 99, 235, 0.05);
  border-left: 3px solid var(--color-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
}

.page-home .login-cta p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(23, 25, 35, 0.8);
}

.page-home .login-cta a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  transition: color var(--ease) 0.2s, border-color var(--ease) 0.2s;
}

.page-home .login-cta a:hover {
  color: var(--color-purple);
  border-color: var(--color-purple);
}

/* ---------- 3. 体育产品线速览 ---------- */

.page-home .home-products {
  background: linear-gradient(180deg, #EFF4FB 0%, #E9EFF8 100%);
  padding: 72px 0;
  overflow: hidden;
}

.page-home .product-scroller {
  margin: 0 -20px;
  padding: 8px 20px 24px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.35) transparent;
}

.page-home .product-track {
  display: flex;
  gap: 10px;
  min-width: max-content;
  padding-bottom: 6px;
}

.page-home .product-pill {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--color-navy);
  box-shadow: 0 2px 8px rgba(15, 43, 91, 0.05);
  transition: background var(--ease) 0.18s, border-color var(--ease) 0.18s, color var(--ease) 0.18s;
}

.page-home .product-pill:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #FFFFFF;
}

.page-home .product-more {
  margin-top: 12px;
  font-size: 0.84rem;
  color: rgba(23, 25, 35, 0.55);
  font-style: italic;
}

.page-home .home-devices {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.page-home .home-devices img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-devices figcaption {
  padding: 14px 4px 0;
  font-size: 0.84rem;
  color: rgba(23, 25, 35, 0.62);
  text-align: center;
}

/* ---------- 4. 版本演进时间轴 ---------- */

.page-home .home-timeline {
  position: relative;
  background: var(--color-navy);
  color: var(--color-paper);
  padding: 80px 0;
  overflow: hidden;
}

.page-home .home-timeline::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -140px;
  width: 420px;
  height: 420px;
  background: var(--gradient-primary);
  filter: blur(150px);
  opacity: 0.2;
  pointer-events: none;
}

.page-home .home-timeline .section-head .overline {
  color: rgba(255, 255, 255, 0.62);
}

.page-home .home-timeline .section-head h2 {
  color: #FFFFFF;
}

.page-home .home-timeline .section-head .lede {
  color: rgba(255, 255, 255, 0.74);
}

.page-home .home-timeline .section-index {
  border-color: rgba(249, 115, 22, 0.52);
  color: #FB923C;
}

.page-home .timeline {
  position: relative;
  margin: 48px 0 40px;
  padding-left: 26px;
}

.page-home .timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-blue) 0%, var(--color-purple) 100%);
}

.page-home .timeline-item {
  position: relative;
  padding-bottom: 34px;
}

.page-home .timeline-item:last-child {
  padding-bottom: 0;
}

.page-home .timeline-item::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-paper);
  border: 3px solid var(--color-purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.24);
  z-index: 1;
}

.page-home .timeline-year {
  display: block;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: #FB923C;
  margin-bottom: 6px;
}

.page-home .timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.page-home .timeline-content p {
  font-size: 0.88rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.66);
  max-width: 44em;
}

.page-home .timeline-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.page-home .timeline-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 5. 最新动态 ---------- */

.page-home .home-news {
  background: var(--color-paper);
  padding: 76px 0 72px;
}

.page-home .news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .news-card {
  background: #FFFFFF;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  transition: transform var(--ease) 0.2s, box-shadow var(--ease) 0.2s;
}

.page-home .news-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 16px 32px rgba(15, 43, 91, 0.1);
}

.page-home .news-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-rose);
  background: rgba(244, 63, 94, 0.08);
  padding: 4px 10px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.page-home .news-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.page-home .news-card p {
  font-size: 0.88rem;
  line-height: 1.66;
  color: rgba(23, 25, 35, 0.7);
  margin-bottom: 18px;
}

.page-home .news-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
}

.page-home .news-card a::after {
  content: '→';
  display: inline-block;
  transition: transform var(--ease) 0.2s;
}

.page-home .news-card a:hover {
  color: var(--color-purple);
}

.page-home .news-card a:hover::after {
  transform: translateX(4px);
}

.page-home .news-more {
  margin-top: 40px;
  text-align: center;
}

/* ---------- 桌面增强 ---------- */

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 56px 0 88px;
    min-height: 680px;
    display: flex;
    align-items: center;
  }

  .page-home .hero-frame {
    padding: 44px 48px 42px;
  }

  .page-home .hero-frame::before {
    left: 48px;
    width: 320px;
  }

  .page-home .hero-frame::after {
    top: 44px;
    height: 240px;
  }

  .page-home .hero-grid {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: 56px;
    align-items: center;
  }

  .page-home .hero-copy h1 {
    font-size: clamp(3.2rem, 5.4vw, 5.4rem);
  }

  .page-home .hero-lede {
    font-size: 1.08rem;
  }

  .page-home .hero-media {
    margin-top: 0;
  }

  .page-home .hero-figure {
    max-width: 520px;
  }

  .page-home .hero-float-card {
    left: -16px;
    bottom: 28px;
  }

  .page-home .hero-stat__num {
    font-size: 1.9rem;
  }

  .page-home .home-login {
    padding: 104px 0 56px;
  }

  .page-home .login-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
  }

  .page-home .step-card {
    padding: 32px 28px 26px;
  }

  .page-home .login-steps .step-card:nth-child(2) {
    margin-top: 22px;
  }

  .page-home .login-steps .step-card:nth-child(3) {
    margin-top: 44px;
  }

  .page-home .login-cta {
    margin-top: 48px;
    padding: 20px 26px;
  }

  .page-home .home-products {
    padding: 104px 0;
  }

  .page-home .product-scroller {
    margin: 0;
    padding: 8px 0 28px;
    overflow: visible;
  }

  .page-home .product-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 12px;
    min-width: 0;
  }

  .page-home .product-pill {
    text-align: center;
  }

  .page-home .product-more {
    margin-top: 14px;
  }

  .page-home .home-devices {
    margin-top: 48px;
  }

  .page-home .home-timeline {
    padding: 112px 0;
  }

  .page-home .timeline {
    padding-left: 40px;
    max-width: 760px;
    margin: 56px 0 48px;
  }

  .page-home .timeline::before {
    left: 8px;
  }

  .page-home .timeline-item {
    padding-bottom: 42px;
  }

  .page-home .timeline-item::before {
    left: -36px;
    width: 13px;
    height: 13px;
  }

  .page-home .timeline-year {
    font-size: 1.55rem;
  }

  .page-home .timeline-content h3 {
    font-size: 1.12rem;
  }

  .page-home .timeline-content p {
    font-size: 0.92rem;
  }

  .page-home .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-home .home-news {
    padding: 104px 0 92px;
  }
}

@media (min-width: 1280px) {
  .page-home .news-grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }

  .page-home .news-card {
    display: flex;
    flex-direction: column;
  }

  .page-home .news-card p {
    flex-grow: 1;
  }
}
