@charset "UTF-8";
/* ============================================================
   珠声财务系统 · 极简日系 樱青风格
   和纸米白 #faf7f2 / 樱粉 #a87878 / 青磁绿 #4f6b58
   ============================================================ */

:root {
    --paper: #faf7f2;        /* 和纸米白 */
    --paper-deep: #f3ece4;   /* 深和纸 */
    --sakura: #a87878;       /* 樱粉 */
    --sakura-light: #c9a3a3;
    --sakura-bg: #f5ecec;
    --celadon: #4f6b58;      /* 青磁绿 */
    --celadon-light: #7a9383;
    --celadon-bg: #edf2ee;
    --ink: #3d3a36;          /* 墨 */
    --ink-soft: #6b655d;
    --gray: #8a857d;
    --line: #e8e0d4;         /* 细线 */
    --line-soft: #efe9df;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(61, 58, 54, .05);
    --shadow: 0 4px 20px rgba(61, 58, 54, .07);
    --shadow-lg: 0 12px 40px rgba(79, 107, 88, .12);
    --radius: 10px;
    --radius-sm: 6px;
    --sidebar-w: 218px;
    --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 14px; }

body {
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--celadon); text-decoration: none; }
a:hover { color: var(--sakura); }

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

/* ============ 通用按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink-soft);
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
    line-height: 1.4;
}
.btn:hover { border-color: var(--celadon); color: var(--celadon); }
.btn-primary { background: var(--celadon); border-color: var(--celadon); color: #fff; }
.btn-primary:hover { background: #42594a; border-color: #42594a; color: #fff; }
.btn-sakura { background: var(--sakura); border-color: var(--sakura); color: #fff; }
.btn-sakura:hover { background: #956868; border-color: #956868; color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--sakura); border-color: var(--sakura-light); }
.btn-danger:hover { background: var(--sakura-bg); border-color: var(--sakura); }
.btn-sm { padding: 5px 14px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; width: 100%; letter-spacing: 3px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============ 表单 ============ */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 7px;
    letter-spacing: 1px;
}
.form-label .req { color: var(--sakura); margin-left: 3px; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--celadon-light);
    box-shadow: 0 0 0 3px rgba(79, 107, 88, .1);
}
.form-control::placeholder { color: #bdb5a8; }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a857d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
}
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-hint { font-size: 12px; color: var(--gray); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--sakura); margin-top: 5px; }

/* ============ 认证页面 ============ */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(168, 120, 120, .06) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(79, 107, 88, .08) 0%, transparent 40%),
        var(--paper);
    padding: 30px 16px;
}
.auth-wrapper { position: relative; width: 100%; max-width: 420px; }
.auth-decor { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; }
.auth-decor-1 {
    width: 120px; height: 120px; top: -50px; right: -40px;
    background: radial-gradient(circle, rgba(168,120,120,.14), transparent 70%);
}
.auth-decor-2 {
    width: 160px; height: 160px; bottom: -60px; left: -50px;
    background: radial-gradient(circle, rgba(79,107,88,.12), transparent 70%);
}
.auth-card {
    position: relative;
    z-index: 1;
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 42px 40px 30px;
    box-shadow: var(--shadow-lg);
}
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}
.auth-brand:hover { text-decoration: none; }
.brand-mark {
    width: 40px; height: 40px;
    border-radius: 9px;
    background: var(--celadon);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif);
    font-size: 20px;
    letter-spacing: 0;
    flex-shrink: 0;
}
.brand-mark-lg { width: 44px; height: 44px; font-size: 22px; border-radius: 10px; }
.auth-brand-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 4px;
}
.auth-subtitle {
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 2px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-soft);
}
.auth-title {
    font-family: var(--font-serif);
    text-align: center;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 8px;
}
.auth-desc {
    text-align: center;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.8;
}
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 13px;
}
.auth-links a { color: var(--gray); }
.auth-links a:hover { color: var(--sakura); }
.auth-foot {
    text-align: center;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
    font-size: 12px;
    color: var(--gray);
}
.auth-foot a { color: var(--gray); margin: 0 6px; }
.auth-foot a:hover { color: var(--celadon); }
.footer-dot { color: #d4cabc; margin: 0 4px; }

/* 协议/隐私内容页 */
.doc-wrap { max-width: 760px; margin: 0 auto; }
.doc-card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 44px 48px;
    box-shadow: var(--shadow);
}
.doc-card h2 {
    font-family: var(--font-serif);
    text-align: center;
    font-size: 22px;
    letter-spacing: 4px;
    margin-bottom: 6px;
}
.doc-meta { text-align: center; color: var(--gray); font-size: 12px; margin-bottom: 30px; }
.doc-card h3 { font-size: 15px; margin: 26px 0 10px; color: var(--celadon); }
.doc-card p, .doc-card li { font-size: 13.5px; color: var(--ink-soft); line-height: 2; }
.doc-card ul { padding-left: 22px; margin: 8px 0; }
.doc-back { text-align: center; margin-top: 26px; }

