/* 村级一体化村务管理系统 - 政务风格样式 */

:root {
    --navy: #1b3a5b;
    --navy-deep: #122a43;
    --navy-soft: #2c527a;
    --ink: #1f2933;
    --ink-light: #3d4b59;
    --muted: #6b7785;
    --line: #dbe2e8;
    --line-soft: #e9eef2;
    --bg: #f1f4f7;
    --white: #ffffff;
    --hover: #f6f8fa;
    --ok: #2f7d5b;
    --ok-bg: #e8f4ee;
    --warn: #94620f;
    --warn-bg: #fbf2e2;
    --danger: #a33a32;
    --danger-bg: #fbeceb;
    --info: #275d8c;
    --info-bg: #eaf1f8;
    --radius: 4px;
    --shadow: 0 1px 2px rgba(20, 38, 56, 0.06);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--navy-soft);
    text-decoration: none;
}

a:hover {
    color: var(--navy);
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
    color: var(--ink);
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
}

svg.icon {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    vertical-align: middle;
}

.text-muted {
    color: var(--muted);
    font-size: 13px;
}

.nowrap {
    white-space: nowrap;
}

/* ---------------- 布局 ---------------- */

.app {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 236px;
    background: var(--navy-deep);
    color: #d7e1ea;
    display: flex;
    flex-direction: column;
    z-index: 40;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: #ffffff;
}

.brand-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.brand-sub {
    font-size: 12px;
    color: #9fb2c4;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 16px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
}

.nav-group {
    margin-top: 10px;
}

.nav-group-title {
    padding: 6px 18px;
    font-size: 12px;
    color: #8097ac;
    letter-spacing: 1px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #c9d6e2;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #7fa8cc;
    color: #ffffff;
    font-weight: 600;
}

.sidebar-foot {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 12px 18px 16px;
    font-size: 13px;
}

.sidebar-user {
    color: #ffffff;
}

.sidebar-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #9fb2c4;
    font-size: 13px;
}

.sidebar-logout:hover {
    color: #ffffff;
}

.sidebar-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 28, 42, 0.45);
    z-index: 35;
}

.main {
    margin-left: 236px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 58px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
}

.menu-toggle {
    display: none;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--ink-light);
    cursor: pointer;
    font-size: 18px;
}

.icon-btn:hover {
    background: var(--hover);
    border-color: var(--line);
}

.topbar-title {
    font-size: 17px;
    font-weight: 600;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-light);
    font-size: 13px;
}

.topbar-link:hover {
    color: var(--navy);
}

.user-chip {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.user-role {
    font-size: 12px;
    color: var(--muted);
}

.content {
    flex: 1;
    padding: 20px 24px 34px;
    min-width: 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    background: var(--white);
}

/* ---------------- 通用组件 ---------------- */

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-head h1 {
    font-size: 22px;
    line-height: 1.35;
}

.page-desc {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s;
}

.btn:hover {
    background: var(--hover);
}

.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--navy-soft);
    border-color: var(--navy-soft);
    color: #ffffff;
}

.btn-outline {
    background: var(--white);
    border-color: var(--line);
    color: var(--ink-light);
}

.btn-outline:hover {
    border-color: var(--navy-soft);
    color: var(--navy);
}

.btn-danger-outline {
    background: var(--white);
    border-color: #d9b4b0;
    color: var(--danger);
}

.btn-danger-outline:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
}

.btn-light {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--navy-deep);
}

.btn-light:hover {
    background: #e8eef4;
    border-color: #e8eef4;
    color: var(--navy-deep);
}

.btn-ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-sm {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.btn-xs {
    min-height: 28px;
    padding: 0 9px;
    font-size: 12px;
}

.btn-lg {
    min-height: 44px;
    padding: 0 22px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
}

.card-head h2 {
    font-size: 16px;
}

.card-note {
    color: var(--muted);
    font-size: 12px;
}

.card-link {
    font-size: 13px;
}

.card-table {
    padding-bottom: 4px;
}

.table-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    color: var(--ink-light);
    font-size: 13px;
}

.table-scroll {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: middle;
}

.table th {
    background: #f5f7f9;
    color: var(--ink-light);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: #fafbfc;
}

.table-compact th,
.table-compact td {
    padding: 8px 12px;
}

.table-empty {
    text-align: center !important;
    color: var(--muted);
    padding: 32px 12px !important;
}

.col-no {
    width: 64px;
    color: var(--muted);
}

.col-actions {
    width: 1%;
    white-space: nowrap;
}

.col-actions .btn {
    margin-right: 4px;
}

.col-money {
    width: 150px;
}

.col-center {
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
}

.badge-ok {
    background: var(--ok-bg);
    color: var(--ok);
}

.badge-warn {
    background: var(--warn-bg);
    color: var(--warn);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
}

.badge-muted {
    background: #eef1f4;
    color: var(--muted);
}

.tag {
    display: inline-block;
    padding: 0 7px;
    margin: 1px 4px 1px 0;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #f7f9fa;
    color: var(--ink-light);
    font-size: 12px;
    line-height: 20px;
}

.alert {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: var(--radius);
    background: var(--white);
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    border-left-color: var(--ok);
    background: var(--ok-bg);
    color: #245c44;
}

.alert-error {
    border-left-color: var(--danger);
    background: var(--danger-bg);
    color: #7f2d26;
}

.alert-warn {
    border-left-color: #b8862e;
    background: var(--warn-bg);
    color: var(--warn);
}

.alert-info {
    border-left-color: var(--info);
    background: var(--info-bg);
    color: #204d75;
}

.alert-list {
    margin: 6px 0 0;
    padding-left: 18px;
    list-style: disc;
}

/* ---------------- 工作台 ---------------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.stat-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--ink);
    box-shadow: var(--shadow);
}

a.stat-card:hover {
    border-color: #b9c9d8;
    color: var(--ink);
}

.stat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f6;
    border-radius: 4px;
    color: var(--navy-soft);
    font-size: 22px;
}

.stat-icon-ok {
    background: var(--ok-bg);
    color: var(--ok);
}

.stat-icon-warn {
    background: var(--warn-bg);
    color: var(--warn);
}

.stat-body {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.stat-value {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy-deep);
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.bar-list {
    padding: 14px 18px 18px;
}

.bar-row {
    display: grid;
    grid-template-columns: 92px 1fr 52px;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--ink);
    font-size: 13px;
}

.bar-row-link:hover .bar-label {
    color: var(--navy);
}

.bar-label {
    color: var(--ink-light);
}

.bar-track {
    display: block;
    height: 12px;
    background: #eef1f4;
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    display: block;
    height: 100%;
    background: #7fa8cc;
}

.bar-fill-dark {
    background: var(--navy);
}

.bar-value {
    text-align: right;
    color: var(--muted);
}

.reminder-list {
    padding: 6px 0;
}

.reminder-item {
    display: grid;
    grid-template-columns: 110px 1fr 110px 100px;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
    font-size: 13px;
}

.reminder-item:hover {
    background: var(--hover);
}

.reminder-type {
    color: var(--navy-soft);
    font-weight: 600;
}

.reminder-date {
    color: var(--muted);
    text-align: right;
}

.reminder-days {
    text-align: right;
    font-size: 12px;
}

.reminder-danger .reminder-days {
    color: var(--danger);
    font-weight: 600;
}

.reminder-warn .reminder-days {
    color: var(--warn);
    font-weight: 600;
}

.reminder-info .reminder-days {
    color: var(--muted);
}

.empty-inline {
    padding: 26px 18px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.news-list {
    padding: 6px 18px 14px;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
}

.news-list li:last-child {
    border-bottom: 0;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    white-space: nowrap;
}

/* ---------------- 筛选与列表 ---------------- */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
}

