/**
 * 益雅诗康 - 知识库页面样式
 * 文件：article.css
 */

/* Banner区域 */
.article-banner {
    background: linear-gradient(135deg, #1a73e8 0%, #0d5bbf 100%);
    padding: 100px 20px 60px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.article-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    background-size: 100px 100px;
    opacity: 0.3;
}

.article-banner .container {
    position: relative;
    z-index: 1;
}

.article-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 600;
	color: var(--light-gray);
}

.article-banner p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 面包屑导航 */
.article-breadcrumb {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    color: #999;
    font-size: 0.8rem;
}

.breadcrumb-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-list a:hover {
    color: #1a73e8;
}

.breadcrumb-list li:last-child {
    color: #333;
    font-weight: 500;
}

/* 主体区域 */
.article-main {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

/* ========== 分类导航卡片 - 醒目的大卡片 ========== */
.category-section {
    margin-bottom: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.15);
    border-color: #1a73e8;
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border-radius: 14px;
    flex-shrink: 0;
}

.category-icon i {
    font-size: 1.8rem;
    color: #1a73e8;
}

.category-info h3 {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 4px;
    font-weight: 600;
}

.category-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 6px;
}

.category-count {
    font-size: 0.8rem;
    color: #999;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, #1a73e8 0%, #0d5bbf 100%);
}

.category-card:hover .category-icon i {
    color: #fff;
}

.category-card:hover .category-info h3 {
    color: #1a73e8;
}

/* ========== 热门推荐 - 紧凑的列表样式 ========== */
.hot-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hot-header {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.hot-header h2 {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.hot-header h2 i {
    color: #ff6b6b;
    font-size: 1.1rem;
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 15px;
    background: #fafafa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.hot-item:hover {
    background: #f0f7ff;
}

.hot-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    flex-shrink: 0;
}

.hot-item:nth-child(2) .hot-rank {
    background: linear-gradient(135deg, #ffa726 0%, #ffb74d 100%);
}

.hot-content {
    flex: 1;
    min-width: 0;
}

.hot-content h3 {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-item:hover .hot-content h3 {
    color: #1a73e8;
}

.hot-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #999;
}

.hot-meta .article-category {
    padding: 2px 8px;
    font-size: 0.75rem;
    margin-bottom: 0;
}

.hot-meta i {
    font-size: 0.75rem;
    color: #1a73e8;
    margin-right: 3px;
}

/* ========== 文章列表区域 ========== */
.article-list-section {
    margin-top: 10px;
}

/* 文章区块 */
.article-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8e8e8;
}

.section-header h2 {
    font-size: 1.3rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #1a73e8;
    border-radius: 2px;
}

/* 查看全部链接 */
.section-header .view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.section-header .view-all:hover {
    color: #1a73e8;
}

.section-header .view-all i {
    font-size: 0.75rem;
}

/* 文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* 文章卡片 */
.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.article-card-image {
    height: 140px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-image i {
    font-size: 3rem;
    color: #1a73e8;
    opacity: 0.7;
}

.article-card-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f7ff;
    color: #1a73e8;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 12px;
    color: #999;
    font-size: 0.8rem;
}

.article-meta i {
    margin-right: 4px;
    color: #1a73e8;
    font-size: 0.85rem;
}

/* ========== 文章分类页列表样式 ========== */
.category-article-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 25px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}

.list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.1);
    border-color: #1a73e8;
}

.list-item-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-radius: 10px;
    flex-shrink: 0;
}

.list-item-icon i {
    font-size: 1.5rem;
    color: #1a73e8;
    opacity: 0.8;
}

.list-item:hover .list-item-icon {
    background: linear-gradient(135deg, #1a73e8 0%, #0d5bbf 100%);
}

.list-item:hover .list-item-icon i {
    color: #fff;
    opacity: 1;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
}

.list-item-header h3 {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.list-item:hover .list-item-header h3 {
    color: #1a73e8;
}

.list-item-header .article-category {
    flex-shrink: 0;
    margin-bottom: 0;
}

.list-item-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-item-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 0.8rem;
}

.list-item-meta i {
    margin-right: 4px;
    color: #1a73e8;
    font-size: 0.85rem;
}

/* ========== 响应式设计 ========== */
@media screen and (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 20px;
        gap: 15px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon i {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .article-banner {
        padding: 100px 15px 40px;
    }

    .article-banner h1 {
        font-size: 1.6rem;
    }
	
	/* 面包屑导航 */
	.article-breadcrumb {
	    padding: 10px 0;
	}
	
	.breadcrumb-list {
	    font-size: 0.85rem;
	}

    .article-main {
        padding: 30px 0 50px;
    }
    
    /* 分类卡片移动端 */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .category-card {
        padding: 18px 20px;
    }
    
    /* 热门推荐移动端 */
    .hot-section {
        padding: 15px 18px;
        margin-bottom: 30px;
    }
    
    .hot-item {
        padding: 10px 12px;
    }
    
    .hot-content h3 {
        font-size: 0.9rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header {
        margin-bottom: 20px;
    }
    
    .section-header h2 {
        font-size: 1.15rem;
    }
    
    .article-card-image {
        height: 120px;
    }
    
    .article-card-content {
        padding: 18px;
    }
}
