.page-home {
  background:
    radial-gradient(circle at 12% 6%, rgba(124, 58, 237, .14), transparent 30%),
    radial-gradient(circle at 88% 24%, rgba(0, 212, 255, .07), transparent 24%),
    var(--bg-black);
}

/* 首屏 Hero：超大排版与搜索焦点 */
.page-home .bento-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92vh;
  padding: 5.5rem 1.25rem 4rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(124, 58, 237, .35);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
}

.page-home .hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(124, 58, 237, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, .08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.page-home .hero-glitch {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.75rem;
  z-index: 2;
  width: 100%;
  height: 90px;
  pointer-events: none;
  opacity: .75;
}

.page-home .hero-content {
  position: relative;
  z-index: 3;
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
}

.page-home .hero-kicker {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 1.15rem;
  opacity: .88;
}

.page-home .hero-title {
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.05rem, 7vw, 4.2rem);
  line-height: 1.1;
  color: var(--cream);
  margin: 0 0 1.5rem;
  text-shadow: 0 0 24px rgba(0, 212, 255, .16), 0 0 60px rgba(124, 58, 237, .18);
}

.page-home .hero-title::before,
.page-home .hero-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  white-space: pre;
}

.page-home .hero-title::before {
  color: rgba(0, 212, 255, .32);
  transform: translate(5px, -2px);
}

.page-home .hero-title::after {
  color: rgba(124, 58, 237, .42);
  transform: translate(-4px, 2px);
}

.page-home .hero-title-line {
  display: block;
}

.page-home .hero-title-suffix {
  display: block;
  font-size: .58em;
  letter-spacing: .06em;
  color: var(--gray);
  margin-top: .55rem;
  text-shadow: none;
}

.page-home .hero-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(245, 233, 216, .76);
  max-width: 660px;
  margin: 0 auto 2rem;
}

.page-home .search-focus {
  position: relative;
  max-width: 720px;
  margin: 0 auto 1.6rem;
}

.page-home .search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-home .search-box {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(26, 22, 20, .72);
  border: 1.5px solid rgba(124, 58, 237, .55);
  border-radius: 999px;
  padding: .85rem 1.25rem;
  backdrop-filter: blur(6px);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.page-home .search-box:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, .12), 0 0 36px rgba(124, 58, 237, .24);
}

.page-home .search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.page-home .search-input::placeholder {
  color: var(--gray);
}

.page-home .search-icon {
  display: inline-flex;
  color: var(--neon-cyan);
  flex-shrink: 0;
}

.page-home .hot-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  margin-bottom: 2.4rem;
}

.page-home .hot-label {
  font-family: var(--font-body);
  font-size: .74rem;
  color: var(--gray);
  letter-spacing: .14em;
}

.page-home .hot-tag {
  font-family: var(--font-body);
  font-size: .82rem;
  line-height: 1.3;
  color: var(--cream);
  background: rgba(124, 58, 237, .14);
  border: 1px solid rgba(124, 58, 237, .45);
  border-radius: 999px;
  padding: .34rem .9rem;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.page-home .hot-tag:hover {
  background: rgba(124, 58, 237, .30);
  border-color: rgba(0, 212, 255, .5);
  transform: translateY(-2px);
}

.page-home .hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.4rem;
}

.page-home .hero-stat {
  text-align: center;
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--cream);
}

.page-home .stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: .73rem;
  letter-spacing: .08em;
  color: var(--gray);
  margin-top: .45rem;
}

/* Bento 网格与卡片 */
.page-home .bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  max-width: calc(var(--container-w) + 2 * var(--grid-gap));
  margin: 0 auto;
  padding: var(--grid-gap);
}

.page-home .bento-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(62, 47, 29, .88), rgba(62, 47, 29, .42));
  border: 1px solid rgba(245, 233, 216, .10);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.page-home .bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, .55);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .28), 0 0 22px rgba(124, 58, 237, .12);
}

.page-home .card-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-orange);
  background: rgba(232, 89, 12, .08);
  border: 1px solid rgba(232, 89, 12, .38);
  border-radius: 999px;
  padding: .2rem .7rem;
  margin-bottom: .9rem;
}

.page-home .section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--cream);
  margin: 0 0 .55rem;
}

.page-home .text-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 600;
  color: var(--neon-cyan);
  text-decoration: none;
  margin-top: .2rem;
  transition: color var(--transition), gap var(--transition);
}

