/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f4f4f9;
}

/* 头部和导航栏 */
header {
    background-color: #2C3E50;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}
header h1 {
    margin: 0;
    font-size: 2em;
}
nav {
    margin-top: 10px;
}
nav a {
    color: #ecf0f1;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
}
nav a:hover {
    color: #1ABC9C;
}

/* 页面内容 */
.content {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* 区块样式 */
.section {
    margin: 40px 0;
}
h2 {
    color: #34495E;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid #1ABC9C;
    display: inline-block;
    padding-bottom: 5px;
}

/* 照片集样式 */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 使用网格布局，自适应排列照片 */
    gap: 15px; /* 照片之间的间距 */
}

/* 照片容器样式 */
.photo-container {
    border-radius: 10px; /* 圆角效果 */
    overflow: hidden; /* 隐藏超出容器的内容，确保圆角效果 */
    background: #fff; /* 背景为白色 */
    padding: 10px; /* 内边距，使内容不直接贴在边缘 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 轻微的阴影，使卡片有浮起的效果 */
    text-align: center; /* 内容居中 */
    max-width: 100%; /* 保证容器宽度不超过页面宽度 */
    transition: transform 0.3s, box-shadow 0.3s; /* 添加过渡效果，使动画平滑 */
}

/* 照片容器悬停时的动画效果 */
.photo-container:hover {
    transform: scale(1.05); /* 放大卡片 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* 增加阴影，使放大的效果更明显 */
}

/* 照片样式 */
.photo-container img {
    width: 100%; /* 图片宽度占满容器 */
    height: 200px; /* 固定高度，确保所有图片高度一致 */
    object-fit: cover; /* 保持图片填充容器，避免拉伸或变形 */
    border-radius: 10px; /* 图片边角为圆角 */
    transition: transform 0.3s, box-shadow 0.3s; /* 添加过渡效果，使悬停动画平滑 */
}

/* 照片悬停时的动画效果 */
.photo-container img:hover {
    transform: scale(1.05); /* 放大图片 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* 增加阴影，使放大的效果更明显 */
}

/* 照片标题样式 */
.photo-container p {
    margin: 10px 0 0; /* 距离图片的上边距 */
    font-size: 0.9em; /* 调整字体大小 */
    color: #666; /* 文本颜色 */
}


/* 视频展示样式 */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 根据屏幕宽度自适应排列 */
    gap: 15px;
}
.video-container {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 100%; /* 保持容器宽度不超过页面宽度 */
}
.video-container video {
    width: 100%;       /* 设为100%以占满容器宽度 */
    height: 200px;     /* 固定高度为200px，确保大小一致 */
    object-fit: cover; /* 保持视频内容的完整性并填充容器 */
    border-radius: 10px;
}
.video-container p {
    margin: 10px 0 0;
    font-size: 0.9em;
    color: #666;
}

/* 联系方式样式 */
#contact p {
    margin: 5px 0;
    font-size: 1em;
    color: #666;
}

/* 页脚 */
footer {
    background-color: #2C3E50;
    color: #ecf0f1;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9em;
}
