/* 夜幕金帧 · 对齐与细节修正 */
:root {
  --red: #d4a017;
  --red2: #e8c15a;
  --red3: #8a6b12;
  --ink: #e8e4d8;
  --muted: #8b93a7;
  --line: rgba(212, 160, 23, 0.22);
  --bg: #0b1020;
  --soft: #101628;
  --card: #141a2e;
  --panel: #181f36;
  --navy: #070b18;
  --gold: #d4a017;
  --gold-2: #f0d48a;
  --steel: #7eb8d4;
  --shadow: none;
  --radius: 4px;
  --page: min(1200px, calc(100% - 40px));
}

html {
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

a {
  color: inherit;
}

.app-shell {
  overflow-x: hidden;
}

.wrap,
.nav-wrap,
.hero-content {
  width: var(--page);
  margin-left: auto;
  margin-right: auto;
}

/* ── Header：单行对齐 ── */
.topbar {
  background: #070b18;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  gap: 10px;
  padding: 0;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: var(--gold);
  color: #0b1020;
  box-shadow: none;
  font-size: 13px;
}

.brand strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #f4efe0;
  line-height: 1.2;
}

.brand em {
  margin-top: 2px;
  color: var(--steel);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0;
  border-top: 0;
  grid-column: auto;
}

.nav-link {
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: #b7c0d2;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: #1c243c;
  color: var(--gold);
}

.mobile-panel {
  background: #0f1628;
  border-top: 1px solid var(--line);
}

.mobile-panel a {
  color: #d5dbe8;
  border-bottom-color: #1c243c;
}

.mobile-panel a.active {
  color: var(--gold);
}

.skip-link {
  border-radius: var(--radius);
  background: var(--gold);
  color: #0b1020;
  box-shadow: none;
}

/* ── Hero ── */
.hero-carousel {
  min-height: 460px;
  background: #070b18;
  overflow: hidden;
}

.hero-slide img {
  filter: saturate(0.88) contrast(1.04);
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(7, 11, 24, 0.18) 0%, rgba(7, 11, 24, 0.62) 42%, rgba(7, 11, 24, 0.94) 100%);
}

.hero-orb {
  display: none;
}

.hero-content {
  min-height: 460px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 28px 0 44px;
}

.hero-content > div {
  order: 2;
  min-width: 0;
}

.hero-panel {
  order: 1;
  align-self: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  box-shadow: none;
  width: 240px;
  max-width: 100%;
}

.hero-panel img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  max-height: 380px;
  border-radius: 0;
  border: 1px solid var(--line);
  box-shadow: none;
  object-fit: cover;
}

.hero-panel h2,
.hero-panel p {
  display: none;
}

.eyebrow {
  border-radius: 0;
  border-color: var(--gold);
  background: transparent;
  color: var(--gold);
  letter-spacing: 0.04em;
  font-size: 12px;
  padding: 4px 10px;
}

.hero-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 12px 0 10px;
}

.hero-desc {
  color: #c9d0de;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.7;
}

.hero-tags {
  gap: 8px;
  margin-top: 12px;
}

.hero-tags span,
.card-tags span,
.tag-cloud span {
  border-radius: 0;
  background: transparent;
  color: var(--gold-2);
  border: 1px solid var(--line);
  padding: 3px 8px;
  font-size: 12px;
}

.hero-tags span {
  background: transparent;
  color: var(--gold-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  border-radius: var(--radius);
  padding: 10px 18px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none;
  white-space: nowrap;
}

.btn:hover {
  transform: none;
}

.btn-primary {
  background: var(--gold);
  color: #0b1020;
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f4efe0;
  background: transparent;
}

.hero-dots {
  bottom: 16px;
  gap: 8px;
}

.hero-dots button {
  width: 18px;
  height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.active {
  width: 36px;
  background: var(--gold);
}

/* ── 中部区块 ── */
.section {
  padding: 36px 0;
}

.section-white {
  background: #0d1324;
}

.section-soft {
  background: #10182c;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-head .btn {
  flex-shrink: 0;
}

.section-kicker {
  color: var(--steel);
  letter-spacing: 0.16em;
  font-size: 11px;
}

.section-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}

.section-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 4px;
}