.page-home .text-link:hover {
  color: var(--cream);
  gap: .5rem;
}

/* 迁移公告 */
.page-home .announce-content {
  position: relative;
  z-index: 2;
}

.page-home .announce-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  object-fit: cover;
}

.page-home .announce-text {
  font-family: var(--font-body);
  font-size: .93rem;
  line-height: 1.7;
  color: rgba(245, 233, 216, .74);
  margin: 0 0 1.2rem;
}

.page-home .announce-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.page-home .announce-note {
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--neon-cyan);
  letter-spacing: .04em;
}

.page-home .announce-glitch {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 28px;
  opacity: .7;
  pointer-events: none;
}

/* 首字母索引卡 */
.page-home .category-text,
.page-home .year-text,
.page-home .track-text,
.page-home .help-text {
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.68;
  color: rgba(245, 233, 216, .72);
  margin-bottom: 1.1rem;
}

.page-home .category-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.1rem;
}

.page-home .alpha-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
  margin-bottom: 1rem;
}

.page-home .alpha-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  color: rgba(245, 233, 216, .8);
  background: rgba(26, 22, 20, .55);
  border: 1px solid rgba(245, 233, 216, .12);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.page-home .alpha-chip:hover {
  color: #fff;
  background: rgba(0, 212, 255, .20);
  border-color: rgba(0, 212, 255, .55);
}

/* 年份索引卡 */
.page-home .year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  margin-bottom: 1rem;
}

.page-home .year-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .85rem .15rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--cream);
  background: rgba(26, 22, 20, .5);
  border: 1px solid rgba(245, 233, 216, .12);
  border-radius: var(--radius-md);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.page-home .year-block:hover {
  color: var(--neon-cyan);
  background: rgba(124, 58, 237, .18);
  border-color: rgba(124, 58, 237, .6);
}

/* 追更同步卡 */
.page-home .track-steps {
  list-style: none;
  counter-reset: track;
  margin: .4rem 0 1.2rem;
  padding: 0;
}

.page-home .track-steps li {
  counter-increment: track;
  position: relative;
  padding-left: 2.1rem;
  font-family: var(--font-body);
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(245, 233, 216, .72);
  margin-bottom: .6rem;
}

.page-home .track-steps li::before {
  content: counter(track);
  position: absolute;
  left: 0;
  top: .1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  color: var(--cream);
  background: rgba(0, 212, 255, .16);
  border: 1px solid rgba(0, 212, 255, .5);
  border-radius: 50%;
}

.page-home .track-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: 1.2rem;
}

/* 帮助中心横幅卡 */
.page-home .bento-help {
  background:
    linear-gradient(120deg, rgba(124, 58, 237, .20), rgba(26, 22, 20, .55) 62%),
    var(--deep-brown);
  border-color: rgba(124, 58, 237, .36);
}

.page-home .bento-help .help-text {
  margin-bottom: 0;
}

.page-home .help-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1.2rem;
}

/* 中屏：帮助条横排 */
@media (min-width: 768px) {
  .page-home .bento-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .page-home .help-actions {
    margin-top: 0;
    flex-shrink: 0;
  }
}

/* 桌面端：Bento 12 列与首页细节 */
@media (min-width: 1024px) {
  .page-home .bento-hero {
    min-height: 88vh;
    padding: 6rem 2rem 4.5rem;
  }

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

  .page-home .bento-card {
    padding: 1.75rem;
  }

  .page-home .bento-announce {
    grid-column: span 7;
  }

  .page-home .bento-category {
    grid-column: span 5;
  }

  .page-home .bento-year {
    grid-column: span 5;
  }

  .page-home .bento-track {
    grid-column: span 7;
  }

  .page-home .bento-help {
    grid-column: 1 / -1;
  }

  .page-home .hero-title {
    font-size: clamp(2.7rem, 6vw, 4.5rem);
  }

  .page-home .category-img {
    max-height: 220px;
  }

  .page-home .track-img {
    max-height: none;
    margin-top: 0;
  }

  .page-home .bento-track {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 1.75rem;
    align-items: center;
  }
}

/* 减弱动态效果偏好 */
@media (prefers-reduced-motion: reduce) {
  .page-home .bento-card,
  .page-home .hot-tag,
  .page-home .alpha-chip,
  .page-home .year-block,
  .page-home .text-link,
  .page-home .search-box {
    transition: none;
  }

  .page-home .bento-card:hover,
  .page-home .hot-tag:hover {
    transform: none;
  }
}
