/* ============================================
   公共底部样式
   包含：页脚、浮动咨询按钮、返回顶部
   ============================================ */

/* 页脚 */
.footer {
	background: #2a2d33;
	padding: 50px 0 0;
	color: #b0b3b8;
}
.footer .ft_main {
	display: flex;
	flex-wrap: wrap;
	padding-bottom: 40px;
	border-bottom: 1px solid #3a3d43;
}
.footer .ft_about {
	flex: 1;
	min-width: 300px;
	padding-right: 40px;
}
.footer .ft_about h3 {
	font-size: 22px;
	color: #fff;
	font-weight: normal;
	margin-bottom: 15px;
}
.footer .ft_about .ft_desc {
	font-size: 13px;
	color: #909399;
	line-height: 24px;
	margin-bottom: 20px;
}
.footer .ft_contact p {
	font-size: 14px;
	color: #b0b3b8;
	margin-top: 8px;
	line-height: 28px;
}
.footer .ft_contact .fa {
	color: #00b0a0;
	margin-right: 8px;
}
.footer .ft_contact strong {
	color: #00b0a0;
	font-size: 20px;
}
.footer .ft_nav, .footer .ft_course {
	flex: 0 0 180px;
	padding: 0 20px;
}
.footer .ft_nav h4, .footer .ft_course h4 {
	font-size: 16px;
	color: #fff;
	margin-bottom: 18px;
	padding-left: 12px;
	border-left: 3px solid #00b0a0;
}
.footer .ft_nav ul li, .footer .ft_course ul li {
	margin-bottom: 10px;
}
.footer .ft_nav ul li a, .footer .ft_course ul li a {
	font-size: 13px;
	color: #909399;
}
.footer .ft_nav ul li a:hover, .footer .ft_course ul li a:hover {
	color: #00b0a0;
	padding-left: 5px;
}
.footer .ft_bottom {
	text-align: center;
	padding: 20px 0;
}
.footer .ft_bottom p {
	font-size: 13px;
	color: #707378;
}
.footer .ft_bottom a {
	color: #707378;
	margin: 0 5px;
}
.footer .ft_bottom a:hover {
	color: #00b0a0;
}

/* Footer二维码区域 */
.ft_qrcode {
    flex: 0 0 200px;
    text-align: center;
    padding: 0 20px;
}
.ft_qrcode h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 3px solid #00b0a0;
    text-align: left;
}
.ft_qrcode .qrcode_img {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 10px;
}
.ft_qrcode .qrcode_img img {
    width: 120px;
    height: 120px;
    display: block;
    object-fit: cover;
}
.ft_qrcode p {
    font-size: 13px;
    color: #909399;
}

/* 浮动咨询窗口 */
.float_contact {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float_item {
    width: 54px;
    height: 54px;
    background: #00b0a0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,176,160,0.3);
}
.float_item:hover {
    background: #00988a;
    transform: scale(1.1);
}
.float_item i {
    font-size: 22px;
    color: #fff;
}
.float_item .float_tip {
    position: absolute;
    right: 65px;
    background: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.float_item .float_tip:after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: #fff;
}
.float_item:hover .float_tip {
    opacity: 1;
    visibility: visible;
}
.float_item .qrcode_popup {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    text-align: center;
    width: 150px;
}
.float_item:hover .qrcode_popup {
    opacity: 1;
    visibility: visible;
}
.qrcode_popup img {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto 10px;
    object-fit: cover;
    border-radius: 4px;
}
.qrcode_popup p {
    font-size: 13px;
    color: #666;
}
.float_item.back_top {
    opacity: 0;
    visibility: hidden;
}
.float_item.back_top.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式 - 平板适配 */
@media only screen and (max-width: 1200px) {
    .float_contact {
        right: 10px;
    }
    .float_item {
        width: 48px;
        height: 48px;
    }
    .float_item i {
        font-size: 20px;
    }
}

/* 响应式 - 移动端适配 */
@media only screen and (max-width: 768px) {
    /* 浮动咨询窗口 */
    .float_contact {
        bottom: 20px;
        top: auto;
        transform: none;
        right: 10px;
        flex-direction: row;
    }
    .float_item {
        width: 44px;
        height: 44px;
    }
    .float_item i {
        font-size: 18px;
    }
    .float_item .float_tip {
        right: auto;
        left: 50px;
        font-size: 13px;
        padding: 8px 14px;
    }
    .float_item .float_tip:after {
        right: auto;
        left: -8px;
        border-left-color: transparent;
        border-right-color: #fff;
    }
    .float_item .qrcode_popup {
        right: auto;
        left: 55px;
        transform: translateY(-50%);
        width: 130px;
    }
    .qrcode_popup img {
        width: 100px;
        height: 100px;
        margin: 0 auto 10px;
        object-fit: cover;
        border-radius: 4px;
    }
    
    /* Footer二维码 */
    .ft_qrcode {
        flex: 100%;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid #3a3d43;
        margin-bottom: 20px;
    }
    .ft_qrcode h4 {
        text-align: center;
        border-left: none;
        padding-left: 0;
    }
}

/* 兼容旧版响应式 - 800px */
@media only screen and (max-width: 800px) {
    .footer .ft_about, .footer .ft_nav, .footer .ft_course {
        flex: 100%;
        width: 100%;
        text-align: center;
        padding: 0 0 20px;
        border-bottom: 1px solid #3a3d43;
        margin-bottom: 20px;
    }
    .footer .ft_nav h4, .footer .ft_course h4 {
        border-left: none;
        padding-left: 0;
    }
    .footer .ft_contact p {
        text-align: center;
    }
    .footer {
        padding: 30px 0 0;
    }
}

/* 兼容旧版响应式 - 768px */
@media screen and (max-width: 768px) {
    .footer {
        position: relative;
        z-index: 100
    }
}
