.page-home {
  --home-pad: clamp(34px, 6vw, 84px);
  --home-gap: clamp(22px, 3.4vw, 44px);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

.page-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-home section {
  padding-block: var(--home-pad);
}

/* ---------- 首屏框景 ---------- */
.page-home .home-hero {
  padding-top: clamp(24px, 4vw, 52px);
  padding-bottom: clamp(30px, 4vw, 64px);
  background-image:
    linear-gradient(to right, rgba(14, 27, 51, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 27, 51, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
}

.page-home .home-hero__grid {
  display: grid;
  gap: var(--home-gap);
  align-items: start;
}

.page-home .home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--graphite);
}

.page-home .home-hero__tick {
  width: 10px;
  height: 10px;
  background: var(--orange);
  flex: 0 0 auto;
}

.page-home .home-hero__title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 6.2vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-home .home-hero__lede {
  margin: 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--graphite);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.page-home .home-hero__actions .btn {
  min-width: 132px;
  text-align: center;
}

.page-home .home-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: 6px;
  border-top: 1px solid var(--mist);
}

.page-home .home-jump a {
  flex: 0 0 auto;
  padding: 10px 18px 10px 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .home-jump a:hover,
.page-home .home-jump a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.page-home .home-hero__frame {
  position: relative;
  margin: 0;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--ink);
}

.page-home .home-hero__frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -13px;
  height: 8px;
  background-image: repeating-linear-gradient(to right, var(--mist) 0 1px, transparent 1px 14px);
}

.page-home .home-hero__frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--mist);
}

.page-home .home-hero__frame figcaption {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--mist);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--graphite);
}

/* ---------- 章节头（共用本页） ---------- */
.page-home .home-sec__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--graphite);
}

.page-home .home-sec__label > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 5px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.page-home .home-sec__title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.page-home .home-sec__lede {
  margin: 0;
  max-width: 64ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--graphite);
}

/* ---------- 入口区 ---------- */
.page-home .home-entry {
  background: var(--paper);
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
}

.page-home .home-entry__head {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
}

.page-home .home-entry__figure {
  margin: 0;
}

.page-home .home-entry__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--mist);
  background: var(--cream);
}

.page-home .home-entry__figure figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--graphite);
}

.page-home .home-entry__grid {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 54px);
}

.page-home .entry-card {
  --accent: var(--orange);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 216px;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--cream);
  border: 1px solid var(--mist);
  overflow: hidden;
  transition: border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.page-home .entry-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.32s var(--ease);
}

.page-home .entry-card::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border-left: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.page-home .entry-card:hover,
.page-home .entry-card:focus-within {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.page-home .entry-card:hover::before,
.page-home .entry-card:focus-within::before {
  height: 100%;
}

.page-home .entry-card--entry {
  --accent: var(--amber);
}

.page-home .entry-card--device {
  --accent: var(--lime);
}

.page-home .entry-card--account {
  --accent: var(--teal);
}

.page-home .entry-card .tag {
  align-self: flex-start;
  margin-bottom: 16px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.page-home .entry-card__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.34;
}

.page-home .entry-card__text {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--graphite);
}

.page-home .entry-card__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.page-home .entry-card__link span {
  transition: transform 0.24s var(--ease);
}

.page-home .entry-card__link:hover span,
.page-home .entry-card__link:focus-visible span {
  transform: translateX(4px);
}

/* ---------- 四类终端 ---------- */
.page-home .home-terminals {
  background: var(--ink);
  color: var(--cream);
}

.page-home .home-terminals .home-sec__label {
  color: var(--mist);
}

.page-home .home-terminals .home-sec__label > span {
  background: var(--cream);
  color: var(--ink);
}

.page-home .home-terminals .home-sec__title {
  color: var(--cream);
}

.page-home .home-terminals .home-sec__lede {
  color: rgba(247, 243, 234, 0.78);
}

.page-home .terminal-grid {
  list-style: none;
  margin: clamp(26px, 3.6vw, 46px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(201, 197, 184, 0.24);
  border: 1px solid rgba(201, 197, 184, 0.24);
}

.page-home .terminal-item {
  background: var(--ink);
  padding: 24px 20px 28px;
}

.page-home .terminal-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .terminal-item__icon {
  width: 42px;
  height: 42px;
  color: var(--lime);
  flex: 0 0 auto;
}

.page-home .terminal-item__head .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.page-home .terminal-item h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  color: var(--cream);
}

