.page-home {
  --home-skew: 8deg;
  --home-panel-line: rgba(31, 58, 95, .8);
  overflow-x: clip;
}

.page-home img {
  max-width: 100%;
}

.page-home .page-home__crumb {
  padding-top: clamp(12px, 2vw, 22px);
}

/* ============ 首屏 ============ */
.page-home .home-hero {
  position: relative;
  padding-block: clamp(18px, 3vw, 38px) clamp(32px, 5vw, 68px);
}

.page-home .home-hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 42px);
  align-items: start;
}

.page-home .home-hero__col-a {
  min-width: 0;
}

.page-home .home-hero__title {
  margin: 12px 0 14px;
  font-family: var(--ab-font-display);
  font-weight: 900;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ab-ink);
  max-width: 14ch;
}

.page-home .home-hero__lead {
  margin: 0 0 24px;
  max-width: 46ch;
  color: var(--ab-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.72;
}

.page-home .home-hero__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.page-home .home-hero__dates .filter-status {
  margin-left: auto;
  font-family: var(--ab-font-mono);
  font-size: 12px;
  color: var(--ab-muted);
}

/* 赛程列表 */
.page-home .home-sched {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ab-line);
}

.page-home .home-sched__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 6px 10px 2px;
  border-bottom: 1px solid rgba(31, 58, 95, .5);
  transition: background var(--ab-t);
}

.page-home .home-sched__row:hover {
  background: rgba(0, 229, 255, .05);
}

.page-home .home-sched__time {
  font-family: var(--ab-font-mono);
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--ab-cyan);
}

.page-home .home-sched__main {
  min-width: 0;
}

.page-home .home-sched__match {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ab-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .home-sched__meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ab-muted);
}

.page-home .home-sched__tag {
  flex: none;
  padding: 2px 8px;
  border: 1px solid rgba(0, 229, 255, .32);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ab-cyan);
  white-space: nowrap;
}

/* 右栏状态面板 */
.page-home .home-hero__col-b {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 320px;
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  background: var(--ab-deep);
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  pointer-events: none;
}

.page-home .home-hero__col-b::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(0, 229, 255, .2), rgba(5, 7, 12, .94) 64%);
  pointer-events: none;
}

.page-home .home-hero__panel {
  position: relative;
  z-index: 2;
  margin: clamp(16px, 2.6vw, 30px);
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: calc(var(--ab-radius) - 4px);
}

.page-home .home-hero__panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--home-panel-line);
}

.page-home .home-hero__panel-title {
  margin: 0;
  font-family: var(--ab-font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ab-ink);
}

.page-home .home-hero__panel-code {
  margin-left: auto;
  font-size: 12px;
  color: var(--ab-muted);
}

.page-home .home-stat {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-stat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(31, 58, 95, .7);
  font-size: 13px;
}

.page-home .home-stat__row:last-child {
  border-bottom: 0;
}

.page-home .home-stat__name {
  color: var(--ab-body);
}

.page-home .home-stat__val {
  font-family: var(--ab-font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.page-home .home-stat__val--ok {
  color: var(--ab-green);
}

.page-home .home-stat__val--warn {
  color: var(--ab-coral);
}

.page-home .home-hero__panel-note {
  margin: 14px 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ab-muted);
}

/* ============ 章节索引条 ============ */
.page-home .home-chapters {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 7, 12, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--ab-line);
}

.page-home .home-chapters__list {
  display: flex;
  gap: clamp(16px, 3vw, 46px);
  margin: 0;
  padding: 13px var(--ab-gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.page-home .home-chapters__item {
  flex: none;
}

.page-home .home-chapters__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  color: var(--ab-muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ab-t), border-color var(--ab-t);
}

.page-home .home-chapters__num {
  font-family: var(--ab-font-mono);
  font-size: 11px;
  color: var(--ab-cyan);
}

.page-home .home-chapters__link:hover,
.page-home .home-chapters__link:focus-visible {
  color: var(--ab-ink);
  border-bottom-color: var(--ab-cyan);
}

/* ============ 01 入口状态 ============ */
.page-home .home-status {
  position: relative;
}

.page-home .home-status__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3.6vw, 54px);
  align-items: start;
}

.page-home .home-status__steps {
  list-style: none;
  counter-reset: hstep;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-home .home-status__steps li {
  counter-increment: hstep;
  position: relative;
  padding: 16px 18px 16px 56px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ab-body);
  background: var(--ab-deep);
  border-left: 2px solid var(--ab-line);
}

.page-home .home-status__steps li:nth-child(2) {
  background: var(--ab-raise);
  border-left-color: var(--ab-cyan);
}

.page-home .home-status__steps li::before {
  content: "0" counter(hstep);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--ab-font-mono);
  font-size: 13px;
  color: var(--ab-cyan);
}

.page-home .home-status__steps strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ab-ink);
  font-size: 15px;
}

.page-home .home-status__media .media-frame {
  transform: skewY(calc(-1 * var(--home-skew) * 0.25));
}

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

