/* ============ 全局 ============ */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,"PingFang SC";
}

body{
    background:#f7f6f2;
    color:#222;
}


/* ============ 顶部 ============ */

.header{
    background:linear-gradient(90deg,#0d1b2a,#1b263b);
    padding:14px 12px;
}

.top{
    max-width:1200px;
    margin:auto;
}

/* 发光 LOGO */

.logo{
    font-size:36px;
    font-weight:bold;
    letter-spacing:1px;
    color:#ffb703;
    margin-bottom:10px;

    text-shadow:
        0 0 5px rgba(255,183,3,.6),
        0 0 12px rgba(255,183,3,.5),
        0 0 25px rgba(255,183,3,.4),
        0 0 45px rgba(255,183,3,.3);

    transition:.3s;
}

/* LOGO 首字红色 */
.logo-z{
    color:#ff2c2c;
    text-shadow:
        0 0 5px rgba(255,44,44,.6),
        0 0 12px rgba(255,44,44,.5),
        0 0 25px rgba(255,44,44,.4);
}

/* 鼠标增强光效 */
.logo:hover{
    text-shadow:
        0 0 8px rgba(255,183,3,.9),
        0 0 20px rgba(255,183,3,.8),
        0 0 40px rgba(255,183,3,.7),
        0 0 70px rgba(255,183,3,.6);
}


/* ============ 搜索栏 ============ */

.search-box{
    width:100%;
    max-width:420px;
    margin:0 auto;
    padding:5px 10px;
}

.search-box form{
    display:flex;
    align-items:center;
    width:100%;
    height:38px;
    background:#fff;
    border-radius:20px;
    border:1px solid #ddd;
    overflow:hidden;
}

.search-box input{
    flex:1;
    height:100%;
    border:none;
    padding:0 12px;
    font-size:16px;
    outline:none;
    background:none;
    line-height:38px;
}

.search-box button{
    height:100%;
    border:none;
    background:transparent;
    color:#1b263b;
    padding:0 14px;
    font-size:18px;
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
}

.search-box button:hover{
    color:#ffb703;
}

.search-box button:active{
    opacity:.7;
}


/* ============ 分类导航 ============ */

.nav{
    background:#fff;
    padding:10px 6px;
    border-bottom:1px solid #ddd;
}

.nav-box{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    max-width:1200px;
    margin:auto;
}

.nav a{
    padding:6px 14px;
    background:#eaeaea;
    border-radius:20px;
    text-decoration:none;
    font-size:13px;
    color:#333;
    transition:.2s;
}

.nav a:hover{
    background:#ffb703;
    color:#1b263b;
}

.nav .active{
    background:#fb8500;
    color:#fff;
}


/* ============ 内容区 ============ */

.section{
    background:#fff;
    margin:12px;
    border-radius:6px;
    padding:12px;
    box-shadow:0 1px 3px rgba(0,0,0,.08);
}

.section h2{
    font-size:16px;
    margin-bottom:10px;
    color:#1b263b;
}


/* ============ 视频列表 ============ */

.list{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
}

.list > *{
    width:100%;
    min-width:0;
}

.item{
    text-decoration:none;
    color:#222;
}

.item img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:6px;
    background:#eee;
    transition:.25s;
}

.item:hover img{
    transform:scale(1.05);
}

.item p{
    font-size:13px;
    margin-top:5px;
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}


/* ============ 声明栏 ============ */

.site-notice{
    width:100%;
    max-width:1200px;
    margin:15px auto 5px;
    padding:10px 15px;

    text-align:center;
    font-size:13px;
    line-height:1.6;

    color:#888;
    background:#f7f7f7;
    border-radius:6px;
}

.site-notice ul,
.site-notice li{
    list-style:none;
    margin:0;
    padding:0;
}

.site-notice li{
    margin:3px 0;
}


/* ============ 底部 ============ */

.footer{
    background:#fff;
    margin-top:20px;
    padding:15px 10px;
    text-align:center;
    font-size:12px;
    color:#777;
}


