/* 电费代缴页面专用样式 */
.region-selector {
    position: relative;
}

.region-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.amount-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.amount-option:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.amount-option:hover {
    border-color: #E53935;
    box-shadow: 0 4px 8px rgba(229, 57, 53, 0.15);
    transform: translateY(-3px);
}

.amount-option:hover:before {
    opacity: 1;
}

.amount-option.active {
    border-color: #E53935;
    background-color: rgba(229, 57, 53, 0.05);
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2);
}

.amount-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.amount-desc {
    font-size: 13px;
    color: #E53935;
    font-weight: 500;
    position: relative;
    z-index: 1;
    background-color: rgba(229, 57, 53, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

/* 地区选择弹窗样式 */
.region-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.region-modal-container {
    width: 100%;
    max-width: 360px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.region-modal-header {
    padding: 15px;
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
}

.region-modal-header i {
    margin-right: 10px;
    font-size: 18px;
}

.region-modal-close {
    cursor: pointer;
    padding: 5px;
}

.region-modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.location-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #f5f5f5;
}

.location-option:hover {
    background-color: rgba(229, 57, 53, 0.1);
}

.location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(229, 57, 53, 0.1);
    border-radius: 50%;
    margin-right: 15px;
}

.location-icon i {
    color: #E53935;
    font-size: 16px;
}

.location-info {
    flex: 1;
}

.location-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.location-desc {
    font-size: 12px;
    color: #888;
}

/* 省市选择列表样式 */
.province-item, .city-item {
    padding: 12px 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.province-item:hover, .city-item:hover {
    background-color: #f5f5f5;
}

.province-item.active, .city-item.active {
    background-color: rgba(229, 57, 53, 0.1);
    color: #E53935;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.form-input {
    width: 100%;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #E53935;
    outline: none;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
}

.submit-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

/* 地址选择样式 */
.address-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.address-item:last-child {
    border-bottom: none;
}

.address-item:hover {
    background-color: rgba(229, 57, 53, 0.05);
}

.address-item.selected {
    background-color: rgba(229, 57, 53, 0.1);
    border-left: 3px solid #E53935;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.address-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.address-default-tag {
    display: inline-block;
    font-size: 12px;
    color: #E53935;
    border: 1px solid #E53935;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 8px;
}

.address-detail {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 弹窗动画 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 480px) {
    .address-item {
        padding: 12px;
    }
    
    .address-name {
        font-size: 15px;
    }
    
    .address-detail {
        font-size: 13px;
    }
}

/* 弹窗相关样式补充 */
.modal-overlay.active {
    display: flex !important; /* 强制显示 */
}

/* 适配响应式布局 */
@media (max-width: 768px) {
    .modal-container {
        width: 90%;
        max-width: 400px;
    }
}

/* 表单错误状态 */
.form-input.error, 
.form-input.error:focus {
    border-color: #E53935;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
    background-color: rgba(229, 57, 53, 0.05);
}

/* 错误提示动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-shake {
    animation: shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* 确认弹窗样式增强 */
.modal-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: modalScale 0.3s ease-out forwards;
    max-width: 380px;
    width: 90%;
}

.modal-header {
    background: linear-gradient(135deg, #E53935, #FF5252);
    position: relative;
    padding: 16px 20px;
}

.modal-header span {
    font-size: 18px;
    font-weight: 600;
}

.modal-header i {
    font-size: 18px;
    margin-right: 10px;
}

.modal-body {
    padding-left: 5px;
    padding-right: 5px;
}

.modal-info-row {
    margin-bottom: 12px;
    display: flex;
}

.modal-info-label {
    width: 90px;
    color: #666;
    font-size: 15px;
}

.modal-info-value {
    flex: 1;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-cancel {
    background-color: #f5f5f5;
    color: #666;
    border: none;
}

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

.modal-btn-confirm {
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

@keyframes modalScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 服务导航栏样式 */
.service-tabs {
    display: flex;
    background-color: white;
    border-bottom: 1px solid #eee;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-tab {
    padding: 15px 0;
    font-size: 16px;
    color: #666;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.service-tab:hover {
    color: #E53935;
    background-color: rgba(229, 57, 53, 0.05);
}

.service-tab.active {
    color: #E53935;
    font-weight: 600;
}

.service-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: #E53935;
    border-radius: 3px 3px 0 0;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* 容器样式调整 */
.container {
    margin-top: 0;
    padding-top: 0;
}

.notice-content {
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fafafa;
    line-height: 1.5;
    font-size: 14px;
    color: #666;
}

/* 自定义滚动条样式 */
.notice-content::-webkit-scrollbar {
    width: 6px;
}

.notice-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.notice-content::-webkit-scrollbar-thumb {
    background: #E53935;
    border-radius: 3px;
}

.notice-content::-webkit-scrollbar-thumb:hover {
    background: #FF5252;
}
