:root {
  --bs-global: #b074d1;
  --bs-blue: #1d3b53;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #e83e8c;
  --bs-red: #d6293e;
  --bs-orange: #fd7e14;
  --bs-yellow: #f7c32e;
  --bs-green: #0cbc87;
  --bs-teal: #20c997;
  --bs-cyan: #17a2b8;
  --bs-black: #000;
  --bs-white: #fff;
  --bs-gray: #747579;
  --bs-gray-dark: #0b0a12;
  --bs-gray-100: #f5f5f6;
  --bs-gray-200: #dfdfe3;
  --bs-gray-300: #c5c5c7;
  --bs-gray-400: #96969a;
  --bs-gray-500: #85878a;
  --bs-gray-600: #747579;
  --bs-gray-700: #5e5e5f;
  --bs-gray-800: #0b0a12;
  --bs-gray-900: #0b0a12;
  --bs-primary: #FFC0CB;
  --bs-white: #fff;
  --bs-secondary: #85878a;
  --bs-success: #0cbc87;
  --bs-info: #17a2b8;
  --bs-warning: #f7c32e;
  --bs-danger: #d6293e;
  --bs-light: #f5f5f6;
  --bs-dark: #0b0a12;
  --bs-orange: #fd7e14;
  --bs-mode: #fff;
  --bs-primary-rgb: 176, 116, 209;
  --bs-white-rgb: 255, 255, 255;
  --bs-secondary-rgb: 133, 135, 138;
  --bs-success-rgb: 12, 188, 135;
  --bs-info-rgb: 23, 162, 184;
  --bs-warning-rgb: 247, 195, 46;
  --bs-danger-rgb: 214, 41, 62;
  --bs-light-rgb: 245, 245, 246;
  --bs-dark-rgb: 11, 10, 18;
  --bs-orange-rgb: 253, 126, 20;
  --bs-mode-rgb: 255, 255, 255;
  --bs-white-rgb: 255, 255, 255;
  --bs-black-rgb: 0, 0, 0;
  --bs-body-color-rgb: 116, 117, 121;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  --bs-body-font-family: DM Sans, sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #747579;
  --bs-body-bg: #fff;
  --bs-border-width: 1px;
  --bs-border-style: solid;
  --bs-border-color: var(--bs-gray-200);
  --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
  --bs-border-radius: 0.5rem;
  --bs-border-radius-sm: 0.4rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-xl: 1.5rem;
  --bs-border-radius-2xl: 2rem;
  --bs-border-radius-pill: 50rem;
  --bs-link-color: var(--bs-primary);
  --bs-link-hover-color: #8536b0;
  --bs-code-color: #d63384;
  --bs-highlight-bg: #fff3cd;
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}
    /* 网站背景图片 */
   [data-bs-theme="light"]  body {
      background-image: url('https://t.alcy.cc/moez');
    backdrop-filter: blur(2.5px);
      background-size: cover;
      font-family: "LXGW WenKai Screen", sans-serif;
      min-height: 100vh;
    }
    
    
    /* 侧边栏毛玻璃效果 - 确保壁纸显示 */
 .offcanvas {
  width: 280px;
  background: transparent !important; /* 关键：完全透明 */
  backdrop-filter: blur(20px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
}
/* 限制侧边栏内容区域高度 */
.offcanvas-body {
  max-height: calc(100vh - 60px); /* 减去头部高度 */
  overflow-y: auto;
  padding-bottom: 20px;
}

/* 毛玻璃背景层 */
.offcanvas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.08); /* 非常轻微的白雾效果 */
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  z-index: -1;
}

/* 确保内容区域透明 */
.offcanvas-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.offcanvas-body {
  background: transparent !important;
}

/* 让所有内部元素都透明 */
.offcanvas-body * {
  background: transparent !important;
}

/* 文字改为白色以便在壁纸上清晰显示 */
.offcanvas-title {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 导航链接使用轻微背景以便可读 */
[data-bs-theme="light"] .nav-links a {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(5px) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-bs-theme="light"] .nav-links a:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 1) !important;
}