/* ============ 后台布局 ============ */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: var(--white);
    border-right: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 22px 20px;
    border-bottom: 1px solid var(--line-soft);
}
.brand-text { line-height: 1.3; }
.brand-name {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--ink);
}
.brand-sub { font-size: 9px; letter-spacing: 1.5px; color: var(--gray); }
.sidebar-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: 13.5px;
    letter-spacing: 1px;
    margin-bottom: 2px;
    transition: all .18s ease;
}
.nav-item:hover { background: var(--paper); color: var(--celadon); }
.nav-item.active {
    background: var(--celadon-bg);
    color: var(--celadon);
    font-weight: 600;
}
.nav-item.active .nav-icon { color: var(--celadon); }
.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: var(--gray);
}
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--line-soft);
    font-size: 11px;
    color: var(--gray);
    letter-spacing: 1px;
}
.sidebar-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61, 58, 54, .35);
    z-index: 99;
}

.main-area {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    height: 62px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 16px;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--ink-soft);
    cursor: pointer;
}
.topbar-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 3px;
    flex: 1;
}
.topbar-right { position: relative; }
.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: background .2s;
}
.user-chip:hover { background: var(--paper); }
.user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--sakura);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-family: var(--font-serif);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-name { font-size: 13px; color: var(--ink); }
.user-role { font-size: 11px; color: var(--gray); }
.user-caret { font-size: 10px; color: var(--gray); }
.user-menu {
    display: none;
    position: absolute;
    top: 52px; right: 0;
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    min-width: 150px;
    padding: 6px;
    z-index: 60;
}
.user-menu.show { display: block; }
.user-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--ink-soft);
}
.user-menu a:hover { background: var(--paper); color: var(--celadon); }

.content {
    flex: 1;
    padding: 26px 28px 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}
.app-footer {
    padding: 18px 28px;
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    border-top: 1px solid var(--line-soft);
    letter-spacing: 1px;
}

