/* ==========================================================================
   八戒影院 (八戒电影网) - 纯 CSS / 淡黑金影视美学样式表
   ========================================================================== */

:root {
  --bg-primary: #090a0d;
  --bg-secondary: #101217;
  --bg-tertiary: #161821;
  --bg-surface: #12141a;
  --border-color: #21242f;
  --border-hover: rgba(212, 175, 55, 0.5);
  
  --gold-primary: #d4af37;
  --gold-light: #f7e7a9;
  --gold-dark: #aa8222;
  --gold-glow: rgba(212, 175, 55, 0.2);

  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --font-family: 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  background-color: var(--bg-primary);
  color: #e5e7eb;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090a0d;
}
::-webkit-scrollbar-thumb {
  background: #232631;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

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

/* Typography & Gold accents */
.gold-text {
  background: linear-gradient(135deg, #f7e7a9 0%, #d4af37 50%, #aa8222 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-btn {
  background: linear-gradient(135deg, #f7e7a9 0%, #d4af37 50%, #aa8222 100%);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}
.gold-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
}
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #3b4050;
  color: #fff;
}

/* Header & Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 68px;
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #d4af37, #8c6a1b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  color: #000;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-subtitle {
  font-size: 0.7rem;
  color: var(--gold-primary);
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-left: 0.4rem;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
nav.main-nav a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--gold-primary);
}
nav.main-nav a.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.85rem;
}
.search-trigger-btn {
  background: #14161f;
  border: 1px solid var(--border-color);
  color: #9ca3af;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}
.search-trigger-btn:hover {
  border-color: var(--gold-primary);
  color: #fff;
}

/* Hero Showcase Carousel */
.hero-showcase {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.22) blur(2px);
  transform: scale(1.05);
  transition: all 0.8s ease-in-out;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090a0d 0%, rgba(9, 10, 13, 0.85) 60%, rgba(9, 10, 13, 0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  padding: 4rem 0;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}
.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 1.25rem;
}
.hero-meta span.gold-rating {
  color: var(--gold-light);
  font-weight: 700;
}
.hero-desc {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Stats Bar */
.stats-bar {
  background: #0d0f14;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stats-item h4 {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--gold-light);
  font-family: monospace;
}
.stats-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Movie Cards Grid */
.section-block {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-color);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.section-header-left .kicker {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.section-header-left h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.section-header-left p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.movies-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.movies-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.movie-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.movie-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}
.movie-poster-box {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #14161e;
}
.movie-poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.movie-card:hover .movie-poster-box img {
  transform: scale(1.06);
}
.movie-badge-quality {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.65rem;
  color: var(--gold-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.movie-badge-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: var(--gold-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.movie-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.movie-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.35rem;
}
.movie-meta-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.4rem;
}
.movie-brief {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.movie-bottom {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.play-now-link {
  color: var(--gold-primary);
  font-weight: 600;
}

/* Core Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
}
.product-card:hover {
  border-color: var(--border-hover);
  background: #141720;
}
.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-primary);
}
.product-tag {
  font-size: 0.75rem;
  color: var(--gold-primary);
  font-weight: 600;
}
.product-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.product-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.product-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.point-item {
  font-size: 0.75rem;
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.point-item::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold-primary);
  border-radius: 50%;
}

/* News List */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-card:hover {
  border-color: var(--border-hover);
  background: #151821;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.news-cat {
  color: var(--gold-primary);
  font-weight: 700;
}
.news-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 0.65rem;
}
.news-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-bottom {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Dynamics 20 items */
.dynamics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.dyn-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dyn-card:hover {
  border-color: var(--border-hover);
  background: #141720;
}
.dyn-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0.4rem 0;
}
.dyn-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* VIP Section */
.vip-box {
  background: linear-gradient(180deg, #13151c 0%, #0c0d12 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
}
.vip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.vip-card {
  background: #111319;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.vip-card.popular {
  border-color: var(--gold-primary);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
  background: linear-gradient(180deg, #181b24 0%, #111319 100%);
}
.vip-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d4af37, #aa8222);
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}
.vip-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin: 1rem 0;
}
.vip-features {
  list-style: none;
  font-size: 0.8rem;
  color: #d1d5db;
  line-height: 2;
  margin-bottom: 2rem;
}
.vip-features li::before {
  content: '✓ ';
  color: var(--gold-primary);
  font-weight: bold;
}

/* Floating APP Button */
.floating-app-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  background: linear-gradient(135deg, #f7e7a9 0%, #d4af37 50%, #aa8222 100%);
  color: #000;
  padding: 0.75rem 1.4rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.floating-app-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.45);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #101217;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}
.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #1f222d;
  color: #9ca3af;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.modal-close-btn:hover {
  background: #313646;
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .movies-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .movies-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dynamics-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  nav.main-nav { display: none; }
  .movies-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .dynamics-grid { grid-template-columns: 1fr; }
  .vip-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
}
