/* ==========================================================================
   奇优影院 - 官方纯静态企业站样式表 (淡黑金奢华影院风)
   ========================================================================== */

:root {
  --bg-primary: #08090D;
  --bg-secondary: #0E1017;
  --bg-card: #141722;
  --bg-card-hover: #1C2030;
  --gold-primary: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-dark: #997A15;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --border-color: rgba(212, 175, 55, 0.18);
  --border-hover: rgba(212, 175, 55, 0.45);
}

/* 基础重置与排版 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #08090D;
}
::-webkit-scrollbar-thumb {
  background: #252A3A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* 金色渐变文字与背景 */
.gold-gradient-text {
  background: linear-gradient(135deg, #FFF0C2 0%, #D4AF37 50%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA820A 100%);
  color: #000;
}

.gold-gradient-bg-dark {
  background: linear-gradient(135deg, #2A2415 0%, #171510 100%);
}

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

.gold-border-hover:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--gold-glow);
}

.glass-panel {
  background: rgba(14, 16, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
}

/* 电影海报卡片动效 */
.movie-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
}

.movie-card .poster-wrapper {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background-color: #12141C;
}

.movie-card .poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrapper img {
  transform: scale(1.06);
}

.movie-card .overlay-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* 标签样式 */
.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: #F3E5AB;
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #D8B4FE;
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 动效与弹窗 */
.fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* 弹幕浮动样式 */
@keyframes danmakuMove {
  from { transform: translateX(100%); }
  to { transform: translateX(-150%); }
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  color: #FFF;
  font-weight: 500;
  text-shadow: 1px 1px 2px #000, 0 0 5px rgba(212, 175, 55, 0.6);
  animation: danmakuMove 8s linear infinite;
  pointer-events: none;
  font-size: 14px;
}

/* 浮动挂件与抽屉 */
.floating-widget {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-widget:hover {
  transform: translateY(-4px) scale(1.05);
}

/* 旋转转盘动画 */
@keyframes spinWheel {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(1800deg); }
}

.spin-active {
  animation: spinWheel 3s cubic-bezier(0.15, 0.9, 0.2, 1) forwards;
}
