.page-home {
  --home-line: rgba(200, 16, 46, 0.45);
  --home-light: rgba(244, 241, 236, 0.72);
  --home-dim: rgba(244, 241, 236, 0.42);
  background: var(--paper);
  color: var(--carbon);
  overflow-x: hidden;
}

.page-home .section__rule {
  border: 0;
  height: 8px;
  margin: 0;
  background: var(--anbo-red);
}

.home-crumbs {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--neutral);
}

.home-crumbs a {
  color: var(--carbon);
  text-decoration: none;
}

.home-crumbs a:hover {
  color: var(--anbo-red);
}

.home-crumbs .breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--anbo-red);
}

/* ---------- 首屏框景 ---------- */
.home-hero {
  padding: 20px 0 0;
}

.home-hero__frame {
  position: relative;
  margin-top: 12px;
  border: 1px solid var(--home-line);
  background: linear-gradient(180deg, #121212 0%, #1a1a1a 55%, #0e0e0e 100%);
  box-shadow: var(--shadow-glass);
}

.home-hero__frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, rgba(200, 16, 46, 0.85) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.home-hero__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--anbo-red);
  pointer-events: none;
}

.home-hero__corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.home-hero__corner--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.home-hero__corner--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.home-hero__corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.home-hero__grid {
  display: grid;
  gap: 28px;
  padding: 32px 20px 24px;
}

.home-hero__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.home-hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 7vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.01em;
  color: var(--pure);
}

.home-hero__lede {
  margin: 0 0 26px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--home-light);
}

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

.home-hero__actions .btn--ghost {
  color: var(--paper);
  border-color: rgba(244, 241, 236, 0.28);
}

.home-hero__actions .btn--ghost:hover,
.home-hero__actions .btn--ghost:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
}

.home-hero__aside {
  min-width: 0;
}

.home-hero__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  background: var(--ink);
}

.home-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
}

.home-hero__glass {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 14px;
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(6px);
}

.home-hero__glass-k {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--home-light);
}

.home-hero__glass-v {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--amber);
}

.home-hero__stats {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--glass-line);
}

.home-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.home-hero__num {
  font-family: var(--font-mono);
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1;
  color: var(--amber);
}

.home-hero__unit {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--home-dim);
}

/* ---------- 首屏速览标签 ---------- */
.home-day {
  padding: 20px;
  border-top: 1px solid var(--glass-line);
}

.home-day .tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.home-day .tabs__btn {
  appearance: none;
  cursor: pointer;
  padding: 8px 16px;
  border: 1px solid var(--glass-line);
  border-radius: 2px;
  background: transparent;
  color: var(--home-light);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.home-day .tabs__btn[aria-selected="true"] {
  background: var(--anbo-red);
  border-color: var(--anbo-red);
  color: var(--pure);
}

.home-day .tabs__btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.home-day .tabs__panel {
  margin-top: 16px;
}

.daylist,
.formlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.daylist__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244, 241, 236, 0.12);
}

.daylist__row:last-child {
  border-bottom: 0;
}

.daylist__time {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--amber);
}

.daylist__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.daylist__meta strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--pure);
}

.daylist__meta span {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--home-dim);
}

.formlist__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244, 241, 236, 0.12);
  font-size: 13px;
}

.formlist__row:last-child {
  border-bottom: 0;
}

.formlist__league {
  color: var(--home-light);
  min-width: 0;
}

.formlist__seq {
  font-family: var(--font-mono);
  color: var(--pure);
}

.formlist__gap {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
}

/* ---------- 关注按钮 ---------- */
.follow {
  display: inline-flex;
  flex-shrink: 0;
}

.follow__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.follow__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(244, 241, 236, 0.3);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--home-light);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.follow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.follow__on {
  display: none;
}

.follow__input:checked + .follow__btn {
  border-color: var(--green);
  color: var(--green);
  background: rgba(31, 122, 90, 0.12);
}

.follow__input:checked + .follow__btn .follow__dot {
  background: var(--green);
}

.follow__input:checked + .follow__btn .follow__idle {
  display: none;
}

.follow__input:checked + .follow__btn .follow__on {
  display: inline;
}

.follow__input:focus-visible + .follow__btn {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- 章节基础 ---------- */
.page-home .chapter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2px 16px;
  margin: 0 0 26px;
}

.page-home .chapter__num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 6vw, 52px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--anbo-red);
}

.page-home .chapter__title {
  margin: 0;
  flex: 1 1 300px;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 4.2vw, 34px);
  line-height: 1.16;
}

.page-home .annotation--vertical {
  margin-left: auto;
  align-self: flex-start;
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--neutral);
}

/* ---------- 01 并排 ---------- */
.home-compare {
  background-image:
    linear-gradient(90deg, rgba(26, 26, 26, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 26, 26, 0.04) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
}

.home-compare__grid {
  display: grid;
  gap: 28px;
}

.home-compare__main {
  min-width: 0;
}

.home-compare .media-figure {
  margin: 0 0 22px;
}

.home-compare .media-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.home-compare .media__caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--neutral);
}

