.page-home {
  --home-rule: 1px solid rgba(185, 194, 207, .16);
  --home-rule-cyan: 1px solid rgba(51, 225, 218, .3);
  --home-rule-dark: 1px solid rgba(16, 24, 42, .16);
  position: relative;
  background: var(--ink-900);
  color: var(--text-light);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + 44px) 0 62px;
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(115% 90% at 88% -5%, rgba(51, 225, 218, .22), transparent 56%),
    radial-gradient(90% 80% at 0% 105%, rgba(226, 61, 142, .18), transparent 62%),
    linear-gradient(180deg, #071026 0%, var(--ink-900) 74%);
  clip-path: polygon(0 0, 100% 0, 100% 89%, 0 100%);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(185, 194, 207, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 194, 207, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 84%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 84%);
  pointer-events: none;
}

.page-home .hero__inner {
  display: grid;
  gap: 40px;
}

.page-home .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--cyan-400);
}

.page-home .hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.page-home .hero__title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.6vw, 3.15rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--paper-100);
}

.page-home .hero__lead {
  margin: 18px 0 0;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--grey-300);
}

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

.page-home .hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: var(--home-rule);
}

.page-home .hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.page-home .hero__fact-num {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1;
  color: var(--cyan-400);
}

.page-home .hero__fact-label {
  font-size: .78rem;
  line-height: 1.5;
  color: var(--grey-300);
}

.page-home .hero__visual {
  padding: 0 6px;
}

.page-home .hero__version {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}

.page-home .hero__version span {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  line-height: 1;
  letter-spacing: .04em;
  color: var(--cyan-400);
  text-shadow: 0 0 34px rgba(51, 225, 218, .35);
}

.page-home .hero__version em {
  font-style: normal;
  font-family: var(--font-ui);
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--grey-300);
  border: 1px solid rgba(51, 225, 218, .34);
  padding: 4px 8px;
}

.page-home .hero__shot {
  margin: 0;
  overflow: hidden;
  border: var(--home-rule-cyan);
  background: var(--ink-800);
  transform: rotate(-2deg);
  box-shadow: 0 26px 58px rgba(0, 0, 0, .5);
}

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

/* ---------- 通用章节 ---------- */
.page-home .section {
  position: relative;
  padding: 62px 0;
}

.page-home .section__head {
  max-width: 74ch;
}

.page-home .section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .73rem;
  letter-spacing: .18em;
  color: var(--cyan-400);
}

.page-home .section__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.page-home .section__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.26;
  font-weight: 700;
  color: var(--text-light);
}

.page-home .section__lead {
  margin: 16px 0 0;
  max-width: 64ch;
  font-size: .96rem;
  line-height: 1.82;
  color: var(--grey-300);
}

/* ---------- 账户设置 ---------- */
.page-home .section--settings {
  border-top: var(--home-rule);
}

.page-home .settings__body {
  display: grid;
  gap: 24px;
  margin-top: 38px;
}

.page-home .settings__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(185, 194, 207, .16);
  border: var(--home-rule);
}

.page-home .settings__item {
  display: flex;
  gap: 14px;
  padding: 20px 18px 22px;
  background: var(--ink-900);
}

.page-home .settings__num {
  flex: none;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--cyan-400);
}

.page-home .settings__item h3 {
  margin: 0 0 6px;
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-light);
}

.page-home .settings__item p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.72;
  color: var(--grey-300);
}

.page-home .settings__aside {
  padding: 26px 22px 24px;
  border: var(--home-rule-cyan);
  background:
    linear-gradient(160deg, rgba(51, 225, 218, .1), transparent 62%),
    var(--ink-800);
}

.page-home .settings__aside-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--amber-400);
}

.page-home .settings__path {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: setstep;
}

.page-home .settings__path li {
  position: relative;
  padding: 0 0 14px 30px;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--grey-300);
  counter-increment: setstep;
}

.page-home .settings__path li::before {
  content: counter(setstep);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--ink-900);
  background: var(--cyan-400);
}

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

/* ---------- 额度面板 ---------- */
.page-home .limits__layout {
  display: grid;
  gap: 28px;
  margin-top: 38px;
}

.page-home .limits__figure {
  margin: 0;
  border: var(--home-rule);
  background: var(--ink-800);
}

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

.page-home .limits__bar {
  display: flex;
  gap: 4px;
  height: 12px;
  margin-bottom: 26px;
}

.page-home .limits__seg {
  height: 100%;
  display: block;
}

.page-home .limits__seg--1 { flex: 5; background: var(--cyan-400); }
.page-home .limits__seg--2 { flex: 3; background: var(--moss-soft); }
.page-home .limits__seg--3 { flex: 2; background: var(--grey-300); }
.page-home .limits__seg--4 { flex: 2; background: var(--amber-400); }
.page-home .limits__seg--5 { flex: 4; background: var(--magenta-500); }

.page-home .limits__list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.page-home .limits__row {
  position: relative;
  padding-left: 20px;
}

.page-home .limits__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--cyan-400);
}

.page-home .limits__row--2::before { background: var(--moss-soft); }
.page-home .limits__row--3::before { background: var(--grey-300); }
.page-home .limits__row--4::before { background: var(--amber-400); }
.page-home .limits__row--5::before { background: var(--magenta-500); }

.page-home .limits__row dt {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-light);
}

.page-home .limits__row dd {
  margin: 5px 0 0;
  font-size: .86rem;
  line-height: 1.72;
  color: var(--grey-300);
}

