/* ============================================================
   asmedc 复刻修复样式（对照完整源码 BackOldweb_asmedc_20260625）
   目的：让首页轮播大图与各板块背景全宽出血，与原站一致。
   仅覆盖/补充，不改动原 style.css。
   ============================================================ */

/* 首页：让 .main 不再有 10px 内边距，hero 与各板块真正出血到窗口两侧 */
.home-page .main {
  padding: 0;
}

/* 首页 hero 轮播容器全宽 */
.home-page .slideshow.carousel {
  width: 100%;
}

/* 首页 hero 大图：强制撑满宽度、固定高度裁切，实现全宽出血（与原站视觉一致） */
.home-page .slideshow.carousel .carousel-img img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  display: block;
}

/* 内页 banner（.slideshow-min）同样全宽出血 */
.slideshow-min .carousel-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* 通用：carousel 图片撑满容器 */
.slideshow .carousel-img img {
  width: 100%;
  display: block;
}

/* 移动端：语言切换下拉改为横向内联，触屏直接点（避免 superfish 在手机上不友好） */
@media screen and (max-width: 768px) {
  .language { position: static; float: right; margin-top: 4px; }
  .language .sf-menu > li > a.first-level { display: none; }
  .language .sf-menu > li > ul {
    display: inline-block !important;
    position: static;
    width: auto !important;
    box-shadow: none;
  }
  .language .sf-menu > li > ul > li {
    display: inline-block;
    background: transparent;
  }
  .language .sf-menu li li a {
    border: none;
    padding: 0.4em 0.7em;
    color: #004680 !important;
    font-weight: bold;
  }
}

/* ============================================================
   桌面端基础规则（m-only 类只在移动端生效；移动端元素桌面端隐藏）
   ============================================================ */
.m-only { display: none; }
.m-show-inline { display: inline; }
/* 移动端 hamburger 按钮：桌面端隐藏，否则会显示成 4x4 像素小方块（PC 端白点） */
.mobile-menu-toggle { display: none !important; }

/* ============================================================
   移动端适配（max-width:768px）— 2026-08-26
   - 容器全宽 + padding 16px
   - Hero 高度缩 280
   - 专家 5×2 → 2×5
   - 技术服务 4 列 → 1 列
   - 合作单位 logo 墙单列铺
   - 菜单汉堡按钮显示，原 nav 折叠
   - hover 在移动端强制 disable（防止触摸后持续显示 hover 态）
   ============================================================ */

/* 全局 box-sizing + 禁止横向滚动 + Sticky Footer */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100vw; }

/* 页面不够高时把页脚推到底：body 纵向 flex，.main 自适应拉伸 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > * { flex-shrink: 0; }
body > section.main { flex: 1 0 auto; }

/* 1. 容器全宽 + 左右 padding */
/* 桌面端先隐藏移动端专属控件（媒体查询内再打开） */
.mobile-lang-toggle,
.mobile-menu-toggle,
.mobile-header-actions,
.mobile-menu-header,
.mobile-menu-close { display: none; }

