/* 页面整体 */
body {
    font-family: "Microsoft Yahei", sans-serif;
    background: linear-gradient(to bottom, #ffe066, #ff9f43, #48dbfb);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: flex-start;
}

.container {
    margin-top: 4vh;                 /* 页面整体再往上 */
    background: #fff;
    padding: 18px 16px;              /* 左右稍微收一点 */
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);

    width: 92%;                      /* 👈 更接近屏幕 */
    max-width: 480px;                /* 👈 放宽关键点 */

    display: flex;
    flex-direction: column;
    gap: 10px;                       /* 内容更紧凑 */
    box-sizing: border-box;
}


/* 标题 */
h1, h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-top: 0;
}

/* 小标题 */
h3 {
    font-size: 1.2rem;
    color: #ff6b6b;
    margin-bottom: 6px;
    border-bottom: 1px solid #ffd6a5;
    padding-bottom: 30px;
}
/* ===== 横向滑动容器 ===== */
.horizontal-scroll{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding-bottom:8px;
    -webkit-overflow-scrolling:touch;
}
.horizontal-scroll::-webkit-scrollbar{
    display:none;
}

/* ✅ 一屏一张，不露半张 */
.horizontal-scroll .show-card{
    flex:0 0 88%;
    display:flex;
    flex-direction:column;
}

/* ===== 卡片通用 ===== */
.show-card{
    background:#fff;
    border-radius:14px;
    padding:12px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.show-card img{
    width:100%;
    height:140px;
    border-radius:10px;
    object-fit:cover;
    margin-bottom:8px;
}

.show-info h4{
    margin:4px 0 6px;
    font-size:16px;
}

/* 推荐指数 */
.recommend{
    margin:4px 0;
    font-size:13px;
}
.recommend-label{
    color:#666;
    margin-right:4px;
}

.star{
    color:#ddd;
    font-size:16px;
}
.star.on{
    color:#f5b301;
}

/* 标题 */
.section-title{
    margin:2px 0 4px;
}

/* 👇 底部滑动提示 */
.slide-tip{
    font-size:12px;
    color:#999;
    text-align:center;
    margin: 0px 0 0px;
    letter-spacing:1px;
    user-select:none;
    animation: slideHint 1.6s ease-in-out infinite;
}

@keyframes slideHint{
    0%{
        opacity:.3;
        transform:translateX(0);
    }
    50%{
        opacity:1;
        transform:translateX(6px);
    }
    100%{
        opacity:.3;
        transform:translateX(0);
    }
}


/* 图片样式 */
.info-img {
    width: 100%;
    height: auto;          
    object-fit: contain;   
    border-radius: 12px;
    margin-bottom: 8px;
}

/* 内容文字 */
p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 2px 0;       
}

/* 返回首页按钮 */
.btn {
    display: block;
    text-align: center;
    padding: 14px;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg,#ff6f91,#ff9f1c);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.2s ease;   /* 只保留 hover 的顺滑感 */
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    animation: pulse 1.2s infinite alternate;
}
.show-desc{
    font-size: 0.92rem;
    color: #666;
    line-height: 1.5;
    margin: 4px 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

