/* ============================================================
   靖江儿康网站 · 内页美化叠加样式  beautify.css
   加载顺序：ycnhz/base.css → ycnhz/m.css → ycnhz/beautify.css
   原则：不修改 base.css，所有改版集中在此文件，可一键回退
         （删除各模板对 beautify.css 的 <link> 引用即可）。
   首页(index.htm)不引入本文件（首页将单独优化，导航/广告/页脚暂不动）；
   本文件只作用于其余内页（列表/详情/单页/留言等）。
   ============================================================ */

:root{
  --c-blue:#1487f4;
  --c-blue-d:#0976dc;
  --c-blue-grad:linear-gradient(90deg,#0062ff 0%,#00a0ec 100%);
  --c-ink:#333;
  --c-ink-2:#666;
  --c-ink-3:#999;
  --c-line:#eee;
  --c-line-2:#e4e3e3;
  --c-bg:#f4f6f9;
  --c-white:#fff;
  --radius:10px;
  --radius-sm:6px;
  --shadow-sm:0 2px 10px rgba(20,40,80,.06);
  --shadow-md:0 8px 24px rgba(20,40,80,.10);
  --shadow-lg:0 14px 38px rgba(20,40,80,.14);
  --gap:18px;
  --gold:#e3a93c;
  --gold-pale:#fff8ec;
  --maxw:1200px;
}

/* ---------- 全局：导航防溢出（仅桌面；手机端保持 m.css 汉堡菜单） ---------- */
@media (min-width:840px){
  #starlist{
    display:flex;
    flex-wrap:nowrap;
    justify-content:center;
    align-items:center;
    max-width:var(--maxw);
    margin:0 auto;
  }
  #starlist>li{ margin-right:0; flex:0 0 auto; }
  #starlist>li>a{ padding:0 16px; font-size:14px; white-space:nowrap; }
}

