.page-home {
  --home-hair: rgba(143, 163, 191, 0.18);
  --home-fill: rgba(12, 20, 36, 0.82);
  --home-fill-deep: rgba(7, 10, 18, 0.9);
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(30, 91, 255, 0.16), transparent 66%),
    var(--ink);
  color: var(--fog);
}

.page-home .shell {
  width: 100%;
}

/* ---------- 首屏拼贴 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3.4vw, 44px) 0 clamp(26px, 4vw, 56px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(18, 41, 74, 0.62) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 41, 74, 0.62) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0) 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0) 88%);
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.4vw, 16px);
}

.page-home .hero-lead {
  padding: clamp(20px, 3vw, 34px) clamp(18px, 2.6vw, 32px) calc(clamp(20px, 3vw, 34px) + 10px);
  background: linear-gradient(155deg, rgba(12, 20, 36, 0.97) 0%, rgba(7, 10, 18, 0.9) 72%);
  border: 1px solid var(--home-hair);
  border-left: 2px solid var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 24px) 100%, 0 100%);
}

.page-home .hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .hero-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.5), transparent);
}

.page-home .hero-lead h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 5.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--paper);
  transform: skewX(-2deg);
  transform-origin: left center;
}

.page-home .hero-lede {
  margin: 16px 0 0;
  max-width: 54ch;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.78;
  color: var(--fog);
}

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

.page-home .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--home-hair);
  background: var(--navy);
}

.page-home .hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .hero-visual .media-frame__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
}

.page-home .hero-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--home-fill);
  border: 1px solid var(--home-hair);
  border-left: 2px solid var(--cyan);
}

.page-home .hero-status .hud-status__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fog);
}

.page-home .hero-status .hud-status__tick {
  margin-left: auto;
  flex: none;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.page-home .hero-status .status-dot {
  flex: none;
  animation: home-pulse 2.4s var(--ease) infinite;
}

@keyframes home-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.5);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 6px rgba(0, 229, 255, 0);
  }
}

.page-home .hero-preview {
  padding: 14px 16px;
  background: rgba(244, 248, 255, 0.95);
  border: 1px solid var(--paper);
  color: #0a1020;
  box-shadow: 4px 4px 0 rgba(30, 91, 255, 0.24);
}

.page-home .preview-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: #3a4a60;
}

.page-home .preview-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: #2a3648;
  border-bottom: 1px dashed rgba(10, 16, 32, 0.2);
}

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

.page-home .preview-row .num {
  font-weight: 700;
  color: #0b1220;
}

/* ---------- 章节索引条 ---------- */
.page-home .home-index {
  border-top: 1px solid var(--home-hair);
  border-bottom: 1px solid var(--home-hair);
  background: rgba(12, 20, 36, 0.78);
}

.page-home .home-index ol {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  margin: 0;
  padding: 11px 0;
  list-style: none;
  overflow-x: auto;
}

.page-home .home-index a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  font-size: 14px;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-home .home-index a:hover,
.page-home .home-index a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .home-index a .num {
  color: var(--blue);
  font-weight: 700;
}

/* ---------- 通用章节 ---------- */
.page-home .home-sec {
  padding: clamp(36px, 5.5vw, 76px) 0;
  border-bottom: 1px solid var(--home-hair);
}

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

.page-home .sec-head {
  max-width: 64ch;
}

.page-home .sec-index {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .sec-index .num {
  color: var(--orange);
  font-weight: 700;
}

.page-home .sec-head h2 {
  margin: 10px 0 0;
}

.page-home .sec-desc {
  margin: 12px 0 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: var(--slate);
}

/* ---------- 联赛入口 ---------- */
.page-home .leagues-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 30px);
  align-items: start;
}

.page-home .leagues-visual {
  margin: 0;
  border: 1px solid var(--home-hair);
  background: var(--navy);
  padding: 6px;
}

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

.page-home .league-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.2vw, 26px);
  margin-top: clamp(24px, 3.4vw, 40px);
}

.page-home .group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.page-home .group-label .num {
  color: var(--orange);
  font-weight: 700;
}

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

.page-home .entry {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--fog);
  background: linear-gradient(120deg, rgba(18, 41, 74, 0.36), rgba(12, 20, 36, 0.72));
  border: 1px solid var(--home-hair);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 16px) 100%, 0 100%);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .entry:hover,
.page-home .entry:focus-visible {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.55);
  transform: translateY(-2px);
}

.page-home .entry-no {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .entry-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .entry-meta {
  grid-column: 2;
  font-size: 12.5px;
  color: var(--slate);
}

.page-home .entry-refresh {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--orange);
  background: rgba(7, 10, 18, 0.86);
  border: 1px solid rgba(255, 138, 31, 0.5);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .entry:hover .entry-refresh,
.page-home .entry:focus-visible .entry-refresh {
  opacity: 1;
  transform: translateY(0);
}

.page-home .swap-note {
  margin-top: clamp(20px, 3vw, 32px);
  padding: clamp(16px, 2.4vw, 24px);
  background: rgba(12, 20, 36, 0.72);
  border: 1px solid var(--home-hair);
  border-top: 2px solid var(--orange);
}

.page-home .swap-title {
  margin: 0;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--paper);
}

.page-home .swap-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .swap-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--fog);
}

.page-home .swap-steps .num {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--orange);
}

.page-home .swap-steps p {
  margin: 0;
}

/* ---------- 平板与网页 ---------- */
.page-home .device-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
}

.page-home .device-visual {
  margin: 0;
  padding: 8px;
  background: linear-gradient(160deg, rgba(18, 41, 74, 0.5), rgba(7, 10, 18, 0.9));
  border: 1px solid var(--home-hair);
}

