body{font-family:Arial;background:#f5f5f5;margin:0}
/* 分类 */
.nav a{
    margin-right:8px;
    padding:6px 12px;
    background:#007bff;
    color:#fff;
    text-decoration:none;
    border-radius:20px;
    font-size:13px;
}
.nav a.active{background:#ff5722}

.nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px;
    background:#fff;
    gap:10px;
}
/* 左侧 */
.nav-left{
    flex:1;
    display:flex;
    flex-wrap:wrap;
    align-items: center;
    gap:8px;
}

.nav-left a{
    padding:6px 12px;
    background:#007bff;
    color:#fff;
    text-decoration:none;
    border-radius:20px;
    font-size:13px;
}

.nav-left a.active{
    background:#ff5722;
}

/* 右侧搜索 */
.search-form{
    display:flex;
    align-items:center;
    background:#f5f5f5;
    border-radius:14px;
    overflow:hidden;
    width:300px;   /* 稍微加长一点 */
}
.search-form input{
    flex:1;
    min-width:0;   /* ⭐ 防止挤爆 */
    border:0;
    outline:none;
    padding:10px 12px;
    font-size:14px;
    background:transparent;
}
/* ⭐ 核心修复 */
.search-form button{
    flex-shrink:0;       /* 不允许被压缩 */
    white-space:nowrap;  /* ❗禁止换行 */
    border:0;
    padding:10px 16px;   /* 加宽 */
    background:linear-gradient(135deg,#ff512f,#dd2476);
    color:#fff;
    cursor:pointer;
    font-size:13px;
}
/* 手机 */
@media (max-width:768px){
    .nav{
        flex-direction:row;
        align-items:stretch;
    }
    .menu-slot {
    width: 60px;
    flex-shrink: 0;
}
    /* ⭐ 搜索区域撑满 */
    .nav-right{
            display:flex;
        width:auto;;
        margin-top:8px;
    }
    .search-form{
        width:300px;
        border-radius:10px;
    }
    /* ⭐ 输入框变大 */
    .search-form input{
        flex:1;
        width:100%;
        padding:12px 14px;
        font-size:15px;
    }
    /* ⭐ 按钮也放大一点 */
    .search-form button{
        padding:12px 14px;
        font-size:14px;
        white-space:nowrap;
    }
}
/* 瀑布流 */
.grid{
    margin:5px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center; /* ⭐ 居中，不拉伸 */
    gap:10px;
}

.item{
    width:235px;   /* ⭐ 固定宽度 */
    flex:0 0 auto; /* ⭐ 不缩放 */
    padding:6px;
    box-sizing:border-box;
}
.item-inner{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    transition:.25s;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.item-inner:hover{
    transform:translateY(-5px);
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}
.item img{
    width:100%;
    object-fit:cover;
}
/* 懒加载效果 */
img.lazy{
    filter: blur(10px);
    transition:.3s;
}
img:not(.lazy){
    filter: blur(0);
}
#search-popup {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: none;
    z-index: 9999;

}
.title{
    padding:8px 10px 4px;
    height:38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* 显示2行 */
    -webkit-box-orient: vertical;
    overflow:hidden;
}
.title a{color:#333;text-decoration:none}
.meta{
    display:flex;
    justify-content:space-between;
    align-items: center;
    padding:5px 10px;
    font-size:12px;
    color:#888;
}

.cat{
    background:#ff5722;
    padding:2px 6px;
    border-radius:4px;
}
.cat a{
    color:#fff;
    text-decoration:none;
    border-radius:20px;
}
/* 分页 */
.page{
        height: 40px;
    display:flex;
    justify-content:center;
    align-items: center;     /* ⭐ 垂直居中 */
    gap:10px;
    padding:20px;
    clear:both;
}
.page a{
    padding:0px 16px;
    background:#333;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page .disabled{
    background:#ccc;
    pointer-events:none;
}
.thumb{
    position:relative;
}
.thumb img{
    width:100%;
    display:block;
}
.duration {
    position: absolute;
    right: 3px;
    bottom: 3px;
    background: rgba(0,0,0,0.80);
    color: #fff;
    font-size: 11px;
    padding: 1px 2px;
    border-radius: 5px;
    white-space:nowrap;
    backdrop-filter: blur(4px);
}
.views{
    position:absolute;
    left:3px;
    bottom:3px;
    display: inline-flex;
    background:rgba(0,0,0,0.80);
    color:#fff;
    font-size:11px;
    padding:1px 2px;
    border-radius:5px;
    white-space:nowrap;
    backdrop-filter: blur(4px); /* 高级感 */
}
.views::before{
    content:"";
    width:12px;
    height:12px;
    display:inline-block;
    flex-shrink:0;
    background-repeat:no-repeat;
    background-size:contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1h-1ZM6.5 6a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V6ZM2 9a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V9Z'/%3E%3C/svg%3E");
}
.debug-box{
    text-align:center;
    font-size:12px;
    color:#888;
    margin:15px auto;
    opacity:0.8;
}
/* 响应式 */
@media (max-width:1200px){ .item{width:25%} }
@media (max-width:768px){ .item{width:50%} }

/* 三条线按钮 */
.menu-btn {
    display: none;
    font-size: 26px;
    padding: 6px 10px;
    cursor: pointer;
}
/* 遮罩 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
}
/* ===== 移动端才生效 ===== */
@media (max-width: 768px) {
.menu-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    /* 左侧菜单改成侧滑 */
    #sideMenu {
        display:block !important;
                margin:0 !important;
                border-radius:0;
        position: fixed;
        top: 0;
        left: -260px;
     /*   width: 240px;   */
     /*   height: 100%;   */
        background: #fff;
        overflow-y: auto;
        z-index: 999;
        transition: all 0.3s ease;
        box-shadow: 2px 0 8px rgba(0,0,0,0.2);
        padding: 10px;
    }
    #sideMenu a{
        font-size:16px;
        padding:12px 14px;
        border-bottom:1px solid #eee;
        border-radius:0;
        margin:0;   /* 防止挤压 */
        display:block;
        width:100%;
        box-sizing:border-box;
    }
    #sideMenu.open {
        left: 0;
    }
    .overlay.show {
        display: block;
    }
}


