/* 火星榔官网 - 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background: #fff;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航 */
header {
    background: #fff;
    box-shadow: 0 2px 10px #eee;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
}

.nav {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    color: #333;
    font-size: 15px;
    cursor: pointer;
}

.menu a:hover {
    color: #ffa400;
}

/* 橙色底部栏 */
.footer-orange {
    background: #ffa400;
    color: #000;
    padding: 40px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.footer-left img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-left .title {
    font-size: 20px;
    font-weight: 500;
}

.footer-left .contact {
    font-size: 14px;
    line-height: 1.8;
}

/* 右侧整体容器：图标组 + 下方宽图 */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* 四个图标横向排列 */
.footer-icon-row {
    display: flex;
    gap: 25px;
    align-items: center;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.footer-item .icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    cursor: pointer;
}

.footer-item .text {
    font-size: 12px;
    white-space: nowrap;
}

/* 悬浮弹出二维码 */
.footer-item .qrcode {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    display: none;
    z-index: 999;
}

.footer-item:hover .qrcode {
    display: block;
}

.footer-item .qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图标下方宽图片 */
.footer-bot-img {
    width: 260px;
    height: auto;
    display: block;
}

/* 汉堡菜单按钮（默认桌面端隐藏） */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ============ 移动端适配 ============ */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav {
        height: clamp(52px, 14vw, 64px);
    }

    .logo img {
        height: clamp(32px, 9vw, 44px);
    }

    /* 显示汉堡按钮 */
    .menu-toggle {
        display: flex;
        width: clamp(24px, 7vw, 30px);
        height: clamp(18px, 5.5vw, 24px);
    }

    /* 菜单变为下拉面板，紧贴导航栏底部 */
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .menu.open {
        max-height: 360px;
    }

    .menu a {
        padding: clamp(12px, 4vw, 18px) 20px;
        font-size: clamp(14px, 4vw, 17px);
        border-bottom: 1px solid #f2f2f2;
    }

    /* 底部栏：纵向堆叠居中 */
    .footer-orange {
        padding: 30px 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
    }

    .footer-left {
        align-items: center;
        text-align: center;
    }

    .footer-left .title {
        font-size: 16px;
    }

    .footer-left .contact {
        font-size: 13px;
    }

    .footer-icon-row {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-item .icon {
        width: 42px;
        height: 42px;
    }

    /* 移动端无悬浮，二维码常驻显示在图标下方 */
    .footer-item .qrcode {
        position: static;
        transform: none;
        display: block;
        width: 90px;
        height: 90px;
        margin-top: 6px;
        box-shadow: none;
        padding: 0;
    }
}
