/* ========================================
   mt模板头部导航样式覆盖 - 向 047.shoutu.net 风格靠拢
   仅覆盖样式，不改动任何 HTML 结构和模板标签
   加载顺序: 在 style.css 和 mobile.css 之后
   ======================================== */

/* ===== 变量对齐 ===== */
:root {
    --mt-color: #26b2ff;
    --radius: 12px;
}

/* ===== .header 容器 → 目标 .head 风格 ===== */
.header {
    width: 100%;
    height: 70px;
    position: absolute;
    z-index: 9998;
    top: 0;
    vertical-align: middle;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent;
    box-shadow: none;
    max-width: none;
    flex-wrap: nowrap !important;
    gap: 0 !important;
}

.header.fixed {
    position: fixed;
    background: rgba(20, 20, 20, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ===== .header-left → 目标 .left 风格 ===== */
.header .header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex: 0 0 auto;
    min-width: 0;
    gap: 0;
}

/* ===== Logo ===== */
.header .logo-brand {
    display: inline-block;
    margin: 10px 0;
}

.header .logo-brand img {
    width: auto;
    height: 50px;
}

/* ===== .header_right → 搜索区域 ===== */
.header .header_right {
    align-items: center;
    display: flex;
    margin-left: 30px;
}

/* ===== .so-search → 目标 .this-search 风格 ===== */
.header .so-search {
    border: 1px solid hsla(0, 0%, 100%, 0);
    background: rgba(0, 0, 0, .2);
    background: linear-gradient(90deg, rgba(114, 214, 245, .2), rgba(200, 193, 221, .2) 50%, rgba(255, 148, 179, .2));
    height: 40px;
    line-height: 40px;
    border-radius: 21px;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 2px 4px transparent;
    width: 460px;
    margin: 0 15px 0 0;
    z-index: 23;
}

.header .so-search .flex-public {
    width: 100%;
    padding: 0 6px;
    display: flex;
    align-items: center;
    height: 100%;
}

/* ===== 搜索输入框 ===== */
.header input[type="text"],
.header .search-input input,
.header .so-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: hsla(0, 0%, 100%, .87);
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    outline: none;
    min-width: 0;
    width: auto;
    margin-left: 4px;
    text-indent: 0;
}

.header input[type="text"]::placeholder,
.header .so-search input::placeholder {
    color: hsla(0, 0%, 100%, .4);
}

/* 搜索框 placeholder 颜色 */
.header input::-webkit-input-placeholder { color: hsla(0, 0%, 100%, .5); }
.header input::-moz-placeholder { color: hsla(0, 0%, 100%, .5); }
.header input:-ms-input-placeholder { color: hsla(0, 0%, 100%, .5); }

/* ===== 搜索排行榜链接 ===== */
.header .search-hot {
    height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
    color: hsla(0, 0%, 100%, .6);
    white-space: nowrap;
    line-height: 40px;
}

/* ===== 搜索按钮 ===== */
.header .sllogo {
    height: 40px;
    cursor: pointer;
    border: 0;
    outline: 0;
    background: transparent;
    display: block;
    width: 32px;
    text-align: center;
    padding: 0;
}

.header .sllogo i {
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: #fff;
    background: var(--mt-color, #26b2ff);
    width: 32px;
    height: 32px;
    border-radius: 100%;
    text-align: center;
    line-height: 32px;
    margin-top: 4px;
}

.header .sllogo i:hover {
    opacity: .85;
    color: #fff;
}

/* ===== .header-center → 导航区域 ===== */
.header .header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 20px;
}

/* ===== .mt-topnav → 目标 .head-nav 风格 ===== */
.header .mt-topnav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
}

.header .mt-topnav-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    max-width: 100%;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header .mt-topnav-wrap::-webkit-scrollbar {
    display: none;
}

/* ===== 导航项 ===== */
.header .mt-topnav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: hsla(0, 0%, 100%, .87);
    font-size: 15px;
    font-weight: 400;
    line-height: 70px;
    height: 70px;
    padding: 0 14px;
    margin: 0;
    transition: color .3s;
    text-decoration: none;
    white-space: nowrap;
}

/* 取消原模板的 hover 缩放和下划线伪元素 */
.header .mt-topnav-item::before {
    display: none;
}

