/* ===== 展会会刊页面专用样式 ===== */

/* ========== Search Hero ========== */
.search-hero {
    background: linear-gradient(135deg, #0f1c4d 0%, #1e3a8a 50%, #2563eb 100%);
    color: #fff;
    padding: 48px 24px 40px;
    position: relative;
    text-align: center;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, .08) 0%, transparent 60%);
    pointer-events: none;
}

.search-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, .2) 0%, transparent 70%);
    pointer-events: none;
}

.search-hero-inner {
    position: relative;
    z-index: 10;
    max-width: 880px;
    margin: 0 auto;
}

.search-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 0 24px rgba(255, 255, 255, .3);
    background: linear-gradient(90deg, #fff 0%, #dbeafe 45%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-hero p {
    font-size: 15px;
    opacity: .9;
    margin-bottom: 28px;
}

/* Search Box */
.search-box {
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 820px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.search-box-input {
    flex: 1;
    min-width: 180px;
    border: none;
    padding: 13px 18px;
    font-size: 15px;
    color: var(--gray-800);
    outline: none;
    background: transparent;
}

.search-box-input::placeholder {
    color: var(--gray-400);
}

.search-box-divider {
    width: 1px;
    height: 30px;
    background: var(--gray-200);
}

.search-box-select {
    border: none;
    padding: 11px 28px 11px 12px;
    font-size: 13.5px;
    color: var(--gray-700);
    background: var(--gray-50) url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 10px 6px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    min-width: 110px;
}

.search-box-select:hover {
    background-color: var(--gray-100);
}

/* Choices 搜索下拉框在搜索框中的样式 */
.search-box .choices {
    min-width: 110px;
    margin-bottom: 0;
    font-size: 13.5px;
    color: var(--gray-700);
}

.search-box .choices__inner {
    background: var(--gray-50);
    border: none;
    border-radius: 8px;
    min-height: auto;
    padding: 6px 28px 6px 12px;
}

.search-box .choices__list--single {
    padding: 0;
}

.search-box .choices__list--single .choices__item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-box .choices__list--dropdown {
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    z-index: 100;
}

.search-box .choices__list--dropdown .choices__item {
    padding: 8px 12px;
    font-size: 13.5px;
    white-space: nowrap;
}

.search-box .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background: var(--gray-100);
}

.search-box .choices__placeholder {
    opacity: 1;
    color: var(--gray-500);
}

.search-box-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-box-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .45);
}

/* ========== Industry Chips ========== */
.industry-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    /*padding: 0 24px;*/
}

.industry-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--gray-200);
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all .2s;
    box-shadow: var(--shadow-sm);
}

.industry-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-lighter);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.industry-chip i {
    font-size: 16px;
    color: var(--primary);
}

/* ========== Stats Bar (override shared style) ========== */
.stats-bar {
    margin-top: 28px;
}

/* ========== Filter Bar (override shared style) ========== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 20px;
    flex-direction: row;
    min-height: auto;
}

.filter-bar .filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    line-height: 1;
}

.filter-bar .filter-label {
    font-size: 13px;
    color: var(--gray-500);
    white-space: nowrap;
    line-height: 1;
}

.filter-select,
.filter-input {
    height: 32px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: #fff;
    color: var(--gray-700);
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
    appearance: none;
    -webkit-appearance: none;
    line-height: 30px;
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--primary);
}

.filter-input {
    min-width: 160px;
}

.filter-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    box-sizing: border-box;
    padding: 0 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}

.filter-search-btn:hover {
    background: #1d4ed8;
}

.keyword-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Choices 下拉搜索在筛选栏中的样式 */
.filter-bar .choices {
    margin-bottom: 0;
    font-size: 13px;
    min-width: 120px;
}

.filter-bar .choices {
    margin-bottom: 0;
    font-size: 13px;
    min-width: 120px;
    height: 32px;
}

.filter-bar .choices__inner {
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    min-height: auto;
    height: 32px;
    box-sizing: border-box;
    padding: 0 28px 0 12px;
    line-height: 30px;
}

.filter-bar .choices__list--single {
    padding: 0;
}

.filter-bar .choices__list--single .choices__item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 30px;
}

.filter-bar .choices__list--dropdown {
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    z-index: 100;
}

.filter-bar .choices__list--dropdown .choices__item {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
}

.filter-bar .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background: var(--gray-100);
}

/* ========== Main Layout ========== */
.main-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding-top: 8px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}

/* ========== Catalog Card Grid ========== */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.catalog-grid.hidden {
    display: none;
}

