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

/* 优化面包屑导航 */
.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: #FF6600;
    margin-top: 2px;
}

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

.breadcrumb-item a:hover {
    color: #FF6600;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #FF6600;
    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, #D35400, #E65C00, #FF6600, #E65C00);
    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: #FF6600;
    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(255, 102, 0, 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: #FF6600 !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: #FF6600;
}

.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;
}

/* 响应式样式 */
@media (max-width: 767.98px) {
    .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;
    }
} 