/* style.css - 网站统一样式 */

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* 顶部导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 30px; /* 缩小logo高度 */
}

.nav-links {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.nav-links a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: #007BFF;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007BFF;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    align-items: center;
}

.lang-switch a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 4px;
}

.lang-switch a:hover {
    color: #007BFF;
    background-color: rgba(0, 123, 255, 0.1);
}

/* 首页横幅 */
.hero {
    background-image: url('/static/bj.png');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: black;
}

.hero-content h1, .hero-content p {
    color: #fee29c;
    background: none;
    text-shadow: none;
    box-shadow: none;
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    color: white;
}

/* 要闻区 */
.highlights {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 1000px;
}

.highlights h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.highlights h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #007BFF;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 15px;
    font-size: 18px;
    padding: 12px 20px;
    /* background: white; */
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: left;
    max-width: 600px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    list-style: none;
}

ul li::before {
    content: '';
    color: #007BFF;
    font-weight: bold;
    font-size: 24px;
    margin-right: 15px;
    list-style: none;
    
}

    /* Slideshow容器 */
    .slideshow-container {
      position: relative;
      width:  100%;
      height:  300px;
      overflow: hidden;
    }

/* Hide the images by default */
.mySlides {
  display: none;
  position: absolute;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.8);
  z-index: 3;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a grey background color */
.prev:hover, .next:hover {
  background-color: rgba(255,255,255,0.8);
  color: black;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

/* .active, .dot:hover {
  background-color: #717171;
} */

@keyframes fade {
  from { opacity: .4 }
  to { opacity: 1 }
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
    }

    .nav-links {
        margin: 15px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        margin: 5px 10px;
        font-size: 14px;
    }

    .hero {
        height: 400px;
    }

    .highlights {
        padding: 30px 20px;
        margin: 30px 15px;
    }
}

.body-bg {
    position: fixed;
    left: 0; top: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-size: cover;
    background-position: center;
    transition: background-image 1s;
}
.body-bg-mask {
    position: fixed;
    left: 0; top: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0,32,64,0.15) 0%, rgba(0,32,64,0.28) 100%);
    pointer-events: none;
}

.bg-switch-bar {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 16px;
}
.bg-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0,32,64,0.2);
    border: 2px solid #003366;
    cursor: pointer;
    transition: background 0.3s, border 0.3s, transform 0.2s;
}
.bg-dot.active,
.bg-dot:hover {
    background: #003366;
    border-color: #007BFF;
    transform: scale(1.2);
}

.bg-switch-btn {
    position: fixed;
    bottom: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,32,64,0.5);
    color: #fff;
    border: 2px solid #003366;
    font-size: 24px;
    z-index: 11;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border 0.3s, transform 0.2s;
}
.bg-switch-btn:hover {
    background: #003366;
    border-color: #007BFF;
    transform: scale(1.15);
}
.bg-switch-prev {
    left: 24px;
}
.bg-switch-next {
    right: 24px;
}
@media (max-width: 600px) {
    .bg-switch-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
        bottom: 16px;
    }
    .bg-switch-prev { left: 8px; }
    .bg-switch-next { right: 8px; }
}
