.page-home {
  --home-magenta: #ff2e88;
  --home-blue: #00d4ff;
  --home-green: #baff3c;
  --home-bg-deep: #05050a;
  --home-bg-elevated: #12121e;
  --home-border: rgba(255, 255, 255, 0.08);
  --home-text-dim: #8b8ca0;
  --home-font-display: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", sans-serif;
  --home-font-mono: "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  background: var(--bg, #0a0a12);
  color: var(--text, #e9eaf2);
}

.page-home .container {
  max-width: var(--container-max, 1320px);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

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

.page-home .section-head {
  margin-bottom: 48px;
}

.page-home .section-kicker {
  font-family: var(--home-font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-blue);
  margin: 0 0 12px;
}

.page-home .section-title {
  font-family: var(--home-font-display);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text, #e9eaf2);
}

.page-home .section-desc {
  font-family: var(--home-font-display);
  font-size: 15px;
  line-height: 1.8;
  color: var(--home-text-dim);
  margin: 0;
}

.page-home .split-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--home-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  white-space: nowrap;
}

.page-home .tag-magenta {
  color: var(--home-magenta);
  border: 1px solid rgba(255, 46, 136, 0.45);
  background: rgba(255, 46, 136, 0.08);
}

.page-home .tag-blue {
  color: var(--home-blue);
  border: 1px solid rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.08);
}

.page-home .tag-green {
  color: var(--home-green);
  border: 1px solid rgba(186, 255, 60, 0.45);
  background: rgba(186, 255, 60, 0.08);
}

/* 首屏 */
.page-home .home-hero {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 72px 24px 64px;
  overflow: hidden;
  background: var(--home-bg-deep);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--home-magenta), var(--home-blue), var(--home-green));
  opacity: 0.85;
}

.page-home .hero-frame {
  position: relative;
  border: 1px solid var(--home-border);
  background: rgba(18, 18, 30, 0.72);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.page-home .hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.page-home .hero-index {
  font-family: var(--home-font-mono);
  font-size: 13px;
  color: var(--home-magenta);
  letter-spacing: 0.1em;
}

.page-home .hero-tagline {
  font-family: var(--home-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--home-text-dim);
}

.page-home .hero-kicker {
  font-family: var(--home-font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--home-green);
  margin: 0 0 16px;
  max-width: 520px;
}

.page-home .hero-title {
  font-family: var(--home-font-display);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 780px;
}

.page-home .hero-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--home-text-dim);
  margin: 0 0 32px;
  max-width: 640px;
}

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

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--home-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-home .btn:hover {
  transform: translateY(-2px);
}

.page-home .btn-magenta {
  background: var(--home-magenta);
  color: #0a0a12;
  box-shadow: 0 0 24px rgba(255, 46, 136, 0.35);
}

.page-home .btn-ghost {
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: var(--home-blue);
  background: transparent;
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-top: 1px solid var(--home-border);
  padding-top: 24px;
}

.page-home .hero-stat {
  padding: 12px 0;
}

.page-home .hero-stat .stat-num {
  font-family: var(--home-font-display);
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  color: var(--text, #e9eaf2);
  display: block;
  margin-bottom: 6px;
}

.page-home .hero-stat .stat-num small {
  font-size: 20px;
  color: var(--home-magenta);
  margin-left: 2px;
}

.page-home .hero-stat .stat-label {
  font-family: var(--home-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--home-text-dim);
  text-transform: uppercase;
}

.page-home .hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44%;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-visual-grid {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(135deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000 100%);
}

.page-home .hero-code {
  position: absolute;
  bottom: 32px;
  right: 24px;
  font-family: var(--home-font-mono);
  font-size: 12px;
  color: rgba(186, 255, 60, 0.7);
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
}

.page-home .hero-number-big {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--home-font-display);
  font-weight: 900;
  font-size: 220px;
  line-height: 1;
  color: rgba(255, 46, 136, 0.1);
  letter-spacing: -0.05em;
}

/* 最新更新列表 */
.page-home .home-latest {
  background: var(--bg, #0a0a12);
}

.page-home .latest-track {
  display: flex;
  flex-direction: column;
}

.page-home .latest-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-areas:
    "rank cat"
    "rank name"
    "rank meta";
  gap: 4px 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--home-border);
  text-decoration: none;
  color: var(--text, #e9eaf2);
  transition: background 0.3s ease, padding 0.3s ease;
}

.page-home .latest-item:first-child {
  border-top: 1px solid var(--home-border);
}

.page-home .latest-item:hover {
  background: linear-gradient(90deg, rgba(255, 46, 136, 0.06), transparent 60%);
  padding-left: 12px;
}

.page-home .latest-rank {
  grid-area: rank;
  font-family: var(--home-font-mono);
  font-size: 15px;
  color: var(--home-magenta);
  align-self: center;
}

.page-home .latest-cat {
  grid-area: cat;
  justify-self: start;
}

