﻿/* ==== 全局样式 ==== */
body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #fff4e6, #ffe0f0);
    color: #333;
}
#mobile-wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding: 10px;
    padding-bottom: 120px; /* 给悬浮下载位留出空间 */
}

/* ==== 通知滚动效果（圆润优化） ==== */
#notice {
    background: rgba(255, 255, 255, 0.85);
    color: #ff6600;
    padding: 10px 12px;
    font-size: 15px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 500;
    line-height: 1.6;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

#notice .scroll-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-left 30s linear infinite;
    letter-spacing: 0.6px;
    text-shadow: 0 0 2px rgba(0,0,0,0.1);
    border-radius: 8px;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ==== 顶部推荐背景 ==== */
#top-menu .banner-text {
    text-align: center;
    padding: 12px 0;
    background: linear-gradient(90deg, #a0d8ff, #d0f0ff);
    color: #003366;
    font-weight: bold;
    border-radius: 8px;
}

/* ==== 精品推荐 ==== */
.section-container {
    margin: 15px 0;
}

.recommend-section {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px; /* 原8px→减小行间距，使整体更紧凑 */
}

.recommend-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    text-decoration: none;
    color: #000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 5px 3px; /* 缩小上下内边距，让整体更紧凑 */
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.recommend-item img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 图标保持正方形 */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    flex: 0 0 auto;
}

/* 精品推荐按钮 */
.recommend-item .download-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 3px 0; /* 原4px略小，紧凑 */
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(10px, 3.2vw, 13px);
    transition: transform 0.15s;
    margin-top: 4px; /* 原6px→更紧凑 */
    flex-shrink: 0;
}

.recommend-item .download-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #ff8f6b, #ffc28b);
}

/* ==== 其他部分保持完全不变 ==== */
.games-bg {
    background: linear-gradient(135deg, #d9f0ff 0%, #f9e0ff 100%);
    border-radius: 16px;
    padding: 12px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.games-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.games-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #000;
    transition: transform 0.2s, box-shadow 0.2s;
}
.games-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.games-item .img-wrap {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.games-item .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text-block {
    flex: 1;
    margin-left: 10px;
}
.games-item .desc {
    display: block;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(90deg, #63b3ff, #a07bff);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}
.games-item .sub-desc {
    font-size: 13px;
    color: #444;
    opacity: 0.85;
    line-height: 1.3;
}
.games-item .action-btn {
    width: 80px;
    padding: 6px 0;
    font-size: 13px;
    text-align: center;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.bottom-banner {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px;
    background: linear-gradient(135deg, #fff4e6, #ffe0f0);
    border-radius: 14px;
    width: 96%;
    max-width: 480px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 999;
}

.bottom-banner {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px;
    background: linear-gradient(135deg, #fffaf0, #ffe4e1); 
    border-radius: 14px;
    width: 96%;
    max-width: 480px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 999;
}

.bottom-banner {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px;
    background: linear-gradient(135deg, #fff4e6, #ffe0f0);
    border-radius: 14px;
    width: 96%;
    max-width: 480px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 999;
}

.download-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 6px;
    text-decoration: none;
    animation: breathe-btn 2.5s ease-in-out infinite;
}

@keyframes breathe-btn {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.download-item:nth-child(1) { animation-delay: 0s; }
.download-item:nth-child(2) { animation-delay: 0.5s; }
.download-item:nth-child(3) { animation-delay: 1s; }

.download-item .img-wrap {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
}
.download-item .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.download-item .download-btn {
    width: 100%;
    padding: 5px 0;
    font-size: 12px;
    text-align: center;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: #fff;
    border: none;
    border-radius: 6px;
    margin-top: 4px;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffe0f0, #d0f0ff);
    z-index: 999;
    width: 250px;
    height: 250px;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
    max-width: 95%;
    text-align: center;
    box-sizing: border-box; 
}

.popup img {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    display: block;
    margin: 0 auto 12px;
    object-fit: cover;
}
.popup .close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;
    font-size: 22px;
}
.popup .watch-btn {
    width: 88px;          
    padding: 6px 0;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}
.popup .watch-btn:hover {
    background: linear-gradient(90deg, #ff8f6b, #ffc28b);
}
.popup-desc {
    font-size: 13px;
    color: #ff5fa3;
    font-weight: 600;
    margin-top: 16px;
    line-height: 1.4;
    text-align: center;
}