@charset "utf-8";

/* ==========================================================================
   石家庄科教科普资源共享服务平台 —— 门户样式
   版式对齐参考站：蓝色顶栏 + 胶囊导航 → 首屏轮播 → 专题中心 → 内容板块
   ========================================================================== */

:root {
    --kp-blue: #2b7cd3;
    --kp-blue-dark: #1f68bb;
    --kp-blue-deep: #14509e;
    --kp-blue-light: #4c9ae8;
    --kp-orange: #f0730d;
    --kp-orange-light: #ff9a3c;
    --kp-red: #e94a3d;
    --kp-green: #4aab5c;
    --kp-title: #1b2733;
    --kp-text: #333333;
    --kp-muted: #7a828c;
    --kp-light: #9aa3ad;
    --kp-line: #ececec;
    /* 文章列表分割线（原 #eef1f4 太浅看不见，加深并改实线） */
    --kp-divider: #d9e0e8;
    --kp-bg: #f4f5f7;
    --kp-white: #ffffff;
    --kp-radius: 6px;
    --kp-shadow: 0 2px 10px rgba(20, 60, 110, 0.07);
    --kp-transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.kp-home,
body.kp-page {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--kp-text);
    background: var(--kp-bg);
    -webkit-font-smoothing: antialiased;
}

body.kp-home a,
body.kp-page a {
    color: inherit;
    text-decoration: none;
    transition: var(--kp-transition);
}

body.kp-home img,
body.kp-page img {
    max-width: 100%;
    display: block;
    border: 0;
}

body.kp-home ul,
body.kp-page ul {
    list-style: none;
}

.kp-container {
    display: block;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 全站统一盒模型：避免 100% 宽元素叠加内边距后横向溢出 */
.kp-home *,
.kp-home *::before,
.kp-home *::after,
.kp-page *,
.kp-page *::before,
.kp-page *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   1. 顶部：蓝色条 + 胶囊导航
   ========================================================================== */

.kp-header {
    position: relative;
    z-index: 100;
}

.kp-header-bar {
    background: #2f80d8;
    background-image:
        radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at 78% 70%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 40%),
        linear-gradient(100deg, #2f80d8 0%, #3f92e6 55%, #59a7f2 100%);
}

.kp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 96px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.kp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    flex-shrink: 0;
}

.kp-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    flex-shrink: 0;
}

.kp-brand-text strong {
    display: block;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 40, 90, 0.25);
}

.kp-brand-text small {
    display: block;
    font-size: 10px;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
}

.kp-header-tools {
    flex-shrink: 0;
}

.kp-search {
    display: flex;
    align-items: center;
    width: 250px;
    height: 36px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

.kp-search input {
    flex: 1;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 8px 0 16px;
    font-size: 13px;
    color: var(--kp-text);
}

.kp-search input::placeholder {
    color: #9aa6b4;
}

.kp-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--kp-blue);
    cursor: pointer;
}

.kp-search button:hover {
    color: var(--kp-orange);
}

/* 胶囊导航（白底 + 蓝色胶囊实心块，与参考图一致） */
.kp-nav {
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    border-bottom: 1px solid #e7edf4;
    box-shadow: 0 2px 10px rgba(20, 60, 110, 0.07);
    position: relative;
    z-index: 20;
    transition: box-shadow 0.25s ease;
}

.kp-nav.is-stuck {
    position: sticky;
    top: 0;
    box-shadow: 0 6px 20px rgba(20, 60, 110, 0.16);
}

.kp-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 68px;
    flex-wrap: wrap;
}

.kp-nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    height: 40px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--kp-blue);
    letter-spacing: 0.6px;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.kp-nav-item:hover {
    background: rgba(43, 124, 211, 0.09);
    transform: translateY(-1px);
}

.kp-nav-item.active {
    background: linear-gradient(180deg, #4b9cec, #2b7cd3);
    color: #fff;
    box-shadow: 0 4px 12px rgba(43, 124, 211, 0.34);
}

.kp-nav-item.active:hover {
    transform: none;
}

/* 当前栏目下方的小三角指示，让选中态更明确 */
.kp-nav-item.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 0;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #2b7cd3;
}

/* ==========================================================================
   2. 首屏轮播
   ========================================================================== */

.kp-hero {
    position: relative;
    width: 100%;
    /* 高度跟随图片真实比例（JS 会写入 style.aspect-ratio），
       这里的默认值仅在 JS 未生效时兜底；图片始终完整显示、左右铺满 */
    aspect-ratio: 1920 / 500;
    overflow: hidden;
    background: #eef1f4;
}

.kp-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.kp-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.kp-hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.kp-hero-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.kp-hero-slide img {
    width: 100%;
    height: 100%;
    /* 容器比例已按图片真实比例设置，contain 即“完整显示且无留白” */
    object-fit: contain;
    object-position: center;
}

.kp-hero-dots {
    position: absolute;
    left: 0;
    bottom: 14px;
    width: 100%;
    text-align: center;
    z-index: 6;
}

.kp-hero-dots button {
    width: 9px;
    height: 9px;
    margin: 0 5px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: var(--kp-transition);
}

.kp-hero-dots button.active {
    background: #fff;
}

.kp-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 52px;
    border: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
    opacity: 0;
    transition: var(--kp-transition);
}

.kp-hero:hover .kp-hero-arrow {
    opacity: 1;
}

.kp-hero-arrow:hover {
    background: rgba(0, 0, 0, 0.42);
}

.kp-hero-arrow.prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.kp-hero-arrow.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* ==========================================================================
   3. 主体底板
   ========================================================================== */

.kp-body {
    background: var(--kp-bg);
    padding: 16px 0 30px;
}

/* ==========================================================================
   4. 专题中心
   ========================================================================== */

.kp-topics {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: var(--kp-radius);
    box-shadow: var(--kp-shadow);
    padding: 12px 14px;
    margin-bottom: 16px;
}

