/* ============================================================
   丽人梦想秀® · 顶级高级感 v2.0 · Premium Pro
   Mobile-First 精修 + 全系统视觉升级
   最后加载 · 优先级最高（覆盖前序样式）
   ============================================================ */

/* ──────────────────────────────────────────
   0. 全局基础：渲染 + 平滑 + 字体
   ────────────────────────────────────────── */
* { -webkit-tap-highlight-color: transparent; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
/* 优雅衬线标题 */
h1, h2, h3, .page-title, .fed-hero-title, .membership-header h3,
[style*="Noto Serif SC"] {
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif !important;
  letter-spacing: 0.04em;
}

/* 金色流光文字（大标题点缀） */
.premium-gold-text {
  background: linear-gradient(120deg, #E8C9A0 0%, #D4A574 35%, #E8C9A0 55%, #D4A574 75%, #E8C9A0 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldTextShimmer 6s linear infinite;
}
@keyframes goldTextShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

/* ──────────────────────────────────────────
   1. 按钮：高级渐变 + 光晕 + 微交互
   ────────────────────────────────────────── */
.btn, .btn-primary, .btn-gold {
  position: relative;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 0.25s ease !important;
}
.btn-primary {
  background: linear-gradient(135deg, #7B2D8E 0%, #5C1A6E 55%, #8B3A8E 100%) !important;
  box-shadow: 0 6px 22px rgba(107, 29, 110, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.btn-gold {
  background: linear-gradient(135deg, #E8C87A 0%, #D4A574 45%, #B8862E 100%) !important;
  box-shadow: 0 6px 22px rgba(212, 165, 116, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}
.btn-primary:hover, .btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(107, 29, 110, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important; }
.btn-gold:hover { box-shadow: 0 10px 32px rgba(212, 165, 116, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important; }
.btn:active, .btn-primary:active, .btn-gold:active {
  transform: translateY(0) scale(0.98);
}
/* 按钮流光扫过 */
.btn-primary::after, .btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::after, .btn-gold:hover::after { left: 125%; }

/* ──────────────────────────────────────────
   2. 卡片：玻璃拟态 + 光晕描边
   ────────────────────────────────────────── */
.card-stat, .card-glass, .fed-card {
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              border-color 0.35s ease !important;
}
.card-stat:hover, .card-glass:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 165, 116, 0.45) !important;
  box-shadow: 0 18px 48px rgba(61, 15, 62, 0.14), 0 0 0 1px rgba(212, 165, 116, 0.12), 0 0 40px rgba(212, 165, 116, 0.06) !important;
}

/* ──────────────────────────────────────────
   3. 输入框：聚焦金色光晕
   ────────────────────────────────────────── */
input, select, textarea {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #D4A574 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.10), 0 4px 16px rgba(123, 45, 142, 0.06) !important;
}

/* ──────────────────────────────────────────
   4. 页面进入动画（分级渐进）
   ────────────────────────────────────────── */
@keyframes premiumFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.main-content > * {
  animation: premiumFadeUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.main-content > *:nth-child(1) { animation-delay: 0.03s; }
.main-content > *:nth-child(2) { animation-delay: 0.09s; }
.main-content > *:nth-child(3) { animation-delay: 0.15s; }
.main-content > *:nth-child(4) { animation-delay: 0.21s; }
.main-content > *:nth-child(5) { animation-delay: 0.27s; }
.main-content > *:nth-child(6) { animation-delay: 0.33s; }

/* ──────────────────────────────────────────
   5. 首页 Hero 精修（暗金悬浮感）
   ────────────────────────────────────────── */
[style*="linear-gradient(165deg,#050010"] {
  background: linear-gradient(165deg, #050010 0%, #0D0022 12%, #160030 28%, #260055 48%, #1C0038 66%, #0C0022 85%, #050010 100%) !important;
  box-shadow: 0 24px 80px rgba(74, 21, 75, 0.4), 0 0 140px rgba(212, 165, 116, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(212, 165, 116, 0.10);
}
/* Hero 内金色呼吸光晕 */
@keyframes heroGlow {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.06); }
}
[style*="linear-gradient(165deg,#050010"]::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 18%, rgba(212, 165, 116, 0.14) 0%, rgba(232, 201, 160, 0.05) 40%, transparent 62%);
  animation: heroGlow 5s ease-in-out infinite;
}
/* Hero 顶部金色光环渐隐线 */
[style*="linear-gradient(165deg,#050010"]::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.45), transparent);
}

/* ──────────────────────────────────────────
   6. 统计卡：金色顶线 + 数字质感
   ────────────────────────────────────────── */
.card-stat .value, .fed-stat-value {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  letter-spacing: 0.02em;
}

/* ──────────────────────────────────────────
   7. 移动端精修（≤768px）
   ────────────────────────────────────────── */
@media (max-width: 767px) {
  /* 主内容区：呼吸感留白 */
  .main-content {
    padding: 14px 12px calc(90px + env(safe-area-inset-bottom)) !important;
  }

  /* Hero 移动端：缩小 padding，保留高级感 */
  [style*="linear-gradient(165deg,#050010"] {
    padding: 34px 18px 30px !important;
    border-radius: 20px !important;
    margin-bottom: 18px !important;
  }
  [style*="linear-gradient(165deg,#050010"] h1 {
    font-size: 28px !important;
    letter-spacing: 2px !important;
  }
  [style*="linear-gradient(165deg,#050010"] p {
    font-size: 12px !important;
    line-height: 1.7 !important;
  }

  /* 统计卡：2×2 网格 */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* 登录/注册表单移动端 */
  #home-login > div, #home-register > div {
    padding: 26px 20px !important;
    border-radius: 18px !important;
  }

  /* 标题层级 */
  .page-title { font-size: 21px !important; }

  /* 侧边栏抽屉：更宽 + 圆角右缘 + 阴影 */
  .sidebar {
    width: 288px !important;
    box-shadow: 12px 0 48px rgba(10, 0, 20, 0.5) !important;
    border-radius: 0 20px 20px 0 !important;
  }

  /* 移动端菜单按钮：悬浮玻璃态 */
  .mobile-menu-btn {
    width: 46px !important;
    height: 46px !important;
    top: 12px !important;
    left: 12px !important;
    background: linear-gradient(135deg, #7B2D8E, #5C1A6E) !important;
    box-shadow: 0 6px 20px rgba(107, 29, 110, 0.5) !important;
    backdrop-filter: blur(10px);
  }
}

/* ──────────────────────────────────────────
   8. 底部导航精修（移动端）
   ────────────────────────────────────────── */
@media (max-width: 767px) {
  .mobile-bottom-nav {
    display: flex !important;
    background: linear-gradient(180deg, rgba(21, 5, 32, 0.92), rgba(26, 10, 48, 0.96)) !important;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-top: 1px solid rgba(212, 165, 116, 0.28) !important;
    box-shadow: 0 -6px 30px rgba(10, 0, 20, 0.5), 0 -1px 0 rgba(212, 165, 116, 0.12) inset !important;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom)) !important;
  }
  .mobile-bottom-nav a {
    position: relative;
    gap: 2px;
    padding: 6px 0 !important;
    color: rgba(232, 201, 160, 0.62) !important;
    transition: color 0.25s ease, transform 0.25s ease !important;
  }
  .mobile-bottom-nav a .mb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 21px;
    transition: transform 0.25s cubic-bezier(0.68, -0.25, 0.265, 1.25);
  }
  .mobile-bottom-nav a .mb-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
  }
  .mobile-bottom-nav a .mb-label {
    font-size: 10px;
    letter-spacing: 0.06em;
    font-weight: 500;
  }
  .mobile-bottom-nav a.ac {
    color: #FFD97A !important;
  }
  .mobile-bottom-nav a.ac .mb-icon {
    transform: translateY(-2px) scale(1.2);
    filter: drop-shadow(0 2px 8px rgba(255, 215, 122, 0.6));
  }
  /* 底部导航激活项金色指示条 */
  .mobile-bottom-nav a.ac::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 22px; height: 2px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #E8C87A, #D4A574);
    box-shadow: 0 0 8px rgba(212, 165, 116, 0.7);
  }
  .sidebar-footer { padding-bottom: 76px !important; }
}

