.page-home {
  --home-line: rgba(168, 178, 198, 0.12);
  --home-clip-hero: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
  --home-clip-panel: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  overflow-x: clip;
  background: var(--bg-primary);
  color: var(--text);
}

/* ===== 首屏 Hero ===== */
.page-home .home-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 72px;
  clip-path: var(--home-clip-hero);
  background: var(--grad-brand);
  z-index: 0;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

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

.page-home .home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(105deg, rgba(10, 31, 60, 0.94) 0%, rgba(10, 31, 60, 0.6) 48%, rgba(10, 31, 60, 0.2) 100%);
}

.page-home .home-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--home-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}

.page-home .home-hero__watermark {
  position: absolute;
  right: -0.04em;
  bottom: 0.4em;
  z-index: -1;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 16vw, 12rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(57, 255, 20, 0.08);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.page-home .home-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}

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

.page-home .home-hero__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: var(--size-caption);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.page-home .home-hero__crumb [aria-current="page"] {
  color: var(--neon);
}

.page-home .home-hero__crumb-sep {
  color: var(--silver);
  opacity: 0.6;
}

.page-home .home-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3.6vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.page-home .home-hero__slogan {
  font-family: var(--font-heading);
  font-size: var(--size-display);
  font-weight: 900;
  line-height: 1.06;
  margin: 0 0 22px;
  background: linear-gradient(120deg, var(--neon) 0%, #7EEF6E 38%, var(--text) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--neon);
}

.page-home .home-hero__desc {
  font-size: var(--size-body);
  line-height: 1.8;
  color: var(--text);
  max-width: 640px;
  border-left: 3px solid var(--neon);
  padding-left: 16px;
  margin: 0;
}

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.page-home .hero-stat {
  background: rgba(20, 46, 82, 0.72);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  padding: 16px 12px;
  backdrop-filter: blur(8px);
}

.page-home .hero-stat__num {
  display: block;
  font-family: var(--font-data);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(180deg, var(--neon) 0%, #7EEF6E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--neon);
}

.page-home .hero-stat__label {
  display: block;
  font-size: var(--size-caption);
  color: var(--text-muted);
  margin-top: 4px;
}

.page-home .home-hero__panel {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}

.page-home .hero-panel {
  background: rgba(20, 46, 82, 0.88);
  border: 1px solid rgba(168, 178, 198, 0.22);
  border-radius: var(--radius);
  clip-path: var(--home-clip-panel);
  padding: 28px 24px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.page-home .hero-panel__label {
  font-family: var(--font-data);
  font-size: var(--size-caption);
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 20px;
}

.page-home .hero-panel__field {
  margin-bottom: 16px;
}

.page-home .hero-panel__field label {
  display: block;
  font-size: var(--size-caption);
  color: var(--text-muted);
  margin-bottom: 6px;
}

.page-home .hero-panel__field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--silver);
  background: rgba(10, 31, 60, 0.75);
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color var(--transition);
}

.page-home .hero-panel__field input::placeholder {
  color: var(--text-muted);
}

.page-home .hero-panel__field input:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.16);
}

.page-home .hero-panel__btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

.page-home .hero-panel__tip {
  margin: 14px 0 0;
  font-size: var(--size-caption);
  color: var(--text-muted);
  line-height: 1.6;
}

.page-home .hero-register {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 107, 53, 0.1);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
}

.page-home .hero-register__arrow {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--orange);
  font-family: var(--font-data);
}

.page-home .hero-register p {
  font-size: var(--size-caption);
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.page-home .hero-register strong {
  color: var(--orange);
}

.page-home .home-hero__trajectory {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 0;
  pointer-events: none;
}

.page-home .home-hero__trajectory path {
  stroke: rgba(57, 255, 20, 0.55);
}

.page-home .home-hero__trajectory circle {
  fill: var(--neon);
}

.page-home .home-hero__trajectory circle:last-of-type {
  fill: var(--orange);
}

/* ===== 赛事收藏矩阵 ===== */
.page-home .home-collections {
  padding: 72px 0 40px;
  position: relative;
}

.page-home .home-collections .section__header {
  margin-bottom: 44px;
}

.page-home .home-collections .section__desc a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.page-home .home-collections .section__desc a:hover {
  border-bottom-color: var(--neon);
}

.page-home .home-collections__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 12px;
}

.page-home .collection-card {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--home-line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.page-home .collection-card:hover {
  transform: translateY(-6px);
  border-color: rgba(57, 255, 20, 0.5);
  box-shadow: var(--shadow-neon), var(--shadow);
}

.page-home .collection-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.page-home .collection-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.page-home .collection-card:hover .collection-card__img img {
  transform: scale(1.05);
}

.page-home .collection-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 31, 60, 0.75) 100%);
}

