.page-home {
  --home-pad: clamp(46px, 7vw, 86px);
  --home-panel: linear-gradient(158deg, rgba(18, 40, 61, 0.96), rgba(11, 28, 44, 0.98));
  display: block;
  overflow-x: hidden;
}

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

.page-home figure {
  margin: 0;
}

/* ---------- 首屏 ---------- */
.page-home .hero-home {
  position: relative;
  padding: clamp(22px, 4vw, 40px) 0 clamp(28px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(130% 100% at 96% -12%, rgba(217, 164, 65, 0.20), transparent 56%),
    radial-gradient(120% 92% at -12% 108%, rgba(95, 169, 138, 0.18), transparent 58%);
}

.page-home .hero-grid {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
  margin-top: clamp(18px, 3vw, 30px);
}

.page-home .hero-kicker {
  margin: 0;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.page-home .hero-copy h1 {
  margin: 12px 0 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(30px, 8.2vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.022em;
  color: var(--body);
}

.page-home .hero-lede {
  max-width: 40em;
  margin: 18px 0 0;
  color: var(--mist);
  font-size: clamp(15px, 3.6vw, 17.5px);
  line-height: 1.78;
}

.page-home .hero-actions {
  margin-top: 22px;
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  clip-path: var(--notch);
}

.page-home .hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 16px;
  background: var(--ink);
}

.page-home .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(19px, 4.6vw, 25px);
  color: var(--amber);
  line-height: 1.1;
}

.page-home .stat-cap {
  font-size: 12.5px;
  color: var(--mist);
  line-height: 1.5;
}

/* 章节预览 */
.page-home .chapter-wrap {
  align-self: start;
}

.page-home .chapter-heading {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--celadon);
  text-transform: uppercase;
}

.page-home .chapter-preview {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  clip-path: var(--notch);
}

.page-home .chapter-preview > li {
  background: var(--ink);
}

.page-home .chapter-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  padding: 14px 18px;
  color: inherit;
  text-decoration: none;
  transition: background 0.3s var(--ease);
}

.page-home .chapter-link:hover,
.page-home .chapter-link:focus-visible {
  background: rgba(217, 164, 65, 0.09);
}

.page-home .chapter-idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  line-height: 1.6;
}

.page-home .chapter-t {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--body);
  line-height: 1.5;
}

.page-home .chapter-d {
  grid-column: 2;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
}

.page-home .hero-visual {
  position: relative;
  margin-top: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  background: var(--midnight);
  clip-path: var(--notch);
  overflow: hidden;
}

.page-home .hero-visual img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.page-home .media-caption {
  padding: 12px 16px 14px;
  font-size: 13px;
  color: var(--mist);
  line-height: 1.6;
}

/* ---------- 通用区块 ---------- */
.page-home .home-block {
  position: relative;
  padding: var(--home-pad) 0;
  border-bottom: 1px solid var(--line);
}

.page-home .home-block::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(60px, 12vw, 140px);
  height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(217, 164, 65, 0));
}

.page-home .home-block h2 {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(23px, 5.4vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--body);
}

.page-home .home-block h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(17px, 4vw, 20px);
  line-height: 1.4;
  color: var(--body);
}

.page-home .entry-grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(24px, 3.4vw, 38px);
}

/* ---------- 内容中心三块 ---------- */
.page-home .entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  background: var(--home-panel);
  clip-path: var(--notch);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.page-home .entry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), rgba(217, 164, 65, 0));
}

.page-home .entry-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.page-home .entry-count {
  margin: 0;
  font-size: clamp(20px, 4.6vw, 26px);
  color: var(--amber);
  opacity: 0.68;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-home .entry-card:hover .entry-count,
.page-home .entry-card:focus-within .entry-count {
  opacity: 1;
  transform: translateY(-2px);
}

.page-home .entry-card p {
  margin: 0;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.78;
}

.page-home .entry-meta {
  font-size: 12.5px;
  color: var(--celadon);
  letter-spacing: 0.02em;
}

.page-home .entry-link {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 2px;
  color: var(--amber-soft);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 201, 120, 0.45);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .entry-link:hover,
.page-home .entry-link:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
}

