:root {
    --bg: #f5f7fb;
    --bg-soft: rgba(255, 255, 255, 0.92);
    --panel: rgba(255, 255, 255, 0.98);
    --panel-strong: rgba(255, 255, 255, 1);
    --line: rgba(216, 226, 240, 0.95);
    --text: #18263d;
    --muted: #7587a3;
    --accent: #165dff;
    --accent-2: #16c2a3;
    --shadow: 0 16px 40px rgba(26, 47, 86, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    height: 100%;
    font-family: var(--font);
    font-size: 15px;
    background:
        radial-gradient(circle at top left, rgba(22, 93, 255, 0.06), transparent 24%),
        radial-gradient(circle at bottom right, rgba(22, 194, 163, 0.05), transparent 18%),
        linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
    color: var(--text);
}

button, input, textarea {
    font: inherit;
}

.ambient {
    position: fixed;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
}

.ambient-a {
    top: -80px;
    left: -20px;
    width: 320px;
    height: 320px;
    background: rgba(22, 93, 255, 0.08);
}

.ambient-b {
    right: 0;
    bottom: 10%;
    width: 280px;
    height: 280px;
    background: rgba(22, 194, 163, 0.08);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.login-brand,
.login-card,
.sidebar,
.hero-card,
.content-card {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.login-brand {
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.badge,
.section-tag,
.topbar-eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--accent-2);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-brand h1 {
    font-size: 56px;
    line-height: 1.08;
    margin: 18px 0 12px;
}

.login-brand p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
    max-width: 640px;
}

.brand-panels {
    display: grid;
    gap: 16px;
}

.brand-panels article {
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #ffffff, #f5f8fd);
    border: 1px solid #e8edf5;
}

.brand-panels span,
.card-head,
.user-chip span,
.table-sub {
    color: var(--muted);
}

.brand-panels strong,
.login-card h2,
.topbar h1,
.section-head h3 {
    font-weight: 700;
}

.login-card {
    border-radius: var(--radius-xl);
    padding: 34px;
    align-self: center;
}

.card-head {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(22, 38, 61, 0.18);
}

.login-form,
.settings-form,
.modal-form {
    display: grid;
    gap: 18px;
}

.login-form label,
.settings-form label,
.modal-form label {
    display: grid;
    gap: 8px;
}

.login-form input,
.settings-form input,
.settings-form textarea,
.modal-form input {
    width: 100%;
    border: 1px solid #d9e2ef;
    background: #f9fbff;
    color: var(--text);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
}

.login-form button,
.primary-btn,
.danger-btn,
.ghost-btn,
.secondary-btn {
    border: none;
    border-radius: 14px;
    padding: 13px 18px;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.login-form button,
.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), #4a88ff);
    font-weight: 700;
}

.ghost-btn,
.secondary-btn {
    color: var(--text);
    background: #f5f7fb;
    border: 1px solid #e4ebf5;
}

.danger-btn {
    color: white;
    background: linear-gradient(135deg, #e85a70, #ff8ca1);
}

button:hover {
    transform: translateY(-1px);
}

.form-message {
    min-height: 20px;
    color: var(--accent-2);
    font-size: 14px;
}

.app-shell {
    min-height: 100vh;
    height: 100vh;
    display: block;
    padding: 0;
    overflow-x: auto;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.nav-tree {
    display: grid;
    gap: 4px;
    padding: 8px 0;
}

.nav-group {
    display: grid;
    gap: 0;
}

.nav-parent,
.nav-child {
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    color: #314564;
    border-radius: 0;
    padding: 11px 12px;
    cursor: pointer;
}

.nav-parent {
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    font-size: 15px;
}

.nav-child {
    color: #314564;
    padding: 11px 12px 11px 46px;
    font-size: 14px;
}

.nav-parent.active,
.nav-child.active {
    color: #165dff;
    border-color: transparent;
}

.nav-child.active {
    background: #f3f5f8;
}

.nav-parent-main {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 17px;
}

.nav-icon,
.nav-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon {
    width: 28px;
    height: 28px;
    color: #8d9bb2;
}

.nav-parent.active .nav-icon {
    color: #165dff;
}

.nav-icon svg,
.nav-caret svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-caret {
    color: #8d9bb2;
    transition: transform 0.18s ease;
}

.nav-group.expanded .nav-caret {
    transform: rotate(0deg);
    color: #6e7f9c;
}

.nav-group:not(.expanded) .nav-caret {
    transform: rotate(180deg);
}

.nav-children {
    display: grid;
    gap: 0;
    padding: 0 0 10px;
}

.nav-group:not(.expanded) .nav-children {
    display: none;
}

.workspace {
    display: grid;
    gap: 0;
    height: 100vh;
    grid-template-rows: 56px minmax(0, 1fr);
    overflow: hidden;
    overflow-x: auto;
    min-width: 0;
}

.app-topbar {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 20px;
    background: #ffffff;
    border-bottom: 1px solid #dfe7f2;
    position: sticky;
    top: 0;
    z-index: 40;
}

.app-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1c2c45;
    font-size: 17px;
    font-weight: 600;
}

/* ── 汉堡菜单按钮（默认隐藏，小屏才显示） ── */
.sidebar-toggle-btn {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 7px;
    border-radius: 8px;
    color: #4a5f7e;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: #eef2fa;
    color: #1e3252;
}

.sidebar-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

@media (max-width: 900px) {
    .sidebar-toggle-btn {
        display: inline-flex;
    }
}

.topbar-logo-mark {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-logo-mark svg {
    width: 28px;
    height: 28px;
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e4ebf5;
    background: #ffffff;
    color: #5e6f8d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tool-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #d9dee7;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.topbar {
    padding: 16px 22px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.topbar h1 {
    margin: 6px 0 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    padding: 10px 14px;
    border-radius: 16px;
    background: #f5f7fb;
    text-align: right;
}

.user-chip strong,
.user-chip span {
    display: block;
}

.page-grid {
    display: grid;
    gap: 22px;
}

.hero-card,
.content-card {
    border-radius: 28px;
    padding: 24px;
}

.content-card-plain {
    padding: 0 16px 28px 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.workspace-main {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 0;
    min-width: 680px;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.sidebar {
    border-right: 1px solid #dfe7f2;
    background: #ffffff;
    color: #22324d;
    padding: 0;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform .26s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ── 折叠模式（大屏，侧栏从 grid 中隐藏） ── */
.workspace.sidebar-collapsed .workspace-main {
    grid-template-columns: 1fr;
}

.workspace.sidebar-collapsed .sidebar {
    display: none;
}

/* ── 抽屉模式（小屏，侧栏浮动在内容之上） ── */
.workspace.drawer-mode .workspace-main {
    grid-template-columns: 1fr;
}

.workspace.drawer-mode .sidebar {
    position: fixed;
    left: 0;
    top: 56px;
    bottom: 0;
    width: 200px;
    height: auto;
    z-index: 200;
    transform: translateX(-100%);
    box-shadow: 4px 0 28px rgba(20, 40, 90, 0.16);
    border-right: none;
}

.workspace.drawer-mode.sidebar-open .sidebar {
    transform: translateX(0);
}

/* ── 侧栏遮罩层 ── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 50, 0.42);
    z-index: 199;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
    transition: opacity .25s;
}

.sidebar-overlay.visible {
    display: block;
}

#view-root {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    padding-left: 0;
}

.section-head-compact {
    margin-bottom: 12px;
}

.section-head-compact h3 {
    margin: 0;
    font-size: 20px;
}

.floating-action {
    position: sticky;
    bottom: 20px;
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
    pointer-events: none;
}

.floating-action .primary-btn {
    pointer-events: auto;
    box-shadow: 0 10px 24px rgba(22, 93, 255, 0.18);
}


.hero-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    background: linear-gradient(135deg, #ffffff, #f6f9ff);
}

.hero-card h2 {
    margin: 14px 0 10px;
    font-size: 34px;
    max-width: 700px;
}

.hero-card p {
    margin: 0;
    color: var(--muted);
    max-width: 720px;
    line-height: 1.7;
}

.hero-meta {
    display: grid;
    gap: 10px;
}

.hero-meta span {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f5f7fb;
    white-space: nowrap;
}

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

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.workbench-page {
    display: grid;
    gap: 12px;
    padding-top: 6px;
}

.list-page {
    display: grid;
    gap: 18px;
    padding-top: 2px;
}

.page-tabs-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 46px;
    padding: 8px 0 12px 14px;
    border-bottom: 1px solid #e6edf7;
    position: sticky;
    top: 0;
    z-index: 12;
    background: #f5f7fb;
}

.page-tab {
    border: none;
    background: transparent;
    color: #445978;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.page-tab.active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2f67ff;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
}

.page-tab.active span {
    opacity: 0.8;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7d8fae;
    font-size: 14px;
    display: none;
}

.page-breadcrumb em {
    font-style: normal;
    color: #b4c0d3;
}

.page-card {
    border: 1px solid #e8edf5;
    background: #ffffff;
    border-radius: 4px;
    padding: 18px 20px 10px;
}

.page-card-head h3 {
    margin: 0 0 18px;
    font-size: 18px;
    color: #1e2f4b;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2f8;
}

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

.filter-panel-single {
    grid-template-columns: 1fr auto;
}

.filter-grid-single {
    grid-template-columns: minmax(0, 520px);
}

.filter-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    gap: 12px;
}

.filter-item span {
    color: #334766;
    font-size: 14px;
}

.filter-input,
.filter-select {
    height: 40px;
    border: none;
    background: #f5f7fb;
    color: #7b8eac;
    border-radius: 2px;
    padding: 0 16px;
    font: inherit;
}

.filter-input::placeholder {
    color: #9aabc2;
}

.filter-select {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.filter-select i {
    font-style: normal;
    color: #6f84a4;
}

.filter-actions {
    display: grid;
    gap: 14px;
    align-content: start;
    padding-left: 18px;
    border-left: 1px solid #edf2f8;
}

.search-btn,
.reset-btn,
.batch-btn,
.list-add-btn {
    border: none;
    border-radius: 2px;
    font: inherit;
    cursor: pointer;
}

.search-btn {
    min-width: 102px;
    height: 40px;
    background: #2f67ff;
    color: #ffffff;
}

.reset-btn {
    min-width: 102px;
    height: 40px;
    background: #f5f7fb;
    color: #506582;
    border: 1px solid #e2e9f3;
}

.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
}

.list-toolbar-left,
.list-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-add-btn {
    height: 40px;
    padding: 0 18px;
}

.batch-btn {
    height: 40px;
    padding: 0 18px;
    background: #7ddc8b;
    color: #ffffff;
}

.icon-plain-btn {
    border: none;
    background: transparent;
    color: #667a97;
    font-size: 22px;
    cursor: pointer;
}

.table-panel {
    overflow-x: auto;
    position: relative;
    min-height: 240px;
}

.table-panel-category {
    min-height: 260px;
}

.account-table {
    width: 100%;
}

.account-table thead th {
    background: #f5f7fb;
    color: #1f2f49;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

.account-table th,
.account-table td {
    white-space: nowrap;
}

.cell-check {
    width: 36px;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(180deg, #d8dde6, #c6ccd7);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cell-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 30px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 14px;
}

.tag-light.success {
    background: #e8f9e8;
    color: #31b84a;
}

.tag-light.muted {
    background: #f0f3f7;
    color: #8b99af;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.success-link {
    color: #6fd35e;
}

.table-empty-shell {
    position: absolute;
    inset: 56px 0 0;
    display: grid;
    place-items: center;
    color: #94a5bc;
    font-size: 16px;
    background: #ffffff;
}

.category-table thead th,
.category-table tbody td {
    text-align: left;
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 10px;
}

.table-pagination-total {
    color: #1f2f49;
    font-size: 14px;
}

.table-pagination-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-arrow,
.pagination-page,
.pagination-size {
    height: 40px;
    min-width: 40px;
    border: 1px solid #e3ebf5;
    background: #ffffff;
    color: #6f83a2;
    border-radius: 4px;
    font: inherit;
}

.pagination-page.active {
    min-width: 42px;
    background: #eaf2ff;
    color: #2f67ff;
    border-color: #d7e5ff;
}

.pagination-size {
    min-width: 138px;
    padding: 0 14px;
}

.pagination-size-select {
    height: 40px;
    min-width: 138px;
    border: 1px solid #e3ebf5;
    background: #ffffff;
    color: #6f83a2;
    border-radius: 4px;
    padding: 0 14px;
    font: inherit;
    outline: none;
}

.pagination-dots {
    color: #7f91aa;
    padding: 0 4px;
}

.pagination-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7f91aa;
}

.pagination-jump input {
    width: 48px;
    height: 40px;
    border: 1px solid #e3ebf5;
    border-radius: 4px;
    background: #f5f7fb;
    text-align: center;
    color: #425675;
}

.income-page-card {
    padding-bottom: 18px;
}

.income-sync-card,
.income-trend-card,
.income-ranking-card {
    border-bottom: 1px solid #edf2f8;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.income-ranking-card {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.income-sync-head,
.income-ranking-head h3,
.income-trend-head h3 {
    margin: 0;
    font-size: 18px;
    color: #1e2f4b;
}

.income-sync-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.income-sync-btn {
    border: none;
    height: 40px;
    padding: 0 20px;
    border-radius: 2px;
    color: #ffffff;
    font: inherit;
    cursor: pointer;
}

.income-sync-btn.orange {
    background: #ff8a00;
}

.income-sync-btn.green {
    background: #7ddc8b;
}

.income-sync-note {
    color: #506582;
}

.income-trend-head,
.income-ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.income-trend-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.income-select-wide {
    min-width: 280px;
}

.income-select-short {
    min-width: 120px;
}

.income-refresh-btn {
    min-width: 96px;
}

.income-trend-empty {
    min-height: 340px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #9aa7bb;
    background: #ffffff;
}

.income-trend-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #f4f7fb;
    font-size: 30px;
    color: #a3afc1;
}

.income-trend-empty p {
    margin: 0;
    font-size: 16px;
}

.income-table-panel {
    min-height: 240px;
}

.danger-text-btn {
    color: #ff7a7a;
}

.income-rank-board {
    border: 1px solid #edf2f8;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.income-rank-head-row,
.income-rank-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 220px;
    align-items: center;
}

.income-rank-head-row {
    min-height: 52px;
    padding: 0 18px;
    background: #f5f7fb;
    color: #1f2f49;
    font-size: 15px;
}

.income-rank-body {
    max-height: 420px;
    overflow-y: auto;
}

.income-rank-row {
    min-height: 54px;
    padding: 0 18px;
    border-bottom: 1px solid #edf2f8;
    cursor: pointer;
    transition: background 0.18s ease;
}

.income-rank-row:hover {
    background: #fafcff;
}

.income-rank-row:last-child {
    border-bottom: none;
}

.income-rank-col {
    display: flex;
    align-items: center;
}

.income-rank-index {
    justify-content: center;
}

.income-rank-account {
    gap: 12px;
}

.income-rank-income {
    justify-content: flex-end;
    gap: 14px;
}

.income-rank-badge {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f2f5fa;
    color: #4f6585;
    font-size: 16px;
}

.income-rank-badge.top-1 {
    background: #fff8dc;
    color: #f4b400;
}

.income-rank-badge.top-2 {
    background: #fff3e8;
    color: #ff8a00;
}

.income-rank-badge.top-3 {
    background: #e9faf7;
    color: #12b3bf;
}

.income-rank-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #d8dde6, #c6ccd7);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.income-rank-name {
    color: #1f2f49;
    font-size: 16px;
}

.income-rank-value {
    color: #17243d;
    font-size: 16px;
}

.income-rank-delete {
    border: none;
    background: transparent;
    color: #ff7a7a;
    font: inherit;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.income-rank-row:hover .income-rank-delete {
    opacity: 1;
}

.income-rank-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #9aa7bb;
    padding: 24px;
}

.settlement-page-card {
    padding-bottom: 20px;
}

.settlement-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid #edf2f8;
    margin-bottom: 18px;
}

.settlement-summary-grid .wb-metric-card {
    min-height: 126px;
}

.settlement-data-card {
    padding-top: 4px;
}

.settlement-filter-panel {
    margin-bottom: 18px;
}

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

.settlement-export-btn {
    min-width: 102px;
    height: 40px;
    border-radius: 2px;
    color: #1bbd55;
    background: #ffffff;
    border: 1px solid #41c96d;
}

.settlement-table-head {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.settlement-table th,
.settlement-table td {
    vertical-align: middle;
}

.settlement-account-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settlement-account-cell div {
    display: grid;
    gap: 4px;
}

.settlement-account-cell strong {
    color: #1f2f49;
    font-size: 15px;
}

.settlement-account-cell span:last-child {
    color: #7f91aa;
    font-size: 13px;
}

.article-manage-page {
    padding-bottom: 20px;
}

.article-filter-panel {
    margin-bottom: 18px;
}

.article-filter-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.filter-native-select {
    height: 40px;
    border: none;
    background: #f5f7fb;
    color: #7b8eac;
    border-radius: 2px;
    padding: 0 40px 0 16px;
    font: inherit;
    outline: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #6f84a4 50%), linear-gradient(135deg, #6f84a4 50%, transparent 50%);
    background-position: calc(100% - 22px) 18px, calc(100% - 16px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.article-filter-actions {
    grid-auto-flow: column;
    align-content: center;
}

.article-mode-tabs {
    display: flex;
    gap: 28px;
    padding: 4px 0 0;
    border-bottom: 1px solid #edf2f8;
}

.article-mode-tab {
    border: none;
    background: transparent;
    font: inherit;
    color: #5c6f8b;
    padding: 0 0 16px;
    cursor: pointer;
    position: relative;
}

.article-mode-tab.active {
    color: #165dff;
}

.article-mode-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #165dff;
    border-radius: 999px;
}

.article-batch-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 20px 0 18px;
    border-bottom: 1px solid #edf2f8;
}

.article-batch-actions,
.article-batch-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-batch-btn {
    border: none;
    height: 40px;
    padding: 0 18px;
    border-radius: 2px;
    color: #ffffff;
    font: inherit;
    cursor: pointer;
}

.article-batch-btn.blue {
    background: #2f67ff;
}

.article-batch-btn.green {
    background: #17bf2a;
}

.article-batch-btn.orange {
    background: #ff8a00;
}

.article-batch-btn.red {
    background: #ff4d4f;
}

.article-task-btn {
    border-radius: 2px;
    height: 40px;
    padding: 0 18px;
}

.article-table-panel {
    min-height: 340px;
}

.article-table-list th,
.article-table-list td {
    vertical-align: middle;
}

.article-cover-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: #8d9ab0;
    overflow: hidden;
}

.article-cover-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-title-cell {
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workbench-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 74px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #165dff;
    color: #fff;
    font-size: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.workbench-panel {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 0;
    padding: 22px 24px 28px;
    box-shadow: 0 12px 30px rgba(17, 38, 74, 0.06);
}

.workbench-welcome {
    font-size: 22px;
    color: #12233d;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.workbench-welcome span {
    font-size: 20px;
    font-weight: 500;
}

.workbench-divider {
    height: 1px;
    background: #eef2f7;
    margin: 22px 0 20px;
}

.workbench-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    overflow: hidden;
}

.wb-metric-card {
    min-height: 148px;
    padding: 28px 30px;
    display: flex;
    gap: 18px;
    align-items: center;
    background: #fff;
    border-right: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.wb-metric-card:nth-child(2n) {
    border-right: none;
}

.wb-metric-card:nth-last-child(-n+2) {
    border-bottom: none;
}

.wb-metric-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    flex: 0 0 auto;
    box-shadow:
        inset 0 2px 10px rgba(255, 255, 255, 0.95),
        inset 0 -8px 18px rgba(212, 219, 230, 0.28),
        0 6px 18px rgba(28, 45, 80, 0.06);
    background: radial-gradient(circle at 30% 25%, #ffffff 0%, #f5f6f8 56%, #eceef2 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wb-metric-icon.blue {
    color: #6b84ff;
}

.wb-metric-icon.purple {
    color: #bf5cff;
}

.wb-metric-icon.orange {
    color: #ffab63;
}

.wb-metric-icon.cyan {
    color: #39aef7;
}

.wb-icon-tile {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 16px rgba(60, 90, 180, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.wb-icon-tile.blue {
    background: linear-gradient(180deg, #8aa5ff 0%, #6f86ff 100%);
}

.wb-icon-tile.purple {
    background: linear-gradient(180deg, #da83ff 0%, #b84fff 100%);
}

.wb-icon-tile.orange {
    background: linear-gradient(180deg, #ffc387 0%, #ff9d5a 100%);
}

.wb-icon-tile.cyan {
    background: linear-gradient(180deg, #75d0ff 0%, #2da9f8 100%);
}

.wb-icon-tile svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wb-metric-content {
    display: grid;
    gap: 10px;
}

.wb-metric-label {
    color: #465c80;
    font-size: 16px;
}

.wb-metric-value {
    color: #10233d;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.wb-metric-prefix,
.wb-metric-suffix {
    font-size: 14px;
    font-weight: 500;
    color: #465c80;
}

.wb-metric-trend {
    color: #8c9bb2;
    font-size: 14px;
}

.trend-shell {
    margin-top: 24px;
    border-top: 1px solid #eef2f7;
    padding-top: 24px;
    display: grid;
    gap: 18px;
}

.trend-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.trend-head h4 {
    margin: 0;
    font-size: 18px;
    color: #10233d;
    font-weight: 600;
}

.trend-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.trend-tabs {
    display: inline-flex;
    background: #f5f7fb;
    border-radius: 8px;
    padding: 3px;
}

.trend-tabs button,
.trend-select,
.trend-date {
    border: none;
    background: transparent;
    color: #465c80;
    cursor: pointer;
    font: inherit;
}

.trend-tabs button {
    padding: 8px 16px;
    border-radius: 6px;
}

.trend-tabs button.active {
    background: #fff;
    color: #165dff;
    box-shadow: 0 1px 2px rgba(16, 35, 61, 0.08);
}

.trend-select,
.trend-date {
    background: #f5f7fb;
    padding: 11px 16px;
    border-radius: 8px;
    min-width: 126px;
}

.trend-select-wrap {
    position: relative;
}

.trend-select {
    min-width: 124px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e4ebf5;
}

.trend-select svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}

.trend-select.open svg {
    transform: rotate(180deg);
}

.trend-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 124px;
    background: #ffffff;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(20, 35, 65, 0.12);
    overflow: hidden;
    z-index: 8;
}

.trend-select-option {
    width: 100%;
    border: none;
    background: #ffffff;
    color: #1f2f49;
    text-align: left;
    padding: 14px 16px;
    cursor: pointer;
    font: inherit;
}

.trend-select-option + .trend-select-option {
    border-top: 1px solid #edf2f8;
}

.trend-select-option:hover,
.trend-select-option.active {
    background: #f3f5f8;
}

.trend-date {
    min-width: 278px;
    text-align: left;
}

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

.trend-stat-card {
    border: 1px solid #e8edf5;
    border-radius: 14px;
    background: #fff;
    padding: 22px 24px;
    min-height: 122px;
}

.trend-stat-label {
    color: #465c80;
    font-size: 16px;
    margin-bottom: 18px;
}

.trend-stat-value {
    color: #10233d;
    font-size: 28px;
    font-weight: 700;
}

.chart-shell {
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid #edf2f8;
}

.chart-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(225, 232, 243, 0.9) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(225, 232, 243, 0.9) 1px, transparent 1px);
    background-size: 20% 100%, 100% 25%;
}

.chart-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.chart-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    color: #6f84a4;
    font-size: 20px;
    line-height: 1.8;
    z-index: 1;
}

.chart-empty span {
    display: block;
    font-size: 14px;
    color: #98a7bd;
}

.chart-line {
    fill: none;
    stroke: url(#workbenchLine);
    stroke-width: 4;
    stroke-linecap: round;
}

.chart-area {
    fill: url(#workbenchFill);
}

.chart-point {
    fill: #4b6bff;
}

.compact-grid {
    margin-bottom: 18px;
}

.stat-card,
.notice-card,
.table-shell,
.form-shell,
.empty-shell {
    border-radius: 20px;
    border: 1px solid #e8edf5;
    background: #ffffff;
}

.stat-card {
    padding: 20px;
}

.stat-card .value {
    font-size: 30px;
    font-weight: 800;
    margin: 10px 0 8px;
}

.stat-card .trend {
    color: var(--accent-2);
    font-size: 14px;
}

.split-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 18px;
    margin-top: 18px;
}

.table-shell,
.notice-card,
.form-shell,
.empty-shell {
    padding: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

th {
    color: #7f92b1;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

td {
    color: var(--text);
}

.status-pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(22, 194, 163, 0.12);
    color: #11967f;
}

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

.link-btn {
    border: none;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    padding: 0;
}

.notice-list {
    display: grid;
    gap: 12px;
}

.status-banner {
    margin-bottom: 18px;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(89, 208, 255, 0.18);
    background: linear-gradient(135deg, rgba(13, 42, 71, 0.88), rgba(10, 27, 44, 0.74));
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.status-banner h3 {
    margin: 8px 0 6px;
}

.status-banner p {
    margin: 0;
}

.status-banner-meta {
    display: grid;
    gap: 10px;
}

.status-banner-meta span {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #d6e5ff;
    font-size: 13px;
}

.toolbar-shell {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #e8edf5;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-fields {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-input,
.toolbar-select {
    min-width: 180px;
    border: 1px solid #d9e2ef;
    background: #f9fbff;
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
}

.toolbar-select option {
    color: #06111c;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
    gap: 18px;
}

.article-list {
    display: grid;
    gap: 14px;
}

.article-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #e8edf5;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.article-card.active,
.article-card:hover {
    border-color: rgba(22, 93, 255, 0.24);
    background: #f5f8ff;
    transform: translateY(-1px);
}

.article-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.article-card-top strong,
.article-card-top span {
    display: block;
}

.article-card-top span,
.article-card p,
.preview-summary,
.preview-meta-grid span {
    color: var(--muted);
}

.article-card p {
    margin: 14px 0;
    line-height: 1.7;
}

.article-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: #7f92b1;
    font-size: 13px;
}

.preview-shell {
    border-radius: 24px;
    border: 1px solid #e8edf5;
    background: #ffffff;
    overflow: hidden;
}

.preview-cover {
    min-height: 220px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.04);
}

.preview-cover-empty {
    display: grid;
    place-items: center;
    color: var(--muted);
}

.preview-body {
    padding: 22px;
    display: grid;
    gap: 18px;
}

.preview-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.preview-head h3 {
    margin: 8px 0 0;
}

.chip-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.soft-chip {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(89, 208, 255, 0.1);
    color: #bfefff;
    font-size: 13px;
}

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

.preview-meta-grid strong,
.preview-meta-grid span {
    display: block;
}

.preview-meta-grid strong {
    margin-top: 6px;
}

.preview-content {
    display: grid;
    gap: 14px;
    line-height: 1.82;
}

.preview-content p {
    margin: 0;
}

.inline-link {
    color: var(--accent);
    text-decoration: none;
}

.modal-panel-wide {
    width: min(960px, 100%);
}

.modal-form textarea {
    width: 100%;
    border: 1px solid #d9e2ef;
    background: #f9fbff;
    color: var(--text);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    resize: vertical;
}

.modal-grid-2,
.modal-grid-3 {
    display: grid;
    gap: 16px;
}

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

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

.notice-item {
    padding: 14px;
    border-radius: 14px;
    background: #f8fbff;
}

.notice-item strong,
.notice-item span {
    display: block;
}

.notice-item span {
    margin-top: 4px;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.24);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 50;
}

.modal.open {
    display: flex;
}

.modal-panel {
    width: min(560px, 100%);
    border-radius: 26px;
    padding: 24px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.modal-panel-auth {
    width: min(860px, 100%);
}

.modal-panel-import {
    width: min(920px, 100%);
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.article-import-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 58px;
    padding: 0 32px;
    border-bottom: 1px solid #e8eef7;
    background: #fff;
}

.article-import-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1e2f4b;
    font-weight: 600;
    letter-spacing: .01em;
}

.article-import-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #9aaac0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    transition: background .15s, color .15s;
}

.article-import-close:hover {
    background: #f0f4fc;
    color: #374a63;
}

.article-import-form {
    gap: 0;
    overflow-y: auto;
}

.article-import-form label,
.article-import-fieldset {
    padding: 28px 28px 0;
}

.article-import-form label > span,
.article-import-label {
    display: block;
    margin-bottom: 14px;
    color: #324763;
    font-size: 16px;
}

.article-import-select {
    width: 100%;
    height: 52px;
    border: none;
    background: #f5f7fb;
    color: #7b8eac;
    border-radius: 4px;
    padding: 0 46px 0 16px;
    font: inherit;
    appearance: none;
    outline: none;
    background-image: linear-gradient(45deg, transparent 50%, #6f84a4 50%), linear-gradient(135deg, #6f84a4 50%, transparent 50%);
    background-position: calc(100% - 24px) 24px, calc(100% - 18px) 24px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.article-import-upload-row,
.article-import-upload-stack {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.article-import-upload-stack {
    align-items: flex-start;
    flex-direction: column;
}

.article-import-upload-btn {
    border: none;
    min-width: 172px;
    height: 40px;
    padding: 0 18px;
    border-radius: 2px;
    background: #2f67ff;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.article-import-hint,
.article-import-file-summary {
    color: #8b97aa;
    font-size: 14px;
    line-height: 1.75;
}

.article-import-file-list {
    width: 100%;
    display: grid;
    gap: 10px;
}

.article-import-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 0 12px 0 14px;
    background: #f5f7fb;
    border-radius: 2px;
}

.article-import-file-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #24364f;
    font-size: 15px;
}

.article-import-file-icon {
    color: #2f67ff;
    font-size: 16px;
    flex: none;
}

.article-import-file-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-import-file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.article-import-file-action {
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef4ff;
    color: #6e84a5;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}

.article-import-file-action.preview {
    color: #7aa8ff;
}

.article-import-file-action.delete {
    background: transparent;
    color: #6f7f96;
    width: auto;
}

.modal-panel-draft-push {
    width: min(920px, 100%);
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(30, 60, 120, 0.13);
}

.article-draft-note {
    padding: 16px 18px;
    border-radius: 4px;
    background: #f5f7fb;
    color: #5f7390;
    line-height: 1.8;
}

.article-draft-push-form {
    gap: 0;
    overflow-y: auto;
    background: #f7f9fc;
}

.draft-push-top-panel {
    padding: 16px 20px 0;
    background: #f7f9fc;
}

/* ── 顶部配置行 ── */
.draft-push-row-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

.draft-push-row-horizontal.top {
    padding: 16px 18px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8eef7;
    gap: 18px;
    align-items: flex-end;
}

.draft-push-row-horizontal.mode {
    margin-top: 10px;
    padding: 13px 18px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8eef7;
    gap: 18px;
    align-items: center;
    flex-wrap: nowrap;
}

/* 选择模式行内标签强制不换行 */
.draft-push-row-horizontal.mode .draft-push-inline {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.draft-push-divider {
    margin: 12px 0 0;
    border-top: 1px solid #e8eef7;
}

/* ── 草稿配置条 ── */
.draft-push-config-strip {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 18px;
    margin-top: 10px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8eef7;
    min-height: 56px;
}

.draft-push-config-title {
    color: #8898b3;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-right: 20px;
    border-right: 1px solid #e8eef7;
    margin-right: 20px;
    height: 56px;
    display: flex;
    align-items: center;
}

.draft-push-config-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    flex: 1;
}

/* ── 通用 inline 元素 ── */
.draft-push-inline {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #24364f;
}

.draft-push-inline > span {
    color: #6b7d97;
    font-size: 13px;
    white-space: nowrap;
}

.draft-push-inline label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #374a63;
    font-size: 14px;
    cursor: pointer;
}

/* ── 字段（label 上方 + input 下方）── */
.draft-push-inline-field {
    display: grid;
    gap: 6px;
    flex: 1;
    min-width: 110px;
}

.draft-push-inline-field > span {
    font-size: 12px;
    color: #8898b3;
    font-weight: 500;
}

.draft-push-inline input[type="text"],
.draft-push-inline input[type="number"],
.draft-push-inline select {
    width: 100%;
    min-width: 84px;
    height: 38px;
    border: 1.5px solid #dde6f3;
    border-radius: 7px;
    background: #fff;
    color: #304663;
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.draft-push-inline input[type="text"]:focus,
.draft-push-inline input[type="number"]:focus,
.draft-push-inline select:focus {
    border-color: #2f67ff;
    box-shadow: 0 0 0 3px rgba(47,103,255,.1);
}


.draft-push-inline-radio {
    gap: 16px;
}

.draft-push-switch-inline {
    gap: 10px;
}

/* ── Toggle 开关 ── */
.draft-toggle {
    border: none;
    min-width: 52px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #d0daea;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    letter-spacing: .02em;
}

.draft-toggle.active {
    background: #2f67ff;
}

/* ── 预计生成 chip ── */
.draft-push-chip-row {
    padding: 10px 0 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.draft-push-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 6px;
    background: #eef4ff;
    color: #2f67ff;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #c8dafe;
}

/* ── 分类选择面板（选择分类模式） ── */
.draft-category-panel {
    margin: 12px 20px 0;
}

.draft-category-search-bar {
    margin-bottom: 0;
    border-radius: 10px 10px 0 0 !important;
    border-bottom: none !important;
    background: #f4f7fc !important;
}

.draft-category-total {
    padding: 10px 16px;
    font-size: 13px;
    color: #8898b3;
    background: #fff;
    border-left: 1px solid #e8eef7;
    border-right: 1px solid #e8eef7;
    border-bottom: 1px solid #f0f4fb;
    text-align: center;
}

.draft-category-list {
    border: 1px solid #e8eef7;
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
}

.draft-category-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding: 0 20px;
    border-bottom: 1px solid #f0f4fb;
    background: #fff;
    cursor: pointer;
    transition: background .14s;
}

.draft-category-row:hover {
    background: #f8fbff;
}

.draft-category-row:last-child {
    border-bottom: none;
}

.draft-category-row.active {
    background: #eef4ff;
}

.draft-category-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.draft-category-content {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.draft-category-content strong {
    color: #1e3252;
    font-size: 15px;
    font-weight: 600;
}

.draft-category-content span {
    color: #8898b3;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.draft-category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 24px;
    padding: 0 10px;
    border-radius: 6px;
    background: #e8f9eb;
    color: #38a856;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── 搜索面板 ── */
.draft-push-search-panel {
    margin: 12px 20px 0;
    padding: 12px 14px;
    border: 1px solid #e8eef7;
    border-radius: 10px;
    background: #fff;
}

.draft-push-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 7px;
    background: #f4f7fc;
    color: #9aaac0;
    border: 1.5px solid transparent;
    transition: border-color .18s;
}

.draft-push-search-bar:focus-within {
    border-color: #2f67ff;
    background: #fff;
}

.draft-push-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    color: #304663;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.draft-push-search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding-top: 12px;
    color: #8898b3;
    font-size: 13px;
}

.draft-push-count {
    color: #9aaac0;
    font-size: 13px;
}

/* ── 分页 ── */
.draft-push-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 20px 0;
    font-size: 13px;
    color: #8898b3;
}

.draft-pager-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.draft-page-btn {
    border: 1.5px solid transparent;
    min-width: 30px;
    height: 30px;
    border-radius: 7px;
    background: transparent;
    color: #4c617f;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}

.draft-page-btn:hover {
    background: #f0f4fc;
}

.draft-page-btn.active {
    background: #eef4ff;
    color: #2f67ff;
    border-color: #c8dafe;
    font-weight: 600;
}

.draft-pick-mode-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: center;
}

.draft-pick-mode-group label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #374a63;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

/* ── 账号列表 ── */
.draft-account-list {
    margin: 12px 20px 0;
    border: 1px solid #e8eef7;
    border-radius: 10px;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
}

.draft-account-row {
    display: grid;
    grid-template-columns: 28px 40px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 0 18px;
    border-bottom: 1px solid #f0f4fb;
    background: #fff;
    cursor: pointer;
    transition: background .14s;
}

.draft-account-row:hover {
    background: #f8fbff;
}

.draft-account-row:last-child {
    border-bottom: none;
}

.draft-account-row.active {
    background: #eef4ff;
}

.draft-account-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.draft-account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a9ff7 0%, #2f67ff 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.draft-account-content {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.draft-account-content strong {
    color: #1e3252;
    font-size: 15px;
    font-weight: 600;
}

.draft-account-content span {
    color: #8898b3;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.draft-account-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 24px;
    padding: 0 10px;
    border-radius: 6px;
    background: #e8f9eb;
    color: #38a856;
    font-size: 12px;
    font-weight: 500;
}

.draft-account-empty {
    margin: 0;
    min-height: 140px;
}

/* ── 底部操作栏 ── */
.article-import-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e8eef7;
    background: #fff;
    margin-top: 16px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.wechat-auth-body {
    min-height: 360px;
}

.wechat-ticket-section {
    margin: 12px 0 16px;
    padding: 14px 16px;
    background: #f0f6ff;
    border: 1px solid #c8dff8;
    border-radius: 10px;
}
.wechat-ticket-title {
    font-weight: 600;
    font-size: 13px;
    color: #1a4fa0;
    margin: 0 0 4px;
}
.wechat-ticket-desc {
    font-size: 12px;
    color: #5a7aaa;
    margin: 0 0 10px;
    line-height: 1.5;
}
.wechat-ticket-row {
    display: flex;
    gap: 8px;
}
.wechat-ticket-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #b8d0f0;
    border-radius: 7px;
    font-size: 13px;
    color: #1a2a3a;
    outline: none;
    min-width: 0;
}
.wechat-ticket-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}
.wechat-ticket-save-btn {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 13px;
}

.wechat-auth-loading,
.wechat-auth-error {
    min-height: 320px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff 0%, #f5f8fd 100%);
    border: 1px solid #e4ebf5;
    color: #6b7c93;
    font-size: 16px;
}

.wechat-auth-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.wechat-auth-visual {
    display: flex;
    justify-content: center;
}

.wechat-auth-qr-frame,
.wechat-auth-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid #e4ebf5;
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.16);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.wechat-auth-qr-image {
    display: block;
    width: 220px;
    height: 220px;
    object-fit: contain;
    background: #ffffff;
    padding: 12px;
    border-radius: 18px;
}

.wechat-auth-placeholder {
    padding: 28px;
    text-align: center;
    color: #8c9ab0;
    gap: 14px;
}

.wechat-auth-placeholder-mark {
    width: 86px;
    height: 86px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2b68ff, #5e94ff);
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

.wechat-auth-meta h3 {
    margin: 14px 0 10px;
    font-size: 28px;
    color: #12213a;
}

.wechat-auth-note {
    margin: 0 0 20px;
    line-height: 1.75;
    color: #6d7f96;
}

.wechat-auth-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.wechat-auth-badge.ready {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.wechat-auth-badge.pending {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.wechat-auth-steps {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.wechat-auth-steps div {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: #516276;
}

.wechat-auth-steps strong {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #edf3ff;
    color: #2563eb;
    font-size: 13px;
}

.wechat-auth-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wechat-auth-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    min-width: 240px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dfe8f5;
    box-shadow: var(--shadow);
    color: var(--text);
    opacity: 0;
    transform: translateY(14px);
    transition: all 0.22s ease;
    z-index: 60;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.profile-settings-page {
    display: grid;
    gap: 20px;
}

.profile-user-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 36px 24px;
}

.profile-user-avatar-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin-left: 24px;
}

.profile-user-avatar {
    width: 128px;
    height: 128px;
    border-radius: 999px;
    background: #c8ced8;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 46px;
    font-weight: 700;
}

.profile-avatar-camera {
    position: absolute;
    right: -2px;
    bottom: 8px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: #e8f0ff;
    color: #2b68ff;
    box-shadow: 0 10px 25px rgba(43, 104, 255, 0.16);
    cursor: pointer;
}

.profile-user-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 60px;
    color: #1d2b45;
    font-size: 17px;
}

.profile-user-grid span {
    color: #4f6078;
    margin-right: 6px;
}

.profile-security-card {
    padding: 24px 28px 32px;
}

.profile-settings-form {
    width: min(100%, 760px);
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

.profile-form-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.profile-form-row > label {
    text-align: right;
    color: #30425d;
    font-size: 15px;
}

.profile-form-row.required > label::before {
    content: '*';
    color: #ef4444;
    margin-right: 4px;
}

.profile-field input {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #dfe7f3;
    background: #f5f8fe;
    padding: 0 14px;
    font-size: 15px;
    color: #1d2b45;
}

.profile-password-field {
    position: relative;
}

.profile-password-field input {
    padding-right: 48px;
}

.password-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #7b8ca5;
    cursor: pointer;
}

.profile-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    padding-left: 138px;
}

/* ── 汉堡按钮仅小屏显示（已在前面通过 @media(max-width:900px) 定义） ── */
