/* ===== 首页 · 夜间棋牌仪表盘 ===== */
.page-home {
  --home-line: rgba(143, 168, 160, 0.16);
  --home-line-soft: rgba(143, 168, 160, 0.09);
  display: block;
  padding-bottom: clamp(40px, 6vw, 84px);
}

.page-home .crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(14px, 2vw, 24px);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.page-home .eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

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

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: -24%;
  right: -12%;
  width: 68vw;
  height: 68vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle at 58% 42%, rgba(38, 224, 214, 0.11), transparent 62%);
  pointer-events: none;
}

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

.page-home .home-hero__copy h1 {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6.6vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
}

.page-home .home-hero__copy h1 .hl {
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(38, 224, 214, 0.35);
}

.page-home .home-hero__lede {
  max-width: 48ch;
  margin: 0 0 22px;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: rgba(232, 243, 238, 0.84);
}

.page-home .home-hero__facts {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.page-home .home-hero__facts li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--home-line-soft);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.page-home .home-hero__facts .mono {
  flex: 0 0 auto;
  min-width: 62px;
  color: var(--gold);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.page-home .home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 仪表盘 ---------- */
.page-home .dash {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, rgba(15, 38, 32, 0.96) 0%, rgba(11, 28, 24, 0.98) 58%, #081714 100%);
  box-shadow: 0 34px 74px -52px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.page-home .dash::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(143, 168, 160, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 168, 160, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.page-home .dash__glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.85);
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
}

.page-home .dash__head,
.page-home .dash__seats,
.page-home .dash__legend,
.page-home .dash__curve {
  position: relative;
  z-index: 1;
}

.page-home .dash__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .dash__tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.page-home .dash__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(38, 224, 214, 0.4);
  border-radius: var(--r-pill);
  background: rgba(38, 224, 214, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.page-home .dash__live .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(38, 224, 214, 0.9);
  animation: homePulse 2.4s ease-in-out infinite;
}

@keyframes homePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

.page-home .dash__seats {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.page-home .seat {
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(143, 168, 160, 0.2);
  border-radius: 5px;
  background: rgba(143, 168, 160, 0.06);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.page-home .seat--live {
  background: rgba(38, 224, 214, 0.18);
  border-color: rgba(38, 224, 214, 0.45);
}

.page-home .seat--rookie {
  background: rgba(155, 107, 255, 0.2);
  border-color: rgba(155, 107, 255, 0.5);
}

.page-home .seat--fixed {
  background: rgba(200, 162, 74, 0.18);
  border-color: rgba(200, 162, 74, 0.5);
}

.page-home .seat:hover {
  border-color: var(--cyan);
  background: rgba(38, 224, 214, 0.24);
  box-shadow: var(--glow-cyan);
}

.page-home .dash__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.page-home .dash__legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-home .lg {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid transparent;
}

.page-home .lg--live { background: rgba(38, 224, 214, 0.55); border-color: rgba(38, 224, 214, 0.75); }
.page-home .lg--rookie { background: rgba(155, 107, 255, 0.55); border-color: rgba(155, 107, 255, 0.75); }
.page-home .lg--fixed { background: rgba(200, 162, 74, 0.55); border-color: rgba(200, 162, 74, 0.75); }
.page-home .lg--idle { background: rgba(143, 168, 160, 0.75); border-color: rgba(143, 168, 160, 0.5); }

.page-home .dash__curve {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(143, 168, 160, 0.2);
}

.page-home .rank-chart {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .rank-chart__grid line {
  stroke: rgba(143, 168, 160, 0.14);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.page-home .rank-chart__pulse {
  fill: none;
  stroke: rgba(38, 224, 214, 0.3);
  stroke-width: 1.1;
}

.page-home .rank-chart__line {
  fill: none;
  stroke: url(#homeRankLine);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .rank-chart__dot {
  fill: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(38, 224, 214, 0.9));
}

.page-home .dash__curve figcaption {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- 通用章节 ---------- */
.page-home .home-section {
  padding: clamp(42px, 6vw, 82px) 0;
  border-bottom: 1px solid var(--home-line);
}

.page-home .section-head {
  max-width: 64ch;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.page-home .section-head h2 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  color: var(--text);
}

.page-home .section-head .lede {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .chip-row {
  margin: 0 0 clamp(16px, 2.5vw, 26px);
}

/* ---------- 01 概览 ---------- */
.page-home .stat-layout {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .stat-layout__media {
  margin: 0;
}

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

.page-home .stat {
  padding: 18px 18px 16px;
  border: 1px solid var(--home-line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(15, 38, 32, 0.85), rgba(11, 28, 24, 0.68));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-home .stat:hover {
  border-color: rgba(38, 224, 214, 0.45);
  box-shadow: var(--glow-cyan);
}

.page-home .stat__num {
  display: block;
  font-size: clamp(1.72rem, 4vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
}

.page-home .stat__label {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.page-home .stat p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 02 一天四场 ---------- */
.page-home .axis-panels {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .axis-panel {
  position: relative;
  padding: 18px 18px 16px 22px;
  border: 1px solid var(--home-line);
  border-radius: var(--r-md);
  background: rgba(15, 38, 32, 0.6);
  transition: border-color 0.2s ease;
}

.page-home .axis-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--gold), rgba(200, 162, 74, 0.12));
}

.page-home .axis-panel:hover {
  border-color: rgba(200, 162, 74, 0.5);
}

.page-home .axis-panel__time {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.page-home .axis-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.page-home .axis-panel__meta li {
  padding: 3px 11px;
  border: 1px solid rgba(143, 168, 160, 0.24);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.page-home .axis-panel p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.74;
  color: var(--muted);
}

.page-home .axis-visual {
  margin: clamp(20px, 3vw, 32px) 0 0;
}

/* ---------- 03 双入口 ---------- */
.page-home .entry-visual {
  margin: 0 0 clamp(18px, 2.6vw, 28px);
}

.page-home .split-entry {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .entry {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--home-line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(15, 38, 32, 0.92), rgba(8, 23, 20, 0.9));
  overflow: hidden;
}

.page-home .entry--rookie { border-color: rgba(155, 107, 255, 0.42); }
.page-home .entry--fixed { border-color: rgba(200, 162, 74, 0.42); }

.page-home .entry__tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 4px 13px;
  border-radius: var(--r-pill);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.page-home .entry--rookie .entry__tag {
  color: var(--violet);
  border: 1px solid rgba(155, 107, 255, 0.5);
  background: rgba(155, 107, 255, 0.12);
}

.page-home .entry--fixed .entry__tag {
  color: var(--gold);
  border: 1px solid rgba(200, 162, 74, 0.5);
  background: rgba(200, 162, 74, 0.12);
}

.page-home .entry h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.18rem, 2.4vw, 1.55rem);
  line-height: 1.28;
  color: var(--text);
}

.page-home .entry p {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.82;
  color: var(--muted);
}

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

.page-home .entry__list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(232, 243, 238, 0.86);
}

.page-home .entry__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan);
}

.page-home .entry--rookie .entry__list li::before { background: var(--violet); }
.page-home .entry--fixed .entry__list li::before { background: var(--gold); }

.page-home .entry-foot {
  margin: clamp(16px, 2.4vw, 24px) 0 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .entry-foot a,
.page-home .records-foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(38, 224, 214, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .entry-foot a:hover,
.page-home .records-foot a:hover {
  color: var(--gold);
  border-color: rgba(200, 162, 74, 0.6);
}

/* ---------- 04 段位 ---------- */
.page-home .rank-ladder {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 186px;
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: 0 0 8px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .rank-step {
  flex: 1 0 82px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.page-home .rank-step__bar {
  width: 100%;
  border: 1px solid rgba(38, 224, 214, 0.35);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(38, 224, 214, 0.55), rgba(38, 224, 214, 0.06));
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-home .rank-step--1 .rank-step__bar { height: 26px; }
.page-home .rank-step--2 .rank-step__bar { height: 42px; }
.page-home .rank-step--3 .rank-step__bar { height: 58px; }
.page-home .rank-step--4 .rank-step__bar { height: 74px; }
.page-home .rank-step--5 .rank-step__bar { height: 92px; }
.page-home .rank-step--6 .rank-step__bar { height: 108px; }
.page-home .rank-step--7 .rank-step__bar { height: 122px; }

.page-home .rank-step:hover .rank-step__bar {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(38, 224, 214, 0.82), rgba(38, 224, 214, 0.14));
  box-shadow: var(--glow-cyan);
}

.page-home .rank-step__name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.page-home .rank-step__sub {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

.page-home .rank-note {
  padding: 18px;
  border: 1px solid var(--home-line);
  border-radius: var(--r-md);
  background: rgba(15, 38, 32, 0.55);
}

.page-home .rank-note .mono {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .rank-note h3 {
  margin: 8px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.page-home .rank-note p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.74;
  color: var(--muted);
}

/* ---------- 05 记录检索 ---------- */
.page-home .record-panels {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.page-home .record-panel {
  padding: 20px;
  border: 1px solid var(--home-line);
  border-top: 2px solid rgba(38, 224, 214, 0.5);
  border-radius: var(--r-md);
  background: rgba(15, 38, 32, 0.6);
  transition: border-color 0.2s ease;
}

.page-home .record-panel:hover {
  border-top-color: var(--gold);
}

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

.page-home .record-panel h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.page-home .record-panel p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.76;
  color: var(--muted);
}

.page-home .records-foot {
  margin: clamp(16px, 2.4vw, 24px) 0 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 06 更新节奏 ---------- */
.page-home .cadence-track {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--home-line);
}

.page-home .cadence-item {
  position: relative;
  padding: 24px 18px 20px;
  border-bottom: 1px solid var(--home-line);
}

.page-home .cadence-item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(200, 162, 74, 0.7);
}

.page-home .cadence-item__idx {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.page-home .cadence-item h3 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.page-home .cadence-item p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.74;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.page-home .home-cta {
  padding: clamp(40px, 6vw, 80px) 0 0;
}

.page-home .home-cta__inner {
  position: relative;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(15, 38, 32, 0.95) 0%, rgba(8, 23, 20, 0.92) 55%, rgba(38, 224, 214, 0.07) 100%);
  overflow: hidden;
}

.page-home .home-cta__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(200, 162, 74, 0.13) 1px, transparent 1px);
  background-size: 68px 100%;
  pointer-events: none;
}

.page-home .home-cta__inner h2 {
  margin: 12px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.4vw, 2.2rem);
  line-height: 1.22;
  color: var(--text);
  max-width: 24ch;
}

.page-home .home-cta__inner p {
  margin: 0 0 24px;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 平板 ---------- */
@media (min-width: 640px) {
  .page-home .stat-layout__numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .page-home .stat-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
  }

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

@media (min-width: 940px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.16fr);
    align-items: center;
  }

  .page-home .cadence-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .cadence-item {
    border-bottom: 0;
    border-right: 1px solid var(--home-line);
    padding: 26px 20px 22px;
  }

  .page-home .cadence-item:last-child {
    border-right: 0;
  }

  .page-home .rank-step {
    flex: 1 1 0;
  }
}

@media (min-width: 1180px) {
  .page-home .home-hero {
    padding-top: clamp(24px, 2.6vw, 44px);
  }

  .page-home .rank-ladder {
    height: 208px;
  }

  .page-home .rank-step--7 .rank-step__bar { height: 140px; }
  .page-home .rank-step--6 .rank-step__bar { height: 124px; }
  .page-home .rank-step--5 .rank-step__bar { height: 106px; }
}

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .dash__live .status-dot {
    animation: none;
  }

  .page-home .seat,
  .page-home .stat,
  .page-home .axis-panel,
  .page-home .record-panel,
  .page-home .rank-step__bar,
  .page-home .entry-foot a,
  .page-home .records-foot a {
    transition: none;
  }
}
