@charset "UTF-8";


/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 20px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #2b97f2;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
    font-size: 14px;
}

.breadcrumb .current {
    color: #666;
    font-size: 14px;
}

/* 页面标题 */
.page-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f9f0;
    font-weight: 700;
}

/* 页面布局 */
.page-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/* 主内容区域 */
.main-content {
    flex: 3;
}

/* 侧边栏区域 */
.sidebar {
    flex: 1;
    min-width: 280px;
}

/* 通用卡片样式 */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f9f0;
}

.card-title i {
    margin-right: 10px;
    color: #2b97f2;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    border-radius: 6px;
}

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

.article-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #2b97f2;
}

.article-summary {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #999;
    font-size: 12px;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
    font-size: 11px;
}

.article-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f0f9f0;
    color: #2b97f2;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 8px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 5px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-item:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.pagination-item.active {
    background-color: #2b97f2;
    color: white;
    border-color: #2b97f2;
}

.pagination-item.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.pagination-item.disabled:hover {
    background-color: white;
    border-color: #ddd;
}

.pagination-ellipsis {
    color: #999;
    padding: 0 5px;
}

/* 排行榜 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

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

.ranking-item:hover {
    transform: translateX(5px);
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
}

.ranking-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}

.ranking-number.top-1 {
    background-color: #ffd700;
    color: white;
}

.ranking-number.top-2 {
    background-color: #c0c0c0;
    color: white;
}

.ranking-number.top-3 {
    background-color: #cd7f32;
    color: white;
}

.ranking-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.ranking-title a:hover {
    color: #2b97f2;
}

.ranking-views {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ranking-views i {
    margin-right: 3px;
}

/* 推荐产品 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-item {
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #2b97f2;
    transition: all 0.3s;
}

.product-item:hover {
    background-color: #f0f9f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(7, 193, 96, 0.1);
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.product-name a:hover {
    color: #2b97f2;
}

.product-description {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    color: #2b97f2;
    font-weight: 600;
    font-size: 14px;
}

.product-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #fff3e0;
    color: #ff9800;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}



/* 手机端适配 */
@media (max-width: 768px) {
    /* 调整面包屑导航 */
    .breadcrumb {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    /* 调整页面布局 */
    .page-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    .sidebar {
        min-width: 100%;
    }
    
    /* 调整卡片样式 */
    .card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .card-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    /* 调整文章列表 */
    .article-item {
        padding: 12px;
    }
    
    .article-title {
        font-size: 15px;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    /* 调整分页 */
    .pagination {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .pagination-item {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}


@media (max-width: 480px) {
    .article-summary {
        -webkit-line-clamp: 3;
    }
    
    .pagination-item {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .page-title {
        font-size: 16px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .article-title {
        font-size: 14px;
    }
}