.page-home {
  --home-gap: 14px;
  --home-pad: clamp(16px, 2.6vw, 28px);
  position: relative;
  background: var(--sand);
  color: var(--ink);
  overflow-x: clip;
}

.page-home .section {
  padding-block: clamp(34px, 6vw, 72px);
  margin: 0;
}

.page-home .home-hero {
  padding-top: clamp(18px, 3vw, 34px);
  padding-bottom: clamp(34px, 5vw, 64px);
}

.page-home .breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--slate);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: clamp(14px, 2vw, 22px);
}

.page-home .breadcrumb__sep {
  color: var(--maple);
}

.page-home .home-hero__head {
  max-width: 900px;
  position: relative;
  padding-left: clamp(0px, 1.5vw, 16px);
}

.page-home .home-hero__head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 3px;
  height: 46px;
  background: var(--maple);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
  display: none;
}

.page-home .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maple);
  margin: 0 0 10px;
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 7.4vw, 78px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 clamp(14px, 2vw, 22px);
  color: var(--ink);
}

.page-home .home-hero__lede {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--slate);
  max-width: 62ch;
  margin: 0;
}

/* ---------- Bento ---------- */

.page-home .bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  margin-top: clamp(22px, 3.4vw, 36px);
}

.page-home .bento__main {
  position: relative;
  min-height: 400px;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--pine);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.page-home .bento__main-figure {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .bento__main-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  display: block;
}

.page-home .bento__main-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 42, 32, 0.28) 0%, rgba(7, 42, 32, 0.9) 68%);
}

.page-home .bento__main::before {
  content: "";
  position: absolute;
  top: -54px;
  right: -54px;
  width: 210px;
  height: 210px;
  background: var(--maple);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 46% 100%);
  z-index: 1;
  opacity: 0.92;
}

.page-home .bento__main-body {
  position: relative;
  z-index: 2;
  padding: var(--home-pad);
}

.page-home .bento__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 8px;
}

.page-home .bento__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--paper);
}

.page-home .col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.page-home .col-item__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(244, 233, 216, 0.18);
  border-radius: var(--r-s);
  background: rgba(251, 247, 239, 0.06);
  color: inherit;
  text-decoration: none;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.page-home .col-item__link:hover,
.page-home .col-item__link:focus-visible {
  background: rgba(200, 16, 46, 0.24);
  border-color: var(--maple);
  transform: translateX(3px);
}

.page-home .col-item__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-home .col-item__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-home .col-item__text span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244, 233, 216, 0.74);
}

.page-home .col-item__arrow {
  color: var(--ice);
  font-size: 15px;
}

.page-home .bento__aside {
  border-radius: var(--r-l);
  padding: var(--home-pad);
  background: var(--paper);
  border: 1px solid var(--mist);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .bento__aside .bento__label {
  color: var(--maple);
}

.page-home .bento__subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

.page-home .bento__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
  margin: 0;
}

.page-home .bento__more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ice-deep);
  text-decoration: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.page-home .bento__more:hover,
.page-home .bento__more:focus-visible {
  color: var(--maple);
  border-bottom-color: var(--maple);
}

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

.page-home .step-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--mist);
}

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

.page-home .step-list__n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--maple);
  font-variant-numeric: tabular-nums;
}

.page-home .step-list__t {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--slate);
}

.page-home .step-list__t strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1px;
}

.page-home .bento__device {
  padding: 0;
  overflow: hidden;
}

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

.page-home .bento__device-body {
  padding: 14px var(--home-pad) var(--home-pad);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.page-home .bento__status {
  background: var(--pine);
  border-color: var(--pine-deep);
  color: var(--paper);
}

.page-home .bento__status .bento__label {
  color: var(--amber);
}

.page-home .bento__status .bento__subtitle {
  color: var(--paper);
}

.page-home .bento__status .bento__note {
  color: rgba(244, 233, 216, 0.7);
}

.page-home .status-ver {
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

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

.page-home .status-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244, 233, 216, 0.86);
}

