/* ============================================================
   丽人梦想秀® · 视觉极致提升 v1
   细腻 · 高级 · 女性向
   设计语言:离火紫(深邃底) × 熔金(流光主色) × 珍珠玻璃(卡片)
   核心原则:文字与底色最佳对比 · 色调高度协调 · 柔和精致的女性质感
   ============================================================ */

/* ==================== 1. 按钮:熔金流光 · 最佳文字对比 ==================== */

/* 金色渐变主按钮 → 深紫文字(对比 ~8:1),金底深字,清晰高级 */
.btn-primary, .btn-gold, .btn-login,
button[style*="linear-gradient"]:not([style*="rgba("])[style*="E2B86C"],
button[style*="linear-gradient"]:not([style*="rgba("])[style*="226,184,108"],
button[style*="linear-gradient"]:not([style*="rgba("])[style*="226, 184, 108"],
button[style*="linear-gradient"]:not([style*="rgba("])[style*="D4A373"],
button[style*="linear-gradient"]:not([style*="rgba("])[style*="D4784C"] {
  color: #2A0A2E !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
}

/* 玫红渐变按钮(玫红→金)→ 深紫文字 */
button[style*="linear-gradient"]:not([style*="rgba("])[style*="C44D8C"],
button[style*="linear-gradient"]:not([style*="rgba("])[style*="196,77,140"],
button[style*="linear-gradient"]:not([style*="rgba("])[style*="196, 77, 140"] {
  color: #2A0A2E !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  font-weight: 700 !important;
}

/* 纯深玫红/深紫实底按钮 → 白字(深底白字,对比清晰) */
button[style*="background:#C44D8C"],
button[style*="background:#A93B76"],
button[style*="background:#6B1D6E"],
button[style*="background:#3D0F3E"] {
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

/* 金色幽灵/描边按钮 → 亮金文字(避免暗金对比不足) */
button[style*="rgba(226,184,108,0.1"],
button[style*="rgba(226,184,108,0.08"],
button[style*="rgba(226,184,108,0.12"],
button[style*="rgba(226, 184, 108, 0.1"],
button[style*="rgba(226, 184, 108, 0.08"],
button[style*="rgba(226, 184, 108, 0.12"] {
  color: #F2C888 !important;
}

/* login-card 是浅色白底：金色描边按钮改深紫文字，避免亮金在浅底看不清 */
.login-card button[style*="rgba(226,184,108,0.1"],
.login-card button[style*="rgba(226, 184, 108, 0.1"] {
  color: #3D0F3E !important;
}

/* 玫红幽灵按钮 → 亮玫红文字 */
button[style*="rgba(196,77,140,0.1"],
button[style*="rgba(196,77,140,0.15"],
button[style*="rgba(196, 77, 140, 0.1"],
button[style*="rgba(196, 77, 140, 0.15"] {
  color: #E57CB0 !important;
}

/* 所有按钮:统一柔和过渡 + 抗锯齿 */
button, .btn, [class*="btn"] {
  -webkit-font-smoothing: antialiased;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 0.3s ease !important;
}

/* 金色按钮 hover:柔和熔金光晕 + 轻浮 */
button[style*="linear-gradient"][style*="E2B86C"]:hover,
button[style*="linear-gradient"][style*="226,184,108"]:hover,
button[style*="linear-gradient"][style*="D4784C"]:hover,
button[style*="linear-gradient"][style*="C44D8C"]:hover,
.btn-primary:hover, .btn-gold:hover, .btn-login:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 10px 28px rgba(226, 184, 108, 0.28),
              0 2px 8px rgba(196, 77, 140, 0.16) !important;
  filter: brightness(1.04) saturate(1.05) !important;
}

/* ==================== 2. 卡片:珍珠玻璃 · 金色描边 ==================== */

/* 数据/生态/资源卡片:珍珠玻璃质感 + 顶部柔光 + 金粉描边 */
.stat-card, .eco-card, .res-card, .industry-card,
[class*="card"], [class*="panel"], [class*="glass"], [class*="widget"] {
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 184, 108, 0.16) !important;
  box-shadow: 0 8px 32px rgba(5, 0, 16, 0.42),
              inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              border-color 0.35s ease, box-shadow 0.35s ease !important;
}

/* 卡片顶部柔光高光(珍珠质感) */
.stat-card::before, .eco-card::before, .res-card::before, .industry-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 184, 108, 0.5), transparent);
  opacity: 0.7;
  pointer-events: none;
}

