* {
    box-sizing: border-box;
    padding: 0 0;
    margin: 0 0;
}
body, html {
    overflow-x: hidden;
}
:root {
    --color: #ffa836;
    /*--color: #fdb85c;*/

    --video-num-6: 6;
    --video-num-5: 5;
    --video-num-4: 4;
    --video-num-3: 3;

    --l-video-intervel: 14px;
    --s-video-intervel: 6px;
}
body {
    margin: 0;
    color: #444;
    /*font-family: Helvetica,Arial,PingFang SC,Microsoft YaHei,sans-serif;*/
    font-family: -apple-system-font,BlinkMacSystemFont,helvetica neue,pingfang sc,hiragino sans gb,microsoft yahei ui,microsoft yahei,Arial,sans-serif;
}
h1 {
    font-size: 24px;
}
nav {
    height: 70px;
    -webkit-box-shadow: 0 0 20px rgba(0,0,0,.05);
    box-shadow: 0 0 20px rgba(0,0,0,.05);
    line-height: 70px;
    display: flex;
    background: white;
}

.logo-box {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: inherit;
    font-size: 24px;
    font-weight: 700;
    margin-right: 12px;
}

.logo {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url("/img/favicon.ico");
    background-size: 40px;
    background-position: center center;
    margin-right: 5px;
}

.type {
    margin: 0 12px;
    text-decoration: none;
    color: inherit;
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
}
.active {
    font-size: 17px;
    /*color: var(--color)!important;*/
    background: var(--color); /*设置渐变的方向从左到右 颜色从ff0000到ffff00*/
    -webkit-background-clip: text;/*将设置的背景颜色限制在文字中*/
    -webkit-text-fill-color: transparent;/*给文字设置成透明*/

}
.type:hover {
    font-size: 17px;
    color: var(--color)!important;
}
.container {
    max-width: 1350px;
    position: relative;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    padding: 0 5px;
}
.search input{
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    margin: auto;
    border: none;
    background: #f8f8f8;
    padding: 0 90px 0 15px;
    line-height: 40px;
    border-radius: 64px;
    outline:none;
    z-index: 2;
    width: 100%;
    min-width:  180px;
}
.search input::-webkit-input-placeholder {
    color: lightgray;
}
.search button {
    z-index: 3;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    right: 0;
    width: 80px;
    height: 40px;
    border: 0;
    border-radius: 64px;
    line-height: 40px;
    color: #ffffff;
    font-size: 14px;
    background: var(--color);
    Vertical-align: top;
}

.search {
    flex: auto;
    position: relative;
    height: 70px;
    vertical-align: middle;
    margin-left: auto;
    max-width: 300px;
}

.search svg {
    position: relative;
    top: 2px;
    width: 15px;
    height: 15px;
    fill: #ffffff;
}
.history-line {
    line-height: 20px;
    color: #999;
    margin-top: 10px;
    font-size: 16px;
}
.a {
    text-decoration: none;
    outline: none;
}
.a:link {
    text-decoration: none;
}
.a:visited {
    text-decoration: none;
}
.a:hover {
    text-decoration: none;
}
.a:active {
    text-decoration: none;
}
.a:focus {
    text-decoration: none;
}
.history-video {
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    width: 197px;
}
.my-history:hover .history-video {
    color: cornflowerblue;
}
.history-box {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    z-index: 999;
}
.history {
    fill: #e6e6e6;
}
.history:hover {
    fill: var(--color);
}
.history-container {
    position: absolute;
    top: 68px;
    right: 0;
    z-index: 99;
    width: 320px;
    min-height: 200px;
    background: white;
    padding: 20px 20px 10px 20px;
    overflow: hidden;
    border-radius: 3px;
    transition:visibility .3s, opacity .5s;
    visibility:hidden;
    opacity: 0;
    box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
}
#history {
    max-height: 270px;
    overflow-y: scroll;
}
#history::-webkit-scrollbar {
    display:none
}
.history-box:hover .history-container {
    visibility:visible;
    opacity: 1;
    display: block;
    animation: .5s blink-smooth 6 alternate;
    z-index: 100;
}

main {
    margin-top: 12px;
    padding-bottom: 40px;
}
main a{
    display:block;
    text-decoration: none;
    color: inherit;
}
.section {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
section h2 {
    display: inline-block;
    color: #222222;
}
section svg {
    width: 27px;
    height: 27px;
    fill: var(--color);
    margin-right: 7px;
}
.img-box {
    position: relative;
    aspect-ratio: 197 / 278;
    width: 100%;
    background-image: url("/img/load.gif");
    background-size: cover;
    background-position: 50% 50%;
    border-radius: 6px;
}
.img-box img {
    width: 100%;
    z-index: 1;
    object-fit: cover;
}
.mask{
    position: absolute;
    top: 0;
    z-index: 99;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    border-radius: 10px;
}
.img-box svg {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    fill: #ffffff;
    z-index: 100;
    opacity: 0;
}
.img-box svg:hover #play {
    fill: var(--color);
    fill-opacity: 0.8;
    transition-duration: 0.2s;
}
.video:hover .mask{
    opacity: 1;
    transition: 0.3s;
}
.video:hover svg {
    width: 50px;
    height: 50px;
    opacity: 1;
    transition-duration: 0.5s;
}
.video-box {
    display:flex;
    flex-wrap: wrap;
    justify-content:left
}
.video {
    overflow:hidden;
    margin-bottom: 12px;
    z-index: 20;
}
.title {
    margin-top: 6px;
    font-size: 15px;
    line-height: 26px;
    font-weight: 700;
    color: #222222;
}
.title p {
    width: 100%;
    text-overflow:ellipsis;
    overflow:hidden;
    white-space:nowrap;
}
/*.title p:hover {*/
/*    overflow: visible; !* 鼠标悬停时显示全部内容 *!*/
/*    white-space: normal; !* 允许文字换行 *!*/
/*    z-index: 1000;*/
/*}*/
.desc {
    font-size: 12px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.small-nav {
    width: 100%;
    height: 30px;
    line-height: 30px;
    background: white;
    vertical-align: center;
    white-space: nowrap;
    overflow: auto;
}
.small-nav::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
    -webkit-appearance: none;
    background: transparent;
}

