/*版心容器*/
.wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/*导航栏*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;

}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
}

/* Logo */
.logo {
    display: block;
    padding: 15px 0;
    color: #0A0F1C;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.logo h1 {
    display: none;
}

.logo img {
    width: 215px;
    height: 50px;
    object-fit: cover;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 18px 20px;
    color: #0A0F1C;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-link:hover {
    color: #0565C0;
}

.nav-menu .active {
    color: #0565C0;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: block;
    min-width: 200px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-item {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
}

/* 二级下拉菜单 */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    transform: translateX(10px);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #0A0F1C;
    margin: 3px 0;
    transition: 0.3s;
}

/* 菜单激活状态 */
.nav-menu.active {
    display: flex;
}

/*
   内容区域
   */
.content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.content h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.content p {
    margin-bottom: 15px;
}

/*
   底部
   */
.footer {
    background-color: #0565C0;
    color: #fff;
    padding: 40px 0;
}

.footer .wrapper .footer_bd {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 14px;
    line-height: 22px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

/* 响应式设计 */
/* 1200px 以下 */
@media (max-width: 1200px) {
    .nav-item:hover>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-submenu:hover>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .nav-container {
        padding: 0 15px;
    }
}

/* 992px 以下 */
@media (max-width: 992px) {
    .wrapper {
        padding: 0 20px;
    }

    .nav-link {
        padding: 15px 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .footer {
        padding: 30px 0;
    }

    .footer .wrapper .footer_bd {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
}

/* 768px 以下 */
@media (max-width: 768px) {
    .wrapper {
        padding: 0 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        flex-direction: column;
        background-color: #fff;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        background-color: #f8f9fa;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-link {
        padding-left: 40px;
    }

    .dropdown-submenu>.dropdown-menu {
        left: 0;
    }

    .dropdown-toggle::after {
        display: none;
    }

    .on {
        display: none;
    }

    .footer {
        padding: 20px 0;
    }

    .footer .wrapper .footer_bd {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .footer p {
        font-size: 12px;
        line-height: 18px;
        text-align: center;
    }
}