/* 顶部欢迎语及ICON */
.textTop {
    padding: 8px;
    background-color: #f4f4f4;
    color: #333;
    position: relative;
    z-index: 1001;
}

.text01 {
    padding-left: 5%;
}

.text02 {
    float: right;
    padding-right: 5%;
}

.text02 a {
    color: #333;
    transition: color 0.3s ease;
    transition: all .3s ease;
}

.text02 a:hover {
    color: #1e40af;
    transition: all .3s ease;
}

/* 导航栏 */
nav {
    position: relative;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    height: 90px;
}

nav.scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
    z-index: 1000;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/*Logo*/
.logo {
    flex-shrink: 0;
    padding-left: 10%;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: width 0.3s ease, height 0.3s ease;
    position: relative;
    top: 3.5px;
}

.logo-text {
    font-family: 'Source Han Sans SC', 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 4px;
    white-space: nowrap;
    color: #000;
}





/* 菜单 */
.menu {
    list-style-type: none;
    display: flex;
    justify-content: center;
    flex: 1;
    padding: 0 10% 0 5%;
    margin: 0;
    align-items: center;
}

.menu>.menu-item {
    margin: 0 5px;
    position: static;
}

.menu>.menu-item>a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 35px;
    height: 90px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #333;
    position: relative;
    font-weight: 500;
    font-size: 16px;
}

.menu>.menu-item:hover>a {
    color: #fff;
    background: #dc2626;
}

.menu>.menu-item>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #dc2626;
    transition: width 0.3s ease;
}

.menu>.menu-item:hover>a::after {
    width: 90%;
}

/* 二级菜单 */
.submenu-wrapper {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.menu>.menu-item.has-children:hover .submenu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
    padding: 50px 0;
    min-height: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.submenu-container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(30, 64, 175, 0.05);
    border-radius: 50%;
}

.submenu-container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(30, 64, 175, 0.03);
    border-radius: 50%;
}

.submenu-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: auto;
    padding-left: 15%;
    padding-right: 15%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.submenu-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.submenu-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.submenu-desc {
    font-size: 13px;
    color: #888;
    line-height: 2;
    max-width: 800px;
}

.submenu-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 5px;
    max-width: 930px;
}

.submenu-items li {
    position: relative;
    width: calc(33.333% - 140px);
    margin-right: 140px;
    box-sizing: border-box;
}

.submenu-items li a {
    display: inline-flex;
    align-items: center;
    gap: 200px;
    padding: 10px 0;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 400;
    position: relative;
    white-space: nowrap;
}

.submenu-items li a::after {
    content: '›';
    font-size: 18px;
    color: #999;
    transition: all 0.3s ease;
}

.submenu-items li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ddd;
    transition: all 0.3s ease;
}

.submenu-items li a:hover {
    color: #1e40af;
}

.submenu-items li a:hover::after {
    color: #1e40af;
    transform: translateX(3px);
}

.submenu-items li a:hover::before {
    height: 2px;
    background: #1e40af;
}

.submenu-right {
    flex-shrink: 0;
    margin-left: 40px;
}

.submenu-right img {
    width: 800px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 汉堡菜单按钮 */
.burger-button {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.burger-button span {
    display: block;
    width: 30px;
    height: 3px;
    background: #333;
    margin: 6px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-button.active span:nth-child(2) {
    opacity: 0;
}

.burger-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* 移动端菜单覆盖层 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

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

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header .logo-text {
    font-size: 20px;
    letter-spacing: 2px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #666;
}

.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: background 0.3s ease;
}

.mobile-menu-item a:hover {
    background: #f8f9fa;
}

.mobile-menu-item.has-children > a::after {
    content: '›';
    font-size: 20px;
    color: #999;
    transition: transform 0.3s ease;
}

.mobile-menu-item.has-children.active > a::after {
    transform: rotate(90deg);
}

.mobile-submenu {
    display: none;
    background: #f8f9fa;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu li {
    border-bottom: 1px solid #eee;
}

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

.mobile-submenu li a {
    padding: 14px 20px 14px 45px;
    font-size: 14px;
    color: #666;
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .textTop {
        display: none;
    }
    
    nav {
        height: 70px;
    }
    
    .logo img {
        width: 70px;
        height: 70px;
        top: 0;
    }
    
    .logo-text {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .logo {
        padding-left: 20px;
    }
    
    .menu {
        display: none;
    }
    
    .burger-button {
        display: block;
    }
    
    .submenu-wrapper {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo img {
        width: 60px;
        height: 60px;
    }
}