/* ============ 闪存消息 ============ */
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 20px;
    border: 1px solid;
}
.flash button { background: none; border: none; font-size: 18px; cursor: pointer; color: inherit; opacity: .6; }
.flash-success { background: var(--celadon-bg); border-color: #cddcd2; color: #3c5445; }
.flash-error { background: var(--sakura-bg); border-color: #e3cfcf; color: #8a5c5c; }
.flash-info { background: #f6f1e8; border-color: #e5dac8; color: #7d6d52; }

/* ============ 卡片 ============ */
.card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}
.card-header {
    padding: 17px 22px;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.card-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.card-title::before {
    content: '';
    width: 3px; height: 14px;
    background: var(--sakura);
    border-radius: 2px;
}
.card-body { padding: 22px; }
.card-body.flush { padding: 0; }

/* 统计卡片 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    right: -20px; top: -20px;
    width: 80px; height: 80px;
    border-radius: 50%;
    opacity: .07;
}
.stat-card.tone-green::after { background: var(--celadon); }
.stat-card.tone-sakura::after { background: var(--sakura); }
.stat-card.tone-ink::after { background: var(--ink); }
.stat-card.tone-gold::after { background: #b08d57; }
.stat-label {
    font-size: 12.5px;
    color: var(--gray);
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.stat-value {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}
.stat-value.tone-green { color: var(--celadon); }
.stat-value.tone-sakura { color: var(--sakura); }
.stat-unit { font-size: 13px; color: var(--gray); font-family: var(--font-sans); font-weight: 400; margin-left: 4px; }
.stat-foot { font-size: 12px; color: var(--gray); margin-top: 8px; }

/* ============ 筛选栏 ============ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.filter-bar .form-group { margin-bottom: 0; }
.filter-bar .form-group.w-auto { min-width: 130px; }
.filter-bar .filter-actions { display: flex; gap: 8px; margin-left: auto; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.data-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--paper);
    color: var(--gray);
    font-weight: 500;
    font-size: 12.5px;
    letter-spacing: 1px;
    white-space: nowrap;
    border-bottom: 1px solid var(--line-soft);
}
.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-soft);
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fdfaf5; }
.data-table .num { font-family: "SF Mono", Consolas, monospace; text-align: right; white-space: nowrap; }
.data-table .center { text-align: center; }
.data-table .strong { color: var(--ink); font-weight: 500; }
.amount-income { color: var(--celadon); font-weight: 600; }
.amount-expense { color: var(--sakura); font-weight: 600; }
.table-empty {
    text-align: center;
    padding: 50px 20px !important;
    color: #b8b0a3;
    font-size: 13px;
}
.table-empty .empty-icon { display: block; font-size: 34px; margin-bottom: 10px; opacity: .5; }

/* 徽章 */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    line-height: 1.7;
    white-space: nowrap;
}
.badge-green { background: var(--celadon-bg); color: var(--celadon); }
.badge-sakura { background: var(--sakura-bg); color: var(--sakura); }
.badge-gray { background: #f0ece5; color: var(--gray); }
.badge-gold { background: #f7f0e3; color: #96753f; }
.badge-blue { background: #eaf0f4; color: #54708a; }

/* 操作链接 */
.row-actions { display: flex; gap: 12px; white-space: nowrap; }
.row-actions a { font-size: 13px; color: var(--celadon); }
.row-actions a.danger { color: var(--sakura); }
.row-actions a.disabled { color: #c6bfb2; cursor: not-allowed; pointer-events: none; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px;
}
.page-item {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink-soft);
    font-size: 13px;
}
.page-item:hover { border-color: var(--celadon); color: var(--celadon); }
.page-item.active { background: var(--celadon); border-color: var(--celadon); color: #fff; }
.page-item.disabled { opacity: .4; pointer-events: none; }
.page-ellipsis { color: var(--gray); padding: 0 4px; line-height: 34px; }

/* ============ 模态框 ============ */
.modal-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61, 58, 54, .4);
    z-index: 200;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 16px;
    overflow-y: auto;
}
.modal-mask.show { display: flex; }
.modal {
    background: var(--white);
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    box-shadow: var(--shadow-lg);
    animation: modalIn .25s ease;
}
.modal.modal-lg { max-width: 720px; }
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title {
    font-family: var(--font-serif);
    font-size: 16px;
    letter-spacing: 2px;
}
.modal-close {
    background: none; border: none; font-size: 22px;
    color: var(--gray); cursor: pointer; line-height: 1;
}
.modal-body { padding: 24px; max-height: 65vh; overflow-y: auto; }
.modal-footer {
    padding: 15px 24px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============ 仪表盘图表 ============ */
.dash-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}
.chart-box { padding: 8px 4px; }
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 220px;
    padding: 10px 6px 0;
}
.chart-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
    min-width: 0;
}
.chart-bar-pair {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 100%;
    justify-content: center;
    height: 180px;
}
.chart-bar {
    width: 40%;
    max-width: 16px;
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: height .6s ease;
    position: relative;
}
.chart-bar.income { background: linear-gradient(180deg, var(--celadon-light), var(--celadon)); }
.chart-bar.expense { background: linear-gradient(180deg, var(--sakura-light), var(--sakura)); }
.chart-bar:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 5;
}
.chart-x-label { font-size: 11px; color: var(--gray); }
.chart-legend {
    display: flex;
    gap: 18px;
    justify-content: center;
    padding: 10px 0 2px;
    font-size: 12px;
    color: var(--gray);
}
.chart-legend .dot {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 2px;
    margin-right: 5px;
    vertical-align: middle;
}
.dot-green { background: var(--celadon); }
.dot-sakura { background: var(--sakura); }

