
/* ------------------------------------------
   1. CSS 变量系统（主题控制）
   ------------------------------------------ */
:root {
  /* 默认主题（金色） */
  --primary-color: #c8a95f;
  --primary-light: #d4b76a;
  --primary-dark: #b89d50;
  
  /* 背景 */
  --bg-primary: #ffffff;
  --bg-secondary: #faf8f5;
  --bg-gradient-start: #faf8f5;
  --bg-gradient-end: #f5f3f0;
  
  /* 卡片 */
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.08);
  
  /* 文字 */
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-link: #4a4a4a;
  
  /* Header 专用 */
  --header-bg: rgba(255, 255, 255, 0.98);
  --header-border: rgba(0, 0, 0, 0.06);
  --logo-color: #111111;
}

/* 粉紫主题 - 闺蜜 */
.theme-pink {
  --primary-color: #B88AC4;
  --primary-light: #D4A5D9;
  --primary-dark: #7A5C8C;
  --bg-primary: #F6E6F4;
  --bg-secondary: #EBD6F3;
  --bg-gradient-start: #F6E6F4;
  --bg-gradient-end: #EBD6F3;
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(212, 165, 217, 0.25);
  --card-shadow: rgba(184, 138, 196, 0.15);
  --text-primary: #5A4A5C;
  --text-secondary: #8B7A8D;
  --text-muted: #B8A8BA;
  --text-link: #8B7A8D;
  --header-bg: rgba(246, 230, 244, 0.98);
  --header-border: rgba(212, 165, 217, 0.2);
}

/* 深蓝主题 - 朋友 */
.theme-blue {
  --primary-color: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #1e40af;
  --bg-primary: #0f172a;
  --bg-secondary: #1e3a8a;
  --bg-gradient-start: #0f172a;
  --bg-gradient-end: #1e3a8a;
  --card-bg: rgba(15, 23, 42, 0.7);
  --card-border: rgba(99, 102, 241, 0.2);
  --card-shadow: rgba(59, 130, 246, 0.15);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-link: #94a3b8;
  --header-bg: rgba(15, 23, 42, 0.95);
  --header-border: rgba(99, 102, 241, 0.15);
  --logo-color: #f1f5f9;
}

/* 红色主题 - 新年/情人节 */
.theme-red {
  --primary-color: #e74c3c;
  --primary-light: #ff6b6b;
  --primary-dark: #c0392b;
  --bg-primary: #fff5f5;
  --bg-secondary: #ffe0e0;
  --bg-gradient-start: #fff5f5;
  --bg-gradient-end: #ffe0e0;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(231, 76, 60, 0.15);
  --card-shadow: rgba(231, 76, 60, 0.1);
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-muted: #95a5a6;
  --text-link: #7f8c8d;
}

/* ------------------------------------------
   2. Header 样式
   ------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--header-border);
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--logo-color);
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 48px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-link);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* 下拉菜单 */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-link);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dropdown-toggle:hover {
  color: var(--primary-color);
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  margin-top: 12px;
  box-shadow: 0 4px 20px var(--card-shadow);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  color: var(--primary-color);
  background: var(--bg-secondary);
}

/* 专属定制高亮 */
.nav-highlight {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

.nav-highlight:hover {
  opacity: 0.8;
}

/* Header 占位符 */
.header-spacer {
  height: 70px;
}

/* Header 移动端适配 */
@media (max-width: 768px) {
  .site-header {
    padding: 16px 0;
  }

  .nav-logo {
    font-size: 22px;
    letter-spacing: 3px;
  }

  /* 汉堡按钮 */
  .mobile-menu-toggle {
    display: flex !important;
  }

  /* 导航面板 - 默认隐藏 */
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0 20px;
    gap: 0;
    box-shadow: 0 10px 40px var(--card-shadow);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 999;
    border-bottom: 1px solid var(--header-border);
    gap: 0 !important;
  }

  /* 菜单展开状态 */
  .nav-links.active {
    transform: translateY(0);
  }

  /* 所有导航链接强制显示 */
  .nav-links > a,
  .dropdown-toggle {
    display: flex !important;
    padding: 16px 0;
    border-bottom: 1px solid var(--header-border);
    width: 100%;
    text-align: left;
    font-size: 16px;
    color: var(--text-link);
    align-items: center;
    justify-content: space-between;
  }

  /* 下拉菜单容器 */
  .dropdown {
    display: block !important;
    width: 100%;
    border-bottom: 1px solid var(--header-border);
  }

  .dropdown-toggle {
    border-bottom: none !important;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
  }

  /* 移动端下拉菜单 - 点击展开 */
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    margin-top: 0;
    padding: 0;
    background: var(--bg-secondary);
    border-radius: 0;
    border: none;
    border-left: 3px solid var(--primary-color);
    width: 100%;
    left: auto !important;
    right: auto !important;
    min-width: 100% !important;
  }

  /* 展开状态 */
  .dropdown.active .dropdown-menu {
    display: block;
    transform: none !important;
  }

  .dropdown-menu a {
    padding: 12px 24px;
    border-bottom: 1px solid var(--header-border);
    font-size: 14px;
  }

  .dropdown-menu a:last-child {
    border-bottom: none;
  }

  /* 专属定制按钮 */
  .nav-links .nav-highlight {
    margin: 12px 0;
    padding: 12px 20px !important;
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 25px;
    text-align: center;
    justify-content: center;
    border-bottom: none;
    display: flex !important;
  }

  /* 箭头旋转 */
  .dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }
}

