/**
 * ================================================
 * 法律提示：本程序/代码仅限合法用途使用，您可以修改自用，请保留版权
 * ================================================
 * 使用限制：禁止用于非法用途，作者不承担任何使用责任
 * ================================================
 * Copy right 2026 网博士网络工作室， 保留所有权利。
 * ================================================
 * 官方网址: www.网博士.com   联系：QQ: 570830288
 * ================================================
 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #ffffff;
    color: #1f2937;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.pc-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 28px 0;
}

/* 顶部导航 - 玻璃渐变 */
.pc-topbar {
    position: sticky;
    top: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 28px;
    min-height: 72px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(244, 247, 255, 0.46) 0%, rgba(241, 246, 255, 0.42) 50%, rgba(240, 250, 250, 0.38) 100%);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    border: 1px solid rgba(180, 195, 220, 0.28);
    border-top: none;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 14px 38px rgba(80, 100, 150, 0.06), 0 4px 14px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.pc-topbar:hover {
    box-shadow: 0 18px 44px rgba(80, 100, 150, 0.10), 0 8px 18px rgba(0, 0, 0, 0.05);
}

.pc-topbar::before {
    content: '';
    position: absolute;
    top: -22px;
    right: 4px;
    width: 116px;
    height: 116px;
    background: radial-gradient(circle at 35% 35%, rgba(99, 102, 241, 0.16) 0%, rgba(99, 102, 241, 0.10) 45%, rgba(99, 102, 241, 0.04) 72%, rgba(99, 102, 241, 0) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.pc-topbar::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 48px;
    width: 78px;
    height: 78px;
    background: radial-gradient(circle at 40% 40%, rgba(15, 129, 131, 0.12) 0%, rgba(15, 129, 131, 0.07) 50%, rgba(15, 129, 131, 0) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.pc-topbar-patterns {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.pc-topbar-patterns::before {
    content: '';
    position: absolute;
    right: 132px;
    top: 10px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(168, 85, 247, 0.12) 0%, rgba(168, 85, 247, 0.06) 58%, rgba(168, 85, 247, 0) 100%);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.08);
}

.pc-page-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.pc-page-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.pc-topbar-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-topbar-content > div:last-child {
    display: flex;
    flex-direction: column;
}

.pc-topbar-brand-icon {
    flex-shrink: 0;
}

a.pc-topbar-brand-icon,
.pc-topbar-brand-link {
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

a.pc-topbar-brand-icon:hover,
.pc-topbar-brand-link:hover {
    transform: translateY(-1px);
    color: #d99e05 !important;
    border-color: rgba(241, 187, 10, 0.55) !important;
    box-shadow: 0 8px 20px rgba(241, 187, 10, 0.22), 0 12px 26px rgba(148, 163, 184, 0.26), inset 0 1px 0 rgba(255,255,255,0.95) !important;
}

a.pc-topbar-brand-icon:active,
.pc-topbar-brand-link:active {
    transform: translateY(0);
}

.pc-topbar-content::before {
    display: none;
}

.pc-topbar-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pc-top-link, .pc-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(148,163,184,0.18);
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.22s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
}

.pc-top-link:hover, .pc-user-chip:hover {
    background: rgba(255,255,255,0.96);
    color: #0f172a;
    border-color: rgba(99,102,241,0.28);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(86, 113, 224, 0.18);
}

.pc-top-link i, .pc-user-chip i {
    color: #6366f1;
}

.pc-top-link.danger {
    background: rgba(254,242,242,0.88);
    color: #dc2626;
    border-color: rgba(248,113,113,0.16);
}

.pc-top-link.danger i {
    color: #dc2626;
}

.pc-top-link.danger:hover {
    background: #fff1f2;
    border-color: rgba(248,113,113,0.26);
}

.pc-top-link-logout {
    gap: 10px;
    padding: 8px 12px 8px 10px;
    background: rgba(255,255,255,0.72);
    border-color: rgba(148,163,184,0.16);
    color: #334155;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12), inset 0 1px 0 rgba(255,255,255,0.78);
}

.pc-top-link-logout:hover {
    background: rgba(255,255,255,0.94);
    color: #0f172a;
    border-color: rgba(59,130,246,0.22);
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.16), inset 0 1px 0 rgba(255,255,255,0.88);
}

.pc-top-link-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(96, 165, 250, 0.26);
    color: #2563eb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
    flex-shrink: 0;
}

