* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; background: #f0f2f5; }

/* ---------- 登录 ---------- */
.login-wrap { height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f2d3d 0%, #2d4a6b 100%); }
.login-card { width: 360px; background: #fff; border-radius: 10px; padding: 36px 32px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.login-logo { font-size: 26px; font-weight: 800; color: #1f2d3d; text-align: center; }
.login-sub { font-size: 13px; color: #8a90a3; text-align: center; margin: 6px 0 24px; }
.login-err { color: #f56c6c; font-size: 13px; text-align: center; margin-top: 12px; }

/* ---------- 布局 ---------- */
.layout { height: 100%; }
.aside { background: #1f2d3d; }
.brand { height: 60px; display: flex; align-items: center; padding: 0 18px; color: #fff; font-weight: 800; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5a1f; margin-right: 10px; }
.brand-name { letter-spacing: 1px; }
.aside .el-menu { border-right: none; }
.aside .el-menu-item .mi { display: inline-block; width: 22px; color: #ff5a1f; font-size: 15px; }

.header { background: #fff; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8e8e8; }
.crumb { font-size: 15px; color: #303133; font-weight: 600; }
.user { cursor: pointer; color: #303133; font-size: 14px; }
.main { background: #f0f2f5; padding: 18px; }
/* 多标签页：el-tabs 仅作标签条，页面内容由下方 v-show 块承载 */
.page-tabs { margin-bottom: 14px; }
.page-tabs .el-tabs__header { margin: 0; }
.page-tabs .el-tabs__content { display: none; }

/* ---------- 统计卡 ---------- */
.stat-card { border-radius: 8px; padding: 20px 22px; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.stat-num { font-size: 30px; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: 13px; margin-top: 8px; opacity: .92; }
.stat-1 { background: linear-gradient(135deg,#ff7a2f,#e8321f); }
.stat-2 { background: linear-gradient(135deg,#36cfc9,#08979c); }
.stat-3 { background: linear-gradient(135deg,#597ef7,#1d39c4); }
.stat-4 { background: linear-gradient(135deg,#9254de,#531dab); }

.card-h { font-weight: 700; color: #303133; font-size: 15px; }
.chart { width: 100%; height: 280px; }

/* ---------- 侧栏二级菜单 ---------- */
.aside .el-sub-menu__title .mi { display: inline-block; width: 22px; color: #ff5a1f; font-size: 15px; }
.aside .el-sub-menu .el-menu-item { padding-left: 46px !important; min-width: 0; }
.aside .el-sub-menu .el-menu-item .sub-mi { display: inline-block; width: 16px; color: #ff5a1f; }

/* ---------- 活动方管理 ---------- */
.logo-none { color: #b6bac7; font-size: 12px; }
.st-txt { margin-left: 6px; font-size: 12px; color: #7a8092; }
.time-txt { color: #7a8092; font-size: 12px; white-space: nowrap; }
/* 羊毛列表「金额」列：橙色加粗，扫列表时先看到数字 */
.amt-txt { color: #f0410a; font-size: 13px; font-weight: 700; }

.logo-row { display: flex; align-items: flex-start; gap: 14px; }
.logo-side { flex: 1; min-width: 0; padding-top: 2px; }
.logo-box {
  width: 84px; height: 84px; border: 1px dashed #cfd4e0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #fafbfd; overflow: hidden; cursor: pointer; transition: border-color .2s;
}
.logo-box:hover { border-color: #ff5a1f; }
.logo-img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-ph { display: flex; flex-direction: column; align-items: center; color: #9aa0b2; line-height: 1.2; }
.logo-ph b { font-size: 22px; font-weight: 400; }
.logo-ph i { font-size: 12px; font-style: normal; margin-top: 2px; }
.logo-tip { font-size: 12px; color: #9aa0b2; line-height: 1.6; margin-top: 4px; word-break: break-all; }
.logo-side .el-button { padding: 0; height: auto; margin-bottom: 2px; font-size: 12px; }
.form-tip { margin-left: 10px; font-size: 12px; color: #9aa0b2; }
/* 比例越界提示：暖橙色，软提示不拦截 */
.form-tip--warn { color: #b07a2a; }

/* ---------- 分页 ---------- */
.pager-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.pager-total { font-size: 13px; color: #7a8092; }

/* ---------- 活动表单：开抢场次（多时间点） ---------- */
.session-rows { width: 100%; }
.session-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.session-rows .link-tip { margin-top: 2px; }

/* ---------- 活动表单：开抢时间范围 / 领取链接 ---------- */
.time-range { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.time-sep { color: #9aa0b2; }
.time-range .form-tip { margin-left: 4px; }
.link-tip { font-size: 12px; color: #9aa0b2; line-height: 1.6; margin-top: 4px; }

/* ---------- 弹框统一视觉 ---------- */
.el-dialog { border-radius: 10px; }
.el-dialog__header { border-bottom: 1px solid #eef0f5; margin-right: 0; padding: 16px 20px; }
.el-dialog__title { font-size: 15px; font-weight: 700; color: #303133; }
.el-dialog__body { padding: 20px 20px 4px; max-height: 68vh; overflow-y: auto; }
.el-dialog__footer { border-top: 1px solid #eef0f5; padding: 12px 20px; }

/* ---------- 富文本编辑器（如何领取 · wangEditor） ---------- */.re-wrap { width: 100%; }
.re { border: 1px solid #dcdfe6; border-radius: 6px; overflow: hidden; background: #fff; }
.re:focus-within { border-color: #409eff; }
.re .w-e-toolbar { border-bottom: 1px solid #eef0f5; background: #fafbfc; }
/* 高度必须 >= 300px，否则 wangEditor 会告警「编辑区域高度 < 300px，modal/hoverbar 定位异常」 */
.re__body { height: 300px; min-height: 300px; overflow: hidden; }
.re .w-e-text-container { height: 300px !important; min-height: 300px !important; background: #fff; }
.re .w-e-scroll { height: 100%; }
.re .w-e-text-container [data-slate-editor] { padding: 8px 12px; font-size: 14px; line-height: 1.7; }
.re .w-e-text-container img { max-width: 100%; height: auto; }
.re .w-e-bar-item-group .w-e-select-list { z-index: 3000; }
.re .w-e-modal, .re .w-e-drop-panel { z-index: 3000; }
.re .w-e-text-placeholder { top: 8px; left: 12px; font-size: 14px; color: #b6bbc6; }
.re__fallback { width: 100%; box-sizing: border-box; padding: 8px 12px; font-size: 14px; line-height: 1.7;
  font-family: inherit; color: #303133; border: 1px solid #dcdfe6; border-radius: 6px; resize: vertical; }

/* ---------- 奶茶羊毛 · 卡片 Logo / 底色选择 ---------- */
.tea-logo {
  width: 38px; height: 38px; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700; line-height: 1;
  border: 1px solid #eef0f5;
}
.tea-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }

.tea-bg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tea-bg {
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; box-shadow: 0 1px 3px rgba(0,0,0,.12);
  transition: transform .15s, border-color .15s;
}
.tea-bg:hover { transform: translateY(-1px); }
.tea-bg.is-on { border-color: #409eff; box-shadow: 0 0 0 2px rgba(64,158,255,.18); }
.tea-bg-input { margin-top: 8px; }

/* ---------- 券包羊毛 ---------- */
.cp-cell { display: flex; align-items: center; gap: 8px; }
.cp-cell__txt { min-width: 0; }
.cp-cell__t { font-size: 13px; font-weight: 600; color: #303133; line-height: 1.3; }
.cp-cell__d { font-size: 12px; color: #9aa0b2; line-height: 1.4; margin-top: 2px; }
.ci-banner {
  width: 54px; height: 32px; border-radius: 6px; overflow: hidden; flex: none;
  border: 1px solid #eef0f5; background: #dfe4ee;
}
.ci-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chip-tag { margin: 0 4px 3px 0; }
.muted { color: #c0c4cc; }
.cfg-step { border: 1px solid #eef0f5; border-radius: 8px; padding: 10px 12px 0; margin-bottom: 12px; background: #fafbfd; }
.cfg-step__hd { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: #5a6072; margin-bottom: 8px; }

/* ---------- 券包 · 图片上传缩略图 ---------- */
.up-row { display: flex; align-items: center; gap: 12px; }
.up-thumb {
  position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden;
  border: 1px solid #e4e7ed; background: #f7f8fa; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease;
}
.up-thumb:hover { border-color: #f2540f; }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-thumb__mask {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 12px;
  opacity: 0; transition: opacity 0.15s ease;
}
.up-thumb:hover .up-thumb__mask { opacity: 1; }
.up-thumb--empty { border-style: dashed; color: #a8abb2; flex-direction: column; gap: 2px; }
/* 平台券头图是 3:2 横图，缩略图保持比例才看得出裁切效果 */
.up-thumb--banner { width: 96px; height: 56px; }
.up-thumb__plus { font-size: 18px; line-height: 1; }
.up-thumb__tip { font-size: 11px; }
.up-ops { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }

/* ---------- 券包 · 底色选项（色块 + 中文名 + 渐变值） ---------- */
.bg-opt { display: inline-flex; align-items: center; gap: 8px; width: 100%; }
.bg-opt__sw {
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.bg-opt__nm { font-size: 13px; color: #303133; }
.bg-opt__val {
  font-size: 11px; color: #b1b5c0; margin-left: auto;
  font-family: Menlo, Monaco, monospace;
}
.bg-opt--mini .bg-opt__sw { width: 14px; height: 14px; border-radius: 4px; }
.bg-opt--mini .bg-opt__nm { font-size: 13px; }

/* ---------- 今日羊毛活动 · 浏览记录 ---------- */
.view-uv-txt { line-height: 1.2; }
.view-stats { display: flex; gap: 12px; margin-bottom: 10px; }
.view-stat {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  padding: 10px 14px; border: 1px solid #ebeef5; border-radius: 6px; background: #fafafa;
}
.view-stat span { font-size: 12px; color: #909399; }
.view-stat b { font-size: 22px; line-height: 1.1; color: #303133; }
.view-tip { font-size: 12px; color: #909399; line-height: 1.6; margin-bottom: 6px; }
.view-sub-title { font-size: 14px; font-weight: 600; color: #303133; margin: 14px 0 8px; }

/* ============ 奶茶活动 · 开抢场次（2026-11-15） ============ */
.sess-box { width: 100%; }
.sess-batch { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sess-batch .form-tip { margin-left: 4px; }
.sess-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sess-warn { font-size: 12px; color: #b07a2a; white-space: nowrap; }
.sess-add { margin-top: 2px; }
.sess-txt { margin-top: 2px; font-size: 12px; color: #7a8092; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sess-txt.is-empty { color: #c0c4cc; }
