.page-home {
  --home-gap: 14px;
  --home-pad: 20px;
  padding-top: 24px;
  padding-bottom: 72px;
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--rail-line);
}

.page-home .home-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(28px, 7vw, 52px);
  line-height: 1.13;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--white);
  max-width: 20em;
  text-wrap: balance;
}

.page-home .home-hero__lead {
  max-width: 62ch;
  color: var(--trace-light);
  font-size: 16px;
  line-height: 1.8;
}

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-home .home-hero__meta span {
  position: relative;
  padding-left: 12px;
}

.page-home .home-hero__meta span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  transform: translateY(-50%);
}

/* ---------- Bento 栅格 ---------- */
.page-home .home-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  margin-top: 32px;
}

/* 焦点面板 */
.page-home .home-focus {
  position: relative;
  overflow: hidden;
  padding: 24px 20px 20px;
  border: 1px solid var(--rail-line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 88% 4%, rgba(57, 224, 208, 0.13), transparent 58%),
    linear-gradient(158deg, var(--ink-2) 0%, #0d1e33 100%);
  box-shadow: inset 0 1px 0 rgba(57, 224, 208, 0.09);
}

.page-home .home-focus::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    repeating-linear-gradient(0deg, rgba(31, 58, 95, 0.35) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(31, 58, 95, 0.35) 0 1px, transparent 1px 46px);
}

.page-home .home-focus > * {
  position: relative;
  z-index: 1;
}

.page-home .home-focus__index {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--signal);
  text-transform: uppercase;
}

.page-home .home-focus__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--white);
}

.page-home .home-focus__desc {
  max-width: 46ch;
  color: var(--trace-light);
  font-size: 15px;
  line-height: 1.78;
}

.page-home .home-focus__media {
  margin: 18px 0 0;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rail-line);
  border-radius: var(--r-md);
  background: #091320;
}

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

/* 入口小卡 */
.page-home .home-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--home-pad);
  border: 1px solid var(--rail-line);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, rgba(18, 36, 59, 0.96), rgba(13, 27, 45, 0.96));
  transition: border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.page-home .home-entry::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(57, 224, 208, 0));
  opacity: 0.6;
}

.page-home .home-entry > * {
  position: relative;
  z-index: 1;
  padding-left: 10px;
}

.page-home .home-entry:hover,
.page-home .home-entry:focus-within {
  border-color: rgba(57, 224, 208, 0.5);
  transform: translateY(-2px);
}

.page-home .home-entry__no {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--signal);
}

.page-home .home-entry__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--white);
}

.page-home .home-entry__desc {
  margin: 0;
  color: var(--trace-light);
  font-size: 14.5px;
  line-height: 1.72;
}

.page-home .home-entry__tag {
  margin: 4px 0 0;
}

/* ---------- 评测要点 ---------- */
.page-home .home-eval {
  margin-top: 56px;
  padding: 26px 20px;
  border: 1px solid var(--rail-line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(100deg, rgba(18, 36, 59, 0.9) 0%, rgba(11, 23, 41, 0.9) 70%),
    repeating-linear-gradient(135deg, rgba(57, 224, 208, 0.05) 0 2px, transparent 2px 14px);
}

.page-home .home-eval__title {
  margin: 8px 0 12px;
  font-size: clamp(21px, 4.6vw, 30px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--white);
}

.page-home .home-eval__desc {
  max-width: 62ch;
  color: var(--trace-light);
  font-size: 15px;
  line-height: 1.78;
}

.page-home .home-eval__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  border: 1px solid var(--rail-line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--rail-line);
}

.page-home .home-eval__stat {
  padding: 16px 14px;
  background: rgba(9, 19, 32, 0.86);
}

.page-home .home-eval__stat dt {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--trace);
}

.page-home .home-eval__stat dd {
  margin: 6px 0 0;
}

.page-home .home-eval__num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -0.01em;
}

.page-home .home-eval__foot {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--trace);
}

.page-home .home-eval__link,
.page-home .home-panel__link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 224, 208, 0.4);
}

.page-home .home-eval__link:hover,
.page-home .home-panel__link:hover {
  border-bottom-color: var(--cyan);
}

/* ---------- 双端对照 ---------- */
.page-home .home-compare {
  margin-top: 56px;
}

.page-home .home-compare__title {
  margin: 8px 0 12px;
  font-size: clamp(21px, 4.6vw, 30px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--white);
}

.page-home .home-compare__desc {
  max-width: 60ch;
  color: var(--trace-light);
  font-size: 15px;
  line-height: 1.78;
}

.page-home .home-compare__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--rail-line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--rail-line);
}

.page-home .home-compare__card {
  padding: 20px 18px 22px;
  background: rgba(13, 27, 45, 0.94);
}

.page-home .home-compare__label {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--signal);
}

.page-home .home-compare__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.page-home .home-compare__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-left: 2px solid var(--rail-line);
  background: rgba(18, 36, 59, 0.55);
}

.page-home .home-compare__row--on {
  border-left-color: var(--cyan);
  background: rgba(57, 224, 208, 0.1);
}

.page-home .home-compare__row--sub {
  margin-left: 10px;
}

.page-home .home-compare__row--sub2 {
  margin-left: 20px;
}