.pc-top-link-logout i {
    color: inherit;
}

.pc-top-link-logout span:last-child {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.pc-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #0f8183 100%);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.28);
}

/* 布局 */
.pc-shell {
    min-height: calc(100vh - 90px);
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 20px;
    align-items: start;
}

/* 侧边栏 */
.pc-sidebar {
    position: sticky;
    top: 90px;
    height: calc(100vh - 108px);
    background: linear-gradient(180deg, rgba(244, 246, 255, 0.46) 0%, rgba(248, 247, 255, 0.42) 100%);
    border: 1px solid rgba(180, 195, 220, 0.28);
    border-radius: 14px;
    padding: 24px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(80, 100, 150, 0.06), 0 6px 20px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255,255,255,0.72);
    transition: box-shadow 0.2s ease;
}

.pc-sidebar:hover {
    box-shadow: 0 20px 46px rgba(80, 100, 150, 0.10), 0 10px 22px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255,255,255,0.72);
}

.pc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(255, 250, 235, 0.92) 0%, rgba(255, 255, 255, 0.88) 100%);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 20px rgba(212, 175, 55, 0.08);
}

.pc-brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 20px;
    background: linear-gradient(135deg, #fff8dc 0%, #fef3c7 100%);
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.16), inset 0 1px 0 rgba(255,255,255,0.85);
}

.pc-brand-divider {
    width: 4px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #6366f1 0%, #0f8183 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.24);
    flex-shrink: 0;
}

.pc-brand-title { font-size: 21px; font-weight: 700; color: #1f2937; }
.pc-brand-subtitle { font-size: 11px; color: #94a3b8; margin-top: 2px; }

.pc-menu-group + .pc-menu-group { margin-top: 20px; }
.pc-menu-title {
    padding: 0 12px 8px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pc-menu-list { display: flex; flex-direction: column; gap: 4px; }
.pc-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.pc-menu-item:hover {
    background: rgba(99, 102, 241, 0.16);
    color: #3557c8;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.12);
}
.pc-menu-item.active {
    background: linear-gradient(135deg, rgba(99,102,241,0.24) 0%, rgba(15,129,131,0.16) 100%);
    color: #3348b3;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 10px 22px rgba(99, 102, 241, 0.18);
}
.pc-menu-item i { width: 18px; text-align: center; font-size: 16px; }
.pc-sidebar-footer {
    margin-top: auto;
    padding: 20px 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.pc-footer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #94a3b8;
    font-size: 11px;
    text-align: center;
}

/* 主内容区 */
.pc-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(245, 248, 255, 0.46) 0%, rgba(248, 251, 255, 0.42) 52%, rgba(243, 251, 250, 0.38) 100%);
    border: 1px solid rgba(180, 195, 220, 0.28);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(80, 100, 150, 0.06), 0 8px 22px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255,255,255,0.70);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.pc-main:hover {
    box-shadow: 0 22px 50px rgba(80, 100, 150, 0.10), 0 12px 24px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255,255,255,0.70);
}

.pc-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(80, 100, 150, 0.02), transparent 24%),
        radial-gradient(circle at left 20%, rgba(0, 0, 0, 0.01), transparent 22%);
    pointer-events: none;
}

.pc-content {
    position: relative;
    z-index: 1;
    padding: 24px 22px 26px;
}

#pcModalContainer {
    position: fixed;
    inset: 0;
    z-index: 13000;
    pointer-events: none;
}

