/* ============================================================
   site-beautify.css — 全站美化皮肤（不修改原模板结构）
   加载位置：base.css / m.css 之后，可覆盖原样式
   ============================================================ */
:root {
  --brand:  #2E8BFF;   /* 主色 */
  --warm:   #FF9F6E;   /* 暖色（悬停/点缀） */
  --bg:     #FAFBFF;   /* 页面背景 */
  --radius: 16px;      /* 圆角 */
  --shadow: 0 8px 24px rgba(46,139,255,.12); /* 阴影 */
}

/* ---------- 基础排版 ---------- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
}
h1, h2, h3, h4 { font-weight: bold; line-height: 1.4; }

/* ---------- Logo ---------- */
.logo img { height: 40px; width: auto; }

/* ---------- 顶部导航（桌面端） ---------- */
@media screen and (min-width: 768px) {
  .topnav nav { height: 64px; }

  /* 14 个栏目一行排下：不换行、去掉原 li 右间距、收窄内边距 */
  #starlist {
    display: flex; align-items: center; justify-content: center;
    height: 64px; flex-wrap: nowrap;
    width: auto; max-width: 1170px; margin: 0 auto;
  }
  #starlist > li {
    position: relative; height: 64px;
    margin-right: 0; flex-shrink: 0;
  }
  #starlist > li > a {
    display: flex; align-items: center; height: 64px;
    padding: 0 10px; font-size: 14px; color: #fff; white-space: nowrap;
    transition: background .2s;
  }
  /* 当前栏目高亮：覆盖模板内联 style="background:#0976dc" */
  #starlist > li > a[style*="background"] {
    background: var(--brand) !important;
    color: #fff !important;
  }
  #starlist > li > a:hover { background: rgba(255,255,255,.16); color: #fff; }
  #starlist > li > a[style*="background"]:hover {
    background: var(--brand) !important;
    color: #fff !important;
  }

  /* 下拉子菜单：圆角 + 阴影 + 悬停暖色（纯 hover，无点击拦截） */
  #starlist .sub {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 6px 0;
    overflow: hidden;
    z-index: 999;            /* 原 z-index:9 会被内容区压住 */
  }
  #starlist .sub li a {
    display: block; margin: 2px 6px; padding: 10px 20px;
    font-size: 15px; color: #333; border-radius: 8px;
    transition: color .2s, background .2s;
  }
  #starlist .sub li a:hover {
    color: var(--warm);
    background: rgba(255,159,110,.12);
  }
}

/* ---------- 移动端：汉堡菜单保持原状，皮肤不干预 ---------- */
@media screen and (max-width: 767px) {
  #mnavh { display: block; }
}

/* ============================================================
   首页视觉层（index.htm）— 纯 CSS 覆盖，不改模板结构
   ============================================================ */

/* ---------- 布局：区块间距 24px、最大宽 1200px 居中 ---------- */
article .box,
article .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
article .box.whitebg {
  margin-top: 24px;
  border-radius: var(--radius);
}
/* 压缩栏目之间的空隙：隐藏区块间的 <br>、缩窄 .blank 间隔条 */
article > br,
article .container > br { display: none; }
article > .blank,
article .container > .blank { height: 8px; }

/* ---------- 顶部 banner：圆角 + 半透明渐变遮罩 ---------- */
.ad .swiper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.ad .swiper::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35));
  pointer-events: none;            /* 遮罩不挡点击 */
}
.ad .swiper .swiper-button-next,
.ad .swiper .swiper-button-prev { z-index: 3; }

