@charset "UTF-8";
.cm-navbar {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  background: linear-gradient(135deg, rgba(196, 190, 216, 0.85) 0%, rgba(250, 250, 250, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}


.cm-navbar .navbar-nav .nav-link {
  font-size: 15px;
  font-weight: 500;
  padding: 0.5rem 1.0rem;
  color: var(--text-secondary) !important;
  border-radius: 12px;
  transition: all var(--transition-fast);
  position: relative;
  display: inline-block;
  background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cm-navbar .navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
  border-radius: 12px 12px 0 0;
}

.cm-navbar .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
  border-radius: 2px;
}

.cm-navbar .navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(99, 102, 241, 0.2),
    0 4px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cm-navbar .navbar-nav .nav-link:hover::after {
  width: 60%;
}

.cm-navbar .navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: linear-gradient(145deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 
    0 4px 8px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.cm-navbar .navbar-nav .nav-link.active::after {
  width: 80%;
}

.cm-navbar .navbar-nav .nav-link:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav-scroll {
  max-width: 100%;
  height: 2.5rem;
  /*margin-top: .25rem;*/
  overflow: hidden;
}

.navbar-nav-scroll .navbar-nav {
  /*padding-bottom: 2rem;*/
  overflow-x: auto;
  white-space: nowrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  -webkit-overflow-scrolling: touch;
}

.cm-hidden {
  display: none !important;
}

.cm-pointer {
  cursor: pointer;
}

.cm-ff-yh {
  font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", serif;
}

.cm-block-head-bottom {
  border-bottom: solid 2px;
  border-color: var(--bs-primary, #0d6efd);
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* 备案号浅蓝色样式 */
.text-beian {
  color: #4dabf7 !important; /* 柔和的浅蓝色 */
  transition: color 0.2s ease-in-out;
}

.text-beian:hover {
  color: #339af0 !important; /* 鼠标悬停时稍深的蓝色 */
  text-decoration: underline !important;
}

.cm-trans-bottom {
  width: 100%;
  bottom: 0;
  position: absolute;
  background-color: rgba(var(--bs-dark-rgb, 0, 0, 0), 0.5);
}

.cm-media-img, .cm-d-flex-img {
  max-width: 180px;
  max-height: 120px;
  object-fit: cover;
  border-radius: var(--bs-border-radius);
}

@media screen and (max-width: 767.98px) {
  .cm-media-img, .cm-d-flex-img {
    max-width: 120px;
    max-height: 80px;
  }
}
.cm-video-card {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: var(--bs-border-radius);
  padding: 6px;
  background-color: var(--bs-body-bg, #fff);
}

.cm-video-card .card-img-top {
  border-radius: calc(var(--bs-border-radius) - 4px);
}

.cm-link {
  color: var(--bs-body-color, #212529);
  text-decoration: none;
}
.cm-link:hover {
  color: var(--bs-primary, #0d6efd);
}

a,
a:hover,
a:focus {
  text-decoration: none;
}

.btn-link,
.btn-link:hover,
.btn-link:focus {
  text-decoration: none;
}

.es-highlight em {
  color: var(--bs-danger, #dc3545);
  font-style: normal;
  font-weight: bold;
}

/* ===== 全局优化样式 ===== */
/* 页面背景渐变 */
body {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

/* 卡片通用阴影效果 */
.card {
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-radius: 12px;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* 轮播图优化 */
.carousel-inner {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.carousel-item img {
  transition: transform 0.6s ease;
}

.carousel-item.active img {
  transform: scale(1.02);
}

/* 标题区域优化 */
.h4, h5 {
  position: relative;
  padding-left: 12px;
  margin-bottom: 1rem;
}

.h4::before, h5::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--bs-primary, #0d6efd), var(--bs-info, #0dcaf0));
  border-radius: 2px;
}

/* 文章列表项优化 */
#articleList li {
  background: white;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

#articleList li:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
  border-left-color: var(--bs-primary, #0d6efd);
}

/* 右侧边栏优化 */
#articleList .badge {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 视频卡片优化 */
.cm-video-card {
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.cm-video-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.cm-video-card .card-img-top {
  transition: transform 0.4s ease;
}

.cm-video-card:hover .card-img-top {
  transform: scale(1.05);
}

/* 面包屑导航优化 */
.breadcrumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  padding: 12px 20px;
  box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.breadcrumb-item a:hover {
  color: white;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: white;
}

/* 按钮优化 */
.btn {
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* 加载更多按钮 */
#appendArticlesButton {
  border-radius: 25px;
  padding: 10px 40px;
  font-weight: 500;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

#appendArticlesButton:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

#appendArticlesButton:disabled {
  background: #6c757d;
  box-shadow: none;
  transform: none;
}

/* 文章详情优化 */
.article-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  line-height: 1.8;
}

.article-content img {
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.article-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 页脚优化 */
.bg-gray-600 {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
  color: #e2e8f0;
}

.bg-gray-600 a {
  transition: all 0.2s ease;
}

.bg-gray-600 a:hover {
  color: #667eea;
}

/* 阴影效果增强 */
.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* 文章列表描述文字 */
.text-muted {
  color: #6c757d !important;
}

/* 标签优化 */
.badge {
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 表单元素优化 */
.form-control {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 10px 16px;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 分割线优化 */
.border-bottom {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* 响应式优化 */
@media screen and (max-width: 767.98px) {
  .card {
    border-radius: 8px;
  }
  
  .article-content {
    padding: 20px;
  }
}

/* 悬停阴影效果 */
.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

/* 渐入动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 轮播图标题渐变背景 */
.carousel-caption {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  border-radius: 8px;
  padding: 15px 20px;
}

/* 文章列表时间图标 */
.fa-clock, .fa-eye {
  transition: all 0.2s ease;
}

.hover-shadow:hover .fa-clock,
.hover-shadow:hover .fa-eye {
  transform: scale(1.1);
  color: var(--bs-primary, #0d6efd);
}

/* 右侧边栏模块间距 */
.col-sm-4 .bg-white {
  animation: fadeInUp 0.5s ease-out;
}

/* 标签云效果 */
.btn-sm {
  transition: all 0.2s ease;
}

.btn-sm:hover {
  transform: scale(1.05);
}

/* 投票选项动画 */
.form-check-input {
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: var(--bs-primary, #0d6efd);
  border-color: var(--bs-primary, #0d6efd);
}

/* 图片画廊效果 */
.gallery-img {
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #764ba2, #667eea);
}
