.page-home {
  --home-radius: 10px;
  --home-gap: 18px;
  --home-tint: rgba(13, 58, 48, 0.55);
  --home-hairline: rgba(28, 76, 64, 0.6);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
}

.page-home .rail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  max-width: 1380px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 20px) 16px 72px;
}

.page-home .main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 68px;
}

.page-home .num-text {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ---------- 侧边轨道 ---------- */
.page-home .home-rail {
  display: none;
}

.page-home .rail-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .rail-brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal-dark) 100%);
  margin-bottom: 8px;
}

.page-home .rail-brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .rail-brand__slogan {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.page-home .rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .rail-link {
  display: block;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.page-home .rail-link:hover {
  color: var(--paper);
  background: rgba(13, 58, 48, 0.7);
}

.page-home .rail-link[aria-current="page"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(53, 242, 201, 0.08);
}

.page-home .rail-status {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .rail-status__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.page-home .rail-status__row .num-text {
  color: var(--cyan-soft);
  font-size: 13px;
}

.page-home .rail-status__note {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 通用区块头 ---------- */
.page-home .breadcrumbs {
  margin-bottom: 16px;
}

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

.page-home .breadcrumb-current {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 62ch;
}

.page-home .section-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .section-head h2 {
  margin: 0;
  font-size: clamp(23px, 4.4vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .section-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .tile-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .tile-title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .tile-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .tile-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 242, 201, 0.4);
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
}

.page-home .tile-link:hover {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan-soft);
}

.page-home .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 首屏拼贴 ---------- */
.page-home .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .hero-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: var(--deep);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-width: 0;
}

.page-home .hero-tile--lead {
  justify-content: flex-end;
  min-height: 330px;
  padding: 26px 22px 28px;
  isolation: isolate;
}

.page-home .hero-tile--lead::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  z-index: 1;
}

.page-home .hero-tile__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  z-index: -2;
}

.page-home .hero-tile--lead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 22, 19, 0.2) 0%, rgba(4, 22, 19, 0.86) 58%, var(--ink) 100%);
}

.page-home .hero-tile__body {
  position: relative;
}

.page-home .hero-tile--lead h1 {
  margin: 0 0 12px;
  max-width: 19ch;
  font-size: clamp(27px, 5.6vw, 46px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--paper);
}

.page-home .hero-lead {
  margin: 0 0 20px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.78;
  color: #B6CFC7;
}

.page-home .feed-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .feed-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--home-hairline);
}

.page-home .feed-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .feed-item__league {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: 0 6px;
  border: 1px solid rgba(53, 242, 201, 0.32);
  border-radius: 4px;
  font-size: 11px;
  line-height: 18px;
  color: var(--cyan);
  white-space: nowrap;
}

.page-home .feed-item__title {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper);
}

.page-home .feed-item__time {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.page-home .hero-tile--fee {
  background: linear-gradient(150deg, rgba(13, 58, 48, 0.9) 0%, rgba(7, 37, 31, 0.95) 100%);
  justify-content: space-between;
}

.page-home .hero-tile--search {
  flex-direction: row;
  gap: 18px;
  align-items: flex-start;
}

.page-home .hero-tile__thumb {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.page-home .hero-tile__text {
  min-width: 0;
}

.page-home .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.page-home .tag {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(53, 242, 201, 0.07);
  font-size: 12px;
  color: var(--cyan-soft);
}

/* ---------- 联赛看板 ---------- */
.page-home .league-board {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-home .league-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .league-strip .filter-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: rgba(13, 58, 48, 0.5);
  color: var(--paper);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.page-home .league-strip .filter-chip:hover {
  border-color: var(--cyan);
}

.page-home .league-strip .filter-chip.is-active,
.page-home .league-strip .filter-chip[aria-pressed="true"] {
  border-color: var(--cyan);
  background: rgba(53, 242, 201, 0.12);
}

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

.page-home .league-strip .filter-chip.is-active .chip-name,
.page-home .league-strip .filter-chip[aria-pressed="true"] .chip-name {
  color: var(--cyan);
}

.page-home .chip-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.page-home .board-visual {
  margin: 0;
}

.page-home .board-visual img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--home-radius);
  border: 1px solid var(--line);
}

.page-home .media-caption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .sort-note {
  margin: 0;
  padding: 11px 14px;
  border-left: 2px solid var(--cyan);
  background: rgba(13, 58, 48, 0.42);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .sort-note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 242, 201, 0.4);
}

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

.page-home .board-card {
  min-width: 0;
  padding: 15px 15px 8px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, rgba(13, 58, 48, 0.66) 0%, rgba(7, 37, 31, 0.92) 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transition: border-color 200ms ease, transform 200ms ease;
}

.page-home .board-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

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

