/**
* 修饰
*/
.bg-white{background-color: #ffffff;}
.max-wd-50{max-width: 50%;}
.max-hg-90{max-height: 90%;}
.max-hg-80{max-height: 80%;}
.padding-1_5{padding: 1.5rem;}
.padding-bt-5{padding-bottom: 5rem;}
.hidden{display: none;}


/**
* 遮罩
*/
.my-full-layer{
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 50;
    inset: 0px;
    position: fixed;
    justify-content: center;
    align-items: center;
    width: 100vw;
    min-height: 100vh;
    display: flex;
}
.my-full-layer .layer-color{
    --tw-bg-opacity: 1;
    background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
    opacity: 0.5;
    inset: 0px;
    position: fixed;
}


/**
* 弹窗
*/
.my-modal{
    position: relative;
    height: 86dvh;
    margin-top: -2rem;
    width: 50%;
    border-radius: 1.0rem;
    display: flex;
    flex-direction: column;
}
.my-modal .modal-content{
    display: flex;flex-direction: column;overflow-y: auto;flex-grow: 1;
    /* 隐藏滚动条但保留功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.my-modal .modal-content::-webkit-scrollbar{display: none;}
.my-full-layer .close-modal{position: absolute;width: 2.6rem;height: 2.6rem;top: -2rem;right: -2.6rem;cursor: pointer;}

@media (max-width: 768px){
    .my-modal{
        width: 90%;
    }
    .my-full-layer .close-modal{width: 1.8rem;height: 1.8rem;top: -1rem;right: -1.2rem;}
}


/**
* 表单
*/
/* [公共] */
.my-form{}
.my-form .my-form-item{padding-bottom: .9rem;}
.my-form .my-form-item .label{padding-bottom: .2rem;color: #646464;font-size: .9rem;}
.my-form .my-form-item .label .must{color: #F56C6C;padding-left: .3rem;}
.my-form .my-form-item .label-value{width: 100%;font-size: .9rem;color: #646464;}
.my-form .my-form-banner{width: 100%;margin-bottom: .4rem;}
.my-form .my-form-banner img{border-radius: 1rem;}

/* [重写][input] */
.my-form .my-form-item .label-value .restyleText{border: 1px solid #ddd;width: 100%;height: 2.6rem;border-radius: .3rem;padding: 0 .8rem;}

/* [重写][checkbox] */
.my-form .my-form-item .checkbox-item{display: flex;align-items: center;flex-direction: row;color: #646464;}
.my-form .my-form-item .checkbox-item .restyleCheckbox{margin-right: 0.3rem;width: 1.1rem;height: 2.6rem;border: 1px solid #D9D9D9;}
.my-form .my-form-item .checkbox-item .checkbox-label{cursor: pointer;}
.my-form .my-form-item .checkbox-item .restyleElseText{border: 1px solid #ddd;border-radius: .3rem;padding: 0 .8rem;flex: 1;height: 2.6rem;}
.my-form .my-form-item .checkbox-item .checkbox-label{margin-right: .4rem;}

/* [错误处理] */
.my-form .my-form-item.error .restyleText{border: 1px solid #F56C6C;}
.my-form .my-form-item .errortip{color: #F56C6C;}
.my-form .my-form-item .error-fontsize{font-size: .8rem;}

/* [提交] */
.my-form .my-form-submit{background-color: #1883F6;color: #ffffff;font-size: 1rem;text-align: center;border-radius: .3rem;height: 3rem;line-height: 3rem;cursor: pointer;}
.my-form .my-form-submit:hover{background-color: #2563eb;}


/**
* 侧边工具条
*/
.sidebar {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    background-color: #2663EB;
    border-radius: .5rem;
    box-shadow: -1rem 0 1rem rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    position: relative;
    /* height: 4.5rem; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: .1rem solid rgba(255, 255, 255, 0.1);
    padding: .7rem .2rem;
    text-align: center;
}

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

.sidebar-item:hover {
    background-color: white;
    color: #2663EB;
}

.sidebar-item .icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: .3rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

.sidebar-item:hover .icon {
    filter: brightness(0) saturate(100%) invert(33%) sepia(93%) saturate(1035%) hue-rotate(199deg) brightness(93%) contrast(93%);
}

.sidebar-item span {
    font-size: .7rem;
    line-height: 1.2;
}


/* 电话咨询效果 */
.phone-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.phone-hover {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    color: #2663EB;
    padding: .8rem;
    border-radius: .6rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: -1rem 0 1rem rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-right: .4rem; /* 添加间距避免鼠标快速移动时失去hover */
}

.sidebar-phone:hover .phone-hover {
    opacity: 1;
    right: 3.8rem;
    pointer-events: auto;
}

/* 确保电话号码和按钮之间有重叠区域 */
.phone-hover::before {
    content: "";
    position: absolute;
    left: 100%;
    top: 0;
    width: 1rem;
    height: 100%;
}

/* 电话点击效果 */
/* .phone-popup {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    color: #2663EB;
    padding: 10px 15px;
    border-radius: 5px 0 0 5px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.phone-popup.show {
    opacity: 1;
    right: 60px;
    pointer-events: auto;
}

.phone-popup a {
    color: #2663EB;
    text-decoration: none;
    margin-right: 10px;
}

.phone-popup .close-btn {
    cursor: pointer;
    font-size: 12px;
} */


/* 顾问咨询效果 */
.sales-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sales-hover {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    color: #2663EB;
    padding: .8rem;
    border-radius: .6rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: -1rem 0 1rem rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-right: .4rem; /* 添加间距避免鼠标快速移动时失去hover */
    flex-direction: column;
}

.sidebar-sales:hover .sales-hover {
    opacity: 1;
    right: 3.8rem;
    pointer-events: auto;
}

/* 确保电话号码和按钮之间有重叠区域 */
.sales-hover::before {
    content: "";
    position: absolute;
    left: 100%;
    top: 0;
    width: 1rem;
    height: 100%;
}

.sales-hover img{
    width: 10rem;
    max-width: 10rem;
    height: 10rem;
    margin-bottom: .2rem;
}

.sales-hover span {
    color: #333;
    font-size: .8rem;
}


/* 移动端适配 */
@media (max-width: 768px) {
    .sidebar {
        /* width: 60px; */
    }
    
    .sidebar-item {
        height: 4rem;
        padding: .8rem .3rem;
    }
    
    .sidebar-item .icon {
        width: 1.2rem;
        height: 1.2rem;
        margin-bottom: .4rem;
    }
    
    .sidebar-item span {
        font-size: .7rem;
    }
    
    .sidebar-phone:hover .phone-hover {
        right: 3.8rem;
    }
    
    .phone-popup.show {
        right: 3.8rem;
    }
    
    .sidebar-qrcode:hover .qrcode-hover {
        right: 3.8rem;
    }
}
















/******************** 以下是原始内容 ********************/
/* Else Styles */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.hero-bg {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
.scroll-smooth {
    scroll-behavior: smooth;
}
/* Tab Styles */
.tab-button {
    transition: all 0.3s ease;
}
.tab-button.active {
    background-color: #2563eb;
    color: white;
}
.tab-button:not(.active) {
    background-color: #f3f4f6;
    color: #374151;
}
.tab-button:not(.active):hover {
    background-color: #e5e7eb;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}