/* css/style.css - 科技感主题 */
:root {
    /* 科技感配色 */
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #ff006e;
    --success-color: #00ff88;
    --warning-color: #ffbe0b;
    --light-color: #e0f7fa;
    --dark-color: #0a0e27;
    --dark-bg: #0a0e27;
    --dark-card: rgba(15, 23, 42, 0.8);
    --neon-blue: #00d4ff;
    --neon-pink: #ff006e;
    --neon-green: #00ff88;
    --neon-purple: #8338ec;
    
    /* 渐变 */
    --gradient-start: #0a0e27;
    --gradient-end: #1a1f3a;
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #8338ec 50%, #ff006e 100%);
    
    /* 阴影和光效 */
    --card-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
    --hover-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
    --neon-glow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
    --neon-glow-pink: 0 0 20px rgba(255, 0, 110, 0.5), 0 0 40px rgba(255, 0, 110, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(131, 56, 236, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 0, 110, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--light-color);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* 网格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* 粒子动画背景 - 优化性能，减少动画复杂度 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, rgba(0, 212, 255, 0.2), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(131, 56, 236, 0.2), transparent);
    background-size: 200% 200%;
    animation: particleMove 30s ease infinite;
    pointer-events: none;
    z-index: 0;
    will-change: background-position;
}

@keyframes particleMove {
    0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%; }
    50% { background-position: 100% 100%, 0% 0%, 80% 80%, 20% 60%; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
    z-index: 1;
}

/* ===== 头部美化 - 科技感 ===== */
header {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

h1 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 30px rgba(0, 212, 255, 0.5),
        0 0 60px rgba(0, 212, 255, 0.3);
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
    /* 移除动画以提升性能 */
}

@keyframes glowPulse {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    }
}

.subtitle {
    color: rgba(224, 247, 250, 0.8);
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
}

/* ===== 主内容区域美化 ===== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== 上传区域美化 - 玻璃态 ===== */
.upload-section,
.search-section {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.upload-section:hover,
.search-section:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 212, 255, 0.5),
        0 0 30px rgba(0, 212, 255, 0.2);
}

.section-title {
    font-size: 1.8rem;
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    letter-spacing: 0.5px;
}

.section-title::before {
    content: "📸";
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
    /* 移除动画以提升性能 */
}

.search-section .section-title::before {
    content: "🔍";
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== 上传区域美化 - 科技感 ===== */
.upload-area {
    border: 2px dashed rgba(0, 212, 255, 0.5);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.8s;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: var(--neon-blue);
    transform: translateY(-3px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.upload-area.dragover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--neon-blue);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    /* 移除动画以提升性能 */
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.upload-area p {
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.upload-hint {
    color: rgba(224, 247, 250, 0.7);
    font-size: 1rem;
    margin-top: 1rem;
    line-height: 1.5;
}

/* ===== 预览网格美化 ===== */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0;
    max-height: 450px;
    overflow-y: auto;
    padding: 10px;
}

.preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.preview-remove:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* ===== 表单美化 ===== */
.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--neon-blue);
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

input[type="text"],
input[type="date"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    color: var(--light-color);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

input[type="text"]::placeholder,
input[type="date"]::placeholder {
    color: rgba(224, 247, 250, 0.5);
}

input[type="text"]:focus,
input[type="date"]:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 
        0 4px 20px rgba(0, 212, 255, 0.3),
        0 0 0 3px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

/* ===== 按钮美化 ===== */
.upload-actions {
    display: flex;
    gap: 1.2rem;
}

.btn-primary, .btn-secondary {
    padding: 15px 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border: 1px solid rgba(0, 212, 255, 0.5);
    box-shadow: 
        0 4px 15px rgba(0, 212, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: "🚀";
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.5),
        0 0 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.8);
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary::before {
    content: "🗑️";
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1);
}

/* ===== 搜索表单样式已在上面定义 ===== */
.search-form input[type="text"] {
    flex: 1;
}

.date-input {
    min-width: 180px;
    cursor: pointer;
}

.search-form button {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border: 1px solid rgba(0, 212, 255, 0.5);
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 
        0 4px 15px rgba(0, 212, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
}

.search-form button::before {
    content: "🔍";
    margin-right: 8px;
}

.search-form button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.5),
        0 0 40px rgba(0, 212, 255, 0.4);
}

