.page-home {
  --tier-h: 120px;
  --home-hair: rgba(15, 42, 34, 0.12);
  --home-hair-dark: rgba(245, 239, 226, 0.18);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 520px at 84% 10%, rgba(94, 207, 192, 0.16), transparent 62%),
    radial-gradient(640px 480px at 4% 96%, rgba(217, 164, 65, 0.13), transparent 64%),
    var(--ink);
  color: var(--paper);
  padding-top: calc(var(--header-h) + 34px);
  padding-bottom: 52px;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(94, 207, 192, 0.14) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 78%);
  pointer-events: none;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .hero__crumb {
  margin-bottom: 18px;
  color: rgba(245, 239, 226, 0.6);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.page-home .hero__crumb span[aria-current="page"] {
  color: var(--gold-soft);
}

.page-home .hero__eyebrow {
  color: var(--neon);
  margin: 0;
}

.page-home .hero__title {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 7.2vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--paper-raise);
}

.page-home .hero__lede {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(245, 239, 226, 0.82);
}

.page-home .hero__search {
  margin-top: 28px;
}

.page-home .hero__search-label {
  margin: 0 0 12px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: rgba(245, 239, 226, 0.58);
}

.page-home .hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(240, 220, 168, 0.34);
  background: rgba(245, 239, 226, 0.06);
  font-size: 14px;
  color: var(--gold-soft);
}

.page-home .chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-home .hero .btn--ghost {
  border-color: rgba(245, 239, 226, 0.4);
  color: var(--paper);
}

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--home-hair-dark);
}

.page-home .hero__stat dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245, 239, 226, 0.6);
}

.page-home .hero__stat dd {
  margin: 8px 0 0;
  font-family: var(--font-num);
  font-size: clamp(18px, 4.4vw, 23px);
  color: var(--gold-soft);
}

.page-home .hero__visual {
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
}

.page-home .hero__svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.45));
}

.page-home .hero__arc {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: home-draw 1.7s var(--ease) 0.35s forwards;
}

@keyframes home-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__arc {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@media (min-width: 960px) {
  .page-home .hero {
    padding-top: calc(var(--header-h) + 58px);
    padding-bottom: 74px;
  }

  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 56px;
  }

  .page-home .hero__visual {
    margin: 0;
    max-width: none;
  }
}

/* ---------- 记录查询 ---------- */
.page-home .records {
  background: var(--paper);
}

.page-home .records__grid {
  gap: 32px;
}

.page-home .records__title {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 5.4vw, 36px);
  line-height: 1.28;
  color: var(--ink);
}

.page-home .records__lede {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--grey);
}

.page-home .records__figure {
  margin: 26px 0 0;
}

.page-home .records__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: none;
}

.page-home .records__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px 20px 22px;
  border-radius: var(--radius-md);
  background: var(--paper-raise);
  border: 1px solid var(--home-hair);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .records__item:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.page-home .records__no {
  font-family: var(--font-num);
  font-size: 22px;
  line-height: 1;
  color: var(--gold);
}

.page-home .records__body h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.page-home .records__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--grey);
}

/* ---------- 段位阶梯 ---------- */
.page-home .tiers-section {
  background: linear-gradient(180deg, var(--paper-warm), var(--paper));
}

.page-home .tiers__head {
  max-width: 42em;
}

.page-home .tiers__head h2 {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 5.4vw, 36px);
  line-height: 1.28;
  color: var(--ink);
}

.page-home .tiers__lede {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--grey);
}

.page-home .tiers {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .tier {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "lv name"
    "lv note";
  align-items: center;
  gap: 4px 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--home-hair);
  background: var(--paper-raise);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .tier:hover,
.page-home .tier:focus {
  transform: translateY(-2px);
  border-color: var(--gold);
  outline: none;
}

.page-home .tier__lv {
  grid-area: lv;
  font-family: var(--font-num);
  font-size: 20px;
  color: var(--gold);
}

.page-home .tier__name {
  grid-area: name;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.page-home .tier__note {
  grid-area: note;
  font-size: 13px;
  line-height: 1.65;
  color: var(--grey);
}

.page-home .tiers__foot {
  margin-top: 40px;
  gap: 30px;
}

.page-home .tiers__figure {
  margin: 0;
}

.page-home .tiers__detail h3 {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(20px, 4.4vw, 27px);
  color: var(--ink);
}

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

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

.page-home .tiers__dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--grass);
  box-shadow: 0 0 0 4px rgba(31, 122, 90, 0.16);
}