/* ──────────────────────────────────────────
   9. 极小屏（≤400px）
   ────────────────────────────────────────── */
@media (max-width: 400px) {
  .main-content { padding: 12px 10px calc(86px + env(safe-area-inset-bottom)) !important; }
  [style*="linear-gradient(165deg,#050010"] h1 { font-size: 25px !important; }
}

/* ──────────────────────────────────────────
   10. 尊重减弱动效偏好
   ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ──────────────────────────────────────────
   11. 自定义滚动条（金色渐变）
   ────────────────────────────────────────── */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(123, 45, 142, 0.04); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #D4A574, #8B3A8E);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #E8C87A, #6B1D6E);
  background-clip: content-box;
}

/* ──────────────────────────────────────────
   12. 链接金色下划线动效
   ────────────────────────────────────────── */
a {
  transition: color 0.25s ease, opacity 0.25s ease;
}

/* ──────────────────────────────────────────
   13. 表格行 hover 金色描边
   ────────────────────────────────────────── */
.table tbody tr:hover { border-left-color: #D4A574 !important; }

/* ──────────────────────────────────────────
   14. Toast 玻璃态升级
   ────────────────────────────────────────── */
.toast {
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(10, 0, 20, 0.25);
}

/* ══════════════════════════════════════════════
   v3 · 登录/注册表单微交互 + 侧边栏抽屉动效升级
   （顶级高级感：金色光晕焦点、涟漪按钮、滑入阴影）
   ══════════════════════════════════════════════ */

/* ── 登录/注册输入框：白底深字 + 16px + 金色边框 + focus 光晕 ── */
.login-card input,
.login-card select,
.login-card textarea,
#login-email, #login-pass, #register-fields input, #register-fields select {
  width: 100% !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  border-radius: 12px !important;
  border: 1.5px solid rgba(212, 165, 116, 0.28) !important;
  background: #fff !important;
  color: #3D0F3E !important;
  outline: none !important;
  box-sizing: border-box;
  transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease !important;
}
.login-card input:hover,
.login-card select:hover,
#login-email:hover, #login-pass:hover, #register-fields input:hover {
  border-color: rgba(212, 165, 116, 0.5) !important;
}
.login-card input:focus,
.login-card select:focus,
.login-card textarea:focus,
#login-email:focus, #login-pass:focus, #register-fields input:focus, #register-fields select:focus {
  border-color: #D4A574 !important;
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.14), 0 4px 20px rgba(212, 165, 116, 0.18) !important;
  transform: translateY(-1px);
}
.login-card input::placeholder,
#login-email::placeholder, #login-pass::placeholder, #register-fields input::placeholder {
  color: #B8A8C0 !important;
  font-size: 15px;
}
/* 自动填充去蓝底 */
.login-card input:-webkit-autofill,
#login-email:-webkit-autofill, #login-pass:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #3D0F3E !important;
}