/* ============ PC优化 ============ */

@media(min-width:768px){

    .list{
        grid-template-columns:repeat(6,1fr);
    }

    .section{
        max-width:1200px;
        margin:16px auto;
    }

    .top{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:20px;
    }

    .logo{
        margin-bottom:0;
        font-size:40px;
    }

    .search-box{
        width:340px;
    }

}


/* ============ 手机优化 ============ */

@media (max-width:768px){

    .site-notice{
        font-size:12px;
        padding:8px 10px;
        margin:10px auto 5px;
    }

}
/* ============ 无限循环滚动 TAG ============ */

.tag-loop{
    width:100%;
    background:#fff;
    overflow:hidden;
    border-bottom:1px solid #eee;
}

/* 轨道 */
.tag-loop-track{
    display:flex;
    width:max-content;

    animation: loopScroll 30s linear infinite;
}

/* 每组 */
.tag-loop-list{
    display:flex;
    align-items:center;
    gap:10px;

    padding:8px 12px;
}

/* 单个标签 */
.tag-loop-list a{
    flex-shrink:0;

    padding:5px 14px;
    background:#f3f3f3;
    border-radius:16px;

    font-size:13px;
    color:#1b263b;
    text-decoration:none;
    white-space:nowrap;

    transition:.2s;
}

.tag-loop-list a:hover{
    background:#ffb703;
}

/* 动画 */
@keyframes loopScroll{

    0%{
        transform:translateX(0);
    }

    100%{
        transform:translateX(-50%);
    }
}
/* 播放器外框 */
.play-box .player-box{
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 12px auto;
    background: #000;
    overflow: hidden;
    border-radius: 8px;
}

/* 16:9 比例容器 */
.play-box .player-box::before{
    content: "";
    display: block;
    padding-top: 56.25%; /* 9/16 = 56.25% */
}

/* DPlayer 容器 */
#player{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* TAG 容器 */
.vod-tags{
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 单个 TAG */
.vod-tag{
    display: inline-block;
    padding: 5px 10px;
    font-size: 13px;
    color: #3a5a7a;
    background: #f2f6fb;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    text-decoration: none;
    transition: all .25s ease;
    white-space: nowrap;
}
.vod-tag:hover{
    background: #e6eff9;
    color: #1f3f66;
    border-color: #c6d6ea;
}
@media (max-width:768px){

    .vod-tag{
        font-size:12px;
        padding:4px 8px;
    }

}
/* 分页导航 */
.page-nav{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    margin: 18px 10px;
    padding: 10px 0;

    font-size: 13px;
}

/* 按钮 */
.page-btn{
    padding: 6px 12px;

    background: #f2f4f7;
    border: 1px solid #dcdfe6;
    border-radius: 4px;

    color: #333;
    text-decoration: none;

    transition: all .2s;
}

/* 悬浮 */
.page-btn:hover{
    background: #e6ecf5;
    border-color: #c6d6ea;
    color: #1f3f66;
}

/* 当前页 */
.page-current{
    padding: 6px 12px;

    background: #1b263b;
    color: #fff;

    border-radius: 4px;
    font-weight: bold;
}
/* Logo 链接去下划线 */
.logo a{
    text-decoration: none;   /* 去掉下划线 */
    color: inherit;          /* 继承logo颜色 */
}

/* 防止点击变色 */
.logo a:hover,
.logo a:active,
.logo a:visited{
    color: inherit;
}
/* 标签页 / 分类页 H1 标题 */
.page-title{
    position: relative;
    font-size: 22px;
    font-weight: 600;
    color: #1b263b;

    padding: 10px 15px;
    margin: 15px 12px;

    background: linear-gradient(90deg,#f8f9fa,#ffffff);
    border-left: 4px solid #ffb703;
    border-radius: 4px;

    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* 手机端适配 */
@media(max-width:768px){
    .page-title{
        font-size:18px;
        margin:12px 10px;
        padding:8px 12px;
    }
}
