/* ===== Banner ===== */
.page-main .topBanner {
    background: url(../images/InnovativeResBack1.png) no-repeat center center;
    background-size: cover;
    padding: 65px 0;
    color: #ffffff;
}

.page-main .topBanner .main-title {
    width: 1200px;
    margin: 0 auto;
}

.page-main .topBanner .main-title h1 { font-size: 30px; }
.page-main .topBanner .main-title h4 { font-size: 18px; }

/* 手机端banner与电脑端一致 */
@media (max-width: 576px) {
    .page-main .topBanner {
        background: url(../images/InnovativeResBack1.png) center center no-repeat;
        background-size: cover;
    }
    .page-main .topBanner .main-title {
        width: 100%;
        padding-left: 20px;
    }
    .page-main .topBanner .main-title h1 { font-size: 20px; }
    .page-main .topBanner .main-title h4 { font-size: 14px; }
}

/* ===== 面包屑 ===== */
.bg .breadcrumb { margin-bottom: 0; padding-left: 0; padding-right: 0; }
.bg .breadcrumb .breadcrumb-item a { color: #333; }
.bg .breadcrumb .breadcrumb-item a:hover { color: #0f4bb0; }
.bg .breadcrumb .breadcrumb-item.active { color: #999; }
.bg.zh .breadcrumb { font-family: 'SourceHanSansSC', serif; font-size: 14px; }
.bg.zh .breadcrumb .breadcrumb-item a { color: #606060; }
.bg.zh .breadcrumb .breadcrumb-item a:hover { color: #0f4bb0; }
.bg.zh .breadcrumb .breadcrumb-item.active { color: #b6b4b5; }
.bg-en { background-color: #ffffff; color: #606060; box-shadow: inset 0 -1px 0 #f5f6f7; }
.breadcrumb-item+.breadcrumb-item::before { content: '/' !important; }

@media (max-width: 576px) {
    .bg-en { background-color: initial; }
    .page .container { padding-left: 15px !important; padding-right: 15px !important; }
}

/* ===== Tab 六大领域 ===== */
.page-main .tabBox {
    padding: 20px 32px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.page-main .tabBox .outBox {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-main .tabBox .outBox .outBorder {
    border-radius: 50%;
    padding: 2px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-main .tabBox .outBox .outBorder .tabChange {
    font-size: 15px;
    width: 96px;
    height: 96px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    color: #ffffff;
    border-radius: 50%;
    line-height: 1.3;
}

/* 全部 - 主色 */
.page-main .tabBox .outBox .tab0 { background-color: #053a95; }
.page-main .tabBox .outBox .outB0 { border-color: transparent; }
.page-main .tabBox .outBox .outB0:hover,
.page-main .tabBox .outBox .outB0.active { border-color: #053a95; transform: scale(1.05); }

/* 人工智能与通讯 - #f6b7d4 */
.page-main .tabBox .outBox .tab1 { background-color: #f6b7d4; }
.page-main .tabBox .outBox .outB1 { border-color: transparent; }
.page-main .tabBox .outBox .outB1:hover,
.page-main .tabBox .outBox .outB1.active { border-color: #f6b7d4; transform: scale(1.05); }

/* 集成电路与微纳制造 - #40c7f4 */
.page-main .tabBox .outBox .tab2 { background-color: #40c7f4; }
.page-main .tabBox .outBox .outB2 { border-color: transparent; }
.page-main .tabBox .outBox .outB2:hover,
.page-main .tabBox .outBox .outB2.active { border-color: #40c7f4; transform: scale(1.05); }

/* 先进材料与加工技术 - #57585a */
.page-main .tabBox .outBox .tab3 { background-color: #57585a; }
.page-main .tabBox .outBox .outB3 { border-color: transparent; }
.page-main .tabBox .outBox .outB3:hover,
.page-main .tabBox .outBox .outB3.active { border-color: #57585a; transform: scale(1.05); }

/* 机器人与智能制造 - #f7931d */
.page-main .tabBox .outBox .tab4 { background-color: #f7931d; }
.page-main .tabBox .outBox .outB4 { border-color: transparent; }
.page-main .tabBox .outBox .outB4:hover,
.page-main .tabBox .outBox .outB4.active { border-color: #f7931d; transform: scale(1.05); }

/* 生物与医药 - #7150a0 */
.page-main .tabBox .outBox .tab5 { background-color: #7150a0; }
.page-main .tabBox .outBox .outB5 { border-color: transparent; }
.page-main .tabBox .outBox .outB5:hover,
.page-main .tabBox .outBox .outB5.active { border-color: #7150a0; transform: scale(1.05); }

/* 能源与环保 - #60bb46 */
.page-main .tabBox .outBox .tab6 { background-color: #60bb46; }
.page-main .tabBox .outBox .outB6 { border-color: transparent; }
.page-main .tabBox .outBox .outB6:hover,
.page-main .tabBox .outBox .outB6.active { border-color: #60bb46; transform: scale(1.05); }

/* 综合 - #7c7a94 */
.page-main .tabBox .outBox .tab7 { background-color: #7c7a94; }
.page-main .tabBox .outBox .outB7 { border-color: transparent; }
.page-main .tabBox .outBox .outB7:hover,
.page-main .tabBox .outBox .outB7.active { border-color: #7c7a94; transform: scale(1.05); }

/* ===== 工具栏（tips + 切换按钮）===== */
.page-main .table-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 0;
}

.page-main .table-list .tips {
    font-size: 14px;
    color: #999999;
    font-style: italic;
}

/* 视图切换按钮 */
.page-main .table-list .view-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #053a95;
    cursor: pointer;
    padding: 6px 14px;
    border: 1px solid #053a95;
    border-radius: 20px;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.page-main .table-list .view-mode-btn:hover {
    background-color: #053a95;
    color: #ffffff;
}

.page-main .table-list .view-mode-btn .view-mode-icon {
    display: flex;
    align-items: center;
}

/* 手机端右对齐 */
@media (max-width: 768px) {
    .page-main .table-list {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    .page-main .table-list .tips {
        align-self: flex-start;
        font-size: 12px;
    }
}

/* ===== 容器 ===== */
.page-main .header-img { padding-top: 32px; }
.page-main.zh .header-img { padding-top: 6px; }

@media (min-width: 1200px) {
    .page .container { max-width: 1200px; padding: 0; }
    .container .list-unstyled { margin-right: 0; margin-left: 0; }
    .zh .container { max-width: 1200px; padding-left: 20px; padding-right: 20px; }
    .zh .container .list-unstyled {
        margin-right: 0; margin-left: 0;
        width: 1200px;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-flow: wrap;
    }
    .container .breadcrumb {
        margin-bottom: 0; padding-left: 0; padding-right: 0;
        margin-left: 15px !important; margin-right: 15px !important;
    }
    .container .text-en {
        margin-top: 0; background-color: #ffffff;
        font-family: NotoSansSC, serif;
        font-style: normal; font-weight: bold;
        font-size: 16px; line-height: 20px;
    }
}

/* ===== 卡片（图表模式）===== */
.page-main .news-tro {
    display: block;
    cursor: pointer;
    width: 100%;
}

.page-main .media {
    margin: 12px 24px 12px 0;
    position: relative;
    width: 31%;
}

.page-main .media .media-img1 {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.page-main .media .media-bottom {
    padding: 15px;
    display: flex;
    width: 100%;
    background: #fff;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.1);
}

.page-main .media .media-body {
    width: 100%;
    display: block;
    flex: none !important;
    height: auto;
    min-height: 70px;
}

.page-main .media .media-body h1 {
    cursor: pointer;
    color: #333333;
    font-weight: 600;
    font-size: 15px;
    line-height: 22px;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
}

.page-main .media .media-body h1:hover { color: #053a95; }

.page-main .media .media-body .countryBox {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ===== 标签样式（类型 & 领域）===== */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}

.tag-type {
    background-color: #e8f4fd;
    color: #053a95;
    border-color: #c5dff7;
}

/* tag-field 颜色通过 inline style 动态设置 */

.page-main .media:nth-child(3n) { margin: 12px 0; }

@media (max-width: 768px) {
    .page-main .media { width: 48%; margin: 6px 1%; }
    .page-main .media:nth-child(3n) { margin: 6px 1%; }
}

@media (max-width: 576px) {
    .page-main .media { width: 100%; margin: 8px 0; }
    .page-main .media:nth-child(3n) { margin: 8px 0; }
    .page-main .media .media-img1 { height: 160px; }
    .page-main .header-img { padding-top: 0; }
}

/* ===== 列表模式 ===== */
.page-main .list-unstyled.list-mode {
    display: flex;
    flex-wrap: wrap;
}

.page-main .list-unstyled.list-mode .media-list-item {
    width: 50%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.page-main .list-unstyled.list-mode .media-list-item:hover {
    background-color: #f5f7fa;
}

.page-main .list-unstyled.list-mode .media-list-item .list-item-name {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.page-main .list-unstyled.list-mode .media-list-item:hover .list-item-name {
    color: #053a95;
}

.page-main .list-unstyled.list-mode .media-list-item .list-item-field {
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .page-main .list-unstyled.list-mode .media-list-item { width: 100%; }
}

/* ===== Tab 响应式 ===== */
@media (max-width: 992px) {
    .page-main .tabBox .outBox {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    .page-main .tabBox .outBox .outBorder .tabChange {
        width: 80px;
        height: 80px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .page-main .tabBox { padding: 15px; }
    .page-main .tabBox .outBox { gap: 10px; }
    .page-main .tabBox .outBox .outBorder .tabChange {
        font-size: 11px;
        padding: 8px;
    }
}

@media (max-width: 576px) {
    .page-main .tabBox .outBox .outBorder .tabChange {
        width: 70px;
        height: 70px;
        font-size: 10px;
        padding: 6px;
    }
}

/* ===== 加载动画 ===== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    width: 100%;
}

.loading-spinner .spinner,
.modal-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #053a95;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner p, .modal-loading p {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== 分页 ===== */
.wise-page .page-item { display: flex; align-items: center; margin: 0 8px; }
.wise-page .page-item .page-link { color: #333333; }
.wise-page .page-item input { width: 36px; margin: 0 8px; }
.wise-page .page-item.active .page-link {
    background: #053a95;
    color: #ffffff;
    border-color: #ffffff;
}

.wise-empty { padding: 100px 0; color: #999; text-align: center; }

/* ===== 弹窗 ===== */
.carrier-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carrier-modal-overlay.show { display: flex; opacity: 1; }

.carrier-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.carrier-modal-overlay.show .carrier-modal { transform: translateY(0); }

.carrier-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #053a95 0%, #0a5dc2 100%);
}

.carrier-modal-header h2 { margin: 0; font-size: 20px; color: #fff; font-weight: 600; }

.carrier-modal-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    cursor: pointer; border-radius: 50%;
    transition: background-color 0.2s;
}

.carrier-modal-close:hover { background-color: rgba(255,255,255,0.2); }

.carrier-modal-body {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

/* 详情内容 */
.detail-content { width: 100%; }

.detail-banner {
    width: 100%; height: 200px;
    border-radius: 8px; overflow: hidden;
    margin-bottom: 20px;
}

.detail-banner img { width: 100%; height: 100%; object-fit: cover; }

.detail-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.detail-title h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.detail-tags .tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}

.detail-tags .tag-type { background-color: #e8f4fd; color: #053a95; border-color: #c5dff7; }

.detail-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item { display: flex; flex-direction: column; }
.detail-item .label { font-size: 12px; color: #999; margin-bottom: 4px; }
.detail-item .value { font-size: 14px; color: #333; word-break: break-all; }

.detail-desc { background: #f8f9fa; border-radius: 8px; padding: 20px; }
.detail-desc h4 { margin: 0 0 12px 0; font-size: 16px; color: #333; font-weight: 600; }
.detail-desc .desc-content { font-size: 14px; color: #666; line-height: 1.8; }

@media (max-width: 768px) {
    .carrier-modal { width: 95%; max-height: 95vh; border-radius: 8px; }
    .carrier-modal-header { padding: 16px 20px; }
    .carrier-modal-header h2 { font-size: 18px; }
    .carrier-modal-body { padding: 16px; }
    .detail-banner { height: 150px; }
    .detail-title h3 { font-size: 18px; }
    .detail-items { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 576px) {
    .carrier-modal-header { padding: 14px 16px; }
    .carrier-modal-header h2 { font-size: 16px; }
    .carrier-modal-close { width: 28px; height: 28px; font-size: 24px; }
    .carrier-modal-body { padding: 12px; max-height: calc(95vh - 60px); }
    .detail-banner { height: 120px; margin-bottom: 16px; }
    .detail-title h3 { font-size: 16px; margin-bottom: 8px; }
    .detail-tags .tag { padding: 3px 10px; font-size: 11px; }
    .detail-desc { padding: 16px; }
    .detail-desc h4 { font-size: 14px; }
    .detail-desc .desc-content { font-size: 13px; }
}