/* ---------- 白卡统一（圆角+轻阴影；不影响栅格宽度/浮动） ---------- */
.whitebg{
  border:1px solid var(--c-line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  background:var(--c-white);
}
/* 主内容盒透明底，避免白卡套白卡 */
.blogs.left-box,
.left-box{ background:transparent; }
/* 修复原模板遗留问题：base.css 的 .box{width:1200px} 在 920px 左栏内溢出 261px 被裁切
   （相册/视频/产品列表第 5/4 列被切掉；实测改版前后行为一致，为原站固有缺陷）。
   仅限定 .left-box 内的 .box，首页（.box 不在 .left-box 内）不受影响。 */
.left-box .box{ width:auto; max-width:100%; }

/* ---------- 栏目标题装饰线（沿用 base 渐变，加圆角更精致） ---------- */
.news-title{ margin:22px 22px 8px; }
.news-title h2{ font-size:18px; font-weight:600; }
.news-title h2:after{ height:3px; border-radius:2px; }

/* ============================================================
   Step 2 · 文章/下载/标签/搜索 列表卡片化
   （覆盖 lists_article / lists_article_list / lists_download /
     lists_tags / lists_search / lists_single）
   ============================================================ */

/* --- 文章列表：行卡 + 悬停着色 --- */
.blogs-list ul li{
  border-bottom:1px solid #f1f3f7;
  border-radius:var(--radius-sm);
  padding:18px 12px;
  transition:background .3s ease;
}
.blogs-list ul li:hover{ background:#f6faff; }
.blogs-list li i{ border-radius:var(--radius-sm); }
.blogs-list li h2 a{ transition:color .2s; }
.blogs-list li h2 a:hover{ color:var(--c-blue); }
/* 标签胶囊化（首个沿用主蓝渐变） */
.blogs-list li span a{
  display:inline-block;
  padding:2px 10px;
  border-radius:20px;
  background:#eef6ff;
  color:var(--c-blue-d);
  font-size:12px;
  margin-right:6px;
  transition:all .2s;
}
.blogs-list li span a:hover{ background:var(--c-blue); color:#fff; }
.blogs-list li span a:nth-child(1){ background:var(--c-blue-grad); color:#fff; }

/* --- 下载列表：行卡 + 下载按钮胶囊化 --- */
.download-list li{
  border-bottom:1px solid #f1f3f7;
  border-radius:var(--radius-sm);
  padding:18px 12px;
  margin-bottom:6px;
  transition:background .3s ease;
}
.download-list li:hover{ background:#f6faff; }
.download-list h3{ font-weight:600; }
.download-list h3 a{ transition:color .2s; }
.download-list span.down-bth{
  width:auto;
  padding:0 18px;
  height:32px;
  line-height:32px;
  background:var(--c-blue-grad);
  border-radius:20px;
  font-size:13px;
  box-shadow:0 3px 8px rgba(20,135,244,.30);
}
.download-list span.down-bth:hover{ background:var(--c-blue-d); }

/* --- 分页统一（圆角 + 当前页蓝渐变） --- */
.pagelist a{
  border-radius:var(--radius-sm);
  border:1px solid var(--c-line);
  background:#fff;
  transition:all .25s;
}
.pagelist a:hover{ background:var(--c-blue); border-color:var(--c-blue); color:#fff; }
.pagelist>b{
  background:var(--c-blue-grad);
  border-radius:var(--radius-sm);
}

/* ============================================================
   Step 3 · 图集/视频/产品 网格卡片化
   ============================================================ */

/* --- 相册网格（原 5 列浮动 → grid 自适应卡片） --- */
.pic-list-img ul{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
  padding:4px 0 18px;
}
.pic-list-img li{ width:auto !important; float:none !important; }
.pic-list-img li a{
  display:block;
  margin:0;
  border:1px solid var(--c-line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  transition:transform .3s, box-shadow .3s;
}
.pic-list-img li a:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.pic-list-img li i{
  height:auto;
  line-height:0;
  min-height:120px;
  aspect-ratio:4/3;
}
.pic-list-img li i img{ width:100%; height:100%; object-fit:cover; display:block; }
.pic-list-img li span{
  height:auto;
  line-height:20px;
  padding:8px 10px 10px;
  text-align:center;
}

/* --- 视频网格（原 4 列浮动定高 → grid 卡片） --- */
.videos-list ul{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  padding:4px 0 18px;
}
.videos-list li{ width:auto !important; float:none !important; height:auto !important; margin-bottom:0; }
.videos-list li a{
  margin:0;
  border:1px solid var(--c-line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  transition:transform .3s, box-shadow .3s;
}
.videos-list li a:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.videos-list li i{
  display:block;
  width:100%;
  height:auto;
  min-height:110px;
  aspect-ratio:16/9;
  overflow:hidden;
}
.videos-list li i img{ width:100%; height:100%; object-fit:cover; display:block; }
.videos-list li h2{ padding:8px 10px 8px 30px; }

/* --- 产品网格（原 4 列浮动 → grid 卡片） --- */
.pics-list-price ul{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  padding:4px 0 18px;
}
.pics-list-price li{ width:auto !important; float:none !important; }
.pics-list-price li a{
  margin:0;
  border:1px solid var(--c-line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  transition:transform .3s, box-shadow .3s;
}
.pics-list-price li a:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.pics-list-price li i{
  height:auto;
  line-height:0;
  min-height:150px;
  aspect-ratio:1/1;
  background:#fafbfd;
}
.pics-list-price li i img{ width:100%; height:100%; object-fit:cover; display:block; }
.pics-list-price span.pics-btn{
  background:var(--c-blue-grad);
  border-radius:16px;
  transition:background .25s;
}
.pics-list-price li a:hover span.pics-btn{ background:var(--c-blue-d); }

/* --- 网格响应式（与 m.css 839px 断点对齐） --- */
@media (max-width:1024px){
  .pic-list-img ul{ grid-template-columns:repeat(4,1fr); }
}
@media (max-width:839px){
  .pic-list-img ul{ grid-template-columns:repeat(3,1fr); }
  .videos-list ul{ grid-template-columns:repeat(2,1fr); }
  .pics-list-price ul{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  .pic-list-img ul{ grid-template-columns:repeat(2,1fr); }
}

/* ============================================================
   Step 4 · 详情页排版（view_article / view_download / view_images /
   view_product / view_product11111 / view_product_sc）
   ============================================================ */

/* 正文标题与元信息 */
.newstext-box h1.news-title-h1{ font-size:24px; line-height:1.5; font-weight:600; color:var(--c-ink); }
.picview-other{ font-size:13px; color:var(--c-ink-3); }

/* 摘要引导块 */
.smalltext{
  background:#f2f8ff;
  border-left:3px solid var(--c-blue);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  color:#5a6b85;
}

/* 正文排版 */
.newstext{ font-size:16px; line-height:1.9; color:#444; }
.newstext p{ margin-bottom:16px; }
.newstext img{
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow-sm);
  display:block;
}
.newstext h2, .newstext h3{ font-size:18px; }
.newstext h2:before, .newstext h3:before{ border-radius:2px; }

/* 关键词胶囊 */
.keywords a{ border-radius:20px; transition:all .2s; }
.keywords a:nth-child(1), .keywords a:hover{ background:var(--c-blue-grad); border-color:transparent; }

/* 版权/下载分享条 */
.share{
  background:#f7faff;
  border:1px solid #e3eefc;
  border-radius:var(--radius);
}
.share .xiazai a{
  display:inline-block;
  margin:4px 8px 4px 0;
  padding:6px 16px;
  background:var(--c-blue-grad);
  color:#fff;
  border-radius:20px;
  font-size:14px;
  transition:background .25s;
}
.share .xiazai a:hover{ background:var(--c-blue-d); }

/* 上一篇/下一篇 卡片化 */
.info-pre-next ul li a{
  background:#fff;
  border:1px solid var(--c-line);
  border-radius:var(--radius);
  padding:12px;
  transition:transform .3s, box-shadow .3s;
}
.info-pre-next ul li a:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); }
.info-pre-next ul li i{ border-radius:var(--radius-sm); }

/* 相关文章 */
.otherlink ul li a{ transition:color .2s; }
.otherlink ul li a:hover{ color:var(--c-blue); }
.otherlink ul li:before{ background:var(--c-blue); }

/* ============================================================
   Step 5 · 视频详情 view_media（轻量协调，不破坏 pintuer 布局）
   ============================================================ */
.jw-video{ border-radius:var(--radius); overflow:hidden; }
.video-period-title{ border-radius:var(--radius-sm) var(--radius-sm) 0 0; }
.video-period-list li a{ transition:background .2s; }
.video-period-list li a:hover{ background:rgba(255,255,255,.10); }
.sidebar-r .title-l h2{ font-size:17px; }
.list-post-x .media{ padding:10px 0; border-bottom:1px dashed var(--c-line); }
.list-post-x .thumb-md{ border-radius:var(--radius-sm); overflow:hidden; }

/* ============================================================
   Step 5 · 单页 single.htm（金蓝点缀，补齐缺失样式体系）
   ============================================================ */
.page-banner{
  background:var(--c-blue-grad);
  color:#fff;
  text-align:center;
  padding:46px 16px;
}
.page-banner h2{ font-size:28px; margin-bottom:10px; }
.page-banner .crumb{ color:rgba(255,255,255,.88); font-size:13px; }
.page-banner .crumb a{ color:#fff; }

.detail-wrap{
  display:flex;
  gap:24px;
  max-width:var(--maxw);
  margin:0 auto;
  align-items:flex-start;
}
.detail-main{
  flex:1 1 auto;
  min-width:0;
  background:#fff;
  border:1px solid var(--c-line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:34px 38px;
}
.detail-main h1{ font-size:26px; margin-bottom:12px; }
.detail-main .meta{ color:var(--c-ink-3); font-size:13px; margin-bottom:26px; }
.detail-main .content{ line-height:1.9; color:#444; font-size:16px; }
.detail-main .content img{
  max-width:100%; height:auto;
  border-radius:var(--radius-sm);
  margin:14px auto; display:block;
}
.detail-main .content h2, .detail-main .content h3{
  font-size:18px; margin:22px 0 12px; padding-left:10px; position:relative;
}
.detail-main .content h2:before, .detail-main .content h3:before{
  content:""; position:absolute; left:0; top:3px; bottom:3px;
  width:3px; border-radius:2px; background:var(--c-blue-grad);
}

/* 关键修复：base.css 有 .box,article{width:1200px}，侧栏 .box 会撑爆 flex 项；
   这里限定侧栏 .box 宽度自适应，并给 aside 加 min-width:0 锁定 300px flex-basis */
aside.sidebar{ flex:0 0 300px; min-width:0; display:flex; flex-direction:column; gap:18px; }
aside.sidebar .box{
  width:auto;
  max-width:100%;
  margin:0; /* 抵消 base.css .box 的 margin:auto，避免 flex 纵向容器内收缩变窄 */
  background:#fff;
  border:1px solid var(--c-line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:20px;
}
aside.sidebar .box h5{
  font-size:16px; margin-bottom:12px; padding-bottom:10px;
  border-bottom:1px solid var(--c-line); position:relative;
}
aside.sidebar .box h5:after{
  content:""; position:absolute; left:0; bottom:-1px;
  width:56px; height:3px; border-radius:2px; background:var(--gold);
}
aside.sidebar .box a{
  display:block; padding:9px 12px; border-radius:var(--radius-sm);
  color:var(--c-ink-2); transition:all .2s;
}
aside.sidebar .box a:hover{ background:var(--gold-pale); color:var(--gold); }

@media (max-width:839px){
  .detail-wrap{ flex-direction:column; }
  aside.sidebar{ flex:1 1 auto; width:100%; }
  .detail-main{ padding:24px 20px; }
}

/* ============================================================
   Step 6 · 留言/预约表单轻量美化（layui 控件统一）
   ============================================================ */
.layui-form-item{ margin-bottom:18px; }
.layui-form-label{ color:var(--c-ink-2); }
input.layui-input,
textarea.layui-textarea{
  border:1px solid var(--c-line);
  border-radius:var(--radius-sm);
  transition:border-color .2s, box-shadow .2s;
}
input.layui-input:focus,
textarea.layui-textarea:focus{
  border-color:var(--c-blue);
  box-shadow:0 0 0 3px rgba(20,135,244,.12);
}
/* 注意：guestbook 页 layui.css 在 body 末才引入（晚于 beautify.css），
   故按钮须用更高优先级（.layui-form .layui-btn）才能压过 layui 默认样式 */
.layui-form .layui-btn{
  background:var(--c-blue-grad);
  border-radius:20px;
  border:none;
}
.layui-form .layui-btn:hover{ filter:brightness(1.04); }

/* ============================================================
   Step 7 · 大气版视觉增强（内页专属；首页不加载本文件）
   ============================================================ */

/* 淡蓝渐变页面底色，层次更足 */
body{
  background:linear-gradient(180deg,#f7fafe 0%,#eef4fb 100%) fixed;
}

/* 栏目标题：左侧渐变竖条 + 加大字号（大气感） */
.news-title h2{
  position:relative;
  padding-left:14px;
  font-size:20px;
  letter-spacing:.5px;
}
.news-title h2:before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:5px;
  height:20px;
  border-radius:3px;
  background:var(--c-blue-grad);
}

/* 侧栏三块分色点缀：推荐=蓝 / 排行=金 / 随机=青（色彩丰富而不花） */
.tuijian{ border-top:3px solid var(--c-blue); }
.paihang{ border-top:3px solid var(--gold); }
.suiji{ border-top:3px solid #00b8a9; }

/* 白卡悬停轻微上浮感 */
.blogs-box{ transition:box-shadow .3s ease; }
.blogs-box:hover{ box-shadow:var(--shadow-md); }

/* 文章行卡悬停：左侧蓝色指示条 */
.blogs-list ul li:hover,
.download-list li:hover{ box-shadow:inset 3px 0 0 var(--c-blue); }

/* 详情页大标题：底部渐变装饰线 */
.newstext-box h1.news-title-h1{
  position:relative;
  padding-bottom:14px;
}
.newstext-box h1.news-title-h1:after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:64px;
  height:4px;
  border-radius:2px;
  background:var(--c-blue-grad);
}

/* 卡片标题单行截断，保持网格整齐不溢出 */
.videos-list li h2,
.pic-list-img li span,
.pics-list-price li span{
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* ---------- 防溢出兜底（正文里的宽图/宽表格/长单词） ---------- */
.newstext img,
.detail-main .content img{ max-width:100%; height:auto; }
.newstext{ overflow-x:auto; }
.newstext table{ max-width:100%; }
.blogs-list,
.blogs-box,
.detail-main,
.newstext{ overflow-wrap:break-word; word-break:break-word; }

/* ============================================================
   视频列表页 lists_article_video（沿用 .videos-list 网格，加播放角标）
   ============================================================ */
.video-arc-list li i{ position:relative; }
.video-arc-list li i:after{
  content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:50px; height:50px; border-radius:50%; z-index:1;
  background:rgba(20,135,244,.82); box-shadow:0 4px 14px rgba(0,0,0,.28);
  transition:transform .25s, background .25s;
}
.video-arc-list li i:before{
  content:""; position:absolute; left:calc(50% + 4px); top:50%; transform:translate(-50%,-50%);
  width:0; height:0; border-style:solid; border-width:9px 0 9px 15px;
  border-color:transparent transparent transparent #fff; z-index:2;
}
.video-arc-list li a:hover i:after{ transform:translate(-50%,-50%) scale(1.08); background:rgba(9,118,220,.9); }

/* ============================================================
   师资团队 专项（lists_article_teacher / view_article_teacher）
   ============================================================ */
.teacher-list ul{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  padding:10px 0 20px;
  list-style:none;
}
.teacher-list li{ float:none !important; width:auto !important; margin:0; }
.teacher-list li a{
  display:block;
  text-decoration:none;
  background:#fff;
  border:1px solid var(--c-line);
  border-radius:var(--radius);
  overflow:hidden;
  text-align:center;
  transition:transform .3s, box-shadow .3s;
}
.teacher-list li a:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); }
.teacher-list li i{
  display:block;
  width:100%;
  aspect-ratio:3/4;
  overflow:hidden;
  background:linear-gradient(160deg,#eaf3ff,#d9ecff);
}
.teacher-list li i img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s; }
.teacher-list li a:hover i img{ transform:scale(1.05); }
.teacher-list li h2{
  font-size:17px; font-weight:600; color:var(--c-ink);
  padding:14px 10px 2px; margin:0; line-height:1.4;
}
.teacher-list li h2:hover{ color:var(--c-blue); }
.teacher-list li p{ font-size:12px; color:var(--c-ink-3); padding:0 10px 16px; margin:0; letter-spacing:1px; }
.teacher-list li p:empty{ display:none; }
@media (max-width:1024px){ .teacher-list ul{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:839px){ .teacher-list ul{ grid-template-columns:repeat(2,1fr); } }

/* 师资详情页 */
.teacher-view{
  background:#fff;
  border:1px solid var(--c-line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:42px 36px 48px;
}
.teacher-view .tv-name{
  text-align:center;
  font-size:26px; font-weight:700; color:var(--c-ink);
  margin:0 0 8px; letter-spacing:2px;
}
.teacher-view .tv-meta{
  text-align:center; font-size:13px; color:var(--c-ink-3); margin-bottom:10px;
}
.teacher-view .tv-line{
  width:64px; height:4px; border-radius:2px; margin:0 auto 30px;
  background:var(--c-blue-grad);
}
.teacher-view .tv-content{ text-align:center; font-size:16px; line-height:1.9; color:#444; }
.teacher-view .tv-content img{
  max-width:100%; height:auto; display:inline-block;
  border-radius:var(--radius-sm); box-shadow:var(--shadow-md);
}
@media (max-width:839px){ .teacher-view{ padding:26px 18px 32px; } }

/* ============================================================
   栏目横幅（列表页/详情页顶部）：背景=后台栏目图片，文字=模板叠加
   ============================================================ */
/* 栏目横幅通长：外层 .col-banner 铺满整行（width:100%），背景图 background-size:cover 自适应；
   内层 .col-banner-inner 限宽 1200px 居中，使标题文字与全站内容对齐 */
.col-banner{ position:relative; width:100%; margin:0; height:190px; border-radius:0; overflow:hidden;
  background:linear-gradient(120deg,#0f5bd8 0%,#1487f4 55%,#00a0ec 100%); box-shadow:0 10px 26px rgba(10,40,90,.14); }
.col-banner-bg{ position:absolute; top:0; left:0; right:0; bottom:0; background-size:cover; background-position:center; }
.col-banner-bg:after{ content:""; position:absolute; top:0; left:0; right:0; bottom:0;
  background:linear-gradient(90deg,rgba(8,30,80,.62) 0%,rgba(8,30,80,.30) 55%,rgba(8,30,80,.05) 100%); }
.col-banner-inner{ position:relative; z-index:1; height:100%; display:flex; flex-direction:column; justify-content:center; padding:0 46px;
  max-width:1200px; margin:0 auto; }
.col-banner-crumb{ font-size:13px; color:rgba(255,255,255,.85); margin-bottom:10px; }
.col-banner-crumb a{ color:rgba(255,255,255,.85); }
.col-banner-crumb a:hover{ color:#fff; }
.col-banner-name{ margin:0; font-size:34px; font-weight:800; letter-spacing:4px; color:#fff; text-shadow:0 2px 12px rgba(8,30,80,.4); }
.col-banner-sub{ margin:10px 0 0; font-size:14px; color:rgba(255,255,255,.9); max-width:780px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media screen and (max-width:767px){
  .col-banner{ width:100%; margin:0; height:130px; border-radius:0; }
  .col-banner-inner{ padding:0 20px; }
  .col-banner-name{ font-size:24px; letter-spacing:2px; }
}

/* 详情页广告位 */
.view-ad{ width:1200px; margin:0 auto; text-align:center; border-radius:12px; overflow:hidden; background:#fff; }
.view-ad img{ width:100%; display:block; }
@media screen and (max-width:767px){ .view-ad{ width:auto; margin:0 10px; } }

/* ============================================================
   列表页/详情页栏目分色：跟随栏目横幅上的栏目归属类，
   重新定义本页主题变量（--c-blue 系列），全页点缀随栏目变色。
   ============================================================ */
.cb-t1 ~ article,.cb-p1 ~ article{ --c-blue:#1487f4; --c-blue-d:#0976dc; --c-blue-grad:linear-gradient(90deg,#0062ff 0%,#00a0ec 100%); }
.cb-t2 ~ article,.cb-p2 ~ article{ --c-blue:#00A0A8; --c-blue-d:#00858C; --c-blue-grad:linear-gradient(90deg,#0097A7 0%,#2FC2C9 100%); }
.cb-t179 ~ article,.cb-p179 ~ article{ --c-blue:#7B5CF0; --c-blue-d:#6043D6; --c-blue-grad:linear-gradient(90deg,#6A4BE8 0%,#9D82FF 100%); }
.cb-t6 ~ article,.cb-p6 ~ article{ --c-blue:#17A673; --c-blue-d:#0F8559; --c-blue-grad:linear-gradient(90deg,#0FA968 0%,#3ED9A0 100%); }
.cb-t4 ~ article,.cb-p4 ~ article{ --c-blue:#E8478C; --c-blue-d:#C42F6F; --c-blue-grad:linear-gradient(90deg,#E8478C 0%,#FF8AB5 100%); }
.cb-t5 ~ article,.cb-p5 ~ article{ --c-blue:#D9971A; --c-blue-d:#B27A0E; --c-blue-grad:linear-gradient(90deg,#D9971A 0%,#F3C15C 100%); }
.cb-t7 ~ article,.cb-p7 ~ article{ --c-blue:#E0453F; --c-blue-d:#BC2F2A; --c-blue-grad:linear-gradient(90deg,#E0453F 0%,#FF8178 100%); }
.cb-t16 ~ article,.cb-p16 ~ article{ --c-blue:#F2762E; --c-blue-d:#D45C17; --c-blue-grad:linear-gradient(90deg,#F2762E 0%,#FFA468 100%); }
.cb-t53 ~ article,.cb-p53 ~ article,.cb-t127 ~ article,.cb-p127 ~ article,
.cb-t8 ~ article,.cb-p8 ~ article,.cb-t51 ~ article,.cb-p51 ~ article,
.cb-t49 ~ article,.cb-p49 ~ article{ --c-blue:#3F6AD8; --c-blue-d:#2C51B8; --c-blue-grad:linear-gradient(90deg,#3F6AD8 0%,#7EA0F5 100%); }
/* 横幅本身随栏目着色（未传栏目图时的渐变底） */
.cb-t2.col-banner,.cb-p2.col-banner{ background:linear-gradient(120deg,#00858C 0%,#00A0A8 55%,#2FC2C9 100%); }
.cb-t179.col-banner,.cb-p179.col-banner{ background:linear-gradient(120deg,#6043D6 0%,#7B5CF0 55%,#9D82FF 100%); }
.cb-t6.col-banner,.cb-p6.col-banner{ background:linear-gradient(120deg,#0F8559 0%,#17A673 55%,#3ED9A0 100%); }
.cb-t4.col-banner,.cb-p4.col-banner{ background:linear-gradient(120deg,#C42F6F 0%,#E8478C 55%,#FF8AB5 100%); }
.cb-t5.col-banner,.cb-p5.col-banner{ background:linear-gradient(120deg,#B27A0E 0%,#D9971A 55%,#F3C15C 100%); }
.cb-t7.col-banner,.cb-p7.col-banner{ background:linear-gradient(120deg,#BC2F2A 0%,#E0453F 55%,#FF8178 100%); }
.cb-t16.col-banner,.cb-p16.col-banner{ background:linear-gradient(120deg,#D45C17 0%,#F2762E 55%,#FFA468 100%); }
.cb-t53.col-banner,.cb-t127.col-banner,.cb-t8.col-banner,.cb-t51.col-banner,.cb-t49.col-banner,
.cb-p53.col-banner,.cb-p127.col-banner,.cb-p8.col-banner,.cb-p51.col-banner,.cb-p49.col-banner{ background:linear-gradient(120deg,#2C51B8 0%,#3F6AD8 55%,#7EA0F5 100%); }

/* ============================================================
   栏目横幅兜底图：后台【栏目管理-栏目图片】一旦设置即自动优先；
   未设置时按栏目 ID / 父栏目 ID 显示下列 AI 设计的栏目主题图。
   ============================================================ */
.cb-t1.col-banner,.cb-p1.col-banner{ background-image:url('/uploads/allimg/20261021/011629-e3e47777.jpg'); background-size:cover; background-position:center; }
.cb-t2.col-banner,.cb-p2.col-banner{ background-image:url('/uploads/allimg/20261021/011630-6a738999.jpg'); background-size:cover; background-position:center; }
.cb-t179.col-banner,.cb-p179.col-banner{ background-image:url('/uploads/allimg/20261021/011631-5b0d7369.jpg'); background-size:cover; background-position:center; }
.cb-t6.col-banner,.cb-p6.col-banner{ background-image:url('/uploads/allimg/20261021/011633-4abf6608.jpg'); background-size:cover; background-position:center; }
.cb-t4.col-banner,.cb-p4.col-banner{ background-image:url('/uploads/allimg/20261021/011634-eb9f16a2.jpg'); background-size:cover; background-position:center; }
.cb-t5.col-banner,.cb-p5.col-banner{ background-image:url('/uploads/allimg/20261021/011635-3dbbf62c.jpg'); background-size:cover; background-position:center; }
.cb-t7.col-banner,.cb-p7.col-banner{ background-image:url('/uploads/allimg/20261021/011636-6a212b3a.jpg'); background-size:cover; background-position:center; }
.cb-t16.col-banner,.cb-p16.col-banner{ background-image:url('/uploads/allimg/20261021/011637-7a627e44.jpg'); background-size:cover; background-position:center; }
.cb-t53.col-banner,.cb-p53.col-banner,.cb-t51.col-banner,.cb-p51.col-banner{ background-image:url('/uploads/allimg/20261021/011638-e3812697.jpg'); background-size:cover; background-position:center; }
.cb-t127.col-banner,.cb-p127.col-banner{ background-image:url('/uploads/allimg/20261021/011639-109797c7.jpg'); background-size:cover; background-position:center; }
.cb-t8.col-banner,.cb-p8.col-banner,.cb-t49.col-banner,.cb-p49.col-banner{ background-image:url('/uploads/allimg/20261021/011640-95e0dd15.jpg'); background-size:cover; background-position:center; }

/* 横幅视觉层：按栏目/父栏目/内容栏目匹配主题图（优先于底色渐变） */
.cb-t1 .col-banner-bg,.cb-p1 .col-banner-bg,.cb-k1 .col-banner-bg{ background-image:url('/uploads/allimg/20261021/011629-e3e47777.jpg'); }
.cb-t2 .col-banner-bg,.cb-p2 .col-banner-bg,.cb-k2 .col-banner-bg{ background-image:url('/uploads/allimg/20261021/011630-6a738999.jpg'); }
.cb-t179 .col-banner-bg,.cb-p179 .col-banner-bg,.cb-k179 .col-banner-bg{ background-image:url('/uploads/allimg/20261021/011631-5b0d7369.jpg'); }
.cb-t6 .col-banner-bg,.cb-p6 .col-banner-bg,.cb-k6 .col-banner-bg{ background-image:url('/uploads/allimg/20261021/011633-4abf6608.jpg'); }
.cb-t4 .col-banner-bg,.cb-p4 .col-banner-bg,.cb-k4 .col-banner-bg{ background-image:url('/uploads/allimg/20261021/011634-eb9f16a2.jpg'); }
.cb-t5 .col-banner-bg,.cb-p5 .col-banner-bg,.cb-k5 .col-banner-bg{ background-image:url('/uploads/allimg/20261021/011635-3dbbf62c.jpg'); }
.cb-t7 .col-banner-bg,.cb-p7 .col-banner-bg,.cb-k7 .col-banner-bg{ background-image:url('/uploads/allimg/20261021/011636-6a212b3a.jpg'); }
.cb-t16 .col-banner-bg,.cb-p16 .col-banner-bg,.cb-k16 .col-banner-bg{ background-image:url('/uploads/allimg/20261021/011637-7a627e44.jpg'); }
.cb-t53 .col-banner-bg,.cb-p53 .col-banner-bg,.cb-k53 .col-banner-bg,
.cb-t51 .col-banner-bg,.cb-p51 .col-banner-bg,.cb-k51 .col-banner-bg{ background-image:url('/uploads/allimg/20261021/011638-e3812697.jpg'); }
.cb-t127 .col-banner-bg,.cb-p127 .col-banner-bg,.cb-k127 .col-banner-bg{ background-image:url('/uploads/allimg/20261021/011639-109797c7.jpg'); }
.cb-t8 .col-banner-bg,.cb-p8 .col-banner-bg,.cb-k8 .col-banner-bg,
.cb-t49 .col-banner-bg,.cb-p49 .col-banner-bg,.cb-k49 .col-banner-bg{ background-image:url('/uploads/allimg/20261021/011640-95e0dd15.jpg'); }
.col-banner-bg{ transition:background-image .3s; }

/* 侧栏随栏目变色：栏目按钮 / 侧栏标题装饰线 / 站长推荐图边 */
.col-banner ~ article .tuijian li{ background:var(--c-blue); }
.col-banner ~ article .tuijian li:hover{ background:var(--c-blue-d); }
.col-banner ~ article .side-title:after{ background:var(--c-blue-grad); }
.col-banner ~ article .news-title h2 a,
.col-banner ~ article .blogs-list li h2 a:hover{ color:var(--c-blue); }

/* 列表缩略图等比裁切：原图比例不一（1280x544 横图 / 750x1105 竖图 / 345x345 方图），固定框内一律 cover 裁切，杜绝拉伸变形 */
.blogs-list li i img,
.videos-list li i img,
.pic-list-img li i img,
.news-zuixin li img{ width:100%; height:100%; object-fit:cover; }
.blogs-list li i,.videos-list li i,.pic-list-img li i{ display:block; }

/* 相册详情页幻灯：主图与缩略图之间加间距，避免粘连 */
.mySwiper2{ margin-bottom:14px; border-radius:12px; overflow:hidden; }
.mySwiper{ border-radius:10px; }
.mySwiper .swiper-slide{ border-radius:8px; overflow:hidden; }

/* ============================================================
   师资详情页四要素：照片 + 姓名 + 职位 + 简介
   后台填写规范：标题=姓名；【副标题】=职位（如 执行主任/康复教师）；
   封面图=照片；正文=简介。无需改动编辑器设置——请在各篇师资文档的
   “副标题”栏填写职位，前台列表页与详情页即显示（副标题为空时自动隐藏）。
   ============================================================ */
.teacher-view .tv-head{ display:flex; gap:34px; align-items:flex-start; }
.teacher-view .tv-photo{
  flex:0 0 240px; width:240px; aspect-ratio:3/4; border-radius:14px; overflow:hidden;
  background:linear-gradient(160deg,#eaf3ff,#d9ecff);
  box-shadow:0 10px 26px rgba(10,40,90,.16);
}
.teacher-view .tv-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.tv-photo--empty{ position:relative; }
.tv-photo--empty:after{
  content:"暂无照片"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:#7d9cc4; font-size:14px; letter-spacing:1px;
}
.teacher-view .tv-headinfo{ flex:1 1 auto; padding-top:14px; min-width:0; }
.teacher-view .tv-name{ text-align:left; margin:0; font-size:30px; font-weight:800; color:var(--c-ink); letter-spacing:2px; }
.teacher-view .tv-post{
  display:inline-block; margin:14px 0 0; padding:7px 20px; border-radius:22px;
  background:var(--c-blue-grad); color:#fff; font-size:15px; font-weight:600; letter-spacing:1px;
  box-shadow:0 6px 16px rgba(20,135,244,.28);
}
.teacher-view .tv-post:empty{ display:none; }
.teacher-view .tv-line{ margin:28px 0 24px; }
@media screen and (max-width:767px){
  .teacher-view .tv-head{ flex-direction:column; align-items:center; gap:20px; }
  .teacher-view .tv-photo{ flex:0 0 auto; width:200px; }
  .teacher-view .tv-name{ text-align:center; font-size:24px; }
  .teacher-view .tv-headinfo{ text-align:center; }
}

/* 单页/列表子栏目导航条：原为竖排 ul 堆在正文里，改为横向胶囊导航 */
.page-title{ padding:14px 24px !important; border-bottom:1px solid var(--c-line); }
.page-title ul{ display:flex !important; flex-wrap:wrap; gap:10px; list-style:none !important; margin:0 !important; padding:0 !important; }
.page-title ul li{ float:none !important; width:auto !important; margin:0 !important; }
.page-title ul li a{
  display:block; padding:9px 20px; border-radius:22px; background:#f1f6ff; color:#3a486a;
  font-size:15px; font-weight:600; transition:all .25s; white-space:nowrap;
}
.page-title ul li a:hover{ background:var(--c-blue); color:#fff; box-shadow:0 6px 16px rgba(20,135,244,.24); }

/* 单页（lists_single）：base.css 的 .page-title 是左侧 230px 竖排子栏目导航，与侧栏重复且显错位，
   这里改为内容区顶部横向导航条，正文区随之全宽 */
.page-title{
  width:auto !important; float:none !important; margin:0 0 22px; padding:14px 22px !important;
  border-bottom:1px solid var(--c-line);
}
.page-title ul{ display:flex !important; flex-wrap:wrap; gap:10px; list-style:none !important; margin:0 !important; padding:0 !important; }
.page-title li{ float:none !important; width:auto !important; margin:0 !important; }
.page-title li a{
  display:block; padding:9px 20px; border-radius:22px; background:#f1f6ff; color:#3a486a;
  font-size:15px; font-weight:600; text-align:center; border:1px solid transparent !important; transition:all .25s;
}
.page-title li a:hover, .page-title #pagecurrent, .page-title .on{
  background:var(--c-blue) !important; color:#fff !important; border-color:var(--c-blue) !important;
  box-shadow:0 6px 16px rgba(20,135,244,.24);
}
.page-box{
  width:auto !important; float:none !important; margin-left:0 !important; padding-left:0 !important;
  border-left:none !important; min-height:auto !important;
}

/* 师资照片占位：无封面图时显示「暂无照片」提示（img 被隐藏或自然宽为 0 时露出底层） */
.teacher-view .tv-photo{ position:relative; }
.teacher-view .tv-ph{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-style:normal; color:#7d9cc4; font-size:14px; letter-spacing:1px; text-align:center; line-height:1.8;
}
.teacher-view .tv-ph span{ font-size:12px; color:#9bb2cd; }
.teacher-view .tv-photo img{ position:relative; z-index:1; }
