/* ================= 首页 / 完美体育WM中国区主页 ================= */

.page-home {
  scroll-behavior: smooth;
  overflow-x: hidden;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  background: var(--bg);
}

/* ---------- 通用 section 层级 ---------- */
.page-home .home-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 20px;
}

.page-home .home-section__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-left: 3px solid var(--line);
  padding-left: 16px;
  margin-bottom: 26px;
}

.page-home .home-section__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  padding-top: 2px;
  letter-spacing: 0.08em;
}

.page-home .home-section__index::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  background: var(--sec-color, var(--cyan));
  margin-bottom: 6px;
}

.page-home .home-section__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.page-home .home-section__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 640px;
}

.page-home .home-schedule,
.page-home .home-guide {
  --sec-color: var(--cyan);
}

.page-home .home-report {
  --sec-color: var(--green);
}

.page-home .home-version {
  --sec-color: var(--gold);
}

.page-home .home-expert {
  --sec-color: var(--red);
}

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

/* ---------- 首屏英雄区 ---------- */
.page-home .home-hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(135deg, var(--cyan) 0 12px, transparent 12px 24px);
  opacity: 0.35;
}

.page-home .home-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.page-home .home-breadcrumb__sep {
  color: var(--line);
}

.page-home .home-breadcrumb__current {
  color: var(--text-main);
}

.page-home .home-hero__top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.page-home .home-hero__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-home .home-hero__title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.22;
  margin: 0;
  letter-spacing: 0.01em;
}

.page-home .home-hero__title-sep {
  color: var(--cyan);
  font-weight: 400;
  margin: 0 4px;
}

.page-home .home-hero__title-sub {
  color: var(--green);
}

.page-home .home-hero__lead {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 640px;
}

.page-home .home-hero__lead a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
  transition: border-color 0.2s ease;
}

.page-home .home-hero__lead a:hover {
  border-bottom-color: var(--cyan);
}

.page-home .home-hero__lead strong {
  color: var(--text-main);
  font-weight: 600;
}

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.page-home .home-hero__clock,
.page-home .home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 10px 14px;
}

.page-home .home-hero__clock {
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-home .home-hero__clock-text {
  color: var(--text-muted);
}

.page-home .home-hero__clock-time {
  color: var(--cyan);
}

.page-home .home-hero__badge {
  align-items: baseline;
  gap: 8px;
}

.page-home .home-hero__badge-label {
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .home-hero__badge-version {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

/* ---------- 首屏 2-2-1 拼贴卡片 ---------- */
.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .home-hero__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  padding: 26px 24px 20px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text-main);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: pageHomeCardIn 0.6s ease both;
}

.page-home .home-hero__card:nth-child(2) {
  animation-delay: 0.1s;
}

.page-home .home-hero__card:nth-child(3) {
  animation-delay: 0.2s;
}

.page-home .home-hero__card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 58px solid var(--card-color);
  border-left: 58px solid transparent;
  opacity: 0.28;
}

