/* ===== 页面专属：首页 .page-home ===== */
.page-home {
  --home-gold: #D4A843;
  --home-dark: #0A1F3F;
  --home-warm: #F5EFE0;
  --home-red: #E63946;
  --home-green: #2A9D8F;
  --home-highlight: #F4A261;
  --home-card-shadow: 0 4px 20px rgba(10, 31, 63, 0.08);
  --home-radius: 8px;
  container-type: inline-size;
}

/* ---------- 01 赛程方阵 ---------- */
.home-squad {
  background: linear-gradient(145deg, var(--home-dark) 0%, var(--home-dark) 38%, var(--home-warm) 38%, var(--home-warm) 100%);
  padding: 2.5rem 1.25rem 3rem;
  color: var(--home-dark);
  position: relative;
  overflow: hidden;
}

.home-squad__inner {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.home-squad__header {
  margin-bottom: 1.5rem;
}

.home-squad__num {
  display: block;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--home-gold);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.home-squad__title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 800;
  font-size: var(--font-scale-h2, 2.5rem);
  line-height: 1.15;
  color: var(--home-dark);
  margin: 0 0 0.5rem;
}

.home-squad__desc {
  font-family: var(--font-body, 'Merriweather', serif);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--home-dark);
  max-width: 32em;
  opacity: 0.85;
}

.home-squad__visual {
  margin-bottom: 1.5rem;
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 2px solid var(--home-gold);
  background: var(--home-warm);
}

.home-squad__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.home-squad__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.home-squad__card {
  background: #fff;
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: var(--home-radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--home-card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.home-squad__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(10, 31, 63, 0.15);
}

.home-squad__card-top {
  margin-bottom: 0.6rem;
}

.home-squad__card-group {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--home-dark);
}

.home-squad__card-round {
  font-weight: 400;
  color: #666;
  font-size: 0.85rem;
}

.home-squad__card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
}

.home-squad__stat--yellow { color: var(--home-gold); }
.home-squad__stat--red { color: var(--home-red); }
.home-squad__stat--shot { color: var(--home-dark); }

.home-squad__card-extra {
  display: none;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(10, 31, 63, 0.12);
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
}

.home-squad__card:hover .home-squad__card-extra {
  display: flex;
}

.home-squad__footnote {
  font-family: var(--font-body, 'Merriweather', serif);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #555;
  max-width: 38em;
  margin: 0;
}

/* ---------- 02 进失球时间轴 ---------- */
.home-timeline {
  background: var(--home-warm);
  padding: 2.5rem 1.25rem 3rem;
  position: relative;
}

.home-timeline__inner {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
}

.home-timeline__header {
  margin-bottom: 1.5rem;
}

.home-timeline__num {
  display: block;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--home-gold);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.home-timeline__title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 800;
  font-size: var(--font-scale-h2, 2.5rem);
  line-height: 1.15;
  color: var(--home-dark);
  margin: 0 0 0.5rem;
}

.home-timeline__desc {
  font-family: var(--font-body, 'Merriweather', serif);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--home-dark);
  max-width: 32em;
  opacity: 0.85;
}

.home-timeline__chart {
  position: relative;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 2px solid var(--home-dark);
  border-radius: var(--home-radius);
  padding: 1rem 1rem 0.5rem;
  overflow: hidden;
}

.home-timeline__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.home-timeline__curve {
  position: relative;
  width: 100%;
  height: 100px;
  margin-top: 0.5rem;
}

.home-timeline__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-timeline__line--goal {
  stroke: var(--home-green);
  filter: drop-shadow(0 1px 4px rgba(42, 157, 143, 0.3));
}

.home-timeline__line--concede {
  stroke: var(--home-red);
  opacity: 0.75;
}

.home-timeline__dot--goal {
  fill: var(--home-green);
  stroke: #fff;
  stroke-width: 2;
}

.home-timeline__dot--concede {
  fill: var(--home-red);
  stroke: #fff;
  stroke-width: 2;
}

.home-timeline__controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: center;
}

.home-timeline__btn {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 1.2rem;
  border: 1.5px solid var(--home-dark);
  border-radius: 30px;
  background: transparent;
  color: var(--home-dark);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.home-timeline__btn--active {
  background: var(--home-dark);
  color: #fff;
}

.home-timeline__action {
  text-align: center;
}

.home-timeline__action .btn--outline {
  border-color: var(--home-gold);
  color: var(--home-dark);
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  transition: background 0.2s, color 0.2s;
}

.home-timeline__action .btn--outline:hover {
  background: var(--home-gold);
  color: #fff;
}

/* ---------- 03 红黄牌查询入口 ---------- */
.home-query {
  background: var(--home-dark);
  padding: 2.5rem 1.25rem 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.home-query::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 120%;
  background: rgba(212, 168, 67, 0.06);
  transform: skewX(-12deg);
  pointer-events: none;
}

.home-query__inner {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.home-query__header {
  margin-bottom: 1.5rem;
}

.home-query__num {
  display: block;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--home-gold);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.home-query__title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 800;
  font-size: var(--font-scale-h2, 2.5rem);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.5rem;
}

.home-query__desc {
  font-family: var(--font-body, 'Merriweather', serif);
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 32em;
}

.home-query__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--home-gold);
  border-radius: var(--home-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-query__card-visual {
  border-bottom: 1px solid rgba(212, 168, 67, 0.25);
  overflow: hidden;
  background: #111;
}

.home-query__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.home-query__card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-query__card-title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--home-gold);
  margin: 0 0 0.4rem;
}

