.page-home {
  --home-rule: 1px solid var(--wood);
  --home-hair: 1px solid var(--grid);
  --home-pad: 20px;
  background-color: var(--paper);
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .page-home {
    --home-pad: 40px;
  }
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  position: relative;
  overflow: hidden;
  border-bottom: var(--home-rule);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, var(--grid) 0, var(--grid) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(to bottom, var(--grid) 0, var(--grid) 1px, transparent 1px, transparent 24px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
  .page-home .hero-split {
    grid-template-columns: 58fr 42fr;
  }
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: calc(var(--header-h) + 36px) var(--home-pad) 40px;
}

@media (min-width: 1280px) {
  .page-home .hero-copy {
    padding: calc(var(--header-h) + 72px) 64px 72px;
  }
}

.page-home .hero h1 {
  margin: 0;
  max-width: 11em;
  color: var(--ink);
}

.page-home .hero-lead {
  margin: 0;
  max-width: 32em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

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

.page-home .hero-visual {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-top: var(--home-rule);
}

@media (min-width: 1024px) {
  .page-home .hero-visual {
    min-height: 560px;
    border-top: 0;
    border-left: var(--home-rule);
  }
}

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

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, rgba(201, 190, 166, 0.5) 0, rgba(201, 190, 166, 0.5) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(to bottom, rgba(201, 190, 166, 0.5) 0, rgba(201, 190, 166, 0.5) 1px, transparent 1px, transparent 24px);
  pointer-events: none;
}

.page-home .countdown {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(240px, 72%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  z-index: 2;
}

.page-home .countdown-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.page-home .ring-track {
  fill: none;
  stroke: var(--grid);
  stroke-width: 4;
}

.page-home .ring-progress {
  fill: none;
  stroke: var(--dice);
  stroke-width: 4;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 132;
  stroke-linecap: butt;
}

.page-home .countdown-readout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background-color: rgba(246, 240, 226, 0.92);
  border: var(--home-rule);
}

.page-home .countdown-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--seal);
}

.page-home .countdown-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .countdown-detail {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  background-color: rgba(246, 240, 226, 0.94);
  border: var(--home-rule);
}

.page-home .countdown-detail summary {
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--seal);
  cursor: pointer;
  list-style: none;
}

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

.page-home .countdown-detail p {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- 开奖速览带 ---------- */

.page-home .award-band {
  overflow: hidden;
  background-color: var(--paper-deep);
  border-bottom: var(--home-rule);
}

.page-home .award-track {
  display: flex;
  width: max-content;
  animation: home-award-scroll 48s linear infinite;
}

.page-home .award-track:hover,
.page-home .award-track:focus-within {
  animation-play-state: paused;
}

@keyframes home-award-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.page-home .award-list {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .award-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-right: var(--home-hair);
  white-space: nowrap;
}

.page-home .award-kind {
  font-size: 13px;
  color: var(--ink);
}

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

.page-home .award-balls {
  display: inline-flex;
  gap: 4px;
}

.page-home .award-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--teal);
}

.page-home .ball-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  background-color: var(--paper);
  border: 1px solid var(--wood);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- 主体分栏 ---------- */

.page-home .shell--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-block: var(--module);
}

@media (min-width: 1024px) {
  .page-home .shell--split {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 56px;
  }
}

.page-home .axis-main {
  min-width: 0;
}

/* ---------- 左侧目录轴 ---------- */

.page-home .ledger-axis {
  padding-bottom: 12px;
  border-bottom: var(--home-rule);
}

@media (min-width: 1024px) {
  .page-home .ledger-axis {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    align-self: start;
    padding-bottom: 0;
    padding-right: 20px;
    border-bottom: 0;
    border-right: var(--home-rule);
  }
}

.page-home .axis-title {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--wood);
}

.page-home .axis-list {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
}

@media (min-width: 1024px) {
  .page-home .axis-list {
    flex-direction: column;
    gap: 2px;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

.page-home .axis-link {
  position: relative;
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease;
}

@media (min-width: 1024px) {
  .page-home .axis-link {
    padding: 9px 0 9px 16px;
    border-bottom: 0;
  }
}

.page-home .axis-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--seal);
  transform: scaleY(0);
  transition: transform 0.16s ease;
}

.page-home .axis-link[data-current="true"] {
  color: var(--ink);
}

.page-home .axis-link[data-current="true"]::before {
  transform: scaleY(1);
}

.page-home .axis-link:hover,
.page-home .axis-link:focus-visible {
  color: var(--dice);
}

/* ---------- 通用区块 ---------- */

.page-home .home-section {
  padding-top: 40px;
  padding-bottom: 56px;
  border-top: var(--home-hair);
}

.page-home .home-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-home .home-section .section-title {
  margin: 12px 0 16px;
  color: var(--ink);
}

.page-home .section-lead {
  margin: 0 0 32px;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.85;
}

.page-home .index-label {
  margin: 0;
  color: var(--seal);
}

