.page-home {
  --home-axis-w: 108px;
  --home-rise: clamp(18px, 3vw, 34px);
  background: var(--ink);
  color: var(--text);
  overflow-x: clip;
}

/* ---------- 面包屑 ---------- */
.page-home .home-crumbs {
  padding-top: clamp(14px, 2.4vw, 26px);
}

.page-home .crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.page-home .crumbs a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.page-home .crumbs a:hover,
.page-home .crumbs a:focus-visible {
  color: var(--pale);
  border-bottom-color: var(--line);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: clamp(16px, 2.6vw, 28px) 0 clamp(44px, 6vw, 84px);
}

.page-home .home-hero__band {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: min(66vh, 540px);
  background:
    radial-gradient(58% 76% at 84% 4%, rgba(15, 111, 127, 0.62), transparent 68%),
    radial-gradient(42% 62% at 98% 26%, rgba(255, 107, 53, 0.2), transparent 72%);
  clip-path: polygon(0 0, 100% 0, 100% 64%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
}

/* 栏目轴（移动端为胶囊滑轨） */
.page-home .home-rounds {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
}

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

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

.page-home .home-rounds__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  background: rgba(23, 37, 58, 0.72);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.page-home .home-rounds__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--lake);
}

.page-home .home-rounds__link:hover,
.page-home .home-rounds__link:focus-visible,
.page-home .home-rounds__link[aria-current="true"] {
  color: var(--text);
  border-color: rgba(199, 244, 100, 0.42);
  background: rgba(15, 111, 127, 0.34);
}

.page-home .home-rounds__link[aria-current="true"] .home-rounds__num {
  color: var(--volt);
}

/* 首屏主面板 */
.page-home .home-hero__main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(152deg, rgba(23, 37, 58, 0.94), rgba(11, 18, 32, 0.88));
}

.page-home .home-hero__bg {
  position: absolute;
  z-index: -1;
  right: -8%;
  top: -8%;
  width: 46%;
  height: auto;
  object-fit: cover;
  opacity: 0.34;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(102deg, transparent 2%, #000 62%);
  mask-image: linear-gradient(102deg, transparent 2%, #000 62%);
}

.page-home .home-hero h1 {
  margin: 14px 0 0;
  max-width: 20ch;
  font-size: clamp(32px, 6.4vw, 62px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--text);
}

.page-home .home-hero__intro {
  margin: 18px 0 0;
  max-width: 54ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: var(--pale);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
}

/* 双服务线入口 */
.page-home .home-lines {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: clamp(26px, 4vw, 40px);
}

.page-home .home-line {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px 20px 18px 24px;
  border-radius: var(--radius-md);
  background: rgba(15, 111, 127, 0.16);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--pale);
  transition: background 0.22s var(--ease-out), transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}

.page-home .home-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: var(--radius-pill);
  background: var(--lake);
}

.page-home .home-line--panel::before {
  background: var(--lava);
}

.page-home .home-line:hover,
.page-home .home-line:focus-visible {
  background: rgba(15, 111, 127, 0.28);
  border-color: rgba(207, 233, 234, 0.28);
  transform: translateY(-2px);
}

.page-home .home-line__tag {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--volt);
}

.page-home .home-line__title {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  color: var(--text);
}

.page-home .home-line__text {
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 通用分节节奏 ---------- */
.page-home .home-round,
.page-home .home-ha,
.page-home .home-catalog,
.page-home .home-contact {
  position: relative;
  padding: clamp(42px, 6vw, 88px) 0;
}

.page-home .home-round {
  background: linear-gradient(180deg, rgba(15, 111, 127, 0.22), rgba(11, 18, 32, 0.98) 74%);
}

.page-home .home-ha {
  background: linear-gradient(180deg, rgba(23, 37, 58, 0.55), rgba(23, 37, 58, 0.9));
}

.page-home .home-catalog {
  background: var(--ink);
}

/* ---------- 本期总览 ---------- */
.page-home .home-round__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-rise);
  margin-top: clamp(26px, 4vw, 44px);
}

