/* ===== 页面专属：home ===== */
.page-home {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(145deg, var(--color-bg-start), var(--color-bg-end));
  isolation: isolate;
  overflow-x: hidden;
}

/* ── 星空背景 ── */
.page-home .bg-starscape {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.page-home .bg-starscape-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: saturate(0.6) brightness(0.8);
}
/* 人造星点（无图时氛围） */
.page-home .bg-starscape::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,215,0,0.6), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(160,32,240,0.5), transparent),
    radial-gradient(2px 2px at 55% 15%, rgba(255,215,0,0.5), transparent),
    radial-gradient(1.2px 1.2px at 75% 60%, rgba(160,32,240,0.4), transparent),
    radial-gradient(1.8px 1.8px at 90% 30%, rgba(255,215,0,0.5), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(200,200,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 45% 45%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 65% 80%, rgba(160,32,240,0.3), transparent),
    radial-gradient(1.2px 1.2px at 85% 10%, rgba(255,215,0,0.4), transparent),
    radial-gradient(1px 1px at 5% 50%, rgba(200,200,255,0.2), transparent);
  background-size: 100% 100%;
  animation: page-home-twinkle 4s ease-in-out infinite alternate;
}
@keyframes page-home-twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ── 通用容器 & 标题 ── */
.page-home .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.page-home .section {
  padding: 3rem 0 4rem;
  position: relative;
}
.page-home .section-heading {
  margin: 0 0 2rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.page-home .heading-accent {
  display: inline-block;
  width: 6px;
  height: 1.6em;
  background: var(--color-neon-purple);
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── 分隔装饰 ── */
.page-home .section-divider {
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
  margin: -0.5rem 0;
}
.page-home .divider-svg {
  display: block;
  width: 100%;
  max-width: 800px;
  height: 30px;
}

/* ── Bento 网格 ── */
.page-home .bento-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Bento 卡片基础 ── */
.page-home .bento-item {
  display: block;
  text-decoration: none;
  background: var(--color-card-bg);
  border: 4px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-strong);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  cursor: pointer;
}
.page-home .bento-item:hover,
.page-home .bento-item:focus-visible {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
  border-color: var(--color-gold);
  outline: none;
}
.page-home .bento-item:focus-visible {
  outline: 3px solid var(--color-neon-purple);
  outline-offset: 2px;
}
.page-home .bento-item-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.page-home .bento-item-inner--compact {
  justify-content: center;
  padding: 1.25rem;
}
.page-home .bento-item-inner--row {
  flex-direction: column;
}

/* ── 图片 ── */
.page-home .bento-img-wrap {
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
}
.page-home .bento-img-wrap--small {
  max-height: 140px;
}
.page-home .bento-img-wrap--wide {
  max-height: 180px;
  width: 100%;
}
.page-home .bento-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.page-home .bento-item:hover .bento-img,
.page-home .bento-item:focus-visible .bento-img {
  transform: scale(1.05);
}

/* ── 内容 ── */
.page-home .bento-content {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.page-home .bento-tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--color-neon-purple);
  border-radius: 4px;
  width: fit-content;
}
.page-home .bento-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  font-style: italic;
  color: var(--color-white);
  line-height: 1.2;
}
.page-home .bento-desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  flex: 1;
}
.page-home .bento-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
  display: inline-block;
  margin-top: auto;
}
.page-home .bento-item:hover .bento-link,
.page-home .bento-item:focus-visible .bento-link {
  color: var(--color-gold-hover) !important;
}

/* ── 特色卡片（大） ── */
.page-home .bento-feature .bento-img-wrap {
  max-height: 220px;
}
.page-home .bento-feature .bento-title {
  font-size: 1.35rem;
}

/* ── 横跨卡片 ── */
.page-home .bento-wide .bento-item-inner--row {
  flex-direction: column;
}

/* ── 时间轴 ── */
.page-home .timeline {
  position: relative;
  padding-left: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-neon-purple), var(--color-gold));
  opacity: 0.5;
  border-radius: 1px;
}
.page-home .timeline-item {
  position: relative;
  display: flex;
  gap: 1rem;
}
.page-home .timeline-marker {
  position: absolute;
  left: -1.8rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg-start);
  border: 3px solid var(--color-gold);
  box-shadow: 0 0 0 4px rgba(240,192,64,0.15);
  flex-shrink: 0;
  z-index: 1;
}
.page-home .timeline-content {
  background: var(--color-card-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  flex: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.page-home .timeline-content:hover {
  border-color: var(--color-neon-purple);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.page-home .timeline-time {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--color-neon-purple);
  border-radius: 4px;
}
.page-home .timeline-desc {
  margin: 0 0 0.6rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-white);
  line-height: 1.6;
}
.page-home .timeline-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s;
}
.page-home .timeline-link:hover {
  color: var(--color-gold-hover) !important;
}