/* ---------- 六步指引 ---------- */
.page-home .section--start {
  border-top: var(--home-rule);
}

.page-home .start__layout {
  display: grid;
  gap: 32px;
}

.page-home .steps {
  margin: 28px 0 26px;
  padding: 0;
  list-style: none;
  border-top: var(--home-rule);
}

.page-home .steps__item {
  border-bottom: var(--home-rule);
}

.page-home .steps__summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 2px;
  cursor: pointer;
  list-style: none;
  font-size: .96rem;
  font-weight: 600;
  color: var(--text-light);
}

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

.page-home .steps__summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--grey-300);
}

.page-home .steps__panel[open] .steps__summary::after {
  content: "−";
  color: var(--cyan-400);
}

.page-home .steps__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--cyan-400);
}

.page-home .steps__body {
  margin: 0 0 16px;
  padding: 0 2px 0 32px;
  font-size: .87rem;
  line-height: 1.75;
  color: var(--grey-300);
}

.page-home .start__figure {
  margin: 0;
  justify-self: center;
  max-width: 360px;
  border: var(--home-rule-cyan);
  background: var(--ink-800);
  overflow: hidden;
}

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

/* ---------- 规则与更新 ---------- */
.page-home .section--rules {
  background: var(--paper-100);
  color: var(--text-dark);
}

.page-home .section--rules .section__eyebrow {
  color: var(--clay-500);
}

.page-home .section--rules .section__title {
  color: var(--text-dark);
}

.page-home .section--rules .section__lead {
  color: rgba(16, 24, 42, .74);
}

.page-home .rules__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.page-home .rules__card {
  padding: 22px 20px 24px;
  border: var(--home-rule-dark);
  background: rgba(255, 255, 255, .52);
  transition: border-color .25s ease, transform .25s ease;
}

.page-home .rules__card:hover {
  border-color: var(--moss-500);
  transform: translateY(-2px);
}

.page-home .rules__no {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--clay-500);
}

.page-home .rules__card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.page-home .rules__card p:last-child {
  margin: 0;
  font-size: .86rem;
  line-height: 1.74;
  color: rgba(16, 24, 42, .72);
}

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

.page-home .section--rules .btn--ghost {
  color: var(--text-dark);
  border-color: rgba(16, 24, 42, .3);
}

.page-home .section--rules .btn--ghost:hover {
  border-color: var(--moss-500);
  color: var(--moss-500);
}

/* ---------- 换机重登 ---------- */
.page-home .relogin__flow {
  display: grid;
  gap: 16px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .relogin__card {
  position: relative;
  padding: 26px 22px 24px;
  border: var(--home-rule);
  border-top: 2px solid var(--cyan-400);
  background: var(--ink-800);
  transition: border-color .25s ease;
}

.page-home .relogin__card:hover {
  border-color: rgba(51, 225, 218, .4);
}

.page-home .relogin__step {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.9rem;
  line-height: 1;
  color: rgba(51, 225, 218, .32);
  margin-bottom: 14px;
}

.page-home .relogin__card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
}

.page-home .relogin__card p {
  margin: 0;
  font-size: .87rem;
  line-height: 1.75;
  color: var(--grey-300);
}

/* ---------- 支持与联系 ---------- */
.page-home .section--support {
  isolation: isolate;
  overflow: hidden;
  border-top: var(--home-rule);
}

.page-home .support__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.page-home .support__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink-900) 0%, rgba(6, 11, 26, .76) 55%, var(--ink-900) 100%);
}

.page-home .support__inner {
  display: grid;
  gap: 30px;
}

.page-home .support__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: var(--home-rule);
}

.page-home .support__links a {
  font-size: .9rem;
  color: var(--cyan-200);
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 244, 239, .45);
  padding-bottom: 2px;
}

.page-home .support__links a:hover,
.page-home .support__links a:focus-visible {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
}

.page-home .support__card {
  padding: 26px 22px;
  border: var(--home-rule-cyan);
  background: rgba(12, 22, 48, .88);
}

.page-home .support__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--amber-400);
}

.page-home .support__hours {
  margin: 8px 0 20px;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--cyan-400);
}

.page-home .support__meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

.page-home .support__meta > div {
  display: grid;
  grid-template-columns: 4.6em minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.page-home .support__meta dt {
  font-size: .82rem;
  color: var(--grey-300);
}

.page-home .support__meta dd {
  margin: 0;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-light);
  word-break: break-word;
}

.page-home .support__note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: var(--home-rule);
  font-size: .8rem;
  line-height: 1.7;
  color: var(--grey-300);
}

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

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

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

@media (min-width: 900px) {
  .page-home .hero {
    padding: calc(var(--header-h) + 72px) 0 96px;
  }

  .page-home .hero__shot {
    transform: rotate(-4deg);
  }

  .page-home .section {
    padding: 92px 0;
  }

  .page-home .limits__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 44px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 60px;
  }

  .page-home .section {
    padding: 108px 0;
  }

  .page-home .settings__body {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 32px;
    align-items: start;
  }

  .page-home .start__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: 52px;
  }

  .page-home .start__figure {
    margin-top: 8px;
  }

  .page-home .relogin__flow {
    gap: 24px;
  }

  .page-home .support__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: start;
  }
}

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

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

  .page-home .rules__card:nth-child(2),
  .page-home .rules__card:nth-child(4) {
    margin-top: 22px;
  }

  .page-home .rules__links {
    margin-top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__shot {
    transform: none;
  }

  .page-home .rules__card,
  .page-home .relogin__card {
    transition: none;
  }
}
