body{
    background:#0d0d0d;
    color:#fff;
    margin:0;
    font-family:Arial;
}

/* 🔥 顶部 */
.header{
    display:flex;
    align-items:center;
    padding:10px;
    background:#111;
    position:sticky;
    top:0;
    z-index:999;
}

.logo{
    font-size:20px;
    font-weight:bold;
    margin-right:10px;
}

.search input{
    background:#222;
    border:none;
    color:#fff;
    padding:8px;
    width:200px;
}

/* 分类 */
.nav{
    display:flex;
    overflow-x:auto;
    padding:10px;
    background:#111;
}

.nav a{
    margin-right:8px;
    padding:6px 12px;
    background:#222;
    border-radius:20px;
    color:#aaa;
    font-size:13px;
}

.nav a:hover{
    background:#ff4d4d;
    color:#fff;
}

/* 容器 */
.container{
    padding:10px;
}

/* 🔥 卡片布局 */
.grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

/* 手机 */
@media (max-width:768px){
    .grid{
        grid-template-columns:repeat(2,1fr);
    }
}

/* 卡片 */
.card{
    border-radius:8px;
    overflow:hidden;
    position:relative;
}

.thumb{
    position:relative;
}

.thumb img{
    width:100%;
    height:200px;
    object-fit:cover;
    transition:0.3s;
}

/* 渐变 */
.overlay{
    position:absolute;
    bottom:0;
    width:100%;
    height:60%;
    background:linear-gradient(transparent,rgba(0,0,0,0.9));
}

/* 标题 */
.title{
    position:absolute;
    bottom:5px;
    left:8px;
    right:8px;
    font-size:13px;
}

/* hover */
.card:hover img{
    transform:scale(1.08);
}