/* ========== 首页专属样式 ========== */
.page-home {
  --home-line: rgba(245, 242, 235, 0.14);
  --home-glow-blue: rgba(30, 111, 235, 0.22);
  --home-glow-orange: rgba(255, 122, 26, 0.16);
  --home-card-bg: rgba(255, 255, 255, 0.04);
  --home-font-data: var(--font-data);
  --home-font-head: var(--font-heading);
}

/* ---------- 首屏 Hero ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--home-glow-blue), transparent 65%),
    radial-gradient(800px 380px at 0% 110%, var(--home-glow-orange), transparent 60%),
    var(--bg-primary);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #1E6FEB 0%, #00D4FF 48%, #FF7A1A 100%);
  z-index: 3;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 48px;
  align-items: center;
}

.page-home .home-hero__content {
  max-width: 720px;
}

.page-home .home-hero .breadcrumb {
  margin-bottom: 28px;
}

.page-home .home-hero h1 {
  margin: 18px 0 20px;
  font-family: var(--home-font-head);
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: #F5F2EB;
}

.page-home .home-hero__sep {
  margin: 0 12px;
  color: #FF7A1A;
  font-weight: 400;
}

.page-home .home-hero__lead {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.85;
  color: #B8B8B8;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.page-home .home-hero__actions .btn {
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
}

.page-home .home-hero__stats {
  margin: 42px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-home .home-hero__stat {
  border-top: 1px solid var(--home-line);
  padding-top: 14px;
}

.page-home .home-hero__stat-label {
  font-size: 13px;
  color: #6C6F78;
  margin-bottom: 6px;
}

.page-home .home-hero__stat-value {
  margin: 0;
  font-family: var(--home-font-data);
  font-size: 28px;
  font-weight: 600;
  color: #F5F2EB;
}

/* ---------- 首屏球场视觉 ---------- */
.page-home .home-hero__visual {
  position: relative;
}

.page-home .home-pitch {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: #0A0E14;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  aspect-ratio: 3 / 2;
}

.page-home .home-pitch__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-pitch__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-home .home-pitch__lines {
  fill: none;
  stroke: rgba(245, 242, 235, 0.35);
  stroke-width: 2;
}

.page-home .home-pitch__flow {
  fill: none;
  stroke: #1E6FEB;
  stroke-width: 1.4;
  stroke-dasharray: 6 8;
  opacity: 0.55;
  animation: homeFlowDash 8s linear infinite;
}

@keyframes homeFlowDash {
  to { stroke-dashoffset: -56; }
}

.page-home .home-pitch__particles {
  fill: #FF7A1A;
}

.page-home .home-pitch__particles circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: homePulse 2.4s ease-in-out infinite;
}

.page-home .home-pitch__particles circle:nth-child(2n) { animation-delay: 0.6s; }
.page-home .home-pitch__particles circle:nth-child(3n) { animation-delay: 1.2s; }

@keyframes homePulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.4); }
}

.page-home .home-pitch__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-family: var(--home-font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00D4FF;
  background: rgba(14, 17, 23, 0.72);
  border: 1px solid rgba(0, 212, 255, 0.35);
  padding: 6px 10px;
  border-radius: 3px;
  backdrop-filter: blur(6px);
}

/* ---------- 实时数据面板 ---------- */
.page-home .home-live {
  padding: 72px 0;
  background-color: #0B0F15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 40px 40px;
  border-top: 1px solid var(--home-line);
}

.page-home .home-live__grid {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}

.page-home .home-live__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.page-home .home-live__card {
  margin: 0;
  position: relative;
}

.page-home .home-live__card::after {
  content: attr(data-hover);
  position: absolute;
  top: 50%;
  left: calc(100% + 14px);
  width: max-content;
  max-width: 230px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: #B8B8B8;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-50%) translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 5;
}

.page-home .home-live__card:hover::after,
.page-home .home-live__card:focus-within::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.page-home .home-live__figure {
  margin: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
}

.page-home .home-live__figure-media {
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

.page-home .home-live__figure-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-live__fig {
  padding: 20px 22px;
}

.page-home .home-live__fig p {
  margin: 12px 0 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #B8B8B8;
}

.page-home .home-live__link {
  color: #00D4FF;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .home-live__link:hover {
  color: #FF7A1A;
}

/* ---------- 核心功能标签页 ---------- */
.page-home .home-features {
  padding: 72px 0;
  background: var(--bg-primary);
}

.page-home .home-features__tabs {
  margin-top: 36px;
  position: relative;
}

.page-home .home-features__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.page-home .home-features__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  margin: 4px 6px 4px 0;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  font-size: 15px;
  font-weight: 600;
  color: #B8B8B8;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.page-home .home-features__tab-index {
  font-family: var(--home-font-data);
  font-size: 12px;
  color: #6C6F78;
  transition: color 0.2s ease;
}

