/* 自定义样式 */

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #3a2e1f 0%, #8b7355 50%, #d4af37 100%);
    background-attachment: fixed;
    color: #333;
    padding-top: 20px;
    padding-bottom: 50px;
    min-height: 100vh;
}

/* 导航栏 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 卡片样式 */
.gallery-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.gallery-card img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.card-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 5px;
    padding: 8px 20px;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-danger {
    border-radius: 5px;
    padding: 8px 20px;
}

/* 图片详情页 */
.image-detail-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.image-detail-img {
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.image-info {
    padding: 20px;
}

.image-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.image-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.image-meta {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.image-meta p {
    margin-bottom: 5px;
    color: #666;
}

/* 评论区域 */
.comments-section {
    margin-top: 40px;
}

.comment-card {
    border-left: 3px solid #007bff;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.comment-author {
    font-weight: bold;
    color: #007bff;
}

.comment-date {
    font-size: 0.85rem;
    color: #999;
}

.comment-content {
    margin-top: 10px;
    color: #333;
}

/* 表单样式 */
.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    background: rgba(255, 255, 255, 0.95);
}

.form-label {
    font-weight: 500;
    color: #555;
}

/* 页脚 */
.footer {
    margin-top: 50px;
    padding: 20px 0;
    background-color: #343a40;
    color: white;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .gallery-card img {
        height: 180px;
    }
    
    .image-title {
        font-size: 1.5rem;
    }
    
    .image-detail-container {
        padding: 15px;
    }
}

/* 管理页面 */
.admin-table {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* 消息提醒 */
.alert {
    border-radius: 8px;
    border: none;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

/* 上传页面卡片 */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 消息提醒 */
.alert {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}