/* ================= 首页 page-home ================= */
.page-home {
  --ph-gap: clamp(20px, 3vw, 40px);
  --ph-pad: clamp(22px, 3vw, 40px);
  --ph-ink-line: 1px solid var(--ink-700);
}

.page-home .section {
  padding-block: clamp(54px, 8vw, 100px);
}

/* ---------- 通用章节头 ---------- */
.page-home .section__num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--gold-500);
}

.page-home .section__num::after {
  content: "";
  flex: 1 1 auto;
  max-width: 190px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-400), transparent);
  opacity: .7;
}

.page-home .section__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--paper-100);
}

.page-home .section__lead {
  margin: 0 0 clamp(24px, 3vw, 44px);
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(242, 234, 218, .74);
}

/* ---------- 滚动显现 ---------- */
.page-home .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}

.page-home .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.page-home .reveal [data-reveal-child] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}

.page-home .reveal.is-visible [data-reveal-child] {
  opacity: 1;
  transform: none;
}

.page-home .reveal.is-visible [data-reveal-child]:nth-child(1) { transition-delay: 0ms; }
.page-home .reveal.is-visible [data-reveal-child]:nth-child(2) { transition-delay: 70ms; }
.page-home .reveal.is-visible [data-reveal-child]:nth-child(3) { transition-delay: 140ms; }
.page-home .reveal.is-visible [data-reveal-child]:nth-child(4) { transition-delay: 210ms; }
.page-home .reveal.is-visible [data-reveal-child]:nth-child(5) { transition-delay: 280ms; }
.page-home .reveal.is-visible [data-reveal-child]:nth-child(6) { transition-delay: 350ms; }
.page-home .reveal.is-visible [data-reveal-child]:nth-child(n+7) { transition-delay: 400ms; }

/* ================= 首屏 ================= */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 13vw, 132px) clamp(48px, 7vw, 96px);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.page-home .hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 8, 10, .74) 0%, rgba(7, 8, 10, .92) 58%, var(--ink-950) 100%),
    radial-gradient(85% 70% at 10% 14%, rgba(7, 8, 10, .86), rgba(7, 8, 10, .18) 72%);
}

.page-home .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(34px, 6vw, 52px);
  align-items: end;
}

.page-home .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--gold-500);
}

.page-home .hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold-500);
  flex: none;
}

.page-home .hero__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 8.4vw, 92px);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--paper-100);
  text-wrap: balance;
}

.page-home .hero__title span {
  display: block;
  color: var(--gold-300);
  background-image: linear-gradient(96deg, var(--gold-300), var(--gold-500) 58%, var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-home .hero__lead {
  margin: 0 0 32px;
  max-width: 48ch;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.8;
  color: rgba(242, 234, 218, .78);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 首屏右侧悬浮预览卡 */
.page-home .hero__preview {
  display: grid;
  gap: 16px;
  padding: var(--ph-pad);
  background: rgba(16, 18, 22, .76);
  border-color: rgba(201, 162, 83, .42);
  backdrop-filter: blur(8px);
}

.page-home .hero__preview .card__label {
  color: var(--gold-300);
}

.page-home .hero__preview-shot {
  overflow: hidden;
  border: var(--ph-ink-line);
  background: var(--ink-950);
}

.page-home .hero__preview-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .hero__preview-list {
  display: grid;
  gap: 10px;
  margin: 0;
  font-size: 13px;
}

.page-home .hero__preview-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--ink-700);
}

.page-home .hero__preview-list dt {
  color: var(--gray-400);
  flex: none;
}

.page-home .hero__preview-list dd {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: .02em;
  color: var(--gold-300);
  text-align: right;
}

.page-home .hero__preview-link {
  justify-self: start;
  color: var(--cyan-400);
  font-size: 13px;
  letter-spacing: .06em;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(52, 226, 216, .45);
  transition: color .25s ease, border-color .25s ease;
}

.page-home .hero__preview-link:hover,
.page-home .hero__preview-link:focus-visible {
  color: var(--gold-300);
  border-color: var(--gold-300);
}

/* ================= 01 四类内容 ================= */
.page-home .cats__band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--ink-700);
  border: var(--ph-ink-line);
}

.page-home .cats__item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: var(--ph-pad);
  background: var(--ink-850);
  transition: background .3s ease;
}

.page-home .cats__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold-500);
  opacity: .55;
}

.page-home .cats__item:hover {
  background: #15181e;
}

.page-home .cats__count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--gold-300);
}

.page-home .cats__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.01em;
  color: var(--paper-100);
}

.page-home .cats__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(242, 234, 218, .68);
  max-width: 40ch;
}

.page-home .cats__link {
  justify-self: start;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--cyan-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(52, 226, 216, .4);
  padding-bottom: 2px;
}

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

/* ================= 02 常查记录 ================= */
.page-home .records__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ph-gap);
}

.page-home .records__paper {
  padding: clamp(24px, 3.4vw, 48px);
}

.page-home .records__paper-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  color: var(--ink-950);
}

.page-home .records__paper p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.85;
  color: #23262c;
  max-width: 46ch;
}

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

.page-home .records__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: #23262c;
}

.page-home .records__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--gold-500);
  transform: rotate(45deg);
}

.page-home .records__list strong {
  color: var(--ink-950);
  font-weight: 700;
}

.page-home .records__more {
  margin: 0;
  font-size: 14px;
}

.page-home .records__more a {
  color: var(--jade-700);
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 84, 76, .5);
  padding-bottom: 2px;
}

.page-home .records__figure {
  margin: 0;
  border: var(--ph-ink-line);
  overflow: hidden;
  background: var(--ink-850);
}

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