.search-form a.btn-secondary {
    text-decoration: none;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form a.btn-secondary::before {
    content: "🔄";
}

/* ===== 图片网格美化 ===== */
.image-gallery {
    margin-top: 2rem;
    width: 100%;
}

.image-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 30px;
    width: 100%;
    align-items: start;
    contain: layout style;
    will-change: contents;
}

/* 响应式密集网格布局 - 增加每排显示的图片数量 */
@media (min-width: 1600px) {
    .image-grid {
        grid-template-columns: repeat(8, 1fr) !important;
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {
    .image-grid {
        grid-template-columns: repeat(7, 1fr) !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .image-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .image-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

@media (min-width: 700px) and (max-width: 899px) {
    .image-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 500px) and (max-width: 699px) {
    .image-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 499px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.image-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    contain: layout style paint;
}

/* 确保图片容器可以接收点击事件 */
.image-container {
    pointer-events: auto;
    cursor: pointer;
}

.image-container img {
    pointer-events: auto;
    cursor: pointer;
}

.image-card:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 0 15px rgba(0, 212, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(45deg, rgba(0, 212, 255, 0.02) 25%, transparent 25%), 
        linear-gradient(-45deg, rgba(0, 212, 255, 0.02) 25%, transparent 25%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px;
    position: relative;
    padding: 0;
    flex: 1;
    contain: layout style paint;
}

/* 图片占位符和加载动画 */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.3);
    z-index: 1;
}

.image-loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.image-placeholder-small {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.2);
    z-index: 1;
}

.image-loader-small {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.image-container img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 0;
    will-change: transform;
    transform: translateZ(0); /* 启用硬件加速 */
}

.image-card:hover .image-container img {
    transform: scale(1.03) translateZ(0);
}

.image-info {
    padding: 0;
    flex-grow: 0;
    display: none; /* 隐藏详细信息，只显示缩略图 */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card:hover .image-info {
    display: flex;
    opacity: 1;
    flex-direction: column;
}

.image-name {
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.image-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(224, 247, 250, 0.7);
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.image-meta span {
    background: rgba(0, 212, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.image-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 2px solid rgba(0, 212, 255, 0.2);
}

.tag {
    background: rgba(0, 212, 255, 0.15);
    color: var(--neon-blue);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.1);
}

.tag:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.tag-highlight {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.3), rgba(255, 193, 7, 0.3)) !important;
    color: #ffbe0b !important;
    font-weight: 700;
    box-shadow: 
        0 2px 12px rgba(255, 193, 7, 0.6),
        0 0 20px rgba(255, 193, 7, 0.4) !important;
    transform: scale(1.08);
    border: 2px solid #ffbe0b !important;
    animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% {
        box-shadow: 
            0 2px 12px rgba(255, 193, 7, 0.6),
            0 0 20px rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 
            0 2px 16px rgba(255, 193, 7, 0.8),
            0 0 30px rgba(255, 193, 7, 0.6);
    }
}

/* ===== 分页按钮美化 ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 40px 0;
    padding: 25px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
}

.pagination-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
}

.pagination-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.pagination-btn:disabled {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.pagination-btn.prev::before {
    content: "⬅️";
    font-weight: bold;
}

.pagination-btn.next::after {
    content: "➡️";
    font-weight: bold;
}

.pagination-info {
    color: white;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 12px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===== 其他样式 ===== */
.alert {
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    text-align: center;
    gap: 1.5rem;
}

.stat-item {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem 1rem;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    flex: 1;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.stat-item div:last-child {
    color: rgba(224, 247, 250, 0.8);
}

.stat-item:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

.stat-number {
    color: var(--neon-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.stat-item div:last-child {
    color: rgba(224, 247, 250, 0.8);
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    color: rgba(224, 247, 250, 0.6);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .upload-section, .search-section {
        padding: 2rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* 移除fadeIn动画，减少性能开销 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== 常用标签区域样式 ===== */
.popular-tags {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.9) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.popular-tags h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popular-tags h3::before {
    content: "🏷️";
    font-size: 1.2rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    border: 2px solid transparent;
}

.popular-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    text-decoration: none;
}

.popular-tag:active {
    transform: translateY(0);
}

.no-tags-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px dashed #dee2e6;
}

/* 上传区域布局调整 */
.upload-section {
    display: flex;
    flex-direction: column;
    height: fit-content;
}

/* ===== 管理员区域样式 ===== */
.admin-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.8) 0%, rgba(255, 230, 156, 0.9) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
}

.admin-section h3 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-section h3::before {
    content: "🔐";
    font-size: 1.2rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-input {
    padding: 12px 15px;
    border: 2px solid #ffeaa7;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.admin-input:focus {
    outline: none;
    border-color: #fdcb6e;
    box-shadow: 0 0 0 3px rgba(253, 203, 110, 0.3);
    background: white;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

.admin-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-btn.verify {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
}

.admin-btn.verify::before {
    content: "✅";
}

.admin-btn.verify:hover {
    background: linear-gradient(135deg, #e17055, #fdcb6e);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
}

.admin-btn.delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    display: none; /* 默认隐藏，验证通过后显示 */
}

.admin-btn.delete::before {
    content: "🗑️";
}

.admin-btn.delete:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.admin-status {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.admin-status.success {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    border: 1px solid #2ecc71;
    display: block;
}

.admin-status.error {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
    border: 1px solid #e74c3c;
    display: block;
}

.image-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    display: none;
}

.image-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.image-item:last-child {
    border-bottom: none;
}

.image-item input[type="checkbox"] {
    margin-right: 10px;
}

.image-name {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.image-date {
    font-size: 0.8rem;
    color: #666;
}

/* ===== 管理员图片列表美化 ===== */
.image-list {
    max-height: 400px; /* 增加高度以容纳缩略图 */
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    display: none;
}

.image-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.image-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.image-checkbox {
    margin-right: 15px;
}

.image-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.image-preview {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.image-preview:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.image-preview {
    position: relative;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.image-info {
    flex: 1;
    min-width: 0;
}

.image-name {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #666;
}

.image-date, .image-size {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
}

.image-tags-preview {
    margin-top: 4px;
}

.image-tags-preview .tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    margin-right: 4px;
}

/* 图片预览模态框 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview-modal.active {
    display: flex;
    opacity: 1;
}

.preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.preview-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.preview-info {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
}

.preview-info .image-name {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.preview-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.preview-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.preview-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.preview-prev {
    left: 20px;
}

.preview-next {
    right: 20px;
}

/* 全选操作 */
.batch-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.select-all input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.selected-count {
    font-size: 0.9rem;
    color: #e74c3c;
    font-weight: 600;
}

/* 在css/style.css中添加 */
.upload-area {
    position: relative;
    border: 3px dashed var(--primary-color);
    border-radius: 15px;
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    background: rgba(236, 240, 241, 0.5);
}

/* 移除之前可能冲突的样式 */

#fileInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.upload-placeholder {
    position: relative;
    z-index: 1;
    pointer-events: none; /* 防止placeholder干扰点击 */
    
    /* 退出按钮样式 */
.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    z-index: 1000;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

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

/* 导航按钮样式 */
.nav-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.nav-btn {
    padding: 8px 15px;
    background: linear-gradient(135deg, var(--neon-green), rgba(0, 255, 136, 0.8));
    color: white;
    border: 1px solid rgba(0, 255, 136, 0.5);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 10px rgba(0, 255, 136, 0.3),
        0 0 15px rgba(0, 255, 136, 0.2);
    font-weight: 600;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(0, 255, 136, 0.5),
        0 0 25px rgba(0, 255, 136, 0.4);
    border-color: rgba(0, 255, 136, 0.8);
}

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

/* 退出按钮样式调整 */
.logout-btn {
    padding: 8px 15px;
    background: linear-gradient(135deg, var(--neon-pink), rgba(255, 0, 110, 0.8));
    color: white;
    border: 1px solid rgba(255, 0, 110, 0.5);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 10px rgba(255, 0, 110, 0.3),
        0 0 15px rgba(255, 0, 110, 0.2);
    font-weight: 600;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(255, 0, 110, 0.5),
        0 0 25px rgba(255, 0, 110, 0.4);
    border-color: rgba(255, 0, 110, 0.8);
}

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

.nav-btn.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

/* 布局调整 - 让左侧上传部分靠左 */
.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.left-panel {
    flex: 0 0 380px; /* 固定左侧宽度 */
    position: sticky;
    top: 20px;
}

.right-panel {
    flex: 1; /* 右侧占据剩余空间 */
    min-width: 0;
}

/* 这些样式已在上面定义，删除重复定义 */

/* 图片查看模态框样式 */
.image-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-viewer-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 212, 255, 0.3);
    transition: transform 0.1s ease-out;
    cursor: grab;
    user-select: none;
    position: relative;
}

.image-viewer-content img:active {
    cursor: grabbing;
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 212, 255, 0.5);
    color: var(--neon-blue);
    font-size: 32px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.3);
}

.image-viewer-close:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--neon-blue);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 212, 255, 0.5);
    transform: scale(1.1);
}

