/* ============================================================
   专委会子主页（二级独立站）样式
   沿用主站风格体系：同一套蓝色变量、左侧栏目导航、inner 布局
   ============================================================ */

/* ===== 基础排版（专委会子站） ===== */
.subcontent > section { margin-bottom: 44px; }
.subcontent > section:last-child { margin-bottom: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.section-title { font-size: 21px; }
.branch-text { font-size: 14px; line-height: 1.9; color: #4a5a70; margin: 0 0 12px; }
.branch-text strong { color: var(--primary-blue); }

/* ===== 专委会首页 / 概览区 ===== */
.cmt-home {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 30px;
    background: linear-gradient(135deg, #f3f8ff, #e9f1fd);
    border: 1px solid #e1ebf7;
    border-radius: 16px;
    margin-bottom: 8px;
}
.cmt-home-lead {
    font-size: 17px;
    line-height: 1.95;
    color: #33425a;
    margin: 0;
}
.cmt-home-lead strong { color: var(--primary-blue); }
.cmt-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 4px;
}
.cmt-stat {
    background: #fff;
    border: 1px solid #e7eef7;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
}
.cmt-stat-num {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.cmt-stat-num span { font-size: 16px; font-weight: 700; }
.cmt-stat-label { font-size: 13px; color: #7c8aa0; margin-top: 6px; }

/* ===== 专委会领导（图片文字恢复原大小，5 列紧凑排布） ===== */
.cmt-leader-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 6px;
}
.cmt-leader {
    background: #fff;
    border: 1px solid #e7eef7;
    border-radius: 12px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.cmt-leader:hover {
    border-color: #c3d6ee;
    box-shadow: 0 10px 22px rgba(16, 42, 84, .07);
    transform: translateY(-1px);
}
.cmt-leader-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
}
.cmt-leader-name { font-size: 15px; font-weight: 700; color: #0e2c54; white-space: nowrap; }
.cmt-leader-role { font-size: 12.5px; color: #7c8aa0; margin-top: 3px; }

/* ===== 专委会成员（标签胶囊形式） ===== */
.cmt-member-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 8px;
}
.cmt-member {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: #fff;
    border: 1px solid #e7eef7;
    border-radius: 999px;
    font-size: 14px;
    color: #33425a;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.cmt-member:hover {
    border-color: var(--primary-blue);
    color: #fff;
    background: var(--primary-blue);
}

/* ===== 新闻列表（专委会 / 主站通用） ===== */
.cmt-news { margin-top: 6px; }
.cmt-news-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 6px;
    border-bottom: 1px solid #eef2f7;
    text-decoration: none;
    transition: background-color .2s ease;
}
.cmt-news-item:last-child { border-bottom: none; }
.cmt-news-item:hover { background: #f7faff; }
.cmt-news-date {
    flex: 0 0 auto;
    min-width: 92px;
    font-size: 13px;
    color: #9aa9bd;
    font-variant-numeric: tabular-nums;
}
.cmt-news-title { font-size: 16px; color: #2c3a4d; line-height: 1.6; }
.cmt-news-item:hover .cmt-news-title { color: var(--primary-blue); }
.cmt-news-tag {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 12px;
    color: #7c8aa0;
    background: #eef3fa;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.cmt-news-tag.main { color: var(--primary-blue); background: #e3f2fd; }

/* ===== 来源说明 ===== */
.cmt-source-note { font-size: 13px; color: #9aa9bd; margin: 0 0 10px; }
.cmt-source-note b { color: var(--accent-blue); }

/* ===== 联系我们 ===== */
.cmt-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}
.cmt-contact-item {
    flex: 1 1 240px;
    background: #f7faff;
    border: 1px solid #e7eef7;
    border-radius: 12px;
    padding: 18px 20px;
}
.cmt-contact-item .l { font-size: 13px; color: #7c8aa0; margin-bottom: 6px; }
.cmt-contact-item .v { font-size: 15px; color: #0e2c54; font-weight: 600; line-height: 1.5; }

/* ===== 锚点偏移，避开 sticky header ===== */
.subcontent section { scroll-margin-top: 96px; }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
    .cmt-stats { grid-template-columns: repeat(2, 1fr); }
    .cmt-leader-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
    .cmt-stats { grid-template-columns: repeat(2, 1fr); }
    .cmt-leader-grid { grid-template-columns: repeat(2, 1fr); }
    .cmt-news-item { flex-wrap: wrap; gap: 4px 14px; }
    .cmt-news-tag { margin-left: 0; }
    .cmt-home { padding: 22px 18px; }
}

/* ===== 左侧机构名称（公用 + 专委会） ===== */
.subnav-org {
    padding: 20px 22px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 12px 12px 0 0;
    color: #fff;
}
.subnav-org-top { font-size: 18px; font-weight: 600; opacity: .9; letter-spacing: .5px; }
.subnav-org-name { font-size: 18px; font-weight: 800; margin-top: 6px; line-height: 1.3; }

/* ===== 专委会动态：图文卡片（等比例缩小，参考主站分支机构动态） ===== */
.cmt-news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 6px;
}
.cmt-news-card {
    display: block;
    background: #fff;
    border: 1px solid #e7eef7;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.cmt-news-card:hover {
    border-color: #c3d6ee;
    box-shadow: 0 14px 30px rgba(16, 42, 84, .08);
    transform: translateY(-3px);
}
.cmt-news-thumb {
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
}
.cmt-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.cmt-news-card:hover .cmt-news-thumb img { transform: scale(1.06); }
.cmt-news-body { padding: 14px 15px 16px; }
.cmt-news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cmt-news-meta .cmt-news-date { min-width: auto; }
.cmt-news-title { font-size: 15px; font-weight: 700; color: #0e2c54; line-height: 1.5; margin: 0 0 8px; }
.cmt-news-card:hover .cmt-news-title { color: var(--primary-blue); }
.cmt-news-desc { font-size: 13px; line-height: 1.7; color: #7c8aa0; margin: 0; }

/* ===== 返回按钮（胶囊） ===== */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 999px;
    background: var(--primary-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}
.btn-pill:hover { background: var(--primary-blue-dark); transform: translateY(-1px); }

/* ===== 专委会详情页（简介 / 领导） ===== */
.cmt-detail-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: center;
    margin: 0 0 30px;
}
.cmt-detail-hero-img {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    box-shadow: 0 18px 40px rgba(10, 50, 108, .18);
}
.cmt-detail-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmt-detail-title { font-size: 24px; font-weight: 800; color: var(--text-primary); margin: 0 0 14px; }
.cmt-block { margin: 0 0 34px; }
.cmt-block-h {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--accent-blue);
}
.cmt-list { margin: 0; padding-left: 22px; }
.cmt-list li { font-size: 14.5px; line-height: 2; color: #4a5a70; }
.cmt-list li strong { color: var(--primary-blue); }
.cmt-group { margin: 0 0 30px; }
.cmt-group-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cmt-group-title::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--accent-blue);
}
.cmt-leader-grid { gap: 16px; }
.cmt-leader {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 12px);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.cmt-leader:hover { box-shadow: 0 12px 28px rgba(10, 50, 108, .12); transform: translateY(-3px); border-color: var(--accent-blue); }
.cmt-leader-avatar {
    flex: 0 0 54px;
    width: 54px; height: 54px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
}
.cmt-leader-name { font-size: 16px; font-weight: 700; color: #0e2c54; white-space: nowrap; }
.cmt-leader-role { font-size: 13px; color: #7c8aa0; margin-top: 4px; }
@media (max-width: 860px) {
    .cmt-detail-hero { grid-template-columns: 1fr; }
    .cmt-detail-hero-img { order: -1; }
}

@media (max-width: 1100px) {
    .cmt-news-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .cmt-news-cards { grid-template-columns: 1fr; }
}

/* ===== 列表页：分类筛选标签（与主站会员名录一致） ===== */
.cmt-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 10px;
    margin: 0 0 22px;
}
.cmt-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 44px;
    padding: 0 22px;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-decoration: none;
    background: transparent;
    border: 1px solid #d3dae4;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.cmt-filter a:hover,
.cmt-filter a.active {
    color: #fff;
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 6px 16px rgba(10, 50, 108, .18);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .cmt-filter {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 -18px 18px;
        padding: 2px 18px;
    }
    .cmt-filter::-webkit-scrollbar { display: none; }
    .cmt-filter a {
        flex: 0 0 auto;
        min-width: 0;
        height: 38px;
        padding: 0 16px;
        font-size: 15px;
        letter-spacing: .5px;
        border-radius: 8px;
    }
}

/* ===== 列表页：分页（统一风格） ===== */
.cmt-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.cmt-pager a {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}
.cmt-pager a:hover { border-color: var(--accent-blue); color: var(--primary-blue); }
.cmt-pager a.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: #fff;
    border-color: transparent;
}
.cmt-pager a.disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}
@media (max-width: 560px) {
    .cmt-pager a { min-width: 36px; height: 36px; font-size: 13px; padding: 0 10px; }
}
