* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #303133;
  font-size: 14px;
}
.container { max-width: 1400px; margin: 0 auto; padding: 20px; }
.header {
  background: linear-gradient(135deg, #409EFF 0%, #2563eb 100%);
  color: white;
  padding: 16px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.header-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 22px; font-weight: 600; }
.nav { display: flex; gap: 8px; }
.nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 14px;
}
.nav a:hover { background: rgba(255,255,255,0.15); }
.nav a.active { background: rgba(255,255,255,0.25); font-weight: 500; }

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 24px;
  margin-bottom: 20px;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.stat-icon.blue { background: #ecf5ff; color: #409EFF; }
.stat-icon.green { background: #f0f9eb; color: #67C23A; }
.stat-icon.orange { background: #fdf6ec; color: #E6A23C; }
.stat-icon.red { background: #fef0f0; color: #F56C6C; }
.stat-value { font-size: 26px; font-weight: 700; color: #303133; }
.stat-label { font-size: 13px; color: #909399; margin-top: 4px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-end;
}
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item label { font-size: 13px; color: #606266; font-weight: 500; }

input[type="text"], input[type="date"], input[type="number"], select, textarea {
  padding: 8px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
  background: #fff;
  font-family: inherit;
}
input[type="text"]:focus, input[type="date"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #409EFF;
}
textarea { resize: vertical; min-height: 80px; }
.input-sm { width: 160px; }
.input-md { width: 220px; }
.input-lg { width: 280px; }
.input-full { width: 100%; }

.btn {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.btn-primary { background: #409EFF; color: white; }
.btn-primary:hover { background: #337ecc; }
.btn-success { background: #67C23A; color: white; }
.btn-success:hover { background: #529b2e; }
.btn-warning { background: #E6A23C; color: white; }
.btn-warning:hover { background: #b88230; }
.btn-danger { background: #F56C6C; color: white; }
.btn-danger:hover { background: #c45656; }
.btn-default { background: #fff; color: #606266; border: 1px solid #dcdfe6; }
.btn-default:hover { color: #409EFF; border-color: #c6e2ff; background: #ecf5ff; }
.btn-sm { padding: 5px 12px; font-size: 13px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table th {
  background: #fafafa;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: #606266;
  border-bottom: 1px solid #ebeef5;
}
table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f2f6fc;
  color: #303133;
}
table tr:hover td { background: #fafbfc; }
.title-link { color: #409EFF; text-decoration: none; font-weight: 500; cursor: pointer; }
.title-link:hover { text-decoration: underline; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.tag-blue { background: #ecf5ff; color: #409EFF; border: 1px solid #d9ecff; }
.tag-green { background: #f0f9eb; color: #67C23A; border: 1px solid #e1f3d8; }
.tag-orange { background: #fdf6ec; color: #E6A23C; border: 1px solid #faecd8; }
.tag-gray { background: #f4f4f5; color: #909399; border: 1px solid #e9e9eb; }
.tag-red { background: #fef0f0; color: #F56C6C; border: 1px solid #fde2e2; }

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.page-info { color: #606266; margin-right: 16px; font-size: 13px; }
.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #606266;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.page-btn:hover:not(:disabled) { color: #409EFF; border-color: #409EFF; }
.page-btn.active { background: #409EFF; color: white; border-color: #409EFF; }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.page-size-select { width: 100px; }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: #909399;
}

.modal-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
  z-index: 1000;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #909399;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #409EFF; }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #ebeef5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }

.detail-row { display: flex; padding: 10px 0; border-bottom: 1px solid #f5f7fa; }
.detail-row:last-child { border-bottom: none; }
.detail-label { width: 110px; color: #909399; flex-shrink: 0; }
.detail-value { color: #303133; flex: 1; line-height: 1.7; }

.action-btns { display: flex; gap: 8px; }

.breadcrumb {
  color: #909399;
  font-size: 13px;
  margin-bottom: 16px;
}
.breadcrumb span { color: #303133; }

.amount { color: #F56C6C; font-weight: 600; }

.footer {
  text-align: center;
  color: #909399;
  padding: 30px 0;
  font-size: 13px;
}
