
:root {
  --bg: #fdfaf3;
  --bg-soft: #fffdf8;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.18);
  --sand: #9d8350;
  --sand-dark: #7d6840;
  --desert: #b88d39;
  --deep: #111827;
  --shadow: 0 14px 35px rgba(113, 87, 35, 0.12);
  --shadow-soft: 0 8px 20px rgba(17, 24, 39, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbf7ef 0%, #fff 40%, #fafafa 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sand), var(--desert));
  box-shadow: var(--shadow-soft);
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}
.brand-title {
  font-size: 1.15rem;
  background: linear-gradient(90deg, var(--sand-dark), var(--desert));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-subtitle {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.nav a {
  position: relative;
  padding: 12px 4px;
  color: #4b5563;
  font-size: .95rem;
  font-weight: 600;
  transition: color .2s ease;
}
.nav a:hover,
.nav a.active { color: var(--sand-dark); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sand), var(--desert));
}
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #f8f4eb;
  color: #374151;
  border-radius: 12px;
}
.mobile-nav {
  display: none;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255,255,255,.96);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(243, 244, 246, .9);
  color: #374151;
  font-weight: 600;
}
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(229,231,235,.7);
}
.hero-viewport {
  position: relative;
  min-height: 560px;
  height: min(72vh, 760px);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,24,39,.15) 0%, rgba(17,24,39,.35) 45%, rgba(17,24,39,.86) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 32px 0 40px;
  color: #fff;
}
.hero-inner {
  width: 100%;
  display: grid;
  gap: 20px;
  grid-template-columns: 1.55fr .85fr;
  align-items: end;
}
.hero-copy {
  max-width: 760px;
}
.hero-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1;
}
.badge.gold {
  color: #fff;
  background: linear-gradient(135deg, var(--sand), var(--desert));
}
.badge.soft {
  color: #fff;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: .01em;
}
.hero p {
  margin: 0 0 22px;
  color: rgba(255,255,255,.85);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.7;
  max-width: 48rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sand), var(--desert));
  box-shadow: 0 12px 24px rgba(157,131,80,.28);
}
.btn-ghost {
  color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.btn-light {
  color: #374151;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.hero-side {
  justify-self: end;
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
}
.hero-panel {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  padding: 18px;
  color: #fff;
}
.hero-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}
.hero-list {
  display: grid;
  gap: 10px;
}
.hero-mini {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}
.hero-mini .poster {
  height: 58px;
  border-radius: 12px;
}
.hero-mini strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 4px;
}
.hero-mini span {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.36);
  cursor: pointer;
}
.hero-dot.active { background: #fff; transform: scale(1.15); }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.hero-arrow:hover { background: rgba(255,255,255,.24); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.section {
  padding: 42px 0;
}
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
}
.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.section-link {
  color: var(--sand-dark);
  font-weight: 700;
  white-space: nowrap;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.cards-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.movie-card,
.category-card,
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.movie-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.poster {
  position: relative;
  width: 100%;
  background-color: #eadfc6;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,24,39,0) 55%, rgba(17,24,39,.28) 100%);
}
.poster-ratio { aspect-ratio: 2 / 3; }
.poster-wide { aspect-ratio: 16 / 9; }
.card-body {
  padding: 16px 16px 18px;
}
.card-title {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.45;
}
.card-title a:hover { color: var(--sand-dark); }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.card-meta .badge { padding: 6px 10px; }
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
}
.card-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-footer .mini-link {
  color: var(--sand-dark);
  font-weight: 700;
  font-size: .92rem;
}
.search-bar {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, .6fr)) auto;
  gap: 12px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  border: 1px solid rgba(203, 213, 225, .95);
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}
.field input:focus,
.field select:focus {
  border-color: rgba(157, 131, 80, .45);
  box-shadow: 0 0 0 4px rgba(157, 131, 80, .10);
}
.page-shell {
  padding: 28px 0 48px;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--sand-dark); }
.detail-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.detail-figure {
  position: sticky;
  top: 96px;
}
.detail-poster {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.6);
}
.detail-poster .poster { min-height: 510px; }
.detail-stats {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.stat {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.stat strong { display: block; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: .92rem; }
.detail-main {
  display: grid;
  gap: 22px;
}
.detail-header {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.detail-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.12;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.detail-copy {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}
.detail-copy p { margin: 0 0 14px; }
.detail-copy p:last-child { margin-bottom: 0; }
.detail-card {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.detail-card h2 {
  margin: 0 0 14px;
  font-size: 1.28rem;
}
.player-box {
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow);
}
.player-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.player-toolbar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rel-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.footer {
  margin-top: 36px;
  padding: 30px 0 48px;
  color: var(--muted);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
  border-top: 1px solid rgba(229,231,235,.85);
  padding-top: 24px;
}
.footer h3 {
  margin: 0 0 12px;
  color: #374151;
  font-size: 1.02rem;
}
.footer a { color: var(--sand-dark); }
.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  color: var(--muted);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.kpi {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.kpi strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--sand-dark);
}
.kpi span { color: var(--muted); }
.category-card {
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-card h3 { margin: 10px 0 8px; font-size: 1.1rem; }
.category-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.84);
  color: #374151;
  font-weight: 700;
}
.pagination a.active,
.pagination a:hover { background: linear-gradient(135deg, var(--sand), var(--desert)); color: #fff; }
.small-note {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
}
.hidden { display: none !important; }

@media (max-width: 1100px) {
  .hero-inner,
  .detail-grid,
  .footer-inner,
  .search-grid,
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .hero-side { width: 100%; justify-self: stretch; }
  .rel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .mobile-toggle { display: inline-grid; place-items: center; }
  .hero-viewport { min-height: 660px; height: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-content { align-items: end; }
  .hero-copy { max-width: none; }
  .hero-side { width: 100%; }
  .grid.cards-2,
  .grid.cards-3,
  .grid.cards-4,
  .grid.cards-5,
  .grid.cards-6,
  .rel-grid,
  .kpi-grid,
  .footer-inner,
  .search-grid,
  .detail-grid { grid-template-columns: 1fr; }
  .section-header { align-items: start; flex-direction: column; }
  .detail-figure { position: static; }
  .player { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 22px, 1240px); }
  .topbar-inner { min-height: 68px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-title { font-size: 1rem; }
  .brand-subtitle { display: none; }
  .hero-viewport { min-height: 640px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: .98rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-arrow { width: 40px; height: 40px; }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
}
