/* 文章详情页 - 与首页风格一致 */
.article-page {
    padding: 50px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

/* 文章主体卡片 */
.article-detail {
    border: 1px solid #eee;
}

/* 文章标题 */
.article-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d3557;
    line-height: 1.4;
}

/* 元信息标签 */
.meta-item {
    display: inline-flex;
    align-items: center;
    background: rgba(30, 82, 146, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #1e5292;
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(30, 82, 146, 0.1);
}

.meta-item i {
    color: #1e5292;
}

/* 文章内容 */
.article-content {
    font-size: 1rem;
    line-height: 1.9;
    color: #333;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #1d3557;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.article-content blockquote {
    border-left: 4px solid #1e5292;
    background: rgba(30, 82, 146, 0.05);
    padding: 15px 20px;
    margin: 1rem 0;
    border-radius: 0 10px 10px 0;
}

/* 标签 */
.article-tags .badge {
    padding: 6px 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #1e5292 0%, #153d6e 100%) !important;
    transition: all 0.3s;
}

.article-tags .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 82, 146, 0.4);
}

/* 收藏按钮 */
.article-actions .btn-outline-primary {
    border-color: #1e5292;
    color: #1e5292;
    font-weight: 600;
    transition: all 0.3s;
}

.article-actions .btn-outline-primary:hover {
    background: linear-gradient(135deg, #1e5292 0%, #153d6e 100%);
    border-color: #1e5292;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 82, 146, 0.3);
}

/* 上下篇导航 - 简洁风格 */
.article-nav {
    background: #fafafa;
    padding: 20px 25px;
    border-radius: 8px;
}

.article-nav .nav-prev,
.article-nav .nav-next {
    max-width: 45%;
}

.article-nav small {
    font-size: 0.8rem;
}

.article-nav .nav-title {
    color: #1e5292;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.article-nav a:hover .nav-title {
    color: #153d6e;
}

/* ========== 侧边栏 ========== */
.sidebar-widget {
    border: 1px solid #eee;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d3557;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: red;
}

.widget-title i.bi-lightning-charge-fill {
    color: #ffc107 !important;
}

.widget-title i.bi-award-fill {
    color: #1e5292 !important;
}

/* 文章列表 */
.article-item a {
    transition: all 0.2s;
    color: #333;
}

.article-item a:hover {
    padding-left: 5px;
}

.article-item a:hover span {
    color: #1e5292 !important;
}

.article-item a i {
    font-size: 0.7rem;
    color: #1e5292;
    transition: transform 0.2s;
}

.article-item a:hover i {
    transform: translateX(3px);
}

.article-item span {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 产品列表 */
.product-item {
    border-bottom: 1px dashed #eee;
    transition: all 0.2s;
}

.product-item:last-child {
    border-bottom: none;
}

.product-item:hover {
    background: rgba(30, 82, 146, 0.03);
    padding-left: 8px;
}

.product-item:hover h6 {
    color: #1e5292 !important;
}

.product-thumb {
    width: 70px;
    height: 70px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-item:hover .product-thumb img {
    transform: scale(1.08);
}

.product-info h6 {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

/* 响应式 */
@media (max-width: 991px) {
    .article-page {
        padding: 30px 0;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .article-nav .row {
        flex-direction: column;
    }

    .article-nav .col-lg-2 {
        order: -1;
        margin-bottom: 10px;
    }
}

@media (max-width: 767px) {
    .article-title {
        font-size: 1.25rem;
    }

    .meta-item {
        padding: 4px 10px;
        font-size: 0.8rem;
    }

    .product-thumb {
        width: 60px;
        height: 60px;
    }
}