/* Header 组件样式 */
.header {
    background-color: #ffffff;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0 2rem;
    position:sticky;
    top: 0;
    z-index: 10;
}

/* 左侧菜单按钮 */
.menu-btn {
    width: 40px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px;
}

.menu-line {
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

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

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

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

/* 中间logo区域 */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    width: 94px;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.site-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
    margin-bottom: 2px;
}

.site-url {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

        /* 右侧导航 */
        .nav-right {
            display: flex;
            align-items: center;
            gap: 40px;
        }

.nav-item {
    font-size: 23px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #A0897B;
}

.search-btn {
    width: 26px;
    height: 26px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.dropdown-item {
    display: block;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 1040px) {
    .header {
        height: 100px;
        padding: 0 2rem;
    }

    .logo {
        width: 80px;
    }

    .site-title {
        font-size: 16px;
    }

    .site-url {
        font-size: 11px;
    }

    .nav-item {
        font-size: 20px;
        font-weight: bold;
    }

            .nav-right {
                gap: 30px;
            }

    .dropdown-item {
        font-size: 16px;
        font-weight: bold;
        padding: 14px 18px;
    }
}

@media (max-width: 640px) {
    .header {
        height: 80px;
        padding: 0 1.5rem;
    }
    .menu-btn {
        width: 35px;
        height: 25px;
    }
    .logo {
        width: 60px;
    }

    .site-title {
        font-size: 14px;
    }

    .site-url {
        font-size: 10px;
    }

    .nav-item {
        font-size: 12px;
        font-weight: bold;
    }

            .nav-right {
                gap: 20px;
            }

    .dropdown-item {
        font-size: 14px;
        font-weight: bold;
        padding: 12px 16px;
    }

    /* 移动端隐藏桌面导航 */
    .nav-desktop {
        display: none !important;
    }
}