/* 排行列表 */
.rank-list { list-style: none; }
.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 2px;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 13px;
}
.rank-item:last-child { border-bottom: none; }
.rank-no {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--paper-deep);
    color: var(--gray);
    font-size: 11px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rank-item:nth-child(1) .rank-no { background: var(--sakura); color: #fff; }
.rank-item:nth-child(2) .rank-no { background: var(--sakura-light); color: #fff; }
.rank-item:nth-child(3) .rank-no { background: var(--celadon-light); color: #fff; }
.rank-name { flex: 1; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-amount { font-family: "SF Mono", Consolas, monospace; font-weight: 600; }

/* 最近流水 */
.recent-list .recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 2px;
    border-bottom: 1px dashed var(--line-soft);
}
.recent-item:last-child { border-bottom: none; }
.recent-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.recent-icon.income { background: var(--celadon-bg); color: var(--celadon); }
.recent-icon.expense { background: var(--sakura-bg); color: var(--sakura); }
.recent-info { flex: 1; min-width: 0; }
.recent-title { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta { font-size: 12px; color: var(--gray); margin-top: 2px; }
.recent-amount { font-family: "SF Mono", Consolas, monospace; font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ============ 预算进度 ============ */
.budget-item { margin-bottom: 18px; }
.budget-item:last-child { margin-bottom: 0; }
.budget-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 7px;
}
.budget-name { color: var(--ink-soft); }
.budget-num { font-family: "SF Mono", Consolas, monospace; color: var(--gray); font-size: 12.5px; }
.progress-track {
    height: 7px;
    background: var(--paper-deep);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    border-radius: 4px;
    background: var(--celadon);
    transition: width .5s ease;
}
.progress-bar.warn { background: #c09a4e; }
.progress-bar.over { background: var(--sakura); }

/* ============ 报表 ============ */
.report-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}
.report-table tfoot td {
    background: var(--paper);
    font-weight: 600;
    color: var(--ink);
    border-top: 2px solid var(--line);
}

/* 详情描述列表 */
.desc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
.desc-item {
    display: flex;
    padding: 13px 0;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 13.5px;
}
.desc-label {
    width: 110px;
    color: var(--gray);
    flex-shrink: 0;
}
.desc-value { color: var(--ink); flex: 1; word-break: break-all; }

/* 标签页 */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 22px;
}
.tab-item {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    letter-spacing: 1px;
}
.tab-item:hover { color: var(--celadon); }
.tab-item.active { color: var(--celadon); border-bottom-color: var(--celadon); font-weight: 600; }

/* 用户头像（大） */
.avatar-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--sakura);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 26px;
}
.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.profile-head .profile-name { font-family: var(--font-serif); font-size: 20px; }
.profile-head .profile-role { color: var(--gray); font-size: 13px; margin-top: 4px; }

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 14px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 14px; }
.muted { color: var(--gray); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
    .report-summary { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .sidebar.open { transform: translateX(0); }
    .sidebar.open ~ .sidebar-mask { display: block; }
    .main-area { margin-left: 0; }
    .menu-toggle { display: block; }
    .content { padding: 18px 14px 30px; }
    .topbar { padding: 0 16px; }
    .user-meta { display: none; }
    .stat-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .auth-card { padding: 34px 24px 26px; }
    .doc-card { padding: 28px 22px; }
    .desc-grid { grid-template-columns: 1fr; }
    .topbar-title { font-size: 16px; letter-spacing: 1px; }
}

/* ============ 业务模块补充组件 ============ */

/* 表单双列栅格 */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.form-grid .form-group { margin-bottom: 16px; }
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* 表单操作区 */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    flex-wrap: wrap;
}
.app-form .form-group:last-of-type { margin-bottom: 0; }

/* 只读静态文本 */
.form-control-static {
    padding: 10px 14px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    min-height: 42px;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.5;
    display: flex;
    align-items: center;
}

/* 单选组 */
.radio-group { display: flex; gap: 22px; padding: 8px 0; flex-wrap: wrap; }
.radio-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--ink-soft);
    cursor: pointer;
}
.radio-item input { accent-color: var(--celadon); width: 15px; height: 15px; cursor: pointer; }

/* 详情元信息 */
.detail-meta { display: flex; flex-direction: column; gap: 10px; }
.detail-meta-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 13px;
    padding: 9px 14px;
    background: var(--paper);
    border-radius: var(--radius-sm);
}
.detail-meta-item > span:first-child { letter-spacing: 1px; flex-shrink: 0; }

/* 徽章：青磁绿 */
.badge-celadon { background: var(--celadon-bg); color: var(--celadon); }

/* 按钮：青磁浅底 */
.btn-celadon { background: var(--celadon-bg); border-color: #cddcd2; color: var(--celadon); }
.btn-celadon:hover { background: var(--celadon); border-color: var(--celadon); color: #fff; }

/* 金色提示条 */
.flash-gold { background: #f7f0e3; border-color: #e8d9bc; color: #8a6d3a; }

/* 科目分组 */
.account-group { margin-bottom: 28px; }
.account-group:last-child { margin-bottom: 0; }
.account-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-soft);
}

/* 预算年度汇总 */
.budget-year-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--line);
}
.budget-year-item {
    text-align: center;
    padding: 14px 10px;
    background: var(--paper);
    border-radius: var(--radius-sm);
}
@media (max-width: 768px) {
    .budget-year-summary { grid-template-columns: 1fr; }
    .form-actions .btn { flex: 1; }
}
