/* ============================================
   图片转PDF工具 - 专属样式
   ============================================ */

/* 上传拖拽区 */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s ease;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--accent);
    background: var(--accent-light);
}

.drop-zone-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.drop-zone-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 4px;
}

.drop-zone-hint {
    font-size: 0.85rem;
    color: var(--muted);
}

/* 设置栏 */
.settings-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.settings-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}

.settings-options {
    display: flex;
    gap: 8px;
}

.settings-btn {
    padding: 6px 16px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.15s;
}

.settings-btn:hover {
    border-color: var(--accent);
    color: var(--fg);
}

.settings-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* 文件夹预览 */
.folder-preview {
    margin-bottom: 24px;
}

.folder-group {
    margin-bottom: 24px;
}

.folder-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.folder-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fg);
}

.folder-count {
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 8px;
    border-radius: 10px;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.thumb-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 进度条 */
.progress-bar {
    position: relative;
    width: 100%;
    height: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 16px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.2s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--fg);
}

/* 响应式 */
@media (max-width: 600px) {
    .settings-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .drop-zone {
        padding: 40px 16px;
    }
}
