.page-home .home-top {
  padding-top: 18px;
}

/* ---------- 首屏拼贴 ---------- */
.page-home .home-hero {
  padding-top: 16px;
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

.page-home .hero-cell {
  position: relative;
  border: 2px solid var(--blue);
  background: var(--white);
  box-shadow: var(--shadow-deep);
  padding: 20px;
  min-width: 0;
}

.page-home .hero-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 44px);
  background: var(--blue-deep);
  color: var(--white);
  overflow: hidden;
}

.page-home .hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #7FB3E0;
  opacity: 0.14;
  pointer-events: none;
}

.page-home .hero-main > *:not(.hero-circuit) {
  position: relative;
  z-index: 1;
}

.page-home .hero-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.page-home .hero-title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(32px, 7.5vw, 64px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.page-home .hero-lead {
  margin: 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.75;
  color: #D3E3F3;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.page-home .hero-main .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.page-home .hero-main .btn--ghost:hover,
.page-home .hero-main .btn--ghost:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
}

.page-home .hero-status {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--ice);
}

.page-home .status-head {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
}

.page-home .status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .status-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.page-home .status-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .status-key {
  font-size: 12px;
  color: var(--gray);
  flex: 0 0 auto;
}

.page-home .status-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-deep);
  text-align: right;
}

.page-home .status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: homeBreathe 2s ease-in-out infinite;
}

@keyframes homeBreathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.page-home .hero-visual {
  padding: 0;
  overflow: hidden;
  min-height: 180px;
}

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

.page-home .hero-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-home .hero-panel:hover,
.page-home .hero-panel:focus-within {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 0 var(--blue);
  border-color: var(--orange);
}

.page-home .hero-panel--register {
  border-color: var(--orange);
}

.page-home .hero-panel--library {
  background: var(--mist);
}

.page-home .panel-tag {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.page-home .panel-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.page-home .panel-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
}

.page-home .panel-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  align-self: flex-start;
}

.page-home .panel-link::after {
  content: " →";
  color: var(--orange);
}

.page-home .panel-link:hover,
.page-home .panel-link:focus-visible {
  border-bottom-color: var(--orange);
}

/* ---------- 章节标题通用 ---------- */
.page-home .section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 46em;
}

.page-home .section-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

.page-home .section-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
}

.page-home .inline-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
}

.page-home .inline-link:hover,
.page-home .inline-link:focus-visible {
  border-bottom-color: var(--orange);
}

/* ---------- 门类带 ---------- */
.page-home .cat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .cat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  min-width: 0;
  border: 2px solid var(--blue);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-home .cat-item:hover,
.page-home .cat-item:focus-visible {
  transform: translate(-4px, -4px);
  border-color: var(--orange);
  box-shadow: 8px 8px 0 0 var(--blue);
}

.page-home .cat-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.page-home .cat-meta {
  margin: 0;
  font-size: 13px;
  color: var(--gray);
}

.page-home .cat-meta .mono {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue);
}

.page-home .cat-scene {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .cat-date {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray);
}

/* ---------- 双通道表格 ---------- */
.page-home .table-scroll {
  overflow-x: auto;
}

.page-home .channel-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  border: 2px solid var(--blue);
  font-size: 15px;
  background: var(--white);
}

.page-home .channel-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.page-home .channel-table th,
.page-home .channel-table td {
  border: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.page-home .channel-table thead th {
  background: var(--blue-deep);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.page-home .channel-table tbody th {
  width: 24%;
  background: var(--ice);
  color: var(--blue-deep);
  font-weight: 700;
}

.page-home .table-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
}

.page-home .table-link:hover,
.page-home .table-link:focus-visible {
  border-bottom-color: var(--orange);
}

.page-home .banner-figure {
  margin: 28px 0 0;
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-deep);
  background: var(--white);
}

.page-home .banner-figure img,
.page-home .flow-media img,
.page-home .help-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .figure__caption {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
  border-top: 1px solid var(--line);
}

/* ---------- 流程 ---------- */
.page-home .flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.page-home .flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .flow-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.page-home .flow-step:first-child {
  border-top: 2px solid var(--blue);
}

.page-home .flow-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.2;
}

.page-home .flow-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.page-home .flow-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
}

.page-home .flow-media {
  margin: 0;
  border: 2px solid var(--blue);
  background: var(--white);
  align-self: start;
}

/* ---------- 更新与索引 ---------- */
.page-home .updates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.page-home .timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 3px solid var(--line);
}

.page-home .timeline li {
  position: relative;
  padding-bottom: 22px;
}

.page-home .timeline li:last-child {
  padding-bottom: 0;
}

.page-home .timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border: 2px solid var(--white);
}

.page-home .timeline-date {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.page-home .timeline-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.45;
}

.page-home .timeline-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
}

.page-home .updates-more {
  margin: 26px 0 0;
}

.page-home .home-index {
  border: 2px solid var(--blue);
  background: var(--ice);
  padding: 18px;
  align-self: start;
}

.page-home .home-index__title {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
}

.page-home .home-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .home-index__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-left: 3px solid transparent;
}

.page-home .home-index__link .mono {
  font-size: 12px;
  color: var(--gray);
}

.page-home .home-index__link:hover,
.page-home .home-index__link:focus-visible {
  border-left-color: var(--orange);
  background: var(--white);
}

.page-home .home-index__link[aria-current="true"] {
  border-left-color: var(--orange);
  background: var(--white);
  font-weight: 700;
}

.page-home .home-index__top {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
}

/* ---------- 老用户 ---------- */
.page-home .help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.page-home .help-figure {
  margin: 0;
  border: 2px solid var(--blue);
  background: var(--white);
  box-shadow: var(--shadow-deep);
}

.page-home .help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .help-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  min-width: 0;
  border: 2px solid var(--blue);
  background: var(--white);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-home .help-card:hover,
.page-home .help-card:focus-within {
  transform: translate(-4px, -4px);
  border-color: var(--orange);
  box-shadow: 8px 8px 0 0 var(--blue);
}

.page-home .help-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.page-home .help-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
}

.page-home .help-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
}

.page-home .help-link:hover,
.page-home .help-link:focus-visible {
  border-bottom-color: var(--orange);
}

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

  .page-home .hero-main,
  .page-home .hero-panel--library {
    grid-column: span 2;
  }

  .page-home .hero-visual {
    min-height: 220px;
  }

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

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

  .page-home .hero-main {
    grid-column: span 2;
    grid-row: span 2;
  }

  .page-home .hero-status {
    grid-column: span 1;
    grid-row: span 2;
  }

  .page-home .hero-visual {
    grid-column: span 1;
    grid-row: span 2;
    min-height: 260px;
  }

  .page-home .hero-panel--register,
  .page-home .hero-panel--enterprise {
    grid-column: span 1;
  }

  .page-home .hero-panel--library {
    grid-column: span 2;
  }

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

  .page-home .flow-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 32px;
  }

  .page-home .updates-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
  }

  .page-home .home-index {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }

  .page-home .help-layout {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 28px;
  }

  .page-home .help-figure {
    align-self: start;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home .status-dot {
    animation: none;
  }

  .page-home .hero-panel:hover,
  .page-home .hero-panel:focus-within,
  .page-home .cat-item:hover,
  .page-home .cat-item:focus-visible,
  .page-home .help-card:hover,
  .page-home .help-card:focus-within {
    transform: none;
  }
}
