.page-home {
  --home-gap: clamp(18px, 2.6vw, 34px);
  --home-soft: rgba(11, 51, 41, 0.72);
}

.page-home .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: clamp(20px, 3.4vw, 34px) 0 0;
}

.page-home .hero-eyebrow__sq {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(37, 242, 199, 0.7);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px) 0 clamp(34px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  opacity: 0.34;
}

.page-home .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 90% at 10% 28%, rgba(6, 35, 28, 0.97) 0%, rgba(6, 35, 28, 0.84) 46%, rgba(6, 35, 28, 0.42) 100%),
    linear-gradient(180deg, rgba(6, 35, 28, 0.45) 0%, rgba(4, 26, 22, 0.95) 100%);
}

.page-home .hero-inner {
  position: relative;
  z-index: 1;
}

.page-home .hero-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 16px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.page-home .hero-rail::-webkit-scrollbar {
  height: 3px;
}

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

.page-home .hero-rail__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--home-soft);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.page-home .hero-rail__item:hover,
.page-home .hero-rail__item:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.page-home .hero-rail__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(37, 242, 199, 0.75);
}

.page-home .hero-title {
  margin: 18px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 6.4vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .hero-title em {
  font-style: normal;
  color: var(--cyan);
}

.page-home .hero-lead {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.page-home .hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  margin-top: clamp(26px, 4vw, 46px);
}

.page-home .sec-mini {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.page-home .sec-mini__k {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.page-home .sec-mini__v {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 时间轴 ---------- */
.page-home .tl {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.page-home .tl-item {
  display: grid;
  grid-template-columns: 58px 14px minmax(0, 1fr);
  gap: 0 14px;
  padding: 14px 0;
}

.page-home .tl-time {
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
  padding-top: 2px;
  letter-spacing: 0.02em;
}

.page-home .tl-dot {
  position: relative;
  display: block;
}

.page-home .tl-dot::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: -14px;
  width: 1px;
  background: var(--line);
}

.page-home .tl-item:last-child .tl-dot::before {
  display: none;
}

.page-home .tl-dot::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--muted);
}

.page-home .tl-item.is-next .tl-dot::after {
  border-color: var(--cyan);
  box-shadow: 0 0 8px rgba(37, 242, 199, 0.75);
}

.page-home .tl-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .tl-note {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 排名卡 ---------- */
.page-home .rank-stack {
  display: grid;
  gap: 14px;
}

.page-home .rank-card,
.page-home .sc-card {
  position: relative;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(11, 51, 41, 0.96) 0%, rgba(6, 35, 28, 0.96) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px -24px rgba(0, 0, 0, 0.92);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.page-home .rank-card:hover,
.page-home .rank-card:focus-within,
.page-home .sc-card:hover,
.page-home .sc-card:focus-within {
  border-color: var(--cyan);
}

.page-home .rc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .rc-league {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .rc-stamp {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

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

.page-home .rc-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 38px 46px 30px;
  gap: 0 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(143, 181, 170, 0.14);
}

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

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

.page-home .rc-club {
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .rc-pts {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

.page-home .rc-gd {
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}

.page-home .rc-trend {
  font-size: 12px;
  text-align: right;
  letter-spacing: 0.02em;
}

.page-home .rc-trend.is-up {
  color: var(--cyan);
}

.page-home .rc-trend.is-down {
  color: var(--coral);
}

.page-home .rc-trend.is-flat {
  color: var(--muted);
}

/* ---------- 章节索引条 ---------- */
.page-home .index-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(4, 26, 22, 0.9);
}

.page-home .index-bar .tb-index {
  overflow-x: auto;
  flex-wrap: nowrap;
}

/* ---------- 通用章节头 ---------- */
.page-home .sec-head {
  max-width: 72ch;
}

.page-home .sec-title {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.page-home .sec-lead {
  margin: 14px 0 0;
  color: var(--muted);
}

/* ---------- 联赛索引带 ---------- */
.page-home .league-section {
  border-bottom: 1px solid var(--line);
}

.page-home .league-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  margin-top: clamp(26px, 4vw, 44px);
}

.page-home .league-visual {
  margin: 0;
  align-self: start;
}

.page-home .league-visual img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-home .league-visual__cap {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.page-home .lg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .lg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name time"
    "delta delta";
  gap: 4px 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.page-home .lg-row:hover {
  background: var(--cyan-soft);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.page-home .lg-name {
  grid-area: name;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.page-home .lg-time {
  grid-area: time;
  font-size: 12px;
  color: var(--muted);
}

.page-home .lg-delta {
  grid-area: delta;
  font-size: 12.5px;
  color: var(--muted);
}

.page-home .lg-delta.is-change {
  color: var(--orange);
}

.page-home .band-footnote {
  margin: 24px 0 0;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  border-left: 2px solid var(--cyan);
}

/* ---------- 排名工作台 ---------- */
.page-home .stack-zone {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-home .stack-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .stack-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-home .stack-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 35, 28, 0.86) 0%, rgba(6, 35, 28, 0.96) 100%);
}

.page-home .stack-inner {
  position: relative;
  z-index: 1;
}

.page-home .stack-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(26px, 4vw, 44px);
}

.page-home .rc-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: max-height 0.22s ease, opacity 0.18s ease, margin-top 0.22s ease;
}

.page-home .sc-card:hover .rc-detail,
.page-home .sc-card:focus-within .rc-detail {
  max-height: 180px;
  margin-top: 12px;
  opacity: 1;
}

.page-home .sc-card .rc-detail span {
  padding: 3px 8px;
  border: 1px solid var(--line-soft);
  background: rgba(4, 26, 22, 0.6);
}

.page-home .stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 4vw, 40px);
}

/* ---------- 近况备忘 ---------- */
.page-home .brief-section {
  border-bottom: 1px solid var(--line);
}

.page-home .brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  margin-top: clamp(26px, 4vw, 44px);
}

.page-home .memo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .memo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .memo-league {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .memo-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
}

.page-home .memo-tag {
  justify-self: start;
  padding: 3px 9px;
  font-size: 11.5px;
  color: var(--orange);
  border: 1px solid rgba(255, 138, 61, 0.35);
  background: rgba(255, 138, 61, 0.07);
}

.page-home .brief-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .brief-side img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-home .brief-card {
  padding: 18px 18px 20px;
  background: var(--mist);
  border: 1px solid var(--line);
}

.page-home .brief-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #06231c;
  letter-spacing: 0.02em;
}

.page-home .brief-card__text {
  margin: 10px 0 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #2c5047;
}

.page-home .brief-card .tb-btn {
  color: #06231c;
  border-color: rgba(6, 35, 28, 0.35);
}

.page-home .brief-card .tb-btn:hover {
  color: #06231c;
  border-color: #06231c;
}

/* ---------- 换设备继续 ---------- */
.page-home .step-list {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: 0;
  counter-reset: step;
}

.page-home .step {
  position: relative;
  padding: 18px 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--cyan);
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.page-home .step:hover {
  border-color: var(--cyan);
}

.page-home .step__num {
  display: block;
  font-size: 24px;
  line-height: 1;
  color: var(--cyan);
}

.page-home .step__title {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .step__text {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3.4vw, 36px);
}

.page-home .help-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(24px, 3.4vw, 36px);
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  background: rgba(11, 51, 41, 0.7);
}

