/* ===== 首页 页面专属样式 · 作用域 .page-home ===== */

.page-home {
  --home-cut: 22px;
  --home-hair: rgba(138, 90, 43, .34);
  display: block;
}

/* ---------- 通用文本 ---------- */
.page-home .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-head);
  letter-spacing: -.01em;
}

.page-home .home-more {
  margin: 30px 0 0;
}

.page-home .home-more .btn {
  text-decoration: none;
}

/* =====================================================
   首屏
   ===================================================== */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  padding: clamp(20px, 3vw, 34px) 0 clamp(38px, 5vw, 72px);
  background:
    radial-gradient(120% 88% at 88% -6%, rgba(31, 216, 192, .17) 0%, rgba(31, 216, 192, 0) 58%),
    radial-gradient(80% 60% at 4% 100%, rgba(59, 46, 110, .34) 0%, rgba(59, 46, 110, 0) 62%),
    linear-gradient(158deg, #0B241E 0%, #0D2A23 40%, #17483B 100%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(246, 241, 227, .035) 0 1px, transparent 1px 4px);
}

.page-home .home-hero > .wrap {
  position: relative;
  z-index: 1;
}

.page-home .home-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(246, 241, 227, .55);
  margin-bottom: clamp(20px, 3vw, 34px);
}

.page-home .home-crumb .breadcrumb-sep {
  color: var(--wood-light);
}

.page-home .home-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 46px);
  align-items: end;
}

.page-home .home-version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 7px 14px 7px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--paper-yellow);
  background: rgba(13, 42, 35, .62);
  border-left: 3px solid var(--neon);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.page-home .home-version-key {
  color: rgba(228, 211, 166, .68);
}

.page-home .home-version-v {
  color: var(--neon);
  font-weight: 600;
}

.page-home .home-version-sep {
  color: rgba(228, 211, 166, .42);
}

.page-home .home-hero h1 {
  margin: 0 0 20px;
  font-weight: 900;
  font-size: clamp(30px, 6.4vw, 54px);
  line-height: 1.14;
  color: var(--paper);
  max-width: 15ch;
}

.page-home .home-lede {
  margin: 0 0 26px;
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  line-height: 1.9;
  color: rgba(246, 241, 227, .82);
  max-width: 52ch;
}

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

.page-home .home-hero-actions .btn {
  text-decoration: none;
}

.page-home .home-hero-actions .btn--ghost {
  color: var(--paper);
  border-color: rgba(246, 241, 227, .38);
}

.page-home .home-hero-actions .btn--ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.page-home .home-hero-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

.page-home .home-hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(.94) contrast(1.04);
}

.page-home .home-hero-figure::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 4px;
  background: var(--neon);
  transform: rotate(-2deg);
  transform-origin: left bottom;
}

/* 入口目录 */
.page-home .home-entries-wrap {
  margin-top: clamp(34px, 4.8vw, 60px);
  padding-top: clamp(20px, 2.6vw, 30px);
  border-top: 1px solid rgba(228, 211, 166, .24);
}

.page-home .home-entries-label {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--wood-light);
}

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

.page-home .home-entry-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas:
    "num name"
    ". desc";
  gap: 3px 12px;
  padding: 14px 18px 14px 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(246, 241, 227, .055);
  border-left: 3px solid var(--wood);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.page-home .home-entry-link:hover,
.page-home .home-entry-link:focus-visible {
  background: rgba(31, 216, 192, .1);
  border-left-color: var(--neon);
  transform: translateX(4px);
}

.page-home .home-entry-num {
  grid-area: num;
  padding-top: 4px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--neon);
}

.page-home .home-entry-name {
  grid-area: name;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .home-entry-desc {
  grid-area: desc;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(246, 241, 227, .62);
}

/* =====================================================
   章节通用
   ===================================================== */
.page-home .home-chapter {
  position: relative;
  padding: clamp(46px, 6vw, 92px) 0;
}

.page-home .home-chapter--yellow {
  background-color: var(--paper-yellow);
  background-image: repeating-linear-gradient(0deg, rgba(20, 32, 28, .022) 0 1px, transparent 1px 4px);
  color: var(--ink-text);
}

.page-home .home-chapter--paper {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, rgba(20, 32, 28, .02) 0 1px, transparent 1px 4px);
  color: var(--ink-text);
}

.page-home .home-chapter--green {
  background-color: var(--ink-mid);
  background-image: linear-gradient(180deg, rgba(13, 42, 35, .5) 0%, rgba(13, 42, 35, 0) 42%);
  color: var(--paper);
}

