/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 1.5rem;
    color: #333;
}

.login-btn a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.login-btn a:hover {
    background-color: #333;
    color: #fff;
}

/* 主要内容区域 */
main {
    margin-top: 80px;
    padding: 1rem;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 月份标题 */
.month-section {
    margin-bottom: 2rem;
}

.month-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #666;
}

/* 照片行 */
.photo-row {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.photo-row::-webkit-scrollbar {
    height: 8px;
}

.photo-row::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.photo-row::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

/* 照片项 */
.photo-item {
    flex: 0 0 auto;
    width: 300px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.photo-info {
    padding: 1rem;
}

.photo-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.photo-desc {
    font-size: 0.9rem;
    color: #333;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .photo-item {
        width: 250px;
    }

    .photo-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .photo-item {
        width: 200px;
    }

    .photo-item img {
        height: 120px;
    }
} 