/* ===== 页面通用样式 ===== */

/* 页面Banner */
.page-banner {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 86, 255, 0.8) 0%, rgba(0, 68, 204, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* 面包屑导航 - 简洁风格 */
.breadcrumb {
    background: #f5f6f8;
    padding: 18px 0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    font-size: 15px;
}

.breadcrumb a {
    color: #666;
    transition: color .2s;
}

.breadcrumb a:hover {
    color: #5b21b6;
}

.breadcrumb .sep {
    margin: 0 10px;
    color: #999;
    font-size: 16px;
}

.breadcrumb .current {
    color: #5b21b6;
}

/* ===== 栏目页统一布局：对齐 meeting.html 风格 ===== */
.subpage-layout {
    background: #fff;
}

.subpage-layout .container {
    max-width: 960px;
}

.subpage-breadcrumb {
    display: flex;
    align-items: center;
    min-height: 70px;
    padding: 0;
    background: #f5f6f8;
}

.subpage-breadcrumb .container {
    font-size: 18px;
    line-height: 1;
}

.subpage-breadcrumb a,
.subpage-breadcrumb span:not(.current) {
    color: #6b7280;
    transition: color .2s;
}

.subpage-breadcrumb a:hover {
    color: #5b21b6;
}

.subpage-breadcrumb .sep {
    margin: 0 12px;
    color: #b8bec8;
    font-size: 24px;
    line-height: 1;
}

.subpage-breadcrumb .current {
    color: #5b21b6;
    font-weight: 500;
}

.subpage-layout .content-section {
    padding: 40px 0 64px;
    background: #fff;
}

.subpage-layout .page-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.subpage-layout .sidebar {
    position: sticky;
    top: 112px;
}

.subpage-layout .sidebar-nav {
    width: 190px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.subpage-layout .nav-item {
    position: relative;
    display: block;
    min-height: 67px;
    padding: 20px 10px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    border-right: 4px solid transparent;
    border-bottom: 1px dashed #d9d9d9;
    background: transparent;
    transition: all .25s ease;
}

.subpage-layout .nav-item:hover {
    color: #5b21b6;
    background: #eae5fa;
}

.subpage-layout .nav-item.active {
    color: #5b21b6;
    background: #eae5fa;
    border-right-color: #5b21b6;
}

.subpage-layout .nav-item:last-child {
    border-bottom: 1px dashed #d9d9d9;
}

.subpage-layout .main-area {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.subpage-panel {
    display: none;
}

.subpage-panel.active {
    display: block;
}

.subpage-layout .contact-card {
    display: none;
}

/* 内容区域 */
.content-section {
    padding: 40px 0 60px;
    min-height: 600px;
}

.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* ===== 左侧导航样式 - 简洁卡片风格 ===== */
.sidebar {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.nav-item {
    position: relative;
    display: block;
    padding: 16px 28px;
    color: #333;
    font-size: 17px;
    text-align: left;
    transition: all .2s;
    border-right: 3px solid transparent;
}

.nav-item:hover {
    color: #5b21b6;
    background: #fafbfc;
}

.nav-item.active {
    color: #5b21b6;
    font-weight: 600;
    background: #f5f9ff;
    border-right-color: #5b21b6;
}

/* ===== 主内容区域 ===== */
.main-area {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.article-item:hover {
    background: #fafbfc;
    border-color: #e8ecf1;
    transform: translateX(5px);
}

/* 限制 .article-item img 只在 .article-list 里生效 */
.article-list .article-item img {
    width: 240px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-info h2 {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.article-item:hover .article-info h2 {
    color: #5b21b6;
}

.article-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pagination button {
    padding: 8px 18px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    border-color: #5b21b6;
    color: #5b21b6;
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination ul {
    display: flex;
    gap: 5px;
}

.pagination li {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.pagination li:hover {
    background: #f5f7fa;
    color: #5b21b6;
}

.pagination li.active {
    background: #5b21b6;
    color: #fff;
}

.pagination li a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 详情页样式 ===== */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-detail .detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.article-detail .detail-header h1 {
    font-size: 28px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-detail .detail-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    color: #999;
}

.article-detail .detail-content {
    font-size: 16px;
    line-height: 2;
    color: #444;
}

.article-detail .detail-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.article-detail .detail-content img {
    max-width: 100%;
    margin: 20px auto;
    border-radius: 8px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        order: -1;
    }
    
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        border-radius: 4px;
    }
    
    .nav-item {
        flex: 1;
        min-width: calc(50% - 1px);
        padding: 12px 16px;
        font-size: 14px;
        text-align: center;
        border-right: none;
        border-bottom: 2px solid transparent;
    }
    
    .nav-item.active,
    .nav-item:hover {
        background: transparent;
        border-right-color: transparent;
        border-bottom-color: #5b21b6;
    }

    .subpage-layout .container {
        max-width: 100%;
    }

    .subpage-layout .page-layout {
        grid-template-columns: 1fr;
    }

    .subpage-layout .sidebar {
        position: static;
        order: -1;
    }

    .subpage-layout .sidebar-nav {
        display: flex;
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        border: 0;
        border-radius: 0;
        padding: 0;
    }

    .subpage-layout .nav-item {
        min-width: auto;
        min-height: 0;
        flex: 0 0 auto;
        white-space: nowrap;
        border-right: none !important;
        border-bottom: 3px solid transparent;
        padding: 12px 18px;
        font-size: 14px;
    }

    .subpage-layout .nav-item.active,
    .subpage-layout .nav-item:hover {
        border-right-color: transparent !important;
        border-bottom-color: #5b21b6;
        background: transparent;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    /* 手机端 .article-item img 也一样限制范围 */
    .article-list .article-item img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .subpage-breadcrumb {
        min-height: 42px;
        padding: 0;
    }

    .subpage-breadcrumb .container,
    .breadcrumb .container {
        margin: 0;
        padding: 0 19px;
        font-size: 13px;
    }

    .subpage-breadcrumb .sep,
    .breadcrumb .sep {
        margin: 0 7px;
        font-size: 17px;
    }

    .subpage-layout .content-section {
        padding: 0 0 24px;
    }

    .subpage-layout .content-section > .container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0 14px;
    }

    .subpage-layout .page-layout {
        gap: 0;
        min-width: 0;
    }

    .subpage-layout .sidebar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        background: #fff;
        border-bottom: 1px solid #e6e6e6;
        overflow: hidden;
    }

    .subpage-layout .sidebar-nav {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 22px;
        padding: 0 5px;
        scrollbar-width: none;
    }

    .subpage-layout .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .subpage-layout .nav-item {
        min-height: 49px;
        padding: 14px 0 12px;
        border-bottom-width: 3px;
        color: #111;
        font-size: 15px;
        font-weight: 700;
        line-height: 20px;
        background: transparent !important;
    }

    .subpage-layout .nav-item.active,
    .subpage-layout .nav-item:hover {
        color: #5b21b6;
        background: transparent !important;
    }

    .subpage-layout .main-area,
    .main-area {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 16px 5px 0;
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
    }

    .article-list {
        gap: 0;
    }

    .article-item {
        display: grid;
        grid-template-columns: 142px minmax(0, 1fr);
        gap: 13px;
        padding: 13px 0;
        border: 0;
        border-radius: 0;
    }

    .article-item:hover {
        background: transparent;
        border-color: transparent;
        transform: none;
    }

    .article-list .article-item img {
        width: 142px;
        height: 82px;
        border-radius: 0;
    }

    .article-info {
        min-width: 0;
        justify-content: flex-start;
        overflow: hidden;
    }

    .article-info h2 {
        margin: -2px 0 4px;
        color: #222;
        font-size: 15px;
        line-height: 20px;
        -webkit-line-clamp: 1;
    }

    .article-info p {
        margin: 0 0 4px;
        color: #999;
        font-size: 13px;
        line-height: 20px;
        -webkit-line-clamp: 2;
    }

    .article-meta {
        gap: 0;
        color: #777;
        font-size: 12px;
        line-height: 18px;
    }

    .article-meta span + span {
        display: none;
    }

    .pagination {
        margin-top: 18px;
        padding-top: 18px;
        gap: 5px;
    }

    .pagination button {
        height: 25px;
        padding: 0 10px;
        border-radius: 0;
        font-size: 12px;
    }

    .pagination li {
        min-width: 25px;
        height: 25px;
        border-radius: 0;
        font-size: 12px;
    }

    .page-banner {
        height: 200px;
    }
    
    .page-banner h1 {
        font-size: 28px;
    }
    
    .page-banner p {
        font-size: 14px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .article-detail .detail-header h1 {
        font-size: 22px;
    }
    
    .article-detail .detail-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* 面包屑当前栏目高亮：最后一个链接当当前栏目 */
.subpage-breadcrumb.container a:last-of-type {
    color: #5b21b6;
    font-weight: 500;
    pointer-events: none;
}
/* 面包屑间距调整 */
.subpage-breadcrumb.container a {
    margin: 0 8px;
}
.subpage-breadcrumb.container a:first-of-type {
    margin-left: 0;
}

/* ========== 文章列表卡片改为a标签后样式修复 ========== */
/* 限制范围到 .article-list，避免影响其他列表 */
.article-list .article-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
    color: inherit;
    text-decoration: none;
}

.article-list .article-item:hover {
    background: #fafbfc;
    border-color: #e8ecf1;
    transform: translateX(5px);
    color: inherit;
    text-decoration: none;
}

.article-list .article-item .article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-list .article-item .article-info h2 {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.article-list .article-item:hover .article-info h2 {
    color: #5b21b6;
}

.article-list .article-item .article-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list .article-item .article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

/* 响应式：手机端 */
@media (max-width: 768px) {
    .article-list .article-item {
        display: grid;
        grid-template-columns: 142px minmax(0, 1fr);
        gap: 13px;
        padding: 13px 0;
        border: 0;
        border-radius: 0;
    }
    
    .article-list .article-item:hover {
        background: transparent;
        border-color: transparent;
        transform: none;
    }
    
    .article-list .article-item img {
        width: 142px;
        height: 82px;
        border-radius: 0;
    }
}

/* ========== eyoucms 分页样式适配 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #ddd;
    background: #fff;
}

.pagination a:hover {
    border-color: #5b21b6;
    color: #5b21b6;
}

/* 当前页高亮 - 覆盖所有可能的情况 */
.pagination .current,
.pagination strong,
.pagination span.current,
.pagination a.active {
    background: #5b21b6 !important;
    color: #fff !important;
    border-color: #5b21b6 !important;
    font-weight: 600;
}

/* 上一页/下一页 */
.pagination .prev a,
.pagination .next a {
    padding: 0 18px;
}

/* 禁用状态 */
.pagination .prev.disabled,
.pagination .next.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ========== eyoucms 分页当前页高亮 ========== */
.pagination li.active a {
    background: #5b21b6 !important;
    color: #fff !important;
    border-color: #5b21b6 !important;
    font-weight: 600;
}

/* 会员筛选高亮 */
.member-category-row a.active {
    color: #5b21b6;
    font-weight: 600;
}

/* ========== 专家智库 - 专业委员会列表 ========== */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 24px;
}

.committee-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    border: 1px solid #9bb8ff;
    border-radius: 4px;
    background: #f4f7ff;
    color: #3d3d3d;
    font-size: 17px;
    line-height: 24px;
    text-align: center;
}

/* ========== 专家智库页面公共 ========== */
.think-tank-page .subpage-breadcrumb {
    display: none;
}

.subpage-layout.think-tank-page .container {
    max-width: 1200px;
}

.subpage-layout.think-tank-page .content-section {
    padding-top: 0;
}

.subpage-layout.think-tank-page .page-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 62px;
}

.subpage-layout.think-tank-page .sidebar-nav {
    width: 225px;
}

/* ========== 专业委员会列表 ========== */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 24px;
}

.committee-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    border: 1px solid #9bb8ff;
    border-radius: 4px;
    background: #f4f7ff;
    color: #3d3d3d;
    font-size: 17px;
    line-height: 24px;
    text-align: center;
}

/* ========== 协会专家列表 ========== */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 38px 18px;
}

.expert-card {
    text-align: center;
}

.expert-card img {
    display: block;
    width: 100%;
    aspect-ratio: 165 / 183;
    margin-bottom: 14px;
    object-fit: cover;
    object-position: center top;
    background: #5b21b6;
}

.expert-card h3 {
    margin-bottom: 8px;
    color: #5b21b6;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.expert-card p {
    color: #888;
    font-size: 12px;
    line-height: 20px;
}



/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .subpage-layout.think-tank-page .page-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .committee-grid,
    .expert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .expert-grid {
        gap: 28px 14px;
    }
}

@media (max-width: 768px) {
    .subpage-layout.think-tank-page .container,
    .subpage-layout.think-tank-page .content-section > .container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0 15px;
    }

    .subpage-layout.think-tank-page .page-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .committee-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .expert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
    }
}

