@charset "UTF-8";
/* ==========================================================================
   浙江党史和文献网 · 界面精修层
   在 reset / style / index.css 之后加载，只覆盖视觉表现，不改动布局尺寸。
   设计基调：党旗红 + 墨色 + 宣纸底，强调留白、细线、层次与克制。
   ========================================================================== */

:root {
  --gov-red: #a5211f;
  --gov-red-deep: #7d1715;
  --gov-red-soft: #f7ecea;
  --gov-gold: #b48a4a;
  --ink: #1f2329;
  --ink-2: #4a5159;
  --ink-3: #7b838d;
  --paper: #f7f5f0;
  --line: #e7e1d6;
  --line-strong: #d8d0c2;
  --serif: "Microsoft YaHei", "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;
  --sans: "Microsoft YaHei", "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;
}

body {
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 焦点可见性：键盘导航时才有描边，鼠标点击不打扰 */
a:focus-visible,
button:focus-visible,
.tab-header-item:focus-visible {
  outline: 2px solid var(--gov-red);
  outline-offset: 2px;
}

/* ---------- 顶部条 ---------- */
.layout-top {
  color: var(--ink-3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.layout-top .top-left a,
.layout-top .top-right a {
  color: var(--ink-3);
  transition: color 0.2s ease;
}
.layout-top .top-left a:hover,
.layout-top .top-right a:hover {
  color: var(--gov-red);
  opacity: 1;
  filter: none;
}
.layout-top .separator {
  background: var(--line-strong);
}

/* ---------- 搜索区 ---------- */
.layout-banner .query-input {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(31, 35, 41, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.layout-banner .query-input:focus-within {
  border-color: var(--gov-red);
  box-shadow: 0 0 0 3px rgba(165, 33, 31, 0.12);
}
.layout-banner .query-input input {
  border-radius: 999px 0 0 999px;
  color: var(--ink);
}
.layout-banner .query-input .query-btn {
  border-radius: 0 999px 999px 0;
  background-color: var(--gov-red);
  transition: background-color 0.2s ease;
}
.layout-banner .query-input .query-btn:hover {
  background-color: var(--gov-red-deep);
  opacity: 1;
  filter: none;
}

/* ---------- 主导航 ---------- */
.layout-nav .w1200 ul {
  background: linear-gradient(90deg, #16304f 0%, #1f3a5f 55%, #16304f 100%);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(22, 48, 79, 0.16);
}
.layout-nav .w1200 li a {
  background-color: transparent;
  color: #fff;
  font-family: var(--serif);
  font-size: 16px;
  position: relative;
  transition: color 0.22s ease, background-color 0.22s ease;
}
.layout-nav .w1200 li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gov-red);
  transform: translateX(-50%);
  transition: width 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.layout-nav .w1200 li a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.layout-nav .w1200 li a:hover::after {
  width: 56px;
}
.layout-nav .w1200 .active a {
  background-color: rgba(165, 33, 31, 0.22);
  color: #fff;
  font-weight: 600;
}
.layout-nav .w1200 .active a::after {
  width: 56px;
}

/* ---------- 左侧栏目切换：从"整块红"改为"细竖线 + 淡底" ---------- */
.tab-header-item {
  position: relative;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 18px;
  border-radius: 6px;
  transition: color 0.22s ease, background-color 0.22s ease;
}
.tab-header-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  bottom: 15px;
  width: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background-color 0.22s ease, top 0.22s ease, bottom 0.22s ease;
}
.tab-header-item:hover {
  background: var(--paper);
  color: var(--gov-red);
}
.tab-header-item:hover::before {
  background: rgba(165, 33, 31, 0.35);
}
.tab-header-item.current {
  background: var(--gov-red-soft);
  color: var(--gov-red);
  font-weight: 600;
}
.tab-header-item.current::before {
  background: var(--gov-red);
}

/* ---------- 内容列表 ---------- */
.list,
.text-list ul li {
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}
.list:hover,
.text-list ul li:hover {
  background: #fcfbf8;
}
.list .picture img {
  border-radius: 6px;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s ease;
}
.list .picture img:hover {
  transform: scale(1.03);
  opacity: 1;
}
.list .intro-action .mation-intro {
  color: var(--ink);
  font-size: 22px;
}
.list .intro-action .mation-intro a {
  line-height: 31px;
  font-weight: normal;
  transition: color 0.2s ease;
}
.list .intro-action .mation-intro a:hover {
  color: var(--gov-red);
  opacity: 1;
}
.list .intro-action .mation-other-date,
.list .intro-action .mation-other-red,
.list .intro-action .mation-other-blue,
.list .intro-action .mation-other-yellow {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.list .intro-action .mation-other-date {
  color: var(--ink-3);
}

.text-list ul li .list-left {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 30px;
  transition: color 0.2s ease;
}
.text-list ul li .list-left:hover {
  color: var(--gov-red);
  opacity: 1;
}

.text-list ul::-webkit-scrollbar {
  width: 6px;
}
.text-list ul::-webkit-scrollbar-thumb {
  background: #dcd5c8;
  border-radius: 3px;
}
.text-list ul::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- 右侧面板 ---------- */
.common-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gov-red);
  border-radius: 4px 4px 10px 10px;
  box-shadow: 0 2px 10px rgba(31, 35, 41, 0.05);
  overflow: hidden;
}
.common-panel4 {
  background: #fcfbf8;
}

.panel-header {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.panel-header .header-left {
  position: relative;
  padding-left: 14px;
  color: var(--ink);
  font-family: "DFPLiJinHeiW8", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.04em;
}
.panel-header .header-left::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 18px;
  margin-top: -9px;
  border-radius: 2px;
  background: var(--gov-red);
}
.panel-header .more {
  color: var(--ink-3);
  font-size: 14px;
  transition: color 0.2s ease;
}
.panel-header .more:hover {
  color: var(--gov-red);
}
.panel-header .more .icon-more {
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.panel-header .more:hover .icon-more {
  transform: translateX(2px);
  opacity: 1;
}

/* ---------- 刷新/提示条 ---------- */
.freshen {
  background: #fbf8f2;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  transition: background-color 0.2s ease;
}
.freshen:hover {
  background: #f6f1e7;
}
.freshen .freshen-text {
  color: var(--ink-2);
  font-size: 16px;
}

/* ---------- 文末信息 ---------- */
.group-4 .mation-intro .intro-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}
.group-4 .mation-intro .mailbox,
.group-4 .mation-other .mailbox {
  color: var(--gov-red);
  font-weight: 600;
}
.group-4 .intro-text,
.group-4 .phone,
.group-4 .mation-intro .piece,
.group-4 .mation-other .piece {
  color: var(--ink-2);
  line-height: 1.9;
}

/* ---------- 页脚 ---------- */
.layout-footer {
  background: #efece5;
  border-top: 1px solid var(--line-strong);
}
.layout-footer .friend-link .label {
  background: var(--gov-red);
  border-radius: 4px 0 0 4px;
}
.layout-footer .friend-link .label::after {
  border-left-color: var(--gov-red);
}
.layout-footer .friend-link .normal-input,
.layout-footer .friend-link .select-input dt {
  border-radius: 4px;
  border: 1px solid var(--line-strong);
}
.layout-footer .friend-link .select-input dt .icon-edge {
  background: var(--gov-red);
  border-radius: 0 4px 4px 0;
}
.layout-footer .friend-link .select-input dd {
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(31, 35, 41, 0.12);
  overflow: hidden;
}
.layout-footer .friend-link .select-input dd p:hover {
  background: var(--gov-red);
}
.layout-footer .copyRight {
  color: var(--ink-3);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   首页专用（templates/index/index_new*.html）
   首页不使用 .layout-nav / .layout-banner，实际结构是
   .layout-header .header-left / .input-item / .nav-right、.tab-header、
   .right-box .common-panel、.code、.footer-bottom-content
   ========================================================================== */

/* 顶部工具条：时间 + 搜索 + 邮箱 */
.layout-header .nav-left {
  color: var(--ink-2);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.layout-header .header-left {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.layout-header .nav-right .nav-text,
.layout-header .nav-right .nav-text a {
  color: var(--ink-3);
  font-size: 16px;
  transition: color 0.2s ease;
}
.layout-header .nav-right .nav-text a:hover {
  color: var(--gov-red);
  opacity: 1;
}
.layout-header .nav-right .record {
  background: var(--gov-red);
  border-radius: 6px;
  font-size: 16px;
  transition: background-color 0.2s ease;
}
.layout-header .nav-right .record:hover {
  background: var(--gov-red-deep);
}

/* 搜索：胶囊输入框 + 党旗红按钮 */
.layout-header .input-item input {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px 0 0 999px;
  color: var(--ink);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.layout-header .input-item input::placeholder {
  color: var(--ink-3);
}
.layout-header .input-item input:focus {
  border-color: var(--gov-red);
  box-shadow: 0 0 0 3px rgba(165, 33, 31, 0.12);
  outline: none;
}
.layout-header .input-item .search {
  background: var(--gov-red);
  border-radius: 0 999px 999px 0;
  font-size: 16px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.layout-header .input-item .search:hover {
  background: var(--gov-red-deep);
  box-shadow: 0 2px 8px rgba(165, 33, 31, 0.28);
}

/* 左侧栏目：细竖线 + 淡红底，替代整块红 */
.tab-header .tab-header-item {
  position: relative;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 18px;
  border-radius: 6px;
  transition: color 0.22s ease, background-color 0.22s ease;
}
.tab-header .tab-header-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  bottom: 15px;
  width: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background-color 0.22s ease;
}
.tab-header .tab-header-item:hover {
  background: var(--paper);
  color: var(--gov-red);
}
.tab-header .tab-header-item:hover::before {
  background: rgba(165, 33, 31, 0.35);
}
.tab-header .tab-header-item.current {
  background: var(--gov-red-soft);
  color: var(--gov-red);
  font-weight: 600;
}
.tab-header .tab-header-item.current::before {
  background: var(--gov-red);
}

/* 内容列表：缩略图圆角裁切 */
.list .picture {
  overflow: hidden;
  border-radius: 6px;
}

/* 右侧栏目卡片 */
.right-box .common-panel {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gov-red);
  border-radius: 4px 4px 10px 10px;
  box-shadow: 0 2px 10px rgba(31, 35, 41, 0.05);
}
.right-box .common-panel4 {
  background: #fff;
}
.layout-container .panel-header .header-left {
  color: var(--ink);
  font-family: "DFPLiJinHeiW8", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.04em;
}

/* 栏目入口图 */
.project-list li img {
  border-radius: 8px;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s ease;
}
.project-list li a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 35, 41, 0.14);
}

/* 地方党史网站 */
.panel-body .district-list li .region {
  color: var(--ink-2);
  font-size: 16px;
  transition: color 0.2s ease;
}
.panel-body .district-list li .region:hover {
  color: var(--gov-red);
}

/* 二维码卡片 */
.code .code-left {
  box-sizing: border-box;
  background: linear-gradient(180deg, #fbf9f5 0%, #f3efe7 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.code .code-left::before {
  width: 100%;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: var(--gov-red);
}
.code .code-left .QR-code .qr-text {
  color: var(--ink-2);
  font-size: 16px;
  letter-spacing: 0.02em;
}

/* 首页切换出的其它展现形式（文章 / 影像 / 视窗） */
.article .top-header {
  border-top: 2px solid var(--gov-red);
}
.article .top-header-item {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
}
.article .pane-item {
  border-bottom: 1px solid var(--line);
}
.article .pane-link span {
  color: var(--ink);
}
.article .pane-link p {
  color: var(--ink-3);
}
.layout-container-list .top-title .title-img {
  background: var(--gov-red);
  font-family: var(--serif);
}
.layout-container-list ul li::before {
  background: var(--gov-red);
}
.layout-container-block .action .list-item img {
  border-radius: 6px;
}

/* 页脚 */
.footer-bottom-content .content-data p {
  color: var(--ink-2);
  font-size: 20px;
  letter-spacing: 0.04em;
}
.footer-bottom-content .content-data p a {
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.footer-bottom-content .content-data p a:hover {
  color: var(--gov-red);
}

/* ==========================================================================
   列表 / 详情页顶部信息条（.header-plain）
   原结构靠 float + 负 margin 排版，右侧邮箱会被裁掉，这里改为单行 flex
   ========================================================================== */
.layout-header .header-plain {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
  margin-top: 10px;
  padding: 0 10px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
}
.layout-header .header-plain .nav-left,
.layout-header .header-plain .nav-right,
.layout-header .header-plain .nav-on,
.layout-header .header-plain .input-item {
  float: none;
  margin: 0;
  height: auto;
  line-height: 1.4;
}
.layout-header .header-plain .nav-left {
  margin-right: auto;
  color: var(--ink-2);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.layout-header .header-plain .nav-left .date {
  color: var(--ink);
}
.layout-header .header-plain .nav-left .time {
  margin-left: 14px;
  color: var(--ink-2);
}
.layout-header .header-plain .nav-on {
  color: var(--ink-2);
  font-size: 16px;
}
.layout-header .header-plain .input-item {
  display: inline-flex;
  align-items: center;
}
.layout-header .header-plain .input-item input {
  height: 40px;
  margin-top: 0;
}
.layout-header .header-plain .input-item .search {
  height: 40px;
  line-height: 40px;
}
.layout-header .header-plain .nav-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.layout-header .header-plain .nav-right .nav-text {
  margin-right: 0;
  color: var(--ink-3);
  font-size: 16px;
}
.layout-header .header-plain .nav-right .record {
  width: 60px;
  height: 30px;
  line-height: 30px;
  margin-right: 0;
  padding: 0;
  border-radius: 4px;
  font-size: 16px;
  text-align: center;
}

/* ==========================================================================
   分页（Islands 用 antd 渲染，默认样式偏「图标+蓝框」，这里换成政务红）
   ========================================================================== */
.ant-pagination.ant-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 28px 0 8px;
  font-family: var(--sans);
}
.ant-pagination.ant-pagination .ant-pagination-total-text {
  margin-right: 10px;
  color: var(--ink-3);
  font-size: 14px;
}
.ant-pagination.ant-pagination .ant-pagination-item,
.ant-pagination.ant-pagination .ant-pagination-prev,
.ant-pagination.ant-pagination .ant-pagination-next,
.ant-pagination.ant-pagination .ant-pagination-jump-prev,
.ant-pagination.ant-pagination .ant-pagination-jump-next {
  min-width: 32px !important;
  height: 32px !important;
  line-height: 30px !important;
  margin: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  background: #fff;
  transition: border-color 0.18s ease, background-color 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease;
}
.ant-pagination.ant-pagination .ant-pagination-item a {
  padding: 0 6px;
  color: var(--ink-2);
  font-size: 14px;
  transition: color 0.18s ease;
}
.ant-pagination.ant-pagination .ant-pagination-item:hover {
  border-color: var(--gov-red) !important;
  background: var(--gov-red-soft);
}
.ant-pagination.ant-pagination .ant-pagination-item:hover a {
  color: var(--gov-red);
}
.ant-pagination.ant-pagination .ant-pagination-item-active {
  border-color: var(--gov-red) !important;
  background: var(--gov-red) !important;
  box-shadow: 0 2px 8px rgba(165, 33, 31, 0.24);
}
.ant-pagination.ant-pagination .ant-pagination-item-active a {
  color: #fff !important;
  font-weight: 600;
}
.ant-pagination.ant-pagination .ant-pagination-item-active:hover {
  border-color: var(--gov-red-deep) !important;
  background: var(--gov-red-deep) !important;
}
.ant-pagination.ant-pagination .ant-pagination-prev .ant-pagination-item-link,
.ant-pagination.ant-pagination .ant-pagination-next .ant-pagination-item-link,
.ant-pagination.ant-pagination .ant-pagination-jump-prev .ant-pagination-item-link,
.ant-pagination.ant-pagination .ant-pagination-jump-next .ant-pagination-item-link {
  border: 0 !important;
  background: transparent !important;
  color: var(--ink-2);
  font-size: 14px;
  border-radius: 6px;
}
.ant-pagination.ant-pagination .ant-pagination-prev:hover .ant-pagination-item-link,
.ant-pagination.ant-pagination .ant-pagination-next:hover .ant-pagination-item-link {
  color: var(--gov-red);
  background: var(--gov-red-soft) !important;
}
.ant-pagination.ant-pagination
  .ant-pagination-disabled
  .ant-pagination-item-link {
  color: #c3c8ce;
}
.ant-pagination.ant-pagination .anticon svg {
  fill: currentColor;
}
.ant-pagination.ant-pagination .ant-pagination-options {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}
.ant-pagination.ant-pagination .ant-select .ant-select-selector {
  height: 32px !important;
  border-radius: 6px !important;
  border-color: var(--line-strong) !important;
  background: #fff;
  box-shadow: none !important;
}
.ant-pagination.ant-pagination .ant-select .ant-select-selection-item {
  line-height: 30px !important;
  color: var(--ink-2);
  font-size: 13px;
}
.ant-pagination.ant-pagination .ant-pagination-options-quick-jumper {
  color: var(--ink-3);
  font-size: 13px;
}
.ant-pagination.ant-pagination .ant-pagination-options-quick-jumper input {
  width: 48px;
  height: 32px;
  margin: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ant-pagination.ant-pagination .ant-pagination-options-quick-jumper input:focus {
  border-color: var(--gov-red);
  box-shadow: 0 0 0 3px rgba(165, 33, 31, 0.12);
  outline: none;
}

/* 搜索页加载遮罩（替代已下线的 layer.load） */
.s-loading-mask {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.s-loading-ring {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--gov-red);
  border-radius: 50%;
  animation: s-spin 0.8s linear infinite;
}
@keyframes s-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 全局细节 ---------- */
img {
  -webkit-user-drag: none;
}
::selection {
  background: rgba(165, 33, 31, 0.14);
  color: var(--ink);
}

/* ==========================================================================
   附件 / PDF / 视频 统一预览层
   ========================================================================== */
.pv-mask {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 17, 22, 0.78);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.pv-mask.is-open {
  opacity: 1;
  visibility: visible;
}
.pv-panel {
  display: flex;
  flex-direction: column;
  width: 92vw;
  height: 88vh;
  max-width: 1280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pv-mask.is-open .pv-panel {
  transform: translateY(0) scale(1);
}
.pv-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  height: 54px;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.pv-badge {
  flex: 0 0 auto;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--gov-red-soft);
  color: var(--gov-red);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: 0.06em;
}
.pv-badge-pdf {
  background: #fbeee9;
  color: #b2411f;
}
.pv-badge-video {
  background: #eef3fa;
  color: #1f4e88;
}
.pv-title {
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pv-action,
.pv-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pv-action:hover {
  border-color: var(--gov-red);
  color: var(--gov-red);
}
.pv-close {
  width: 32px;
  padding: 0;
  border-color: transparent;
  font-size: 20px;
}
.pv-close:hover {
  background: var(--gov-red-soft);
  color: var(--gov-red);
}
.pv-body {
  position: relative;
  flex: 1 1 auto;
  overflow: auto;
  background: #f2efe9;
}
.pv-body iframe,
.pv-body img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.pv-body img {
  object-fit: contain;
  cursor: zoom-in;
}
.pv-body.is-zoom {
  overflow: auto;
  background: #e9e5dd;
}
.pv-body.is-zoom img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0 auto;
  object-fit: none;
  cursor: zoom-out;
}
.pv-body video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}
.pv-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.pv-tip {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  font-size: 15px;
}
.pv-tip-actions {
  display: flex;
  gap: 12px;
}
.pv-tip-actions .pv-action {
  text-decoration: none;
}

/* PDF.js 预览样式（canvas 分页渲染，替代 iframe 全量加载） */
.pv-pdf-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #525659;
}
.pv-pdf-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 16px;
  background: #323639;
  color: #eee;
  border-bottom: 1px solid #1a1b1c;
}
.pv-pdf-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
}
.pv-pdf-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4a4f53;
  color: #eee;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.pv-pdf-btn:hover {
  background: #5d6266;
}
.pv-pdf-btn:active {
  background: #3a3d40;
}
.pv-pdf-scale {
  min-width: 54px;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pv-pdf-pages {
  margin-left: 2px;
  font-size: 12px;
  color: #aaa;
}
.pv-pdf-canvas-list {
  position: relative;
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px 0;
  background: #525659;
  text-align: center;
  overscroll-behavior: contain;
}
/* 每页固定容器：未渲染时是白纸 + 页码，渲染后内嵌 canvas */
.pv-pdf-page {
  position: relative;
  display: block;
  margin: 12px auto;
  border-radius: 2px;
  background: #fbfaf7;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.pv-pdf-page.is-blank::after {
  content: attr(data-page-num);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fdfdfb 0%, #f6f2ec 100%);
  color: #dad4ca;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.pv-pdf-page canvas {
  display: block;
  width: 100%;
  height: 100%;
  animation: pv-canvas-in 0.3s ease both;
}
.pv-pdf-btn-fit {
  width: auto;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
}
.pv-pdf-jump input {
  width: 46px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid #5d6266;
  border-radius: 4px;
  background: #3a3e42;
  color: #eee;
  font-size: 12px;
  text-align: center;
  outline: none;
  font-variant-numeric: tabular-nums;
}
.pv-pdf-jump input:focus {
  border-color: #c9a063;
}
.pv-pdf-jump input::placeholder {
  color: #8b9094;
}
@keyframes pv-canvas-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* PDF 打开过程中的加载遮罩：纸上微光 + 金色转环 + 细进度线 */
.pv-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 62%),
    linear-gradient(180deg, #4b4f53 0%, #3b3f43 100%);
  animation: pv-loading-in 0.3s ease both;
}
@keyframes pv-loading-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.pv-loading-sheet {
  position: absolute;
  width: min(540px, 60vw);
  aspect-ratio: 1 / 1.414;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f0e8 100%);
  opacity: 0.075;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}
.pv-loading-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pv-loading-mark {
  width: 64px;
  height: 64px;
}
.pv-loading-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pv-loading-ring {
  stroke: #c9a063;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 42 122;
  transform-origin: 32px 32px;
  animation: pv-spin 1.15s linear infinite;
}
.pv-loading-icon {
  stroke: rgba(255, 255, 255, 0.66);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
@keyframes pv-spin {
  to {
    transform: rotate(360deg);
  }
}
.pv-loading-title {
  margin: 0;
  font-family: "Songti SC", "SimSun", "STSong", serif;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.88);
}
.pv-loading-track {
  position: relative;
  width: 224px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.pv-loading-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #a5211f 0%, #d9a441 100%);
  transition: width 0.32s ease;
}
.pv-loading-track.is-indeterminate .pv-loading-fill {
  width: 38%;
  animation: pv-indeterminate 1.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes pv-indeterminate {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(300%);
  }
}
.pv-loading-meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.48);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .pv-panel {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
  }
}