.image-viewer-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--light-color);
    padding: 18px 28px;
    border-radius: 16px;
    text-align: center;
    z-index: 10001;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 212, 255, 0.2);
    min-width: 250px;
    max-width: 85vw;
}

/* 图片查看器操作按钮 */
.image-viewer-actions {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10001;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
}

.image-viewer-action-btn {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: var(--neon-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.image-viewer-action-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.image-viewer-action-btn.delete {
    background: rgba(255, 0, 110, 0.2);
    border-color: rgba(255, 0, 110, 0.4);
    color: var(--neon-pink);
}

.image-viewer-action-btn.delete:hover {
    background: rgba(255, 0, 110, 0.3);
    border-color: var(--neon-pink);
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.4);
}

.image-viewer-action-btn.edit {
    background: rgba(131, 56, 236, 0.2);
    border-color: rgba(131, 56, 236, 0.4);
    color: var(--neon-purple);
}

.image-viewer-action-btn.edit:hover {
    background: rgba(131, 56, 236, 0.3);
    border-color: var(--neon-purple);
    box-shadow: 0 4px 12px rgba(131, 56, 236, 0.4);
}

.image-viewer-info strong {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    display: block;
    margin-bottom: 5px;
}

.zoom-info {
    color: rgba(224, 247, 250, 0.7);
    font-size: 12px;
    margin-top: 8px;
}

/* 图片查看器标签区域 */
.image-viewer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.image-viewer-tag {
    background: rgba(0, 212, 255, 0.15);
    color: var(--neon-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.1);
    will-change: transform;
}

.image-viewer-tag:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    color: var(--neon-blue);
}