/* 让 footer 始终在底部 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}


#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

/* ===== 文件下载列表 ===== */
.regulation-list {
    display: flex;
    flex-direction: column;
    gap: 38px;
}
.regulation-item {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.regulation-thumb-wrap {
    display: block;
    width: 300px;
    height: 200px;
    overflow: hidden;
    background: #f7f8fa;
}
/* 提高优先级，避免被 .article-item img 覆盖 */
.regulation-item .regulation-thumb,
.regulation-thumb-wrap .regulation-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block;
}
.regulation-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #dedede;
    font-size: 36px;
    letter-spacing: .12em;
    background: #f7f8fa;
}
.regulation-info h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 14px;
    color: #5b21b6;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.regulation-info h2 a {
    color: #5b21b6;
    text-decoration: none;
}
.regulation-info h2 a:hover {
    color: #0044cc;
}
.regulation-info p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 16px;
    color: #999;
    font-size: 17px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.regulation-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #777;
    font-size: 16px;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 32px;
    padding: 0 12px;
    border-radius: 4px;
    background: #5b21b6;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background .3s;
}
.download-btn:hover {
    background: #0044cc;
}

/* ===== 手机端适配 ===== */
@media (max-width: 768px) {
    /* 专业委员会 */
    .committee-grid {
        grid-template-columns: 1fr;
    }

    /* 协会专家 */
    .expert-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 12px;
    }

    /* 文件下载列表 */
    .regulation-list {
        gap: 0;
    }
    .regulation-item {
        grid-template-columns: 142px minmax(0, 1fr);
        gap: 13px;
        padding: 13px 0;
        width: 100%;
    }
    .regulation-thumb-wrap {
        width: 142px;
        height: 82px;
    }
    .regulation-thumb.placeholder {
        font-size: 18px;
        letter-spacing: 0;
    }
    .regulation-info {
        min-width: 0;
        overflow: hidden;
    }
    .regulation-info h2 {
        margin: -2px 0 4px;
        font-size: 15px;
        line-height: 20px;
        -webkit-line-clamp: 2;
    }
    .regulation-info p {
        margin-bottom: 4px;
        font-size: 13px;
        line-height: 20px;
        -webkit-line-clamp: 2;
    }
    .regulation-meta {
        justify-content: flex-start;
        gap: 16px;
        font-size: 12px;
        line-height: 18px;
    }
    .regulation-meta span:nth-child(2) {
        display: none;
    }
    .download-btn {
        min-width: 48px;
        height: 24px;
        padding: 0 9px;
        font-size: 12px;
    }
}
