:root {
  --brown: #9e6f3e;
  --brown-dark: #784e2a;
  --tan: #c49247;
  --text: #383838;
  --text-gray: #a6a6a6;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #fff;
  /* 2026-10-27 首页改版全局微调：默认字体改为微软雅黑优先（用户指定） */
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
/* .wrap：BS5 .container 等价物（响应式宽度与 bootstrap 5.3.3 完全一致；
   保留 .wrap 类名是为了零模板改动兼容全站既有 DOM，语义等同 container） */
.wrap { width: 100%; padding-right: calc(var(--bs-gutter-x, .75rem) * .5); padding-left: calc(var(--bs-gutter-x, .75rem) * .5); margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .wrap { max-width: 540px; } }
@media (min-width: 768px) { .wrap { max-width: 720px; } }
@media (min-width: 992px) { .wrap { max-width: 960px; } }
@media (min-width: 1200px) { .wrap { max-width: 1140px; } }
@media (min-width: 1400px) { .wrap { max-width: 1320px; } }

/* ---------- 顶部功能条 ---------- */
.topbar { height: 30px; background: var(--brown); position: relative; z-index: 2; }
.topbar .wrap { height: 100%; display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.topbar .chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 10px;
  background: var(--brown-dark); border-radius: 10px;
  color: #fff; font-size: 12px;
}
.topbar .chip img { width: 13px; height: 15px; }
.topbar .links { color: #fff; font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- 横幅（440px，副标题已含在背景图中，仅叠加标题切图与搜索框） ---------- */
.banner {
    position: relative;
    height: 440px;
    background-image: url("../images/banner-main.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.banner .site-title {
    height: 100px;
    margin: 15px auto;
}
.banner .site-sublogo {
    max-width: 600px;
    margin: 15px auto;
}
.banner .search {
    display: flex;
    margin: 15px auto;
}
.banner .search input {
  width: 370px; height: 47px; border: 0; outline: none;
  padding: 0 20px; font-size: 16px; color: var(--text); /* 2026-10-27 全局微调：18→16px */
  border-radius: 24px 0 0 24px; background: #fff;
  font-family: inherit;
}
.banner .search input::placeholder { color: var(--text-gray); }
.banner .search button {
  width: 135px; height: 47px; border: 0; cursor: pointer;
  background: var(--brown); border-radius: 0 24px 24px 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff; font-size: 18px; font-family: inherit;
}
.banner .search button img { width: 30px; height: 30px; }

/* ---------- 导航 ---------- */
.nav.index { background: var(--brown-dark);}
/* ---------- 页头导航滚动固定（2026-11-27，参考州版；site.js 加 .sticky 类） ---------- */
.nav.index.sticky {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  transform: translateY(-10px); opacity: 0;
  animation: navFadeSlideIn .3s forwards;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .3);
}
@keyframes navFadeSlideIn {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.nav {width: 100%; box-shadow: 0 5px 15px rgba(0, 0, 0, .25); position: relative; z-index: 1; }
.nav .wrap { height: 100%; display: flex; gap: 12px; }
.nav.index a {
  padding: .5em 2em;
  flex: 1 0 auto;
}
.nav a {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.nav a.active,.nav.index a:hover { background: var(--brown); box-shadow: 0 0 10px rgba(0, 0, 0, .25); }

/* ---------- 小屏抽屉导航（BS5 Offcanvas，<992 由 d-lg-none / d-lg-block 切换） ---------- */
.mobile-navbar { background: var(--brown-dark); color: #fff; box-shadow: 0 5px 15px rgba(0, 0, 0, .25); position: relative; z-index: 1; }
.mobile-navbar .wrap { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-brand { font-size: 17px; font-weight: 700; letter-spacing: 1px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.menu-toggle { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; background: transparent; color: #fff; font-size: 15px; font-family: inherit; cursor: pointer; }
.menu-toggle:focus { outline: 2px solid #fff; outline-offset: 2px; }
.menu-bars { display: inline-block; box-sizing: border-box; width: 20px; height: 14px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; position: relative; }
.menu-bars::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: #fff; }
/* 抽屉面板宽度：BS5 规则是 .offcanvas.offcanvas-start(0,2,0) 且 width 取
   var(--bs-offcanvas-width)，直接写 .offcanvas-start{width}(0,1,0) 会被特异性压过。
   按 BS5 官方做法覆盖变量；320px 上限让 375 档仍能露出背景，不会占满整屏。 */
#siteNavOffcanvas { --bs-offcanvas-width: min(320px, 88vw); }
.offcanvas-header { border-bottom: 1px solid #ececec; }
.offcanvas-title { font-size: 18px; font-weight: 700; color: var(--brown-dark); }
.drawer-nav .drawer-link { display: block; padding: 14px 18px; font-size: 16px; color: #222; text-decoration: none; border-bottom: 1px solid #ececec; }
.drawer-nav .drawer-link:hover { background: #f6efe4; color: var(--brown-dark); }
.drawer-nav .drawer-link.active { background: var(--brown); color: #fff; }

/* ---------- 主体 ---------- */
.main { padding: 50px 0 0; }

/* 轮播 + 头条 */
.sec1 { display: flex; gap: 15px; }
/* 2026-09-23 优化意见(a)：轮播模块高度随 flex 与右侧"工作动态"等高；
   图片填满整卡，题注条浅色打底覆盖图内底部，dots 即图内右下 */
.carousel { width: 625px; flex: none; position: relative; min-height: 419px; overflow: hidden; }
.carousel .carousel-frame { position: absolute; inset: 0; }
.carousel .pic { width: 100%; height: 100%; display: block; object-fit: cover; }
.carousel .caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 70px; background: rgba(243, 243, 243, .95);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 15px; font-size: 20px; color: #000;
}
.carousel .caption .txt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; min-width: 0; margin-right: 15px; }
.carousel .dots { display: flex; gap: 8px; flex: none; }
.carousel .dots i { width: 10px; height: 10px; border-radius: 50%; background: #d8d8d8; cursor: pointer; }
.carousel .dots i.on { background: #e34242; }
.headline { width: 625px; flex: none; padding: 18px 20px 0; }
.headline h2 {
  font-size: 24px; font-weight: 700; color: var(--brown-dark);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.headline .intro {
  margin-top: 14px;
  font-size: 16px; line-height: 26px; color: #999;
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.headline .rows { margin-top: 16px; }
.headline .rows li { height: 41px; display: flex; align-items: center; gap: 10px; }
.headline .rows img { width: 10px; height: 10px; flex: none; }
.headline .rows .t { font-size: 16px; color: #222; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.headline .rows .d { margin-left: auto; font-size: 16px; color: #999; flex: none; }

/* 绿色大横幅 */
.green-banner { margin-top: 40px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.green-banner img { width: 1280px; height: 130px; display: block; }

/* 信息公开图标卡 */
.icon-grid { display: flex; flex-wrap: wrap; gap: 15px 20px; margin-top: 60px; }
.icon-grid .card {
  width: 193px; height: 100px; background: #f9f9f9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.icon-grid .card img { width: 32px; height: 32px; }
.icon-grid .card span { font-size: 16px; color: #000; }

/* 信息标签面板 */
.sec-tabs { display: flex; gap: 15px; margin-top: 60px; }
.tabpanel { width: 633px; background: #f9f9f9; }
.tabpanel + .tabpanel { margin-left: auto; }
.tabbar { height: 49px; display: flex; background: var(--tan); }
.tabbar span {
  width: 199px; margin-right: 18px; /* 标签间露出金色底，形成原稿的分段效果 */
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; color: #fff;
  cursor: pointer;
}
.tabbar span.active { background: var(--brown-dark); }
.tabbar span:last-child { margin-right: 0; }
.rows { padding: 26px 20px 0; }
/* 空态/占位时保持设计稿 6 行体量，避免面板塌陷（设计稿 rows 区 26+54*6=350px） */
.tabpanel .rows { min-height: 324px; }
/* 2026-09-23 优化意见(d)：信息公开两组 tab 列表样式统一——6 行节奏 54px、标题省略号、日期右对齐 */
/* 注：min-height 放在 .tabpane 上——pushinfo.js 会在模板空 ul 之后注入第二个 ul，
   若 min-height 放在空 ul 上会把该 tab 撑出 ~324px 空白（fix4 核验发现的回归，随手修正） */
.tabpanel .tabpane { min-height: 324px; }
.tabpanel .govpushinfo150203 { padding: 26px 20px 0; }
.tabpanel .govpushinfo150203 li { height: 54px; display: flex; align-items: center; justify-content: space-between; }
.tabpanel .govpushinfo150203 li a { font-size: 16px; color: #222; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tabpanel .govpushinfo150203 li a:hover { color: var(--brown); }
.tabpanel .govpushinfo150203 li span, .tabpanel .govpushinfo150203 li .rq { font-size: 16px; color: #999; flex: none; margin-left: 20px; }
.tabpanel .szfxx_index { padding: 26px 20px 0; box-sizing: border-box; }
.tabpanel .szfxx_index .lmsj { list-style: none; }
.tabpanel .szfxx_index .lmsj li { height: 54px; display: flex; align-items: center; justify-content: space-between; }
.tabpanel .szfxx_index .lmsj li a { font-size: 16px; color: #222; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tabpanel .szfxx_index .lmsj li a:hover { color: var(--brown); }
.tabpanel .szfxx_index .lmsj li span { font-size: 16px; color: #999; flex: none; margin-left: 20px; }
.rows li { height: 54px; display: flex; align-items: center; justify-content: space-between; }
.rows .t { font-size: 16px; color: #222; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rows .d { font-size: 16px; color: #999; margin-left: 20px; flex: none; }
.rows .empty { font-size: 16px; color: #999; height: 54px; display: flex; align-items: center; }

/* 三张卡 */
.triplet { display: flex; justify-content: space-between; margin-top: 45px; }
/* 2026-09-23 优化意见(e)：三卡统一圆角+淡阴影；card1 为真轮播容器（图内右下圆点，多帧时显示） */
.triplet .card1, .triplet .card2, .triplet .card3 { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.triplet .card1 { width: 370px; height: 150px; position: relative; }
.triplet .card1 .swiper { width: 100%; height: 100%; }
.triplet .card1 .swiper-slide img { width: 100%; height: 150px; object-fit: cover; display: block; }
.triplet .card1 .swiper-pagination { bottom: 8px; left: 0; width: 100%; height: 12px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-right: 12px; box-sizing: border-box; }
.triplet .card1 .swiper-pagination-bullet { background: #fff; opacity: .85; width: 9px; height: 9px; border-radius: 50%; }
.triplet .card1 .swiper-pagination-bullet-active { background: #e34242; opacity: 1; }
.triplet .card2, .triplet .card3 {
  height: 150px; display: flex; align-items: center; justify-content: center; gap: 20px;
  background: linear-gradient(135deg, #d8b98a, #c49247);
}
.triplet .card2 { width: 433px; }
.triplet .card3 { width: 440px; }
.triplet .card2 img { width: 80px; height: 80px; }
.triplet .card3 img { width: 60px; height: 60px; }
.triplet .txt2 { font-size: 24px; font-weight: 700; color: var(--brown-dark); line-height: 40px; }
.triplet .txt3 { font-size: 28px; font-weight: 700; color: #b05a2a; }

/* 勐海概况 + 二维码区 */
.overview { display: flex; gap: 22px; margin-top: 60px; }
/* 2026-09-23 优化意见(f)：左侧概况图文加浅色圆角底；右侧媒体矩阵每块背景+圆角修饰 */
.overview .left { width: 633px; flex: none; background: #f9f9f9; border-radius: 8px; padding: 14px 14px 10px; box-sizing: border-box; }
.overview .left img { width: 100%; height: auto; display: block; object-fit: cover; border-radius: 4px; }
.overview .desc { margin-top: 18px; font-size: 16px; line-height: 30px; color: var(--text); padding: 0 8px 8px; }
.overview .desc a { color: #4a7fc1; }
.overview .right { width: 625px; flex: none; }
.qr-row1 { display: flex; gap: 15px; }
.qr-wechat {
  width: 435px; height: 125px; background: #f9f9f9; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; gap: 15px;
  font-size: 16px; color: var(--text);
}
.qr-wechat img { width: 100px; height: 100px; }
.qr-weibo { width: 175px; height: 125px; background: #f9f9f9; border-radius: 8px; text-align: center; font-size: 14px; }
.qr-weibo img { width: 60px; height: 60px; margin-top: 8px; }
.qr-weibo .btns { display: flex; justify-content: center; gap: 6px; margin: 4px 0; }
.qr-weibo .btns i { font-style: normal; font-size: 12px; border: 1px solid #ddd; border-radius: 8px; padding: 1px 8px; }
.qr-gy {
  margin-top: 5px; height: 142px; background: var(--tan); border-radius: 8px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px; color: #fff;
}
.qr-gy .gy-title { font-size: 30px; font-weight: 700; line-height: 40px; }
.qr-gy .gy-title small { font-size: 14px; font-weight: 400; display: block; }
.qr-gy img.gy-qr { width: 120px; height: 120px; }
.qr-gy .gy-right { text-align: center; font-size: 14px; }
.qr-gy .gy-right img { width: 68px; height: 68px; display: block; margin: 0 auto 6px; }
.qr-row3 { display: flex; justify-content: space-between; margin-top: 10px; }
.qr-item {
  width: 200px; height: 195px; background: var(--tan); border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: #fff; font-size: 14px;
}
.qr-item img { width: 120px; height: 120px; }

/* 办事服务 */
.service { margin-top: 57px; text-align: center; }
.service .tabs { display: flex; justify-content: center; gap: 40px; }
.service .tabs span {
  width: 276px; height: 55px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .08);
  font-size: 20px; color: var(--brown-dark);
  cursor: pointer;
}
.service .tabs span img { width: 25px; height: 25px; }
.service .tabs span.active { background: var(--brown); color: #fff; }
.service .grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 10px; margin-top: 32px; }
.service .panel { display: none; }
.service .panel.on { display: block; }
.service .pill {
  width: 230px; height: 50px; background: #fff; border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 0, 0, .06);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 16px;
  margin: 0 5px 20px;
}
.service .pill img { width: 40px; height: 40px; }
.service .panel-tip { padding: 40px 0 60px; font-size: 16px; color: #999; }
.service .panel-tip a { color: var(--brown); }

/* ---------- 页脚 ---------- */
/* z-index 高于 .footer-tip(1)：展开面板的 z-index 只在 .footer 层叠上下文内生效，
   footer-tip 兄弟节点靠后会整体盖住页脚内容（下拉面板被拦腰遮挡的根因） */
.footer {background: var(--brown); overflow: visible; position: relative; z-index: 2; margin-top: 70px; }
/* ---------- 友情链接组（2026-11-24 对齐景洪 .gov-link-groups；勐海棕令牌版） ---------- */
/* 景洪 in_style.css 同源结构：分组胶囊 + 向上弹出面板；部门组 780px 三列宽面板规则在
   footer.ftl 模板内 style 块（与景洪同位，覆盖说明见该处注释）。
   色彩映射：景洪 --color-bg-000→#fff、--color-text-500→var(--text)、
   --color-theme-500→var(--brown-dark)、--color-theme-300/100→var(--brown)/浅棕。 */
.footer .gov-link-groups { gap: 0; padding-top: 15px; position: relative; }
.gov-link-groups .group-links {
  transform: translateY(-2em);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 9;
  bottom: 2em;
  max-height: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}
.gov-link-groups .group-links.show { max-height: 300px;border: 1px solid #efe3d0; }
.gov-link-groups .group-links ul {
  max-height: 300px; overflow-y: auto; position: relative;
  padding: .5rem 1rem; margin: 0; list-style: none;
}
.gov-link-groups .group-toggle {
  background-color: #fff;
  border: 1px solid #efe3d0;
  border-radius: .5em;
  min-width: 200px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
}
.gov-link-groups .group-toggle:hover { border-color: var(--brown); color: var(--brown-dark); }
.gov-link-groups a,
.gov-link-groups { color: var(--text); }
.gov-link-groups a {
  display: block; padding: .5em; line-height: 1.6;
  color: var(--text); text-decoration: none;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.gov-link-groups a:hover { color: var(--brown-dark); }
.gov-link-groups .link-group { max-width: 260px; flex: 1 0 auto; }
.gov-link-groups .group-links li:hover { background: #f6efe4; }
/* 箭头：纯 CSS 下箭头（景洪用 iconfont 字体图标；勐海主题无 iconfont 资产，同视觉等价实现，
   旋转语义与景洪 .iconfont.rotate 一致——展开时转成朝上） */
.gov-link-groups .gov-arrow {
  flex: none; width: 0; height: 0; margin-left: 8px;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--brown);
  transition: transform 0.3s ease;
}
.gov-link-groups .gov-arrow.rotate { transform: rotate(180deg); }
/* 旧 dd 体系退役说明：
.footer .dd { position: relative; flex: 1; }
.footer .box {
  width: 100%; height: 42px; background: #EBE0D1; border-radius: 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 12px 0 15px; font-size: 16px; /* 2026-10-27 全局微调：18→16px */
  cursor: pointer;
}
.footer .box img { width: 20px; height: 20px; }
.footer .dd-panel {
  /* 2026-11-05 修复点击穿透 */
  display: none; position: absolute; left: 0; bottom: 42px; z-index: 9;
  width: 320px; max-height: 300px; overflow-y: auto;
  background: #fff; border-radius: 4px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  padding: 14px 10px 10px;
  overscroll-behavior: contain; /* 面板滚轮到尽头不再 chaining 拖动页面，防滚动中 hover 丢失 */
}
/* 页脚位于文档最底部，面板向上展开（bottom 定位），向下展开会大半超出视口 */
.footer .dd:hover .dd-panel, .footer .dd.open .dd-panel { display: block; }
.footer .dd-panel .dept {
  display: block; height: 34px; line-height: 34px; padding: 0 10px;
  font-size: 14px; color: var(--text); border-radius: 4px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.footer .dd-panel .dept:hover { background: #f5eee4; color: var(--brown-dark); }
/* 2026-10-27 全局微调：信息卡片等高对齐（消除版权卡/备案卡参差不齐） */
.footer .info-row { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.footer .logo { width: 100px; height: 100px; margin-right: 40px; }
/* 2026-09-23 优化意见(g)：版权/备案信息块用 .1 透明白圆角底、宽度自适应、居中、14px、不加粗 */
.footer .col { font-size: 14px; line-height: 28px; color: #fff; flex: none; }
.footer .col b { font-weight: 400; margin-right: 2px; }
.footer .col1, .footer .col2 { background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 10px 26px; text-align: left; min-height: 132px; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; } /* 2026-10-27 全局微调：文字左对齐（等高保留） */
.footer .col2 .line { display: inline-flex; align-items: center; gap: 4px; }
.footer .col2 img { width: 20px; height: 20px; }
.footer .col2 .gap { display: inline-block; width: 28px; }
.footer .badges { margin-left: auto; display: flex; gap: 21px; align-items: center; }
.footer .badge-shield { width: 80px; height: 80px; }
.footer .badge-col { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.footer .badge-col img { width: 110px; height: 50px; }

.footer-tip { height: 30px; background: var(--brown-dark); position: relative; z-index: 1; }
.footer-tip p { text-align: center; line-height: 30px; font-size: 14px; color: rgba(255, 255, 255, .85); }

/* ===== 2026-09-02 老站装配模板对齐轮新增（block 116291/70/58）===== */
/* 专题专栏 banner：老站 block 116291 七帧 swiper 淡入（120px 高、8 秒、数字分页右下），
   设计稿通栏 130px 高，取 130 贴合本主题版心节奏 */
.mh-ztbanner .swiper { width: 1280px; height: 130px; overflow: hidden; border-radius: 8px; }
.mh-ztbanner .swiper-slide img { width: 100%; height: 130px; object-fit: cover; display: block; }
.mh-ztbanner .swiper-button-next,
.mh-ztbanner .swiper-button-prev { display: none; }
/* 2026-09-23 优化意见(c)：分页由数字块改圆点（图内右下） */
.mh-ztbanner .swiper-pagination { bottom: 8px; left: 0; height: 12px; padding-right: 15px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.mh-ztbanner .swiper-pagination-bullet { background: #fff; opacity: .85; width: 10px; height: 10px; border-radius: 50%; font-size: 0; }
.mh-ztbanner .swiper-pagination-bullet-active { background: #e34242; opacity: 1; }
/* 链接图片：老站 block 70 七图无缝匀速滚动（222x69，白底描边容器） */
.link-pics { margin-top: 45px; border: 1px solid #dcd4c7; padding: 8px 15px; background: #fff; }
.link-pics .swiper { overflow: hidden; }
.link-pics img { width: 222px; height: 69px; display: block; }
/* ===== 2026-10-27 首页改版全局优化（影响全站，用户授权） ===== */
/* 滚动条：主题色胶囊滑块（WebKit + Firefox） */
html *{ scrollbar-width: thin; scrollbar-color: var(--tan) #f5f1e8; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f5f1e8; }
::-webkit-scrollbar-thumb { background: var(--tan); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--brown); }
::-webkit-scrollbar-corner { background: #f5f1e8; }

/* 返回顶部悬浮按钮（元素由 site.js 注入） */
.back-top {
  position: fixed; right: 24px; bottom: 90px; z-index: 99;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--tan); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, visibility .25s, transform .25s, background .15s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--brown-dark); }

/* 子页面横幅：高度缩小 + 站名/副题图缩小并居中布局 + 搜索框居中下移（同步调整） */
.banner-inner { height: 242px; }
.banner-inner .site-title {
    height: 80px;
}
.banner-inner .site-sub {
    width: 350px;
    position: absolute;
    bottom: 15px;
    left: calc(50% - 400px);
}
.banner-inner .search {
    transform: translateX(50%);
}


/* ==========================================================================
   PART 3  内页组件（原 cms.css 正文规则：列表/详情/侧栏/面板/分页）
   ========================================================================== */
/* ---------- 内页容器与横幅 ---------- */
/* 内页容器沿用 .wrap 流式栅格（原 1200 定宽废弃，窄屏自动收缩） */
.main-list { padding: 60px 0 45px; }
.main-article { padding: 70px 0 34px; }
/* ---------- 栏目列表页：侧栏 + 列表面板 ---------- */
/* .wrap 只承担 BS5 container 职责（块级流），栅格全部交给 .row。
   切勿再给它设 display:flex：那会把 .row 降成 flex item，flex-basis:auto 按
   max-content 定宽——内容多则撑破容器（实测长文本时 row 达 6744px），内容少则
   不占满（实测 1400 档 row 仅 642px），只能靠手写 .row{width:100%} 补救（治标）。
   块级 .row 自动占满容器宽，这才是 BS5 的标准结构。 */
.main-inner .wrap { display: block; }
/* .row 保持 BS5 原生「不设 width」：块级元素自动占满 container 的 padding box，
   靠负 margin 与 container padding 对齐（手写 width:100% 反而让列宽少算 24px）。
   只补 min-width:0：万一上层被误改回 flex，flex item 也能收缩而不被 min-content 卡住；
   列同样加 min-width:0，防止长标题/表格把栅格撑开。 */
.main-inner .wrap > .row { min-width: 0; }
.main-inner .row > * { min-width: 0; }
/* 详情页无侧栏，面板独占一行 */
.main-article .wrap { display: block; }

/* 侧栏宽度：<992 全宽（PART4 降级）；≥992 无 width 声明 → BS5 col-lg-3/col-lg-9 接管
   （旧 .sidebar{width:300px} 已删除，勿再引入——会以同特异性压过 .col-lg-3） */
.sidebar { box-shadow: 0 0 10px rgba(0, 0, 0, .08); }
@media (max-width: 991.98px) { .sidebar { width: 100%; } }
.sidebar h2 {
  height: 55px; background: var(--brown-dark);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 700;
}
.sidebar li {
  height: 50px; padding-top: 3px; background: #fff; /* padding 3px 为与原稿文字基线对齐的补偿 */
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.sidebar li + li { border-top: 1px solid #ececec; }
.sidebar li a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sidebar li a.active { color: var(--brown); }

.panel { background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .1); margin-top: 6px; }
/* 旧结构兜底（无 row 的页面，<992 全宽）；row 内宽度由 BS5 col 控制 */
@media (max-width: 991.98px) { .panel { width: 100%; } }
/* 详情页面板独占容器宽 */
.main-article .panel { width: 100%; }

.crumb {
  height: 40px; line-height: 40px; padding: 0 10px;
  background: #f2f2f2; font-size: 16px;
}
.main-article .crumb { background: #f5f5f5; padding: 0 20px; }
.crumb a { color: inherit; }
.crumb a:hover { color: var(--brown); }

.news { padding: 10px 0 0; }
/* 2026-09-23 优化意见：列表行改虚线边框节奏，删除虚线图片平铺 ::after；标题省略号 */
.news li {
  position: relative;
  padding: .5em 1em;
  border-bottom: 1px #e5e5e5 dashed;
  display: flex;
  line-height: 2.2;
  justify-content: space-between;
  align-items: center;
}
.news .t { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; margin-right: 20px; }
.news .d { font-size: 16px; color: var(--text-gray); flex: none; }
.news .empty { justify-content: center; color: #999; }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 27px 0 30px; }
.pager a {
  min-width: 33px; height: 33px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e3e3e3; border-radius: 3px;
  font-size: 16px;
}
.pager a.active { background: #4a7fc1; border-color: #4a7fc1; color: #fff; }
.pager span { align-self: center; color: var(--text-gray); }

/* ---------- 勐海概况专属页（老站 /1.news.list.dhtml 单独设计形态） ---------- */
.main-gk { padding: 20px 0 50px; }
.gk-wrap { width: 100%; max-width: 1168px; margin: 0 auto; padding: 0 12px; box-sizing: border-box; }
/* 日期栏（老站通用头部：左日期右搜索） */
.gk-dateline { height: 44px; background: #f2f2f2; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.gk-dateline span { font-size: 15px; color: #666; }
.gk-search { display: flex; }
.gk-search input { width: 200px; height: 30px; border: 1px solid #d9d9d9; border-right: 0; outline: none; padding: 0 10px; font-size: 14px; background: #fff; }
.gk-search button { width: 64px; height: 30px; border: 0; background: var(--brown); color: #fff; cursor: pointer; font-size: 14px; }
.gk-photo { width: 1168px; height: 462px; display: block; object-fit: cover; margin-top: 10px; }
.gk-grid { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 18px; }
.gk-btn {
  width: 280px; height: 42px; /* 280*4+16*3=1168 四列 */
  display: flex; align-items: center; justify-content: center;
  background: #faf3e3; border: 1px solid #efe2c4; border-radius: 4px;
  font-size: 16px; color: var(--text);
}
.gk-btn::before { content: "▪"; color: #c0392b; margin-right: 8px; font-size: 12px; }
.gk-btn:hover { background: var(--brown); border-color: var(--brown); color: #fff; }
.gk-btn:hover::before { color: #fff; }
.gk-intro {
  margin-top: 18px; background: #faf3e3; border: 1px solid #efe2c4;
  padding: 14px 18px; font-size: 15px; line-height: 28px;
}
.gk-intro b { color: var(--text); }
.gk-intro a { color: #4a7fc1; }

/* ---------- 普洱茶第一县专属页（老站 puerteaPage.dhtml 独立绿色系设计） ----------
   图片资产：六大茶山竖图/茶王节徽标取自老站原图；全景横幅用设计稿茶园图（老站原图为背景加载未取到）。
   2026-09-23 优化意见：移除 .pt-hero 专题海报；专题栏目导航由通屏绿条改为图标导航卡片。 */
.pt-iconnav { padding: 28px 0 8px; background: #f7f6f2; }
.pt-iconnav .wrap { display: flex; gap: 20px; }
.pt-iconnav .pt-card {
  flex: 1; height: 96px; background: #fff; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 16px; color: #6d5433;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.pt-iconnav .pt-card img { height: 38px; width: auto; }
.pt-iconnav .pt-card:hover { color: var(--brown); box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }
.pt-body { background: #f7f5ec; padding: 32px 0 50px; }
.pt-wrap { margin: 0 auto; }
.pt-sec-title {
  text-align: center; font-size: 26px; font-weight: 700; color: #3a6e30;
  letter-spacing: 2px; margin-bottom: 22px;
}
.pt-sec-title small { display: block; font-size: 13px; color: #9aa89a; font-weight: 400; letter-spacing: 1px; }
/* 版块一：茶产业 头条 + 微信推荐 */
.pt-flex { display: flex; gap: 25px; }
.pt-head { width: 560px; flex: none; background: #fff; border: 1px solid #e6e2d0; border-radius: 6px; padding: 16px; }
.pt-head img { width: 100%; height: 240px; display: block; object-fit: cover; border-radius: 4px; }
.pt-head h3 { margin-top: 14px; font-size: 19px; color: #3a6e30; line-height: 30px; }
.pt-head p { margin-top: 8px; font-size: 14px; color: #888; line-height: 24px; }
.pt-head .more { color: #4a7fc1; font-size: 14px; }
.pt-wx { flex: 1; background: #fff; border: 1px solid #e6e2d0; border-radius: 6px; padding: 10px 18px; }
.pt-wx li { position: relative; height: 44px; display: flex; align-items: center; }
.pt-wx li:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #efede2; }
.pt-wx a { font-size: 15px; color: #444; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pt-wx a:hover { color: #3a6e30; }
.pt-wx .tag { flex: none; margin-left: 12px; font-size: 12px; color: #4d8b40; border: 1px solid #b7d3ae; border-radius: 8px; padding: 0 8px; }
/* 版块二：六大茶山 */
.pt-mount { display: flex; justify-content: center; gap: 12px; }
.pt-mount a { position: relative; width: 186px; height: 420px; overflow: hidden; border-radius: 4px; }
.pt-mount a img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s; }
.pt-mount a:hover img { transform: scale(1.05); }
.pt-mount a span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 0;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 17px; text-align: center;
}
/* 版块三：茶王节 */
.pt-fest { display: flex; align-items: center; gap: 30px; background: #fff; border: 1px solid #e6e2d0; border-radius: 6px; padding: 24px; }
.pt-fest .logo { width: 130px; flex: none; text-align: center; font-size: 13px; color: #888; }
.pt-fest .logo img { width: 110px; display: block; margin: 0 auto 8px; }
.pt-fest ul { flex: 1; list-style: none; }
.pt-fest li { position: relative; height: 44px; display: flex; align-items: center; }
.pt-fest li:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #efede2; }
.pt-fest a { font-size: 15px; color: #444; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pt-fest a:hover { color: #3a6e30; }

/* ---------- 文章详情页 ---------- */
.article { padding: 0 25px 26px; }
.article h1 {
  margin-top: 50px;
  text-align: center;
  font-size: 22px; font-weight: 700; color: #000;
}
.article .meta { margin-top: 20px; text-align: center; font-size: 14px; color: #808080; }
.article .meta span { margin: 0 2px; }
.article .meta b { color: var(--text); font-weight: 400; }
.article .body { margin-top: 20px; }
.article .body p {
  margin-bottom: 26px;
  font-weight: 300; font-size: 18px; line-height: 26px;
  letter-spacing: -0.15px; /* 微调字距，使各段折行行数与原稿一致 */
}
.article .body img { max-width: 100%; height: auto; }
/* 主题增强：正文后图集/附件/上下篇等区块，设计稿无对应形态，用简洁默认样式（登记 progress.md） */
.article .article-extra { margin-top: 40px; border-top: 1px dashed #e3e3e3; padding-top: 20px; }
.article .article-extra h3 { font-size: 16px; color: var(--brown-dark); margin-bottom: 12px; }
.article .article-extra ul { list-style: none; }
.article .article-extra li { font-size: 15px; line-height: 30px; }
.article .article-extra a { color: #4a7fc1; }
.article .article-nav { display: flex; justify-content: space-between; gap: 20px; }
.article .article-nav a { color: #4a7fc1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.article .article-nav .none { color: #bbb; }

/* ===== 2026-11-01 JitWord 正文图片对齐契约（补齐 2026-10-08 遗漏主题） =====
   JitWord 块图片对齐导出为 img 上的 data-text-align + 对自身无效的内联 text-align，
   须宿主 CSS 消费该属性；容器选择器按本主题详情模板实证（.body）。left 为默认态不处理。 */
.body img[data-text-align="center"] { display: block; margin-left: auto; margin-right: auto; }
.body img[data-text-align="right"] { display: block; margin-left: auto; margin-right: 0; }


/* ==========================================================================
   PART 4  BS5 对齐响应式（2026-11-11 重写）
   断点与 Bootstrap 5.3.3 一致；移动优先。原 site/cms 两表各自的自写断点
   （1320/991/767 混搭、.wrap 定宽覆盖、min-width 冲突）全部废弃重收。
   容器栅格交给 BS5 .container/.container-xxl，此处只做组件级降级。
   ========================================================================== */

/* ---------- <768（BS5 sm 区及以下）：手机 ---------- */
@media (max-width: 767.98px) {
  /* 顶条：紧凑居中 */
  .topbar .wrap { gap: 8px; justify-content: center; flex-wrap: wrap; height: auto; padding: 4px 0; }
  .topbar .chip { padding: 0 8px; font-size: 11px; }
  /* 横幅：降高、标题图自适应 */
  .banner { height: 300px; }
  .banner .site-title { height: 64px; margin: 10px auto; max-width: min(580px, 90vw); }
  .banner .site-sublogo { max-width: 86vw; margin: 10px auto; }
  .banner .search input { width: min(62vw, 370px); height: 42px; }
  .banner .search button { width: 96px; height: 42px; font-size: 16px; }
  .banner .search button img { width: 22px; height: 22px; }
  .banner-inner { height: auto; padding: 14px 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .banner-inner .site-title { height: auto; max-height: 54px; max-width: 88vw; }
  .banner-inner .site-sub { position: static; width: 78vw; }
  .banner-inner .search { transform: none; }
  /* 导航：<992 由 BS5 Offcanvas 抽屉承接，横向导航保持隐藏 */
  /* 内页：<992 由 BS5 col-12 自动堆叠；此处仅保留老结构兜底与组件级降级 */
  .sidebar, .panel { width: 100%; min-width: 0; }
  .sidebar h2 { font-size: 18px; height: 42px; }
  .sidebar ul { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sidebar li { flex: 0 0 auto; height: 40px; font-size: 15px; padding: 0 14px; }
  .sidebar li + li { border-top: 0; border-left: 1px solid #ececec; }
  .main-list, .main-article { padding: 18px 0 20px; }
  .news li { height: 44px; }
  .news .t { font-size: 14px; }
  .news .d { font-size: 12px; }
  .article-body { font-size: 15px; line-height: 1.9; }
  .article-body img { max-width: 100%; height: auto; }
  .article-title { font-size: 20px; line-height: 1.5; }
  .crumb { font-size: 12px; }
  .pager { flex-wrap: wrap; row-gap: 6px; }
  /* 首页旧版块（.sec1/.triplet 等老类仍在部分页使用）单列化 */
  .sec1, .sec-tabs, .triplet, .overview { flex-wrap: wrap; }
  .carousel, .headline, .tabpanel, .overview .left, .overview .right { width: auto; flex: 1 1 100% !important; min-width: 0; min-height: 0; }
  .icon-grid .card { flex: 1 1 42%; height: 86px; }
  .green-banner img { width: 100%; height: auto; }
  /* 页脚堆叠（友情链接与徽标列表在 <992 隐藏，见 PART4 末尾精简段） */
  .footer { height: auto; padding-bottom: 16px; }
  .footer .info-row { flex-wrap: wrap; justify-content: center; text-align: center; gap: 10px; }
  .footer .logo { width: 72px; height: 72px; margin-right: 16px; }
  .back-top { right: 12px; bottom: 70px; }
  /* 旧版留言/问政页兜底 */
  .class_news_list, .news-list, .infoswap { max-width: 100%; }
}

/* ---------- 768–991.98（BS5 md 区）：平板 ---------- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .banner .search input { width: min(58vw, 370px); }
  /* 内页 banner：绝对定位组合在 md 区超宽（564 标题 + 350 副题绝对定位 → sw 889），
     改纵向流式堆叠 */
  .banner-inner { height: auto; padding: 18px 12px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; background-position: center; }
  .banner-inner .site-title { height: auto; max-height: 80px; max-width: 88vw; width: auto; }
  .banner-inner .site-sub { position: static; width: min(70vw, 350px); }
  .banner-inner .search { transform: none; }
  /* 内页双栏：<992 由 BS5 col-12 全宽堆叠，不再自写宽度/换行覆盖 */
  .main-list { padding: 30px 0 30px; }
  .main-article { padding: 30px 0 24px; }
  .sidebar li { font-size: 17px; height: 44px; }
  .sidebar h2 { font-size: 20px; height: 48px; }
  .pager { flex-wrap: wrap; row-gap: 6px; }
  .footer { height: auto; padding-bottom: 16px; }
  .footer .info-row { flex-wrap: wrap; }
}

/* ---------- 992–1199.98（BS5 lg 区）：小桌面/大平板 ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* 导航 7 项在 lg 区装不下：横滚 */
  .nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav .wrap { flex-wrap: nowrap; min-width: 1000px; }
  .nav a { font-size: 17px; }
  .banner .site-title { max-width: min(580px, 90vw); height: auto; }
  .banner .site-sublogo { max-width: 86vw; }
  .banner-inner { height: auto; padding: 20px 12px 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .banner-inner .site-sub { position: static; width: min(70vw, 350px); }
  .banner-inner .search { transform: none; }
  /* 内页双栏：BS5 row/col 栅格接管（col-12 + col-lg-3/col-lg-9），无需宽度覆盖 */
  .green-banner img { width: 100%; height: auto; }
  .footer .badges { margin-left: 0; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .footer .badge-col img { width: 96px; height: 44px; }
}

/* ---------- ≥1200（BS5 xl+）：桌面完整版 ----------
   此区间即 PC 默认样式，无覆盖规则；PC 视觉与原版一致。 */

/* ---------- <992（BS5 lg 以下）：页脚精简 ----------
   隐藏 .badges 徽标图标列表与 .dropdowns 友情链接下拉组，只保留版权/备案等文字信息；
   这两块在 sm/md 档的自适应补丁已同步清理，避免死规则。 */
@media (max-width: 991.98px) {
  .footer .dropdowns, .footer .badges { display: none; }
  .footer .info-row { margin-top: 16px; }
}