#pcModalContainer > * {
    pointer-events: auto;
}

/* 网格布局 */
.pc-grid { display: grid; gap: 24px; }
.pc-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 卡片 */
.pc-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.pc-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}
.pc-card-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.pc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.pc-section-head h2, .pc-section-head h3 { margin: 0; font-size: 17px; font-weight: 600; color: #1f2937; }
.pc-muted { color: #94a3b8; font-size: 13px; }

/* 统计卡片 */
.pc-stat-card {
    color: #fff;
    border-radius: 16px;
    padding: 24px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.pc-stat-card:hover { transform: translateY(-2px); }
.pc-stat-card::before {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.pc-stat-card .label { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 500; }
.pc-stat-card .value { margin-top: 8px; font-size: 28px; font-weight: 700; }
.pc-stat-card .desc { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.8); }

.pc-gradient-blue { background: linear-gradient(135deg, #60a5fa 0%, #6366f1 100%); }
.pc-gradient-green { background: linear-gradient(135deg, #34d399 0%, #059669 100%); }
.pc-gradient-orange { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); }
.pc-gradient-purple { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); }
.pc-gradient-red { background: linear-gradient(135deg, #f87171 0%, #dc2626 100%); }

/* 表格 */
.pc-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(0, 0, 0, 0.06); }
.pc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.pc-table th, .pc-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}
.pc-table th { 
    color: #64748b; 
    font-weight: 600; 
    background: #f8fafc; 
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pc-table td { border-top: 1px solid rgba(0, 0, 0, 0.04); }
.pc-table tr:hover td { background: #f8fafc; }
.pc-amount.income { color: #059669; font-weight: 600; }
.pc-amount.expense { color: #dc2626; font-weight: 600; }

/* 标签 */
.pc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
}

/* 图标徽章 */
.pc-book-badge, .pc-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

/* 工具栏 */
.pc-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* 表单 */
.pc-input, .pc-select, .pc-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    color: #1f2937;
    font-size: 14px;
    transition: all 0.2s ease;
}
.pc-input:hover, .pc-select:hover, .pc-textarea:hover { border-color: #cbd5e1; }
.pc-input:focus, .pc-select:focus, .pc-textarea:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.pc-textarea { min-height: 100px; resize: vertical; }
.pc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pc-form-grid .full { grid-column: 1 / -1; }
.pc-label { display: block; font-size: 13px; color: #64748b; margin-bottom: 8px; font-weight: 500; }

/* 按钮 */
.pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.pc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.pc-btn.secondary {
    background: #e2e8f0;
    color: #334155;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}
.pc-btn.secondary:hover {
    background: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
a.pc-btn.secondary:hover {
    background: #03b752 !important;
    color: #fff !important;
    border-color: transparent !important;
}
.pc-btn.danger {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}
.pc-btn.danger:hover { box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35); }
.pc-btn.success {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}
.pc-btn.success:hover { box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35); }
.pc-btn.warning {
    background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}
.pc-btn.warning:hover { box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35); }
.pc-btn.primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.pc-btn.primary:hover { box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35); }

/* 上传按钮（美化原生 file input） */
.pc-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.pc-upload-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}
.pc-upload-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1.5px dashed #c4b5fd;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.pc-upload-trigger:hover {
    background: #ede9fe;
    border-color: #8b5cf6;
    color: #5b21b6;
}
.pc-upload-trigger:active {
    transform: translateY(0);
    background: #ddd6fe;
}
.pc-upload-trigger i {
    font-size: 15px;
    color: #6366f1;
}
.pc-upload-name {
    color: #9ca3af;
    font-size: 13px;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.pc-upload-name.has-file {
    color: #374151;
}

/* Toast 弹出提示 - 右上角 */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 11000;
    animation: toastSlideIn 0.3s ease;
}
.toast-content {
    background: white;
    border-radius: 12px;
    padding: 14px 20px;
    min-width: 240px;
    max-width: 320px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid;
}
.toast-success { border-left-color: #28a745; background: linear-gradient(135deg, #fff, #f0fff4); }
.toast-error { border-left-color: #dc3545; background: linear-gradient(135deg, #fff, #fff5f5); }
.toast-warning { border-left-color: #ffc107; background: linear-gradient(135deg, #fff, #fffbf0); }
.toast-info { border-left-color: #17a2b8; background: linear-gradient(135deg, #fff, #f0f9ff); }
.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}
.toast-success .toast-icon { background: #28a745; color: #fff; }
.toast-error .toast-icon { background: #dc3545; color: #fff; }
.toast-warning .toast-icon { background: #ffc107; color: #333; }
.toast-info .toast-icon { background: #17a2b8; color: #fff; }
.toast-message { font-size: 14px; color: #333; flex: 1; line-height: 1.4; }
.toast-close { cursor: pointer; color: #999; font-size: 16px; padding: 4px; }
.toast-close:hover { color: #666; }
@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
/* 确认弹窗 */
.toast-modal { position: fixed; inset: 0; z-index: 20010; display: flex; align-items: center; justify-content: center; }
.toast-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.toast-modal-content {
    position: relative; background: #fff; border-radius: 20px; padding: 32px 28px 24px;
    width: 90%; max-width: 360px; text-align: center; animation: confirmPop 0.25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
@keyframes confirmPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.toast-modal-icon { font-size: 48px; color: #f59e0b; margin-bottom: 16px; }
.toast-modal-title { font-size: 18px; font-weight: 700; color: #1f2937; margin-bottom: 10px; }
.toast-modal-text { font-size: 14px; color: #6b7280; line-height: 1.5; margin-bottom: 24px; }
.toast-modal-actions { display: flex; gap: 12px; }
.toast-modal-cancel, .toast-modal-confirm {
    flex: 1; padding: 12px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.toast-modal-cancel { background: #f3f4f6; color: #4b5563; }
.toast-modal-cancel:hover { background: #e5e7eb; }
.toast-modal-confirm { background: linear-gradient(135deg, #4A90E2, #667eea); color: #fff; }
.toast-modal-confirm:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(74,144,226,0.4); }

/* 旧提示框样式（兼容） */
.pc-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}
.pc-alert i { font-size: 18px; }
.pc-alert.info { background: #eff6ff; color: #1d4ed8; border-left: 4px solid #3b82f6; }
.pc-alert.success { background: #ecfdf5; color: #15803d; border-left: 4px solid #22c55e; }
.pc-alert.warning { background: #fffbeb; color: #b45309; border-left: 4px solid #f59e0b; }
.pc-alert.error { background: #fef2f2; color: #b91c1c; border-left: 4px solid #ef4444; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 列表 */
.pc-list { display: flex; flex-direction: column; gap: 12px; }
.pc-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}
.pc-list-item:hover {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}
.pc-list-main { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.pc-list-main .pc-book-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}
.pc-list-meta { min-width: 0; line-height: 1.3; }
.pc-list-title { font-size: 15px; font-weight: 600; color: #1f2937; line-height: 1.3; }
.pc-list-desc { font-size: 12px; color: #94a3b8; margin-top: 2px; line-height: 1.3; }
.pc-list-stats { font-size: 12px; color: #94a3b8; margin-top: 2px; line-height: 1.3; }
.pc-list-stats .income { color: #52C41A; font-weight: 600; }
.pc-list-stats .expense { color: #FF4D4F; font-weight: 600; }
.pc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 空状态 */
.pc-empty {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
}
.pc-empty i { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.pc-empty div { font-size: 14px; }

/* 分页 */
.pc-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.pc-page-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0 12px;
    border: none;
    cursor: pointer;
}
.pc-page-btn:hover { background: #e2e8f0; color: #334155; }
.pc-page-btn.active { background: #4A90E2; color: #fff; }
.pc-page-btn span { font-size: 13px; letter-spacing: 1px; }

/* 广告区 */
.pc-ad-wrap { display: grid; gap: 16px; margin: 0 0 24px; }
.pc-ad-card img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}
.pc-ad-card img:hover { transform: scale(1.01); }

/* 胶囊标签 */
.pc-pill-tabs { display: inline-flex; gap: 8px; padding: 4px; background: #f1f5f9; border-radius: 10px; }
.pc-pill-tabs a { 
    position: relative;
    padding: 10px 20px; 
    border-radius: 8px; 
    font-size: 14px; 
    font-weight: 600; 
    transition: all 0.2s ease;
    background: #fff;
    color: #64748b;
}
.pc-pill-tabs a:hover { background: #e2e8f0; }
.pc-pill-tabs a.active { background: var(--primary-color, #3b82f6); color: #fff; }
.pc-pill-tabs a .tab-check { display: none; position: absolute; bottom: 2px; right: 4px; font-size: 10px; }
.pc-pill-tabs a.active .tab-check { display: inline-flex; width: 14px; height: 14px; background: #fff; color: var(--primary-color, #3b82f6); border-radius: 50%; align-items: center; justify-content: center; }
/* 收入/支出二选一切换器（记一笔页）：收入绿、支出红常亮，对勾表示选中；
   列表筛选标签（全部/收入/支出）不使用此样式，未选中项为白底、选中项为主题蓝 */
.pc-pill-tabs.pc-pill-tabs-type a[href*="type=1"] { background: #22c55e; color: #fff; box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3); }
.pc-pill-tabs.pc-pill-tabs-type a[href*="type=2"] { background: #ef4444; color: #fff; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2); }

/* 列表筛选标签（全部/收入/支出）：未选中白底灰字，仅选中项高亮——全部蓝、收入绿、支出红 */
.pc-pill-tabs.pc-pill-tabs-filter a { background: #fff; color: #64748b; box-shadow: none; }
.pc-pill-tabs.pc-pill-tabs-filter a:hover { background: #e2e8f0; color: #334155; }
.pc-pill-tabs.pc-pill-tabs-filter a.active { background: #215dff; color: #fff; box-shadow: 0 2px 8px rgba(33, 93, 255, 0.28); }
.pc-pill-tabs.pc-pill-tabs-filter a.active[href*="type=1"] { background: #22c55e; box-shadow: 0 2px 8px rgba(34, 197, 94, 0.30); }
.pc-pill-tabs.pc-pill-tabs-filter a.active[href*="type=2"] { background: #ef4444; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.28); }
.pc-pill-tabs.pc-pill-tabs-filter a .tab-check { display: none !important; }

/* 详情页：我的权限卡片（位于统计卡片下方） */
.pc-perm-card { margin-top: 14px; padding: 14px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.pc-perm-title { font-size: 13px; font-weight: 600; color: #64748b; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.pc-perm-title i { color: #215dff; }
.pc-perm-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-perm-tags .pc-tag { font-size: 12px; padding: 4px 10px; }

/* 弹窗样式 */
.pc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12000;
    animation: fadeIn 0.2s ease;
}
.pc-modal-overlay.hidden { display: none; }

.pc-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    animation: scaleIn 0.25s ease;
}
.pc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.pc-modal-title { font-size: 18px; font-weight: 600; color: #1f2937; }
.pc-modal-close {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: #4b5563;
    color: transparent;
    cursor: pointer;
    display: inline-block;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: background .2s ease, box-shadow .2s ease;
}
.pc-modal-close i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    margin-left: -7px;
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 14px;
    text-align: center;
    transform-origin: center;
    transition: transform .2s ease;
}
.pc-modal-close:hover {
    background: #374151;
    box-shadow: 0 8px 18px rgba(55, 65, 81, .28);
}
.pc-modal-close:hover i {
    transform: rotate(90deg);
}
.pc-modal-body { padding: 24px; }
.pc-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* 添加分类弹窗：按钮与色块靠拢 */
#catFormOverlay .pc-modal-footer { padding-top: 0px; padding-bottom: 16px; }
#catFormOverlay .pc-cat-color-picker { padding: 14px 14px 6px; margin-bottom: 0; }

/* 选择弹窗 */
.pc-select-modal {
    text-align: center;
}
.pc-select-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.pc-select-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pc-select-item:hover {
    border-color: #818cf8;
    background: #f8fafc;
}
.pc-select-item.selected {
    border-color: #6366f1;
    background: #eef2ff;
}
.pc-select-item i { font-size: 24px; color: #64748b; }
.pc-select-item.selected i { color: #6366f1; }
.pc-select-item span { font-size: 12px; color: #64748b; font-weight: 500; }
.pc-select-item.selected span { color: #4338ca; }

.pc-book-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}
.pc-book-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 8px 14px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}
.pc-book-item:hover {
    border-color: #818cf8;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.pc-book-item.selected {
    border-color: #6366f1;
    background: #eef2ff;
}
.pc-book-item.selected:hover {
    background: #e0e7ff;
}
.pc-book-item .pc-book-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}
.pc-book-item .pc-book-badge i { color: #fff; }

/* 好友选择卡片：圆形头像 + 选中绿色光环与居中对勾 */
.pc-book-item.pc-friend-item .pc-friend-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.pc-book-item.pc-friend-item .pc-friend-avatar .pc-book-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 600;
    overflow: hidden;
}
.pc-book-item.pc-friend-item .pc-friend-avatar .pc-book-badge img { border-radius: 50%; }
/* 选中好友：卡片背景与头像不变色，仅边框变为绿色 + 头像正中显示绿色粗体对勾 */
.pc-book-item.pc-friend-item.selected,
.pc-book-item.pc-friend-item.selected:hover {
    border-color: #22c55e;
    background: #fff;
    transform: none;
    box-shadow: none;
}
.pc-friend-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #22c55e;
    font-size: 21px;
    font-weight: 900;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-shadow: 0 0 4px rgba(255,255,255,0.95), 0 1px 3px rgba(0,0,0,0.3);
    pointer-events: none;
}
.pc-book-item.pc-friend-item.selected .pc-friend-check { display: flex; }
.pc-book-item .pc-book-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.pc-book-item > span,
.pc-book-item > div {
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
    text-align: center;
    word-break: break-all;
}

/* Toast 提示 */
.pc-toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pc-toast {
    padding: 14px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    animation: slideInRight 0.3s ease;
}
.pc-toast i { font-size: 20px; }
.pc-toast.success i { color: #22c55e; }
.pc-toast.error i { color: #ef4444; }
.pc-toast.info i { color: #3b82f6; }
.pc-toast.warning i { color: #f59e0b; }

/* 轮播图 */
.pc-banner {
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.pc-banner img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 响应式 */
@media (max-width: 1200px) {
    .pc-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    .pc-shell { grid-template-columns: 1fr; }
    .pc-sidebar {
        position: relative;
        top: auto;
        height: auto;
    }
    .pc-main { padding: 16px; }
    .pc-grid.cols-2, .pc-grid.cols-3, .pc-form-grid { grid-template-columns: 1fr; }
    .pc-topbar {
        align-items: flex-start;
        padding: 14px 18px;
        min-height: auto;
        margin-bottom: 14px;
        border-radius: 0 0 18px 18px;
    }
    .pc-topbar-content {
        flex: 1;
    }
    .pc-topbar-actions { flex-direction: column; align-items: flex-start; width: 100%; }
    .pc-wrapper { padding: 0 14px 16px; }
    .pc-main {
        padding: 0;
        border-radius: 22px;
    }
}
