/* ===== 首页专属样式 ===== */
.page-home {
  --home-gap: 60px;
  --home-gap-sm: 32px;
  --card-radius: 4px;
  --timeline-dot-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-light);
  color: var(--text-primary);
  font-family: var(--font-body);
}

/* 容器复写保持最大宽 */
.page-home .container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 通用区块头部 */
.page-home .section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
  margin-bottom: 32px;
  position: relative;
}
.page-home .section__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.page-home .section__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ===== 1. 章节预览 ===== */
.page-home .home-hero {
  padding: 40px 0 48px;
  position: relative;
  border-bottom: var(--border-thick) solid var(--primary);
}
.page-home .home-hero__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 36px;
  position: relative;
}
.page-home .home-hero__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.1;
  color: var(--text-primary);
}
.page-home .home-hero__title-accent {
  color: var(--primary);
  margin-left: 0.15em;
}
.page-home .home-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  background: var(--primary);
  padding: 0 12px;
  height: 32px;
  line-height: 32px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(224, 58, 62, 0.3);
}
.page-home .home-hero__rot-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  position: absolute;
  right: 0;
  top: 0;
  padding: 4px 2px;
  border-left: 2px solid var(--primary);
  opacity: 0.7;
}
.page-home .home-hero__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
  width: 100%;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.page-home .home-hero__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .page-home .home-hero__cards {
    flex-direction: row;
    align-items: stretch;
  }
}
.page-home .home-hero__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 28px 24px;
  background: #fff;
  border: var(--border-thick) solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  border-radius: var(--card-radius);
  flex: 1;
}
.page-home .home-hero__card--wide {
  flex: 2;
}
@media (min-width: 768px) {
  .page-home .home-hero__card {
    padding: 32px 32px 28px;
  }
}
.page-home .home-hero__card:hover,
.page-home .home-hero__card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  border-color: var(--primary);
}
.page-home .home-hero__card:focus-visible {
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
}
.page-home .home-hero__card-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.page-home .home-hero__card-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.2;
}
.page-home .home-hero__card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}
.page-home .home-hero__card-cta {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: gap 0.2s ease;
}
.page-home .home-hero__card:hover .home-hero__card-cta {
  gap: 12px;
}
.page-home .home-hero__card-arrow {
  transition: transform 0.2s ease;
}
.page-home .home-hero__card:hover .home-hero__card-arrow {
  transform: translateX(4px);
}
.page-home .home-hero__card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  background: var(--bg-light);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
  text-transform: uppercase;
}
.page-home .home-hero__card-img-wrap {
  margin: 12px -28px -24px 0;
  width: calc(100% + 28px);
  max-height: 180px;
  overflow: hidden;
  border-top: var(--border-thick) solid var(--border);
  position: relative;
}
@media (min-width: 768px) {
  .page-home .home-hero__card-img-wrap {
    margin: 16px -32px -28px 0;
    width: calc(100% + 32px);
    max-height: 200px;
  }
}
.page-home .home-hero__card-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 800 / 450;
  transition: transform 0.3s ease;
}
.page-home .home-hero__card:hover .home-hero__card-img {
  transform: scale(1.03);
}

/* ===== 2. 主流联赛直达 ===== */
.page-home .home-leagues {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-home .home-leagues__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 576px) {
  .page-home .home-leagues__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 992px) {
  .page-home .home-leagues__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.page-home .home-leagues__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px 16px;
  background: #fff;
  border: 3px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border-radius: var(--card-radius);
  position: relative;
}
.page-home .home-leagues__item:hover,
.page-home .home-leagues__item:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.page-home .home-leagues__item:focus-visible {
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
}
.page-home .home-leagues__icon {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--bg-light);
  padding: 6px;
  border: 2px solid var(--border);
  transition: border-color 0.2s ease;
}
@media (min-width: 768px) {
  .page-home .home-leagues__icon {
    width: 100px;
    height: 100px;
  }
}
.page-home .home-leagues__item:hover .home-leagues__icon {
  border-color: var(--primary);
}
.page-home .home-leagues__name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}
.page-home .home-leagues__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.page-home .home-leagues__dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid var(--border);
  position: absolute;
  top: 10px;
  right: 10px;
  transition: background 0.2s ease;
}
.page-home .home-leagues__dot--live {
  background: var(--primary);
  border-color: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 58, 62, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(224, 58, 62, 0); }
}
.page-home .home-leagues__item[data-highlight]:active {
  transform: scale(0.96);
}

