.page-home {
  --home-pink-glow: 0 0 18px rgba(255, 42, 109, 0.45), 0 0 44px rgba(255, 42, 109, 0.22);
  --home-orange-glow: 0 0 18px rgba(255, 167, 36, 0.4), 0 0 44px rgba(255, 167, 36, 0.2);
  --home-gold-glow: 0 0 18px rgba(245, 192, 122, 0.35);
  --home-chapter-size: 3rem;
  position: relative;
  background: linear-gradient(180deg, #0B0C1A 0%, #0E1028 48%, #0B0C1A 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.8;
}

/* 面包屑 */
.page-home .site-breadcrumbs {
  margin-bottom: 3rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.page-home .site-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-home .site-breadcrumbs li + li::before {
  content: "·";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.2);
}
.page-home .site-breadcrumbs a {
  color: var(--soft-lavender);
  text-decoration: none;
  transition: color 0.3s var(--ease-film);
}
.page-home .site-breadcrumbs a:hover {
  color: var(--neon-pink);
}
.page-home .site-breadcrumbs [aria-current="page"] {
  color: var(--text-secondary);
}

/* ===== 夜色封面 ===== */
.page-home .home-hero {
  position: relative;
  padding: 3rem 0 5rem;
  margin-bottom: 2rem;
}
.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: -4rem;
  right: -10rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(255, 42, 109, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.page-home .home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.page-home .home-hero__kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.26em;
  color: var(--soft-lavender);
  margin: 0 0 18px;
  text-transform: uppercase;
}
.page-home .home-hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.3rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  text-shadow: 0 2px 30px rgba(255, 42, 109, 0.15);
}
.page-home .home-hero__slogan {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--muted-gold);
  margin: 0 0 26px;
}
.page-home .home-hero__lead {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 34px;
}
.page-home .home-hero__lead a {
  color: var(--soft-lavender);
  text-decoration: none;
  border-bottom: 1px dashed rgba(184, 169, 255, 0.4);
  transition: color 0.3s var(--ease-film), border-color 0.3s;
}
.page-home .home-hero__lead a:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}
.page-home .home-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.page-home .home-chip {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease-film), box-shadow 0.3s, transform 0.3s var(--ease-film);
}
.page-home .home-chip:hover {
  transform: translateY(-2px);
}
.page-home .home-chip--pink {
  border-color: rgba(255, 42, 109, 0.55);
  color: var(--neon-pink);
}
.page-home .home-chip--pink:hover {
  background: rgba(255, 42, 109, 0.1);
  box-shadow: var(--home-pink-glow);
}
.page-home .home-chip--orange {
  border-color: rgba(255, 167, 36, 0.55);
  color: var(--warm-orange);
}
.page-home .home-chip--orange:hover {
  background: rgba(255, 167, 36, 0.1);
  box-shadow: var(--home-orange-glow);
}
.page-home .home-chip--gold {
  border-color: rgba(245, 192, 122, 0.5);
  color: var(--muted-gold);
}
.page-home .home-chip--gold:hover {
  background: rgba(245, 192, 122, 0.1);
  box-shadow: var(--home-gold-glow);
}

.page-home .home-hero__side {
  position: absolute;
  top: 1.5rem;
  right: 1.25rem;
  z-index: 3;
}
.page-home .home-hero__vertical {
  writing-mode: vertical-rl;
  font-family: var(--font-title);
  font-size: clamp(2rem, 6vw, 3.8rem);
  color: rgba(255, 42, 109, 0.3);
  letter-spacing: 0.28em;
  user-select: none;
  text-shadow: 0 0 28px rgba(255, 42, 109, 0.35);
}
.page-home .home-hero__media {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  max-width: 400px;
}
.page-home .home-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(12px, 12px);
  border: 1px solid rgba(255, 42, 109, 0.28);
  z-index: -1;
  pointer-events: none;
}
.page-home .home-hero__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
}

/* ===== 章节标题 ===== */
.page-home .home-section-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 2.25rem;
}
.page-home .home-chapter-number {
  font-family: var(--font-title);
  font-size: var(--home-chapter-size);
  font-weight: 700;
  line-height: 1;
  color: var(--muted-gold);
  opacity: 0.85;
  min-width: 2ch;
}
.page-home .home-section-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  letter-spacing: 0.01em;
}
.page-home .home-section-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 6px 0 0;
}