.filter-bar .input {
    height: 36px;
}

.filter-search {
    width: 230px;
}

.filter-select {
    width: 150px;
}

.filter-year {
    width: 92px;
}

.filter-month {
    width: 90px;
}

.filter-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-date .input {
    width: 132px;
}

.filter-sep {
    color: var(--muted);
    font-size: 12px;
}

.filter-check {
    padding: 0 4px;
}

.filter-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-light);
}

.import-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    padding: 0 14px;
}

.import-box summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink-light);
}

.import-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0 0 14px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--white);
    color: var(--ink-light);
    font-size: 13px;
}

.page-btn:hover {
    border-color: var(--navy-soft);
    color: var(--navy);
}

.page-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #ffffff;
}

.page-info {
    margin-left: 8px;
    color: var(--muted);
    font-size: 12px;
}

/* ---------------- 表单 ---------------- */

.form-card {
    padding: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
}

.form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
    min-width: 0;
}

.field-wide {
    grid-column: 1 / -1;
}

.field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--ink-light);
    font-weight: 600;
}

.req {
    color: var(--danger);
    margin-left: 3px;
}

.field-control {
    min-width: 0;
}

.input {
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #c9d3dc;
    border-radius: 3px;
    background: var(--white);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.input:focus {
    border-color: var(--navy-soft);
    box-shadow: 0 0 0 2px rgba(44, 82, 122, 0.12);
}

textarea.input {
    resize: vertical;
    min-height: 76px;
}

.input-readonly {
    background: #f4f6f8;
    color: var(--muted);
}

.input-file {
    padding: 6px 8px;
    min-height: 38px;
}

.input-money {
    width: 130px;
    height: 34px;
    min-height: 34px;
    text-align: right;
}

.input-remark {
    width: 100%;
    min-width: 160px;
    height: 34px;
    min-height: 34px;
}

.field-help {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.field-error {
    margin-top: 5px;
    color: var(--danger);
    font-size: 12px;
}

.has-error .input {
    border-color: #c98b85;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 12px;
    margin-bottom: 4px;
}

.check input {
    width: 16px;
    height: 16px;
    accent-color: var(--navy);
}

.check-inline {
    margin-bottom: 0;
}

.tag-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
    padding: 6px 0;
}

.file-current {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.thumb {
    display: inline-block;
    width: 66px;
    height: 50px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 3px;
    margin-right: 6px;
}

.file-link {
    color: var(--navy-soft);
    font-size: 13px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.form-actions-left {
    justify-content: flex-start;
}

.form-card-inline {
    margin-bottom: 18px;
}

/* ---------------- 详情 ---------------- */

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 4px 18px 18px;
}

.detail-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--line-soft);
    min-width: 0;
}

.detail-wide {
    grid-column: 1 / -1;
}

.detail-label {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 3px;
}

.detail-value {
    font-size: 14px;
    word-break: break-all;
}

.empty-card {
    max-width: 560px;
    margin: 60px auto;
    padding: 42px 24px;
    text-align: center;
}

.empty-icon {
    color: #93a4b4;
    margin-bottom: 12px;
}

.empty-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

/* ---------------- 党费 ---------------- */

.table-dues td {
    vertical-align: middle;
}

/* ---------------- 系统设置 ---------------- */

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.settings-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: var(--ink-light);
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.settings-tab:hover {
    color: var(--navy);
}

.settings-tab.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
    font-weight: 600;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
}

.settings-card:hover {
    border-color: #b9c9d8;
    color: var(--ink);
}

.settings-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f6;
    border-radius: 4px;
    color: var(--navy-soft);
    font-size: 24px;
}

.settings-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.settings-title {
    font-size: 15px;
    font-weight: 600;
}

.settings-desc {
    color: var(--muted);
    font-size: 12px;
}

.settings-arrow {
    color: #9fb0bf;
}

.perm-section {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.perm-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.perm-head h2 {
    font-size: 16px;
}

.perm-group {
    padding: 10px 0;
    border-bottom: 1px dashed var(--line-soft);
}

.perm-group-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-light);
    margin-bottom: 6px;
}

.perm-checks {
    display: flex;
    flex-wrap: wrap;
}

.log-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.log-tab {
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--white);
    color: var(--ink-light);
    font-size: 13px;
}

.log-tab.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #ffffff;
}

.export-list {
    padding: 4px 0 8px;
}

.export-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line-soft);
}

.export-item:last-child {
    border-bottom: 0;
}

.export-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f6;
    border-radius: 4px;
    color: var(--navy-soft);
}

.export-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.export-title {
    font-size: 14px;
    font-weight: 600;
}

.export-desc {
    color: var(--muted);
    font-size: 12px;
}

.export-actions {
    display: flex;
    gap: 6px;
}

.map-bg-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.map-bg-preview img {
    max-width: 260px;
    max-height: 150px;
    border: 1px solid var(--line);
    border-radius: 3px;
    object-fit: cover;
}

/* ---------------- 三维地图 ---------------- */

.map-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 10px;
}

.map-layers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.layer-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--ink-light);
    cursor: pointer;
}

.layer-check input {
    accent-color: var(--navy);
}

.layer-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #5b6b7a;
}

