.page-home {
  --body-soft: rgba(242, 247, 245, 0.76);
  --hair: rgba(198, 249, 74, 0.16);
  --panel-soft: rgba(16, 27, 51, 0.62);
}

.page-home .hero {
  position: relative;
  padding-bottom: clamp(28px, 5vw, 56px);
}

.page-home .hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 22px var(--gutter) 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.page-home .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.55);
  animation: homePulse 1.6s var(--ease) infinite;
}

@keyframes homePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(255, 138, 61, 0); }
}

/* ── 比分带 ── */
.page-home .ticker {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 14px var(--gutter) 20px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(198, 249, 74, 0.055) 0 1px,
      transparent 1px 4px
    ),
    linear-gradient(180deg, rgba(16, 27, 51, 0.85), rgba(7, 18, 15, 0.2));
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.page-home .ticker:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

.page-home .ticker::-webkit-scrollbar {
  height: 5px;
}

.page-home .ticker::-webkit-scrollbar-thumb {
  background: var(--line);
}

.page-home .tick {
  flex: 0 0 auto;
  min-width: 205px;
  scroll-snap-align: start;
  padding: 11px 15px 12px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.page-home .tick--live {
  border-left-color: var(--lime);
  background: linear-gradient(180deg, rgba(16, 27, 51, 0.95), var(--ink-2));
}

.page-home .tick-league {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.page-home .tick-match {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 7px 0 7px;
}

.page-home .tick-team {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  color: rgba(242, 247, 245, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .tick-team:last-child {
  text-align: right;
}

.page-home .tick-score {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
}

.page-home .tick-dash {
  color: var(--amber);
  margin: 0 3px;
}

.page-home .tick-state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--steel);
}

.page-home .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.page-home .ticker-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0 var(--gutter);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.page-home .ticker-meta-sep {
  color: var(--line);
}

/* ── 首屏文案与主图 ── */
.page-home .hero-body {
  display: grid;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px) var(--gutter) 0;
}

.page-home .hero-copy h1 {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: clamp(33px, 7vw, 66px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--chalk);
  text-wrap: balance;
}

.page-home .hero-copy .lede {
  margin: 0;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--body-soft);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

.page-home .hero-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  border: 1px solid var(--line);
}

/* ── 记分牌横条 ── */
.page-home .scoreboard-strip {
  margin: 0;
  padding: clamp(28px, 5vw, 52px) var(--gutter);
  background: linear-gradient(180deg, rgba(11, 31, 26, 0.9), rgba(7, 18, 15, 0));
}

.page-home .scoreboard-strip img {
  display: block;
  width: 100%;
  height: clamp(130px, 22vw, 210px);
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.page-home .scoreboard-strip figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--steel);
}

/* ── 通用章节头 ── */
.page-home .section-head {
  padding: 0 var(--gutter);
  margin-bottom: clamp(22px, 4vw, 34px);
}

.page-home .section-title {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-size: clamp(26px, 4.6vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--chalk);
}

.page-home .section-lede {
  margin: 14px 0 0;
  max-width: 42em;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--body-soft);
}

/* ── 工作台 ── */
.page-home .workbench-section {
  padding: clamp(30px, 5.5vw, 64px) 0 clamp(34px, 6vw, 70px);
}

.page-home .workbench {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 0 var(--gutter);
}

.page-home .lg-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .rail {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  padding: 16px 16px 18px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.page-home .rail-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.page-home .rail-title--spaced {
  margin-top: 22px;
}

.page-home .rail-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.page-home .rail-list::-webkit-scrollbar {
  display: none;
}

.page-home .rail-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13.5px;
  white-space: nowrap;
  color: rgba(242, 247, 245, 0.7);
  background: rgba(7, 18, 15, 0.55);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.page-home .rail-link:hover {
  color: var(--chalk);
  background: var(--surface);
}

.page-home .rail-count {
  font-size: 11.5px;
  color: var(--steel);
}

/* 选中态：由 radio 驱动，无脚本也可用 */
.page-home .workbench:has(.lg-input:focus-visible) .rail-link:focus-within,
.page-home .lg-input:focus-visible ~ .rail label {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.page-home #lg-all:checked ~ .rail label[for="lg-all"],
.page-home #lg-super:checked ~ .rail label[for="lg-super"],
.page-home #lg-div:checked ~ .rail label[for="lg-div"],
.page-home #lg-cup:checked ~ .rail label[for="lg-cup"],
.page-home #lg-youth:checked ~ .rail label[for="lg-youth"] {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: inset 3px 0 0 var(--ink);
}

.page-home #lg-all:checked ~ .rail label[for="lg-all"] .rail-count,
.page-home #lg-super:checked ~ .rail label[for="lg-super"] .rail-count,
.page-home #lg-div:checked ~ .rail label[for="lg-div"] .rail-count,
.page-home #lg-cup:checked ~ .rail label[for="lg-cup"] .rail-count,
.page-home #lg-youth:checked ~ .rail label[for="lg-youth"] .rail-count {
  color: rgba(7, 18, 15, 0.66);
}

/* 筛选逻辑 */
.page-home #lg-super:checked ~ .feed .report-card:not([data-lg~="super"]),
.page-home #lg-div:checked ~ .feed .report-card:not([data-lg~="div"]),
.page-home #lg-cup:checked ~ .feed .report-card:not([data-lg~="cup"]),
.page-home #lg-youth:checked ~ .feed .report-card:not([data-lg~="youth"]) {
  display: none;
}

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

