/* ===== 基础 ===== */
* { box-sizing: border-box; }
body { background: #060912; }

/* ===== 动态背景光斑 ===== */
.bg-aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: float 18s ease-in-out infinite; }
.blob-1 { width: 480px; height: 480px; background: #1d4ed8; top: -120px; left: -80px; }
.blob-2 { width: 420px; height: 420px; background: #7c3aed; bottom: -140px; right: -60px; animation-delay: -6s; }
.blob-3 { width: 380px; height: 380px; background: #0ea5e9; top: 40%; left: 55%; animation-delay: -12s; opacity: 0.35; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}

/* ===== 按钮 ===== */
.btn-ghost, .btn-primary, .btn-danger {
  display: inline-flex; align-items: center; padding: 7px 14px;
  border-radius: 10px; font-weight: 600; cursor: pointer; transition: all .2s ease; border: 1px solid transparent;
}
.btn-ghost { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #e2e8f0; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg,#0ea5e9,#2563eb); color: #fff; box-shadow: 0 4px 14px rgba(14,165,233,.35); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-danger { background: rgba(244,63,94,0.12); border-color: rgba(244,63,94,0.3); color: #fca5a5; }
.btn-danger:hover { background: rgba(244,63,94,0.2); transform: translateY(-1px); }
#editToggle.active { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }

/* ===== 玻璃卡片 ===== */
.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.10);
}
.glass-strong { background: rgba(255,255,255,0.08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.14); }

/* ===== 入场动效 ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both; }

/* ===== 首页行业卡片 ===== */
.industry-card {
  position: relative; border-radius: 22px; padding: 24px; cursor: pointer; overflow: hidden;
  background: rgba(255,255,255,0.05); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.10);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
  animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both;
}
.industry-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(620px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,0.12), transparent 45%);
}
.industry-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 24px 50px -12px rgba(0,0,0,0.6); border-color: rgba(255,255,255,0.25); }
.industry-card:hover::before { opacity: 1; }
.industry-card:active { transform: translateY(-2px) scale(0.99); }

/* 行业卡片顶部的色条 */
.industry-card .accent-bar { height: 5px; border-radius: 999px; width: 56px; transition: width .35s ease; }
.industry-card:hover .accent-bar { width: 96px; }

/* logo 墙 */
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 34px; padding: 0 9px;
  border-radius: 9px; font-size: 12px; font-weight: 700; letter-spacing: .2px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.10); color: #e2e8f0;
  transition: all .2s ease; cursor: default;
}
.logo-chip:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

/* ===== 企业卡片 ===== */
.company-card {
  position: relative; border-radius: 18px; padding: 18px; cursor: pointer; overflow: hidden;
  background: rgba(255,255,255,0.05); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.10); transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease;
  animation: fadeUp .5s cubic-bezier(.22,1,.36,1) both;
}
.company-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -12px rgba(0,0,0,0.55); border-color: rgba(255,255,255,0.22); }
.company-card:active { transform: translateY(-1px) scale(.985); }
.company-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--c, #0ea5e9); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.company-card:hover::after { transform: scaleX(1); }

/* ===== 返回按钮 ===== */
.back-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 11px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #e2e8f0;
  font-weight: 600; cursor: pointer; transition: all .2s ease;
}
.back-btn:hover { background: rgba(255,255,255,0.13); transform: translateX(-3px); }

/* ===== 指标小卡 ===== */
.stat {
  background: rgba(255,255,255,0.05); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px; padding: 18px; transition: all .25s ease;
}
.stat:hover { background: rgba(255,255,255,0.09); transform: translateY(-3px); }

/* ===== 图表容器 ===== */
.chart-box { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); border-radius: 18px; padding: 18px; }
.chart-canvas-wrap { position: relative; height: 280px; width: 100%; }

/* ===== 编辑模式 ===== */
.editable-active [data-editable="true"] {
  border: 1px dashed rgba(14,165,233,0.7); border-radius: 6px; padding: 3px 5px; outline: none;
  background: rgba(14,165,233,0.08); transition: background .2s ease;
}
.editable-active [data-editable="true"]:hover { background: rgba(14,165,233,0.16); }
.editable-active [data-editable="true"]:focus { background: rgba(14,165,233,0.22); border-style: solid; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.4); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.65); }

/* ===== 工具类 ===== */
.gradient-text { background: linear-gradient(135deg,#38bdf8,#a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars { color: #fbbf24; letter-spacing: 2px; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-soft { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #cbd5e1; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); }
.empty { text-align: center; color: #64748b; padding: 80px 20px; }

/* 鼠标追踪光效变量 */
:root { --mx: 50%; --my: 0%; }

@media (max-width: 640px) {
  .chart-canvas-wrap { height: 220px; }
  .industry-card { padding: 18px; }
}
