.page-home {
  --home-pad-top: clamp(44px, 10vw, 104px);
  --home-pad-bottom: clamp(40px, 8vw, 88px);
  --home-section: clamp(46px, 9vw, 100px);
  --home-cover-glow:
    radial-gradient(120% 90% at 12% -10%, rgba(230, 0, 126, 0.18), transparent 58%),
    radial-gradient(95% 72% at 96% 6%, rgba(27, 77, 255, 0.16), transparent 62%);
  background-color: var(--ink);
  color: var(--ivory);
  overflow-x: hidden;
}

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

/* ---------- 页面上下文提示 ---------- */
.page-home__context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 12px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(244, 235, 220, 0.55);
  background-color: rgba(8, 17, 14, 0.6);
  border-bottom: var(--rule-soft);
}

.page-home__context .mono {
  color: var(--gold);
}

/* ---------- 封面首屏 ---------- */
.home-cover {
  position: relative;
  padding: var(--home-pad-top) 0 var(--home-pad-bottom);
  background-image: var(--home-cover-glow), linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  border-bottom: 1px solid rgba(62, 90, 78, 0.5);
}

.home-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(230, 0, 126, 0.9), rgba(212, 175, 55, 0.85) 45%, rgba(27, 77, 255, 0.75));
  opacity: 0.72;
}

.home-cover__inner {
  display: grid;
  gap: clamp(30px, 6vw, 56px);
}

.home-cover__kicker {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.home-cover__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 9.5vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.home-cover__neon {
  display: block;
  color: var(--gold-light);
  text-shadow:
    0 0 6px rgba(212, 175, 55, 0.65),
    0 0 24px rgba(212, 175, 55, 0.32),
    0 0 46px rgba(230, 0, 126, 0.18);
}

.home-cover__lede {
  margin: 22px 0 0;
  max-width: 30em;
  font-size: clamp(16px, 2.3vw, 19px);
  line-height: 1.8;
  color: rgba(244, 235, 220, 0.84);
}

.home-cover__annotation {
  display: none;
}

.home-cover__search {
  margin-top: 30px;
  padding: 14px 16px 16px;
  background-color: rgba(18, 36, 31, 0.78);
  border: var(--rule);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.1);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-home .home-cover__search .searchbar__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.page-home .home-cover__search .searchbar__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.page-home .home-cover__search .searchbar__field:focus-within {
  border-bottom-color: var(--magenta);
  box-shadow: 0 8px 20px -14px rgba(230, 0, 126, 0.95);
}

.page-home .home-cover__search .searchbar__glyph {
  color: var(--gold-light);
  font-size: 15px;
}

.page-home .home-cover__search .searchbar__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 2px;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ivory);
}

.page-home .home-cover__search .searchbar__input::placeholder {
  color: rgba(244, 235, 220, 0.42);
}

.page-home .home-cover__search .searchbar__hint {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244, 235, 220, 0.5);
}

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

.page-home .home-cover__figure .figure__frame {
  border: var(--rule);
  box-shadow: var(--shadow-lift);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .figure__cap {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244, 235, 220, 0.46);
}

/* ---------- 核心数据带 ---------- */
.home-band {
  padding: clamp(34px, 6vw, 62px) 0;
  background-image: linear-gradient(180deg, rgba(62, 90, 78, 0.3), rgba(14, 26, 23, 0));
  border-bottom: var(--rule-soft);
}

.home-band__strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 20px;
  margin-top: clamp(20px, 4vw, 36px);
}

.page-home .home-band__strip .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
}

.page-home .home-band__strip .stat__num {
  font-family: var(--font-mono);
  font-size: clamp(34px, 8vw, 58px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

.page-home .home-band__strip .stat:nth-child(2) .stat__num {
  color: var(--ivory);
}

.page-home .home-band__strip .stat:nth-child(4) .stat__num {
  color: var(--magenta);
  text-shadow: 0 0 18px rgba(230, 0, 126, 0.35);
}

.page-home .home-band__strip .stat__label {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 235, 220, 0.86);
}

.home-band__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: rgba(244, 235, 220, 0.5);
}

