* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #app { height: 100%; font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif; }
.login-container { height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.login-card { width: 400px; padding: 40px; background: rgba(255,255,255,0.95); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.login-title { text-align: center; font-size: 24px; font-weight: 600; color: #303133; margin-bottom: 8px; }
.login-subtitle { text-align: center; font-size: 14px; color: #909399; margin-bottom: 32px; }
.layout-container { height: 100vh; }
.sidebar { height: 100%; background: #1d1e2c; transition: width 0.3s; }
.sidebar-logo { height: 60px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 600; background: #161729; letter-spacing: 2px; }
.sidebar-logo.collapsed { font-size: 14px; letter-spacing: 0; }
.el-menu { border-right: none !important; background: #1d1e2c !important; }
.header-bar { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.collapse-btn { cursor: pointer; font-size: 20px; color: #606266; }
.merchant-tag { font-size: 13px; color: #606266; display: flex; align-items: center; gap: 4px; }
.main-content { padding: 20px; background: #f5f7fa; height: calc(100vh - 60px); overflow-y: auto; }
.stat-card { text-align: center; cursor: default; transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-value { font-size: 28px; font-weight: 700; color: #303133; margin: 8px 0 4px; }
.stat-label { font-size: 13px; color: #909399; }
.stat-value.success { color: #67c23a; }
.stat-value.danger { color: #f56c6c; }
.stat-value.primary { color: #409eff; }
.stat-value.warning { color: #e6a23c; }
.merchant-section { margin-top: 20px; }
.section-title { font-size: 16px; font-weight: 600; color: #303133; margin-bottom: 16px; padding-left: 8px; border-left: 3px solid #409eff; }
.info-row { display: flex; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.info-row:last-child { border-bottom: none; }
.info-label { width: 140px; color: #909399; font-size: 14px; flex-shrink: 0; }
.info-value { color: #303133; font-size: 14px; font-weight: 500; }
.amount-highlight { font-size: 18px; font-weight: 700; color: #409eff; }

/* ===== 订单管理 / 资金流水 页新增样式 ===== */
.mini-stat { text-align: center; }
.mini-stat .ms-label { font-size: 13px; color: #909399; }
.mini-stat .ms-value { font-size: 22px; font-weight: 700; color: #303133; margin-top: 6px; }
.mini-stat .ms-value.success { color: #67c23a; }
.mini-stat .ms-value.warning { color: #e6a23c; }
.amt-in { color: #67c23a; font-weight: 600; }
.amt-out { color: #f56c6c; font-weight: 600; }
.el-pagination { display: flex; }

/* ===== 对接API 文档页（iframe 内嵌静态文档） ===== */
.api-doc-wrap { height: calc(100vh - 100px); }
.api-doc-frame { width: 100%; height: 100%; border: none; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
