
.nav {
    border-radius: 4px;
    padding: 0 20px;
    position: relative;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* 汉堡按钮动画 */
.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav li {
    position: relative;
}

/* 有下拉菜单的项目样式 */
.nav li.has-dropdown > a::after {
    content: '▼';
    font-size: 8px;
    margin-left: 8px;
    color: #999;
    transition: transform 0.3s ease;
}

.nav li.has-dropdown:hover > a::after {
    transform: rotate(180deg);
    color: #007AFF;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: 500;
    padding: 20px 30px;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #007AFF;
}

.nav a.active {
    color: #007AFF;
}
.nav .has-dropdown a::before { 
    margin-right: 15px;
}
.nav>.nav-menu>li>a::before {
    content: '';
    transform: translateY(2em);
    display: block;
    height: 2px;
    background: #FFF;
}
.nav>.nav-menu>li>a.active::before {

    background: #007AFF;
}

/* 二级下拉菜单样式 - 竖向排列 */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    display: flex;
    flex-direction: column; /* 竖向排列 */
}

.nav li.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    width: 100%;
    margin-bottom: 0;
}

.nav-dropdown a {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    border-bottom: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: block;
    border-bottom: 1px solid #f5f5f5;
}

.nav-dropdown a:hover {
    background: #F8F9FA;
    color: #007AFF;
    padding-left: 24px;
}

.nav-dropdown li:last-child a {
    border-bottom: none;
}


/* Footer */
.footer {
    background: url("../images/sub-header-bg.jpg") no-repeat;
    background-size: cover;
    border-top: 2px solid #E8E8E8;
    padding: 40px 0;
       font-size: 18px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links p {
 
    color: #666;
    line-height: 1.4;
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width:80%
}


.footer-text-item {
    color: #666;
    line-height: 30px;
    padding-right: 10px;
  
}


@media (max-width: 768px) {
     .nav {
        padding: 0;
        width: 100%;
        position: absolute;
        top:40px;
        right:-10px;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    /* 移动端导航菜单 */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #E0E0E0;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        padding: 0;
        margin: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        margin-top: 20px;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 500px;
    }
    
    .nav li {
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .nav li:last-child {
        border-bottom: none;
    }
    

 
    .nav a {
        padding: 15px 20px;
        font-size: 16px;
        display: block;
        width: 100%;
        text-align: left;
        border-bottom: none;
    }
     .nav a.active::before {
        display: none;
    }
   
    
    /* 移动端下拉菜单隐藏 */
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f8f9fa;
        padding: 0;
        margin: 0;
        display: none; /* 默认隐藏 */
    }
    
    .nav li.has-dropdown.active .nav-dropdown {
        display: block;
    }
    
    .nav-dropdown a {
        padding: 10px 40px;
        font-size: 14px;
        color: #666;
        background: none;
    }
    
    .nav-dropdown a:hover {
        background: #e9ecef;
        padding-left: 44px;
    }
        .footer{font-size: 14px;}
    .footer-links{margin-bottom: 0;}
    .footer-text{width:100%;}
}

@media (max-width: 480px) {
    .nav a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .nav-dropdown a {
        padding: 8px 30px;
        font-size: 13px;
    }
    
    .nav-dropdown a:hover {
        padding-left: 34px;
    }
}

@media (max-width: 360px) {
     /* 360px断点移动端菜单按钮 */
    .mobile-menu-toggle {
        right: 10px;
    }
    
    .nav a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .nav-dropdown a {
        padding: 6px 25px;
        font-size: 12px;
    }
    
    .nav-dropdown a:hover {
        padding-left: 29px;
    }
}