/* Expo status badge */
.expo-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.expo-status.upcoming {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.expo-status.ended {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

/* Catalog industry tag in card body */
.expo-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.catalog-industry-tag,
.catalog-exhibitor-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
}

.catalog-industry-tag {
    background: #eff6ff;
    color: var(--primary);
}

.catalog-exhibitor-tag {
    background: #f0fdf4;
    color: #15803d;
}

.catalog-industry-tag i {
    font-size: 13px;
}

/* Card footer extras */
.card-update-time {
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-update-time i {
    font-size: 13px;
}

.card-view-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: gap .2s;
}

.card-view-link:hover {
    gap: 6px;
}

/* ========== Table/List View ========== */
.expo-table-wrap {
    display: none;
}

.expo-table-wrap.active {
    display: block;
}

.expo-table th {
    text-transform: none;
}

.expo-table .name-cell .info .cn {
    font-weight: 700;
    color: var(--gray-900);
}

.expo-table .name-cell .info .en {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 1px;
}

.expo-table .industry-badge {
    background: #eff6ff;
    color: var(--primary);
}

.expo-table .table-btn {
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    border: none;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.expo-table .table-btn:hover {
    background: var(--primary-dark);
}

/* ========== Sidebar Download CTA ========== */
.sidebar-download {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .25);
    position: relative;
    overflow: hidden;
}

.sidebar-download::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, .15) 0%, transparent 70%);
    border-radius: 50%;
}

