/* ==========================================================
   eenano.com 前台公共列表/频道/标签/专题 样式
   提取自各个页面的 inline <style>，统一复用
   ========================================================== */

/* ===== 频道/标签 头部 ===== */
.ch-header {
    background: #fff;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #eee;
}

.ch-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ch-name {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: #333;
}

.ch-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.ch-follow-btn:hover {
    background: var(--primary-dark);
}

.ch-follow-count {
    font-size: 13px;
    color: #999;
}

.ch-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin: 0;
    max-width: 680px;
}

.tag-header {
    background: #fff;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #eee;
}

.tag-breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.tag-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.tag-name {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: #333;
}

.tag-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.tag-follow-btn:hover {
    background: var(--primary-dark);
}

.tag-follow-count {
    font-size: 13px;
    color: #999;
}

.tag-stats {
    font-size: 13px;
    color: #999;
}

/* ===== Tab 导航（矩形按钮） ===== */
.ch-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.ch-tab {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    margin-right: -1px;
    transition: all .15s;
    background: #fff;
}

.ch-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.ch-tab:last-child {
    border-radius: 0 4px 4px 0;
}

.ch-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
    z-index: 1;
    position: relative;
}

.ch-tab.active {
    background: #f5f5f5;
    font-weight: 700;
    color: #333;
}

/* ===== 排序栏 ===== */
.ch-sort-bar {
    display: flex;
    gap: 0;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 8px 8px 0 0;
}

.ch-sort-item {
    padding: 4px 16px;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    border-right: 1px solid #eee;
    transition: color .15s;
}

.ch-sort-item:last-child {
    border-right: none;
}

.ch-sort-item.active {
    color: #333;
    font-weight: 700;
}

.ch-sort-item:hover {
    color: var(--primary);
}

/* ===== 频道子标题 ===== */
.ch-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    background: #fff;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.ch-section-bar {
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

/* ===== 文章列表项 ===== */
.ef-article {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}

.ef-article:hover {
    background: #fafafa;
}

.ef-article:last-of-type {
    border-bottom: 1px solid #eee;
}

.ef-article-thumb {
    width: 180px;
    min-width: 180px;
    height: 120px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

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

.ef-article:hover .ef-article-thumb img {
    transform: scale(1.04);
}

.ef-article-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.ef-article-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 8px;
}

.ef-article-title a {
    color: #333;
    text-decoration: none;
}

.ef-article-title a:hover {
    color: var(--primary);
}

.ef-article-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 文章元信息（含标签链接） ===== */
.ef-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #999;
}

.ef-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ef-meta-item i {
    font-size: 13px;
}

.ef-meta-sep {
    color: #ccc;
    margin: 0 2px;
}

.ef-meta-tag {
    color: #2196F3;
    text-decoration: none;
    font-size: 12px;
    margin-right: 4px;
    transition: color .15s;
}

.ef-meta-tag:hover {
    color: var(--primary);
    text-decoration: underline;
}

.ef-meta-right {
    margin-left: auto;
    display: flex;
    gap: 12px;
}

/* ===== 分页 ===== */
.ef-pager {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.ef-pager .pagination {
    margin: 0;
}

.ef-pager .page-item .page-link {
    border: 1px solid #ddd;
    color: #333;
    padding: 6px 14px;
    font-size: 13px;
    margin: 0 2px;
    border-radius: 4px;
    transition: all .15s;
}

.ef-pager .page-item .page-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.ef-pager .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.ef-pager .page-item.disabled .page-link {
    color: #ccc;
    background: #f9f9f9;
}

/* ===== 侧边栏 ===== */
.ef-sidebar-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.ef-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.ef-sidebar-bar {
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.ef-sidebar-body {
    padding: 0;
}

.ef-hot-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid #f8f8f8;
    transition: background .15s;
}

.ef-hot-item:hover {
    background: #fafafa;
    color: var(--primary);
}

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

.ef-hot-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
    background: #eee;
    color: #999;
}

.ef-hot-rank.top {
    background: var(--primary);
    color: #fff;
}

.ef-hot-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ef-tag-pill {
    display: inline-block;
    padding: 5px 14px;
    margin: 3px 4px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    color: #555;
    font-size: 12px;
    text-decoration: none;
    transition: all .2s;
}

.ef-tag-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff5f5;
}

.ef-tag-pill.active {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff5f5;
    font-weight: 600;
}

.ef-sub-link {
    display: block;
    padding: 9px 16px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f8f8f8;
    transition: all .15s;
}

.ef-sub-link:hover {
    color: var(--primary);
    background: #fafafa;
    padding-left: 20px;
}

.ef-sub-link i {
    font-size: 10px;
    margin-right: 4px;
    color: #ccc;
}

/* ===== 专题详情通用 ===== */
.topic-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8e8e8;
    background: #fff;
}

.topic-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 24px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
    white-space: nowrap;
}

.topic-nav a:hover {
    color: #333;
    background: #f8f8f8;
    border-bottom-color: #ddd;
}

.topic-nav a.active {
    color: #c41a16;
    border-bottom-color: #c41a16;
    font-weight: 600;
}

.topic-nav a .badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 500;
}

.topic-nav a.active .badge {
    background: #c41a16;
    color: #fff;
}

.topic-nav a:not(.active) .badge {
    background: #eee;
    color: #999;
}

.topic-banner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.topic-banner-bg {
    height: 260px;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

.topic-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 32px 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}

.topic-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
}

.content-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.content-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
}

.article-row {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
}

.article-row:hover {
    background: #fafafa;
}

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

.video-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}

.video-thumb {
    position: relative;
    padding-top: 56.25%;
    background: #1a1a1a;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, .6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.video-card:hover .video-play {
    background: rgba(196, 26, 22, .85);
}

.video-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, .75);
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
}

.dl-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
}

.dl-row:hover {
    background: #fafafa;
}

.dl-icon {
    font-size: 32px;
    width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.qa-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.qa-row:hover {
    background: #fafafa;
}

.qa-count {
    width: 52px;
    text-align: center;
    flex-shrink: 0;
}

.qa-count .num {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.qa-count .label {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

/* ===== 综合概览卡片 ===== */
.overview-section {
    margin-bottom: 16px;
}

.overview-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.overview-section-head h5 {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-section-head .more-link {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}

.overview-section-head .more-link:hover {
    color: var(--primary);
}

/* ===== 响应式 ===== */
@media (max-width:768px) {

    .ch-header,
    .tag-header {
        padding: 16px;
    }

    .ch-tabs {
        padding: 12px 16px;
    }

    .ef-article {
        padding: 14px;
        gap: 12px;
    }

    .ef-article-thumb {
        width: 120px;
        min-width: 120px;
        height: 80px;
    }

    .ef-article-title {
        font-size: 15px;
    }

    .ch-name {
        font-size: 20px;
    }

    .tag-name {
        font-size: 20px;
    }

    .topic-nav a {
        padding: 10px 14px;
        font-size: 13px;
    }
}