.page-home {
  --home-pad: 1.15rem;
  background: var(--sea-900);
  color: var(--ice-050);
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.page-home a:focus-visible,
.page-home summary:focus-visible,
.page-home button:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: 1.9rem 0 0;
  background: linear-gradient(180deg, var(--sea-800) 0%, var(--sea-900) 78%);
  isolation: isolate;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  top: -14%;
  right: -18%;
  width: min(680px, 92%);
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 50%, rgba(46, 230, 214, 0.2), transparent 62%);
  z-index: -1;
  pointer-events: none;
}

.page-home .hero-context {
  display: inline-block;
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--cyan-200);
  border: 1px solid rgba(46, 230, 214, 0.28);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  background: rgba(7, 26, 43, 0.6);
}

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

.page-home .hero-intro {
  min-width: 0;
}

.page-home .hero-intro h1 {
  font-size: clamp(2rem, 8.2vw, 3.1rem);
  margin-top: 0.35rem;
}

.page-home .hero-lede {
  margin: 1rem 0 0;
  color: var(--mist-300);
  font-size: 1rem;
  line-height: 1.78;
}

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

.page-home .hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.7rem 0 0;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line-soft);
}

.page-home .hero-facts dt {
  font-size: 0.72rem;
  color: var(--gray-450);
  line-height: 1.4;
}

.page-home .hero-facts dd {
  margin: 0.35rem 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ice-050);
  letter-spacing: -0.01em;
}

.page-home .hero-steps {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: rgba(11, 37, 58, 0.72);
  padding: 1.15rem 1.05rem 0.5rem;
  min-width: 0;
}

.page-home .hero-steps-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--cyan-400);
  margin: 0 0 1rem;
}

.page-home .hero-steps .step {
  padding-bottom: 0.95rem;
}

.page-home .step-title {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ice-050);
  margin-bottom: 0.25rem;
}

.page-home .step-desc {
  display: block;
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--mist-300);
}

.page-home .hero-console {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(46, 230, 214, 0.34);
  border-radius: var(--radius-l);
  padding: 1.25rem 1.1rem 1.15rem;
  background:
    radial-gradient(120% 78% at 100% 0%, rgba(46, 230, 214, 0.17), transparent 58%),
    linear-gradient(165deg, var(--sea-700), var(--sea-800) 58%, var(--sea-900));
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(159, 247, 239, 0.16);
}

.page-home .hero-console::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: -1px;
  width: 3.2rem;
  height: 2px;
  background: var(--cyan-400);
  border-radius: 2px;
}

.page-home .hero-console h2 {
  font-size: clamp(1.35rem, 5.4vw, 1.75rem);
  margin-top: 0.7rem;
}

.page-home .console-text {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--mist-300);
}

.page-home .console-shot {
  margin: 1.05rem 0;
}

.page-home .console-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-s);
}

.page-home .console-btn {
  width: 100%;
  text-align: center;
}

.page-home .console-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--mist-300);
}

.page-home .console-dot {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.16);
}

.page-home .hero-shot {
  margin-top: 1.9rem;
  padding-bottom: 0.4rem;
}

.page-home .media-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .hero-shot .media-frame img {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
}

/* ---------- 通用章节 ---------- */
.page-home .home-section {
  padding: 2.9rem 0;
  position: relative;
}

.page-home .home-section--alt {
  background: linear-gradient(180deg, var(--sea-800), var(--sea-900));
}

.page-home .home-section .section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-section h2 {
  font-size: clamp(1.4rem, 5.6vw, 2rem);
  flex: 1 1 16rem;
}

.page-home .section-lede {
  margin: 1rem 0 0;
  color: var(--mist-300);
  font-size: 0.97rem;
  line-height: 1.78;
  max-width: 62ch;
}

/* ---------- 01 收藏 / 订阅导出 ---------- */
.page-home .save-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.3rem;
  margin-top: 1.5rem;
}

.page-home .save-copy {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: var(--sea-800);
  padding: 1.3rem 1.15rem;
  min-width: 0;
}

