.page-home {
  --home-gap: clamp(12px, 1.6vw, 20px);
  display: block;
}

.page-home .home-context {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 26px) var(--pad) 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.page-home .home-context .ctx-now {
  color: var(--cyan);
}

.page-home .home-context .ctx-sep {
  color: var(--line);
}

.page-home .home-context .ctx-note {
  color: var(--ice);
  opacity: 0.7;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 46px) var(--pad) clamp(40px, 6vw, 76px);
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}

.page-home .hero-trace {
  display: none;
}

.page-home .home-hero h1 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--paper);
}

.page-home .home-hero h1::after {
  content: "";
  display: block;
  width: clamp(64px, 12vw, 140px);
  height: 3px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.page-home .hero-lede {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: clamp(15.5px, 1.4vw, 18px);
  line-height: 1.78;
  color: var(--paper);
  opacity: 0.84;
}

.page-home .hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ice);
}

.page-home .hero-facts li {
  position: relative;
  padding-left: 15px;
}

.page-home .hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-home .home-hero-console {
  display: grid;
  gap: var(--home-gap);
}

.page-home .hero-shot {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--console);
  clip-path: var(--chamfer-panel);
}

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

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

.page-home .console-key {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  text-decoration: none;
  color: var(--paper);
  background: linear-gradient(115deg, rgba(77, 227, 224, 0.14), rgba(13, 31, 51, 0.92) 42%, rgba(13, 31, 51, 0.98));
  border: 1px solid var(--line);
  clip-path: var(--chamfer-btn);
  transition: transform var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.page-home .console-key::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}

.page-home .console-key:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.page-home .console-key:hover::after,
.page-home .console-key:focus-visible::after {
  opacity: 1;
}

.page-home .console-key:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.page-home .key-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-home .key-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.page-home .key-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.page-home .key-sub {
  font-size: 12.5px;
  color: var(--ice);
  opacity: 0.72;
}

.page-home .key-arrow {
  color: var(--cyan);
  font-size: 16px;
  transition: transform var(--fast) var(--ease);
}

.page-home .console-key:hover .key-arrow {
  transform: translateX(3px);
}

/* ---------- 通用章节 ---------- */
.page-home .home-section {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) var(--pad);
}

.page-home .home-section-head {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 3vw, 28px);
}

.page-home .head-visual {
  margin: 0;
}

.page-home .head-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  clip-path: var(--chamfer-panel);
  object-fit: cover;
}

.page-home .text-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 227, 224, 0.45);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.page-home .text-link:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.page-home .text-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 版本情报带 ---------- */
.page-home .feed-list {
  list-style: none;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .feed-row {
  display: grid;
  gap: 6px 18px;
  padding: 13px 16px;
  background: linear-gradient(100deg, var(--console), rgba(13, 31, 51, 0.42));
  border-left: 2px solid var(--line);
  transition: border-color var(--fast) var(--ease);
}

.page-home .feed-row:hover {
  border-left-color: var(--cyan);
}

.page-home .feed-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .feed-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ice);
  border: 1px solid var(--line);
  padding: 1px 6px;
}

.page-home .feed-cfg {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ice);
  opacity: 0.78;
}

.page-home .feed-ver {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan);
  opacity: 0.9;
  white-space: nowrap;
}

.page-home .feed-code {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.page-home .code-num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid rgba(246, 196, 83, 0.45);
  padding: 3px 8px;
  transition: text-shadow var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.page-home .code-tip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
  white-space: nowrap;
}

.page-home .feed-code:hover .code-num,
.page-home .feed-code:focus-visible .code-num {
  text-shadow: 0 0 10px rgba(246, 196, 83, 0.8);
  border-color: var(--amber);
}

.page-home .feed-code:hover .code-tip,
.page-home .feed-code:focus-visible .code-tip {
  opacity: 1;
  transform: none;
}

.page-home .feed-code:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-home .feed-foot {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ice);
  opacity: 0.86;
}

/* ---------- 收藏栏目 ---------- */
.page-home .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(22px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ice);
  border: 1px solid var(--line);
  background: rgba(13, 31, 51, 0.6);
  padding: 6px 12px;
  clip-path: var(--chamfer-btn);
}