.page-home .collection-card__body {
  padding: 24px 22px 26px;
  position: relative;
}

.page-home .collection-card__num {
  position: absolute;
  top: -18px;
  right: 18px;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--neon);
  background: var(--bg-primary);
  padding: 8px 10px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  z-index: 1;
}

.page-home .collection-card__title {
  font-family: var(--font-heading);
  font-size: var(--size-h3);
  color: var(--text);
  margin: 0 0 10px;
}

.page-home .collection-card__desc {
  font-size: var(--size-body);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

.page-home .collection-card__link {
  display: inline-block;
  font-family: var(--font-data);
  font-size: var(--size-caption);
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 255, 20, 0.35);
  padding-bottom: 2px;
  transition: border-color var(--transition);
}

.page-home .collection-card__link:hover {
  border-bottom-color: var(--neon);
}

/* ===== 本周数据更新 ===== */
.page-home .home-weekly {
  padding: 64px 0 72px;
  background: var(--bg-alt);
  position: relative;
}

.page-home .home-weekly .section__header {
  margin-bottom: 40px;
}

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

.page-home .home-weekly__chart {
  background: rgba(10, 31, 60, 0.72);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  padding: 24px 20px;
  backdrop-filter: blur(6px);
}

.page-home .home-weekly__chart-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 18px;
  letter-spacing: 0.04em;
}

.page-home .bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 220px;
  padding: 12px 6px 0;
  border-bottom: 1px solid rgba(168, 178, 198, 0.2);
}

.page-home .bar-chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.page-home .bar-chart__val {
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--text);
  margin-bottom: 4px;
  background: rgba(10, 31, 60, 0.6);
  padding: 2px 4px;
  border-radius: 2px;
}

.page-home .bar-chart__bar {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(180deg, var(--neon) 0%, rgba(57, 255, 20, 0.25) 100%);
  border-radius: 2px 2px 0 0;
  min-height: 6%;
  transition: filter var(--transition);
}

.page-home .bar-chart__col:hover .bar-chart__bar {
  filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.5));
}

.page-home .bar-chart__day {
  font-family: var(--font-data);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 8px;
  white-space: nowrap;
}

.page-home .home-weekly__chart-note {
  font-family: var(--font-data);
  font-size: var(--size-caption);
  color: var(--text-muted);
  margin: 18px 0 0;
  text-align: right;
}

.page-home .home-weekly__media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.page-home .home-weekly__caption {
  background: rgba(10, 31, 60, 0.6);
  border-left: 3px solid var(--neon);
  padding: 14px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-home .home-weekly__caption p {
  margin: 0;
  font-size: var(--size-body);
  color: var(--text);
  line-height: 1.7;
}

.page-home .home-weekly__caption a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 255, 20, 0.35);
  transition: border-color var(--transition);
}

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

/* ===== 历史检索工作台 ===== */
.page-home .home-workbench {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
}

.page-home .home-workbench__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  z-index: -2;
}

.page-home .home-workbench__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(10, 31, 60, 0.96) 0%, rgba(20, 46, 82, 0.88) 100%);
}

.page-home .home-workbench .section__header {
  margin-bottom: 40px;
}

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

.page-home .workbench-panel {
  background: rgba(20, 46, 82, 0.92);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.page-home .workbench-panel__field {
  margin-bottom: 14px;
}

.page-home .workbench-panel__field label {
  display: block;
  font-size: var(--size-caption);
  color: var(--text-muted);
  margin-bottom: 6px;
}

.page-home .workbench-panel__field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--silver);
  background: rgba(10, 31, 60, 0.75);
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color var(--transition);
}

.page-home .workbench-panel__field input:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.16);
}

.page-home .workbench-panel__btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  text-align: center;
}

.page-home .workbench-panel__note {
  margin: 16px 0 0;
  font-size: var(--size-caption);
  color: var(--text-muted);
  line-height: 1.7;
}

.page-home .workbench-panel__note a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 255, 20, 0.35);
}

.page-home .workbench-panel__note a:hover {
  border-bottom-color: var(--neon);
}

.page-home .workbench-timeline {
  background: rgba(10, 31, 60, 0.72);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.page-home .workbench-timeline__title {
  font-family: var(--font-heading);
  font-size: var(--size-h3);
  color: var(--text);
  margin: 0 0 20px;
}

.page-home .workbench-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-home .workbench-timeline__list::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--neon) 0%, rgba(57, 255, 20, 0.15) 100%);
}

