:root {
  --brown: #9e6f3e;
  --brown-dark: #784e2a;
  --tan: #c49247;
  --text: #383838;
  --text-gray: #a6a6a6;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #fff; font-family: "Source Han Sans CN", "Microsoft YaHei", sans-serif; color: var(--text); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.wrap { width: 1280px; margin: 0 auto; }

/* ---------- 顶部功能条 ---------- */
.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; }
.topbar .links a { color: #fff; }
.topbar .links a:hover { text-decoration: underline; }

/* ---------- 横幅：照片 600px、底部 300px 渐隐延伸（三页设计稿同构），元素按稿左右定位 ---------- */
.banner { position: relative; height: 600px; margin-bottom: -300px; }
.banner .photo { position: absolute; inset: 0; background: url("../images/sub-62f05f5e32d01275f0b8fcc0.jpg") center top / cover no-repeat; }
.banner .photo::after { content: ""; position: absolute; left: 0; right: 0; top: 270px; bottom: 0; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); }
.banner .wrap { position: relative; height: 100%; }
.banner .site-emblem { position: absolute; left: 320px; top: 65px; width: 70px; height: 80px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.banner .site-title-cut { position: absolute; left: 414px; top: 53px; width: 399px; }
.banner .site-sub { position: absolute; left: 414px; top: 118px; color: #fff; font-size: 24px; font-weight: 800; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); white-space: nowrap; }
.banner .search { position: absolute; left: 1115px; top: 115px; display: flex; height: 47px; z-index: 2; }
.banner .search input { width: 385px; height: 47px; border: 0; outline: none; padding: 0 20px; font-size: 18px; color: var(--text); border-radius: 24px 0 0 24px; background: #fff; font-family: inherit; }
.banner .search input::placeholder { color: var(--text-gray); }
.banner .search button { width: 85px; height: 47px; border: 0; cursor: pointer; background: var(--brown); border-radius: 0 24px 24px 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; font-size: 18px; font-family: inherit; }
.banner .search button img { width: 30px; height: 30px; }

/* ---------- 导航：负上边距叠压在渐隐照片上（设计稿机制）；深棕色块（本站顶级栏目，自适应数量） ---------- */
.nav { height: 60px; background: transparent; position: relative; z-index: 1; margin-top: -390px; }
.nav .wrap { height: 100%; display: flex; justify-content: flex-start; gap: 28px; }
.nav a {
  min-width: 138px; height: 60px; padding: 0 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brown-dark); color: #fff; font-size: 24px;
}
.nav a.active, .nav a:hover { background: var(--brown); box-shadow: 0 0 10px rgba(0,0,0,.25); }
/* 导航"更多"下拉（顶级栏目 >7 的站，如政府办 20 项） */
.nav .nav-more { position: relative; height: 60px; display: flex; align-items: center; background: var(--brown-dark); color: #fff; font-size: 24px; padding: 0 20px; cursor: pointer; }
.nav .nav-more:hover { background: var(--brown); }
.nav .nav-more-panel { display: none; position: absolute; top: 60px; left: 0; z-index: 9; width: 260px; max-height: 320px; overflow-y: auto; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); padding: 6px; }
.nav .nav-more:hover .nav-more-panel { display: block; }
.nav .nav-more-panel a { min-width: 0; width: 100%; height: 40px; font-size: 15px; color: var(--text); background: #fff; padding: 0 12px; justify-content: flex-start; }
.nav .nav-more-panel a:hover { background: #f5eee4; color: var(--brown-dark); }

/* ---------- 主体 ---------- */
.main { position: relative; z-index: 1; padding: 40px 0 0; }

/* 首行：轮播（题注叠图底） + 双 tab 面板 */
.sec1 { display: flex; gap: 15px; }
.carousel { width: 640px; flex: none; position: relative; }
.carousel .pic { width: 640px; height: 456px; display: block; object-fit: cover; }
.carousel .caption { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: rgba(56, 52, 49, .85); display: flex; align-items: center; justify-content: space-between; padding: 0 15px; font-size: 20px; color: #fff; }
.carousel .caption .txt { overflow: hidden; white-space: nowrap; }
.carousel .dots { display: flex; gap: 8px; }
.carousel .dots i { width: 10px; height: 10px; border-radius: 50%; background: #fff; cursor: pointer; }
.carousel .dots i.on { background: #e34242; }
.tabbox { width: 625px; flex: none; background: #f9f9f9; }
.tabbar { height: 50px; display: flex; }
.tabbar span { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; color: #fff; cursor: pointer; background: var(--brown); }
.tabbar span.active { background: var(--tan); }
.tabpane .rows { padding: 19px 20px 0; }

/* 列表行（首页/面板通用） */
.rows li { height: 49.5px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ececec; }
.rows li:last-child { border-bottom: 0; }
.rows .t { font-size: 16px; color: #222; overflow: hidden; white-space: nowrap; }
.rows .d { font-size: 16px; color: #bbb; margin-left: 20px; flex: none; }
.rows .empty { justify-content: center; color: #999; }

/* 通栏图（设计稿 625x100 两张、两端对齐） */
.sub-banners { display: flex; justify-content: space-between; margin-top: 60px; }
.sub-banners img { width: 625px; height: 100px; display: block; object-fit: cover; }

/* 下部版块行（设计稿白底投影面板） */
.sec2 { display: flex; gap: 30px; margin-top: 49px; }
.panelbox { flex: 1; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .1); }
.panelbox .tabbar span { background: var(--brown); }
.panelbox .tabbar span.active { background: var(--brown-dark); }

/* extras 版块三列面板网格（老站 newsBox3 三列形态；紧随 sec2 时 15px，直接跟 banners 时 49px） */
.sec3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 15px; }
.sub-banners + .sec3 { margin-top: 49px; }
.sec2 + .sec3 { margin-top: 15px; }

/* ---------- 列表页：侧栏 + 面板 ---------- */
.main-list { position: relative; z-index: 1; padding: 50px 0 45px; }
.main-list .wrap { display: flex; gap: 30px; align-items: flex-start; }
.sidebar { width: 300px; flex: none; box-shadow: 0 0 10px rgba(0, 0, 0, .08); border-radius: 8px; overflow: hidden; }
.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; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.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); }
.cat-panel { width: 950px; flex: none; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .1); margin-top: 6px; }
.crumb { height: 40px; line-height: 40px; padding: 0 10px; background: #f2f2f2; font-size: 16px; }
.crumb a { color: inherit; }
.crumb a:hover { color: var(--brown); }
.news { padding: 16px 0 0; }
.news li { position: relative; height: 50px; margin-left: 40px; width: 870px; padding: 0 18px 4px 0; display: flex; align-items: center; justify-content: space-between; }
.news li:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #eee; }
.news .t { font-size: 17px; overflow: hidden; white-space: nowrap; }
.news .d { font-size: 15px; color: #999; flex: none; margin-left: 20px; }
.news .empty { justify-content: center; color: #999; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 25px 0 28px; }
.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); }

/* ---------- 详情页 ---------- */
.main-article { position: relative; z-index: 1; padding: 50px 0 34px; }
.main-article .wrap { display: block; }
.art-panel { background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .1); }
.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; }
.article .body img { max-width: 100%; height: auto; }
.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; }

/* ---------- 页脚（同主站形态） ---------- */
.footer { height: 220px; background: var(--brown); overflow: visible; position: relative; z-index: 2; margin-top: 70px; }
.footer .dropdowns { display: flex; justify-content: space-between; padding-top: 15px; position: relative; }
.footer .dd { position: relative; }
.footer .box { height: 42px; background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 15px; font-size: 18px; cursor: pointer; }
.footer .box img { width: 20px; height: 20px; }
.footer .dd-panel { display: none; position: absolute; left: 0; bottom: 46px; 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: 10px; }
.footer .dd:hover .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); }
.footer .info-row { display: flex; align-items: flex-start; margin-top: 28px; }
.footer .logo { width: 100px; height: 100px; margin-right: 150px; }
.footer .col { font-size: 16px; line-height: 33px; color: #fff; flex: none; }
.footer .col b { font-weight: 700; margin-right: 2px; }
.footer .col1 { width: 450px; }
.footer .col2 { width: 390px; }
.footer .col2 .line { display: flex; align-items: center; gap: 4px; }
.footer .col2 img { width: 20px; height: 20px; }
.footer .col2 .gap { display: inline-block; width: 28px; }
.footer .col2 a { color: #fff; }
.footer .col2 a:hover { text-decoration: underline; }
.footer .badges { margin-left: auto; display: flex; gap: 21px; align-items: flex-start; }
.footer .badge-shield { width: 80px; height: 80px; margin-top: 10px; }
.footer .badge-col { display: flex; flex-direction: column; gap: 10px; }
.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); }

/* JitWord 块图片对齐契约（2026-10-08）：图片独立成块时居中/右对齐经 data-text-align
   属性输出（内联 text-align 对 img 自身布局无效），由宿主 CSS 消费该属性；
   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; }
