/**
 * 公共样式 - 所有页面共用
 * 导航栏、按钮、基础布局统一
 * 主题：简约蓝(默认)、活力橙、清新绿 通过 html[data-theme] 切换 */
* { box-sizing: border-box; }

/* 主题变量：简约蓝（默认） */
:root,
html[data-theme="simple-blue"] {
  --theme-nav-bg-start: #165DFF;
  --theme-nav-bg-end: #0d3ba8;
  --theme-nav-accent: #FFE566;
  --theme-nav-underline-start: #93c5ff;
  --theme-nav-underline-end: #FFE566;
  --theme-primary: #165DFF;
  --theme-primary-hover: #0d3ba8;
  --theme-primary-border: #1452e0;
  --theme-stat-active-bg: rgba(22, 93, 255, 0.1);
  --theme-hero-bg: linear-gradient(135deg, #e0ecff 0%, #c7dcff 100%);
  --theme-hero-text: #1e3a8a;
  --theme-hero-sub: #1e40af;
}
/* 活力橙 */
html[data-theme="vivid-orange"] {
  --theme-nav-bg-start: #f97316;
  --theme-nav-bg-end: #ea580c;
  --theme-nav-accent: #fbbf24;
  --theme-nav-underline-start: #fdba74;
  --theme-nav-underline-end: #fde68a;
  --theme-primary: #ea580c;
  --theme-primary-hover: #c2410c;
  --theme-primary-border: #dc2626;
  --theme-stat-active-bg: rgba(249, 115, 22, 0.12);
  --theme-hero-bg: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  --theme-hero-text: #9a3412;
  --theme-hero-sub: #c2410c;
}
/* 清新绿 */
html[data-theme="fresh-green"] {
  --theme-nav-bg-start: #059669;
  --theme-nav-bg-end: #047857;
  --theme-nav-accent: #6ee7b7;
  --theme-nav-underline-start: #34d399;
  --theme-nav-underline-end: #a7f3d0;
  --theme-primary: #059669;
  --theme-primary-hover: #047857;
  --theme-primary-border: #047857;
  --theme-stat-active-bg: rgba(5, 150, 105, 0.12);
  --theme-hero-bg: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  --theme-hero-text: #065f46;
  --theme-hero-sub: #047857;
}

html { scrollbar-gutter: stable; background: #f8fafc; }
@supports not (scrollbar-gutter: stable) {
    html { overflow-y: scroll; }
}

body {
    opacity: 1;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* 已通过 html 的稳定滚动条槽位避免布局跳动，阻止 Bootstrap 打开弹窗时再次补偿右侧宽度 */
body.modal-open {
    padding-right: env(safe-area-inset-right) !important;
}

/* 原生日期/月份控件：浅色下显式 color-scheme，减少 WebKit 分段显示异常；深浅色均适用 tabular-nums（深色在 dark-mode.css 覆盖为 dark） */
input[type="date"].form-control,
input[type="month"].form-control,
input[type="datetime-local"].form-control {
    color-scheme: light;
    font-variant-numeric: tabular-nums;
}

/* 导航栏 - 防止链接换行成两行，隔离布局避免受主内容影响；颜色使用主题变量 */
.navbar {
    background: linear-gradient(135deg, var(--theme-nav-bg-start) 0%, var(--theme-nav-bg-end) 100%);
    padding: 0.5rem 1rem;
    align-items: center;
    position: relative;
    z-index: 1030;
    overflow: visible;
}
.navbar-brand { font-size: 16px; }
/* 前台顶栏：网站标题与模块字阴影（渐变蓝底上增强层次，不含管理后台） */
nav.navbar-expand-lg:not(.admin-topbar) .navbar-brand {
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.42);
}
nav.navbar-expand-lg:not(.admin-topbar) .nav-module-link {
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.38);
}
.navbar-collapse { align-items: center; overflow: visible; flex-wrap: wrap; }
.navbar-nav.me-auto { position: relative; }
.navbar-nav.ms-auto { position: relative; }
.navbar-nav.ms-auto > .nav-link { flex: 0 0 auto; width: max-content; }

/* 全站试验：导航条固定置顶，滚动后切换窄版 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1035;
    transition: padding 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: padding, box-shadow;
}
.navbar .navbar-brand {
    transition: font-size 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.navbar .nav-module-link {
    transition: padding 0.32s cubic-bezier(0.22, 1, 0.36, 1), font-size 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.navbar .navbar-user-menu > .nav-link.dropdown-toggle,
.navbar .navbar-user-menu #user-role-short {
    transition: padding 0.32s cubic-bezier(0.22, 1, 0.36, 1), font-size 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.navbar.navbar-compact {
    padding-top: 0.14rem;
    padding-bottom: 0.14rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}
.navbar.navbar-compact .navbar-brand {
    font-size: 14px;
}
.navbar.navbar-compact .nav-module-link {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    font-size: 12.5px;
}
.navbar.navbar-compact .navbar-user-menu > .nav-link.dropdown-toggle {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
}
.navbar.navbar-compact .navbar-user-menu #user-role-short {
    font-size: 13px;
}

/* 顶部导航链接：仅悬停时下划线动效，去掉焦点/点击态 */
.nav-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.2s ease;
    outline: none;
}
.nav-module-link {
    position: relative;
    color: #ffffff !important;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    outline: none;
}
/* 导航模块红点（全站唯一：.nav-has-new；与页内 .jiandu-new-badge 区分） */
.nav-module-link.nav-has-new::before {
    content: "";
    position: absolute;
    top: 4px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4d4f 100%);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.8);
    z-index: 1;
}
@media (max-width: 767px) {
    .nav-module-link.nav-has-new::before {
        top: 2px;
        right: 4px;
        width: 6px;
        height: 6px;
    }
}
/* 每周工作：存在已发起且进行中的填报时，导航文字右上「填报中」角标 */
.nav-module-link.nav-meizhou-filling {
    padding-right: 0.5rem;
}
.nav-module-link .nav-meizhou-fill-badge {
    position: absolute;
    top: 1px;
    right: 2px;
    z-index: 2;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.15;
    padding: 1px 3px;
    border-radius: 3px;
    white-space: nowrap;
    color: #664d03;
    background: rgba(255, 214, 102, 0.95);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
    pointer-events: none;
}
@media (max-width: 767px) {
    .nav-module-link .nav-meizhou-fill-badge {
        font-size: 8px;
        padding: 0 2px;
        top: 0;
        right: 0;
    }
}
/* 下划线：仅悬停时展开，点击/焦点不触发 */
.nav-module-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--theme-nav-underline-start), var(--theme-nav-underline-end));
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: width 0.26s ease, opacity 0.26s ease;
}
.nav-module-link:hover::after {
    width: 68%;
    opacity: 1;
}
/* 悬停/当前页：文字保持纯白，仅用下划线与桌面端淡底区分状态 */
.nav-module-link:hover {
    color: #ffffff !important;
}

/* （已废弃）文件列表右上角角标样式已移除：统一使用 .badge-corner + .badge-file-pdf + .badge-new-file（民生实事同款） */
/* 当前页：下划线 + 桌面淡底；字色与默认一致为白 */
.nav-module-link.active,
.nav-module-link.active:hover,
.nav-module-link.active:focus {
    color: #ffffff !important;
}
.nav-module-link.active::after {
    width: 68% !important;
    opacity: 1 !important;
}
/* 桌面端：当前页/悬停下划线略细、略离字远，减轻「厚重」感（移动端卡片菜单仍隐藏 ::after） */
@media (min-width: 992px) {
    .navbar-expand-lg:not(.admin-topbar) .nav-module-link::after {
        bottom: 3px;
        height: 1.5px;
    }
    .navbar-expand-lg:not(.admin-topbar) .nav-module-link:hover::after {
        width: 58%;
    }
    .navbar-expand-lg:not(.admin-topbar) .nav-module-link.active::after {
        width: 56% !important;
    }
}
.navbar-version { font-size: 0.7em; opacity: 0.95; vertical-align: middle; }

/* 完成情况胶囊（首页、MS、PS 复用） */
.jiandu-status-pill {
    display: inline-block;
    min-width: 58px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
}
.jiandu-status-pill.status-doing {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.jiandu-status-pill.status-done {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* 「主题」下拉：宽度缩小、选项居中，选项带主题色底纹 */
#navbar-theme-wrap .dropdown-menu {
  min-width: 7rem;
  padding: 0.35rem 0;
  text-align: center;
}
/* 主题 + 用户下拉：不使用 Bootstrap Dropdown（无 data-bs-toggle），仅 CSS 展开，避免点击与悬停双重触发 */
@media (min-width: 992px) and (hover: hover) {
  nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-wrap.dropdown,
  nav.navbar-expand-lg:not(.admin-topbar) .navbar-user-menu.dropdown {
    position: relative;
  }
  nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-wrap.dropdown > .dropdown-menu,
  nav.navbar-expand-lg:not(.admin-topbar) .navbar-user-menu.dropdown > .dropdown-menu {
    margin-top: 0;
  }
  nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-wrap.dropdown:hover > .dropdown-menu,
  nav.navbar-expand-lg:not(.admin-topbar) .navbar-user-menu.dropdown:hover > .dropdown-menu {
    display: block;
  }
}
/* 大屏但不可悬停（如部分触控桌面）：焦点在触发条或菜单内时保持展开 */
@media (min-width: 992px) and (hover: none) {
  nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-wrap.dropdown:focus-within > .dropdown-menu,
  nav.navbar-expand-lg:not(.admin-topbar) .navbar-user-menu.dropdown:focus-within > .dropdown-menu {
    display: block;
  }
}
/* 折叠导航内：无悬停路径，用 :focus-within 在点按后展开 */
@media (max-width: 991.98px) {
  .navbar-collapse #navbar-theme-wrap.dropdown:focus-within > .dropdown-menu,
  .navbar-collapse .navbar-user-menu.dropdown:focus-within > .dropdown-menu {
    display: block !important;
  }
}
#navbar-theme-wrap .dropdown-item.theme-option {
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 13px;
}
#navbar-theme-wrap .dropdown-item.theme-option[data-theme="simple-blue"] {
  background: rgba(22, 93, 255, 0.12);
  color: #0d3ba8;
}
#navbar-theme-wrap .dropdown-item.theme-option[data-theme="simple-blue"]:hover,
#navbar-theme-wrap .dropdown-item.theme-option[data-theme="simple-blue"].active {
  background: rgba(22, 93, 255, 0.22);
  color: #0d3ba8;
}
#navbar-theme-wrap .dropdown-item.theme-option[data-theme="vivid-orange"] {
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
}
#navbar-theme-wrap .dropdown-item.theme-option[data-theme="vivid-orange"]:hover,
#navbar-theme-wrap .dropdown-item.theme-option[data-theme="vivid-orange"].active {
  background: rgba(249, 115, 22, 0.28);
  color: #c2410c;
}
#navbar-theme-wrap .dropdown-item.theme-option[data-theme="fresh-green"] {
  background: rgba(5, 150, 105, 0.14);
  color: #047857;
}
#navbar-theme-wrap .dropdown-item.theme-option[data-theme="fresh-green"]:hover,
#navbar-theme-wrap .dropdown-item.theme-option[data-theme="fresh-green"].active {
  background: rgba(5, 150, 105, 0.25);
  color: #047857;
}

/* 顶部导航「版本」文案，与「主题」入口同字号、同色 */
.navbar-version-indicator {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    cursor: default;
    display: inline-flex;
    align-items: center;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.navbar-version-indicator.is-placeholder {
    opacity: 0.55;
}
@media (min-width: 992px) {
    nav.navbar-expand-lg:not(.admin-topbar) {
        --navbar-muted-link: rgba(255, 255, 255, 0.45);
        --navbar-meta-font-size: 12px;
        /* 与下方 .navbar-zone-utilities --nav-dt-ms-gap 同步（0.42rem≈6.7px 偏紧，用 8px 更易对齐） */
        --navbar-ui-gap: 8px;
    }
    /* 顶栏右侧：与 VPSwitch(40×22)、缩放按钮同高的胶囊条 */
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-ui-slot .navbar-version-indicator {
        box-sizing: border-box;
        height: 22px;
        min-width: 40px;
        padding: 0 7px !important;
        margin: 0 !important;
        border-radius: 11px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em;
        line-height: 1 !important;
        white-space: nowrap;
        color: rgba(255, 255, 255, 0.92) !important;
        cursor: default;
        border: 1px solid rgba(255, 255, 255, 0.4);
        background-color: rgba(255, 255, 255, 0.16);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-ui-slot .navbar-version-indicator.is-placeholder {
        color: rgba(255, 255, 255, 0.55) !important;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-ui-slot .navbar-version-indicator:not(.is-placeholder) {
        cursor: pointer;
    }
    /* 「主题」入口：与缩放按钮同款胶囊（宽度随「主题」+ 箭头略宽于 40px） */
    nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-toggle {
        box-sizing: border-box;
        height: 22px;
        min-width: 40px;
        padding: 0 7px !important;
        margin: 0 !important;
        border-radius: 11px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        text-shadow: none !important;
        color: rgba(255, 255, 255, 0.92) !important;
        border: 1px solid rgba(255, 255, 255, 0.4);
        background-color: rgba(255, 255, 255, 0.16);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
        transition: border-color 0.25s ease, background-color 0.25s ease, color 0.2s ease;
    }
    nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-toggle.dropdown-toggle::after {
        margin-left: 0;
        flex-shrink: 0;
        vertical-align: middle;
        opacity: 0.9;
    }
    nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-wrap.dropdown:hover #navbar-theme-toggle,
    nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-wrap.dropdown:focus-within #navbar-theme-toggle,
    nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-toggle:hover,
    nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-toggle:focus {
        color: #ffffff !important;
        border-color: #3451b2;
        background-color: rgba(255, 255, 255, 0.24);
    }
    /* 顶栏右侧：强制 flex gap，避免被其它规则覆盖；间距不再依赖 Bootstrap me-* */
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities > .navbar-ui-slot {
        display: inline-flex !important;
        gap: var(--navbar-ui-gap, 8px) !important;
        align-items: center;
        flex-wrap: nowrap;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-ui-slot .navbar-version-indicator {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* 缩放按钮由 JS 稍晚注入：预留与按钮一致的宽度，减轻横向闪动 */
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zoom-slot {
        min-width: 44px;
        min-height: 22px;
    }
}
@media (max-width: 767px) {
    .navbar-version-indicator {
        display: none;
    }
}

/* 导航「版本」悬停 Popover：固定浅色面板，避免 html[data-scheme=dark] 下标题继承浅色字而不可读 */
.popover.navbar-version-popover {
    /* 与 Bootstrap 默认 Popover 宽度一致（--bs-popover-max-width ≈ 276px），避免过宽 */
    max-width: min(var(--bs-popover-max-width, 276px), calc(100vw - 1.5rem));
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.08);
    background: #fff;
}
.popover.navbar-version-popover .popover-header {
    padding: 0.55rem 0.9rem;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a !important;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.popover.navbar-version-popover .popover-body {
    padding: 0.5rem 0.9rem 0.65rem;
    color: #334155 !important;
    background: #fff !important;
}
.popover.navbar-version-popover .navbar-version-popover-item {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.5;
}
.popover.navbar-version-popover .navbar-version-popover-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.popover.navbar-version-popover .navbar-version-popover-item strong {
    color: #0f172a;
    font-weight: 700;
}

/* 导航列表保持 Bootstrap 默认布局 */
.navbar-nav { position: relative; align-items: center; }
.navbar-nav .nav-item { flex-shrink: 0; }
/* 右侧工具区：槽位宽度随内容，用 gap 统一相邻项间距（桌面断点再加强，见下方 @media min-width 992px） */
.navbar-ui-slot {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    /* 与桌面 --nav-dt-ms-gap 一致：统一相邻控件间距 */
    gap: var(--navbar-ui-gap, 8px);
    min-width: 0;
    flex: 0 0 auto;
}
.navbar-ui-slot-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* 与 VPSwitch 实际占位一致（40×22） */
.navbar-dark-slot {
    width: 40px;
    flex-shrink: 0;
}
.navbar-zoom-slot {
    width: 44px;
    min-width: 44px;
    flex-shrink: 0;
    box-sizing: border-box;
}
.navbar-theme-slot {
    width: 46px;
    min-width: 46px;
    justify-content: center;
}
.navbar-version-slot {
    width: 74px;
    min-width: 74px;
    justify-content: center;
}
.navbar-user-slot {
    width: auto;
    min-width: 0;
    justify-content: center;
}
.navbar-user-slot .navbar-user-menu {
    margin-left: 0;
    width: auto;
}
.navbar-user-slot .navbar-user-menu > .nav-link.dropdown-toggle {
    width: auto;
    justify-content: center;
}
.navbar-user-slot > .navbar-user-menu {
    display: block;
}
.navbar-user-slot #user-role-short {
    display: inline-block;
    width: auto;
    max-width: 220px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    text-align: left;
}
/* 导航栏右侧：当前身份、管理后台、退出登录、账号登录 - 小字号、所有文字不换行 */
.navbar-nav.ms-auto { flex-wrap: nowrap; flex-shrink: 0; }
.navbar-nav.ms-auto .nav-link { white-space: nowrap; font-size: 12px; }
/* 用户菜单：胶囊底 + 略大字号（与主题/版本间距由 .navbar-ui-slot gap 统一） */
.navbar-user-menu { margin-left: 0; }
.navbar-user-menu > .nav-link.dropdown-toggle {
    border-radius: 999px;
    padding: 0.35rem 0.8rem !important;
    min-width: 0;
    width: auto;
    max-width: min(32vw, 280px);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 13px !important;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.98) !important;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    /* 图标、用户名、下拉箭头同一 flex 行垂直居中 */
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap;
    gap: 0.4rem;
    line-height: 1.25;
}
.navbar-user-menu.dropdown:hover > .nav-link.dropdown-toggle,
.navbar-user-menu.dropdown:focus-within > .nav-link.dropdown-toggle,
.navbar-user-menu > .nav-link.dropdown-toggle:hover,
.navbar-user-menu > .nav-link.dropdown-toggle:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.48);
}
.navbar-user-menu > .nav-link.dropdown-toggle::after {
    opacity: 0.9;
    margin-left: 0;
    flex-shrink: 0;
    align-self: center;
}
.navbar-user-menu #user-role-short {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    margin: 0;
    opacity: 1;
    transition: opacity 0.16s ease;
}