.page-home .device-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 18px) 100%, 0 100%);
}

.page-home .device-copy h2 {
  margin: 10px 0 0;
}

.page-home .device-points {
  display: grid;
  gap: 14px;
  margin: clamp(16px, 2.4vw, 26px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .device-points li {
  padding-left: 14px;
  border-left: 2px solid var(--blue);
}

.page-home .device-points li:nth-child(2) {
  border-left-color: var(--cyan);
}

.page-home .device-points li:nth-child(3) {
  border-left-color: var(--orange);
}

.page-home .device-points h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--paper);
}

.page-home .device-points p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--slate);
}

/* ---------- 历史交锋 ---------- */
.page-home .history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 36px);
  margin-top: clamp(22px, 3.2vw, 38px);
}

.page-home .history-visual {
  margin: 0;
  border: 1px solid var(--home-hair);
  background: var(--navy);
}

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

.page-home .tl {
  position: relative;
  display: grid;
  gap: clamp(12px, 1.8vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .tl::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--magenta), var(--blueprint) 55%, rgba(18, 41, 74, 0));
}

.page-home .tl-item {
  position: relative;
  padding-left: 26px;
}

.page-home .tl-dot {
  position: absolute;
  left: 1px;
  top: 18px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--orange);
}

.page-home .tl-item:nth-child(even) .tl-dot {
  border-color: var(--magenta);
}

.page-home .tl-card {
  padding: 14px 16px;
  background: rgba(12, 20, 36, 0.8);
  border: 1px solid var(--home-hair);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .tl-card:hover,
.page-home .tl-card:focus-within,
.page-home .tl-card:focus-visible {
  border-color: var(--cyan);
  transform: translateX(2px);
}

.page-home .tl-card:focus-visible {
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.page-home .tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
}

.page-home .tl-card h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  color: var(--paper);
}

.page-home .tl-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--slate);
}

.page-home .tl-detail {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fog);
}

/* ---------- 支持 ---------- */
.page-home .support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(20px, 3vw, 32px);
}

.page-home .support-card {
  display: block;
  padding: clamp(18px, 2.6vw, 26px);
  text-decoration: none;
  color: var(--fog);
  background: linear-gradient(140deg, rgba(18, 41, 74, 0.46), rgba(12, 20, 36, 0.84));
  border: 1px solid var(--home-hair);
  border-top: 2px solid var(--blue);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .support-card:nth-child(2) {
  border-top-color: var(--signal, var(--orange));
}

.page-home .support-card:hover,
.page-home .support-card:focus-visible {
  border-color: var(--cyan);
  transform: translateY(-2px);
  outline: none;
}

.page-home .support-no {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .support-card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  color: var(--paper);
}

.page-home .support-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--slate);
}

.page-home .support-go {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
}

.page-home .support-contact {
  grid-column: 1 / -1;
  padding: clamp(16px, 2.4vw, 24px);
  background: var(--home-fill-deep);
  border: 1px dashed var(--home-hair);
}

.page-home .contact-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .contact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0 0;
}

.page-home .contact-list div {
  min-width: 0;
}

.page-home .contact-list dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--slate);
}

.page-home .contact-list dd {
  margin: 3px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fog);
  word-break: break-word;
}

.page-home .contact-note {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 规模 ---------- */
.page-home .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(20px, 3vw, 34px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--home-hair);
  border: 1px solid var(--home-hair);
}

.page-home .stat-grid li {
  padding: clamp(14px, 2vw, 22px);
  background: rgba(9, 14, 26, 0.95);
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-home .stat-grid li:nth-child(even) .stat-num {
  color: var(--orange);
}

.page-home .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--slate);
}

.page-home .scale-note {
  margin-top: clamp(18px, 2.6vw, 28px);
  padding-left: 16px;
  border-left: 2px solid var(--blueprint);
}

.page-home .scale-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--fog);
}

.page-home .scale-more {
  margin-top: 12px;
}

.page-home .scale-more a {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.45);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-home .scale-more a:hover,
.page-home .scale-more a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

/* ---------- 交互降级 ---------- */
@media (hover: none) {
  .page-home .entry-refresh {
    opacity: 1;
    transform: none;
  }

  .page-home .entry:hover,
  .page-home .entry:focus-visible,
  .page-home .support-card:hover,
  .page-home .support-card:focus-visible,
  .page-home .tl-card:hover,
  .page-home .tl-card:focus-within {
    transform: none;
  }
}

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

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

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

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

@media (min-width: 860px) {
  .page-home .leagues-top {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }

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

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    align-items: stretch;
  }

  .page-home .hero-lead {
    grid-column: 1 / 8;
    grid-row: 1;
  }

  .page-home .hero-visual {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
    aspect-ratio: auto;
    min-height: 260px;
  }

  .page-home .hero-status {
    grid-column: 1 / 5;
    grid-row: 2;
  }

  .page-home .hero-preview {
    grid-column: 5 / 8;
    grid-row: 2;
  }

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

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

  .page-home .tl-item:nth-child(even) {
    margin-left: clamp(16px, 5%, 48px);
  }
}

@media (min-width: 900px) and (hover: hover) {
  .page-home .tl-detail {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.2s var(--ease), opacity 0.2s var(--ease), margin-top 0.2s var(--ease);
  }

  .page-home .tl-card:hover .tl-detail,
  .page-home .tl-card:focus-within .tl-detail,
  .page-home .tl-card:focus-visible .tl-detail {
    max-height: 240px;
    margin-top: 8px;
    opacity: 1;
  }
}

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

  .page-home .entry,
  .page-home .support-card,
  .page-home .tl-card {
    transition: none;
  }
}
