/* ===== 首页 page-home 专属样式 ===== */

.page-home {
  --ph-section-pad: 48px;
  background: var(--abyss-900);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-wrap: break-word;
}

.page-home .container {
  width: 100%;
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  position: relative;
  padding: calc(var(--header-h) + 16px) 0 56px;
  background:
    radial-gradient(120% 82% at 88% 0%, rgba(63, 227, 210, 0.12) 0%, rgba(63, 227, 210, 0) 58%),
    radial-gradient(90% 70% at 4% 100%, rgba(255, 138, 61, 0.10) 0%, rgba(255, 138, 61, 0) 60%),
    var(--abyss-900);
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-home .hero-left {
  border: 2px solid var(--neon);
  border-radius: var(--radius-card);
  background: var(--abyss-700);
  box-shadow: var(--shadow-hard);
  padding: 26px 20px 24px;
}

.page-home .hero-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border: 1px solid var(--neon);
  border-radius: var(--radius-pill);
  color: var(--neon);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.page-home .hero-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 7.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.page-home .hero-lead {
  margin: 0 0 22px;
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-soft);
}

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

.page-home .hero-actions .btn {
  flex: 1 1 168px;
  justify-content: center;
}

.page-home .hero-points {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--abyss-500);
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-soft);
}

.page-home .hero-points li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.page-home .hero-point-num {
  color: var(--neon);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.page-home .hero-figure {
  margin: 20px 0 0;
  border: 2px solid var(--abyss-500);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--abyss-900);
}

.page-home .hero-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .hero-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .feed-frame {
  position: relative;
  border: 2px solid var(--abyss-500);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--abyss-700);
  min-height: 340px;
}

.page-home .feed-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-home .feed-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 25, 42, 0.25) 0%, rgba(8, 25, 42, 0.92) 74%);
}

.page-home .feed-wave {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 16%,
      rgba(63, 227, 210, 0) 0 20px,
      rgba(63, 227, 210, 0.30) 20px 21px,
      rgba(63, 227, 210, 0) 21px 38px,
      rgba(63, 227, 210, 0.18) 38px 39px,
      rgba(63, 227, 210, 0) 39px 56px,
      rgba(63, 227, 210, 0.10) 56px 57px,
      rgba(63, 227, 210, 0) 57px 74px,
      rgba(63, 227, 210, 0.06) 74px 75px,
      rgba(63, 227, 210, 0) 75px);
  animation: ph-ripple 3.2s linear infinite;
}

@keyframes ph-ripple {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.page-home .feed-stack {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.page-home .feed-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 11px 13px;
  border: 1px solid var(--abyss-500);
  border-radius: 8px;
  background: rgba(16, 42, 66, 0.88);
}

.page-home .feed-item .status-dot {
  grid-row: span 2;
  align-self: center;
  margin-top: 2px;
}

.page-home .feed-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
}

.page-home .feed-meta {
  margin: 0;
  grid-column: 2;
  font-size: 12.5px;
  color: var(--slate);
}

.page-home .feed-caption {
  margin: 0;
  font-size: 13px;
  color: var(--slate);
}

/* ---------- 通用章节头 ---------- */

.page-home .chapter-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--neon);
}

.page-home .paper-zone .chapter-band {
  border-bottom-color: var(--ink);
}

.page-home .chapter-index-num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon);
}

.page-home .paper-zone .chapter-index-num {
  color: var(--ink);
  background: var(--neon);
  padding: 2px 8px;
  border-radius: 4px;
}

.page-home .chapter-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 4.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-home .section-lead {
  margin: 0 0 26px;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-soft);
}

.page-home .paper-zone .section-lead {
  color: var(--ink-soft);
}

.page-home .inline-link {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 2px solid rgba(63, 227, 210, 0.4);
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}

.page-home .paper-zone .inline-link {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

.page-home .inline-link:hover,
.page-home .inline-link:focus-visible {
  border-bottom-color: currentColor;
}

/* ---------- 01 栏目索引 ---------- */

.page-home .chapter-index {
  padding: var(--ph-section-pad) 0;
}

.page-home .index-figure {
  margin: 0 0 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard-paper);
  overflow: hidden;
  background: var(--paper-soft);
}

.page-home .index-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.page-home .chapter-list {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .chapter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  background: var(--paper-soft);
  box-shadow: 3px 3px 0 0 var(--ink);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.page-home .chapter-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--ink);
}

.page-home .chapter-no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--neon);
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 4px;
}

.page-home .chapter-item-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.page-home .chapter-item-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .chapter-link {
  margin-top: auto;
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}

.page-home .chapter-link::after {
  content: "→";
  margin-left: 6px;
}

.page-home .chapter-link:hover,
.page-home .chapter-link:focus-visible {
  color: var(--abyss-500);
  border-bottom-color: var(--abyss-500);
}

.page-home .index-footnote {
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- 02 使用记录 ---------- */

.page-home .records {
  padding: var(--ph-section-pad) 0;
  background: var(--abyss-900);
}

.page-home .records-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .records-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .records-figure .media-frame {
  border: 2px solid var(--abyss-500);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--abyss-700);
  max-width: 320px;
  margin: 0 auto;
}

.page-home .records-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.page-home .records-figure .media-caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate);
  text-align: center;
}

