/* ===================== 全局样式 ===================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; font-family: -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; color: #303133; background: #f0f2f5; }

/* ===================== 主布局 ===================== */
.app-layout { height: 100vh; }
.app-aside {
  background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  transition: width .25s;
  overflow-x: hidden;
}
.app-aside .logo {
  height: 60px; line-height: 60px; text-align: center;
  font-size: 18px; font-weight: 600; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
  white-space: nowrap;
}
.app-aside .el-menu { background: transparent !important; border-right: none !important; }
.app-aside .el-menu-item, .app-aside .el-sub-menu__title { color: #cdd5e5 !important; }
.app-aside .el-menu-item:hover, .app-aside .el-sub-menu__title:hover { background: rgba(255,255,255,.08) !important; }
.app-aside .el-menu-item.is-active { color: #fff !important; background: rgba(255,255,255,.15) !important; }
.app-aside .el-sub-menu .el-menu-item { background: rgba(0,0,0,.12) !important; }
.app-aside .el-sub-menu__icon-arrow { color: #cdd5e5; }

.app-header {
  background: #fff; box-shadow: 0 1px 4px rgba(0,21,41,.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 60px;
}
.app-header .header-left { display: flex; align-items: center; gap: 14px; }
.app-header .header-right { display: flex; align-items: center; gap: 18px; }

.app-main { padding: 16px; overflow-y: auto; background: #f0f2f5; height: calc(100vh - 60px); }
.page-container { background: #fff; padding: 16px; border-radius: 4px; min-height: calc(100vh - 92px); }

/* ===================== 通用 ===================== */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.toolbar-left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pagination-wrap { display: flex; justify-content: flex-end; margin-top: 14px; }

/* 工作台卡片 */
.stat-card { display: flex; align-items: center; padding: 20px; border-radius: 6px; color: #fff; height: 100px; }
.stat-card .icon-box { font-size: 38px; opacity: .9; margin-right: 16px; }
.stat-card .num { font-size: 26px; font-weight: 600; }
.stat-card .lbl { font-size: 13px; opacity: .9; margin-top: 4px; }
.bg-blue { background: linear-gradient(135deg, #36a3ff, #1e6fff); }
.bg-green { background: linear-gradient(135deg, #4dd9a0, #19b66e); }
.bg-orange { background: linear-gradient(135deg, #ffb067, #ff8533); }
.bg-red { background: linear-gradient(135deg, #ff7a8a, #ff3d56); }
.bg-purple { background: linear-gradient(135deg, #b08cff, #7b3fff); }

/* 表格操作按钮 */
.row-btn { padding: 4px 6px; }

/* 标签样式 */
.tag-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* 预览图 */
.image-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid #ebeef5; }
.image-list-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; margin: 4px; border: 1px solid #ebeef5; }
.upload-tip { color: #909399; font-size: 12px; line-height: 1.5; }

/* 表单弹窗 */
.dialog-form .el-form-item { margin-bottom: 16px; }
.dialog-form .el-select, .dialog-form .el-input { width: 100%; }

/* 折叠面板 */
.collapse-card { background: #fff; border-radius: 6px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.collapse-card .hd { padding: 12px 16px; font-weight: 600; border-bottom: 1px solid #f0f2f5; display: flex; justify-content: space-between; align-items: center; }
.collapse-card .bd { padding: 16px; }

/* 订单详情 */
.order-detail .el-descriptions { margin-bottom: 16px; }
.order-image-block { margin: 10px 0; }
.order-image-block h4 { margin: 8px 0; font-size: 14px; color: #606266; }

/* 空数据 */
.empty-tip { text-align: center; padding: 30px; color: #909399; font-size: 13px; }

/* 隐藏滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c0c4cc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #909399; }
