.page-home {
  overflow-x: clip;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
}

.page-home [id] {
  scroll-margin-top: 120px;
}

.page-home a:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-display);
  font-weight: 400;
}

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

/* 封面 */
.page-home .home-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(26px, 5vw, 56px) clamp(44px, 8vw, 96px);
  background:
    linear-gradient(180deg, rgba(12, 13, 16, 0.92), rgba(12, 13, 16, 0.35) 42%, var(--ink-3));
}

.page-home .home-cover__media {
  position: absolute;
  z-index: 0;
  top: -8%;
  right: -12%;
  width: min(92vw, 760px);
  margin: 0;
  aspect-ratio: 16 / 10;
  opacity: 0.44;
  -webkit-mask-image: linear-gradient(105deg, transparent 0%, rgba(0, 0, 0, 0.9) 48%, #000 100%);
  mask-image: linear-gradient(105deg, transparent 0%, rgba(0, 0, 0, 0.9) 48%, #000 100%);
}

.page-home .home-cover__spot {
  position: absolute;
  z-index: 0;
  top: -30%;
  left: 18%;
  width: 90vw;
  height: 90vw;
  background:
    radial-gradient(circle at 55% 45%, rgba(244, 240, 232, 0.18), rgba(201, 162, 39, 0.08) 32%, transparent 62%),
    radial-gradient(circle at 40% 60%, rgba(200, 16, 46, 0.22), transparent 58%);
  pointer-events: none;
}

.page-home .home-cover__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-home .cover-coords {
  padding-left: 14px;
  border-left: 1px solid var(--amber);
}

.page-home .cover-coords__title {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.page-home .cover-coords__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .cover-coords__link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .cover-coords__num {
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.page-home .cover-coords__link:hover {
  color: var(--paper);
  border-bottom-color: var(--red);
}

.page-home .cover-head__title {
  margin: 14px 0 18px;
  color: var(--paper);
  font-size: clamp(34px, 7.4vw, 64px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.page-home .cover-head__title br {
  display: none;
}

.page-home .cover-head__lead {
  max-width: 48ch;
  color: var(--text-dim);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
}

.page-home .cover-head__meta {
  margin-top: 18px;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.14em;
}

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

/* 双入口 */
.page-home .entry-band {
  background: linear-gradient(180deg, var(--ink-3), var(--ink));
}

.page-home .entry-band__head h2 {
  margin: 12px 0 14px;
  color: var(--paper);
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.25;
}

.page-home .entry-band__head .lead {
  max-width: 56ch;
  color: var(--text-dim);
  line-height: 1.85;
}

.page-home .entry-band__figure {
  margin: 26px 0 0;
}

.page-home .entry-band__figure + .entry-plaques {
  margin-top: 30px;
}

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

.page-home .entry-plaque {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(201, 162, 39, 0.16), rgba(28, 30, 34, 0.94) 58%);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .entry-plaque::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  pointer-events: none;
}

.page-home .entry-plaque--member {
  border-left: 3px solid var(--red);
}

.page-home .entry-plaque--device {
  border-top: 2px solid var(--amber);
}

.page-home .entry-plaque:hover,
.page-home .entry-plaque:focus-within {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.48);
}

.page-home .entry-plaque__num {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.page-home .entry-plaque__title {
  margin: 0 0 10px;
  color: var(--paper);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
}

.page-home .entry-plaque__desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.8;
}

.page-home .entry-plaque__list {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

.page-home .entry-plaque__list li {
  position: relative;
  padding-left: 14px;
}

.page-home .entry-plaque__list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--amber);
}

.page-home .entry-plaque__link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--red);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.page-home .entry-plaque__link:hover {
  color: var(--amber);
}

/* 本周变更 */
.page-home .week-band {
  background: var(--ink-2);
}

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

.page-home .week-side {
  padding-top: 14px;
  border-top: 2px solid var(--red);
}

.page-home .week-side__label {
  margin: 0 0 8px;
  color: var(--warm);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.page-home .week-side__num {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 300;
  line-height: 1.1;
}

.page-home .week-side__note {
  margin: 12px 0 18px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.75;
}

.page-home .week-side__btn {
  margin-top: 4px;
}

.page-home .week-main {
  display: grid;
  gap: 26px;
}

.page-home .week-list {
  display: grid;
}

.page-home .week-item {
  padding: 18px 0;
  border-top: 1px solid var(--glass-line);
}

.page-home .week-item__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-home .week-item__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
}

.page-home .week-item__title {
  margin: 0 0 8px;
  color: var(--paper);
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.4;
}

.page-home .week-item__text {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.8;
}

.page-home .week-item__meta {
  margin: 10px 0 0;
  color: var(--warm);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-home .week-figure {
  margin: 0;
}

.page-home .week-figure .media__caption {
  margin-top: 10px;
  color: var(--warm);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* 文档栏目（米白阅读面） */
.page-home .docs-band {
  background: var(--paper);
  color: var(--ink);
}

.page-home .docs-band .kicker {
  color: var(--red-deep);
}

.page-home .docs-band__head h2 {
  margin: 12px 0 14px;
  color: var(--ink);
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.25;
}

.page-home .docs-band__lead {
  max-width: 58ch;
  margin: 0;
  color: rgba(18, 19, 22, 0.72);
  font-size: 16px;
  line-height: 1.85;
}

.page-home .docs-band__figure {
  margin: 26px 0 0;
  border: 1px solid rgba(18, 19, 22, 0.12);
}

.page-home .doc-spines {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.page-home .doc-spine {
  border-left: 3px solid var(--amber);
  background: var(--paper-2);
  box-shadow: 0 1px 0 rgba(18, 19, 22, 0.06);
}

.page-home .doc-spine__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-height: 54px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  transition: background var(--dur) var(--ease);
}

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

.page-home .doc-spine__summary::after {
  content: "+";
  margin-left: auto;
  color: var(--red-deep);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
}

.page-home .doc-spine[open] .doc-spine__summary::after {
  content: "−";
}

.page-home .doc-spine__summary:hover {
  background: rgba(201, 162, 39, 0.12);
}

.page-home .doc-spine__num {
  color: var(--red-deep);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-home .doc-spine__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
}

.page-home .doc-spine__body {
  margin: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(18, 19, 22, 0.1);
  color: rgba(18, 19, 22, 0.76);
  font-size: 14.5px;
  line-height: 1.8;
}

.page-home .docs-band__action {
  margin: 26px 0 0;
}

/* 版本回查 */
.page-home .trace-band {
  background:
    linear-gradient(180deg, var(--ink), var(--ink-3));
}

.page-home .trace-band__head h2 {
  margin: 12px 0 14px;
  color: var(--paper);
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.25;
}

.page-home .trace-band__head .lead {
  max-width: 56ch;
  color: var(--text-dim);
  line-height: 1.85;
}

.page-home .trace-steps {
  display: grid;
  gap: 24px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .trace-step {
  position: relative;
  padding-left: 54px;
}

.page-home .trace-step::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: -26px;
  left: 15px;
  width: 1px;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.55), transparent);
}

.page-home .trace-step:last-child::before {
  display: none;
}

.page-home .trace-step__num {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--amber);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.page-home .trace-step__title {
  margin: 0 0 8px;
  color: var(--paper);
  font-size: 20px;
  line-height: 1.4;
}

.page-home .trace-step__text {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.8;
}

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

/* 服务与联系 */
.page-home .service-band {
  background:
    radial-gradient(circle at 88% 8%, rgba(200, 16, 46, 0.16), transparent 52%),
    linear-gradient(180deg, var(--ink-2), var(--ink-3));
}

.page-home .service-band__head h2 {
  margin: 12px 0 14px;
  color: var(--paper);
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.25;
}

.page-home .service-band__head .lead {
  max-width: 58ch;
  color: var(--text-dim);
  line-height: 1.85;
}

.page-home .service-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin-top: 30px;
}

.page-home .stat {
  padding-top: 12px;
  border-top: 1px solid rgba(201, 162, 39, 0.45);
}

.page-home .stat__num {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 300;
  line-height: 1.1;
}

.page-home .stat__unit {
  color: var(--amber);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
}

.page-home .stat__label {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.page-home .service-contact {
  margin-top: 32px;
  padding: 22px 20px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
}

.page-home .service-contact__label {
  margin: 0 0 16px;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.14em;
}

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

.page-home .service-contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.page-home .service-contact__row dt {
  min-width: 78px;
  color: var(--warm);
  font-size: 13px;
}

.page-home .service-contact__row dd {
  margin: 0;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}

.page-home .service-contact__note {
  margin: 16px 0 0;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.75;
}

.page-home .service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .page-home .doc-spines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .doc-spine:nth-child(2n) {
    margin-top: 16px;
  }

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

@media (min-width: 900px) {
  .page-home .home-cover__inner {
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
    gap: clamp(32px, 4vw, 56px);
  }

  .page-home .cover-coords__list {
    flex-direction: column;
    gap: 12px;
  }

  .page-home .cover-head {
    max-width: 880px;
    padding-right: 40px;
  }

  .page-home .cover-head__title br {
    display: inline;
  }

  .page-home .home-cover__media {
    right: -6%;
    width: min(58vw, 820px);
    opacity: 0.5;
  }

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

  .page-home .entry-plaque--device {
    margin-top: 46px;
  }

  .page-home .week-band__inner {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
  }

  .page-home .week-main {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: start;
  }

  .page-home .week-item {
    padding: 20px 0;
  }

  .page-home .docs-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: 48px;
    align-items: start;
  }

  .page-home .docs-band__head {
    grid-column: 1 / 2;
  }

  .page-home .docs-band__figure {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    margin-top: 0;
    position: sticky;
    top: 120px;
  }

  .page-home .doc-spines {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 36px;
  }

  .page-home .doc-spine:nth-child(2n) {
    margin-top: 18px;
  }

  .page-home .trace-band__inner {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    column-gap: 48px;
    align-items: start;
  }

  .page-home .trace-band__head {
    position: sticky;
    top: 120px;
  }

  .page-home .trace-steps {
    margin-top: 0;
  }

  .page-home .service-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    column-gap: 52px;
    align-items: start;
  }

  .page-home .service-band__head {
    grid-column: 1 / 2;
  }

  .page-home .service-stats {
    grid-column: 1 / 2;
  }

  .page-home .service-contact {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    margin-top: 0;
    position: sticky;
    top: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home a,
  .page-home summary,
  .page-home .entry-plaque {
    transition: none;
  }

  .page-home .entry-plaque:hover,
  .page-home .entry-plaque:focus-within {
    transform: none;
  }
}
