.search-parent {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 10px;
    border-radius: 4px;
    background-color: #1c1c1e;
    width: 80%;
}
.search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    margin-left: 10px;
}
.search-bar input::placeholder {
    color: #8e8e93;
}
.menu-bar {
    display: flex;
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
    overflow-y: hidden;
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
.menu-bar::-webkit-scrollbar {
    display: none; /* Chrome, Safari 和 Opera */
}
.menu-bar a {
    display: inline-block;
    color: #fff;
    font-size: .8rem;
    margin-right: 10px;
}
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
}
.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
}
.carousel-item img {
    width: 100%;
    display: block;
}
.carousel-item .new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fd0252;
    color: #fff;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 12px;
}
.carousel-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    font-size: 12px;
}
.section-title {
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
}
.grid {
    display: flex;
    flex-wrap: wrap;
    padding: 0 5px;
}
.grid-item {
    width: 33.3333%;
    padding: 5px;
    box-sizing: border-box;
}
.grid-item img {
    width: 100%;
    border-radius: 6px;
    min-height:11.375rem;
}
.grid-item .category-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
}
.grid-item .title {
    font-size: 14px;
margin-top: 5px;
color: #fff;
text-align: center;
height: 43px; /* 根据行高和需要的高度进行调整 */
text-overflow: ellipsis;
display: -webkit-box; /* 使用弹性盒子模型 */
-webkit-line-clamp: 2; /* 限制为两行 */
-webkit-box-orient: vertical; /* 纵向排列 */
line-height: 1.5; /* 行高 */
overflow: hidden;


}
.grid-item .stars {
    text-align: center;
    margin-top: 2px;
    color: #ffd700;
}
.featured-masonry {
    column-count: 2;
    column-gap: 10px;
    padding: 0 10px;
}
.featured-item {
    break-inside: avoid;
    margin-bottom: 10px;
}
.featured-item img {
    width: 100%;
    display: block;
    border-radius: 6px;
}
.featured-item .category-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
}
.content {
    padding-bottom: 60px;
}
#carousel{
    height:210px;
    /* overflow: hidden; */
}
#carousel img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* transition: all 0.5s ease-in-out; */
}
.ads-container{
    display:flex;
    justify-content:center;
    align-items:center; 
    width:100%;
    background-color: #f5f5f5;
    color: #333;
    min-height: 50px;
}


@keyframes shake {
    0%, 100% { transform: translate(0, 0); } /* 初始和结束位置 */
    20% { transform: translate(-3px, 0); } /* 向左抖动 */
    40% { transform: translate(3px, 0); }  /* 向右抖动 */
    60% { transform: translate(-3px, 0); } /* 再次向左抖动 */
    80% { transform: translate(3px, 0); }  /* 再次向右抖动 */
}
.shaking {
    display: inline-block; /* 使元素保持块级特性 */
    animation: shake 1s; /* 应用抖动动画，持续0.5秒 */
}