.layer-wubao { background: #a33a32; }
.layer-dibao { background: #b07a1c; }
.layer-party { background: #8f3a3a; }
.layer-veteran { background: #2f5d8a; }
.layer-active { background: #4a6fa5; }
.layer-villager { background: #6b7785; }
.layer-facility { background: #2f7d5b; }

.map-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.map-locate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 14px;
}

.map-locate .input {
    width: 260px;
    height: 36px;
}

.map-locate-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-light);
}

.map-model-link {
    margin-left: auto;
}

.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 14px;
    align-items: stretch;
}

.map-stage {
    position: relative;
    height: 620px;
    background: #dfe6ec;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.map-canvas {
    position: absolute;
    inset: 0;
    background-color: #e7edf2;
    background-size: cover;
    background-position: center;
    transform-origin: center center;
}

.map-canvas-empty {
    background-image: none;
}

.map-pins {
    position: absolute;
    inset: 0;
}

.map-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #5b6b7a;
    box-shadow: 0 0 0 1px rgba(20, 38, 56, 0.35);
    cursor: pointer;
    z-index: 3;
}

.map-pin:hover {
    z-index: 9;
}

.map-pin::after {
    content: attr(data-name);
    position: absolute;
    left: 16px;
    top: -4px;
    padding: 1px 6px;
    background: rgba(18, 42, 67, 0.92);
    color: #ffffff;
    font-size: 11px;
    white-space: nowrap;
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
}

.map-pin:hover::after {
    opacity: 1;
}

.pin-wubao { background: #a33a32; }
.pin-dibao { background: #b07a1c; }
.pin-party { background: #8f3a3a; }
.pin-veteran { background: #2f5d8a; }
.pin-active { background: #4a6fa5; }
.pin-villager { background: #6b7785; }
.pin-facility {
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 2px;
    background: #2f7d5b;
    transform: rotate(45deg);
}

.map-pin.pin-facility::after {
    transform: rotate(-45deg);
}

.map-empty-tip {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 360px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink-light);
    font-size: 13px;
    text-align: center;
    z-index: 2;
}

.map-status {
    position: absolute;
    left: 12px;
    bottom: 10px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--muted);
    font-size: 12px;
    z-index: 2;
}

.map-picking .map-canvas {
    cursor: crosshair;
}

.map-side {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    height: 620px;
    overflow: hidden;
}

.map-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
}

.map-side-head h2 {
    font-size: 15px;
}

.map-side-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

#mapPopup {
    color: var(--muted);
    font-size: 13px;
}

#mapPopup > svg {
    color: #9fb0bf;
    margin-bottom: 6px;
}

.map-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.map-popup-meta {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.map-popup-tags {
    margin-bottom: 10px;
}

.map-popup-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-light);
    margin: 12px 0 6px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
}

.map-member-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 10px;
}

.map-member-table th,
.map-member-table td {
    padding: 5px 6px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
}

.map-member-table th {
    background: #f5f7f9;
    color: var(--muted);
    font-weight: 600;
}

.map-popup-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.map-form {
    padding-top: 10px;
}

.map-form .field {
    margin-bottom: 12px;
}

.map-form-actions {
    display: flex;
    gap: 8px;
    padding-top: 6px;
}

.map-form-note {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 10px;
}

/* ---------------- 登录 ---------------- */

.login-body {
    background: #eef2f6;
}

.login-wrap {
    display: flex;
    min-height: 100vh;
}

.login-visual {
    flex: 1.05;
    background: var(--navy-deep);
    color: #dbe6ef;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.login-visual-inner {
    max-width: 440px;
}

.login-mark {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #ffffff;
    margin-bottom: 24px;
}

.login-visual h1 {
    color: #ffffff;
    font-size: 30px;
    line-height: 1.35;
    margin-bottom: 14px;
}

.login-visual p {
    color: #b6c5d3;
    font-size: 14px;
    line-height: 1.8;
}

.login-points {
    margin-top: 26px;
    padding-left: 0;
}

.login-points li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 9px;
    font-size: 13px;
    color: #c9d6e2;
}

.login-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: #7fa8cc;
    border-radius: 50%;
}

.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 5px;
    box-shadow: 0 4px 18px rgba(20, 38, 56, 0.08);
    padding: 30px 28px;
}

.login-card h2 {
    font-size: 21px;
    margin-bottom: 4px;
}

.login-sub {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.login-form .field-label {
    margin-top: 12px;
}

.login-form .btn {
    margin-top: 22px;
}

.login-links {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
}

.login-tip {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.login-wrap-center {
    align-items: center;
    justify-content: center;
}

.denied-card {
    text-align: center;
    max-width: 440px;
}

.denied-icon {
    color: #9fb0bf;
    margin-bottom: 10px;
}

.denied-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* ---------------- 村务公开 ---------------- */

.public-body {
    background: #f3f5f7;
}

.public-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.public-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.public-brand .brand-mark {
    background: var(--navy);
    border-color: var(--navy);
}

.public-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.public-brand-title {
    font-size: 17px;
    font-weight: 600;
}

.public-brand-sub {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 1px;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.public-nav a {
    color: var(--ink-light);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.public-nav a:hover {
    color: var(--navy);
}

.public-nav a.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
    font-weight: 600;
}

.public-nav .public-login {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--ink-light);
    border-bottom-width: 1px;
}

.public-nav .public-login:hover {
    border-color: var(--navy-soft);
    color: var(--navy);
}

.public-main {
    min-height: calc(100vh - 64px - 110px);
}

.public-hero {
    background: var(--navy-deep);
    color: #ffffff;
}

.public-hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 42px 20px;
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
}

.public-hero-main {
    max-width: 620px;
}

.public-hero-main h1 {
    color: #ffffff;
    font-size: 28px;
    line-height: 1.35;
    margin-bottom: 12px;
}

.public-hero-main p {
    color: #c3d0dc;
    font-size: 14px;
    line-height: 1.85;
}

.public-hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.public-hero-side {
    flex: 0 0 300px;
}

.public-contact {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    padding: 18px 20px;
}

.public-contact-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.public-contact-row {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    font-size: 13px;
    color: #c3d0dc;
}

.public-contact-row span {
    flex: 0 0 44px;
    color: #93a9bd;
}

.public-contact-row strong {
    font-weight: 500;
    color: #eef4f9;
}

.public-main-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.public-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.public-quick-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
}

.public-quick-card:hover {
    border-color: #b9c9d8;
    color: var(--ink);
}

.public-quick-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f6;
    border-radius: 4px;
    color: var(--navy-soft);
    margin-bottom: 12px;
}

.public-quick-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.public-quick-desc {
    color: var(--muted);
    font-size: 12px;
}

.public-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0 0 8px;
    margin-bottom: 20px;
}

.public-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.public-panel-head h2 {
    font-size: 17px;
}

.public-panel-head a {
    font-size: 13px;
}

.public-news {
    padding: 4px 20px 8px;
}

.public-news li {
    border-bottom: 1px solid var(--line-soft);
}

.public-news li:last-child {
    border-bottom: 0;
}

.public-news-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    color: var(--ink);
    font-size: 14px;
}

.public-news-link:hover {
    color: var(--navy);
}