/* ── 登录/注册按钮：hover 渐变上移 + 阴影 ── */
.btn-login,
.login-card button,
#register-fields button {
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease !important;
}
.btn-login:hover,
.login-card button:hover,
#register-fields button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(139, 58, 142, 0.35), 0 6px 18px rgba(212, 165, 116, 0.25) !important;
  filter: brightness(1.06);
}
.btn-login:active,
.login-card button:active,
#register-fields button:active {
  transform: translateY(0) scale(.98) !important;
}

/* ── 登录卡片入场动画 ── */
.login-card {
  animation: loginCardIn .5s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── 侧边栏抽屉动效升级：滑入阴影 + 缓动 + 导航错峰 ── */
.sidebar {
  transition: transform .38s cubic-bezier(.22,.61,.36,1) !important;
  box-shadow: -12px 0 48px rgba(10, 0, 20, 0.45);
}
.sidebar.open {
  box-shadow: -18px 0 64px rgba(10, 0, 20, 0.6), 0 0 80px rgba(212, 165, 116, 0.1) !important;
}
/* 移动端遮罩玻璃态 */
#mobile-overlay {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background: rgba(8, 0, 16, 0.55) !important;
  transition: opacity .3s ease;
}
/* 侧边栏打开时导航项错峰淡入（纯 CSS 动画，每次打开重播） */
.sidebar.open .nav-link {
  animation: navSlideIn .45s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes navSlideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════════
   v4 · 全站视觉统一升级（顶级高级感）
   ══════════════════════════════════════════════ */

/* ── 全局背景氛围光：暗色深度 + 紫金微光 ── */
body {
  background-color: #0A0312 !important;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(139, 58, 142, 0.16), transparent 62%),
    radial-gradient(ellipse 55% 38% at 100% 42%, rgba(212, 165, 116, 0.05), transparent 58%),
    radial-gradient(ellipse 55% 38% at 0% 72%, rgba(123, 45, 142, 0.10), transparent 60%) !important;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ── 页面标题：柔金 + 光晕（保留 emoji 原色） ── */
.page-title {
  color: #EAD9A8 !important;
  text-shadow: 0 0 26px rgba(212, 165, 116, 0.30), 0 1px 2px rgba(0, 0, 0, 0.45) !important;
  letter-spacing: 0.05em;
}

/* ── 页面副标题：暖灰 + 金色下划线分隔 ── */
.page-subtitle {
  color: rgba(232, 201, 160, 0.62) !important;
  position: relative;
  padding-bottom: 12px;
}
.page-subtitle::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 52px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #E8C87A, rgba(212, 165, 116, 0));
  box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

/* ── 徽章/标签：金色描边 + 金色文字 ── */
.badge {
  border: 1px solid rgba(212, 165, 116, 0.4) !important;
  background: rgba(212, 165, 116, 0.10) !important;
  color: #E8C87A !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 0 14px rgba(212, 165, 116, 0.10);
}

/* ── 通用分隔线：金色渐隐 ── */
hr, .divider, .section-divider {
  border: none !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.35), transparent) !important;
  margin: 20px 0 !important;
}

