/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* ==================== 页眉导航栏 ==================== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a5fa8 0%, #2d7dd2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.company-name {
    font-size: 20px;
    font-weight: bold;
    color: #1a5fa8;
}

.company-name-en {
    font-size: 12px;
    color: #666;
    font-family: Arial;
}

/* 中英文双语导航 */
.lang-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.lang-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
}

.lang-nav-item .zh {
    color: #1a5fa8;
    font-weight: bold;
}

.lang-nav-item .en {
    color: #666;
    font-size: 12px;
}

/* 中英文切换按钮 */
.lang-switch {
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.lang-btn:hover,
.lang-btn.active {
    background: #1a5fa8;
    color: white;
    border-color: #1a5fa8;
}

/* 主导航菜单 */
.main-nav {
    background: #1a5fa8;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    background: #2d7dd2;
}

.nav-menu li .en-text {
    font-size: 12px;
    opacity: 0.8;
    display: block;
}

/* 移动端汉堡菜单 */
.mobile-menu-btn {
    display: none;
    padding: 10px;
    background: #1a5fa8;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
}

/* ==================== 紧急联系入口（右侧悬浮） ==================== */
.contact-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    width: 50px;
    height: 50px;
    background: #1a5fa8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.contact-item:hover {
    background: #2d7dd2;
    transform: scale(1.1);
}

.contact-item .icon {
    font-size: 24px;
}

.contact-item .tooltip {
    position: absolute;
    right: 60px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    white-space: nowrap;
    display: none;
    color: #333;
    font-size: 14px;
}

.contact-item:hover .tooltip {
    display: block;
}

.contact-item .tooltip .phone {
    font-weight: bold;
    color: #1a5fa8;
}

.contact-item .tooltip .qrcode {
    width: 150px;
    height: 150px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border-radius: 8px;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #1a5fa8;
    color: white;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.footer-section h3 .en {
    font-size: 12px;
    opacity: 0.8;
    display: block;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
    display: block;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 80px;
    width: 40px;
    height: 40px;
    background: #1a5fa8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 998;
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    background: #2d7dd2;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 992px) {
    .header-top {
        flex-wrap: wrap;
    }

    .lang-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        flex-direction: column;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-float {
        right: 10px;
    }

    .contact-item {
        width: 40px;
        height: 40px;
    }

    .contact-item .icon {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .header-top {
        padding: 10px;
    }

    .logo {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .company-name {
        font-size: 16px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}