.page-home .workbench-timeline__list li {
  position: relative;
  padding: 0 0 0 36px;
  margin-bottom: 18px;
}

.page-home .workbench-timeline__list li:last-child {
  margin-bottom: 0;
}

.page-home .workbench-timeline__ver {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 2px solid var(--neon);
  border-radius: 50%;
  font-family: var(--font-data);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--neon);
}

.page-home .workbench-timeline__list p {
  margin: 0;
  font-size: var(--size-body);
  color: var(--text);
  line-height: 1.6;
}

/* ===== 会员开赛提醒 ===== */
.page-home .home-reminder {
  padding: 72px 0 80px;
  background: var(--bg-deep);
  position: relative;
}

.page-home .home-reminder__box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: linear-gradient(135deg, rgba(20, 46, 82, 0.85) 0%, rgba(10, 31, 60, 0.95) 100%);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
}

.page-home .home-reminder__content .section__num {
  display: inline-block;
  margin-bottom: 8px;
}

.page-home .home-reminder__desc {
  font-size: var(--size-body);
  color: var(--text);
  line-height: 1.8;
  max-width: 520px;
  margin: 14px 0 18px;
}

.page-home .home-reminder__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-home .home-reminder__benefits li {
  position: relative;
  padding: 10px 14px 10px 38px;
  background: rgba(10, 31, 60, 0.6);
  border-left: 2px solid var(--neon);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--size-body);
  color: var(--text);
}

.page-home .home-reminder__benefits li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neon);
  font-family: var(--font-data);
  font-weight: 700;
}

.page-home .reminder-form {
  background: rgba(10, 31, 60, 0.8);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.page-home .reminder-form__field {
  margin-bottom: 16px;
}

.page-home .reminder-form__field label {
  display: block;
  font-size: var(--size-caption);
  color: var(--text-muted);
  margin-bottom: 6px;
}

.page-home .reminder-form__field input,
.page-home .reminder-form__field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--silver);
  background: rgba(10, 31, 60, 0.75);
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color var(--transition);
}

.page-home .reminder-form__field input:focus,
.page-home .reminder-form__field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.16);
}

.page-home .reminder-form__btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  text-align: center;
}

.page-home .reminder-form__tip {
  margin: 16px 0 0;
  font-size: var(--size-caption);
  color: var(--text-muted);
  line-height: 1.7;
}

.page-home .reminder-form__tip a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 255, 20, 0.35);
}

.page-home .reminder-form__tip a:hover {
  border-bottom-color: var(--neon);
}

/* ===== 响应式断点 ===== */
@media (min-width: 640px) {
  .page-home .home-reminder__benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .page-home .home-hero {
    padding-bottom: 96px;
    --home-clip-hero: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
  }

  .page-home .home-hero__inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-home .home-hero__content {
    flex: 1 1 58%;
  }

  .page-home .home-hero__panel {
    flex: 0 1 42%;
    max-width: 440px;
    margin-top: 28px;
  }

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

  .page-home .collection-card--offset {
    transform: translateY(24px);
  }

  .page-home .home-weekly__body {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-home .home-workbench__body {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-home .home-reminder__box {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 44px 40px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding-top: calc(var(--header-h) + 64px);
    padding-bottom: 120px;
  }

  .page-home .home-hero__inner {
    gap: 60px;
  }

  .page-home .home-hero__desc {
    font-size: 1.06rem;
  }

  .page-home .home-hero__stats {
    gap: 20px;
    margin-top: 40px;
  }

  .page-home .home-hero__panel {
    max-width: 460px;
  }

  .page-home .home-collections {
    padding: 96px 0 56px;
  }

  .page-home .home-collections__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .page-home .collection-card--offset {
    transform: translateY(32px);
  }

  .page-home .home-weekly {
    padding: 88px 0 96px;
  }

  .page-home .home-weekly__body {
    gap: 44px;
  }

  .page-home .bar-chart {
    height: 260px;
    gap: 12px;
  }

  .page-home .bar-chart__val {
    font-size: 0.78rem;
  }

  .page-home .bar-chart__day {
    font-size: 0.75rem;
  }

  .page-home .home-workbench {
    padding: 96px 0 104px;
  }

  .page-home .home-workbench__body {
    gap: 44px;
  }

  .page-home .home-reminder {
    padding: 96px 0 104px;
  }

  .page-home .home-reminder__box {
    padding: 56px 48px;
  }
}