/* ==========================================================================
   左侧栏目导航（党建视窗 / 组织机构等左栏 iframe 页）
   原样式只有字号没有字重，视觉偏细；这里加粗并补政务红激活态
   ========================================================================== */
.imprintWrap .imprint-flow .flow-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gov-red);
}
.imprintWrap .imprint-flow .flow-body .nav {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.imprintWrap .imprint-flow .flow-body .nav .nav-name {
  height: 54px;
  line-height: 54px;
  padding-left: 28px;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.imprintWrap .imprint-flow .flow-body .nav.active .nav-name {
  font-weight: 700;
  color: var(--gov-red);
  background: var(--gov-red-soft);
  box-shadow: inset 3px 0 0 var(--gov-red);
}
.imprintWrap .imprint-flow .flow-body .nav .nav-name:hover {
  color: var(--gov-red);
}
.imprintWrap .imprint-flow .flow-body .subnav-list .subnav {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.2s ease;
}
.imprintWrap .imprint-flow .flow-body .subnav-list .subnav.active {
  font-weight: 700;
  color: var(--gov-red);
}
.imprintWrap .imprint-flow .flow-body .subnav-list .subnav:hover {
  color: var(--gov-red);
}
.imprintWrap .imprint-flow .flow-body .nav-arrow {
  color: var(--ink-3);
}

/* ==========================================================================
   页脚：原高度 190px 且内容集中在上半部，下方约 100px 空白，这里压到 122px 并垂直居中
   ========================================================================== */
.footer-bottom {
  height: 122px;
  background-size: 100% 100%;
}
.footer-bottom .footer-bottom-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-bottom .footer-bottom-content .pollcy {
  /* 图标改为参与 flex 布局，避免绝对定位压在居中的文字上 */
  position: static;
  top: auto;
  left: auto;
  transform: none;
  flex: none;
  margin: 0 20px 0 0;
}
.footer-bottom-content .content-data {
  padding-top: 0;
}
.footer-bottom-content .content-data p {
  line-height: 1.5;
  margin-bottom: 8px;
}
.footer-bottom-content .content-data p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   搜索页（templates/search.html）
   原清除 / 搜索图标相对 .search-right 定位，跑到了输入框外；这里改为胶囊输入条，
   两个图标在条内垂直居中
   ========================================================================== */
.container .search-right .search-title {
  position: relative;
  display: flex;
  align-items: center;
  height: 54px;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 0 20px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.container .search-right .search-title:focus-within {
  border-color: var(--gov-red);
  box-shadow: 0 0 0 3px rgba(165, 33, 31, 0.12);
}
.container .search-right .search-title input {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0 92px 0 4px;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
}
.container .search-right .search-title input:focus {
  outline: none;
}
.container .search-right .search-title i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
}
.container .search-right .search-title #ssDel {
  right: 64px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
}
.container .search-right .search-title #ssDel img {
  display: block;
  width: 18px;
  height: 18px;
  margin: 3px auto;
}
.container .search-right .search-title #clickSub {
  right: 20px;
  font-size: 22px;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.2s ease;
}
.container .search-right .search-title #clickSub:hover {
  color: var(--gov-red);
}

