/* Reset */
body, h1, h2, h3, p, ul {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background: url('/images/bg.webp') no-repeat; /* 浅蓝色背景 */
  color :#656262;
  line-height: 1.6;
}

/* Header */
.site-header {
  background: #3399ff;
  color: #fff;
  padding: 10px 0;
}

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

.logo h1 a {
  color: #fff;
  font-size: 26px;
  text-decoration: none;
}

.nav-menu a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-size: 16px;
}

/* Slider */
.slider {
  overflow: hidden;
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slide-track {
  display: flex;
  width: calc(300%);
  animation: scroll 24s linear infinite;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  33% { transform: translateX(-100%); }
  66% { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

/* Articles List */
.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.article-card {
  background: #7a90c0;
  border: 3px solid #5574a7;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.article-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.article-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.article-card h2 a {
  color: #fff;
  text-decoration: none;
}

/* 文章内容页 */
.content {
  background: url('/images/bg.webp') no-repeat;
  padding: 30px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content p {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.8;
}

.content a {
  color: #f9aa04;
  text-decoration: none;
}

.content h2, .content h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #5b74a7;
}

/* Footer */
.site-footer {
  background: #2a3975;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 14px;
}

.container-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 回到顶部按钮（可选） */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background: #3399ff;
  color: #fff;
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 999;
}

.back-to-top:hover {
  background: #007bff;
}

/* 响应式布局（适配手机） */
@media (max-width: 768px) {
  .site-header {
    padding: 5px 0;
  }
  .logo h1 a {
    font-size: 20px;
  }
  .nav-menu {
    display: none;
  }
  .articles-list {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 20px;
  }
}
/* Swiper容器 */
.swiper {
  width: 100%;
  height: auto;
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 单个slide */
.swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* 左右按钮样式 */
.swiper-button-prev,
.swiper-button-next {
  color: #3399ff;
  background: rgb(57 28 28 / 70%);
  width: 40px;
  height: 40px;
  border-radius: 10%;
  font-size: 20px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #3399ff;
  color: #fff;
}

/* 小圆点pagination */
.swiper-pagination-bullet {
  background: #3399ff;
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  background: #189e74;
}

.slider-container {
  width: 95%;
  max-width: 800px;
  margin: auto;
  padding: 0px;
}

.swiper {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 100%;
}

.site-header {
  background:#5b74a7;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgb(91 116 167);
}

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

.nav-menu a {
  margin-left: 20px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.nav-menu a:hover {
  color: #fff;
}
.nav-menu {
  display: flex;
  gap: 10px;
}

.nav-menu a {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

/* Home按钮 */
.btn-nav {
  background: #ed7e1f;
  color: #fff;
}

.btn-nav:hover {
  background: #ed7e1f;
}

/* Join按钮（高亮） */
.btn-join {
  background: linear-gradient(to right,#fbc103 0,#f79604 15%,#f79604 30%,#fbc103 55%,#fbc103 100%);
  color: #fff;
}

.btn-join:hover {
  background: #005fa3;
}
/* 分页按钮 Pagination */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination a:hover {
    background: #3d9172;
    color: #fff;
}

/* 当前页码高亮 */
.pagination a.active {
    background: #ffc107;
    color: #fff;
}

/* Prev / Next 特别处理 */
.pagination a.prev,
.pagination a.next {
    background: #ddd;
    color: #555;
}

.pagination a.prev:hover,
.pagination a.next:hover {
    background: #0077cc;
    color: #fff;
}


.marquee-container {
            width: auto;
            overflow: hidden;
            border: 1.5px solid #7a90c0;
            background: #5574a7c2;}
.marquee-text {
            display: inline-block;
            white-space: nowrap;
            animation: marquee 10s linear infinite;
            font-size: 20px;
            color: #fff;}
@keyframes marquee {
            0%   { transform: translateX(100%);}
            100% { transform: translateX(-100%);}
}
