/* articles-v3.css - 资讯中心 (精致版) */

/* ========== 频道页头 ========== */
.channel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 0 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.channel-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.channel-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255,255,255,0.5);
}

.channel-title-wrap {
    text-align: center;
    position: relative;
    z-index: 1;
}

.channel-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.channel-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.channel-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
}

/* ========== 频道容器 ========== */
.channel-container {
    padding: 40px 0 60px;
    background: #f5f7fa;
    min-height: 600px;
}

.channel-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 35px;
}

/* 桌面端隐藏移动端导航 */
.mobile-channel-nav {
    display: none;
}

/* ========== 侧边栏 ========== */
.channel-sidebar {
    position: sticky;
    top: 25px;
    height: fit-content;
}

.sidebar-menu {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 15px;
}

.sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    position: relative;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.sidebar-header p {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

.sidebar-nav {
    padding: 12px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 22px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    margin: 4px 8px;
    border-radius: 0 8px 8px 0;
}

.nav-item:hover {
    background: #f7fafc;
    color: #667eea;
    border-left-color: #cbd5e0;
}

.nav-item.active {
    background: linear-gradient(90deg, #e0e7ff 0%, #f0f4ff 100%);
    color: #5a67d8;
    border-left-color: #667eea;
    font-weight: 500;
}

.nav-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 28px;
    text-align: center;
}

.nav-text {
    flex: 1;
    font-size: 14px;
}

.nav-arrow {
    font-size: 13px;
    color: #a0aec0;
    transition: transform 0.2s;
}

.nav-item:hover .nav-arrow {
    transform: translateX(3px);
}

.nav-item.active .nav-arrow {
    color: #667eea;
}

/* 侧边栏小工具 */
.sidebar-widget {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 25px;
    margin-bottom: 15px;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    border-bottom: 1px solid #edf2f7;
    transition: background 0.2s;
    border-radius: 6px;
    margin: 0 -8px;
}

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

.article-list li:hover {
    background: #f7fafc;
}

.article-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s;
}

.article-list li a:hover {
    color: #667eea;
}

.article-list .article-title {
    font-size: 13px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}

.article-list .view-count {
    font-size: 11px;
    color: #a0aec0;
    background: #f7fafc;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    margin-left: 8px;
}

.article-list .article-date {
    font-size: 11px;
    color: #a0aec0;
    white-space: nowrap;
    margin-left: 8px;
}

/* ========== 内容头部 ========== */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 5px;
}



/* ========== P1优化：搜索框 ========== */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-left {
    flex: 1;
}

