/* ================================================
   EasyImage Homepage - Clean Modern Theme
   Inspired by ImgBB / Cloudinary / modern SaaS
   ================================================ */

/* === 基础重置 === */
* { box-sizing: border-box; }

/* === 背景：干净柔和的渐变 === */
body.container {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(160deg, #f0f4ff 0%, #f8f6ff 35%, #fdf2f8 70%, #f0f9ff 100%) !important;
    overflow-x: hidden;
}

/* 装饰光斑 - 极淡，不抢眼 */
body.container::before,
body.container::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

body.container::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.10), transparent 70%);
    top: -180px;
    right: -120px;
}

body.container::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.07), transparent 70%);
    bottom: -120px;
    left: -80px;
}

/* === 导航栏：干净白色玻璃 === */
.page-header {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 0 0 16px 16px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    margin-bottom: 0 !important;
    padding: 10px 24px !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04) !important;
}

.page-header .nav-pills > li > a {
    color: #475569 !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    margin: 0 2px;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 0.9em;
}

.page-header .nav-pills > li > a:hover {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #6366f1 !important;
    transform: translateY(-1px);
}

.page-header .nav-pills > li.active > a,
.page-header .nav-pills > li.active > a:focus {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #6366f1 !important;
    font-weight: 600;
}

.page-header .nav-pills > li > a .label-badge {
    background: #6366f1 !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-size: 0.75em;
    padding: 2px 7px;
}

/* === 主内容区 === */
body.container > .col-md-12 {
    position: relative;
    z-index: 5;
}

/* === Hero 区域 === */
.home-hero {
    text-align: center;
    padding: 48px 20px 24px;
    position: relative;
    z-index: 5;
}

.home-hero h1 {
    font-size: 2.4em;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroFadeIn 0.6s ease;
}

.home-hero .hero-subtitle {
    font-size: 1.0em;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.home-hero .hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.home-hero .hero-stat-item {
    color: #475569;
    font-size: 0.85em;
    font-weight: 500;
}

.home-hero .hero-stat-item strong {
    font-size: 1.3em;
    font-weight: 800;
    color: #6366f1;
    margin-right: 4px;
}

.home-hero .hero-stat-divider {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === 公告滚动条 === */
.marquee {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 20px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.marquee .wrap {
    padding: 8px 16px;
}

#marquee2 {
    color: #475569 !important;
}

#marquee2 a {
    color: #6366f1 !important;
    text-decoration: none;
}

#marquee2 a:hover {
    text-decoration: underline;
}

/* === 上传区域：干净白色卡片 === */
.uploader {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
    transition: box-shadow 0.3s ease;
}

.uploader:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* 上传拖拽区域 - 关键修复：不加 ::before 避免和 ZUI placeholder 冲突 */
.uploader .file-list,
.uploader .uploader-files {
    background: #f8fafc !important;
    border: 2px dashed #cbd5e1 !important;
    border-radius: 14px !important;
    min-height: 200px !important;
    transition: all 0.25s ease;
    position: relative;
}

.uploader .file-list:hover,
.uploader .uploader-files:hover {
    border-color: #6366f1 !important;
    background: #f5f3ff !important;
}

/* ZUI 自带的 placeholder 文字样式 */
.uploader .file-list[data-drag-placeholder]::before,
.uploader .uploader-files[data-drag-placeholder]::before {
    color: #94a3b8 !important;
    font-size: 15px !important;
    font-weight: 400;
}

/* 拖拽进入时 */
.uploader .file-list.file-drag-enter,
.uploader .uploader-files.file-drag-enter {
    background: #ede9fe !important;
    border-color: #6366f1 !important;
}

/* 上传按钮区 */
.uploader-actions {
    background: #f8fafc !important;
    border-radius: 12px !important;
    margin-top: 12px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.uploader-actions .btn-link {
    color: #6366f1 !important;
    font-weight: 600;
    border-radius: 8px !important;
    padding: 6px 16px !important;
    transition: all 0.2s ease;
}

.uploader-actions .btn-link:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #4f46e5 !important;
}

.uploader-actions .btn-link i {
    margin-right: 4px;
}

/* 上传文件列表项 */
.uploader .file-list .file {
    background: #fff !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    margin: 6px 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.uploader .file-list .file:hover {
    background: #f8fafc !important;
}

.uploader .file-list .file .file-name {
    color: #334155 !important;
}

