.page-home {
  --home-panel: linear-gradient(165deg, rgba(27, 42, 91, 0.92), rgba(17, 26, 62, 0.92));
  --home-grid-line: rgba(232, 240, 255, 0.06);
  background:
    radial-gradient(110% 70% at 88% -12%, rgba(34, 211, 238, 0.16), transparent 62%),
    radial-gradient(90% 60% at 0% 4%, rgba(255, 176, 32, 0.11), transparent 58%),
    var(--ink-900);
  color: var(--mint);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.page-home h2 {
  font-size: clamp(1.55rem, 4.6vw, 2.4rem);
  line-height: 1.3;
  margin: 0.5rem 0 0;
  color: var(--mint);
}

.page-home h3 {
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0;
  color: var(--mint);
}

.page-home a {
  color: var(--mint);
  text-decoration: none;
}

.page-home .lede {
  color: var(--mist);
  font-size: 0.98rem;
  line-height: 1.78;
  max-width: 32em;
  margin: 0.9rem 0 0;
}

.page-home .section-head {
  max-width: 46rem;
}

.page-home .section {
  position: relative;
  padding: 3rem 0;
}

.page-home .section + .section {
  border-top: 1px solid var(--line);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  padding: 1.5rem 0 2.5rem;
}

.page-home .crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .crumbs a {
  color: var(--gray, var(--mist));
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.page-home .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.page-home .hero-copy .display {
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: 0.04em;
  margin: 0.75rem 0 0;
  color: var(--mint);
}

.page-home .hero-copy .display::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  border-radius: 999px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.page-home .hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2rem;
  margin: 1.6rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
}

.page-home .hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.page-home .fact-num {
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.page-home .fact-label {
  font-size: 0.78rem;
  color: var(--mist);
  letter-spacing: 0.04em;
}

.page-home .hero-visual {
  position: relative;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--home-panel);
  overflow: hidden;
}

.page-home .hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-home .hero-visual img {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 0.55rem);
  object-fit: cover;
}

.page-home .hero-visual .media-frame-caption {
  position: relative;
  margin: 0.6rem 0.25rem 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.page-home .status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-top: 1.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0.25rem rgba(52, 211, 153, 0.14);
}

.page-home .status-sep {
  display: none;
  width: 1px;
  height: 0.9em;
  background: var(--line-strong);
}

/* ---------- 版本差异 ---------- */
.page-home .diff-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  margin-top: 2rem;
}

.page-home .diff-col {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-800);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-home .diff-col:hover,
.page-home .diff-col:focus-within {
  border-color: var(--cyan);
}

.page-home .diff-col--new {
  background: var(--home-panel);
  border-color: rgba(255, 176, 32, 0.34);
}

.page-home .diff-col--new:hover,
.page-home .diff-col--new:focus-within {
  border-color: var(--gold);
}

.page-home .diff-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px dashed var(--line);
}

.page-home .diff-list {
  margin: 0;
  display: grid;
  gap: 0.95rem;
}

.page-home .diff-list dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .diff-col--new .diff-list dt {
  color: var(--gold);
}

.page-home .diff-list dd {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--mint);
}

.page-home .diff-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0;
}

.page-home .diff-figure {
  margin: 1.5rem 0 0;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-800);
}

.page-home .diff-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.page-home .diff-figure .media-frame-caption {
  margin: 0.6rem 0.25rem 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* ---------- 公告时间轴 ---------- */
.page-home .timeline {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.75rem;
  padding: 0.9rem 0.15rem 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(232, 240, 255, 0.28) transparent;
  scrollbar-width: thin;
}

.page-home .timeline::-webkit-scrollbar {
  height: 6px;
}

.page-home .timeline::-webkit-scrollbar-thumb {
  background: rgba(232, 240, 255, 0.2);
  border-radius: 999px;
}

.page-home .notice-card {
  position: relative;
  flex: 0 0 82%;
  min-width: 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.35rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-800);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.page-home .notice-card::before {
  content: "";
  position: absolute;
  top: -0.36rem;
  left: 1.2rem;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0.28rem rgba(34, 211, 238, 0.13);
}

.page-home .notice-card--current {
  background: var(--home-panel);
  border-color: rgba(255, 90, 95, 0.4);
}

.page-home .notice-card--current::before {
  background: var(--gold);
  box-shadow: 0 0 0 0.28rem rgba(255, 176, 32, 0.16);
}

.page-home .notice-card:hover,
.page-home .notice-card:focus-within {
  border-color: var(--cyan);
}

.page-home .notice-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-home .notice-date {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.page-home .notice-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .notice-link {
  align-self: flex-start;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--gold);
  border-bottom: 1px solid rgba(255, 176, 32, 0.45);
  padding-bottom: 0.1rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.page-home .timeline-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.page-home .timeline-hint {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--mist);
  margin: 0;
}

/* ---------- 检索对比 ---------- */
.page-home .search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.page-home .search-terms-wrap {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--glass);
}

