.page-home {
  position: relative;
  overflow-x: hidden;
  background: var(--color-bg);
}

/* ===== 背景装饰 ===== */
.page-home .home-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 680px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.page-home .home-bg__mountains {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: 380px;
  opacity: 0.75;
}
.page-home .home-bg__lines {
  position: absolute;
  top: 180px;
  left: 0;
  width: 100%;
  height: 520px;
}
.page-home .breadcrumb {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 0;
}

/* ===== 01 核心信息板头部 ===== */
.page-home .home-board {
  position: relative;
  z-index: 1;
  padding: 2.25rem 0 4rem;
}
.page-home .home-board__head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.page-home .home-board__head .chapter {
  margin-bottom: 0;
}
.page-home .home-board__note {
  max-width: 640px;
  color: var(--color-muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

/* ===== Bento 容器 ===== */
.page-home .home-bento {
  display: grid;
  gap: 1.25rem;
}

.page-home .home-bento__item {
  border-radius: 20px;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* ===== 主卡 ===== */
.page-home .home-bento__main {
  border: none;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  min-height: 460px;
  color: #fff;
  isolation: isolate;
}
.page-home .home-bento__main-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-home .home-bento__main-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .home-bento__main-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(250deg, rgba(15, 61, 84, 0.28) 0%, rgba(15, 61, 84, 0.88) 82%);
}
.page-home .home-bento__main-inner {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.page-home .home-bento__eyebrow {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-bottom: 1rem;
}
.page-home .home-bento__title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
}
.page-home .home-bento__title span {
  display: block;
  color: var(--color-accent-gold);
}
.page-home .home-bento__lead {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.4rem;
}
.page-home .home-bento__main-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.4rem;
}
.page-home .home-bento__main-stat {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
}
.page-home .home-bento__main-stat strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--color-accent-gold);
  margin-right: 0.2rem;
}
.page-home .home-bento__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.page-home .home-btn-ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  background: transparent;
}
.page-home .home-btn-ghost:hover,
.page-home .home-btn-ghost:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ===== 手机卡 ===== */
.page-home .home-bento__phone {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.page-home .home-bento__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-home .home-bento__phone-frame {
  background: linear-gradient(160deg, #EAF2F7, #F8FAFC);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 0.9rem 0.9rem 1.2rem;
}
.page-home .home-bento__phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
  padding: 0 0.4rem 0.6rem;
}
.page-home .home-bento__phone-frame img {
  display: block;
  width: 72%;
  max-width: 300px;
  height: clamp(300px, 38vw, 400px);
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.page-home .home-bento__phone-cap {
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ===== 数据统计卡 ===== */
.page-home .home-bento__stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-home .home-bento__stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.page-home .home-bento__stats .metric {
  padding: 1.1rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 12px;
  background: var(--color-bg);
}
.page-home .home-bento__stats .metric--gold {
  border-left-color: var(--color-accent-gold);
}
.page-home .home-bento__stats .metric__value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: block;
  line-height: 1.2;
}
.page-home .home-bento__stats .metric--gold .metric__value {
  color: var(--color-accent-orange);
}
.page-home .home-bento__stats .metric__label {
  font-size: 0.84rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
  display: block;
}

/* ===== 收藏夹卡 ===== */
.page-home .home-bento__fav {
  background: linear-gradient(135deg, #FF6B35, #F2561F);
  border: none;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.page-home .home-bento__fav-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-surface);
  color: var(--color-accent-orange);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.page-home .home-bento__fav-title {
  font-family: var(--font-headline);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
}
.page-home .home-bento__fav-text {
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(15, 61, 84, 0.82);
  margin: 0;
}
.page-home .home-bento__fav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  margin-top: auto;
}
.page-home .home-bento__fav-link:hover,
.page-home .home-bento__fav-link:focus {
  color: #fff;
}

/* ===== 战报卡 ===== */
.page-home .home-bento__brief {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-home .home-bento__brief-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.page-home .home-bento__brief-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--color-border);
}
.page-home .home-bento__brief-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.page-home .home-bento__brief-line span {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent-orange);
  background: rgba(255, 107, 53, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
}
.page-home .home-bento__brief-line em {
  font-style: normal;
  color: var(--color-text);
  font-size: 0.94rem;
  line-height: 1.6;
}
.page-home .home-bento__brief-note {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ===== 历史数据卡 ===== */
.page-home .home-bento__history {
  background: linear-gradient(145deg, #0F3D54, #15557A);
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  box-shadow: var(--shadow-md);
}
.page-home .home-bento__history-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.4rem 0 0;
  color: var(--color-accent-gold);
}
.page-home .home-bento__history-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
}
.page-home .home-bento__history-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--color-accent-orange);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 107, 53, 0.4);
  padding-bottom: 0.15rem;
}
.page-home .home-bento__history-link:hover,
.page-home .home-bento__history-link:focus {
  color: #fff;
  border-bottom-color: #fff;
}

