*{
    border: 0;
    padding: 0;
    margin: 0;
}
body a{
    text-decoration: none;
    color: black;
}
/* 头部 */
.header{
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.header-left{
    width: 15%;
    height: 100%;
    overflow: hidden;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left:-3%;
}
.header-left img{
    height: 100%;
    
}
.header-mid{
    width:55%;
    height: 100%;
    display: flex;
    justify-content:space-between;
    align-items: center;
}
.header-mid div{
    width: 25%;
    height: 100%;
    text-align: center;
    line-height: 100px;
    font-size: 30px;
    font-weight: bold;

}
.header-mid div a:hover{
    color: red;
}
.header-right{
    width: 15%;
    height: 100%;
}
.header-right div{
    float: left;
}
.header-right-search{
    width: 80%;
    height: 40px;
    margin-top: 30px;

}
.header-right-search input{
    width: 80%;
    padding:5% 2% 5% 2%;
    margin-left: 2%;
}
.header-right-search-img{
    width: 20px;
    height: 20px;
    overflow: hidden;
    margin: 10px 0 0 5px;
}
.header-right-search-img img{
    width: 100%;
}
.header-right-laguage{
    margin: 40px 0 40px 0;
}




@media screen and (max-width: 998px) {
    /* 1. 让 header 变成纵向流式布局 */
    .header {
        height: auto;
        padding: 10px 15px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    /* 2. Logo 区域：占一整行并居中 */
    .header-left {
        width: 100%;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
    }
    .header-left img {
        height: 100%;
        margin: 0;
    }

    /* 3. 右侧搜索：放在 Logo 下方，占一整行 */
    .header-right {
        order: 2;               /* 排在第三行 */
        width: 100%;
        height: 45px;
        display: flex;
        justify-content: center;
        margin: 10px 0;
    }
    .header-right-search {
        width: 90%;
        max-width: 400px;
        height: 100%;
        margin: 0;
        display: flex;
        align-items: center;
        border: 1px solid #ccc;
        border-radius: 20px;
        overflow: hidden;
    }
    .header-right-search input {
        flex: 1;
        height: 100%;
        border: none;
        outline: none;
        padding: 0 12px;
        font-size: 16px;
    }
    .header-right-search-img {
        width: 22px;
        height: 22px;
        margin: 0 10px;
        cursor: pointer;
    }

    /* 4. 导航：默认隐藏，点击汉堡后展开 */
    .header-mid {
        order: 1;               /* 排在第二行 */
        width: 100%;
        display: none;          /* 默认隐藏 */
        flex-direction: column;
        margin: 0 0 10px 0;
    }
    .header-mid.show {
        display: flex;          /* 配合 JS 加/去 show 类控制抽屉 */
    }
    .header-mid div {
        width: 100%;
        height: 50px;
        line-height: 50px;
        font-size: 20px;
        border-top: 1px solid #eee;
    }
    .header-mid div:last-child {
        border-bottom: 1px solid #eee;
    }

    /* 5. 汉堡按钮（纯 CSS 画三条杠） */
    .menu-toggle {
        position: absolute;
        top: 20px;
        right: 15px;
        width: 30px;
        height: 24px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background: #333;
        border-radius: 2px;
    }

    /* 6. 语言切换按钮：如果确实需要，可放在搜索框旁边 */
    .header-right-laguage {
        margin: 0 0 0 10px;
        line-height: 45px;
    }
}

/* 桌面端：按你原来的 100% 高度即可 */
.header-left img {
    height: 100%;
    max-height: 60px;   /* 新增：再大也不超过 60px */
    width: auto;
}

/* 移动端：<= 998px */
@media screen and (max-width: 998px) {
    .header-left {
        height: 50px;   /* 把整行高度再压一点 */
    }
    .header-left img {
        max-height: 40px; /* Logo 更小，不模糊 */
    }
}


/* 左半部分导航 */
.main-left{
    width: 30%;
    height: auto;
    margin-top: 130px;
    background-color: #ccc;
    border: 1px solid rgba(0,0,0,0);
    float: left;
    text-align: center;
}
.product-item{
    width: 50%;
    height: auto;
    margin: 0 auto;
}
.product-item{
    margin-top: 20px;
}
.product-item dd{
    margin: 10% 10%;
    font-size: 20px;
}

.main-right,.main-left{
    float: left;
}

.paging {
    text-align: center;
    margin-top: 20px;
}

.pagination {
    display: inline-block;
}

.pagination li {
    display: inline-block;
    margin: 0 5px;
}

.pagination li a {
    display: block;
    padding: 5px 10px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination li.active a {
    background-color: #005197;
    border-color: #005197;
    color: white;
}

.pagination li a:hover {
    background-color: #f1f1f1;
    border-color: #ccc;
}


@media screen and (max-width: 998px){

.main-right, .main-left{
    float: none;
}
.main-left{
    width: 100%;
}
.product-item{
    width: 60%;
}
}

/* ===== 通用搜索框 ===== */
.search-form{
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.search-label{
    flex: 1;
    height: 100%;
}

.search-input{
    width: 100%;
    height: 100%;
    padding: 0 12px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.search-btn{
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn img{
    width: 22px;
    height: 22px;
}

/* 屏幕阅读器专用隐藏文字 */
.sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* 桌面端：沿用你原来 .header-right-search 的外壳即可 */
@media screen and (min-width: 999px){
    .search-form{
        border: 1px solid #ccc;
        border-radius: 20px;
        overflow: hidden;
    }
}

/* 移动端：<= 998px —— 已经在原 @media 里把 .header-right-search 做成 90% 宽度，
   这里只需让搜索框内部弹性布局即可自动占满 */
@media screen and (max-width: 998px){
    .search-form{
        border: none;   /* 外层已画边框，内部不再重复 */
    }
}