/* ============================================================
   丽人梦想秀® · 侧边栏顶级奢华设计 v2
   全球顶级女性美学 · 紫金东方 · 玫瑰粉 · 香槟金 · 毛玻璃 · 动感
   强化：玫瑰粉点缀 + 渐入动画 + 光晕扩散 + 光点跟随 + 侧边金带
   ============================================================ */

/* ── 侧边栏背景：深紫渐变 + 玫瑰粉微光 ── */
.sidebar {
  background:
    radial-gradient(ellipse 80% 30% at 50% 0%, rgba(201,162,91,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 60% 35% at 18% 75%, rgba(232,160,180,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 55% 28% at 92% 55%, rgba(216,130,160,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 45% 25% at 70% 92%, rgba(155,89,182,0.14) 0%, transparent 50%),
    linear-gradient(178deg, #160A22 0%, #1E0E30 30%, #2A1242 55%, #34184E 78%, #3D1E5A 100%) !important;
  box-shadow: 6px 0 50px rgba(45,18,62,0.45) !important;
}
/* 侧边栏右缘金色光带 */
.sidebar::before {
  content: '';
  position: absolute;
  right: 0;
  top: 8%;
  bottom: 8%;
  width: 1px;
  z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(201,162,91,0.5), rgba(216,130,160,0.3), transparent);
  box-shadow: 0 0 12px rgba(201,162,91,0.35);
  pointer-events: none;
}

/* ── Logo 区：金色呼吸光晕 ── */
.sidebar .logo {
  padding: 26px 20px 22px !important;
  border-bottom: 1px solid rgba(201,162,91,0.18) !important;
  position: relative;
  overflow: hidden;
}
.sidebar .logo::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 220%;
  height: 200%;
  background: linear-gradient(100deg, transparent 40%, rgba(232,213,163,0.07) 50%, transparent 60%);
  animation: sidebarLogoShine 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sidebarLogoShine {
  0%, 60% { transform: translateX(-30%); }
  100% { transform: translateX(30%); }
}
.sidebar .logo h2 {
  font-size: 22px !important;
  font-weight: 300 !important;
  letter-spacing: 1.5px !important;
  background: linear-gradient(120deg, #E8D5A3 0%, #F5E7C8 35%, #E8A0B4 60%, #C9A25B 85%, #E8C97A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sidebarLogoGlow 3.5s ease-in-out infinite;
}
@keyframes sidebarLogoGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(201,162,91,0.3)); }
  50% { filter: drop-shadow(0 0 16px rgba(232,160,180,0.55)); }
}
.sidebar .logo small {
  color: rgba(232,213,163,0.5) !important;
  font-size: 10px !important;
  letter-spacing: 3px !important;
  margin-top: 5px !important;
}

/* ── 分组标题：金色渐变文字 + 精致分隔 ── */
.sidebar .nav-section {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  color: rgba(232,213,163,0.75) !important;
  padding: 20px 22px 9px !important;
  position: relative;
}
.sidebar .nav-section:hover {
  color: #E8D5A3 !important;
  text-shadow: 0 0 18px rgba(232,160,180,0.55);
}
.sidebar .nav-section::after {
  content: '▾' !important;
  font-size: 9px !important;
  color: #E8A0B4;
  opacity: 0.75 !important;
}
.sidebar .nav-section::before {
  content: '';
  position: absolute;
  left: 22px;
  bottom: 4px;
  width: 30px;
  height: 1.5px;
  background: linear-gradient(90deg, #C9A25B, #E8A0B4, transparent);
  opacity: 0.8;
}

/* ── 导航链接：毛玻璃卡片 + 光点跟随 + 渐入动画 ── */
.sidebar .nav-link {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.72) !important;
  padding: 11px 18px !important;
  margin: 3px 14px !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201,162,91,0.06) !important;
  transition: all 0.32s cubic-bezier(0.22,0.61,0.36,1) !important;
  animation: sidebarNavIn 0.5s cubic-bezier(0.22,0.61,0.36,1) backwards;
}
@keyframes sidebarNavIn {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}
/* 光点跟随 */
.sidebar .nav-link::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #E8D5A3, #E8A0B4);
  box-shadow: 0 0 10px rgba(232,160,180,0.8);
  left: 6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform 0.35s cubic-bezier(0.68,-0.25,0.265,1.25);
  pointer-events: none;
}
.sidebar .nav-link:hover::before {
  transform: translateY(-50%) scale(1);
}
.sidebar .nav-link:hover {
  color: #E8D5A3 !important;
  background: linear-gradient(135deg, rgba(201,162,91,0.14), rgba(216,130,160,0.10)) !important;
  border-color: rgba(201,162,91,0.32) !important;
  transform: translateX(5px) !important;
  box-shadow: 0 4px 20px rgba(201,162,91,0.16);
}
.sidebar .nav-link i {
  font-size: 15px !important;
  color: #C9A25B;
  opacity: 0.85 !important;
  transition: transform 0.3s ease !important;
}
.sidebar .nav-link:hover i {
  transform: scale(1.18) rotate(-5deg);
  opacity: 1 !important;
  color: #E8A0B4;
}

/* ── 活跃项：紫金渐变 + 金色脉冲光晕扩散 ── */
.sidebar .nav-link.active {
  color: #fff !important;
  font-weight: 500 !important;
  background: linear-gradient(135deg, rgba(123,45,142,0.7) 0%, rgba(201,162,91,0.35) 100%) !important;
  border: 1px solid rgba(201,162,91,0.45) !important;
  box-shadow: 0 0 22px rgba(123,45,142,0.4), inset 0 1px 0 rgba(255,255,255,0.1) !important;
}
.sidebar .nav-link.active::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 18% !important;
  height: 64% !important;
  width: 3px !important;
  background: linear-gradient(180deg, #E8D5A3, #E8A0B4, #C9A25B) !important;
  border-radius: 0 3px 3px 0 !important;
  animation: sidebarActivePulse 2s ease-in-out infinite;
}
@keyframes sidebarActivePulse {
  0%, 100% { box-shadow: 0 0 8px rgba(201,162,91,0.6); }
  50% { box-shadow: 0 0 22px rgba(232,160,180,1), 0 0 30px rgba(201,162,91,0.6); }
}

/* ── 子链接（nav-sub）─ */
.sidebar .nav-link.nav-sub {
  font-size: 12.5px !important;
  padding-left: 46px !important;
  color: rgba(255,255,255,0.5) !important;
}
.sidebar .nav-link.nav-sub:hover {
  color: #E8D5A3 !important;
}

/* ── 滚动条：金粉渐变 ── */
.sidebar .nav::-webkit-scrollbar { width: 4px; }
.sidebar .nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #C9A25B, #E8A0B4, #7B2D8E) !important;
  border-radius: 10px;
}
.sidebar .nav::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }

/* ── 底部用户区 ── */
.sidebar-footer {
  border-top: 1px solid rgba(201,162,91,0.18) !important;
  background: rgba(255,255,255,0.02);
}
.sidebar-footer .user-avatar {
  background: linear-gradient(135deg, #7B2D8E, #E8A0B4, #C9A25B) !important;
  box-shadow: 0 0 16px rgba(201,162,91,0.45);
}