.public-news-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-news-date {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.public-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.public-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.public-filter .input {
    width: auto;
    flex: 1 1 200px;
    min-width: 0;
    height: 38px;
}

.public-filter .btn {
    flex: 0 0 auto;
}

.public-page-head {
    margin-bottom: 18px;
}

.public-page-head h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.public-page-head p {
    color: var(--muted);
    font-size: 13px;
}

.public-article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 28px 32px 34px;
}

.public-article-head {
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.public-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.public-article-head h1 {
    font-size: 24px;
    line-height: 1.45;
    margin-bottom: 10px;
}

.public-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}

.public-article-cover {
    margin-bottom: 18px;
}

.public-article-cover img {
    display: block;
    max-width: 100%;
    border-radius: 3px;
}

.public-article-body {
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink);
    word-break: break-word;
}

.public-article-file {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    font-size: 13px;
}

.public-form {
    padding: 20px;
}

.public-error {
    max-width: 560px;
    margin: 40px auto;
    padding: 40px 24px;
    text-align: center;
}

.public-error h1 {
    font-size: 20px;
    margin-bottom: 8px;
}

.public-error .btn {
    margin-top: 18px;
}

.public-footer {
    background: #e9edf1;
    border-top: 1px solid var(--line);
    padding: 22px 20px;
}

.public-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
}

.public-footer-title {
    color: var(--ink-light);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.public-footer-text {
    line-height: 1.7;
}

/* ---------------- 时间线 ---------------- */

.timeline {
    margin: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.timeline h3 {
    font-size: 15px;
    margin-bottom: 12px;
}

.timeline-list {
    position: relative;
    padding-left: 18px;
}

.timeline-list::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--line);
}

.timeline-list li {
    position: relative;
    padding: 0 0 16px 8px;
}

