/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.page {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 49px;
    margin-top: 8px;
}

.nav-container {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav {
    flex: 1;
}

.nav ul {
    display: flex;
    justify-content: flex-end;
    margin-right: 20px;
    width: 100%;
}

.nav ul li {
    padding: 0 15px;
    margin: 0;
    position: relative;
    text-align: center;
}

.nav ul li a {
    font-size: 18px ;
    font-weight: 300;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    display: block;
}

.nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #66cc33;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav ul li a:hover:after,
.nav ul li a.active:after {
    width: 100%;
}

.nav ul li a.active {
    color: #66cc33;
}

.nav ul li a.active:after {
    width: 100%;
}

.language-switch {
    margin-left: 10px;
}

.language-switch a {
    font-size: 12px;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span:nth-child(1) {
    transform: translateY(-2px);
}

.mobile-menu-toggle:hover span:nth-child(3) {
    transform: translateY(2px);
}

/* 移动端侧边栏 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
}

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

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-logo img {
    height: 40px;
}

.mobile-close {
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.mobile-search {
    display: none;
}

.mobile-nav ul {
    flex-direction: column;
}

.mobile-nav ul li {
    margin: 15px 0;
}

.mobile-nav ul li a {
    color: white;
    font-size: 16px;
    display: block;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav ul li a:hover {
    color: #66cc33;
    padding-left: 5px;
}

.mobile-language {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.mobile-language a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.mobile-language a.active {
    color: white;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* 优化PC端二级菜单交互 */
.nav li.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 134%;
    right: 0;
    left: 0;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0;
    display: none;
    z-index: 999;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    width: 150%;
    left: -24%;
}

.nav li.has-submenu:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 添加一个透明的连接区域，防止鼠标移动时菜单关闭 */
.nav li.has-submenu:after {
    content: '';
    position: absolute;
    height: 20px;
    width: 100%;
    bottom: -20px;
    left: 0;
    display: none;
}

.nav li.has-submenu:hover:after {
    display: block;
}

.submenu ul {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.submenu ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: block;
    text-align: center;
}

.submenu ul li:last-child {
    border-bottom: none;
}

.submenu ul li a {
    color: white;
    font-size: 14px !important;
    white-space: nowrap;
    padding: 10px 0;
    display: block;
    font-weight: 400;
    transition: all 0.3s ease;
}

.submenu ul li a:hover {
    color: #66cc33;
    background-color: rgba(0, 0, 0, 0.5);
    padding-left: 5px;
}

/* 移动端二级菜单样式 */
.mobile-nav li.has-submenu {
    position: relative;
}

.submenu-toggle {
    position: absolute;
    right: 0;
    top: 5px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-submenu {
    display: none;
    padding-left: 15px;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-submenu.active {
    display: block;
    max-height: 500px;
}

.mobile-submenu li {
    margin: 10px 0;
}

.mobile-submenu li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 页脚 */
.footer {
    background-color: #fff;
    color: #ccc;
    padding: 40px 0 30px;
    border-top: 1px solid #E7E7E7;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-category h5 {
    font-size: 14px;
    font-weight: normal;
    color: #323232;
    margin-bottom: 7px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    max-width: 675px;
}

.footer-links a {
    color: #323232;
    font-size: 12px;
    margin-right: 20px;
    white-space: nowrap;
    margin-bottom: 5px;
}

.contact-us {
    display: flex;
    align-items: center;
    border: 1px solid #A4A4A4;
    border-radius: 30px;
    padding: 3px 17px;
}

.contact-us img {
    width: 25px;
    height: 23px;
    margin-right: 10px;
}

.contact-us span {
    font-size: 16px;
    color: #040404;
}

.footer-logo img {
    height: 34px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto 0;
    padding: 0 20px;
    padding-top: 20px;
}

.footer-nav a {
    color: #666;
    font-size: 11px;
    font-weight: 300;
    margin-right: 15px;
}

.copyright {
    color: #666;
    font-size: 11px;
}

/* 通用按钮样式 */
.btn {
    display: inline-block;
    background-color: #66cc33;
    color: white;
    padding: 0 20px;
    height: 32px;
    line-height: 32px;
    border-radius: 16px;
    font-size: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: #99cc33;
}

/* 响应式媒体查询 */
@media (max-width: 1200px) {
    .nav ul li a {
        font-size: 16px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .header .container {
        flex-direction: row;
        padding: 0 20px;
        height: 65px;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .nav-container {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .footer-category, .contact-us, .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .footer-nav {
        margin-bottom: 15px;
    }
}

@media (min-width: 1440px) {
    .nav ul li a {
        font-size: 18px;
    }
    
    .language-switch a {
        font-size: 16px;
    }
} 



/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
  }
  
  .page-num {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  .page-num:hover {
    background-color: #f0f0f0;
  }
  
  .page-num-current {
    background-color: #66cc33;
    color: #fff;
  }

  .page-num {
    width: 32px;
    height: 32px;
    margin: 0 3px;
    font-size: 13px;
  }