body { font-family: sans-serif; transition: background-color 0.3s, color 0.3s; }
.glass { background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02); border-radius: 1rem; transition: all 0.3s; }
.dark .glass { background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.ui-input { width: 100%; border-radius: 0.5rem; outline: none; transition: border-color 0.2s; font-size: 0.875rem; background-color: #f8fafc; border: 1px solid #cbd5e1; color: #1e293b; }
.ui-input:focus { background-color: #ffffff; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1); }
.dark .ui-input { background-color: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); color: #ffffff; }
.dark .ui-input:focus { border-color: #6366f1; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb { background: #334155; }
[v-cloak] { display: none !important; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
.custom-checkbox { appearance: none; width: 16px; height: 16px; border: 2px solid #cbd5e1; border-radius: 4px; position: relative; cursor: pointer; transition: all 0.2s; background-color: #ffffff; }
.dark .custom-checkbox { border-color: rgba(255,255,255,0.3); background-color: rgba(0,0,0,0.5); }
.custom-checkbox:checked { background-color: #6366f1 !important; border-color: #6366f1 !important; }
.custom-checkbox:checked::after { content: '✔'; position: absolute; color: white; font-size: 10px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.custom-checkbox:indeterminate { background-color: #6366f1 !important; border-color: #6366f1 !important; }
.custom-checkbox:indeterminate::after { content: ''; position: absolute; width: 8px; height: 2px; background: white; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.custom-select-trigger { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem; border-radius: 0.5rem; cursor: pointer; transition: all 0.2s; border: 1px solid #cbd5e1; background-color: #f8fafc; color: #1e293b; }
.dark .custom-select-trigger { border-color: rgba(255, 255, 255, 0.1); background-color: rgba(0, 0, 0, 0.2); color: #e2e8f0; }
.custom-select-trigger:hover { border-color: #6366f1; }
.custom-select-dropdown { position: absolute; top: 110%; left: 0; right: 0; z-index: 50; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border: 1px solid #e2e8f0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); transform-origin: top center; animation: dropdownSlide 0.2s ease-out; }
.dark .custom-select-dropdown { border-color: rgba(255, 255, 255, 0.1); background: rgba(15, 23, 42, 0.95); }
.custom-option { padding: 0.5rem 0.75rem; cursor: pointer; transition: colors 0.1s; font-size: 0.875rem; }
.custom-option:hover { background-color: #f1f5f9; color: #6366f1; }
.dark .custom-option:hover { background-color: rgba(255, 255, 255, 0.1); color: white; }
.custom-option.selected { color: #6366f1; font-weight: 600; background-color: rgba(99, 102, 241, 0.05); }
@keyframes dropdownSlide { from { opacity: 0; transform: scaleY(0.95); } to { opacity: 1; transform: scaleY(1); } }
.slide-enter-active, .slide-leave-active { transition: transform 0.3s ease-in-out; }
.slide-enter-from, .slide-leave-to { transform: translateX(100%); }
.loading-dot { animation: loadingBounce 1s infinite ease-in-out both; }
.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes loadingBounce { 0%, 80%, 100% { transform: scale(0); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }
.char-avatar-overlay { opacity: 0; transition: opacity 0.2s; }
.char-avatar-container:hover .char-avatar-overlay { opacity: 1; }
.shortcut-remove { opacity: 0; transform: scale(0.8); transition: all 0.2s; }
.shortcut-item:hover .shortcut-remove { opacity: 1; transform: scale(1); }

/* New Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fadeInUp 0.3s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }

/* Mobile Optimizations */
@media (max-width: 640px) {
    /* Fix 100vh jitter on mobile browsers */
    #app {
        min-height: 100dvh;
        height: 100dvh;
    }
    
    /* Safe area padding for notched phones */
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Larger touch targets */
    .custom-select-trigger, 
    button, 
    .ui-input,
    select {
        min-height: 44px;
    }
    
    /* Prevent iOS zoom on focus */
    .ui-input, 
    textarea, 
    select,
    .custom-select-trigger {
        font-size: 16px !important;
    }
    
    /* Mobile visible controls (replacing hover) */
    .mobile-visible {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Better scrolling */
    .overflow-y-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Adjust dropdowns for mobile */
    .custom-select-dropdown {
        max-height: 300px;
        overflow-y: auto;
    }
    
    /* Fix modal width */
    .glass.w-full.max-w-md {
        max-width: calc(100vw - 32px);
    }
    
    /* Sticky bottom bar safe area */
    .sticky-bottom-safe {
        padding-bottom: calc(env(safe-area-inset-bottom) + 1rem);
    }
}

/* ===== 统一参考图上传组件样式 ===== */
.ref-upload-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 8px 8px 0 0;
}

.ref-upload-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: visible;
    background: rgb(241 245 249);
}
.dark .ref-upload-item {
    background: rgba(255,255,255,0.05);
}

.ref-upload-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.75rem;
}

/* 上传中遮罩 */
.ref-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    border-radius: 0.75rem;
}

/* SVG 环形进度条 (百分比在圆圈内部) */
.ref-progress-ring {
    width: 48px;
    height: 48px;
}
.ref-progress-ring .ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.2);
    stroke-width: 3;
}
.ref-progress-ring .ring-fg {
    fill: none;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.3s ease;
}

/* 删除按钮 */
.ref-delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239,68,68,0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    transform: scale(0.8);
    z-index: 10;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.ref-upload-item:hover .ref-delete-btn,
.ref-upload-item:focus-within .ref-delete-btn {
    opacity: 1;
    transform: scale(1);
}
/* 移动端始终显示删除按钮 */
@media (max-width: 768px) {
    .ref-delete-btn {
        opacity: 1;
        transform: scale(1);
    }
}

/* 失败状态 */
.ref-failed-overlay {
    position: absolute;
    inset: 0;
    background: rgba(239,68,68,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 0.75rem;
}

.ref-retry-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239,68,68,0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 2px 6px rgba(239,68,68,0.3);
}
.ref-retry-btn:hover {
    background: rgba(220,38,38,1);
    transform: scale(1.1);
}

.ref-error-text {
    font-size: 9px;
    color: rgb(239,68,68);
    font-weight: 600;
    text-align: center;
    max-width: 90%;
    line-height: 1.2;
}

/* ===== hover预览 高级气泡框 (仅文本工作台使用) ===== */
.ref-preview-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    min-width: 200px;
    max-width: 320px;
    border-radius: 14px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 9999;
    padding: 6px;
    /* 初始隐藏 + 弹出动画 */
    opacity: 0;
    transform: translateX(-50%) scale(0.92) translateY(6px);
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 旋转方块尖角 */
.ref-preview-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.06);
    z-index: -1;
}
/* hover 显示 — 弹出效果 */
.ref-upload-item:hover .ref-preview-tooltip,
.text-att-item:hover .ref-preview-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
}
/* 图片容器 */
.ref-preview-tooltip img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    display: block;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.03);
}
/* ---- 暗色模式气泡框 ---- */
.dark .ref-preview-tooltip {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(99, 102, 241, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dark .ref-preview-tooltip::after {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}
.dark .ref-preview-tooltip img {
    background: rgba(255, 255, 255, 0.03);
}
/* fixed 定位版 (文本工作台全局气泡框, 避免 overflow 裁切) */
.ref-preview-tooltip-fixed {
    position: fixed;
    /* 覆盖 absolute 版的 bottom/left/transform */
    bottom: auto;
    left: auto;
    transform: scale(1);
    opacity: 1;
    pointer-events: none;
}
.ref-preview-tooltip-fixed::after {
    /* 尖角在 fixed 模式下也正常显示 */
}
/* 移动端隐藏 hover 预览 */
@media (max-width: 768px) {
    .ref-preview-tooltip {
        display: none;
    }
}

/* 添加按钮 */
.ref-add-btn {
    aspect-ratio: 1;
    border: 2px dashed rgb(203 213 225);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    color: rgb(148 163 184);
    transition: all 0.15s;
}
.dark .ref-add-btn {
    border-color: rgba(255,255,255,0.2);
}
.ref-add-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99,102,241,0.05);
}

/* 序号徽章 */
.ref-order-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #6366f1;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    pointer-events: none;
    line-height: 1;
}
.dark .ref-order-badge {
    background: rgba(30,30,30,0.85);
    color: #818cf8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
/* 移动端序号徽章 - 稍小 */
.mobile-ref-item .ref-order-badge {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: 3px;
    left: 3px;
}

/* 拖拽状态 */
.ref-upload-item[draggable="true"],
.text-att-item[draggable="true"] {
    cursor: grab;
}
.ref-upload-item[draggable="true"]:active,
.text-att-item[draggable="true"]:active {
    cursor: grabbing;
}
.ref-upload-item.ref-dragging,
.text-att-item.ref-dragging {
    opacity: 0.4;
    transform: scale(0.95);
}
.ref-upload-item.ref-drag-over,
.text-att-item.ref-drag-over {
    outline: 2px solid #6366f1;
    outline-offset: -2px;
    border-radius: 12px;
}
.mobile-ref-item.ref-drag-over {
    outline: 2px solid #6366f1;
    outline-offset: -2px;
}
.text-att-item.ref-touch-dragging {
    opacity: 0.3;
}
/* 移动端拖拽中的克隆元素 */
.ref-touch-clone {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.85;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transform: scale(1.05);
    transition: transform 0.15s ease;
}
.mobile-ref-item.ref-touch-dragging {
    opacity: 0.3;
}

/* 初始上传框 */
.ref-empty-upload {
    width: 100%;
    height: 5rem;
    border: 2px dashed rgb(203 213 225);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
}
.dark .ref-empty-upload {
    border-color: rgba(255,255,255,0.2);
}
.ref-empty-upload:hover {
    border-color: #6366f1;
    background: rgba(99,102,241,0.03);
}

/* ===== 下载管理器样式 ===== */

/* 下载管理器进入/离开动画 */
.slide-up-enter-active,
.slide-up-leave-active {
    transition: all 0.3s ease-out;
}
.slide-up-enter-from,
.slide-up-leave-to {
    opacity: 0;
    transform: translateY(20px);
}

/* 下载管理器容器 */
.download-manager {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 进度条条纹效果 */
.bg-stripes {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

/* 条纹动画 */
@keyframes stripes {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 1rem 0;
    }
}

.animate-stripes {
    animation: stripes 0.5s linear infinite;
}

/* 下载按钮禁用状态 */
button:disabled .fa-download,
button:disabled .fa-cloud-download-alt {
    opacity: 0.5;
}

/* 下载按钮加载状态 */
.download-btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.download-btn-loading .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== 下载按钮高级呼吸特效 ===== */

/* 下载按钮呼吸动画 - 多层光晕 */
.download-btn-breathing {
    position: relative;
    z-index: 1;
    animation: download-glow 2s ease-in-out infinite;
}

/* 内层呼吸光晕 */
@keyframes download-glow {
    0%, 100% {
        box-shadow: 
            0 0 8px rgba(99, 102, 241, 0.3),
            0 0 16px rgba(139, 92, 246, 0.15),
            inset 0 0 6px rgba(255, 255, 255, 0.05);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 16px rgba(99, 102, 241, 0.5),
            0 0 32px rgba(139, 92, 246, 0.25),
            inset 0 0 10px rgba(255, 255, 255, 0.1);
        transform: scale(1.02);
    }
}

/* 扩散光环 (伪元素) */
.download-ring {
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    border: 2px solid rgba(99, 102, 241, 0.4);
    animation: download-ring-pulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes download-ring-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 下载箭头跳动动画 */
.download-arrow {
    animation: arrow-drop 1.5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes arrow-drop {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(2px);
        opacity: 0.8;
    }
}

/* 下拉面板动画 */
.dropdown-enter-active,
.dropdown-leave-active {
    transition: all 0.25s ease-out;
}

.dropdown-enter-from,
.dropdown-leave-to {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
}

/* 暗色模式适配 */
.dark .download-btn-breathing {
    animation: download-glow-dark 2s ease-in-out infinite;
}

@keyframes download-glow-dark {
    0%, 100% {
        box-shadow: 
            0 0 12px rgba(99, 102, 241, 0.4),
            0 0 24px rgba(139, 92, 246, 0.2),
            inset 0 0 8px rgba(255, 255, 255, 0.03);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(99, 102, 241, 0.6),
            0 0 40px rgba(139, 92, 246, 0.3),
            inset 0 0 12px rgba(255, 255, 255, 0.05);
        transform: scale(1.02);
    }
}

.dark .download-ring {
    border-color: rgba(139, 92, 246, 0.5);
}

/* ===== 环形进度条下载按钮 ===== */

/* 按钮容器 */
.download-btn-progress {
    position: relative;
    z-index: 1;
}

/* 进度圆环动画 - 平滑过渡 */
.progress-ring-circle {
    transition: stroke-dashoffset 0.35s ease-out;
    filter: drop-shadow(0 0 3px rgba(37, 99, 235, 0.5));
}

/* 下载箭头跳动动画 */
.download-arrow-bounce {
    animation: arrowBounce 1.2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(2px);
    }
}

/* 按钮悬停效果 */
.download-btn-progress:hover .progress-ring-circle {
    filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.7));
}

.download-btn-progress:hover .download-arrow-bounce {
    animation-duration: 0.6s;
}

/* 进度条流光效果 (可选) */
.download-btn-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(37, 99, 235, 0.1), 
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.download-btn-progress:hover::before {
    opacity: 1;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 暗色模式增强 - 玻璃质感 */
.dark .download-btn-progress {
    background: linear-gradient(135deg, 
        rgba(30, 64, 175, 0.45), 
        rgba(14, 116, 144, 0.35)
    ) !important;
    border: 1px solid rgba(96, 165, 250, 0.35) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 0 16px rgba(59, 130, 246, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.dark .download-btn-progress:hover {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.55), 
        rgba(14, 165, 233, 0.4)
    ) !important;
    border-color: rgba(147, 197, 253, 0.5) !important;
    box-shadow: 
        0 0 24px rgba(59, 130, 246, 0.45),
        0 6px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
    transform: scale(1.03);
}

/* 夜间模式文字更亮 */
.dark .download-btn-progress span {
    color: rgba(191, 219, 254, 0.95) !important;
}

.dark .download-btn-progress .text-blue-600 {
    color: rgba(147, 197, 253, 1) !important;
}

/* 完成状态闪烁 (100%时) */
.download-btn-complete .progress-ring-circle {
    animation: progressComplete 0.5s ease-out;
    stroke: #22c55e !important;
}

@keyframes progressComplete {
    0%, 100% { filter: drop-shadow(0 0 4px #22c55e); }
    50% { filter: drop-shadow(0 0 12px #22c55e); }
}

/* ===== 下载列表项删除按钮 ===== */

/* 下载项行 */
.download-item-row {
    position: relative;
}

/* 删除按钮 - 默认隐藏，悬停显示 */
.download-item-delete {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
    transition: all 0.2s ease-out;
}

.download-item-row:hover .download-item-delete {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* 删除按钮悬停效果 */
.download-item-delete:hover {
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* 移动端始终显示删除按钮 */
@media (max-width: 768px) {
    .download-item-delete {
        opacity: 0.7;
        transform: translateY(-50%) scale(0.9);
    }
}
