:root {
  --primary-blue: #054696;
  --light-blue: #e9f4ff;
  --title-gray: #333;
}
.news-container {
  margin: 30px auto;
}

.section-header {
  text-align: left;
  margin-bottom: 15px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}

.blue-line {
  height: 3px;
  background-color: var(--primary-blue);
  width: 100%;
  margin: 0 auto;
  border-radius: 3px;
}

.main-announcement {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.main-title, .main-title a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--title-gray);
  margin-bottom: 30px;
  position: relative;
}

.main-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: 2px;
}

.main-desc {
  font-size: 1rem;
  color: var(--title-gray);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.sub-announcement {
  background-color: white;
  border-radius: 8px;
  padding: 20px 25px;
  transition: all 0.3s ease;
  height: 100%;
}

.sub-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--title-gray);
  margin-bottom: 12px;
  padding-left: 15px;
  position: relative;
  text-align: left;
}

.sub-title a {
  color: var(--title-gray);
}

.sub-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--primary-blue);
  border-radius: 2px;
}

.sub-desc {
  font-size: 1rem;
  color: var(--title-gray);
  line-height: 1.5;
  text-align: left;
  margin-bottom: 0;
}

.section-title i {
  color: var(--primary-blue);
  margin-right: 10px;
}

.news-container .more {
    text-align: right;
}

.news-container .more a {
    font-size: 1rem;
    color: var(--primary-blue);
}

/* Banner轮播区域样式 */
.custom-banner-container {
  width: 100%;
  position: relative;
}

.custom-banner-swiper {
  width: 100%;
  height: 420px;
  margin: 30px 0;
}

.banner-slide {
  background-size: cover;
  background-position: center;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

/* 内容区域 - 居右布局 */
.banner-content {
  position: relative;
  z-index: 10;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: flex-end;
}

.content-wrapper {
  width: 50%;
  padding: 30px 30px 0 0;
  position: relative;
}

/* 上部：导航按钮区域 */
.nav-buttons {
  display: flex;
  justify-content: space-around;
  position: absolute;
  right: 5rem;
  top: 0.5rem;
  width: 6.5rem;
  z-index: 20;
}

.nav-btn {
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: var(--primary-blue);
  border: none;
  padding: 13px 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  border: none;
  background-color: var(--primary-blue);
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-btn:active {
  border: none;
}

.nav-btn i {
  margin: 0 8px;
  font-size: 18px;
}

/* 中间：标题和简介区域 */
.text-content {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  position: relative;
  padding: 0 30px;
  padding-top: 40px;
  height: 250px;
  z-index: 10;
}

.banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  text-align: left;
  line-height: 1.3;
}

.title-line {
  height: 1px;
  background-color: var(--primary-blue);
  margin-bottom: 20px;
}

.banner-desc {
  font-size: 1rem;
  color: var(--title-gray);
  line-height: 1.6;
  text-align: left;
  margin-bottom: 0;
}

/* 下部：查看详情按钮区域 */
.detail-btn-container {
  text-align: center;
  position: absolute;
  z-index: 20;
  left: 4rem;
  bottom: 1.7rem;
}

.detail-btn {
  display: inline-block;
  background-color: var(--primary-blue);
  color: white;
  padding: 10px 25px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.detail-btn:hover {
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: var(--primary-blue);
  text-decoration: none;
}

.detail-btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.detail-btn:hover i {
  transform: translateX(4px);
}

.detail-btn-container {
  margin-bottom: -20px;
}

/* Swiper默认分页器样式调整 */
.custom-banner-container .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.custom-banner-container .swiper-pagination-bullet-active {
  background-color: var(--primary-blue);
}

/* 无按钮图片轮播版块样式 */
.simple-image-banner-section {
  margin: 30px 0 0 0;
  padding: 0 15px;
}

.simple-slider-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 30px 0;
}

.simple-slider {
  width: 100%;
  height: 400px;
}

.simple-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.simple-slide:hover {
  transform: translateY(-5px);
}

.simple-image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.simple-image-link:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.simple-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.simple-image-link:hover .simple-slide-image {
  transform: scale(1.05);
}

/* 自定义分页器样式 - 没有导航按钮 */
.simple-slider-container .swiper-pagination {
  bottom: 20px;
}

.simple-slider-container .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 1;
  border: 1px solid transparent;
}

.simple-slider-container .swiper-pagination-bullet-active {
  background-color: var(--primary-blue);
  border-color: white;
  border-width: 1px;
}

/* 悬停在分页器上时改变颜色 */
.simple-slider-container .swiper-pagination-bullet:hover {
  background-color: var(--primary-blue);
}

.simple-image-banner-header {
  animation: fadeInUp 0.6s ease forwards;
}

/* 渐变背景内容版块样式 */
.gradient-banner-section {
  position: relative;
  width: 100%;
  margin: 30px 0 30px 0;
  overflow: hidden;
}

.gradient-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/template/default/images/b6.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* 白色到透明渐变遮罩 */
.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.95) 30%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 100%
  );
  z-index: 2;
}

.gradient-banner-content {
  position: relative;
  z-index: 3;
  padding: 50px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.gradient-content-wrapper {
  max-width: 45%;
  padding: 40px 0 40px 5%;
}

/* 标题行样式 */
.gradient-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.gradient-main-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1.2;
  flex: 1;
  min-width: 200px;
}

.gradient-view-link {
  font-size: 1rem;
  color: var(--primary-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(184, 184, 184, 0.2);
}

.gradient-view-link:hover {
  color: #007bff;
  text-decoration: none;
  background-color: rgba(0, 123, 255, 0.05);
  border-color: rgba(0, 123, 255, 0.4);
}

.gradient-view-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.gradient-view-link:hover i {
  transform: translateX(4px);
}

/* 简介样式 */
.gradient-description {
  font-size: 1rem;
  color: var(--title-gray);
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: left;
}

/* 动画效果 */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.gradient-content-wrapper {
  animation: fadeInLeft 0.8s ease forwards;
}

/* 留言表单区域样式 */
.message-section {
  margin: 30px auto;
  padding: 0 15px;
}

.message-form-wrapper {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
}

.message-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.message-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-blue);
  margin: 15px auto 0;
  border-radius: 2px;
}

.message-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  gap: 20px;
}

.form-group {
  flex: 1;
  min-width: 250px;
}

.form-group-full {
  flex: 1;
  min-width: 100%;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  color: var(--title-gray);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-label .required {
  color: #e74c3c;
  margin-left: 3px;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  color: var(--title-gray);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(5, 70, 150, 0.1);
}

.form-input::placeholder {
  color: #aaa;
}

.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  color: var(--title-gray);
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(5, 70, 150, 0.1);
}

.form-textarea::placeholder {
  color: #aaa;
}

.form-submit {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 25px auto 0;
  padding: 14px 30px;
  background-color: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background-color: #043566;
  box-shadow: 0 4px 12px rgba(5, 70, 150, 0.3);
}

.form-submit:active {
  transform: translateY(1px);
}

.form-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.form-message {
  text-align: center;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-group {
    min-width: 100%;
  }
  
  .message-form-wrapper {
    padding: 20px 15px;
  }
}