.page-home .save-lede {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.78;
  color: var(--mist-300);
}

.page-home .save-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.page-home .save-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--mist-300);
}

.page-home .save-list li strong {
  color: var(--ice-050);
  font-weight: 700;
}

.page-home .save-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(46, 230, 214, 0.12);
}

.page-home .save-btn {
  margin-top: 1.2rem;
}

.page-home .save-shot {
  margin: 0;
  min-width: 0;
}

.page-home .save-shot img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  border: 1px solid var(--line-soft);
}

/* ---------- 02 横向分类 ---------- */
.page-home .cat-visual {
  margin: 1.4rem 0 0;
}

.page-home .cat-visual img {
  aspect-ratio: 16 / 8.5;
  border-radius: var(--radius-m);
  border: 1px solid var(--line-soft);
}

.page-home .cat-rail-wrap {
  position: relative;
  margin-top: 1.5rem;
}

.page-home .cat-rail-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 1.4rem;
  width: 2.2rem;
  background: linear-gradient(90deg, rgba(7, 26, 43, 0), var(--sea-800));
  pointer-events: none;
}

.page-home .cat-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  margin-inline: calc(var(--home-pad) * -1);
  padding: 0.3rem var(--home-pad) 1.4rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page-home .cat-rail::-webkit-scrollbar {
  display: none;
}

.page-home .cat-card {
  flex: 0 0 15rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 12.5rem;
  padding: 1.1rem 1rem 1rem;
  background: var(--sea-800);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.page-home .cat-card:hover,
.page-home .cat-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(46, 230, 214, 0.55);
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.92);
}

.page-home .cat-num {
  font-size: 1.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--steel-500);
}

.page-home .cat-card h3 {
  font-size: 1.05rem;
  color: var(--ice-050);
}

.page-home .cat-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--mist-300);
  flex: 1 1 auto;
}

.page-home .cat-link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--cyan-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 230, 214, 0.4);
  padding-bottom: 0.1rem;
}

.page-home .cat-link:hover {
  color: var(--cyan-200);
  border-bottom-color: var(--cyan-200);
}

/* ---------- 03 维护记录 ---------- */
.page-home .log-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.page-home .log-meta {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: var(--sea-800);
  padding: 1.25rem 1.1rem;
}

.page-home .log-stamp {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--orange-500);
}

.page-home .log-text {
  margin: 0.7rem 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--mist-300);
}

.page-home .log-stack {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.page-home .log-details {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: var(--sea-800);
  padding: 0 1.1rem;
}

.page-home .log-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ice-050);
  list-style: none;
}

.page-home .log-details > summary::-webkit-details-marker {
  display: none;
}

.page-home .log-details > summary::after {
  content: "展开";
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cyan-400);
  border: 1px solid rgba(46, 230, 214, 0.4);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}

.page-home .log-details[open] > summary::after {
  content: "收起";
}

.page-home .log-list {
  list-style: none;
  margin: 0;
  padding: 0 0 1.1rem;
  display: grid;
  gap: 0.7rem;
  border-top: 1px solid var(--line-soft);
}

.page-home .log-list li {
  padding-top: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--mist-300);
  border-bottom: 1px dashed rgba(65, 98, 122, 0.35);
  padding-bottom: 0.7rem;
}

.page-home .log-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .log-timeline {
  display: grid;
  gap: 0.75rem;
}

.page-home .log-entry {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: baseline;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  background: rgba(18, 52, 79, 0.55);
  padding: 0.8rem 0.9rem;
}

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

.page-home .log-year {
  font-size: 0.82rem;
  color: var(--cyan-200);
  letter-spacing: 0.04em;
}

/* ---------- 04 移动端与本地 ---------- */
.page-home .home-section--local {
  padding-bottom: 3.2rem;
}

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

.page-home .mobile-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: var(--sea-800);
  padding: 1.3rem 1.15rem;
}

.page-home .mobile-panel h3 {
  font-size: 1.12rem;
  color: var(--ice-050);
}

