/* 今日推荐样式 */

/* 推荐列表样式 */
.recommendation-list {
    margin-bottom: 30px;
}

.recommendation-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #007cba;
}

.recommendation-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.recommendation-title {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    line-height: 1.4;
}

.recommendation-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recommendation-title a:hover {
    color: #007cba;
}

.recommendation-meta {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.recommendation-meta span {
    margin-right: 15px;
    display: inline-block;
}

.recommendation-type {
    background: #007cba;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.content-source {
    color: #888;
    font-style: italic;
}

.recommendation-excerpt {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.recommendation-footer {
    display: flex;
    gap: 10px;
    align-items: center;
}

.read-more {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #005a87;
}

.external-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: #1e7e34;
}

/* 推荐详情页样式 */
.recommendation-single {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.recommendation-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.recommendation-title {
    font-size: 2rem;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.3;
}

.recommendation-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 25px;
}

.recommendation-content p {
    margin-bottom: 1.2em;
}

.recommendation-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
}

.recommendation-actions {
    margin: 25px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    color: white;
}

.recommendation-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 25px;
}

.recommendation-tags {
    margin-bottom: 20px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tags-list strong {
    margin-right: 10px;
}

.tags-list a {
    background: #f8f9fa;
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tags-list a:hover {
    background: #007cba;
    color: white;
}

.recommendation-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-buttons a {
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.share-buttons a:hover {
    opacity: 0.9;
}

.share-qqzone {
    background: #ffcc00;
    color: #333;
}

.share-wechat {
    background: #07c160;
}

.share-weibo {
    background: #e6162d;
}

/* 相关推荐样式 */
.related-recommendations {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.related-title {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    color: #333;
}

.related-list {
    display: grid;
    gap: 15px;
}

.related-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.related-item-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.related-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-item-title a:hover {
    color: #007cba;
}

.related-item-meta {
    font-size: 0.85rem;
    color: #666;
}

.related-item-meta span {
    margin-right: 10px;
}

/* 侧边栏样式 */
.sidebar {
    position: sticky;
    top: 20px;
}

.widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.category-list,
.popular-list,
.latest-list,
.type-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li,
.popular-list li,
.latest-list li,
.type-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child,
.popular-list li:last-child,
.latest-list li:last-child,
.type-list li:last-child {
    border-bottom: none;
}

.category-list a,
.popular-list a,
.latest-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list a:hover,
.popular-list a:hover,
.latest-list a:hover {
    color: #007cba;
}

.current-category a {
    color: #007cba;
    font-weight: 600;
}

.count,
.type-count {
    background: #f8f9fa;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.type-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.type-name {
    color: #555;
}

/* 分类页面样式 */
.recommendation-category-header {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-title {
    margin: 0 0 15px 0;
    font-size: 2rem;
    color: #333;
}

.archive-description {
    color: #666;
    line-height: 1.6;
}

.category-count {
    color: #007cba;
    font-weight: 500;
    margin-top: 10px;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #007cba;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.pagination .page-numbers:hover:not(.current) {
    background: #f8f9fa;
    border-color: #007cba;
}

/* 无内容样式 */
.no-recommendations {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-recommendations p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .recommendation-item {
        padding: 15px;
    }
    
    .recommendation-title {
        font-size: 1.2rem;
    }
    
    .recommendation-single {
        padding: 20px;
    }
    
    .recommendation-title {
        font-size: 1.6rem;
    }
    
    .recommendation-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recommendation-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
    
    .tags-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tags-list strong {
        margin-bottom: 5px;
    }
}

/* 特殊样式 */
.recommendation-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.recommendation-categories a {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.recommendation-categories a:hover {
    background: #007cba;
    color: white;
}
