/* common.css - 公共样式文件，用于顶部导航和底部 */

/* 底部样式 */
.hanlian_footer {
    background-color: #2d3748;
    color: #fff;
    padding: 60px 0 0 0;
}

.hanlian_footer_content {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.hanlian_footer_content > div {
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.hanlian_footer_content > div:hover {
    transform: translateY(-5px);
}

.hanlian_footer_logo {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hanlian_footer_desc {
    color: #cbd5e0;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hanlian_footer_social {
    display: flex;
    gap: 15px;
}

.hanlian_footer_social a {
    width: 40px;
    height: 40px;
    background-color: #4a5568;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: background-color 0.3s;
}

.hanlian_footer_social a:hover {
    background-color: #3774EB;
}

.hanlian_footer_title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.hanlian_footer_links {
    list-style: none;
    padding-left: 0;
    text-align: center;
}

.hanlian_footer_links li {
    margin-bottom: 15px;
}

.hanlian_footer_links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    justify-content: center;
}

.hanlian_footer_links a:hover {
    color: #3774EB;
}

.hanlian_footer_contact_info {
    list-style: none;
}

.hanlian_footer_contact_info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #cbd5e0;
}

.hanlian_footer_contact_info i {
    margin-top: 5px;
    color: #3774EB;
}

.hanlian_footer_bottom {
    text-align: center;
    border-top: 1px solid #4a5568;
    color: #718096;
	padding:20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hanlian_footer_content {
        padding: 0 20px;
        gap: 30px;
        grid-template-columns: 1fr;
    }
    
    .hanlian_footer_content > div {
        padding: 20px 15px;
    }
    
    .hanlian_footer_logo {
        font-size: 24px;
        text-align: center;
    }
    
    .hanlian_footer_desc {
        text-align: center;
        font-size: 14px;
        line-height: 1.6;
    }
    
    .hanlian_footer_social {
        justify-content: center;
    }
    
    .hanlian_footer_social a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .hanlian_footer_title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .hanlian_footer_links a {
        justify-content: center;
        font-size: 14px;
        padding: 8px 0;
    }
    
    .hanlian_footer_links li {
        margin-bottom: 10px;
    }
    
    .hanlian_footer_contact_info li {
        justify-content: flex-start;
        text-align: left;
        font-size: 14px;
        padding-left: 10px;
    }
    
    .hanlian_footer_contact_info i {
        margin-top: 3px;
        min-width: 20px;
    }
}

@media (max-width: 480px) {
    .hanlian_footer {
        padding: 40px 0 0 0;
    }
    
    .hanlian_footer_content {
        gap: 25px;
    }
    
    .hanlian_footer_logo {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .hanlian_footer_desc {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .hanlian_footer_title {
        font-size: 16px;
    }
    
    .hanlian_footer_links a,
    .hanlian_footer_contact_info li {
        font-size: 13px;
    }
    
    .hanlian_footer_bottom {
        padding: 15px;
        font-size: 12px;
    }
}

/* 右侧在线客服样式 */
.hanlian_floating_service {
    position: fixed;
    right: 0px;
    bottom: 30%;
    background-color: #ED8936;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.hanlian_floating_service_item {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-size: 22px;
}

.hanlian_floating_service_item:hover {
    background-color: #dd7b28;
}

.hanlian_floating_service_item:first-child {
    border-radius: 8px 8px 0 0;
}

.hanlian_floating_service_item:last-child {
    border-radius: 0 0 8px 8px;
}

.hanlian_floating_service_tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1001;
}

.hanlian_floating_service_item:hover .hanlian_floating_service_tooltip {
    opacity: 1;
    visibility: visible;
    right: 55px;
}

.hanlian_floating_service_tooltip img {
    width: 120px;
    height: 120px;
    display: block;
    padding: 5px;
    background-color: white;
    border-radius: 4px;
}

.hanlian_floating_service_tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid rgba(0, 0, 0, 0.8);
}

/* 响应式设计 */


/* 移动端浮动客服样式 */
@media (max-width: 768px) {
    .hanlian_floating_service {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ED8936;  /* 保留原来的背景色 */
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 60px;
        z-index: 1000;
        padding: 5px 0;
        width: 100%;
        flex-direction: row;
    }

    .hanlian_floating_service_item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 25%;
        height: 50px;
        cursor: pointer;
        transition: all 0.3s;
        position: relative;
        margin: 0;
        border-radius: 8px;
    }

    .hanlian_floating_service_item:hover {
        background-color: rgba(255, 255, 255, 0.2);  /* 为悬停状态添加背景 */
    }

    .hanlian_floating_service_item i {
        font-size: 20px;
        color: white;  /* 改为白色图标以适应橙色背景 */
    }

    /* 工具提示居中显示，位置更靠上 */
    .hanlian_floating_service_tooltip {
        position: absolute;
        top: -70px;  /* 位置更靠上 */
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 1001;
        width: auto;
        min-width: 80px;
        text-align: center;
    }

    .hanlian_floating_service_tooltip::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: rgba(0, 0, 0, 0.8);
    }

    .hanlian_floating_service_tooltip img {
        width: 120px;
        height: auto;
        display: block;
        margin-top: 5px;
    }

    .hanlian_floating_service_item:hover .hanlian_floating_service_tooltip,
    .hanlian_floating_service_item:focus .hanlian_floating_service_tooltip {
        opacity: 1;
        visibility: visible;
    }
}