/* ============ 02 订阅与更新 ============ */
.page-home .home-subscribe__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 38px);
  margin-top: clamp(24px, 3vw, 38px);
  align-items: start;
}

.page-home .home-log {
  border-top: 1px solid var(--ab-line);
}

.page-home .home-log__item {
  border-bottom: 1px solid var(--ab-line);
}

.page-home .home-log__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 15px 34px 15px 4px;
  list-style: none;
  cursor: pointer;
}

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

.page-home .home-log__head::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 12px;
  font-family: var(--ab-font-mono);
  font-size: 17px;
  color: var(--ab-cyan);
}

.page-home .home-log__item[open] .home-log__head::after {
  content: "−";
}

.page-home .home-log__head:hover .home-log__title {
  color: var(--ab-cyan);
}

.page-home .home-log__ver {
  font-family: var(--ab-font-mono);
  font-size: 12px;
  color: var(--ab-cyan);
  white-space: nowrap;
}

.page-home .home-log__title {
  flex: 1 1 180px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ab-ink);
  transition: color var(--ab-t);
}

.page-home .home-log__body {
  max-width: 62ch;
  padding: 0 4px 18px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ab-body);
}

.page-home .home-subscribe__side {
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--ab-radius);
}

.page-home .home-subscribe__side h3 {
  margin-top: 0;
}

.page-home .home-subscribe__side ul {
  list-style: none;
  margin: 14px 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-subscribe__side li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ab-body);
}

.page-home .home-subscribe__side li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 7px;
  height: 7px;
  background: var(--ab-cyan);
  transform: rotate(45deg);
}

/* ============ 03 平板端 ============ */
.page-home .home-tablet__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3.6vw, 54px);
  align-items: start;
}

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

.page-home .home-tablet__list {
  min-width: 0;
}

.page-home .home-tablet__items {
  list-style: none;
  margin: 24px 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-tablet__items li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  padding: 15px 18px;
  border-left: 2px solid var(--ab-cyan);
  background: linear-gradient(90deg, rgba(0, 229, 255, .09), rgba(0, 229, 255, 0) 72%);
}

.page-home .home-tablet__items li:nth-child(2) {
  border-left-color: var(--ab-orange);
  background: linear-gradient(90deg, rgba(255, 122, 26, .11), rgba(255, 122, 26, 0) 72%);
}

.page-home .home-tablet__num {
  font-size: 13px;
  color: var(--ab-cyan);
}

.page-home .home-tablet__body {
  min-width: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ab-body);
}

.page-home .home-tablet__body strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ab-ink);
  font-size: 15px;
}

/* ============ 04 接下来 ============ */
.page-home .home-next__grid {
  display: grid;
  gap: 0;
  margin-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--ab-line);
}

.page-home .home-next__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 6px;
  border-bottom: 1px solid var(--ab-line);
  color: inherit;
  text-decoration: none;
  transition: background var(--ab-t), padding-left var(--ab-t);
}

.page-home .home-next__row:hover,
.page-home .home-next__row:focus-visible {
  background: rgba(0, 229, 255, .055);
  padding-left: 16px;
}

.page-home .home-next__num {
  font-size: 12px;
  color: var(--ab-cyan);
}

.page-home .home-next__body {
  min-width: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ab-body);
}

.page-home .home-next__body strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ab-ink);
  font-size: 15px;
  letter-spacing: .01em;
}

.page-home .home-next__arrow {
  font-family: var(--ab-font-mono);
  font-size: 15px;
  color: var(--ab-muted);
  transition: color var(--ab-t), transform var(--ab-t);
}

.page-home .home-next__row:hover .home-next__arrow {
  color: var(--ab-orange);
  transform: translateX(4px);
}

.page-home .home-next__download {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  margin-top: clamp(30px, 4vw, 52px);
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  background: linear-gradient(120deg, rgba(18, 28, 46, .92), rgba(11, 18, 32, .58));
}

.page-home .home-next__download-media {
  margin: 0;
}

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

.page-home .home-next__download-text h3 {
  margin-top: 0;
}

.page-home .home-next__download-text p {
  max-width: 58ch;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ab-body);
}

/* ============ 断点 ============ */
@media (min-width: 640px) {
  .page-home .home-next__download {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

@media (min-width: 900px) {
  .page-home .home-status__split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .home-subscribe__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .home-tablet__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  }

  .page-home .home-tablet__media {
    margin-top: clamp(10px, 2vw, 30px);
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 3.2vw, 54px);
  }

  .page-home .home-hero__col-b {
    min-height: 480px;
  }
}

@media (max-width: 560px) {
  .page-home .home-sched__row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
  }

  .page-home .home-sched__tag {
    grid-column: 2;
    justify-self: start;
  }

  .page-home .home-next__row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page-home .home-next__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-sched__row,
  .page-home .home-chapters__link,
  .page-home .home-next__row,
  .page-home .home-next__arrow,
  .page-home .home-log__title {
    transition: none;
  }

  .page-home .home-next__row:hover .home-next__arrow {
    transform: none;
  }
}
