.page-home {
  --hm-edge: 2px solid var(--violet-700);
  --hm-hair: 1px solid var(--hairline);
  --hm-gap: 20px;
}

/* ---------- 面包屑 ---------- */
.page-home .home-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--mist-200);
}

.page-home .home-crumb a {
  color: var(--cyan-200);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--fast) ease-out, border-color var(--fast) ease-out;
}

.page-home .home-crumb a:hover {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: 28px 0 48px;
  overflow: hidden;
}

.page-home .hero__grid {
  display: grid;
  gap: 32px;
  align-items: end;
}

.page-home .hero__lead h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--white-050);
}

.page-home .hero__intro {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--mist-200);
  font-size: 1rem;
  line-height: 1.75;
}

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

.page-home .hero__facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--mist-200);
}

.page-home .hero__facts .mono {
  font-size: 1.05rem;
  color: var(--gold-400);
  letter-spacing: 0.08em;
}

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

.page-home .hero__visual {
  position: relative;
  padding: 0 0 16px 0;
}

.page-home .hero__visual::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 0;
  bottom: 38px;
  left: 34px;
  background: linear-gradient(148deg, var(--violet-700) 0%, var(--ink-900) 62%, var(--ink-950) 100%);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.page-home .hero__chip {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border: var(--hm-edge);
  background: var(--ink-950);
  color: var(--cyan-400);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.page-home .hero__media {
  position: relative;
  z-index: 1;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
  background: var(--ink-800);
  min-height: 260px;
}

.page-home .hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.page-home .hero__media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--cyan-400);
  z-index: 3;
}

/* ---------- 横向主题带 ---------- */
.page-home .band {
  position: relative;
  border-top: var(--hm-edge);
  border-bottom: var(--hm-edge);
  background: var(--ink-900);
  overflow: hidden;
}

.page-home .band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background: var(--ink-950);
}

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

.page-home .band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.page-home .band__label {
  margin: 0;
  flex: none;
  color: var(--cyan-400);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

.page-home .band__text {
  margin: 0;
  flex: 1 1 240px;
  color: var(--mist-200);
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-home .band__link {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--white-050);
  text-decoration: none;
  border-bottom: 2px solid var(--cyan-400);
  padding-bottom: 2px;
  transition: color var(--fast) ease-out;
}

.page-home .band__link:hover {
  color: var(--cyan-400);
}

/* ---------- 通用分区 ---------- */
.page-home .section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.page-home .home-note {
  margin: 0;
  max-width: 34em;
  color: var(--mist-200);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-home .eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}

/* ---------- 桌面端能力 ---------- */
.page-home .cap__grid {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.page-home .cap__figure {
  margin: 0;
  position: relative;
  border: var(--hm-edge);
  background: var(--ink-800);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.page-home .cap__figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

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

.page-home .cap__item {
  position: relative;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--violet-700);
  transition: border-color var(--fast) ease-out;
}

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

.page-home .cap__item h3 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white-050);
}

.page-home .cap__item p {
  margin: 0;
  color: var(--mist-200);
  font-size: 0.94rem;
  line-height: 1.72;
}

.page-home .cap__num {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold-400);
}

/* ---------- 编号预览 ---------- */
.page-home .db__grid {
  display: grid;
  gap: 26px;
  margin-top: 32px;
}

.page-home .db__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: var(--hm-edge);
  background: var(--ink-900);
  box-shadow: var(--shadow-1);
}

.page-home .db__list .index-item {
  border-bottom: var(--hm-hair);
  transition: background var(--base) ease-out;
}

.page-home .db__list .index-item:last-child {
  border-bottom: 0;
}

.page-home .db__list .index-item:hover {
  background: rgba(59, 48, 128, 0.24);
}

.page-home .db__list .index-item.is-key {
  background: linear-gradient(90deg, rgba(53, 224, 210, 0.14) 0%, rgba(53, 224, 210, 0.02) 68%, transparent 100%);
  box-shadow: inset 3px 0 0 var(--cyan-400);
}

.page-home .db__list .index-item.is-key .index-item__num {
  color: var(--gold-400);
}

.page-home .db__list .panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-home .db__list .panel__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

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

.page-home .db__list .index-item__num {
  flex: none;
  width: 40px;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--cyan-200);
}

.page-home .db__label {
  flex: 1 1 auto;
  color: var(--white-050);
  font-size: 0.96rem;
  line-height: 1.5;
}

.page-home .db__cat {
  flex: none;
  padding: 2px 9px;
  border: 1px solid var(--violet-700);
  color: var(--mist-200);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.page-home .db__list .panel__body {
  padding: 0 16px 16px 16px;
  animation: hm-fade var(--base) ease-out;
}

.page-home .db__list .panel__body p {
  margin: 0;
  max-width: 60ch;
  color: var(--mist-200);
  font-size: 0.9rem;
  line-height: 1.75;
}

@keyframes hm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-home .db__side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .db__side .media {
  border: var(--hm-edge);
  background: var(--ink-800);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

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

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

/* ---------- 版本标识 ---------- */
.page-home .ver {
  background: linear-gradient(165deg, var(--ink-900) 0%, var(--ink-950) 72%);
  border-top: var(--hm-edge);
  border-bottom: var(--hm-edge);
}

.page-home .ver__grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.page-home .ver__badge {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 26px 22px;
  border: var(--hm-edge);
  border-top: 4px solid var(--cyan-400);
  background: var(--ink-800);
  box-shadow: var(--shadow-2);
}

.page-home .ver__badge-label {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--cyan-200);
}

.page-home .ver__badge-num {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--gold-400);
}

