/* ==========================================
   上传区域样式模块 - Upload Styles
   包含：上传区域、按钮等
   ========================================== */

.upload-section {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 上传区域 */
.upload-area {
    border: 3px dashed rgba(255, 144, 0, 0.4);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 144, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff9000, transparent, #ff9000);
    border-radius: 22px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.upload-area:hover::after {
    opacity: 0.3;
}

.upload-area.dragover {
    border-color: rgba(0, 0, 0, 0.6);
    background: rgba(40, 30, 50, 0.6);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 144, 0, 0.2);
}

.upload-area:hover {
    border-color: rgba(255, 144, 0, 0.6);
    background: rgba(35, 30, 45, 0.6);
    box-shadow: 0 15px 30px rgba(255, 144, 0, 0.15);
}

.upload-area.paste-active {
    border-color: rgba(76, 175, 80, 0.6);
    background: rgba(30, 50, 30, 0.6);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.2);
}

.upload-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    color: #ff9000;
    filter: drop-shadow(0 0 10px rgba(255, 144, 0, 0.3));
}

.upload-icon i {
    background: linear-gradient(135deg, #ff9000 0%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upload-text {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
}

.upload-subtext {
    color: #aaaaaa;
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.upload-btn {
    background: linear-gradient(135deg, #ff9000 0%, #000000 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(255, 144, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.upload-btn:hover::before {
    left: 100%;
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 144, 0, 0.4);
}

.file-input {
    display: none;
}

.file-input:focus + .upload-area {
    border-color: rgba(255, 144, 0, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 144, 0, 0.2);
}

/* 粘贴提示 */
.paste-hint {
    color: #888888;
    font-size: 0.95rem;
    margin-top: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.paste-hint::before {
    font-family: "Font Awesome 7 Pro";
    content: "\f11c";
    font-size: 1rem;
    font-weight: 900;
}

.paste-hint:hover {
    color: #ff9000;
    opacity: 1;
    transform: translateY(-2px);
    cursor: default;
}

.paste-hint:hover::before {
    content: "\f0ea";
    transform: scale(1.1);
}

.upload-area.paste-hint-active .paste-hint {
    color: #ff9000;
    opacity: 1;
    transform: scale(1.05);
}

.upload-area.paste-active .paste-hint {
    color: #4CAF50;
    opacity: 1;
    transform: scale(1.1);
}

.upload-area.paste-active .paste-hint::before {
    content: "\f00c";
    animation: pasteSuccess 0.6s ease;
}
