/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* 主题色变量 */
:root {
    --theme-color: #0066cc;
    --theme-color-dark: #0055aa;
    --theme-color-light: #e6f0ff;
}

.outer {
    width: 100%;
    height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== 顶部导航栏样式 ==================== */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .navbar-bg {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: inline-block;
}

.logo img {
    display: block;
    height: 50px;
}

.logo a:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.right {
    display: flex;
}

.menu_list {
    display: flex;
    list-style: none;
}

.list_item {
    position: relative;
    margin-left: 20px;
    cursor: pointer;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
    display: block;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--theme-color);
}

.list_item.active .nav-link {
    color: var(--theme-color);
}

/* 下拉菜单样式 */
.sub_menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--theme-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    border-radius: 4px;
    list-style: none;
    margin-top: 10px;
}

.sub_menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--theme-color);
}

.nav_dropdown:hover .sub_menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub_menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sub_menu li:last-child {
    border-bottom: none;
}

.sub_menu span {
    padding: 10px 8px;
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.sub_menu span:hover {
    background-color: var(--theme-color-dark);
    color: #fff;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease;
}

/* ==================== 轮播图样式 ==================== */
.banner {
    width: 100%;
    text-align: center;
}

.swiper-slide {
    width: 100% !important;
}

.banner img {
    width: 100%;
    height: 100%;
}

/* 定位到 swiper 分页器容器 */
.swiper-pagination {
    bottom: 20px !important;
    user-select: none;
    /* 调整距离底部的位置 */
}

/* 定位到分页器中的每一个点 */
.swiper-pagination-bullet {
    background: #fff;
    /* 设置点的颜色 */
    opacity: 0.5;
    /* 设置点的透明度 */
    width: 16px;
    /* 设置点的宽度 */
    height: 16px;
    /* 设置点的高度 */
}

/* 激活状态下的分页器点 */
.swiper-pagination-bullet-active {
    background: #fff;
    /* 激活状态下的颜色 */
    opacity: 1;
    /* 激活状态下的透明度 */
}

/* ==================== 底部栏样式 ==================== */
.footer {
    background: linear-gradient(180deg, #121212, #1E3A8A);
    color: #fff;
    padding: 30px 0 20px;
}

.footer .footer_inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
}

/* 友情链接 */
.friend-links {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-links h4 {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 18px;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.links-container a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 3px;
}

.links-container a:hover {
    background-color: var(--theme-color);
    color: #fff;
}

/* 底部导航菜单 */
.footer-nav {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    text-align: left;
}

.footer-nav ul {
    display: flex;
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
}

.footer-nav li {
    margin: 0 10px 10px;
    cursor: pointer;
}

.footer-nav li span {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-nav li span:hover {
    color: var(--theme-color);
}

/* 底部主要内容区域 */
.footer-main {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    margin: 0 0 20px 0;
    padding: 0 15px;
    justify-content: flex-start;
}

/* 底部Logo */
.footer-logo {
    flex: 0 0 auto;
    width: 180px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* 联系信息 */
.contact-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.contact-item {
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
    display: block;
    white-space: nowrap;
}

.contact-item .label {
    font-weight: bold;
    color: #ccc;
}

.contact-item .value {
    color: #fff;
}

/* 版权信息 */
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}

.copyright a {
    color: #aaa;
    font-size: 14px;
}

.copyright a:last-child {
    color: #fff;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {

    /* 导航栏响应式 */
    .menu-toggle {
        display: block;
    }

    .logo {
        margin-right: 10px;
    }

    .logo img {
        width: 100%;
        height: auto;
    }

    .right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
        transition: all 0.3s ease;
    }
    
    .right.active {
        display: block;
    }
    
    .menu_list {
        flex-direction: column;
    }

    .nav_dropdown .sub_menu {
        display: none;
        padding-left: 15px;
    }
    
    .nav_dropdown.active .sub_menu {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }


    .list_item {
        margin: 0;
        border-bottom: 1px solid #f1f1f1;
    }

    .nav-link {
        padding: 15px;
        font-size: 18px;
    }

    .sub_menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 0;
        border-radius: 0;
        left: 0;
        background-color: var(--theme-color-dark);
        width: 100%;
    }

    .sub_menu::before {
        display: none;
    }

    .nav_dropdown.active .sub_menu {
        max-height: 500px;
    }

    .sub_menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .sub_menu a {
        padding: 12px 15px 12px 30px;
        color: #fff;
        font-size: 16px;
    }

    .sub_menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .nav_dropdown .nav-link::after {
        content: '+';
        float: right;
        transition: transform 0.3s ease;
    }

    .nav_dropdown.active .nav-link::after {
        content: '-';
    }

    .nav_dropdown:hover .sub_menu {
        transform: none;
    }

    /* 轮播图响应式 */
    .banner {
        height: 400px;
    }

    /* 底部响应式 */
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav li {
        margin: 5px 0;
    }

    .footer-main {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
    }

    .footer-logo {
        width: 100%;
        max-width: 180px;
        margin: 0 auto 40px;
    }

    .contact-info {
       text-align: center;
    }

    .contact-item {
        white-space: wrap;
    }

    .phone-indent {
        padding-left: 0;
    }

    .links-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    /* 轮播图响应式 */
    .banner {
        height: 390px;
    }
}

@media (max-width: 576px) {

    /* 轮播图响应式 */
    .banner {
        height: 210px;
    }

    /* 底部响应式 */
    .footer-logo {
        max-width: 150px;
    }

    .contact-item {
        font-size: 14px;
    }
}