/* ---------- 修复公告 ---------- */
.page-home .filter-bar {
  flex-wrap: wrap;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-home .fix-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .fix-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(217, 164, 65, 0.75);
  background: var(--midnight);
  clip-path: var(--notch);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.page-home .fix-item:hover {
  background: rgba(31, 58, 82, 0.72);
}

.page-home .fix-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .fix-head h3 {
  font-size: clamp(16px, 3.8vw, 18.5px);
}

.page-home .fix-line {
  display: flex;
  gap: 10px;
  margin: 0;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.75;
}

.page-home .fix-key {
  flex: 0 0 auto;
  min-width: 30px;
  color: var(--celadon);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.06em;
}

.page-home .fix-foot {
  display: grid;
  gap: 22px;
  margin-top: clamp(28px, 4vw, 42px);
}

.page-home .fix-visual {
  border: 1px solid var(--line);
  background: var(--midnight);
  clip-path: var(--notch);
  overflow: hidden;
}

.page-home .fix-visual img {
  width: 100%;
  aspect-ratio: 11 / 7;
  object-fit: cover;
}

.page-home .fix-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(95, 169, 138, 0.14), rgba(11, 28, 44, 0.9) 62%);
  clip-path: var(--notch);
}

.page-home .fix-cta p {
  margin: 0;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.78;
}

.page-home .fix-cta .cluster {
  margin-top: 4px;
}

/* ---------- 入口对照 ---------- */
.page-home .entry-steps {
  display: grid;
  gap: 12px;
  margin: clamp(24px, 3.4vw, 38px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: entrystep;
}

.page-home .entry-step {
  position: relative;
  padding: 20px 20px 18px 66px;
  border: 1px solid var(--line);
  background: var(--home-panel);
  clip-path: var(--notch);
}

.page-home .entry-step::before {
  counter-increment: entrystep;
  content: "0" counter(entrystep);
  position: absolute;
  left: 22px;
  top: 21px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--amber);
}

.page-home .entry-step::after {
  content: "";
  position: absolute;
  left: 44px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(217, 164, 65, 0.55), rgba(217, 164, 65, 0));
}

.page-home .entry-step h3 {
  font-size: clamp(16px, 3.9vw, 18.5px);
}

.page-home .entry-step p {
  margin: 8px 0 0;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.78;
}

.page-home .entry-links {
  margin-top: clamp(22px, 3vw, 30px);
}

/* ---------- 移动端提示 ---------- */
.page-home .mobile-split {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-home .nav-details {
  margin-top: 22px;
  padding: 2px 18px 4px;
  border: 1px solid var(--line);
  background: var(--midnight);
  clip-path: var(--notch);
}

.page-home .nav-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--body);
}

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

.page-home .nav-details summary::after {
  content: "展开";
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--celadon);
}

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

.page-home .nav-checks {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.page-home .nav-checks li {
  position: relative;
  padding-left: 24px;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.75;
}

.page-home .nav-checks li::before {
  content: "›";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--amber);
  font-size: 16px;
}

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

.page-home .mobile-shot {
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--line);
  background: var(--midnight);
  clip-path: var(--notch);
  overflow: hidden;
}

.page-home .mobile-shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- 快捷入口 ---------- */
.page-home .lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
  gap: 12px;
  margin-top: clamp(24px, 3.4vw, 36px);
}

.page-home .lib-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--midnight);
  clip-path: var(--notch);
}

.page-home .lib-card p {
  margin: 0;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.75;
}

.page-home .lib-count {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.03em;
}

.page-home .topic-row {
  margin-top: clamp(26px, 3.6vw, 40px);
  padding: 22px 20px 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(155deg, rgba(217, 164, 65, 0.10), rgba(11, 28, 44, 0.92) 58%);
  clip-path: var(--notch);
}

.page-home .topic-row-title {
  margin: 0 0 14px;
  font-size: clamp(16px, 3.9vw, 18.5px);
}

.page-home .topic-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .topic-list li {
  background: rgba(11, 28, 44, 0.86);
}

.page-home .topic-list a {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
  transition: background 0.28s var(--ease);
}

.page-home .topic-list a:hover,
.page-home .topic-list a:focus-visible {
  background: rgba(217, 164, 65, 0.09);
}

.page-home .topic-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--body);
}

.page-home .topic-desc {
  font-size: 13.5px;
  color: var(--mist);
  line-height: 1.65;
}

.page-home .topic-actions {
  margin-top: 18px;
}

/* ---------- 尾部视觉带 ---------- */
.page-home .home-band {
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.page-home .home-band img {
  width: 100%;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  opacity: 0.42;
}

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

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

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
  }

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

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

  .page-home .fix-foot {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

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

  .page-home .mobile-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .page-home .mobile-shot {
    margin-left: auto;
  }
}

@media (min-width: 1180px) {
  .page-home .topic-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 26px;
    align-items: start;
  }

  .page-home .topic-row-title {
    grid-column: 1;
    margin-bottom: 0;
  }

  .page-home .topic-list {
    grid-column: 2;
  }

  .page-home .topic-actions {
    grid-column: 1;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-card,
  .page-home .entry-count,
  .page-home .chapter-link,
  .page-home .topic-list a {
    transition: none;
  }

  .page-home .entry-card:hover {
    transform: none;
  }
}