.timeline-dot {
    position: absolute;
    left: -17px;
    top: 6px;
    width: 9px;
    height: 9px;
    background: var(--white);
    border: 2px solid var(--navy-soft);
    border-radius: 50%;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.timeline-date {
    margin-left: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.timeline-text {
    font-size: 13px;
    color: var(--ink-light);
}

.timeline-operator {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1200px) {
    .stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .map-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.18s ease;
        width: 250px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-mask.show {
        display: block;
    }

    .main {
        margin-left: 0;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .stat-grid,
    .stat-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-2,
    .settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .map-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .map-side {
        height: 380px;
    }

    .map-stage {
        height: 480px;
    }

    .form-grid,
    .form-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .reminder-item {
        grid-template-columns: 92px 1fr 88px;
    }

    .reminder-date {
        display: none;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 14px;
    }

    .topbar {
        padding: 0 12px;
        gap: 8px;
    }

    .topbar-title {
        font-size: 15px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-link span,
    .user-role {
        display: none;
    }

    .topbar-link {
        gap: 0;
    }

    .user-chip {
        padding-left: 10px;
    }

    .content {
        padding: 14px 12px 26px;
    }

    .footer {
        flex-direction: column;
        padding: 12px;
    }

    .page-head {
        flex-direction: column;
        gap: 10px;
    }

    .page-head h1 {
        font-size: 19px;
    }

    .page-actions {
        width: 100%;
    }

    .filter-bar {
        padding: 10px;
    }

    .filter-search,
    .filter-select,
    .filter-year,
    .filter-month,
    .filter-date .input,
    .map-locate .input {
        width: 100%;
    }

    .filter-date {
        width: 100%;
    }

    .stat-grid,
    .stat-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .stat-card {
        padding: 11px 12px;
        gap: 9px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }

    .card-head {
        padding: 12px 14px;
        flex-wrap: wrap;
    }

    .table {
        min-width: 700px;
    }

    .table-meta {
        padding: 10px 14px;
    }

    .form-card {
        padding: 14px;
    }

    .form-actions {
        flex-wrap: wrap;
    }

    .form-actions .btn {
        flex: 1 1 auto;
    }

    .detail-grid {
        padding: 0 14px 14px;
    }

    .settings-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .settings-tab {
        white-space: nowrap;
    }

    .export-item {
        flex-wrap: wrap;
    }

    .export-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .login-visual {
        display: none;
    }

    .login-wrap {
        display: block;
    }

    .login-panel {
        min-height: 100vh;
        padding: 24px 16px;
    }

    .public-header-inner {
        height: auto;
        padding: 10px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .public-nav {
        width: 100%;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 2px;
    }

    .public-nav a {
        white-space: nowrap;
        font-size: 13px;
    }

    .public-hero-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 16px;
        gap: 20px;
    }

    .public-hero-main h1 {
        font-size: 23px;
    }

    .public-hero-side {
        flex: none;
    }

    .public-main-inner {
        padding: 16px 14px 30px;
    }

    .public-quick {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .public-news-link {
        flex-wrap: wrap;
        gap: 6px;
    }

    .public-news-title {
        flex-basis: 100%;
        order: 3;
        white-space: normal;
    }

    .public-news-date {
        margin-left: auto;
    }

    .public-article {
        padding: 20px 16px 24px;
    }

    .public-article-head h1 {
        font-size: 20px;
    }

    .public-footer-inner {
        flex-direction: column;
    }

    .map-toolbar {
        flex-direction: column;
    }

    .map-stage {
        height: 360px;
    }

    .map-side {
        height: 360px;
    }

    .map-model-link {
        margin-left: 0;
    }
}

/* ================= 政务化视觉收紧（覆盖层） ================= */

:root {
    --bg: #edf0f3;
    --line: #d2dae2;
    --line-soft: #e5eaef;
    --hover: #f4f7f9;
    --radius: 2px;
    --shadow: none;
}

body {
    font-size: 15px;
    line-height: 1.6;
    color: #24313d;
}

/* 侧栏 */
.sidebar {
    width: 224px;
    background: #22384c;
}

.main {
    margin-left: 224px;
}

.sidebar-brand {
    padding: 14px;
    gap: 9px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 2px;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
}

.brand-title {
    font-size: 15px;
    letter-spacing: .5px;
}

.brand-sub {
    font-size: 11px;
    letter-spacing: .5px;
    color: #8fa5b8;
}

.nav-group {
    margin-top: 6px;
}

.nav-group-title {
    padding: 9px 16px 4px;
    font-size: 11.5px;
    letter-spacing: .5px;
    color: #7f95a9;
}

.nav-item {
    padding: 9px 16px;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.nav-item.active {
    background: #1a2c3d;
    border-left-color: #a9c4da;
    font-weight: 600;
}

.sidebar-foot {
    padding: 10px 16px 14px;
}

/* 顶栏 */
.topbar {
    height: 50px;
    padding: 0 16px;
}

.topbar-title {
    font-size: 15px;
}

.topbar-right {
    gap: 14px;
}

.topbar-link {
    font-size: 12.5px;
}

.user-chip {
    padding-left: 14px;
}

.user-name {
    font-size: 13.5px;
}

.user-role {
    font-size: 11.5px;
}

.content {
    padding: 16px 18px 28px;
}

.footer {
    padding: 10px 18px;
    font-size: 11.5px;
    background: #f7f9fa;
}

/* 页头 */
.page-head {
    align-items: flex-end;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.page-head h1 {
    font-size: 18px;
    line-height: 1.4;
}

.page-desc {
    font-size: 12px;
    margin-top: 2px;
}

.page-actions {
    gap: 6px;
}

/* 按钮 */
.btn {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 2px;
    font-size: 13.5px;
    transition: none;
}

.btn-sm {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12.5px;
}

.btn-xs {
    min-height: 26px;
    padding: 0 8px;
    font-size: 12px;
}

.btn-lg {
    min-height: 40px;
    font-size: 14.5px;
}

.btn-primary {
    background: #234b70;
    border-color: #234b70;
}

.btn-primary:hover {
    background: #1c3d5c;
    border-color: #1c3d5c;
}

.btn-outline:hover {
    background: #f2f5f7;
}

/* 卡片 */
.card {
    border-radius: 2px;
    box-shadow: none;
    border-color: #d2dae2;
    margin-bottom: 14px;
}

.card-head {
    padding: 9px 14px;
    background: #f7f8fa;
    border-bottom: 1px solid var(--line);
}

.card-head h2 {
    position: relative;
    padding-left: 9px;
    font-size: 14px;
    line-height: 1.5;
}

.card-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background: #234b70;
}

.card-note {
    font-size: 11.5px;
}

/* 村情概况 */
.stat-table {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--line-soft);
}

.stat-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 14px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    color: #24313d;
}

.stat-cell:nth-child(5n) {
    border-right: 0;
}

.stat-cell:hover {
    background: #f4f7f9;
    color: #24313d;
}

.stat-cell-label {
    font-size: 12px;
    color: #6b7785;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-cell-value {
    font-size: 21px;
    line-height: 1.25;
    font-weight: 600;
    color: #1b3a5b;
    font-variant-numeric: tabular-nums;
}

/* 旧统计卡（党费等页面） */
.stat-grid {
    gap: 8px;
    margin-bottom: 14px;
}

.stat-card {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 2px;
    box-shadow: none;
}

.stat-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
    border-radius: 2px;
    background: #eef2f6;
}

.stat-value {
    font-size: 19px;
    line-height: 1.3;
}

.stat-label {
    font-size: 11.5px;
}

/* 图表与列表 */
.grid-2 {
    gap: 14px;
}

.bar-list {
    padding: 10px 14px 12px;
}

.bar-row {
    grid-template-columns: 88px 1fr 46px;
    padding: 5px 0;
    font-size: 12.5px;
}

.bar-track {
    height: 10px;
    border-radius: 0;
    background: #e9edf1;
}

.bar-fill {
    background: #7397b7;
}

.bar-fill-dark {
    background: #234b70;
}

.reminder-item {
    grid-template-columns: 96px 1fr 96px 92px;
    padding: 8px 14px;
    font-size: 12.5px;
}

.reminder-type {
    color: #234b70;
}

.news-list {
    padding: 2px 14px 10px;
}

.news-list li {
    padding: 7px 0;
    font-size: 12.5px;
}

.empty-inline {
    padding: 20px 14px;
}

/* 表格：全边框、紧凑 */
.table {
    border: 1px solid var(--line);
    font-size: 13px;
}

.table th,
.table td {
    border: 1px solid var(--line-soft);
    padding: 8px 10px;
}

.table th {
    background: #eef2f5;
    font-size: 12.5px;
    font-weight: 600;
    color: #3d4b59;
}

.table-compact th,
.table-compact td {
    padding: 7px 9px;
}

/* 表单 */
.form-card {
    padding: 14px 16px;
    border-radius: 2px;
}

.form-grid {
    gap: 12px 16px;
}

.field-label {
    font-size: 13px;
    margin-bottom: 4px;
}

.input {
    min-height: 35px;
    padding: 6px 9px;
    border-radius: 2px;
    border-color: #c8d2db;
    font-size: 14px;
}

.input:focus {
    border-color: #234b70;
    box-shadow: 0 0 0 1px #234b70;
}

textarea.input {
    line-height: 1.6;
}

.field-help {
    font-size: 11.5px;
}

.form-actions {
    padding: 12px 0 0;
}

/* 徽章、标签 */
.badge {
    border-radius: 2px;
    padding: 0 6px;
    font-size: 11.5px;
    line-height: 19px;
}

.tag {
    border-radius: 2px;
    padding: 0 6px;
    font-size: 11.5px;
}

/* 提示条 */
.alert {
    border-radius: 2px;
    padding: 9px 12px;
    font-size: 13px;
}

/* 设置页 */
.settings-tabs {
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 0;
    background: transparent;
}

.settings-tab {
    border: 0;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    padding: 8px 14px;
    background: transparent;
    font-size: 13px;
}

.settings-tab:hover {
    background: #f4f7f9;
}

.settings-tab.active {
    border-bottom-color: #234b70;
    background: transparent;
    color: #234b70;
    font-weight: 600;
}

.settings-card {
    border-radius: 2px;
    box-shadow: none;
}

.settings-card:hover {
    transform: none;
    border-color: #234b70;
}

/* 筛选条 */
.filter-bar {
    padding: 10px 14px;
    gap: 8px;
}

.filter-bar .input {
    min-height: 33px;
}

/* 地图侧栏 */
.map-side-head {
    padding: 9px 12px;
}

.map-side-body {
    padding: 12px;
}

/* 登录页（政务门户式） */
.login-body {
    background: #edf0f3;
}

.login-header {
    background: #22384c;
    border-bottom: 3px solid #234b70;
}

.login-header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.login-header-mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    color: #ffffff;
}

.login-header-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .5px;
    line-height: 1.35;
}

.login-header-sub {
    color: #a8bccc;
    font-size: 11.5px;
    letter-spacing: .5px;
}

.login-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 46px 18px 20px;
}

.login-box {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #cfd8e0;
    border-top: 3px solid #234b70;
    border-radius: 0;
    box-shadow: none;
    padding: 22px 24px 20px;
}

.login-box-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}

.login-box-head h2 {
    font-size: 17px;
    line-height: 1.4;
}

.login-box-head span {
    display: block;
    margin-top: 2px;
    color: #6b7785;
    font-size: 11.5px;
}

.login-form .field {
    margin-bottom: 12px;
}

.login-form .btn {
    margin-top: 8px;
}

.login-box-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
    font-size: 12px;
    color: #6b7785;
}

.login-copyright {
    margin-top: 18px;
    text-align: center;
    font-size: 11.5px;
    color: #7b8794;
}