.page-home .home-hero__card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--card-color);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.page-home .home-hero__card:hover {
  transform: translateY(-4px);
  border-color: var(--card-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.page-home .home-hero__card:hover::after {
  transform: scaleX(1);
}

.page-home .home-hero__card--schedule {
  --card-color: var(--cyan);
  border-top: 1px solid rgba(0, 229, 255, 0.35);
}

.page-home .home-hero__card--report {
  --card-color: var(--green);
  border-top: 1px solid rgba(163, 255, 18, 0.35);
}

.page-home .home-hero__card--expert {
  --card-color: var(--red);
  border-top: 1px solid rgba(255, 77, 106, 0.35);
}

.page-home .home-hero__card-num {
  position: absolute;
  top: 14px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .home-hero__card-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.page-home .home-hero__card-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.page-home .home-hero__card-arrow {
  position: absolute;
  right: 20px;
  bottom: 16px;
  font-size: 20px;
  color: var(--card-color);
  transition: transform 0.3s ease;
}

.page-home .home-hero__card:hover .home-hero__card-arrow {
  transform: translateX(4px);
}

/* ---------- 赛程中心 ---------- */
.page-home .home-schedule__layout {
  display: grid;
  gap: 24px;
}

.page-home .home-schedule__list {
  display: grid;
  gap: 12px;
}

.page-home .home-match {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 16px 18px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.page-home .home-match:hover {
  border-color: var(--cyan);
  background: #1c1c2a;
}

.page-home .home-match__date {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .home-match__week {
  color: var(--text-main);
}

.page-home .home-match__time {
  color: var(--cyan);
}

.page-home .home-match__teams {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.page-home .home-match__team {
  font-weight: 600;
}

.page-home .home-match__vs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .home-match__extra {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-home .home-match__code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.page-home .home-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.page-home .home-stat__item {
  background: var(--surface-1);
  border: 1px solid var(--line);
  padding: 14px 10px;
  text-align: center;
}

.page-home .home-stat__num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.page-home .home-stat__num sup {
  font-size: 0.6em;
}

.page-home .home-stat__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.page-home .home-schedule__note {
  font-size: 13px;
  color: var(--text-muted);
  border-left: 2px solid var(--cyan);
  padding-left: 12px;
  margin: 18px 0 0;
}

.page-home .home-schedule__visual {
  margin-top: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.page-home .home-schedule__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 战报区 ---------- */
.page-home .home-report__layout {
  display: grid;
  gap: 20px;
}

.page-home .home-report__visual {
  border: 1px solid var(--line);
  overflow: hidden;
  max-width: 600px;
  aspect-ratio: 2 / 1;
}

.page-home .home-report__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-report__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.page-home .home-report__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .home-report__table th,
.page-home .home-report__table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-home .home-report__table th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--surface-2);
}

.page-home .home-report__table tbody tr:hover {
  background: rgba(0, 229, 255, 0.04);
}

.page-home .home-report__table tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .home-report__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
}

.page-home .home-report__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.page-home .home-report__status--done {
  color: var(--success);
}

.page-home .home-report__status--live {
  color: var(--red);
  animation: pageHomePulse 1.4s infinite;
}

.page-home .home-report__status--pend {
  color: var(--gold);
}

.page-home .home-report__foot {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px;
  border-right: 3px solid var(--green);
  padding-right: 14px;
  text-align: right;
}

.page-home .home-report__foot a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.page-home .home-report__foot a:hover {
  border-bottom-color: var(--green);
}

/* ---------- 中国区赛事台版本号 ---------- */
.page-home .home-version__layout {
  display: grid;
  gap: 24px;
}

.page-home .home-version__main {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line);
  padding: 24px;
}

.page-home .home-version__main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}

.page-home .home-version__current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.page-home .home-version__current-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .home-version__current-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.04em;
}

.page-home .home-version__log {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-version__log-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.page-home .home-version__log-ver {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  white-space: nowrap;
}

.page-home .home-version__log-text {
  color: var(--text-muted);
}

.page-home .home-version__more {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

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

.page-home .home-version__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-version__side img {
  border: 1px solid var(--line);
  max-width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-home .home-version__side-note {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 300px;
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}

/* ---------- 专家实时比分管线 ---------- */
.page-home .home-expert__layout {
  display: grid;
  gap: 24px;
}

.page-home .home-expert__stream {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 4px 0 4px 12px;
}

.page-home .home-expert__stream::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--line);
}

.page-home .home-expert__item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 16px 16px 16px 18px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.page-home .home-expert__item:hover {
  border-color: rgba(255, 77, 106, 0.4);
}

.page-home .home-expert__item::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.15);
}

.page-home .home-expert__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .home-expert__content p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

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

.page-home .home-expert__side img {
  border: 1px solid var(--line);
  max-width: 400px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-home .home-expert__side-note {
  font-size: 13px;
  color: var(--text-muted);
  border-left: 2px solid var(--red);
  padding-left: 12px;
}

.page-home .home-expert__side .btn {
  align-self: flex-start;
}

/* ---------- 使用场景与栏目索引 ---------- */
.page-home .home-guide__grid {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.page-home .home-guide__scene {
  background: linear-gradient(135deg, var(--surface-1), #1d1d2c);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sec-color, var(--cyan));
  padding: 20px 18px;
}

.page-home .home-guide__scene-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--sec-color, var(--cyan));
  margin: 0 0 6px;
}

.page-home .home-guide__scene-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

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

.page-home .home-guide__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  color: var(--text-main);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.page-home .home-guide__link span {
  color: var(--cyan);
}

.page-home .home-guide__link:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
}

/* ---------- 动画 ---------- */
@keyframes pageHomeCardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageHomePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home {
    scroll-behavior: auto;
  }

  .page-home .home-hero__card {
    animation: none;
  }

  .page-home .home-report__status--live {
    animation: none;
  }
}

/* ---------- 平板断点 ---------- */
@media (min-width: 768px) {
  .page-home .home-section {
    padding-top: 56px;
  }

  .page-home .home-section__title {
    font-size: 28px;
  }

  .page-home .home-hero {
    padding-top: 48px;
  }

  .page-home .home-hero__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .page-home .home-hero__meta {
    flex-shrink: 0;
  }

  .page-home .home-hero__title {
    font-size: 40px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .page-home .home-hero__card--expert {
    grid-column: 1 / -1;
  }

  .page-home .home-hero__card--report {
    margin-top: 24px;
  }

  .page-home .home-match {
    grid-template-columns: 88px 1fr auto;
    gap: 16px;
  }

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

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

/* ---------- 桌面断点 1 ---------- */
@media (min-width: 820px) {
  .page-home .home-report__layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 28px;
  }

  .page-home .home-version__layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
    gap: 28px;
  }

  .page-home .home-expert__layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
    gap: 28px;
  }
}

/* ---------- 桌面断点 2 ---------- */
@media (min-width: 900px) {
  .page-home .home-schedule__layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
  }
}

/* ---------- 桌面断点 3 ---------- */
@media (min-width: 1024px) {
  .page-home .home-hero__title {
    font-size: 52px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 22px;
  }

  .page-home .home-hero__card {
    min-height: 180px;
  }

  .page-home .home-hero__card--schedule {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
  }

  .page-home .home-hero__card--report {
    grid-column: 2;
    grid-row: 1;
    margin-top: 44px;
  }

  .page-home .home-hero__card--expert {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 130px;
    margin-top: 0;
  }
}