.page-home .home-chapter--deep {
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(90% 70% at 92% 0%, rgba(31, 216, 192, .12) 0%, rgba(31, 216, 192, 0) 60%),
    repeating-linear-gradient(0deg, rgba(246, 241, 227, .028) 0 1px, transparent 1px 4px);
  color: var(--paper);
}

.page-home .home-ch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 18px;
  align-items: start;
  margin-bottom: clamp(24px, 3.2vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--home-hair);
}

.page-home .home-chapter--green .home-ch,
.page-home .home-chapter--deep .home-ch {
  border-bottom-color: rgba(228, 211, 166, .26);
}

.page-home .home-ch-num {
  grid-row: 1 / span 2;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--wood);
  padding-top: 5px;
}

.page-home .home-chapter--green .home-ch-num,
.page-home .home-chapter--deep .home-ch-num {
  color: var(--neon);
}

.page-home .home-ch-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(23px, 3.4vw, 38px);
  line-height: 1.22;
}

.page-home .home-ch-sub {
  grid-column: 2;
  margin: 0;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-chapter--green .home-ch-sub,
.page-home .home-chapter--deep .home-ch-sub {
  color: rgba(246, 241, 227, .66);
}

/* 通用图片条 */
.page-home .home-band-fig {
  margin: 0 0 clamp(26px, 3.4vw, 40px);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
}

.page-home .home-band-fig img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.page-home .home-band-fig--rules {
  margin: clamp(26px, 3.4vw, 40px) 0 0;
  max-width: 760px;
}

.page-home .home-band-fig--rules img {
  aspect-ratio: 4 / 3;
}

/* =====================================================
   01 更新记录
   ===================================================== */
.page-home .home-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-log-item {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  background: #FDFAF2;
  border-left: 4px solid var(--wood);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  transition: border-color .25s ease, background-color .25s ease;
}

.page-home .home-log-item:hover {
  border-left-color: var(--neon);
  background: #FFFDF7;
}

.page-home .home-log-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 12.5px;
}

.page-home .home-log-id {
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--wood);
}

.page-home .home-log-when {
  color: var(--muted);
}

.page-home .home-log-tag {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .06em;
  padding: 2px 9px;
  color: #2B1B06;
  background: var(--note);
}

.page-home .home-log-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
}

.page-home .home-log-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.82;
  color: #4A564F;
}

/* =====================================================
   02 房间
   ===================================================== */
.page-home .home-rooms {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.page-home .home-lane-title {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 19px;
  padding-left: 12px;
  border-left: 3px solid var(--wood);
}

.page-home .home-ranks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--home-hair);
  border: 1px solid var(--home-hair);
}

.page-home .home-rank {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: baseline;
  padding: 12px 15px;
  background: #FFFDF7;
}

.page-home .home-rank-id {
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--wood);
}

.page-home .home-rank-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.page-home .home-rank-body strong {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
}

.page-home .home-rank-body span {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-lane-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.85;
  color: #4A564F;
}

.page-home .home-mode-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  padding-top: 8px;
}

.page-home .home-mode-grid span {
  display: block;
  height: 48px;
  background: var(--paper);
  border-bottom: 3px solid var(--wood);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

.page-home .home-mode-grid span:nth-child(2n) {
  height: 34px;
  border-bottom-color: var(--wood-light);
}

.page-home .home-mode-grid span:nth-child(3n) {
  height: 60px;
  border-bottom-color: var(--note);
}

.page-home .home-mode-grid span:nth-child(4n) {
  height: 42px;
  background: rgba(246, 241, 227, .72);
}

.page-home .home-scene {
  margin-top: clamp(26px, 3.4vw, 40px);
  padding-top: clamp(20px, 2.6vw, 28px);
  border-top: 1px dashed var(--home-hair);
}

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

.page-home .home-scene-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.85;
  color: #4A564F;
}

.page-home .home-scene-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 3px;
  background: var(--wood-light);
  transform: rotate(-2deg);
}

.page-home .home-scene-list strong {
  color: var(--ink-text);
  font-weight: 600;
}

.page-home .home-scene-link {
  margin: 0;
}

.page-home .home-scene-link .btn {
  text-decoration: none;
}

/* =====================================================
   03 七天路径
   ===================================================== */
.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .home-step {
  position: relative;
  padding: 22px 22px 24px;
  background: rgba(13, 42, 35, .5);
  border-top: 3px solid var(--note);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.page-home .home-step:nth-child(2) {
  border-top-color: var(--neon);
}

.page-home .home-step:nth-child(3) {
  border-top-color: var(--wood-light);
}

.page-home .home-step-day {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--neon);
}

.page-home .home-step:nth-child(1) .home-step-day {
  color: var(--note);
}