.page-home .records-panel {
  min-width: 0;
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  margin-bottom: 18px;
  border: 2px solid var(--abyss-500);
  border-radius: var(--radius-card);
  background: var(--abyss-700);
}

.page-home .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 64px;
  padding: 0 14px;
  border: 2px solid var(--abyss-500);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--fg-soft);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms var(--ease), color 140ms var(--ease), background 140ms var(--ease);
}

.page-home .filter-btn:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.page-home .filter-btn[aria-pressed="true"] {
  border-color: var(--neon);
  background: rgba(63, 227, 210, 0.12);
  color: var(--neon);
}

.page-home .filter-count {
  font-size: 12px;
  color: var(--slate);
}

.page-home .filter-btn[aria-pressed="true"] .filter-count {
  color: var(--neon);
}

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

.page-home .record-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 14px 14px;
  border-left: 3px solid var(--abyss-500);
  border-radius: 8px;
  background: var(--abyss-700);
  transition: opacity 140ms var(--ease);
}

.page-home .record-item.is-filtered {
  display: none;
}

.page-home .record-week {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--neon);
}

.page-home .record-count {
  font-size: 14px;
  color: var(--fg);
}

.page-home .record-state {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--fg-soft);
}

.page-home .record-time {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--slate);
}

.page-home .filter-empty {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--slate);
}

/* ---------- 03 同步机制 ---------- */

.page-home .sync {
  padding: var(--ph-section-pad) 0;
  background:
    linear-gradient(180deg, rgba(16, 42, 66, 0.65) 0%, rgba(8, 25, 42, 0) 45%),
    var(--abyss-900);
}

.page-home .sync-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .sync-card {
  padding: 20px 18px;
  border: 2px solid var(--abyss-500);
  border-radius: var(--radius-card);
  background: var(--abyss-700);
  box-shadow: var(--shadow-hard);
  transition: border-color 180ms var(--ease);
}

.page-home .sync-card:hover {
  border-color: var(--neon);
}

.page-home .sync-num {
  margin: 0 0 12px;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--amber);
}

.page-home .sync-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg);
}

.page-home .sync-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-soft);
}

.page-home .sync-footnote {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 04 日常路径 ---------- */

.page-home .path {
  padding: var(--ph-section-pad) 0;
}

.page-home .path-list {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .path-item {
  position: relative;
  padding: 20px 18px 18px 66px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  background: var(--paper-soft);
}

.page-home .path-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 46px;
  border-right: 2px solid var(--ink);
  background: var(--mist);
  border-radius: 8px 0 0 8px;
}

.page-home .path-no {
  position: absolute;
  left: 0;
  top: 20px;
  width: 46px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  z-index: 1;
}

.page-home .path-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.page-home .path-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .path-footnote {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(20, 25, 30, 0.18);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- 05 更新与联络 ---------- */

.page-home .updates {
  padding: var(--ph-section-pad) 0 calc(var(--ph-section-pad) + 8px);
  background: var(--abyss-900);
}

.page-home .updates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .updates-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 18px;
  border: 2px solid var(--abyss-500);
  border-radius: var(--radius-card);
  background: var(--abyss-700);
}

.page-home .updates-card:first-child {
  border-color: var(--neon);
}

.page-home .updates-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg);
}

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

.page-home .updates-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- 平板 ---------- */

@media (min-width: 700px) {
  .page-home .chapter-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .page-home .record-item {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 4px 16px;
  }

  .page-home .record-state {
    grid-column: auto;
    grid-row: 1;
  }

  .page-home .record-time {
    grid-column: 1 / -1;
  }
}

/* ---------- 桌面 ---------- */

@media (min-width: 960px) {
  .page-home {
    --ph-section-pad: 72px;
  }

  .page-home .hero {
    padding: calc(var(--header-h) + 40px) 0 88px;
  }

  .page-home .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 44px;
    align-items: start;
  }

  .page-home .hero-left {
    padding: 34px 30px 30px;
  }

  .page-home .feed-frame {
    min-height: 420px;
  }

  .page-home .records-grid {
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    align-items: start;
  }

  .page-home .records-figure .media-frame {
    max-width: none;
  }

  .page-home .records-figure .media-caption {
    text-align: left;
  }

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

  .page-home .record-item {
    padding: 16px 18px;
  }

  .page-home .record-time {
    grid-column: auto;
    grid-row: 1;
    justify-self: end;
  }
}

@media (min-width: 1080px) {
  .page-home .chapter-list {
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: 22px;
  }

  .page-home .chapter-item:nth-child(3n + 2) {
    margin-top: 22px;
  }

  .page-home .chapter-item:nth-child(3n + 3) {
    margin-top: 10px;
  }

  .page-home .path-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .path-item {
    padding: 20px 16px 18px;
  }

  .page-home .path-item::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 42px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
    border-radius: 8px 8px 0 0;
  }

  .page-home .path-no {
    left: 0;
    top: 12px;
    width: 100%;
  }

  .page-home .path-item {
    padding-top: 60px;
  }
}

/* ---------- 动效降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .feed-wave {
    animation: none;
    opacity: 0.55;
  }

  .page-home .chapter-item,
  .page-home .sync-card,
  .page-home .chapter-link {
    transition: none;
  }

  .page-home .chapter-item:hover {
    transform: none;
  }
}
</PAGE_CSS>