/* 右侧工具区折叠入口（默认隐藏，仅平板/缩放触发后显示） */
.navbar-utils-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    height: 30px;
    min-width: 62px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 0 10px;
}
.navbar-utils-toggle:hover,
.navbar-utils-toggle:focus {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
}
.navbar-utils-toggle-text {
    font-size: 12px;
    letter-spacing: 0.02em;
}
.navbar-utils-userchip {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    height: 30px;
    max-width: 180px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.navbar-utils-userchip > .fa {
    flex-shrink: 0;
}
.navbar-utils-userchip #navbar-utils-userchip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.navbar-user-menu #user-role-short.is-updating {
    opacity: 0.72;
}
.navbar-user-menu .navbar-user-icon.fa {
    font-size: 1.05em;
    line-height: 1;
    width: 1.15em;
    height: 1.15em;
    margin: 0 !important;
    padding: 0;
    opacity: 0.95;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
/* body[data-user-role] 由 auth-display 在登录后写入；空串表示游客 */
body[data-user-role]:not([data-user-role=""]) .navbar-user-menu > .nav-link.dropdown-toggle {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 229, 102, 0.22), 0 2px 10px rgba(0, 0, 0, 0.12);
}
body[data-user-role]:not([data-user-role=""]) .navbar-user-menu #user-role-short {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.navbar-nav .btn { margin: 5px 0 !important; width: 100%; font-size: 12px; white-space: nowrap; padding: 0.35rem 0.65rem; min-height: 36px; }
.navbar-nav .btn i,
.navbar-nav .btn .fa { white-space: nowrap; font-size: 12px; }
/* 用户下拉菜单：将“退出登录”与普通操作分区，降低误触 */
.navbar .dropdown-menu .dropdown-item#admin-mgmt-btn {
    margin-bottom: 6px;
}
.navbar .dropdown-menu .dropdown-item#logout-btn {
    margin-top: 10px;
    padding-top: 10px;
    position: relative;
}
.navbar .dropdown-menu .dropdown-item#logout-btn::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    border-top: 1px solid #e9ecef;
}
@media (min-width: 992px) {
    .navbar-brand { font-size: 18px; }
    .navbar-nav .btn { width: auto; margin: 0 0 0 8px !important; }
}

/* ========== 顶栏三区：品牌 | 模块（桌面居中）| 工具（主题/版本/用户）========== */
.navbar-collapse-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}
@media (min-width: 992px) {
    nav.navbar-expand-lg:not(.admin-topbar) > .container > .navbar-collapse {
        flex-grow: 1;
        min-width: 0;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-collapse-inner {
        flex: 1;
        width: 100%;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.35rem;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-modules {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* 模块区与外观/主题/用户之间竖线（借鉴文档站顶栏分区） */
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities {
        flex: 0 0 auto;
        margin-left: 0.5rem !important;
        padding-left: 0.65rem;
        border-left: 1px solid rgba(255, 255, 255, 0.32);
        /* 预留右侧工具区宽度，避免深色/缩放/主题/版本注入时挤压中间模块链接 */
        min-width: 19rem;
        box-sizing: border-box;
        flex-wrap: nowrap;
        position: relative;
    }
    /* 槽位随内容；主题/版本已与缩放同高胶囊，勿设过大 min-width 以免出现「假空白」 */
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-theme-slot { min-width: 46px; width: 46px; }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-version-slot { min-width: 74px; width: 74px; }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zoom-slot { min-width: 44px; width: 44px; min-height: 22px; }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-user-slot { min-width: 0; width: auto; }
    /* 当前页：极淡底 + 键盘焦点环（:focus 仍由 .nav-link 去掉默认环，仅 :focus-visible 显示） */
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-modules .nav-module-link.active {
        background-color: rgba(255, 255, 255, 0.26);
        border-radius: 8px;
        text-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-modules .nav-module-link:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.92);
        outline-offset: 2px;
        border-radius: 7px;
    }
    nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-wrap > .nav-link.dropdown-toggle:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.9);
        outline-offset: 2px;
        border-radius: 6px;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-user-menu > .nav-link.dropdown-toggle:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.95);
        outline-offset: 2px;
    }
}

/* 平板优先折叠右侧工具区：释放模块区宽度 */
@media (min-width: 992px) and (max-width: 1366px) {
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed {
        min-width: 0;
        margin-left: 0.22rem !important;
        padding-left: 0.22rem;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed .navbar-utils-toggle {
        display: inline-flex;
        order: 2;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed .navbar-utils-userchip {
        display: inline-flex;
        order: 1;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed > .navbar-ui-slot {
        display: inline-flex !important;
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-4px) scale(0.985);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed.is-open-tools > .navbar-ui-slot,
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed.is-open-user > .navbar-ui-slot {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        transition-delay: 0s;
        z-index: 1045;
        min-width: 272px;
        max-width: min(84vw, 360px);
        padding: 10px 10px 8px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: linear-gradient(135deg, var(--theme-nav-bg-start) 0%, var(--theme-nav-bg-end) 100%);
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.3);
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed.is-open-user > .navbar-ui-slot {
        top: calc(100% + 6px);
        min-width: 0;
        max-width: none;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        align-items: flex-start;
        justify-content: flex-end;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed:is(.is-open-tools, .is-open-user) .navbar-ui-slot-item {
        width: auto;
        min-width: 0;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed.is-open-tools .navbar-ui-slot {
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed.is-open-tools .navbar-user-slot {
        display: none !important;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed.is-open-user .navbar-dark-slot,
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed.is-open-user .navbar-zoom-slot,
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed.is-open-user .navbar-theme-slot,
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed.is-open-user .navbar-version-slot {
        display: none !important;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed.is-open-user .navbar-user-slot {
        display: inline-flex !important;
        width: auto;
        justify-content: flex-end;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed.is-open-user .navbar-user-menu {
        position: relative;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed.is-open-user .navbar-user-menu > .nav-link.dropdown-toggle {
        display: none !important;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities.utilities-collapsed.is-open-user .navbar-user-menu > .dropdown-menu {
        position: static;
        float: none;
        transform: none !important;
        display: block;
        min-width: 220px;
        margin: 0;
        z-index: 1060;
        opacity: 0.98;
        transition: opacity 0.16s ease;
    }
}

/*
 * ========== 桌面导航：加大间距（试验版 · 可回滚）==========
 * 回滚方式（任选其一）：
 *   A) 删除从本注释到「/桌面导航加大间距」整段；
 *   B) 将 nav 上变量改为 0 或注释中「旧值」：--nav-dt-brand-add:0; --nav-dt-modules-gap:0;
 *      --nav-dt-link-px:0.75rem; --nav-dt-link-py:0.5rem; --nav-dt-ms-gap:0;
 * 旧行为摘要：品牌与模块间仅 Bootstrap 默认 brand margin-right:1rem；模块 li 无 gap；
 * 链接 padding 0.5rem×0.75rem；右侧 ms-auto 子项无 gap。
 */
@media (min-width: 992px) {
    nav.navbar-expand-lg:not(.admin-topbar) {
        --nav-dt-brand-add: 0.35rem;
        --nav-dt-modules-gap: 0.06rem;
        --nav-dt-link-px: 0.76rem;
        --nav-dt-link-py: 0.55rem;
        --nav-dt-ms-gap: 0.42rem;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-brand {
        margin-right: calc(1rem + var(--nav-dt-brand-add)) !important;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-nav#navbar-nav-modules {
        gap: var(--nav-dt-modules-gap);
    }
    nav.navbar-expand-lg:not(.admin-topbar) #navbar-nav-modules .nav-module-link {
        padding-left: var(--nav-dt-link-px) !important;
        padding-right: var(--nav-dt-link-px) !important;
        padding-top: var(--nav-dt-link-py) !important;
        padding-bottom: var(--nav-dt-link-py) !important;
    }
    nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities {
        gap: var(--nav-dt-ms-gap);
        align-items: center;
    }
    /* 滚动紧凑态：仍比旧版略松，避免一下缩回「挤」 */
    nav.navbar-expand-lg.navbar-compact:not(.admin-topbar) {
        --nav-dt-brand-add: 0.28rem;
        --nav-dt-modules-gap: 0;
        --nav-dt-link-px: 0.66rem;
        --nav-dt-link-py: 0.24rem;
        --nav-dt-ms-gap: 0.32rem;
    }
}
/* /桌面导航加大间距 */

/* 手机/小平板：折叠菜单内模块导航改为两列卡片，缩短纵向长度 */
@media (max-width: 991.98px) {
    .navbar-ui-slot {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--navbar-ui-gap, 8px);
    }
    .navbar-dark-slot,
    .navbar-zoom-slot,
    .navbar-theme-slot,
    .navbar-version-slot,
    .navbar-user-slot {
        width: auto;
        min-width: 0;
    }
    .navbar-user-slot #user-role-short {
        width: auto;
        min-width: 0;
        max-width: none;
    }
    .navbar-utils-userchip {
        max-width: min(58vw, 220px);
    }
    /* 顶栏第一行：标题与折叠按钮同一行区域；完整标题（不换行用缩小字号，仍过长则自动换行，不用省略号） */
    nav.navbar-expand-lg:not(.admin-topbar) > .container > .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
        line-height: 1.3;
        word-break: break-word;
        font-size: clamp(11px, calc(100vw / 20), 16px);
    }
    nav.navbar-expand-lg:not(.admin-topbar) > .container > .navbar-toggler {
        flex-shrink: 0;
        align-self: center;
    }
    .navbar-collapse {
        flex-direction: column;
        align-items: stretch !important;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
        gap: 0.65rem;
    }
    .navbar-collapse-inner {
        gap: 0.65rem;
    }
    .navbar-collapse .navbar-nav#navbar-nav-modules {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-items: stretch;
    }
    .navbar-collapse #navbar-nav-modules > .nav-item {
        width: 100%;
        flex-shrink: 1;
    }
    /* 奇数个模块时最后一项占满一行，避免单独挤在左列 */
    .navbar-collapse #navbar-nav-modules > .nav-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    .navbar-collapse #navbar-nav-modules > .nav-item:last-child:nth-child(odd) .nav-module-link {
        max-width: 100%;
    }
    .navbar-collapse #navbar-nav-modules .nav-module-link {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
        min-height: 48px;
        height: 100%;
        padding: 10px 10px !important;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.28);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        font-size: 13px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.96) !important;
    }
    .navbar-collapse #navbar-nav-modules .nav-module-link::after {
        display: none;
    }
    .navbar-collapse #navbar-nav-modules .nav-module-link:hover,
    .navbar-collapse #navbar-nav-modules .nav-module-link:focus {
        background: rgba(255, 255, 255, 0.24);
        border-color: rgba(255, 255, 255, 0.4);
        color: #fff !important;
    }
    .navbar-collapse #navbar-nav-modules .nav-module-link:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.95);
        outline-offset: 2px;
    }
    .navbar-collapse #navbar-nav-modules .nav-module-link.active,
    .navbar-collapse #navbar-nav-modules .nav-module-link.active:hover,
    .navbar-collapse #navbar-nav-modules .nav-module-link.active:focus {
        background: rgba(255, 255, 255, 0.3);
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.52);
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12), inset 0 -3px 0 0 var(--theme-nav-accent);
        text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
    }
    .navbar-collapse #navbar-nav-modules .nav-module-link.nav-has-new::before {
        top: 8px;
        right: 10px;
    }
    .navbar-collapse #navbar-nav-modules .nav-module-link .nav-meizhou-fill-badge {
        top: 4px;
        right: 6px;
    }
    .navbar.navbar-compact .navbar-collapse #navbar-nav-modules .nav-module-link {
        min-height: 44px;
        padding: 8px 8px !important;
        font-size: 12.5px;
    }
    /* 主题、版本、用户：全宽卡片行，与模块网格分隔（折叠内取消与模块区之间的竖线） */
    .navbar-collapse .navbar-nav.ms-auto,
    .navbar-collapse .navbar-zone-utilities {
        border-left: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    .navbar-collapse .navbar-nav.ms-auto {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        align-items: stretch !important;
        gap: 8px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    .navbar-collapse .navbar-nav.ms-auto > .nav-item,
    .navbar-collapse .navbar-nav.ms-auto > #navbar-theme-wrap {
        width: 100%;
        margin: 0;
    }
    .navbar-collapse #navbar-theme-wrap > .nav-link.dropdown-toggle:focus-visible,
    .navbar-collapse .navbar-user-menu > .nav-link.dropdown-toggle:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.95);
        outline-offset: 2px;
    }
    .navbar-collapse #navbar-theme-wrap > .nav-link.dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        padding: 10px 14px !important;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.28);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        color: rgba(255, 255, 255, 0.92) !important;
        text-shadow: none;
    }
    .navbar-collapse #navbar-theme-wrap > .nav-link.dropdown-toggle::after {
        margin-left: 0.4rem;
    }
    .navbar-collapse .navbar-version-indicator {
        display: flex !important;
        width: 100%;
        justify-content: center;
        padding: 2px 0 0;
        font-size: 11px;
        opacity: 0.8;
    }
    @media (max-width: 767.98px) {
        .navbar-collapse .navbar-version-indicator {
            display: none !important;
        }
    }
    .navbar-collapse .navbar-user-menu {
        width: 100%;
        margin-left: 0;
    }
    .navbar-collapse .navbar-user-menu > .nav-link.dropdown-toggle {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
}