.page-home .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 142, 4, 0.2);
}

.page-home .bento__status .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- 换设备检查 ---------- */

.page-home .home-check {
  background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 46%, var(--sand) 100%);
}

.page-home .home-check__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.page-home .home-check__figure {
  margin: 0;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--mist);
  background: var(--pine);
}

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

.page-home .home-check__cap {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ice);
  background: var(--pine);
  padding: 9px 14px;
}

.page-home .home-check__body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.18;
  margin: 0 0 12px;
  color: var(--ink);
}

.page-home .home-check__body > p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--slate);
  margin: 0 0 18px;
  max-width: 54ch;
}

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

.page-home .check-list__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--mist);
  border-radius: var(--r-s);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.page-home .check-list__row:hover {
  border-color: var(--ice);
}

.page-home .check-list__row input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--maple);
  flex: none;
}

.page-home .check-list__row input:checked + .check-list__text {
  color: var(--slate);
}

.page-home .check-list__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}

.page-home .check-list__text strong {
  display: inline-block;
  min-width: 4.2em;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--maple);
}

/* ---------- 版本状态表 ---------- */

.page-home .home-version__head {
  max-width: 760px;
  margin-bottom: clamp(18px, 2.6vw, 28px);
}

.page-home .home-version__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.18;
  margin: 0 0 12px;
  color: var(--ink);
}

.page-home .home-version__head p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--slate);
  margin: 0;
}

.page-home .vtable-wrap {
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--pine-deep);
  background: var(--pine);
  box-shadow: var(--shadow-soft);
}

.page-home .vtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .vtable__caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  padding: 14px var(--home-pad);
  border-bottom: 1px solid rgba(217, 228, 232, 0.18);
}

.page-home .vtable thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mist);
  text-align: left;
  padding: 11px var(--home-pad);
  background: rgba(7, 42, 32, 0.6);
}

.page-home .vtable tbody td {
  padding: 13px var(--home-pad);
  border-top: 1px solid rgba(217, 228, 232, 0.14);
  color: var(--paper);
  line-height: 1.6;
  vertical-align: top;
}

.page-home .vtable tbody tr:nth-child(even) td {
  background: rgba(251, 247, 239, 0.04);
}

.page-home .vtable tbody td.mono {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-home .vstate {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.page-home .vstate--ok {
  color: var(--pine);
  background: var(--ice);
  border-color: var(--ice);
}

.page-home .home-version__foot {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .home-version__foot a {
  color: var(--maple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 时间轴 ---------- */

.page-home .home-archive {
  background: var(--sand);
}

.page-home .home-archive__head {
  max-width: 760px;
}

.page-home .home-archive__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.18;
  margin: 0 0 12px;
  color: var(--ink);
}

.page-home .home-archive__head p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--slate);
  margin: 0;
}

.page-home .home-archive__figure {
  margin: clamp(18px, 2.6vw, 26px) 0;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--mist);
}

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

.page-home .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-home .timeline__item {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--mist);
}

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--maple);
  border: 2px solid var(--sand);
}

.page-home .timeline__item:nth-child(2n)::before {
  background: var(--amber);
}

.page-home .timeline__card {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--r-s);
  padding: 12px 14px;
  transition: border-color 0.16s var(--ease);
}

.page-home .timeline__card[open] {
  border-color: var(--maple);
}

.page-home .timeline__card summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  gap: 4px;
  position: relative;
  padding-right: 44px;
}

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

.page-home .timeline__card summary::after {
  content: "展开";
  position: absolute;
  right: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ice-deep);
  border: 1px solid var(--mist);
  border-radius: 999px;
  padding: 1px 7px;
}

.page-home .timeline__card[open] summary::after {
  content: "收起";
  color: var(--maple);
  border-color: var(--maple);
}

.page-home .timeline__when {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.page-home .timeline__what {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .timeline__card p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--slate);
}

