/* --- 头部 Header --- */
.header-container {
    /* 模拟效果图背景，实际请替换为背景图 */
    background: url(https://209.hnjtjt.com/images/header.png) no-repeat center center;
    background-size: cover;
}

.header-container .header-content {
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

/* 标题文字装饰 */
.site-title {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    top: -25px;
}

/* 搜索框 */
.search-box {
    display: flex;
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    position: relative;
    top: 33px;
}

.search-box input {
    border: none;
    outline: none;
    padding: 5px;
    width: 200px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

@media (max-width: 1000px) {
    .header-content {
        justify-content: center !important;
    }
    .search-box {
        display: none;
    }
}

/* --- 响应式适配 --- */
@media (max-width: 768px) {
    .header-content {
        height: 150px !important;
        justify-content: space-between !important; /* 移动端：标题在左，菜单图标在右 */
        padding: 0 12px; /* 移动端：左右留白，避免贴边 */

    }

    .site-title {
        font-size: 24px;
        padding: 0 56px 0 0; /* 右侧预留菜单按钮空间 */
        text-align: left; /* 移动端：标题左对齐，接近效果图 */
        flex: 1; /* 让标题占满一行，方便把伪元素菜单按钮放到最右侧 */
        position: relative; /* 给伪元素定位使用 */
        cursor: pointer; /* 提示可点击打开菜单（移动端） */
    }

    .search-box {
        display: none;
    }

    /* 移动端：标题右侧“菜单小图标”（不新增 DOM，用伪元素绘制） */
    .site-title::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: #0056b3; /* 与导航主色一致 */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
        /* 三条横线（汉堡按钮） */
        background-image:
            linear-gradient(#ffffff, #ffffff),
            linear-gradient(#ffffff, #ffffff),
            linear-gradient(#ffffff, #ffffff);
        background-repeat: no-repeat;
        background-size: 18px 2px, 18px 2px, 18px 2px;
        background-position: center 11px, center 17px, center 23px;
    }
}