/* 标签按两行排布：“专题”一行、“中心”一行（四列两行网格） */
.kp-topics-label {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-items: center;
    flex: 0 0 52px;
    height: 52px;
    border-radius: 6px;
    background: linear-gradient(180deg, #4aa3ee, #2b7cd3);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.kp-topics-scroll {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.kp-topics-list {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    overflow: hidden;
}

.kp-topics-arrow {
    flex: 0 0 24px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #b6bec8;
    cursor: pointer;
}

.kp-topics-arrow:hover {
    color: var(--kp-blue);
}

/* 专题中心入口：图标已含编号/名称/配色，卡片只做等比排布与悬停反馈 */
.kp-topic-card {
    display: block;
    flex: 0 0 240px;
    width: 240px;
    height: 82px;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kp-topic-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kp-topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(20, 60, 110, 0.2);
}

/* ==========================================================================
   5. 板块通用
   ========================================================================== */

.kp-panel {
    background: #fff;
    border-radius: var(--kp-radius);
    box-shadow: var(--kp-shadow);
    padding: 16px 18px 18px;
    margin-bottom: 16px;
}

.kp-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--kp-line);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.kp-panel-title {
    position: relative;
    font-size: 18px;
    font-weight: 700;
    color: var(--kp-title);
    padding-left: 12px;
    line-height: 1.4;
}

.kp-panel-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, #4aa3ee, #2b7cd3);
}

.kp-panel-more {
    font-size: 13px;
    color: var(--kp-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kp-panel-more i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
}

.kp-panel-more:hover {
    color: var(--kp-blue);
}

.kp-two-col {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.kp-col-6 {
    width: 50%;
}

.kp-col-6:first-child {
    padding-right: 20px;
    border-right: 1px solid var(--kp-line);
}

.kp-col-6:last-child {
    padding-left: 20px;
}

/* 标题 + 日期列表（日期绝对定位于右侧，避免窄屏被文字撑宽） */
.kp-dot-list li {
    position: relative;
    padding: 6px 96px 6px 0;
}

.kp-dot-list li a {
    display: block;
    position: relative;
    padding-left: 12px;
    font-size: 14px;
    color: #333a44;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-dot-list li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c3cad3;
}

.kp-dot-list li em {
    position: absolute;
    right: 0;
    top: 6px;
    font-style: normal;
    font-size: 12px;
    color: var(--kp-light);
    font-family: Arial, sans-serif;
    white-space: nowrap;
}

.kp-dot-list li a:hover {
    color: var(--kp-blue);
}

.kp-dot-list li a:hover::before {
    background: var(--kp-blue);
}

.kp-dot-list--tight li {
    padding: 4px 96px 4px 0;
}

.kp-dot-list--tight li em {
    top: 4px;
}

/* 打勾列表（科技动态右侧） */
.kp-tick-list {
    margin-top: 6px;
}

.kp-tick-list li {
    position: relative;
    padding: 4px 80px 4px 15px;
    font-size: 13.5px;
}

.kp-tick-list li a {
    display: block;
    color: #46505c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-tick-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 4px;
    color: #4aa3ee;
    font-size: 12px;
}

.kp-tick-list li em {
    position: absolute;
    right: 0;
    top: 4px;
    font-style: normal;
    font-size: 12px;
    color: var(--kp-light);
    font-family: Arial, sans-serif;
    white-space: nowrap;
}

.kp-tick-list li a:hover {
    color: var(--kp-blue);
}


/* ==========================================================================
   6. 科技动态（左：大图轮播 + 竖向缩略图 ／ 右：标题 + 列表）
   结构参照易优模板 eyoumain1：.w49 左（.eyindex 80% + .eyou_nav 20%）、.w49 右
   ========================================================================== */

.kp-news-top {
    display: flex;
    gap: 0;
    align-items: flex-start;
}

/* 左半：4/5 大图轮播 + 1/5 缩略图 */
.kp-news-slider {
    flex: 0 0 570px;
    width: 570px;
}

.kp-carousel {
    display: flex;
    align-items: stretch;
    height: 400px;
    overflow: hidden;
    border-radius: 5px;
}

.kp-carousel-main {
    position: relative;
    flex: 0 0 80%;
    width: 80%;
    overflow: hidden;
    background: #eef1f4;
}

.kp-carousel-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.kp-carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.kp-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kp-carousel-slide::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.7) 85%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
}

.kp-carousel-cap {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    width: 100%;
    height: 44px;
    line-height: 44px;
    padding: 0 16px;
    color: #fff;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 50px;
    border: 0;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.47);
    cursor: pointer;
    transition: var(--kp-transition);
}

.kp-carousel-arrow.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.kp-carousel-arrow.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.kp-carousel-arrow:hover {
    background: var(--kp-blue);
}

/* 竖向缩略图：每格是文章配图，标题压在上面，悬停/选中时标题淡出 */
.kp-carousel-thumbs {
    flex: 0 0 20%;
    width: 20%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #fff;
}

.kp-carousel-thumbs li {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    border-bottom: 1px solid #fff;
    background: #dfe4ea;
    cursor: pointer;
    overflow: hidden;
}

.kp-carousel-thumbs li:last-child {
    border-bottom: 0;
}

.kp-carousel-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kp-carousel-thumbs li .kp-carousel-thumbtit {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 12.5px;
    line-height: 1.45;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.kp-carousel-thumbs li .kp-carousel-thumbtit span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    width: 100%;
    max-height: 100%;
}

.kp-carousel-thumbs li:hover .kp-carousel-thumbtit,
.kp-carousel-thumbs li.on .kp-carousel-thumbtit {
    opacity: 0;
}

/* 右半：标题 + 打勾列表 */
.kp-news-listcol {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 26px;
}

.kp-news-headline {
    margin-bottom: 8px;
}

.kp-news-headline a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
    color: #323232;
}

