/* ==========================================================
   前台公共样式 · 政务信息发布门户
   宽度 1200px，主色由后台 --front-primary 驱动
   ========================================================== */
:root {
  --front-primary: #1e5aa8;
  --front-font: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  --front-size: 16px;
  --fp-dark: #12427e;
  --fp-accent: #c0392b;
  --fp-line: #e3e8ef;
  --fp-soft: #f5f7fa;
  --fp-text: #2b3340;
  --fp-sub: #6b7280;
}
* { box-sizing: border-box; }
body { margin: 0; background: #eef1f5; font-family: var(--front-font); font-size: var(--front-size); color: var(--fp-text); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: 1200px; max-width: calc(100% - 24px); margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ---------- 顶部工具条 ---------- */
.topbar { background: #1b2b44; color: #c8d3e4; font-size: 13px; height: 34px; line-height: 34px; }
.topbar .wrap { display: flex; justify-content: space-between; }
.topbar a { color: #c8d3e4; margin-left: 18px; }
.topbar a:hover { color: #fff; }

/* ---------- 站头（banner + 站名 + 搜索） ---------- */
.brandbar { background: #fff; }
.brandbar .wrap { display: flex; align-items: center; height: 108px; gap: 16px; }
.brand-emblem { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 50%; background: var(--front-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: inset 0 0 0 4px rgba(255,255,255,.35); }
.brand-text h1 { margin: 0; font-size: 32px; letter-spacing: 2px; color: var(--front-primary); font-weight: 800; }
.brand-text p { margin: 2px 0 0; font-size: 13px; color: var(--fp-sub); letter-spacing: 3px; }
.brand-search { margin-left: auto; display: flex; height: 38px; }
.brand-search input { width: 230px; padding: 0 12px; border: 2px solid var(--front-primary); border-right: none; outline: none; font-size: 14px; border-radius: 4px 0 0 4px; }
.brand-search button { border: none; background: var(--front-primary); color: #fff; padding: 0 22px; font-size: 14px; cursor: pointer; border-radius: 0 4px 4px 0; }
.brand-search button:hover { background: var(--fp-dark); }

/* ---------- 主导航（含多级下拉） ---------- */
.main-nav { background: var(--front-primary); border-bottom: 3px solid var(--fp-accent); position: relative; z-index: 50; }
.main-nav .nav-inner { display: flex; }
.nav-item { position: relative; }
.main-nav > .nav-inner > .nav-item > a { color: #fff; padding: 0 22px; height: 48px; line-height: 48px; display: block; font-size: 16px; font-weight: 500; white-space: nowrap; }
.main-nav > .nav-inner > .nav-item > a:hover,
.main-nav > .nav-inner > .nav-item.active > a { background: var(--fp-dark); }
.nav-item .caret { margin-left: 6px; font-size: 11px; opacity: .85; }
/* 一级下拉 */
.nav-dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 170px; background: #fff; border: 1px solid var(--fp-line); box-shadow: 0 8px 22px rgba(0,0,0,.16); z-index: 60; padding: 4px 0; }
.nav-item:hover > .nav-dropdown { display: block; }
.nav-dropdown a { color: var(--fp-text); padding: 10px 16px; font-size: 14px; display: block; white-space: nowrap; }
.nav-dropdown a:hover { background: var(--front-primary); color: #fff; }
/* 下拉内的子项箭头 */
.nav-dropdown .nav-item > a { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
/* 嵌套下拉向右弹出 */
.nav-dropdown .nav-dropdown { top: -5px; left: 100%; }

/* ---------- 面包屑 ---------- */
.crumb { background: #fff; border-bottom: 1px solid var(--fp-line); font-size: 13px; color: var(--fp-sub); }
.crumb .wrap { padding: 12px 0; }
.crumb a:hover { color: var(--front-primary); }
.crumb .cur { color: var(--front-primary); }

/* ---------- 通用区块标题 ---------- */
.blk { background: #fff; }
.blk-head { height: 44px; border-bottom: 2px solid var(--front-primary); display: flex; align-items: center; padding: 0 16px; justify-content: space-between; }
.blk-head h2 { margin: 0; font-size: 18px; color: var(--front-primary); font-weight: 700; position: relative; padding-left: 12px; }
.blk-head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--fp-accent); }
.blk-head .more { font-size: 13px; color: var(--fp-sub); }
.blk-head .more:hover { color: var(--front-primary); }

/* ---------- 首页 ---------- */
.home-main { padding: 20px 0 0; }
.focus-row { display: grid; grid-template-columns: 620px 1fr; gap: 20px; margin-bottom: 20px; }
.carousel { position: relative; border-radius: 4px; overflow: hidden; height: 380px; background: #0f172a; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.carousel .slide.active { opacity: 1; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; font-size: 18px; font-weight: 600; line-height: 1.4; }
.carousel .cap a { color: #fff; }
.carousel .cap a:hover { text-decoration: underline; }
.carousel .dots { position: absolute; bottom: 14px; right: 18px; display: flex; gap: 7px; z-index: 2; }
.carousel .dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.carousel .dots button.active { background: #fff; }
.focus-news { background: #fff; border: 1px solid var(--fp-line); border-top: 3px solid var(--front-primary); display: flex; flex-direction: column; align-self: stretch; }
.focus-news .blk-head { height: 46px; flex: 0 0 46px; }
.focus-news #focusNews { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.focus-news .news-list li a { font-size: 16px; }
.focus-news .news-list li { padding: 8px 2px; }
.news-list { list-style: none; margin: 0; padding: 4px 14px 10px; }
.news-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--fp-line); }
.news-list li:last-child { border-bottom: none; }
.news-list li .dot { color: var(--front-primary); font-size: 9px; flex: 0 0 auto; }
.news-list li a { color: var(--fp-text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.news-list li a:hover { color: var(--front-primary); }
.news-list li .date { color: var(--fp-sub); font-size: 12px; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.news-list li .src { color: #9aa3af; font-size: 12px; flex: 0 0 auto; }
/* 旧版风格三栏：领导之窗 / 信息发布 / 通知公告（总宽与焦点区一致，1200px） */
.rdx-row { display: grid; grid-template-columns: 250px minmax(0, 1fr) 280px; grid-template-rows: auto 1fr; gap: 0 16px; margin-bottom: 20px; align-items: start; }
.rdx-left { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; background: #fff; border: 1px solid #cdcdcd; }
.rdx-title { margin: 0; height: 34px; line-height: 32px; padding-left: 20px; font-size: 16px; font-weight: 700; color: #c8161d; border-bottom: 2px solid #c8161d; background: #fafafa; }
.rdx-title a:hover { color: #9e1017; }
.rdx-leader { padding: 8px 10px 12px; text-align: center; }
.rdx-leader img { display: block; margin: 0 auto; width: 104px; height: 119px; object-fit: cover; border: 0; }
.rdx-leader p { margin: 5px 0 0; text-align: left; font-size: 13px; line-height: 1.5; color: #333; }
.rdx-leader p span { color: #c8161d; }
.rdx-leader p a:hover { color: #c8161d; text-decoration: underline; }
.rdx-menu { padding: 0 6px 8px; }
.rdx-menu a { display: block; height: 40px; line-height: 48px; padding-left: 16px; margin-bottom: 7px; border: 1px solid #d8d8d8; background: linear-gradient(#fdfdfd, #ededed); font-size: 14px; color: #333; }
.rdx-menu a:hover { color: #c8161d; background: #fff6f6; }
.rdx-banners { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.rdx-banners a { display: block; }
.rdx-banners img { display: block; width: 100%; height: auto; }
.rdx-info { grid-column: 2; grid-row: 2; background: #fff; border: 1px solid #cdcdcd; align-self: stretch; }
.rdx-info-head { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px 0 16px; border-bottom: 2px solid #c8161d; }
.rdx-info-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: #c8161d; }
.rdx-tabs { display: flex; gap: 8px; }
.rdx-tabs button { border: 1px solid #ccc; border-radius: 14px; background: #fff; color: #555; font-size: 13px; padding: 4px 12px; cursor: pointer; font-family: inherit; }
.rdx-tabs button:hover, .rdx-tabs button.active { border-color: #c8161d; color: #c8161d; }
.rdx-info .news-list, .rdx-notice .news-list { padding: 6px 14px 12px; }
.rdx-info .news-list li, .rdx-notice .news-list li { padding: 7px 2px; }
.rdx-info .news-list li a, .rdx-notice .news-list li a { font-size: 16px; }
.rdx-more { display: block; text-align: right; padding: 0 16px 10px; font-size: 13px; color: #c8161d; }
.rdx-notice { grid-column: 3; grid-row: 1 / span 2; background: #fff; border: 1px solid #cdcdcd; align-self: stretch; }
.rdx-notice .blk-head { height: 44px; border-bottom: 2px solid #c8161d; }
.rdx-notice .blk-head h2 { color: #c8161d; font-size: 18px; }
.rdx-notice .blk-head h2::before { background: #c8161d; }
/* 通知公告：标题最多两行，日期跟随标题后空两格 */
.rdx-notice .news-list li { display: block; padding: 10px 2px; line-height: 1.5; }
.rdx-notice .news-list li a { display: inline; white-space: normal; line-height: 1.5; }
.rdx-notice .news-list li .date { display: inline; font-size: 12px; color: var(--fp-sub); white-space: nowrap; }

/* 旧版风格：图片新闻轮播 + 网上交流/学习园地/代表风采 + 两会回顾 */
.rdx-pic { margin-bottom: 0; }
.rdx-pic-head { background: #fff; border: 1px solid #cdcdcd; border-bottom: 0; }
.rdx-pic-head h2 { color: #c8161d; font-size: 18px; }
.rdx-pic-head h2::before { background: #c8161d; }
.pic-carousel { position: relative; background: #fff; border: 1px solid #cdcdcd; padding: 14px 40px; overflow: hidden; }
.pc-view { overflow: hidden; }
.pc-track { display: flex; gap: 10px; will-change: transform; }
.pc-track a { flex: 0 0 calc((100% - 40px) / 5); min-width: 0; }
.pc-track img { width: 100%; height: 130px; object-fit: cover; display: block; border: 1px solid #eee; }
.pc-track span { display: block; font-size: 12px; color: #555; padding: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-track a:hover span { color: #c8161d; }
.pc-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 60px; border: 1px solid #ddd; background: rgba(255,255,255,.92); font-size: 22px; color: #666; cursor: pointer; z-index: 2; }
.pc-arrow.prev { left: 6px; }
.pc-arrow.next { right: 6px; }
.pc-arrow:hover { color: #c8161d; border-color: #c8161d; }
.rdx-mix { display: grid; grid-template-columns: 250px minmax(0, 1fr) 280px; gap: 0 16px; margin-top: 12px; align-items: stretch; }
.rdx-comm { background: #fff; border: 1px solid #cdcdcd; }
.rdx-comm-inner { padding: 6px; }
.rdx-comm-inner a, .rdx-comm-inner img { display: block; width: 100%; }
.rdx-comm-inner a + a, .rdx-comm-inner a + img { margin-top: 5px; }
.rdx-study, .rdx-stars { background: #fff; border: 1px solid #cdcdcd; }
.rdx-study .blk-head, .rdx-stars .blk-head { height: 44px; border-bottom: 2px solid #c8161d; }
.rdx-study .blk-head h2, .rdx-stars .blk-head h2 { color: #c8161d; font-size: 18px; }
.rdx-study .blk-head h2::before, .rdx-stars .blk-head h2::before { background: #c8161d; }
.rdx-study .news-list, .rdx-stars .news-list { padding: 6px 14px 12px; }
.rdx-study .news-list li a, .rdx-stars .news-list li a { font-size: 16px; }
.rdx-recall { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 12px; background: #fff; border: 1px solid #d5d5d5; border-top: 3px solid #b10f04; padding: 10px 16px; font-size: 14px; }
.rdx-recall .label { font-weight: 700; font-size: 16px; color: #222; }
.rdx-recall a { color: #333; }
.rdx-recall a:hover { color: #c8161d; }

/* 三栏资讯卡片 */
.section-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.section-card { background: #fff; border: 1px solid var(--fp-line); }
.section-card .blk-head { height: 46px; }
.section-card .news-list { padding-top: 8px; }
.section-card .news-list li a { font-size: 14px; }
.empty-tip { padding: 22px 16px; color: var(--fp-sub); font-size: 13px; text-align: center; }
/* 首页底部两栏：图片 + 栏目 */
.home-bottom { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; margin-top: 20px; }
.side-box { background: #fff; border: 1px solid var(--fp-line); }
.side-box .blk-head { height: 46px; }
.side-box .inner { padding: 14px 16px; }
.pic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pic-grid a { display: block; }
.pic-grid img { width: 100%; height: 92px; object-fit: cover; border-radius: 3px; display: block; }
.pic-grid .t { font-size: 12px; color: var(--fp-text); padding: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic-grid a:hover .t { color: var(--front-primary); }
.col-tree a { display: block; padding: 7px 4px; border-bottom: 1px dashed var(--fp-line); font-size: 14px; }
.col-tree a:hover { color: var(--front-primary); }

/* ---------- 栏目页 ---------- */
.list-page { padding: 20px 0 36px; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; }
.list-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--fp-line); }
.panel-head { height: 46px; line-height: 46px; background: var(--front-primary); color: #fff; font-size: 16px; font-weight: 600; padding: 0 16px; }
.side-menu a { display: block; padding: 11px 16px; border-bottom: 1px solid var(--fp-line); font-size: 14px; color: var(--fp-text); }
.side-menu a:hover { background: var(--fp-soft); color: var(--front-primary); }
.side-menu a.active { background: #eaf2fc; background: color-mix(in srgb, var(--front-primary) 12%, #fff); color: var(--front-primary); font-weight: 700; box-shadow: inset 3px 0 0 var(--front-primary); }
.side-menu .lv2 { padding-left: 28px; font-size: 13px; color: var(--fp-sub); }
.side-menu .lv3 { padding-left: 40px; font-size: 13px; color: var(--fp-sub); }
.list-panel { min-height: 420px; }
.list-panel .panel-head { display: flex; justify-content: space-between; align-items: center; }
.list-panel .panel-head .cnt { font-size: 12px; font-weight: 400; opacity: .85; }
.list-panel .panel-body { padding: 6px 20px 18px; }
.list-panel .news-list li { padding: 13px 2px; }
.list-panel .news-list li a { font-size: 16px; }
/* 领导之窗照片墙：仿旧版 132×179 灰边框照片 + 姓名 */
.leader-wall { display: flex; flex-wrap: wrap; gap: 26px 34px; padding: 26px 24px 12px; }
.leader-card { text-align: center; }
.leader-card > a { display: block; text-decoration: none; color: var(--fp-text); }
.leader-photo { padding: 4px; border: 1px solid #d5d5d5; background: #fff; display: inline-block; }
.leader-photo img { display: block; width: 132px; height: 179px; object-fit: cover; object-position: center top; }
.leader-name { margin-top: 8px; font-size: 16px; color: var(--fp-text); }
.leader-card > a:hover .leader-name { color: var(--front-primary); }
.leader-card > a:hover .leader-photo { border-color: var(--front-primary); }
.page-bar { display: flex; justify-content: center; gap: 8px; padding: 18px 0 4px; flex-wrap: wrap; }
.page-bar a, .page-bar span { min-width: 34px; height: 34px; line-height: 34px; text-align: center; padding: 0 10px; border: 1px solid var(--fp-line); border-radius: 4px; font-size: 14px; background: #fff; }
.page-bar a:hover { border-color: var(--front-primary); color: var(--front-primary); }
.page-bar .cur { background: var(--front-primary); color: #fff; border-color: var(--front-primary); }
.page-bar .disabled { color: #c3cad4; }
.contact-box { padding: 16px; font-size: 13px; color: var(--fp-sub); line-height: 2; }

/* ---------- 内容页 ---------- */
.article-page { padding: 20px 0 40px; }
.article-layout { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.article-main { background: #fff; border: 1px solid var(--fp-line); padding: 36px 48px 44px; }
.art-title { font-size: 30px; font-weight: 800; text-align: center; color: #1a1a1a; margin: 0 0 10px; line-height: 1.45; }
.art-subtitle { font-size: 18px; text-align: center; color: var(--fp-sub); margin: 0 0 22px; font-weight: 400; }
.art-meta { max-width: 620px; margin: 0 auto 28px; background: var(--fp-soft); border: 1px dashed #cbd5e1; text-align: center; padding: 9px 14px; font-size: 13px; color: var(--fp-sub); }
.art-meta span { margin: 0 10px; }
.art-toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 14px; font-size: 13px; }
.art-toolbar button { border: 1px solid var(--fp-line); background: #fff; color: var(--fp-sub); padding: 3px 10px; border-radius: 4px; cursor: pointer; }
.art-toolbar button:hover { border-color: var(--front-primary); color: var(--front-primary); }
.art-cover { display: block; max-width: 100%; margin: 0 auto 26px; border-radius: 4px; }
/* 领导之窗详情页：仿旧版（职务+姓名 / 发布时间虚线框 / 照片居中） */
.leader-detail { text-align: center; padding: 12px 20px 30px; }
.leader-detail .ld-title { font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 21px; color: #000; line-height: 1.5; font-weight: 400; margin: 16px 0 20px; min-height: 32px; }
.leader-detail .ld-date { max-width: 620px; margin: 0 auto 22px; border: 1px dashed #ccc; padding: 6px 10px; font-size: 14px; color: #333; }
.leader-detail .ld-photo img { max-width: 100%; height: auto; display: inline-block; }
.leader-detail .ld-back { margin-top: 26px; text-align: left; font-size: 14px; }
.leader-detail .ld-back a { color: var(--front-primary); text-decoration: none; }
.art-content { line-height: 2; color: #333; }
/* 单页栏目正文：固定 16px 微软雅黑（仅列表页范围，不影响文章详情页） */
.list-page .art-content { font-size: 16px; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; }
.art-content p { margin: 0 0 18px; text-indent: 2em; }
.art-content img { max-width: 100%; border-radius: 4px; margin: 12px 0; height: auto; }
.art-content video { max-width: 100%; border-radius: 4px; margin: 12px 0; display: block; }
.art-content div[style*="text-align"] { margin: 12px 0; }
.art-content div[style*="text-align"] p { text-indent: 0; }
.art-content .rte-figure { margin: 14px 0; }
.art-content .rte-figure img, .art-content .rte-figure video { display: inline-block; max-width: 100%; margin: 0; }
.art-neighbors { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--fp-line); font-size: 14px; }
.art-neighbors a { display: block; padding: 7px 0; color: var(--fp-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-neighbors a:hover { color: var(--front-primary); }
.art-neighbors .label { color: var(--fp-sub); }
.art-side .pic-grid { grid-template-columns: repeat(2, 1fr); }

/* ---------- 页脚 ---------- */
.site-footer { background: #1b2b44; color: #aebbd0; text-align: center; padding: 26px 20px; font-size: 13px; line-height: 2; margin-top: 10px; }
.site-footer a { color: #8fb4e8; }
.site-footer a:hover { color: #fff; }

/* ---------- 工具 ---------- */
.loading { padding: 40px; text-align: center; color: var(--fp-sub); }
.alert-error { padding: 30px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--fp-line); border-top-color: var(--front-primary); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .focus-row, .home-bottom, .article-layout { grid-template-columns: 1fr; }
  .list-layout { grid-template-columns: 200px 1fr; }
  .section-grid { grid-template-columns: repeat(2, 1fr); }
  .rdx-row { grid-template-columns: 1fr; grid-template-rows: auto; gap: 12px; }
  .rdx-left, .rdx-banners, .rdx-info, .rdx-notice { grid-column: 1; grid-row: auto; }
  .rdx-banners { flex-direction: row; }
  .rdx-banners a { flex: 1; }
  .rdx-mix { grid-template-columns: 1fr; gap: 12px; }
  .pc-track a { flex-basis: calc((100% - 20px) / 3); }
}
@media (max-width: 720px) {
  .brandbar .wrap { height: auto; padding: 14px 0; flex-wrap: wrap; }
  .brand-search { margin-left: 0; width: 100%; }
  .brand-search input { flex: 1; width: auto; }
  .section-grid { grid-template-columns: 1fr; }
  .list-layout { grid-template-columns: 1fr; }
  .article-main { padding: 22px 18px; }
  .art-title { font-size: 22px; }
  .pic-grid { grid-template-columns: repeat(2, 1fr); }
}
