/* 标准化深色和浅色主题样式 */

/* 默认/浅色主题 - 确保只在默认主题激活时生效 */
:root[data-theme='default'],
:root[data-theme='light'],
html:not([data-theme]):not(.theme-dark):not(.theme-animation),
html.theme-light {
  /* 背景色 */
  --bg-color: #ffffff;
  --bg-secondary-color: #f8f9fa;
  --bg-tertiary-color: #e9ecef;
  
  /* 文字颜色 - 符合WCAG AA标准的对比度 */
  --text-color: #1a1a1a; /* 提高文字对比度 */
  --text-secondary-color: #495057;
  --text-tertiary-color: #6c757d;
  
  /* 边框颜色 */
  --border-color: #dee2e6;
  --border-light-color: #e9ecef;
  
  /* 卡片背景 */
  --card-bg: #ffffff;
  
  /* 导航栏背景 */
  --navbar-bg: var(--primary-color);
  
  /* 页脚背景 */
  --footer-bg: #f8f9fa;
  --footer-text: #495057;
  
  /* 按钮颜色 */
  --btn-text: #ffffff;
  
  /* 链接颜色 */
  --link-color: var(--primary-color);
  --link-hover-color: var(--primary-hover-color);
  
  /* 表单元素 */
  --form-bg: var(--card-bg);
  --form-border: var(--border-color);
  --form-focus-border: var(--primary-color);
  --form-placeholder: var(--text-secondary-color);
  
  /* 模态框 */
  --modal-bg: var(--card-bg);
  --modal-header-border: var(--border-color);
  --modal-footer-border: var(--border-color);
  
  /* 下拉菜单 */
  --dropdown-bg: var(--card-bg);
  --dropdown-border: var(--border-color);
  --dropdown-item-hover-bg: var(--bg-secondary-color);
}

/* 深色主题 */
:root[data-theme='dark'],
html.theme-dark {
  /* 背景色 - 减少眼部疲劳 */
  --bg-color: #1a1a1a; /* 进一步提亮背景色以减少眼部疲劳 */
  --bg-secondary-color: #252525; /* 提亮二级背景色 */
  --bg-tertiary-color: #333333; /* 提亮三级背景色 */
  
  /* 文字颜色 - 提高可读性 */
  --text-color: #f0f0f0; /* 调整文字亮度以增强可读性 */
  --text-secondary-color: #d8d8d8; /* 调整次要文字亮度 */
  --text-tertiary-color: #b0b0b0; /* 调整三级文字亮度 */
  
  /* 边框颜色 - 提高对比度 */
  --border-color: #555555; /* 调整边框颜色以提高对比度 */
  --border-light-color: #444444;
  
  /* 卡片背景 */
  --card-bg: #252525; /* 提亮卡片背景 */
  
  /* 导航栏背景 */
  --navbar-bg: #1a1a1a;
  
  /* 页脚背景 */
  --footer-bg: #1a1a1a;
  --footer-text: #d8d8d8; /* 调整页脚文字亮度 */
  
  /* 按钮颜色 */
  --btn-text: #ffffff;
  
  /* 链接颜色 */
  --link-color: var(--primary-color);
  --link-hover-color: var(--primary-hover-color);
  
  /* 表单元素 */
  --form-bg: var(--card-bg);
  --form-border: var(--border-color);
  --form-focus-border: var(--primary-color);
  --form-placeholder: var(--text-secondary-color);
  
  /* 模态框 */
  --modal-bg: var(--card-bg);
  --modal-header-border: var(--border-color);
  --modal-footer-border: var(--border-color);
  
  /* 下拉菜单 */
  --dropdown-bg: var(--card-bg);
  --dropdown-border: var(--border-color);
  --dropdown-item-hover-bg: var(--bg-secondary-color);
}

/* 动画主题样式 */
:root[data-theme='animation'],
html.theme-animation {
  /* 背景色 - 透明以显示动画背景 */
  --bg-color: transparent;
  --bg-secondary-color: rgba(255, 255, 255, 0.2);
  --bg-tertiary-color: rgba(255, 255, 255, 0.15);
  
  /* 文字颜色 - 更亮的白色以在动画背景下清晰显示 */
  --text-color: #ffffff;
  --text-secondary-color: #f8f8f8;
  --text-tertiary-color: #e8e8e8;
  
  /* 边框颜色 */
  --border-color: rgba(255, 255, 255, 0.4);
  --border-light-color: rgba(255, 255, 255, 0.2);
  
  /* 卡片背景 - 提高不透明度以提高可读性 */
  --card-bg: rgba(255, 255, 255, 0.25);
  
  /* 导航栏背景 */
  --navbar-bg: transparent;
  
  /* 页脚背景 */
  --footer-bg: rgba(0, 0, 0, 0.5);
  --footer-text: #f8f8f8;
  
  /* 按钮颜色 */
  --btn-text: #ffffff;
  
  /* 链接颜色 */
  --link-color: #63adff;
  --link-hover-color: #4aa3ff;
  
  /* 表单元素 */
  --form-bg: rgba(255, 255, 255, 0.25);
  --form-border: rgba(255, 255, 255, 0.5);
  --form-focus-border: #63adff;
  --form-placeholder: #e8e8e8;
  
  /* 模态框 */
  --modal-bg: rgba(20, 20, 30, 0.95);
  --modal-header-border: rgba(255, 255, 255, 0.4);
  --modal-footer-border: rgba(255, 255, 255, 0.4);
  
  /* 下拉菜单 */
  --dropdown-bg: rgba(20, 20, 30, 0.95);
  --dropdown-border: rgba(255, 255, 255, 0.4);
  --dropdown-item-hover-bg: rgba(255, 255, 255, 0.2);
}

/* 深色主题下的特定样式 - 统一组件样式表现 */
[data-theme='dark'] body,
html.theme-dark body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme='dark'] .card,
html.theme-dark .card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
  border-radius: 8px; /* 统一圆角 */
  border: 1px solid var(--border-color); /* 统一边框 */
  padding: 1.25rem; /* 统一内边距 */
  margin-bottom: 1.25rem; /* 统一底部间距 */
}

