/**
 * 相关推荐样式
 */

.hoshinoai-rp-container {
    margin: 30px 0 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rp-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b6b;
    display: inline-block;
}

.rp-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* 横向滚动容器 - PC端使用Grid */
.rp-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
}

/* PC端 - 使用CSS Grid，不滚动 */
@media (min-width: 769px) {
    .rp-scroll-wrapper {
        overflow-x: visible;
    }
    .rp-scroll-list {
        display: grid;
        grid-template-columns: repeat(var(--rp-pc-columns, 2), 1fr);
        gap: 15px;
    }
}

/* 移动端 - 横向滚动 */
@media (max-width: 768px) {
    .rp-scroll-wrapper {
        margin: 0 -15px;
        padding: 0 15px;
        scrollbar-width: thin;
    }
    .rp-scroll-wrapper::-webkit-scrollbar {
        height: 4px;
    }
    .rp-scroll-wrapper::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 4px;
    }
    .rp-scroll-wrapper::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
    .rp-scroll-list {
        display: flex;
        gap: 15px;
        width: max-content;
    }
}

/* 卡片样式 */
.rp-card {
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.rp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.rp-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.rp-card-content {
    padding: 16px;
}

.rp-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rp-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.rp-views i,
.rp-date i {
    margin-right: 4px;
    font-size: 11px;
}

/* 移动端卡片宽度 */
@media (max-width: 768px) {
    .rp-card {
        width: 280px;
        flex-shrink: 0;
    }
}

/* 暗色模式 */
.dark .rp-header {
    border-bottom-color: #ff6b6b;
}

.dark .rp-title {
    color: #e0e0e0;
}

.dark .rp-card {
    background: #2a2a2a;
}

.dark .rp-card-title {
    color: #e0e0e0;
}