/* 自定义弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.show .custom-modal {
    transform: scale(1);
}

.modal-header {
    position: relative;
    width: 400px;
    height: 366px;
    background: url("../images/index/pop-bg.png") center no-repeat;
    background-size: cover;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    font-size: 40px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    color: #666;
}

.modal-icon {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e8 100%);
    border-radius: 8px;
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon::before {
    content: '';
    width: 40px;
    height: 30px;
    background: #4caf50;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #e8f5e8;
}

.modal-content {
    padding: 0 20px 20px;
    text-align: center;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.modal-message {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.modal-button {
    width: 252px;
    height: 48px;
    background: linear-gradient( 90deg, #7A9CFF 0%, #1F55F4 100%);
    box-shadow: 0px 4px 10px 0px rgba(25,94,255,0.21);
    border-radius: 24px;
    margin: 0 auto;
    font-weight: bold;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 48px;
    text-align: center;
    font-style: normal;
}

.modal-button:hover {
    background: linear-gradient(90deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-1px);
}

.modal-button:active {
    transform: translateY(0);
}

/* 服务弹窗特殊样式 */
.service-modal {
    max-width: 500px;
    width: 95%;
}

.modal-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    text-align: center;
}

.service-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.service-submit-btn {
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.service-submit-btn.loading {
    position: relative;
    color: transparent;
}

.service-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 统计卡片点击效果 */
.stat-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-item:active {
    transform: translateY(-2px);
}


.service-modal{
    width: 400px;
    height: 520px;
    background: linear-gradient( 180deg, #EAF5F8 0%, #CAE1FE 100%);
    border-radius: 16px;
}
.service-modal .modal-content{
    padding:0 44px;
}
.service-modal .modal-title{
    font-weight: 600;
    font-size: 34px;
    color: #04BBFF;
    line-height: 48px;
    text-align: center;
    font-style: normal;
    margin-top: 30px;
}
.service-modal .modal-subtitle{
    font-weight: 400;
    font-size: 16px;
    color: #405888;
    line-height: 22px;
    text-align: center;
    font-style: normal;
}

.form-group label{
    text-align: left;
    font-weight: 400;
    font-size: 14px;
    color: #405888;
    line-height: 20px;
}