.page-home .search-label {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.page-home .search-terms {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.page-home .term {
  display: inline-block;
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--mint);
  background: rgba(34, 211, 238, 0.06);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-home .term:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.14);
}

.page-home .search-note {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .search-panel {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-800);
}

.page-home .search-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.page-home .search-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.page-home .search-table caption {
  text-align: left;
  padding-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.page-home .search-table th {
  padding: 0.5rem 0.6rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--mist);
  border-bottom: 1px solid var(--line-strong);
}

.page-home .search-table td {
  padding: 0.72rem 0.6rem;
  vertical-align: top;
  line-height: 1.6;
  color: var(--mint);
  border-bottom: 1px solid var(--line);
}

.page-home .search-table td.mono {
  color: var(--cyan);
  font-size: 0.78rem;
}

.page-home .search-table tbody tr {
  transition: background 0.2s var(--ease);
}

.page-home .search-table tbody tr:hover {
  background: rgba(34, 211, 238, 0.07);
}

.page-home .search-figure {
  margin: 1.4rem 0 0;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-800);
}

.page-home .search-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.page-home .search-figure .media-frame-caption {
  margin: 0.6rem 0.25rem 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .search-actions {
  margin-top: 1.25rem;
}

/* ---------- 内容路径索引 ---------- */
.page-home .path-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.page-home .path-list .index-item {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.4rem 0.9rem;
  padding: 1.15rem 0.2rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}

.page-home .path-list .index-item:hover {
  background: rgba(232, 240, 255, 0.03);
}

.page-home .index-num {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 0.2rem;
}

.page-home .index-body h3 a {
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.page-home .index-body p {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--mist);
  max-width: 34em;
}

.page-home .index-meta {
  grid-column: 2;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* ---------- 客服支持 ---------- */
.page-home .support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.page-home .support-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.page-home .support-list li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--line);
}

.page-home .support-key {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .support-val {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--mint);
  word-break: break-word;
}

.page-home .support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.page-home .support-card {
  padding: 1.4rem 1.25rem;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius-md);
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.1), rgba(17, 26, 62, 0.92) 55%),
    var(--ink-800);
}

.page-home .support-card h3 {
  font-size: 1.15rem;
}

.page-home .support-card p {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .support-bullets {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.page-home .support-bullets li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--mint);
}

.page-home .support-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
}

.page-home .support-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.84rem;
  color: var(--cyan);
  border-bottom: 1px solid rgba(34, 211, 238, 0.45);
  padding-bottom: 0.1rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .support-link:hover,
.page-home .support-link:focus-visible {
  color: var(--mint);
  border-bottom-color: var(--gold);
}

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

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .page-home .status-sep {
    display: block;
  }

  .page-home .notice-card {
    flex: 0 0 58%;
  }

  .page-home .path-list .index-item {
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    align-items: start;
    padding: 1.3rem 0.4rem;
  }

  .page-home .index-meta {
    grid-column: 3;
    text-align: right;
    padding-top: 0.25rem;
  }
}

@media (min-width: 900px) {
  .page-home .section {
    padding: 4.5rem 0;
  }

  .page-home .hero {
    padding: 2.25rem 0 3.25rem;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 2.5rem;
  }

  .page-home .diff-split {
    grid-template-columns: minmax(0, 1fr) 2.6rem minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }

  .page-home .diff-bridge {
    position: relative;
  }

  .page-home .diff-bridge::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 90, 95, 0.55), transparent);
  }

  .page-home .diff-bridge .tag {
    position: relative;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.22em;
    padding: 0.55rem 0.22rem;
    background: var(--ink-900);
  }

  .page-home .notice-card {
    flex: 0 0 20rem;
  }

  .page-home .search-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1.5rem;
    align-items: start;
  }

  .page-home .support-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2.5rem;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .page-home .hero-grid {
    gap: 3.5rem;
  }

  .page-home .notice-card {
    flex: 0 0 21.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.page-home {
  --gray: currentColor;
}