.page-home .board-card__head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .board-card__updated {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

.page-home .rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.page-home .rank-table th {
  padding: 5px 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  color: var(--muted);
  border-bottom: 1px solid var(--home-hairline);
}

.page-home .rank-table th:first-child,
.page-home .rank-table th:nth-child(3),
.page-home .rank-table th:nth-child(4),
.page-home .rank-table th:nth-child(5) {
  text-align: right;
}

.page-home .rank-table td {
  padding: 7px 3px;
  border-bottom: 1px solid rgba(28, 76, 64, 0.34);
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .rank-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .rank-table td:first-child {
  color: var(--muted);
  text-align: right;
}

.page-home .rank-table td:nth-child(3),
.page-home .rank-table td:nth-child(4) {
  text-align: right;
  color: var(--cyan-soft);
}

.page-home .rank-table td:last-child {
  text-align: right;
}

.page-home .rank-table .is-strong {
  color: var(--cyan);
  font-weight: 700;
}

/* ---------- 战报与费用 ---------- */
.page-home .brief-fee {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.page-home .info-card {
  min-width: 0;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: rgba(7, 37, 31, 0.72);
}

.page-home .info-card--fee {
  background: linear-gradient(160deg, rgba(13, 58, 48, 0.86) 0%, rgba(7, 37, 31, 0.95) 100%);
}

.page-home .info-card h3 {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .fact-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-home .fact-list strong {
  color: var(--paper);
  font-weight: 700;
}

.page-home .info-card__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--home-hairline);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 规则与检索 ---------- */
.page-home .rule-search {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.page-home .rule-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: rgba(7, 37, 31, 0.72);
  overflow: hidden;
}

.page-home .rule-card__body {
  padding: 20px 22px 24px;
}

.page-home .rule-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--paper);
}

.page-home .rule-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .media-frame {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--deep);
  overflow: hidden;
}

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

.page-home .media-frame--wide img {
  height: 170px;
}

.page-home .media-frame--square img {
  height: 190px;
}

/* ---------- 三步导出 ---------- */
.page-home .export {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.page-home .export-step {
  position: relative;
  min-width: 0;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--teal-dark);
  border-radius: var(--home-radius);
  background: rgba(7, 37, 31, 0.7);
}

.page-home .export-step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-home .export-step h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--paper);
}

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

.page-home .export-step__out {
  margin-top: 12px !important;
  padding-top: 10px;
  border-top: 1px dashed var(--home-hairline);
  color: var(--cyan-soft) !important;
  font-family: var(--font-mono);
  font-size: 12px !important;
}

/* ---------- 状态面板 ---------- */
.page-home .status-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.page-home .status-card {
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: rgba(4, 22, 19, 0.86);
  transition: border-color 200ms ease, background-color 200ms ease;
}

.page-home .status-card:hover {
  border-color: var(--cyan);
  background: rgba(13, 58, 48, 0.72);
}

.page-home .status-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.page-home .status-card__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .status-card__freq {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--cyan-soft);
}

.page-home .status-card__time {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.page-home .status-card__extra {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--home-hairline);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(53, 242, 201, 0.55);
  animation: home-pulse 2.6s ease-out infinite;
  flex: none;
}

.page-home .status-dot--warm {
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 122, 60, 0.5);
}

@keyframes home-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(53, 242, 201, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(53, 242, 201, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(53, 242, 201, 0);
  }
}

/* ---------- 收尾带 ---------- */
.page-home .closing-band {
  position: relative;
  padding: 30px 22px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: linear-gradient(120deg, rgba(13, 58, 48, 0.9) 0%, rgba(4, 22, 19, 0.96) 100%);
  overflow: hidden;
}

.page-home .closing-band::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 120px;
  height: 2px;
  background: var(--orange);
}

.page-home .closing-band h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 3.6vw, 27px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 30ch;
}

.page-home .closing-band p {
  margin: 0 0 12px;
  max-width: 66ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .closing-band .cta-row {
  margin-top: 20px;
}

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

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

  .page-home .board-visual img {
    height: 220px;
  }

  .page-home .media-frame--wide img {
    height: 200px;
  }
}

@media (min-width: 768px) {
  .page-home .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }

  .page-home .hero-tile--lead {
    grid-column: span 7;
    min-height: 380px;
  }

  .page-home .hero-tile--feed {
    grid-column: span 5;
  }

  .page-home .hero-tile--fee {
    grid-column: span 5;
  }

  .page-home .hero-tile--search {
    grid-column: span 7;
  }
}

@media (min-width: 900px) {
  .page-home .rail-layout {
    gap: 34px;
  }

  .page-home .brief-fee__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .rule-search__grid {
    grid-template-columns: 7fr 5fr;
    gap: 18px;
  }

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

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

  .page-home .board-visual img {
    height: 280px;
  }
}

@media (min-width: 1024px) {
  .page-home .rail-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 46px;
    padding: calc(var(--header-h) + 44px) 32px 104px;
  }

  .page-home .main-column {
    gap: 88px;
  }

  .page-home .home-rail {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(7, 37, 31, 0.96) 0%, rgba(4, 22, 19, 0.96) 100%);
    box-shadow: var(--shadow-soft);
  }

  .page-home .closing-band {
    padding: 40px 34px;
  }
}

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

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

  .page-home .board-card,
  .page-home .status-card,
  .page-home .rail-link {
    transition: none;
  }
}
