/* ===== 首页专属样式 ===== */
.page-home {
  --home-hero-pad: clamp(2.5rem, 6vw, 5rem) 0 2rem;
  --home-section-pad: clamp(2.5rem, 6vw, 5rem) 0;
  --home-num-lg: clamp(3rem, 6vw, 5.5rem);
  --home-num-md: clamp(2.2rem, 4vw, 3.4rem);
  --home-card-pad: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* ---------- 首屏 Hero ---------- */
.page-home .home-hero {
  position: relative;
  padding: var(--home-hero-pad);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(51, 80, 122, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 80, 122, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 72%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -6%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
}

.page-home .home-hero__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}

.page-home .home-hero__kicker {
  margin: 0;
}

.page-home .home-hero__title {
  margin: 0;
  font-size: var(--home-num-lg);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 9ch;
}

.page-home .home-hero__lead {
  max-width: 60rem;
  margin: 0;
  color: var(--gray);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.page-home .home-hero__side {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.page-home .home-hero__quote {
  padding: var(--home-card-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
}

.page-home .home-hero__quote .kicker {
  margin: 0;
  color: var(--bg-deep);
}

.page-home .home-hero__quote-num {
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  color: var(--orange);
  line-height: 0.9;
  margin: 0.2rem 0 0;
}

.page-home .home-hero__quote-label {
  font-size: 0.95rem;
  color: #3a3540;
  margin: 0;
}

.page-home .home-hero__quote-link {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--bg-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.2rem;
  transition: gap 0.3s ease, color 0.3s ease;
}

.page-home .home-hero__quote-link:hover {
  gap: 0.8rem;
  color: var(--orange);
}

.page-home .home-hero__media {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

.page-home .home-hero__index {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin-top: 2rem;
  border-top: 2px solid var(--border);
  padding-top: 1.2rem;
}

.page-home .home-hero__index-link {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.7rem 0.2rem;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
}

.page-home .home-hero__index-link:hover {
  color: var(--green);
  border-color: var(--green);
}

.page-home .home-hero__index-num {
  color: var(--green);
  font-size: 0.85rem;
}

/* ---------- 通用 Section 头部 ---------- */
.page-home .section {
  padding: var(--home-section-pad);
}

.page-home .section__head {
  max-width: 800px;
  margin-bottom: 2rem;
}

.page-home .section__head .lead {
  color: var(--gray);
  margin: 0.6rem 0 0;
}

/* ---------- 新版赛事日历 ---------- */
.page-home .home-calendar {
  border-top: 1px solid var(--border);
}

.page-home .home-calendar__layout {
  display: grid;
  gap: 1rem;
}

.page-home .home-calendar__visual {
  padding: 0;
  overflow: hidden;
  background: var(--bg-content);
}

.page-home .home-calendar__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.page-home .home-calendar__tabs {
  padding: var(--home-card-pad);
  background: var(--bg-content);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .home-calendar__tabs p {
  margin: 0 0 0.6rem;
  color: var(--gray);
  font-size: 0.98rem;
  line-height: 1.7;
}

.page-home .home-calendar__tabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.page-home .home-calendar__tabs ul li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--white);
  font-size: 0.95rem;
}

.page-home .home-calendar__tabs ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.58rem;
  height: 0.58rem;
  background: var(--green);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- 轮次报价栏 ---------- */
.page-home .home-rounds {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(20, 24, 31, 0.6));
}

.page-home .home-rounds__layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.page-home .home-rounds__tabs {
  padding: var(--home-card-pad);
  background: var(--bg-content);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .home-rounds__nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.5rem;
  scrollbar-width: thin;
}

.page-home .home-rounds__price {
  font-size: var(--home-num-md);
  color: var(--orange);
  font-weight: 700;
  margin: 0.2rem 0 0.4rem;
  line-height: 1;
}

.page-home .home-rounds__tabs p:not(.home-rounds__price) {
  margin: 0;
  color: var(--gray);
  line-height: 1.7;
}

.page-home .home-rounds__aside {
  padding: var(--home-card-pad);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: var(--shadow-card);
}

.page-home .home-rounds__aside p {
  margin: 0;
  color: var(--bg-deep);
  line-height: 1.7;
  font-size: 0.96rem;
}

/* ---------- 42轮数据记录 ---------- */
.page-home .home-data {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.1), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(0, 255, 136, 0.06), transparent 40%);
}

.page-home .home-data__grid {
  gap: 1rem;
}

.page-home .home-data__stat {
  padding: var(--home-card-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  background: var(--bg-content);
}

.page-home .home-data__num {
  font-size: var(--home-num-md);
  color: var(--white);
  line-height: 1;
  font-weight: 700;
}

.page-home .home-data__stat--accent {
  border-color: var(--green);
  background: var(--bg-content);
}

.page-home .home-data__stat--accent .home-data__num {
  color: var(--green);
}

.page-home .home-data__num-label {
  color: var(--gray);
  margin-top: 0.5rem;
  font-size: 0.88rem;
}

.page-home .home-data__heatmap {
  padding: var(--home-card-pad);
  background: var(--bg-content);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .home-data__heatmap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.page-home .home-data__heatmap-title {
  margin: 0;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}

.page-home .home-data__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.page-home .home-data__notes {
  background: var(--bg-content);
  border-color: var(--border);
  padding: var(--home-card-pad);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-content: center;
}

.page-home .home-data__notes p {
  margin: 0;
  color: var(--gray);
  border-left: 3px solid var(--green);
  padding-left: 0.9rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.page-home .home-data__notes .btn {
  align-self: flex-start;
  margin-top: 0.4rem;
}

/* ---------- 球队订阅与推送 ---------- */
.page-home .home-subscribe {
  border-top: 1px solid var(--border);
}

.page-home .home-subscribe__layout {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.page-home .home-subscribe__phone {
  padding: 1.5rem;
  background: var(--bg-content);
  border-color: var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.page-home .home-subscribe__img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border);
}

.page-home .home-subscribe__content {
  padding: var(--home-card-pad);
  background: var(--bg-content);
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
}

.page-home .home-subscribe__title {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.page-home .home-subscribe__tabs {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-home .home-subscribe__panel p {
  margin: 0;
  color: var(--gray);
  line-height: 1.7;
  font-size: 0.96rem;
}

.page-home .home-subscribe__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.page-home .home-subscribe__points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--white);
  font-size: 0.95rem;
}

.page-home .home-subscribe__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--green);
  transform: rotate(45deg);
}

/* ---------- 案例合集模板 ---------- */
.page-home .home-cases {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 24, 31, 0.4), transparent 60%);
}

