/* skin/css/index.css */

/* Banner */
.main-swiper {
    margin: 20px 0;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hard);
}
.main-swiper img {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 0;
}
.swiper-pagination-bullet {
    background: #000;
    opacity: 0.3;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Card List Layout (用于热门游戏、热门软件) */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.list-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hard);
    transition: transform 0.1s;
}
.list-card:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.list-card img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 6px;
    border: var(--border-width) solid var(--border-color);
}

.list-card .info {
    flex: 1;
    min-width: 0; /* 防止文字溢出 */
}
.list-card .info h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-main);
}
.list-card .info p {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-card .btn-area {
    background: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border: var(--border-width) solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 2px 2px 0 #000;
    cursor: pointer;
}

/* Rank Strip Style (用于排行榜) */
.rank-container {
    background: #fff;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hard);
    padding: 5px 0;
}
.rank-strip {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 2px solid #f1f2f6;
    text-decoration: none;
    color: inherit;
}
.rank-strip:last-child { border-bottom: none; }

.r-num {
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    font-size: 12px;
    color: #999;
}
.r-num.one { border-color: #d63031; color: #d63031; background: #ffe6e6; }
.r-num.two { border-color: #e17055; color: #e17055; }
.r-num.three { border-color: #fdcb6e; color: #fdcb6e; }

.r-name { flex: 1; font-weight: 700; font-size: 14px; }
.r-hot { font-size: 12px; color: var(--primary-color); font-weight: bold; }

/* PC Media Query (双列显示) */
@media (min-width: 768px) {
    .card-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}