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

/* 头部容器 */
.header {
    background: transparent;
    border-bottom: 1px solid transparent;
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* 头部悬停效果 */
.header:hover {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 滚动后的头部样式 */
.header.scrolled {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {

    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 70px;
    max-width: 1550px;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-icon {
    width: 50px;
    height: 40px;
    background: #ff6b35;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/logo-icon.png');
    background-size: 100% 100%;
}


.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
    letter-spacing: -0.5px;
}

/* 主导航 */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    margin-left: 40px;
}

.nav-item {
    position: relative;
}

/* 菜单项之间的竖线分隔符 */
.nav-item:not(:last-child)::after {
    content: "|";
    color: #D2D6D8;
    margin-left: 20px;

    font-size: 14px;
    font-weight: 300;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #222222;
    text-decoration: none;
    font-size: 16px;
    padding: 20px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ff6b35;
   
}

.main-nav .nav-list .nav-item .active {
    color: #ff6b35;
}

.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.arrow::before {
    content: "+";
}

/* 下拉菜单激活状态时，+ 变成 - */
.dropdown.active .arrow::before {
    content: "-";
}

/* 套餐定价特殊样式 */
.pricing-link {
    color: #ff6b35 !important;
}

.pricing-link:hover {
    color: #ff4500 !important;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

/* 第一层包裹 */
.subnav_box {
    width: 100%;
    height: auto;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 10;
    display: none;
}

/* 第二层包裹 */
.center_box {
    width: 1200px;
    height: auto;
    position: relative;
    /* z-index: 5; */
    margin: 0 auto;
}

.dropdown-menu {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0;
    width: 100%;
    position: static;
}



.dropdown.active .subnav_box {
    display: block;
}

.dropdown.active .arrow {
    transform: rotate(180deg);
}

/* 标题区域 */
.dropdown-header {
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    padding: 24px 30px 12px 30px;
    text-align: left;
    position: relative;
}

.dropdown-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: rgba(34, 34, 34, 0.1);
}

.dropdown-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

/* 菜单内容 */
.dropdown-content {
    display: flex;
    justify-content: flex-start;
    padding: 12px 30px 30px 30px;
    gap: 150px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
}

.dropdown-item {
    flex: none;
}

.dropdown-link {
    display: block;
    padding: 0;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    text-align: left;
    white-space: nowrap;
    line-height: 1.5;
}

.dropdown-link:hover {
    color: #ff6b35;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 8px 12px;
}

/* 右侧工具栏 */
.header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 语言选择器 */
.language-selector {
    position: relative;
}

.language-select {
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: #666666;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.language-select:hover,
.language-select:focus {
    border-color: #ff6b35;
}

/* 菜单切换按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.menu-line {
    width: 24px;
    height: 2px;
    background: #333333;
    transition: all 0.3s ease;
}

.menu-toggle:hover .menu-line {
    background: #ff6b35;
}

.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .main-nav.mobile-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #f5f5f5;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f8f9fa;
        margin-left: 20px;
        min-width: auto;
        transform: none;
    }

    .dropdown-header {
        border-radius: 0;
        border-bottom: 1px solid #e5e5e5;
        padding: 15px 20px;
    }

    .dropdown-list {
        border-radius: 0;
    }

    .dropdown-link {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 0;
    }

    .dropdown-list li:last-child .dropdown-link {
        border-radius: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .language-selector {
        order: -1;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 60px;
    }

    .logo-text {
        font-size: 20px;
    }

    .nav-list {
        gap: 0;
    }

    .header-tools {
        gap: 15px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu {
    animation: fadeInUp 0.3s ease;
}

/* 滚动效果（已移动到上面的滚动后头部样式中） */

/* 焦点样式 */
.nav-link:focus,
.dropdown-link:focus {
    outline-offset: 2px;
}

/* 高对比度支持 */
@media (prefers-contrast: high) {
    .header {
        border-bottom: 2px solid #000000;
    }
    
    .nav-link {
        color: #000000;
    }
    
    .nav-link:hover {
        color: #ff6b35;
        background: #f5f5f5;
    }
}