/* ==========================================================================
   文章详情页（templates/content/szds_details.html / ZJDetails.html 等）
   源站基准：body 14px、line-height normal、正文纯黑，段落 <p> 默认下间距 10px。
   新站 reset.css 把基准压成了 12px / 1.5，这里补齐被压缩的正文排版；
   不使用 !important，CMS 正文自带的内联样式仍然优先。
   ========================================================================== */
.detailWrap {
  font-size: 14px;
  line-height: normal;
  color: #000;
  /* 源站详情页以 Helvetica Neue/PingFang 优先，中文比微软雅黑更窄，
     使用微软雅黑优先会让长标题多折一行，故此处单独对齐源站字体栈 */
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;
}
.detailWrap .title {
  line-height: normal;
}
.detailWrap .msg {
  line-height: normal;
}
.detailWrap .content {
  font-size: 16px;
  line-height: 28px;
  color: #333;
}
/* 源站模板（ZJDetails.html）内联 style 定义了 body .paragraph { padding-top: 12px; }，
   新站模板未带此内联样式，这里补齐 */
.detailWrap .paragraph {
  padding-top: 12px;
}
.detailWrap .paragraph p {
  margin: 0 0 10px;
}
.detailWrap .paragraph p:last-child {
  margin-bottom: 0;
}
/* 正文图片：CMS 返回时去掉了源站的 style="max-width:750px"，
   原图可能超出内容区宽度；这里兜底限制宽度并居中显示 */
