/**
 * 二次元文章排行榜 - 样式
 * 二次元风格热门文章排行榜，3列响应式布局
 */

/* 容器：三列网格 */
.zm-rank-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}
@media (max-width: 1024px) {
    .zm-rank-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .zm-rank-container {
        grid-template-columns: 1fr;
    }
}

/* 榜单卡片 */
.zm-rank-block {
    position: relative;
    background: var(--main-bg-color);
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease;
}
.zm-rank-block:hover {
    transform: translateY(-6px) scale(1.02);
}

/* 榜单头部 */
.zm-rank-header {
    background: linear-gradient(135deg, #ff9de6, #9dd9ff);
    color: #fff;
    padding: 12px 16px;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.zm-rank-header::before {
    content: "★";
    font-size: 18px;
}

/* 列表 */
.zm-rank-list {
    display: flex;
    flex-direction: column;
}

/* 列表项 */
.zm-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px dashed #f3c2ff;
    text-decoration: none;
    color: #444;
    transition: background 0.2s ease, transform 0.2s ease;
}
.zm-rank-item:hover {
    background: rgba(255, 237, 255, 0.4);
    transform: translateX(4px);
    color: #444;
    text-decoration: none;
}

/* 序号圆 */
.zm-rank-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
}
.zm-rank-top1 { background: linear-gradient(135deg, #ff5f6d, #ffc371); }
.zm-rank-top2 { background: linear-gradient(135deg, #42e695, #3bb2b8); }
.zm-rank-top3 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

/* 缩略图 */
.zm-rank-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.zm-rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 文章信息 */
.zm-rank-info {
    flex: 1;
    min-width: 0;
}
.zm-rank-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    color: var(--key-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.zm-rank-meta {
    font-size: 12px;
    color: var(--muted-color);
}

/* 底部跳转 */
.zm-rank-footer {
    text-align: center;
    padding: 10px;
    background: rgba(255, 237, 255, 0.5);
}
.zm-rank-footer a {
    font-size: 14px;
    color: #ff6bb5;
    text-decoration: none;
    font-weight: bold;
}
.zm-rank-footer a:hover {
    text-decoration: underline;
}
