.page-home {
  --home-rail-w: 208px;
  --home-sec-pad: 56px;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ---------- HERO ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: calc(var(--header-h) + 44px) 0 52px;
  background: var(--ink);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  pointer-events: none;
}

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.42) 0%, rgba(10, 12, 15, 0.88) 58%, var(--ink) 100%);
  pointer-events: none;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 72% 8%, #000 0%, transparent 76%);
  mask-image: radial-gradient(120% 90% at 72% 8%, #000 0%, transparent 76%);
  pointer-events: none;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 28px;
}

/* 章节索引轨道 */
.page-home .home-hero__rail-title {
  margin: 0 0 10px;
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  color: var(--fog-dim);
}

.page-home .home-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.page-home .home-rail::-webkit-scrollbar {
  display: none;
}

.page-home .home-rail__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  color: var(--fog);
  text-decoration: none;
  font-size: var(--fs-14);
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.page-home .home-rail__link:hover,
.page-home .home-rail__link:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan-soft);
}

.page-home .home-rail__num {
  font-size: var(--fs-12);
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* 首屏主区 */
.page-home .home-hero__title {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 6.4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--silver);
  max-width: 20ch;
}

.page-home .home-hero__lede {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--fog);
}

.page-home .home-hero__status {
  margin: 18px 0 0;
  font-size: var(--fs-14);
  color: var(--fog);
}

.page-home .home-hero__status .status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: rgba(18, 22, 28, 0.7);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--green);
}

.page-home .home-hero__status .status-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(75, 208, 139, 0.16);
}

/* 四大类面板 */
.page-home .home-cats {
  margin-top: 26px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .home-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 18px 22px;
  background: rgba(18, 22, 28, 0.86);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.page-home .home-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(53, 218, 209, 0.06), transparent 62%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.page-home .home-cat:hover::after,
.page-home .home-cat:focus-visible::after {
  opacity: 1;
}

.page-home .home-cat__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.page-home .home-cat:hover .home-cat__bar,
.page-home .home-cat:focus-visible .home-cat__bar {
  transform: scaleY(1);
  background: var(--cyan);
}

.page-home .home-cat__idx {
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .home-cat__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-20);
  color: var(--silver);
}

.page-home .home-cat__desc {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--fog);
}

.page-home .home-cat__meta {
  margin-top: 4px;
  font-size: var(--fs-12);
  color: var(--fog-dim);
}

/* ---------- 章节骨架 ---------- */
.page-home .home-sec {
  position: relative;
  padding: var(--home-sec-pad) 0;
}

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

.page-home .home-sec__head {
  display: grid;
  gap: 6px;
  margin-bottom: 26px;
}

.page-home .home-sec__num {
  display: block;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(34px, 8vw, 56px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--gold);
  opacity: 0.92;
}

.page-home .home-sec__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(21px, 4vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--silver);
}

.page-home .home-sec__lede {
  margin: 8px 0 0;
  max-width: 66ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--fog);
}

.page-home .mono {
  font-family: var(--font-mono);
}

/* ---------- 01 分类面板 ---------- */
.page-home .home-panel-split {
  display: grid;
  gap: 28px;
}

.page-home .tabs__list {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}

.page-home .tabs__list::-webkit-scrollbar {
  display: none;
}

.page-home .tabs__btn {
  flex: 0 0 auto;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--fog);
  font-family: var(--font-head);
  font-size: var(--fs-14);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.page-home .tabs__btn:hover {
  color: var(--silver);
}

.page-home .tabs__btn[aria-selected="true"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

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

.page-home .home-entry__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  background: var(--panel);
  font-size: var(--fs-14);
  color: var(--silver);
  transition: background-color 0.18s ease;
}

.page-home .home-entry__item:hover {
  background: var(--graphite);
}

.page-home .home-entry__idx {
  font-size: var(--fs-12);
  color: var(--fog-dim);
}

.page-home .home-panel-split__note {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--fog);
}

.page-home .home-panel-split__fig .figure__caption {
  margin-top: 10px;
  font-size: var(--fs-12);
  line-height: 1.7;
  color: var(--fog-dim);
}

/* ---------- 02 额度与记录 ---------- */
.page-home .home-quota {
  display: grid;
  gap: 28px;
}

.page-home .home-quota__fig .figure__caption {
  margin-top: 10px;
  font-size: var(--fs-12);
  line-height: 1.7;
  color: var(--fog-dim);
}

.page-home .home-quota__col {
  display: grid;
  gap: 18px;
}

.page-home .home-quota__card {
  padding: 22px 20px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease;
}

.page-home .home-quota__card--cyan {
  border-left-color: var(--cyan);
}

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

.page-home .home-quota__card--cyan:hover {
  border-left-color: var(--cyan);
}

.page-home .home-quota__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-20);
  color: var(--silver);
}

.page-home .home-quota__text {
  margin: 10px 0 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--fog);
}

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

.page-home .home-quota__list li {
  display: flex;
  gap: 10px;
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--fog);
}

.page-home .home-quota__list .mono {
  flex: 0 0 auto;
  min-width: 52px;
  font-size: var(--fs-12);
  color: var(--gold);
  padding-top: 3px;
}

.page-home .home-quota__more {
  margin: 18px 0 0;
}

.page-home .home-quota__link {
  display: inline-block;
  color: var(--cyan);
  font-size: var(--fs-14);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-soft);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.page-home .home-quota__link:hover {
  color: var(--silver);
  border-bottom-color: var(--silver);
}

/* ---------- 03 换设备 ---------- */
.page-home .home-device {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .home-device__cell {
  padding: 24px 20px 26px;
  background: var(--panel);
  transition: background-color 0.2s ease;
}

.page-home .home-device__cell:hover {
  background: var(--graphite);
}

.page-home .home-device__idx {
  display: block;
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .home-device__title {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-20);
  color: var(--silver);
}

.page-home .home-device__text {
  margin: 10px 0 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--fog);
}