/* ── 按钮点击涟漪波纹（配合 JS 生成 span） ── */
.btn, .btn-primary, .btn-gold, .btn-login {
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  opacity: 1;
  animation: rippleOut .6s ease-out forwards;
}
@keyframes rippleOut {
  to { transform: scale(1); opacity: 0; }
}

/* ── 八大赋能系统入口网格 ── */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .eco-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .eco-grid { grid-template-columns: repeat(4, 1fr); }
}
.eco-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(212, 165, 116, 0.5) !important;
  box-shadow: 0 14px 40px rgba(74, 21, 75, 0.4), 0 0 30px rgba(212, 165, 116, 0.08) !important;
}

/* ── 桌面端 Hero 大屏精修 ── */
@media (min-width: 900px) {
  #page-content .hero-panel {
    padding: 88px 72px 68px !important;
    border-radius: 36px !important;
  }
  #page-content .hero-panel h1 {
    font-size: clamp(42px, 4.2vw, 58px) !important;
    letter-spacing: 3px !important;
  }
  #page-content .hero-panel h1 sup {
    font-size: 20px !important;
  }
  #page-content .hero-panel p {
    font-size: clamp(16px, 1.5vw, 20px) !important;
  }
}

/* ── 九大产业矩阵网格 ── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .industry-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 900px) {
  .industry-grid { grid-template-columns: repeat(9, 1fr); }
}
.industry-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(212, 165, 116, 0.45) !important;
  box-shadow: 0 10px 28px rgba(74, 21, 75, 0.35), 0 0 22px rgba(212, 165, 116, 0.08) !important;
}

/* ── 生态品牌矩阵徽章墙 ── */
.partner-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.partner-chip:hover {
  border-color: rgba(212, 165, 116, 0.65) !important;
  background: rgba(212, 165, 116, 0.14) !important;
  color: #F0E0B0 !important;
  box-shadow: 0 0 22px rgba(212, 165, 116, 0.22) !important;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════
   v5 · 文字提亮 + 视觉终极升级
   ══════════════════════════════════════════════ */

/* ── 1. 全局文字变量提亮（适配深紫背景 · 根治"字太暗"） ── */
:root, body, body.dark-mode {
  --ink-deep: #E8C9A0;
  --ink-rich: #DCD0E8;
  --ink-gray: #C7BFD6;
  --ink-light: #B3A9C6;
}

/* ── 2. 内联暗白文字统一提亮 ── */
[style*="color:rgba(255,255,255,0.3"],
[style*="color:rgba(255,255,255,0.4"],
[style*="color:rgba(255,255,255,0.5"] {
  color: rgba(255, 255, 255, 0.74) !important;
}

/* ── 3. 页面副标题提亮 ── */
.page-subtitle {
  color: rgba(232, 201, 160, 0.85) !important;
}

/* ── 4. Hero 标题金色流光（高级感点睛） ── */
#page-content .hero-panel h1 {
  background-size: 220% auto !important;
  animation: goldTextShimmer 6s linear infinite;
}

/* ── 5. 统计卡片网格响应式 + 悬浮 ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}
.stats-grid .stat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.stats-grid .stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 165, 116, 0.45) !important;
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.2);
}
/* 数字加大（用 #page-content 前缀覆盖 core.min.css 的 #page-content * inherit 规则） */
#page-content .stats-grid .stat-num {
  font-size: clamp(28px, 4vw, 40px) !important;
}

