.page-home {
  --flame-glow: radial-gradient(ellipse at 78% 22%, rgba(255, 107, 53, 0.42), transparent 52%);
  --flame-glow-soft: radial-gradient(ellipse at 62% 88%, rgba(255, 215, 0, 0.22), transparent 60%);
  --card-shadow-offset: 6px 6px 0 rgba(230, 91, 43, 0.22);
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

/* ===== 首屏 Hero ===== */
.page-home .home-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background: linear-gradient(158deg, #1e1a16 0%, #2c2c2c 52%, #4a2b1a 100%);
  color: #f7f3ef;
  overflow: hidden;
  border-bottom: 3px solid var(--brand);
}

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

.page-home .home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.18) contrast(1.05);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(255, 107, 53, 0.5), transparent 50%),
    radial-gradient(ellipse at 58% 92%, rgba(255, 215, 0, 0.22), transparent 58%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.5), transparent 68%);
  filter: blur(12px);
  z-index: 1;
  pointer-events: none;
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: calc(var(--header-top) + var(--header-h) + 28px);
  padding-bottom: 56px;
  width: 100%;
}

.page-home .home-hero-content {
  max-width: 720px;
}

.page-home .home-hero-eyebrow {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 14px;
  word-break: keep-all;
}

.page-home .home-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 7.6vw, 76px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #f7f3ef;
  margin: 0 0 22px;
}

.page-home .home-hero-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(247, 243, 239, 0.84);
  max-width: 660px;
  margin: 0 0 26px;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.page-home .home-hero-actions .btn {
  font-size: 15px;
  padding: 12px 22px;
}

.page-home .home-hero-actions .btn-outline {
  border-color: rgba(247, 243, 239, 0.55);
  color: #f7f3ef;
  background: transparent;
}

.page-home .home-hero-actions .btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
}

.page-home .home-scroll-link {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.45);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-home .home-scroll-link:hover {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.page-home .home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-hero-deco {
  display: none;
  font-family: var(--font-head);
  font-size: clamp(88px, 15vw, 220px);
  line-height: 0.82;
  color: rgba(255, 107, 53, 0.18);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  text-align: right;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* ===== 功能面板 ===== */
.page-home .home-functions {
  position: relative;
  padding: 60px 0 72px;
  background: var(--paper);
}

.page-home .home-functions::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.45), transparent);
  margin-bottom: 48px;
}

.page-home .home-functions .section-header {
  margin-bottom: 36px;
}

.page-home .home-functions .section-desc {
  max-width: 520px;
  margin-inline: auto;
}

.page-home .home-functions-grid {
  display: grid;
  gap: 22px;
}

.page-home .home-function-card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(230, 91, 43, 0.2);
  transition: transform 0.32s var(--ease-snap), box-shadow 0.32s var(--ease-snap);
}

.page-home .home-function-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 9px 9px 0 rgba(230, 91, 43, 0.3);
}

.page-home .home-function-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.page-home .home-function-num {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
}

.page-home .home-function-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.25;
  margin: 2px 0 0;
  color: var(--ink);
}

.page-home .home-function-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(44, 44, 44, 0.8);
  margin: 0 0 8px;
  flex: 1;
}

.page-home .home-functions-grid .tag {
  align-self: flex-start;
}

.page-home .home-function-img {
  margin: 2px 0 6px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--peach);
}

.page-home .home-function-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* ===== 赛事双轨索引 ===== */
.page-home .home-events {
  background: var(--peach);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 60px 0 64px;
}

.page-home .home-events-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 28px;
}

.page-home .home-events-head .section-header {
  text-align: left;
  flex: 1;
  min-width: 260px;
}

.page-home .home-events-count {
  font-size: 13px;
  color: var(--gold-dark);
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(179, 151, 0, 0.28);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  white-space: nowrap;
}

.page-home .home-events-layout {
  display: grid;
  gap: 24px;
}

.page-home .home-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(44, 44, 44, 0.07);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-home .home-search-bar:hover {
  border-color: var(--brand);
  box-shadow: 5px 5px 0 rgba(255, 107, 53, 0.18);
}

.page-home .home-search-icon {
  font-size: 20px;
  line-height: 1;
  color: var(--brand);
}

.page-home .home-search-arrow {
  margin-left: auto;
  color: var(--brand);
  font-weight: 700;
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}

.page-home .filter-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home .filter-btn.is-active,
.page-home .filter-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.page-home .home-events-grid {
  display: grid;
  gap: 14px;
}

.page-home .home-event-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  transition: transform 0.22s var(--ease-snap), box-shadow 0.22s ease;
}

.page-home .home-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(44, 44, 44, 0.1);
}

.page-home .home-event-card--epl {
  border-left-color: #4a2b6b;
}

.page-home .home-event-card--laliga {
  border-left-color: var(--brand);
}

.page-home .home-event-card--nba {
  border-left-color: #1d428a;
}