.page-home .home-features__radio:checked + .home-features__tab {
  background: rgba(255, 122, 26, 0.14);
  border-color: rgba(255, 122, 26, 0.55);
  color: #FF7A1A;
}

.page-home .home-features__radio:checked + .home-features__tab .home-features__tab-index {
  color: #FF7A1A;
}

.page-home .home-features__radio:focus-visible + .home-features__tab,
.page-home .home-features__tab:focus-visible {
  outline: 2px solid #00D4FF;
  outline-offset: 2px;
}

.page-home .home-features__panels {
  margin-top: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
}

.page-home .home-features__panel {
  display: none;
  padding: 26px 22px;
}

.page-home .home-features__panel--active,
.page-home .home-features__panel:target {
  display: block;
}

.page-home #feat-query:checked ~ .home-features__panels #panel-feat-query,
.page-home #feat-export:checked ~ .home-features__panels #panel-feat-export,
.page-home #feat-sync:checked ~ .home-features__panels #panel-feat-sync,
.page-home #feat-history:checked ~ .home-features__panels #panel-feat-history {
  display: block;
  animation: homeTabIn 0.25s ease;
}

@keyframes homeTabIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home .home-features__split {
  display: grid;
  gap: 26px;
  align-items: center;
}

.page-home .home-features__copy h3 {
  font-family: var(--home-font-head);
  font-size: 24px;
  margin: 0 0 12px;
  color: #F5F2EB;
}

.page-home .home-features__copy p {
  font-size: 15px;
  line-height: 1.7;
  color: #B8B8B8;
  margin: 0 0 16px;
}

.page-home .home-features__list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .home-features__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #E8E6DF;
}

.page-home .home-features__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: #1E6FEB;
  font-weight: 700;
}

.page-home .home-features__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

/* ---------- 假搜索条 ---------- */
.page-home .home-fake-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0E1117;
  border: 1px solid rgba(30, 111, 235, 0.4);
  border-radius: 8px;
  padding: 6px 6px 6px 14px;
  max-width: 440px;
}

.page-home .home-fake-search__icon {
  color: #1E6FEB;
  font-size: 20px;
  line-height: 1;
}

.page-home .home-fake-search__text {
  flex: 1;
  font-size: 14px;
  color: #6C6F78;
  font-family: var(--home-font-data);
}

.page-home .home-fake-search__btn {
  display: inline-block;
  background: #1E6FEB;
  color: #F5F2EB;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.page-home .home-fake-search__btn:hover {
  background: #FF7A1A;
}

/* ---------- 导出示意卡 ---------- */
.page-home .home-export-card {
  display: grid;
  gap: 6px;
  background: #0E1117;
  border: 1px solid rgba(30, 111, 235, 0.4);
  border-radius: 8px;
  padding: 20px;
  font-family: var(--home-font-data);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
}

.page-home .home-export-card__title {
  color: #00D4FF;
  font-weight: 600;
  margin-bottom: 8px;
}

.page-home .home-export-card__row {
  color: #B8B8B8;
  white-space: nowrap;
}

.page-home .home-export-card .tag {
  justify-self: start;
  margin-top: 10px;
}

/* ---------- 同步示意 ---------- */
.page-home .home-sync {
  display: grid;
  gap: 12px;
}

.page-home .home-sync__node {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #0E1117;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: #F5F2EB;
  font-family: var(--home-font-data);
  font-size: 14px;
}

.page-home .home-sync__node i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1E6FEB;
  box-shadow: 0 0 0 4px rgba(30, 111, 235, 0.18);
  display: block;
}

.page-home .home-sync__node--cloud {
  border-color: rgba(255, 122, 26, 0.45);
}

.page-home .home-sync__node--cloud i {
  background: #FF7A1A;
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.16);
}

/* ---------- 历史档案视觉 ---------- */
.page-home .home-archive {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, rgba(30, 111, 235, 0.12), rgba(0, 212, 255, 0.06));
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.page-home .home-archive__label {
  font-size: 13px;
  color: #B8B8B8;
  letter-spacing: 0.06em;
}

.page-home .home-archive__value {
  font-family: var(--home-font-data);
  font-size: clamp(36px, 4vw, 52px);
  color: #00D4FF;
  font-weight: 600;
  margin: 8px 0 2px;
}

.page-home .home-archive__unit {
  font-family: var(--home-font-data);
  font-size: 14px;
  color: #6C6F78;
}

/* ---------- 会员权益 ---------- */
.page-home .home-membership {
  padding: 72px 0;
  background: #0B0F15;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-membership__grid {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.page-home .home-membership__card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 28px 24px 24px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-home .home-membership__card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 111, 235, 0.5);
}

.page-home .home-membership__num {
  position: absolute;
  top: 8px;
  right: 16px;
  font-family: var(--home-font-head);
  font-size: 68px;
  line-height: 1;
  color: rgba(30, 111, 235, 0.2);
  z-index: 0;
}