.page-home .home-compare__row--sub3 {
  margin-left: 30px;
}

.page-home .home-compare__no {
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--cyan);
}

.page-home .home-compare__row--on .home-compare__no {
  color: var(--signal);
}

.page-home .home-compare__name {
  font-size: 14.5px;
  color: var(--trace-light);
}

.page-home .home-compare__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 320px;
  margin-top: 4px;
}

.page-home .home-compare__shot {
  margin: 0;
  aspect-ratio: 5 / 6;
  max-width: 260px;
  border: 1px solid var(--rail-line);
  border-radius: var(--r-sm);
  background: #091320;
}

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

.page-home .home-compare__media {
  margin: 18px 0 0;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--rail-line);
  border-radius: var(--r-md);
  background: #091320;
}

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

/* ---------- 版本比对与留痕 ---------- */
.page-home .home-traces {
  margin-top: 56px;
}

.page-home .home-traces__title {
  margin: 8px 0 12px;
  font-size: clamp(21px, 4.6vw, 30px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--white);
}

.page-home .home-traces__desc {
  max-width: 60ch;
  color: var(--trace-light);
  font-size: 15px;
  line-height: 1.78;
}

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

.page-home .home-trace {
  position: relative;
  padding: 18px 18px 18px 22px;
  border: 1px solid var(--rail-line);
  border-left: 3px solid var(--signal);
  border-radius: var(--r-sm);
  background: rgba(18, 36, 59, 0.78);
}

.page-home .home-trace__no {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-home .home-trace__time {
  margin: 6px 0 8px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--trace);
}

.page-home .home-trace__name {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--white);
}

.page-home .home-trace__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--trace-light);
}

.page-home .home-traces__media {
  margin: 18px 0 0;
  aspect-ratio: 7 / 3;
  border: 1px solid var(--rail-line);
  border-radius: var(--r-md);
  background: #091320;
}

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

/* ---------- 面板状态与下一步 ---------- */
.page-home .home-panel {
  margin-top: 56px;
  padding: 26px 20px 28px;
  border: 1px solid var(--rail-line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(110% 100% at 6% 100%, rgba(255, 122, 47, 0.09), transparent 60%),
    rgba(13, 27, 45, 0.9);
}

.page-home .home-panel__title {
  margin: 8px 0 0;
  font-size: clamp(21px, 4.6vw, 30px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--white);
}

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

.page-home .home-state {
  display: grid;
  grid-template-columns: 12px minmax(0, auto);
  grid-template-areas:
    "dot name"
    ".   desc";
  column-gap: 10px;
  row-gap: 5px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--rail-line);
  border-radius: var(--r-sm);
  background: rgba(9, 19, 32, 0.72);
}

.page-home .home-state__dot {
  grid-area: dot;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  align-self: center;
}

.page-home .home-state--pending .home-state__dot {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.18);
}

.page-home .home-state--switched .home-state__dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(63, 208, 138, 0.18);
}

.page-home .home-state--archived .home-state__dot {
  background: var(--trace);
  box-shadow: 0 0 0 3px rgba(138, 155, 176, 0.18);
}

.page-home .home-state__name {
  grid-area: name;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

.page-home .home-state__desc {
  grid-area: desc;
  font-size: 14px;
  line-height: 1.7;
  color: var(--trace-light);
}

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

.page-home .home-panel__more {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--trace);
}

/* ---------- 平板 ---------- */
@media (min-width: 720px) {
  .page-home {
    --home-gap: 16px;
    --home-pad: 22px;
  }

  .page-home .home-hero {
    padding: 26px 0 32px;
  }

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

  .page-home .home-focus {
    grid-column: 1 / -1;
    padding: 28px 26px 24px;
  }

  .page-home .home-eval,
  .page-home .home-panel {
    padding: 30px 26px;
  }

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

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

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

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

/* ---------- 桌面 ---------- */
@media (min-width: 1024px) {
  .page-home {
    --home-gap: 18px;
    padding-top: 34px;
    padding-bottom: 96px;
  }

  .page-home .home-hero {
    padding: 22px 0 30px;
  }

  .page-home .home-hero h1 {
    max-width: 17em;
  }

  .page-home .home-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    margin-top: 44px;
  }

  .page-home .home-focus {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
    padding: 30px 28px 28px;
  }

  .page-home .home-entry--1 { grid-column: 8 / 13; grid-row: 1; }
  .page-home .home-entry--2 { grid-column: 8 / 13; grid-row: 2; }
  .page-home .home-entry--3 { grid-column: 1 / 7; grid-row: 3; }
  .page-home .home-entry--4 { grid-column: 7 / 13; grid-row: 3; }

  .page-home .home-eval {
    margin-top: 64px;
    padding: 34px 32px;
  }

  .page-home .home-compare,
  .page-home .home-traces,
  .page-home .home-panel {
    margin-top: 64px;
  }

  .page-home .home-compare__card {
    padding: 24px 22px 26px;
  }

  .page-home .home-compare__media {
    margin-top: 20px;
  }

  .page-home .home-panel {
    padding: 34px 32px 36px;
  }
}

/* ---------- 无障碍降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry {
    transition: none;
  }

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