.page-home .watch-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: rgba(242, 247, 245, 0.86);
}

.page-home .watch-pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex: 0 0 auto;
}

.page-home .rail-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--steel);
}

/* ── 战报流 ── */
.page-home .feed {
  display: grid;
  gap: 14px;
}

.page-home .report-card {
  padding: 14px 16px 14px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.page-home .rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .rc-time {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.page-home .rc-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 8px;
}

.page-home .rc-team {
  flex: 1 1 0;
  min-width: 0;
  font-size: 14.5px;
  color: var(--chalk);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .rc-team:last-child {
  text-align: right;
}

.page-home .rc-score {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-home .rc-sum {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--body-soft);
}

.page-home .rc-details {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.page-home .rc-details summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

.page-home .rc-details summary::-webkit-details-marker {
  display: none;
}

.page-home .rc-details summary::after {
  content: " ＋";
  color: var(--steel);
}

.page-home .rc-details[open] summary::after {
  content: " －";
}

.page-home .stat-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  animation: homeStatIn 0.22s var(--ease);
}

@keyframes homeStatIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.page-home .stat-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--steel);
  border-bottom: 1px dashed rgba(30, 51, 44, 0.9);
  padding-bottom: 4px;
}

.page-home .stat-list li .num {
  color: rgba(242, 247, 245, 0.92);
  font-variant-numeric: tabular-nums;
}

.page-home .feed-figure {
  margin: 0;
}

.page-home .feed-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.page-home .feed-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .feed-foot {
  margin: 22px 0 0;
  padding: 0 var(--gutter);
  font-size: 13px;
  line-height: 1.8;
  color: var(--steel);
}

.page-home .inline-link {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 249, 74, 0.35);
}

.page-home .inline-link:hover {
  border-bottom-color: var(--lime);
}

/* ── 版本对照 ── */
.page-home .diff-band {
  background: linear-gradient(180deg, var(--night) 0%, rgba(16, 27, 51, 0.35) 100%);
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
  padding: clamp(34px, 6vw, 72px) var(--gutter);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%);
}

.page-home .diff-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.page-home .steps {
  list-style: none;
  margin: clamp(24px, 4vw, 38px) 0 30px;
  padding: 0;
  display: grid;
  gap: 22px;
}

.page-home .step {
  position: relative;
  padding-left: 54px;
}

.page-home .step::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: -22px;
  width: 2px;
  background: linear-gradient(180deg, var(--line), transparent);
}

.page-home .step:last-child::before {
  display: none;
}

.page-home .step-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: var(--lime);
  border: 1px solid var(--lime);
  background: rgba(7, 18, 15, 0.8);
}

.page-home .step--notice .step-dot {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
}

.page-home .step h3 {
  margin: 4px 0 8px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--chalk);
}

.page-home .step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--body-soft);
}

/* ── 跨设备 ── */
.page-home .sync-band {
  padding: clamp(34px, 6vw, 76px) var(--gutter);
}

.page-home .sync-inner {
  display: grid;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.page-home .sync-copy .prose {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--body-soft);
}

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

.page-home .sync-facts li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(242, 247, 245, 0.86);
}

.page-home .sync-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--lime);
}

.page-home .sync-figure {
  margin: 0;
}

.page-home .sync-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.page-home .sync-figure figcaption {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--steel);
}

/* ── 四格跳转 ── */
.page-home .jump-band {
  padding: 0 var(--gutter) clamp(40px, 7vw, 84px);
}

.page-home .jump-inner {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: clamp(26px, 4vw, 42px);
}

.page-home .jump-grid {
  display: grid;
  gap: 12px;
  margin-top: clamp(20px, 3.4vw, 30px);
}

.page-home .jump {
  display: block;
  padding: 18px 18px 20px;
  text-decoration: none;
  background: var(--ink-2);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .jump:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

.page-home .jump:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.page-home .jump-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.page-home .jump-title {
  display: block;
  margin: 10px 0 8px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--chalk);
}

.page-home .jump-desc {
  display: block;
  font-size: 13px;
  line-height: 1.75;
  color: var(--steel);
}

/* ── 断点 ── */
@media (min-width: 700px) {
  .page-home .jump-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .stat-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-home .hero-body {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  }

  .page-home .workbench {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .page-home .rail {
    position: sticky;
    top: calc(var(--header-h) + 18px);
  }

  .page-home .rail-list {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .rail-link {
    justify-content: space-between;
    width: 100%;
  }

  .page-home .feed {
    margin-top: -8px;
  }

  .page-home .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

  .page-home .step {
    padding-left: 0;
    padding-top: 52px;
  }

  .page-home .step::before {
    left: 38px;
    top: 16px;
    bottom: auto;
    width: calc(100% + 26px);
    height: 2px;
    background: linear-gradient(90deg, var(--line), rgba(198, 249, 74, 0.3));
  }

  .page-home .sync-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

@media (min-width: 1080px) {
  .page-home .jump-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .pulse-dot {
    animation: none;
  }

  .page-home .stat-list {
    animation: none;
  }

  .page-home .jump {
    transition: none;
  }

  .page-home .jump:hover {
    transform: none;
  }
}
