* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #a8d8ea 0%, #c8e6f5 100%);
    min-height: 100vh;
    padding: 20px;
    color: #2c3e50;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #6ecbf5 0%, #89c9f0 100%);
    padding: 30px;
    text-align: center;
    color: white;
    border-bottom: 5px solid #4aa0d5;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.nav {
    display: flex;
    background-color: #4aa0d5;
    padding: 0;
}

.nav a {
    flex: 1;
    text-align: center;
    padding: 15px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav a:hover, .nav a.active {
    background-color: #3a8fc5;
    border-bottom: 3px solid #ffb6c1;
}

.content {
    padding: 30px;
    min-height: 500px;
}

/* 图片列表样式 */
.image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.image-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eaeaea;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.image-item img:hover {
    opacity: 0.9;
}

.image-info {
    padding: 15px;
    font-size: 0.9rem;
    color: #5a6b7c;
}

.image-time {
    font-weight: 600;
    color: #4aa0d5;
    margin-bottom: 5px;
}

/* 上传表单样式 */
.upload-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a6572;
}

.file-input {
    width: 100%;
    padding: 12px;
    border: 2px dashed #a8d8ea;
    border-radius: 10px;
    background-color: #f8fdff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: #6ecbf5;
    background-color: #f0f9ff;
}

.btn {
    background: linear-gradient(135deg, #6ecbf5 0%, #4aa0d5 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 160, 213, 0.3);
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 160, 213, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.no-images {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
    grid-column: 1 / -1;
}

/* 消息样式 */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* 图片预览模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffb6c1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .image-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .image-list {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 20px;
    }
    
    body {
        padding: 10px;
    }
}