.page-home .home-membership__card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--home-font-head);
  font-size: 20px;
  margin: 0 0 10px;
  color: #F5F2EB;
}

.page-home .home-membership__card p {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.7;
  color: #B8B8B8;
  margin: 0 0 18px;
}

.page-home .home-membership__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(145deg, rgba(255, 122, 26, 0.1), rgba(30, 111, 235, 0.06));
  border: 1px solid rgba(255, 122, 26, 0.3);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.page-home .home-membership__visual img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.page-home .home-membership__visual p {
  margin: 0;
  font-family: var(--home-font-data);
  font-size: 14px;
  color: #00D4FF;
  letter-spacing: 0.04em;
}

/* ---------- 最新动态 ---------- */
.page-home .home-news {
  padding: 72px 0;
  background: var(--bg-primary);
}

.page-home .home-news__list {
  margin-top: 40px;
  border-left: 2px solid var(--home-line);
  padding-left: 24px;
  display: grid;
  gap: 30px;
  max-width: 860px;
}

.page-home .home-news__item {
  position: relative;
}

.page-home .home-news__item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1E6FEB;
  box-shadow: 0 0 0 4px rgba(30, 111, 235, 0.16);
}

.page-home .home-news__item:nth-child(1)::before { background: #FF7A1A; box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.16); }
.page-home .home-news__item:nth-child(2)::before { background: #00D4FF; box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.16); }

.page-home .home-news__item h3 {
  font-family: var(--home-font-head);
  font-size: 20px;
  margin: 12px 0 8px;
  color: #F5F2EB;
}

.page-home .home-news__item p {
  font-size: 15px;
  line-height: 1.7;
  color: #B8B8B8;
  margin: 0 0 12px;
  max-width: 68ch;
}

.page-home .home-news__link {
  display: inline-block;
  color: #00D4FF;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .home-news__link:hover {
  color: #FF7A1A;
}

/* ---------- 信任与承诺 ---------- */
.page-home .home-trust {
  padding: 72px 0;
  background-color: #0B0F15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 40px 40px;
  border-top: 1px solid var(--home-line);
}

.page-home .home-trust__grid {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.page-home .home-trust__item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-home .home-trust__item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.45);
}

.page-home .home-trust__icon {
  display: inline-block;
  font-family: var(--home-font-data);
  font-size: 26px;
  font-weight: 600;
  color: #1E6FEB;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FF7A1A;
}

.page-home .home-trust__item:nth-child(2) .home-trust__icon { color: #FF7A1A; }
.page-home .home-trust__item:nth-child(3) .home-trust__icon { color: #00D4FF; }
.page-home .home-trust__item:nth-child(4) .home-trust__icon { color: #1E6FEB; }

.page-home .home-trust__item h3 {
  font-family: var(--home-font-head);
  font-size: 18px;
  margin: 0 0 10px;
  color: #F5F2EB;
}

.page-home .home-trust__item p {
  font-size: 14px;
  line-height: 1.7;
  color: #B8B8B8;
  margin: 0;
}

.page-home .home-trust__statement {
  margin-top: 32px;
  border-radius: 12px;
  padding: 28px;
}

.page-home .home-trust__statement p {
  font-size: 16px;
  line-height: 1.85;
  color: #E8E6DF;
  margin: 0 0 18px;
  max-width: 90ch;
}

.page-home .home-trust__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 首页媒体查询 ---------- */
@media (min-width: 640px) {
  .page-home .home-hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

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

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    min-height: 600px;
  }

  .page-home .home-hero {
    padding-top: 120px;
    padding-bottom: 84px;
  }

  .page-home .home-hero__lead {
    font-size: 17px;
  }

  .page-home .home-live__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

  .page-home .home-live__stats {
    grid-template-columns: repeat(2, 1fr);
    align-content: stretch;
  }

  .page-home .home-live__figure {
    display: flex;
    flex-direction: column;
  }

  .page-home .home-features__panels {
    padding: 8px;
  }

  .page-home .home-features__panel {
    padding: 32px;
  }

  .page-home .home-features__split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 36px;
  }

  .page-home .home-features__split--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .page-home .home-features__split--reverse > .home-features__media {
    order: 1;
  }

  .page-home .home-features__split--reverse > .home-features__copy {
    order: 2;
  }

  .page-home .home-features__tab {
    padding: 12px 22px;
  }

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

  .page-home .home-news__item h3 {
    font-size: 22px;
  }

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

  .page-home .home-trust__statement {
    padding: 36px;
  }
}

/* ---------- 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .home-pitch__flow,
  .page-home .home-pitch__particles circle {
    animation: none;
  }

  .page-home .home-features__panel {
    animation: none !important;
  }

  .page-home .home-live__card::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}
