/* ============================================================
 * icbeexpo 主题修正层
 * 老站的 CSS 是按 html{font-size:10px} + rem 写的，转换后部分文字
 * 会算出 7.5px 这种过小字号；这里按组件做定点放大，不动其他样式。
 * 本文件在所有主题 CSS 之后加载，优先级最高。
 * ============================================================ */

/* 顶部快捷条：展位申请 / 观众预登记 */
.shortcut-row .shortcut-nav > li > a {
    font-size: 14px;
    line-height: 40px;
}
.shortcut-row .shortcut-nav > li > a > span {
    display: inline-block;
    font-size: 14px;
    margin-left: 6px;
}
.shortcut-row .shortcut-nav > li > a .iconfont {
    font-size: 16px;
    vertical-align: -1px;
}

/* 侧边悬浮条图片：容器宽 160px（与老站一致），图片按容器宽度自适应，避免上传的大图撑破版面 */
.Right-suspension .Right-suspension-con img {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
}
.Right-suspension .Right-suspension-con a { display: block; width: 160px; max-width: 100%; }

/* 侧边悬浮对联广告：容器宽 865px + 左右各外扩，视口不足 1400px 时会顶出横向滚动条，
   窄屏直接隐藏（桌面端装饰，不影响内容） */
@media (max-width: 1399px) {
    .Right-suspension-x { display: none; }
}

/* 首页「精彩现场」四角小图：容器宽 210px，桌面端统一裁成 210×210 方图（原来是原图 455×455，撑破右列） */
.Photo-library-BothSides li img {
    display: block;
    width: 100%;
    max-width: 210px;
    height: auto;
}
@media screen and (min-width: 1001px) {
    .Photo-library-BothSides li img {
        width: 210px;
        height: 210px;
        object-fit: cover;
    }
}

/* 顶部 Logo：PC 端按老站显示宽度上限 945px（原图 8001px 宽，不限宽会铺满整行） */
.logo-row .logo-img img.pc-logo-img { display: block; width: auto; max-width: 945px; height: auto; }
@media screen and (max-width: 990px) {
    .logo-row .logo-img img.pc-logo-img { max-width: 100%; }
}

/* 页脚二维码：源图可能比版位大很多，统一显示 80×80（老站页脚就是 80×80），后台换图也不会再变大 */
.footer-middle-right img[data-element="footer-qrcode"] {
    display: inline-block;
    width: 80px;
    height: 80px;
}

/* ===== 频道页（根栏目总览 content/Category/category.php）=====
   原模板是 PHPCMS v9 时代的 w972 + lanmu 布局，与本站整体风格不一致，
   这里与 icbeexpoblue 保持同一套结构，只把强调色换成紫色系（#6b1299 / #730077）。 */
.cate-desc { text-align: center; color: #6b7280; font-size: 14px; line-height: 1.8; margin: -6px auto 0; max-width: 900px; }
.cate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 30px 0 10px; }
.cate-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e6e9f0; border-radius: 6px; overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.cate-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .09); transform: translateY(-3px); }
.cate-card-link { color: #730077; }
.cate-card-link::after { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 1; }
.cate-card:hover .cate-card-link { color: #6b1299; }
.cate-card-img { height: 170px; background: #f7f2fa; overflow: hidden; }
.cate-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cate-card-body { flex: 1; padding: 16px 20px 20px; }
.cate-card-body h3 { font-size: 18px; line-height: 1.4; color: #730077; margin: 0 0 10px; }
.cate-card-body p { font-size: 13px; line-height: 1.7; color: #6b7280; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cate-sec-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5e5e5; margin: 40px 0 22px; padding-bottom: 12px; }
.cate-sec-head h3 { font-size: 20px; color: #730077; margin: 0; }
.cate-news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cate-news-item { display: block; border: 1px solid #e6e9f0; border-radius: 6px; overflow: hidden; background: #fff; }
.cate-news-img { height: 150px; overflow: hidden; background: #f7f2fa; }
.cate-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cate-news-txt { padding: 14px 16px 16px; }
.cate-news-txt h4 { font-size: 15px; line-height: 1.5; color: #111827; margin: 0 0 8px; height: 45px; overflow: hidden; }
.cate-news-txt span { font-size: 12px; color: #9ca3af; }
.cate-empty { text-align: center; color: #9ca3af; font-size: 14px; padding: 60px 0; }
@media screen and (max-width: 990px) {
    .cate-grid, .cate-news-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .cate-card-img { height: 140px; }
}
@media screen and (max-width: 680px) {
    .cate-grid, .cate-news-list { grid-template-columns: repeat(1, 1fr); }
    .cate-card-img { height: 170px; }
    .cate-news-img { height: 170px; }
    .cate-news-txt h4 { height: auto; }
}

/* 悬浮条「展会时间」：既是展示，也是倒计时的数据源（编辑器里点文字即可改） */
.aip-suspension-con-content-time .Countdown-time { margin-top: 8px; text-align: center; font-size: 11px; line-height: 1.65; color: #6b7280; }
.aip-suspension-con-content-time .Countdown-time-label { display: block; color: #333; }
.aip-suspension-con-content-time .Countdown-time-val { display: block; white-space: nowrap; }

/* 页脚「友情链接」列表元素（rs_links）：没条目时不渲染外观影响为零 */
.footer-links { margin: 10px 0 8px; font-size: 13px; line-height: 2; color: #7a828a; }
.footer-links-title { margin-right: 12px; color: #5a626b; }
.footer-links a, .footer-links > span:not(.footer-links-title) { margin-right: 14px; color: #7a828a; text-decoration: none; }
.footer-links a:hover { color: #6b1299; text-decoration: underline; }
