/* ==========================================================================
   首页 + 公共头部样式（cms.usa.jjsz.cn）2026-10-15
   参考演示模板：xunruicms「协会/机构」蓝色模板
   插入位置：template/default/css/home.css（head.html 已引入）
   ========================================================================== */

:root {
  --brand: #1a5fa8;
  --brand-2: #2f86d4;
  --brand-3: #eaf3fc;
  --line: #e4e9f0;
  --txt: #2c3440;
  --txt-2: #6b7684;
  --txt-3: #9aa4b0;
}

body { color: var(--txt); }

/* ================= 顶部信息条 ================= */
.topbar {
  background: #f2f6fa;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--txt-2);
  height: 38px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}

.tb-left i { color: var(--brand-2); margin-right: 4px; }

.tb-right { display: flex; align-items: center; gap: 10px; }
.tb-right em { color: #cfd8e3; font-style: normal; }
.tb-right a { color: var(--txt-2); text-decoration: none; }
.tb-right a:hover { color: var(--brand); }
.tb-right i { color: var(--brand-2); margin-right: 3px; }

/* ================= 头部（LOGO + 热线 + 搜索） ================= */
.sitehead { background: #fff; }

.sitehead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: block;
  flex: 0 0 auto;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-text strong {
  font-size: 25px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 2px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text small {
  font-size: 12px;
  color: var(--txt-3);
  letter-spacing: .5px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.head-tools { display: flex; align-items: center; gap: 22px; }

.head-hotline { display: flex; align-items: center; gap: 10px; }

.head-hotline i { font-size: 26px; color: var(--brand-2); }

.head-hotline div { display: flex; flex-direction: column; line-height: 1.25; }
.head-hotline small { font-size: 12px; color: var(--txt-3); }
.head-hotline strong {
  font-size: 21px;
  color: var(--brand);
  font-weight: 700;
  font-family: Arial, "Helvetica Neue", sans-serif;
}

.head-search { display: flex; height: 40px; }

.head-search input {
  width: 190px;
  border: 2px solid var(--brand-2);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  color: var(--txt);
}

.head-search input::placeholder { color: #b6c0cc; }

.head-search button {
  border: none;
  background: var(--brand-2);
  color: #fff;
  padding: 0 16px;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .2s;
}

.head-search button:hover { background: var(--brand); }

.navtoggle {
  border: 1px solid var(--brand-2);
  background: #fff;
  color: var(--brand);
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ================= 主导航（蓝色） ================= */
.mainnav {
  background: linear-gradient(180deg, var(--brand-2) 0%, var(--brand) 100%);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.mainnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.mainnav-list > li > a {
  display: block;
  padding: 0 24px;
  height: 50px;
  line-height: 50px;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s;
  position: relative;
}

.mainnav-list > li > a:hover,
.mainnav-list > li > a.active {
  background: rgba(0, 0, 0, .18);
}

.mainnav-list > li > a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  background: #ffd54a;
  border-radius: 2px 2px 0 0;
}

/* ================= 1. 轮播 + 标签页 ================= */
.idx-hero { margin-top: 18px; }

.hero {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  height: 388px;
  background: linear-gradient(135deg, #cfe3f7 0%, #9dc4e8 45%, #6ea8da 100%);
}

.hero .swiper-slide { height: 388px; }

.hero .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 22px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .62) 100%);
  color: #fff;
  font-size: 15px;
}

.hero .swiper-button-prev,
.hero .swiper-button-next {
  width: 38px;
  height: 46px;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  border-radius: 3px;
}

.hero .swiper-button-prev::after,
.hero .swiper-button-next::after { font-size: 16px; font-weight: 700; }

.hero .swiper-pagination-bullet { background: #fff; opacity: .55; }
.hero .swiper-pagination-bullet-active { opacity: 1; width: 20px; border-radius: 3px; }

/* ---- 右侧标签页 ---- */
.newstab {
  height: 388px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #f7fafd;
  padding-right: 12px;
}

.nt-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nt-tabs li {
  padding: 13px 14px;
  font-size: 15px;
  color: var(--txt-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .18s;
  white-space: nowrap;
}

.nt-tabs li:hover { color: var(--brand-2); }

.nt-tabs li.on {
  color: var(--brand);
  font-weight: 700;
  border-bottom-color: var(--brand-2);
}

.nt-more {
  font-size: 13px;
  color: var(--txt-3);
  text-decoration: none;
  white-space: nowrap;
}

.nt-more:hover { color: var(--brand-2); }

.nt-body { flex: 1; overflow: hidden; position: relative; }

.nt-pane {
  display: none;
  padding: 8px 14px;
  height: 100%;
  overflow-y: auto;
}

.nt-pane.on { display: block; }

.nt-item {
  display: flex;
  align-items: center;
  padding: 9px 2px;
  border-bottom: 1px dashed #f0f2f5;
  text-decoration: none;
  color: var(--txt);
  font-size: 14px;
}

.nt-item:last-child { border-bottom: none; }

.nt-item i { color: #c3cdd8; font-size: 11px; margin-right: 7px; flex: 0 0 auto; }

.nt-item .nt-t {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nt-item .nt-d { color: var(--txt-3); font-size: 12px; margin-left: 10px; flex: 0 0 auto; }

.nt-item:hover .nt-t { color: var(--brand-2); }

/* 首条突出显示 */
.nt-pane .nt-item:first-child {
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid #eef3f9;
  padding-top: 4px;
  padding-bottom: 12px;
}

.nt-pane .nt-item:first-child .nt-t { white-space: normal; line-height: 1.6; }

/* ================= 2. 中部横幅 ================= */
.idx-strip-wrap { margin-top: 18px; }

.idx-strip {
  border-radius: 6px;
  overflow: hidden;
  height: 128px;
  background: linear-gradient(90deg, #eaf3fc 0%, #d6e8f8 100%);
}

.idx-strip .swiper-slide img { width: 100%; height: 128px; object-fit: cover; display: block; }
.idx-strip .strip-pg { bottom: 6px; }

/* ================= 3/4. 内容区块 ================= */
.idx-sec { margin-top: 26px; }

.blk {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
}

.blk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 50px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9fe 100%);
}

.blk-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  padding-left: 12px;
}

.blk-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 17px;
  background: var(--brand-2);
  border-radius: 2px;
}

.blk-head h2 i { color: var(--brand-2); font-size: 15px; }

.blk-more {
  font-size: 13px;
  color: var(--txt-3);
  text-decoration: none;
  white-space: nowrap;
}

.blk-more:hover { color: var(--brand-2); }

/* ---- 文字列表 ---- */
.txtlist {
  list-style: none;
  margin: 0;
  padding: 10px 14px 14px;
}

.txtlist li { border-bottom: 1px dashed #f0f2f5; }
.txtlist li:last-child { border-bottom: none; }

.txtlist li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  text-decoration: none;
  color: var(--txt);
  font-size: 14px;
}

.txtlist li a span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.txtlist li a em {
  font-style: normal;
  font-size: 12px;
  color: var(--txt-3);
  flex: 0 0 auto;
}

.txtlist li a:hover span { color: var(--brand-2); }

/* ---- 关于我们 ---- */
.about-body { display: flex; gap: 18px; padding: 16px; }

.about-pic {
  flex: 0 0 240px;
  height: 168px;
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(135deg, #cfe3f7, #8fbde4);
}

.about-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-txt { flex: 1; min-width: 0; }

.about-txt h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
}

.about-txt p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--txt-2);
  text-indent: 2em;
}

.about-btn {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--brand-2);
  border: 1px solid #b9d6f0;
  border-radius: 3px;
  text-decoration: none;
  background: var(--brand-3);
}

.about-btn:hover { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }

/* ================= 5. 快捷入口 ================= */
.qk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 20px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--txt);
  transition: all .2s;
  height: 100%;
}