.page-home .tiers__points h4 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.page-home .tiers__points p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--grey);
}

@media (min-width: 900px) {
  .page-home .tiers {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    margin-top: 48px;
  }

  .page-home .tier {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    height: var(--tier-h, 120px);
    padding: 12px 8px;
    text-align: center;
    background: linear-gradient(180deg, rgba(31, 122, 90, 0.08), rgba(217, 164, 65, 0.18));
  }

  .page-home .tier__lv {
    font-size: 12.5px;
  }

  .page-home .tier__name {
    font-size: 14px;
    line-height: 1.35;
  }

  .page-home .tier__note {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    width: 180px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--paper);
    font-size: 12.5px;
    line-height: 1.65;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    z-index: 6;
  }

  .page-home .tier:hover .tier__note,
  .page-home .tier:focus .tier__note {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .page-home .tier:nth-child(1) { --tier-h: 108px; }
  .page-home .tier:nth-child(2) { --tier-h: 126px; }
  .page-home .tier:nth-child(3) { --tier-h: 144px; }
  .page-home .tier:nth-child(4) { --tier-h: 162px; }
  .page-home .tier:nth-child(5) { --tier-h: 180px; }
  .page-home .tier:nth-child(6) { --tier-h: 198px; }
  .page-home .tier:nth-child(7) { --tier-h: 216px; }
  .page-home .tier:nth-child(8) { --tier-h: 234px; }
  .page-home .tier:nth-child(9) { --tier-h: 252px; }
}

/* ---------- 分数明细 ---------- */
.page-home .score-detail {
  background: var(--paper);
}

.page-home .score-detail__grid {
  gap: 34px;
}

.page-home .score-detail__aside h2 {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 5.4vw, 34px);
  line-height: 1.28;
  color: var(--ink);
}

.page-home .score-detail__aside > p {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--grey);
}

.page-home .score-detail__notes {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .score-detail__notes li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
}

.page-home .score-detail__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
}

.page-home .score-detail__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--home-hair);
  background: var(--paper-raise);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}

.page-home .score-table {
  width: 100%;
  min-width: 540px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
}

.page-home .score-table caption {
  padding: 16px 18px 12px;
  text-align: left;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.page-home .score-table th,
.page-home .score-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--home-hair);
}

.page-home .score-table thead th {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--paper-warm);
}

.page-home .score-table tbody tr:hover {
  background: rgba(217, 164, 65, 0.12);
}

.page-home .score-table .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-home .score-table tfoot td {
  border-bottom: 0;
  background: var(--gold-soft);
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
}

/* ---------- 数据看板 ---------- */
.page-home .board {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--paper);
}

.page-home .board__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.page-home .board__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

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

.page-home .board__eyebrow {
  color: var(--neon);
}

.page-home .board__head h2 {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 5.4vw, 36px);
  line-height: 1.28;
  color: var(--paper-raise);
}

.page-home .board__head p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(245, 239, 226, 0.75);
}

.page-home .board__grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.page-home .board__panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(240, 220, 168, 0.22);
  background: rgba(10, 30, 24, 0.74);
  padding: 22px 20px 24px;
}

.page-home .board__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
}

.page-home .bstat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(94, 207, 192, 0.35);
}

.page-home .bstat__k {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245, 239, 226, 0.62);
}

.page-home .bstat__v {
  font-family: var(--font-num);
  font-size: clamp(26px, 6.4vw, 36px);
  line-height: 1.1;
  color: var(--gold-soft);
}

.page-home .bstat__u {
  font-size: 12px;
  color: rgba(245, 239, 226, 0.5);
}

.page-home .board__sub {
  margin: 28px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--paper-raise);
}