[data-theme='dark'] .navbar,
html.theme-dark .navbar {
  background-color: var(--navbar-bg) !important;
  transition: all 0.3s ease;
  padding: 1rem 0;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

[data-theme='dark'] .footer-custom,
html.theme-dark .footer-custom {
  background-color: var(--footer-bg) !important;
  color: var(--footer-text);
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 -0.125rem 0.25rem rgba(0, 0, 0, 0.2);
  backdrop-filter: none;
}

/* 动画主题下的特定样式 */
[data-theme='animation'] body,
html.theme-animation body {
  background-color: transparent; /* 透明背景以显示动画背景 */
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: 'Roboto', 'Open Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55); /* 增强整体文字阴影效果 */
}

/* 动画主题下产品详情页和方案详情页的优化 */
[data-theme='animation'] .container,
html.theme-animation .container {
  background: transparent; /* 取消半透明背景效果 */
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  backdrop-filter: none; /* 移除模糊效果 */
  -webkit-backdrop-filter: none; /* Safari 兼容 */
  border: none; /* 移除半透明白色边框 */
  box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.55); /* 增强阴影效果 */
  transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

/* 动画主题下产品列表页的优化 */
[data-theme='animation'] .product-card,
html.theme-animation .product-card {
  background: transparent; /* 取消半透明背景效果 */
  backdrop-filter: none; /* 移除模糊效果 */
  border: none; /* 移除半透明白色边框 */
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border 0.3s ease;
  border-radius: 12px;
  padding: 1rem;
}

/* 动画主题下首页特色产品水平滑动样式 */
[data-theme='animation'] .horizontal-scroll-container,
html.theme-animation .horizontal-scroll-container {
  background: transparent; /* 取消半透明背景效果 */
  border-radius: 12px;
  padding: 1.25rem;
  backdrop-filter: none; /* 移除模糊效果 */
  border: none; /* 移除半透明白色边框 */
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

[data-theme='animation'] .scroll-nav,
html.theme-animation .scroll-nav {
  background: rgba(255, 255, 255, 0.4); /* 保持此元素的半透明背景以确保可见性 */
  backdrop-filter: none; /* 移除模糊效果 */
  border: 1px solid rgba(255, 255, 255, 0.35); /* 保持此元素的半透明白色边框以确保可见性 */
  color: #ffffff;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

[data-theme='animation'] .scroll-nav:hover,
html.theme-animation .scroll-nav:hover {
  background: rgba(99, 173, 255, 0.95);
  border-color: rgba(99, 173, 255, 0.8);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0.3rem 0.7rem rgba(0, 0, 0, 0.5);
}

[data-theme='animation'] .product-card:hover,
html.theme-animation .product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, 0.7);
  background: transparent;
}

[data-theme='animation'] .product-card .card-title a,
html.theme-animation .product-card .card-title a {
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.95);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

[data-theme='animation'] .product-card .card-text,
html.theme-animation .product-card .card-text {
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
  line-height: 1.6;
  font-size: 0.95rem;
}

[data-theme='animation'] .product-price,
html.theme-animation .product-price {
  color: #63adff;
  font-weight: 700;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.95);
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

[data-theme='animation'] .product-compare-price,
html.theme-animation .product-compare-price {
  color: #e0e0e0;
  text-decoration: line-through;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

[data-theme='animation'] .filter-card,
html.theme-animation .filter-card {
  background: transparent; /* 取消半透明背景效果 */
  backdrop-filter: none;
  border: none; /* 移除半透明白色边框 */
  border-radius: 12px;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.35);
}

[data-theme='animation'] .filter-card .card-header,
html.theme-animation .filter-card .card-header {
  background: transparent; /* 取消半透明背景效果 */
  border-bottom: none; /* 移除半透明白色边框 */
}

[data-theme='animation'] .form-label,
html.theme-animation .form-label {
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

[data-theme='animation'] .form-control,
[data-theme='animation'] .form-select,
html.theme-animation .form-control,
html.theme-animation .form-select {
  background: transparent; /* 取消半透明背景效果 */
  border: none; /* 移除半透明白色边框 */
  color: #ffffff;
  line-height: 1.6;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  backdrop-filter: none; /* 移除模糊效果 */
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  font-weight: 400;
}

[data-theme='animation'] .form-control:focus,
[data-theme='animation'] .form-select:focus,
html.theme-animation .form-control:focus,
html.theme-animation .form-select:focus {
  background: rgba(255, 255, 255, 0.4);
  border-color: #63adff;
  box-shadow: 0 0 0 0.2rem rgba(99, 173, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

[data-theme='animation'] .form-control::placeholder,
html.theme-animation .form-control::placeholder {
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
  opacity: 0.95;
}

[data-theme='animation'] .pagination .page-link,
html.theme-animation .pagination .page-link {
  background: transparent; /* 取消半透明背景效果 */
  border: none; /* 移除半透明白色边框 */
  color: #ffffff;
  backdrop-filter: none; /* 移除模糊效果 */
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  font-weight: 500;
}

[data-theme='animation'] .pagination .page-link:hover,
html.theme-animation .pagination .page-link:hover {
  background: rgba(99, 173, 255, 0.6);
  border-color: rgba(99, 173, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

[data-theme='animation'] .pagination .page-item.active .page-link,
html.theme-animation .pagination .page-item.active .page-link {
  background: rgba(99, 173, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

/* 动画主题下所有页面的通用优化 - 增强视觉层次感 */
[data-theme='animation'] h1,
[data-theme='animation'] h2,
[data-theme='animation'] h3,
[data-theme='animation'] h4,
[data-theme='animation'] h5,
[data-theme='animation'] h6,
html.theme-animation h1,
html.theme-animation h2,
html.theme-animation h3,
html.theme-animation h4,
html.theme-animation h5,
html.theme-animation h6 {
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.95);
  color: #ffffff;
  font-weight: 800; /* 增加字体粗细 */
  letter-spacing: 1px; /* 增加字母间距 */
  margin-bottom: 1.5rem; /* 增加底部间距 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.3s ease;
}

[data-theme='animation'] p,
[data-theme='animation'] li,
[data-theme='animation'] div,
html.theme-animation p,
html.theme-animation li,
html.theme-animation div {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.3s ease;
}

[data-theme='animation'] .btn,
html.theme-animation .btn {
  backdrop-filter: none; /* 移除模糊效果 */
  transition: all 0.3s ease;
}

[data-theme='animation'] .btn-primary,
html.theme-animation .btn-primary {
  background: transparent; /* 取消半透明背景效果 */
  border: none; /* 移除半透明白色边框 */
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

[data-theme='animation'] .btn-outline-primary,
html.theme-animation .btn-outline-primary {
  border: none; /* 移除半透明白色边框 */
  color: #63adff;
  backdrop-filter: none; /* 移除模糊效果 */
  background: transparent; /* 取消半透明背景效果 */
  transition: all 0.3s ease;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.3);
}

[data-theme='animation'] .product-title,
html.theme-animation .product-title {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

[data-theme='animation'] .card,
html.theme-animation .card {
  background: transparent; /* 取消半透明背景效果 */
  backdrop-filter: none; /* 移除模糊效果 */
  border: none; /* 移除半透明白色边框 */
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  transition: all 0.3s ease;
  padding: 1.25rem;
}

/* 产品页面的卡片样式覆盖 */
[data-theme='animation'] .filter-card .card,
html.theme-animation .filter-card .card {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

[data-theme='animation'] .breadcrumb,
html.theme-animation .breadcrumb {
  background: transparent; /* 取消半透明背景效果 */
  backdrop-filter: none; /* 移除模糊效果 */
  border-radius: 10px;
  padding: 1.25rem;
  border: none; /* 移除半透明白色边框 */
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.4);
}

[data-theme='animation'] .breadcrumb-item a,
html.theme-animation .breadcrumb-item a {
  color: #63adff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  font-weight: 500;
  transition: all 0.3s ease;
}

[data-theme='animation'] .breadcrumb-item a:hover,
html.theme-animation .breadcrumb-item a:hover {
  color: #4aa3ff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
  font-weight: 600;
}

[data-theme='animation'] .breadcrumb-item.active,
html.theme-animation .breadcrumb-item.active {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

[data-theme='animation'] .solution-detail h1,
html.theme-animation .solution-detail h1 {
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.95);
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

[data-theme='animation'] .solution-content,
html.theme-animation .solution-content {
  background: rgba(0, 0, 0, 0.45); /* 增加背景不透明度以提高可读性 */
  padding: 25px;
  border-radius: 10px;
  backdrop-filter: none; /* 移除模糊效果 */
  border: 1px solid rgba(255, 255, 255, 0.2); /* 增强边框可见性 */
  box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.5);
}

/* 首页特色产品水平滑动样式 */
.horizontal-scroll-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 2rem 0;
}

.horizontal-scroll-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 1rem 0;
  scroll-padding: 0 2rem;
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera*/
}

.product-item {
  flex: 0 0 auto;
  width: calc(25% - 1rem);
  margin-right: 1rem;
}

.scroll-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.scroll-nav:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.scroll-nav-prev {
  left: 10px;
}

.scroll-nav-next {
  right: 10px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .product-item {
    width: calc(33.333% - 1rem);
  }
}

@media (max-width: 992px) {
  .product-item {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .product-item {
    width: calc(50% - 0.5rem);
  }
  
  .scroll-nav {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 576px) {
  .product-item {
    width: calc(80% - 0.5rem);
  }
  
  .scroll-nav {
    width: 30px;
    height: 30px;
  }
}

/* 动画主题下的主标题样式 */
.animation-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: transparent;
  width: 100%;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.hero-content {
  z-index: 1;
  padding: 2rem;
  max-width: 900px;
  width: 100%;
  background: transparent;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border: none;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.95);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: 1.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-subtitle {
  font-size: 1.75rem;
  color: #f8f8f8;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.85);
  margin-bottom: 0;
  line-height: 1.4;
  font-weight: 300;
  letter-spacing: 0.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .animation-hero {
    min-height: 450px;
  }
  
  .hero-content {
    padding: 1.5rem;
    max-width: 700px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  }
  
  .hero-title {
    font-size: 3rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.9);
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
  }
}

@media (max-width: 768px) {
  .animation-hero {
    min-height: 400px;
  }
  
  .hero-content {
    padding: 1.25rem;
    max-width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
  }
  
  .hero-title {
    font-size: 2.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.85);
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
  }
}

@media (max-width: 576px) {
  .animation-hero {
    min-height: 350px;
    padding: 1rem 0.5rem;
  }
  
  .hero-content {
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  
  .hero-title {
    font-size: 2rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  }
  
  .hero-subtitle {
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  }
}

/* 已在前面定义了动画主题下的卡片样式 */

[data-theme='animation'] .navbar,
html.theme-animation .navbar {
  background-color: transparent !important; /* 使用透明背景 */
  transition: background-color 0.3s ease;
  box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.5);
  border-bottom: none; /* 取消边框 */
  padding: 0.75rem 0;
  backdrop-filter: none; /* 移除模糊效果 */
  -webkit-backdrop-filter: none; /* Safari 兼容 */
}

[data-theme='animation'] .navbar .navbar-brand {
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.95);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

[data-theme='animation'] .navbar .navbar-brand:hover {
  color: #63adff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.95);
  transform: scale(1.02);
  background-color: rgba(99, 173, 255, 0.15);
  backdrop-filter: blur(3px);
}

[data-theme='animation'] .navbar .nav-link {
  color: #f8f8f8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  margin: 0 0.3rem;
  position: relative;
  overflow: hidden;
}

[data-theme='animation'] .navbar .nav-link:hover {
  color: #63adff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.95);
  transform: translateY(-3px);
  background-color: rgba(99, 173, 255, 0.3);
  backdrop-filter: blur(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme='animation'] .navbar .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #63adff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(99, 173, 255, 0.6);
}

[data-theme='animation'] .navbar .nav-link:hover::before {
  width: 80%;
  box-shadow: 0 2px 4px rgba(99, 173, 255, 0.75);
}

[data-theme='animation'] .footer-custom,
html.theme-animation .footer-custom {
  background-color: rgba(0, 0, 0, 0.5) !important; /* 半透明背景以提高可读性 */
  color: var(--footer-text);
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 -0.25rem 0.5rem rgba(0, 0, 0, 0.45);
  line-height: 1.6;
  backdrop-filter: none; /* 移除模糊效果 */
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem 0;
}

[data-theme='animation'] .footer-heading {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

[data-theme='animation'] .footer-text,
[data-theme='animation'] .footer-links a,
[data-theme='animation'] .footer-contact li {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  line-height: 1.7;
}

/* 应用主题样式 - 确保平滑过渡 */
html:not([data-theme]):not(.theme-dark):not(.theme-animation) body,
[data-theme='default'] body,
[data-theme='light'] body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* 导航栏样式 - 确保只在默认主题激活时使用默认样式 */
html:not([data-theme]):not(.theme-dark):not(.theme-animation) .navbar,
[data-theme='default'] .navbar,
[data-theme='light'] .navbar {
  background-color: var(--navbar-bg) !important;
  transition: all 0.3s ease;
  padding: 1rem 0;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

/* 动画主题下确保默认样式不干扰动画主题样式 */
[data-theme='animation'] .navbar {
  background-color: transparent !important;
}

.navbar .navbar-logo {
  height: 48px;
  width: auto;
  margin-right: 15px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
  transition: all 0.3s ease;
  border-radius: 8px;
}

.navbar .navbar-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

.navbar .nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin: 0 0.25rem;
}

.navbar .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

[data-theme='dark'] .navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 卡片样式 - 确保只在默认主题激活时使用默认样式 */
html:not([data-theme]):not(.theme-dark):not(.theme-animation) .card,
[data-theme='default'] .card,
[data-theme='light'] .card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 8px; /* 统一圆角 */
  border: 1px solid var(--border-color); /* 统一边框 */
  padding: 1.25rem; /* 统一内边距 */
  margin-bottom: 1.25rem; /* 统一底部间距 */
}

html:not([data-theme]):not(.theme-dark):not(.theme-animation) .card-title,
html:not([data-theme]):not(.theme-dark):not(.theme-animation) .card-text,
[data-theme='default'] .card-title,
[data-theme='default'] .card-text,
[data-theme='light'] .card-title,
[data-theme='light'] .card-text {
  color: var(--text-color);
  transition: color 0.3s ease;
  line-height: 1.6; /* 改善行高 */
  font-weight: 400; /* 设置正文字重 */
}

/* 页脚样式 - 确保只在默认主题激活时使用默认样式 */
html:not([data-theme]):not(.theme-dark):not(.theme-animation) .footer-custom,
[data-theme='default'] .footer-custom,
[data-theme='light'] .footer-custom {
  background-color: var(--footer-bg) !important;
  color: var(--footer-text);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  line-height: 1.6;
}

/* 动画主题下确保默认样式不干扰动画主题样式 */
[data-theme='animation'] .footer-custom {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

/* 默认主题下的页脚样式 */
html:not([data-theme]):not(.theme-dark):not(.theme-animation) .footer-heading,
[data-theme='default'] .footer-heading,
[data-theme='light'] .footer-heading {
  color: var(--text-color);
  transition: color 0.3s ease;
}

html:not([data-theme]):not(.theme-dark):not(.theme-animation) .footer-text,
html:not([data-theme]):not(.theme-dark):not(.theme-animation) .footer-links a,
html:not([data-theme]):not(.theme-dark):not(.theme-animation) .footer-contact li,
[data-theme='default'] .footer-text,
[data-theme='default'] .footer-links a,
[data-theme='default'] .footer-contact li,
[data-theme='light'] .footer-text,
[data-theme='light'] .footer-links a,
[data-theme='light'] .footer-contact li {
  color: var(--footer-text);
  transition: color 0.3s ease;
  line-height: 1.7; /* 改善行高 */
  font-weight: 400; /* 设置正文字重 */
}

/* 动画主题下的页脚样式 */
[data-theme='animation'] .footer-heading {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

[data-theme='animation'] .footer-text,
[data-theme='animation'] .footer-links a,
[data-theme='animation'] .footer-contact li {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  line-height: 1.7;
}

/* 深色主题下的卡片样式 - 明确指定深色主题样式 */
[data-theme='dark'] .card-title,
[data-theme='dark'] .card-text,
html.theme-dark .card-title,
html.theme-dark .card-text {
  color: var(--text-color);
  transition: color 0.3s ease;
  line-height: 1.6; /* 改善行高 */
  font-weight: 400; /* 设置正文字重 */
}

/* 动画主题下的卡片样式 - 明确指定动画主题样式 */
[data-theme='animation'] .card-title,
[data-theme='animation'] .card-text,
html.theme-animation .card-title,
html.theme-animation .card-text {
  color: var(--text-color);
  transition: color 0.3s ease;
  line-height: 1.6; /* 改善行高 */
  font-weight: 400; /* 设置正文字重 */
}


/* 表单元素 - 确保只在默认主题激活时使用默认样式 */
html:not([data-theme]):not(.theme-dark):not(.theme-animation) .form-control,
html:not([data-theme]):not(.theme-dark):not(.theme-animation) .form-select,
[data-theme='default'] .form-control,
[data-theme='default'] .form-select,
[data-theme='light'] .form-control,
[data-theme='light'] .form-select {
  background-color: var(--form-bg);
  color: var(--text-color);
  border-color: var(--form-border);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

html:not([data-theme]):not(.theme-dark):not(.theme-animation) .form-control:focus,
html:not([data-theme]):not(.theme-dark):not(.theme-animation) .form-select:focus,
[data-theme='default'] .form-control:focus,
[data-theme='default'] .form-select:focus,
[data-theme='light'] .form-control:focus,
[data-theme='light'] .form-select:focus {
  background-color: var(--form-bg);
  color: var(--text-color);
  border-color: var(--form-focus-border);
  box-shadow: 0 0 0 0.2rem rgba(77, 171, 247, 0.25);
}

html:not([data-theme]):not(.theme-dark):not(.theme-animation) .form-control::placeholder,
[data-theme='default'] .form-control::placeholder,
[data-theme='light'] .form-control::placeholder {
  color: var(--form-placeholder);
}

/* 深色主题下的表单元素 */
[data-theme='dark'] .form-control,
[data-theme='dark'] .form-select {
  background-color: var(--bg-secondary-color);
  color: var(--text-color);
  border-color: var(--border-color);
}

[data-theme='dark'] .form-control:focus,
[data-theme='dark'] .form-select:focus {
  background-color: var(--bg-secondary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

[data-theme='dark'] .form-control::placeholder {
  color: var(--text-secondary-color);
}

/* 动画主题下的表单元素 */
[data-theme='animation'] .form-control,
[data-theme='animation'] .form-select {
  background-color: var(--form-bg);
  color: var(--text-color);
  border-color: var(--form-border);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

[data-theme='animation'] .form-control:focus,
[data-theme='animation'] .form-select:focus {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: #63adff;
  box-shadow: 0 0 0 0.2rem rgba(99, 173, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

[data-theme='animation'] .form-control::placeholder {
  color: #e8e8e8;
  font-style: italic;
  opacity: 0.9;
}

/* 按钮样式 - 确保只在默认主题激活时使用默认样式 */
html:not([data-theme]):not(.theme-dark):not(.theme-animation) .btn-primary,
[data-theme='default'] .btn-primary,
[data-theme='light'] .btn-primary {
  color: var(--btn-text);
  border-radius: 6px; /* 统一圆角 */
  padding: 0.5rem 1.25rem; /* 统一内边距 */
  font-weight: 500; /* 统一字体粗细 */
  transition: all 0.3s ease; /* 统一过渡效果 */
  text-transform: none; /* 统一文本转换 */
  letter-spacing: 0.25px; /* 统一字母间距 */
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* 统一阴影 */
}

html:not([data-theme]):not(.theme-dark):not(.theme-animation) .btn-outline-primary,
[data-theme='default'] .btn-outline-primary,
[data-theme='light'] .btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 6px; /* 统一圆角 */
  padding: 0.5rem 1.25rem; /* 统一内边距 */
  font-weight: 500; /* 统一字体粗细 */
  transition: all 0.3s ease; /* 统一过渡效果 */
  text-transform: none; /* 统一文本转换 */
  letter-spacing: 0.25px; /* 统一字母间距 */
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* 统一阴影 */
}

html:not([data-theme]):not(.theme-dark):not(.theme-animation) .btn-outline-primary:hover,
[data-theme='default'] .btn-outline-primary:hover,
[data-theme='light'] .btn-outline-primary:hover {
  color: var(--btn-text);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* 深色主题下的按钮样式 - 统一按钮样式表现 */
[data-theme='dark'] .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--btn-text);
  border-radius: 6px; /* 统一圆角 */
  padding: 0.5rem 1.25rem; /* 统一内边距 */
  font-weight: 500; /* 统一字体粗细 */
  transition: all 0.3s ease; /* 统一过渡效果 */
  text-transform: none; /* 统一文本转换 */
  letter-spacing: 0.25px; /* 统一字母间距 */
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2); /* 统一阴影 */
}

[data-theme='dark'] .btn-primary:hover {
  background-color: var(--primary-hover-color);
  border-color: var(--primary-hover-color);
  transform: translateY(-2px); /* 悬停效果 */
}

[data-theme='dark'] .btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 6px; /* 统一圆角 */
  padding: 0.5rem 1.25rem; /* 统一内边距 */
  font-weight: 500; /* 统一字体粗细 */
  transition: all 0.3s ease; /* 统一过渡效果 */
  text-transform: none; /* 统一文本转换 */
  letter-spacing: 0.25px; /* 统一字母间距 */
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2); /* 统一阴影 */
}

[data-theme='dark'] .btn-outline-primary:hover {
  color: var(--btn-text);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px); /* 悬停效果 */
}

/* 动画主题下的按钮样式 - 统一按钮样式表现 */
[data-theme='animation'] .btn-primary {
  background-color: rgba(99, 173, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--btn-text);
  box-shadow: 0 0.3rem 0.7rem rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.5rem 1.25rem;
}

[data-theme='animation'] .btn-primary:hover {
  background-color: rgba(99, 173, 255, 1);
  border-color: rgba(99, 173, 255, 1);
  transform: translateY(-3px);
  box-shadow: 0 0.7rem 1.2rem rgba(0, 0, 0, 0.6);
}

[data-theme='animation'] .btn-outline-primary {
  border: 1px solid rgba(99, 173, 255, 0.9);
  color: #63adff;
  backdrop-filter: none; /* 移除模糊效果以提高可读性 */
  background: rgba(99, 173, 255, 0.3); /* 提高不透明度 */
  transition: all 0.3s ease;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.5rem 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* 增强阴影效果 */
}

[data-theme='animation'] .btn-outline-primary:hover {
  color: var(--btn-text);
  background: #63adff;
  border-color: #63adff;
  transform: translateY(-3px);
  box-shadow: 0 0.7rem 1.2rem rgba(0, 0, 0, 0.5);
}

/* 链接样式 - 确保只在默认主题激活时使用默认样式 */
html:not([data-theme]):not(.theme-dark):not(.theme-animation) a:hover::after,
[data-theme='default'] a:hover::after,
[data-theme='light'] a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--link-hover-color);
  border-radius: 1px;
}

/* 深色主题下的链接样式 */
[data-theme='dark'] a {
  color: var(--link-color);
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

/* 标题样式 - 增强视觉层次感 */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-color);
  font-weight: 700; /* 增加字体粗细以增强视觉层次 */
  margin-bottom: 1rem; /* 增加底部间距 */
  line-height: 1.4; /* 改善行高 */
  transition: color 0.3s ease, text-shadow 0.3s ease;
  letter-spacing: 0.5px; /* 增加字母间距以提高可读性 */
}

/* 动画主题下的链接样式 */
[data-theme='animation'] a {
  color: #63adff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.3px;
}

[data-theme='animation'] a:hover {
  color: #4aa3ff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95);
  text-decoration: underline;
  transform: translateY(-2px);
  font-weight: 600;
}

/* 链接样式 - 确保只在默认主题激活时使用默认样式 */
html:not([data-theme]):not(.theme-dark):not(.theme-animation) a,
[data-theme='default'] a,
[data-theme='light'] a {
  color: var(--link-color);
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

html:not([data-theme]):not(.theme-dark):not(.theme-animation) a:hover,
[data-theme='default'] a:hover,
[data-theme='light'] a:hover {
  color: var(--link-hover-color);
  text-decoration: none;
  transform: translateY(-1px);
}

html:not([data-theme]):not(.theme-dark):not(.theme-animation) a:hover::after,
[data-theme='default'] a:hover::after,
[data-theme='light'] a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--link-hover-color);
  border-radius: 1px;
}

/* 标题样式 - 确保只在默认主题激活时使用默认样式 */
html:not([data-theme]):not(.theme-dark):not(.theme-animation) h1,
html:not([data-theme]):not(.theme-dark):not(.theme-animation) h2,
html:not([data-theme]):not(.theme-dark):not(.theme-animation) h3,
html:not([data-theme]):not(.theme-dark):not(.theme-animation) h4,
html:not([data-theme]):not(.theme-dark):not(.theme-animation) h5,
html:not([data-theme]):not(.theme-dark):not(.theme-animation) h6,
[data-theme='default'] h1,
[data-theme='default'] h2,
[data-theme='default'] h3,
[data-theme='default'] h4,
[data-theme='default'] h5,
[data-theme='default'] h6,
[data-theme='light'] h1,
[data-theme='light'] h2,
[data-theme='light'] h3,
[data-theme='light'] h4,
[data-theme='light'] h5,
[data-theme='light'] h6 {
  color: var(--text-color);
  font-weight: 700; /* 增加字体粗细以增强视觉层次 */
  margin-bottom: 1rem; /* 增加底部间距 */
  line-height: 1.4; /* 改善行高 */
  transition: color 0.3s ease, text-shadow 0.3s ease;
  letter-spacing: 0.5px; /* 增加字母间距以提高可读性 */
}

/* 深色主题下的链接样式 */
[data-theme='dark'] a {
  color: var(--link-color);
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

[data-theme='dark'] a:hover {
  color: var(--link-hover-color);
  text-decoration: none;
  transform: translateY(-1px);
}

[data-theme='dark'] a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--link-hover-color);
  border-radius: 1px;
}

/* 深色主题下的标题样式 - 增强视觉层次感 */
[data-theme='dark'] h1, 
[data-theme='dark'] h2, 
[data-theme='dark'] h3, 
[data-theme='dark'] h4, 
[data-theme='dark'] h5, 
[data-theme='dark'] h6 {
  color: var(--text-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* 增强阴影以提高可读性 */
  font-weight: 700; /* 增加字体粗细 */
  transition: color 0.3s ease, text-shadow 0.3s ease;
  letter-spacing: 0.5px; /* 增加字母间距 */
}

/* 优化移动端导航栏汉堡菜单按钮 */
[data-theme='animation'] .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45); /* 增强边框可见性 */
  background-color: rgba(255, 255, 255, 0.2); /* 增加不透明度以提高可读性 */
  backdrop-filter: none; /* 移除模糊效果 */
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme='animation'] .navbar-toggler:hover {
  background-color: rgba(99, 173, 255, 0.35);
  transform: scale(1.05);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

[data-theme='animation'] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75));
}