.header .mt-topnav-item:hover {
    color: var(--mt-color, #26b2ff);
    transform: none;
    text-shadow: none;
}

.header .mt-topnav-item:hover::before {
    transform: none;
}

/* ===== 当前选中导航项 ===== */
.header .mt-topnav-current {
    color: var(--mt-color, #26b2ff);
    font-weight: 700;
    text-shadow: none;
}

.header .mt-topnav-current::after {
    display: none;
}

/* ===== .margin 功能按钮区 ===== */
.header > .flex {
    display: flex;
    align-items: center;
}

.header .margin {
    height: 70px;
    line-height: 70px;
    position: relative;
    padding: 0 15px;
}

.header .margin i {
    font-size: 22px;
}

.header .margin em {
    -webkit-transition: all .3s;
    transition: all .3s;
    display: block;
    margin-top: 4px;
    height: 12px;
    line-height: 12px;
    font-size: 12px;
}

/* ===== .icon-title → 目标 .content-center 风格 ===== */
.header .icon-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    height: 70px;
    color: hsla(0, 0%, 100%, .6);
    transition: color .3s;
    cursor: pointer;
}

.header .icon-title:hover {
    color: var(--mt-color, #26b2ff);
}

/* ===== 播放记录下拉 ===== */
.header .mac_history .drop-content,
.header .drop-content {
    position: absolute;
    top: 65px;
    left: -104px;
    border-radius: var(--radius, 12px);
    background-color: rgba(18, 19, 24, .9);
    display: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
}

.header .mac_history:hover .drop-content,
.header .drop:hover .drop-content {
    display: block;
}

/* ===== 热门搜索列表 ===== */
.header .hot-search-list {
    position: absolute;
    width: 395px;
    padding-bottom: 10px;
    display: none;
    border-radius: var(--radius, 12px);
    margin-top: 5px;
    background-color: rgba(18, 19, 24, .95);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
}

.header .so-search:hover .hot-search-list,
.header .search_box:hover .hot-search-list {
    display: block;
}

.header .hot-search-list .title {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    padding: 8px 16px;
    color: hsla(0, 0%, 100%, .5);
}

.header .hot-search-list .hot-item {
    height: 32px;
    line-height: 32px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    padding: 0 16px;
    color: hsla(0, 0%, 100%, .8);
    text-decoration: none;
}

.header .hot-search-list .hot-item:hover {
    background-color: hsla(0, 0%, 100%, .03);
    color: var(--mt-color, #26b2ff) !important;
}

.header .hot-search-list .hot-item .order {
    position: absolute;
    left: 16px;
    text-align: left;
    width: 12px;
}

.header .hot-search-list .hot-item .hot-word {
    margin-left: 42px;
}

.header .hot-search-list .hot-item .tag {
    display: inline-block;
    margin-left: 8px;
    background-color: #fc4273;
    font-size: 12px;
    padding: 2px;
    border-radius: 3px;
    color: #fff;
}

/* ===== 用户头像 ===== */
.header .margin .avataruser {
    width: 40px;
    height: 40px;
    display: block;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.header .margin .avataruser img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
}

/* ===== 用户登录入口 ===== */
.header .margin .rmenuuser-wrap {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .margin .rmenuuser-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    height: 70px;
    color: hsla(0, 0%, 100%, .6);
    transition: color .3s;
    cursor: pointer;
}

.header .margin .rmenuuser-login em {
    display: block;
    margin-top: 5px;
    height: 12px;
    line-height: 12px;
    font-size: 12px;
    color: hsla(0, 0%, 100%, .6);
}

.header .margin .rmenuuser-login i {
    font-size: 22px;
    color: hsla(0, 0%, 100%, .6);
    transition: all .3s;
}

.header .margin .rmenuuser-login:hover,
.header .margin .rmenuuser-login:hover em,
.header .margin .rmenuuser-login:hover i {
    color: var(--mt-color, #26b2ff);
}

.header .margin .rmenuuser-login:hover {
    transform: none;
}

/* ===== 响应式 - 手机端 ===== */
@media screen and (max-width: 820px) {
    .header {
        padding: 0 12px;
        height: 91px;
        overflow: hidden;
        flex-wrap: wrap !important;
        gap: 0 !important;
    }

    .header.fixed {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
    }

    .header .header-left {
        flex: 1 1 auto;
        width: auto;
        gap: 8px;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .header .logo-brand {
        margin: 5px 0 0 0;
        display: flex;
        align-items: center;
    }

    .header .logo-brand img {
        height: 40px;
        max-width: 118px;
        object-fit: contain;
    }

    .header .header_right {
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 0;
    }

    .header .so-search {
        width: 100%;
        height: 36px;
        margin: 0;
        border-radius: 20px;
    }

    .header input[type="text"],
    .header .so-search input {
        width: 100%;
        min-width: 0;
        margin-left: 8px;
        font-size: 14px;
        height: 36px;
        line-height: 36px;
    }

    .header .search-hot {
        display: flex;
        align-items: center;
        white-space: nowrap;
        padding: 0 6px;
        font-size: 12px;
    }

    .header .sllogo {
        width: 38px;
        flex: 0 0 38px;
    }

    .header .sllogo i {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
        margin-top: 4px;
    }

    .header > .flex {
        width: auto;
        height: 44px;
        flex: 0 0 auto;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .header > .flex::-webkit-scrollbar {
        display: none;
    }

    .header .margin {
        height: 42px;
        padding: 0 8px;
        flex: 0 0 auto;
    }

    .header .margin .icon-title,
    .header .margin .rmenuuser-login {
        width: 42px;
        height: 42px;
        border-radius: 21px;
        line-height: 42px;
    }

    .header .margin .icon-title:hover,
    .header .margin .rmenuuser-login:hover {
        color: var(--mt-color, #26b2ff);
        transform: translateY(-1px);
    }

    .header .margin i {
        font-size: 20px;
    }

    .header .margin .rmenuuser-login i {
        font-size: 20px;
    }

    .header .margin .avataruser {
        width: 34px;
        height: 34px;
        margin-top: 4px;
    }

    .header .margin .rmenuuser-wrap {
        height: 42px;
    }

    /* 隐藏文字标签 */
    .header .margin em {
        display: none;
    }

    /* 导航区域 */
    .header .header-center {
        order: 3;
        width: 100%;
        height: auto;
        padding: 0;
        overflow: visible;
        flex: 1 1 auto;
        min-width: 0;
    }

    .header .mt-topnav {
        display: block;
        width: 100%;
        height: auto;
        background: transparent;
        border-bottom: none;
    }

    .header .mt-topnav-wrap {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        overflow-x: auto;
    }

    .header .mt-topnav-item {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        font-size: 16px;
        padding: 0 12px;
        line-height: 46px;
        height: 46px;
    }

    .header .mt-topnav-item:hover,
    .header .mt-topnav-item:active {
        color: var(--mt-color, #26b2ff);
        transform: translateY(-1px) scale(1.05);
        text-shadow: none;
    }

    .header .mt-topnav-current {
        color: var(--mt-color, #26b2ff);
        font-weight: 600;
    }

    /* 下拉菜单 */
    .header .drop-content,
    .header .hot-search-list {
        left: 0;
        right: 0;
        top: 48px;
        width: calc(100vw - 24px);
        max-width: none;
    }
}

@media screen and (max-width: 480px) {
    .header {
        padding: 8px 10px;
    }

    .header .logo-brand img {
        max-width: 96px;
    }

    .header .sllogo {
        width: 36px;
        flex-basis: 36px;
    }

    .header .header-center {
        padding: 0 8px;
    }

    .header .mt-topnav-item {
        font-size: 14px;
        padding: 0 9px;
    }
}

@media screen and (max-width: 375px) {
    .header .header_left {
        display: none;
    }

    .header .header-center {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 4px;
    }

    .header .mt-topnav-item {
        font-size: 13px;
        padding: 0 7px;
    }
}

/* ===== 大屏居中 ===== */
@media screen and (min-width: 1201px) {
    .header {
        max-width: 1400px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (min-width: 821px) and (max-width: 1200px) {
    .header .so-search {
        width: 320px;
    }

    .header .mt-topnav-item {
        padding: 0 10px;
    }

    .header .header_right {
        margin-left: 20px;
    }
}