/* 响应式补充 */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .main {
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    .content {
        padding: 12px 10px 22px;
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .page-head h1 {
        font-size: 17px;
    }

    .topbar {
        padding: 0 10px;
    }

    .stat-table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-cell {
        border-right: 1px solid var(--line-soft);
    }

    .stat-cell:nth-child(2n) {
        border-right: 0;
    }

    .stat-cell-value {
        font-size: 19px;
    }

    .reminder-item {
        grid-template-columns: 1fr auto;
        gap: 2px 8px;
    }

    .reminder-type {
        grid-column: 1 / -1;
        font-size: 11.5px;
    }

    .reminder-date {
        text-align: left;
    }

    .reminder-days {
        text-align: right;
    }

    .login-main {
        padding: 26px 12px 18px;
    }

    .login-box {
        padding: 18px 16px;
    }
}

/* 无权限 / 提示页沿用方正面板 */
.login-card {
    border-radius: 0;
    border-top: 3px solid #234b70;
    box-shadow: none;
    padding: 24px;
}

.login-card h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

/* 公开端收紧 */
.public-header-inner {
    max-width: 1120px;
}

.public-hero-inner {
    padding: 30px 18px;
}

.public-hero-main h1 {
    font-size: 24px;
}

.public-hero-main p {
    font-size: 13.5px;
    line-height: 1.8;
}

.public-quick {
    gap: 12px;
    margin-bottom: 16px;
}

.public-quick-card {
    padding: 15px 16px;
    border-radius: 2px;
}

.public-quick-card:hover {
    border-color: #9fb4c6;
    background: #fbfcfd;
}

.public-panel {
    border-radius: 2px;
}

.public-main-inner {
    padding: 18px 18px 32px;
}

@media (max-width: 760px) {
    .public-hero-inner {
        padding: 22px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .public-hero-main h1 {
        font-size: 21px;
    }

    .public-hero-side {
        flex: none;
        width: 100%;
    }

    .public-quick {
        grid-template-columns: 1fr;
    }
}

/* ================= 主题 v2：现代政务后台 ================= */

:root {
    --bg: #f3f5f8;
    --line: #e3e8ef;
    --line-soft: #eef1f5;
    --hover: #f8fafc;
    --ink: #1d2939;
    --muted: #667085;
    --navy: #17456f;
    --navy-deep: #0f2c46;
    --navy-soft: #256a9f;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 14px rgba(16, 24, 40, 0.05);
}

body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
}

/* 侧栏 */
.sidebar {
    width: 236px;
    background: #0f2c46;
}

.main {
    margin-left: 236px;
}

.sidebar-brand {
    padding: 16px;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-title {
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.brand-sub {
    font-size: 11.5px;
    color: #8ba3b8;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 10px 8px 16px;
}

.nav-group {
    margin-top: 10px;
}

.nav-group-title {
    padding: 8px 10px 5px;
    font-size: 11.5px;
    color: #7f95a9;
    letter-spacing: 0.5px;
}

.nav-item {
    margin: 1px 0;
    padding: 9px 12px;
    border-left: 0;
    border-radius: 6px;
    font-size: 14px;
    color: #c7d5e3;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.nav-item.active {
    background: #1b4a72;
    border-left: 0;
    color: #ffffff;
    font-weight: 500;
}

.sidebar-foot {
    padding: 12px 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
    font-size: 12.5px;
    color: #9db2c5;
    margin-bottom: 6px;
}

.sidebar-logout {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #c7d5e3;
    padding: 5px 8px;
    border-radius: 5px;
}

.sidebar-logout:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

/* 顶栏 */
.topbar {
    height: 56px;
    padding: 0 22px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    gap: 14px;
}

.topbar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.topbar-crumb {
    font-size: 12.5px;
    font-weight: 400;
    color: var(--muted);
    margin-right: 2px;
    flex: 0 0 auto;
}

.topbar-right {
    gap: 16px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.topbar-link:hover {
    color: var(--navy-soft);
}

.user-chip {
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

.user-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
}

.user-role {
    font-size: 11.5px;
    color: var(--muted);
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    color: #475467;
}

.icon-btn:hover {
    background: #f2f5f8;
    color: var(--navy-soft);
}

.content {
    padding: 22px 24px 36px;
}

.footer {
    padding: 14px 24px;
    background: #ffffff;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

/* 页头 */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: 0;
}

.page-head h1 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.2px;
    color: #101828;
}

.page-desc {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}

.page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: #1f5c96;
    border-color: #1f5c96;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.btn-primary:hover {
    background: #194a79;
    border-color: #194a79;
    color: #ffffff;
}

.btn-outline {
    background: #ffffff;
    border-color: #d5dde6;
    color: #344054;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #b8c5d3;
    color: #1d2939;
}

.btn-danger-outline {
    background: #ffffff;
    border-color: #f2c8c3;
    color: #b42318;
}

.btn-danger-outline:hover {
    background: #fef3f2;
    border-color: #eaa9a2;
}

.btn-sm {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12.5px;
}

.btn-xs {
    min-height: 28px;
    padding: 0 9px;
    font-size: 12px;
}

.btn-lg {
    min-height: 42px;
    font-size: 14.5px;
}

/* 卡片 */
.card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--line-soft);
    gap: 10px;
}

.card-head h2 {
    position: static;
    padding-left: 0;
    font-size: 15px;
    font-weight: 600;
    color: #101828;
}

.card-head h2::before {
    content: none;
    display: none;
}

.card-note {
    font-size: 12px;
    color: var(--muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

/* 村情概况 */
.stat-table {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 0;
}

.stat-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
    transition: background 0.15s ease;
}

.stat-cell:nth-child(5n) {
    border-right: 0;
}

.stat-cell:hover {
    background: #f8fafc;
    color: var(--ink);
}

.stat-cell-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef4fa;
    color: #1f5c96;
}

.stat-cell-main {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.stat-cell-label {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-cell-value {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: #17395c;
    font-variant-numeric: tabular-nums;
}

/* 统计卡（党费等） */
.stat-grid,
.stat-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef4fa;
    color: #1f5c96;
    font-size: 19px;
}

.stat-value {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    color: #17395c;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
}

/* 图表 */
.bar-list {
    padding: 14px 18px 16px;
}

.bar-row {
    display: grid;
    grid-template-columns: 88px 1fr 46px;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    font-size: 12.5px;
    color: #475467;
}

.bar-label {
    color: #475467;
}

.bar-track {
    height: 8px;
    border-radius: 4px;
    background: #eef2f6;
    overflow: hidden;
}

.bar-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #6f9cc4;
}

.bar-fill-dark {
    background: #1f5c96;
}

.bar-value {
    text-align: right;
    font-size: 12.5px;
    font-weight: 600;
    color: #344054;
    font-variant-numeric: tabular-nums;
}