.detailWrap .paragraph img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
  cursor: pointer;
  border-radius: 2px;
}
/* 来源/作者行：源站为固定 38px 高、16px 字号，内容右对齐 */
.detailWrap .other {
  height: 38px;
  font-size: 16px;
}
.detailWrap .other span {
  display: inline-block;
  float: right;
  height: 38px;
  line-height: 38px;
}

/* 子栏目被 iframe 嵌入（党建视窗等左侧导航页）时只保留正文，避免重复出现页头页脚 */
html.szds-embedded .layout-header,
html.szds-embedded .layout-footer-box,
html.szds-embedded .breadcrumb {
  display: none !important;
}
html.szds-embedded body {
  min-width: 0 !important;
}

/* 嵌入 iframe 时内容宽度由 1200 改为自适应，避免右侧日期被裁切 */
html.szds-embedded body {
  overflow-x: hidden !important;
}
html.szds-embedded .layout-container,
html.szds-embedded .layout-content,
html.szds-embedded .w1200 {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
html.szds-embedded .szds-doc-list li {
  padding-left: 4px;
  padding-right: 4px;
}
html.szds-embedded .szds-doc-list {
  padding-top: 4px;
}
html.szds-embedded .szds-doc-list li:hover {
  background: #faf7f2;
}

/* ===== 左侧导航栏目页（党建视窗等）视觉优化 ===== */
html.szds-embedded body {
  background: #fff;
  overflow-x: hidden !important;
}
html.szds-embedded .layout-container,
html.szds-embedded .layout-content,
html.szds-embedded .w1200 {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
html.szds-embedded .layout-container {
  margin: 0 !important;
  padding: 0 !important;
}
html.szds-embedded .layout-content {
  padding: 8px 20px 12px;
  box-sizing: border-box;
}

html.szds-embedded .szds-doc-list {
  margin: 0;
  padding: 0;
}
html.szds-embedded .szds-doc-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 10px 15px 16px;
  border-bottom: 1px dashed #ece3d6;
  transition: background .18s ease, padding-left .18s ease;
}
html.szds-embedded .szds-doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, #c4342f, #8f1c19);
  transform: translateY(-50%);
  transition: height .2s ease;
}
html.szds-embedded .szds-doc-list li:hover {
  padding-left: 20px;
  background: linear-gradient(90deg, #fdf6ec, rgba(253, 246, 236, 0));
}
html.szds-embedded .szds-doc-list li:hover::before {
  height: 62%;
}
html.szds-embedded .szds-doc-list li a {
  font-size: 16px;
  color: #2f2a26;
  line-height: 1.6;
}
html.szds-embedded .szds-doc-list li a:hover {
  color: #a5211f;
}
html.szds-embedded .szds-doc-list .szds-doc-time {
  color: #9c9288;
  font-size: 13px;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}

/* 左侧栏目树 */
.imprintWrap .nav .nav-name {
  border-radius: 4px 0 0 4px;
  transition: background .18s ease, color .18s ease;
}
.imprintWrap .nav .nav-name:hover {
  opacity: 1;
  background: rgba(165, 33, 31, .06);
}
.imprintWrap .nav.active .nav-name {
  color: #a5211f;
  font-weight: 600;
  background: linear-gradient(90deg, #fbeee5 0%, rgba(251, 238, 229, 0) 96%);
  box-shadow: inset 3px 0 0 #a5211f;
}
.imprintWrap .subnav-list .subnav {
  transition: color .18s ease;
}
.imprintWrap .subnav-list .subnav:hover {
  opacity: 1;
  color: #a5211f;
}
.imprintWrap .subnav-list .subnav.active {
  color: #a5211f;
  font-weight: 600;
}
.imprintWrap .traffic-content {
  border: 1px solid #eee7db;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(120, 90, 60, .06);
}
html.szds-embedded .szds-doc-list li a {
  position: relative;
  padding-left: 14px;
}
html.szds-embedded .szds-doc-list li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9a86a;
  opacity: .8;
  transition: background .18s ease, transform .18s ease;
}
html.szds-embedded .szds-doc-list li:hover a::before {
  background: #a5211f;
  transform: scale(1.25);
}

/* iframe 高度由内容决定，避免内外层双滚动条 */
.imprintWrap .traffic-content {
  height: auto !important;
}
.imprintWrap .traffic-content .child-iframe {
  display: block;
  width: 100%;
  height: 580px;
  border: 0;
}