/* ===== 按钮 ===== */
.page-home .home-btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 30px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-film), box-shadow 0.35s, background 0.35s;
}
.page-home .home-btn:hover {
  transform: translateY(-2px);
}
.page-home .home-btn--primary {
  background: var(--neon-pink);
  color: #0B0C1A;
  box-shadow: 0 0 22px rgba(255, 42, 109, 0.35);
}
.page-home .home-btn--primary:hover {
  box-shadow: 0 0 36px rgba(255, 42, 109, 0.6);
}
.page-home .home-btn--outline {
  border-color: rgba(255, 42, 109, 0.6);
  color: var(--neon-pink);
}
.page-home .home-btn--outline:hover {
  background: rgba(255, 42, 109, 0.1);
  box-shadow: 0 0 24px rgba(255, 42, 109, 0.25);
}
.page-home .home-btn--ghost {
  border-color: rgba(184, 169, 255, 0.4);
  color: var(--soft-lavender);
}
.page-home .home-btn--ghost:hover {
  background: rgba(184, 169, 255, 0.08);
  box-shadow: 0 0 20px rgba(184, 169, 255, 0.2);
}

/* ===== 韩国电影呦呦AI入口 ===== */
.page-home .home-ai {
  position: relative;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.page-home .home-ai::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 109, 0.5), transparent);
}
.page-home .home-ai__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.page-home .home-ai__frame {
  position: relative;
  border-radius: 4px;
}
.page-home .home-ai__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.page-home .home-ai__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 16px;
  background: rgba(255, 42, 109, 0.88);
  color: #0B0C1A;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 2px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 6px rgba(255, 42, 109, 0.6), 0 0 24px rgba(255, 42, 109, 0.3);
  animation: home-neon-pulse 1.5s ease-in-out infinite;
}
.page-home .home-ai__frame:hover .home-ai__badge {
  animation-duration: 0.4s;
}
@keyframes home-neon-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 6px rgba(255, 42, 109, 0.6), 0 0 24px rgba(255, 42, 109, 0.3);
  }
  50% {
    opacity: 0.88;
    box-shadow: 0 0 4px rgba(255, 42, 109, 0.45), 0 0 16px rgba(255, 42, 109, 0.18);
  }
}
.page-home .home-ai__text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 18px;
}
.page-home .home-ai__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.page-home .home-ai__note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 167, 36, 0.45);
}

/* ===== 本季最新上线 ===== */
.page-home .home-latest {
  position: relative;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.page-home .home-latest::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 167, 36, 0.45), transparent);
}
.page-home .home-latest__layout {
  display: grid;
  gap: 2.25rem;
}
.page-home .home-latest__list {
  display: grid;
  gap: 14px;
}
.page-home .home-latest__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 10px;
  align-items: center;
  padding: 18px 18px;
  background: rgba(27, 21, 52, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-film);
  position: relative;
}
.page-home .home-latest__item:hover {
  border-color: rgba(255, 42, 109, 0.45);
  box-shadow: 0 0 24px rgba(255, 42, 109, 0.12);
  transform: translateX(4px);
}
.page-home .home-latest__item--current {
  border-color: rgba(255, 167, 36, 0.35);
  background: rgba(255, 167, 36, 0.04);
}
.page-home .home-latest__no {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--muted-gold);
  letter-spacing: 0.04em;
}
.page-home .home-latest__name {
  font-size: 1rem;
  font-weight: 700;
}
.page-home .home-latest__meta {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: -4px;
}
.page-home .home-latest__tag {
  grid-column: 2 / -1;
  justify-self: start;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(184, 169, 255, 0.35);
  color: var(--soft-lavender);
  white-space: nowrap;
}
.page-home .home-latest__tag--hot {
  border-color: rgba(255, 167, 36, 0.55);
  color: var(--warm-orange);
  background: rgba(255, 167, 36, 0.08);
}
.page-home .home-latest__media::before {
  content: "";
  display: block;
  padding-top: 66.6%;
}
.page-home .home-latest__media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.page-home .home-latest__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-film);
}
.page-home .home-latest__media:hover .home-latest__img {
  transform: scale(1.03);
}
.page-home .home-latest__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
}
.page-home .home-latest__stat {
  padding: 18px 16px;
  background: rgba(27, 21, 52, 0.45);
  border-radius: 4px;
  text-align: center;
}
.page-home .home-latest__stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--muted-gold);
  line-height: 1.2;
}
.page-home .home-latest__stat span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ===== 按年份与热度重排分类 ===== */
.page-home .home-categories {
  position: relative;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.page-home .home-categories::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 192, 122, 0.4), transparent);
}
.page-home .home-categories__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 14px 2px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.page-home .home-categories__year {
  flex: 0 0 150px;
  padding: 20px 16px 16px;
  background: rgba(27, 21, 52, 0.6);
  border-radius: 2px;
  border-top: 2px dashed rgba(255, 42, 109, 0.35);
  border-bottom: 2px dashed rgba(255, 42, 109, 0.35);
  scroll-snap-align: start;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s var(--ease-film);
}
.page-home .home-categories__year:hover {
  border-top-color: var(--neon-pink);
  border-bottom-color: var(--neon-pink);
  box-shadow: var(--home-pink-glow);
  transform: translateY(-3px);
}
.page-home .home-categories__year--active {
  border-top-color: var(--warm-orange);
  border-bottom-color: var(--warm-orange);
  background: rgba(255, 167, 36, 0.05);
  box-shadow: 0 0 18px rgba(255, 167, 36, 0.12);
}
.page-home .home-categories__year-num {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.page-home .home-categories__year-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.page-home .home-categories__intro {
  margin: 1.75rem 0 2rem;
}
.page-home .home-categories__intro p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 720px;
}
.page-home .home-categories__clusters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.page-home .home-categories__cluster {
  display: block;
  padding: 12px 14px;
  background: rgba(27, 21, 52, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  font-size: 0.9375rem;
  text-align: center;
  color: var(--text-primary);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.page-home .home-categories__cluster:hover {
  background: rgba(255, 42, 109, 0.08);
  border-color: rgba(255, 42, 109, 0.4);
  color: var(--neon-pink);
}

/* ===== 缓存到收藏夹 ===== */
.page-home .home-cache {
  position: relative;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.page-home .home-cache::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 181, 0.4), transparent);
}
.page-home .home-cache__layout {
  display: grid;
  gap: 2.5rem;
}
.page-home .home-cache__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.page-home .home-cache__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  background: rgba(27, 21, 52, 0.5);
  border-radius: 4px;
  border-left: 2px solid rgba(0, 240, 181, 0.5);
}
.page-home .home-cache__step-no {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--film-green);
  font-weight: 700;
  line-height: 1.4;
}
.page-home .home-cache__step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.page-home .home-cache__media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 440px;
}
.page-home .home-cache__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.page-home .home-cache__note {
  margin: 2.25rem 0 0;
  padding: 18px 20px;
  background: rgba(27, 21, 52, 0.4);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 780px;
}