/* 表格样式 */
.table {
  color: var(--text-color);
  background-color: var(--card-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 8px;
  overflow: hidden;
}

.table th,
.table td {
  border-color: var(--border-color);
  transition: border-color 0.3s ease;
  padding: 1rem;
}

.table th {
  background-color: var(--bg-secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.table-hover tbody tr:hover {
  color: var(--text-color);
  background-color: var(--bg-secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* 分页样式 */
.page-link {
  background-color: var(--card-bg);
  color: var(--text-color);
  border-color: var(--border-color);
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 0.5rem 0.875rem;
  margin: 0 0.25rem;
  font-weight: 500;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.page-link:hover {
  background-color: var(--primary-color);
  color: var(--btn-text);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--btn-text);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

/* 面包屑导航 */
.breadcrumb {
  background-color: var(--bg-secondary-color);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.breadcrumb-item {
  font-weight: 500;
}

.breadcrumb-item a {
  color: var(--link-color);
  transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--link-hover-color);
  text-decoration: none;
  transform: translateY(-1px);
}

.breadcrumb-item.active {
  color: var(--text-secondary-color);
  font-weight: 600;
}

/* 徽章样式 */
.badge {
  color: var(--btn-text);
  font-weight: 600;
  padding: 0.5em 0.75em;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 下拉菜单 */
.dropdown-menu {
  background-color: var(--dropdown-bg);
  border-color: var(--dropdown-border);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  border: none;
}

.dropdown-item {
  color: var(--text-color);
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin: 0.125rem 0;
}

.dropdown-item:hover {
  background-color: var(--dropdown-item-hover-bg);
  color: var(--text-color);
  transform: translateX(5px);
}

.dropdown-item.active, .dropdown-item:active {
  background-color: var(--primary-color);
  color: var(--btn-text);
}

/* 模态框 */
.modal-content {
  background-color: var(--modal-bg);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.modal-header,
.modal-footer {
  border-color: var(--modal-header-border);
  transition: border-color 0.3s ease;
  padding: 1.25rem;
}

.modal-header {
  background-color: var(--bg-secondary-color);
  font-weight: 600;
}

.modal-body {
  padding: 1.5rem;
  line-height: 1.7;
}

.modal-footer {
  background-color: var(--bg-tertiary-color);
}

[data-theme='animation'] .modal-content {
  background-color: var(--modal-bg);
  backdrop-filter: none; /* 移除模糊效果 */
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.7);
  border-radius: 15px;
}

[data-theme='animation'] .modal-header,
[data-theme='animation'] .modal-footer {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
}

[data-theme='animation'] .modal-header {
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

[data-theme='animation'] .modal-body {
  padding: 2rem;
  line-height: 1.7;
}

[data-theme='animation'] .modal-footer {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 产品卡片基础样式 */
.product-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  border: none;
}

/* 深色主题下的产品卡片 */
[data-theme='dark'] .product-card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

/* 动画主题下的产品卡片 */
[data-theme='animation'] .product-card {
  background-color: transparent; /* 取消半透明背景效果 */
  border: none; /* 移除半透明白色边框 */
}

.product-name a {
  transition: color 0.3s ease;
}

.product-name a:hover {
  color: var(--link-hover-color);
}

/* 特色方案区域 */
.featured-solutions {
  background-color: transparent; /* 改为透明背景以显示动画背景 */
  transition: background-color 0.3s ease;
}

/* 深色主题下的特色方案区域 */
[data-theme='dark'] .featured-solutions {
  background-color: transparent; /* 改为透明背景以显示动画背景 */
}

/* 动画主题下的特色方案区域 */
[data-theme='animation'] .featured-solutions {
  background-color: transparent; /* 透明背景以显示动画背景 */
}

/* 特色产品区域 */
.featured-products {
  background-color: transparent; /* 改为透明背景以显示动画背景 */
  transition: background-color 0.3s ease;
}

/* 深色主题下的特色产品区域 */
[data-theme='dark'] .featured-products {
  background-color: transparent; /* 改为透明背景以显示动画背景 */
}

/* 动画主题下的特色产品区域 */
[data-theme='animation'] .featured-products {
  background-color: transparent; /* 透明背景以显示动画背景 */
}

/* 特色方案卡片 - 确保只在默认主题激活时使用默认样式 */
html:not([data-theme]):not(.theme-dark):not(.theme-animation) .solution-card,
[data-theme='default'] .solution-card,
[data-theme='light'] .solution-card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: none;
}

/* 深色主题下的特色方案卡片 */
[data-theme='dark'] .solution-card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

/* 动画主题下的特色方案卡片 */
[data-theme='animation'] .solution-card {
  background-color: transparent; /* 取消半透明背景效果 */
  border: none; /* 移除半透明白色边框 */
  backdrop-filter: none; /* 移除模糊效果 */
  border-radius: 12px;
  transition: all 0.3s ease, background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.5);
  padding: 1.25rem;
}

[data-theme='animation'] .solution-card:hover {
  background-color: transparent;
  border: none;
  transform: translateY(-8px);
  box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.6);
}

[data-theme='animation'] .solution-card .card-title {
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.95);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

[data-theme='animation'] .solution-card .card-text {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.solution-title a {
  color: var(--text-color);
  transition: color 0.3s ease;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.solution-title a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* 服务优势卡片 - 确保只在默认主题激活时使用默认样式 */
html:not([data-theme]):not(.theme-dark):not(.theme-animation) .service-card,
[data-theme='default'] .service-card,
[data-theme='light'] .service-card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: none;
}

html:not([data-theme]):not(.theme-dark):not(.theme-animation) .service-card .card-body h5,
[data-theme='default'] .service-card .card-body h5,
[data-theme='light'] .service-card .card-body h5 {
  color: var(--text-color);
  transition: color 0.3s ease;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}

html:not([data-theme]):not(.theme-dark):not(.theme-animation) .service-card .card-body p,
[data-theme='default'] .service-card .card-body p,
[data-theme='light'] .service-card .card-body p {
  color: var(--text-secondary-color);
  transition: color 0.3s ease;
  line-height: 1.7;
  font-size: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* 深色主题下的服务优势卡片 */
[data-theme='dark'] .service-card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

/* 动画主题下的服务优势卡片 */
[data-theme='animation'] .service-card {
  background-color: transparent; /* 取消半透明背景效果 */
  border: none; /* 移除半透明白色边框 */
  backdrop-filter: none; /* 移除模糊效果 */
  border-radius: 12px;
  transition: all 0.3s ease, background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
}

[data-theme='animation'] .service-card:hover {
  background-color: transparent;
  border: none;
  transform: translateY(-8px);
  box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.6);
}

[data-theme='animation'] .service-card .card-body h5 {
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.95);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

[data-theme='animation'] .service-card .card-body p {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 0;
  transition: all 0.3s ease;
}

/* 购物车页面 */
.cart-item {
  border-color: var(--border-color);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.cart-item:hover {
  background-color: var(--bg-secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* 深色主题下的购物车页面 */
[data-theme='dark'] .cart-item {
  border-color: var(--border-color);
  background-color: var(--card-bg);
}

[data-theme='dark'] .cart-item:hover {
  background-color: var(--bg-secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

/* 动画主题下的购物车页面 */
[data-theme='animation'] .cart-item {
  border-color: rgba(255, 255, 255, 0.4); /* 增强边框可见性 */
  background: rgba(255, 255, 255, 0.25); /* 增加不透明度以提高可读性 */
  backdrop-filter: none; /* 移除模糊效果 */
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

[data-theme='animation'] .cart-item:hover {
  background-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
}

/* 响应式优化 - 确保各主题在移动端正确显示 */
@media (max-width: 768px) {
  /* 默认主题下的响应式优化 */
  html:not([data-theme]):not(.theme-dark):not(.theme-animation) .card,
  [data-theme='default'] .card,
  [data-theme='light'] .card {
    background-color: var(--card-bg);
  }
  
  html:not([data-theme]):not(.theme-dark):not(.theme-animation) .footer-custom,
  [data-theme='default'] .footer-custom,
  [data-theme='light'] .footer-custom {
    background-color: var(--footer-bg) !important;
  }
  
  /* 深色主题下的响应式优化 */
  [data-theme='dark'] .card {
    background-color: var(--card-bg);
  }
  
  [data-theme='dark'] .footer-custom {
    background-color: var(--footer-bg) !important;
  }
  
  /* 动画主题下的响应式优化 */
  [data-theme='animation'] .card {
    background-color: transparent;
  }
  
  [data-theme='animation'] .footer-custom {
    background-color: rgba(0, 0, 0, 0.5) !important; /* 移动端更深的背景以提高可读性 */
  }
  
  /* 动画主题下移动端优化 */
  [data-theme='animation'] .navbar {
    background-color: transparent !important; /* 使用透明背景 */
    border-bottom: none; /* 取消边框 */
    backdrop-filter: none; /* 移除模糊效果 */
    -webkit-backdrop-filter: none; /* Safari 兼容 */
  }
  
  [data-theme='animation'] .footer-custom {
    backdrop-filter: none; /* 移除模糊效果 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  [data-theme='animation'] .hero-title {
    font-size: 2rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
  }
  
  [data-theme='animation'] .hero-subtitle {
    font-size: 1.2rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  }
  
  [data-theme='animation'] .product-card {
    border-radius: 10px;
    box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.3);
  }
  
  [data-theme='animation'] .service-card,
  [data-theme='animation'] .solution-card {
    border-radius: 10px;
    box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.3);
    padding: 1rem;
  }
  
  [data-theme='animation'] .btn-primary,
  [data-theme='animation'] .btn-outline-primary {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
  
  [data-theme='animation'] .form-control,
  [data-theme='animation'] .form-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* 小屏幕设备优化 */
@media (max-width: 576px) {
  /* 默认主题下的小屏幕优化 */
  html:not([data-theme]):not(.theme-dark):not(.theme-animation) .hero-title,
  [data-theme='default'] .hero-title,
  [data-theme='light'] .hero-title {
    font-size: 1.75rem;
  }
  
  html:not([data-theme]):not(.theme-dark):not(.theme-animation) .hero-subtitle,
  [data-theme='default'] .hero-subtitle,
  [data-theme='light'] .hero-subtitle {
    font-size: 1rem;
  }
  
  html:not([data-theme]):not(.theme-dark):not(.theme-animation) .product-card,
  html:not([data-theme]):not(.theme-dark):not(.theme-animation) .service-card,
  html:not([data-theme]):not(.theme-dark):not(.theme-animation) .solution-card,
  [data-theme='default'] .product-card,
  [data-theme='default'] .service-card,
  [data-theme='default'] .solution-card,
  [data-theme='light'] .product-card,
  [data-theme='light'] .service-card,
  [data-theme='light'] .solution-card {
    border-radius: 8px;
    padding: 0.8rem;
  }
  
  [data-theme='animation'] .btn-primary,
  [data-theme='animation'] .btn-outline-primary {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
  }
  
  [data-theme='animation'] .form-control,
  [data-theme='animation'] .form-select {
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
  }
}

/* 大屏幕设备优化 */
@media (min-width: 1200px) {
  /* 默认主题下的大屏幕优化 */
  html:not([data-theme]):not(.theme-dark):not(.theme-animation) .hero-title,
  [data-theme='default'] .hero-title,
  [data-theme='light'] .hero-title {
    font-size: 4rem;
  }
  
  html:not([data-theme]):not(.theme-dark):not(.theme-animation) .hero-subtitle,
  [data-theme='default'] .hero-subtitle,
  [data-theme='light'] .hero-subtitle {
    font-size: 2rem;
  }
  
  [data-theme='default'] .product-card,
  [data-theme='default'] .service-card,
  [data-theme='default'] .solution-card,
  [data-theme='light'] .product-card,
  [data-theme='light'] .service-card,
  [data-theme='light'] .solution-card {
    box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.15);
  }
  
  [data-theme='default'] .btn-primary,
  [data-theme='default'] .btn-outline-primary,
  [data-theme='light'] .btn-primary,
  [data-theme='light'] .btn-outline-primary {
    padding: 0.6rem 1.5rem;
    font-size: 1.1rem;
  }
  
  /* 深色主题下的大屏幕优化 */
  [data-theme='dark'] .hero-title {
    font-size: 4rem;
  }
  
  [data-theme='dark'] .hero-subtitle {
    font-size: 2rem;
  }
  
  [data-theme='dark'] .product-card,
  [data-theme='dark'] .service-card,
  [data-theme='dark'] .solution-card {
    box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.3);
  }
  
  [data-theme='dark'] .btn-primary,
  [data-theme='dark'] .btn-outline-primary {
    padding: 0.6rem 1.5rem;
    font-size: 1.1rem;
  }
  
  /* 动画主题下的大屏幕优化 */
  [data-theme='animation'] .hero-title {
    font-size: 4rem;
    text-shadow: 0 7px 20px rgba(0, 0, 0, 0.95);
  }
  
  [data-theme='animation'] .hero-subtitle {
    font-size: 2rem;
    text-shadow: 0 5px 12px rgba(0, 0, 0, 0.9);
  }
  
  [data-theme='animation'] .product-card,
  [data-theme='animation'] .service-card,
  [data-theme='animation'] .solution-card {
    box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.45);
  }
  
  [data-theme='animation'] .btn-primary,
  [data-theme='animation'] .btn-outline-primary {
    padding: 0.6rem 1.5rem;
    font-size: 1.1rem;
  }
}