/* ========================================
   标准文章分类页面样式 - 列表大图模式
   方案二：Medium风格，强调阅读体验
   ======================================== */

.Community-category-article-page {
    min-height: 100vh;
    background: #f9fafb;
}

/* 面包屑导航 */
.Community-category-article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.Community-breadcrumb {
    display: flex;
    align-items: center;
    padding: 16px 0;
    font-size: 14px;
    color: #6b7280;
    background: transparent;
}

.Community-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
}

.Community-breadcrumb a:hover {
    color: #FF6A00;
    background: #fff5f0;
}

/* 添加首页图标 */
.Community-breadcrumb a:first-child::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 4px;
}

.Community-breadcrumb a:first-child:hover::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23FF6A00" stroke-width="2"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>');
}

.Community-breadcrumb .separator {
    margin: 0 8px;
    color: #d1d5db;
    font-weight: 300;
    user-select: none;
}

.Community-breadcrumb .current {
    color: #1f2937;
    font-weight: 600;
    padding: 4px 12px;
    background: linear-gradient(135deg, #fff5f0, #ffe8db);
    border-radius: 6px;
    border: 1px solid #ffd4b3;
}

/* 页面头部 - 橙色渐变主题 */
.Community-category-article-hero {
    background: linear-gradient(135deg, #FF6A00 0%, #FF8533 100%);
    color: #fff;
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* 添加几何装饰图案 */
.Community-category-article-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.Community-category-article-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.Community-category-article-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.Community-category-article-badge svg {
    width: 18px;
    height: 18px;
}

.Community-category-article-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.Community-category-article-description {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 24px;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.Community-category-article-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.Community-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.Community-stat-item svg {
    width: 16px;
    height: 16px;
}

/* 筛选排序栏 */
.Community-filter-bar {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.Community-filter-tabs {
    display: flex;
    gap: 8px;
}

.Community-filter-tab {
    padding: 8px 20px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.Community-filter-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.Community-filter-tab.active {
    background: linear-gradient(135deg, #FF6A00, #FF8533);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

.Community-view-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.Community-view-toggle {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
}

.Community-view-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.Community-view-btn:hover {
    color: #374151;
}

.Community-view-btn.active {
    background: #fff;
    color: #FF6A00;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 两栏布局 - 与首页保持一致的2:1比例 */
.Community-category-article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* 主内容区 */
.Community-category-article-main {
    min-width: 0;
}

/* 文章网格布局 - 一行显示2个 */
.Community-article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* 网格模式文章卡片 - 垂直布局 */
.Community-article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.Community-article-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #FF6A00, #FF8533);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.Community-article-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.Community-article-card:hover::before {
    opacity: 1;
}

/* 网格模式图片区域 - 自适应高度 */
.Community-article-card-image {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    background: #e5e7eb;
}

.Community-article-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.Community-article-card:hover .Community-article-card-image img {
    transform: scale(1.08);
}

.Community-article-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.Community-article-card:hover .Community-article-card-overlay {
    opacity: 1;
}

/* 图片上的标签 */
.Community-article-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #FF6A00, #FF8533);
    color: #fff;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.4);
}

.Community-article-sticky-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: #10B981;
    color: #fff;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* 网格模式内容区域 */
.Community-article-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 20px;
}

/* 顶部元信息 */
.Community-article-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.Community-article-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.Community-article-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f3f4f6;
}

.Community-article-author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.Community-article-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.Community-article-author-name:hover {
    color: #FF6A00;
}

.Community-article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.Community-article-card-date,
.Community-article-read-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.Community-article-card-date svg,
.Community-article-read-time svg {
    width: 12px;
    height: 12px;
}

.Community-article-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.Community-article-card-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.Community-article-card-title a:hover {
    color: #FF6A00;
}

.Community-article-card-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部信息栏 */
.Community-article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

/* 加载动画 */
.Community-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 106, 0, 0.2);
    border-top-color: #FF6A00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.Community-article-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.Community-article-category {
    padding: 4px 12px;
    background: #f0f9ff;
    color: #0369a1;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #bae6fd;
}

.Community-article-category:hover {
    background: #0369a1;
    color: #fff;
    border-color: #0369a1;
    transform: translateY(-2px);
}

.Community-article-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #9ca3af;
}

.Community-article-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.Community-article-stat svg {
    width: 14px;
    height: 14px;
}

.Community-article-stat.likes svg {
    color: #EF4444;
}

.Community-article-stat.comments svg {
    color: #3B82F6;
}

.Community-article-stat.views svg {
    color: #10B981;
}

/* 右侧边栏 */
.Community-category-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.Community-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.Community-sidebar-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
}

/* 最新文章列表 */
.Community-latest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.Community-latest-list li {
    margin-bottom: 16px;
}

.Community-latest-list li:last-child {
    margin-bottom: 0;
}

.Community-latest-list a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.Community-latest-list a:hover {
    opacity: 0.8;
}

.Community-latest-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
}

.Community-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.Community-latest-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.Community-latest-info h6 {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.Community-latest-date {
    font-size: 12px;
    color: #6b7280;
}

/* 热门文章列表 */
.Community-popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.Community-popular-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.Community-popular-list li:last-child {
    margin-bottom: 0;
}

.Community-popular-rank {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
}

.Community-popular-list li:nth-child(1) .Community-popular-rank {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
}

.Community-popular-list li:nth-child(2) .Community-popular-rank {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    color: #fff;
}

.Community-popular-list li:nth-child(3) .Community-popular-rank {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: #fff;
}

.Community-popular-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.Community-popular-info a {
    text-decoration: none;
}

.Community-popular-info h6 {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.Community-popular-info a:hover h6 {
    color: #3b82f6;
}

.Community-popular-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.Community-popular-views svg {
    width: 12px;
    height: 12px;
}

.Community-no-posts {
    font-size: 14px;
    color: #9ca3af;
    text-align: center;
    padding: 20px 0;
}

/* 空状态 */
.Community-category-article-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
}

.Community-category-article-empty svg {
    color: #d1d5db;
    margin-bottom: 20px;
}

.Community-category-article-empty h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.Community-category-article-empty p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
}

/* 分页 */
.Community-category-article-pagination {
    margin-top: 40px;
    text-align: center;
}

.Community-category-article-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.Community-category-article-pagination .page-numbers:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.Community-category-article-pagination .page-numbers.current {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .Community-category-article-layout {
        grid-template-columns: 1fr;
    }
    
    .Community-category-sidebar-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .Community-article-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .Community-category-article-hero {
        padding: 40px 0;
    }
    
    .Community-category-article-title {
        font-size: 32px;
    }
    
    .Community-filter-bar {
        padding: 16px;
    }
    
    .Community-filter-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .Community-filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .Community-view-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .Community-article-list {
        grid-template-columns: 1fr;
    }
    
    .Community-article-card-title {
        font-size: 16px;
    }
    
    .Community-article-card-excerpt {
        font-size: 13px;
    }
    
    .Community-article-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .Community-category-sidebar-right {
        grid-template-columns: 1fr;
    }
}