.page-home .help-strip__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .help-strip__desc {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .help-strip__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .lg-row {
    grid-template-columns: minmax(0, 1fr) 84px 168px;
    grid-template-areas: "name time delta";
    align-items: center;
    gap: 0 18px;
  }

  .page-home .lg-delta {
    text-align: right;
  }

  .page-home .memo {
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 0 20px;
    align-items: baseline;
  }

  .page-home .memo-tag {
    justify-self: end;
  }

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

@media (min-width: 900px) {
  .page-home .hero-split {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
  }

  .page-home .rank-stack {
    padding-right: 18px;
  }

  .page-home .rank-card:nth-child(1) {
    transform: rotate(-0.5deg);
  }

  .page-home .rank-card:nth-child(2) {
    transform: rotate(0.45deg);
    margin-left: 26px;
  }

  .page-home .rank-card:nth-child(3) {
    transform: rotate(-0.3deg);
    margin-left: 10px;
  }

  .page-home .league-band {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .page-home .brief-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }

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

@media (min-width: 1080px) {
  .page-home .stack-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    padding-bottom: 46px;
  }

  .page-home .stack-grid .sc-card:nth-child(1) {
    transform: rotate(-0.4deg);
  }

  .page-home .stack-grid .sc-card:nth-child(2) {
    transform: translateY(26px) rotate(0.35deg);
  }

  .page-home .stack-grid .sc-card:nth-child(3) {
    transform: translateY(8px) rotate(-0.25deg);
  }

  .page-home .stack-grid .sc-card:nth-child(4) {
    transform: translateY(34px) rotate(0.45deg);
  }
}

@media (hover: none) {
  .page-home .rc-detail {
    max-height: 200px;
    margin-top: 12px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .rank-card,
  .page-home .sc-card,
  .page-home .step,
  .page-home .lg-row,
  .page-home .rc-detail {
    transition: none;
  }

  .page-home .rank-card,
  .page-home .stack-grid .sc-card {
    transform: none;
  }
}