/* ========== 平板断点与横竖屏适配 ========== */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-brand { font-size: 17px; }
    .container, .container-fluid { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* ========== 桌面端：适当减少左右留白（方案B：覆盖 container 最大宽度） ========== */
@media (min-width: 992px) {
  /* 保留 Bootstrap 的居中与左右 padding，仅放宽 max-width */
  .container { max-width: 1040px; }
}
@media (min-width: 1200px) {
  .container { max-width: 1200px; }
}
@media (min-width: 1400px) {
  .container { max-width: 1360px; }
}
@media (orientation: portrait) and (max-width: 991px) {
    .jiandu-overview-charts { min-height: 200px; }
}
/* 数据概览：柱子图+环形图并排（民生实事、批示督办等共用） */
.overview-charts-row { display: flex; gap: 12px; align-items: stretch; flex: 1; min-width: 0; }
/* 进展统计环形图区域缩窄，让左侧柱状图获得更多宽度 */
.overview-chart-ring { flex: 0 0 160px !important; min-width: 140px; max-width: 200px; }
@media (max-width: 575px) {
    .overview-charts-row { flex-direction: column; }
    .overview-chart-ring { flex: 0 0 auto; min-height: 200px; }
}
@media (orientation: landscape) and (min-width: 768px) and (max-width: 991px) {
    .jiandu-overview-charts { min-height: 240px; }
}

/* 全局图表小标题：与民生实事一致（字体 12px、字重 600、颜色 #555；与下方图表间距 8px） */
.overview-chart-subtitle,
.jiandu-breakdown-title,
.jiandu-chart-wrap .chart-title,
.minsheng-chart-title-inner,
.diaoyan-chart-wrap .chart-title {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

/* 数据概览图表区：仅首次进入页面时淡入，由 JS 在首次渲染时添加 .overview-charts-entrance，避免 Chart.js 动画时序问题 */
.overview-charts-entrance {
    animation: overview-charts-fade-in 0.5s ease-out forwards;
}
@keyframes overview-charts-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@supports (height: 100dvh) {
    .preview-container { height: 90dvh; min-height: 60dvh; }
    .file-preview-modal .modal-dialog { height: 100dvh; }
}

/* 按钮 - 统一尺寸与字体；主色按钮随主题变化 */
.btn-outline-primary {
  color: var(--theme-primary);
  border-color: var(--theme-primary);
}
.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
}
.btn-primary {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
}
.btn-primary:hover {
  background-color: var(--theme-primary-hover);
  border-color: var(--theme-primary-hover);
}

.btn { min-height: 44px; min-width: 44px; padding: 0.5rem 1rem; font-size: 14px; }
.btn-loading { pointer-events: none; }
.btn-sm { min-height: 32px; min-width: 32px; padding: 0.2rem 0.4rem; font-size: 12px; }
.btn-sm i { font-size: 11px; }
/* 下载按钮：图标与文字垂直居中对齐 */
.btn-download,
a.btn-download,
button.btn-download { display: inline-flex; align-items: center; justify-content: center; gap: 0.35em; }
.btn-download i.fa { line-height: 1; }
/* 计划月历入口按钮：图标与文字垂直居中 */
.plan-calendar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.plan-calendar-link i.fa {
  line-height: 1;
}
.plan-calendar-link:hover,
.plan-calendar-link:focus {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #93c5fd;
}

/* 轻提示、登录/修改信息弹窗样式见 css/auth-ui.css */

/* 通用自动补全下拉（监督议题/法律法规等共用） */
.topic-form-autocomplete { position: relative; }
.topic-form-autocomplete .autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 1060;
  font-size: 13px;
}
.topic-form-autocomplete .autocomplete-item { padding: 6px 10px; cursor: pointer; }
.topic-form-autocomplete .autocomplete-item:hover { background: #f1f5f9; }

/* ========== 弹窗宽度统一标准（全局） ==========
 * modal-sm (400px): 登录、修改信息、新增管理员/部门等极简表单
 * content-edit-modal (600px): 议题/计划/资料/报告/落实举措等编辑表单
 * file-upload-modal (460px): 所有文件上传弹窗
 * modal-lg (800px): 批示主表单、民生项目、部门/管理员管理、批量导入等大表单
 * file-preview-modal: 预览弹窗，95%/全屏
 */
.modal-dialog {
  margin: 1rem auto;
  max-width: 90%;
}
@media (min-width: 576px) {
  .modal-sm { max-width: 400px; }
  .modal-lg { max-width: 800px; }
  .content-edit-modal .modal-dialog { max-width: 600px; }
  .file-upload-modal .modal-dialog { max-width: 460px; }
}

/* 文件上传弹窗：选择后可修改各文件显示标题 */
.file-upload-name-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  background: #f8fafc;
}
.file-upload-name-row .file-upload-title-input { font-size: 13px; }

/* 数据操作区 - 各模块共用 */
#operation-area { border-radius: 12px; border: 1px solid #e2e8f0; }
#operation-area .btn {
    min-height: calc(1.5em + 0.5rem + 2px);
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 8px;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
}
#operation-area .btn i,
#operation-area .btn .fa {
    line-height: 1;
    font-size: 0.875em;
    vertical-align: middle;
}
#operation-area .form-control,
#operation-area .form-select {
    min-height: 44px;
    font-size: 14px;
    border-radius: 8px;
    margin: 0;
}

/* 数据操作区：四个按钮同一行，剩余空间由选择文件框填充 */
#operation-area .operation-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
}
/* 上传组：占据剩余空间，内部的 file input 再占满该组 */
#operation-area .operation-upload-group {
    display: flex;
    flex-direction: row !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    gap: 0.5rem;
}
#operation-area .operation-upload-group .form-control { flex: 1 1 auto; min-width: 0; }
#operation-area .operation-upload-group input[type="file"].form-control {
    height: calc(1.5em + 0.5rem + 2px);
    min-height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}
#operation-area .operation-upload-group .btn { flex: 0 0 auto; width: auto !important; }
/* 覆盖 Bootstrap input-group 默认拼接行为，保留上传组内按钮真实间距 */
#operation-area .operation-upload-group > :not(:first-child) {
    margin-left: 0 !important;
}
/* 四个按钮始终同一行：强制横向、不换行、不被挤压 */
#operation-area .operation-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: min-content;
}
#operation-area .operation-actions .btn { flex-shrink: 0; white-space: nowrap; }

/* 数据操作区 - 平板：上传组与操作按钮分两行，按钮可换行 */
@media (max-width: 991px) {
    #operation-area .operation-row {
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: stretch;
    }
    #operation-area .operation-upload-group {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }
    #operation-area .operation-upload-group .form-control { flex: 1 1 auto; min-width: 0; }
    #operation-area .operation-actions {
        flex: 1 1 100%;
        flex-wrap: wrap !important;
        gap: 0.5rem;
        justify-content: flex-start;
    }
    #operation-area .operation-actions .btn {
        min-height: calc(1.5em + 0.5rem + 2px);
        height: calc(1.5em + 0.5rem + 2px);
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* 数据操作区 - 手机：上传组独占一行，操作按钮第二行并排/换行 */
@media (max-width: 767px) {
    #operation-area .card-body {
        overflow-x: visible;
        padding: 0.85rem 1rem;
    }
    #operation-area .operation-row {
        flex-wrap: wrap;
        gap: 0.5rem;
        min-width: 0;
    }
    #operation-area .operation-upload-group {
        flex: 1 1 100%;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    #operation-area .operation-upload-group .form-control {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }
    #operation-area .operation-upload-group .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
        width: 100%;
        justify-content: center;
    }
    #operation-area .operation-actions {
        flex: 1 1 100%;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    #operation-area .operation-actions .btn {
        width: 100%;
        min-width: 0;
        min-height: calc(1.5em + 0.5rem + 2px);
        height: calc(1.5em + 0.5rem + 2px);
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        line-height: 1.5;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    #operation-area .card-body { padding: 0.75rem; }
    /* 首页数据操作区：文件框独占一行，其余按钮两列两行同宽 */
    #operation-area .operation-row { gap: 0.5rem; }
    #operation-area .operation-upload-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    #operation-area .operation-upload-group .form-control {
        grid-column: 1 / -1;
    }
    #operation-area .operation-upload-group .btn,
    #operation-area .operation-actions .btn {
        min-width: 0;
    }
}

/* 卡片头部「上传资料/上传报告」与标题同一行、按钮右对齐（仅文件区等单行标题卡片） */
.file-zone-card .card-header.d-flex.justify-content-between.align-items-center {
    flex-wrap: nowrap;
}
.card-header.d-flex.justify-content-between .btn:only-of-type,
.card-header.d-flex.justify-content-between .ms-auto .btn { flex-shrink: 0; }
.card-header.d-flex.justify-content-between .ms-auto { flex-shrink: 0; }

/* 仅管理员可见：游客、普通用户均不显示且不可用（导出、发起填报、轮次筛选等） */
body:not([data-user-role="admin"]):not([data-user-role="super_admin"]) .admin-only { display: none !important; }

/* 无业务资料写入权限（未登录、未分配部门的 user 等）：隐藏各模块「资料上传」类按钮；与 JianduAuth.getPermissions.canMutateBusinessData 一致。批示督办不按此隐藏（勿给批示上传按钮使用下列 class） */
body[data-can-mutate-business-data="0"] .jiandu-file-upload-btn,
body[data-can-mutate-business-data="0"] .plan-file-upload-btn,
body[data-can-mutate-business-data="0"] .dept-file-upload-btn,
body[data-can-mutate-business-data="0"] .dept-files-upload-bar,
body[data-can-mutate-business-data="0"] #minsheng-file-upload-btn {
  display: none !important;
}
body[data-can-mutate-business-data="0"] th.progress-upload-th {
  display: none !important;
}
/* 批示督办：仅管理员显示卡片头部“上传报告”按钮（默认隐藏，仅 admin/super_admin 时显示） */
#pishi-report-upload-btn { display: none !important; }
body[data-user-role="admin"] #pishi-report-upload-btn,
body[data-user-role="super_admin"] #pishi-report-upload-btn { display: inline-block !important; }

/* 游客、普通用户：列表页复选框列隐藏（仅管理员/超管显示） */
body:not([data-user-role="admin"]):not([data-user-role="super_admin"]) .list-cb-col {
  width: 0 !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: hidden !important;
  border: none !important;
  vertical-align: middle !important;
}
body:not([data-user-role="admin"]):not([data-user-role="super_admin"]) .list-cb-col input {
  display: none !important;
}
body:not([data-user-role="admin"]):not([data-user-role="super_admin"]) .list-cb-col.batch-bar {
  display: none !important;
}

/* 卡片 */
.card { border-radius: 8px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); margin-bottom: 20px; }
/* 全站卡片头部标题字号统一 */
.card .card-header h5 { font-size: 1.25rem; }

/* 表头蓝色 - 各列表页共用 */
.table-header-blue { background-color: var(--theme-primary) !important; color: white !important; border-color: var(--theme-primary-border) !important; }
.table-header-blue th { border-color: var(--theme-primary-border) !important; }

