.img-max-width {
    max-width: 1200px;
    width: 100%;
}

/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

nav {
    overflow-x: auto;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

/* 图片网格布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
}

.image-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.image-info {
    padding: 15px;
}

.image-info h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.image-info p {
    margin: 10px 0 0;
    font-size: 14px;
    color: #666;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    padding: 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.pagination a:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
}

.pagination .current {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.pagination .prev,
.pagination .next {
    min-width: 80px;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.pagination .prev:hover,
.pagination .next:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
}

.pagination .ellipsis {
    padding: 8px 12px;
    color: #999;
    background-color: transparent;
    border: none;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
.image-grid {
    column-count: 2;
    column-gap: 5px;
    padding: 0;
    width: 100%;
}

.image-item {
    break-inside: avoid;
    width: 100%;
    margin-bottom: 5px;
    display: inline-block;
}

.image-item {
    width: 100%;
    border-radius: 0;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
}

.image-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px 8px 0 0;
}

.image-detail img,
.other-images img {
    width: 100%;
    height: auto;
    max-width: 1200px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .image-detail img,
    .other-images img {
        max-width: 100%;
    }
}

.image-info {
    padding: 10px;
    background: #fff;
}

.image-info h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.image-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}
}