/* 待办提醒 */
.reminder-list {
    padding: 0;
}

.reminder-item {
    display: grid;
    grid-template-columns: 96px 1fr 96px 92px;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 12.5px;
    color: #475467;
}

.reminder-item:last-child {
    border-bottom: 0;
}

.reminder-type {
    color: #1f5c96;
    font-weight: 500;
}

.reminder-title {
    color: #1d2939;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reminder-date {
    color: var(--muted);
}

.reminder-days {
    text-align: right;
    color: #b54708;
    font-weight: 600;
}

/* 公示列表 */
.news-list {
    padding: 2px 18px 12px;
}

.news-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
}

.news-list li:last-child {
    border-bottom: 0;
}

.empty-inline {
    padding: 26px 18px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* 表格 */
.table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    font-size: 13px;
}

.table th,
.table td {
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 11px 12px;
    text-align: left;
    vertical-align: middle;
}

.table th {
    background: #f8fafc;
    color: #475467;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.table tbody tr:hover td {
    background: #f9fbfd;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table-compact th,
.table-compact td {
    padding: 9px 10px;
}

.table-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 12.5px;
    color: var(--muted);
}

/* 徽章、标签 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 11.5px;
    line-height: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-ok {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.badge-danger {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}

.badge-warn {
    background: #fffaeb;
    border-color: #fedf89;
    color: #b54708;
}

.badge-info {
    background: #eff8ff;
    border-color: #b2ddff;
    color: #175cd3;
}

.badge-muted {
    background: #f2f4f7;
    border-color: #e4e7ec;
    color: #475467;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border: 1px solid #e4e9f0;
    border-radius: 4px;
    background: #f5f7fa;
    color: #475467;
    font-size: 11.5px;
    line-height: 18px;
}

/* 表单 */
.form-card {
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #344054;
}

.input {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
    outline: 0;
    border-color: #2e6da4;
    box-shadow: 0 0 0 3px rgba(46, 109, 164, 0.12);
}

textarea.input {
    min-height: 96px;
    line-height: 1.65;
}

select.input {
    padding-right: 30px;
}

.field-help {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--muted);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

/* 筛选条 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.filter-bar .input {
    min-height: 36px;
}

.filter-search {
    min-width: 220px;
}

/* 提示 */
.alert {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
}

.alert-success {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.alert-error {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}

.alert-warn {
    background: #fffaeb;
    border-color: #fedf89;
    color: #b54708;
}

.alert-info {
    background: #eff8ff;
    border-color: #b2ddff;
    color: #175cd3;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    border-top: 1px solid var(--line-soft);
    flex-wrap: wrap;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: #ffffff;
    border: 1px solid #e0e6ee;
    border-radius: 6px;
    color: #475467;
    font-size: 12.5px;
}

.page-btn:hover {
    border-color: #b8c5d3;
    background: #f8fafc;
    color: #1d2939;
}

.page-btn.active {
    background: #1f5c96;
    border-color: #1f5c96;
    color: #ffffff;
}

.page-info {
    margin-left: auto;
    font-size: 12.5px;
    color: var(--muted);
}

/* 设置页 */
.settings-tabs {
    display: flex;
    gap: 2px;
    padding: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    overflow-x: auto;
}

.settings-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #475467;
    font-size: 13px;
    white-space: nowrap;
}

.settings-tab:hover {
    background: #f7f9fb;
    color: #1d2939;
}

.settings-tab.active {
    border-bottom-color: #1f5c96;
    background: transparent;
    color: #1f5c96;
    font-weight: 600;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.settings-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.settings-card:hover {
    border-color: #b8c9da;
    transform: none;
}

.settings-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef4fa;
    color: #1f5c96;
}

/* 地图 */
.map-layout {
    gap: 16px;
}

