body {
    background-color: #f5f5f5;
}

.profile-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

.profile-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
}

.profile-form {
    padding: 40px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    flex: 1;
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2a2a2a;
    font-weight: normal;
    font-size: 13px;
}

.form-label.required::after {
    content: " *";
    color: #ff0000;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 24px;
}

.avatar-preview {
    width: 90px;
    height: 90px;
    border: 2px dashed #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
}

.avatar-preview:hover {
    border-color: #ff0000;
    background: #fff5f5;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-placeholder {
    color: #ccc;
    font-size: 32px;
    font-weight: 300;
}

.upload-info {
    flex: 1;
}

.upload-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff0000 0%, #ff3333 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.upload-btn:hover {
    background: linear-gradient(135deg, #e60000 0%, #ff1a1a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.upload-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upload-tips {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.form-actions {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #f5f5f5;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 8px;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff0000 0%, #ff3333 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e60000 0%, #ff1a1a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #fff;
    color: #666;
    border: 2px solid #e8e8e8;
}

.btn-secondary:hover {
    background: #f9f9f9;
    border-color: #ff0000;
    color: #ff0000;
    transform: translateY(-1px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 42, 42, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表单焦点状态增强 */
.form-group:focus-within .form-label {
    color: #ff0000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-container {
        margin: 20px 15px;
    }
    
    .profile-form {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .avatar-upload {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .btn {
        padding: 12px 24px;
        margin: 4px;
        min-width: 100px;
    }
}

/* 微动画 */
.form-group {
    transition: transform 0.2s ease;
}

.form-group:focus-within {
    transform: scale(1.01);
}

/* 注册车手资料区域 */
.driver-info-section {
    margin: 40px 0 30px 0;
    padding: 32px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 2px solid #ffe8e8;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(255, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.driver-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff0000 0%, #ff3333 50%, #ff0000 100%);
}

.driver-info-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #ffe0e0;
}

.driver-info-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2a2a2a;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.driver-info-subtitle {
    margin: 0;
    font-size: 13px;
    color: #ff0000;
    font-weight: 500;
}

.driver-fee-amount {
    margin-left: 4px;
    font-weight: 600;
}

.driver-info-content {
    background: #ffffff;
    padding: 24px;
    border-radius: 6px;
    border: 1px solid #f5f5f5;
}

.driver-textarea {
    min-height: 100px;
    line-height: 1.6;
}

.driver-payment-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px dashed #ffe0e0;
    text-align: center;
}

.pay-methods {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pay-method-item {
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
}

.pay-method-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pay-method-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    transition: all 0.25s ease;
}

.pay-method-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.pay-method-name {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.pay-method-item input[type="radio"]:checked + .pay-method-card {
    border-color: #ff0000;
    background: #fff5f5;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.12);
}

.pay-method-item input[type="radio"]:focus-visible + .pay-method-card {
    outline: 2px solid #ff8a8a;
    outline-offset: 1px;
}

.btn-payment {
    padding: 14px 40px;
    background: linear-gradient(135deg, #ff0000 0%, #ff3333 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.btn-payment:hover {
    background: linear-gradient(135deg, #e60000 0%, #ff1a1a 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.btn-payment:active {
    transform: translateY(-1px);
}

/* 响应式 - 注册车手区域 */
@media (max-width: 768px) {
    .driver-info-section {
        margin: 30px -20px 20px -20px;
        padding: 24px 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .driver-info-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .driver-info-title {
        font-size: 18px;
    }

    .driver-info-title::before {
        font-size: 20px;
    }

    .driver-info-subtitle {
        font-size: 12px;
    }

    .driver-info-content {
        padding: 20px 16px;
    }

    .driver-payment-section {
        margin-top: 20px;
        padding-top: 20px;
    }

    .pay-methods {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 14px;
        width: 100%;
        align-items: stretch;
    }

    .pay-method-item {
        width: 100%;
        display: block;
    }

    .pay-method-card {
        width: 100%;
        min-width: 0;
        justify-content: center;
        box-sizing: border-box;
    }

    .btn-payment {
        padding: 12px 32px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }
}