/* ---------- 板块标题：左色块 + 中文标题 + 英文副标 ---------- */
.gd-box ul[id="tab"] li.tab-current {
  position: relative;
  padding-left: 14px !important;
  font-weight: bold;
}
.gd-box ul[id="tab"] li.tab-current::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 20px; border-radius: 3px;
  background: var(--brand);
}
.gd-box ul[id="tab"] li.tab-current::after {
  display: block;
  font-size: 12px; font-weight: normal;
  color: #9aa7c7; letter-spacing: 1px; line-height: 1.2;
}
/* 各板块英文副标（与中文名一一对应） */
.tuijian-news   .gd-box li.tab-current::after { content: "KNOWLEDGE SHARING"; }   /* 知识分享 */
.tuijian-yantao .gd-box li.tab-current::after { content: "CHARITY ONLINE"; }      /* 公益在线 */
.tab-num06      .gd-box li.tab-current::after { content: "DOWNLOADS"; }           /* 资源下载 */
.tab-num07      .gd-box li.tab-current::after { content: "TOPICS"; }              /* 专题专栏 */
.videos         .gd-box li.tab-current::after { content: "VIDEOS"; }             /* 视频观看 */
/* 支援服务/相册图片共用 .pics：用兄弟选择器区分，后出现的为相册 */
article .pics    .gd-box li.tab-current::after { content: "SUPPORT SERVICES"; }   /* 支援服务 */
article .pics ~ .pics .gd-box li.tab-current::after { content: "PHOTO GALLERY"; } /* 相册图片 */

/* ============================================================
   首页深化美化（Phase 1）
   ============================================================ */

