.slideshow {
    height: 400px;
    object-fit: cover;
}

/* 整站容器收窄到 1200px（2026-10-20 运维调整） */
.container { max-width: 1200px; }

/* ===== 资料/图集附件下载区增强（2026-10-29 v2） ===== */
.zb-attachments ul { list-style: none; padding-left: 0; margin: 0; }
.zb-attachments li { margin: 8px 0; }
.zb-att { display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
          background: #f6f8fb; border: 1px solid #e3e8ef; border-radius: 10px; padding: 10px 14px; }
.zb-ico { font-size: 22px; line-height: 1; }
.ico-pdf { color: #e2483d; }
.ico-doc, .ico-docx { color: #2b6cb0; }
.ico-xls, .ico-xlsx { color: #1f8a4c; }
.ico-ppt, .ico-pptx { color: #d97706; }
.ico-zip, .ico-rar { color: #6b7280; }
.ico-txt { color: #8a6d3b; }
.ico-file { color: #6b7280; }
.zb-name { font-weight: 600; color: #1f2937; flex: 1 1 auto; min-width: 160px; word-break: break-all; }
/* 加 !important 压过页面 .content a 等链接色规则，否则按钮文字会被染成底色同色而看不见 */
.zb-btn { text-decoration: none !important; display: inline-block; font-size: 13px; font-weight: 600;
          line-height: 1.4; padding: 5px 12px; border-radius: 6px; border: 1px solid transparent;
          white-space: nowrap; cursor: pointer; }
.zb-dl { background: #C8102E !important; color: #fff !important; }
.zb-dl:hover { background: #A50D26 !important; color: #fff !important; }
.zb-prev { background: #fff !important; color: #C8102E !important; border-color: #C8102E !important; }
.zb-prev:hover { background: #FDEDEF !important; color: #A50D26 !important; }

/* ===== 通知公告栏目（scode=34） ===== */
.notice-intro{background:#FDF5F6;border:1px solid #F5D0D6;border-left:4px solid #C8102E;
  border-radius:6px;padding:12px 16px;color:#3a4a63;font-size:14px;line-height:1.7}
.notice-intro i{color:#C8102E}

/* ===== 政务红视觉增强（2026-11-03，可整段删除回滚） ===== */
.blk-head { position: relative; }
/* 标题下方红色短线，与左侧竖条呼应 */
.blk-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 88px; height: 2px;
  background: var(--brand);
}
.blk-head h2::before {
  width: 4px !important;
  height: 18px !important;
  border-radius: 2px;
  background: var(--brand) !important;
}
/* 新闻标签页头部同步装饰 */
.nt-head { position: relative; }
.nt-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 88px; height: 2px;
  background: var(--brand);
}
/* 导航项 hover/激活时加底部亮条 */
.mainnav-list > li > a { position: relative; }
.mainnav-list > li > a.active::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 6px; width: 22px; height: 3px;
  background: #fff; border-radius: 2px; opacity: .9;
}

/* ===================== L3 门户化结构（2026-11-03，可整段删除回滚） ===================== */

/* 首屏服务直通车 */
.svc-wrap { margin-top: 12px; }
.svc-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.svc-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}
.svc-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 4px 15px;
  text-decoration: none;
}
.svc-bar i {
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  font-size: 20px;
  border-radius: 50%;
  background: var(--brand-3);
  color: var(--brand);
  transition: all .22s;
}
.svc-bar span { font-size: 14px; color: var(--txt); white-space: nowrap; }
.svc-bar a:hover i {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, .28);
}
.svc-bar a:hover span { color: var(--brand); }

/* 列表密度与标题栏底色的覆盖已移入 home.css 末尾（加载顺序决定）*/

@media (max-width: 991.98px) {
  .svc-bar ul { grid-template-columns: repeat(4, 1fr); }
  .svc-bar li:nth-child(n+5) { border-top: 1px solid var(--line); }
  .svc-bar a { padding: 13px 4px 12px; gap: 6px; }
  .svc-bar i { width: 40px; height: 40px; line-height: 40px; font-size: 17px; }
}
@media (max-width: 575.98px) {
  .svc-bar span { font-size: 13px; }
}

/* 手机端底部固定导航条（原 Bootstrap bg-info 青色，改品牌红） */
.bg-brand { background-color: var(--brand) !important; }

/* 防横向溢出：网格项允许收缩，长文本不再撑破容器 */
.svc-bar { overflow: hidden; }
.svc-bar ul > li { min-width: 0; }
.svc-bar a { min-width: 0; }
.svc-bar span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== 顶栏江西各设区市天气（2026-11-03，可整段删除回滚） =====================
   数据由 /root/weather_fetch.php 每 30 分钟抓取，输出 static/data/weather.json
   配色全部取自站点变量：--brand 主红 / --txt 正文 / --txt-2 次级 / --line 分隔线 */

/* 左右两侧定宽不压缩，把剩余空间让给中间的天气栏 */
.topbar .tb-left,
.topbar .tb-right { flex: 0 0 auto; white-space: nowrap; }

.tb-weather {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  margin: 0 12px;
  overflow: hidden;
}
.tb-weather .tbw-label {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--brand);
  opacity: .8;
}

.tbw-view {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
/* 两端淡出，避免文字被硬切成两半 */
.tbw-view::before,
.tbw-view::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 30px;
  z-index: 2;
  pointer-events: none;
}
.tbw-view::before { left: 0;  background: linear-gradient(90deg,  #f2f6fa 0%, rgba(242,246,250,0) 100%); }
.tbw-view::after  { right: 0; background: linear-gradient(270deg, #f2f6fa 0%, rgba(242,246,250,0) 100%); }

.tbw-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.tbw-track.is-rolling {
  animation-name: tbwMove;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes tbwMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* 鼠标移上去暂停，方便看清 */
.tbw-view:hover .tbw-track { animation-play-state: paused; }

.tbw-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  position: relative;
}
/* 项间细分隔线 */
.tbw-item + .tbw-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 10px;
  background: var(--line);
}

.tbw-city { color: var(--txt); font-weight: 600; }
.tbw-item i { font-size: 13px; color: var(--brand); opacity: .72; }
.tbw-desc { color: var(--txt-2); }
.tbw-temp { color: var(--brand); font-weight: 600; }

/* 中等屏（992-1199）：顶栏空间变窄，字号与间距整体收一档 */
@media (max-width: 1199.98px) {
  .tb-weather { margin: 0 10px; gap: 5px; }
  .tbw-item { padding: 0 8px; font-size: 12px; }
  .tbw-city { font-size: 12px; }
  .tbw-item i { font-size: 12px; }
}

/* 窄屏（<992）：顶栏左右两侧已占满，天气栏无容身空间，隐藏以免挤压变形 */
@media (max-width: 991.98px) {
  .tb-weather { display: none; }
}