.stat-grid {
  gap: 0;
  border: 1px solid var(--line);
  background: var(--card);
}

.stat-card {
  border-radius: 0;
  padding: 20px 20px 18px;
  background: transparent;
  box-shadow: none;
  border: 0;
  border-right: 1px solid var(--line);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card strong {
  font-size: 22px;
  color: var(--gold);
  font-weight: 700;
  line-height: 1.2;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  min-height: 96px;
  border-radius: 0;
  padding: 18px 20px 16px 22px;
  background: var(--card);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-card:nth-child(2n),
.category-card:nth-child(3n) {
  background: var(--card);
}

.category-card:after {
  display: none;
}

.category-card strong {
  font-size: 17px;
  font-weight: 700;
  color: #f4efe0;
  line-height: 1.3;
}

.category-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card:hover {
  background: #1a243f;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.feature-card {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feature-card:nth-child(-n + 2) {
  grid-column: auto;
}

.feature-card img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 168px;
  object-fit: cover;
  flex-shrink: 0;
}

.feature-card:nth-child(-n + 2) img {
  height: 168px;
}

.feature-card:after {
  display: none;
}

.feature-card:hover img {
  transform: none;
  filter: brightness(1.06);
}

.feature-card div {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  padding: 12px 14px 14px;
  min-height: 76px;
}

.feature-card strong {
  font-size: 16px;
  color: #f4efe0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-card p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 20px;
}

.search-box {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 14px;
  background: #0d1324;
  color: var(--ink);
  box-shadow: none;
  line-height: 42px;
}

.search-box:focus {
  border-color: var(--gold);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar .filter-btn {
  border-radius: 0;
  padding: 7px 12px;
  background: transparent;
  color: #c9d0de;
  border: 1px solid var(--line);
  font-weight: 600;
  line-height: 1;
}

.toolbar .filter-btn:hover,
.toolbar .filter-btn.active {
  background: var(--gold);
  color: #0b1020;
  border-color: var(--gold);
}

.movie-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.movie-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.movie-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--gold);
}

.poster {
  background: #1a243f;
}

.poster img {
  transition: none;
}

.movie-card:hover .poster img {
  transform: none;
}

.poster-glow {
  height: 32%;
  background: linear-gradient(0deg, rgba(7, 11, 24, 0.78), transparent);
}

.poster-year {
  right: 8px;
  top: 8px;
  background: var(--gold);
  color: #0b1020;
  border-radius: 0;
  padding: 2px 6px;
  font-size: 11px;
}

.movie-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.movie-title {
  font-size: 14px;
  font-weight: 700;
  color: #f4efe0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-title:hover {
  color: var(--gold);
}

.movie-info p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 6px;
  min-height: 36px;
}

.meta {
  color: var(--steel);
  font-size: 11px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
  min-height: 22px;
}

.meta span {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 2px 6px;
}

.movie-card .card-tags {
  display: none;
}

.rank-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

.rank-list {
  gap: 8px;
}

.rank-layout .rank-list {
  grid-template-columns: 1fr;
}

.rank-item {
  grid-template-columns: 40px 56px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 12px;
  box-shadow: none;
}

.rank-item:hover {
  transform: none;
  background: #1a243f;
  box-shadow: none;
}

.rank-no {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 13px;
}

.rank-item:nth-child(-n + 3) .rank-no {
  background: var(--gold);
  color: #0b1020;
}

.rank-item img {
  width: 56px;
  height: 74px;
  border-radius: 0;
  background: #1a243f;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong {
  font-size: 15px;
  color: #f4efe0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-copy em {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wrap > .rank-list {
  grid-template-columns: 1fr 1fr;
}

.rank-heat {
  color: var(--gold);
  text-align: right;
}

