/* ===================================================================
   8090影视 (8090电影网) 官方品牌门户 - 纯CSS样式表
   主题色彩：淡黑金 (Obsidian Dark Charcoal & Champagne Gold)
   =================================================================== */

:root {
  --bg-deep: #090a0d;
  --bg-darker: #0c0e14;
  --bg-card: #12141c;
  --bg-card-hover: #191c28;
  --gold-primary: #d4af37;
  --gold-light: #fce5a3;
  --gold-dark: #8c6d1f;
  --gold-subtle: rgba(212, 175, 55, 0.18);
  --gold-border: rgba(212, 175, 55, 0.32);
  --gold-glow: rgba(212, 175, 55, 0.25);
  --text-main: #f0e6d2;
  --text-muted: #a39784;
  --text-dim: #786c5c;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #151824 0%, #090a0d 65%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #08090c;
}
::-webkit-scrollbar-thumb {
  background: #231f16;
  border-radius: 4px;
  border: 1px solid var(--gold-subtle);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography & Gold Gradients */
.gold-text {
  background: linear-gradient(135deg, #faebd7 0%, #fce5a3 25%, #d4af37 65%, #aa8420 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-btn {
  background: linear-gradient(135deg, #e6c875 0%, #d4af37 50%, #99751e 100%);
  color: #090a0d;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
}

.gold-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.dark-btn {
  background: #151822;
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.dark-btn:hover {
  background: #1e2230;
  border-color: var(--gold-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Cards & Glassmorphism */
.gold-card {
  background: linear-gradient(180deg, rgba(20, 23, 33, 0.9) 0%, rgba(12, 14, 20, 0.95) 100%);
  border: 1px solid var(--gold-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gold-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.18);
}

/* Header & Nav */
.header-top {
  background: linear-gradient(90deg, #090a0d 0%, #1a1710 50%, #090a0d 100%);
  border-bottom: 1px solid var(--gold-subtle);
  font-size: 12px;
  color: #dfb76c;
  padding: 6px 0;
}
.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.88);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(18px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #e6c875, #d4af37);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #090a0d;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
}
.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-link-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #cfc3b0;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link-btn:hover {
  color: var(--gold-light);
  background: #141722;
}
.nav-link-btn.active {
  color: var(--gold-light);
  background: #221e14;
  border-color: var(--gold-border);
  box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.15);
}

/* Sections Common */
.section {
  padding: 70px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-subtle);
  flex-wrap: wrap;
  gap: 16px;
}
.section-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.section-title {
  font-size: 30px;
  font-weight: 900;
  color: #ffffff;
}
.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Movie Card Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.movie-card {
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  background: #12141c;
  border: 1px solid var(--gold-subtle);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 14px 28px rgba(0,0,0,0.8), 0 0 16px rgba(212, 175, 55, 0.2);
}
.movie-poster-box {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #08090d;
}
.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.08);
}
.poster-top-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
}
.poster-top-badge.gold {
  background: linear-gradient(135deg, #e6c875, #d4af37);
  color: #000;
  border: none;
}
.poster-bottom-bar {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.poster-quality {
  background: rgba(0,0,0,0.7);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  color: #dedede;
}
.poster-rating {
  background: rgba(14, 16, 22, 0.85);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-weight: 700;
}
.movie-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.movie-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.movie-meta {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}
.movie-desc {
  font-size: 11px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}

/* Floating APP Button */
.floating-app-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #2a2212 0%, #3d3119 50%, #1a150c 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 35px;
  padding: 12px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: goldPulse 2.8s infinite;
}
.floating-app-btn:hover {
  transform: scale(1.06);
  filter: brightness(1.15);
}
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7), 0 10px 30px rgba(0,0,0,0.8); }
  50% { box-shadow: 0 0 0 14px rgba(212, 175, 55, 0), 0 14px 35px rgba(0,0,0,0.9); }
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #10121b;
  border: 1px solid var(--gold-border);
  border-radius: 22px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 35px rgba(212, 175, 55, 0.25);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 20;
}
.modal-close-btn:hover {
  background: #000;
  color: #fff;
  border-color: var(--gold-primary);
}

/* Tabs Hide/Show */
.page-tab-content {
  display: none;
}
.page-tab-content.active {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 600px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-title {
    font-size: 24px;
  }
  .header-top {
    display: none;
  }
}
