.page-home {
  --flow-green: rgba(0, 255, 136, 0.8);
  --flow-orange: rgba(255, 106, 0, 0.8);
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  overflow-x: clip;
}

/* 面包屑 */
.page-home .breadcrumb {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.page-home .breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.page-home .breadcrumb a:hover {
  color: var(--green);
}
.page-home .breadcrumb [aria-current="page"] {
  color: var(--text-body);
}

/* ========== 首屏 ========== */
.page-home .home-hero {
  position: relative;
  margin-top: 10px;
  padding: 28px 0 76px;
  background: var(--bg-alt);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-home .hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.25) contrast(1.1);
}
.page-home .hero-bg-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 14, 39, 0.97) 0%, rgba(10, 14, 39, 0.78) 45%, rgba(10, 14, 39, 0.55) 100%),
    radial-gradient(circle at 85% 22%, rgba(0, 255, 136, 0.14) 0%, transparent 46%),
    radial-gradient(circle at 12% 92%, rgba(255, 106, 0, 0.2) 0%, transparent 42%);
}

.page-home .hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.page-home .hero-main {
  padding-top: 8px;
}
.page-home .hero-main h1 {
  margin: 14px 0 18px;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  text-transform: uppercase;
}
.page-home .hero-lead {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
}

.page-home .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-bottom: 30px;
}
.page-home .hero-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  padding-left: 14px;
  border-left: 3px solid var(--green);
}
.page-home .hero-stat:nth-child(2) {
  border-left-color: var(--orange);
}
.page-home .hero-stat:nth-child(3) {
  border-left-color: var(--text-muted);
}
.page-home .hero-stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--text);
  line-height: 1;
}
.page-home .hero-stat-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.page-home .hero-stat-label {
  display: block;
  width: 100%;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.page-home .hero-cta {
  display: inline-block;
  padding: 14px 30px;
  background: var(--green);
  color: #06121a;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.page-home .hero-cta:hover {
  background: #7dffb8;
  transform: translateY(-2px);
}

/* 首屏浮岛 */
.page-home .hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .lineup-float,
.page-home .calendar-float {
  position: relative;
  padding: 20px;
  background: rgba(17, 22, 43, 0.88);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.page-home .lineup-float::before,
.page-home .calendar-float::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 34px;
  height: 3px;
  background: var(--green);
}
.page-home .calendar-float::before {
  background: var(--orange);
}

.page-home .float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.page-home .float-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.page-home .lineup-float h2,
.page-home .calendar-float h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--text);
  transform: skewX(var(--skew));
}
.page-home .lineup-float p,
.page-home .calendar-float p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.6;
}

.page-home .float-img {
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.page-home .float-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.page-home .lineup-float:hover .float-img img,
.page-home .calendar-float:hover .float-img img {
  transform: scale(1.03);
}

.page-home .btn-float-green {
  display: block;
  width: 100%;
  padding: 12px 18px;
  text-align: center;
  background: var(--green);
  color: #06121a;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.page-home .btn-float-green:hover {
  background: #7dffb8;
  transform: translateY(-2px);
}

.page-home .fav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.page-home .btn-float-orange {
  display: block;
  width: 100%;
  padding: 12px 18px;
  text-align: center;
  background: transparent;
  color: var(--orange);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid var(--orange);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.page-home .btn-float-orange:hover {
  background: rgba(255, 106, 0, 0.12);
  color: var(--text);
}
.page-home .fav-toggle:focus-visible + .btn-float-orange {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.page-home .fav-toggle:checked + .btn-float-orange {
  background: rgba(0, 255, 136, 0.14);
  border-color: var(--green);
  color: var(--green);
}
.page-home .fav-toggle:checked + .btn-float-orange .fav-label::after {
  content: " ✓";
}

/* 首屏数据流线 */
.page-home .hero-flowline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  width: 100%;
  height: 24px;
  z-index: 3;
  opacity: 0.45;
  pointer-events: none;
}
.page-home .hero-flowline path {
  stroke-dasharray: 14 10;
  animation: page-home-flow 2.6s linear infinite;
}

/* ========== 赛事轮次速览 ========== */
.page-home .home-rounds {
  padding: 64px 0 72px;
  background: var(--bg);
  position: relative;
}

.page-home .section-head {
  margin-bottom: 30px;
}
.page-home .section-head h2 {
  margin: 10px 0 10px;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.6vw, 2.8rem);
  line-height: 1.1;
  color: var(--text);
  transform: skewX(var(--skew));
}
.page-home .section-lead {
  max-width: 620px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-home .refresh-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.page-home .refresh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.15);
  animation: page-home-pulse 1.8s ease-in-out infinite;
}

.page-home .rounds-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-home .rounds-tabs {
  position: relative;
  min-width: 0;
}
.page-home .rounds-tab-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.page-home .rounds-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.page-home .rounds-tab-btn {
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-bottom: none;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.page-home .rounds-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.page-home #rounds-tab-fb:checked ~ .rounds-tab-list label[for="rounds-tab-fb"],
.page-home #rounds-tab-bb:checked ~ .rounds-tab-list label[for="rounds-tab-bb"],
.page-home #rounds-tab-tn:checked ~ .rounds-tab-list label[for="rounds-tab-tn"],
.page-home #rounds-tab-es:checked ~ .rounds-tab-list label[for="rounds-tab-es"] {
  color: var(--green);
  border-color: var(--border) var(--border) var(--green);
  border-style: solid;
  background: rgba(0, 255, 136, 0.06);
}

