/* 公共样式 */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
body { background: #f2f5f9; color: #2c3e50; }
a { text-decoration: none; }
button { font-family: inherit; }

/* 弹窗 */
.modal-mask {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 100;
  align-items: center; justify-content: center; padding: 16px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 560px;
  max-height: 86vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; border-bottom: 1px solid #eef2f6;
}
.modal-head h3 { font-size: 17px; color: #1e3a5f; }
.modal-close { background: none; border: none; font-size: 22px; color: #9aa7b5; cursor: pointer; }
.modal-body { padding: 20px 22px; }
.modal-foot {
  padding: 14px 22px; border-top: 1px solid #eef2f6;
  display: flex; justify-content: flex-end; gap: 12px;
}

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.f-item label { display: block; font-size: 13px; color: #6b7d90; margin-bottom: 6px; }
.f-item input, .f-item select, .f-item textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #dce4ec;
  border-radius: 8px; font-size: 14px; outline: none;
  box-sizing: border-box; background: #fff;
}
.f-item input:focus, .f-item select:focus, .f-item textarea:focus { border-color: #2d6a9f; }

/* 按钮 */
.btn {
  display: inline-block; padding: 9px 20px; border: none; border-radius: 8px;
  font-size: 14px; cursor: pointer; transition: opacity .2s;
}
.btn:active { opacity: .85; }
.btn-primary { background: linear-gradient(135deg, #2d6a9f, #4a90c4); color: #fff; }
.btn-plain { background: #eef2f6; color: #5c6f84; }
.btn-danger { background: #fdf0ef; color: #e74c3c; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 表格 */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; padding: 12px 14px; background: #f7f9fc;
  color: #6b7d90; font-weight: 600; border-bottom: 1px solid #eef2f6; white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid #f3f6fa; color: #3d4f63; white-space: nowrap; }
.data-table tr:hover td { background: #f8fbfe; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px;
}
.tag-blue { background: #e8f1fa; color: #2d6a9f; }
.tag-green { background: #e6f7ed; color: #27ae60; }
.tag-orange { background: #fdf3e3; color: #e67e22; }
.tag-red { background: #fdecea; color: #e74c3c; }
.tag-gray { background: #eef2f6; color: #7a8ba0; }
.tag-purple { background: #f0eafd; color: #7b5cd6; }

/* 空状态 */
.empty-tip { text-align: center; padding: 48px 0; color: #9aa7b5; font-size: 14px; }

/* 提示气泡 */
.toast {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%,-50%);
  background: rgba(30,45,65,.92); color: #fff; padding: 14px 30px;
  border-radius: 10px; font-size: 15px; z-index: 999;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.toast.show { opacity: 1; }

/* 搜索栏 */
.toolbar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select {
  padding: 9px 13px; border: 1px solid #dce4ec; border-radius: 8px;
  font-size: 14px; outline: none; background: #fff;
}
.toolbar input:focus, .toolbar select:focus { border-color: #2d6a9f; }

/* 卡片面板 */
.panel {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 2px 10px rgba(30,60,100,.06);
}
.panel-title { font-size: 16px; color: #1e3a5f; font-weight: 600; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