.image-viewer-tag:active {
    transform: translateY(0);
}

.image-viewer-tag-empty {
    color: rgba(224, 247, 250, 0.5);
    font-size: 12px;
    font-style: italic;
}

/* 响应式调整 - 已在上面定义，这里保留移动端特殊处理 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-panel {
        flex: none;
        width: 100%;
        position: static;
    }
}

/* 图片显示优化 */
.image-container img,
.preview-content img,
.image-viewer-content img {
    image-rendering: -webkit-optimize-contrast; /* Safari */
    image-rendering: crisp-edges; /* Firefox */
    image-rendering: pixelated; /* 对于像素图 */
    image-rendering: -moz-crisp-edges; /* 老版本 Firefox */
    -ms-interpolation-mode: nearest-neighbor; /* IE */
}

/* 大图查看器中的高质量渲染 */
.image-viewer-content img {
    image-rendering: auto; /* 大图使用浏览器默认高质量渲染 */
}


/* ===== 可折叠标签区域样式 ===== */
.popular-tags {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.9) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tags-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
}

.tags-header h3 {
    color: var(--dark-color);
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-header h3::before {
    content: "🏷️";
    font-size: 1.2rem;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.toggle-icon.collapsed {
    transform: rotate(-90deg);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 500px; /* 初始显示高度 */
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.tags-cloud.collapsed {
    max-height: 0;
}

.tags-cloud.expanded {
    max-height: 2000px; /* 足够显示所有标签 */
}

.show-more-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.show-more-btn::after {
    content: "⬇️";
    font-size: 0.8rem;
}

.show-more-btn.collapsed::after {
    content: "⬆️";
}

.tags-count {
    font-size: 0.8rem;
    color: #666;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

/* 标签大小分类 */
.popular-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    border: 2px solid transparent;
}

.popular-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    text-decoration: none;
}

/* 根据使用频率设置标签大小 */
.tag-large {
    font-size: 1rem;
    padding: 10px 20px;
}

.tag-medium {
    font-size: 0.9rem;
    padding: 8px 16px;
}

.tag-small {
    font-size: 0.8rem;
    padding: 6px 12px;
    opacity: 0.9;
}

/* ===== 单个图片删除按钮样式 ===== */
.image-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.image-item-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.edit-tags-btn {
    position: relative;
    background: linear-gradient(135deg, var(--neon-purple), rgba(131, 56, 236, 0.8));
    color: white;
    border: 1px solid rgba(131, 56, 236, 0.5);
    padding: 10px 22px 10px 42px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 12px 20px rgba(131, 56, 236, 0.4),
        0 0 20px rgba(131, 56, 236, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    overflow: hidden;
}

.edit-tags-btn::before {
    content: "✎";
    position: absolute;
    left: 15px;
    font-size: 14px;
    transition: transform 0.25s ease;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.edit-tags-btn:hover {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.9), var(--neon-purple));
    transform: translateY(-3px) scale(1.03);
    box-shadow: 
        0 16px 28px rgba(131, 56, 236, 0.6),
        0 0 30px rgba(131, 56, 236, 0.5);
    border-color: rgba(131, 56, 236, 0.8);
}

.edit-tags-btn:hover::before {
    transform: scale(1.1) rotate(-6deg);
}

.edit-tags-btn:disabled {
    background: rgba(15, 23, 42, 0.6);
    cursor: not-allowed;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(224, 247, 250, 0.3);
}

.image-tags .tag,
.image-tags-preview .tag {
    pointer-events: auto;
    cursor: default;
    user-select: none;
}

.delete-btn {
    background: linear-gradient(135deg, var(--neon-pink), rgba(255, 0, 110, 0.8));
    color: white;
    border: 1px solid rgba(255, 0, 110, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 
        0 2px 8px rgba(255, 0, 110, 0.3),
        0 0 15px rgba(255, 0, 110, 0.2);
}

.delete-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.9), var(--neon-pink));
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(255, 0, 110, 0.5),
        0 0 25px rgba(255, 0, 110, 0.4);
    border-color: rgba(255, 0, 110, 0.8);
}

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