.page-home .home-step:nth-child(3) .home-step-day {
  color: var(--wood-light);
}

.page-home .home-step-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: var(--paper);
}

.page-home .home-step-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(246, 241, 227, .74);
}

/* =====================================================
   04 残局练习
   ===================================================== */
.page-home .home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
}

.page-home .home-split-text {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.88;
  color: #4A564F;
}

.page-home .home-stack {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--home-hair);
  border: 1px solid var(--home-hair);
}

.page-home .home-stack li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 13px 15px;
  background: #FFFDF7;
  font-size: 14.5px;
  line-height: 1.75;
  color: #4A564F;
}

.page-home .home-stack .mono {
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--wood);
}

.page-home .home-split-note {
  margin: 0 0 4px;
  padding-left: 14px;
  border-left: 3px solid var(--note);
  font-size: 14.5px;
  line-height: 1.8;
  color: #4A564F;
}

.page-home .home-split-fig {
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .home-split-fig img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* =====================================================
   05 登录异常
   ===================================================== */
.page-home .home-fix {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .home-fix-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-areas:
    "idx title"
    "idx text";
  gap: 4px 14px;
  padding: 20px 22px;
  background: rgba(253, 250, 242, .74);
  border: 1px solid var(--home-hair);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-home .home-fix-idx {
  grid-area: idx;
  font-size: 18px;
  line-height: 1.4;
  color: var(--wood);
  text-align: center;
  border-right: 1px dashed var(--home-hair);
}

.page-home .home-fix-title {
  grid-area: title;
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}

.page-home .home-fix-text {
  grid-area: text;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: #4A564F;
}

.page-home .home-fix-note {
  margin: 24px 0 0;
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.85;
  color: #4A564F;
  background: rgba(126, 34, 51, .07);
  border-left: 3px solid var(--wine);
}

/* =====================================================
   06 禁手检索
   ===================================================== */
.page-home .home-search {
  padding: clamp(20px, 2.6vw, 28px);
  background: rgba(23, 72, 59, .62);
  border-left: 4px solid var(--neon);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.page-home .home-search-query {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(246, 241, 227, .64);
}

.page-home .home-search-query .kw-hit {
  color: var(--neon);
  border-bottom: 1px dashed var(--neon);
  padding-bottom: 1px;
}

.page-home .home-search-hit {
  padding-left: 14px;
  border-left: 3px solid var(--wood);
}

.page-home .home-search-meta {
  margin: 0 0 8px;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--note);
}

.page-home .home-search-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(246, 241, 227, .82);
}

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

.page-home .home-search-notes p {
  margin: 0;
  font-size: 15px;
  line-height: 1.88;
  color: rgba(246, 241, 227, .74);
}

/* =====================================================
   07 规模与客服
   ===================================================== */
.page-home .home-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(228, 211, 166, .2);
  border: 1px solid rgba(228, 211, 166, .2);
}

.page-home .home-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px 22px;
  background: var(--ink-mid);
}

.page-home .home-stat-num {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--paper);
}

.page-home .home-stat-num small {
  font-size: .48em;
  margin-left: 4px;
  color: var(--neon);
  letter-spacing: .02em;
}

.page-home .home-stat-label {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(246, 241, 227, .66);
}

.page-home .home-close {
  margin-top: clamp(28px, 3.6vw, 44px);
  padding-top: clamp(22px, 2.8vw, 30px);
  border-top: 1px solid rgba(228, 211, 166, .24);
}

.page-home .home-close-text {
  margin: 0;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(246, 241, 227, .78);
}

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

  .page-home .home-search-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

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

@media (min-width: 900px) {
  .page-home .home-hero-top {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

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

  .page-home .home-rooms {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 34px;
  }

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

  .page-home .home-log-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

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

  .page-home .home-fix-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "idx"
      "title"
      "text";
  }

  .page-home .home-fix-idx {
    text-align: left;
    border-right: 0;
    border-bottom: 1px dashed var(--home-hair);
    padding-bottom: 8px;
    margin-bottom: 6px;
    width: 42px;
  }

  .page-home .home-split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 44px;
  }
}

@media (min-width: 1180px) {
  .page-home .home-hero h1 {
    font-size: 54px;
  }
}

@media (max-width: 400px) {
  .page-home .home-version {
    font-size: 12px;
  }

  .page-home .home-entry-name {
    font-size: 17.5px;
  }

  .page-home .home-stack li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry-link,
  .page-home .home-log-item {
    transition: none;
  }

  .page-home .home-entry-link:hover,
  .page-home .home-entry-link:focus-visible {
    transform: none;
  }
}
<<<END>>>