.page-home .home-archive__foot {
  margin: clamp(20px, 3vw, 30px) 0 0;
}

/* ---------- 信任与联络 ---------- */

.page-home .home-trust__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}

.page-home .home-trust__body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.18;
  margin: 0 0 12px;
  color: var(--ink);
}

.page-home .home-trust__body > p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--slate);
  margin: 0 0 18px;
  max-width: 58ch;
}

.page-home .stat-row {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.page-home .stat-row li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px solid var(--mist);
  border-left: 3px solid var(--maple);
  border-radius: var(--r-s);
  background: var(--paper);
}

.page-home .stat-row li:nth-child(2n) {
  border-left-color: var(--pine);
}

.page-home .stat-row li:nth-child(3n) {
  border-left-color: var(--amber);
}

.page-home .stat-row__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.page-home .stat-row__txt {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--slate);
}

.page-home .home-trust__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.page-home .home-trust__contact {
  padding: var(--home-pad);
  border-radius: var(--r-l);
  background: var(--pine);
  color: var(--paper);
  border: 1px solid var(--pine-deep);
  box-shadow: var(--shadow-soft);
}

.page-home .home-trust__contact-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}

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

.page-home .home-trust__contact-list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(217, 228, 232, 0.16);
}

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

.page-home .home-trust__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ice);
}

.page-home .home-trust__val {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.page-home .copy-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--ice);
  background: transparent;
  color: var(--ice);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.page-home .copy-btn:hover,
.page-home .copy-btn:focus-visible {
  background: var(--ice);
  color: var(--pine);
}

.page-home .copy-btn[data-copied] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.page-home .home-trust__note {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(244, 233, 216, 0.75);
  margin: 0 0 16px;
}

/* ---------- 断点 ---------- */

@media (min-width: 700px) {
  .page-home .home-hero__head::before {
    display: block;
  }

  .page-home .home-hero__head {
    padding-left: 20px;
  }

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

  .page-home .bento__main {
    grid-column: 1 / -1;
    min-height: 440px;
  }

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

  .page-home .home-check__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  }

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

  .page-home .home-trust__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-home .bento {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "main step status"
      "main device status";
    align-items: stretch;
  }

  .page-home .bento__main {
    grid-area: main;
    grid-column: auto;
    min-height: 520px;
  }

  .page-home .bento__step {
    grid-area: step;
  }

  .page-home .bento__device {
    grid-area: device;
  }

  .page-home .bento__status {
    grid-area: status;
  }

  .page-home .col-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .timeline {
    grid-auto-flow: column;
    grid-auto-columns: minmax(232px, 1fr);
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
  }

  .page-home .timeline__item {
    border-left: 0;
    border-top: 2px solid var(--mist);
    padding: 20px 12px 4px 0;
    scroll-snap-align: start;
  }

  .page-home .timeline__item::before {
    left: 0;
    top: -8px;
  }

  .page-home .timeline__item:nth-child(even) {
    margin-top: 22px;
  }
}

@media (min-width: 1280px) {
  .page-home .vtable tbody td,
  .page-home .vtable thead th {
    padding-inline: 22px;
  }
}

@media (max-width: 699px) {
  .page-home .vtable thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .page-home .vtable,
  .page-home .vtable tbody,
  .page-home .vtable tr,
  .page-home .vtable td {
    display: block;
    width: 100%;
  }

  .page-home .vtable tbody tr {
    padding: 12px 0;
    border-top: 1px solid rgba(217, 228, 232, 0.16);
  }

  .page-home .vtable tbody td {
    border-top: 0;
    padding: 4px var(--home-pad);
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .page-home .vtable tbody td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--mist);
    padding-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .col-item__link,
  .page-home .bento__more,
  .page-home .copy-btn,
  .page-home .timeline__card {
    transition: none;
  }

  .page-home .col-item__link:hover,
  .page-home .col-item__link:focus-visible {
    transform: none;
  }
}
