/* 公共样式 */
.container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}



/* 主题色 */
:root {
    --primary-color: #367dc7;
    --text-color: #333;
    --bg-color: #fff;
}

/* Header样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.header .container {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    height: 80px;
}

.logo {
    order: 2;
}

.logo img {
    height: 80px;
    vertical-align: middle;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}



/* 导航菜单样式 */
.nav-item {
    position: relative;
}

/* Header导航样式 */
.nav > ul {
    display: flex;
    gap: 40px;
}

.nav-item > a {
    display: block;
    padding: 15px 0;
    color: var(--text-color);
    font-size: 16px;
    position: relative;
}

/* .nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s;
}

.nav-item:hover > a::after {
    width: 100%;
} */

/* 子菜单样式 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    /* padding: 15px; */
    border-radius: 4px;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s;
    min-width: 150px;
}

/* .nav-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
} */

.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(--primary-color);
}

.sub-menu li {
    list-style: none;
}

.sub-menu a {
    display: block;
    padding: 8px 0;
    color: #fff;
    font-size: 14px;
    text-align: center;
    transition: opacity 0.3s;
}

.sub-menu a:hover {
    opacity: 0.8;
} 

/* 导航菜单 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 移动端菜单按钮 */
.menu-btn {
    display: none !important;
    position: relative;
    z-index: 101;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.menu-btn span {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 导航菜单 */
.nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--primary-color);
    padding: 60px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 99;
    display: none;
}

.nav.active {
    transform: translateX(0);
    display: block;
}

/* 主导航列表布局 */
.nav > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.nav-item {
    width: calc(50% - 20px);  /* 一行两个，减去间距 */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 主菜单项样式 */
.nav-item > a {
    display: inline-block;
    text-align: left;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    /* margin-bottom: 15px; */
}

/* 子菜单样式 */
.sub-menu {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;  /* 添加底部间距 */
}

.sub-menu li {
    list-style: none;
}

.sub-menu li a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    padding: 8px 0;
    white-space: nowrap;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: #fff;
    padding: 60px 0 30px;
}

/* 页脚上半部分 */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
}

.footer-nav {
    display: flex;
    gap: 40px;
}

.footer-nav a {
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 0.8;
}

/* 页脚下半部分 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 二维码区域 */
.footer-qrcodes {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    width: 40%;
}

.qrcode-item {
    text-align: center;
}

.qrcode-item img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

/* 联系信息 */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    height: 100%;
    /* max-width: 800px; */
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
}

.contact-item .icon {
    width: 24px;
    height: 24px;
}

.contact-item .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-item .text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-item .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.contact-item .content {
    color: #fff;
    font-size: 16px;
}

/* 版权信息 */
.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-left: 20px;
}

.footer-copyright a:hover {
    color: #fff;
}

/* 移动端样式 */
@media screen and (max-width: 768px) {
    .menu-btn {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-color);
        padding: 20px;
        display: none;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav.active {
        transform: translateX(0);
    }
    
    .nav > ul {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-item > a {
        padding: 15px 0;
        color: #fff;
        font-size: 18px;
    }
    
    .sub-menu {
        position: static;
        width: 100%;
        background: rgba(255,255,255,0.1);
        padding: 10px 0;
        box-shadow: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        border-radius: 4px;
        margin: 5px 0;
        transform: translateX(0);
    }
    
    .sub-menu li {
        width: auto;
    }
    
    .sub-menu li a {
        padding: 8px 15px;
        color: rgba(255,255,255,0.8);
        font-size: 14px;
        border-radius: 4px;
    }
    
    .sub-menu li a:hover {
        background: rgba(255,255,255,0.2);
        color: #fff;
    }
    
    /* 页脚移动端布局 */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-left {
        width: 100%;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }

    .footer-contact {
        justify-content: center;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-contact-item i {
        margin-bottom: 8px;
    }

    .footer-contact-item span {
        font-size: 14px;
        line-height: 1.4;
    }

    .footer-right {
        width: 100%;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 40px;
    }

    .footer-nav-item {
        width: calc(50% - 20px);
        text-align: center;
    }

    .footer-nav-item h3 {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .footer-nav-links {
        gap: 8px;
    }

    .footer-nav-links a {
        font-size: 14px;
    }

    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links {
        justify-content: center;
    }

    .contact-info {
        flex-wrap: wrap;
    }
    
    .contact-item {
        width: calc(50% - 10px);
    }

    /* 移动端页脚样式 */
    .footer-top {
        flex-direction: column;
        text-align: center;
        padding-bottom: 20px;
    }

    .footer-logo {
        margin-bottom: 20px;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 30px;
    }

    .footer-qrcodes {
        order: 2;
        margin-top: 20px;
    }

    .contact-info {
        order: 1;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }

    .contact-item {
        width: calc(50% - 10px);
        align-items: center;
        text-align: center;
    }

    .contact-item .icon {
        margin-bottom: 10px;
    }

    .contact-item .text {
        align-items: center;
    }

    .footer-copyright {
        margin-top: 20px;
        padding-top: 20px;
        font-size: 12px;
    }

    .footer-copyright a {
        display: block;
        margin: 10px 0 0;
    }
    .header-nav {
        display: none !important;
    }
} 

