/* 学习之路博客 - 前台样式 */

/* 响应式调整 */
@media (max-width: 768px) {
    .article-card .cover-image {
        height: 150px !important;
    }
    .home-slide img {
        height: 200px !important;
    }
}

/* 文章内容样式增强 */
.article-content h1 { font-size: 24px; margin: 20px 0 15px; }
.article-content h2 { font-size: 20px; margin: 18px 0 12px; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.article-content h3 { font-size: 18px; margin: 15px 0 10px; }
.article-content h4 { font-size: 16px; margin: 12px 0 8px; }
.article-content ul, .article-content ol { padding-left: 25px; margin: 10px 0; }
.article-content li { margin: 5px 0; line-height: 1.8; }
.article-content blockquote {
    border-left: 4px solid #3498db;
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}
.article-content blockquote p:last-child { margin-bottom: 0; }

/* 导航激活状态 */
.navbar-blog .nav > li.active > a {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

/* 轮播控制按钮样式 */
.carousel-control {
    width: 40px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    height: 40px;
    top: 50%;
    margin-top: -20px;
    opacity: 0.8;
}
.carousel-control:hover {
    opacity: 1;
    background: rgba(0,0,0,0.5);
}
.carousel-control .fa {
    margin-top: 10px;
}

/* 文章卡片hover效果增强 */
.article-card .article-content {
    padding: 15px 20px;
}
.article-card .title {
    font-size: 17px;
    line-height: 1.5;
}
.article-card:hover .title a {
    color: #3498db;
}

/* 侧边栏样式增强 */
.sidebar-widget .widget-title {
    font-size: 15px;
}
.sidebar-widget ul li {
    padding: 10px 0;
}

/* 标签样式 */
.tag-cloud a {
    display: inline-block;
    padding: 5px 12px;
    margin: 3px;
    background: #f0f2f5;
    color: #666;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.2s;
}
.tag-cloud a:hover {
    background: #3498db;
    color: #fff;
    transform: scale(1.05);
}

/* 友链样式 */
.friend-links a {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    background: #f8f9fa;
    color: #666;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
}
.friend-links a:hover {
    background: #3498db;
    color: #fff;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s;
    cursor: pointer;
    display: none;
    z-index: 999;
}
.back-to-top:hover {
    opacity: 1;
    color: #fff;
}

/* 移动端菜单 */
@media (max-width: 768px) {
    .navbar-blog .navbar-collapse {
        background: #fff;
        padding: 10px;
        border-top: 1px solid #eee;
    }
    .search-box {
        margin: 10px 0;
        width: 100%;
    }
    .search-box input,
    .search-box input:focus {
        width: 100% !important;
    }
}