.delete-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.delete-btn.deleting {
    background: #95a5a6;
    cursor: not-allowed;
}

.delete-btn.deleting::after {
    content: '...';
    animation: deleting 1s infinite;
}

@keyframes deleting {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* ===== 标签删除功能样式 ===== */
.tag-item {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.tag-item:hover .tag-delete-btn {
    opacity: 1;
    transform: scale(1);
}

.tag-delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.tag-delete-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* 标签删除确认对话框 */
.tag-delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.tag-delete-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.tag-delete-content h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.tag-delete-content .warning-text {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.tag-delete-content .warning-text strong {
    color: #856404;
}

.tag-delete-stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.tag-delete-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.tag-confirm-btn, .tag-cancel-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.tag-confirm-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.tag-confirm-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
}

.tag-cancel-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.tag-cancel-btn:hover {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    transform: translateY(-2px);
}

.tag-confirm-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* ===== 文件夹模式样式 ===== */

/* 模式切换按钮 */
.mode-switch {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.mode-btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.6);
    color: var(--light-color);
    border: 2px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mode-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    color: var(--light-color);
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-color: var(--neon-blue);
    color: white;
    box-shadow: 
        0 4px 20px rgba(0, 212, 255, 0.4),
        0 0 30px rgba(0, 212, 255, 0.3);
}

/* 创建文件夹区域 */
.create-folder-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.create-folder-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.folder-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.6);
    color: var(--light-color);
    transition: all 0.3s ease;
}

.folder-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.folder-input::placeholder {
    color: rgba(224, 247, 250, 0.5);
}

.create-folder-btn {
    white-space: nowrap;
    padding: 14px 25px !important;
}

.create-folder-btn::before {
    content: "" !important;
}

/* 文件夹搜索 */
.folder-search {
    margin-bottom: 1.5rem;
}

.folder-search-input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.6);
    color: var(--light-color);
    transition: all 0.3s ease;
}

.folder-search-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.folder-search-input::placeholder {
    color: rgba(224, 247, 250, 0.5);
}

/* 文件夹网格 */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

/* 确保文件夹卡片包装器在网格中正确显示 */
.folder-grid > .folder-card-wrapper {
    width: 100%;
    min-width: 0; /* 防止溢出 */
}

/* 确保文件夹卡片在包装器中正确显示 */
.folder-card-wrapper > .folder-card {
    width: 100%;
    height: 100%;
}