.page-home .rounds-panel {
  display: none;
}
.page-home #rounds-tab-fb:checked ~ .rounds-panels #panel-rounds-fb,
.page-home #rounds-tab-bb:checked ~ .rounds-panels #panel-rounds-bb,
.page-home #rounds-tab-tn:checked ~ .rounds-panels #panel-rounds-tn,
.page-home #rounds-tab-es:checked ~ .rounds-panels #panel-rounds-es {
  display: block;
}

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

.page-home .round-card {
  position: relative;
  padding: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.page-home .round-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green));
}
.page-home .round-card:hover {
  border-color: rgba(0, 255, 136, 0.45);
  transform: translateY(-2px);
}
.page-home .round-extra {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  z-index: 1;
}
.page-home .round-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding-right: 78px;
}
.page-home .round-progress-text {
  font-size: 0.74rem;
  color: var(--orange);
  white-space: nowrap;
}
.page-home .round-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--text);
}
.page-home .round-match {
  margin: 0 0 6px;
  font-size: 0.96rem;
  color: var(--text-body);
}
.page-home .round-meta {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.page-home .round-track {
  height: 4px;
  background: var(--border);
  overflow: hidden;
}
.page-home .round-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
}

/* 数据可视化 */
.page-home .rounds-visual {
  padding: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.page-home .rounds-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: 12px;
}
.page-home .rounds-visual p {
  margin: 12px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== 平台特性 ========== */
.page-home .home-features {
  padding: 92px 0 72px;
  background: var(--bg-alt);
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
}
.page-home .home-features .section-head {
  margin-bottom: 36px;
}

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

.page-home .feature-block {
  position: relative;
  padding: 24px 20px;
  background: rgba(10, 14, 39, 0.55);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.page-home .feature-block:nth-child(even) {
  border-left-color: var(--orange);
}
.page-home .feature-block:hover {
  background: rgba(10, 14, 39, 0.85);
  border-color: rgba(0, 255, 136, 0.35);
}
.page-home .feature-num {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 8px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--orange);
  border: 1px solid var(--border);
  letter-spacing: 0.08em;
}
.page-home .feature-block:nth-child(even) .feature-num {
  color: var(--green);
}
.page-home .feature-block h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--text);
}
.page-home .feature-block p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* ========== 最新动态 ========== */
.page-home .home-updates {
  padding: 72px 0 80px;
  background: var(--bg);
}
.page-home .section-head .updates-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.page-home .updates-more:hover {
  border-bottom-color: var(--green);
}

.page-home .updates-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .update-item {
  padding: 22px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.page-home .update-item:hover {
  border-top-color: var(--green);
  transform: translateY(-2px);
}
.page-home .update-item .tag {
  display: inline-block;
  margin-bottom: 12px;
}
.page-home .update-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--text);
}
.page-home .update-item p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-body);
}
.page-home .update-item a {
  font-size: 0.84rem;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.page-home .update-item a:hover {
  border-bottom-color: rgba(0, 255, 136, 0.6);
}

/* ========== 帮助区 ========== */
.page-home .home-help {
  padding: 0 0 88px;
  background: var(--bg);
}
.page-home .help-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px 24px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.07) 0%, rgba(17, 22, 43, 0.85) 55%);
  border: 1px solid var(--border);
  position: relative;
}
.page-home .help-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 3px;
  height: 42px;
  background: var(--orange);
}
.page-home .help-copy h2 {
  margin: 10px 0 8px;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--text);
  transform: skewX(var(--skew));
}
.page-home .help-copy p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
}
.page-home .help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-home .help-outline-btn,
.page-home .help-solid-btn {
  display: inline-block;
  padding: 11px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.page-home .help-outline-btn {
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
}
.page-home .help-outline-btn:hover {
  background: rgba(0, 255, 136, 0.12);
  color: var(--text);
}
.page-home .help-solid-btn {
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #1a120a;
  font-weight: 800;
}
.page-home .help-solid-btn:hover {
  background: transparent;
  color: var(--orange);
}

/* ========== 动效 ========== */
@keyframes page-home-flow {
  to {
    stroke-dashoffset: -24;
  }
}
@keyframes page-home-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.15);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 255, 136, 0.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-flowline path,
  .page-home .refresh-dot {
    animation: none;
  }
  .page-home .round-card,
  .page-home .update-item,
  .page-home .hero-cta,
  .page-home .btn-float-green,
  .page-home .btn-float-orange {
    transition: none;
  }
}

/* ========== 响应式 ========== */
@media (min-width: 640px) {
  .page-home .rounds-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .updates-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

@media (min-width: 768px) {
  .page-home .hero-main h1 {
    font-size: clamp(2.6rem, 6vw, 3.8rem);
  }
  .page-home .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .updates-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .help-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 36px 34px;
  }
  .page-home .help-copy {
    max-width: 560px;
  }
  .page-home .rounds-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: 28px;
    align-items: start;
  }
  .page-home .round-extra {
    opacity: 0;
    transition: opacity 0.2s var(--ease);
  }
  .page-home .round-card:hover .round-extra,
  .page-home .round-card:focus-within .round-extra {
    opacity: 1;
  }
}

@media (min-width: 992px) {
  .page-home .home-hero {
    padding: 40px 0 88px;
  }
  .page-home .hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 44px;
    align-items: center;
    min-height: 620px;
  }
  .page-home .hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .page-home .hero-main {
    padding-right: 20px;
  }
  .page-home .hero-lead {
    font-size: 1.05rem;
  }
  .page-home .hero-stats {
    gap: 30px;
  }
  .page-home .rounds-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
    gap: 36px;
  }
  .page-home .round-card {
    padding: 18px;
  }
  .page-home .rounds-visual {
    padding: 20px;
  }
  .page-home .help-panel {
    padding: 42px 44px;
  }
}
</main>