/* ── 6. 移动端底部导航金色选中态动效 ── */
.mobile-bottom-nav a {
  position: relative;
}
.mobile-bottom-nav a.ac {
  color: #FFE08A !important;
  text-shadow: 0 0 12px rgba(255, 224, 138, 0.6);
}
.mobile-bottom-nav a.ac .mb-icon {
  transform: translateY(-2px) scale(1.18);
  filter: drop-shadow(0 0 8px rgba(255, 224, 138, 0.7));
}
.mobile-bottom-nav a.ac::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #FFE08A, transparent);
}
.mobile-bottom-nav a .mb-icon {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

/* ── 7. 内页文字亮度巡检：硬编码暗色提亮 ── */

/* dark-mode 下 small/text-muted/breadcrumb 硬编码 #8A7E9E → 提亮 */
body.dark-mode small,
body.dark-mode .text-muted,
body.dark-mode #breadcrumb {
  color: #B3A9C6 !important;
}

/* 扩展暗白内联文字到 0.55 / 0.6（JS 动态渲染的内页） */
[style*="color:rgba(255,255,255,0.55"],
[style*="color:rgba(255,255,255,0.6"] {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* 暗灰徽章文字提亮（gray-500 → 柔紫灰） */
.badge-dismissed {
  color: #A9A2BC !important;
}

/* ── 8. 首屏内容淡入上浮动画（高级感加载体验） ── */
@keyframes qxRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-panel {
  animation: qxRise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.stats-grid .stat-card {
  animation: qxRise 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.stats-grid .stat-card:nth-child(1) { animation-delay: 0.12s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.28s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.36s; }
#ecosystem-entry .eco-card {
  animation: qxRise 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* ── 9. 桌面端 sidebar 金色悬浮光效 ── */
.sidebar .nav-link {
  position: relative;
  overflow: hidden;
}
.sidebar .nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.16), transparent);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}
.sidebar .nav-link:hover::before {
  transform: translateX(100%);
}
.sidebar .nav-link:hover {
  color: #E8C9A0 !important;
  text-shadow: 0 0 10px rgba(232, 201, 160, 0.4);
}

/* ── 10. 内页浅色卡片 → 深色玻璃统一（暖白卡片/白底按钮 → 深色玻璃 + 亮字） ── */

/* 暖白/纯白背景 → 深色玻璃 */
body.dark-mode [style*="background:#fff" i],
body.dark-mode [style*="background-color:#fff" i],
body.dark-mode [style*="linear-gradient(160deg,#ffffff" i] {
  background: linear-gradient(165deg, rgba(32, 12, 52, 0.72), rgba(18, 4, 34, 0.55)) !important;
}


/* ── 10.1 #FFFEF9/白渐变卡片（我的业务/功能导航/贡献榜/步骤卡）→ 深色玻璃 ──
   typography-final.css 19.2/20.2 用 #page-content div[...] (1,1,1) 强制浅色暖白，
   压过上面 10. 区块的 body.dark-mode [style*="background:#fff"] (0,2,1)；
   这里用 body.dark-mode #page-content div[...] (1,2,2) 覆盖回深色，金色标题才可读 */
body.dark-mode #page-content div[style*="background:#FFFEF9"],
body.dark-mode #page-content div[style*="linear-gradient(160deg,#FFFFFF,#FFFEF9"] {
  background: linear-gradient(165deg, rgba(32, 12, 52, 0.72), rgba(18, 4, 34, 0.55)) !important;
  border: 1px solid rgba(212, 165, 116, 0.20) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16) !important;
}


/* ── 10.2 浅米色 #FAF6EF 行/卡 + 未解锁等级卡 rgba(255,255,255,0.5) → 深色玻璃 ──
   这些浅米色/半透明白元素文字是浅色（浅紫/金/暗金），浅底上看不清 */
body.dark-mode [style*="background:#faf6ef" i] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(212, 165, 116, 0.16) !important;
}
body.dark-mode [style*="background:rgba(255,255,255,0.5)"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(212, 165, 116, 0.16) !important;
}

