/* 自定义样式 */
    .watermark-preview {
        position: relative;
        display: inline-block;
        max-width: 100%;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .watermark-overlay {
        position: absolute;
        pointer-events: none;
        z-index: 10;
    }

    .watermark-text {
        color: rgba(255, 255, 255, 0.8);
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        white-space: nowrap;
    }

    .watermark-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* 确保select下拉框正确显示文本 */
    #quality-select {
        color: #374151 !important;
        font-size: 14px;
        line-height: 1.5;
        background-color: white !important;
    }

    #quality-select option {
        color: #374151;
        background-color: white;
    }

    /* 确保select在未展开时也能显示文本 */
    #quality-select:not([size]) {
        background-image: none;
    }

    .drag-area {
        border: 2px dashed #3b82f6;
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        transition: all 0.3s ease;
    }

    .drag-area.dragover {
        border-color: #2563eb;
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        transform: scale(1.02);
    }

    .file-item {
        background: white;
        border-radius: 0.375rem; /* rounded-md */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .file-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .progress-bar-container {
        height: 0.5rem; /* h-2 */
        overflow: hidden;
        border-radius: 9999px;
        background-color: #e5e7eb;
    }

    .progress-bar {
        height: 100%;
        min-height: 100%;
        border-radius: 9999px;
        background: linear-gradient(90deg, #3b82f6, #8b5cf6);
        transition: width 0.3s ease;
    }

    .watermark-position {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        max-width: 200px;
    }

    .position-btn {
        aspect-ratio: 1;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        background: white;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        max-width: 60px;
        max-height: 60px;
    }

    .position-btn:hover {
        border-color: #3b82f6;
        background: #f0f9ff;
    }

    .position-btn.active {
        border-color: #3b82f6;
        background: #3b82f6;
        color: white;
    }

    @keyframes pulse {
        0%,
        100% {
            opacity: 1;
        }
        50% {
            opacity: 0.5;
        }
    }

    .processing {
        animation: pulse 1.5s ease-in-out infinite;
    }
