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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.music-converter-wrapper {
    padding-top: 80px !important;
    min-height: 100vh !important;
}

.music-converter-wrapper .container {
    max-width: 800px !important;
    margin: 0 auto !important;
    background: white !important;
    border-radius: 20px !important;
    padding: 25px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
}

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

h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 16px;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 0.1px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
}

.upload-area:hover {
    border-color: #764ba2;
    background: #f8f7ff;
}

.upload-area.dragover {
    border-color: #764ba2;
    background: #f0efff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.upload-text {
    color: #333;
    font-size: 18px;
    margin-bottom: 5px;
}

.upload-hint {
    color: #999;
    font-size: 14px;
}

#fileInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-list {
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 10px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 24px;
}

.file-name {
    color: #333;
    font-size: 14px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-status {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-pending {
    background: #e3f2fd;
    color: #1976d2;
}

.status-converting {
    background: #fff3e0;
    color: #f57c00;
}

.status-success {
    background: #e8f5e9;
    color: #388e3c;
}

.status-error {
    background: #ffebee;
    color: #d32f2f;
}

.remove-btn {
    background: #ff5252;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.remove-btn:hover {
    background: #ff1744;
}

.download-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #388e3c;
}

.preview-btn {
    background: #3182ce;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.preview-btn:hover {
    background: #2c5282;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-convert {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-clear {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-clear:hover {
    background: #e0e0e0;
}

.progress-area {
    margin-bottom: 30px;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

footer {
    text-align: center;
}

.warning {
    color: #999;
    font-size: 13px;
}

.info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.info-box h3 {
    color: #0369a1;
    font-size: 18px;
    margin-bottom: 15px;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    color: #0c4a6e;
    font-size: 14px;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.info-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

.preview-area {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 1px solid #feb2b2;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.preview-area h3 {
    color: #c53030;
    font-size: 15px;
    margin-bottom: 10px;
}

.preview-title {
    padding: 5px 0;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #3182ce;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 手机端响应式样式 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .music-converter-wrapper {
        padding-top: 60px !important;
    }
    
    .music-converter-wrapper .container {
        padding: 15px !important;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .file-name {
        max-width: 180px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn-convert, .btn-clear {
        width: 100%;
    }
    
    #customer-service-float {
        bottom: 100px !important;
        right: 15px !important;
    }
    
    #customer-service-float .customer-service-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .customer-service-panel {
        width: 260px !important;
        right: 60px !important;
    }
}

/* 登录弹窗样式 */
#loginModal.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
    backdrop-filter: blur(5px) !important;
}

#loginModal.modal-overlay .modal-content {
    background: #fff !important;
    border-radius: 24px !important;
    max-width: 400px !important;
    width: 90% !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3) !important;
    animation: modalSlideIn 0.4s ease-out !important;
    overflow: hidden !important;
    border: none !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#loginModal.modal-overlay .modal-header {
    text-align: center !important;
    padding: 40px 30px 25px !important;
    background: #fff !important;
    color: #333 !important;
    border-bottom: none !important;
}

#loginModal.modal-overlay .modal-icon {
    font-size: 56px;
    margin-bottom: 18px;
}

#loginModal.modal-overlay .modal-header h2 {
    margin: 0 !important;
    font-size: 26px !important;
    color: #333 !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

#loginModal.modal-overlay .modal-body {
    text-align: center !important;
    padding: 20px 30px 35px !important;
    background: #fff !important;
    color: #666 !important;
}

#loginModal.modal-overlay .modal-body p {
    margin: 10px 0 !important;
    color: #666 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

#loginModal.modal-overlay .modal-footer {
    display: flex !important;
    gap: 14px !important;
    padding: 0 25px 30px !important;
    background: #fff !important;
    color: #333 !important;
    border-top: none !important;
}

#loginModal.modal-overlay .modal-btn {
    flex: 1 !important;
    padding: 16px 24px !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    text-align: center !important;
    display: inline-block !important;
    letter-spacing: 0.5px !important;
}

#loginModal.modal-overlay .modal-btn-cancel {
    background: #f5f5f5 !important;
    color: #666 !important;
}

#loginModal.modal-overlay .modal-btn-cancel:hover {
    background: #e8e8e8 !important;
    transform: translateY(-3px);
}

#loginModal.modal-overlay .modal-btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3) !important;
}

#loginModal.modal-overlay .modal-btn-primary:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e64a4a 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 107, 107, 0.4) !important;
}
