/* 全局样式 */
body {
    padding-bottom: 2rem;
    background-color: #292a2d;
    color: #e8eaed;
    padding: 0 0 0 0;
}

/* 左侧区域样式 */
.col-md-2 {
    padding-left: calc(0.75rem + 20px);
}

/* 主题色渐变按钮 */
.btn-primary {
    background-image: linear-gradient(to right, #65a6bc, #87cfde);
    border: none;
}

.btn-primary:hover {
    background-image: linear-gradient(to right, #5a95a9, #7bbfd0);
}

.btn-primary:active {
    background-image: linear-gradient(to right, #4f8496, #6db0c1);
}

/* 删除按钮淡色渐变 */
.btn-danger {
    background-image: linear-gradient(to right, #dc3545, #e57373);
    border: none;
}

.btn-danger:hover {
    background-image: linear-gradient(to right, #c82333, #d35f5f);
}

.btn-danger:active {
    background-image: linear-gradient(to right, #bd2130, #c75555);
}

/* 更新资源按钮淡绿色渐变 */
.btn-success {
    background-image: linear-gradient(to right, #28a745, #75d995);
    border: none;
    color: #fff;
}

.btn-success:hover {
    background-image: linear-gradient(to right, #218838, #66c785);
}

.btn-success:active {
    background-image: linear-gradient(to right, #1e7e34, #5ab778);
}

/* 清理缓存按钮淡黄色渐变 */
.btn-warning {
    background-image: linear-gradient(to right, #ffc107, #ffdb7e);
    border: none;
    color: #212529;
}

.btn-warning:hover {
    background-image: linear-gradient(to right, #e0a800, #ebc86a);
}

.btn-warning:active {
    background-image: linear-gradient(to right, #d39e00, #d6b75b);
}

/* 右上角操作按钮透明度 */
header .btn {
    opacity: 0.9;
    transition: opacity 0.3s;
}



/* 卡片和容器样式 */
.card {
    background-color: #35363a;
    border-color: #444;
}

.card-header {
    background-color: #3c3d42;
    border-color: #444;
}

.list-group-item {
    background-color: #35363a;
    border-color: #444;
    color: #e8eaed;
}

.list-group-item:hover {
    background-color: #3c3d42;
}

.list-group-item.active {
    background-image: none;
    background-color: #35363a;
    border-color: #444;
    color: #e8eaed;
    position: relative;
}

/* 目录选中状态左侧竖条 */
.list-group-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-image: linear-gradient(to bottom, #65a6bc, #87cfde);
}

/* 图片展示区样式 */
#images-container {
    min-height: calc(100vh - 190px); /* 视窗高度减去页眉和页脚的高度 */
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
}

/* 图片卡片样式 */
.image-card {
    position: relative;
    margin-bottom: 5px;
    margin-top: 5px;
    margin-left: 2px;
    margin-right: 2px;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
    cursor: pointer;
    background-color: #35363a;
    width: 180px;
    height: 120px;
    position: relative; /* 确保能正确定位子元素 */
}

.image-card:hover {
    transform: translateY(-5px);
}

.image-card img {
    width: 100%;
    height: 100%; /* 让图片填充整个卡片 */
    object-fit: contain; /* 保持完整图像 */
    background-color: #292a2d;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.image-card .card-body {
    padding: 2px 5px; /* 减小内边距 */
    background-color: rgba(53, 54, 58, 0.7); /* 半透明背景 */
    height: 25px; /* 减小文件名区域高度 */
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.image-card .card-title {
    margin-bottom: 0; /* 移除底部边距 */
    font-size: 0.8rem; /* 减小字体大小 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e8eaed;
}

/* 图片选择样式 */
.image-card.selected {
    border: 2px solid #65a6bc;
    box-shadow: 0 0 8px rgba(101, 166, 188, 0.8);
}

/* 删除操作栏样式 */
.delete-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(53, 54, 58, 0.9);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* 表单控件样式 */
.form-control, .form-select {
    background-color: #35363a;
    border-color: #444;
    color: #e8eaed;
}

.form-control:focus, .form-select:focus {
    background-color: #3c3d42;
    border-color: #65a6bc;
    color: #e8eaed;
    box-shadow: 0 0 0 0.25rem rgba(101, 166, 188, 0.25);
}

/* 模态框样式 */
.modal-content {
    background-color: #35363a;
    border-color: #444;
}

.modal-header, .modal-footer {
    border-color: #444;
}

/* 模态框居中显示 */
.modal-dialog {
    display: flex;
    align-items: center;
    min-height: 85vh;
    margin: 1.75rem auto;
}

/* 注意：移除了可能导致交互问题的modal样式 */

/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    color: #87cfde;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #9aa0a6;
}

/* 上传进度条 */
#upload-progress {
    margin-top: 1rem;
}

.progress {
    background-color: #3c3d42;
}

.progress-bar {
    background-image: linear-gradient(to right, #65a6bc, #87cfde);
}

/* 响应式调整 */
@media (max-width: 800px) {
    .col-md-2 {
        margin-bottom: 1rem;
    }
    
    /* 移动端按钮间距调整 */
    header .btn {
        margin-bottom: 0.5rem;
    }
    
    header .col-auto {
        margin-top: 0.5rem;
    }
}

/* 导航栏和页眉样式 */
header.bg-light {
    background-color: #35363a !important;
    border-bottom: 1px solid #444;
}

/* 分页样式 */
.pagination .page-link {
    background-color: #35363a;
    border-color: #444;
    color: #e8eaed;
}

.pagination .page-item.active .page-link {
    background-image: linear-gradient(to right, #65a6bc, #87cfde);
    border-color: #65a6bc;
}

/* 提示和通知样式 */
.alert {
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 标题区域样式 */
.title-area {
    padding: 0.75rem 0;
    color: #e8eaed;
}

.title-area h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

/* 渐变文字样式 */
.gradient-text {
    background: linear-gradient(to right, #65a6bc, #87cfde);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* 搜索图标样式 */
.search-icon {
    background-color: #35363a;
    border-color: #444;
    color: #65a6bc;
    cursor: pointer;
    transition: all 0.2s;
}

.search-icon:hover {
    background-color: #3c3d42;
    color: #87cfde;
}

/* 页脚样式 */
.footer {
    margin-top: 3px;
    padding-top: 1px;
    padding-bottom: 1px;
    border-top: 1px solid #444;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer .text-muted {
    color: #6c757d !important;
    font-size: 12px;
}

/* 悬浮提示样式 */
.floating-tip {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(53, 54, 58, 0.95);
    color: #e8eaed;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    font-size: 14px;
    display: flex;
    align-items: center;
    animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
} 