.sidebar-download h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.sidebar-download p {
    font-size: 12px;
    opacity: .9;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.sidebar-download-btn {
    background: #fff;
    color: #2563eb;
    border: none;
    padding: 9px 28px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    z-index: 1;
}

.sidebar-download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* ========== Sidebar Cards (override shared) ========== */
.sidebar-card {
    padding: 0;
    margin-bottom: 16px;
}

.sidebar-card-header {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    position: relative;
}

.sidebar-card-header.red-bg {
    background: linear-gradient(135deg, #dc2626, #f59e0b);
}

.sidebar-card-header.blue-bg {
    /*background: linear-gradient(135deg, #0ea5e9, #2563eb);*/
    background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
}

.sidebar-card-header.dark-bg {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.sidebar-card-header.green-bg {
    background: linear-gradient(135deg, #059669, #10b981);
}

.sidebar-card-body {
    padding: 14px 16px;
}

/* Hot List */
.hot-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all .25s;
}

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

.hot-item:hover {
    padding-left: 4px;
}

.hot-item:hover .hot-name {
    color: var(--primary);
}

.hot-rank {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--gray-100);
    color: var(--gray-600);
}

.hot-rank.top3 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 2px 6px rgba(245, 158, 11, .3);
}

.hot-info {
    flex: 1;
    min-width: 0;
}

.hot-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    transition: color .25s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-en {
    display: block;
    font-size: 10px;
    color: var(--gray-400);
    font-weight: 400;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-meta {
    display: flex;
    gap: 6px;
    font-size: 10px;
    color: var(--gray-400);
    margin-top: 2px;
}

.hot-count {
    font-weight: 600;
    color: var(--gray-700);
}

/* City Distribution Bars */
.city-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.city-bar:last-child {
    margin-bottom: 0;
}

.city-name {
    font-size: 12px;
    color: var(--gray-600);
    width: 56px;
    text-align: right;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-bar-track {
    flex: 1;
    height: 10px;
    background: var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
}

.city-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width .5s ease;
    background: linear-gradient(90deg, #2563eb, #3b82f6)!important;
}

.city-bar:nth-child(1) .city-bar-fill {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.city-bar:nth-child(2) .city-bar-fill {
    background: linear-gradient(90deg, #059669, #10b981);
}

.city-bar:nth-child(3) .city-bar-fill {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.city-bar:nth-child(4) .city-bar-fill {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.city-bar:nth-child(5) .city-bar-fill {
    background: linear-gradient(90deg, #0891b2, #06b6d4);
}

.city-bar:nth-child(6) .city-bar-fill {
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
}

.city-bar:nth-child(7) .city-bar-fill {
    background: linear-gradient(90deg, #2563eb, #6366f1);
}

.city-bar:nth-child(8) .city-bar-fill {
    background: linear-gradient(90deg, #ec4899, #f472b6);
}

.city-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-800);
    width: 20px;
    flex-shrink: 0;
}

/* Industry Tags */
.industry-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.industry-cloud span {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
    border: 1px solid transparent;
}

.industry-cloud span:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

/* Latest Additions */
.latest-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all .25s;
}

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

.latest-item:hover {
    padding-left: 4px;
}

.latest-item:hover .latest-name {
    color: var(--primary);
}

.new-badge {
    /*background: linear-gradient(135deg, #10b981, #059669);*/
    background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    height: 18px;
    display: flex;
    align-items: center;
    /*box-shadow: 0 2px 6px rgba(16, 185, 129, .3);*/
    box-shadow: 0 2px 6px rgba(29, 78, 216, .3);
}

.latest-info {
    flex: 1;
    min-width: 0;
}

.latest-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
    transition: color .25s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-meta {
    font-size: 10px;
    color: var(--gray-400);
    margin-top: 2px;
}

/* ========== Pagination (override shared) ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.page-btn {
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all .2s;
    padding: 0 10px;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-lighter);
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== Expo Detail Modal (规范三级结构) ==========
 * 层级：.modal-overlay > .modal > .modal-header / .modal-body / .modal-footer
 * 固定：modal-header / modal-footer (flex-shrink:0)
 * 滚动：仅 modal-body (flex:1 + overflow-y:auto)
 */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow: hidden;
}

.modal-overlay.show {
    display: flex;
    animation: modalFadeIn .22s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ———— 中间容器（flex column） ———— */
.modal {
    position: relative;
    width: 100%;
    max-width: 820px;
    max-height: 88vh;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, .15);
    box-shadow: 0 20px 50px rgba(37, 99, 235, .22), 0 8px 16px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp .28s cubic-bezier(.2, .8, .2, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(24px) scale(.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* =============================================================
 * modal-header  (固定顶部：蓝色渐变 + 标题 + 展会时间 + 关闭按钮)
 * ============================================================= */
.modal-header {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #1e3a8a 0%, #2563eb 45%, #3b82f6 70%, #0ea5e9 100%);
    color: #fff;
    /* 右侧预留 60px 给绝对定位的关闭按钮，避免文字被遮挡 */
    padding: 18px 60px 18px 24px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .15);
    z-index: 2;
}

.modal-header::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%);
    pointer-events: none;
}

.modal-header-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.modal-header-en {
    font-size: 12.5px;
    opacity: .85;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.modal-header-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.modal-header-time i {
    font-size: 14px;
}

/* 关闭按钮：绝对定位，永远固定在 header 右上角 */
.modal-header-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    backdrop-filter: blur(4px);
}

.modal-header-close:hover {
    background: rgba(255, 255, 255, .36);
    transform: rotate(90deg);
}

/* =============================================================
 * modal-body  (唯一滚动区)
 * ============================================================= */
.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    /* flex 滚动的关键：防止子内容撑破父容器 */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #bfdbfe transparent;
    padding: 20px 24px;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #bfdbfe;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* —— 6 张彩色信息卡 (2列 × 3行) —— */
.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.modal-info-card {
    padding: 12px 14px;
    border-radius: 10px;
}

.modal-info-card .label {
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(30, 41, 59, .72);
    margin-bottom: 6px;
    letter-spacing: .2px;
}

.modal-info-card .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.4;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-info-card .value i {
    font-size: 15px;
}

.modal-info-card.bg-blue {
    background: #e8f1ff;
}

.modal-info-card.bg-blue .value {
    color: #1d4ed8;
}

.modal-info-card.bg-green {
    background: #e5f6ea;
}

.modal-info-card.bg-green .value {
    color: #059669;
}

.modal-info-card.bg-yellow {
    background: #fef6e0;
}

.modal-info-card.bg-yellow .value {
    color: #b45309;
}

.modal-info-card.bg-beige {
    background: #fef3d8;
}

.modal-info-card.bg-beige .value {
    color: #92400e;
}

.modal-info-card.bg-mint {
    background: #dcf7ec;
}

.modal-info-card.bg-mint .value {
    color: #047857;
}

.modal-info-card.bg-pink {
    background: #ffe4e6;
}

.modal-info-card.bg-pink .value {
    color: #be123c;
}

/* —— 数据源块 —— */
.modal-block {
    background: var(--primary-lighter);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.modal-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
}

.modal-block-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.modal-block-desc {
    font-size: 12px;
    color: var(--gray-500);
    margin: 4px 0 12px 40px;
    line-height: 1.5;
}

.modal-source-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.modal-source-item {
    background: #fff;
    border: 1px solid #e0e7ff;
    border-radius: 10px;
    padding: 10px 12px;
}

.modal-source-item .s-label {
    font-size: 11.5px;
    color: var(--gray-500);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-source-item .s-label i {
    font-size: 14px;
}

.modal-source-item .s-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    word-break: break-all;
    line-height: 1.4;
}

.modal-source-item .s-value .link {
    color: var(--primary);
}

.modal-validation {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border: 1px dashed #c7d2fe;
    border-radius: 10px;
    margin-bottom: 8px;
}

.modal-val-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700);
}

.modal-val-chip i {
    font-size: 14px;
    color: var(--success);
}

.modal-val-chip b {
    color: var(--primary);
    font-weight: 700;
}

.modal-val-level {
    font-size: 12px;
    color: var(--gray-600);
    padding: 2px 0;
}

.modal-val-level b {
    color: var(--success);
    font-weight: 700;
}

/* —— 会刊简介 / 会刊数据 标签块 —— */
.modal-tag-block {
    margin-bottom: 16px;
}

.modal-tag-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px 5px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-tag-title.green {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #fff;
    box-shadow: 0 2px 6px rgba(34, 197, 94, .35);
}

.modal-tag-title.yellow {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #fff;
    box-shadow: 0 2px 6px rgba(245, 158, 11, .35);
}

.modal-tag-content {
    padding: 0 4px;
    font-size: 13.5px;
    color: var(--gray-700);
    line-height: 1.7;
}

/* —— 历年下载表格 —— */
.modal-archives {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
    background: #fff;
}

.modal-archives table {
    width: 100%;
    border-collapse: collapse;
}

.modal-archives thead {
    background: linear-gradient(90deg, var(--primary-light), var(--accent-light));
}

.modal-archives th {
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid #bfdbfe;
}

.modal-archives td {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.modal-archives tbody tr:last-child td {
    border-bottom: none;
}

.modal-archives tbody tr:hover {
    background: var(--primary-lighter);
}

.modal-archive-btn {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all .2s;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .25);
}

.modal-archive-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, .35);
}

/* =============================================================
 * modal-footer  (固定底部：关闭 + 下载会刊)
 * ============================================================= */
.modal-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 12px 24px 16px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    z-index: 2;
    box-shadow: 0 -2px 8px rgba(15, 23, 42, .06);
}

.modal-footer-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.modal-footer-btn.btn-cancel {
    background: #fff;
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
}

.modal-footer-btn.btn-cancel:hover {
    border-color: var(--gray-400);
    color: var(--gray-800);
}

.modal-footer-btn.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(37, 99, 235, .3);
}

