.page-home {
  --home-gap: clamp(0.85rem, 2.2vw, 1.5rem);
  --home-section-y: clamp(2.6rem, 6vw, 4.6rem);
  --gold-ink: #8A6A10;
  --peacock-lite: #7CC0CB;
  --candle-lite: #F0A961;
  --paper-line: rgba(28, 26, 23, 0.12);
  position: relative;
  overflow-x: clip;
  background: var(--canal);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.75;
  text-align: left;
}

.page-home .num {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 首屏拼贴 ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(1.6rem, 4vw, 3rem) 0 clamp(2.8rem, 6vw, 4.4rem);
  background:
    radial-gradient(130% 100% at 6% 0%, rgba(31, 111, 122, 0.38) 0%, rgba(31, 111, 122, 0) 58%),
    radial-gradient(90% 80% at 96% 10%, rgba(224, 138, 60, 0.16) 0%, rgba(224, 138, 60, 0) 60%),
    linear-gradient(180deg, var(--canal-night) 0%, var(--canal) 55%, var(--canal-deep) 100%);
  border-bottom: 1px solid var(--line-gold);
  overflow: hidden;
}

.page-home .hero__ripple {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(42px, 7vw, 78px);
  pointer-events: none;
}

.page-home .hero__ripple svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-home .hero__ripple path:first-child {
  fill: rgba(201, 162, 39, 0.16);
}

.page-home .hero__ripple path:last-child {
  fill: rgba(31, 111, 122, 0.34);
}

.page-home .hero__collage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--home-gap);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "figure"
    "stats";
}

.page-home .hero__intro {
  grid-area: intro;
  background: var(--cream);
  color: var(--ink);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3.4vw, 2.3rem);
  box-shadow: var(--shadow-card);
}

.page-home .eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-note);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-home .hero__intro .eyebrow {
  color: var(--gold-ink);
}

.page-home h1 {
  margin: 0.55rem 0 0.85rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: var(--fs-display);
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.page-home .hero__lead {
  margin: 0 0 1.4rem;
  max-width: 48ch;
  font-size: 0.96rem;
  line-height: 1.85;
  color: #3c362c;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-home .hero__figure {
  grid-area: figure;
  position: relative;
  margin: 0;
  min-height: 220px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canal-night);
}

.page-home .hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-width: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06);
}

.page-home .figure__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0.45rem 0.8rem;
  font-family: var(--font-mono);
  font-size: var(--fs-note);
  letter-spacing: 0.09em;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(5, 31, 32, 0) 0%, rgba(5, 31, 32, 0.86) 100%);
}

.page-home .hero__stats {
  grid-area: stats;
  display: grid;
  gap: var(--home-gap);
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.page-home .hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.page-home .hero__stat--peacock {
  border-top-color: var(--peacock-lite);
}

.page-home .hero__stat--candle {
  border-top-color: var(--candle-lite);
}

.page-home .hero__stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  line-height: 1.05;
  color: var(--gold);
}

.page-home .hero__stat--peacock .hero__stat-num {
  color: var(--peacock-lite);
}

.page-home .hero__stat--candle .hero__stat-num {
  color: var(--candle-lite);
}

.page-home .hero__stat-label {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--cream-dim);
}

/* ---------- 目录刻度条 ---------- */
.page-home .toc {
  background: var(--canal-deep);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .toc__list {
  display: flex;
  gap: clamp(0.6rem, 2.4vw, 1.8rem);
  margin: 0;
  padding: 0.65rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .toc__item {
  flex: 0 0 auto;
}

.page-home .toc__link {
  position: relative;
  display: inline-block;
  padding: 0.3rem 0 0.3rem 1.1rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.page-home .toc__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
}

.page-home .toc__link:hover,
.page-home .toc__link:focus-visible {
  color: var(--gold);
  transform: translateX(2px);
}

/* ---------- 章节 ---------- */
.page-home .section {
  position: relative;
  padding: var(--home-section-y) 0;
}

.page-home .section + .section {
  border-top: 1px solid var(--line-soft);
}

.page-home .section__head {
  max-width: 64ch;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

.page-home .section__title {
  margin: 0.4rem 0 0.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 1.35;
  color: var(--cream);
}

.page-home .section__lead {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--cream-dim);
}

/* ---------- 厅区刻度线 ---------- */
.page-home .halls__scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 0 0 1.3rem;
  padding: 0.8rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line-gold);
}

.page-home .scale-line__item {
  position: relative;
  padding-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  border-top: 0;
}

.page-home .scale-line__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.5rem;
  width: 1px;
  height: 0.75rem;
  background: var(--gold);
  opacity: 0.7;
}

.page-home .scale-line__item .num {
  color: var(--gold);
  margin-right: 0.35rem;
}

/* ---------- 筛选条 ---------- */
.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.6rem);
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--line-gold);
}

.page-home .filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-home .filter-btn:hover {
  color: var(--gold);
  border-color: var(--line-gold);
}

.page-home .filter-btn[aria-pressed="true"] {
  color: var(--canal-night);
  background: var(--gold);
  border-color: var(--gold);
}

.page-home .filter-btn__count {
  margin-left: 0.3rem;
  opacity: 0.75;
}

.page-home .filter-empty {
  margin: 1rem 0 0;
  font-size: 0.86rem;
  color: var(--candle-lite);
}

/* ---------- 厅区卡片 ---------- */
.page-home .halls__layout {
  display: grid;
  gap: var(--home-gap);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .halls__figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canal-night);
}

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

.page-home #hall-grid {
  gap: var(--home-gap);
}

.page-home .hall-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem 1.25rem;
  background: var(--cream);
  color: var(--ink);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .hall-card:hover,
