/* 文章模块通用样式 */

/* 优化面包屑导航 */
.tech-breadcrumb {
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.breadcrumb-item + .breadcrumb-item::before {
    font-family: "Font Awesome 5 Free";
    content: "\f054";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--bs-primary);
    margin-top: 2px;
}

.breadcrumb-item a {
    color: #555;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--bs-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--bs-primary);
    font-weight: 500;
}

/* 文章卡片样式 */
.article-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.article-hero {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: white;
    position: relative;
    overflow: hidden;
}

.article-hero-content {
    position: relative;
    z-index: 1;
}

/* 文章列表页样式 */
.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-pill {
    border-radius: 30px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.category-pill:hover {
    transform: translateY(-3px);
}

.category-pill.active {
    background-color: var(--bs-primary);
    color: white;
}

.sidebar-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.sidebar-card .card-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: #fff;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.popular-article-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.popular-article-item:last-child {
    border-bottom: none;
}

.popular-article-item:hover {
    background-color: rgba(0,0,0,0.02);
}

.vendor-card {
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.1);
}

.vendor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 阅读全文按钮样式 */
.btn-read-more {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 97, 168, 0.3);
}

.btn-read-more:hover i {
    animation: moveRight 0.5s ease;
}

/* 文章标题链接样式 */
.article-card h2 a {
    transition: color 0.3s ease;
}

.article-card h2 a:hover {
    color: var(--bs-primary) !important;
}

@keyframes moveRight {
    0% { transform: translateX(0); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* 文章详情页样式 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.article-meta-item i {
    width: 20px;
    text-align: center;
    margin-right: 5px;
    color: var(--bs-primary);
}

.article-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.article-content h2, 
.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    color: #e83e8c;
}

.article-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.vendor-info-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    background-color: #f8f9fa;
    margin-bottom: 1.5rem;
}

.vendor-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.related-article-card {
    height: 100%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* 调整右侧边栏位置，使其与左侧内容区域顶部对齐 */
.right-sidebar {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.right-sidebar .tech-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.tech-specs-table {
    width: 100%;
}

.tech-specs-table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tech-specs-table tr:last-child td {
    border-bottom: none;
}

.tech-feature-icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.payment-icon {
    display: inline-block;
    margin-left: 5px;
    font-size: 1.2rem;
}

/* 去掉卡片的鼠标悬停效果 */
.vendor-products .card {
    transition: none;
}

.vendor-products .card:hover {
    transform: none;
    box-shadow: none;
}

/* AI生成文章优化样式 */
.article-title {
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.section-title {
    color: #34495e;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    font-size: 1.4rem;
}

.subsection-title {
    color: #495057;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.article-paragraph {
    color: #495057;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    text-align: justify;
}

.article-paragraph.mt-3 {
    margin-top: 1.5rem;
}

.article-list {
    margin: 1.5rem 0;
    padding-left: 0;
}

.article-list li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    position: relative;
}

.article-list .bullet-item {
    padding-left: 1.5rem;
    list-style: none;
}

.article-list .bullet-item::before {
    content: "▸";
    color: var(--bs-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.article-list .numbered-item {
    padding-left: 0.5rem;
    counter-increment: item-counter;
}

.article-list ol {
    counter-reset: item-counter;
}

.article-quote {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid var(--bs-primary);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #495057;
}

.article-quote p {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.article-link {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
    text-decoration: none;
}

.article-featured-image {
    margin: 2rem 0;
    text-align: center;
}

.article-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-featured-image img:hover {
    transform: scale(1.02);
}

/* 文章内容区域整体优化 */
.article-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c3e50;
    max-width: none;
}

/* 强调文本样式 */
.article-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.article-content em {
    color: #6c757d;
    font-style: italic;
}

/* 响应式样式 */
@media (max-width: 767.98px) {
    /* 移动端隐藏页脚 */
    footer.footer {
        display: none !important;
    }

    .article-title {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .section-title {
        font-size: 1.2rem;
        margin-top: 2rem;
    }

    .subsection-title {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    .article-paragraph {
        font-size: 1rem;
        line-height: 1.7;
    }

    .breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .breadcrumb::-webkit-scrollbar {
        height: 3px;
    }

    .breadcrumb::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 3px;
    }
}