/* 添加设置面板样式 */
.settings-panel {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-label {
    font-size: 14px;
    font-weight: 500;
}

.tooltip {
    color: var(--text-light);
    cursor: help;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 工具提示样式 */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 5px;
}

.alert-container {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-error {
    background-color: rgba(239, 35, 60, 0.1);
    border-left: 4px solid var(--error-color);
    color: var(--error-color);
}

.alert i {
    font-size: 16px;
}

.file-constraints {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-top: -15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.file-constraints i {
    font-size: 14px;
}

:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #f72585;
    --background: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2b2d42;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --error-color: #ef233c;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header .subtitle {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 400;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-area p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.browse-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.browse-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.file-list-container {
    margin-bottom: 25px;
}

.file-list-container h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.file-list {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.empty-state {
    padding: 30px;
    text-align: center;
    color: var(--text-light);
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--border-color);
}

.empty-state p {
    font-size: 14px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background-color: white;
}

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

.file-item.dragging {
    opacity: 0.5;
    background-color: rgba(67, 97, 238, 0.1);
}

.file-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.file-name {
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.file-actions {
    display: flex;
    gap: 8px;
}

.preview-btn, .remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background-color: transparent;
    transition: all 0.2s ease;
}

.preview-btn {
    color: var(--primary-color);
}

.preview-btn:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.remove-btn {
    color: var(--error-color);
}

.remove-btn:hover {
    background-color: rgba(239, 35, 60, 0.1);
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 25px;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.action-btn.secondary {
    background-color: #f1f3f5;
    color: var(--text-color);
}

.action-btn.secondary:hover:not(:disabled) {
    background-color: #e9ecef;
}

.action-btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.action-btn.primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.tips {
    background-color: #f8f9fa;
    padding: 18px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.tips h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.tips ul {
    list-style-type: none;
    font-size: 14px;
}

.tips li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 20px;
}

.tips li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.preview-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #ccc;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 20px;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}