/* Header Styles */
.hanlian_header {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.hanlian_header_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1450px;
    margin: 0 auto;
    padding: 15px 20px;
}

.hanlian_header_logo {
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    text-decoration: none;
}

.hanlian_header_logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .hanlian_header_logo img {
        height: 32px;
    }
    
    .hanlian_header_container {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .hanlian_header_logo img {
        height: 28px;
    }
    
    .hanlian_header_container {
        padding: 10px 12px;
    }
}

.hanlian_header_nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hanlian_header_nav li {
    margin: 0 15px;
}

.hanlian_header_nav a {
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    transition: color 0.3s ease;
}

.hanlian_header_nav a.hanlian_active {
    color: rgb(237, 137, 54);
    font-weight: bold;
    position: relative;
}

.hanlian_header_nav a.hanlian_active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(237, 137, 54);
    border-radius: 2px;
}

.hanlian_header_nav a:hover {
    color: rgb(237, 137, 54);
}

.hanlian_header_right {
    display: flex;
    align-items: center;
}

.hanlian_header_search_btn {
    background: none;
    border: none;
    font-size: 18px;
    margin-right: 15px;
    cursor: pointer;
    color: #333333;
}

.hanlian_header_trial_btn {
    background-color: rgb(237, 137, 54);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 15px;
    transition: background-color 0.3s ease;
}

.hanlian_header_trial_btn:hover {
    background-color: rgb(220, 120, 40);
}

.hanlian_header_menu_btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333333;
}

.hanlian_header_search_box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.hanlian_header_search_box input {
    width: calc(100% - 80px);
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.hanlian_header_search_box button {
    width: 80px;
    padding: 10px;
    background-color: #333333;
    color: #ffffff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Fixed header on scroll */
.hanlian_header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hanlian_header_nav li {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .hanlian_header_nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .hanlian_header_nav ul {
        flex-direction: column;
        padding: 15px;
    }
    
    .hanlian_header_nav li {
        margin: 10px 0;
    }
    
    .hanlian_header_menu_btn {
        display: block;
    }
    
    .hanlian_header_trial_btn {
        display: none;
    }
    
    .hanlian_header_search_box input {
        width: calc(100% - 70px);
    }
    
    .hanlian_header_search_box button {
        width: 70px;
    }
}

@media (max-width: 480px) {
    .hanlian_header_logo {
        font-size: 20px;
    }
    
    .hanlian_header_search_btn {
        font-size: 16px;
        margin-right: 10px;
    }
    
    .hanlian_header_menu_btn {
        font-size: 18px;
    }
}

/* 为了解决移动端横向滚动条问题添加的样式 */
body {
    overflow-x: hidden;
}

/* 移动端浮动客服样式 */
@media (max-width: 768px) {
    .hanlian_floating_service {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ED8936;  /* 保留原来的背景色 */
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 60px;
        z-index: 1000;
        padding: 5px 0;
        width: 100%;
        max-width: 100vw;  /* 限制最大宽度为视口宽度 */
        flex-direction: row;
    }

    .hanlian_floating_service_item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 25%;
        height: 50px;
        cursor: pointer;
        transition: all 0.3s;
        position: relative;
        margin: 0;
        border-radius: 8px;
    }

    .hanlian_floating_service_item:hover {
        background-color: rgba(255, 255, 255, 0.2);  /* 为悬停状态添加背景 */
    }

    .hanlian_floating_service_item i {
        font-size: 20px;
        color: white;  /* 改为白色图标以适应橙色背景 */
    }

    /* 工具提示居中显示，位置更靠上 */
    .hanlian_floating_service_tooltip {
        position: absolute;
        top: -70px;  /* 位置更靠上 */
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 1001;
        width: auto;
        min-width: 80px;
        text-align: center;
    }

    .hanlian_floating_service_tooltip::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: rgba(0, 0, 0, 0.8);
    }

    .hanlian_floating_service_tooltip img {
        width: 120px;
        height: auto;
        display: block;
        margin-top: 5px;
    }

    .hanlian_floating_service_item:hover .hanlian_floating_service_tooltip,
    .hanlian_floating_service_item:focus .hanlian_floating_service_tooltip {
        opacity: 1;
        visibility: visible;
    }
}