/* ===== 首页 page-home ===== */

.page-home {
  --home-cell: clamp(18px, 2.6vw, 28px);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 108px);
  background: var(--bg);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 88px);
  opacity: .3;
  pointer-events: none;
}

.page-home .hero__shard {
  position: absolute;
  z-index: -1;
  display: block;
  pointer-events: none;
}

.page-home .hero__shard--a {
  top: -16%;
  right: -14%;
  width: 72%;
  height: 132%;
  background: var(--deep-sea);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 76%);
}

.page-home .hero__shard--b {
  left: -16%;
  bottom: -32%;
  width: 54%;
  height: 76%;
  background: var(--deep-dive);
  opacity: .62;
  clip-path: polygon(0 0, 100% 28%, 86% 100%, 0 100%);
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .hero__crumb {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--mist);
}

.page-home .hero__eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 13px;
  border: 1px solid var(--cyan);
  background: rgba(34, 224, 214, .08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.page-home .hero__title {
  margin: 0 0 22px;
  font-size: clamp(36px, 7.2vw, 78px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: .04em;
  color: var(--white);
}

.page-home .hero__title em {
  display: block;
  font-style: normal;
  color: var(--cyan);
}

.page-home .hero__lede {
  max-width: 24em;
  margin: 0 0 30px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.78;
  color: var(--mist);
}

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

.page-home .hero__right {
  position: relative;
}

.page-home .hero__visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 86% 100%, 0 100%);
}

.page-home .hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .hero__plate {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 20px;
  background: var(--alert);
  color: var(--ink-black);
}

.page-home .hero__plate-key {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.page-home .hero__plate-val {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1;
}

/* ---------- 状态条 ---------- */
.page-home .statusline {
  position: sticky;
  top: var(--head-h);
  z-index: 20;
  background: var(--deep-sea);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.page-home .statusline__cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px clamp(12px, 1.6vw, 20px);
  border-bottom: 1px solid var(--line);
}

.page-home .statusline__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
}

.page-home .statusline__v {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ice);
}

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

/* ---------- 通用 section 覆写 ---------- */
.page-home .section {
  padding: clamp(56px, 8vw, 120px) 0;
}

.page-home .section__title {
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.16;
}

.page-home .section__lede {
  max-width: 40em;
}

/* ---------- 四个入口 ---------- */
.page-home .entrances {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.page-home .entrances__head {
  margin-bottom: clamp(32px, 4.4vw, 56px);
}

.page-home .entrance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 26px);
}

.page-home .entrance {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--deep-sea);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
}

.page-home .entrance::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .34s var(--ease);
}

.page-home .entrance:hover,
.page-home .entrance:focus-within {
  transform: translateY(-5px);
  border-color: var(--cyan);
  background: var(--deep-dive);
}

.page-home .entrance:hover::before,
.page-home .entrance:focus-within::before {
  transform: scaleX(1);
}

.page-home .entrance--mobile {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.page-home .entrance--desktop {
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
}

.page-home .entrance--fav {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-home .entrance--compare {
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.page-home .entrance__index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--alert);
}

.page-home .entrance__title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
  letter-spacing: .03em;
  color: var(--white);
}

.page-home .entrance__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .entrance__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .entrance__meta li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
}

.page-home .entrance__link {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 6px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}

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

/* ---------- 双端对照 ---------- */
.page-home .compare {
  background: var(--deep-sea);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .compare__figure {
  margin: 0 0 clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  background: var(--bg);
}

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

.page-home .compare__scroll {
  overflow-x: auto;
}

.page-home .compare__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(13px, 1.3vw, 15px);
}

.page-home .compare__table caption {
  caption-side: top;
  padding-bottom: 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mist);
}

.page-home .compare__table th,
.page-home .compare__table td {
  padding: 14px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
  border-bottom: 1px solid var(--line);
}

.page-home .compare__table thead th {
  background: var(--deep-dive);
  color: var(--ice);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.page-home .compare__table thead th:first-child {
  width: 28%;
}

.page-home .compare__table thead th:nth-child(2),
.page-home .compare__table thead th:nth-child(3) {
  width: 36%;
}

.page-home .compare__table tbody th {
  color: var(--mist);
  font-weight: 500;
}

.page-home .compare__table td {
  color: var(--ice);
}

.page-home .compare__table td.is-diff {
  color: var(--alert);
  font-weight: 700;
}

.page-home .compare__note {
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--alert);
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 数字锚点 ---------- */
.page-home .numbers {
  background: var(--bg);
}

.page-home .numbers__inner {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.page-home .numbers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .numbers__cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 3vw, 32px) clamp(14px, 2vw, 24px);
  background: var(--deep-dive);
}

.page-home .numbers__num {
  font-family: var(--font-mono);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--white);
}

.page-home .numbers__unit {
  font-size: .46em;
  color: var(--cyan);
  margin-left: 3px;
}

.page-home .numbers__label {
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: .04em;
  color: var(--mist);
}

.page-home .numbers__plate {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--deep-sea);
}

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

/* ---------- 帮助入口 ---------- */
.page-home .help {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.page-home .help__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.page-home .help__lede {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .help__figure {
  margin: clamp(24px, 3vw, 36px) 0 0;
  border: 1px solid var(--line);
  background: var(--deep-sea);
}

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

.page-home .help-search {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--deep-sea);
}

.page-home .help-search__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.page-home .help-search__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}

.page-home .help-search__input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ice);
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.page-home .help-search__input::placeholder {
  color: var(--mist);
  opacity: .75;
}

.page-home .help-search__input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 224, 214, .16);
}

.page-home .help-search__count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cyan);
}

.page-home .help-search__count:empty {
  display: none;
}

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

.page-home .help-search__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px;
  background: var(--deep-dive);
}

.page-home .help-search__q {
  color: var(--ice);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.page-home .help-search__q:hover,
.page-home .help-search__q:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .help-search__a {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .help-search__empty {
  display: none;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .help-search__more {
  margin-top: 22px;
}

/* ---------- 收尾 ---------- */
.page-home .home-tail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.page-home .home-tail__line {
  margin: 0;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--mist);
}

.page-home .home-tail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.page-home .home-tail__links a {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}

.page-home .home-tail__links a:hover,
.page-home .home-tail__links a:focus-visible {
  border-bottom-color: var(--cyan);
}

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

  .page-home .statusline__cell {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .page-home .statusline__cell:last-child {
    border-right: 0;
  }
}

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

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

@media (min-width: 900px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: center;
  }

  .page-home .hero__plate {
    position: absolute;
    right: 0;
    bottom: -22px;
    margin-top: 0;
  }
}

@media (min-width: 960px) {
  .page-home .numbers__inner {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .page-home .help__grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  }
}

@media (min-width: 1120px) {
  .page-home .entrance-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: clamp(20px, 2vw, 30px);
  }

  .page-home .entrance:nth-child(1) {
    grid-column: 1 / span 5;
  }

  .page-home .entrance:nth-child(2) {
    grid-column: 7 / span 6;
    margin-top: 56px;
  }

  .page-home .entrance:nth-child(3) {
    grid-column: 2 / span 5;
    margin-top: 28px;
  }

  .page-home .entrance:nth-child(4) {
    grid-column: 8 / span 5;
    margin-top: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entrance,
  .page-home .entrance::before,
  .page-home .help-search__input,
  .page-home .entrance__link,
  .page-home .home-tail__links a {
    transition: none;
  }

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