/* ---------- 服务指南：图标卡片 ---------- */
.fwzn .iconlist a {
  border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.fwzn .iconlist a:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.fwzn .iconlist a .pic {
  border-radius: 12px;
  overflow: hidden;
}
.fwzn .iconlist a p { color: #334; transition: color .2s; }
.fwzn .iconlist a:hover p { color: var(--brand); }

/* ---------- 新闻列表（知识分享/公益在线/专题专栏）：日期徽章 + 悬停 ---------- */
.tuijian-news-list ul li a,
.tuijian-yantao-list ul li a {
  border-radius: 12px;
  transition: background .2s;
}
.tuijian-news-list ul li a:hover,
.tuijian-yantao-list ul li a:hover { background: #f6f9ff; }
.tuijian-news-list ul li a > span,
.tuijian-yantao-list ul li a > span {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #5aa8ff) !important;
  color: #fff !important;
}
.tuijian-news-list ul li a > span b,
.tuijian-yantao-list ul li a > span b { color: #fff !important; }
.tuijian-news-list ul li h3,
.tuijian-yantao-list ul li h3 { transition: color .2s; }
.tuijian-news-list ul li a:hover h3,
.tuijian-yantao-list ul li a:hover h3 { color: var(--brand); }

/* ---------- 支援服务：图片卡片 ---------- */
article .pics .pic-list-img ul li {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
article .pics .pic-list-img ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
article .pics .pic-list-img ul li i {
  display: block; overflow: hidden; border-radius: 12px;
}
article .pics .pic-list-img ul li i img { transition: transform .3s; }
article .pics .pic-list-img ul li:hover i img { transform: scale(1.05); }

/* ---------- 相册滚动：图片悬停放大 + 按钮品牌化 ---------- */
.photo-scroll-wrap .pic-item { overflow: hidden; border-radius: 8px; }
.photo-scroll-wrap .pic-item img {
  border-radius: 8px !important;
  transition: transform .3s;
}
.photo-scroll-wrap .pic-item a:hover img { transform: scale(1.06); }
.photo-scroll-wrap .scroll-btn {
  background: rgba(46,139,255,.75) !important;
  transition: background .2s;
}
.photo-scroll-wrap .scroll-btn:hover { background: var(--brand) !important; }

/* ---------- 首页·资源下载：一排三列竖向卡片 ----------
   原模板 li 为 33.333% 浮动三列、a.dl-link 定高 48px，
   这里改为 3 列 grid（上图下文），复位原 width/float/定高 */
.tab-num06 .down-list ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tab-num06 .down-list ul li {
  width: auto !important; float: none !important;
  height: auto !important; margin: 0 !important;
  overflow: visible;
}
.tab-num06 .down-list li a.dl-link {
  display: block;
  height: auto; margin: 0; border: none;
  padding: 12px;
  background: #f6f9ff;
  border-radius: var(--radius);
  transition: background .2s, box-shadow .2s, transform .2s;
}
.tab-num06 .down-list li a.dl-link:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.tab-num06 .down-list li .dl-link i {
  width: auto; height: auto; float: none;
  margin: 0 0 10px;
  border-radius: 12px; overflow: hidden;
}
.tab-num06 .down-list li .dl-link i img {
  width: 100%; height: 140px;
  object-fit: cover; display: block;
  transition: transform .3s;
}
.tab-num06 .down-list li .dl-link:hover i img { transform: scale(1.05); }
.tab-num06 .down-list li .dl-link h2 {
  margin: 0 0 6px; font-size: 15px; color: #223;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tab-num06 .down-list li .dl-link h2 span {   /* 日期：跟随标题，不再绝对定位 */
  position: static;
  font-size: 12px; font-weight: normal;
  color: #9aa7c7; margin-left: 6px;
}
.tab-num06 .down-list li .dl-link p {
  height: auto; padding: 0; margin: 0;
  font-size: 13px; color: #778; line-height: 1.6;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* “安全下载”按钮：品牌渐变胶囊（悬停卡片时出现在封面右上角） */
.tab-num06 .down-list li .d-list-hover {
  position: absolute; right: 20px; top: 20px;
  width: auto; height: auto; line-height: 1.5;
  padding: 6px 14px;
  font-size: 13px;
  background: linear-gradient(90deg, var(--brand), #5aa8ff);
  border-radius: 999px;
  transition: box-shadow .2s;
}
.tab-num06 .down-list li .d-list-hover em { color: #fff; font-style: normal; }
.tab-num06 .down-list li:hover .d-list-hover {
  box-shadow: 0 6px 16px rgba(46,139,255,.35);
}
@media screen and (max-width: 1024px) {
  .tab-num06 .down-list ul { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 767px) {
  .tab-num06 .down-list ul { grid-template-columns: 1fr; }
  .tab-num06 .down-list li .d-list-hover { display: none !important; }
}

/* ---------- 首页·视频观看：视频卡片 + 播放键遮罩 ----------
   原模板 li 为 25% 浮动定高 220px（移动端 50%/130px），全部复位后再套 grid */
.videos .videos-list ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.videos .videos-list ul li {
  width: auto !important; float: none !important;
  height: auto !important; margin: 0 !important;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(46,139,255,.08);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.videos .videos-list ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.videos .videos-list li a {
  display: block;
  margin: 0 !important; border: none !important;
}
.videos .videos-list li i {
  position: relative;
  display: block; overflow: hidden;
  height: auto; line-height: 0;
}
.videos .videos-list li i img {
  width: 100%; height: 150px;
  object-fit: cover; display: block;
  transition: transform .3s;
}
.videos .videos-list li:hover i img { transform: scale(1.06); }
/* 播放键：半透明黑底 + 白色三角 */
.videos .videos-list li i::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/22px no-repeat;
  border-radius: 50%;
  transition: background-color .2s, transform .2s;
}
.videos .videos-list li:hover i::after {
  background-color: var(--brand);
  transform: translate(-50%, -50%) scale(1.1);
}
.videos .videos-list li h2 {
  background: none;
  font-size: 15px; line-height: 1.5;
  padding: 10px 12px 4px;
  height: 2.9em;                    /* 两行截断 */
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.videos .videos-list li p {           /* 时间/在看人数 */
  padding: 0 12px 12px; margin: 0;
  font-size: 12px; color: #9aa7c7;
  display: flex; justify-content: space-between;
}
@media screen and (max-width: 1024px) {
  .videos .videos-list ul { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 767px) {
  .videos .videos-list ul { grid-template-columns: 1fr; }
  .videos .videos-list li i img { height: 180px; }
}

/* ---------- 关于我们 / 联系我们 ---------- */
.tab-num05 .Ttitle a { color: #223; font-weight: bold; }
.tab-num05 .Ttitle a span { color: #9aa7c7; font-weight: normal; }
.tab-num05 .contactnr dl {
  border-bottom: 1px dashed #eef1f8;
  padding: 6px 0;
}
.tab-num05 .contactnr dt { color: #556; }
.tab-num05 .contactnr dt i { color: var(--brand); margin-right: 4px; }
.tab-num05 .contactnr dd { color: #889; }

/* ---------- 友情链接：标题色块 + 胶囊 ---------- */
.links .news-title h2 {
  position: relative; padding-left: 14px; font-weight: bold;
}
.links .news-title h2::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 20px; border-radius: 3px;
  background: var(--brand);
}
.links ul li a {
  display: inline-block;
  padding: 6px 16px; margin: 4px;
  font-size: 14px; color: #556;
  background: #f6f9ff;
  border-radius: 999px;
  transition: all .2s;
}
.links ul li a:hover { background: var(--brand); color: #fff; }

/* ---------- 页脚数据带 ---------- */
.footer-benefit .p1 {
  font-size: 34px; font-weight: bold; color: var(--brand);
}
.footer-benefit .p2 { color: #667; }
.footer-benefit-list img.fbi-img { border-radius: 12px; }

/* ============================================================
   列表页美化（lists_article.htm / lists_single.htm）
   纯 CSS 覆盖，全部挂在新增 class 作用域下，不影响其他页面
   ============================================================ */

/* ---------- 文章列表页：栏目名标题 ---------- */
.art-list .news-title h2 {
  position: relative;
  padding-left: 14px;
  font-weight: bold;
}
.art-list .news-title h2::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 20px; border-radius: 3px;
  background: var(--brand);
}

/* ---------- 文章卡片：缩略图左 + 标题/摘要/标签 ---------- */
.art-card-list ul li {
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: 18px;
  align-items: start;
  padding: 18px 12px;
  border-bottom: 1px solid #eef1f8;
  border-radius: 12px;
  transition: background .2s;
}
.art-card-list ul li:hover { background: #f6f9ff; }
.art-card-list ul li i {
  grid-column: 1; grid-row: 1 / span 4;
  display: block; overflow: hidden;
  border-radius: 12px;
}
.art-card-list ul li i img {
  width: 100%; height: 140px;
  object-fit: cover; display: block;
}
.art-card-list ul li h2,
.art-card-list ul li p,
.art-card-list ul li span { grid-column: 2; }
.art-card-list ul li h2 { font-size: 18px; margin: 0 0 6px; }
.art-card-list ul li h2 a { color: #222; transition: color .2s; }
.art-card-list ul li h2 a:hover { color: var(--brand); }
.art-card-list ul li p {
  font-size: 14px; color: #667; line-height: 1.7;
  margin: 0 0 8px;
}
.art-card-list ul li span a {          /* TAG 标签 */
  display: inline-block;
  font-size: 12px; color: var(--brand);
  background: rgba(46,139,255,.08);
  border-radius: 999px;
  padding: 2px 10px; margin-right: 6px;
}
/* 手机端：卡片转竖排 */
@media screen and (max-width: 767px) {
  .art-card-list ul li { display: block; padding: 14px 8px; }
  .art-card-list ul li i { margin-bottom: 10px; }
  .art-card-list ul li i img { height: auto; max-height: 180px; }
}

/* ---------- 分页：圆角按钮 + 当前页高亮 ---------- */
.art-pager { margin: 20px 0 10px; text-align: center; }
.art-pager a, .art-pager span, .art-pager .current {
  display: inline-block;
  min-width: 36px; padding: 6px 12px; margin: 0 4px;
  border-radius: 999px;
  font-size: 14px; color: #445; line-height: 1.6;
  background: #fff;
  box-shadow: 0 2px 8px rgba(46,139,255,.08);
  transition: all .2s;
}
.art-pager a:hover {
  background: var(--warm); color: #fff;
}
.art-pager .current,
.art-pager a.current {
  background: var(--brand) !important;
  color: #fff !important;
  cursor: default;
}

/* ---------- 单页（lists_single.htm）：正文容器 ---------- */
.single-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 16px; line-height: 1.9; color: #333;
}
.single-content p { margin: 0 0 1.2em; }
.single-content img {
  max-width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(46,139,255,.10);
  margin: 12px 0;
}

/* ============================================================
   文章详情页美化（view_article.htm）
   全部挂在 .article-view / .related-list / .sticky-cta 作用域下
   ============================================================ */

/* ---------- 标题 28px + 作者/时间/来源灰色小字 ---------- */
.article-view .news-title-h1 {
  font-size: 28px;
  line-height: 1.4;
  color: #1a2333;
}
.article-view .picview-other {
  font-size: 13px;
  color: #9aa7c7;
  border-bottom: 1px solid #eef1f8;
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.article-view .picview-other span { margin-right: 14px; }

/* ---------- 正文：p 段距 1.8em、img 自适应圆角、table 横向滚动 ---------- */
.article-view .newstext {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}
.article-view .newstext p { margin: 0 0 1.8em; }
.article-view .newstext img {
  max-width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(46,139,255,.10);
}
.article-view .newstext table {
  display: block;
  max-width: 100%;
  overflow-x: auto;             /* 超宽表格可横向滑动 */
  border-collapse: collapse;
}
.article-view .newstext table td,
.article-view .newstext table th {
  padding: 8px 14px;
  border: 1px solid #e3e9f5;
  white-space: nowrap;
}

/* ---------- 相关文章：卡片网格 ---------- */
.related-list ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.related-list ul li {
  background: #f6f9ff;
  border-radius: 12px;
  transition: background .2s, transform .2s;
}
.related-list ul li:hover {
  background: rgba(46,139,255,.10);
  transform: translateY(-2px);
}
.related-list ul li a {
  display: block;
  padding: 14px 16px;
  font-size: 15px; color: #334;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.related-list ul li a::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  margin-right: 8px; vertical-align: 2px;
}

/* ---------- 吸底按钮：默认隐藏，仅移动端显示 ---------- */
.sticky-cta { display: none; }

/* ---------- 移动端：字体≥17px + 吸底“预约评估” ---------- */
@media screen and (max-width: 767px) {
  .article-view .news-title-h1 { font-size: 22px; }   /* 小屏标题适当收敛 */
  .article-view .newstext,
  .article-view .newstext p,
  .article-view .newstext div,
  .article-view .newstext span,
  .article-view .newstext li {
    font-size: 17px !important;   /* 覆盖正文内联小字号 */
    line-height: 1.9;
  }
  .related-list ul { grid-template-columns: 1fr; }

  .sticky-cta {
    display: block;
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 999;
  }
  .sticky-cta a {
    display: block;
    text-align: center;
    padding: 13px 0;
    font-size: 17px; font-weight: bold; color: #fff;
    background: linear-gradient(90deg, var(--brand), #5aa8ff);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(46,139,255,.35);
  }
  body { padding-bottom: 72px; }   /* 防止吸底按钮遮挡页脚内容 */
}

/* ============================================================
   列表页美化 Phase 2
   （图集/视频/下载/商城/文字列表/留言表单，纯 CSS 覆盖）
   ============================================================ */

/* ---------- 通用：pics/pics-fm 直挂 ul#tab 页面的栏目标题左色块 ---------- */
article .pics > ul[id="tab"] > li.tab-current,
.pics-fm > ul[id="tab"] > li.tab-current {
  position: relative;
  padding-left: 14px !important;
  font-weight: bold;
}
article .pics > ul[id="tab"] > li.tab-current::before,
.pics-fm > ul[id="tab"] > li.tab-current::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 20px; border-radius: 3px;
  background: var(--brand);
}

/* ---------- 通用分页（未加 art-pager 的 .pagelist 同样生效） ---------- */
.pagelist { margin: 20px 0 10px; text-align: center; }
.pagelist a, .pagelist span, .pagelist .current {
  display: inline-block;
  min-width: 36px; padding: 6px 12px; margin: 0 4px;
  border-radius: 999px;
  font-size: 14px; color: #445; line-height: 1.6;
  background: #fff;
  box-shadow: 0 2px 8px rgba(46,139,255,.08);
  transition: all .2s;
}
.pagelist a:hover { background: var(--warm); color: #fff; }
.pagelist .current,
.pagelist a.current {
  background: var(--brand) !important;
  color: #fff !important;
  cursor: default;
}
/* 易优分页当前页 class 实际输出为 .cur（非 .current），补充覆盖 */
.pagelist .cur,
.pagelist a.cur,
.art-pager .cur,
.art-pager a.cur {
  background: var(--brand) !important;
  color: #fff !important;
  cursor: default;
}

/* ---------- 图集列表 lists_images.htm：图片网格 4/2/1 ----------
   原模板 li 为 20% 浮动五列，需复位 width/float 后再套 grid */
.pics-fm .pic-list-img ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pics-fm .pic-list-img ul li {
  width: auto !important; float: none !important;
  height: auto !important; margin: 0 !important;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(46,139,255,.08);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.pics-fm .pic-list-img ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pics-fm .pic-list-img li a {
  display: block;
  margin: 0 !important;
}
.pics-fm .pic-list-img li i {
  display: block; overflow: hidden;
  height: auto; line-height: 0;
}
.pics-fm .pic-list-img li i img {
  width: 100%; height: 160px;
  object-fit: cover; display: block;
  transition: transform .3s;
}
.pics-fm .pic-list-img li:hover i img { transform: scale(1.06); }
.pics-fm .pic-list-img li span {
  display: block; padding: 10px 12px;
  font-size: 14px; color: #334; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media screen and (max-width: 1024px) {
  .pics-fm .pic-list-img ul { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 767px) {
  .pics-fm .pic-list-img ul { grid-template-columns: 1fr; }
}

/* ---------- 视频列表 lists_media.htm：视频卡片 3/2/1 + 播放键 ----------
   原模板 li 为 25% 浮动定高 220px，需复位后再套 grid */
article .pics .videos-list ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
article .pics .videos-list ul li {
  width: auto !important; float: none !important;
  height: auto !important; margin: 0 !important;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(46,139,255,.08);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
article .pics .videos-list ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
article .pics .videos-list li a {
  display: block;
  margin: 0 !important; border: none !important;
}
article .pics .videos-list li i {
  position: relative;
  display: block; overflow: hidden;
  height: auto; line-height: 0;
}
article .pics .videos-list li i img {
  width: 100%; height: 170px;
  object-fit: cover; display: block;
  transition: transform .3s;
}
article .pics .videos-list li:hover i img { transform: scale(1.06); }
article .pics .videos-list li i::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/22px no-repeat;
  border-radius: 50%;
  transition: background-color .2s, transform .2s;
}
article .pics .videos-list li:hover i::after {
  background-color: var(--brand);
  transform: translate(-50%, -50%) scale(1.1);
}
article .pics .videos-list li h2 {
  background: none;
  font-size: 15px; line-height: 1.5;
  padding: 10px 12px 4px;
  height: 2.9em;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
article .pics .videos-list li p {
  padding: 0 12px 12px; margin: 0;
  font-size: 12px; color: #9aa7c7;
  display: flex; justify-content: space-between;
}
@media screen and (max-width: 1024px) {
  article .pics .videos-list ul { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 767px) {
  article .pics .videos-list ul { grid-template-columns: 1fr; }
}

/* ---------- 下载列表 lists_download.htm：横向下载卡 ---------- */
.download-list ul li {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 16px;
  align-items: center;
  width: auto; float: none; overflow: visible;
  padding: 16px 140px 16px 16px;   /* 右侧给下载按钮留位 */
  margin: 0 0 14px;
  background: #f6f9ff;
  border-radius: var(--radius);
  transition: background .2s, box-shadow .2s, transform .2s;
}
.download-list ul li:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.download-list li i {
  grid-column: 1; grid-row: 1 / span 4;
  display: block; overflow: hidden;
  border-radius: 12px;
}
.download-list li i img {
  width: 100%; height: 100px;
  object-fit: cover; display: block;
}
.download-list li h3,
.download-list li p,
.download-list li .down-info { grid-column: 2; }
.download-list li h3 { font-size: 16px; margin: 0 0 6px; }
.download-list li h3 a { color: #223; }
.download-list li h3 a:hover { color: var(--brand); }
.download-list li p {
  font-size: 13px; color: #778; line-height: 1.6;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.download-list .down-info { font-size: 12px; color: #9aa7c7; }
.download-list .down-info font { color: var(--warm) !important; }
.download-list .down-bth {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
}
.download-list .down-bth a.btn {
  display: inline-block;
  padding: 8px 22px;
  font-size: 14px; color: #fff !important;
  background: linear-gradient(90deg, var(--brand), #5aa8ff) !important;
  border: none !important;
  border-radius: 999px;
  transition: box-shadow .2s;
}
.download-list .down-bth a.btn:hover {
  box-shadow: 0 6px 16px rgba(46,139,255,.35);
}
@media screen and (max-width: 767px) {
  .download-list ul li {
    grid-template-columns: 100px 1fr;
    padding: 14px;
  }
  .download-list .down-bth {
    position: static;
    transform: none;
    grid-column: 2;
    margin-top: 8px;
  }
}

/* ---------- 商城列表 lists_product.htm：商品卡片 4/2/1 ----------
   原模板 li 为 25% 浮动四列、a 有边距边框，需复位后再套 grid */
.pics-list-price ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pics-list-price ul li {
  width: auto !important; float: none !important;
  height: auto !important; margin: 0 !important;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(46,139,255,.08);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.pics-list-price ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pics-list-price li a {
  display: block; overflow: hidden;
  margin: 0 !important; border: none !important; padding-bottom: 0 !important;
}
.pics-list-price li i {
  display: block; overflow: hidden;
  height: auto; line-height: 0; background: transparent;
}
.pics-list-price li i img {
  width: 100%; height: 160px;
  object-fit: cover; display: block;
  transition: transform .3s;
}
.pics-list-price li:hover i img { transform: scale(1.06); }
.pics-list-price li h2 {
  font-size: 15px; line-height: 1.5;
  padding: 10px 12px 0;
  height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pics-list-price li p {
  font-size: 12px; color: #9aa7c7;
  padding: 0 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pics-list-price li .price-area {
  display: inline-block;
  padding: 6px 12px 14px;
  font-size: 18px; font-weight: bold; color: #ff5b5b;
}
.pics-list-price li .price-area em { font-style: normal; font-size: 13px; }
.pics-list-price li .pics-btn {
  float: right;
  margin: 8px 12px;
  padding: 6px 14px;
  font-size: 13px; color: #fff;
  background: linear-gradient(90deg, var(--brand), #5aa8ff);
  border-radius: 999px;
}
@media screen and (max-width: 1024px) {
  .pics-list-price ul { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 767px) {
  .pics-list-price ul { grid-template-columns: 1fr; }
}

/* ---------- 文字列表 lists_article_list.htm ---------- */
.wztitle-list ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px dashed #eef1f8;
  border-radius: 8px;
  transition: background .2s;
}
.wztitle-list ul li:hover { background: #f6f9ff; }
.wztitle-list ul li a {
  font-size: 15px; color: #334;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wztitle-list ul li a::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  margin-right: 8px; vertical-align: 2px;
}
.wztitle-list ul li a:hover { color: var(--brand); }
.wztitle-list ul li span {
  order: 2;
  flex-shrink: 0;
  margin-left: 12px;
  font-size: 13px; color: #9aa7c7;
}

/* ---------- 留言/预约表单 lists_guestbook*.htm ---------- */
.pics-fm .layui-form { max-width: 760px; margin: 10px auto; }
.pics-fm .layui-form-label { font-weight: bold; color: #334; }
.pics-fm .layui-input,
.pics-fm .layui-textarea,
.pics-fm .layui-input-block select {
  border-radius: 10px !important;
  border-color: #e3e9f5 !important;
  transition: border-color .2s, box-shadow .2s;
}
.pics-fm .layui-input:focus,
.pics-fm .layui-textarea:focus,
.pics-fm .layui-input-block select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(46,139,255,.12);
  outline: none;
}
.pics-fm .layui-form-radio,
.pics-fm .layui-form-checkbox { margin: 4px 10px 4px 0; }
.pics-fm .layui-btn {
  background: linear-gradient(90deg, var(--brand), #5aa8ff) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0 28px !important;
  height: 40px !important;
  line-height: 40px !important;
  font-size: 15px !important;
  transition: box-shadow .2s;
}
.pics-fm .layui-btn:hover { box-shadow: 0 6px 16px rgba(46,139,255,.35); }
.pics-fm .layui-btn-primary {
  background: #fff !important;
  color: #667 !important;
  border: 1px solid #e3e9f5 !important;
}
@media screen and (max-width: 767px) {
  .pics-fm .layui-input,
  .pics-fm .layui-textarea { width: 100% !important; }
  .pics-fm .layui-form-label {
    float: none; display: block;
    width: auto !important;
    text-align: left;
    padding: 0 0 6px;
  }
  .pics-fm .layui-input-block { margin-left: 0 !important; }
}

/* ============================================================
   内容页美化 Phase 3（view_images / view_download / view_media）
   ============================================================ */

/* ---------- 图集详情：Swiper 相册圆角 ---------- */
.article-view .mySwiper2 {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-view .mySwiper .swiper-slide {
  border-radius: 8px;
  overflow: hidden;
}

/* ---------- 下载详情：下载地址按钮 ---------- */
.article-view .share .xiazai a {
  display: inline-block;
  padding: 8px 20px; margin: 4px 6px 4px 0;
  font-size: 14px; color: #fff;
  background: linear-gradient(90deg, var(--brand), #5aa8ff);
  border-radius: 999px;
  transition: box-shadow .2s;
}
.article-view .share .xiazai a:hover {
  box-shadow: 0 6px 16px rgba(46,139,255,.35);
}

/* ---------- 上一篇/下一篇：双卡片（view_article/images/download 通用） ---------- */
.info-pre-next ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.info-pre-next ul li {
  background: #f6f9ff;
  border-radius: 12px;
  overflow: hidden;
  transition: background .2s, transform .2s;
}
.info-pre-next ul li:hover {
  background: rgba(46,139,255,.10);
  transform: translateY(-2px);
}
.info-pre-next ul li a {
  display: block;
  padding: 14px 16px;
  overflow: hidden;
}
.info-pre-next ul li i {
  float: left;
  width: 86px;
  margin-right: 12px;
  position: relative;
}
.info-pre-next ul li i img {
  width: 86px; height: 64px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.info-pre-next ul li i em {
  position: absolute; left: 0; top: 0;
  font-size: 11px; font-style: normal; color: #fff;
  background: var(--brand);
  border-radius: 8px 0 8px 0;
  padding: 2px 8px;
}
.info-pre-next ul li h2 {
  font-size: 15px; color: #334;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.info-pre-next ul li p {
  font-size: 12px; color: #9aa7c7; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media screen and (max-width: 767px) {
  .info-pre-next ul { grid-template-columns: 1fr; }
}

/* ---------- 视频详情 view_media.htm（pintuer 布局，轻量覆盖） ---------- */
.jw-video {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.video-period-list li a {
  border-radius: 8px;
  transition: background .2s;
}
.video-period-list li a:hover { background: rgba(46,139,255,.15); }
.video-detail .tab-nav li.active a {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.sidebar-r .title-l h2 {
  position: relative;
  padding-left: 14px;
  font-weight: bold;
}
.sidebar-r .title-l h2::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 20px; border-radius: 3px;
  background: var(--brand);
}
.list-post-x .thumb-md {
  border-radius: 12px;
  overflow: hidden;
}
.list-post-x .media-body h3 a { transition: color .2s; }
.list-post-x .media-body h3 a:hover { color: var(--brand); }