.page-home .home-round__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .home-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  background: rgba(11, 18, 32, 0.86);
}

.page-home .home-stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--volt);
}

.page-home .home-stat__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--pale);
}

.page-home .home-stat__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-round__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-round__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.page-home .home-round__cap {
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .home-round__notes {
  list-style: none;
  margin: clamp(24px, 3.6vw, 40px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.page-home .home-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--lake);
  background: rgba(23, 37, 58, 0.72);
}

.page-home .home-note__k {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--home);
}

.page-home .home-note__v {
  font-size: 14px;
  line-height: 1.75;
  color: var(--pale);
}

/* ---------- 主客场对照 ---------- */
.page-home .home-ha__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.page-home .home-ha__text h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4.2vw, 42px);
  line-height: 1.24;
  font-weight: 800;
  color: var(--text);
}

.page-home .home-ha__text p {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.82;
  color: var(--pale);
}

.page-home .home-ha__text .btn {
  margin-top: 26px;
}

.page-home .home-ha__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.92);
}

.page-home .home-ha__bg {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
}

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

.page-home .home-ha__switch {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(23, 37, 58, 0.9);
  border: 1px solid var(--line-soft);
}

.page-home .home-ha__sw {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.page-home #ha-home:checked ~ .home-ha__switch .home-ha__sw[for="ha-home"],
.page-home #ha-away:checked ~ .home-ha__switch .home-ha__sw[for="ha-away"] {
  background: var(--volt);
  color: var(--ink);
  font-weight: 700;
}

.page-home .home-ha__bars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.page-home .home-ha__col {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  transition: opacity 0.24s var(--ease-out), border-color 0.24s var(--ease-out);
}

.page-home .home-ha__col--home {
  background: linear-gradient(150deg, rgba(92, 200, 215, 0.2), rgba(11, 18, 32, 0.7));
  border-color: rgba(92, 200, 215, 0.34);
}

.page-home .home-ha__col--away {
  background: linear-gradient(150deg, rgba(242, 166, 90, 0.18), rgba(11, 18, 32, 0.7));
  border-color: rgba(242, 166, 90, 0.32);
}

.page-home .home-ha__col strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.page-home .home-ha__col p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--pale);
}

.page-home .home-ha__col .badge {
  justify-self: start;
}

.page-home #ha-home:checked ~ .home-ha__bars .home-ha__col--away,
.page-home #ha-away:checked ~ .home-ha__bars .home-ha__col--home {
  opacity: 0.46;
}

/* ---------- 目录与版本记录 ---------- */
.page-home .catalog {
  position: relative;
  margin-top: clamp(24px, 4vw, 42px);
}

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

.page-home .catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 26px);
}

.page-home .catalog__chip {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  background: rgba(23, 37, 58, 0.7);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.page-home .catalog__chip:hover {
  color: var(--pale);
  border-color: rgba(207, 233, 234, 0.3);
}

.page-home #cat-all:checked ~ .catalog__filters .catalog__chip[for="cat-all"],
.page-home #cat-ball:checked ~ .catalog__filters .catalog__chip[for="cat-ball"],
.page-home #cat-track:checked ~ .catalog__filters .catalog__chip[for="cat-track"],
.page-home #cat-water:checked ~ .catalog__filters .catalog__chip[for="cat-water"] {
  background: var(--lake);
  border-color: rgba(199, 244, 100, 0.5);
  color: var(--text);
}

.page-home .catalog__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.page-home .catalog__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s var(--ease-out);
}

.page-home .catalog__item:hover {
  background: rgba(15, 111, 127, 0.12);
}

.page-home .catalog__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  line-height: 1.9;
  color: var(--lake);
}

.page-home .catalog__body strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.page-home .catalog__body p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.74;
  color: var(--muted);
}

.page-home #cat-ball:checked ~ .catalog__list .catalog__item:not([data-cat="ball"]),
.page-home #cat-track:checked ~ .catalog__list .catalog__item:not([data-cat="track"]),
.page-home #cat-water:checked ~ .catalog__list .catalog__item:not([data-cat="water"]) {
  display: none;
}

