/* ===== Live Cyber Attack Map - Pro 版 (修复背景失效变白问题) ===== */
:root {
  --primary-500: #8b5cf6; --primary-600: #7c3aed; --primary-700: #6d28d9;
  --secondary-500: #ec4899; --secondary-600: #db2777;
  --accent-blue: #0ea5e9;
  /* ✅ 重点修复：变量名统一为 --bg-st, --bg-md, --bg-nd */
  --bg-st: #e0f2fe; --bg-md: #f0f9ff; --bg-nd: #fdf4ff;
  --surface-01: rgba(255, 255, 255, 0.9); --surface-02: rgba(255, 255, 255, 0.7);
  --text-primary: #1f2937; --text-secondary: #4b5563; --text-tertiary: #6b7280;
  --border-light: rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1); --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.dark-mode {
  /* ✅ 黑夜模式变量名也统一 */
  --bg-st: #1e1b4b; --bg-md: #1e293b; --bg-nd: #312e81;
  --surface-01: rgba(30, 41, 59, 0.85); --surface-02: rgba(30, 41, 59, 0.6);
  --text-primary: #f9fafb; --text-secondary: #e5e7eb; --text-tertiary: #d1d5db;
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4); --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

body { font-family: 'Inter', sans-serif; background: linear-gradient(135deg, var(--bg-st), var(--bg-md), var(--bg-nd)); color: var(--text-primary); transition: all 0.5s ease; overflow-x: hidden; }

/* 动态漂浮背景 */
.grid-background { position: fixed; inset: 0; z-index: -3; opacity: 0.05; background-image: radial-gradient(circle at 20% 30%, var(--primary-500) 0%, transparent 15%), radial-gradient(circle at 80% 70%, var(--secondary-500) 0%, transparent 15%), radial-gradient(circle at 40% 80%, var(--accent-blue) 0%, transparent 15%); }
.geometric-shapes { position: fixed; inset: 0; z-index: -2; opacity: 0.15; }
.shape { position: absolute; opacity: 0.2; background: linear-gradient(45deg, var(--primary-500), var(--secondary-500)); animation: shapeFloat 20s infinite linear; }
.shape:nth-child(1) { width: 300px; height: 300px; border-radius: 30% 70% 70% 30%/30% 30% 70% 70%; top: -100px; left: -100px; }
.shape:nth-child(2) { width: 400px; height: 400px; border-radius: 50%; bottom: -150px; right: -100px; animation-delay: -5s; }
.shape:nth-child(3) { width: 200px; height: 200px; border-radius: 60% 40% 30% 70%; top: 40%; left: 80%; animation-delay: -10s; }
@keyframes shapeFloat { 100% { transform: translate(100px, 50px) rotate(360deg); } }

/* 头部设计 */
.icon-container { width: 80px; height: 80px; }
.icon-glow { position: absolute; inset: -5px; background: linear-gradient(45deg, var(--primary-500), var(--secondary-500)); border-radius: 20px; filter: blur(15px); opacity: 0.6; animation: glowRotate 8s linear infinite; }
.icon-container i { background: linear-gradient(135deg, var(--primary-500), var(--secondary-500)); border-radius: 20px; display: flex; justify-content: center; align-items: center; box-shadow: var(--shadow-lg); width: 100%; height: 100%; }
@keyframes glowRotate { 100% { transform: rotate(360deg); } }
.title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; background: linear-gradient(135deg, var(--primary-600), var(--secondary-600), var(--accent-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; }

/* 主题按钮 */
.theme-toggle { top: 24px; right: 24px; width: 52px; height: 52px; background: var(--surface-01); backdrop-filter: blur(20px); border: 1px solid var(--border-light); cursor: pointer; transition: 0.3s ease; color: var(--text-secondary); font-size: 1.2rem; }
.theme-toggle:hover { transform: scale(1.1) rotate(15deg); border-color: var(--primary-500); color: var(--primary-600); }

/* 核心面板卡片 */
.custom-glass-card { background: var(--surface-01); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-light); border-radius: 24px; box-shadow: var(--shadow-2xl); transition: all 0.3s ease; }
.card-glow { position: absolute; inset: -2px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2)); z-index: -1; filter: blur(20px); opacity: 0.5; animation: pulseGlow 8s linear infinite alternate; border-radius: 26px; }
@keyframes pulseGlow { 0% { opacity: 0.3; } 100% { opacity: 0.7; } }

/* 🌍 Iframe 地图专属特效 */
.map-iframe { height: 550px; border: none; background: #000; border-radius: 12px; box-shadow: var(--shadow-md); transition: transform 0.3s ease; }
.map-iframe:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

/* 底部 */
.footer-b { background: linear-gradient(135deg, var(--primary-600), var(--secondary-600)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }

/* 响应式地图高度适配 */
@media (max-width: 1024px) { .map-iframe { height: 450px; } }
@media (max-width: 768px) {
    .theme-toggle { top: 15px; right: 15px; width: 44px; height: 44px; }
    .map-iframe { height: 400px; }
}
@media (max-width: 480px) { .map-iframe { height: 350px; } }