.kp-news-headline a:hover {
    color: var(--kp-blue);
}

.kp-news-headline + .kp-tick-list {
    margin-bottom: 12px;
}

.kp-news-headline + .kp-tick-list:last-child {
    margin-bottom: 0;
}

/* 注意：右侧必须留出日期宽度，否则绝对定位的日期会被标题盖住/顶到边缘 */
.kp-news-listcol .kp-tick-list li {
    padding: 5px 80px 5px 15px;
}

.kp-news-listcol .kp-tick-list li::before,
.kp-news-listcol .kp-tick-list li em {
    top: 5px;
}

.kp-news-listcol .kp-tick-list li a {
    font-size: 14px;
}

/* 下半：通知公告 */
.kp-news-bottom {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--kp-line);
}

/* ==========================================================================
   7. 焦点横幅
   ========================================================================== */

.kp-focus {
    margin-bottom: 16px;
    border-radius: var(--kp-radius);
    overflow: hidden;
    background: linear-gradient(100deg, #b5231d 0%, #d5392c 45%, #c22a22 100%);
    box-shadow: 0 4px 14px rgba(160, 30, 20, 0.25);
}

/* 使用后台图集图片时：整幅铺满，高度按图片比例 */
.kp-focus img {
    display: block;
    width: 100%;
    height: auto;
}

.kp-focus a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 66px;
    color: #ffe9c8;
    text-align: center;
}

/* 图片形态下 a 只作包裹，不再撑最小高度 */
.kp-focus a:has(> img) {
    min-height: 0;
    display: block;
}

.kp-focus-cn {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    text-shadow: 0 2px 6px rgba(90, 10, 0, 0.45);
}

.kp-focus-sub {
    font-size: 12.5px;
    letter-spacing: 2px;
    color: rgba(255, 233, 200, 0.9);
}

/* ==========================================================================
   8. 图文分栏（科普资讯 / 科普基地 / 科普热点 / 科技教育）
   科普资讯+科普基地参照易优模板 eyoumain3：左 w67、右 w30
   ========================================================================== */

/* 左 67% ／ 右 30% 的两栏行
   align-items: stretch 让左右两栏等高，避免条数不同导致底部参差 */
.kp-sect {
    display: flex;
    align-items: stretch;
}

.kp-sect-main {
    flex: 0 0 67%;
    width: 67%;
    min-width: 0;
    padding-right: 3%;
}

.kp-sect-side {
    flex: 0 0 30%;
    width: 30%;
    min-width: 0;
}

/* 左栏内部：w44 大图块 + w52 三组图文列表 */
.kp-sect-cols {
    display: flex;
    align-items: flex-start;
}

.kp-sect-feature {
    flex: 0 0 44%;
    width: 44%;
    min-width: 0;
    padding-right: 4%;
}

.kp-sect-pic {
    display: block;
    height: 265px;
    border-radius: 5px;
    overflow: hidden;
    background: #eef1f4;
}

.kp-sect-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kp-sect-pic:hover img {
    transform: scale(1.04);
}

.kp-sect-title {
    margin: 12px 0 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.kp-sect-title a {
    color: #323232;
}

.kp-sect-title a:hover {
    color: var(--kp-blue);
}

.kp-sect-desc {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.65;
    color: #8b8989;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kp-sect-lists {
    flex: 1 1 auto;
    min-width: 0;
}

/* 图文标题+日期小列表（每 3 条一组，组间一条细分割线） */
.kp-imglist li {
    padding: 5px 0;
}

.kp-imglist li a {
    display: block;
    position: relative;
    padding-right: 52px;
    color: #585954;
    font-size: 14px;
}

.kp-imglist li .tit {
    position: relative;
    padding-left: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-imglist li .tit::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -1px;
    width: 2px;
    height: 2px;
    background: #585954;
}

.kp-imglist li .time {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 12px;
    color: var(--kp-light);
    font-family: Arial, sans-serif;
    white-space: nowrap;
}

.kp-imglist li a:hover {
    color: var(--kp-blue);
}

.kp-imglist li a:hover .tit::after {
    background: var(--kp-blue);
}

.kp-sect-lists .kp-imglist + .kp-imglist {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--kp-line);
}

/* 右栏：110px 小图 + 标题 */
.kp-sect-side .kp-imglist li {
    padding: 7px 0;
}

.kp-sect-side .kp-imglist li a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-right: 0;
}

.kp-sect-side .kp-imglist .pic {
    flex: 0 0 110px;
    width: 110px;
    height: 68px;
    border-radius: 4px;
    overflow: hidden;
    background: #eef1f4;
}

.kp-sect-side .kp-imglist .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kp-sect-side .kp-imglist li a:hover .pic img {
    transform: scale(1.08);
}

.kp-sect-side .kp-imglist .txt {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #585954;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kp-sect-side .kp-imglist li a:hover .txt {
    color: var(--kp-blue);
}

/* 左栏：竖向切换的图文 Tab（对应参考站 .tabimg / .tabimg_nav / .tabimg_main）
   结构用「大图容器 + 标题导航」的 DOM 顺序，交互交给 JS，避免依赖兄弟选择器
   280px 高度 = 5 条 × 56px，用于和右栏底部对齐 */
.kp-tabimg {
    position: relative;
    height: 280px;
    border: 1px solid var(--kp-line);
}

.kp-tabimg-panes {
    position: absolute;
    right: 0;
    top: 0;
    width: 64%;
    height: 100%;
}

.kp-tabimg-pane {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.kp-tabimg-pane.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.kp-tabimg-pane a,
.kp-tabimg-pane img {
    display: block;
    width: 100%;
    height: 100%;
}

.kp-tabimg-pane img {
    object-fit: cover;
    /* 消除行内元素基线在图片底部留下的 2px 缝隙 */
    vertical-align: top;
}

.kp-tabimg-nav {
    width: 36%;
    height: 100%;
    overflow: hidden;
}

.kp-tabimg-nav li {
    height: 56px;
    background: #f5f5f5;
    border-bottom: 1px solid #fff;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.kp-tabimg-nav li:last-child {
    border-bottom: 0;
}

.kp-tabimg-nav li a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    color: #585954;
    font-size: 13.5px;
    line-height: 1.4;
}