.modal-footer-btn.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(37, 99, 235, .4);
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .sidebar-download {
        grid-column: 1 / -1;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-item {
        border-right: none;
        padding: 8px 0;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        padding: 0 16px;
        gap: 16px;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 600px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
        padding: 12px;
    }

    .search-box-divider {
        width: 100%;
        height: 1px;
    }

    .search-box-btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    /* ====== 移动端弹窗：底部抽屉 + 三段式 ====== */
    .modal-overlay {
        padding: 0;
        align-items: stretch;
        overflow: hidden;
    }

    .modal {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 14px 14px 0 0;
        margin-top: auto;
        /* 贴底部 */
        overflow: hidden;
    }

    /* —— Header（移动精简）—— */
    .modal-header {
        padding: 14px 52px 14px 14px;
    }
    .modal-header-title { font-size: 15.5px; }
    .modal-header-en    { font-size: 11.5px; margin-bottom: 8px; }
    .modal-header-time  {
        font-size: 11.5px;
        padding: 3px 10px;
    }
    .modal-header-time i { font-size: 13px; }
    .modal-header-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 17px;
        border-radius: 9px;
    }

    /* —— Body（唯一滚动区）—— */
    .modal-body {
        padding: 14px 14px 4px;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 14px;
    }

    .modal-info-card {
        padding: 10px 12px;
    }

    .modal-info-card .label {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .modal-info-card .value {
        font-size: 13.5px;
    }

    .modal-source-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 10px;
    }

    .modal-source-item {
        padding: 8px 10px;
    }

    .modal-block {
        padding: 12px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .modal-block-title {
        font-size: 13px;
        gap: 8px;
    }

    .modal-block-icon {
        width: 26px;
        height: 26px;
        font-size: 14px;
        border-radius: 7px;
    }

    .modal-block-desc {
        margin-left: 0;
        margin-top: 6px;
        font-size: 11.5px;
    }

    .modal-validation {
        padding: 8px 10px;
        gap: 5px 10px;
    }

    .modal-val-chip {
        font-size: 11.5px;
    }

    .modal-val-level {
        font-size: 11.5px;
    }

    .modal-tag-block {
        margin-bottom: 14px;
    }

    .modal-tag-title {
        font-size: 12px;
        padding: 4px 12px 4px 8px;
    }

    .modal-tag-content {
        font-size: 12.5px;
        line-height: 1.65;
    }

    .modal-archives th,
    .modal-archives td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .modal-archive-btn {
        padding: 4px 10px;
        font-size: 11.5px;
    }

    /* —— Footer（纵向双按钮，主按钮在上）—— */
    .modal-footer {
        padding: 10px 14px 14px;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
    }

    .modal-footer-btn {
        width: 100%;
        justify-content: center;
        padding: 9px 16px;
        font-size: 13px;
    }
}