.page-home {
  --page-hero-grad: linear-gradient(140deg, #0b1e3a 0%, #0052D9 58%, #6C4AB6 128%);
  --page-digest-grad: linear-gradient(135deg, #16294d 0%, #1A2B4A 48%, #432a66 120%);
  --page-glass: rgba(255, 255, 255, 0.12);
  --page-glass-line: rgba(255, 255, 255, 0.22);
  --page-navy: #1A2B4A;
  --page-blue: #0052D9;
  --page-orange: #FF7A2F;
  --page-ink: #2B2F36;
  --page-muted: #4E5969;
  background: #F4F7FC;
  color: var(--page-ink);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.page-home section[id] {
  scroll-margin-top: 96px;
}

/* ============ 首屏直达 ============ */
.page-home .hero-section {
  position: relative;
  padding: 64px 0 56px;
  background: var(--page-hero-grad);
  color: #fff;
  overflow: hidden;
}

.page-home .hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 280px at 88% 10%, rgba(255, 122, 47, 0.26), transparent 70%),
    radial-gradient(460px 320px at 6% 92%, rgba(108, 74, 182, 0.42), transparent 72%);
  pointer-events: none;
}

.page-home .hero-section .container {
  position: relative;
  z-index: 1;
}

.page-home .hero-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.page-home .hero-section__index {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.page-home .hero-section h1 {
  margin: 0 0 20px;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #fff;
}

.page-home .hero-section__desc {
  max-width: 640px;
  margin: 0 0 36px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.page-home .search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  padding: 6px 8px 6px 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 60px;
  backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-home .search-box:focus-within {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.page-home .search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  padding: 10px 0;
  outline: none;
}

.page-home .search-box input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.page-home .search-box__btn {
  flex-shrink: 0;
  padding: 12px 28px;
  background: var(--page-orange);
  color: #fff;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.page-home .hero-section__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.page-home .hero-section__tags-label {
  color: rgba(255, 255, 255, 0.62);
}

.page-home .hero-section__tags a {
  color: inherit;
  text-decoration: none;
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  transition: background 0.2s ease;
}

.page-home .hero-section__tags a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.page-home .hero-section__visual {
  display: none;
}

.page-home .hero-section__visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(4, 16, 40, 0.35);
}

/* 功能卡片 */
.page-home .feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.page-home .feature-card {
  display: block;
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--page-glass);
  border: 1px solid var(--page-glass-line);
  backdrop-filter: blur(12px);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.page-home .feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
}

.page-home .feature-card__index {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.64);
}

.page-home .feature-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.page-home .feature-card__text {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* 色带 */
.page-home .section-band {
  height: 6px;
  background: linear-gradient(90deg, #0052D9, #00A870, #FF7A2F, #6C4AB6);
}

.page-home .section-band--warm {
  background: linear-gradient(90deg, #FF7A2F, #B54768, #6C4AB6);
}

.page-home .section-band--slim {
  height: 4px;
  background: var(--page-navy);
}

/* ============ 版本库概览 ============ */
.page-home .vault-section {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.page-home .vault-section .container {
  padding-top: 72px;
  padding-bottom: 72px;
  position: relative;
}

.page-home .vault-section__deco {
  position: absolute;
  top: -10px;
  left: -6px;
  z-index: 0;
  font-family: var(--font-mono);
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  color: rgba(26, 43, 74, 0.05);
  pointer-events: none;
  user-select: none;
}

.page-home .vault-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-home .vault-section__intro h2,
.page-home .notes-section__head h2,
.page-home .guide-section__card h2 {
  margin: 8px 0 18px;
  font-size: 30px;
  line-height: 1.3;
  color: var(--page-navy);
}

.page-home .vault-section__intro .lede {
  color: var(--page-muted);
}

.page-home .stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(26, 43, 74, 0.06);
}

.page-home .stat-strip__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .stat-strip__num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--page-blue);
  line-height: 1.2;
}

.page-home .stat-strip__label {
  font-size: 13px;
  color: var(--page-muted);
}

.page-home .vault-section__visual {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(26, 43, 74, 0.12);
}

.page-home .vault-section__visual img {
  width: 100%;
  object-fit: cover;
}

/* 时间轴 */
.page-home .timeline {
  margin-top: 56px;
  border-top: 1px solid #E5E8EF;
  padding-top: 28px;
  position: relative;
  z-index: 1;
}

.page-home .timeline__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--page-muted);
  letter-spacing: 0.08em;
}