/* ---------- 三条入口 ---------- */
.home-paths {
  padding: var(--home-section) 0 clamp(30px, 6vw, 60px);
}

.home-paths__grid {
  display: grid;
  gap: 22px;
  margin-top: clamp(24px, 4vw, 42px);
}

.page-home .home-path {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.page-home .home-path:hover,
.page-home .home-path:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.62);
  box-shadow: var(--shadow-lift);
}

.home-path__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 1.32;
  color: var(--ivory);
}

.home-path__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(244, 235, 220, 0.7);
}

.home-path__more {
  align-self: flex-start;
  margin-top: 4px;
  padding-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.home-path__img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: var(--rule);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

/* ---------- 规则索引节选 ---------- */
.home-index {
  padding: var(--home-section) 0;
}

.home-index__list {
  margin: clamp(22px, 4vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-index__list .index-row {
  transition: background-color 200ms var(--ease);
}

.page-home .home-index__list .index-row:hover {
  background-color: rgba(62, 90, 78, 0.26);
}

.home-index__foot {
  margin: clamp(24px, 4vw, 36px) 0 0;
}

/* ---------- 版本与设备 ---------- */
.home-device {
  padding: var(--home-section) 0;
  background-image: linear-gradient(180deg, rgba(62, 90, 78, 0.22), rgba(14, 26, 23, 0));
  border-top: var(--rule-soft);
}

.home-device__grid {
  display: grid;
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
}

.home-device__text {
  margin: clamp(18px, 3vw, 26px) 0 0;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(244, 235, 220, 0.84);
}

.home-device__list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.home-device__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244, 235, 220, 0.74);
}

.home-device__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.home-device__cta {
  margin: 26px 0 0;
}

.page-home .home-device__figure,
.page-home .home-log__figure {
  margin: 0;
}

.page-home .home-device__figure .figure__frame,
.page-home .home-log__figure .figure__frame {
  border: var(--rule);
  box-shadow: var(--shadow-lift);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

/* ---------- 更新记录 ---------- */
.home-log {
  padding: var(--home-section) 0;
}

.home-log__grid {
  display: grid;
  gap: clamp(30px, 5vw, 56px);
}

.home-log__list {
  display: grid;
  gap: 14px;
  margin: clamp(22px, 4vw, 34px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-log__item {
  padding: 20px 22px;
  box-shadow: inset 3px 0 0 rgba(212, 175, 55, 0.7);
}

.home-log__when {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--magenta);
}

.home-log__name {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.42;
  color: var(--ivory);
}

.home-log__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(244, 235, 220, 0.72);
}

.home-log__foot {
  margin: 24px 0 0;
}

/* ---------- 收尾 ---------- */
.home-close {
  padding: clamp(52px, 10vw, 116px) 0 clamp(60px, 11vw, 130px);
  text-align: center;
  border-top: var(--rule);
  background-image:
    radial-gradient(80% 100% at 50% 0%, rgba(230, 0, 126, 0.13), transparent 62%),
    linear-gradient(180deg, rgba(14, 26, 23, 0), rgba(8, 17, 14, 0.88));
}

.home-close__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.home-close__text {
  margin: 18px auto 0;
  max-width: 34em;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.8;
  color: rgba(244, 235, 220, 0.86);
}

.home-close__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 30px 0 0;
}

/* ---------- 平板与桌面增强 ---------- */
@media (min-width: 780px) {
  .home-band__strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 32px;
  }
}

@media (min-width: 860px) {
  .home-paths__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 26px;
  }

  .home-paths__grid > .home-path:nth-child(2) {
    margin-top: 34px;
  }

  .home-paths__grid > .home-path:nth-child(3) {
    margin-top: 68px;
  }

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

@media (min-width: 920px) {
  .home-cover__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }

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

  .home-log__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

@media (min-width: 1400px) {
  .home-cover__annotation {
    display: block;
    position: absolute;
    top: 50%;
    right: clamp(8px, 1.4vw, 22px);
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.34em;
    color: rgba(212, 175, 55, 0.6);
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-path,
  .page-home .home-index__list .index-row,
  .page-home .home-cover__search .searchbar__field {
    transition: none;
  }

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