/* ==========================================================================
   八戒影视 - 八戒电影网 (Bajie Film Network)
   品牌展示型企业站 · 淡黑金纯静态视觉系统 (Pure CSS)
   ========================================================================== */

:root {
  --bg-main: #0c0d12;
  --bg-surface: #12141c;
  --bg-surface-elevated: #171a26;
  --bg-surface-light: #1d2130;
  --border-subtle: #202434;
  --border-gold: rgba(212, 175, 55, 0.35);
  
  --gold-primary: #d4af37;
  --gold-light: #f7e7a9;
  --gold-dark: #aa8420;
  --gold-gradient: linear-gradient(135deg, #fce8a6 0%, #d4af37 50%, #aa8420 100%);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-main);
}

::selection {
  background: rgba(212, 175, 55, 0.3);
  color: #fff4cf;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0b10;
}
::-webkit-scrollbar-thumb {
  background: #252a3d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Typography & Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-glow {
  box-shadow: 0 0 25px -5px rgba(212, 175, 55, 0.15);
}

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(12, 13, 18, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-gradient);
  color: #000;
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  border: none;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0b0c10;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}
.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: var(--bg-surface-light);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}
.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  padding: 4rem 0;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.2);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0c0d12 0%, rgba(12, 13, 18, 0.85) 55%, rgba(12, 13, 18, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 1rem 0;
}

.hero-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.meta-unboxed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.meta-unboxed span.sep {
  opacity: 0.5;
}

.hero-poster-card {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 320px;
  margin-left: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.hero-poster-card:hover {
  transform: translateY(-4px);
}
.hero-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

/* Stats Ribbon */
.stats-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat-num .unit {
  font-size: 1.15rem;
  color: var(--gold-primary);
  margin-left: 2px;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.stat-sub {
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1rem;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.section-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Movie Card Grids */
.movie-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.movie-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.movie-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
}
.movie-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.movie-poster-box {
  position: relative;
  aspect-ratio: 3/4;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.movie-poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.movie-card:hover .movie-poster-box img {
  transform: scale(1.05);
}

.movie-badge-corner {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.movie-badge-corner.gold {
  background: var(--gold-gradient);
  color: #000;
  border: none;
}

.movie-external-link {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px;
  border-radius: 6px;
  font-size: 0.75rem;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, background 0.2s;
}
.movie-external-link:hover {
  background: var(--gold-primary);
  color: #000;
  opacity: 1;
}

.movie-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 0.75rem;
}
.movie-rating {
  color: var(--gold-light);
  font-weight: 800;
}

.movie-info {
  padding: 0.75rem 0.875rem;
}
.movie-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.2s;
}
.movie-title:hover {
  color: var(--gold-light);
}
.movie-meta-line {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Core Products Grid */
.products-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s;
}
.product-box:hover {
  border-color: var(--border-gold);
}
.product-kpi {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* News & Dynamics */
.dynamics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.dynamic-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.dynamic-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.dynamic-tag.ding { background: rgba(212, 175, 55, 0.15); color: var(--gold-light); }
.dynamic-tag.kai { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.dynamic-tag.piao { background: rgba(16, 185, 129, 0.15); color: #a7f3d0; }
.dynamic-tag.duan { background: rgba(168, 85, 247, 0.15); color: #e9d5ff; }

/* Filter Bar in Products Page */
.filter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
}
.filter-label {
  color: var(--text-muted);
  width: 50px;
  flex-shrink: 0;
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8125rem;
  transition: all 0.15s;
}
.filter-btn:hover {
  background: var(--bg-surface-elevated);
  color: #fff;
}
.filter-btn.active {
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.open {
  display: flex;
}
.modal-dialog {
  background: #11131c;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
  position: relative;
}
.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}
.modal-close-btn:hover { color: #fff; }

/* Video Player Simulation */
.sim-player {
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.sim-player-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  filter: blur(1px);
}
.sim-player-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 40%, rgba(0,0,0,0.85) 100%);
}
.sim-player-controls {
  position: relative;
  z-index: 10;
  padding: 1rem;
}

/* Floating Tools */
.floating-aside {
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.floating-app-btn {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s;
  cursor: pointer;
}
.floating-app-btn:hover {
  transform: scale(1.05);
}
.floating-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}
.floating-circle-btn:hover {
  background: var(--bg-surface-light);
  color: #fff;
}

/* Footer */
.site-footer {
  background: #08090e;
  border-top: 1px solid #1a1c27;
  padding: 4rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-poster-card { display: none; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .movie-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .products-bento { grid-template-columns: 1fr; }
  .dynamics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .movie-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .movie-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-card { grid-template-columns: 1fr; }
}
