/* 主要样式文件 */


/* 全局样式重置 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* 网页字体 */

@font-face {
    font-family: 'siyuanheiti-regular';
    src: url('//s.cdn-static.cn/font/思源黑体CN-Regular.otf')
}

* {
    font-family: "siyuanheiti-regular", "Microsoft YaHei" !important;
}


/* Logo部分 */

.logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo img {
    height: 47px;
}


/* PC端导航 */

.pc-nav {
    flex: 1;
    display: flex;
    align-items: center;
    margin-left: auto;
    justify-content: flex-end;
}

.nav-menu {
    flex: 1;
    display: flex;
    list-style: none;
    opacity: 0;
    width: 100%;
    justify-content: flex-end;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.6s ease;
    margin-right: 16.6%;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-item {
    cursor: pointer;
    padding: 0 2.5rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.19);
}

.nav-link {
    display: block;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.nav-item:hover .nav-link {
    color: rgba(255, 255, 255, 1);
}

.nav-item.active .nav-link {
    color: rgba(255, 255, 255, 1);
}


/* 菜单按钮 */

.menu-btn {
    position: relative;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.menu-btn::before,
.menu-btn::after,
.menu-btn span {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    transition: all 0.3s ease;
}

.menu-btn::before {
    top: 0;
}

.menu-btn span {
    top: 9px;
}

.menu-btn::after {
    bottom: 0;
}

.menu-btn.active::before {
    transform: translateY(9px) rotate(45deg);
}

.menu-btn.active span {
    opacity: 0;
    transform: scaleX(0);
}

.menu-btn.active::after {
    transform: translateY(-9px) rotate(-45deg);
}


/* 移动端导航 */

.mobile-nav {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -80%;
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.92);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 70px 20px 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-list {
    list-style: none;
}

.mobile-menu-item {
    margin: 15px 0;
}

.mobile-menu-link {
    display: block;
    padding: 10px 0;
    color: #303133;
    text-decoration: none;
    font-size: 16px;
}

.mobile-menu-item.active .mobile-menu-link {
    color: #303133;
    font-weight: bold;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    transition: all 0.3s ease;
}

.overlay.active {
    display: block;
}


/* 页面内容 */

.page-content {
    margin-top: 0;
    padding: 0;
}


/* 底部footer部分 */

.footer-section {
    background-color: #000;
    color: #fff;
    padding: 60px;
}

.footer-container {
    width: 100%;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-title p {
    font-size: 14px;
    color: #fff;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-item {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-item:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.social-item i {
    font-size: 16px;
    color: #fff;
}

.social-item .icon-douyin svg,
.social-item .icon-xiaohongshu svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.footer-right {
    flex: 1;
    min-width: 300px;
}

.footer-info p {
    font-size: 12px;
    color: #fff;
    line-height: 1.6;
    margin: 0;
    text-align: right;
}


/* 响应式设计 */

@media (min-width: 992px) and (max-width: 1199px) {
    .header-container {
        width: 992px;
    }
    .pc-nav {
        display: flex;
    }
    .mobile-nav {
        display: none;
    }
    .nav-item {
        padding: 0 1.2rem;
    }
}

@media (max-width: 992px) {
    .header-container {
        width: 100%;
    }
    .pc-nav {
        display: none;
    }
    .mobile-nav {
        display: block;
    }
}


/* 确保在1200px以上也保持100%宽度 */

@media (min-width: 1200px) {
    .header-container {
        width: 100%;
        max-width: 100%;
    }
}


/* 响应式设计 */

@media (max-width: 992px) {
    .hidden-mobile {
        display: none!important;
    }
    .hidden-pc,
    .hidden-ipad {
        display: block;
    }
}

@media (min-width: 993px) {
    .hidden-mobile {
        display: block;
    }
    .hidden-pc,
    .hidden-ipad {
        display: none;
    }
}