.kp-tabimg-nav li a span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    width: 100%;
}

.kp-tabimg-nav li.on,
.kp-tabimg-nav li:hover {
    background: var(--kp-blue);
    color: #fff;
}

.kp-tabimg-nav li.on a,
.kp-tabimg-nav li:hover a {
    color: #fff;
}

/* 右栏：一张大图 + 底部标题（对应参考站 .infoimg）
   高度 186px 是测出来的：让右栏与左栏底部对齐 */
.kp-infoimg {
    position: relative;
    height: 186px;
    border-radius: 5px;
    overflow: hidden;
    background: #eef1f4;
}

.kp-infoimg a {
    display: block;
    width: 100%;
    height: 100%;
}

.kp-infoimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kp-infoimg:hover img {
    transform: scale(1.05);
}

.kp-infoimg::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
}

.kp-infoimg .tit {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    height: 50px;
    line-height: 50px;
    padding: 0 16px;
    color: #fff;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-sect-side .kp-infoimg + .kp-imglist {
    margin-top: 10px;
}

/* ==========================================================================
   9. 服务横幅
   ========================================================================== */

.kp-cta {
    /* 无背景色：图片自带圆角 + 阴影；无图兜底时由 .kp-cta-inner 自己给底色 */
    margin: 4px 0 16px;
}

/* 用后台图集图片时：与「广告位一」同宽（都在 .kp-container 内），圆角 + 阴影 */
.kp-cta-imgwrap {
    display: block;
    width: 100%;
    border-radius: var(--kp-radius);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(30, 70, 120, 0.18);
}

.kp-cta-imgwrap img {
    display: block;
    width: 100%;
    height: auto;
}

.kp-cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 112px;
    padding-top: 16px;
    padding-bottom: 16px;
    border-radius: var(--kp-radius);
    /* 无图兜底时的底色（有图时不走这个元素） */
    background: linear-gradient(100deg, #2b7cd3 0%, #3f92e6 52%, #62aef5 100%);
    overflow: hidden;
}

.kp-cta-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 2px 6px rgba(0, 45, 95, 0.25);
}

.kp-cta-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.kp-cta-points li {
    position: relative;
    padding-left: 22px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
}

.kp-cta-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.kp-cta-points li::after {
    content: "✓";
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-52%);
    font-size: 10px;
    color: #fff;
}

.kp-cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    height: 52px;
    border-radius: 6px;
    background: linear-gradient(180deg, #ff9a3c, #f0730d);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 6px 16px rgba(200, 90, 10, 0.35);
}

.kp-cta-btn:hover {
    background: linear-gradient(180deg, #ffab57, #ff8318);
    transform: translateY(-2px);
}

.kp-cta-art {
    position: absolute;
    right: 220px;
    bottom: -8px;
    width: 150px;
    height: 96px;
    background:
        radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.22) 0 22px, transparent 23px),
        radial-gradient(circle at 65% 55%, rgba(255, 255, 255, 0.16) 0 16px, transparent 17px);
    pointer-events: none;
}

/* ==========================================================================
   10. 科技讲堂
   ========================================================================== */

.kp-lecture-list {
    display: flex;
    gap: 16px;
}

.kp-lecture-list li {
    flex: 1 1 0;
    min-width: 0;
}

.kp-lecture-pic {
    position: relative;
    display: block;
    border-radius: 5px;
    overflow: hidden;
    background: #eef1f4;
}

.kp-lecture-pic img {
    width: 100%;
    height: 104px;
    object-fit: cover;
}

.kp-lecture-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.kp-lecture-play::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 8px;
    border-left: 8px solid #fff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.kp-lecture-list li a:hover .kp-lecture-play {
    background: rgba(43, 124, 211, 0.85);
}

.kp-lecture-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #333a44;
}

.kp-lecture-desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
    font-size: 12px;
    color: var(--kp-light);
}

.kp-lecture-list li a:hover .kp-lecture-title {
    color: var(--kp-blue);
}

/* ==========================================================================
   11. 友情链接
   ========================================================================== */

.kp-links {
    background: #fff;
    /* 内容宽度与上方各版块对齐（容器已有 10px，这里再补 10px 与 .kp-focus 左边距一致） */
    padding: 22px 10px 28px;
    border-top: 1px solid var(--kp-line);
}

.kp-links-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 3px solid #f0f2f5;
    margin-bottom: 20px;
}

.kp-links-title {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: var(--kp-title);
    padding: 0 4px 10px;
}

.kp-links-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: var(--kp-orange-light);
}

/* 右上角小字标注 */
.kp-links-hint {
    padding-bottom: 12px;
    font-size: 12.5px;
    color: var(--kp-light);
    letter-spacing: 3px;
}

/* ---------- 第一排：有图显示图片，无图显示名称 ---------- */
.kp-links-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.kp-links-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 0 18px;
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-radius);
    background: #fff;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.kp-links-logos a:hover {
    border-color: rgba(43, 124, 211, 0.45);
    box-shadow: 0 6px 16px rgba(30, 70, 120, 0.12);
    transform: translateY(-2px);
}

/* 有 logo：固定宽度，图片居中 */
.kp-links-logos a.has-logo {
    width: 216px;
}

/* logo 固定高度 60px，超宽时按比例缩小，不拉伸不裁切 */
.kp-links-logos img {
    height: 60px;
    width: auto;
    max-width: 100%;
}

/* 图片加载失败时：改为虚线框并用名称顶上 */
.kp-links-logos a.is-empty {
    border-style: dashed;
}