/* 卡片 hover:金描边变亮 + 轻浮 */
.stat-card:hover, .eco-card:hover, .res-card:hover, .industry-card:hover,
[class*="card"]:hover {
  border-color: rgba(226, 184, 108, 0.4) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 44px rgba(5, 0, 16, 0.5),
              0 0 24px rgba(226, 184, 108, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* ==================== 3. 徽章/标签:亮色文字 ==================== */

/* 金色徽章 → 深紫文字 */
[class*="badge"][style*="E2B86C"],
[class*="badge"][style*="226,184,108"],
[class*="tag"][style*="E2B86C"],
[class*="tag"][style*="226,184,108"] {
  color: #2A0A2E !important;
  font-weight: 700 !important;
}

/* 玫红徽章 → 白字 */
[class*="badge"][style*="C44D8C"],
[class*="tag"][style*="C44D8C"],
[class*="badge"][style*="196,77,140"],
[class*="tag"][style*="196,77,140"] {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

/* ==================== 4. 主题切换段按钮(seg-btn) ==================== */

/* 激活态:金色渐变 + 深紫文字(统一品牌) */
.theme-switcher-seg .seg-btn.active,
body.dark-mode .theme-switcher-seg .seg-btn.active {
  background: linear-gradient(135deg, #F0C888 0%, #E2B86C 45%, #D4784C 100%) !important;
  color: #2A0A2E !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(226, 184, 108, 0.3) !important;
  border: 1px solid rgba(226, 184, 108, 0.4) !important;
}

/* 非激活态:柔和的半透明 */
.theme-switcher-seg .seg-btn:not(.active) {
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: all 0.3s ease !important;
}
.theme-switcher-seg .seg-btn:not(.active):hover {
  background: rgba(226, 184, 108, 0.12) !important;
  color: #F2C888 !important;
  border-color: rgba(226, 184, 108, 0.3) !important;
}

/* ==================== 5. 全局细腻质感 ==================== */

/* 输入框/表单:柔和金色 focus 光晕 */
input:focus, textarea:focus, select:focus {
  border-color: rgba(226, 184, 108, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(226, 184, 108, 0.14) !important;
  outline: none !important;
}

/* 链接/可点击元素:金色 hover */
a[style*="color:#E2B86C"]:hover,
a[style*="color:#E2B86C"]:hover,
span[style*="color:#E2B86C"][onclick]:hover {
  filter: brightness(1.12) !important;
}

/* 滚动条:金色细条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb {
  background: rgba(226, 184, 108, 0.28);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(226, 184, 108, 0.45);
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* ==================== 6. 侧边栏:层次与对比 ==================== */

/* 导航链接文字提亮(改善对比) */
.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.66) !important;
}
.sidebar .nav-link:hover {
  color: #F2C888 !important;
  background: linear-gradient(135deg, rgba(226, 184, 108, 0.10), rgba(196, 77, 140, 0.06)) !important;
  border-color: rgba(226, 184, 108, 0.25) !important;
}
.sidebar .nav-link.active {
  color: #F2C888 !important;
  background: rgba(226, 184, 108, 0.12) !important;
  border-left: 2px solid #E2B86C !important;
}

/* 信念条/副标题文字提亮 */
.sidebar .belief-strip p {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* 卡片金色内发光(珍珠光泽增强) */
.stat-card, .eco-card, .res-card, .industry-card {
  box-shadow: 0 8px 32px rgba(5, 0, 16, 0.42),
              inset 0 1px 0 rgba(255, 255, 255, 0.07),
              inset 0 0 44px rgba(226, 184, 108, 0.035) !important;
}

/* 金色副标题/大标题:更亮的金色(提升可读性) */
h1[style*="E2B86C"], h2[style*="E2B86C"],
[class*="gold"][class*="title"], [class*="title"][style*="E2B86C"] {
  color: #F0C888 !important;
  text-shadow: 0 0 30px rgba(226, 184, 108, 0.25) !important;
}

/* ==================== 7. 移动端:底部导航留白 ==================== */
@media (max-width: 768px) {
  .main-content, #main-content, [class*="main-content"] {
    padding-bottom: 92px !important;  /* 给固定底部导航留出安全空间,避免内容被遮挡 */
  }
  /* 汉堡按钮(左上 fixed 44px)不遮挡面包屑"首页"文字 */
  .breadcrumb-bar {
    padding-left: 68px !important;
  }
    /* 卡片在移动端间距更紧凑 */
  [class*="card"], [class*="panel"] {
    border-radius: 14px !important;
  }
}

/* ==================== 8. 汉堡按钮:豁免全局 button padding,恢复 44px 圆形 ==================== */
#mobile-menu-btn {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