@media (max-width: 768px) {
  .page-width, .boxed-layout,
  .footer-main .page-width,
  .top-main .page-width {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  /* 头部容器：原主题 .jz 固定 1200px，移动端必须压成 100%，否则整页横向溢出（右侧大片空白） */
  .head .jz { width: 100% !important; max-width: 100% !important; padding: 0 20px !important; }
  .head .jz .p_sj { width: auto !important; max-width: 100% !important; }
  .head .jz .fw { display: none !important; }
  /* 兜底：任何残留定宽容器都不许超出视口 */
  .w1000, .img-scrolla, .img-lista, .img-list, .content-wrapper, .module-content, .boxed-layout { max-width: 100% !important; }
  .top-main .page-width { padding-top: 0; padding-bottom: 0; }

  /* 2. Hero 轮播（#heroCarousel 用纯 CSS flex + transform，不依赖 caroufredsel）
     注意：不再对 .carousel-item 设 width:100%！那会破坏 flex 20% 布局导致"5条竖切片" */
  #heroCarousel { overflow: hidden; height: 240px !important; }
  #heroCarousel .carousel-viewport {
    width: 100%; height: 100%; overflow: hidden;
  }
  #carousel-216545 {
    display: flex !important;
    width: 500% !important;
    height: 100% !important;
    transition: transform 0.6s ease;
  }
  #carousel-216545 .carousel-item {
    flex: 0 0 20% !important;
    width: 20% !important;
    height: 100% !important;
    overflow: hidden !important;
    transform: none !important;
    float: none !important;
  }
  #carousel-216545 .carousel-img,
  #carousel-216545 .carousel-img a,
  #carousel-216545 .carousel-img img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transform: none !important;
  }

  /* 3. 移动端顶部下拉菜单（完全复用 szlp 风格：header 下方展开、hamburger 变 X、多级 + 号折叠） */
  header.desktops-section { display: block !important; }

  /* 头部固定 + 顶部留白（避免 Logo 贴顶切头） */
  #mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding-top: 12px;
  }
  body { padding-top: 72px; }
  .head {
    position: relative;
    height: auto !important;
    min-height: 60px;
    margin-top: 0 !important;
    padding: 8px 0 0 0;
  }
  .head .jz {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 68px;
    padding: 14px 16px;
  }
  .head .jz .p_sj {
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    display: flex;
    align-items: center;
  }
  .head .jz .l img { max-height: 46px; max-width: 170px; width: auto; display: block; }

  .mobile-header-actions {
    display: flex !important;
    align-items: center;
    gap: 2px;
    margin-left: auto;
  }

  /* 语言地球按钮：保持图标+文字，但改为无框简洁风格与汉堡统一 */
  .mobile-lang-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    padding: 8px;
    cursor: pointer;
    color: #374151;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-lang-toggle .lang-icon { color: #374151; width: 20px; height: 20px; }
  .mobile-lang-toggle .lang-label {
    font-size: 10px;
    line-height: 1;
    color: #6b7280;
    font-weight: 500;
  }

  /* 汉堡按钮：完全复用 szlp 风格，无背景/无边框，纯三条线 */
  .hamburger.mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    padding: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .hamburger.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #374151;
    border-radius: 1px;
    transition: transform .25s ease, opacity .2s ease;
  }
  #mainHeader.nav-active .hamburger.mobile-menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  #mainHeader.nav-active .hamburger.mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  #mainHeader.nav-active .hamburger.mobile-menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* 下拉菜单面板：在 header 下方自然展开，现代卡片风格 */
  .desktops-section .top-main { display: none !important; }
  #mainHeader.header-v1 #topMain {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    margin-top: 14px;
    height: auto !important;
    min-height: 0 !important;
    background: #fff !important;
    background-color: #fff !important;
    border: none;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.14);
    padding: 12px;
    z-index: 1001;
  }
  #mainHeader.header-v1.nav-active #topMain {
    display: block !important;
  }

  /* 强制清除原主题 superfish 蓝色背景/文字 */
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu li { float: none !important; }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu,
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu li,
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu li li,
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu li li li { background: transparent !important; background-color: transparent !important; }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu a,
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu a:visited { color: #1f2937 !important; border: none !important; }

  #mainHeader.header-v1 #topMain.mobile-menu-open .page-width { padding: 0 !important; width: 100%; max-width: 100%; }
  #mainHeader.header-v1 #topMain.mobile-menu-open .top-main-content { display: block !important; padding: 0; }
  #mainHeader.header-v1 #topMain.mobile-menu-open .nav { display: block !important; width: 100%; }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
  }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li {
    float: none !important;
    display: block !important;
    width: auto !important;
    margin: 4px 0;
    border-radius: 12px;
    background: transparent !important;
    border: 1px solid #f0f0f0 !important;
    position: relative;
    overflow: hidden;
    transition: background-color .2s ease;
  }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li.current { background: #f3f4f6 !important; }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li:active,
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li.open { background: #f9fafb !important; }

  /* 隐藏 superfish 自带的小箭头/indicator（移动端不需要，避免和 + 号重复或出现蓝色小三角） */
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu .sf-sub-indicator { display: none !important; }

  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li > a.first-level {
    display: block;
    padding: 14px 52px 14px 16px;
    font-size: 16px;
    line-height: 1.5 !important;
    color: #1f2937;
    background: transparent !important;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.01em;
  }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li > a.first-level strong { color: inherit !important; font-weight: inherit; }

  /* 子菜单展开按钮：圆形浅灰 + 号（固定顶部，避免父级展开后飘到子菜单中间） */
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li .sub-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    color: #374151;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    background: #f3f4f6;
    border-radius: 50%;
    transition: background-color .2s ease, transform .2s ease;
  }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li .sub-toggle::before { content: "+"; }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li.open > .sub-toggle { background: #e5e7eb; transform: rotate(45deg); }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li.open > .sub-toggle::before { content: "+"; color: #1f2937; }

  /* 子菜单默认折叠：卡片式浅灰底 */
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li > ul {
    position: static !important;
    display: none;
    background: #f9fafb !important;
    border-radius: 0 0 10px 10px;
    padding: 4px 0;
    margin: 0 8px 8px;
    width: auto;
    list-style: none;
  }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li.open > ul { display: block; }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li > ul > li {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #e5e7eb !important;
  }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li > ul > li:last-child { border-bottom: none !important; }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li > ul > li > a {
    display: block;
    padding: 12px 16px 12px 32px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
    background: transparent !important;
    border-radius: 8px;
    margin: 2px 6px;
  }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li > ul > li > a:active { background: #f3f4f6 !important; color: #111827 !important; }
  #mainHeader.header-v1 #topMain.mobile-menu-open .sf-menu > li > i { display: none; }
  #mainHeader.header-v1 #topMain.mobile-menu-open .language { display: none !important; }

  /* 6. section 上下 padding 缩 */
  .module-section { padding: 30px 0 !important; }
  /* 移动端栏目头与"更多"保持同一行：flex 两端对齐 */
  .module-section-title-wrapper .page-width {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .module-section-title { float: none !important; padding-right: 0; flex: 1 1 auto; min-width: 0; }
  .module-section-title h2 { font-size: 22px !important; }
  .module-section-title h3 { font-size: 13px !important; }
  .module-section-title em { display: none; }   /* 桌面端装饰横线在移动端隐藏 */
  .module-section-more {
    float: none !important;
    flex: 0 0 auto;
    margin-top: 0 !important;
  }
  .module-section-more a {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    padding: 4px 0;
  }
  .module-section-title-wrapper { margin-bottom: 24px !important; }

  /* 7. 科研动态：大图 + 列表上下排 */
  .home-page .headlines-list-2col { display: block; }
  .home-page .headlines-list-2col .headlines-content,
  .home-page .headlines-list-2col .headlines-others {
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    float: none !important;
  }
  /* 首页科研动态大图卡片：去掉桌面端遗留的 15px padding，消除绿框空隙 */
  .home-page .headlines-list-2col .headlines-content {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .home-page .headlines-list-2col .headlines-content p { margin-bottom: 10px; }
  .home-page .headlines-list-2col .headlines-content h2 {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 8px;
  }
  .home-page .headlines-content-summary { font-size: 14px; color: #666; }
  .home-page .headlines-list-2col .headlines-content img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* 7.5 首页右侧时间线文章列表（entry-set-time-hl）移动端优化 */
  .home-page .headlines-others .entry-set-time-hl .entry-item {
    position: relative;
    padding-left: 64px !important;
    min-height: 58px !important;
    padding-bottom: 14px !important;
    margin-bottom: 14px !important;
    border-bottom: 1px dotted #e5e5e5;
  }
  .home-page .headlines-others .entry-set-time-hl .time {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px !important;
    background-color: #f2f2f2;
    text-align: center;
  }
  .home-page .headlines-others .entry-set-time-hl .time-day {
    font-size: 20px !important;
    line-height: 34px !important;
  }
  .home-page .headlines-others .entry-set-time-hl .time-date {
    font-size: 11px !important;
    line-height: 18px !important;
  }
  .home-page .headlines-others .entry-set-time-hl .entry-title h2 {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
  .home-page .headlines-others .entry-set-time-hl .entry-summary {
    font-size: 13px;
    color: #808080;
    line-height: 1.5;
    padding-right: 0;
  }

  /* 8. 研究院专家团：移动端 2x2 共 4 个专家（1 行 2 个，2 行）
     注：HTML 实际 20 个 li，nth-child(n+5) 隐藏 5+ 留 4 个 = 2x2 */
  .img-scrolla,
  .img-lista,
  .img-lista ul {
    width: 100% !important;
    margin-left: 0 !important;
    height: auto !important;
  }
  .img-lista ul { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 !important; height: auto !important; }
  .img-lista .zja,
  .img-lista ul .zja {
    width: calc(50% - 8px) !important;
    margin: 0 !important;
    margin-bottom: 12px !important;
  }
  /* 移动端只显示前 4 个（2x2），其余隐藏 */
  .img-lista .zja:nth-child(n+5) { display: none !important; }
  .img-lista .zj-item .portfolio-img img { width: 100%; height: auto; }
  .zj-item .portfolio-title h2 { font-size: 14px; }
  .zj-item .portfolio-title p { font-size: 12px; }
  /* 专家卡片：照片容器去浅灰底 + 高度自适应，消除照片下方灰块 */
  .zj-item .portfolio-img { height: auto !important; background-color: #fff !important; }

  /* 问题2：.portfolio-title / .portfolio-summary 原主题自带 padding:0 15px 5px 15px，
     移动端单列或 2×2 卡片里会在标题左右再塞 15px，叠加卡片自身 padding 形成画蛇添足的
     空隙。移动端去掉左右 15px，让标题与图片/卡片左缘对齐。
     注意：只针对标准卡片（专家卡 .zj-item / 文章摘要卡 .portfolio-list-summary），
     不碰 .portfolio-list-category 的叠加式标题（那套有自己的 padding 规则）。 */
  .zj-item .portfolio-title,
  .portfolio-list-summary .portfolio-title,
  .portfolio-list-summary .portfolio-summary {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }


  /* 8.5 文章列表（搜也/科研动态等）：移动端单列，避免 4 列挤成一团、标题被截断 */
  .column .col-4-1,
  .marg-per2 > .col-4-1 {
    width: 100% !important;
    margin-right: 0 !important;
  }

  /* 9. 技术服务 4 列 → 2×2 网格（要求 1 行 2 个，不要 1 列太空洞）
     col-4-1 width: calc(50% - 8px) = 一行 2 个，中间 gap 16
     column 容器用 flex + gap 让两个图标之间 16px
     触摸目标（图标 72px + 文字）高度 100+px，宽度 50% - 8px，方便拇指点击 */
  .home-page > .main > .module-section:nth-of-type(3) .column {
    display: flex; flex-wrap: wrap; gap: 16px;
  }
  .home-page .column .col-4-1 {
    width: calc(50% - 8px) !important;
    margin: 0 !important;
    padding: 20px 12px !important;
    box-sizing: border-box;
  }
  .home-page .column .col-4-1.last { margin-right: 0 !important; }

  /* 10. 合作单位：hzdw 详情页 50 篇已修好，移动端恢复显示 Logo 墙（2026-09-08） */
  .home-page .main > .module-section:last-child { display: block !important; }

  /* 11. footer 简化（横向内边距交给 .page-width 全局 20px） */
  .footer { padding: 0; }
  /* 版权：移动端中英文各占一行（中文在上），桌面端同行 */
  .copyright-text .copyright-zh,
  .copyright-text .copyright-en { display: inline; }

  /* 12. 移动端 hover 强制 disable（防止触摸后 hover 态粘住） */
  .home-reveal .zja:hover,
  .home-reveal .col-4-1:hover,
  .zj-item:hover img {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
  }

  /* 13. IO 触发条件放宽（小屏 rootMargin 改成 0，threshold 降到 0.1） */
  /* （由 JS 已处理，这里 CSS 不动） */
}

/* 移动端更小屏（max-width:480px）进一步压缩 */
@media (max-width: 480px) {
  .module-section-title h2 { font-size: 20px !important; }
  .module-section { padding: 24px 0 !important; }
}

/* ========================================
   about 栏目介绍页标题行（左侧蓝条 + 中英文）
   ======================================== */
.about-page-header {
  display: flex;
  align-items: center;
  margin: 0 0 24px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}
.about-header-bar {
  width: 4px;
  height: 40px;
  background: #1a73e8;
  margin-right: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}
.about-header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
}
.about-subtitle {
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 4px 0 0 0;
  line-height: 1.2;
}

/* 移动端 about 标题行适配 */
@media (max-width: 640px) {
  .about-page-header {
    margin: 0 0 18px 0;
    padding-bottom: 14px;
  }
  .about-header-bar {
    height: 32px;
    margin-right: 10px;
  }
  .about-title { font-size: 20px; }
  .about-subtitle { font-size: 11px; letter-spacing: 1.5px; }
}

/* ============================================================
   2026-08-28 二级页面统一模板 + PC 头部 logo/菜单同行
   ============================================================ */

/* ---------- PC：logo + 主菜单 同一行 ---------- */
@media (min-width: 769px) {
  .head {
    height: auto !important;
    margin-top: 0 !important;
    background: #fff;
    border-bottom: 1px solid #e8eaed;
  }
  .head .jz {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1200px;
    height: 88px;
    padding: 0;
  }
  .head .jz .p_sj {
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
  }
  .head .jz .l img { max-height: 48px; width: auto; display: block; }

  /* 主菜单：从原蓝色条改为白底右侧内联，深灰文字 */
  .top-main {
    position: static !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: auto !important;
    padding: 0 !important;
    flex: 0 0 auto;
  }
  .top-main .page-width { width: auto !important; max-width: none !important; padding: 0; }
  .top-main .top-main-content { display: flex !important; align-items: center; justify-content: flex-end; }

  .header-v1 .main-nav .sf-menu > li {
    background: transparent !important;
    border: none !important;
  }
  .header-v1 .main-nav .sf-menu > li > a.first-level,
  .header-v1 .main-nav .sf-menu > li > a.first-level strong {
    color: #1f2937 !important;
    font-size: 16px;
    line-height: 88px !important;
    padding: 0 16px !important;
  }
  .header-v1 .main-nav .sf-menu > li:hover,
  .header-v1 .main-nav .sf-menu > li.sfHover {
    background: transparent !important;
  }
  .header-v1 .main-nav .sf-menu > li:hover > a.first-level,
  .header-v1 .main-nav .sf-menu > li.sfHover > a.first-level,
  .header-v1 .main-nav .sf-menu > li.current > a.first-level {
    color: #1a73e8 !important;
    background: transparent !important;
  }
  .header-v1 .main-nav .sf-menu > li.current {
    background: transparent !important;
  }
  .header-v1 .main-nav .sf-menu > li.current > a.first-level {
    font-weight: 600;
  }
  /* 语言切换：地球图标 + 简/繁 一键切换按钮 */
  .header-v1 .language { float: none; margin-left: 14px; height: auto; }
  .header-v1 .language .sf-menu,
  .header-v1 .language .sf-menu ul { display: none !important; }
  .lang-toggle,
  .mobile-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
  }
  .lang-toggle:hover,
  .mobile-lang-toggle:hover {
    border-color: #1a73e8;
    color: #1a73e8;
    box-shadow: 0 2px 8px rgba(26,115,232,.10);
  }
  .lang-toggle .lang-icon,
  .mobile-lang-toggle .lang-icon { display: block; }
  .lang-toggle .lang-label,
  .mobile-lang-toggle .lang-label { font-weight: 500; min-width: 14px; text-align: center; }
}

/* ---------- 专题扁横条 banner（PC 显示，移动端隐藏） ---------- */
.topic-banner {
  position: relative;
  height: 150px;
  background-color: #1a73e8;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.topic-banner-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.15));
}
.topic-banner-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}
.topic-banner-title {
  margin: 0;
  color: #fff;
  font-size: 28px;
  letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
  font-weight: 600;
}
.topic-banner-sub { margin: 8px 0 0; color: rgba(255,255,255,.85); font-size: 14px; letter-spacing: 1px; }

/* ---------- 二级页面布局：左菜单 + 右内容 ---------- */
.topic-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
}
.topic-sidebar {
  flex: 0 0 220px;
  position: sticky;
  top: 88px;
}
.topic-content { flex: 1 1 auto; min-width: 0; }

.topic-sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  padding: 12px 16px;
  background: #f8fafc;
  border-left: 3px solid #1a73e8;
  border-radius: 6px 0 0 6px;
  margin-bottom: 10px;
}
.topic-subnav {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 10px;
  overflow: hidden;
}
.topic-subnav li a {
  display: block;
  padding: 13px 16px;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  font-size: 15px;
  transition: background .2s ease, color .2s ease;
}
.topic-subnav li:last-child a { border-bottom: none; }
.topic-subnav li a:hover { background: #f3f4f6; color: #1a73e8; }
.topic-subnav li.active a { background: #1a73e8; color: #fff; font-weight: 500; }

/* 封面页（独立图文） */
.topic-cover-title {
  display: inline-block;
  font-size: 24px;
  color: #1f2937;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1a73e8;
}
.topic-cover-body { font-size: 15px; line-height: 1.8; color: #4b5563; margin-bottom: 24px; max-width: 760px; text-align: justify; text-justify: inter-ideograph; }
/* 关于页面（封面页）+ 文章详情页 正文段落两端对齐（CJK 中文按字间距调整） */
.topic-cover-body p,
.article-content p { text-align: justify; text-justify: inter-ideograph; }
/* 文章正文默认字号 16px（覆盖正文内联 18px，统一全站）；段首缩进两汉字 + 行高舒适 */
.article-content p { font-size: 16px; line-height: 1.8; text-indent: 2em; color: #374151; }
/* 图片居中段落：不缩进 */
.article-content p[style*="text-align:center"] { text-indent: 0; }


/* 金牌专家介绍：照片 / 姓名 / 职务 居中堆叠（其余正文不变） */
.article-content .jpzj-hero { text-align: center; text-indent: 0; margin: 8px 0 20px; }
.article-content .jpzj-hero p { text-align: center !important; text-indent: 0 !important; }
.article-content .jpzj-hero img { display: inline-block; max-width: 200px; height: auto; border-radius: 8px; margin: 0 auto; }
.article-content .jpzj-name { font-weight: 700 !important; font-size: 18px !important; color: #1a73e8 !important; margin: 12px 0 6px !important; line-height: 1.5 !important; text-align: center !important; }
.article-content .jpzj-title { font-size: 16px !important; color: #374151 !important; margin: 3px 0 !important; line-height: 1.5 !important; text-align: center !important; }
.topic-subcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.topic-subcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  text-decoration: none;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.topic-subcard:hover { box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-3px); border-color: #c7e0ff; }
.topic-subcard-title { font-size: 16px; color: #1f2937; font-weight: 600; }
.topic-subcard-count { font-size: 13px; color: #9ca3af; }

/* 空态 */
.topic-empty-tip { color: #9ca3af; font-size: 15px; padding: 24px 0; }

/* 列表页“浮层标题卡”：让 banner 与标题列表之间不再硬接，形成层级过渡 */
.topic-list-header {
  margin: -24px 0 20px;
  padding: 22px 26px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 22px rgba(0,0,0,.08);
  position: relative;
  z-index: 2;
}
.topic-list-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
}
.topic-list-sub {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* 文章列表：纯标题列表（仿医美视界，无缩略图）
   border-top 故意不设：.about-page-header 自身已带 border-bottom，
   两者相邻会形成两条横线叠在一起（颜色相近，视觉上"重复一根"）。 */
.topic-content .article-title-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic-content .article-title-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 8px;
  border-bottom: 1px solid #eef0f2;
  transition: background .2s ease;
}
.topic-content .article-title-item:hover { background: #f8fafc; }
.topic-content .article-title-link {
  flex: 1 1 auto;
  min-width: 0;
  color: #374151;
  font-size: 16px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topic-content .article-title-link:hover { color: #1a73e8; }
.topic-content .article-title-date {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 移动端：隐藏 banner 与左菜单，直接内容 ---------- */
@media (max-width: 768px) {
  .topic-banner { display: none !important; }
  .topic-layout { display: block !important; padding: 16px 0 !important; }
  .topic-sidebar { display: none !important; }
  .topic-subcards { grid-template-columns: 1fr 1fr; }
  .topic-list-header { margin-top: 0; padding: 18px 16px; border-radius: 10px; }
  .topic-list-title { font-size: 20px; }
}

/* ---------- PC 主菜单白色下拉（彻底覆盖 superfish 默认蓝色 .sf-menu li li #AABDE6） ---------- */
@media (min-width: 769px) {
  .header-v1 .main-nav .sf-menu li:hover ul,
  .header-v1 .main-nav .sf-menu li.sfHover ul {
    top: 100% !important;
    left: 0 !important;
    margin-top: 0;
  }
  .header-v1 .main-nav .sf-menu ul {
    width: auto !important;
    min-width: 190px;
    background: #fff !important;
    border: 1px solid #e8eaed !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
    padding: 6px 0;
    overflow: hidden;
  }
  .header-v1 .main-nav .sf-menu li li,
  .header-v1 .main-nav .sf-menu li li li {
    background: #fff !important;
    border: none !important;
  }
  .header-v1 .main-nav .sf-menu li li > a {
    color: #374151 !important;
    font-size: 15px;
    padding: 11px 20px !important;
    border: none !important;
    border-top: none !important;
    border-left: none !important;
    white-space: nowrap;
    background: transparent !important;
  }
  .header-v1 .main-nav .sf-menu li li + li > a {
    border-top: 1px solid #f3f4f6 !important;
  }
  .header-v1 .main-nav .sf-menu li li:hover > a,
  .header-v1 .main-nav .sf-menu li li.sfHover > a,
  .header-v1 .main-nav .sf-menu li li > a:hover {
    background: #f3f6fb !important;
    color: #1a73e8 !important;
  }
  /* 隐藏 superfish 默认蓝色箭头 gif，保持干净 */
  .header-v1 .main-nav .sf-menu .sf-sub-indicator { display: none !important; }
}

/* ---------- 文章页通用样式（仿医美视界：路径条→标题→信息行→正文→上下篇） ---------- */
.topic-content .article-detail {
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  padding: 30px 34px;
}
.topic-content .article-breadcrumbs {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 16px;
}
.topic-content .article-breadcrumbs a { color: #6b7280; text-decoration: none; }
.topic-content .article-breadcrumbs a:hover { color: #1a73e8; }
.topic-content .article-breadcrumbs .text-muted { color: #9ca3af; }
.topic-content .article-title-single {
  font-size: 26px;
  line-height: 1.4;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 14px;
}
.topic-content .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #9ca3af;
  padding: 12px 0;
  border-top: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  margin-bottom: 22px;
}
.topic-content .article-meta a { color: #6b7280; text-decoration: none; }
.topic-content .article-meta a:hover { color: #1a73e8; }
.topic-content .article-content {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #374151;
}
/* 文章正文图片：版心内左右居中；小图保持原尺寸，大图只撑满不撑爆。
   原站正文 img 多带内联 width/height（如 style="width:800px; height:432px"），
   内联优先级高于样式表，必须用 !important 才能覆盖，否则高度固定、宽度被
   max-width 限制后比例失调（看起来"歪"），且居中不生效。 */
.article-content img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 8px !important;
}
/* 双保险：老主题 .qhd-content img 万一有干扰，统一圆角 */
.qhd-content img { border-radius: 8px !important; }

/* 含图片的段落：图片不是文字，不缩进两格；
   默认保留正常下边距，使「图片后紧跟正文」时有正常间距（不再贴图） */
.article-content p:has(img) {
  text-indent: 0 !important;
  margin-bottom: 1.2em !important;
}
/* 仅当图片段后【紧跟图说】时，才归零图片下边距，让图说紧贴图片（图片下无空行） */
.article-content p:has(img):has(+ p.caption) {
  margin-bottom: 6px !important;
}
/* 插图图说：图片下方紧贴、居中、14px、灰色
   写作约定：图片段落后紧跟 <p class="caption">图说文字</p> */
.article-content .caption {
  text-align: center !important;
  text-indent: 0 !important;
  font-size: 14px !important;
  color: #9ca3af !important;
  line-height: 1.6;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

/* 小标题（手写 <p class="article-subhead">）：加粗、18px、全站高亮蓝、与上下段落留间距 */
.article-content .article-subhead {
  font-size: 18px;
  font-weight: 700;
  color: #1a73e8;
  margin: 1.6em 0 0.8em;
  text-indent: 0 !important;
  line-height: 1.6;
}

/* 大节标题 ①（手写 <p class="article-section">）：比小标题 article-subhead 大一档，
   左对齐/两端对齐（中文短标题两端对齐视觉等同左对齐），蓝色加粗 */
.article-content .article-section {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a73e8 !important;
  text-align: justify !important;
  margin: 1.8em 0 1em !important;
  text-indent: 0 !important;
  line-height: 1.6;
}
/* 大节标题 ②（手写 <p class="article-section-center">）：同上，仅文字居中 */
.article-content .article-section-center {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a73e8 !important;
  text-align: center !important;
  margin: 1.8em 0 1em !important;
  text-indent: 0 !important;
  line-height: 1.6;
}


/* Markdown ## 当大节小标题用：比 ### 略大一号的蓝色加粗，与 h3 形成两级 */
/* Markdown ## 大节：与手写 article-section 同款 22px 蓝加粗（原 20px 太空已调） */
.article-content h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a73e8 !important;
  margin: 1.8em 0 1em !important;
  text-indent: 0 !important;
  line-height: 1.6;
}

/* Markdown ### 当小节小标题用：与 article-subhead 同款（蓝/加粗/18px） */
.article-content h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1a73e8 !important;
  margin: 1.6em 0 0.8em !important;
  text-indent: 0 !important;
  line-height: 1.6;
}

/* 居中小标题 ①（手写 <p class="article-subhead-center">）：与 article-subhead 同款蓝/加粗/18px，仅文字水平居中 */
.article-content .article-subhead-center {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1a73e8 !important;
  text-align: center !important;
  margin: 1.6em 0 0.8em !important;
  text-indent: 0 !important;
  line-height: 1.6;
}
/* 居中小标题 ②（Markdown ##/### 加 .center：如 `## 标题 {.center}`）：保持各自蓝/加粗字号，仅文字居中
   前提：需先在 config.toml 开启 Goldmark attributes 扩展（见下方），否则 {.center} 不生效 */
.article-content h2.center,
.article-content h3.center {
  text-align: center !important;
}

/* 公告注释（文末说明性小字，如"如需更新本机构展示信息…"）：14px 灰蓝、两端对齐、段前空两行、不缩进 */
.article-content .article-note {
  font-size: 14px !important;
  color: #64748b !important;
  text-align: justify !important;
  text-indent: 0 !important;
  margin-top: 4em !important;
  margin-bottom: 1em !important;
  line-height: 1.6;
}


.topic-content .article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #f0f2f5;
  font-size: 14px;
  color: #6b7280;
}
.topic-content .article-nav a { color: #374151; text-decoration: none; }
.topic-content .article-nav a:hover { color: #1a73e8; }

/* 移动端：文章页与标题列表微调 */
@media (max-width: 768px) {
  .topic-content .article-detail { padding: 20px 16px; border-radius: 10px; }
  .topic-content .article-title-single { font-size: 21px; }
  .topic-content .article-title-link { font-size: 15px; }
  .topic-content .article-title-item { padding: 13px 4px; }
  .topic-content .article-meta { gap: 12px; }

  /* 移动端语言按钮：更紧凑 */
  .mobile-lang-toggle { height: 32px; padding: 0 10px; }
  .mobile-header-actions { gap: 6px; }

  /* 首页轮播移动端高度（#heroCarousel 专属，不污染其他页面 .slideshow.carousel） */
  #heroCarousel { height: 240px !important; }
  #carousel-216545 .carousel-img img { height: 100% !important; }
}

/* ---------- 首页轮播：整图向左滑动，停顿后继续，首尾相接无限循环 ---------- */
#heroCarousel {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
  background: #1f2937;
}
#heroCarousel .carousel-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#carousel-216545 {
  display: flex;
  width: 500%;   /* 4 张 + 1 张克隆 = 5 屏 */
  height: 100%;
  transform: translateX(0);
  transition: transform 0.6s ease;
}
#carousel-216545.no-transition {
  transition: none !important;
}
#carousel-216545 .carousel-item {
  flex: 0 0 20% !important;   /* 每屏占 track 的 1/5 = 容器宽度的 100% */
  width: 20% !important;
  height: 100%;
  position: relative;
  overflow: hidden;
}
#carousel-216545 .carousel-img,
#carousel-216545 .carousel-img a,
#carousel-216545 .carousel-img img {
  display: block;
  width: 100%;
  height: 100%;
}
#carousel-216545 .carousel-img img {
  object-fit: cover;
  background: #1f2937;
}
/* 分页点 */
#carousel-page-216545 {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}
#carousel-page-216545 a {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  text-indent: -9999px;
  overflow: hidden;
}
#carousel-page-216545 a.selected {
  background: rgba(255,255,255,0.95);
}
@media (max-width: 768px) {
  #heroCarousel { height: 240px !important; }
}

/* ========================================
   2026-08-30 顶部全站搜索（简繁按钮右侧）
   ======================================== */
.header-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin-left: 14px;
  padding: 0 10px 0 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header-search:focus-within {
  border-color: #1a73e8;
  box-shadow: 0 2px 8px rgba(26,115,232,.10);
}
.header-search-icon { color: #9ca3af; flex: 0 0 auto; }
.header-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #1f2937;
  width: 160px;
  padding: 0;
}
.header-search-input::placeholder { color: #9ca3af; }
.header-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
  z-index: 99999;
  padding: 6px 0;
}
@media (max-width: 768px) {
  .header-search-results {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    margin-top: 8px;
    border-radius: 12px;
  }
}
.header-search-result {
  display: block;
  padding: 10px 16px;
  color: #374151;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-search-result:last-child { border-bottom: none; }
.header-search-result:hover { background: #f3f6fb; color: #1a73e8; }

@media (min-width: 769px) {
  .head .jz .top-main { margin-left: auto; }
}
@media (max-width: 768px) {
  .head .jz { flex-wrap: wrap; height: auto !important; min-height: 60px; }
  .head .jz .p_sj { order: 1; }
  /* 简繁切换 + 汉堡菜单 与 LOGO 同处第一行（右对齐），不挤在一起 */
  .mobile-header-actions { order: 2; }
  /* 全站搜索独占第二行，满宽，避免与 LOGO/汉堡挤在一行导致汉堡无法点击 */
  .header-search { order: 3; flex-basis: 100%; width: 100%; margin: 18px 0 22px; }
  .header-search-input { width: 100%; }
}

/* 超窄屏（≤360px，如 iPhone SE / 老安卓）：LOGO + 简繁 + 汉堡 仍须同行，
   否则 LOGO 太宽会挤掉汉堡导致其换行错位。限制 LOGO 最大宽 + 收紧汉堡组间距。 */
@media (max-width: 360px) {
  .head .jz .l img { max-width: 150px; }
  .mobile-header-actions { gap: 2px; }
  .mobile-lang-toggle { padding: 6px; }
  .hamburger.mobile-menu-toggle { padding: 6px; }
}

/* ============================================================
   全站文章列表分页样式（asmedc-pagination）
   上一页 / 页码 / 下一页 / 末页 + 输入页码跳转
   ============================================================ */
.asmedc-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  margin: 30px 0 10px;
  font-size: 14px;
  color: #333;
}
.asmedc-pagination .pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.asmedc-pagination a,
.asmedc-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  background: transparent;
  transition: all .2s ease;
}
.asmedc-pagination a:hover {
  color: #1a73e8;
  background: #f0f4f8;
}
.asmedc-pagination .current {
  color: #1a73e8;
  font-weight: 600;
  background: #e8f0fe;
}
.asmedc-pagination .disabled {
  color: #999;
  cursor: not-allowed;
}
.asmedc-pagination .page-prev,
.asmedc-pagination .page-next,
.asmedc-pagination .page-last {
  min-width: auto;
  padding: 0 12px;
}
.asmedc-pagination .page-ellipsis {
  color: #999;
  min-width: auto;
  padding: 0 4px;
}
.asmedc-pagination .pagination-jump {
  display: flex;
  align-items: center;
  gap: 6px;
}
.asmedc-pagination .page-input {
  width: 60px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  color: #333;
}
.asmedc-pagination .page-input:focus {
  outline: none;
  border-color: #1a73e8;
}
.asmedc-pagination .page-jump-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #1a73e8;
  background: #1a73e8;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s ease;
}
.asmedc-pagination .page-jump-btn:hover {
  background: #1557b0;
}
@media screen and (max-width: 640px) {
  .asmedc-pagination {
    gap: 6px 8px;
  }
  .asmedc-pagination a,
  .asmedc-pagination span {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 13px;
  }
  .asmedc-pagination .page-prev,
  .asmedc-pagination .page-next,
  .asmedc-pagination .page-last {
    padding: 0 8px;
  }
  .asmedc-pagination .pagination-jump {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
}

/* ============================================================
   2026-09-10 首页「科研动态」热文区：左 400px 大图 + 右 800px 2列3行
   总高 270px，布局固定，视觉均衡，文字超长截断。
   ============================================================ */
.kydt-hot {
  display: flex;
  width: 1200px;
  height: 270px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 10px;
  overflow: hidden;
}

/* 左侧 480px 大图卡片（16:9 画幅，标题覆盖在底部色块上） */
.kydt-featured {
  flex: 0 0 480px;
  width: 480px;
  height: 270px;
  position: relative;
  overflow: hidden;
}
.kydt-featured-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}
.kydt-featured-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.kydt-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kydt-featured-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  pointer-events: none;
}
.kydt-featured-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kydt-featured-link:hover .kydt-featured-img img { transform: scale(1.04); }
.kydt-featured-link:hover .kydt-featured-title { color: #1a73e8; }
.kydt-featured-img img { transition: transform .35s ease; }

/* 右侧 720px 热点文章网格：2列 × 3行 = 6篇 */
.kydt-grid {
  flex: 0 0 720px;
  width: 720px;
  height: 270px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
}
.kydt-grid-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 18px;
  border-left: 1px solid #eef0f2;
  border-bottom: 1px solid #eef0f2;
  text-decoration: none;
  box-sizing: border-box;
  transition: background .2s ease;
}
.kydt-grid-item:nth-child(5),
.kydt-grid-item:nth-child(6) { border-bottom: none; }
.kydt-grid-item:hover { background: #f8fafc; }
.kydt-grid-title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.kydt-grid-summary {
  font-size: 14px;
  line-height: 1.4;
  color: #6b7280;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.kydt-grid-date {
  display: none;
}
.kydt-grid-item:hover .kydt-grid-title { color: #1a73e8; }

/* 科研动态区：加载入场动画（大图淡入 + 卡片依次上浮出现） */
/* 科研动态卡片：跟随 .home-reveal-in 触发，与专家团/技术服务统一用 staggerIn 1.2s 上浮淡入
   staggerIn keyframes 定义在 baseof.html 内 <style>，全局可用，此处直接引用，不再自创 keyframes */
.home-reveal .kydt-featured,
.home-reveal .kydt-grid-item {
  opacity: 0;
  transform: translateY(32px);
}
.home-reveal-in .kydt-featured {
  animation: staggerIn 1.2s cubic-bezier(.23, 1, .32, 1)   0ms both;
}
.home-reveal-in .kydt-grid-item:nth-child(1) { animation: staggerIn 1.2s cubic-bezier(.23, 1, .32, 1)  60ms both; }
.home-reveal-in .kydt-grid-item:nth-child(2) { animation: staggerIn 1.2s cubic-bezier(.23, 1, .32, 1) 120ms both; }
.home-reveal-in .kydt-grid-item:nth-child(3) { animation: staggerIn 1.2s cubic-bezier(.23, 1, .32, 1) 180ms both; }
.home-reveal-in .kydt-grid-item:nth-child(4) { animation: staggerIn 1.2s cubic-bezier(.23, 1, .32, 1) 240ms both; }
.home-reveal-in .kydt-grid-item:nth-child(5) { animation: staggerIn 1.2s cubic-bezier(.23, 1, .32, 1) 300ms both; }
.home-reveal-in .kydt-grid-item:nth-child(6) { animation: staggerIn 1.2s cubic-bezier(.23, 1, .32, 1) 360ms both; }
/* 开启"减少动效"偏好时直接显示，避免卡片卡在 opacity:0（跟 baseof 其他模块一致） */
@media (prefers-reduced-motion: reduce) {
  .home-reveal .kydt-featured,
  .home-reveal .kydt-grid-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* 移动端：上下堆叠 */
@media (max-width: 768px) {
  .kydt-hot {
    width: 100%;
    height: auto;
    flex-direction: column;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .kydt-featured {
    width: 100%;
    height: 200px;
    flex: 0 0 auto;
  }
  .kydt-featured-mask { height: 80px; }
  .kydt-featured-title { font-size: 15px; padding: 14px 16px; }
  .kydt-grid {
    width: 100%;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .kydt-grid-item {
    border-left: none;
    border-bottom: 1px solid #eef0f2;
    padding: 14px 16px;
  }
  .kydt-grid-item:nth-child(5),
  .kydt-grid-item:nth-child(6) { border-bottom: 1px solid #eef0f2; }
  .kydt-grid-item:last-child { border-bottom: none; }
}

/* 页脚：恢复原主题深色底色与原始高度（不抄原 theme 的 ftbg.jpg 背景图与嵌套 module 垃圾） */
.footer {
  display: block;
  background-color: #2e323c;
  color: #a4a4a4;
}
.footer-main .page-width {
  padding-top: 50px;
  padding-bottom: 45px;
}

/* 页脚链接矩阵：5 列等宽 */
.footer-links {
  display: flex;
  gap: 0;
  padding: 0;
}
.footer-links .col-5-1 {
  flex: 0 0 17.6%;
  width: 17.6%;
  margin-right: 3%;
  box-sizing: border-box;
}
.footer-links .col-5-1.last { margin-right: 0; }
.footer-links h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px 0;
}
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 14px;
  color: #a4a4a4;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-links p {
  font-size: 14px;
  color: #a4a4a4;
  line-height: 1.6;
  margin: 0;
}

/* 底部版权条：原 #444 深色 + 原始高度 */
.bottom {
  background: #444;
  color: #a4a4a4;
  padding: 10px 0;
}
.copyright-text {
  margin: 0;
  font-size: 13px;
  color: #a4a4a4;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-main .page-width {
    padding-top: 32px;
    padding-bottom: 28px;
  }
  /* 版权：中英文各一行 */
  .copyright-text .copyright-zh { display: block; margin-bottom: 4px; }
  .copyright-text .copyright-en { display: block; font-size: 12px; opacity: 0.8; }
  .footer-links {
    flex-wrap: wrap;
    padding: 0;
  }
  .footer-links .col-5-1 {
    flex: 0 0 48%;
    width: 48%;
    margin-right: 4%;
    margin-bottom: 20px;
  }
  .footer-links .col-5-1:nth-child(2n) { margin-right: 0; }
  .footer-links .col-5-1.last { margin-right: 0; }
}

@media (max-width: 480px) {
  .footer-links .col-5-1 {
    flex: 0 0 100%;
    width: 100%;
    margin-right: 0;
  }
}

/* ============================================================
   2026-09-10 页头：首页大气高度 + 滚动后紧凑固定 + 电青色菜单随动指示线
   ============================================================ */
@media (min-width: 769px) {
  /* 固定页头，body 预留下方内容起始位置 */
  body { padding-top: 120px; }
  #mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
  }

  /* 初始大气高度，滚动后切回原来的 88px */
  .head {
    height: 120px !important;
    transition: height .25s ease;
    background: #fff;
  }
  .head.compact { height: 88px !important; }
  .head .jz {
    height: 100% !important;
    transition: height .25s ease;
  }
  .head .jz .l img {
    max-height: 56px;
    transition: max-height .25s ease;
  }
  .head.compact .jz .l img { max-height: 48px; }

  /* 主菜单文字垂直居中随高度变化 */
  .header-v1 .main-nav .sf-menu > li > a.first-level,
  .header-v1 .main-nav .sf-menu > li > a.first-level strong {
    line-height: 120px !important;
    transition: line-height .25s ease;
  }
  .head.compact .header-v1 .main-nav .sf-menu > li > a.first-level,
  .head.compact .header-v1 .main-nav .sf-menu > li > a.first-level strong {
    line-height: 88px !important;
  }

  /* 下拉子菜单始终紧贴主菜单底部 */
  .header-v1 .main-nav .sf-menu li:hover ul,
  .header-v1 .main-nav .sf-menu li.sfHover ul {
    top: 100% !important;
    margin-top: 0;
  }

  /* 腾讯网风格：主菜单项文字正下方电青色短横线 */
  .header-v1 .main-nav .sf-menu > li > a.first-level {
    position: relative;
  }
  .header-v1 .main-nav .sf-menu > li > a.first-level::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) scaleX(0);
    width: 28px;
    height: 3px;
    background: #1a73e8;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(26, 115, 232, .35);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
  }
  /* 当前栏目：始终显示 */
  .header-v1 .main-nav .sf-menu > li.current > a.first-level::after {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
  /* 鼠标进入菜单区时，隐藏 current 的线 */
  .header-v1 .main-nav .sf-menu:hover > li.current > a.first-level::after {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
  }
  /* hover 的项：显示线 */
  .header-v1 .main-nav .sf-menu > li:hover > a.first-level::after {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

/* 合作单位：整屏 Logo 墙切换（5×2 双排） */
.partner-wall {
  position: relative;
  width: 100%;
}
.partner-wall__viewport {
  width: 100%;
  overflow: hidden;
}
.partner-wall__track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  transition: transform 0.5s ease;
  transform: translateX(0);
}
.partner-wall__screen {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 14px 18px;
  padding: 14px 0;
  box-sizing: border-box;
}
.partner-wall__screen > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  background: #fff;
  border: 0.5px solid #f1f1f1;
  padding: 4px;
  box-sizing: border-box;
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
}
.partner-wall--revealed .partner-wall__screen > a {
  opacity: 1;
  transform: translateY(0);
}
/* 从上到下、从左到右逐步加载：5×2 网格 */
.partner-wall--revealed .partner-wall__screen > a:nth-child(1)  { transition-delay: 0.00s; }
.partner-wall--revealed .partner-wall__screen > a:nth-child(2)  { transition-delay: 0.08s; }
.partner-wall--revealed .partner-wall__screen > a:nth-child(3)  { transition-delay: 0.16s; }
.partner-wall--revealed .partner-wall__screen > a:nth-child(4)  { transition-delay: 0.24s; }
.partner-wall--revealed .partner-wall__screen > a:nth-child(5)  { transition-delay: 0.32s; }
.partner-wall--revealed .partner-wall__screen > a:nth-child(6)  { transition-delay: 0.40s; }
.partner-wall--revealed .partner-wall__screen > a:nth-child(7)  { transition-delay: 0.48s; }
.partner-wall--revealed .partner-wall__screen > a:nth-child(8)  { transition-delay: 0.56s; }
.partner-wall--revealed .partner-wall__screen > a:nth-child(9)  { transition-delay: 0.64s; }
.partner-wall--revealed .partner-wall__screen > a:nth-child(10) { transition-delay: 0.72s; }
.partner-wall--revealed .partner-wall__screen > a:nth-child(11) { transition-delay: 0.80s; }
.partner-wall--revealed .partner-wall__screen > a:nth-child(12) { transition-delay: 0.88s; }
.partner-wall__screen > a:hover {
  transform: scale(1.05);
  border-color: #d1d5db;
}
/* 注意：hover 时会覆盖 translateY(0)，但 revealed 状态下 translateY 已是 0，scale 叠加无影响 */
.partner-wall--revealed .partner-wall__screen > a:hover {
  transform: scale(1.05);
}
.partner-wall__screen > a img {
  max-width: 90%;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.partner-wall__prev,
.partner-wall__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 20px;
  font-family: Arial, sans-serif;
  text-decoration: none;
  z-index: 10;
  border-radius: 3px;
  opacity: 1;
  transition: background 0.2s ease;
}
.partner-wall__prev:hover,
.partner-wall__next:hover {
  background: rgba(0, 0, 0, 0.55);
}
.partner-wall__prev { left: 8px; }
.partner-wall__next { right: 8px; }

/* 移动端 */
@media (max-width: 768px) {
  .partner-wall__screen {
    gap: 8px 10px;
    padding: 10px 0;
  }
  .partner-wall__screen > a { height: 100px; }
  .partner-wall__screen > a img { max-height: 90px; }
  .partner-wall__prev,
  .partner-wall__next {
    width: 28px;
    height: 44px;
    line-height: 44px;
    font-size: 16px;
    opacity: 1;
  }
  .partner-wall__screen > a:hover { transform: none; }
}
@media (max-width: 480px) {
  .partner-wall__screen {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}

