* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#app {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.big-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.top-box {
    width: 100%;
    height: 8vh;
    min-height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    background-color: #fff;
    z-index: 10;
    flex-shrink: 0;
}

.content {
    width: 100%;
    flex: 1;
    background: #ffffff;
    box-sizing: border-box;
    transition: height 0.3s ease;
    overflow: auto;
}

.top-box .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 400px;
}

.top-box .logo img {
    width: 50px;
    height: auto;
}

.top-box h4 {
    color: #0566c5;
    font-size: 25px;
    white-space: nowrap;
}

.nav-container {
    pointer-events: auto; /* 允许鼠标事件穿透容器 */
    z-index: 10; /* 确保导航在顶层，不被其他元素覆盖 */
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
    position: relative; /* 确保链接在容器内可见 */
    z-index: 11; /* 高于容器，确保点击有效 */
}

.nav-link:hover {
    color: #0566c5;
}

.nav-link.active {
    color: #0566c5;
    font-weight: bold;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0566c5;
}

.phone {
    font-size: 18px;
    display: flex;
    align-items: center;
    width: 150px;
    white-space: nowrap;
    gap: 5px;
}

/* 汉堡菜单样式 */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #0566c5;
    cursor: pointer;
    margin-right: 15px;
    padding: 5px;
    z-index: 100;
}

/* 轮播图样式补充 - 移除了鼠标样式设置 */
.swiper-container {
    touch-action: pan-y; /* 优化触摸体验，防止浏览器默认行为干扰 */
}

/* 平板设备适配 */
@media (max-width: 1024px) {
    .top-box .logo {
        width: auto;
    }

    .top-box h4 {
        font-size: 20px;
    }

    .nav {
        gap: 25px;
    }

    .nav-link {
        font-size: 15px;
    }

    .phone {
        font-size: 16px;
        width: auto;
    }
}

/* 移动设备适配 - 调整为更大的断点以适应现代大屏幕手机 */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .top-box {
        height: auto;
        padding: 10px 15px;
        flex-wrap: wrap;
    }

    .top-box .logo {
        flex: 1;
    }

    .top-box .logo img {
        width: 40px;
    }

    .top-box h4 {
        font-size: 16px;
    }

    .nav-container {
        width: 100%;
        order: 3;
        margin-top: 0;
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        background-color: #fff;
        border-top: 1px solid #eee;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 9;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

    .nav-container.active {
        max-height: 500px;
    }

    .nav {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
        border-bottom: 1px solid #f5f5f5;
    }

    .phone {
        font-size: 15px;
        margin-left: auto;
    }
}

/* 小屏手机适配 */
@media (max-width: 768px) {
    .top-box h4 {
        font-size: 14px;
    }

    .phone {
        display: none;
    }
}