/* skin/css/index.css */

/* Banner */
.main-swiper {
    margin: 15px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.main-swiper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* 列表容器通用 */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px; /* 卡片之间的间距 */
}

/* 列表单行样式 */
.list-row {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color); /* 细灰边 DNA */
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.list-row:active {
    background: #f9f9f9;
}

.list-row img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    margin-right: 12px;
    border: 1px solid #f0f0f0;
}

.list-row .info {
    flex: 1;
    min-width: 0; /* 防止文本溢出撑开 */
}

.list-row .info h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-main);
}

.list-row .info p {
    font-size: 12px;
    color: var(--text-sub);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-row .btn-area span {
    display: block;
    background: #f0fdf9; /* 薄荷绿的超淡背景 */
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--primary-color);
}

/* 排行榜样式 */
.rank-mini-list {
    background: #fff;
    padding: 0 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.rank-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    text-decoration: none;
    color: inherit;
}
.rank-row:last-child { border-bottom: none; }

.rank-row .num {
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    margin-right: 12px;
    font-size: 15px;
    color: #999;
    font-weight: 600;
}
/* 前三名高亮 */
.rank-row .num.top3 {
    color: var(--primary-color);
    font-size: 16px;
}

.rank-row .name { flex: 1; font-size: 14px; color: #333; }
.rank-row .dl {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}

/* PC 端适配 */
@media (min-width: 768px) {
    .card-list {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 双列显示 */
        gap: 15px;
    }
}