/* 代理商后台样式（蓝白基准，与客户CMS一致） */
[v-cloak] { display: none; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2933; background: #f5f7fa; }
#app, .layout { height: 100%; }

/* 登录 */
.boot { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #6b7280; }
.boot-dot { width: 10px; height: 10px; border-radius: 50%; background: #2563eb; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.login-wrap { min-height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #eef2ff 0%, #f5f7fa 55%); }
.login-card { width: 400px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 34px 34px 26px; box-shadow: 0 10px 40px rgba(31,41,51,.08); }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: #2563eb; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: 1px; }
.brand-mark.small { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
.brand h1 { margin: 0; font-size: 20px; }
.brand p { margin: 3px 0 0; color: #6b7280; font-size: 13px; }
.login-error { color: #dc2626; font-size: 13px; margin: -6px 0 10px; }
.login-btn { width: 100%; margin-top: 4px; }
.login-tip { color: #9ca3af; font-size: 12px; text-align: center; margin: 14px 0 0; }

/* 布局 */
.layout { display: flex; }
.sidebar { width: 210px; background: #111827; color: #e5e7eb; display: flex; flex-direction: column; padding: 18px 12px; }
.side-brand { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: #f9fafb; padding: 4px 8px 18px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item { text-align: left; background: none; border: 0; color: #9ca3af; font-size: 14px; padding: 11px 12px; border-radius: 8px; cursor: pointer; }
.nav-item:hover { background: #1f2937; color: #f3f4f6; }
.nav-item.active { background: #2563eb; color: #fff; }
.side-user { border-top: 1px solid #1f2937; padding: 12px 8px 2px; }
.side-user-name { font-size: 13px; color: #f3f4f6; font-weight: 600; }
.side-user-role { font-size: 11px; color: #6b7280; margin: 3px 0 8px; }
.side-user .el-button { color: #9ca3af; padding: 4px 0; }
.content { flex: 1; padding: 26px 34px 60px; overflow: auto; }
.page-title { margin: 0 0 18px; font-size: 20px; }
.sec-title { margin: 26px 0 12px; font-size: 15px; color: #374151; }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.preview-link { color: #2563eb; text-decoration: none; }
.preview-link:hover { text-decoration: underline; }

/* 数据表 */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; font-size: 13px; }
.data-table th { text-align: left; background: #f9fafb; color: #6b7280; font-weight: 600; padding: 10px 14px; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; color: #1f2933; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #f8fafc; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px; }
.stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px 20px; }
.stat-card.warn .stat-num { color: #d97706; }
.stat-num { font-size: 24px; font-weight: 700; color: #111827; }
.stat-label { font-size: 12px; color: #6b7280; margin-top: 5px; }

/* 开通面板 */
.opening-panel { background: #fff; border: 1px solid #c7dbfe; border-radius: 12px; padding: 20px 24px; margin-top: 18px; box-shadow: 0 6px 24px rgba(37,99,235,.08); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.panel-head h3 { margin: 0; font-size: 16px; }
.panel-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.field-hint { color: #9ca3af; font-size: 12px; margin: -10px 0 12px; }
.level-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.level-card { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .15s; }
.level-card:hover { border-color: #93c5fd; }
.level-card.selected { border-color: #2563eb; background: #eff6ff; }
.level-card input { margin-top: 4px; }
.level-name { font-weight: 600; font-size: 14px; }
.level-price { color: #2563eb; font-size: 13px; margin-top: 3px; }
.level-ents { color: #6b7280; font-size: 12px; margin-top: 3px; }
.quote-line { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #166534; }
.load-more { display: flex; justify-content: center; margin-top: 16px; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 64px; padding: 14px 8px; }
  .side-brand { font-size: 0; gap: 0; }
  .nav-item { font-size: 0; padding: 12px; }
  .nav-item.active::before, .side-brand::after { content: ''; }
  .content { padding: 20px 16px; }
}