.kp-links-logos a.is-empty img {
    display: none;
}

.kp-links-logotext {
    color: #5a636e;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* 有 logo 时名称只作为图片加载失败的兜底，默认隐藏 */
.kp-links-logos a.has-logo:not(.is-empty) .kp-links-logotext {
    display: none;
}

.kp-links-logos a:hover .kp-links-logotext {
    color: var(--kp-blue);
}

/* ---------- 下排：没有 logo 的，显示名称 ---------- */
.kp-links-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--kp-line);
}

.kp-links-text a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-radius);
    background: #fafbfd;
    font-size: 13.5px;
    color: #5a636e;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.kp-links-text a:hover {
    color: var(--kp-blue);
    border-color: rgba(43, 124, 211, 0.45);
    background: #fff;
}

.kp-links-logos a:hover .kp-links-logotext {
    color: var(--kp-blue);
}

/* ==========================================================================
   12. 页脚
   ========================================================================== */

.kp-footer {
    background: #eef1f4;
    border-top: 1px solid #e2e6ea;
    padding: 30px 0 0;
    color: #6b7480;
}

/* 四栏：品牌 / 快捷导航 / 联系方式 / 二维码 */
.kp-footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px 40px;
    padding-bottom: 26px;
}

.kp-footer-brand {
    flex: 1 1 260px;
    min-width: 220px;
}

.kp-footer-brand h3 {
    position: relative;
    font-size: 17px;
    font-weight: 700;
    color: #3d4650;
    line-height: 1.5;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.kp-footer-brand h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--kp-orange-light);
}

.kp-footer-slogan {
    font-size: 13px;
    letter-spacing: 1px;
    color: #97a0ab;
}

.kp-footer-nav,
.kp-footer-contact {
    flex: 0 0 auto;
}

.kp-footer-nav {
    min-width: 190px;
}

.kp-footer-contact {
    min-width: 280px;
}

.kp-footer-nav h4,
.kp-footer-contact h4 {
    font-size: 14px;
    font-weight: 700;
    color: #3d4650;
    margin-bottom: 12px;
}

.kp-footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    max-width: 260px;
}

.kp-footer-nav a {
    font-size: 13px;
    color: #6b7480;
    transition: color 0.2s ease;
}

.kp-footer-nav a:hover {
    color: var(--kp-blue);
}

.kp-footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.kp-footer-contact li {
    font-size: 13px;
    line-height: 1.7;
    color: #6b7480;
}

.kp-footer-label {
    display: inline-block;
    min-width: 44px;
    color: #97a0ab;
}

.kp-footer-copy {
    margin-top: 6px;
    color: #97a0ab;
}

.kp-footer-qr {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.kp-qr-box {
    width: 88px;
    height: 88px;
    padding: 5px;
    background: #fff;
    border: 1px solid #e0e5ea;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(30, 70, 120, 0.06);
}

.kp-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kp-qr-box.is-empty::after {
    content: "二维码";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 11px;
    color: #c3cad3;
}

.kp-footer-qr p {
    font-size: 12px;
    line-height: 1.7;
    color: #97a0ab;
}

/* 底栏：版权 / 备案 / 管理登录 */
.kp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 26px;
    padding: 14px 0 16px;
    border-top: 1px solid #e0e5ea;
    font-size: 12.5px;
    color: #97a0ab;
}

.kp-footer-admin {
    color: #97a0ab;
    transition: color 0.2s ease;
}

.kp-footer-admin:hover {
    color: var(--kp-blue);
}

/* ==========================================================================
   12b. 右侧悬浮二维码（随公共页脚出现在所有页面）
   ========================================================================== */

.kp-float-qr {
    display: none; /* 视口够宽才显示，避免压住正文 */
    position: fixed;
    top: 150px;
    right: 14px;
    z-index: 80;
    width: 132px;
    padding: 10px 10px 8px;
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(20, 60, 110, 0.14);
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.kp-float-qr.is-out {
    opacity: 0;
    transform: translateX(150%);
    pointer-events: none;
}

.kp-float-qr-box {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    padding: 4px;
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 6px;
}

.kp-float-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.kp-float-qr-tip {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7480;
}

.kp-float-qr-top {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 28px;
    margin-top: 8px;
    border: 0;
    border-top: 1px solid #eef1f4;
    background: transparent;
    color: #6b7480;
    font-size: 12px;
    cursor: pointer;
    transition: var(--kp-transition);
}

.kp-float-qr-top.is-show {
    display: flex;
}

.kp-float-qr-top:hover {
    color: var(--kp-blue);
}

.kp-float-qr-top span {
    line-height: 1;
}

/* 计算：左留白 10 + 容器 1280 + 浮窗右偏移 14 + 浮窗 132 = 1436，
   再留 40px 左右安全间距 → 视口 ≥1640 才显示，保证浮窗不压正文 */
@media (min-width: 1640px) {
    .kp-float-qr {
        display: block;
    }
}

@media print {
    .kp-float-qr {
        display: none !important;
    }
}

/* ==========================================================================
   13. 列表页 / 详情页
   ========================================================================== */

/* 列表页 / 详情页顶部图片：head.png 按自身比例铺满宽度，两侧无留白 */
.kp-page-banner {
    background: #0d2a4c;
    line-height: 0;
}

.kp-page-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.kp-crumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--kp-line);
}

.kp-crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    font-size: 13px;
    color: var(--kp-muted);
}

.kp-crumb a:hover {
    color: var(--kp-blue);
}

.kp-layout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 0 34px;
}

.kp-layout.no-sidebar {
    display: block;
}

.kp-sidebar {
    flex: 0 0 250px;
    min-width: 0;
    background: #fff;
    border-radius: var(--kp-radius);
    box-shadow: var(--kp-shadow);
    overflow: hidden;
}

