/* 奇优影院 - 官方纯静态专用样式表 (css/style.css) */

@charset "UTF-8";

:root {
  --bg-main: #08090d;
  --bg-card: #11131a;
  --bg-card-hover: #171a24;
  --bg-elevated: #1b1e2a;
  --gold-primary: #e5a93c;
  --gold-light: #fce09b;
  --gold-dark: #b88226;
  --gold-glow: rgba(229, 169, 60, 0.25);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(229, 169, 60, 0.3);
}

/* 全局滚动平滑与基础样式 */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

/* 优雅淡黑金文字与背景渐变 */
.gold-gradient-text {
  background: linear-gradient(135deg, #fff2cc 0%, #f6cb65 40%, #e5a93c 70%, #b88226 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #f6cb65 0%, #e5a93c 60%, #b88226 100%);
  color: #08090d !important;
}

.gold-gradient-btn {
  background: linear-gradient(135deg, #f6cb65 0%, #e5a93c 60%, #b88226 100%);
  color: #08090d !important;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(229, 169, 60, 0.25);
}

.gold-gradient-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 169, 60, 0.4);
  filter: brightness(1.08);
}

.gold-border {
  border: 1px solid var(--border-gold);
}

.gold-glow-box {
  box-shadow: 0 0 25px rgba(229, 169, 60, 0.15);
}

/* 自定义豪华滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #08090d;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e5a93c;
}

/* 遮罩与玻璃拟态效果 */
.glass-panel {
  background: rgba(17, 19, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* 电影海报悬浮缩放卡片 */
.movie-card {
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.movie-card:hover {
  transform: translateY(-6px);
}

.movie-card .poster-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.movie-card img {
  transition: transform 0.5s ease;
}

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

/* 动效关键帧 */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(229, 169, 60, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(229, 169, 60, 0.5);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes floatAnim {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: floatAnim 4s infinite ease-in-out;
}

/* 弹幕滚动动画 */
@keyframes danmakuRoll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-150%);
  }
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  animation: danmakuRoll 8s linear infinite;
  pointer-events: none;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

/* Toast 提示浮层 */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  background: #18181b;
  color: #fff;
  border: 1px solid rgba(229, 169, 60, 0.4);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(229, 169, 60, 0.2);
  animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tab 切换过渡 */
.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

/* 徽章 Badge */
.badge-gold {
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid rgba(229, 169, 60, 0.35);
  color: #f6cb65;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}