.article-search-form {
    flex-shrink: 0;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 280px;
    padding: 12px 45px 12px 18px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-clear {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.search-clear:hover {
    background: #ffebee;
    color: #f44336;
}

/* 搜索结果提示 */
.search-results-info {
    background: #f5f7ff;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.search-results-info p {
    margin: 0;
    color: #333;
    font-size: 15px;
}

.search-results-info strong {
    color: #667eea;
}

/* 移动端搜索框适配 */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .article-search-form {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
}

.content-desc {
    font-size: 15px;
    color: #718096;
    max-width: 500px;
    line-height: 1.6;
}

.content-count {
    font-size: 14px;
    color: #667eea;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
}

/* ========== 文章列表 - 列表布局 ========== */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.article-link-v3 {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.article-thumb {
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-item:hover .article-thumb img {
    transform: scale(1.08);
}

.article-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f1 100%);
}

/* 分类标签 */
.article-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.article-category.guide { background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%); }
.article-category.promotion { background: linear-gradient(135deg, #ed64a6 0%, #d53f8c 100%); }
.article-category.knowledge { background: linear-gradient(135deg, #48bb78 0%, #38a169 100%); }
.article-category.comparison { background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%); }
.article-category.news { background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%); }

.article-body {
    flex: 1;
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
}

.article-title-v3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.5;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.article-item:hover .article-title-v3 {
    color: #667eea;
}

.article-excerpt-v3 {
    font-size: 14px;
    color: #718096;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
}

.article-meta-v3 {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #a0aec0;
}

.article-meta-v3 span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    color: #667eea;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.article-item:hover .read-more {
    gap: 8px;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
    color: #4a5568;
    text-decoration: none;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    font-weight: 500;
}

.page-link:hover {
    background: #f7fafc;
    color: #667eea;
    border-color: #cbd5e0;
}

.page-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 80px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.empty-icon {
    font-size: 72px;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 22px;
    color: #2d3748;
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-state p {
    font-size: 15px;
    color: #718096;
    margin-bottom: 15px;
}

.empty-state .btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .article-thumb {
        width: 200px;
    }
}

@media (max-width: 992px) {
    .channel-layout {
        grid-template-columns: 1fr;
    }
    
    .channel-sidebar {
        position: static;
        order: 2;
    }
    
    .channel-content {
        order: 1;
    }
    
    .article-link-v3 {
        flex-direction: column;
    }
    
    .article-thumb {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .channel-title {
        font-size: 24px;
    }
    
    .channel-subtitle {
        font-size: 14px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .content-count {
        margin-left: 0;
    }
    
    .article-body {
        padding: 18px 22px;
    }
    
    .article-title-v3 {
        font-size: 16px;
    }
}

/* P0优化：新增小屏幕移动端适配 */
@media (max-width: 576px) {
    /* 移动端频道导航下拉菜单 */
    .mobile-channel-nav {
        display: block;
        margin-bottom: 20px;
    }
    
    .channel-select {
        width: 100%;
        padding: 12px 15px;
        font-size: 15px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        background: white;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        cursor: pointer;
    }
    
    .channel-select:focus {
        border-color: #4a90e2;
        outline: none;
    }
    
    /* 桌面端侧边栏在移动端隐藏 */
    .channel-sidebar {
        display: none;
    }
    
    /* 调整头部 */
    .channel-header {
        padding: 30px 0;
    }
    
    .channel-title {
        font-size: 22px;
    }
    
    .channel-icon {
        font-size: 32px;
    }
    
    .breadcrumb {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .channel-container {
        padding: 0 12px;
    }
    
    .sidebar-menu {
        margin-bottom: 20px;
    }
    
    .sidebar-header {
        padding: 15px 18px;
    }
    
    .sidebar-header h3 {
        font-size: 16px;
    }
    
    .nav-item {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .sidebar-widget {
        margin-bottom: 20px;
    }
    
    .widget-title {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .article-list li a {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    

/* ========== P1优化：搜索框 ========== */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-left {
    flex: 1;
}

.article-search-form {
    flex-shrink: 0;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 280px;
    padding: 12px 45px 12px 18px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-clear {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.search-clear:hover {
    background: #ffebee;
    color: #f44336;
}

/* 搜索结果提示 */
.search-results-info {
    background: #f5f7ff;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.search-results-info p {
    margin: 0;
    color: #333;
    font-size: 15px;
}

.search-results-info strong {
    color: #667eea;
}

/* 移动端搜索框适配 */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .article-search-form {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
}

.content-desc {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .content-count {
        font-size: 13px;
    }
    
    .articles-list {
        gap: 16px;
    }
    
    .article-link-v3 {
        border-radius: 12px;
    }
    
    .article-thumb {
        height: 180px;
    }
    
    .article-body {
        padding: 16px 18px;
    }
    
    .article-title-v3 {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    .article-excerpt-v3 {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-meta-v3 {
        font-size: 12px;
    }
    
    .read-more {
        font-size: 13px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .page-link {
        padding: 8px 14px;
        font-size: 14px;
        min-width: 40px;
        text-align: center;
    }
    
    .empty-state {
        padding: 50px 20px;
    }
    
    .empty-icon {
        font-size: 36px;
    }
    
    .empty-state h3 {
        font-size: 20px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
}

/* ========== P3优化：排序筛选 ========== */
.sort-filter-bar {
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    border: 1px solid #e8eaf6;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.2s;
}

.sort-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.sort-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sort-icon {
    font-size: 16px;
}

.sort-text {
    font-weight: 500;
}

/* ========== P3优化：空状态设计 ========== */
.empty-state-v3 {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px dashed #e0e0e0;
}

.empty-illustration {
    margin-bottom: 25px;
}

.empty-icon-wrap {
    position: relative;
    display: inline-block;
}

.empty-main-icon {
    font-size: 64px;
    display: block;
}

.empty-search-icon {
    position: absolute;
    bottom: -5px;
    right: -10px;
    font-size: 28px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.empty-desc a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px dashed #667eea;
}

.empty-desc a:hover {
    border-bottom-style: solid;
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.empty-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.empty-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.empty-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.empty-actions .btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.empty-actions .btn-secondary:hover {
    background: #f5f7ff;
}

.empty-suggestions {
    padding-top: 25px;
    border-top: 1px solid #e8eaf6;
}

.empty-suggestions h4 {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggestion-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.2s;
}

.suggestion-chip:hover {
    border-color: #667eea;
    background: #f5f7ff;
    color: #667eea;
    transform: translateY(-1px);
}

/* 移动端适配 */
@media (max-width: 576px) {
    .sort-filter-bar {
        padding: 12px 15px;
    }
    
    .sort-options {
        gap: 8px;
    }
    
    .sort-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .sort-text {
        display: none;
    }
    
    .empty-state-v3 {
        padding: 40px 20px;
    }
    
    .empty-main-icon {
        font-size: 48px;
    }
    
    .empty-title {
        font-size: 18px;
    }
    
    .empty-desc {
        font-size: 14px;
    }
    
    .empty-actions {
        flex-direction: column;
    }
    
    .empty-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