.page-home .collect-grid {
  list-style: none;
  margin: clamp(16px, 2vw, 22px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .collect-item {
  display: grid;
  gap: 8px;
  padding: 11px;
  background: rgba(13, 31, 51, 0.75);
  border: 1px solid var(--line);
  clip-path: var(--chamfer-btn);
  transition: transform var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.page-home .collect-item:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.page-home .collect-item:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.page-home .ci-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(77, 227, 224, 0.16), rgba(7, 17, 31, 0.92) 55%, rgba(246, 196, 83, 0.14));
}

.page-home .ci-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
  color: var(--paper);
  opacity: 0.9;
}

.page-home .ci-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .ci-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--gold);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.page-home .collect-item:hover .ci-meta,
.page-home .collect-item:focus-visible .ci-meta {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .page-home .ci-meta {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 旧版入口 ---------- */
.page-home .legacy-panel {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  padding: clamp(22px, 4vw, 44px);
  background:
    radial-gradient(130% 100% at 100% 0, rgba(77, 227, 224, 0.16), transparent 62%),
    var(--wine);
  clip-path: var(--chamfer-panel);
}

.page-home .legacy-copy p {
  max-width: 46em;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--paper);
  opacity: 0.88;
}

.page-home .legacy-list {
  list-style: none;
  margin: 20px 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--paper);
}

.page-home .legacy-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.page-home .legacy-list .mono {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.page-home .legacy-visual {
  margin: 0;
}

.page-home .legacy-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(233, 242, 245, 0.18);
}

/* ---------- 维护与反馈 ---------- */
.page-home .trust-grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 32px);
  grid-template-columns: 1fr;
}

.page-home .trust-card {
  padding: clamp(18px, 2.4vw, 26px);
  background: rgba(13, 31, 51, 0.72);
  border-top: 2px solid var(--line);
  transition: border-color var(--fast) var(--ease);
}

.page-home .trust-card--cyan {
  border-top-color: var(--cyan);
}

.page-home .trust-card--gold {
  border-top-color: var(--gold);
}

.page-home .trust-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .trust-card p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.76;
  color: var(--paper);
  opacity: 0.84;
}

.page-home .trust-note {
  color: var(--gold) !important;
  opacity: 0.9 !important;
  font-family: var(--font-mono);
  font-size: 12.5px !important;
}

.page-home .trust-contact {
  font-family: var(--font-mono);
  font-size: 13px !important;
  color: var(--amber) !important;
  opacity: 1 !important;
  word-break: break-all;
}

.page-home .trust-links {
  font-size: 14px !important;
}

.page-home .trust-foot {
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  font-size: 14px;
  color: var(--ice);
  opacity: 0.86;
}

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

@media (min-width: 780px) {
  .page-home .feed-row {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr) auto auto;
    align-items: center;
  }
}

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

@media (min-width: 880px) {
  .page-home .legacy-panel {
    grid-template-columns: repeat(16, 1fr);
    column-gap: 24px;
    align-items: center;
  }

  .page-home .legacy-copy {
    grid-column: 1 / span 9;
  }

  .page-home .legacy-visual {
    grid-column: 11 / span 6;
  }
}

@media (min-width: 940px) {
  .page-home .home-hero {
    grid-template-columns: repeat(16, 1fr);
    column-gap: 20px;
    align-items: start;
  }

  .page-home .home-hero-copy {
    grid-column: 1 / span 9;
    position: relative;
    z-index: 1;
  }

  .page-home .home-hero-console {
    grid-column: 11 / span 6;
    margin-top: clamp(0px, 3vw, 48px);
    position: relative;
    z-index: 2;
  }

  .page-home .hero-trace {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 220px;
    opacity: 0.32;
    pointer-events: none;
    z-index: 0;
  }

  .page-home .hero-trace path {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 1.2;
    stroke-dasharray: 6 10;
  }

  .page-home .home-section-head {
    grid-template-columns: repeat(16, 1fr);
    column-gap: 20px;
    align-items: end;
  }

  .page-home .head-text {
    grid-column: 1 / span 9;
  }

  .page-home .head-visual {
    grid-column: 11 / span 6;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .console-key,
  .page-home .collect-item,
  .page-home .feed-row,
  .page-home .key-arrow,
  .page-home .ci-meta,
  .page-home .code-num,
  .page-home .code-tip {
    transition: none;
  }

  .page-home .console-key:hover,
  .page-home .collect-item:hover {
    transform: none;
  }

  .page-home .console-key:hover .key-arrow {
    transform: none;
  }
}