.page-home .terminal-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: rgba(247, 243, 234, 0.72);
}

.page-home .home-terminals__foot {
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(247, 243, 234, 0.72);
}

.page-home .home-terminals__foot a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 196, 59, 0.6);
  padding-bottom: 1px;
}

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

/* ---------- 落点与记录 ---------- */
.page-home .home-trust__grid {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

.page-home .home-trust__figure {
  margin: 0;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-left: 4px solid var(--orange);
}

.page-home .home-trust__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-trust__figure figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--graphite);
}

.page-home .home-stats {
  list-style: none;
  margin: clamp(24px, 3vw, 34px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}

.page-home .home-stats__item {
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}

.page-home .home-stats__num {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 28px);
  letter-spacing: -0.01em;
}

.page-home .home-stats__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--graphite);
}

.page-home .home-trust__note {
  margin: clamp(22px, 3vw, 30px) 0 0;
  padding: 16px 18px;
  background: var(--paper);
  border-left: 3px solid var(--teal);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--graphite);
}

.page-home .home-trust__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-bottom: 3px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
}

.page-home .home-trust__link span {
  transition: transform 0.24s var(--ease);
}

.page-home .home-trust__link:hover span,
.page-home .home-trust__link:focus-visible span {
  transform: translateX(4px);
}

/* ---------- 专题 ---------- */
.page-home .home-topics {
  background: var(--paper);
  border-top: 1px solid var(--mist);
}

.page-home .home-topics__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  margin-top: clamp(24px, 3.4vw, 42px);
  align-items: start;
}

.page-home .topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .topic-item {
  display: grid;
  gap: 8px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--mist);
}

.page-home .topic-item:last-child {
  border-bottom: 1px solid var(--mist);
}

.page-home .topic-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-home .topic-item__meta .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

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

.page-home .topic-item__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.42;
}

.page-home .topic-item__title a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.22s var(--ease);
}

.page-home .topic-item__title a:hover,
.page-home .topic-item__title a:focus-visible {
  border-bottom-color: var(--orange);
}

.page-home .topic-item__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--graphite);
}

.page-home .home-topics__figure {
  margin: 0;
  padding: 8px;
  background: var(--cream);
  border: 1px solid var(--mist);
}

.page-home .home-topics__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-topics__figure figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--graphite);
}

.page-home .home-topics__more {
  margin-top: clamp(24px, 3vw, 34px);
}

/* ---------- 收尾 ---------- */
.page-home .home-cta {
  padding-bottom: clamp(46px, 7vw, 96px);
}

.page-home .home-cta__box {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
  background: var(--ink-2);
  color: var(--cream);
  border-left: 6px solid var(--orange);
}

.page-home .home-cta__box::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 56px;
  background: var(--ink);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.page-home .home-cta__title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(23px, 3.2vw, 34px);
  line-height: 1.28;
  color: var(--cream);
  max-width: 26ch;
}

.page-home .home-cta__text {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(247, 243, 234, 0.78);
}

.page-home .home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: clamp(22px, 3vw, 30px);
}

.page-home .home-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 2px solid rgba(232, 93, 42, 0.85);
}

.page-home .home-cta__link span {
  transition: transform 0.24s var(--ease);
}

.page-home .home-cta__link:hover span,
.page-home .home-cta__link:focus-visible span {
  transform: translateX(4px);
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .page-home .terminal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .home-entry__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

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

  .page-home .home-topics__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

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

  .page-home .home-hero__lede {
    font-size: 17px;
  }
}

@media (min-width: 1040px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 4vw, 64px);
  }

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

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

  .page-home .entry-card:nth-child(1) {
    grid-column: span 7;
  }

  .page-home .entry-card:nth-child(2) {
    grid-column: span 5;
    margin-top: 38px;
  }

  .page-home .entry-card:nth-child(3) {
    grid-column: span 5;
  }

  .page-home .entry-card:nth-child(4) {
    grid-column: span 7;
    margin-top: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-card,
  .page-home .entry-card::before,
  .page-home .home-jump a,
  .page-home .topic-item__title a {
    transition: none;
  }

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

  .page-home .entry-card__link span,
  .page-home .home-trust__link span,
  .page-home .home-cta__link span {
    transition: none;
  }
}