/* 响应式文件夹网格布局 */
@media (min-width: 1400px) {
    .folder-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1100px) and (max-width: 1399px) {
    .folder-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 800px) and (max-width: 1099px) {
    .folder-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 799px) {
    .folder-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* 文件夹卡片 - 使用兼容性更好的方式实现正方形 */
.folder-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1; /* 现代浏览器使用 aspect-ratio */
    min-height: 160px; /* 最小高度 */
}

/* 兼容旧浏览器的正方形实现 */
@supports not (aspect-ratio: 1) {
    .folder-card {
        aspect-ratio: unset;
        padding-bottom: 100%; /* 使用 padding-bottom 实现正方形 */
        height: 0; /* 配合 padding-bottom 使用 */
    }
}

.folder-card:hover {
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 212, 255, 0.3);
}

/* 文件夹卡片内容包装器 */
.folder-card-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.folder-cover {
    width: 100%;
    height: 75%;
    flex: 0 0 75%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.8); /* 默认背景色 */
    background-repeat: no-repeat;
    background-position: center center;
}

/* 确保背景图片正确显示 */
.folder-cover[style*="background-image"] {
    background-size: cover !important;
    background-position: center center !important;
}

.folder-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.folder-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    background: linear-gradient(to top, #000000cc, transparent);
    display: flex;
    justify-content: flex-end;
}

.image-count-badge {
    background: rgba(0, 212, 255, 0.9);
    background: #00d4ffe6;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.folder-info {
    padding: 10px 8px;
    height: 25%;
    flex: 0 0 25%;
    min-height: 50px; /* 确保有足够空间显示名称 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.folder-card .folder-name {
    color: var(--light-color);
    color: #e0f7fa;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.3;
    max-height: 2.6em; /* 最多显示2行 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    padding: 0 4px;
}

/* 文件夹页面样式 */
.folder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.folder-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.folder-title-section h1 {
    margin: 0;
    font-size: 2rem;
}

.back-btn {
    padding: 10px 20px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--neon-blue);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--neon-blue);
    transform: translateX(-5px);
    color: var(--neon-blue);
}

.folder-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .folder-content {
        grid-template-columns: 1fr;
    }
}

.folder-upload-section {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.folder-images-section {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.folder-images-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.image-count {
    background: rgba(0, 212, 255, 0.2);
    color: var(--neon-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 212, 255, 0.4);
}

/* 紧凑型上传区域 */
.upload-area.compact {
    padding: 2rem 1.5rem;
}

.preview-grid.compact {
    max-height: 200px;
}

/* 文件夹模式搜索区块 */
.search-section.folder-mode {
    min-height: auto;
}

.search-section.folder-mode .section-title::before {
    content: "📂";
}

/* 文件夹卡片隐藏时（搜索过滤） */
.folder-card.hidden,
.folder-card-wrapper.hidden {
    display: none;
}

/* 文件夹卡片包装器 */
.folder-card-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

/* 悬停时显示删除按钮 */
.folder-card-wrapper:hover .folder-delete-btn {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* 文件夹删除按钮 */
.folder-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.5);
    z-index: 10;
    line-height: 1;
    padding: 0;
    pointer-events: none;
}

.folder-delete-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.7);
}

.folder-delete-btn:active {
    transform: scale(1.05);
}

/* 文件夹删除确认对话框 */
.folder-delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.folder-delete-modal.active {
    display: flex;
}

.folder-delete-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(231, 76, 60, 0.3);
    border: 2px solid rgba(231, 76, 60, 0.5);
}

.folder-delete-content h3 {
    color: #ff006e;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.folder-delete-content .warning-text {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 12px;
    padding: 1.2rem;
    margin: 1.5rem 0;
    text-align: left;
    color: var(--light-color);
}

.folder-delete-content .warning-text strong {
    color: #ffbe0b;
}

.folder-delete-stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.folder-delete-stats .stat-item {
    text-align: center;
}

.folder-delete-stats .stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff006e;
}

.folder-delete-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(224, 247, 250, 0.7);
    margin-top: 5px;
}

.folder-delete-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.folder-confirm-btn, .folder-cancel-btn {
    padding: 14px 35px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.folder-confirm-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.folder-confirm-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.folder-cancel-btn {
    background: rgba(15, 23, 42, 0.8);
    color: var(--light-color);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.folder-cancel-btn:hover {
    background: rgba(15, 23, 42, 1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.folder-confirm-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}