/* ------------------------------------------
   Footer - 极致紧凑风格
   ------------------------------------------ */
.site-footer {
    background: #faf9f7;
    padding: 60px 20px 35px;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* 品牌区 - 极致紧凑 */
.footer-brand {
    margin-bottom: 0;
}

.footer-logo {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 5px;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 0.6;
}

.footer-subtitle {
    font-size: 12px;
    color: #999;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.7;
    display: block;
}

/* 第一排导航 */
.footer-nav-top {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-nav-top a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.25s;
    letter-spacing: 0.5px;
}

.footer-nav-top a:hover {
    color: #1a1a1a;
}

/* 分割线 */
.footer-divider {
    width: 30px;
    height: 1px;
    background: #ddd;
    margin: 25px auto;
}

/* 第二排链接 */
.footer-nav-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav-bottom a {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.footer-nav-bottom a:hover {
    color: #555;
}

/* 版权 */
.footer-copyright {
    margin-top: 20px;
    font-size: 11px;
    color: #aaa;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
}

/* 移动端 */
@media (max-width: 640px) {
    .site-footer {
        padding: 50px 20px 30px;
    }
    
    .footer-logo {
        font-size: 24px;
        letter-spacing: 4px;
        margin-bottom: 6px;
    }
    
    .footer-subtitle {
        font-size: 10px;
        letter-spacing: 1px;
        margin-top: 3px;
    }
    
    .footer-nav-top {
        margin-top: 16px;
        gap: 20px;
    }
    
    .footer-nav-top a {
        font-size: 13px;
    }
    
    .footer-divider {
        margin: 20px auto;
    }
    
    .footer-nav-bottom {
        gap: 16px;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 4px;
        margin-top: 18px;
    }
}
/* ------------------------------------------
   4. 轻量 Footer 样式
   ------------------------------------------ */
.footer-lite {
  padding: 50px 20px 40px;
  text-align: center;
  background: transparent;
}

.footer-lite-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-lite-brand {
  margin-bottom: 16px;
}

.footer-lite-brand .footer-logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.footer-lite-brand p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.footer-lite-links {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-lite-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.footer-lite-links a:hover {
  opacity: 1;
  background: var(--card-bg);
  color: var(--primary-color);
}

.footer-lite-links .divider {
  width: 4px;
  height: 4px;
  background: var(--card-border);
  border-radius: 50%;
  opacity: 0.5;
}

.footer-lite-copy {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* 轻量 Footer 移动端适配 */
@media (max-width: 480px) {
  .footer-lite {
    padding: 40px 16px 30px;
  }

  .footer-lite-brand .footer-logo {
    font-size: 20px;
  }

  .footer-lite-links {
    gap: 4px;
  }

  .footer-lite-links a {
    font-size: 13px;
    padding: 5px 10px;
  }

  .footer-lite-links .divider {
    display: none;
  }
}

/* ------------------------------------------
   5. 通用工具类
   ------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   移动端导航修复
   ============================================ */

/* 汉堡菜单按钮 - 默认隐藏 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* 汉堡按钮动画 */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 下拉按钮样式修复 */
.dropdown-toggle {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

/* 移动端适配 */
@media (max-width: 768px) {
  /* 汉堡按钮提升到最上层 */
  .mobile-menu-toggle {
    display: flex !important;
    position: relative;
    z-index: 10002;
  }
  
  /* 确保header也在上层 */
  .site-header {
    z-index: 10001;
  }
  
  /* 导航链接改为下拉面板 */
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0 20px;
    gap: 0;
    box-shadow: 0 10px 40px var(--card-shadow);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 999;
    border-bottom: 1px solid var(--header-border);
  }
  
  /* 菜单展开状态 */
  .nav-links.active {
    transform: translateY(0);
  }
  
  /* 导航项样式 */
  .nav-links > a,
  .dropdown-toggle {
    display: flex !important;
    padding: 16px 0;
    border-bottom: 1px solid var(--header-border);
    width: 100%;
    text-align: left;
    font-size: 16px;
    color: var(--text-link);
    align-items: center;
    justify-content: space-between;
  }
  
  .nav-links > a:last-of-type {
    border-bottom: none;
  }
  
  /* 下拉菜单容器 */
  .dropdown {
    width: 100%;
    border-bottom: 1px solid var(--header-border);
  }
  
  .dropdown-toggle {
    border-bottom: none !important;
    width: 100%;
  }
  
  /* 移动端下拉菜单 - 默认隐藏，点击展开 */
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    margin-top: 0;
    padding: 0;
    background: var(--bg-secondary);
    border-radius: 0;
    border: none;
    border-left: 3px solid var(--primary-color);
    width: 100%;
  }
  
  /* 展开状态 */
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu a {
    padding: 12px 24px;
    border-bottom: 1px solid var(--header-border);
    font-size: 14px;
  }
  
  .dropdown-menu a:last-child {
    border-bottom: none;
  }
  
  /* 专属定制按钮特殊样式 */
  .nav-links .nav-highlight {
    margin: 12px 0;
    padding: 12px 20px !important;
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 25px;
    text-align: center;
    justify-content: center;
    border-bottom: none;
  }
  
  /* 箭头旋转动画 */
  .dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }
}

/* 极小屏幕 */
@media (max-width: 380px) {
  .nav-logo {
    font-size: 20px;
  }
  
  .header-container {
    padding: 0 15px;
  }
}

/* 确保汉堡按钮在最上层 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  position: relative;
  z-index: 10002;
}

/* 移动端强制显示汉堡按钮 */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  /* 提升header层级 */
  .site-header {
    z-index: 10001 !important;
  }
  
  /* 如果有音乐图标，降低其层级 */
  .music-icon,
  .audio-control,
  [class*="music"],
  [class*="audio"] {
    z-index: 1000 !important;
  }
}

/* ============================================
   移动端导航最终修复 - 2024-02-19
   ============================================ */

/* 修复1：祝福模板和常见问题之间显示分割线 */
@media (max-width: 768px) {
  /* 移除错误的 last-of-type 选择器影响 */
  .nav-links .dropdown {
    border-bottom: 1px solid var(--header-border) !important;
    display: block !important;
    width: 100%;
  }
  
  /* 确保最后一个元素（专属定制a标签）没有下边框 */
  .nav-links > a:last-child {
    border-bottom: none !important;
  }
  
  /* 修复2：首页下拉菜单遮挡问题 */
  /* 强制下拉菜单使用静态定位，不遮挡后续内容 */
  .nav-links .dropdown-menu {
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    margin-top: 0 !important;
    padding: 0 !important;
    background: var(--bg-secondary) !important;
    border-radius: 0 !important;
    border: none !important;
    border-left: 3px solid var(--primary-color) !important;
    width: 100% !important;
    z-index: auto !important;
  }
  
  /* 展开时显示 */
  .dropdown.active .dropdown-menu {
    display: block !important;
  }
  
  /* 确保下拉菜单项样式正确 */
  .dropdown-menu a {
    padding: 12px 24px !important;
    border-bottom: 1px solid var(--header-border) !important;
    font-size: 14px !important;
    display: block !important;
  }
  
  .dropdown-menu a:last-child {
    border-bottom: none !important;
  }
  
  /* 确保导航链接样式一致 */
  .nav-links > a,
  .dropdown-toggle {
    border-bottom: 1px solid var(--header-border) !important;
    padding: 16px 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  /* 专属定制按钮特殊样式 - 移除下边框 */
  .nav-links > a.nav-highlight {
    border-bottom: none !important;
    margin: 12px 0;
    padding: 12px 20px !important;
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 25px;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================
   深蓝主题汉堡按钮强制修复
   ============================================ */

/* 强制显示汉堡按钮 - 所有主题 */
.mobile-menu-toggle {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 8px !important;
  position: relative !important;
  z-index: 999999 !important;
  width: 40px !important;
  height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* 汉堡按钮线条 - 强制可见 */
.mobile-menu-toggle span {
  display: block !important;
  width: 24px !important;
  height: 2px !important;
  background-color: currentColor !important;
  border-radius: 2px !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
}

/* 深蓝主题特殊处理 - 强制深色背景和白色按钮 */
.theme-blue .site-header,
.theme-blue.site-header,
body.theme-blue .site-header {
  background: rgba(15, 23, 42, 0.98) !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2) !important;
}

/* 深蓝主题下强制白色按钮线条 */
.theme-blue .mobile-menu-toggle,
.theme-blue .mobile-menu-toggle span {
  color: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
}

/* 深蓝主题 Logo 强制白色 */
.theme-blue .nav-logo {
  color: #f1f5f9 !important;
}

/* 桌面端隐藏汉堡按钮 */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* 新增/修改的样式 */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-text {
    color: inherit;
    text-decoration: none;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.dropdown-text:hover,
.dropdown-text.active {
    color: #C9A050;
}

.dropdown-toggle {
    background: none;
    border: none;
    padding: 8px 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: inherit;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .dropdown-header {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-text {
        flex: 1;
        padding: 12px 0;
    }
    
    .dropdown-toggle {
        padding: 12px;
    }
}
/* ============================================
   祝福模板颜色深度统一修复
   ============================================ */

/* 强制所有导航链接完全一致 - 添加透明度降低颜色深度 */
.nav-links > a,
.nav-links > a.active {
    font-size: 15px !important;
    color: var(--text-link) !important;
    font-weight: 500 !important;
    opacity: 0.8 !important;  /* 降低颜色深度 */
}

/* 祝福模板容器 - 同样透明度 */
.dropdown-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    opacity: 0.8 !important;  /* 和其他菜单一样 */
}

/* 祝福模板文字 */
.dropdown-text {
    color: var(--text-link) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    opacity: 1 !important;  /* 容器已有opacity，文字保持100% */
}

.dropdown-text.active {
    color: var(--text-link) !important;
}

.dropdown-text:hover {
    color: var(--primary-color) !important;
}

.dropdown-toggle {
    background: transparent !important;
    border: none !important;
    padding: 0 2px !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    color: var(--text-link) !important;
    flex: 0 0 auto !important;
    font-size: 15px !important;
    line-height: 1 !important;
    opacity: 1 !important;
}

.dropdown-arrow {
    font-size: 10px !important;
    color: inherit !important;
}

/* ============================================
   移动端适配
   ============================================ */
@media (max-width: 768px) {
    /* 强制所有导航链接完全一致 */
    .nav-links > a,
    .nav-links > a.active,
    .dropdown-header,
    .dropdown-text {
        font-size: 16px !important;
        font-weight: 500 !important;
        color: var(--text-link) !important;
        opacity: 0.8 !important;  /* 统一透明度 */
    }

    .dropdown {
        border-bottom: 1px solid var(--header-border) !important;
        padding: 16px 0 !important;
        opacity: 1 !important;
    }

    .dropdown-header {
        justify-content: flex-start !important;
        padding: 0 !important;
        opacity: 0.8 !important;
    }

    .dropdown-text {
        font-size: 16px !important;
        color: var(--text-link) !important;
        opacity: 1 !important;
    }

    .dropdown-text.active {
        color: var(--text-link) !important;
    }

    .dropdown-toggle {
        padding: 0 2px !important;
        color: var(--text-link) !important;
        font-size: 16px !important;
        opacity: 1 !important;
    }

    .dropdown-menu {
        position: static !important;
        display: none !important;
        margin: 8px 0 0 0 !important;
        background: var(--bg-secondary) !important;
        border-left: 3px solid var(--primary-color) !important;
    }

    .dropdown.active .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu a {
        padding: 12px 24px !important;
        border-bottom: 1px solid var(--header-border) !important;
        color: var(--text-secondary) !important;
    }
}

/* ============================================
   各主题统一
   ============================================ */
.theme-blue .nav-links > a,
.theme-blue .dropdown-text,
.theme-blue .dropdown-header,
.theme-pink .nav-links > a,
.theme-pink .dropdown-text,
.theme-pink .dropdown-header,
.theme-red .nav-links > a,
.theme-red .dropdown-text,
.theme-red .dropdown-header {
    font-size: 15px !important;
    color: var(--text-link) !important;
    opacity: 0.8 !important;
}

@media (max-width: 768px) {
    .theme-blue .nav-links > a,
    .theme-blue .dropdown-text,
    .theme-blue .dropdown-header,
    .theme-pink .nav-links > a,
    .theme-pink .dropdown-text,
    .theme-pink .dropdown-header,
    .theme-red .nav-links > a,
    .theme-red .dropdown-text,
    .theme-red .dropdown-header {
        font-size: 16px !important;
        opacity: 0.8 !important;
    }
}