.page-jump {
    display: flex;
    justify-content: center;
    align-items: center;   /* ⭐ 垂直居中关键 */
    gap: 8px;
}

/* 输入框 + 按钮统一高度 */
.page-jump input,
.page-jump button {
    height: 40px;          /* ⭐ 强制统一高度 */
    line-height: 38px;     /* ⭐ 文字垂直居中 */
    padding: 0 16px;
    box-sizing: border-box;
}

/* 输入框 */
.page-jump input {
    width: 65px;
    font-size: 16px;
    border: 1px solid #333;
    border-radius: 6px;
    text-align: center;
}

/* 按钮 */
.page-jump button {
    align-items: center;     /* ⭐ 垂直居中 */
    justify-content: center; /* ⭐ 水平居中 */
    font-size: 16px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
#backTop {
    position: fixed;
    right: 20px;
    bottom: 120px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

#backTop:hover {
    background: #555;
    transform: translateY(-3px);
}
/* 手机优化 */
@media (max-width: 768px) {
    .page-jump input,
    .page-jump button {
        height: 40px;      /* ⭐ 手指更好点 */
        line-height: 44px;
        font-size: 16px;
    }
        .page-jump button {
        height: 40px;
        font-size: 16px;
    }
}
/* 容器 */
.container{
    max-width:720px;
    margin:auto;
    padding:12px;
}
.meta3{
    display:flex;
    justify-content:space-between; /* 左右分开 */
    align-items:center;
    font-size:12px;
    color:#666;
    margin-bottom: 10px;
}
/* 右侧一组 */
.meta-right{
    display:flex;
    gap:10px;        /* 时间和播放量间距 */
    align-items:center;
}
/* 播放器 */
.player-box{
    width:100%;
    aspect-ratio:16/9;
    background:#000;
    border-radius:5px;
    overflow:hidden;
}

video{
    width:100%;
    height:100%;
}

/* 内容 */
.content{
    font-size:16px;
    margin-top:12px;
    background:#fff;
    padding:10px;
    border-radius:5px;
    line-height:1.6;
}