/* ===== 02 赛事收藏夹_第一屏定位 ===== */
.page-home .home-fav {
  background: #F0F5FA;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 4rem 0;
}
.page-home .home-fav__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.page-home .home-fav__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.page-home .home-fav__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 560px;
}
.page-home .home-fav__media-cap {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  background: rgba(15, 61, 84, 0.88);
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.6;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  max-width: 88%;
}
.page-home .home-fav__content .chapter {
  margin-bottom: 1.25rem;
}
.page-home .home-fav__lead {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}
.page-home .home-fav__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.page-home .home-fav__list li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.7;
  font-size: 0.96rem;
}
.page-home .home-fav__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid var(--color-accent-orange);
  border-radius: 3px;
  transform: rotate(45deg);
}
.page-home .home-fav__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== 03 历史数据与战报 ===== */
.page-home .home-archive {
  padding: 4rem 0;
  background: var(--color-surface);
}
.page-home .home-archive__head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.page-home .home-archive__head .chapter {
  margin-bottom: 0;
}
.page-home .home-archive__lead {
  max-width: 640px;
  color: var(--color-muted);
  line-height: 1.75;
  font-size: 0.98rem;
}
.page-home .home-archive__grid {
  display: grid;
  gap: 1.25rem;
}
.page-home .home-archive__card {
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.75rem;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.page-home .home-archive__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}
.page-home .home-archive__card h3 {
  font-family: var(--font-headline);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 1rem 0 0.55rem;
  color: var(--color-primary-dark);
}
.page-home .home-archive__card p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
}
.page-home .home-archive__timeline {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.page-home .home-archive__tl {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}
.page-home .home-archive__tl i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent-gold);
  box-shadow: 0 0 0 4px rgba(242, 169, 0, 0.18);
  flex: 0 0 auto;
}
.page-home .home-archive__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}
.page-home .home-archive__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .home-archive__media-cap {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  background: rgba(15, 61, 84, 0.88);
  color: #fff;
  font-size: 0.86rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  max-width: 85%;
}

/* ===== 04 账号同步与刷新时效 ===== */
.page-home .home-sync {
  background: var(--gradient-primary);
  color: #fff;
  padding: 4.5rem 0;
}
.page-home .home-sync__head {
  margin-bottom: 2.25rem;
}
.page-home .home-sync__head .chapter {
  margin-bottom: 0.75rem;
}
.page-home .home-sync .chapter__num {
  color: var(--color-accent-gold);
}
.page-home .home-sync .chapter__title {
  color: #fff;
}
.page-home .home-sync__lead {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  font-size: 1rem;
}
.page-home .home-sync__grid {
  display: grid;
  gap: 1.25rem;
}
.page-home .home-sync__item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 1.75rem;
  backdrop-filter: blur(6px);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.page-home .home-sync__item:hover,
.page-home .home-sync__item:focus-within {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}
.page-home .home-sync__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent-orange);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
}
.page-home .home-sync__item h3 {
  font-family: var(--font-headline);
  font-size: 1.16rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.page-home .home-sync__item p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  font-size: 0.95rem;
  margin: 0;
}
.page-home .home-sync__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.75rem;
}
.page-home .home-sync .btn--outline {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  background: transparent;
}
.page-home .home-sync .btn--outline:hover,
.page-home .home-sync .btn--outline:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}
.page-home .home-sync__trust {
  max-width: 700px;
  margin: 2rem auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.75rem;
}

/* ===== 响应式布局 ===== */
@media (min-width: 760px) {
  .page-home .home-board__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .page-home .home-board__note {
    text-align: right;
    font-size: 0.95rem;
  }
  .page-home .home-archive__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .page-home .home-archive__media img {
    max-height: 480px;
  }
}

@media (min-width: 960px) {
  .page-home .home-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: auto;
  }
  .page-home .home-bento__main {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 640px;
  }
  .page-home .home-bento__phone {
    grid-column: span 5;
  }
  .page-home .home-bento__stats {
    grid-column: span 5;
  }
  .page-home .home-bento__fav {
    grid-column: span 4;
  }
  .page-home .home-bento__brief {
    grid-column: span 4;
  }
  .page-home .home-bento__history {
    grid-column: span 4;
    min-height: 260px;
  }

  .page-home .home-fav__grid {
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
  }
  .page-home .home-archive__grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .page-home .home-archive__card {
    grid-column: span 4;
  }
  .page-home .home-archive__media {
    grid-column: span 12;
  }
  .page-home .home-archive__media img {
    height: 460px;
  }
  .page-home .home-sync__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-sync__item,
  .page-home .home-bento__item {
    transition: none;
  }
  .page-home .home-bento__main-bg img {
    transform: none;
  }
}