.map-side {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.map-side-head {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
    font-weight: 600;
}

.map-side-body {
    padding: 14px 16px;
}

.map-stage {
    border-radius: 8px;
    border: 1px solid var(--line);
}

.map-layer {
    border-bottom: 1px solid var(--line-soft);
}

/* 登录页 */
.login-body {
    background: #eef1f5;
}

.login-header {
    background: #0f2c46;
    border-bottom: 0;
}

.login-header-inner {
    max-width: 1120px;
    padding: 16px 22px;
    gap: 12px;
}

.login-header-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.login-header-title {
    font-size: 17px;
    letter-spacing: 0.4px;
}

.login-header-sub {
    font-size: 11.5px;
    color: #9db2c5;
}

.login-main {
    max-width: 1120px;
    padding: 56px 20px 24px;
}

.login-box {
    max-width: 400px;
    padding: 28px 30px 24px;
    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-top: 3px solid #1f5c96;
    border-radius: 10px;
    box-shadow: 0 10px 34px rgba(16, 24, 40, 0.09);
}

.login-box-head {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.login-box-head h2 {
    font-size: 19px;
    font-weight: 600;
}

.login-box-head span {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
}

.login-form .field {
    margin-bottom: 14px;
}

.login-form .input {
    min-height: 40px;
}

.login-form .btn {
    min-height: 42px;
    margin-top: 6px;
    font-size: 14.5px;
}

.login-box-foot {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    font-size: 12px;
    color: var(--muted);
}

.login-copyright {
    margin-top: 20px;
    font-size: 11.5px;
    color: #7b8794;
}

/* 无权限 / 提示页 */
.login-card {
    border: 1px solid #e1e7ef;
    border-top: 3px solid #1f5c96;
    border-radius: 10px;
    box-shadow: 0 10px 34px rgba(16, 24, 40, 0.09);
    padding: 28px 30px;
}

/* 公开端 */
.public-body {
    background: #f3f5f8;
}

.public-header {
    height: 62px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.public-header-inner {
    max-width: 1120px;
    height: 62px;
    padding: 0 22px;
}

.public-brand {
    gap: 10px;
}

.public-brand-title {
    font-size: 16px;
    font-weight: 600;
    color: #101828;
}

.public-brand-sub {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.4px;
}

.public-nav {
    gap: 4px;
}

.public-nav a {
    padding: 7px 12px;
    border-bottom: 0;
    border-radius: 6px;
    font-size: 13.5px;
    color: #475467;
}

.public-nav a:hover {
    background: #f2f5f8;
    color: #1d2939;
}

.public-nav a.active {
    background: #eef4fa;
    border-bottom: 0;
    color: #1f5c96;
    font-weight: 500;
}

.public-nav .public-login {
    margin-left: 8px;
    padding: 7px 12px;
    border: 1px solid #d5dde6;
    border-radius: 6px;
    color: #344054;
}

.public-nav .public-login:hover {
    background: #f8fafc;
    border-color: #b8c5d3;
    color: #1d2939;
}

.public-hero {
    background: #0f2c46;
}

.public-hero-inner {
    padding: 40px 22px;
}

.public-hero-main h1 {
    font-size: 27px;
    letter-spacing: 0.3px;
}

.public-hero-main p {
    font-size: 13.5px;
    line-height: 1.85;
    color: #b8cad9;
}

.public-contact {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.public-main-inner {
    max-width: 1120px;
    padding: 22px 22px 40px;
}

.public-quick {
    gap: 16px;
    margin-bottom: 18px;
}

.public-quick-card {
    padding: 18px;
    border-radius: 8px;
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.public-quick-card:hover {
    border-color: #b8c9da;
    background: #ffffff;
}

.public-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #eef4fa;
    color: #1f5c96;
}

.public-panel {
    border-radius: 8px;
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.public-panel-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
}

.public-panel-head h2 {
    font-size: 15px;
    font-weight: 600;
}

.public-news li {
    border-bottom: 1px solid var(--line-soft);
}

/* 响应式 */
@media (max-width: 1200px) {
    .stat-grid,
    .stat-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .main {
        margin-left: 0;
    }

    .content {
        padding: 18px 18px 30px;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 14px;
    }

    .topbar {
        padding: 0 12px;
    }

    .content {
        padding: 14px 12px 26px;
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .page-head h1 {
        font-size: 19px;
    }

    .stat-table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-cell {
        padding: 13px 12px;
        gap: 9px;
        border-right: 1px solid var(--line-soft);
    }

    .stat-cell:nth-child(5n) {
        border-right: 1px solid var(--line-soft);
    }

    .stat-cell:nth-child(2n) {
        border-right: 0;
    }

    .stat-cell-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .stat-cell-value {
        font-size: 20px;
    }

    .reminder-item {
        grid-template-columns: 1fr auto;
        gap: 2px 10px;
        padding: 10px 14px;
    }

    .reminder-type {
        grid-column: 1 / -1;
    }

    .reminder-date {
        text-align: left;
    }

    .reminder-days {
        text-align: right;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .filter-search,
    .filter-select,
    .filter-date {
        width: 100%;
    }

    .login-main {
        padding: 28px 14px 20px;
    }

    .login-box {
        padding: 22px 18px 18px;
    }

    .public-hero-inner {
        padding: 26px 16px;
    }

    .public-hero-main h1 {
        font-size: 22px;
    }

    .public-main-inner {
        padding: 16px 14px 30px;
    }

    .public-quick {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ================= 党务模块：党建红点缀 ================= */

:root {
    --party: #a61b1b;
    --party-deep: #851414;
    --party-soft: #fdf3f3;
}

/* 侧栏“党员管理”分组 */
.nav-group-party .nav-group-title {
    color: #eba7a7;
}

.nav-group-party .nav-group-title::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 7px;
    border-radius: 50%;
    background: #e08686;
    vertical-align: middle;
}

.nav-group-party .nav-item.active {
    background: #8c1c1c;
}

.nav-group-party .nav-item.active:hover {
    background: #992020;
}

/* 党务页面 */
.theme-party .topbar {
    border-bottom-color: #efe0e0;
}

.theme-party .page-head h1 {
    padding-left: 10px;
    border-left: 4px solid var(--party);
}

.theme-party .btn-primary {
    background: var(--party);
    border-color: var(--party);
}

.theme-party .btn-primary:hover {
    background: var(--party-deep);
    border-color: var(--party-deep);
}

.theme-party .stat-cell-icon,
.theme-party .stat-icon:not(.stat-icon-ok):not(.stat-icon-warn),
.theme-party .settings-icon {
    background: var(--party-soft);
    color: var(--party);
}

.theme-party .stat-value {
    color: #7d1616;
}

.theme-party .bar-fill-dark {
    background: var(--party);
}

.theme-party .page-btn.active {
    background: var(--party);
    border-color: var(--party);
}

.theme-party .settings-tab.active {
    border-bottom-color: var(--party);
    color: var(--party);
}

/* ================= 功能细化：检索 / 批量 / 流转 / 报表 ================= */

.topbar-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 18px;
    padding: 0 10px;
    height: 34px;
    width: 260px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--muted);
}

.topbar-search:focus-within {
    background: #ffffff;
    border-color: #9db8d2;
    box-shadow: 0 0 0 3px rgba(31, 92, 150, 0.1);
}

.topbar-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: var(--ink);
}

.topbar-search svg.icon {
    color: var(--muted);
}

.batch-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.batch-count {
    font-size: 13px;
    color: var(--ink-light);
}

.batch-count strong {
    color: var(--navy);
}

.batch-status {
    width: 150px;
    height: 32px;
    min-height: 32px;
}

.batch-tip {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
}

.col-check {
    width: 40px;
    text-align: center;
}

.col-check input {
    width: 15px;
    height: 15px;
    vertical-align: middle;
    accent-color: #1f5c96;
}

.filter-sort,
.filter-per {
    min-width: 132px;
}

.flow-card .card-head {
    background: #f8fafc;
}

.flow-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
}

.flow-label {
    font-size: 13px;
    color: var(--muted);
}

.flow-select {
    width: 190px;
    min-height: 34px;
    height: 34px;
}

.flow-tip {
    font-size: 12px;
    color: var(--muted);
}

.search-summary {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--muted);
}

.search-summary strong {
    color: var(--ink);
}

.search-list li + li {
    border-top: 1px solid var(--line-soft);
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--ink);
}

.search-item:hover {
    background: #f9fbfd;
    color: var(--ink);
}

.search-item-title {
    font-weight: 600;
    font-size: 14px;
}

.search-item-meta {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-item-no {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.empty-inline {
    padding: 22px 18px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.report-card {
    min-width: 0;
}

.report-card .card-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.report-card .bar-list {
    padding: 6px 18px 16px;
}

.report-list {
    margin: 0;
    padding: 6px 18px 14px;
}

.report-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    font-size: 13.5px;
    color: var(--ink-light);
    border-bottom: 1px dashed var(--line-soft);
}

.report-list li:last-child {
    border-bottom: 0;
}

.report-list strong {
    font-size: 15px;
    font-weight: 600;
    color: #17395c;
    font-variant-numeric: tabular-nums;
}

.report-list em,
.stat-unit {
    margin-left: 3px;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    color: var(--muted);
}

.report-sub {
    padding: 0 18px 12px;
}

.report-sub-title {
    margin: 4px 0 8px;
    font-size: 12.5px;
    color: var(--muted);
}

.report-sub .bar-list {
    padding: 0;
}

@media (max-width: 1024px) {
    .topbar-search {
        display: none;
    }
}

@media (max-width: 760px) {
    .report-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .batch-tip {
        display: none;
    }

    .batch-status {
        flex: 1;
        min-width: 0;
    }
}
