/* 八戒影院 - 纯静态样式表 (Soft Black & Gold / 淡黑金企业级视觉系统) */

:root {
  --bg-main: #0b0c10;
  --bg-card: #131722;
  --bg-card-hover: #181e2e;
  --bg-header: rgba(11, 12, 16, 0.92);
  --gold-primary: #d4af37;
  --gold-light: #f5d77f;
  --gold-dark: #a67c1e;
  --gold-gradient: linear-gradient(135deg, #f7e09e 0%, #d4af37 50%, #aa8214 100%);
  --gold-border: rgba(212, 175, 55, 0.22);
  --gold-glow: 0 4px 20px rgba(212, 175, 55, 0.25);
  --text-primary: #f0f2f8;
  --text-secondary: #9ea5b8;
  --text-muted: #646b80;
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: #ffd700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0c10;
}
::-webkit-scrollbar-thumb {
  background: #252a3a;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}
::-webkit-scrollbar-thumb:hover {
  background: #d4af37;
}

/* Typography & Colors */
.gold-text {
  color: var(--gold-primary);
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
  background: var(--gold-gradient);
  color: #0b0c10;
}

/* Cards & Containers */
.card-dark {
  background-color: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.card-dark:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
}

/* Buttons */
.gold-btn {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #0b0c10;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.gold-btn:hover {
  background: linear-gradient(135deg, #f5d77f 0%, #c89518 100%);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.gold-btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.gold-btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-light);
  color: #fff;
}

/* Badges */
.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: #f7e09e;
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* Floating Download Widget */
.floating-download-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.floating-btn {
  background: linear-gradient(135deg, #d4af37, #9b720b);
  color: #0b0c10;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.65);
}

.floating-qr-card {
  background: #141722;
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  align-items: center;
  width: 200px;
  animation: fadeIn 0.2s ease-out forwards;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 9, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #131722;
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.15);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #192030;
  border: 1px solid var(--gold-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 2000;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  pointer-events: none;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-pulse-slow {
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
