.csic-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

.csic-title {
    font-size: 1.6rem;
    margin: 0 0 8px;
    color: #1d2327;
}

.csic-desc {
    color: #646970;
    margin: 0;
    font-size: 0.95rem;
}

/* ================== 拖拽区美化 ================== */
.csic-dropzone {
    position: relative;
    border: 2px dashed #d2d6dc;
    border-radius: 16px;
    background: #fbfcfd;
    padding: 52px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.csic-dropzone:hover,
.csic-dropzone.csic-dragover {
    border-color: #2271b1;
    background: #f0f7ff;
    box-shadow: 0 8px 24px rgba(34, 113, 177, 0.08);
}

.csic-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 图标 */
.csic-dropzone-inner svg {
    width: 56px;
    height: 56px;
    color: #8c9bab;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.csic-dropzone:hover .csic-dropzone-inner svg {
    color: #2271b1;
    transform: translateY(-4px);
}

.csic-dropzone.csic-dragover .csic-dropzone-inner svg {
    color: #2271b1;
    transform: translateY(-8px) scale(1.1);
}

/* 主文本 */
.csic-dropzone-inner p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3338;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* 按钮美化（点击选择） */
.csic-browse-btn {
    display: inline-block;
    background: #2271b1;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.3);
    line-height: 1.2;
}

.csic-browse-btn:hover {
    background: #135e96;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.4);
    transform: translateY(-1px);
}

.csic-browse-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(34, 113, 177, 0.3);
}

/* 提示文本 */
.csic-hint {
    font-size: 0.85rem;
    color: #8c9bab;
    margin: 20px 0 0 0 !important;
    font-weight: 400 !important;
}


/* ================== 设置面板 ================== */
.csic-settings {
    margin: 24px 0;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.csic-setting-row label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d2327;
}

.csic-quality-value {
    color: #2271b1;
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.csic-setting-row input[type="range"] {
    width: 100%;
    cursor: pointer;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #c3e0f2, #2271b1);
    border-radius: 3px;
    outline: none;
    margin-bottom: 4px;
}

.csic-setting-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 4px solid #2271b1;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s;
}

.csic-setting-row input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.csic-setting-row input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #fff;
    border: 4px solid #2271b1;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.csic-quality-hint {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #8c9bab;
    margin-top: 6px;
}

/* ================== 操作按钮 ================== */
.csic-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.csic-btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.csic-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.csic-btn-primary {
    background: #2271b1;
    color: #fff;
}

.csic-btn-primary:not(:disabled):hover {
    background: #135e96;
}

.csic-btn-ghost {
    background: transparent;
    border-color: #d2d6dc;
    color: #3c434a;
}

.csic-btn-ghost:hover {
    background: #f6f7f7;
    border-color: #8c9bab;
}

/* ================== 文件卡片 ================== */
.csic-file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.csic-file-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: box-shadow 0.2s;
}

.csic-file-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.csic-file-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f1;
    border: 1px solid #f0f0f1;
}

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

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

.csic-file-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1d2327;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csic-file-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.82rem;
    margin-top: 6px;
}

.csic-status {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.csic-status-pending      { background: #f0f0f1; color: #50575e; }
.csic-status-compressing  { background: #fcf9e8; color: #996800; }
.csic-status-done         { background: #edfaef; color: #00a32a; }
.csic-status-error        { background: #fcf0f1; color: #d63638; }

.csic-size {
    color: #646970;
    font-variant-numeric: tabular-nums;
}

/* 节省比例颜色 */
.csic-saving-down { color: #00a32a; font-weight: 600; }
.csic-saving-up { color: #d63638; font-weight: 600; }
.csic-saving-equal { color: #8c9bab; font-weight: 600; }

.csic-error {
    color: #d63638;
    font-size: 0.82rem;
    margin-top: 6px;
}

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

.csic-mini-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: 6px;
    border: 1px solid #d2d6dc;
    background: #fff;
    color: #3c434a;
    cursor: pointer;
    transition: all 0.2s;
}

.csic-mini-btn:hover {
    background: #f6f7f7;
    border-color: #8c9bab;
}

.csic-mini-btn.csic-download-one {
    background: #f0f6fc;
    color: #2271b1;
    border-color: #c3e0f2;
}

.csic-mini-btn.csic-download-one:hover {
    background: #e0f0fa;
    border-color: #2271b1;
}

/* ================== 格式选择按钮 ================== */
.csic-format-picker {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.csic-fmt-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    min-width: 150px;
    text-align: left;
    font-family: inherit;
}

.csic-fmt-btn:hover {
    border-color: #2271b1;
    background: #f8fbff;
}

.csic-fmt-btn.active {
    border-color: #2271b1;
    background: #f0f7ff;
    box-shadow: 0 0 0 1px #2271b1 inset;
}

.csic-fmt-btn.disabled,
.csic-fmt-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #e0e0e0 !important;
    background: #fafafa !important;
    box-shadow: none !important;
}

.csic-fmt-btn[disabled] .csic-fmt-name {
    color: #8c9bab;
}

.csic-fmt-name {
    font-weight: 700;
    color: #2271b1;
    font-size: 0.9rem;
}

.csic-fmt-line {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.csic-fmt-size {
    color: #1d2327;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.csic-fmt-note {
    color: #8c9bab;
    font-size: 0.75rem;
}

.csic-fmt-oversized {
    color: #d63638;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 2px 0;
}

.csic-file-size-line {
    font-size: 0.9rem;
    color: #1d2327;
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.csic-format-note {
    color: #2271b1;
    font-size: 0.75rem;
    background: #f0f6fc;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 6px;
}

/* ================== 响应式 ================== */
@media (max-width: 600px) {
    .csic-format-picker {
        flex-direction: column;
    }
    .csic-fmt-btn {
        width: 100%;
    }
    .csic-file-card {
        flex-wrap: wrap;
    }
    .csic-file-actions {
        width: 100%;
        justify-content: flex-end;
    }
}