.page-home .latest-name {
  grid-area: name;
  font-family: var(--home-font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}

.page-home .latest-meta {
  grid-area: meta;
  font-family: var(--home-font-mono);
  font-size: 11px;
  color: var(--home-text-dim);
  letter-spacing: 0.06em;
}

/* 专题合集区 */
.page-home .home-feature-dark {
  background: var(--home-bg-deep);
}

.page-home .feature-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-home .feature-copy {
  flex: 1 1 56%;
}

.page-home .feature-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--home-text-dim);
  margin: 20px 0 24px;
  max-width: 640px;
}

.page-home .feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.page-home .feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text, #e9eaf2);
}

.page-home .feature-list-icon {
  color: var(--home-green);
  font-size: 12px;
  transform: translateY(4px);
}

.page-home .feature-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--home-border);
  display: block;
}

.page-home .feature-board {
  flex: 1 1 44%;
  border: 1px solid var(--home-border);
  background: var(--home-bg-elevated);
  padding: 24px;
  align-self: flex-start;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.page-home .feature-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--home-magenta), var(--home-blue), var(--home-green));
}

.page-home .board-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--home-border);
}

.page-home .board-title {
  font-family: var(--home-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.page-home .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-green);
  box-shadow: 0 0 10px rgba(186, 255, 60, 0.7);
}

.page-home .status-text {
  font-family: var(--home-font-mono);
  font-size: 11px;
  color: var(--home-green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-home .board-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.page-home .board-label {
  font-family: var(--home-font-mono);
  font-size: 12px;
  color: var(--home-text-dim);
  letter-spacing: 0.06em;
}

.page-home .board-value {
  font-family: var(--home-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text, #e9eaf2);
}

.page-home .board-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--home-blue);
  font-family: var(--home-font-mono);
}

/* 演员索引 */
.page-home .home-actor {
  background: var(--bg, #0a0a12);
}

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

.page-home .actor-card {
  border: 1px solid var(--home-border);
  background: var(--home-bg-elevated);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-home .actor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.page-home .actor-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid var(--home-border);
}

.page-home .actor-card-body {
  padding: 24px;
}

.page-home .actor-card-tag {
  margin-bottom: 12px;
}

.page-home .actor-card-title {
  font-family: var(--home-font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--text, #e9eaf2);
}

.page-home .actor-card-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--home-text-dim);
  margin: 0;
}

/* 索引口径 */
.page-home .home-archive-section {
  background: var(--home-bg-deep);
  position: relative;
}

.page-home .home-archive-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--home-magenta), var(--home-blue), var(--home-green));
  opacity: 0.5;
}

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

.page-home .archive-note {
  border: 1px solid var(--home-border);
  padding: 28px 24px;
  position: relative;
  background: rgba(18, 18, 30, 0.4);
}

.page-home .archive-note::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 28px;
  border-top: 2px solid var(--home-magenta);
  border-left: 2px solid var(--home-magenta);
}

.page-home .archive-num {
  font-family: var(--home-font-mono);
  font-size: 14px;
  color: var(--home-blue);
  display: block;
  margin-bottom: 14px;
}

.page-home .archive-note-title {
  font-family: var(--home-font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--text, #e9eaf2);
}

.page-home .archive-note-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--home-text-dim);
  margin: 0;
}

/* 通栏视觉区 */
.page-home .home-cinema-band {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--home-bg-deep);
}

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

.page-home .cinema-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 10, 0.94) 0%, rgba(5, 5, 10, 0.72) 50%, rgba(5, 5, 10, 0.5) 100%);
}

.page-home .cinema-content {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-home .cinema-title {
  font-family: var(--home-font-display);
  font-weight: 900;
  font-size: clamp(26px, 4.5vw, 44px);
  line-height: 1.15;
  margin: 0 0 36px;
  max-width: 640px;
}

.page-home .cinema-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-home .cinema-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.page-home .step-num {
  font-family: var(--home-font-mono);
  font-size: 15px;
  color: var(--home-magenta);
  flex-shrink: 0;
  margin-top: 2px;
}

.page-home .step-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text, #e9eaf2);
  margin: 0;
}

/* 响应式 */
@media (min-width: 768px) {
  .page-home .container {
    padding: 0 40px;
  }

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

  .page-home .split-head .section-desc {
    max-width: 420px;
  }

  .page-home .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .page-home .latest-item {
    grid-template-columns: 56px 140px 1fr 180px;
    grid-template-areas: "rank cat name meta";
    align-items: center;
  }

  .page-home .latest-name {
    font-size: 18px;
  }

  .page-home .feature-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-home .feature-board {
    position: sticky;
    top: 96px;
  }

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

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

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 96px 48px 80px;
    min-height: 680px;
  }

  .page-home .hero-frame {
    padding: 56px 48px;
    width: 62%;
  }

  .page-home .hero-title {
    font-size: 58px;
  }

  .page-home .hero-lead {
    font-size: 17px;
  }

  .page-home .cinema-steps {
    flex-direction: row;
    gap: 48px;
  }

  .page-home .cinema-step {
    max-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .actor-card,
  .page-home .btn,
  .page-home .latest-item {
    transition: none;
  }

  .page-home .actor-card:hover,
  .page-home .btn:hover {
    transform: none;
  }
}
