* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif; }
#app { height: 100%; }

/* 登录页 */
.login-page { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.login-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 50%, #0f2027 100%); }
.login-bg::after { content: ''; position: absolute; width: 800px; height: 800px; right: -200px; top: -300px; border-radius: 50%; background: rgba(255,255,255,0.04); }
.login-card { position: relative; width: 400px; background: #fff; border-radius: 12px; padding: 40px 36px 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.login-brand h1 { margin: 0; font-size: 22px; color: #1f2937; }
.login-brand p { margin: 4px 0 0; font-size: 13px; color: #6b7280; }
.brand-mark { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 8px; font-size: 13px; flex-shrink: 0; }
.login-footer { margin-top: 20px; text-align: center; font-size: 12px; color: #c0c4cc; }
.login-beian { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 12px; color: rgba(255,255,255,0.65); }

/* 主布局 */
.main-layout { height: 100vh; }
.aside { background: #1f2937; transition: width .3s; overflow-x: hidden; }
.logo { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 16px; color: #fff; font-size: 16px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); white-space: nowrap; }
.side-menu { border: none; margin-top: 8px; }
.side-menu .el-menu-item, .side-menu .el-sub-menu__title { height: 44px; line-height: 44px; }
.header { height: 60px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.header-left, .header-right { display: flex; align-items: center; gap: 14px; }
.breadcrumb { font-size: 16px; font-weight: 600; color: #1f2937; }
.user-info { display: flex; align-items: center; gap: 6px; cursor: pointer; color: #374151; }
.main { background: #f3f5f8; padding: 18px; overflow-y: auto; }

/* 卡片与表格 */
.page-card { background: #fff; border-radius: 8px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.page-title { margin: 0 0 16px; font-size: 18px; font-weight: 600; color: #1f2937; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar-right { margin-left: auto; display: flex; gap: 8px; }
.pagination { display: flex; justify-content: flex-end; margin-top: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.stat-card .label { font-size: 13px; color: #6b7280; }
.stat-card .value { font-size: 26px; font-weight: 700; color: #1f2937; margin-top: 8px; }
.stat-card .value.primary { color: #2563eb; }
.stat-card .value.success { color: #059669; }
.stat-card .value.warning { color: #d97706; }
.section-title { font-size: 15px; font-weight: 600; color: #374151; margin: 18px 0 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 24px; }
.empty-tip { padding: 40px; text-align: center; color: #9ca3af; }
.money { font-variant-numeric: tabular-nums; }
.status-tag { font-size: 12px; }