/* ===== 观看不了啥原因 ===== */
.page-home .home-help {
  padding: 4rem 0 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.page-home .home-help::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 167, 36, 0.4), transparent);
  margin-bottom: 3.5rem;
}
.page-home .home-help__inner {
  max-width: 660px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  background: rgba(27, 21, 52, 0.5);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  box-shadow: 0 0 40px rgba(11, 12, 26, 0.6);
}
.page-home .home-help__kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  color: var(--warm-orange);
  margin: 0 0 10px;
  text-transform: uppercase;
}
.page-home .home-help__title {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 14px;
  color: var(--text-primary);
}
.page-home .home-help__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.page-home .home-help__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== 响应式：平板及以上 ===== */
@media (min-width: 720px) {
  .page-home .home-hero {
    padding: 4rem 0 6rem;
  }
  .page-home .home-hero__lead {
    font-size: 1.0625rem;
  }
  .page-home .home-hero__media {
    max-width: 360px;
  }
  .page-home .home-ai__grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .home-latest__layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
  .page-home .home-cache__layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
  .page-home .home-cache__media {
    margin-left: auto;
  }
  .page-home .home-latest__stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .home-categories__clusters {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .home-categories__track {
    padding-top: 18px;
  }
  .page-home .home-categories__year {
    flex-basis: 170px;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    grid-template-areas:
      "content side"
      "content media";
    column-gap: 48px;
    row-gap: 16px;
    align-items: start;
  }
  .page-home .home-hero__content {
    grid-area: content;
    padding-right: 2rem;
  }
  .page-home .home-hero__side {
    grid-area: side;
    position: static;
    justify-self: end;
    align-self: start;
    transform: none;
    padding-top: 0.5rem;
  }
  .page-home .home-hero__vertical {
    font-size: 3.6rem;
  }
  .page-home .home-hero__media {
    grid-area: media;
    max-width: 440px;
    margin-top: 0.5rem;
    justify-self: start;
  }
  .page-home .home-section-title {
    font-size: 2.1rem;
  }
  .page-home .home-latest__item {
    grid-template-columns: auto 1fr auto;
  }
  .page-home .home-latest__meta {
    grid-column: auto;
    grid-row: 1;
    justify-self: start;
    margin-top: 0;
    margin-left: 10px;
  }
  .page-home .home-latest__item {
    grid-template-columns: auto 1fr auto auto;
  }
  .page-home .home-categories__clusters {
    grid-template-columns: repeat(6, 1fr);
  }
  .page-home .home-categories__track {
    padding-top: 22px;
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero__media {
    max-width: 480px;
  }
}