.page-home .home-cases__grid {
  display: grid;
  gap: 1.2rem;
}

.page-home .home-cases__item {
  padding: var(--home-card-pad);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow-card);
}

.page-home .home-cases__num {
  color: var(--orange);
  font-size: 1.35rem;
  font-weight: 700;
}

.page-home .home-cases__title {
  margin: 0;
  color: var(--bg-deep);
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.35;
}

.page-home .home-cases__item p {
  margin: 0;
  color: #3a3540;
  font-size: 0.93rem;
  line-height: 1.65;
}

.page-home .home-cases__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ---------- 响应式桌面布局 ---------- */
@media (min-width: 720px) {
  .page-home .home-hero__index {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .page-home .home-hero__index-link {
    justify-content: flex-start;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2.5rem;
  }

  .page-home .home-hero__media {
    max-height: 400px;
  }

  .page-home .home-hero__img {
    max-height: 400px;
  }

  .page-home .home-calendar__layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
  }

  .page-home .home-rounds__layout {
    grid-template-columns: 1.55fr 0.45fr;
  }

  .page-home .home-rounds__aside {
    position: sticky;
    top: 1rem;
  }

  .page-home .home-subscribe__layout {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 1.5rem;
  }

  .page-home .home-cases__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .page-home .home-cases__item:nth-child(2) {
    transform: translateY(1.5rem);
  }

  .page-home .home-data__notes {
    min-height: 220px;
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero__title {
    font-size: clamp(4.2rem, 6vw, 6.2rem);
  }

  .page-home .home-data__stat {
    min-height: 170px;
  }
}
