/* 全局样式重置 - 移除白色边框 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background: #fff;
    overflow-x: hidden;
}

/* 隐藏滚动条 */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 头部样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: none;
}

.header .container {
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* 确保头部容器样式优先级最高 */

/* 确保头部导航样式优先级最高 */
.header .nav-list {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 30px !important;
}

.header .nav-menu {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    margin-left: 145px !important;
}

.header .nav-item {
    position: relative !important;
}

.header .nav-link {
    text-decoration: none !important;
    color: #333 !important;
    font-size: 16px;
    font-weight: 500 !important;
    padding: 10px 0 !important;
    transition: none !important;
    display: block !important;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
    margin-left: 65px;
}

/* Logo样式 */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-img {
    width: 230px;
    height: 100%;
    object-fit: contain;
}

/* 导航菜单样式 */
.nav-menu {
    max-width: 1600px;
    flex: 1;
    display: flex;
    justify-content: center;
    margin-left: 100px;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    transition: none;
    position: relative;
}

.nav-link:hover {
    color: #30318b !important;
    font-weight: 600 !important;
}

.nav-link.active {
    color: #30318b !important;
    font-weight: 600 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #30318b;
    transition: none;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 0 !important;
}

.nav-link.active::after {
    width: 30px !important;
    background: #30318b !important;
    height: 3px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* 下拉箭头样式 */
.dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #333;
    margin-left: 5px;
    transition: none;
}

.nav-link.active .dropdown-arrow {
    border-top-color: #30318b !important;
}

/* 确保头部导航样式优先级最高 */
.header .nav-link:hover {
    color: #30318b !important;
    font-weight: 600 !important;
}

.header .nav-link.active {
    color: #30318b !important;
    font-weight: 600 !important;
}

.header .nav-link:hover::after {
    width: 0 !important;
}

.header .nav-link.active::after {
    top: 62px;
    width: 30px !important;
    background: #30318b !important;
    height: 3px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.header .nav-link.active .dropdown-arrow {
    border-top-color: #30318b !important;
}

/* 搜索框样式 */
.search-box {
    position: relative;
}

.search-box form {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px 10px;
    border: 1px solid #e9ecef;
    transition: none;
}

.search-box form:focus-within,
.search-box form.focused {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    background: #fff;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
    width: 140px;
    padding: 5px 10px;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.search-btn:hover {
    color: #e74c3c;
}

/* 移动端菜单按钮 */
.sm-navmenubox {
    display: none;
    text-align: center;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 5px;
    padding: 7px;
    box-sizing: border-box;
}

.menu-icon {
    width: 32px;
    height: 32px;
    fill: #30318b;
}

/* 移动端下拉菜单 */
.sm-dropdown-menu {
    display: none;
    position: fixed;
    background-color: #30318b;
    border: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    top: 70px;
    right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.sm-dropdown-menu.show {
    display: block;
}

.sm-dropdown-menu .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sm-dropdown-menu.show .mobile-menu-close {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

.sm-dropdown-menu .mobile-menu-close:hover {
    color: #feca0a;
    transform: scale(1.1);
}

.sm-dropdown-menu .mobile-menu-close svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.sm-dropdown-menu .navmenuitem {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 600;
    display: block;
    font-size: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease, background-color 0.2s ease;
}

.sm-dropdown-menu.show .navmenuitem {
    opacity: 1;
    transform: translateY(0);
}

.sm-dropdown-menu.show .navmenuitem:nth-child(2) { transition-delay: 0.05s; }
.sm-dropdown-menu.show .navmenuitem:nth-child(3) { transition-delay: 0.1s; }
.sm-dropdown-menu.show .navmenuitem:nth-child(4) { transition-delay: 0.15s; }
.sm-dropdown-menu.show .navmenuitem:nth-child(5) { transition-delay: 0.2s; }
.sm-dropdown-menu.show .navmenuitem:nth-child(6) { transition-delay: 0.25s; }
.sm-dropdown-menu.show .navmenuitem:nth-child(7) { transition-delay: 0.3s; }
.sm-dropdown-menu.show .navmenuitem:nth-child(8) { transition-delay: 0.35s; }
.sm-dropdown-menu.show .navmenuitem:nth-child(9) { transition-delay: 0.4s; }

.sm-dropdown-menu .navmenuitem:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sm-dropdown-menu .navmenuitem.active {
    color: #feca0a !important;
    font-weight: bold !important;
}



@media (max-width: 768px) {
    .header .container {
        padding: 0 15px !important;
    }
    
    .header-content {
        height: 70px;
        margin-left: 0;
        padding: 0;
        justify-content: space-between;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
        justify-content: flex-start;
    }
    
    .logo-img {
        max-width: 150px;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .header .nav-menu {
        display: none !important;
    }
    
    .header .nav-list {
        display: none !important;
    }
    
    .header .nav-item {
        display: none !important;
    }
    
    .header .nav-link {
        display: none !important;
    }
    
    .search-box {
        display: none;
    }
    
    .sm-navmenubox {
        display: flex;
        order: 3;
        margin-left: auto;
    }
    
    .sm-dropdown-menu {
        top: 70px;
        max-height: calc(100vh - 70px);
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 12px !important;
    }
    
    .header-content {
        height: 60px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
        justify-content: flex-start;
    }
    
    .logo-img {
        max-width: 120px;
    }
    
    .sm-dropdown-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
    }
    
    .sm-dropdown-menu .mobile-menu-close {
        top: 15px;
        right: 15px;
        padding: 8px;
    }
    
    .sm-dropdown-menu .mobile-menu-close svg {
        width: 20px;
        height: 20px;
    }
    
    .sm-dropdown-menu .navmenuitem {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .sm-navmenubox {
        padding: 8px;
    }
    
    .menu-icon {
        width: 28px;
        height: 28px;
    }
}


.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}



.nav-link.active {
    color: #30318b !important;
    font-weight: 600 !important;
}

@media (max-width: 1600px) {
    .header .container {
        max-width: 1400px !important;
    }
    
    .header-content {
        padding: 0 20px;
    }
    
    .nav-list {
        gap: 25px;
    }
    
    .search-input {
        width: 200px;
    }
    
    .nav-link {
        font-size: 15px !important;
    }
    
    .logo-img {
        max-height: 50px;
    }
    
    .header .nav-link.active::after {
        top: 60px !important;
        width: 28px !important;
    }
}

/* 媒体查询 - 1500px */
@media (max-width: 1500px) {
    .header .container {
        max-width: 1300px !important;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .search-input {
        width: 180px;
    }
    
    .logo-img {
        max-height: 45px;
    }
    
    .nav-link {
        font-size: 14px !important;
    }
    
    .header .nav-link.active::after {
        top: 58px !important;
        width: 26px !important;
    }
}


@media (max-width: 1400px) {
    .header .container {
        max-width: 1200px !important;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .nav-list {
        gap: 18px;
    }
    
    .search-input {
        width: 160px;
    }
    
    .logo-img {
        max-height: 42px;
    }
    
    .nav-link {
        font-size: 13px !important;
    }
    
    .header .nav-link.active::after {
        top: 56px !important;
        width: 24px !important;
    }
}


@media (max-width: 1300px) {
    .header .container {
        max-width: 1100px !important;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .nav-list {
        gap: 15px;
    }
    
    .search-input {
        width: 150px;
    }
    
    .logo-img {
        max-height: 40px;
    }
    
    .nav-link {
        font-size: 12px !important;
    }
    
    .header .nav-link.active::after {
        top: 54px !important;
        width: 22px !important;
    }
}


@media (max-width: 1200px) {

    
    .header-content {
        padding: 0 15px;
    }
    
    .nav-list {
        gap: 12px;
    }
    
    .search-input {
        width: 140px;
    }
    
    .logo-img {
        max-height: 38px;
    }
    
    .nav-link {
        font-size: 11px !important;
    }
    
    .header .nav-link.active::after {
        top: 52px !important;
        width: 20px !important;
    }
}


@media (max-width: 1100px) {
    .header .nav-menu{
        margin-left: 100px !important;
    }
    

    
    .header-content {
        padding: 0 15px;
    }
    
    .nav-list {
        gap: 10px;
    }
    
    .search-input {
        width: 130px;
    }
    
    .logo-img {
        max-height: 36px;
    }
    
    .nav-link {
        font-size: 10px !important;
    }
    
    .header .nav-link.active::after {
        top: 50px !important;
        width: 18px !important;
    }
}


@media (max-width: 1000px) {
    .header .nav-menu{
        margin-left: 80px !important;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .nav-list {
        gap: 10px;
    }
    
    .search-input {
        width: 120px;
    }
    
    .logo-img {
        max-height: 34px;
    }
    
    .nav-link {
        font-size: 13px;
    }
}
@media (max-width: 900px) {
    .logo-img {
        max-height: 28px;
    }
    
    .search-input {
        font-size: 10px;
        width: 110px;
    }
    
    .search-box form {
        border-radius: 25px;
        padding: 4px 5px;
        border: 1px solid #e9ecef;
        font-size: 9px;
        transition: none;
    }
    .header .nav-list{
        gap: 15px !important;
    }
}