/* 侧栏分块：子栏目导航块 + 热点推荐块 */
.kp-sidebar-block + .kp-sidebar-block {
    border-top: 8px solid var(--kp-bg);
}

.kp-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(100deg, #2b7cd3, #4c9ae8);
    padding: 13px 16px;
    letter-spacing: 1px;
}

/* 子栏目导航 */
.kp-sidebar-block > a {
    display: block;
    padding: 11px 16px;
    font-size: 14px;
    color: #4a545f;
    border-bottom: 1px solid #f4f6f8;
    position: relative;
}

.kp-sidebar-block > a:last-child {
    border-bottom: 0;
}

.kp-sidebar-block > a:hover {
    color: var(--kp-blue);
    background: #f7fafd;
}

.kp-sidebar-block > a.active {
    color: var(--kp-blue);
    background: #f1f7fd;
    font-weight: 700;
}

.kp-sidebar-block > a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--kp-blue);
}

/* 热点推荐列表（带序号，前三名高亮） */
.kp-hot-list {
    padding: 6px 0;
}

.kp-hot-list li {
    border-bottom: 1px solid var(--kp-divider);
}

.kp-hot-list li:last-child {
    border-bottom: 0;
}

.kp-hot-list li a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #4a545f;
}

.kp-hot-list li a:hover {
    color: var(--kp-blue);
    background: #f7fafd;
}

.kp-hot-list .num {
    flex: 0 0 18px;
    height: 18px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: #eef1f4;
    color: #97a0ab;
    font-size: 11px;
    font-family: Arial, sans-serif;
    font-style: normal;
    line-height: 1;
}

.kp-hot-list .num .top {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: var(--kp-blue);
    color: #fff;
    font-style: normal;
}

.kp-hot-list .tit {
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.kp-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: var(--kp-radius);
    box-shadow: var(--kp-shadow);
    padding: 20px 24px 26px;
}

/* 文章列表：无缩略图，标题 + 简介 + 时间（时间固定右列） */
.kp-article-list li {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--kp-divider);
}

.kp-article-list li:last-child {
    border-bottom: 0;
}

/* 兼容旧结构：万一还有缩略图，直接隐藏 */
.kp-article-list .pic {
    display: none;
}

.kp-article-list .txt {
    flex: 1;
    min-width: 0;
}

.kp-article-list .txt a {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #333a44;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-article-list .txt a:hover {
    color: var(--kp-blue);
}

.kp-article-list .txt p {
    margin-top: 6px;
    font-size: 13px;
    color: var(--kp-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 右侧元信息：阅读量 + 日期 */
.kp-article-list .meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-top: 3px;
    white-space: nowrap;
}

.kp-article-list .kp-read {
    font-size: 12.5px;
    color: var(--kp-light);
}

.kp-article-list time {
    font-size: 13px;
    color: var(--kp-light);
    font-family: Arial, sans-serif;
}

.kp-pagination {
    margin-top: 20px;
    text-align: center;
}

.kp-pagination .pagination {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.kp-pagination .pagination li a,
.kp-pagination .pagination li span,
.kp-pagination .pagination li.active span,
.kp-pagination .pagination li.disabled span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #e3e8ee;
    border-radius: 4px;
    color: #5a636e;
    font-size: 13px;
    background: #fff;
}

.kp-pagination .pagination li.active span {
    background: var(--kp-blue);
    border-color: var(--kp-blue);
    color: #fff;
}

.kp-pagination .pagination li a:hover {
    border-color: var(--kp-blue);
    color: var(--kp-blue);
}

/* 文章详情 */
.kp-article-head {
    border-bottom: 1px solid var(--kp-line);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.kp-article-head h1 {
    font-size: 24px;
    line-height: 1.5;
    color: var(--kp-title);
    font-weight: 700;
    margin-bottom: 14px;
}

.kp-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 13px;
    color: var(--kp-light);
}

.kp-article-body {
    font-size: 15px;
    line-height: 2;
    color: #333a44;
    word-break: break-word;
}

.kp-article-body p {
    margin: 12px 0;
}

.kp-article-body img {
    margin: 14px auto;
    border-radius: 4px;
}

.kp-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}

.kp-article-body td,
.kp-article-body th {
    border: 1px solid #e3e8ee;
    padding: 8px 10px;
}

.kp-article-body video,
.kp-article-body iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 14px auto;
}

/* 老站随站下线的图片/视频降级提示 */
.kp-media-dead {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 14px 18px;
    margin: 8px 0;
    border: 1px dashed #d5dde5;
    border-radius: 4px;
    background: #f7f9fb;
    color: #9aa3ad;
    font-size: 13px;
}

.kp-article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px dashed #e3e8ee;
    font-size: 13.5px;
    color: var(--kp-muted);
}

.kp-article-nav a:hover {
    color: var(--kp-blue);
}

.kp-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--kp-light);
}

/* 科普基地图集墙 */
.kp-gallery-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.kp-gallery-wall li a {
    display: block;
    border: 1px solid #eef1f4;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.kp-gallery-wall img {
    width: 100%;
    height: 128px;
    object-fit: cover;
}

.kp-gallery-wall span {
    display: block;
    padding: 10px 12px;
    font-size: 13.5px;
    color: #4a545f;
    line-height: 1.5;
}

.kp-gallery-wall li a:hover span {
    color: var(--kp-blue);
}

/* ==========================================================================
   14. 响应式
   ========================================================================== */