@media (min-width: 1400px) {
    .head-type {
        display: block;
    }
    .small-nav {
        height: 0;
    }
    .video {
        flex: 0 0 calc((100% - var(--l-video-intervel)*5)/6);
    }
    .video:nth-child(n) {
        margin-right: var(--l-video-intervel);
    }
    .video:nth-child(6n) {
        margin-right: 0;
    }
}
@media (max-width: 1400px) {
    .head-type {
        display: block;
    }
    .small-nav {
        height: 0;
    }
    .container {
        padding: 0 3%;
    }
    .video {
        flex: 0 0 calc((100% - var(--l-video-intervel)*5)/6);
    }
    .video:nth-child(n) {
        margin-right: var(--l-video-intervel);
    }
    .video:nth-child(6n) {
        margin-right: 0;
    }
}
@media (max-width: 1100px) {
    .head-type {
        display: block;
    }
    .small-nav {
        height: 0;
    }
    .container {
        padding: 0 3%;
    }
    .video {
        flex: 0 0 calc((100% - var(--s-video-intervel)*5)/6);
    }
    .video:nth-child(n) {
        margin-right: var(--s-video-intervel);
    }
    .video:nth-child(6n) {
        margin-right: 0;
    }
}
@media (max-width: 850px) {
    .head-type {
        display: none;
    }
    .small-nav {
        height: 30px;
    }
    .container {
        padding: 0 3%;
    }
    .video {
        flex: 0 0 calc((100% - var(--s-video-intervel)*3)/4);
    }
    .video:nth-child(n) {
        margin-right: var(--s-video-intervel);
    }
    .video:nth-child(4n) {
        margin-right: 0;
    }
}
@media (max-width: 450px) {
    .head-type {
        display: none;
    }
    .small-nav {
        height: 30px;
    }
    .video {
        flex: 0 0 calc((100% - var(--s-video-intervel)*2)/3);
    }
    .video:nth-child(n) {
        margin-right: var(--s-video-intervel);
    }
    .video:nth-child(3n) {
        margin-right: 0;
    }
    .head-type{
        display: none;
    }
    nav {
        height: 55px;
        -webkit-box-shadow: 0 0 20px rgba(0,0,0,.05);
        box-shadow: 0 0 20px rgba(0,0,0,.05);
        line-height: 70px;
        display: flex;
    }
    .logo-box {
        font-size: 19px;
    }
    .logo {
        width: 30px;
        height: 30px;
        background-size: 30px;
    }
    #title {
        display: none;
    }
    .search input{
        line-height: 35px;
    }
    .search button {
        width: 80px;
        height: 35px;
        line-height: 35px;
        font-size: 13px;
    }
    .search {
        height: 55px;
    }
    .search svg {
        width: 14px;
        height: 14px;
    }
    .history-box {
        height: 55px;
    }
    footer {
        font-size: 10px;
    }
}
/**footer*/
footer {
    position: relative;
    z-index: 11;
    padding: 30px 0;
    background-color: #f8f8f8;
    color: #bbbbbb;
    clear: both;
    text-align: center;
    font-size: 13px;
}
.footer-content {
    line-height: 20px;
    margin: 0 auto;
}

.footer-reserved {
    line-height: 25px
}
.rss {
    font-size: 10px;
}
.rss:link, .rss:visited, .rss:active, .rss:hover, button {
    outline: none;
    text-decoration: none;
    cursor: pointer;
}
.page {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}
.page li {
    display: inline-block;

}
.page a {
    display: inline-block;
    width: 100%;
    height: 38px;
    border: 1px solid #f2f2f2;
    border-radius: 2px;
    font-size: 14px;
    line-height: 36px;
    padding: 0 15px;
}
.page-ready:hover {
    color: var(--color);
    border: 1px solid var(--color);
}
.page-active {
    background: var(--color);
    color: #ffffff;
    cursor: pointer;
}
.page-disabled {
    pointer-events: none;
    opacity: .5;
}
.login-box {
    /* 字体设置 */
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif; /* 现代字体栈 */
    font-size: 0.9rem; /* 根据设计调整 */
    font-weight: 500; /* 中等粗细 */
    text-decoration: none; /* 去除默认下划线 */

    text-align: right;
}
.login-a {
    /* 颜色设置 */
    color: cornflowerblue; /* 主链接颜色 - 适度的蓝色 */

    /* 过渡效果 */
    transition: color 0.2s ease, background-color 0.2s ease;

    /* 其他 */
    cursor: pointer; /* 确保鼠标指针显示为手型 */
}