/* 极速影院 - 核心样式库 (纯CSS) */
:root {
  --gold-primary: #d4af37;
  --gold-light: #f5df97;
  --gold-dark: #8c7121;
  --bg-dark: #090a0d;
  --bg-card: #12141c;
  --bg-card-hover: #171a26;
  --border-gold: rgba(212, 175, 55, 0.25);
  --text-main: #dedfe6;
  --text-muted: #8e92a4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Noto Sans SC', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0f14;
}
::-webkit-scrollbar-thumb {
  background: #232734;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* 工具样式 */
.gold-text {
  color: var(--gold-primary);
}
.gold-gradient-text {
  background: linear-gradient(135deg, #fff3d1 0%, #dfbe76 50%, #997a25 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gold-border {
  border-color: var(--border-gold);
}
.gold-btn {
  background: linear-gradient(135deg, #fae596 0%, #dfbe76 50%, #b89535 100%);
  color: #0b0c10;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.gold-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
}
.gold-btn:active {
  transform: translateY(0);
}
.gold-btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  cursor: pointer;
  transition: all 0.25s ease;
}
.gold-btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary);
}

/* 布局辅助 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  height: 68px;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}
.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #dfbe76, #8c7121);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 900;
  font-size: 20px;
}
.brand-text h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.brand-text span {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold-primary);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-link {
  color: #c9ccd6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
  cursor: pointer;
}
.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;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 响应式导航抽屉 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #dedfe6;
  font-size: 24px;
  cursor: pointer;
}
.mobile-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: #0f1118;
  border-bottom: 1px solid var(--border-gold);
  padding: 20px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}
.mobile-drawer.open {
  display: flex;
}

/* Hero */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(22, 24, 36, 0.85);
  font-size: 12px;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 32px;
  color: #a7abbd;
  font-size: 15px;
}
.hero-search-box {
  max-width: 580px;
  margin: 0 auto 32px;
  display: flex;
  background: rgba(20, 23, 36, 0.95);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 16px;
  color: white;
  font-size: 14px;
  outline: none;
}
.hero-search-box button {
  padding: 10px 24px;
  border-radius: 8px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}
.stat-card {
  background: rgba(18, 20, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 18px;
}
.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-light);
}
.stat-label {
  font-size: 11px;
  color: #8c90a2;
}

/* 片单卡片网格 */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.movie-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.movie-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}
.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  background: #141724;
}
.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}
.poster-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.poster-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #dfbe76;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.poster-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}
.movie-card:hover .poster-play-overlay {
  opacity: 1;
}
.play-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.movie-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.movie-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.movie-desc {
  font-size: 11px;
  color: #8c90a2;
  display: flex;
  justify-content: space-between;
}

/* 区块公共样式 */
.section {
  padding: 48px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}
.section-title-wrap h2 {
  font-size: 24px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}
.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

/* 模态弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal-dialog {
  background: #11131c;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  position: relative;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-close {
  background: none;
  border: none;
  color: #8c90a2;
  font-size: 22px;
  cursor: pointer;
}
.modal-close:hover {
  color: white;
}

/* 浮漂按钮 */
.floating-app-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #dfbe76, #fae596, #b89535);
  padding: 10px 18px;
  border-radius: 50px;
  color: #0b0c10;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.floating-app-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .gold-btn-outline {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 30px;
  }
  .movie-grid, .movie-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