.page-home .sub-title {
  margin: 0 0 10px;
  color: var(--ink);
}

/* ---------- 彩种目录 ---------- */

.page-home .catalog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: var(--home-hair);
  border-left: var(--home-hair);
}

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

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

.page-home .catalog-group {
  padding: 20px;
  border-right: var(--home-hair);
  border-bottom: var(--home-hair);
  background-color: var(--paper);
}

.page-home .catalog-meta {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--wood);
}

.page-home .catalog-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .catalog-list li {
  padding: 7px 0 7px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  border-top: var(--home-hair);
  position: relative;
}

.page-home .catalog-list li:first-child {
  border-top: 0;
}

.page-home .catalog-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 1px;
  background-color: var(--wood);
}

/* ---------- 走势与奖池 ---------- */

.page-home .trend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 24px;
  border: var(--home-hair);
}

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

.page-home .trend-card {
  padding: 20px;
  border-bottom: var(--home-hair);
}

.page-home .trend-card:last-child {
  border-bottom: 0;
}

@media (min-width: 900px) {
  .page-home .trend-card {
    border-bottom: 0;
  }

  .page-home .trend-card + .trend-card {
    border-left: var(--home-hair);
  }
}

.page-home .spark {
  display: block;
  width: 100%;
  height: auto;
  background-color: var(--paper-deep);
  border: var(--home-hair);
}

.page-home .spark-grid line {
  stroke: var(--grid);
  stroke-width: 1;
}

.page-home .spark-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linejoin: miter;
}

.page-home .trend-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .pool-panel {
  margin-top: 24px;
  padding: 20px;
  background-color: var(--paper-deep);
  border: var(--home-rule);
}

.page-home .pool-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .pool-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  border-top: var(--home-hair);
}

.page-home .pool-list li:first-child {
  border-top: 0;
}

.page-home .pool-name {
  font-size: 14px;
  color: var(--ink-soft);
}

.page-home .pool-amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  background-color: rgba(201, 162, 39, 0.22);
  padding: 2px 8px;
}

/* ---------- 三步上手 ---------- */

.page-home .path-flow {
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
  position: relative;
  border-left: var(--home-rule);
}

.page-home .path-step {
  position: relative;
  padding-bottom: 32px;
}

.page-home .path-step:last-child {
  padding-bottom: 0;
}

.page-home .path-step::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 11px;
  height: 11px;
  background-color: var(--dice);
  border: 1px solid var(--ink);
}

.page-home .path-index {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--seal);
}

.page-home .path-step p {
  margin: 0;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ---------- 日更与专栏 ---------- */

.page-home .daily-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (min-width: 860px) {
  .page-home .daily-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
  }
}

.page-home .daily-copy p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.page-home .daily-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .daily-list li {
  padding: 10px 0;
  border-top: var(--home-hair);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .daily-list .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .column-strip {
  margin-top: 32px;
  border-top: var(--home-rule);
}

.page-home .column-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
}

.page-home .column-strip-head .sub-title {
  margin: 0;
}

.page-home .column-more {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--dice);
  text-decoration: none;
  border-bottom: 1px solid var(--dice);
  padding-bottom: 2px;
}

.page-home .column-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .column-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  padding: 13px 0;
  border-top: var(--home-hair);
}

.page-home .tag {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--seal);
  border: 1px solid var(--seal);
  padding: 2px 7px;
  border-radius: 0;
}

.page-home .column-title {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- 信任与联系 ---------- */

.page-home .trust-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--night);
  color: var(--paper);
  border-top: var(--home-rule);
}

.page-home .trust-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  z-index: -1;
}

.page-home .trust-inner {
  position: relative;
  padding: 64px var(--home-pad);
  max-width: 1100px;
}

@media (min-width: 1024px) {
  .page-home .trust-inner {
    padding: 80px 64px;
  }
}

.page-home .trust-band .index-label {
  color: var(--gold);
}

.page-home .trust-band .section-title {
  margin: 12px 0 24px;
  color: var(--paper);
}

.page-home .trust-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  max-width: 46em;
}

.page-home .trust-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(246, 240, 226, 0.88);
  border-top: 1px solid rgba(139, 90, 43, 0.6);
}

.page-home .trust-list li:first-child {
  border-top: 0;
}

.page-home .trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 10px;
  height: 1px;
  background-color: var(--gold);
}

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

.page-home .trust-band .btn--ghost {
  color: var(--paper);
  border-color: rgba(246, 240, 226, 0.6);
}

/* ---------- 无障碍与降级 ---------- */

.page-home .axis-link:focus-visible,
.page-home .column-more:focus-visible,
.page-home .countdown-detail summary:focus-visible {
  outline: 2px solid var(--dice);
  outline-offset: 2px;
}

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

  .page-home .award-band {
    overflow-x: auto;
  }

  .page-home .axis-link::before {
    transition: none;
  }
}
</main>
