.page-home {
  position: relative;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  padding: 28px 0 72px;
}

.page-home::before {
  content: "";
  position: absolute;
  top: 680px;
  right: -24%;
  width: 90%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, .5), transparent);
  transform: rotate(-18deg);
  pointer-events: none;
  z-index: 0;
}

.page-home::after {
  content: "";
  position: absolute;
  top: 1480px;
  left: -30%;
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 31, 68, .28), transparent);
  transform: rotate(9deg);
  pointer-events: none;
  z-index: 0;
}

.page-home .container,
.page-home section {
  position: relative;
  z-index: 1;
}

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

.page-home__intro {
  padding: 20px 0 36px;
}

.page-home__intro-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-home__directory {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}

.page-home__directory-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: color .25s ease, border-color .25s ease;
}

.page-home__directory-item:hover,
.page-home__directory-item:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.page-home__directory-index {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--orange);
  letter-spacing: .08em;
}

.page-home__directory-title {
  font-family: var(--font-head);
  font-size: 1.65rem;
  letter-spacing: .05em;
  line-height: 1.1;
}

.page-home__directory-arrow {
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--gray);
  transition: transform .25s ease, color .25s ease;
}

.page-home__directory-item:hover .page-home__directory-arrow,
.page-home__directory-item:focus-visible .page-home__directory-arrow {
  transform: translateX(6px);
  color: var(--orange);
}

.page-home__directive {
  position: relative;
  padding: 12px 0 18px;
}

.page-home__directive::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 4px;
  background: var(--orange);
}

.page-home__directive-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .22em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-home__directive-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: .96;
  letter-spacing: .03em;
  margin: 0 0 18px;
  color: var(--ink);
}

.page-home__directive-text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 46em;
}

.page-home__directive-note {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--gray);
  letter-spacing: .14em;
  margin: 0;
}

.page-home__section {
  padding: 48px 0;
}

.page-home__section--features {
  background: linear-gradient(135deg, transparent 0%, rgba(255, 107, 53, .08) 100%);
}

.page-home__section--community {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 31, 68, .06) 100%);
}

.page-home__section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.page-home__section-index {
  font-family: var(--font-mono);
  font-size: .875rem;
  color: var(--orange);
  letter-spacing: .08em;
}

.page-home__section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  letter-spacing: .05em;
  line-height: 1;
  margin: 0;
}

.page-home__section-note {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .75rem;
  color: var(--gray);
  white-space: nowrap;
}

.page-home__filters {
  display: block;
}

.page-home__filter-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-home__filter-labels {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.page-home__filter-label {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  user-select: none;
}

.page-home #filter-all:checked ~ .page-home__filter-labels label[for="filter-all"],
.page-home #filter-goals:checked ~ .page-home__filter-labels label[for="filter-goals"],
.page-home #filter-focus:checked ~ .page-home__filter-labels label[for="filter-focus"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.page-home #filter-goals:checked ~ .page-home__bento--stats .page-home__card--match,
.page-home #filter-focus:checked ~ .page-home__bento--stats .page-home__card--goal {
  display: none;
}

.page-home__bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home__card {
  padding: 20px;
  min-width: 0;
}

.page-home__panel {
  background: var(--white);
  border: 1px solid var(--line);
}

.page-home__panel--paper {
  background: var(--paper);
}

.page-home__panel--navy {
  background: var(--navy);
  color: #fff;
  border-color: transparent;
}

.page-home__panel--dark {
  background: var(--navy);
  color: #fff;
  border-color: transparent;
}

.page-home__card-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: .05em;
  line-height: 1.25;
  margin: 0 0 12px;
}

.page-home__card p {
  margin: 0 0 12px;
  line-height: 1.65;
}

.page-home__score-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  padding: 0;
}

.page-home__score-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
}

.page-home__score-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(10, 31, 68, .6) 0%, rgba(10, 31, 68, .15) 60%, rgba(10, 31, 68, .72) 100%);
  flex: 1;
  justify-content: space-between;
}

.page-home__score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-home__live {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  color: var(--gold);
  padding-left: 18px;
  position: relative;
}

.page-home__live::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%);
  animation: page-home-pulse 1.4s infinite ease-in-out;
}

@keyframes page-home-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, .6); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 53, 0); }
}

.page-home__matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.page-home__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 92px;
}

.page-home__team-name {
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}

.page-home__team-score {
  font-family: var(--font-mono);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.page-home__matchup-divider {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--orange);
  transform: translateY(-4px);
}

.page-home__period {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-home__period-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-home__period-labels {
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  padding: 2px;
}

.page-home__period-label {
  display: inline-block;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}

.page-home #period-full:checked ~ .page-home__period-labels label[for="period-full"],
.page-home #period-half:checked ~ .page-home__period-labels label[for="period-half"] {
  background: var(--orange);
  color: #fff;
}

.page-home #period-full:checked ~ .page-home__period-view--half,
.page-home #period-half:checked ~ .page-home__period-view--full {
  display: none;
}

.page-home__period-view {
  flex: 1 1 100%;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1);
  border-left: 3px solid var(--orange);
  padding: 8px 12px;
}

.page-home__goals-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.page-home__chart {
  flex: 1;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
}

.page-home__chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.page-home__chart-note {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--gray);
  background: rgba(10, 31, 68, .06);
  padding: 8px 12px;
  border-left: 3px solid var(--gray);
}