.page-home .home-event-card--cba {
  border-left-color: var(--teal);
}

.page-home .home-event-card--csl {
  border-left-color: var(--gold-dark);
}

.page-home .home-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.page-home .home-event-league {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.page-home .home-event-card h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 700;
}

.page-home .home-event-vs {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  margin: 0 4px;
}

.page-home .home-event-card .updated-stamp {
  font-size: 12px;
  color: rgba(44, 44, 44, 0.58);
  margin: 0;
}

.page-home .home-events-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .home-events-aside img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(44, 44, 44, 0.09);
}

.page-home .home-events-aside-note {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(44, 44, 44, 0.72);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0;
}

/* ===== 今日赛前更新 ===== */
.page-home .home-updates {
  background: var(--espresso);
  color: var(--paper);
  padding: 60px 0 56px;
}

.page-home .home-updates .section-header {
  margin-bottom: 32px;
}

.page-home .home-updates .section-eyebrow {
  color: var(--gold);
}

.page-home .home-updates h2 {
  color: #f7f3ef;
}

.page-home .home-updates .section-desc {
  color: rgba(247, 243, 239, 0.72);
}

.page-home .home-updates-grid {
  display: grid;
  gap: 18px;
}

.page-home .home-update-card {
  background: rgba(247, 243, 239, 0.055);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.page-home .home-update-card:hover {
  border-color: rgba(255, 215, 0, 0.55);
  background: rgba(247, 243, 239, 0.08);
}

.page-home .home-update-card h3 {
  font-size: 19px;
  line-height: 1.3;
  color: #f7f3ef;
  margin: 12px 0 8px;
}

.page-home .home-update-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(247, 243, 239, 0.78);
  margin: 0 0 12px;
}

.page-home .home-update-card .updated-stamp {
  font-size: 12px;
  color: var(--gold);
  border-top: 1px dashed rgba(255, 215, 0, 0.22);
  padding-top: 10px;
  margin: 0;
}

.page-home .home-update-note {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 107, 53, 0.13);
  border: 1px solid rgba(255, 107, 53, 0.4);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.page-home .home-update-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247, 243, 239, 0.88);
}

.page-home .data-mark {
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}

/* ===== 跨设备同步 ===== */
.page-home .home-sync {
  background: var(--paper);
  padding: 60px 0 72px;
}

.page-home .home-sync .section-eyebrow {
  color: var(--teal);
}

.page-home .home-sync-inner {
  display: grid;
  gap: 36px;
}

.page-home .home-sync-content h2 {
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.18;
  margin: 0 0 14px;
}

.page-home .home-sync-content > p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(44, 44, 44, 0.82);
  margin: 0 0 18px;
  max-width: 540px;
}

.page-home .home-sync-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  counter-reset: sync-step;
}

.page-home .home-sync-steps li {
  position: relative;
  padding: 11px 0 11px 44px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .home-sync-steps li::before {
  counter-increment: sync-step;
  content: counter(sync-step);
  position: absolute;
  left: 0;
  top: 11px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 rgba(44, 44, 44, 0.15);
}

.page-home .home-sync-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.page-home .home-sync-media {
  position: relative;
  align-self: start;
}

.page-home .home-sync-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--peach);
  box-shadow: 10px 10px 0 rgba(255, 107, 53, 0.18);
}

.page-home .home-sync-img img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.page-home .home-sync-badge {
  position: absolute;
  bottom: -14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 9px 14px 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  line-height: 1.1;
}

.page-home .home-sync-badge-num {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--gold);
}

.page-home .home-sync-badge span:last-child {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(247, 243, 239, 0.78);
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  .page-home .home-functions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

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

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

  .page-home .home-update-note {
    flex-direction: row;
    align-items: center;
  }

  .page-home .home-sync-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .page-home .home-sync-img img {
    height: 320px;
  }

  .page-home .home-hero-deco {
    display: block;
  }
}

@media (min-width: 1024px) {
  .page-home .home-functions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 24px;
  }

  .page-home .home-function-card:nth-child(even) {
    transform: translateY(22px);
  }

  .page-home .home-function-card:nth-child(even):hover {
    transform: translateY(18px);
  }

  .page-home .home-events-layout {
    grid-template-columns: 1fr 250px;
    gap: 28px;
  }

  .page-home .home-events-aside {
    position: sticky;
    top: calc(var(--header-top) + var(--header-h) + 20px);
  }

  .page-home .home-updates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .page-home .home-hero h1 {
    font-size: 34px;
  }

  .page-home .home-hero-inner {
    padding-top: calc(var(--header-top) + var(--header-h) + 16px);
  }

  .page-home .home-hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .page-home .home-events-count {
    width: 100%;
    white-space: normal;
  }

  .page-home .home-function-card a {
    padding: 20px;
  }

  .page-home .home-sync-content h2 {
    font-size: 26px;
  }
}
