/* 整体容器样式 */
.village-container {
  padding: 40px 0;
  position: relative;
}

/* 主标题样式 */
.village-main-title {
  color: #8B4513;
  /* 深褐色 */
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  letter-spacing: 2px;
}

.village-subtitle {
  color: #6B4423;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 300;
}

.village-divider {
  width: 60%;
  margin: 30px auto;
  border-top: 2px solid #B9935F;
  position: relative;
}

.village-divider::before,
.village-divider::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #B9935F;
  top: -6px;
  transform: rotate(45deg);
}

.village-divider::before {
  left: -5px;
}

.village-divider::after {
  right: -5px;
}

/* 各部分通用样式 */
.village-section {
  padding: 50px 0;
  border-bottom: 1px solid #E8D5B5;
  position: relative;
}

.village-section:last-child {
  border-bottom: none;
}

/* 传统纹样装饰 */
.village-section::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50,0 L100,50 L50,100 L0,50 Z' fill='rgba(185, 147, 95, 0.05)'/%3E%3C/svg%3E");
  opacity: 0.2;
  z-index: 0;
}

.section-title {
  color: #8B4513;
  font-size: 30px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  font-weight: bold;
}

.section-title:after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #B9935F;
  margin: 15px auto;
}

/* 图片容器样式 */
.village-image-container {
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(139, 69, 19, 0.15);
  border: 1px solid #E8D5B5;
  padding: 10px;
  background: #FFF9F0;
}

.village-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid rgba(185, 147, 95, 0.1);
  z-index: 1;
  pointer-events: none;
}

.village-image {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.village-image:hover {
  transform: scale(1.03);
}

.image-caption {
  background: rgba(139, 69, 19, 0.8);
  color: #fff;
  padding: 10px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  z-index: 2;
}

/* 内容样式 */
.village-content {
  padding: 20px;
  position: relative;
  z-index: 1;
}

.village-content h3 {
  color: #8B4513;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
  border-left: 4px solid #B9935F;
  padding-left: 15px;
}

.village-content p {
  color: #5D4037;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

/* 特色列表样式 */
.village-features {
  background: #FFF9F0;
  padding: 20px;
  border-radius: 4px;
  margin-top: 20px;
  border-left: 4px solid #B9935F;
}

.village-features h4 {
  color: #8B4513;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
}

.village-features ul {
  padding-left: 20px;
  list-style-type: none;
}

.village-features li {
  margin-bottom: 8px;
  color: #6B4423;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}

.village-features li::before {
  content: '•';
  color: #B9935F;
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
}

/* 视频部分样式 */
.village-video-section {
  margin-top: 40px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 比例 */
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(139, 69, 19, 0.15);
  background: #FFF9F0;
  border: 1px solid #E8D5B5;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF9F0;
  color: #8B4513;
  font-size: 18px;
}

/* 文化传承部分样式 */
.heritage-content {
  background: #FFF9F0;
  padding: 30px;
  border-radius: 4px;
  margin-top: 20px;
  position: relative;
  border: 1px solid #E8D5B5;
}

.heritage-content p {
  color: #5D4037;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

.heritage-content p:last-child {
  margin-bottom: 0;
  font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .village-main-title {
    font-size: 28px;
  }

  .village-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .village-content h3 {
    font-size: 20px;
  }

  .village-content p {
    font-size: 14px;
  }

  .village-section {
    padding: 30px 0;
  }

  .village-divider {
    width: 80%;
  }

  .village-features {
    padding: 15px;
  }
}

/* 动画效果 */
.village-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 确保每个部分依次显示 */
#yaoshang {
  animation-delay: 0.2s;
}

#loushang {
  animation-delay: 0.4s;
}

#heritage {
  animation-delay: 0.6s;
}

/* 特殊装饰元素 */
.village-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg width='150' height='150' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M75,0 L150,75 L75,150 L0,75 Z' fill='rgba(185, 147, 95, 0.03)'/%3E%3C/svg%3E");
  opacity: 0.1;
  z-index: 0;
  transform: rotate(15deg);
}

/* 鼠标悬停效果增强 */
.section-title {
  transition: text-shadow 0.3s ease;
}

.section-title:hover {
  text-shadow: 1px 1px 3px rgba(139, 69, 19, 0.3);
}

/* 打印样式优化 */
@media print {
  .village-container {
    padding: 0;
  }

  .village-section {
    page-break-inside: avoid;
    opacity: 1;
    transform: none;
    animation: none;
  }

  .video-container {
    display: none;
  }
}