.qk i { font-size: 26px; color: var(--brand-2); margin-bottom: 4px; transition: transform .2s; }
.qk strong { font-size: 15px; color: var(--brand); }
.qk small { font-size: 12px; color: var(--txt-3); }

.qk:hover { border-color: var(--brand-2); box-shadow: 0 4px 14px rgba(47, 134, 212, .16); }
.qk:hover i { transform: translateY(-3px); }

/* ================= 响应式 ================= */
@media (max-width: 991.98px) {
  .hero, .hero .swiper-slide { height: 240px; }
  .newstab { height: auto; margin-top: 12px; }
  .nt-body { max-height: 320px; }
  .mainnav-list > li > a { padding: 0 13px; font-size: 15px; height: 44px; line-height: 44px; }
  .mainnav-list { padding: 4px 0; }
  .about-body { flex-direction: column; }
  .about-pic { flex: none; width: 100%; height: 160px; }
  .brand-text strong { font-size: 20px; letter-spacing: 1px; }
  .brand-mark { width: 46px; height: 46px; }
}

@media (max-width: 575.98px) {
  .hero, .hero .swiper-slide { height: 190px; }
  .brand-text small { display: none; }
  .sitehead-inner { padding: 10px 12px; gap: 10px; }
}

/* ---- 轮播（文章配图版）标题条 ---- */
.hero-cap { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hero-cap .hero-t { font-size: 16px; font-weight: 600; line-height: 1.5; }
.hero-cap .hero-d { font-size: 12px; opacity: .8; flex: 0 0 auto; }

/* ---- 中部横幅：文章配图 + 标题条 ---- */
.idx-strip .strip-cap { padding: 28px 16px 8px; }
.idx-strip .strip-cap .hero-t { font-size: 14px; font-weight: 600; }

/* ================= 单页（网站简介 / 联系我们）================= */
.art-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px 26px;
}

