.source-container {
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0.5rem;
    background-color: #fff;
    margin-bottom: 0.3rem;
    border-radius: 0.3rem;
    box-shadow: 0 0.05rem 0.2rem rgba(0, 0, 0, 0.1);
}

.source-input-row {
    display: flex;
    margin-bottom: 0.3rem;
    position: relative;
}

/* 修改按钮行样式，确保居中 */
.source-button-row {
    display: flex;
    justify-content: center;
    margin-top: 0.3rem;
}

/* 修改按钮样式 */
.source-button {
    width: 60%;
    height: 1rem;
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.35rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0.05rem 0.1rem rgba(0, 122, 255, 0.3);
    text-align: center;
    margin-left: 0; /* 移除左边距，确保居中 */
}

.source-input {
    flex: 1;
    height: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 0 0.4rem;
    font-size: 0.35rem;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
    box-shadow: inset 0 0.02rem 0.05rem rgba(0, 0, 0, 0.05);
}

.source-input:focus {
    border-color: #007AFF;
    background-color: #fff;
    box-shadow: 0 0 0 0.05rem rgba(0, 122, 255, 0.2);
    outline: none;
}

/* 删除这个重复的按钮样式定义 */
/* 
.source-button {
    width: 2rem;
    height: 1rem;
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 0.5rem;
    margin-left: 0.3rem;
    font-size: 0.35rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0.05rem 0.1rem rgba(0, 122, 255, 0.3);
}
*/

.source-button:hover {
    background-color: #0066CC;
    transform: translateY(-0.02rem);
    box-shadow: 0 0.08rem 0.15rem rgba(0, 122, 255, 0.4);
}

.source-button:active, .source-button.clicked {
    transform: scale(0.95);
    background-color: #0055CC;
}

.source-label {
    font-size: 0.35rem;
    margin-bottom: 0.15rem;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* 其余样式保持不变 */
.source-label:before {
    content: "";
    display: inline-block;
    width: 0.1rem;
    height: 0.35rem;
    background-color: #007AFF;
    margin-right: 0.15rem;
    border-radius: 0.05rem;
}

/* 添加输入框占位符样式 */
.source-input::placeholder {
    color: #aaa;
    font-size: 0.32rem;
}

/* 添加输入框清除按钮样式 */
.source-input-clear {
    position: absolute;
    right: 0.4rem; /* 修改位置，确保在输入框右侧 */
    top: 50%;
    transform: translateY(-50%);
    width: 0.4rem;
    height: 0.4rem;
    background-color: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.25rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.source-input-clear.visible {
    opacity: 1;
}

/* 添加按钮点击动画 */
.source-button.clicked {
    transform: scale(0.95);
    background-color: #0055CC;
}

/* 添加自定义模态框样式 */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    width: 80%;
    max-width: 8rem;
    border-radius: 0.3rem;
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 0.4rem;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.modal-title {
    font-size: 0.4rem;
    font-weight: bold;
    color: #333;
}

.modal-body {
    padding: 0.5rem;
    text-align: center;
}

.modal-body p {
    font-size: 0.35rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.modal-footer {
    display: flex;
    padding: 0.3rem;
    border-top: 1px solid #eee;
}

.modal-btn {
    flex: 1;
    padding: 0.25rem 0;
    font-size: 0.35rem;
    border: none;
    border-radius: 0.2rem;
    margin: 0 0.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-cancel-btn {
    background-color: #f2f2f2;
    color: #666;
}

.modal-confirm-btn {
    background-color: #007AFF;
    color: white;
}

.modal-cancel-btn:hover {
    background-color: #e5e5e5;
}

.modal-confirm-btn:hover {
    background-color: #0066CC;
}

.modal-btn:active {
    transform: scale(0.95);
}