/* 列表表格条纹 - 奇数行白、偶数行冷白、悬停蓝白（Bootstrap 用 box-shadow 做条纹，需清除才能显示 background-color） */
.table-list-stripe tbody tr:nth-of-type(odd) > td,
.table-list-stripe tbody tr:nth-of-type(odd) > th { box-shadow: none !important; background-color: #ffffff !important; }
.table-list-stripe tbody tr:nth-of-type(even) > td,
.table-list-stripe tbody tr:nth-of-type(even) > th { box-shadow: none !important; background-color: #f8fafc !important; }
/* 悬停仅作用于带序号的主数据行，不作用于资料展开行（plan-files-row / topic-files-row）之间的空白 */
.table-list-stripe tbody tr:not(.plan-files-row):not(.topic-files-row):hover > td,
.table-list-stripe tbody tr:not(.plan-files-row):not(.topic-files-row):hover > th { box-shadow: none !important; background-color: #E0ECFF !important; }

/* 列表卡片主内容区：缩小留白，表格更紧凑（监督议题/调研视察/批示督办） */
.jiandu-topic-list-card .card-body .table td,
.jiandu-topic-list-card .card-body .table th,
.diaoyan-table-wrap .table td,
.diaoyan-table-wrap .table th,
.pishi-list-card .card-body .table td,
.pishi-list-card .card-body .table th {
  padding: 0.35rem 0.75rem;
}
.jiandu-topic-list-card .card-body .table thead th,
.diaoyan-table-wrap .table thead th,
.pishi-list-card .card-body .table thead th {
  padding: 0.4rem 0.75rem;
}
#jiandu-pagination,
#diaoyan-pagination,
#pishi-pagination {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
/* 空状态提示区缩小留白 */
#jiandu-topic-list-card .text-muted.text-center.py-5,
#jiandu-topic-list-card #empty-tip,
.card-body > #empty-tip,
#pishi-list-card #empty-tip {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
@media (max-width: 767px) {
  .jiandu-list-cards { padding: 8px 12px !important; }
  .diaoyan-list-cards { padding: 8px 12px !important; }
  .pishi-list-cards { padding: 8px 12px !important; }
}

/* 文件格式徽章 - 清新靓丽（与角标统一字号/对齐） */
.badge-file-pdf {
  /* PDF：使用橙色（民生实事同款视觉） */
  background: linear-gradient(135deg, #ff6b6b 0%, #f97316 100%);
  color: #fff;
  border: none;
}
.badge-file-doc,
.badge-file-docx {
  background: linear-gradient(135deg, #4facfe 0%, #00c6fb 100%);
  color: #fff;
}

/* 文件名预览链接 - 各模块共用（点击在弹窗内打开预览） */
.file-preview-link { color: var(--theme-primary); cursor: pointer; }
.file-preview-link:hover { color: var(--theme-primary-hover); text-decoration: underline !important; }

/* 通用角标样式（如“上传”“填报”等） */
.badge-corner {
  font-size: 0.7em;
  font-weight: 500;
  vertical-align: text-top;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
}

/* 文件图标与页内「NEW」角标（统一类名 .jiandu-new-badge；.badge-new-file 为兼容别名） */
.file-icon-pdf { color: #2563eb !important; }
.jiandu-new-badge,
.badge-new-file {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  background: transparent;
  border: none;
  color: #ff4d4f;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.jiandu-new-badge::before,
.badge-new-file::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff4d4f;
  animation: badge-new-pulse 1.6s ease-out infinite;
}
@keyframes badge-new-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  60% {
    transform: scale(1.35);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

/* 筛选摘要条：右对齐，与搜索框同组，保留两字符间距 */
.filter-summary-search-wrap {
  gap: 1.5em; /* 与搜索框间距 */
  flex-shrink: 0;
}
/* 列表头部搜索框：与数据操作区文件选择框样式对齐 */
.filter-summary-search-wrap .input-group .form-control,
.filter-summary-search-wrap .input-group .input-group-text {
  height: calc(1.5em + 0.5rem + 2px);
  min-height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.filter-summary-search-wrap .input-group .form-control {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.filter-summary-search-wrap .input-group .input-group-text {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.filter-summary-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
}
.filter-summary-bar.filter-summary-two-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter-summary-bar.filter-summary-two-actions > * {
  width: auto;
}

/* ========== 移动端公共布局（逐页复用） ========== */
/* 文件操作区：选择文件独占一行，其余按钮两列同宽；按钮总数为奇数时最后一个独占一行 */
@media (max-width: 767px) {
  .mobile-file-actions-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }
  .mobile-file-actions-grid > input[type="file"],
  .mobile-file-actions-grid > .form-control[type="file"],
  .mobile-file-actions-grid > .mobile-file-input {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .mobile-file-actions-grid > .btn,
  .mobile-file-actions-grid > button,
  .mobile-file-actions-grid > a.btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  /* 仅按“按钮数量”判断奇偶：若按钮为单数，最后一个按钮独占一行 */
  .mobile-file-actions-grid > button.btn:last-of-type:nth-of-type(odd),
  .mobile-file-actions-grid > a.btn:last-of-type:nth-of-type(odd) {
    grid-column: 1 / -1;
  }

  /* 搜索区：搜索框独占一行；清除筛选/刷新两列同宽同行 */
  .mobile-search-actions-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .mobile-search-actions-layout .mobile-search-full-row {
    flex: 1 1 100%;
    width: 100% !important;
    min-width: 0 !important;
  }
  .mobile-search-actions-layout .mobile-two-actions-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .mobile-search-actions-layout .mobile-two-actions-row > * {
    width: 100%;
    min-width: 0;
    min-height: calc(1.5em + 0.5rem + 2px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
  }
}
.filter-summary-bar.filter-summary-in-header {
  padding: 5px 12px 6px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-radius: 8px;
  max-width: 100%;
  flex: 0 1 auto;
  min-width: 0;
  color: #b45309;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.15);
}
.filter-summary-icon {
  color: #b45309;
  font-size: 12px;
  flex-shrink: 0;
}
.filter-summary-in-header .filter-summary-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}
.filter-summary-text { min-width: 0; }
.filter-summary-in-header .filter-summary-clear {
  color: #b45309;
  font-weight: 600;
  font-size: 12px;
}
.filter-summary-clear {
  color: var(--theme-primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-summary-clear:hover {
  text-decoration: underline;
}
.filter-summary-in-header .filter-summary-clear:hover {
  color: #92400e;
}
.filter-summary-bar:not(.filter-summary-in-header) .filter-summary-clear:hover {
  color: var(--theme-primary-hover);
}

/* ========== 清除筛选按钮 - 全局样式（有部门/进展等筛选时显示，清新） ========== */
.filter-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: calc(1.5em + 0.5rem + 2px);
  min-height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem !important;
  line-height: 1.5;
  font-weight: 500;
  color: #9a5b13;
  background: #fdf6ec;
  border: 1px solid #e9c9a1;
  border-radius: 8px;
  white-space: nowrap;
  margin: 0 !important;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filter-clear-btn:hover {
  background: #f8ecd9;
  border-color: #d9ad7d;
  color: #7a4310;
}
.filter-clear-btn i {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* 刷新按钮（与清除筛选同栏）：避免被挤压，移动端可点区域足够 */
#navbar-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: calc(1.5em + 0.5rem + 2px);
  min-height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem !important;
  line-height: 1.5;
  border-radius: 8px;
  white-space: nowrap;
  margin: 0 !important;
  min-width: 0;
  font-weight: 500;
  white-space: nowrap;
  color: #2f6f5f;
  background-color: #edf7f3;
  border-color: #b8d8cc;
}
#navbar-refresh-btn:hover {
  color: #25584b;
  background-color: #e3f1eb;
  border-color: #93c1b0;
}
#navbar-refresh-btn i.fa { margin-right: 0.25em; }

/* 清除筛选 + 卡片头部筛选区 - 手机/平板排列优化 */
@media (max-width: 991px) {
  .filter-summary-search-wrap {
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }
  .filter-summary-search-wrap .input-group,
  .filter-summary-search-wrap .jiandu-search-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .filter-summary-bar {
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 10px;
  }
  .filter-clear-btn { min-height: calc(1.5em + 0.5rem + 2px); }
  /* 移动端刷新按钮：足够触控区域，减少点击延迟 */
  #navbar-refresh-btn {
    min-height: calc(1.5em + 0.5rem + 2px);
    touch-action: manipulation;
  }
  #navbar-refresh-btn i.fa { font-size: 0.875rem; }
}
@media (max-width: 575px) {
  .filter-summary-search-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-summary-search-wrap .input-group {
    width: 100% !important;
  }
  .filter-summary-bar {
    width: 100%;
  }
}

/* 统一减小页面底部与版权栏之间的空白（覆盖主内容区 mb-5 pb-4） */
.container.mt-4.mb-5.pb-4 {
  margin-bottom: 1rem !important;
  padding-bottom: 1rem !important;
}

/* 全站版权页脚：居中，上方空一行、距底部空一行 */
.site-copyright {
  margin-top: 0.5rem;
  padding: 0.5rem 0 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 12px;
  color: #6c757d;
  line-height: 1.5;
}
.site-copyright .container { max-width: 100%; margin-left: auto; margin-right: auto; }
/* ICP 与公安备案同一行：居中、可换行，公安链左侧为备案图标 */
.site-copyright-filings {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.25rem;
}
.site-copyright-gongan {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.site-copyright-gongan-icon {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}
.site-copyright a {
  color: inherit;
  text-decoration: none;
}
.site-copyright a:hover {
  text-decoration: underline;
  color: var(--theme-primary, #165dff);
}

/* 计划月历页：与其余七页统一的版权上方留白（覆盖页内可能的大 padding） */
body[data-current-page="RL.html"] .container.mt-4.mb-5.pb-4 {
  margin-bottom: 1rem !important;
  padding-bottom: 1rem !important;
}
body[data-current-page="RL.html"] .site-copyright {
  margin-top: 0.5rem !important;
  padding: 0.5rem 0 1rem !important;
}

/* 卡片头部+搜索/筛选区域：手机端上下排列，搜索区占满宽度 */
@media (max-width: 575px) {
  .card-header.d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }
  .card-header.d-flex.justify-content-between.align-items-center .input-group.w-auto,
  .card-header.d-flex.justify-content-between.align-items-center .input-group.flex-shrink-0,
  .card-header.d-flex.justify-content-between.align-items-center .input-group {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* 批示督办 & 民生实事列表：单独再加强一次，避免被其他样式干扰 */
  #pishi-list-card .card-header,
  #minsheng-list-card .card-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }
  #pishi-list-card .card-header .input-group,
  #minsheng-list-card .card-header .input-group {
    width: 100% !important;
    min-width: 0 !important;
  }
  .diaoyan-overview-card .card-header label {
    margin-right: 0;
  }
}

/* 列表页：≤767px 卡片头竖排（原分散在 PS / MS / FL） */
@media (max-width: 767px) {
  .card-header.d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
  .card-header .d-flex > div {
    width: 100%;
  }
  .card-header .pishi-overview-filter-wrap {
    align-self: flex-end;
    width: auto;
  }
  /* 批示 / 民生列表：搜索框保持横向一排，避免被全局 input-group 竖排拆行 */
  #pishi-list-card .card-header .input-group,
  #minsheng-list-card .card-header .input-group {
    flex-direction: row !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  #pishi-list-card .card-header .input-group .input-group-text,
  #minsheng-list-card .card-header .input-group .input-group-text {
    flex-shrink: 0;
  }
  #pishi-list-card .card-header .input-group .form-control,
  #minsheng-list-card .card-header .input-group .form-control {
    flex: 1;
    min-width: 0;
  }
}

/* ========== 文件预览弹窗 - 全局通用样式（监督议题、调研视察等共用） ========== */
/* 标准结构：.modal.file-preview-modal > .modal-dialog.modal-xl.modal-fullscreen-lg-down > .modal-content.h-100 > .modal-header(标题+点击关闭+关闭) + .modal-body.p-0 > iframe；点击文件名后在 iframe 内打开对应 /api/.../files/:id/preview */
.file-preview-modal .modal-dialog {
  max-width: 95%;
  width: 90vw;
  height: 95vh;
  min-width: 480px;
  min-height: 640px;
  margin: 1rem auto;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
/* JS 开启桌面拖拽/缩放后：相对 .modal 定位，避免与 Bootstrap 居中 margin 冲突 */
.file-preview-modal .modal-dialog.file-preview-dialog-positioned {
  position: absolute;
  margin: 0 !important;
}
.file-preview-modal .modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  z-index: 1;
}
.file-preview-modal .modal-body {
  padding: 0;
  flex: 1;
  min-height: 200px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.file-preview-modal .modal-body iframe {
  width: 100%;
  flex: 1;
  min-height: 300px;
  border: none;
  display: block;
}
.file-preview-modal .modal-dialog .file-preview-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  cursor: se-resize;
  z-index: 10;
  pointer-events: auto;
  touch-action: none;
  background: linear-gradient(135deg, transparent 50%, rgba(22, 93, 255, 0.3) 50%);
}
.file-preview-modal .modal-dialog .file-preview-resize-handle:hover {
  background: linear-gradient(135deg, transparent 50%, rgba(22, 93, 255, 0.6) 50%);
}
@media (max-width: 991px) {
  .file-preview-modal .modal-dialog {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    resize: none;
  }
  .file-preview-modal .modal-content {
    border-radius: 0;
  }
  .file-preview-modal .modal-body {
    min-height: 50vh;
    flex: 1 1 0;
  }
}
.file-preview-modal .modal-header {
  padding: 0.5rem 1rem;
  min-height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.file-preview-modal .modal-header.file-preview-drag-handle {
  cursor: move;
  user-select: none;
}
.file-preview-modal .modal-header .modal-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 0.5rem;
}
.file-preview-modal .modal-header .btn-close-preview {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--theme-primary);
  border: 1px solid var(--theme-primary);
  color: #ffffff;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4);
}
.file-preview-modal .modal-header .btn-close-preview:hover {
  background-color: var(--theme-primary-hover);
  border-color: var(--theme-primary-hover);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
}

/* 移动端：无法在 iframe 内直接预览时显示“下载 / 新标签打开”引导 */
.file-preview-mobile-fallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: #f8fafc;
  z-index: 2;
}
.file-preview-mobile-fallback-msg {
  margin-bottom: 1.25rem;
  color: #475569;
  font-size: 15px;
  line-height: 1.5;
  max-width: 320px;
}
.file-preview-mobile-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.file-preview-mobile-fallback-actions .btn {
  min-width: 140px;
}

/* ========== embed 模式：iframe 内详情页全高布局（弹窗预览用） ========== */
html.embed-preview { height: 100%; }
body.embed-preview {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.embed-preview .navbar,
body.embed-preview .detail-header { display: none !important; }
body.embed-preview .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  min-height: 0;
  overflow: hidden;
}
body.embed-preview #content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
body.embed-preview .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  border: none;
  border-radius: 0;
  min-height: 200px;
  overflow: hidden;
  position: relative;
}
body.embed-preview .preview-toolbar {
  flex-shrink: 0;
  padding: 6px 10px;
}
body.embed-preview .preview-container {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: none;
  border-radius: 0;
  overscroll-behavior: contain;
}

/* ========== PDF 详情页（每月/每周工作等）共用样式 ========== */
.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-height: 40px;
}
.preview-toolbar .page-info { font-size: 13px; color: #6c757d; white-space: nowrap; }
.preview-toolbar .zoom-controls { display: flex; align-items: center; gap: 4px; }
.preview-toolbar .zoom-controls button { width: 32px; height: 28px; padding: 0; font-size: 14px; }
.preview-toolbar .view-mode-group { display: flex; align-items: center; }
.preview-toolbar .view-mode-group .btn { padding: 2px 8px; font-size: 12px; }
.preview-container {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dee2e6;
  border-radius: 0 0 8px 8px;
  height: 94vh;
  min-height: 600px;
  background: #fff;
}
.preview-zoom-wrapper {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  max-width: 100%;
  min-height: 90vh;
  transform-origin: center top;
}
.preview-pdf {
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.preview-pdf canvas { max-width: 100%; height: auto; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.preview-pdf .page-wrapper { margin-bottom: 12px; }
.preview-pdf .page-wrapper:last-child { margin-bottom: 0; }
.preview-pdf.view-dual {
  display: grid !important;
  grid-template-columns: auto auto;
  column-gap: 16px;
  row-gap: 8px;
  justify-content: center;
  justify-items: center;
}
.preview-pdf.view-dual .page-wrapper { margin-bottom: 0; }
.preview-pdf.view-dual .page-wrapper:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media print {
  .navbar, .preview-toolbar, .detail-header { display: none !important; }
  .preview-container { border: none; height: auto !important; overflow: visible !important; }
}

/* ========== 数据概览左侧筛选内容徽标（图标+底纹，四页共用） ========== */
.overview-scope-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
    background: rgba(255,255,255,0.25);
    color: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.overview-scope-badge i { opacity: 0.95; font-size: 11px; }
/* 覆盖各页自身对 hint 的 display:block，确保图标与文字 gap 生效 */
.jiandu-hero .hero-hint.overview-scope-badge,
.minsheng-overview-hero .overview-click-hint.overview-scope-badge,
.diaoyan-hero .overview-click-hint.overview-scope-badge,
.jiandu-overview .overview-total-scope.overview-scope-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important; /* 与首页一致 */
}

/* ========== 进展资料区 - 通用样式（监督议题/调研视察/民生实事/批示督办共用） ========== */
.topic-files-area { display: none; padding: 12px 0; border-top: 1px solid #eee; margin-top: 8px; }
.topic-files-area.show { display: block; }
.topic-files-toggle-btn { white-space: nowrap; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s; }
.topic-files-toggle-btn:not(.topic-files-has-files) { background-color: transparent; color: #6c757d; border-color: #6c757d; }
.topic-files-toggle-btn:not(.topic-files-has-files):hover { background-color: #6c757d; color: #fff; }
.topic-files-toggle-btn.topic-files-has-files { background-color: var(--theme-primary); color: #fff; border-color: var(--theme-primary); font-weight: 500; }
.topic-files-toggle-btn.topic-files-has-files:hover { background-color: var(--theme-primary-hover); color: #fff; transform: scale(1.03); }
.topic-files-toggle-btn.topic-files-has-files .topic-files-count { background: rgba(255,255,255,0.95); color: var(--theme-primary); font-size: 11px; min-width: 18px; text-align: center; }
.topic-files-toggle-btn.active { background-color: var(--theme-primary); color: #fff; border-color: var(--theme-primary); }
/* 进展资料表格：序号、文件名、用户、时间、操作 */
.progress-table { width: 100%; border: 1px solid #dee2e6; border-radius: 6px; font-size: 14px; table-layout: fixed; }
.progress-table thead th { background: #f8f9fa; font-weight: 600; color: #6c757d; padding: 0.6rem 0.8rem; }
.progress-table thead th.progress-no-col { white-space: nowrap; }
.progress-table .progress-no-col { min-width: 56px; width: 56px; padding: 0.6rem 0.5rem; text-align: center; white-space: nowrap; color: #6c757d; }
/* 首页进展资料区：首列日期显示为「X月」居中 */
.progress-table .progress-date-month-col { min-width: 56px; width: 56px; padding: 0.6rem 0.5rem; text-align: center; white-space: nowrap; color: #6c757d; }
.progress-table thead th.progress-date-month-col { text-align: center; }
.progress-table .progress-name-col { min-width: 280px; width: auto; text-align: left !important; padding: 0.6rem 0.8rem; word-break: normal; overflow-wrap: break-word; }
.progress-table thead th.progress-name-col,
.progress-table tbody td.progress-name-col { text-align: left !important; }
.progress-table tbody td.progress-name-col { word-break: normal; overflow-wrap: break-word; }
/* 进展资料区文件名蓝色（表格与 media-style 共用） */
.topic-files-area .progress-table tbody td.progress-name-col .file-preview-link,
.dept-files-area .progress-table tbody td.progress-name-col .file-preview-link { color: var(--theme-primary); text-decoration: none; }
.topic-files-area .progress-table tbody td.progress-name-col .file-preview-link:hover,
.dept-files-area .progress-table tbody td.progress-name-col .file-preview-link:hover { color: var(--theme-primary-hover); text-decoration: underline; }
.progress-table .progress-user-col { min-width: 90px; width: 90px; padding: 0.6rem 0.8rem; color: #6c757d; font-size: 13px; }
.progress-table .progress-date-col { min-width: 140px; width: 140px; padding: 0.6rem 0.8rem; white-space: nowrap; color: #6c757d; }
.progress-table .progress-op-col { min-width: 200px; width: 200px; white-space: nowrap; text-align: right; padding: 0.6rem 0.8rem; }
.progress-table thead th.progress-op-col { text-align: right; }
.progress-table .progress-op-col .btn-group {
  flex-wrap: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.progress-table .progress-op-col .btn-group > .btn,
.progress-table .progress-op-col .btn-group > a.btn {
  margin-left: 0 !important;
}
.progress-table .progress-dept-col { min-width: 100px; padding: 0.6rem 0.8rem; color: #64748b; }
.progress-table tbody tr:hover > td,
.progress-table tbody tr:hover > th { background-color: #E0ECFF; }
.btn-file-action { font-size: 12px; padding: 0.15rem 0.4rem; min-height: 28px; }
.btn-file-action i { font-size: 11px; }

/* 进展资料区 - 桌面表格 / 移动端&平板卡片切换 */
.progress-cards-wrap { display: none; }
@media (max-width: 991px) {
  .progress-table-wrap { display: none !important; }
  .progress-cards-wrap { display: block !important; }
}
/* 进展资料区 - 卡片布局（手机端） */
.progress-cards-list { display: flex; flex-direction: column; gap: 10px; }
.progress-files-toolbar { margin-bottom: 10px; }
.progress-file-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.progress-file-card:hover { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.progress-file-card-body { padding: 0.75rem 1rem; }
.progress-file-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 6px;
  word-break: normal;
  overflow-wrap: break-word;
}
.progress-file-card-title .file-preview-link { color: var(--theme-primary); }
.progress-file-card-title .file-preview-link:hover { text-decoration: underline; }
.progress-file-card-title .badge { margin-left: 6px; vertical-align: middle; }
.progress-file-card-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.progress-file-card-user::before { content: '用户：'; color: #94a3b8; }
.progress-file-card-date::before { content: '时间：'; color: #94a3b8; }
.progress-file-card-dept { font-size: 12px; color: #64748b; margin-bottom: 8px; }
.progress-file-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.progress-file-card-actions .btn { font-size: 12px; padding: 0.25rem 0.5rem; }

/* 资料区操作：下载为 <a> 时与编辑/删除对齐，间距统一，无下划线 */
.progress-file-download-link {
  text-decoration: none !important;
}
.progress-file-download-link:hover,
.progress-file-download-link:focus,
.progress-file-download-link:active {
  text-decoration: none !important;
}
.progress-file-download-link.d-inline-flex,
.progress-table .progress-op-col .progress-file-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  vertical-align: middle;
}
.progress-media-foot .media-file-actions,
.file-zone-meta-toolbar .media-file-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.progress-media-foot .media-file-actions > .btn,
.progress-media-foot .media-file-actions > a.progress-file-download-link,
.file-zone-meta-toolbar .media-file-actions > .btn,
.file-zone-meta-toolbar .media-file-actions > a.progress-file-download-link {
  margin: 0 !important;
}

/* 进展资料区卡片 - 手机/平板：编辑删除等按钮排列 */
@media (max-width: 991px) {
  .progress-file-card-actions {
    gap: 10px;
  }
  .progress-file-card-actions .btn {
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    font-size: 13px;
  }
}
@media (max-width: 575px) {
  .progress-file-card-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .progress-file-card-actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    min-height: 44px;
    justify-content: center;
  }
}

/* ========== media-style 文件列表：移动端&平板卡片化排版（上方资料区/下方进展资料区共用） ========== */
@media (max-width: 991px) {
  .topic-files-area-media-style .media-file-item,
  .dept-files-area-media-style .media-file-item,
  .file-zone-card .media-file-item {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .topic-files-area-media-style .media-file-item > .small.text-muted,
  .dept-files-area-media-style .media-file-item > .small.text-muted,
  .file-zone-card .media-file-item > .small.text-muted,
  .file-zone-card .media-file-item > .media-file-seq {
    min-width: 28px !important;
  }
  .topic-files-area-media-style .media-file-link,
  .dept-files-area-media-style .media-file-link,
  .file-zone-card .media-file-link {
    flex: 1 1 calc(100% - 38px);
    min-width: 0;
  }
  .file-zone-card .media-file-meta,
  .topic-files-area-media-style .media-file-meta,
  .dept-files-area-media-style .media-file-meta {
    width: 100%;
    min-width: 0;
    margin-left: 38px; /* 与序号对齐 */
    white-space: normal;
  }
  .file-zone-card .media-file-actions,
  .topic-files-area-media-style .media-file-actions,
  .dept-files-area-media-style .media-file-actions {
    width: 100%;
    margin-left: 38px;
    text-align: right;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 6px;
  }
  .file-zone-card .media-file-actions .btn,
  .topic-files-area-media-style .media-file-actions .btn,
  .dept-files-area-media-style .media-file-actions .btn {
    min-height: 40px;
    padding: 0.35rem 0.65rem;
  }
}

/* 进展资料区 media-style（首页议题 / 民生部门等）：桌面单行，移动端「日期 | 标题 | 上传+日期+操作」分行 */
@media (min-width: 992px) {
  .topic-files-area-media-style .progress-media-file-item,
  .dept-files-area-media-style .progress-media-file-item {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px;
    min-width: 0;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-date,
  .dept-files-area-media-style .progress-media-file-item .progress-media-date {
    flex: 0 0 auto;
    min-width: 40px;
    text-align: center;
    white-space: nowrap;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-title,
  .dept-files-area-media-style .progress-media-file-item .progress-media-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-title .media-file-link,
  .dept-files-area-media-style .progress-media-file-item .progress-media-title .media-file-link {
    flex: none !important;
    display: inline;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-foot,
  .dept-files-area-media-style .progress-media-file-item .progress-media-foot {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 14px;
    min-width: 0;
    max-width: none;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-foot .progress-media-uploader,
  .topic-files-area-media-style .progress-media-file-item .progress-media-foot .progress-media-dateline,
  .dept-files-area-media-style .progress-media-file-item .progress-media-foot .progress-media-uploader,
  .dept-files-area-media-style .progress-media-file-item .progress-media-foot .progress-media-dateline {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-foot .media-file-actions,
  .dept-files-area-media-style .progress-media-file-item .progress-media-foot .media-file-actions {
    flex: 0 0 auto;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: auto !important;
    max-width: none;
    margin: 0 !important;
    margin-top: 0 !important;
    min-height: 0;
    padding: 0;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-foot .media-file-actions .btn,
  .dept-files-area-media-style .progress-media-file-item .progress-media-foot .media-file-actions .btn {
    min-height: 28px;
    padding: 0.15rem 0.35rem;
  }
}
@media (max-width: 991px) {
  .topic-files-area-media-style .progress-media-file-item,
  .dept-files-area-media-style .progress-media-file-item {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px;
    min-width: 0;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-date,
  .dept-files-area-media-style .progress-media-file-item .progress-media-date {
    width: 100%;
    min-width: 0 !important;
    text-align: left;
    white-space: normal;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-title,
  .dept-files-area-media-style .progress-media-file-item .progress-media-title {
    width: 100%;
    flex: none !important;
    min-width: 0 !important;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-title .media-file-link,
  .dept-files-area-media-style .progress-media-file-item .progress-media-title .media-file-link {
    flex: none !important;
    width: 100%;
    min-width: 0 !important;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-foot,
  .dept-files-area-media-style .progress-media-file-item .progress-media-foot {
    width: 100%;
    flex: none !important;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px 12px;
    min-width: 0;
    margin-left: 0 !important;
    box-sizing: border-box;
    overflow: visible;
  }
  /* 第一行：上传（可省略）+ 编辑/删除；第二行：完整日期（不被截断） */
  .topic-files-area-media-style .progress-media-file-item .progress-media-foot .progress-media-uploader,
  .dept-files-area-media-style .progress-media-file-item .progress-media-foot .progress-media-uploader {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-foot .progress-media-dateline,
  .dept-files-area-media-style .progress-media-file-item .progress-media-foot .progress-media-dateline {
    order: 2;
    flex: 1 1 100%;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-foot .media-file-actions,
  .dept-files-area-media-style .progress-media-file-item .progress-media-foot .media-file-actions {
    order: 1;
    flex: 0 0 auto;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: auto !important;
    max-width: none;
    margin: 0 !important;
    margin-top: 0 !important;
    justify-content: flex-end;
    margin-left: auto !important;
    min-height: 0;
    padding: 0;
  }
  .topic-files-area-media-style .progress-media-file-item .progress-media-foot .media-file-actions .btn,
  .dept-files-area-media-style .progress-media-file-item .progress-media-foot .media-file-actions .btn {
    min-height: 0;
    padding: 0 !important;
    font-size: 13px;
  }
}

/* 列表卡片内进展资料区 media-style（首页监督议题 + 调研视察共用，与 index.css 原规则一致） */
.jiandu-topic-list-card .topic-files-row-media-style,
.diaoyan-list-card .topic-files-row-media-style {
  background: #f8fafc;
}
.jiandu-topic-list-card .topic-files-area-media-style .media-files-panel,
.diaoyan-list-card .topic-files-area-media-style .media-files-panel {
  border: 1px dashed rgba(148, 163, 184, 0.6);
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 12px;
  margin-left: 8px;
  margin-right: 8px;
}
.jiandu-topic-list-card .topic-files-area-media-style .media-files-header,
.diaoyan-list-card .topic-files-area-media-style .media-files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.jiandu-topic-list-card .topic-files-area-media-style .media-files-list,
.diaoyan-list-card .topic-files-area-media-style .media-files-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jiandu-topic-list-card .topic-files-area-media-style .media-file-item,
.diaoyan-list-card .topic-files-area-media-style .media-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.jiandu-topic-list-card .topic-files-area-media-style .media-file-link,
.diaoyan-list-card .topic-files-area-media-style .media-file-link {
  color: #165dff;
  text-decoration: none;
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 0;
}
.jiandu-topic-list-card .topic-files-area-media-style .media-file-link:hover,
.diaoyan-list-card .topic-files-area-media-style .media-file-link:hover {
  color: #0d3ba8;
  text-decoration: underline;
}
.jiandu-topic-list-card .topic-files-area-media-style .media-file-actions,
.diaoyan-list-card .topic-files-area-media-style .media-file-actions {
  flex: 0 0 auto;
  white-space: nowrap;
}
/* 编辑/删除等按钮换行，避免与标题挤在一行溢出 */
.jiandu-topic-list-card .topic-files-area-media-style .media-file-item,
.diaoyan-list-card .topic-files-area-media-style .media-file-item {
  flex-wrap: wrap;
  align-items: flex-start;
}
.jiandu-topic-list-card .topic-files-area-media-style .media-file-actions,
.diaoyan-list-card .topic-files-area-media-style .media-file-actions {
  width: 100%;
  margin-left: 36px;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  white-space: normal;
}
.jiandu-topic-list-card .topic-files-area-media-style .media-file-actions .btn,
.diaoyan-list-card .topic-files-area-media-style .media-file-actions .btn {
  padding: 0;
  margin: 0 !important;
}

/* 进展资料区 - 手机和平板适配（上方/下方统一风格） */
@media (max-width: 991px) {
  /* 列宽适当收窄，避免横向滚动过长 */
  .progress-table .progress-no-col {
    white-space: nowrap;
  }
  .progress-table .progress-date-col {
    min-width: 110px;
    width: 110px;
  }
  .progress-table .progress-name-col {
    min-width: 160px;
    text-align: left;
  }
  .progress-table .progress-op-col {
    min-width: 180px;
    width: 180px;
  }
  .progress-table .progress-op-col .btn-group {
    flex-wrap: wrap;
    gap: 6px;
    row-gap: 6px;
  }
  .progress-table .progress-op-col .btn,
  .progress-table .progress-op-col .btn-file-action {
    min-height: 40px;
    padding: 0.35rem 0.6rem;
  }
}
@media (max-width: 767px) {
  /* 议题/计划等上方文件资料区 */
  .topic-files-area {
    padding: 12px 12px 72px;
    margin-top: 8px;
    border-top-width: 1px;
  }
  .topic-files-area .progress-table {
    margin: 0;
    font-size: 14px;
    table-layout: auto;
    min-width: 520px;
  }
  .topic-files-area .progress-table th,
  .topic-files-area .progress-table td {
    padding: 0.5rem 0.6rem;
  }
  .topic-files-area .progress-table .progress-no-col {
    white-space: nowrap;
    width: 1%;
  }
  .topic-files-area .progress-table .progress-date-col {
    min-width: 100px;
    white-space: nowrap;
  }
  .topic-files-area .progress-table .progress-name-col {
    min-width: 220px;
    text-align: left;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
  }
  .topic-files-area .progress-table .progress-op-col { min-width: 140px; width: auto; }
  .topic-files-area .progress-table .progress-op-col .btn-group {
    flex-wrap: wrap;
    gap: 6px;
  }
  .topic-files-area .progress-table .btn {
    min-height: 40px;
    padding: 0.4rem 0.65rem;
  }
}

/* ========== 部门/卡片资料区（与 topic-files 一致，民生实事等用） ========== */
.dept-files-area { display: none; padding: 12px 0; border-top: 1px solid #e2e8f0; margin-top: 8px; }
.dept-files-area.show { display: block; }
.dept-files-toggle-btn { white-space: nowrap; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s; }
.dept-files-toggle-btn:not(.dept-files-has-files) { background-color: transparent; color: #6c757d; border-color: #6c757d; }
.dept-files-toggle-btn:not(.dept-files-has-files):hover { background-color: #6c757d; color: #fff; border-color: #6c757d; }
.dept-files-toggle-btn.dept-files-has-files { background-color: var(--theme-primary); color: #fff; border-color: var(--theme-primary); font-weight: 500; }
.dept-files-toggle-btn.dept-files-has-files:hover { background-color: var(--theme-primary-hover); color: #fff; border-color: var(--theme-primary-hover); transform: scale(1.03); }
.dept-files-toggle-btn.dept-files-has-files .dept-files-count { background: rgba(255,255,255,0.95); color: var(--theme-primary); font-size: 11px; min-width: 18px; text-align: center; }
.dept-files-toggle-btn.active { background-color: var(--theme-primary); color: #fff; border-color: var(--theme-primary); }
.dept-card-header .dept-files-wrap { margin-left: auto; display: inline-flex; align-items: center; }
/* 部门卡片标题区默认左对齐 */
.dept-card-header { text-align: left; }
.dept-card-header .dept-files-wrap { text-align: right; }

/* 进展资料区移动端：上传按钮置于表上方，避免被返回顶部等遮挡；表格区排版优化 */
.dept-files-upload-bar { display: none; }
.progress-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 767px) {
  .dept-files-upload-bar { display: block; }
  .dept-files-area .progress-upload-th { display: none; }
  .dept-files-area .progress-files-toolbar { display: none; }
  .dept-files-area { padding: 12px 12px 80px; padding-top: 12px; }
  .dept-files-area .progress-table { margin: 0; font-size: 14px; table-layout: auto; min-width: 520px; }
  .dept-files-area .progress-table th,
  .dept-files-area .progress-table td { padding: 0.5rem 0.6rem; }
  .dept-files-area .progress-table .progress-no-col { white-space: nowrap; width: 1%; }
  .dept-files-area .progress-table .progress-date-col { min-width: 100px; white-space: nowrap; }
  .dept-files-area .progress-table .progress-name-col { min-width: 220px; text-align: left; word-break: normal; overflow-wrap: break-word; white-space: normal; }
  .dept-files-area .progress-table .progress-op-col { min-width: 140px; width: auto; }
  .dept-files-area .progress-table .progress-op-col .btn-group { flex-wrap: wrap; gap: 6px; }
  .dept-files-area .progress-table .btn { min-height: 40px; padding: 0.4rem 0.65rem; }
}

/* ========== 上方文件资料区（批示督办/民生实事）手机、平板适配 ========== */
@media (max-width: 991px) {
  .file-zone-card .card-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .file-zone-card .card-header h5 {
    font-size: 1.25rem;
  }
  .file-zone-card .progress-table .progress-date-col {
    min-width: 110px;
    width: 110px;
  }
  .file-zone-card .progress-table .progress-name-col {
    min-width: 160px;
  }
  .file-zone-card .progress-table .progress-user-col {
    min-width: 70px;
  }
  .file-zone-card .progress-table .progress-op-col { min-width: 180px; width: 180px; }
  .file-zone-card .progress-table .progress-op-col .btn-group {
    flex-wrap: wrap;
    row-gap: 4px;
  }
}
@media (max-width: 767px) {
  .file-zone-card .card-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
    padding: 0.75rem 1rem;
  }
  .file-zone-card .card-header h5 {
    margin: 0;
    font-size: 1.25rem;
  }
  .file-zone-card .card-header .btn {
    width: 100%;
    justify-content: center;
  }
  .file-zone-card .card-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 1rem 0;
  }
  .file-zone-card .progress-table {
    margin: 0;
    font-size: 14px;
    table-layout: auto;
    min-width: 520px;
  }
  .file-zone-card .progress-table th,
  .file-zone-card .progress-table td {
    padding: 0.5rem 0.6rem;
  }
  .file-zone-card .progress-table .progress-no-col {
    white-space: nowrap;
    width: 1%;
  }
  .file-zone-card .progress-table .progress-date-col {
    min-width: 100px;
    white-space: nowrap;
  }
  .file-zone-card .progress-table .progress-name-col {
    min-width: 220px;
    text-align: left;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
  }
  .file-zone-card .progress-table .progress-user-col {
    min-width: 60px;
    font-size: 12px;
  }
  .file-zone-card .progress-table .progress-op-col { min-width: 140px; width: auto; }
  .file-zone-card .progress-table .progress-op-col .btn-group {
    flex-wrap: wrap;
    gap: 6px;
  }
  .file-zone-card .progress-table .btn,
  .file-zone-card .progress-table .btn-file-action {
    min-height: 40px;
    padding: 0.4rem 0.65rem;
    font-size: 12px;
  }
  .file-zone-card .file-zone-more-wrap {
    padding: 0;
    margin: 0;
  }
}

/* 非管理员：隐藏上方文件资料表格的“操作”列（批示督办 / 民生实事） */
body:not([data-user-role="admin"]):not([data-user-role="super_admin"]) .file-zone-card .progress-op-col {
  display: none !important;
}

/* ========== 文件资料上传（全局通用） ========== */
.file-zone-more-wrap {
  display: none;
  text-align: center;
  padding: 0;
  margin: 0;
}
.file-zone-more-wrap.show { display: block; }
.file-zone-more-wrap .file-zone-more-btn.btn {
  font-size: 14px;
  padding: 2px 0.5rem;
  margin: 0;
  line-height: 1.35;
}

/* 资料区卡片：去掉 card-body 底部大内边距（移动端原 72px 会在「查看更多」下留白；页面底部留白由主内容区负责） */
.file-zone-card > .card-body {
  padding-bottom: 0 !important;
}

/* ========== 上方文件资料区：media-style（与下方进展资料区对齐） ========== */
.file-zone-card .media-files-panel { border: 1px dashed rgba(148,163,184,0.6); border-radius: 10px; background: #ffffff; padding: 10px 12px; }
.file-zone-card .media-files-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.file-zone-card .media-files-list { display: flex; flex-direction: column; gap: 6px; }
/* 上方资料区序号：圆角标 + 等宽数字，随主题色变化 */
.file-zone-card .media-file-seq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.4rem;
  margin-right: 0.5rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--theme-primary);
  background: var(--theme-stat-active-bg);
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.file-zone-card .media-file-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 8px; background: #f8fafc; border: 1px solid rgba(226,232,240,0.9); }
.file-zone-card .media-file-link { color: var(--theme-primary); text-decoration: none; cursor: pointer; flex: 1 1 auto; min-width: 0; }
.file-zone-card .media-file-link:hover { color: var(--theme-primary-hover); text-decoration: underline; }
.file-zone-card .media-file-meta { flex: 0 0 auto; min-width: 210px; text-align: left; white-space: nowrap; }
.file-zone-card .media-file-meta .meta-sep { display: inline-block; width: 10px; }
.file-zone-card .media-file-actions { flex: 0 0 auto; white-space: nowrap; }

/* 紧凑型媒体列表（报告/资料区）：序号贴近标题、垂直居中、行高小一档 */
.file-zone-card.compact-media-list .media-file-item {
  align-items: center;
  padding-top: 4px;
  padding-bottom: 4px;
  background: transparent;
  transition: background-color 0.2s ease;
}
.file-zone-card.compact-media-list .media-file-item:hover {
  background-color: #E0ECFF;
}
.file-zone-card.compact-media-list .media-file-item > .media-file-seq {
  margin-right: 0.5rem !important;
  align-self: center;
}
.file-zone-card.compact-media-list .media-file-link,
.file-zone-card.compact-media-list .media-file-meta {
  line-height: 1.35;
}
.file-zone-card.compact-media-list .media-file-actions {
  white-space: normal;
  flex-wrap: wrap;
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 767px) {
  .file-zone-card.compact-media-list .media-file-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  /* 移动端隐藏序号 */
  .file-zone-card.compact-media-list .media-file-item > .media-file-seq {
    display: none !important;
  }
  .file-zone-card.compact-media-list .media-file-item > .media-file-link {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
  /* 不再与侧栏序号对齐缩进 */
  .file-zone-card.compact-media-list .media-file-item > .media-file-meta,
  .file-zone-card.compact-media-list .media-file-item > .media-file-actions,
  .file-zone-card.compact-media-list .media-file-item > .file-zone-meta-toolbar {
    margin-left: 0 !important;
  }
  .file-zone-card.compact-media-list .media-file-actions {
    width: 100%;
    justify-content: flex-end !important;
    gap: 10px;
  }
  .file-zone-card.compact-media-list .media-file-actions .btn {
    padding-left: 0;
    padding-right: 0;
  }
}

/* 上方资料区（民生实事 / 批示督办）：元信息 + 操作同组，避免被全局 file-zone 断行规则拆散 */
.file-zone-card.compact-media-list .file-zone-meta-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}
.file-zone-card.compact-media-list .file-zone-meta-toolbar .media-file-meta {
  width: auto !important;
  margin: 0 !important;
  flex: 0 0 auto;
  min-width: 210px;
  text-align: left;
  white-space: nowrap;
}
.file-zone-card.compact-media-list .file-zone-meta-toolbar .media-file-actions {
  width: auto !important;
  margin: 0 !important;
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (min-width: 768px) and (max-width: 991px) {
  .file-zone-card.compact-media-list .file-zone-meta-toolbar {
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 38px;
  }
}

/* 上方资料区移动端：上传 / 日期 / 操作同一行、卡片内不外溢（民生 / 批示共用） */
@media (max-width: 767px) {
  .file-zone-card.compact-media-list .media-file-item {
    align-items: flex-start;
    min-width: 0;
    overflow: hidden;
  }
  .file-zone-card.compact-media-list .media-file-item > .media-file-link {
    min-width: 0;
    overflow: hidden;
  }
  .file-zone-card.compact-media-list .file-zone-meta-toolbar {
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  .file-zone-card.compact-media-list .file-zone-meta-toolbar .media-file-meta {
    flex: 1 1 auto;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 0;
  }
  .file-zone-card.compact-media-list .file-zone-meta-toolbar .media-file-meta .meta-sep {
    flex: 0 0 auto;
    width: 6px;
  }
  .file-zone-card.compact-media-list .file-zone-meta-toolbar .media-file-meta > span:not(.meta-sep) {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .file-zone-card.compact-media-list .file-zone-meta-toolbar .media-file-actions {
    flex: 0 0 auto;
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center;
    gap: 6px !important;
    white-space: nowrap;
    overflow: hidden;
    min-height: 0;
  }
  .file-zone-card.compact-media-list .file-zone-meta-toolbar .media-file-actions .btn {
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 11px;
    line-height: 1.3;
    flex-shrink: 0;
  }
}

/* ========== 固定操作区：全站搜索 + 返回顶部（简洁雪佛龙） ========== */
.jiandu-fab-stack {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right));
  bottom: calc(72px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}
.jiandu-fab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--theme-nav-bg-start) 0%, var(--theme-nav-bg-end) 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: opacity 0.25s, visibility 0.25s, transform 0.2s, box-shadow 0.2s;
}
.jiandu-fab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
}
.jiandu-fab-search {
  opacity: 1;
  visibility: visible;
}
.jiandu-fab-search i.fa {
  font-size: 16px;
  line-height: 1;
}
/* 征求意见：白底、主题色图标，与搜索区分 */
.jiandu-fab-feedback {
  position: relative;
  background: #fff !important;
  color: var(--theme-nav-bg-start, #1a5fb4) !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}
.jiandu-feedback-fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  line-height: 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}
.jiandu-fab-feedback:hover {
  color: var(--theme-nav-bg-end, #0d47a1) !important;
}
.jiandu-fab-feedback i.fa {
  font-size: 17px;
  line-height: 1;
}
html[data-scheme="dark"] .jiandu-fab-feedback {
  background: linear-gradient(160deg, #2d3440 0%, #1e232b 100%) !important;
  color: #93c5fd !important;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-scheme="dark"] .jiandu-fab-feedback:hover {
  color: #bfdbfe !important;
  border-color: rgba(147, 197, 253, 0.35);
}
html[data-scheme="dark"] .jiandu-feedback-fab-badge {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
}
/* 返回顶部：仅向上雪佛龙，无文字 */
.back-to-top-btn {
  opacity: 0;
  visibility: hidden;
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.jiandu-fab-chevron {
  display: block;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-left: 2.5px solid currentColor;
  border-top: 2.5px solid currentColor;
  transform: rotate(45deg);
  box-sizing: border-box;
}
.jiandu-search-page-checks {
  max-height: 180px;
  overflow-y: auto;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
}
html[data-scheme="dark"] .jiandu-search-page-checks {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
@media print {
  .jiandu-fab-stack { display: none !important; }
  .jiandu-search-backdrop,
  .jiandu-search-sidebar,
  .jiandu-feedback-backdrop,
  .jiandu-feedback-panel { display: none !important; }
}

/* ========== 征求意见（评星 + 详情 / 管理员列表） ========== */
.jiandu-feedback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1054;
  background: rgba(15, 15, 25, 0.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.jiandu-feedback-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.jiandu-feedback-panel {
  position: fixed;
  right: calc(24px + 42px + 14px + env(safe-area-inset-right));
  bottom: calc(72px + 42px + 42px + 24px + env(safe-area-inset-bottom));
  width: min(380px, calc(100vw - 32px));
  max-height: min(94vh, 760px);
  z-index: 1055;
  background: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #212529);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.jiandu-feedback-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.jiandu-feedback-panel-inner {
  position: relative;
  padding: 16px 16px 18px;
  overflow-y: auto;
  max-height: min(94vh, 760px);
}
.jiandu-feedback-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}
.jiandu-feedback-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.75);
}
html[data-scheme="dark"] .jiandu-feedback-close {
  color: rgba(255, 255, 255, 0.5);
}
html[data-scheme="dark"] .jiandu-feedback-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}
.jiandu-feedback-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 28px 12px 0;
  line-height: 1.45;
}
.jiandu-feedback-replies-top {
  margin: 0 0 12px;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(26, 95, 180, 0.07);
  border: 1px solid rgba(26, 95, 180, 0.22);
  max-height: 168px;
  overflow-y: auto;
}
html[data-scheme="dark"] .jiandu-feedback-replies-top {
  background: rgba(110, 168, 255, 0.1);
  border-color: rgba(110, 168, 255, 0.28);
}
.jiandu-feedback-replies-top-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--theme-nav-bg-start, #1a5fb4);
}
.jiandu-feedback-replies-top-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jiandu-feedback-reply-chip {
  font-size: 12px;
  line-height: 1.45;
}
.jiandu-feedback-reply-chip-meta {
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 4px;
  font-size: 11px;
}
.jiandu-feedback-reply-chip-body {
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(0, 0, 0, 0.82);
}
.jiandu-feedback-reply-chip-by {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 4px;
}
html[data-scheme="dark"] .jiandu-feedback-reply-chip-meta,
html[data-scheme="dark"] .jiandu-feedback-reply-chip-by {
  color: rgba(255, 255, 255, 0.55);
}
html[data-scheme="dark"] .jiandu-feedback-reply-chip-body {
  color: rgba(255, 255, 255, 0.88);
}
.jiandu-feedback-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}
.jiandu-feedback-star-btn {
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.28);
  font-size: 26px;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}
.jiandu-feedback-star-btn:hover,
.jiandu-feedback-star-btn.is-selected {
  color: var(--theme-nav-bg-start, #1a5fb4);
}
.jiandu-feedback-star-btn.is-selected {
  transform: scale(1.06);
}
html[data-scheme="dark"] .jiandu-feedback-star-btn {
  color: rgba(255, 255, 255, 0.35);
}
html[data-scheme="dark"] .jiandu-feedback-star-btn:hover,
html[data-scheme="dark"] .jiandu-feedback-star-btn.is-selected {
  color: var(--theme-nav-bg-start, #6ea8ff);
}
.jiandu-feedback-star-hint {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 12px;
}
html[data-scheme="dark"] .jiandu-feedback-star-hint {
  color: rgba(255, 255, 255, 0.45);
}
.jiandu-feedback-after-star {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 12px;
  margin-top: 4px;
}
html[data-scheme="dark"] .jiandu-feedback-after-star {
  border-top-color: rgba(255, 255, 255, 0.1);
}
.jiandu-feedback-picked-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: #15803d;
}
.jiandu-feedback-picked-head--low {
  color: #b45309;
}
.jiandu-feedback-smile {
  font-size: 22px;
}
.jiandu-feedback-mini-stars {
  margin-left: auto;
  color: var(--theme-nav-bg-start, #1a5fb4);
}
.jiandu-feedback-mini-stars .fa {
  margin-left: 2px;
  font-size: 14px;
}
.jiandu-feedback-prompt {
  font-size: 0.875rem;
  margin: 0 0 10px;
  color: rgba(0, 0, 0, 0.7);
}
html[data-scheme="dark"] .jiandu-feedback-prompt {
  color: rgba(255, 255, 255, 0.75);
}
.jiandu-feedback-text-shell {
  border: 1px solid var(--theme-nav-bg-start, #1a5fb4);
  border-radius: 10px;
  padding: 10px 10px 12px;
  margin-bottom: 0;
  background: rgba(26, 95, 180, 0.03);
}
html[data-scheme="dark"] .jiandu-feedback-text-shell {
  background: rgba(110, 168, 255, 0.06);
}
.jiandu-feedback-prompt-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.jiandu-feedback-prompt-line {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.jiandu-feedback-prompt-line:hover {
  background: rgba(0, 0, 0, 0.05);
}
.jiandu-feedback-prompt-line.is-active .jiandu-feedback-prompt-label {
  color: var(--theme-nav-bg-end, #0d47a1);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.jiandu-feedback-prompt-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--theme-nav-bg-start, #1a5fb4);
  margin-bottom: 2px;
}
.jiandu-feedback-prompt-q {
  display: block;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.45;
  font-weight: 400;
}
html[data-scheme="dark"] .jiandu-feedback-prompt-label {
  color: var(--theme-nav-bg-start, #6ea8ff);
}
html[data-scheme="dark"] .jiandu-feedback-prompt-q {
  color: rgba(255, 255, 255, 0.5);
}
html[data-scheme="dark"] .jiandu-feedback-prompt-line:hover {
  background: rgba(255, 255, 255, 0.06);
}
.jiandu-feedback-tail-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.58);
  background: #fff5eb;
  padding: 8px 10px;
  border-radius: 8px;
  margin: 10px 0 12px;
  line-height: 1.45;
}
.jiandu-feedback-tail-hint .fa {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
html[data-scheme="dark"] .jiandu-feedback-tail-hint {
  background: rgba(255, 200, 140, 0.12);
  color: rgba(255, 255, 255, 0.72);
}
html[data-scheme="dark"] .jiandu-feedback-tail-hint .fa {
  color: rgba(255, 255, 255, 0.55);
}
.jiandu-feedback-text-wrap {
  position: relative;
  margin-bottom: 0;
}
.jiandu-feedback-text {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  padding: 10px 10px 22px;
  font-size: 13px;
  resize: vertical;
  min-height: 88px;
  background: var(--bs-body-bg, #fff);
  color: inherit;
}
.jiandu-feedback-text:focus {
  outline: none;
  border-color: var(--theme-nav-bg-start, #1a5fb4);
  box-shadow: 0 0 0 2px rgba(26, 95, 180, 0.15);
}
.jiandu-feedback-count {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.4);
}
html[data-scheme="dark"] .jiandu-feedback-count {
  color: rgba(255, 255, 255, 0.4);
}
.jiandu-feedback-actions {
  display: flex;
  justify-content: flex-end;
}
.jiandu-feedback-admin-tip {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
  margin: -4px 0 12px;
}
html[data-scheme="dark"] .jiandu-feedback-admin-tip {
  color: rgba(255, 255, 255, 0.55);
}
.jiandu-feedback-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(52vh, 400px);
  overflow-y: auto;
  padding-right: 2px;
}
.jiandu-feedback-admin-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 10px 12px;
  background: rgba(0, 0, 0, 0.02);
  font-size: 13px;
}
html[data-scheme="dark"] .jiandu-feedback-admin-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.jiandu-feedback-admin-toolbar {
  margin-bottom: 10px;
}
.jiandu-feedback-admin-item-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.jiandu-feedback-admin-item-hd .jiandu-feedback-admin-delete {
  margin-left: auto;
}
.jiandu-feedback-mine-hint {
  margin: 0 0 10px;
  line-height: 1.45;
}
.jiandu-feedback-admin-stars {
  color: var(--theme-nav-bg-start, #1a5fb4);
  letter-spacing: 1px;
}
.jiandu-feedback-admin-time {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
}
.jiandu-feedback-admin-who {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 4px;
}
.jiandu-feedback-admin-page {
  font-size: 12px;
  margin-bottom: 6px;
  word-break: break-all;
}
.jiandu-feedback-admin-page a {
  color: var(--theme-nav-bg-start, #1a5fb4);
}
.jiandu-feedback-admin-page-plain {
  font-size: 12px;
  margin-bottom: 6px;
  word-break: break-word;
  color: rgba(0, 0, 0, 0.62);
}
html[data-scheme="dark"] .jiandu-feedback-admin-page-plain {
  color: rgba(255, 255, 255, 0.7);
}
.jiandu-feedback-admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.jiandu-feedback-admin-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(26, 95, 180, 0.1);
}
.jiandu-feedback-admin-msg {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}
.jiandu-feedback-admin-reply {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  font-size: 12px;
}
.jiandu-feedback-admin-reply-meta {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 4px;
}
.jiandu-feedback-admin-reply-box {
  margin-top: 8px;
}
.jiandu-feedback-admin-reply-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  padding: 8px;
  font-size: 12px;
  margin-bottom: 8px;
  background: var(--bs-body-bg, #fff);
  color: inherit;
}
.jiandu-feedback-loadmore {
  margin-top: 10px;
  width: 100%;
}
.jiandu-feedback-admin-loading,
.jiandu-feedback-admin-empty,
.jiandu-feedback-admin-err {
  text-align: center;
  padding: 16px 8px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
}

/* 征求意见 · 深色模式统一优化（面板、遮罩、表单、管理列表） */
html[data-scheme="dark"] .jiandu-feedback-backdrop.is-visible {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
html[data-scheme="dark"] .jiandu-feedback-panel {
  background: linear-gradient(165deg, #2a3038 0%, #1e2329 52%, #181c22 100%);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
html[data-scheme="dark"] .jiandu-feedback-panel-inner {
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
html[data-scheme="dark"] .jiandu-feedback-panel-inner::-webkit-scrollbar {
  width: 7px;
}
html[data-scheme="dark"] .jiandu-feedback-panel-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}
html[data-scheme="dark"] .jiandu-feedback-panel-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}
html[data-scheme="dark"] .jiandu-feedback-title {
  color: rgba(255, 255, 255, 0.96);
}
html[data-scheme="dark"] .jiandu-feedback-replies-top-title {
  color: #93c5fd;
}
html[data-scheme="dark"] .jiandu-feedback-replies-top {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(147, 197, 253, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
html[data-scheme="dark"] .jiandu-feedback-picked-head {
  color: #6ee7b7;
}
html[data-scheme="dark"] .jiandu-feedback-picked-head--low {
  color: #fcd34d;
}
html[data-scheme="dark"] .jiandu-feedback-mini-stars {
  color: #93c5fd;
}
html[data-scheme="dark"] .jiandu-feedback-text-shell {
  border-color: rgba(110, 168, 255, 0.4);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
html[data-scheme="dark"] .jiandu-feedback-prompt-line.is-active .jiandu-feedback-prompt-label {
  color: #bfdbfe;
}
html[data-scheme="dark"] .jiandu-feedback-text {
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}
html[data-scheme="dark"] .jiandu-feedback-text::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
html[data-scheme="dark"] .jiandu-feedback-text:focus {
  border-color: rgba(110, 168, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.28);
}
html[data-scheme="dark"] .jiandu-feedback-count {
  color: rgba(255, 255, 255, 0.48);
}
html[data-scheme="dark"] .jiandu-feedback-actions .btn-primary {
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}
html[data-scheme="dark"] .jiandu-feedback-tail-hint {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: rgba(255, 255, 255, 0.78);
}
html[data-scheme="dark"] .jiandu-feedback-tail-hint .fa {
  color: #fcd34d;
}
html[data-scheme="dark"] .jiandu-feedback-admin-stars {
  color: #7cb3ff;
}
html[data-scheme="dark"] .jiandu-feedback-admin-time {
  color: rgba(255, 255, 255, 0.5);
}
html[data-scheme="dark"] .jiandu-feedback-admin-who {
  color: rgba(255, 255, 255, 0.65);
}
html[data-scheme="dark"] .jiandu-feedback-admin-msg {
  color: rgba(255, 255, 255, 0.88);
}
html[data-scheme="dark"] .jiandu-feedback-admin-reply {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}
html[data-scheme="dark"] .jiandu-feedback-admin-reply-meta {
  color: rgba(255, 255, 255, 0.5);
}
html[data-scheme="dark"] .jiandu-feedback-admin-reply-input {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}
html[data-scheme="dark"] .jiandu-feedback-admin-reply-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
html[data-scheme="dark"] .jiandu-feedback-admin-reply-input:focus {
  border-color: rgba(110, 168, 255, 0.55);
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.22);
}
html[data-scheme="dark"] .jiandu-feedback-admin-tag {
  background: rgba(110, 168, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
}
html[data-scheme="dark"] .jiandu-feedback-admin-loading,
html[data-scheme="dark"] .jiandu-feedback-admin-empty,
html[data-scheme="dark"] .jiandu-feedback-admin-err {
  color: rgba(255, 255, 255, 0.55);
}
html[data-scheme="dark"] .jiandu-feedback-admin-list {
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
html[data-scheme="dark"] .jiandu-feedback-prompt-q {
  color: rgba(255, 255, 255, 0.58);
}
html[data-scheme="dark"] .jiandu-feedback-star-hint {
  color: rgba(255, 255, 255, 0.52);
}

body.jiandu-feedback-open {
  overflow: hidden;
}
@media (max-width: 576px) {
  .jiandu-feedback-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: calc(72px + env(safe-area-inset-bottom));
    max-height: min(92vh, 760px);
  }
  .jiandu-feedback-panel-inner {
    max-height: min(92vh, 760px);
  }
}

/* ========== 全站搜索侧边栏（在线咨询式布局） ========== */
.jiandu-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(15, 15, 25, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.jiandu-search-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.jiandu-search-open {
  overflow: hidden;
}
.jiandu-search-sidebar {
  --js-accent: var(--theme-nav-bg-start);
  --js-accent2: var(--theme-nav-bg-end);
  --js-accent-soft: var(--theme-stat-active-bg);
  --js-card-muted: #f3f4f6;
  --js-border: rgba(0, 0, 0, 0.08);
  --js-text: #1f2937;
  --js-text-muted: #6b7280;
  position: fixed;
  bottom: 0;
  top: auto;
  right: 0;
  z-index: 1041;
  width: min(420px, 100%);
  max-width: 100%;
  height: 72vh;
  max-height: 72dvh;
  min-height: 260px;
  background: #fff;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.12);
  border-top-left-radius: 12px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), width 0.25s ease, height 0.28s ease;
}
.jiandu-search-sidebar.is-open {
  transform: translateX(0);
}
.jiandu-search-sidebar--fullscreen {
  top: 0;
  bottom: auto;
  width: 100%;
  max-width: none;
  height: 100vh;
  max-height: none;
  min-height: 0;
  border-top-left-radius: 0;
}
.jiandu-search-sidebar--minimized .jiandu-search-sidebar-scroll,
.jiandu-search-sidebar--minimized .jiandu-search-sidebar-foot {
  display: none;
}
.jiandu-search-sidebar--minimized {
  height: auto;
  min-height: 0;
  bottom: auto;
  top: auto;
  box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.1);
}
.jiandu-search-sidebar-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--js-border);
  background: #fafafa;
}
.jiandu-search-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.jiandu-search-sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--theme-nav-bg-start) 0%, var(--theme-nav-bg-end) 100%);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.jiandu-search-sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--js-text);
  letter-spacing: 0.02em;
}
.jiandu-search-sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 12px 6px;
  -webkit-overflow-scrolling: touch;
}
.jiandu-search-history-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--js-border);
}
.jiandu-search-history-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--js-text-muted);
}
.jiandu-search-history-clear {
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.4;
  border: 1px solid var(--js-border);
  border-radius: 6px;
  background: #fff;
  color: var(--js-text-muted);
  cursor: pointer;
}
.jiandu-search-history-clear:hover {
  border-color: var(--theme-primary-border);
  color: var(--theme-primary);
  background: var(--theme-stat-active-bg);
}
.jiandu-search-block-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--js-text);
  margin: 0 0 6px;
}
.jiandu-search-page-checks--sidebar {
  margin-bottom: 8px;
}
.jiandu-search-page-row {
  margin-bottom: 8px;
}
.jiandu-search-page-row:last-child {
  margin-bottom: 0;
}
.jiandu-search-onpage-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: var(--js-card-muted);
  border: 1px solid var(--js-border);
  font-size: 11px;
  color: var(--js-text);
}
.jiandu-search-onpage-hint {
  flex: 1 1 100%;
  margin-bottom: 2px;
}
.jiandu-search-onpage-btns {
  display: flex;
  gap: 8px;
}
.jiandu-search-chip-btn {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--js-border);
  background: #fff;
  color: var(--js-text);
  cursor: pointer;
}
.jiandu-search-chip-btn:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}
.jiandu-search-result-body {
  font-size: 13px;
  color: var(--js-text);
  line-height: 1.5;
}
.jiandu-search-result-card {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--js-border);
  background: #fafbfc;
  color: var(--js-text);
  font-size: 12px;
}
.jiandu-search-result-sub {
  font-size: 12px;
  color: var(--js-text-muted);
}
.jiandu-search-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--js-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.jiandu-search-result-item {
  margin: 0;
  border-bottom: 1px solid var(--js-border);
}
.jiandu-search-result-item:last-child {
  border-bottom: none;
}
.jiandu-search-result-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--js-text);
  transition: background 0.12s;
  font-size: 12px;
}
.jiandu-search-result-link:hover {
  background: #f9fafb;
}
.jiandu-search-result-text {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}
.jiandu-search-result-chevron {
  flex-shrink: 0;
  color: var(--js-text-muted);
  font-size: 18px;
  font-weight: 300;
}
.jiandu-search-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  vertical-align: middle;
  background: var(--theme-stat-active-bg);
  color: var(--theme-primary);
  font-weight: 600;
}
.jiandu-search-snippet-intro,
.jiandu-search-result-intro {
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 8px;
  color: var(--js-text);
}
.jiandu-search-result-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jiandu-search-result-group {
  border: 1px solid var(--js-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.jiandu-search-result-group-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--theme-nav-bg-start) 8%, #ffffff) 0%,
    color-mix(in srgb, var(--theme-nav-bg-end) 6%, #ffffff) 100%
  );
  border-bottom: 1px solid var(--js-border);
  color: var(--js-text);
}
@supports not (color: color-mix(in srgb, white 50%, black)) {
  .jiandu-search-result-group-hd {
    background: var(--theme-stat-active-bg);
  }
}
.jiandu-search-result-group-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.jiandu-search-result-filename {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  word-break: break-all;
}
.jiandu-search-result-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--js-text-muted);
}
.jiandu-search-snippet-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #fafbfc;
}
.jiandu-search-snippet-jump {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  border: 1px solid var(--js-border);
  border-radius: 8px;
  background: #fff;
  color: var(--js-text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.jiandu-search-snippet-jump:hover {
  border-color: var(--theme-primary-border);
  box-shadow: 0 0 0 2px var(--theme-stat-active-bg);
}
.jiandu-search-hit-mark {
  background: color-mix(in srgb, var(--theme-nav-accent) 42%, #ffffff);
  color: var(--js-text);
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}
@supports not (color: color-mix(in srgb, white 50%, black)) {
  .jiandu-search-hit-mark {
    background: rgba(255, 229, 102, 0.55);
  }
}
.jiandu-search-empty {
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
}
.jiandu-search-empty--muted {
  background: #f9fafb;
  color: var(--js-text-muted);
}
.jiandu-search-empty--warn {
  background: #fff8e6;
  color: #b45309;
}
.jiandu-search-loading {
  text-align: center;
  padding: 10px;
  color: var(--js-text-muted);
  font-size: 12px;
}
.jiandu-search-sidebar-foot {
  flex-shrink: 0;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--js-border);
  background: #fafafa;
}
.jiandu-search-scope-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}
.jiandu-search-scope-inline-label {
  flex-shrink: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--js-text-muted);
}
.jiandu-search-scope-select--inline {
  flex: 1;
  min-width: 0;
  padding: 6px 26px 6px 8px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--js-border);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right 8px center;
  background-size: 10px;
  appearance: none;
  color: var(--js-text);
  cursor: pointer;
}
.jiandu-search-scope-select--inline:focus {
  outline: none;
  border-color: var(--theme-primary-border);
  box-shadow: 0 0 0 2px var(--theme-stat-active-bg);
}
.jiandu-search-input-shell {
  position: relative;
  margin-bottom: 8px;
}
.jiandu-search-textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  max-height: 120px;
  resize: vertical;
  padding: 10px 42px 10px 10px;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid var(--js-border);
  border-radius: 10px;
  background: #fff;
  color: var(--js-text);
}
.jiandu-search-textarea::placeholder {
  color: #9ca3af;
}
.jiandu-search-textarea:focus {
  outline: none;
  border-color: var(--theme-primary-border);
  box-shadow: 0 0 0 3px var(--theme-stat-active-bg);
}
.jiandu-search-send {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--theme-nav-bg-start) 0%, var(--theme-nav-bg-end) 100%);
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.jiandu-search-send:hover {
  filter: brightness(1.06);
}
.jiandu-search-send:active {
  transform: scale(0.96);
}
.jiandu-search-foot-note {
  margin: 0;
  font-size: 11px;
  text-align: center;
  color: #9ca3af;
  line-height: 1.4;
}
html[data-scheme="dark"] .jiandu-search-sidebar {
  --js-accent: var(--theme-nav-bg-start);
  --js-accent2: var(--theme-nav-bg-end);
  --js-accent-soft: var(--theme-stat-active-bg);
  --js-card-muted: rgba(255, 255, 255, 0.06);
  --js-border: rgba(255, 255, 255, 0.12);
  --js-text: #e5e7eb;
  --js-text-muted: #9ca3af;
  background: #1e1e24;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45);
}
html[data-scheme="dark"] .jiandu-search-sidebar-head,
html[data-scheme="dark"] .jiandu-search-sidebar-foot {
  background: #23232c;
}
html[data-scheme="dark"] .jiandu-search-scope-select--inline {
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.15);
  background-color: #2a2a32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
}
html[data-scheme="dark"] .jiandu-search-history-clear {
  background: #2a2a32;
  border-color: rgba(255, 255, 255, 0.12);
  color: #9ca3af;
}
html[data-scheme="dark"] .jiandu-search-backdrop {
  background: rgba(0, 0, 0, 0.55);
}
html[data-scheme="dark"] .jiandu-search-textarea {
  background: #2a2a32;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}
html[data-scheme="dark"] .jiandu-search-result-list {
  background: #26262e;
}
html[data-scheme="dark"] .jiandu-search-result-link:hover {
  background: rgba(255, 255, 255, 0.05);
}
html[data-scheme="dark"] .jiandu-search-result-group {
  background: #26262e;
}
html[data-scheme="dark"] .jiandu-search-snippet-list {
  background: #1e1e24;
}
html[data-scheme="dark"] .jiandu-search-snippet-jump {
  background: #2a2a32;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}
html[data-scheme="dark"] .jiandu-search-snippet-jump:hover {
  border-color: var(--theme-primary-border);
  box-shadow: 0 0 0 2px var(--theme-stat-active-bg);
}

/* ========== 主题色联动：数据概览 hero 卡片、民生部门卡、排序图标 ========== */
/* hero 卡片：柔和主题底色 + 深色文字，与导航区分开 */
.jiandu-hero,
.jiandu-overview .overview-total-panel,
.diaoyan-hero,
.minsheng-overview-hero {
  background: var(--theme-hero-bg) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
  color: var(--theme-hero-text) !important;
}
.jiandu-hero .hero-icon,
.jiandu-hero .hero-label,
.jiandu-hero .hero-value,
.jiandu-hero .hero-value .hero-unit,
.jiandu-hero .hero-hint,
.jiandu-overview .overview-total-panel .overview-total-title,
.jiandu-overview .overview-total-panel .overview-total-number,
.jiandu-overview .overview-total-panel .overview-total-unit,
.jiandu-overview .overview-total-panel .overview-total-sub,
.jiandu-overview .overview-total-panel .overview-total-scope,
.diaoyan-hero .hero-icon,
.diaoyan-hero .hero-label,
.diaoyan-hero .hero-value,
.diaoyan-hero .hero-value span,
.diaoyan-hero .overview-click-hint,
.minsheng-overview-hero .hero-icon,
.minsheng-overview-hero .hero-label,
.minsheng-overview-hero .hero-value,
.minsheng-overview-hero .hero-value .hero-unit,
.minsheng-overview-hero .overview-click-hint {
  color: inherit !important;
}
.jiandu-overview .overview-total-scope.overview-scope-badge,
.jiandu-hero .hero-hint.overview-scope-badge,
.diaoyan-hero .overview-click-hint.overview-scope-badge,
.minsheng-overview-hero .overview-click-hint.overview-scope-badge {
  background: rgba(0, 0, 0, 0.06) !important;
  color: var(--theme-hero-sub) !important;
}

/* 数据概览区卡片悬停动效（与首页一致，全站共用；置于主题 hero 规则之后以便 :hover 覆盖 box-shadow !important） */
.jiandu-overview .overview-total-panel,
.jiandu-hero,
.diaoyan-hero,
.minsheng-overview-hero {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.jiandu-overview .overview-total-panel:hover,
.jiandu-hero:hover,
.diaoyan-hero:hover,
.minsheng-overview-hero:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.12),
    0 16px 30px rgba(15, 23, 42, 0.1) !important;
}

.jiandu-stat-box {
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.jiandu-stat-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18) !important;
}
.jiandu-stat-box.overview-stat-active:hover {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(15, 23, 42, 0.18) !important;
}

/* 监督概览「部门/时间统计」图表容器：不随悬停上浮/加深阴影，避免与图表内悬停反馈叠加；其它概览图卡仍保留动效 */
.pishi-chart-card,
.minsheng-chart-wrap .chart-container,
.diaoyan-chart-wrap {
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pishi-chart-card:hover,
.minsheng-chart-wrap .chart-container:hover,
.diaoyan-chart-wrap:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12) !important;
}

.dept-card .dept-card-header {
  border-left-color: var(--theme-primary) !important;
  color: var(--theme-primary) !important;
}
.dept-card-header .dept-seq {
  background-color: var(--theme-primary) !important;
  color: #fff !important;
}
.dept-files-area-media-style .media-file-link {
  color: var(--theme-primary) !important;
}
.dept-files-area-media-style .media-file-link:hover {
  color: var(--theme-primary-hover) !important;
}
/* 表头排序箭头等图标随主题色 */
#jiandu-topic-list-card .table thead th [data-sort],
#minsheng-list-card .table thead th [data-sort],
.diaoyan-table-wrap .table thead th [data-sort],
.pishi-list-card .table thead th [data-sort],
th .sort-btn,
thead th .fa-sort,
thead th .fa-angle-up,
thead th .fa-angle-down {
  color: var(--theme-primary);
}
#jiandu-topic-list-card .table thead th [data-sort]:hover,
#minsheng-list-card .table thead th [data-sort]:hover,
.diaoyan-table-wrap .table thead th [data-sort]:hover,
.pishi-list-card .table thead th [data-sort]:hover,
th .sort-btn:hover {
  color: var(--theme-primary-hover);
}
.pishi-overview-dept-row:hover { color: var(--theme-primary) !important; }
.pishi-overview-dept-row.overview-stat-active { background: var(--theme-stat-active-bg) !important; color: var(--theme-primary) !important; }
.pishi-overview-dept-row:hover .dept-count { color: var(--theme-primary) !important; }
.minsheng-supervise-more { color: var(--theme-primary) !important; }

/* 工作计划（JH）等列表行：支持点击空白区域，补充可点击视觉反馈 */
#meiyue-tbody tr[data-id],
#entry-plan-list-tbody tr[data-plan-id],
#entry-plan-list-tbody tr[data-open-year],
.meiyue-item-card[data-id],
.entry-plan-list-card[data-plan-id],
.entry-plan-list-card[data-open-year] {
  cursor: pointer;
}
#meiyue-tbody tr[data-id]:hover > td,
#entry-plan-list-tbody tr[data-plan-id]:hover > td,
#entry-plan-list-tbody tr[data-open-year]:hover > td {
  background-color: #E0ECFF !important;
}
.meiyue-item-card[data-id],
.entry-plan-list-card[data-plan-id],
.entry-plan-list-card[data-open-year] {
  transition: background-color 0.2s ease;
}
.meiyue-item-card[data-id]:hover,
.entry-plan-list-card[data-plan-id]:hover,
.entry-plan-list-card[data-open-year]:hover {
  background-color: #E0ECFF;
}
.entry-plan-list-open {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* 移动端：列表卡片操作区统一右对齐、单行不换行且不外溢 */
@media (max-width: 767px) {
  .jiandu-topic-card-actions,
  .diaoyan-item-card-actions,
  .pishi-item-card-actions,
  .minsheng-project-card-actions,
  .meiyue-item-card-actions,
  .entry-plan-list-card-actions,
  .progress-file-card-actions {
    display: flex;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 2px;
  }
  .jiandu-topic-card-actions .btn,
  .diaoyan-item-card-actions .btn,
  .pishi-item-card-actions .btn,
  .minsheng-project-card-actions .btn,
  .meiyue-item-card-actions .btn,
  .entry-plan-list-card-actions .btn,
  .progress-file-card-actions .btn {
    flex: 0 0 auto !important;
    min-width: max-content;
    white-space: nowrap;
  }
}

/* 列表卡头筛选：图标 + 文案（全角冒号），文案右对齐贴近下拉 */
.header-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0 !important;
}
.header-filter-label .header-filter-label-caption {
  display: inline-block;
  text-align: right;
  min-width: 3.5em;
}