.page-home__focus-card {
  padding: 22px 20px;
}

.page-home__focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home__focus-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: .875rem;
  color: var(--ink);
}

.page-home__focus-meta {
  font-style: normal;
  font-weight: 600;
  font-size: .75rem;
  color: var(--orange);
  background: rgba(255, 107, 53, .1);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.page-home__stat-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.page-home__stat-unit {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 110px;
}

.page-home__stat-unit--gold {
  background: linear-gradient(135deg, var(--navy) 0%, #12306b 100%);
  color: #fff;
  border-color: transparent;
}

.page-home__stat-label {
  font-size: .75rem;
  color: var(--gray);
  letter-spacing: .08em;
}

.page-home__stat-unit--gold .page-home__stat-label {
  color: rgba(255, 255, 255, .7);
}

.page-home__stat-value {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.page-home__stat-unit--gold .page-home__stat-value {
  color: var(--gold);
}

.page-home__feature-v3 {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.page-home__feature-img {
  flex-shrink: 0;
}

.page-home__feature-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.page-home__feature-content h3,
.page-home__feature-content p {
  margin: 0;
}

.page-home__feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.page-home__feature-reminder {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home__feature-reminder h3,
.page-home__feature-reminder p {
  margin: 0;
}

.page-home__toggle {
  margin-top: 4px;
}

.page-home__toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-home__toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.page-home__toggle-track {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--line);
  transition: background .3s ease;
}

.page-home__toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
  transition: transform .3s ease;
}

.page-home__toggle-state {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--gray);
}

.page-home__toggle-state::after {
  content: "未开启";
}

.page-home #reminder-toggle:checked + .page-home__toggle-label .page-home__toggle-track {
  background: var(--orange);
}

.page-home #reminder-toggle:checked + .page-home__toggle-label .page-home__toggle-thumb {
  transform: translateX(24px);
}

.page-home #reminder-toggle:checked + .page-home__toggle-label .page-home__toggle-state {
  color: var(--orange);
  font-weight: 600;
}

.page-home #reminder-toggle:checked + .page-home__toggle-label .page-home__toggle-state::after {
  content: "已开启";
}

.page-home__reminder-note {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--gray);
}

.page-home__feature-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.page-home__feature-panel h3,
.page-home__feature-panel p {
  margin: 0;
}

.page-home__feature-panel p {
  color: rgba(255, 255, 255, .82);
}

.page-home__feature-panel .btn--ghost {
  margin-top: 14px;
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}

.page-home__update-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home__update-img {
  flex-shrink: 0;
  background: var(--navy);
  padding: 14px;
}

.page-home__update-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.page-home__update-copy h3,
.page-home__update-copy p {
  margin: 0;
}

.page-home__update-copy .btn {
  margin-top: 12px;
}

.page-home__update-list {
  display: flex;
  flex-direction: column;
}

.page-home__update-items {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home__update-items li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: .875rem;
  line-height: 1.55;
}

.page-home__update-items li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.page-home__community-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.page-home__community-img {
  flex-shrink: 0;
  background: rgba(255, 255, 255, .08);
  padding: 10px;
}

.page-home__community-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.page-home__community-content h3,
.page-home__community-content p {
  margin: 0;
}

.page-home__community-content p {
  color: rgba(255, 255, 255, .82);
}

.page-home__community-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.page-home__community-steps {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  font-weight: 600;
  font-size: .875rem;
  line-height: 1.45;
}

.page-home__steps li span {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--orange);
  font-weight: 700;
}

.page-home__community-steps .btn {
  align-self: flex-start;
}

@media (min-width: 640px) {
  .page-home__intro-inner {
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    align-items: start;
  }

  .page-home__directory {
    position: sticky;
    top: 24px;
  }

  .page-home__bento {
    grid-template-columns: 1fr 1fr;
  }

  .page-home__score-card,
  .page-home__feature-v3,
  .page-home__update-main,
  .page-home__community-main {
    grid-column: span 2;
  }

  .page-home__stat-card {
    grid-column: span 2;
  }

  .page-home__feature-v3 {
    flex-direction: row;
    align-items: center;
  }

  .page-home__update-main {
    flex-direction: row;
    align-items: center;
  }

  .page-home__community-main {
    flex-direction: row;
    align-items: center;
  }

  .page-home__feature-img,
  .page-home__update-img,
  .page-home__community-img {
    flex: 0 0 46%;
  }
}

@media (min-width: 1080px) {
  .page-home {
    padding-top: 40px;
  }

  .page-home__bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(150px, auto);
  }

  .page-home__score-card,
  .page-home__feature-v3 {
    grid-column: span 7;
    grid-row: span 2;
  }

  .page-home__goals-card,
  .page-home__feature-reminder,
  .page-home__feature-panel,
  .page-home__stat-card,
  .page-home__community-steps {
    grid-column: span 5;
  }

  .page-home__focus-card,
  .page-home__community-main {
    grid-column: span 7;
  }

  .page-home__update-main,
  .page-home__update-list {
    grid-column: span 6;
  }

  .page-home__goals-card {
    grid-row: span 2;
  }

  .page-home__feature-v3 {
    flex-direction: row;
    align-items: center;
  }

  .page-home__score-card {
    min-height: 400px;
  }

  .page-home__section {
    padding: 64px 0;
  }

  .page-home__community-img {
    flex: 0 0 44%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition: none !important;
  }
}