/* 推荐 */
.recommend{
    margin-top:20px;
}
/* 标题 */
h1{
    font-size:22px;
    margin:8px 0;
}
.meta-left{
    font-family: monospace;
}
.meta-left a{
    margin-right:8px;
    padding:6px 12px;
    background:#ff5722;
    color:#fff;
    text-decoration:none;
    border-radius:5px;
    font-size:13px;
}
.meta-left a.active{background:#ff5722}



.cat-box{
    margin-top:15px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    max-width:900px;
}

/* 分类按钮 */
.cat-box a{
    display:inline-block;
    padding:6px 12px;
    font-size:13px;
    color:#fff;
    background:rgba(255,255,255,0.12);
    border:1px solid rgba(255,255,255,0.2);
    border-radius:20px;
    text-decoration:none;
    transition:0.2s;
    backdrop-filter: blur(6px);
}

/* hover */
.cat-box a:hover{
    background:#ff512f;
    border-color:#ff512f;
    transform:translateY(-2px);
}

/* active */
.cat-box a.active{
    background:linear-gradient(135deg,#ff512f,#dd2476);
    border-color:transparent;
    box-shadow:0 6px 16px rgba(255,81,47,0.3);
}
.search-center{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:30px 10px;
    background:linear-gradient(135deg,#1e1e2f,#2d2d44);
}

/* ⭐ 关键：降低圆角 + 防溢出 */
.search-box{
    width:60%;
    max-width:700px;
    display:flex;
    border-radius:12px; /* ❗从50px改小 */
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.25);
    background:#fff;
}

/* 输入框 */
.search-box input{
    flex:1;
    border:0;
    outline:none;
    padding:14px 15px;
    font-size:16px;
    min-width:0; /* ⭐ 防止挤爆 */
}

/* 按钮 */
.search-box button{
    border:0;
    padding:0 18px;
    background:linear-gradient(135deg,#ff512f,#dd2476);
    color:#fff;
    cursor:pointer;
    white-space:nowrap; /* ⭐ 防止换行/挤压 */
    flex-shrink:0;
}

/* ===== 手机优化（关键） ===== */
@media (max-width:768px){
    .search-box{
        width:92%;
        border-radius:10px;
    }

    .search-box input{
        padding:12px 10px;
        font-size:14px;
    }

    .search-box button{
        padding:0 12px;
        font-size:14px;
        min-width:60px; /* ⭐ 保证“搜索”不会消失 */
    }
}
.hl {
    background: #ffeb3b;
    color: #d32f2f;
    font-weight: bold;
}
/* 热门 */
.hot-title{
    padding:15px;
    font-weight:bold;
    color:#ff2d55;
    font-size:20px;
    text-shadow:0 0 10px rgba(255,45,85,.35);
}

/* 热门卡片 */
.item.hot{
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #ff2d55;
    background:
        linear-gradient(
            180deg,
            rgba(255,45,85,.12),
            rgba(255,45,85,.03)
        );

    box-shadow:
        0 0 0 1px rgba(255,45,85,.25),
        0 0 18px rgba(255,45,85,.55),
        0 0 45px rgba(255,45,85,.25);

    transform: translateY(-2px);
}

/* 外圈呼吸光 */
.item.hot::after{
    content:"";
    position:absolute;
    inset:-2px;
    border-radius:18px;
    pointer-events:none;

    box-shadow:
        0 0 20px rgba(255,45,85,.8),
        0 0 50px rgba(255,45,85,.45);

    animation: hotGlow 1.8s infinite alternate;
}

/* HOT角标 */
.item.hot::before{
    content:"🔥 HOT";
    position:absolute;
    top:10px;
    right:-28px;
    width:120px;
    text-align:center;
    background:linear-gradient(90deg,#ff003c,#ff7a00);
    color:#fff;
    font-size:13px;
    font-weight:700;
    letter-spacing:1px;
    padding:6px 0;
    transform:rotate(45deg);
    box-shadow:
        0 4px 12px rgba(0,0,0,.25),
        0 0 15px rgba(255,0,60,.6);

    z-index:20;
}

/* 标题更亮 */
.item.hot .title{
    color:#ff2d55;
    font-weight:700;
}

/* 呼吸动画 */
@keyframes hotGlow{
    from{
        opacity:.6;
    }
    to{
        opacity:1;
    }
}
