/* 响应式增强样式 */
@charset "utf-8";

/* 基础响应式修复 */
* {
  box-sizing: border-box;
}

/* 图片响应式 */
img {
  max-width: 100%;
  height: auto;
}

/* 表格响应式 */
table {
  width: 100%;
  overflow-x: hidden;
  display: block;
  white-space: nowrap;
}

table tbody {
  width: 100%;
  overflow-x: hidden;
}

@media (min-width: 640px) {
  table {
    display: table;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .nav_box {
    /* background: #f8f9fa; */
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
  }

  .nav_box .nav {
    font-size: 12px;
    height: unset;
  }
}

/* 轮播图响应式 */
/* .slideBox .tempWrap {
  width: 100% !important;
  height: 200px !important;
}

.slideBox .tempWrap .m-carousel-list {
  width: 100% !important;
  height: 200px !important;
}

.slideBox .tempWrap li {
  width: 100% !important;
  height: 200px !important;
}

@media (min-width: 640px) {
  .slideBox .tempWrap {
    height: 220px !important;
  }

  .slideBox .tempWrap li {
    height: 220px !important;
  }
}

@media (min-width: 1024px) {
  .slideBox .tempWrap {
    height: 204px !important;
  }

  .slideBox .tempWrap li {
    height: 204px !important;
  }
} */

/* 内容区域响应式 */
.container {
  max-width: none !important;
  width: 100% !important;
}

.bigbox01 {
  width: 100% !important;
  max-width: 1000px;
  margin: 0 auto;
}

/* 新闻列表响应式 */
.newsbox {
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .newsbox {
    margin-bottom: 0;
  }
}

/* 文章内容响应式 */
.prose {
  line-height: 1.75;
}

.prose img {
  margin: 1.5rem auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.prose table {
  display: table;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose table th,
.prose table td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.prose table th {
  background-color: #f9fafb;
  font-weight: 600;
}

/* 移动端优化 */
@media (max-width: 640px) {
  .prose {
    font-size: 14px;
  }

  .prose h1 {
    font-size: 1.5rem;
  }

  .prose h2 {
    font-size: 1.25rem;
  }

  .prose h3 {
    font-size: 1.125rem;
  }

  .prose table {
    font-size: 12px;
  }

  .prose table th,
  .prose table td {
    padding: 0.5rem;
  }
}

/* 按钮响应式 */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  z-index: 1000;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.scroll-top:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .scroll-top {
    bottom: 2rem;
    right: 2rem;
  }
}

/* 页脚响应式 */
.footcontainer {
  padding: 2rem 0;
}

#copyright p {
  margin: 0;
  line-height: 1.5;
}

#copyright a {
  color: #93c5fd;
}

#copyright a:hover {
  color: #dbeafe;
}

/* 轮播图指示器优化 */
.c-carousel-dot span {
  transition: all 0.3s ease;
}

.c-carousel-dot span:hover {
  background-color: #6b7280 !important;
}

.c-carousel-dot span.active {
  background-color: #3b82f6 !important;
}

/* 侧边栏移动端优化 */
@media (max-width: 1024px) {
  .sidebar-container {
    order: -1;
    margin-bottom: 1.5rem;
  }
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
