/* ==========================================================
   极速影视 - 极速电影网
   纯静态网站核心样式表 (淡黑金奢华科技风格)
   ========================================================== */

:root {
  --bg-main: #08080a;
  --bg-card: #111118;
  --bg-card-hover: #161622;
  --bg-surface: #14141e;
  --bg-accent-gold: #201d12;
  
  --gold-primary: #d4af37;
  --gold-light: #f5e3a9;
  --gold-dark: #caa02a;
  --gold-glow: rgba(212, 175, 55, 0.25);
  
  --text-main: #dedee6;
  --text-heading: #ffffff;
  --text-muted: #8e8e9c;
  --text-gold: #f5e3a9;
  
  --border-subtle: #20202c;
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-hover: rgba(212, 175, 55, 0.7);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0c0c10;
}
::-webkit-scrollbar-thumb {
  background: #25241f;
  border-radius: 4px;
  border: 1px solid #4a3e1a;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header Top Bar Contract */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 13, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Brand Zone */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  padding: 1.5px;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.brand-badge-inner {
  width: 100%;
  height: 100%;
  background: #0e0e14;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold-light);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Nav links Zone */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

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

/* Action Zone */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px var(--gold-glow);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #171722;
  color: #fff;
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-secondary:hover {
  background: #232332;
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: #fff;
}

/* Sections Common */
section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Hero Showcase */
.hero-stage {
  margin-top: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-gold);
  background: linear-gradient(180deg, #161522 0%, #0c0c12 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

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

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(2px);
  transform: scale(1.05);
}

.hero-backdrop-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0c0c12 0%, rgba(12, 12, 18, 0.85) 60%, rgba(12, 12, 18, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  max-width: 800px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge-gold {
  background: var(--gold-primary);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.badge-outline {
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  background: rgba(32, 29, 18, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.badge-rating {
  background: rgba(0,0,0,0.6);
  border: 1px solid #333;
  color: #ffc107;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero-desc {
  font-size: 0.95rem;
  color: #c9c9d6;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-specs {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-specs strong {
  color: #fff;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero 10 Carousel Bar */
.featured-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.5);
  padding: 1.25rem 2rem;
}

.featured-strip-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.6rem;
}

.featured-thumb {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #282836;
  background: #14141d;
  cursor: pointer;
  padding: 4px;
  text-align: left;
  transition: all 0.2s;
}

.featured-thumb:hover,
.featured-thumb.active {
  border-color: var(--gold-primary);
  background: #252115;
  transform: translateY(-2px);
}

.featured-thumb img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.featured-thumb-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Company Overview Banner & Metrics */
.metrics-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.metrics-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.metric-item {
  background: #161622;
  border: 1px solid #262638;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.2s;
}

.metric-item:hover {
  border-color: var(--border-gold);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.metric-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.metric-num span {
  font-size: 1rem;
  color: var(--gold-primary);
  margin-left: 2px;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Movie Cards Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem;
}

.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  cursor: pointer;
}

.movie-card:hover {
  border-color: var(--border-gold-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.movie-poster-box {
  position: relative;
  aspect-ratio: 2/3;
  width: 100%;
  overflow: hidden;
  background: #1c1c28;
}

.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.06);
}

.movie-overlay-play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .movie-overlay-play {
  opacity: 1;
}

.play-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px var(--gold-glow);
  margin-bottom: 0.5rem;
}

.badge-quality-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-rating-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.85);
  color: #ffc107;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.movie-info {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.movie-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.movie-subinfo {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-foot {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #1f1f2c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.movie-foot a {
  color: var(--gold-dark);
}
.movie-foot a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Products Filter Bar */
.filter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #1c1c28;
}

.filter-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 70px;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1;
}

.filter-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.filter-btn:hover {
  color: #fff;
  background: #1c1c28;
}

.filter-btn.active {
  background: var(--gold-primary);
  color: #000;
  font-weight: 800;
}

/* Search bar */
.search-wrapper {
  position: relative;
  max-width: 380px;
  width: 100%;
}

.search-input {
  width: 100%;
  background: #14141e;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

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

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 8px;
  background: #151520;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: var(--gold-primary);
  color: #fff;
}

.page-btn.active {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Membership Affiliate Card */
.affiliate-section {
  background: linear-gradient(135deg, #181622 0%, #12121a 60%, #1a1711 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-top: 2rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tier-card {
  background: #111118;
  border: 1px solid #262638;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tier-card:hover {
  border-color: var(--border-gold);
}

/* News & Dynamics */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.news-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

/* Timeline */
.timeline {
  position: relative;
  border-left: 2px solid #2d2a1f;
  margin-left: 1.5rem;
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #08080a;
  border: 3px solid var(--gold-primary);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #111118;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
}

/* Floating Widget */
.floating-app-bar {
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.floating-box {
  width: 250px;
  background: rgba(18, 18, 25, 0.96);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Footer */
.site-footer {
  background: #060608;
  border-top: 1px solid #1a1a24;
  padding: 4rem 0 2rem;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .featured-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-content {
    padding: 1.5rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