[data-bs-theme="light"] .nav-links a.active {
  background: rgba(255, 255, 255, 0.25) !important;
  border-left: 4px solid rgba(255, 255, 255, 0.5) !important;
}

    /* 头像区域毛玻璃效果 */
    .avatar-container {
      text-align: center;
      margin-bottom: 25px;
      position: relative;
    }
    
    .avatar-container::before {
      content: '';
      position: absolute;
      top: -10px;
      left: -10px;
      right: -10px;
      bottom: -10px;
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      border-radius: 20px;
      z-index: -1;
    }
    
    .avatar {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      border: 4px solid rgba(255, 255, 255, 0.3);
      object-fit: cover;
      margin-bottom: 15px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
      position: relative;
      background-color: rgba(52, 152, 219, 0.3);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
    }
    
    .author-name {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 5px;
      color: #ecf0f1;
      text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }
    
    .author-desc {
      font-size: 0.9rem;
      color: #bdc3c7;
      margin-bottom: 20px;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
    
    /* 导航链接毛玻璃效果 */
    .nav-links {
      list-style: none;
      padding-left: 0;
      margin-bottom: 30px;
    }
    
    .nav-links li {
      margin-bottom: 10px;
    }
    
    .nav-links a {
      display: flex;
      align-items: center;
      padding: 12px 20px;
      color: #ecf0f1;
      text-decoration: none;
      border-radius: 10px;
      transition: all 0.3s ease;
      background-color: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      position: relative;
      overflow: hidden;
    }
    
    .nav-links a::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
      transition: left 0.5s ease;
    }
    
    .nav-links a:hover::before {
      left: 100%;
    }
    
    .nav-links a:hover {
      background-color: rgba(52, 152, 219, 0.2);
      color: #3498db;
      transform: translateX(5px);
      border-color: rgba(52, 152, 219, 0.4);
      box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
    }
    
    .nav-links a.active {
      background-color: rgba(52, 152, 219, 0.25);
      color: #3498db;
      border-left: 4px solid #3498db;
      box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
    }
    
    .nav-icon {
      width: 24px;
      margin-right: 15px;
      text-align: center;
      font-size: 1.1rem;
    }
    
    /* 联系方式区域毛玻璃效果 */
    .contact-section {
      margin-top: 30px;
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      position: relative;
    }
    
    .contact-section::before {
      content: '';
      position: absolute;
      top: 10px;
      left: -10px;
      right: -10px;
      bottom: -10px;
      background: rgba(255, 255, 255, 0.03);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      border-radius: 15px;
      z-index: -1;
    }
    
    .contact-title {
      font-size: 1rem;
      color: #bdc3c7;
      margin-bottom: 15px;
      font-weight: 500;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
    
    .contact-links {
      display: flex;
      justify-content: center;
      gap: 15px;
    }
    
    .contact-link {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      color: #ecf0f1;
      text-decoration: none;
      transition: all 0.3s ease;
      border: 1px solid rgba(255, 255, 255, 0.2);
      position: relative;
      overflow: hidden;
    }
    
    .contact-link::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    .contact-link:hover::before {
      opacity: 1;
    }
    
    .contact-link:hover {
      background-color: rgba(52, 152, 219, 0.3);
      transform: translateY(-5px);
      border-color: rgba(52, 152, 219, 0.5);
      box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    }
    
    /* 关闭按钮样式 */
    .btn-close {
      filter: invert(1) grayscale(100%) brightness(200%);
      opacity: 0.8;
    }
    
    .btn-close:hover {
      opacity: 1;
    }
    
    .offcanvas-body {
      padding-top: 0;
    }
    
    /* 主内容区域毛玻璃效果 */
    .main-content {
      margin-top: 40px;
      padding: 20px;
    }
    
    .card {
      background-color: rgba(255, 255, 255, 0.08) !important;
      backdrop-filter: blur(10px) saturate(180%);
      -webkit-backdrop-filter: blur(10px) saturate(180%);
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      border-radius: 15px;
      color: #e0e0e0;
    }
    
    .card-title {
      color: #ecf0f1;
      font-weight: 600;
      text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }
    
    .card-text {
      color: #d0d0d0;
      line-height: 1.6;
    }
    
    /* 卡片内部的卡片 */
    .card .card {
      background-color: rgba(255, 255, 255, 0.05) !important;
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
    }
    
    .card .card-title {
      color: #bdc3c7;
      font-size: 1rem;
    }
    
    .card .card-text {
      color: #aaa;
      font-size: 0.9rem;
    }
    
    /* 按钮毛玻璃效果 */
    .btn-primary {
      background-color: rgba(52, 152, 219, 0.3);
      border-color: rgba(52, 152, 219, 0.5);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      color: #ecf0f1;
    }
    
    .btn-primary:hover {
      background-color: rgba(52, 152, 219, 0.5);
      border-color: rgba(52, 152, 219, 0.8);
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    }
    
    /* 导航栏中的导航链接 */
    .navbar-nav .nav-link {
      color: #ecf0f1 !important;
      margin: 0 8px;
      padding: 8px 15px !important;
      border-radius: 8px;
      transition: all 0.3s ease;
      background-color: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
      background-color: rgba(52, 152, 219, 0.2);
      color: #3498db !important;
    }
    
    /* 滚动条样式 */
    ::-webkit-scrollbar {
      width: 8px;
    }
    
    ::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 10px;
    }
    
    ::-webkit-scrollbar-thumb {
      background: rgba(52, 152, 219, 0.5);
      border-radius: 10px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
      background: rgba(52, 152, 219, 0.7);
    }
    
    /* 响应式调整 */
    @media (max-width: 768px) {
      .offcanvas {
        width: 260px;
      }
      
      .navbar-nav {
        background-color: rgba(44, 62, 80, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 10px;
        padding: 15px;
        margin-top: 10px;
      }
    }

/* Logo切换 */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

/* 暗色模式背景 */
[data-bs-theme="dark"] body {
    background: #121212;
    font-family: "LXGW WenKai Screen", sans-serif;
}

[data-bs-theme="dark"] h3{
color: #fff;
}

[data-bs-theme="dark"] h1{
color: #fff;
}

[data-bs-theme="dark"] h6{
color: #fff;
}

[data-bs-theme="dark"] p{
color: #fff;
}
/* 确保Element UI消息框在深色模式下可读 */
.dark-mode .el-message {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: #555;
    color: #fff;
}

.dark-mode .el-message--success .el-message__content {
    color: #67c23a;
}

.dark-mode .el-message--info .el-message__content {
    color: #909399;
}

/* 深色模式切换动画 */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}