.home-query__card-text {
  font-family: var(--font-body, 'Merriweather', serif);
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1rem;
  flex: 1;
}

.home-query__card-body .btn--primary {
  background: var(--home-gold);
  color: var(--home-dark);
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 700;
  padding: 0.55rem 1.4rem;
  border: none;
  border-radius: 30px;
  align-self: flex-start;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.home-query__card-body .btn--primary:hover {
  background: #c49a3a;
  transform: translateY(-1px);
}

/* ---------- 品牌底标 ---------- */
.home-brand {
  background: var(--home-warm);
  padding: 2rem 1.25rem;
  border-top: 2px solid rgba(212, 168, 67, 0.25);
}

.home-brand__inner {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.home-brand__image {
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid rgba(212, 168, 67, 0.3);
  background: #fff;
  max-width: 200px;
}

.home-brand__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-brand__statement {
  font-family: var(--font-body, 'Merriweather', serif);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--home-dark);
  max-width: 30em;
  margin: 0;
}

.home-brand__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 0.85rem;
}

.home-brand__link {
  color: var(--home-dark);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.home-brand__link:hover {
  border-bottom-color: var(--home-gold);
}

.home-brand__sep {
  color: #bbb;
}

/* ---------- 共享类微调 ---------- */
.page-home .btn {
  font-family: var(--font-heading, 'Inter', sans-serif);
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
}

.page-home .btn:hover {
  transform: translateY(-1px);
}

/* ---------- 桌面端媒体查询 ---------- */
@container (min-width: 640px) {
  .home-squad__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  /* 01 赛程方阵 */
  .home-squad {
    padding: 3.5rem 2rem 4rem;
    background: linear-gradient(155deg, var(--home-dark) 0%, var(--home-dark) 42%, var(--home-warm) 42%, var(--home-warm) 100%);
  }

  .home-squad__num {
    font-size: 5.5rem;
  }

  .home-squad__title {
    font-size: 2.8rem;
  }

  .home-squad__inner {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    grid-template-rows: auto auto;
    gap: 1.5rem 2rem;
    align-items: start;
  }

  .home-squad__header {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin-bottom: 0;
  }

  .home-squad__visual {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin-bottom: 0;
    max-height: 320px;
  }

  .home-squad__grid {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }

  .home-squad__footnote {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
  }

  .home-squad__card {
    padding: 1.1rem 1.1rem 0.9rem;
  }

  /* 02 进失球时间轴 */
  .home-timeline {
    padding: 3.5rem 2rem 4rem;
  }

  .home-timeline__num {
    font-size: 5.5rem;
  }

  .home-timeline__title {
    font-size: 2.8rem;
  }

  .home-timeline__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem 2rem;
    align-items: start;
  }

  .home-timeline__header {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin-bottom: 0;
  }

  .home-timeline__chart {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    margin-bottom: 0;
  }

  .home-timeline__curve {
    height: 130px;
  }

  .home-timeline__action {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    text-align: left;
  }

  /* 03 红黄牌查询 */
  .home-query {
    padding: 3.5rem 2rem 4rem;
  }

  .home-query__num {
    font-size: 5.5rem;
  }

  .home-query__title {
    font-size: 2.8rem;
  }

  .home-query__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem 2.5rem;
    align-items: center;
  }

  .home-query__header {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin-bottom: 0;
  }

  .home-query__card {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    flex-direction: row;
  }

  .home-query__card-visual {
    border-bottom: none;
    border-right: 1px solid rgba(212, 168, 67, 0.25);
    flex: 0 0 180px;
    min-height: 180px;
  }

  .home-query__card-body {
    padding: 1.5rem;
  }

  .home-query__card-title {
    font-size: 1.3rem;
  }

  /* 品牌底标 */
  .home-brand {
    padding: 2.5rem 2rem;
  }

  .home-brand__inner {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    gap: 2rem;
  }

  .home-brand__image {
    flex: 0 0 220px;
    max-width: 220px;
  }

  .home-brand__text {
    flex: 1;
    max-width: 32em;
  }

  .home-brand__links {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .home-squad {
    padding: 4rem 2rem 5rem;
  }

  .home-squad__num {
    font-size: 7rem;
  }

  .home-squad__title {
    font-size: 3.2rem;
  }

  .home-squad__grid {
    gap: 1.5rem;
  }

  .home-timeline__num {
    font-size: 7rem;
  }

  .home-timeline__title {
    font-size: 3.2rem;
  }

  .home-timeline__curve {
    height: 160px;
  }

  .home-query__num {
    font-size: 7rem;
  }

  .home-query__title {
    font-size: 3.2rem;
  }

  .home-query__card-visual {
    flex-basis: 220px;
  }
}