.page-home .timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-home .timeline__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #E5E8EF;
  border-radius: 12px;
}

.page-home .timeline__year {
  min-width: 56px;
  font-size: 16px;
  font-weight: 700;
  color: var(--page-blue);
}

.page-home .timeline__note {
  font-size: 14px;
  color: var(--page-ink);
}

.page-home .timeline__tag {
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
  font-size: 12px;
  color: #00A870;
  border: 1px solid rgba(0, 168, 112, 0.3);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ============ 订阅推荐 ============ */
.page-home .digest-section {
  background: var(--page-digest-grad);
  color: #fff;
  padding: 72px 0;
}

.page-home .digest-section .section-index {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-home .digest-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.page-home .digest-section__visual {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

.page-home .digest-section__visual img {
  width: 100%;
  object-fit: cover;
}

.page-home .digest-section__content h2 {
  margin: 8px 0 18px;
  font-size: 30px;
  line-height: 1.3;
  color: #fff;
}

.page-home .digest-section__content .lede {
  color: rgba(255, 255, 255, 0.84);
}

.page-home .digest-points {
  margin: 28px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-home .digest-points li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.page-home .digest-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--page-orange);
}

.page-home .digest-form {
  margin-top: 28px;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.page-home .digest-form__label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}

.page-home .digest-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .digest-form__row input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  outline: none;
}

.page-home .digest-form__row input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.page-home .digest-form__submit {
  flex-shrink: 0;
  padding: 12px 26px;
  background: var(--page-orange);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.page-home .digest-form__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

/* ============ 近期动态摘录 ============ */
.page-home .notes-section {
  padding: 0;
}

.page-home .notes-section .container {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-home .notes-section__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.page-home .notes-section__head h2,
.page-home .guide-section__card h2 {
  margin-top: 0;
}

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

.page-home .note-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #E5E8EF;
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .note-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(26, 43, 74, 0.12);
}

.page-home .note-card__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: #EEF3FF;
  color: var(--page-blue);
  font-size: 12px;
  font-weight: 700;
}

.page-home .note-card h3 {
  margin: 14px 0 10px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--page-navy);
}

.page-home .note-card p {
  margin: 0;
  font-size: 14px;
  color: var(--page-muted);
}

.page-home .note-card__meta {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--page-muted);
  letter-spacing: 0.08em;
}

.page-home .notes-section__chart {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.page-home .notes-section__chart img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(26, 43, 74, 0.06);
}

.page-home .notes-section__chart-cap {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--page-muted);
  letter-spacing: 0.1em;
}

.page-home .notes-section__chart-caption p:last-child {
  margin: 0;
  font-size: 14px;
  color: var(--page-muted);
}

/* ============ 引导导航 ============ */
.page-home .guide-section {
  padding: 0;
}

.page-home .guide-section .container {
  padding-bottom: 72px;
}

.page-home .guide-section__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid #E5E8EF;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(26, 43, 74, 0.06);
}

.page-home .guide-section__content p {
  margin: 0;
  color: var(--page-muted);
  font-size: 14px;
}

.page-home .guide-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ 平板媒体查询 ============ */
@media (min-width: 768px) {
  .page-home .hero-section h1 {
    font-size: 38px;
  }

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

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

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

  .page-home .notes-section__head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .page-home .guide-section__card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============ 桌面媒体查询 ============ */
@media (min-width: 1024px) {
  .page-home .hero-section {
    padding: 96px 0 88px;
  }

  .page-home .hero-section__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 60px;
  }

  .page-home .hero-section__desc {
    font-size: 16px;
  }

  .page-home .hero-section__visual {
    display: block;
  }

  .page-home .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 64px;
  }

  .page-home .feature-card {
    padding: 26px 22px;
  }

  .page-home .vault-section .container {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .page-home .vault-section__deco {
    font-size: 180px;
    left: 0;
  }

  .page-home .vault-section__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    gap: 64px;
  }

  .page-home .timeline__list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }

  .page-home .timeline__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-home .timeline__tag {
    align-self: flex-start;
    margin-left: 0;
  }

  .page-home .digest-section {
    padding: 96px 0;
  }

  .page-home .digest-section__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
    gap: 64px;
  }

  .page-home .digest-section__visual {
    max-width: 340px;
  }

  .page-home .notes-section .container {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .page-home .notes-section__chart {
    grid-template-columns: 480px minmax(0, 1fr);
    gap: 32px;
  }

  .page-home .guide-section .container {
    padding-bottom: 96px;
  }

  .page-home .guide-section__card {
    padding: 40px;
  }
}