.page-home .hall-card:focus-within {
  transform: translateY(-3px);
}

.page-home .hall-card__range {
  margin: 0;
  font-size: var(--fs-note);
  letter-spacing: 0.1em;
  color: var(--gold-ink);
}

.page-home .hall-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-card);
  color: var(--ink);
}

.page-home .hall-card__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.75;
  color: #464035;
}

.page-home .hall-card__note {
  margin: 0;
  font-size: var(--fs-note);
  letter-spacing: 0.06em;
  color: var(--wine);
}

.page-home .hall-card__link {
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .hall-card__link:hover,
.page-home .hall-card__link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* ---------- 赛季桌台 ---------- */
.page-home .tables__layout {
  display: grid;
  gap: var(--home-gap);
  grid-template-columns: minmax(0, 1fr);
}

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

.page-home .type-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.05rem 1.15rem;
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

.page-home .type-card--peacock {
  border-left-color: var(--peacock-lite);
}

.page-home .type-card--candle {
  border-left-color: var(--candle-lite);
}

.page-home .type-card--wine {
  border-left-color: var(--wine);
  background: rgba(122, 46, 46, 0.16);
}

.page-home .type-card__index {
  margin: 0;
  font-size: var(--fs-note);
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .type-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-card);
  color: var(--cream);
}

.page-home .type-card__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.78;
  color: var(--cream-dim);
}

.page-home .type-card .tag {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.page-home .tables__aside {
  display: grid;
  gap: var(--home-gap);
  align-content: start;
}

.page-home .tables__figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canal-night);
}

.page-home .tables__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.page-home .tables__stats {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.page-home .tables__stat {
  padding: 0.8rem 0.95rem;
  border: 1px dashed var(--line-gold);
  border-radius: var(--radius);
}

.page-home .tables__stat dt {
  font-family: var(--font-mono);
  font-size: var(--fs-note);
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-home .tables__stat dd {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--cream-dim);
}

.page-home .tables__stat dd .num {
  color: var(--candle-lite);
  font-size: 0.95rem;
}

/* ---------- 对照表 ---------- */
.page-home .compare__layout {
  display: grid;
  gap: var(--home-gap);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: var(--cream);
}

.page-home .compare__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.86rem;
}

.page-home .compare__table th,
.page-home .compare__table td {
  padding: 0.72rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--paper-line);
  line-height: 1.7;
}

.page-home .compare__table thead th {
  background: var(--canal-deep);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  border-bottom-color: var(--line-gold);
}

.page-home .compare__table tbody th {
  font-weight: 700;
  color: var(--wine);
  white-space: nowrap;
}

.page-home .compare__table tbody tr:last-child th,
.page-home .compare__table tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .compare__link {
  color: var(--gold-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.page-home .compare__link:hover,
.page-home .compare__link:focus-visible {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

.page-home .compare__figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canal-night);
}

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

/* ---------- 规则手风琴 ---------- */
.page-home .rules__accordion {
  display: grid;
  gap: 0.6rem;
  max-width: 78ch;
}

.page-home .rules__q {
  margin: 0;
  font-size: 1rem;
}

.page-home .accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.05rem;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cream);
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-home .accordion__trigger::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--gold);
  transition: transform 0.25s ease;
}

.page-home .accordion__trigger:hover,
.page-home .accordion__trigger:focus-visible {
  color: var(--gold);
  border-color: var(--line-gold);
}

.page-home .accordion__trigger[aria-expanded="true"] {
  background: var(--cream);
  color: var(--ink);
  border-left-color: var(--wine);
}

.page-home .accordion__trigger[aria-expanded="true"]::after {
  content: "–";
  color: var(--wine);
}

.page-home .accordion__panel {
  padding: 0.9rem 1.05rem 1.1rem;
  border-left: 3px solid var(--wine);
  background: rgba(247, 241, 227, 0.06);
  border-radius: 0 0 var(--radius) var(--radius);
}

.page-home .accordion__panel p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--cream-dim);
}

/* ---------- 反馈通道 ---------- */
.page-home .support__grid {
  gap: var(--home-gap);
}

.page-home .support-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--cream);
  color: var(--ink);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-home .support-card:hover,
.page-home .support-card:focus-visible {
  transform: translateY(-3px);
  border-top-color: var(--candle);
}

.page-home .support-card__index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-note);
  letter-spacing: 0.12em;
  color: var(--gold-ink);
}

.page-home .support-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-card);
  color: var(--ink);
}

.page-home .support-card__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.75;
  color: #464035;
}

.page-home .support-card__go {
  margin-top: auto;
  padding-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--wine);
}

.page-home .support__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.8rem;
  margin-top: var(--home-gap);
  padding: 1rem 1.15rem;
  background: var(--glass);
  border: 1px dashed var(--line-gold);
  border-radius: var(--radius);
}

.page-home .support__line {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.page-home .support__value {
  color: var(--gold);
  font-size: 0.85rem;
  word-break: break-word;
}

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

@media (min-width: 900px) {
  .page-home .hero__collage {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(120px, 1fr);
    grid-template-areas:
      "intro figure"
      "stats figure";
  }

  .page-home .page-home .hero__stats {
    align-self: end;
  }

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

  .page-home .halls__figure {
    position: sticky;
    top: calc(var(--bar-h) + 1.25rem);
  }

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

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

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

@media (hover: hover) and (min-width: 960px) {
  .page-home .hall-card__note {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .page-home .hall-card:hover .hall-card__note,
  .page-home .hall-card:focus-within .hall-card__note {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hall-card,
  .page-home .support-card,
  .page-home .toc__link,
  .page-home .accordion__trigger,
  .page-home .hall-card__note {
    transition: none;
  }
}