/* 版本记录折叠 */
.page-home .home-log {
  margin-top: clamp(24px, 3.6vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(23, 37, 58, 0.78);
  overflow: hidden;
}

.page-home .home-log summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

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

.page-home .home-log summary::after {
  content: "展开";
  margin-left: auto;
  font-size: 12px;
  color: var(--volt);
}

.page-home .home-log[open] summary::after {
  content: "收起";
}

.page-home .home-log__label {
  font-size: 15px;
  font-weight: 700;
}

.page-home .home-log__count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--home);
}

.page-home .home-log__body {
  padding: 0 22px 22px;
  border-top: 1px solid var(--line-soft);
}

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

.page-home .home-log__body li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--pale);
}

.page-home .home-log__tag {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 2.2;
  color: var(--volt);
  white-space: nowrap;
}

.page-home .home-log__more {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  color: var(--home);
  text-decoration: none;
  border-bottom: 1px solid rgba(92, 200, 215, 0.42);
}

.page-home .home-log__more:hover,
.page-home .home-log__more:focus-visible {
  color: var(--text);
  border-bottom-color: var(--pale);
}

/* ---------- 联系与帮助 ---------- */
.page-home .home-contact {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(11, 18, 32, 1), rgba(15, 111, 127, 0.34));
}

.page-home .home-contact__bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  max-height: 62%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.page-home .home-contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.page-home .home-contact__text h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4.2vw, 42px);
  line-height: 1.24;
  font-weight: 800;
  color: var(--text);
}

.page-home .home-contact__text p {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.82;
  color: var(--pale);
}

.page-home .home-contact__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.page-home .home-contact__link {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(11, 18, 32, 0.72);
  text-decoration: none;
  transition: background 0.22s var(--ease-out), border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.page-home .home-contact__link:hover,
.page-home .home-contact__link:focus-visible {
  background: rgba(23, 37, 58, 0.94);
  border-color: rgba(199, 244, 100, 0.4);
  transform: translateY(-2px);
}

.page-home .home-contact__link-k {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.page-home .home-contact__link-v {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 焦点可见性 ---------- */
.page-home a:focus-visible,
.page-home label:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .home-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-home .home-ha__bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .catalog__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(20px, 3vw, 40px);
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: var(--home-axis-w) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .home-rounds {
    flex-direction: column;
    overflow: visible;
    gap: 0;
    padding: 6px 0 0;
    position: sticky;
    top: calc(var(--header-offset) - 24px);
  }

  .page-home .home-rounds__label {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
  }

  .page-home .home-rounds__link {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 12px 0 12px 18px;
    position: relative;
    white-space: normal;
    font-size: 13px;
  }

  .page-home .home-rounds__link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--panel);
    border: 1px solid var(--line);
    transition: background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  }

  .page-home .home-rounds__link:hover,
  .page-home .home-rounds__link:focus-visible,
  .page-home .home-rounds__link[aria-current="true"] {
    background: transparent;
    border-color: transparent;
    color: var(--text);
  }

  .page-home .home-rounds__link:hover::before,
  .page-home .home-rounds__link:focus-visible::before,
  .page-home .home-rounds__link[aria-current="true"]::before {
    background: var(--volt);
    border-color: var(--volt);
    box-shadow: 0 0 0 4px rgba(199, 244, 100, 0.16);
  }

  .page-home .home-hero__bg {
    width: 52%;
    right: -4%;
    top: -10%;
  }

  .page-home .home-round__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: start;
  }

  .page-home .home-round__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-ha__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
  }

  .page-home .home-contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
  }
}

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

  .page-home .home-stat__num {
    font-size: 44px;
  }
}

@media (max-width: 420px) {
  .page-home .home-round__stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .home-hero__bg {
    width: 78%;
    top: -4%;
    right: -22%;
    opacity: 0.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-line,
  .page-home .home-contact__link,
  .page-home .home-rounds__link,
  .page-home .catalog__chip,
  .page-home .home-ha__col {
    transition: none;
  }

  .page-home .home-line:hover,
  .page-home .home-contact__link:hover {
    transform: none;
  }
}
