/* ============================================================
   following.css — 关注页面样式 · 黑白 Bento UI 风格
   ============================================================ */

/* ---- 页面基础 ---- */
.following-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 80px; /* 为底部导航留空间 */
}

/* ---- 页面标题栏 ---- */
.following-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.following-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
}

.following-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0;
    letter-spacing: -0.2px;
}

.following-title .fa {
    color: #111;
    margin-right: 8px;
    font-size: 16px;
}

/* ---- 内容区域 ---- */
.following-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 12px 24px;
}

/* ---- 瀑布流网格布局 ---- */
.following-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* 平板：3列 */
@media (min-width: 768px) {
    .following-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* PC：4列 */
@media (min-width: 1024px) {
    .following-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .following-content {
        padding: 20px 16px 32px;
    }
}

/* ---- 卡片样式 ---- */
.following-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.following-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.following-card:active {
    transform: translateY(0);
}

/* ---- 封面图区域 ---- */
.card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0f0f0;
}

.card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.following-card:hover .card-cover-img {
    transform: scale(1.04);
}

/* ---- 频道标签 badge ---- */
.channel-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
    line-height: 1.4;
    backdrop-filter: blur(4px);
}

.badge-novel {
    background: rgba(30, 30, 30, 0.82);
}

.badge-video {
    background: rgba(20, 20, 20, 0.85);
}

.badge-comic {
    background: rgba(40, 40, 40, 0.82);
}

.badge-post {
    background: rgba(60, 60, 60, 0.75);
}

/* ---- 卡片信息区 ---- */
.card-info {
    padding: 10px 10px 8px;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.5;

    /* 多行截断 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-views {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-views .fa {
    font-size: 10px;
}

/* ---- 分页样式 ---- */
.following-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.page-item {
    display: flex;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
    line-height: 1;
}

.page-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
    text-decoration: none;
}

.page-item.active .page-btn {
    background: #111;
    color: #fff;
    border-color: #111;
    font-weight: 700;
    cursor: default;
}

.page-item.disabled .page-btn {
    color: #ccc;
    background: #fafafa;
    border-color: #eee;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---- 空状态样式 ---- */
.following-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
}

.empty-icon {
    width: 72px;
    height: 72px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-icon .fa {
    font-size: 28px;
    color: #aaa;
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.empty-desc {
    font-size: 13px;
    color: #999;
    margin: 0 0 24px;
}

.empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    background: #111;
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

.empty-btn:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ---- 隐藏 footer（无限滚动页面不需要） ---- */
.site-footer {
    display: none !important;
}
body {
    padding-bottom: 0 !important;
}

/* ---- 无限滚动加载状态 ---- */
.scroll-sentinel {
    height: 1px;
    width: 100%;
    clear: both;
}

.infinite-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    color: #666;
}

.infinite-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e0e0e0;
    border-top-color: #111;
    border-radius: 50%;
    animation: infinite-spin 0.8s linear infinite;
}

@keyframes infinite-spin {
    to { transform: rotate(360deg); }
}

.infinite-loading-text {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}

/* ---- 无限滚动底部提示 ---- */
.infinite-end {
    text-align: center;
    padding: 24px 16px 32px;
    color: #999;
    font-size: 13px;
}

.infinite-end::before,
.infinite-end::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: #e0e0e0;
    vertical-align: middle;
    margin: 0 12px;
}

/* ---- 加载失败提示 ---- */
.infinite-error {
    text-align: center;
    padding: 24px 16px;
}

.infinite-error-text {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.infinite-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}

.infinite-retry-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ---- 响应式微调 ---- */
@media (max-width: 360px) {
    .following-grid {
        gap: 8px;
    }
    .card-title {
        font-size: 12px;
    }
    .card-info {
        padding: 8px 8px 6px;
    }
}