.page-home .mobile-panel > p {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--mist-300);
}

.page-home .mobile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.15rem 0 0;
}

.page-home .mobile-stats > div {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  padding: 0.7rem 0.75rem;
  background: rgba(7, 26, 43, 0.55);
}

.page-home .mobile-stats dt {
  font-size: 0.72rem;
  color: var(--gray-450);
}

.page-home .mobile-stats dd {
  margin: 0.3rem 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--cyan-200);
}

.page-home .mobile-note {
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--gray-450);
}

.page-home .local-panel {
  border: 1px solid rgba(255, 138, 61, 0.42);
  border-radius: var(--radius-m);
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(255, 138, 61, 0.18), transparent 62%),
    linear-gradient(165deg, var(--sea-700), var(--sea-800));
  padding: 1.3rem 1.15rem;
}

.page-home .local-panel h3 {
  font-size: 1.12rem;
  color: var(--ice-050);
  margin-top: 0.75rem;
}

.page-home .local-panel > p {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--mist-300);
}

.page-home .local-rows {
  display: grid;
  gap: 0.6rem;
  margin: 1.1rem 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 138, 61, 0.28);
}

.page-home .local-row {
  display: grid;
  gap: 0.2rem;
}

.page-home .local-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gray-450);
}

.page-home .local-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ice-050);
  word-break: break-word;
}

.page-home .copy-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.page-home .copy-row .copy-btn {
  border: 1px solid rgba(46, 230, 214, 0.5);
  background: transparent;
  color: var(--cyan-200);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .copy-row .copy-btn:hover {
  background: rgba(46, 230, 214, 0.14);
  color: var(--ice-050);
}

.page-home .copy-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-400);
}

.page-home .local-note {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--gray-450);
  margin: 0 0 1rem;
}

.page-home .local-panel .btn--local {
  width: 100%;
  text-align: center;
}

.page-home .closing-strip {
  margin-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.1rem;
}

.page-home .closing-strip p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--mist-300);
}

.page-home .closing-strip a {
  color: var(--cyan-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 230, 214, 0.4);
}

.page-home .closing-strip a:hover {
  color: var(--cyan-200);
  border-bottom-color: var(--cyan-200);
}

/* ---------- 平板 ---------- */
@media (min-width: 700px) {
  .page-home .hero-facts dd {
    font-size: 1.2rem;
  }

  .page-home .cat-card {
    flex-basis: 16.5rem;
  }

  .page-home .log-entry {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

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

/* ---------- 桌面 ---------- */
@media (min-width: 960px) {
  .page-home .hero {
    padding-top: 2.6rem;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr) minmax(0, 1.14fr);
    gap: 1.75rem;
    align-items: start;
  }

  .page-home .hero-lede {
    max-width: 34ch;
  }

  .page-home .hero-console {
    margin-top: -0.85rem;
    padding: 1.5rem 1.4rem 1.35rem;
  }

  .page-home .hero-shot .media-frame img {
    aspect-ratio: 21 / 7;
  }

  .page-home .home-section {
    padding: 4rem 0;
  }

  .page-home .save-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.2rem;
    align-items: center;
  }

  .page-home .cat-visual img {
    aspect-ratio: 21 / 7;
  }

  .page-home .cat-card {
    flex-basis: 18rem;
  }

  .page-home .log-board {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 1.5rem;
    align-items: start;
  }

  .page-home .local-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
    gap: 1.4rem;
  }

  .page-home .local-panel .btn--local {
    width: auto;
  }

  .page-home .section-lede {
    font-size: 1.02rem;
  }
}

@media (min-width: 1200px) {
  .page-home .cat-rail {
    margin-inline: 0;
    padding-inline: 0;
  }

  .page-home .cat-rail-wrap::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .cat-card,
  .page-home .copy-row .copy-btn {
    transition: none;
  }

  .page-home .cat-card:hover,
  .page-home .cat-card:focus-within {
    transform: none;
  }
}
<<<END>>>