@media (max-width: 1100px) {
    .kp-brand-text small {
        display: none;
    }

    .kp-news-slider {
        flex: 0 0 52%;
        width: 52%;
    }

    .kp-carousel {
        height: 340px;
    }

    .kp-sect-main {
        flex: 0 0 60%;
        width: 60%;
        padding-right: 2.5%;
    }

    .kp-sect-side {
        flex: 0 0 37%;
        width: 37%;
    }

    .kp-sect-pic {
        height: 220px;
    }

    .kp-tabimg {
        height: 290px;
    }

    .kp-gallery-wall {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .kp-header-inner {
        min-height: 76px;
    }

    .kp-brand-text strong {
        font-size: 18px;
    }

    .kp-nav-inner {
        justify-content: flex-start;
        min-height: 60px;
        gap: 8px;
        padding: 6px 10px;
    }

    .kp-nav-item {
        min-width: 0;
        height: 36px;
        padding: 0 16px;
        font-size: 13.5px;
    }

    .kp-hero {
        height: auto;
        max-height: none;
    }

    /* 窄屏：两栏一律改为纵向堆叠（显式覆盖 .kp-col-6 的列样式） */
    .kp-two-col,
    .kp-news-top,
    .kp-sect,
    .kp-sect-cols {
        flex-direction: column;
        gap: 18px;
    }

    .kp-two-col > .kp-col-6,
    .kp-col-6,
    .kp-news-slider,
    .kp-news-listcol {
        flex: none;
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        border-left: 0;
        border-right: 0;
    }

    /* eyoumain3 两栏在窄屏堆叠，图片限高避免过高 */
    .kp-sect-main,
    .kp-sect-side,
    .kp-sect-feature,
    .kp-sect-lists {
        flex: none;
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .kp-sect-pic {
        height: 240px;
    }

    .kp-news-listcol {
        padding-top: 16px;
        border-top: 1px solid var(--kp-line);
    }

    .kp-carousel {
        height: 320px;
    }

    .kp-carousel {
        height: 360px;
    }

    .kp-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* 纵向堆叠后必须显式限宽，否则 .kp-content 会被内容撑破 */
    .kp-layout .kp-content {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .kp-cta-text h3 {
        font-size: 19px;
    }

    .kp-cta-btn {
        min-width: 150px;
        height: 44px;
        font-size: 17px;
    }

    .kp-cta-art {
        display: none;
    }

    .kp-lecture-list,
    .kp-base-list {
        flex-wrap: wrap;
    }

    .kp-lecture-list li {
        flex: 0 0 calc(50% - 8px);
    }

    .kp-base-list li {
        flex: 0 0 calc(50% - 6px);
    }

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

    .kp-layout {
        flex-direction: column;
    }

    .kp-sidebar {
        width: 100%;
        flex: none;
    }

    .kp-footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    /* 窄屏：各栏不再固定最小宽度，避免横向溢出 */
    .kp-footer-brand,
    .kp-footer-nav,
    .kp-footer-contact {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    .kp-footer-nav ul {
        max-width: 100%;
    }
}

@media (max-width: 620px) {
    .kp-footer {
        padding-top: 24px;
    }

    .kp-footer-qr {
        align-self: center;
    }

    .kp-footer-bottom {
        justify-content: flex-start;
        gap: 6px 16px;
        line-height: 1.8;
    }
}

@media (max-width: 620px) {
    .kp-header-inner {
        flex-wrap: wrap;
        gap: 10px;
        min-height: 0;
        padding: 10px 0 12px;
    }

    .kp-brand-text strong {
        font-size: 17px;
        letter-spacing: 0.5px;
    }

    .kp-header-tools {
        flex: 1 1 100%;
    }

    .kp-search {
        width: 100%;
        max-width: 100%;
    }

    /* 窄屏：日期列收窄，给标题留出更多空间（含 .kp-news-listcol 作用域，避免被覆盖） */
    .kp-dot-list li,
    .kp-dot-list--tight li,
    .kp-news-listcol .kp-tick-list li,
    .kp-tick-list li {
        padding-right: 66px;
    }

    .kp-news-listcol .kp-tick-list li,
    .kp-tick-list li {
        padding-left: 15px;
    }

    .kp-hero {
        height: auto;
        max-height: none;
    }

    /* 窄屏：大图轮播与竖向缩略图仍并排，整体压低 */
    .kp-carousel {
        height: 220px;
    }

    .kp-carousel-cap {
        height: 36px;
        line-height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .kp-carousel-thumbs li .kp-carousel-thumbtit {
        font-size: 11px;
        padding: 6px 6px;
    }

    .kp-carousel-arrow {
        width: 24px;
        height: 40px;
    }

    /* 窄屏：标签保持左侧方块（仍是“专题/中心”两行两列），右侧入口横滑 */
    .kp-topics {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .kp-topics-label {
        grid-template-columns: repeat(2, auto);
        grid-template-rows: repeat(2, auto);
        justify-content: center;
        column-gap: 0;
        flex: 0 0 68px;
        width: 68px;
        height: 46px;
        font-size: 13px;
    }

    .kp-topics-scroll {
        gap: 4px;
    }

    .kp-topics-list {
        flex-wrap: wrap;
    }

    .kp-topic-card {
        flex: 0 0 calc(50% - 7px);
        width: auto;
        max-width: 100%;
        height: auto;
        aspect-ratio: 240 / 82;
    }

    /* 窄屏：图文 Tab 整体压低，导航仍与图片并排 */
    .kp-tabimg {
        height: 240px;
    }

    .kp-tabimg-nav li {
        height: 40px;
    }

    .kp-tabimg-nav li a {
        padding: 0 10px;
        font-size: 12.5px;
    }

    .kp-infoimg {
        height: 150px;
    }

    /* 小屏：阅读量 + 日期换行到简介下方，横向排列 */
    .kp-article-list li {
        flex-wrap: wrap;
        gap: 0 16px;
    }

    .kp-article-list .meta {
        order: 3;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        width: 100%;
        padding-top: 8px;
    }

    .kp-focus-cn {
        font-size: 17px;
        letter-spacing: 2px;
    }

    /* 窄屏：有图卡片两列均分，图片高度略降但不挤 */
    .kp-links-logos {
        gap: 10px;
        margin-bottom: 16px;
    }

    .kp-links-logos a {
        height: 78px;
        padding: 0 12px;
    }

    .kp-links-logos a.has-logo {
        width: calc(50% - 5px);
    }

    .kp-links-logos img {
        height: 54px;
    }

    .kp-links-text {
        gap: 8px 20px;
    }
}

/* 2026-10 homepage review adjustments */
body.kp-home,
body.kp-page { font-size: 16px; }

/* Let the navigation and hero read as one blue visual band. */
.kp-nav { background: #218bd2; border-bottom: 0; box-shadow: none; }
.kp-nav-inner { min-height: 58px; gap: 0; flex-wrap: nowrap; }
.kp-nav-item {
    flex: 1 1 0;
    max-width: 170px;
    min-width: 0;
    height: 58px;
    padding: 0 10px;
    border-radius: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.8px;
}
.kp-nav-item:hover { background: rgba(0, 66, 142, 0.18); transform: none; }
.kp-nav-item.active { background: rgba(0, 66, 142, 0.28); box-shadow: none; }
.kp-nav-item.active::after { display: none; }
.kp-home .kp-nav-item,
.kp-page .kp-nav-item { color: #fff; }
.kp-hero { height: auto; }
.kp-hero-slide img { object-fit: contain; }
.kp-hero-mobile-name { display: none; }

/* Topic entrances share the full container width equally. */
.kp-topics { padding: 12px 24px; }
.kp-topics-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow: visible; }
.kp-topic-card { width: 100%; height: auto; aspect-ratio: 240 / 82; }

.kp-panel { background: #f8fbff; }
.kp-panel-news { background: #f0f6fd; }
.kp-panel-title { font-size: 20px; }
.kp-panel-more { font-size: 15px; }

/* New articles use the same weight and size as the rest of the news list. */
.kp-news-listcol { display: flex; align-items: center; height: 400px; }
.kp-news-listcol .kp-tick-list { width: 100%; margin-top: 0; }
.kp-news-listcol .kp-tick-list li { padding: 11px 92px 11px 18px; }
.kp-news-listcol .kp-tick-list li::before { top: 11px; font-size: 15px; }
.kp-news-listcol .kp-tick-list li a { font-size: 16px; color: #33465b; }
.kp-news-listcol .kp-tick-list li em { top: 11px; font-size: 16px; color: #61758d; }
.kp-dot-list li { padding-top: 8px; padding-bottom: 8px; }
.kp-dot-list li a { font-size: 16px; }
.kp-dot-list li em { top: 8px; font-size: 15px; }

/* Both banners contain raster text; a slight horizontal scale opens it visually. */
.kp-focus img,
.kp-cta-imgwrap img { height: 124px; object-fit: fill; transform: scaleX(1.04); }
.kp-focus-cn { letter-spacing: 6px; }
.kp-cta-text h3 { letter-spacing: 4px; }

.kp-sect-title { font-size: 18px; }
.kp-imglist li a { font-size: 16px; }
.kp-sect-lists .kp-imglist li a { padding-right: 0; }
.kp-sect-side .kp-imglist .txt { font-size: 16px; }
.kp-infoimg .tit { font-size: 16px; }

/* Give hotspot titles more room and align its bottom with education. */
.kp-panel-hot-education .kp-tabimg { height: 350px; }
.kp-panel-hot-education .kp-tabimg-nav { width: 43%; }
.kp-panel-hot-education .kp-tabimg-panes { width: 57%; }
.kp-panel-hot-education .kp-tabimg-nav li { height: 20%; }
.kp-panel-hot-education .kp-tabimg-nav li a { font-size: 16px; }
.kp-panel-hot-education .kp-infoimg { height: 190px; }
.kp-panel-hot-education .kp-sect-side .kp-imglist li { padding: 6px 0; }

.kp-lecture-title { font-size: 15px; }
.kp-lecture-desc { font-size: 14px; }
.kp-links { padding: 22px 18px 28px; }
.kp-links-title { font-size: 20px; }
.kp-links-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 14px;
}
.kp-links-logos a.has-logo { width: 100%; }
.kp-links-text a { font-size: 15px; }

/* Carry the larger type through the rest of the public pages. */
.kp-crumb { font-size: 15px; }
.kp-sidebar-block > a { font-size: 16px; }
.kp-hot-list li a { font-size: 15px; }
.kp-article-list .txt a { font-size: 17px; }
.kp-article-list .txt p { font-size: 15px; }
.kp-footer-brand h3 { font-size: 19px; }
.kp-footer-slogan { font-size: 15px; }

@media (max-width: 900px) {
    .kp-nav-inner { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .kp-nav-inner::-webkit-scrollbar { display: none; }
    .kp-nav-item { flex: 0 0 auto; max-width: none; height: 52px; padding: 0 16px; font-size: 15px; }
    .kp-news-listcol { height: auto; }
    .kp-panel-hot-education .kp-tabimg { height: 320px; }
}
@media (max-width: 620px) {
    .kp-hero { height: 160px; }
    .kp-hero-slide img { object-fit: cover; filter: brightness(0.45) blur(3px); }
    .kp-hero-mobile-name {
        position: absolute;
        z-index: 5;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 18px;
        color: #fff;
        font-size: 22px;
        font-weight: 700;
        letter-spacing: 1px;
        line-height: 1.4;
        text-align: center;
        text-shadow: 0 2px 8px rgba(0, 25, 70, 0.6);
        pointer-events: none;
    }
    .kp-topics { padding: 12px; }
    .kp-topics-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kp-news-listcol .kp-tick-list li { padding-right: 82px; }
    .kp-news-listcol .kp-tick-list li a,
    .kp-news-listcol .kp-tick-list li em { font-size: 14px; }
    .kp-focus img,
    .kp-cta-imgwrap img { height: 100px; }
    .kp-panel-hot-education .kp-tabimg { height: 300px; }
    .kp-panel-hot-education .kp-tabimg-nav li a { font-size: 14px; }
    .kp-links-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