.side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.side-card h3 {
  color: var(--gold);
  font-size: 18px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.breadcrumb a {
  color: var(--gold);
}

.detail-hero {
  padding: 20px 0 12px;
  background: #10182c;
  color: #f4efe0;
}

.section.detail-hero {
  background: #10182c;
}

.section.detail-hero + .section {
  padding-top: 20px;
}

.detail-grid {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.detail-poster {
  border-radius: 0;
  box-shadow: none;
  background: #1a243f;
  border: 1px solid var(--line);
  overflow: hidden;
  max-width: 220px;
  width: 100%;
}

.detail-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.detail-one {
  color: #c9d0de;
  font-size: 15px;
  line-height: 1.7;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.detail-meta span {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 12px;
  padding: 4px 8px;
}

.detail-hero .hero-tags {
  display: none;
}

.detail-hero .hero-actions {
  margin-top: 16px;
}

.player-wrap {
  width: 100%;
  background: #05070f;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--line);
  overflow: hidden;
}

.player-wrap video {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  object-fit: contain;
  background: #000;
}

.article-grid {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: start;
}

.content-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.content-card h2 {
  font-size: 20px;
  color: #f4efe0;
}

.content-card p {
  color: #c9d0de;
  font-size: 14px;
  line-height: 1.75;
}

.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-card {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 8px;
}

.mini-card:hover {
  transform: none;
  box-shadow: none;
  background: #1a243f;
}

.mini-card img {
  width: 64px;
  height: 84px;
  border-radius: 0;
  background: #1a243f;
  object-fit: cover;
}

.mini-card strong {
  color: #f4efe0;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-card span {
  color: var(--muted);
}

.load-more-wrap .btn {
  min-width: 160px;
}

.footer {
  background: #070b18;
  color: #b7c0d2;
  margin-top: 0;
  border-top: 1px solid var(--gold);
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px 40px;
  padding: 32px 0 20px;
  align-items: start;
}

.footer-brand {
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0;
}

.footer h3 {
  font-size: 14px;
  letter-spacing: 0;
  color: #f4efe0;
  margin-bottom: 12px;
}

.footer p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}

.footer a {
  color: #b7c0d2;
}

.footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid #1c243c;
  color: var(--muted);
  letter-spacing: 0;
}

main .wrap > form,
main .wrap > article {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 24px;
}

input,
textarea,
select {
  color: inherit;
}

.bbaaseo-fly__plane {
  filter: drop-shadow(0 8px 16px rgba(212, 160, 23, 0.35));
}

.bbaaseo-fly__trail i {
  background: linear-gradient(135deg, #f0d48a, #7eb8d4);
}

.bbaaseo-fly__text {
  background: linear-gradient(92deg, #d4a017 0%, #f0d48a 45%, #7eb8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr;
    min-height: 420px;
    gap: 0;
  }

  .hero-panel {
    display: none;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(7, 11, 24, 0.28) 0%, rgba(7, 11, 24, 0.88) 70%, #0b1020 100%);
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rank-layout,
  .article-grid,
  .wrap > .rank-list {
    grid-template-columns: 1fr;
  }

  .feature-card img,
  .feature-card:nth-child(-n + 2) img {
    height: 160px;
  }

  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-links {
    justify-content: flex-end;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }
}

@media (max-width: 820px) {
  .hero-carousel,
  .hero-content {
    min-height: 400px;
  }

  .hero-title {
    font-size: 28px !important;
  }

  .section {
    padding: 28px 0;
  }

  .stat-grid,
  .featured-grid,
  .category-grid,
  .related-grid,
  .wrap > .rank-list {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .stat-card:nth-child(2n) {
    border-right: 0;
  }

  .stat-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .detail-grid {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
  }

  .detail-poster {
    max-width: 160px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rank-item {
    grid-template-columns: 32px 52px minmax(0, 1fr);
  }

  .rank-no {
    width: 32px;
    height: 32px;
  }

  .rank-heat {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  :root {
    --page: min(100% - 24px, 1200px);
  }

  .brand strong {
    font-size: 16px;
  }

  .btn {
    width: auto;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .btn,
  .detail-hero .btn {
    width: 100%;
  }

  .hero-title {
    font-size: 24px !important;
  }

  .hero-desc {
    font-size: 14px;
  }

  .stat-grid,
  .featured-grid,
  .category-grid,
  .related-grid,
  .wrap > .rank-list {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: 0;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 180px;
  }

  .detail-title {
    font-size: 24px;
  }

  .content-card {
    padding: 16px;
  }

  .movie-info p {
    display: none;
  }
}