.home-compare__text {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.8;
}

.home-compare__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.home-compare__points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}

.home-compare__points h3 {
  grid-column: 2;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.home-compare__points p {
  grid-column: 2;
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--neutral);
}

.home-compare__idx {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--anbo-red);
}

/* ---------- 02 关注 ---------- */
.home-follow__grid {
  display: grid;
  gap: 28px;
}

.home-follow__body .lede {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.78;
}

.home-follow__outcomes {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.home-follow__outcomes li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.75;
}

.home-follow__outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--anbo-red);
}

.home-follow__link {
  display: inline-block;
  font-size: 15px;
  color: var(--carbon);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--anbo-red);
}

.home-follow__link:hover {
  color: var(--anbo-red);
}

.home-follow__demo {
  min-width: 0;
  padding: 20px;
  background: var(--pure);
  border: 1px solid var(--hair);
  box-shadow: 0 12px 28px rgba(26, 26, 26, 0.06);
}

.home-follow__demo .annotation {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--neutral);
}

.home-follow__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}

.home-follow__time {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--anbo-red);
}

.home-follow__meta {
  font-size: 14px;
  min-width: 0;
}

.home-follow__demo .follow__btn {
  border-color: var(--hair);
  color: var(--carbon);
}

.home-follow__state {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--neutral);
}

/* ---------- 03 数据面板 ---------- */
.home-panel__grid {
  display: grid;
  gap: 28px;
}

.home-panel__figure {
  margin: 0;
  min-width: 0;
  background: var(--ink);
  border: 1px solid var(--hair);
}

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

.home-metrics {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-metrics li {
  padding: 10px 12px;
  background: var(--pure);
  border-left: 3px solid var(--steel);
  font-size: 14px;
}

.home-panel__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--carbon);
}

.home-fold {
  margin-top: 18px;
  background: var(--pure);
  border: 1px solid var(--hair);
}

.home-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.home-fold summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--anbo-red);
}

.home-fold[open] summary::after {
  content: "–";
}

.home-fold:focus-within {
  border-color: var(--anbo-red);
}

.home-fold__body {
  padding: 0 14px 14px;
}

.home-fold__body p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--neutral);
}

.home-fold__body p:last-child {
  margin-bottom: 0;
}

.home-panel__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.home-export {
  position: relative;
}

.home-export__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--amber);
  border: 1px solid var(--amber-deep);
  border-radius: 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  list-style: none;
}

.home-export__btn::-webkit-details-marker {
  display: none;
}

.home-export__btn::after {
  content: "↓";
  font-family: var(--font-mono);
}

.home-export__btn:focus-visible {
  outline: 2px solid var(--anbo-red);
  outline-offset: 2px;
}

.home-export[open] .home-export__btn {
  background: var(--pure);
  border-color: var(--anbo-red);
  color: var(--anbo-red);
}

.home-export__options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 168px;
  background: var(--pure);
  border: 1px solid var(--hair);
  box-shadow: 0 16px 32px rgba(14, 14, 14, 0.16);
}

.home-export__options a {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--carbon);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
}

.home-export__options a:last-child {
  border-bottom: 0;
}

.home-export__options a:hover,
.home-export__options a:focus-visible {
  background: var(--paper);
  color: var(--anbo-red);
}

/* ---------- 04 红黄牌 ---------- */
.home-verify__grid {
  display: grid;
  gap: 28px;
}

.home-verify__icon {
  padding: 24px;
  background: var(--ink);
  border: 1px solid var(--home-line);
}

.home-verify__icon img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto;
}

.home-verify__body .lede {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.78;
}

.home-verify__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--carbon);
}

.home-verify__dims {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-verify__dims li {
  padding: 6px 14px;
  border: 1px solid var(--hair);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.home-ext {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 8px solid var(--anbo-red);
}

.home-ext__title {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--neutral);
}

.home-ext__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.home-ext__list li {
  border-bottom: 1px solid var(--hair);
}

.home-ext__list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--carbon);
  text-decoration: none;
}

.home-ext__list a span {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--neutral);
}

.home-ext__list a:hover,
.home-ext__list a:focus-visible {
  color: var(--anbo-red);
}

/* ---------- 断点 ---------- */
@media (max-width: 899px) {
  .page-home .annotation--vertical {
    display: none;
  }
}

@media (min-width: 600px) {
  .home-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .home-ext__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }
}

@media (min-width: 900px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    padding: 52px 40px 32px;
    align-items: start;
  }

  .home-day {
    padding: 24px 40px 36px;
  }

  .home-compare__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .home-follow__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .home-panel__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .home-verify__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .follow__btn {
    transition: none;
  }
}
