/* 全局基础 */
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; color: #1a1a1a; background-color: #ffffff; }
a { text-decoration: none; color: inherit; }

/* 头部样式 */
header { padding: 80px 20px 40px; text-align: center; }
.header-container h1 { font-size: 2rem; font-weight: 800; margin: 0; letter-spacing: -1px; }
.header-container p { color: #888; margin: 10px 0 20px; font-size: 0.9rem; }
nav a { margin: 0 10px; font-size: 0.85rem; color: #444; text-transform: uppercase; letter-spacing: 1px; }

/* 全局容器居中 */
.container {
    max-width: 1200px;      /* 限制 PC 端最大宽度 */
    margin: 0 auto;         /* 核心：水平居中 */
    padding: 40px 20px;     /* 上下留白，增加呼吸感 */
}

/* 日期标题居中 */
.date-header {
    text-align: center;     /* 标题居中 */
    font-size: 1.2rem;
    color: #86868b;
    margin: 40px 0 20px;
    font-weight: 500;
    position: relative;
}

/* 可选：给日期标题增加装饰线 */
.date-header::before, .date-header::after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 1px;
    background: #e5e5e5;
    vertical-align: middle;
    margin: 0 15px;
}

/* 照片网格优化 */
.photo-grid {
    display: grid;
    /* 在 PC 端使用自适应列，间距加大 */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 30px;              /* 增加图片间的间距 */
    justify-content: center; /* 网格内容居中 */
}

/* 照片项居中与美化 */
.photo-item {
    background: #fff;
    border-radius: 16px;    /* 更圆润的边角 */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-8px); /* 悬停浮起感 */
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.photo-title {
    text-align: center;     /* 标题文字居中 */
    padding: 15px 10px;
    font-size: 16px;
    color: #1d1d1f;
    font-weight: 500;
}

/* 分页导航居中 */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center; /* 分页居中 */
    align-items: center;
    gap: 20px;
}


/* 页脚样式 */
footer { padding: 60px 20px; text-align: center; border-top: 1px solid #f5f5f5; margin-top: 100px; }
footer p { font-size: 0.8rem; color: #aaa; }

/* 响应式适配 */
@media (max-width: 600px) {
    header { padding: 40px 20px; }
    .photo-grid { grid-template-columns: 1fr; gap: 30px; }
    .day-section { margin-bottom: 50px; }
}
/* style.css 补充 */
.image-wrapper {
    background-color: #f5f5f7; /* 图片未加载出时的底色 */
    position: relative;
    aspect-ratio: 4 / 3; /* 保持统一高度，防止页面抖动 */
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保缩略图填充整个区域 */
    display: block;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05); /* 悬停微扩效果 */
}
/* style.css 分页样式 */
.pagination {
    margin: 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.pagination a {
    padding: 10px 20px;
    border: 1px solid #eee;
    border-radius: 30px;
    color: #333;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #f5f5f7;
    border-color: #ddd;
}

.pagination .page-info {
    color: #999;
    letter-spacing: 1px;
}

/* 移动端调整 */
@media (max-width: 600px) {
    .pagination {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }
}