.page-home .ver__badge-sub {
  margin: 0 0 6px;
  font-size: 0.86rem;
  color: var(--mist-200);
}

.page-home .ver__body h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white-050);
}

.page-home .ver__lede {
  margin: 16px 0 0;
  max-width: 36em;
  color: var(--mist-200);
  font-size: 0.96rem;
  line-height: 1.78;
}

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

.page-home .ver__list li {
  position: relative;
  padding-left: 20px;
  color: var(--mist-200);
  font-size: 0.92rem;
  line-height: 1.6;
}

.page-home .ver__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 2px;
  background: var(--cyan-400);
}

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

/* ---------- 常用页收藏 ---------- */
.page-home .fav__grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.page-home .fav__groups {
  list-style: none;
  margin: 0;
  padding: 0;
  border: var(--hm-edge);
  background: var(--ink-900);
  box-shadow: var(--shadow-1);
}

.page-home .fav__groups li {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  padding: 15px 18px;
  border-bottom: var(--hm-hair);
  transition: background var(--fast) ease-out;
}

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

.page-home .fav__groups li:hover {
  background: rgba(59, 48, 128, 0.22);
}

.page-home .fav__g {
  grid-row: 1 / -1;
  align-self: start;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold-400);
}

.page-home .fav__groups h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white-050);
}

.page-home .fav__groups p {
  margin: 0;
  color: var(--mist-200);
  font-size: 0.9rem;
  line-height: 1.68;
}

.page-home .fav__side {
  padding: 24px 22px;
  border: var(--hm-edge);
  background: linear-gradient(150deg, var(--violet-700) 0%, var(--ink-800) 58%, var(--ink-900) 100%);
  box-shadow: var(--shadow-1);
  align-self: start;
}

.page-home .fav__side-num {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--cyan-400);
}

.page-home .fav__side h3 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white-050);
}

.page-home .fav__side p {
  margin: 0 0 20px;
  color: var(--mist-200);
  font-size: 0.92rem;
  line-height: 1.72;
}

/* ---------- 帮助通道 ---------- */
.page-home .help__grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.page-home .help__card {
  padding: 24px 20px;
  border: var(--hm-edge);
  background: var(--ink-800);
  box-shadow: var(--shadow-1);
  transition: transform var(--fast) ease-out, box-shadow var(--fast) ease-out, border-color var(--fast) ease-out;
}

.page-home .help__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--cyan-400);
}

.page-home .help__num {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold-400);
}

.page-home .help__card h3 {
  margin: 10px 0 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white-050);
}

.page-home .help__card p {
  margin: 0;
  color: var(--mist-200);
  font-size: 0.92rem;
  line-height: 1.72;
}

.page-home .help__meta {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: var(--hm-hair);
  color: var(--cyan-200) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em;
  word-break: break-all;
}

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

/* ---------- 焦点可见 ---------- */
.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}

/* ---------- 平板 ---------- */
@media (min-width: 700px) {
  .page-home .hero {
    padding: 40px 0 64px;
  }

  .page-home .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .page-home .hero__media,
  .page-home .hero__media img {
    min-height: 340px;
  }

  .page-home .cap__list {
    grid-template-columns: 1fr 1fr;
    gap: 24px 28px;
  }

  .page-home .ver__list {
    grid-template-columns: 1fr 1fr;
    gap: 12px 28px;
  }

  .page-home .help__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .fav__groups li {
    grid-template-columns: 54px 1fr;
    padding: 18px 22px;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 1000px) {
  .page-home .hero__grid {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: end;
  }

  .page-home .hero__visual {
    padding-left: 12px;
  }

  .page-home .hero__media,
  .page-home .hero__media img {
    min-height: 420px;
  }

  .page-home .cap__grid {
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    align-items: start;
  }

  .page-home .cap__figure img {
    min-height: 320px;
  }

  .page-home .db__grid {
    grid-template-columns: 8fr 4fr;
    gap: 32px;
    align-items: start;
  }

  .page-home .ver__grid {
    grid-template-columns: 4fr 8fr;
    gap: 48px;
  }

  .page-home .fav__grid {
    grid-template-columns: 8fr 4fr;
    gap: 32px;
    align-items: start;
  }

  .page-home .help__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ---------- 降级动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .cap__item,
  .page-home .help__card,
  .page-home .fav__groups li,
  .page-home .db__list .index-item,
  .page-home .band__link,
  .page-home .home-crumb a,
  .page-home a,
  .page-home button {
    transition: none;
  }

  .page-home .help__card:hover {
    transform: none;
  }

  .page-home .db__list .panel__body {
    animation: none;
  }
}