.art-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  text-align: center;
  margin: 0 0 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.art-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--brand-2);
  border-radius: 2px;
}

.art-card .content { padding-top: 16px; }

.art-card .content p, .art-card .content div {
  font-size: 14.5px;
  line-height: 2.05;
  color: #3b4552;
  margin-bottom: 12px;
}

.art-card .content p { text-indent: 2em; }

.art-card .content strong { color: var(--brand); }

/* ---- 联系方式卡片 ---- */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  padding-bottom: 16px;
}

.contact-card h3 {
  margin: 0;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, var(--brand-2) 0%, var(--brand) 100%);
  display: flex;
  align-items: center;
  gap: 7px;
}

.contact-card ul {
  list-style: none;
  margin: 0;
  padding: 12px 16px 6px;
}

.contact-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px dashed #f0f2f5;
  font-size: 13.5px;
  color: #4a5462;
  line-height: 1.7;
  word-break: break-all;
}

.contact-card li:last-child { border-bottom: none; }

.contact-card li i {
  color: var(--brand-2);
  font-size: 14px;
  width: 16px;
  text-align: center;
  margin-top: 4px;
  flex: 0 0 auto;
}

.contact-card li span { flex: 1; min-width: 0; }

.contact-btn {
  display: block;
  margin: 8px 16px 0;
  padding: 9px 0;
  text-align: center;
  font-size: 14px;
  color: #fff;
  background: var(--brand-2);
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s;
}

.contact-btn:hover { background: var(--brand); color: #fff; }

.contact-btn.ghost {
  background: #fff;
  color: var(--brand-2);
  border: 1px solid #b9d6f0;
}

.contact-btn.ghost:hover { background: var(--brand-3); color: var(--brand); }

@media (max-width: 991.98px) {
  .art-card { padding: 18px 16px 20px; }
  .contact-card { margin-top: 16px; }
}

/* ================= 友情链接 ================= */
.friendlinks {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 13px;
}
.friendlinks .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
}
.friendlinks .fl-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand);
  margin-right: 14px;
  flex: 0 0 auto;
}
.friendlinks a {
  color: #6b7685;
  text-decoration: none;
  padding: 3px 12px;
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: all .2s;
  white-space: nowrap;
}
.friendlinks a:hover {
  color: #fff;
  background: var(--brand-2);
  border-color: var(--brand-2);
}

/* ================= 搜索筛选条 ================= */
.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
}
.search-bar .form-control {
  width: auto;
  min-width: 200px;
  flex: 1 1 200px;
}
.search-bar select.form-control {
  min-width: 130px;
  flex: 0 0 auto;
  cursor: pointer;
  color: #3b4552;
}
.search-bar .btn-info {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .search-bar .form-control,
  .search-bar select.form-control,
  .search-bar .btn-info {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* ================= 栏目导航卡片 ================= */
.idx-cols { margin-top: 28px; }
.col-card {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20,50,90,.10);
  transition: transform .25s, box-shadow .25s;
}
.col-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(20,50,90,.18);
}
.col-pic {
  height: 150px;
  background-size: cover;
  background-position: center;
}
.col-info {
  padding: 14px 16px 16px;
}
.col-info h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
}
.col-info p {
  margin: 0;
  font-size: 12.5px;
  color: #7a8595;
}

/* 整站统一宽度：顶部条、导航蓝条、栏目横幅、页脚 全部收窄至 1200px，与正文对齐（2026-10-20） */
.topbar,
.mainnav,
.page-top,
.footer {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
