/* =========================================================
   云代理管理系统 - 管理后台样式（MineAdmin 风格）
   ========================================================= */
html, body, #app { height: 100%; margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: #f0f2f5; color: #303133; font-size: 14px;
}
* { box-sizing: border-box; }

/* ---------- 登录页 ---------- */
.login-page {
  position: relative; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1b2a4a 0%, #123 40%, #0e7490 100%);
  overflow: hidden;
}
.login-page::before, .login-page::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35;
}
.login-page::before { width: 420px; height: 420px; background: #2563eb; top: -120px; right: -80px; }
.login-page::after { width: 360px; height: 360px; background: #14b8a6; bottom: -120px; left: -80px; }
.login-card {
  position: relative; z-index: 2; width: 400px; background: rgba(255,255,255,.97);
  border-radius: 12px; padding: 38px 40px 30px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo .logo-badge {
  width: 52px; height: 52px; line-height: 52px; margin: 0 auto 10px; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #14b8a6); color: #fff; font-size: 26px; font-weight: 700;
}
.login-logo h1 { margin: 0; font-size: 20px; color: #1f2937; }
.login-logo p { margin: 6px 0 0; font-size: 12px; color: #9ca3af; }

/* ---------- 后台布局 ---------- */
.admin-layout { height: 100%; }
.aside-wrap { background: #191b20; color: #a6adbb; transition: width .2s; overflow: hidden; }
.aside-wrap .logo-area {
  height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #2563eb, #14b8a6); color: #fff; font-weight: 700; font-size: 17px;
}
.aside-wrap .logo-area .logo-txt { white-space: nowrap; overflow: hidden; }
.aside-menu { border-right: none; background: transparent; color: #a6adbb; }
.aside-menu .el-menu-item, .aside-menu .el-sub-menu__title { color: #a6adbb; height: 46px; line-height: 46px; }
.aside-menu .el-menu-item:hover, .aside-menu .el-sub-menu__title:hover { background: #23262e; color: #fff; }
.aside-menu .el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(37,99,235,.25), transparent); color: #fff;
  border-left: 3px solid #3b82f6;
}
.menu-icon { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }

.topbar {
  height: 56px; background: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; box-shadow: 0 1px 4px rgba(0,21,41,.08); position: relative; z-index: 5;
}
.topbar .page-title { font-size: 16px; font-weight: 600; color: #1f2937; }
.topbar .right-area { display: flex; align-items: center; gap: 14px; }
.tabs-bar {
  background: #fff; border-bottom: 1px solid #ebeef5; padding: 0 12px; height: 40px;
  display: flex; align-items: center; gap: 8px; overflow-x: auto; white-space: nowrap;
}
.tab-item {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: 12px;
  color: #606266; background: #fff; border: 1px solid #e4e7ed; border-radius: 4px; cursor: pointer;
  user-select: none;
}
.tab-item.active { color: #2563eb; border-color: #2563eb; background: #eff6ff; }
.main-area { background: #f0f2f5; padding: 16px; overflow-y: auto; }

.page-card { background: #fff; border-radius: 8px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,21,41,.06); }
.page-card h3 { margin: 0 0 14px; font-size: 15px; color: #1f2937; font-weight: 600; }

/* ---------- 仪表盘 ---------- */
.stat-card {
  background: #fff; border-radius: 10px; padding: 20px; position: relative; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,21,41,.06); border-left: 4px solid #2563eb;
}
.stat-card .num { font-size: 30px; font-weight: 700; color: #1f2937; line-height: 1.2; }
.stat-card .label { margin-top: 6px; color: #8a94a6; font-size: 13px; }
.stat-card .stat-icon { position: absolute; right: 14px; top: 16px; opacity: .18; }
.stat-card .stat-icon svg { width: 54px; height: 54px; }

/* ---------- 表格/筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pager { display: flex; justify-content: flex-end; margin-top: 14px; }
.text-success { color: #67c23a; } .text-danger { color: #f56c6c; } .text-warn { color: #e6a23c; } .text-info { color: #909399; }
.strong { font-weight: 600; }

/* ---------- 接口文档 ---------- */
.doc-block { margin-bottom: 18px; }
.doc-block h4 { margin: 0 0 8px; font-size: 14px; color: #1f2937; }
.doc-code {
  background: #1e293b; color: #e2e8f0; border-radius: 6px; padding: 12px 14px; font-family: Consolas, Menlo, monospace;
  font-size: 12.5px; line-height: 1.7; overflow-x: auto; white-space: pre; margin: 0;
}
.url-line { color: #38bdf8; }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #c3cad6; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
