/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px 20px 60px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    background-color: #e8eaed;
    color: rgb(0, 0, 0);
    padding: 15px 20px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}


.logo {
    height: 25px;
    width: 25px;
}

.nav-links {
    display: flex;
    gap: 25px;
    margin-right: 50px;
}

.nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.logo-container a {
    text-decoration: none !important;
    color: black !important;
}

.logo-container a:hover {
    text-decoration: none !important;
    opacity: 1 !important;
    color: black !important;
}

.nav-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}
65|footer {
66|    background-color: #2c3e50;
67|    color: white;
68|    text-align: center;
69|    padding: 15px 20px;
70|    width: 100%;
71|    position: fixed;
72|    bottom: 0;
73|    left: 0;
74|    height: 30px;
75|    z-index: 1000;
76|}

main {
    flex: 1;
    overflow-y: auto;
    margin-top: 190px;
    margin-bottom: 40px;
}

/* 搜索容器 */
.search-container {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 0;
    z-index: 999;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#searchInput {
    width: 60%;
    padding: 14px;
    border: 2px solid #3498db;
    border-radius: 25px;
    font-size: 16px;
}

/* 标签云样式 */
.tag-cloud {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 0;
    z-index: 999;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.tag-cloud span {
    display: inline-block;
    margin: 4px;
    padding: 6px 12px;
    background-color: #ecf0f1;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8em;
}

.tag-cloud span:hover {
    background-color: #4ab7ffa0;
    color: rgb(36, 33, 33);
}

/* 图片画廊布局 */
.gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 20px;
    max-width: 100vw;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.image-meta {
    padding: 10px;
    background: white;
}

.image-meta h3 {
    margin: 0 5px 0 0;
    font-size: 14px;
    color: #333;
    display: inline;
}

.image-meta .tags {
    font-size: 12px;
    color: #666;
    display: inline;
}

.download-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.preview-btn, .download-btn {
    width: 48%;
    padding: 5px;
    background: #dde9f6;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.preview-btn:hover {
    background: #bcbef9;
}

.download-btn:hover {
    background: #bcbef9;
}



.gallery img:hover {
    transform: scale(1.05);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.image-info {
    color: white;
    text-align: center;
    padding: 20px;
}

#downloadBtn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
}

/* 页脚样式 */


@media (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px 0;
}

.page-btn {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.page-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.page-info {
    font-size: 14px;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px 0;
}

.page-btn {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.page-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.page-info {
    font-size: 14px;
    color: #7f8c8d;
}