/* WebP图片转换器样式 */
.webp-container {
    display: flex;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 600px;
}

.webp-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.webp-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.webp-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.webp-upload {
    border: 3px dashed var(--border);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    display: block;
    width: 100%;
    font: inherit;
    color: inherit;
}

.webp-upload:hover,
.webp-upload.dragover {
    border-color: var(--primary);
    background: rgba(102,126,234,0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102,126,234,0.12);
}

.webp-upload i {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 12px;
    display: block;
}

.webp-upload p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 8px 0;
}

.webp-hint {
    font-size: 13px;
    color: var(--text-light);
}

.webp-slider-row {
    margin-bottom: 16px;
}

.webp-slider-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.webp-slider-row input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    outline: none;
}

.webp-slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102,126,234,0.3);
}

.webp-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    color: var(--text);
    background: white;
}

.webp-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.webp-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.webp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.webp-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.webp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.webp-btn-secondary {
    background: #48bb78;
    color: white;
}

.webp-btn-secondary:hover {
    background: #38a169;
}

.webp-btn-vip {
    background: linear-gradient(135deg, #f6ad55, #ed8936);
    color: white;
    text-decoration: none;
}

.webp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.webp-auth-area{margin:16px 0;padding:24px;background:linear-gradient(135deg,#f8faff,#f0f4ff);border-radius:12px;border:1px solid #e2e8f0;text-align:center}
.webp-auth-icon{font-size:40px;margin-bottom:10px}
.webp-auth-hint{font-size:14px;color:#4a5568;margin-bottom:14px;line-height:1.6}
.webp-auth-btn-group{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.webp-btn-vip{background:linear-gradient(135deg,#f59e0b,#d97706)!important;color:#fff!important;border:none!important;box-shadow:0 4px 15px rgba(245,158,11,.3)}
.webp-btn-vip:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(245,158,11,.4)}
.webp-btn-single{background:#fff!important;color:var(--primary,#667eea)!important;border:2px solid var(--primary,#667eea)!important}
.webp-btn-single:hover{background:rgba(102,126,234,.05)!important}
.webp-usage-info{display:flex;align-items:center;gap:10px;margin:10px 0;justify-content:center}
.webp-usage-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;background:linear-gradient(135deg,#fef3c7,#fde68a);color:#92400e;border-radius:20px;font-size:12px;font-weight:600}
.webp-usage-badge-paid{background:linear-gradient(135deg,#d1fae5,#a7f3d0);color:#065f46}
.webp-usage-count{font-size:13px;color:#718096}
.webp-usage-count strong{color:var(--primary,#667eea);font-size:16px}

.webp-main {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 600px;
}

.webp-file-list {
    min-height: 100%;
}

.webp-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: #a0aec0;
}

.webp-placeholder i {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
    color: #cbd5e0;
}

.webp-placeholder p {
    font-size: 16px;
    margin: 0;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

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

.file-item .file-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.file-item .file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.file-item .file-name {
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item .file-meta {
    font-size: 12px;
    color: var(--text-light);
}

.file-item .file-status {
    font-size: 12px;
    color: var(--text-light);
}

.file-item .file-status.converted {
    color: #48bb78;
    font-weight: 600;
}

.file-item .file-download {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #edf2f7;
    color: #4a5568;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    cursor: pointer;
}

.file-item .file-download:hover {
    background: #48bb78;
    color: #fff;
}

.file-item .file-remove {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fed7d7;
    color: #e53e3e;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 6px;
}

.file-item .file-remove:hover {
    background: #e53e3e;
    color: #fff;
}

.file-actions {
    display: flex;
    align-items: center;
}

.webp-btn-outline {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.webp-btn-outline:hover {
    border-color: #e53e3e;
    color: #e53e3e;
    background: #fff5f5;
}

@media (max-width: 1024px) {
    .webp-container {
        flex-direction: column;
    }
    .webp-sidebar {
        width: 100%;
    }
    .webp-main {
        min-height: 400px;
    }
}