.page-home .dist {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .dist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 44px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}

.page-home .dist__k {
  color: rgba(245, 239, 226, 0.8);
}

.page-home .dist__bar {
  display: block;
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(245, 239, 226, 0.14);
  overflow: hidden;
}

.page-home .dist__bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon), var(--gold));
}

.page-home .dist__v {
  font-family: var(--font-num);
  text-align: right;
  color: var(--gold-soft);
}

.page-home .week {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  height: 150px;
}

.page-home .week li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.page-home .week__bar {
  display: block;
  width: 100%;
  height: var(--h, 40%);
  border-radius: var(--radius-sm) var(--radius-sm) 4px 4px;
  background: linear-gradient(180deg, var(--gold), rgba(217, 164, 65, 0.24));
}

.page-home .week__k {
  font-size: 12px;
  color: rgba(245, 239, 226, 0.6);
}

.page-home .board__note {
  margin: 20px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(245, 239, 226, 0.7);
}

.page-home .board__trail {
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--home-hair-dark);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245, 239, 226, 0.72);
}

.page-home .board__trail a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 599px) {
  .page-home .dist li {
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-areas:
      "k v"
      "bar bar";
    gap: 6px 12px;
  }

  .page-home .dist__k { grid-area: k; }
  .page-home .dist__v { grid-area: v; }
  .page-home .dist__bar { grid-area: bar; }
}

@media (min-width: 900px) {
  .page-home .board__grid {
    grid-template-columns: 1.35fr minmax(0, 1fr);
    gap: 22px;
  }

  .page-home .board__panel {
    padding: 28px 26px 30px;
  }
}

/* ---------- 规则文档 ---------- */
.page-home .rules-doc {
  background: var(--paper);
}

.page-home .rules-doc__grid {
  gap: 34px;
}

.page-home .rules-doc__aside h2 {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 5.4vw, 34px);
  line-height: 1.28;
  color: var(--ink);
}

.page-home .rules-doc__aside > p {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--grey);
}

.page-home .rules-doc__figure {
  margin: 26px 0 22px;
}

.page-home .rgroup {
  border-bottom: 1px solid var(--home-hair);
}

.page-home .rgroup:first-of-type {
  border-top: 1px solid var(--home-hair);
}

.page-home .rgroup__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
}

.page-home .rgroup__head::-webkit-details-marker {
  display: none;
}

.page-home .rgroup__no {
  font-family: var(--font-num);
  font-size: 14px;
  color: var(--gold);
}

.page-home .rgroup__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.page-home .rgroup__count {
  font-family: var(--font-num);
  font-size: 12.5px;
  color: var(--grey);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--paper-warm);
}

.page-home .rgroup__head::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 20px;
  line-height: 1;
  color: var(--red);
  transition: transform 0.25s var(--ease);
}

.page-home .rgroup[open] .rgroup__head::after {
  transform: rotate(45deg);
}

.page-home .rgroup__body {
  padding: 0 4px 22px 34px;
}

.page-home .rgroup__body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .rgroup__body li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--grey);
}

.page-home .rgroup__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grass);
}

/* ---------- 更新与疑问 ---------- */
.page-home .updates-qa {
  background: linear-gradient(180deg, var(--paper-warm), var(--paper));
}

.page-home .updates-qa__grid {
  gap: 34px;
}

.page-home .updates-qa__col h2 {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.3;
  color: var(--ink);
}

.page-home .upd {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-home .upd li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--home-hair);
}

.page-home .upd li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .upd p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--grey);
}

.page-home .qa {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-home .qa a {
  display: block;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--home-hair);
  background: var(--paper-raise);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .qa a:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.page-home .link-more {
  display: inline-block;
  margin-top: 22px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red-dark);
  padding-bottom: 2px;
}

.page-home .link-more:hover {
  color: var(--red-dark);
}

@media (min-width: 900px) {
  .page-home .qa {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
</｜｜DSML｜｜ parameter>
</｜｜DSML｜｜ invoke>
</｜｜DSML｜｜ calls>

.page-home {
  --h: 1rem;
  --w: 1rem;
}