/* ── 宣言区块 ── */
.page-home .manifesto-inner {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--color-card-bg);
  border: 4px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}
.page-home .manifesto-inner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(160,32,240,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-home .manifesto-inner::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(240,192,64,0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-home .manifesto-title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
}
.page-home .manifesto-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-neon-purple);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}
.page-home .manifesto-text {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}
.page-home .manifesto-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.page-home .manifesto-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--color-neon-purple);
  border-radius: 20px;
  background: rgba(160,32,240,0.08);
}
.page-home .manifesto-btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  position: relative;
  z-index: 1;
}
.page-home .manifesto-btn:hover,
.page-home .manifesto-btn:focus-visible {
  background: var(--color-gold);
  color: var(--color-bg-start);
  outline: none;
}

/* ── 返回顶部 ── */
.page-home .scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: var(--color-card-bg);
  color: var(--color-gold);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-strong);
  transition: background 0.3s, transform 0.3s;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.page-home .scroll-top:hover,
.page-home .scroll-top:focus-visible {
  background: var(--color-gold);
  color: var(--color-bg-start);
  transform: translateY(-4px);
  outline: none;
}

/* ===== 响应式：平板（≥600px） ===== */
@media (min-width: 600px) {
  .page-home .section {
    padding: 4rem 0 5rem;
  }
  .page-home .section-heading {
    font-size: 1.9rem;
    gap: 1rem;
  }
  .page-home .heading-accent {
    width: 8px;
  }
  .page-home .bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    grid-template-rows: auto auto auto;
    gap: 1.25rem;
    grid-template-areas:
      "feature  secondary1"
      "feature  secondary2"
      "wide     wide";
  }
  .page-home .bento-feature {
    grid-area: feature;
  }
  .page-home .bento-list {
    grid-area: secondary1;
  }
  .page-home .bento-compare {
    grid-area: secondary2;
  }
  .page-home .bento-wide {
    grid-area: wide;
  }
  .page-home .bento-item-inner--row {
    flex-direction: row;
    align-items: stretch;
  }
  .page-home .bento-img-wrap--wide {
    max-height: none;
    width: 280px;
    flex-shrink: 0;
  }
  .page-home .bento-feature .bento-img-wrap {
    max-height: 260px;
  }
  .page-home .bento-feature .bento-title {
    font-size: 1.5rem;
  }
  .page-home .bento-list .bento-content,
  .page-home .bento-compare .bento-content {
    padding: 1.25rem;
  }
  .page-home .timeline {
    padding-left: 2.2rem;
    gap: 2.2rem;
  }
  .page-home .timeline-marker {
    width: 20px;
    height: 20px;
    left: -2.2rem;
  }
  .page-home .timeline::before {
    left: 9px;
  }
  .page-home .timeline-content {
    padding: 1.25rem 1.5rem;
  }
  .page-home .manifesto-title {
    font-size: 2.4rem;
  }
  .page-home .manifesto-text {
    font-size: 1.1rem;
  }
  .page-home .manifesto-inner {
    padding: 3rem 2.5rem;
  }
}

/* ===== 响应式：桌面（≥960px） ===== */
@media (min-width: 960px) {
  .page-home .section {
    padding: 5rem 0 6rem;
  }
  .page-home .section-heading {
    font-size: 2.2rem;
  }
  .page-home .bento-grid {
    grid-template-columns: 1.4fr 0.8fr;
    gap: 1.5rem;
  }
  .page-home .bento-feature .bento-img-wrap {
    max-height: 300px;
  }
  .page-home .bento-feature .bento-title {
    font-size: 1.65rem;
  }
  .page-home .bento-img-wrap--wide {
    width: 340px;
  }
  .page-home .bento-content {
    padding: 1.25rem 1.5rem 1.5rem;
  }
  .page-home .bento-list .bento-content,
  .page-home .bento-compare .bento-content {
    padding: 1.5rem;
  }
  .page-home .timeline {
    padding-left: 2.5rem;
    gap: 2.5rem;
  }
  .page-home .timeline-marker {
    width: 22px;
    height: 22px;
    left: -2.5rem;
    border-width: 4px;
  }
  .page-home .timeline::before {
    left: 10px;
  }
  .page-home .timeline-desc {
    font-size: 0.95rem;
  }
  .page-home .manifesto-title {
    font-size: 2.8rem;
  }
  .page-home .manifesto-inner {
    padding: 4rem 3.5rem;
  }
  .page-home .scroll-top {
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
}

/* ===== 辅助类（页面级覆盖） ===== */
.page-home .text-gold {
  color: var(--color-gold);
}
.page-home .text-purple {
  color: var(--color-neon-purple);
}
.page-home .text-white {
  color: var(--color-white);
}