/* ================= 03 九档区间 ================= */
.page-home .tiers__ruler {
  padding: clamp(26px, 3.2vw, 44px) clamp(16px, 2.4vw, 38px);
  border: var(--ph-ink-line);
  background:
    linear-gradient(180deg, rgba(16, 18, 22, .92), rgba(7, 8, 10, .92));
}

.page-home .tiers__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .tiers__step {
  position: relative;
  display: grid;
  gap: 6px;
  padding-top: 24px;
  min-width: 0;
}

.page-home .tiers__step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border: 2px solid var(--gold-500);
  border-radius: 50%;
  background: var(--ink-950);
}

.page-home .tiers__amt {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: .02em;
  color: var(--gold-300);
  white-space: nowrap;
}

.page-home .tiers__tick {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--gray-400);
}

.page-home .tiers__notes {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  max-width: 68ch;
}

.page-home .tiers__notes p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(242, 234, 218, .72);
}

.page-home .tiers__notes .btn {
  justify-self: start;
}

/* ================= 04 大屏挑桌台 ================= */
.page-home .screens__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.page-home .screen-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: var(--ph-ink-line);
  background: var(--ink-850);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.page-home .screen-card:hover,
.page-home .screen-card:focus-within {
  border-color: var(--cyan-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.page-home .screen-card__no {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--gold-300);
}

.page-home .screen-card__cat {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gray-400);
}

.page-home .screen-card__heat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-400);
}

.page-home .screen-card__note {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(242, 234, 218, .7);
}

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

/* ================= 05 每周转盘 ================= */
.page-home .weekly__band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  padding: clamp(22px, 3vw, 42px);
  border: var(--ph-ink-line);
  background:
    linear-gradient(105deg, rgba(255, 63, 128, .1), transparent 48%),
    var(--ink-850);
}

.page-home .weekly__figure {
  margin: 0;
  border: 1px solid rgba(201, 162, 83, .35);
  overflow: hidden;
}

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

.page-home .weekly__body {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
}

.page-home .weekly__body .section__title {
  margin: 0;
}

.page-home .weekly__text {
  margin: 0;
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(242, 234, 218, .74);
}

.page-home .weekly__slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 4px 0 6px;
  padding: 0;
  list-style: none;
}

.page-home .weekly__slots li {
  padding: 9px 0;
  border: var(--ph-ink-line);
  background: rgba(7, 8, 10, .6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--gold-300);
  text-align: center;
}

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

/* ================= 06 客服 ================= */
.page-home .helpdesk__band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  border: var(--ph-ink-line);
  background: var(--ink-700);
}

.page-home .helpdesk__col {
  padding: clamp(24px, 3vw, 44px);
  background: var(--ink-850);
}

.page-home .helpdesk__col .section__title {
  margin-bottom: 14px;
}

.page-home .helpdesk__text {
  margin: 0 0 26px;
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(242, 234, 218, .74);
}

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

.page-home .helpdesk__col--paper {
  background: var(--paper-100);
  color: var(--ink-950);
}

.page-home .helpdesk__paper-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink-950);
}

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

.page-home .helpdesk__contact li {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--paper-300);
}

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

.page-home .helpdesk__k {
  font-size: 12px;
  letter-spacing: .08em;
  color: #6f6656;
}

.page-home .helpdesk__v {
  font-family: var(--font-mono);
  font-size: 15.5px;
  letter-spacing: .02em;
  color: var(--ink-950);
  word-break: break-word;
}

.page-home .helpdesk__v a {
  color: var(--jade-700);
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 84, 76, .45);
  padding-bottom: 2px;
  word-break: break-all;
}

.page-home .helpdesk__v a:hover,
.page-home .helpdesk__v a:focus-visible {
  color: var(--ink-950);
  border-color: var(--ink-950);
}

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

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

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 4vw, 68px);
  }

  .page-home .records__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: stretch;
  }

  .page-home .records__figure {
    display: flex;
  }

  .page-home .records__figure img {
    height: 100%;
    aspect-ratio: auto;
  }

  .page-home .weekly__band {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: center;
  }

  .page-home .weekly__figure {
    align-self: stretch;
  }

  .page-home .weekly__figure img {
    height: 100%;
    aspect-ratio: auto;
  }
}

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

@media (min-width: 860px) {
  .page-home .tiers__list {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 14px;
  }

  .page-home .tiers__list::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 2%;
    right: 2%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-500), var(--cyan-400));
    opacity: .5;
  }
}

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

  .page-home .cats__item:nth-child(1) { grid-column: span 7; }
  .page-home .cats__item:nth-child(2) { grid-column: span 5; }
  .page-home .cats__item:nth-child(3) { grid-column: span 5; }
  .page-home .cats__item:nth-child(4) { grid-column: span 7; }

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

@media (min-width: 1240px) {
  .page-home .hero__preview {
    margin-right: -40px;
  }
}

/* 悬停展开桌台摘要：仅在真正支持悬停的设备上收起 */
@media (hover: hover) and (pointer: fine) {
  .page-home .screen-card__note {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .32s ease, opacity .32s ease;
  }

  .page-home .screen-card:hover .screen-card__note,
  .page-home .screen-card:focus-within .screen-card__note {
    max-height: 84px;
    opacity: 1;
  }
}

/* 动效退化 */
@media (prefers-reduced-motion: reduce) {
  .page-home .reveal,
  .page-home .reveal [data-reveal-child] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-home .screen-card,
  .page-home .cats__item {
    transition: none;
  }

  .page-home .screen-card:hover,
  .page-home .screen-card:focus-within {
    transform: none;
  }
}