/* ---------- 04 电脑端 ---------- */
.page-home .home-desktop {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 28px 22px 30px;
  background:
    linear-gradient(140deg, rgba(28, 34, 41, 0.96) 0%, rgba(18, 22, 28, 0.98) 70%);
  border: 1px solid var(--line);
  overflow: hidden;
}

.page-home .home-desktop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.page-home .home-desktop::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 218, 209, 0.16), transparent 68%);
  pointer-events: none;
}

.page-home .home-desktop__main,
.page-home .home-desktop__aside {
  position: relative;
  z-index: 1;
}

.page-home .home-desktop__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-20);
  color: var(--silver);
}

.page-home .home-desktop__text {
  margin: 12px 0 0;
  max-width: 60ch;
  font-size: var(--fs-14);
  line-height: 1.78;
  color: var(--fog);
}

.page-home .home-desktop__specs {
  margin-top: 20px;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.page-home .home-desktop__spec {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  padding: 11px 14px;
  background: rgba(10, 12, 15, 0.55);
}

.page-home .home-desktop__spec-k {
  flex: 0 0 auto;
  min-width: 44px;
  font-size: var(--fs-12);
  color: var(--gold);
  letter-spacing: 0.08em;
}

.page-home .home-desktop__spec-v {
  font-size: var(--fs-14);
  color: var(--silver);
}

.page-home .home-desktop__aside-text {
  margin: 0 0 18px;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--fog);
}

.page-home .home-desktop__btn {
  display: inline-block;
  text-decoration: none;
}

/* ---------- 05 帮助中心 ---------- */
.page-home .home-help {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 30px 20px 32px;
}

.page-home .home-help__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}

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

.page-home .home-help .home-sec__head {
  margin-bottom: 20px;
}

.page-home .home-help__log {
  border: 1px solid var(--line);
  background: rgba(10, 12, 15, 0.6);
}

.page-home .home-help__log .log__row {
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-help__log .log__row:last-child {
  border-bottom: 0;
}

.page-home .home-help__actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.page-home .home-help__actions .btn {
  text-decoration: none;
  display: inline-block;
}

.page-home .home-help__textlink {
  color: var(--cyan);
  font-size: var(--fs-14);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-soft);
  padding-bottom: 2px;
}

.page-home .home-help__textlink:hover {
  color: var(--silver);
  border-bottom-color: var(--silver);
}

/* ---------- 06 三步接入 ---------- */
.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  counter-reset: none;
}

.page-home .home-step {
  position: relative;
  padding: 24px 20px 26px;
  background: var(--panel);
  transition: background-color 0.2s ease;
}

.page-home .home-step:hover {
  background: var(--graphite);
}

.page-home .home-step__num {
  display: block;
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .home-step__title {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-20);
  color: var(--silver);
}

.page-home .home-step__text {
  margin: 10px 0 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--fog);
}

.page-home .home-contact {
  margin-top: 26px;
  border: 1px solid var(--line);
  background: rgba(18, 22, 28, 0.7);
}

.page-home .home-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-contact__row:last-child {
  border-bottom: 0;
}

.page-home .home-contact__label {
  flex: 0 0 auto;
  min-width: 62px;
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--fog-dim);
}

.page-home .home-contact__value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-14);
  color: var(--silver);
  word-break: break-all;
}

.page-home .home-service__foot {
  margin: 22px 0 0;
  max-width: 70ch;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--fog);
}

.page-home .home-service__foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-soft);
  padding-bottom: 1px;
}

.page-home .home-service__foot a:hover {
  color: var(--silver);
  border-bottom-color: var(--silver);
}

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

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

  .page-home .home-quota__list li {
    gap: 14px;
  }
}

@media (min-width: 760px) {
  .page-home .home-sec {
    padding: 68px 0;
  }

  .page-home .home-help {
    padding: 38px 32px 40px;
  }

  .page-home .home-desktop {
    padding: 34px 30px 36px;
  }

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

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

  .page-home .home-sec__head {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  .page-home .home-sec__num {
    padding-top: 2px;
  }
}

@media (min-width: 900px) {
  .page-home .home-panel-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 40px;
    align-items: start;
  }

  .page-home .home-quota {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: start;
  }

  .page-home .home-desktop {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 40px;
    align-items: center;
    padding: 40px 40px 42px;
  }

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

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

  .page-home .home-hero__grid {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .page-home .home-hero__rail {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }

  .page-home .home-rail {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    border-left: 1px solid var(--line);
    padding-bottom: 0;
  }

  .page-home .home-rail__link {
    border: 0;
    border-left: 2px solid transparent;
    margin-left: -1px;
    padding: 10px 12px 10px 14px;
    color: var(--fog);
  }

  .page-home .home-rail__link:hover,
  .page-home .home-rail__link:focus-visible {
    border-color: transparent;
    border-left-color: var(--cyan);
    color: var(--cyan);
    background: rgba(53, 218, 209, 0.05);
  }

  .page-home .home-rail__link[aria-current="true"],
  .page-home .home-rail__link.is-active {
    border-left-color: var(--gold);
    color: var(--gold);
    background: linear-gradient(90deg, rgba(232, 178, 58, 0.1), transparent);
  }
}

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

  .page-home .home-cat {
    padding: 22px 20px 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-cat,
  .page-home .home-cat__bar,
  .page-home .home-cat::after,
  .page-home .home-rail__link,
  .page-home .tabs__btn,
  .page-home .home-entry__item,
  .page-home .home-device__cell,
  .page-home .home-step,
  .page-home .home-quota__card {
    transition: none;
  }
}