.uploader .file-list .file .file-size {
    color: #94a3b8 !important;
}

/* === 标签页 === */
.nav-tabs {
    border-bottom: 2px solid rgba(0, 0, 0, 0.06) !important;
    margin-top: 20px;
}

.nav-tabs > li {
    margin-bottom: -2px;
}

.nav-tabs > li > a {
    color: #64748b !important;
    border: none !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 10px 18px !important;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-tabs > li > a:hover {
    background: rgba(99, 102, 241, 0.06) !important;
    color: #6366f1 !important;
    border: none !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: transparent !important;
    color: #6366f1 !important;
    border: none !important;
    border-bottom: 3px solid #6366f1 !important;
    font-weight: 600;
}

/* === Tab 内容区 === */
.tab-content {
    background: #ffffff !important;
    border-radius: 0 0 16px 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-top: none !important;
    padding: 16px !important;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* 文本框 */
.tab-content textarea.form-control {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    color: #334155 !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85em;
    resize: vertical;
    transition: all 0.2s ease;
}

.tab-content textarea.form-control:focus {
    background: #fff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.tab-content textarea.form-control::placeholder {
    color: #94a3b8;
}

/* === 按钮 === */
.tab-content .btn-primary {
    background: #6366f1 !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 8px 14px !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.tab-content .btn-primary:hover {
    background: #4f46e5 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.tab-content .btn-primary:active {
    transform: translateY(0);
}

/* === 底部栏 === */
footer.navbar-fixed-bottom {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 10px 0 !important;
}

footer.navbar-fixed-bottom hr {
    border-color: rgba(0, 0, 0, 0.05) !important;
    margin: 6px 0 !important;
}

footer.navbar-fixed-bottom,
footer.navbar-fixed-bottom a,
footer.navbar-fixed-bottom .text-muted {
    color: #94a3b8 !important;
}

footer.navbar-fixed-bottom a:hover {
    color: #6366f1 !important;
}

footer.navbar-fixed-bottom i.icon {
    transition: all 0.2s ease;
    font-size: 16px;
}

footer.navbar-fixed-bottom a:hover i.icon {
    transform: scale(1.15);
}

/* === 消息提示 === */
.messager {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    color: #334155 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* === 模态框 === */
.modal-content {
    background: #fff !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

/* === 响应式 === */
@media (max-width: 768px) {
    .home-hero {
        padding: 32px 16px 16px;
    }
    .home-hero h1 {
        font-size: 1.7em;
    }
    .home-hero .hero-subtitle {
        font-size: 0.88em;
    }
    .home-hero .hero-stats {
        gap: 10px;
        padding: 8px 16px;
    }
    .home-hero .hero-stat-item {
        font-size: 0.72em;
    }
    .home-hero .hero-stat-item strong {
        font-size: 1.1em;
    }
    .uploader {
        padding: 16px !important;
    }
    .uploader .file-list {
        min-height: 150px !important;
    }
}

/* === 暗黑模式适配 === */
html[style*="invert"] body.container {
    background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 35%, #1e1b4b 70%, #0f172a 100%) !important;
}

html[style*="invert"] body.container::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
}

html[style*="invert"] body.container::after {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.10), transparent 70%);
}

/* === 滚动条美化 === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.4);
}

/* === 选中文本 === */
::selection {
    background: rgba(99, 102, 241, 0.2);
    color: #4f46e5;
}

/* === NProgress 颜色 === */
#nprogress .bar {
    background: #6366f1 !important;
    height: 3px !important;
}

/* === 上传进度条 === */
.uploader .file .progress-bar {
    background: rgba(99, 102, 241, 0.15) !important;
    border-radius: 4px;
}

.uploader .file[data-status="uploading"] .file-progress-bar {
    box-shadow: inset 0 -2px #6366f1 !important;
}

/* === 上传状态颜色 === */
.uploader .file[data-status="queue"] {
    background-color: #fefce8 !important;
}

.uploader .file[data-status="failed"] {
    background-color: #fef2f2 !important;
}

.uploader .file[data-status="done"] {
    background-color: #f0fdf4 !important;
}

.uploader .file[data-status="done"] .file-status {
    color: #22c55e !important;
}

.uploader .file[data-status="queue"] .file-status {
    color: #eab308 !important;
}

.uploader .file[data-status="failed"] .file-status {
    color: #ef4444 !important;
}
