/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
  }
  
  body {
    background-color: #f0f0f0;
    overflow-x: hidden;
  }
  
  /* 头部样式 */
  header {
    background-image: url('https://source.unsplash.com/random/1600x400/?非遗');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  /* 导航栏样式 */
  .nav-bar {
    background-color: #333;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .nav-bar ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav-bar ul li {
    margin: 0 15px;
  }
  
  .nav-bar ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
    padding: 5px 10px;
  }
  
  .nav-bar ul li a:hover {
    color: #ccc;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  
  /* 主要内容区域样式 */
  .main-content {
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #8b5a2b;
  }
  
  .carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
  }
  
  /* 轮播内部容器，包含所有轮播项 */
  .carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
  }
  
  /* 单个轮播项样式 */
  .carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    display: flex;
    flex-direction: column; /* 垂直排列图片和文字 */
  }
  
  /* 图片样式 */
  .carousel-item img {
    width: 1200px;
    height: 500px;
    object-fit: cover; /* 保持图片比例 */
    border-radius: 8px;
    margin-bottom: 15px;
  }
  
  /* 文字内容容器 */
  .carousel-item-content {
    padding: 0 10px;
  }
  
  /* 标题样式 */
  .carousel-item h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
    text-align: center;
  }
  
  /* 段落文本样式 */
  .carousel-item p {
    margin: 8px 0;
    text-align: left;
    line-height: 1.5;
    color: #666;
    font-size: 16px;
  }
  
  /* 导航按钮样式 */
  .carousel-control {
    position: absolute;
    top: 150px; /* 居中位置 */
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    border-radius: 50%;
  }
  
  .carousel-control.prev {
    left: 10px;
  }
  
  .carousel-control.next {
    right: 10px;
  }
  
  .carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
    .carousel-item img {
      height: 200px;
    }
    
    .carousel-control {
      top: 100px;
    }
  }
  
  /* 非遗项目展示样式 */
  .project {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
    gap: 30px;
  }
  
  .project-item {
    width: 300px;
    background-color: white;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }
  
  .project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
  }
  
  .project-item h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
  }
  
  .project-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: left;
  }
  
  /* 活动展览样式 */
  .event-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
  }
  
  .event-item {
    width: 100%;
    max-width: 500px;
    background-color: white;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }
  
  .event-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
  }
  
  .event-item h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
  }
  
  .event-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
  }
  
  /* 联系我们样式 */
  .contact-container {
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .contact-container h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 28px;
    position: relative;
    padding-bottom: 15px;
  }
  
  .contact-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #8b5a2b;
  }
  
  .my-page {
    background-color: white;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.3s ease;
  }
  
  .my-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }
  
  .my-page h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
  }
  
  .my-page p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
  }
  
  .my-page img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid #f0f0f0;
  }
  
  /* 响应式设计 */
  @media (max-width: 768px) {
    header {
      height: 300px;
      font-size: 28px;
    }
  
    .nav-bar ul li {
      margin: 0 10px;
    }
  
    .carousel {
      width: 95%;
    }
  
    .main-content, .contact-container {
      padding: 30px 20px;
    }
  
    .project-item, .event-item {
      width: 100%;
      max-width: 400px;
    }
  }
  
  @media (max-width: 480px) {
    header {
      height: 200px;
      font-size: 24px;
    }
  
    .nav-bar ul {
      flex-direction: column;
      align-items: center;
    }
  
    .nav-bar ul li {
      margin: 5px 0;
    }
  
    .carousel-item {
      padding: 20px 15px;
    }
  
    .carousel-item img {
      height: 200px;
    }
  
    .section-title {
      font-size: 24px;
    }
  }