/* 深紫暗字 → 亮色（深色玻璃上清晰可读） */
body.dark-mode [style*="color:#3d0f3e" i] { color: #E8C9A0 !important; }
body.dark-mode [style*="color:#8b7a8c" i] { color: #C7BFD6 !important; }
body.dark-mode [style*="color:#4a3a6a" i] { color: #DCD0E8 !important; }
body.dark-mode [style*="color:#5c3d5e" i] { color: #C7BFD6 !important; }
body.dark-mode [style*="color:#3a2a5a" i] { color: #E8C9A0 !important; }
body.dark-mode [style*="color:#7b2d8e" i] { color: #C9A2E8 !important; }
body.dark-mode [style*="color:#9b59b6" i] { color: #D8B4F0 !important; }
body.dark-mode [style*="color:#7a6a5a" i] { color: #C7BFD6 !important; }

/* 暖白/浅金边框 → 暗金 */
body.dark-mode [style*="#f0e8d8" i],
body.dark-mode [style*="#e8dcc0" i] {
  border-color: rgba(212, 165, 116, 0.35) !important;
}

/* ── 11. 排版精修：字号层级 + 数字后缀比例 ── */

/* 统计数字后缀恢复 18px（不被 core.min.css 的 #page-content span 强制 15px） */
#page-content .stats-grid .stat-num span {
  font-size: 18px !important;
  font-weight: 700;
}

/* Hero 副标题（首个 p）与副文案（第二个 p）字号层级区分 */
#page-content .hero-panel p:first-of-type {
  font-size: clamp(17px, 2vw, 21px) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  letter-spacing: 2px !important;
}
#page-content .hero-panel p:nth-of-type(2) {
  font-size: clamp(14px, 1.4vw, 16px) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  line-height: 1.9 !important;
  letter-spacing: 1px !important;
}

/* ══════════════════════════════════════════════
   v11 · 内页卡片微浮起 + 金色描边呼吸 + 触摸反馈
   （移动端适配到最好看 · 顶级高级感）
   ══════════════════════════════════════════════ */

/* ── 1. 内页卡片式元素统一微交互（覆盖无 class 的内联卡片/按钮） ── */
#page-content button[style*="border-radius"],
#page-content div[style*="border-radius"][onclick],
#page-content a[style*="border-radius"] {
  transition: transform .3s cubic-bezier(.22,.61,.36,1),
              box-shadow .3s ease,
              border-color .3s ease !important;
  will-change: transform;
}

/* ── 2. hover 微浮起 + 金色描边呼吸 ── */
@keyframes goldBorderBreath {
  0%, 100% { box-shadow: 0 14px 36px rgba(61,15,62,.40), 0 0 0 1px rgba(212,165,116,.16), 0 0 22px rgba(212,165,116,.12); opacity: 1; }
  50%      { box-shadow: 0 18px 44px rgba(61,15,62,.50), 0 0 0 2px rgba(212,165,116,.40), 0 0 42px rgba(212,165,116,.26); opacity: 1; }
}
#page-content button[style*="border-radius"]:hover,
#page-content div[style*="border-radius"][onclick]:hover,
#page-content a[style*="border-radius"]:hover {
  transform: translateY(-4px);
  border-color: rgba(212,165,116,.55) !important;
  opacity: 1;
  animation: goldBorderBreath 1.9s ease-in-out infinite;
}

/* ── 3. 触摸 active 反馈（移动端点击即时反馈 · 消除"没反应"感） ── */
#page-content button[style*="border-radius"]:active,
#page-content div[style*="border-radius"][onclick]:active,
#page-content a[style*="border-radius"]:active {
  transform: translateY(-1px) scale(.97);
  transition-duration: .12s !important;
  animation: none;
}

/* ── 4. 移动端点击高亮（金色 tap highlight） ── */
#page-content button,
#page-content a,
#page-content [onclick] {
  -webkit-tap-highlight-color: rgba(212,165,116,.18);
}

/* ══════════════════════════════════════════════
   v12 · 按钮流光扫过全覆盖 + 内页光晕增强
   ══════════════════════════════════════════════ */

/* ── 1. 内页卡片式按钮 hover 流光扫过（高级高光动效） ── */
#page-content button[style*="border-radius"] {
  position: relative;
  overflow: hidden;
}
#page-content button[style*="border-radius"]::after {
  content: '';
  position: absolute;
  top: 0; left: -85%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
  z-index: 0;
}
#page-content button[style*="border-radius"]:hover::after {
  left: 135%;
}

/* ── 2. 金色渐变按钮流光更亮（更醒目） ── */
#page-content button[style*="linear-gradient"][style*="border-radius"]::after {
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.34) 50%, transparent 100%);
}

/* ── 3. 内页卡片 hover 光晕呼吸（配合 v11 描边） ── */
@keyframes cardGlowPulse {
  0%, 100% { filter: brightness(1); opacity: 1; }
  50%      { filter: brightness(1.08); opacity: 1; }
}
#page-content button[style*="border-radius"]:hover {
  opacity: 1;
  animation: goldBorderBreath 1.9s ease-in-out infinite, cardGlowPulse 2.4s ease-in-out infinite;
}