/* ===== 3. 收藏赛事动态 ===== */
.page-home .home-favorites {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-home .home-favorites__rot-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary);
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  position: absolute;
  left: 4px;
  top: 48px;
  padding: 4px 2px;
  border-right: 2px solid var(--primary);
  opacity: 0.6;
}
@media (min-width: 768px) {
  .page-home .home-favorites__rot-label {
    left: -12px;
    top: 52px;
  }
}
.page-home .home-favorites__layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) {
  .page-home .home-favorites__layout {
    flex-direction: row;
    gap: 48px;
    align-items: flex-start;
  }
}
.page-home .home-favorites__timeline {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 32px;
}
.page-home .home-favorites__timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--border);
  border-radius: 2px;
}
.page-home .home-favorites__node {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-bottom: 28px;
}
.page-home .home-favorites__node:last-of-type {
  padding-bottom: 12px;
}
.page-home .home-favorites__node-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--border);
  z-index: 1;
}
.page-home .home-favorites__node-dot--live {
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}
.page-home .home-favorites__node-card {
  background: #fff;
  border: 3px solid var(--border);
  border-radius: var(--card-radius);
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-home .home-favorites__node-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.page-home .home-favorites__node-status {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(224, 58, 62, 0.08);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 6px;
}
.page-home .home-favorites__node-match {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.page-home .home-favorites__node-vs {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0 4px;
  font-size: 0.85rem;
}
.page-home .home-favorites__node-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
  display: block;
  line-height: 1.5;
}
.page-home .home-favorites__action {
  padding-top: 8px;
  padding-left: 0;
}
.page-home .home-favorites__btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--primary);
  padding: 10px 24px;
  border-radius: 2px;
  cursor: default;
  border: 2px solid var(--primary);
  transition: background 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.04em;
  user-select: none;
}
.page-home .home-favorites__btn[data-highlight]:active {
  transform: scale(0.96);
}
.page-home .home-favorites__btn[data-highlight] {
  animation: pulse-btn 2s ease-in-out 3;
}
@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 58, 62, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(224, 58, 62, 0); }
}
.page-home .home-favorites__visual {
  flex-shrink: 0;
  width: 100%;
  max-width: 400px;
  position: relative;
}
@media (min-width: 768px) {
  .page-home .home-favorites__visual {
    max-width: 360px;
  }
}
.page-home .home-favorites__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 300;
  object-fit: cover;
  border: var(--border-thick) solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--card-radius);
}
.page-home .home-favorites__visual-caption {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--bg-dark);
  padding: 4px 12px;
  position: absolute;
  bottom: -8px;
  right: -8px;
  border: 2px solid var(--primary);
}

/* ===== 4. 版本亮点 ===== */
.page-home .home-version {
  padding: 48px 0 56px;
  position: relative;
}
.page-home .home-version__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--bg-dark);
  padding: 0 14px;
  height: 30px;
  line-height: 30px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  border: 2px solid var(--primary);
}
.page-home .home-version__layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) {
  .page-home .home-version__layout {
    flex-direction: row;
    gap: 48px;
    align-items: center;
  }
}
.page-home .home-version__content {
  flex: 1;
}
.page-home .home-version__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-home .home-version__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: #fff;
  border-left: var(--border-thick) solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-home .home-version__item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.page-home .home-version__item-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 32px;
}
.page-home .home-version__item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.page-home .home-version__item-text strong {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.page-home .home-version__item-text span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.page-home .home-version__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease;
}
.page-home .home-version__link:hover,
.page-home .home-version__link:focus-visible {
  border-bottom-color: var(--primary);
  gap: 12px;
}
.page-home .home-version__link:focus-visible {
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
}
.page-home .home-version__visual {
  flex-shrink: 0;
  width: 100%;
  max-width: 600px;
  position: relative;
}
@media (min-width: 768px) {
  .page-home .home-version__visual {
    max-width: 480px;
  }
}
.page-home .home-version__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 400;
  object-fit: cover;
  border: var(--border-thick) solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--card-radius);
}
.page-home .home-version__visual-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--primary);
  padding: 4px 14px;
  position: absolute;
  top: -8px;
  left: -8px;
  border: 2px solid var(--bg-dark);
  transform: rotate(-6deg);
}

/* ===== 响应式微调 ===== */
@media (max-width: 575px) {
  .page-home .home-hero__rot-label {
    display: none;
  }
  .page-home .home-favorites__rot-label {
    display: none;
  }
  .page-home .home-hero__card-tag {
    font-size: 0.6rem;
    padding: 1px 6px;
  }
  .page-home .home-hero__card-img-wrap {
    margin-right: -20px;
    width: calc(100% + 20px);
  }
  .page-home .home-favorites__timeline {
    padding-left: 24px;
  }
  .page-home .home-favorites__node-dot {
    left: -24px;
    width: 14px;
    height: 14px;
  }
  .page-home .home-leagues__icon {
    width: 64px;
    height: 64px;
  }
  .page-home .home-version__item {
    padding: 12px 16px;
  }
}
@media (min-width: 992px) {
  .page-home .home-hero {
    padding: 48px 0 56px;
  }
  .page-home .home-hero__card {
    padding: 36px 36px 32px;
  }
  .page-home .home-hero__card-img-wrap {
    margin: 20px -36px -32px 0;
    width: calc(100% + 36px);
    max-height: 220px;
  }
  .page-home .home-leagues {
    padding: 56px 0 48px;
  }
  .page-home .home-favorites {
    padding: 56px 0 48px;
  }
  .page-home .home-version {
    padding: 56px 0 64px;
  }
  .page-home .home-version__list {
    gap: 24px;
  }
}
@media (max-width: 767px) {
  .page-home .home-hero__card--wide {
    order: -1;
  }
  .page-home .home-favorites__visual {
    order: -1;
  }
  .page-home .home-version__visual {
    order: -1;
  }
}

/* ===== 品牌色锚点突出 ===== */
.page-home .brand-accent {
  color: var(--primary);
  font-weight: 700;
}
.page-home .mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ===== 渐变分割 ===== */
.page-home .home-leagues {
  background: linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
}
.page-home .home-version {
  background: linear-gradient(0deg, #fff 0%, var(--bg-light) 100%);
  border-top: 1px solid var(--border);
}
</main>
