/* ==========================================================================
   夜幕之城 (Nightfall City) - 深圳夜幕之城文化创意有限公司 官方网站样式表
   Design: Dark Gothic Luxury / Neo-classical Mystery / Golden Ethereal Glow
   ========================================================================== */

:root {
  --color-bg-primary: #0a070c;
  --color-bg-secondary: #120e17;
  --color-bg-card: rgba(22, 17, 28, 0.75);
  --color-bg-card-hover: rgba(32, 24, 42, 0.85);
  
  --color-crimson: #8e1b27;
  --color-crimson-light: #b92534;
  --color-crimson-glow: rgba(185, 37, 52, 0.45);
  
  --color-sapphire: #0e2439;
  --color-sapphire-light: #1b4267;
  --color-sapphire-glow: rgba(27, 66, 103, 0.45);
  
  --color-gold: #d4af37;
  --color-gold-light: #f3d078;
  --color-gold-dark: #aa8622;
  --color-gold-glow: rgba(212, 175, 55, 0.35);

  --color-text-primary: #f5f3f4;
  --color-text-secondary: #b3a8ba;
  --color-text-muted: #786e80;
  
  --font-serif: "Cinzel", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --font-cinzel: "Cinzel", Georgia, Cambria, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #1c0e18 0%, #0a070c 60%, #050406 100%);
  color: var(--color-text-primary);
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #09070c;
}
::-webkit-scrollbar-thumb {
  background: #2d2235;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #8e1b27;
}

/* Typography Helpers */
.font-serif {
  font-family: var(--font-serif);
}

.font-cinzel {
  font-family: var(--font-cinzel);
}

/* Text Gradient Utilities */
.text-gold-gradient {
  background: linear-gradient(135deg, #fff2cc 0%, #d4af37 50%, #aa8622 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-crimson-gradient {
  background: linear-gradient(135deg, #ff7b88 0%, #d32f2f 50%, #7f0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-sapphire-gradient {
  background: linear-gradient(135deg, #a5f3fc 0%, #38bdf8 50%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glowing Border & Frame Decorations */
.border-gold-subtle {
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.border-crimson-subtle {
  border: 1px solid rgba(185, 37, 52, 0.35);
}

.glass-panel {
  background: rgba(18, 14, 23, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
}

.glass-panel-crimson {
  background: linear-gradient(145deg, rgba(35, 12, 20, 0.8), rgba(16, 9, 14, 0.9));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(185, 37, 52, 0.3);
  box-shadow: 0 15px 35px -5px rgba(142, 27, 39, 0.25);
}

.glass-panel-sapphire {
  background: linear-gradient(145deg, rgba(14, 36, 57, 0.75), rgba(9, 18, 28, 0.9));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 15px 35px -5px rgba(14, 36, 57, 0.3);
}

/* Custom Buttons */
.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #aa8622 100%);
  color: #0b070d;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.btn-gold:active {
  transform: translateY(0);
}

.btn-crimson {
  background: linear-gradient(135deg, #b92534 0%, #70111a 100%);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(185, 37, 52, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 1px solid rgba(255, 120, 130, 0.3);
}

.btn-crimson:hover {
  background: linear-gradient(135deg, #d82e3f 0%, #8a1521 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(185, 37, 52, 0.5);
}

.btn-outline-gold {
  background: transparent;
  color: #e5c158;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Ambient Canvas Background */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Atmospheric Floating Embers & Glow */
.hero-glow-1 {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(142, 27, 39, 0.22) 0%, rgba(212, 175, 55, 0.08) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: pulse-slow 10s ease-in-out infinite alternate;
}

.hero-glow-2 {
  position: absolute;
  top: 40%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 36, 57, 0.25) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: pulse-slow 14s ease-in-out infinite alternate-reverse;
}

@keyframes pulse-slow {
  0% { transform: scale(0.9) opacity(0.8); }
  100% { transform: scale(1.15) opacity(1); }
}

/* Corner Ornaments (Victorian / Gothic Flourish) */
.flourish-box {
  position: relative;
}

.flourish-box::before,
.flourish-box::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--color-gold);
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.3s ease;
}

.flourish-box::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--color-gold);
  border-left: 2px solid var(--color-gold);
}

.flourish-box::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
}

.flourish-box:hover::before,
.flourish-box:hover::after {
  opacity: 1;
  width: 20px;
  height: 20px;
}

/* Image Card Hover Zoom Effect */
.card-img-container {
  overflow: hidden;
  position: relative;
}

.card-img-container img {
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Floating Badges */
.badge-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #f3d078;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 7, 0.92);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image-wrapper {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(18, 14, 23, 0.95);
  border: 1px solid var(--color-gold);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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