body {
    font-family: "Microsoft YaHei", sans-serif;
    margin: 0;
    background: #f8f9fa;
    color: #444;
    line-height: 1.6;
  }
  
  .travel-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 25px;
  }
  
  .travel-header {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .travel-header h1 {
    color: #0078d4;
    font-size: 32px;
    margin-bottom: 10px;
  }
  
  .travel-header p {
    color: #666;
    font-size: 18px;
  }
  
  .travel-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
  }
  
  .travel-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
  }
  
  .travel-card h2 {
    color: #0078d4;
    font-size: 24px;
    margin: 0 0 10px;
  }
  
  .travel-card p {
    color: #666;
    margin: 0;
  }
  
  .site-footer {
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 25px 0;
    font-size: 15px;
    letter-spacing: 0.3px;
    margin-top: 30px;
  }

/* 照片盒子尺寸限制 */
.travel-item {
    position: relative;
    border-radius: 10px;    /* 略微增大圆角 */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);  /* 增强阴影效果 */
    aspect-ratio: 1/1;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 确保图片适应盒子大小 */
.travel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.travel-item:hover img {
    transform: scale(1.05);
}

/* 美化描述文字 */
.travel-item p {
    padding: 10px;
    margin: 0;
    background-color: #f8f8f8;
    text-align: center;
}

/* 优化照片集布局 */
.travel-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1300px;
    width: 90%;
    margin: 0 auto 50px;
}

/* 悬停效果 */
.travel-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
}

/* 旅行页面主要样式 */
.main-content h2 {
    text-align: center;
    width: 100%;
    margin: 50px auto 40px;
    color: #2c3e50;
    font-size: 2.2em;
    position: relative;
    padding-bottom: 15px;
}

/* 添加标题装饰效果 */
.main-content h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: #0078d4;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 调整主内容区域，确保标题居中效果 */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.main-content > p {
    text-align: center;
    margin-bottom: 2em;
    color: #7f8c8d;
    font-size: 1.1em;
}

/* 图片说明文字样式 */
.travel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.travel-item:hover .travel-caption {
    transform: translateY(0);
}

.travel-caption h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
}

.travel-caption p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
    background: transparent;
    padding: 0;
    text-align: left;
}
