/* FIRELINE 管理后台 · 深色战术主题 */
html.dark {
  --el-color-primary: #c9a96a;
  --el-color-primary-light-3: #d6bd8c;
  --el-color-primary-light-5: #decaa4;
  --el-color-primary-light-7: #e8dabd;
  --el-color-primary-light-8: #eee4cd;
  --el-color-primary-light-9: #f4ecdc;
  --el-color-primary-dark-2: #a98b4f;

  --el-bg-color: #151d26;
  --el-bg-color-page: #0d1117;
  --el-bg-color-overlay: #1b2531;

  --el-text-color-primary: #e8e0d1;
  --el-text-color-regular: #c2c9d1;
  --el-text-color-secondary: #98a2ac;
  --el-text-color-placeholder: #6a7580;

  --el-border-color: #34404c;
  --el-border-color-light: #2b3643;
  --el-border-color-lighter: #253039;
  --el-border-color-extra-light: #1f2833;

  --el-fill-color: #1b2531;
  --el-fill-color-light: #1f2a36;
  --el-fill-color-lighter: #22303c;
  --el-fill-color-blank: #151d26;

  --el-mask-color: rgba(8, 11, 15, .75);
  --el-box-shadow-light: 0 6rpx 20px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #0d1117;
  color: #e8e0d1;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.boot {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 4px;
  color: #c9a96a;
  font-family: "Courier New", monospace;
}

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 107, 53, .12), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(201, 169, 106, .12), transparent 40%),
    repeating-linear-gradient(rgba(201, 169, 106, .04) 0 1px, transparent 1px 28px),
    #0d1117;
}

.login-card {
  width: 400px;
  padding: 40px 36px 34px;
  background: rgba(21, 29, 38, .94);
  border: 1px solid #3c4855;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.login-brand {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #c9a96a;
}

.login-sub {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 3px;
  color: #78838d;
  font-family: "Courier New", monospace;
}

.login-title {
  margin: 26px 0 20px;
  font-size: 16px;
  color: #e8e0d1;
}

.login-tip {
  margin-top: 16px;
  font-size: 12px;
  color: #78838d;
}

/* ---------- 布局 ---------- */
.shell {
  display: flex;
  min-height: 100vh;
  background: #0d1117;
}

.sidebar {
  width: 210px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: #111923;
  border-right: 1px solid #253039;
}

.sidebar__brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid #253039;
}

.sidebar__brand b {
  display: block;
  font-size: 20px;
  letter-spacing: 4px;
  color: #c9a96a;
}

.sidebar__brand span {
  font-size: 10px;
  letter-spacing: 2px;
  color: #6a7580;
  font-family: "Courier New", monospace;
}

.sidebar .el-menu {
  border-right: 0;
  flex: 1;
  background: transparent;
}

.sidebar .el-menu-item {
  height: 44px;
  line-height: 44px;
  color: #98a2ac;
  font-size: 14px;
}

.sidebar .el-menu-item.is-active {
  background: rgba(201, 169, 106, .12);
  color: #c9a96a;
  border-right: 2px solid #c9a96a;
}

.sidebar__foot {
  padding: 14px 18px;
  font-size: 11px;
  color: #4a5763;
  border-top: 1px solid #253039;
  font-family: "Courier New", monospace;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 58px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(17, 25, 35, .92);
  border-bottom: 1px solid #253039;
}

.topbar__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.topbar__title small {
  margin-left: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #6a7580;
  font-family: "Courier New", monospace;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.content {
  flex: 1;
  padding: 22px;
  overflow: auto;
}

.panel {
  background: #151d26;
  border: 1px solid #253039;
  border-radius: 8px;
  padding: 18px;
}

.panel + .panel { margin-top: 16px; }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

.panel__head .mono {
  font-size: 11px;
  letter-spacing: 2px;
  color: #6a7580;
  font-family: "Courier New", monospace;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.toolbar .spacer { flex: 1; }

/* ---------- 指标卡 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.stat {
  padding: 16px 18px;
  background: linear-gradient(150deg, #1b2531, #121a23);
  border: 1px solid #2b3643;
  border-radius: 8px;
}

.stat__label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #78838d;
  font-family: "Courier New", monospace;
}

.stat__value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  color: #c9a96a;
  font-family: "Courier New", monospace;
}

.stat__value small { font-size: 13px; color: #98a2ac; margin-left: 4px; }

.stat__foot {
  margin-top: 6px;
  font-size: 12px;
  color: #6a7580;
}

/* ---------- 趋势 ---------- */
.trend {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  padding-top: 20px;
}

.trend__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
}

.trend__bar {
  width: 60%;
  min-height: 3px;
  background: linear-gradient(180deg, #ff8b5e, #ff6b35);
  border-radius: 2px 2px 0 0;
}

.trend__date {
  font-size: 11px;
  color: #6a7580;
  font-family: "Courier New", monospace;
}

.trend__amount {
  font-size: 11px;
  color: #98a2ac;
}

/* ---------- 表格微调 ---------- */
.el-table {
  --el-table-border-color: #253039;
  --el-table-header-bg-color: #1b2531;
  --el-table-tr-bg-color: #151d26;
  --el-table-row-hover-bg-color: #1f2a36;
  --el-table-bg-color: #151d26;
  --el-table-text-color: #c2c9d1;
}

.el-table th.el-table__cell {
  color: #98a2ac;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1px;
}

.el-pagination { margin-top: 14px; justify-content: flex-end; }

.specs-editor .el-form-item { margin-bottom: 8px; }

.empty {
  padding: 40px 0;
  text-align: center;
  color: #6a7580;
  font-size: 13px;
}

.code {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #98a2ac;
}

/* ---------- 图表与图片 ---------- */
.chart {
  width: 100%;
  height: 260px;
}

.thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #34404c;
  display: block;
}

.cover-preview {
  width: 132px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #34404c;
  display: block;
}

.cover-empty {
  width: 132px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #4a5763;
  border-radius: 4px;
  color: #6a7580;
  font-size: 12px;
  background: #101821;
}

.cover-empty:hover {
  border-color: #c9a96a;
  color: #c9a96a;
}

/* ---------- 数据大屏 ---------- */
.screen-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.screen-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 3px;
  color: #f0e4c6;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.kpi {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  background: linear-gradient(150deg, #1b2531, #0f1620);
  border: 1px solid #2b3643;
  border-radius: 8px;
}

.kpi::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff8b5e, #c9a96a);
}

.kpi__label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: #78838d;
  font-family: "Courier New", monospace;
}

.kpi__value {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  font-weight: 700;
  color: #f0e4c6;
  font-family: "Courier New", monospace;
}

.kpi__value small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 400;
  color: #98a2ac;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.chart--lg {
  height: 300px;
}

@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .screen-grid { grid-template-columns: 1fr; }
}

/* ---------- 页面装修编辑器 ---------- */
.deco {
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: 14px;
  min-height: calc(100vh - 140px);
}

.deco__left,
.deco__right {
  background: #151d26;
  border: 1px solid #253039;
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
  max-height: calc(100vh - 120px);
}

.deco__center {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deco__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #151d26;
  border: 1px solid #253039;
  border-radius: 8px;
}

.deco__toolbar .spacer { flex: 1; }

.deco__panel-title {
  font-size: 12px;
  letter-spacing: 2px;
  color: #78838d;
  font-family: "Courier New", monospace;
  margin-bottom: 10px;
}

.palette-group { margin-bottom: 14px; }

.palette-group__name {
  font-size: 11px;
  color: #5f6a75;
  margin-bottom: 6px;
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #101821;
  border: 1px solid #2b3643;
  border-radius: 6px;
  font-size: 13px;
  color: #c2c9d1;
  cursor: pointer;
}

.palette-item:hover {
  border-color: #c9a96a;
  color: #c9a96a;
}

.palette-item__glyph { width: 18px; color: #c9a96a; }
.palette-item__plus { margin-left: auto; color: #6a7580; }

.phone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0f1620;
  border: 1px solid #253039;
  border-radius: 10px;
  padding: 12px;
}

.phone__bar {
  width: 375px;
  padding: 6px 0;
  text-align: center;
  font-size: 11px;
  color: #6a7580;
  font-family: "Courier New", monospace;
}

.phone__body {
  width: 375px;
  min-height: 620px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  border-radius: 8px;
  padding: 10px;
  background: #c9a96a;
  background-size: cover;
  background-position: center;
}

.dc-item {
  position: relative;
  margin-bottom: 10px;
  cursor: grab;
  border: 1px dashed transparent;
  border-radius: 6px;
}

.dc-item.is-active {
  border-color: #ff6b35;
  box-shadow: 0 0 0 2px rgba(255, 107, 53, .25);
}

.dc-item__label {
  position: absolute;
  right: 4px;
  top: -2px;
  font-size: 9px;
  padding: 1px 5px;
  background: rgba(13, 17, 23, .7);
  color: #c9a96a;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  z-index: 2;
}

.dc-item__tools {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 10px;
  padding: 4px 8px;
  background: rgba(13, 17, 23, .85);
  border-radius: 4px;
  font-size: 11px;
  color: #e8e0d1;
  z-index: 3;
}

.dc-item__tools span { cursor: pointer; }
.dc-item__tools span:hover { color: #ff6b35; }

.dc-ghost { opacity: .4; }

.dc-empty {
  padding: 60px 0;
  text-align: center;
  color: #4a3c28;
  font-size: 13px;
}

/* 画布内的简易预览 */
.pv-search {
  padding: 10px 12px;
  background: #101821;
  border: 1px solid #4b555b;
  border-radius: 8px;
  color: #6a7580;
  font-size: 12px;
}

.pv-notice {
  padding: 8px 12px;
  background: rgba(255, 107, 53, .15);
  border: 1px solid rgba(255, 107, 53, .5);
  border-radius: 6px;
  color: #7a3a1c;
  font-size: 12px;
}

.pv-nav {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(21, 29, 38, .9);
  border-radius: 10px;
}

.pv-nav__item { text-align: center; color: #c2c9d1; }
.pv-nav__icon { display: block; font-size: 20px; color: #c9a96a; }
.pv-nav__label { font-size: 11px; }

.pv-banner {
  display: flex;
  overflow: hidden;
  border-radius: 10px;
  background: #0f1620;
}

.pv-banner__item { flex: 1; min-width: 0; }
.pv-banner__img { width: 100%; height: 100%; object-fit: cover; }

.pv-banner__ph {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #c9a96a;
  gap: 4px;
}

.pv-banner__ph b { font-size: 15px; }
.pv-banner__ph small { font-size: 10px; color: #78838d; letter-spacing: 2px; }

.pv-ad { border-radius: 10px; overflow: hidden; background: #0f1620; }
.pv-ad__img { width: 100%; display: block; }

.pv-ad__ph {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a96a;
  font-size: 13px;
}

.pv-products { display: grid; gap: 8px; }

.pv-product {
  background: #151d26;
  border: 1px solid #2b3643;
  border-radius: 8px;
  padding: 8px;
}

.pv-product__img {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c9a96a;
  color: #26303a;
  border-radius: 4px;
  font-size: 24px;
}

.pv-product__name { margin-top: 6px; font-size: 11px; color: #c2c9d1; }

.pv-spacer {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #7a6a4a;
  border-radius: 4px;
  color: #5c4a30;
  font-size: 10px;
}

.pv-fab {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ff6b35;
  color: #10151b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pv-rank {
  background: #151d26;
  border: 1px solid #2b3643;
  border-radius: 10px;
  padding: 10px 12px;
}

.pv-rank__title {
  font-size: 13px;
  font-weight: 700;
  color: #e8e0d1;
  margin-bottom: 8px;
}

.pv-rank__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed #253039;
  font-size: 12px;
  color: #c2c9d1;
}

.pv-rank__no {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #22303c;
  color: #98a2ac;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.pv-rank__no.is-top {
  background: #ff6b35;
  color: #10151b;
}

.pv-group__tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.pv-group__tabs span {
  padding: 4px 10px;
  border-radius: 14px;
  background: #1b2531;
  border: 1px solid #2b3643;
  font-size: 11px;
  color: #98a2ac;
}

.pv-group__tabs span.is-on {
  background: #c9a96a;
  border-color: #c9a96a;
  color: #10151b;
}

.pv-coupon {
  background: #151d26;
  border: 1px solid #2b3643;
  border-radius: 10px;
  padding: 10px 12px;
}

.pv-coupon__title {
  font-size: 12px;
  color: #e8e0d1;
  margin-bottom: 8px;
}

.pv-coupon__row {
  display: flex;
  gap: 8px;
}

.pv-coupon__item {
  flex: 1;
  padding: 8px;
  text-align: center;
  border-radius: 6px;
  background: rgba(255, 107, 53, .12);
  border: 1px dashed rgba(255, 107, 53, .5);
}

.pv-coupon__item b { display: block; color: #ff6b35; font-size: 16px; }
.pv-coupon__item small { color: #98a2ac; font-size: 9px; }

.pv-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(120deg, #1b2531, #121a23);
  border: 1px solid #2b3643;
  border-radius: 10px;
}

.pv-entry__icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #22303c;
  color: #c9a96a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-entry__body { flex: 1; }
.pv-entry__body b { display: block; font-size: 13px; color: #e8e0d1; }
.pv-entry__body small { font-size: 10px; color: #78838d; }
.pv-entry__arrow { color: #6a7580; }

.pv-menu {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(21, 29, 38, .92);
  border-radius: 10px;
}

.pv-menu__item { text-align: center; color: #c2c9d1; }
.pv-menu__item span { display: block; font-size: 18px; color: #c9a96a; }
.pv-menu__item small { font-size: 10px; }

.pv-backtop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(21, 29, 38, .9);
  border: 1px solid #34404c;
  color: #c9a96a;
  font-size: 11px;
}

.pv-gallery {
  display: grid;
  gap: 6px;
}

.pv-gallery__item {
  height: 56px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1b2531, #0f1620);
  color: #c9a96a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  overflow: hidden;
}

.pv-gallery__img { width: 100%; height: 100%; object-fit: cover; }

.pv-rich {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: #2a3546;
  font-size: 12px;
  line-height: 1.7;
}

.pv-video {
  height: 100px;
  border-radius: 8px;
  background: #0f1620;
  border: 1px dashed #4a5763;
  color: #c9a96a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.pv-hotzone {
  position: relative;
  border-radius: 8px;
  background: linear-gradient(135deg, #1b2531, #0f1620);
  overflow: hidden;
}

.pv-hotzone__area {
  position: absolute;
  border: 1px dashed rgba(255, 107, 53, .8);
  background: rgba(255, 107, 53, .15);
  border-radius: 4px;
}

.pv-booking {
  position: relative;
  padding: 46px 12px 12px;
  border-radius: 8px;
  background: linear-gradient(125deg, #39434d, #222c36 45%, #131a21);
  border: 1px solid rgba(201, 169, 106, .28);
}

.pv-booking__badge {
  position: absolute;
  right: 10px;
  top: 8px;
  font-size: 8px;
  color: rgba(232, 217, 176, .6);
}

.pv-booking__kicker { font-size: 9px; letter-spacing: 1px; color: #ff9d74; }
.pv-booking__venue { margin-top: 4px; font-size: 16px; font-weight: 900; color: #fff; }
.pv-booking__meta { margin-top: 4px; font-size: 10px; color: #cfc7b6; }

.pv-booking__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #ff6b35;
  color: #141b24;
  font-size: 12px;
  font-weight: 800;
}

.pv-booking__btn small { font-size: 8px; opacity: .75; }

.repeater {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.repeater--col {
  flex-direction: column;
  align-items: stretch;
  padding: 8px;
  border: 1px solid #2b3643;
  border-radius: 6px;
}

.repeater__row { display: flex; gap: 6px; align-items: center; }

.deco-bg-preview {
  width: 120px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #34404c;
}

/* ---------- 底部导航配置 ---------- */
.tb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #253039;
}

.tb-row:last-child { border-bottom: 0; }

.tb-row__idx {
  width: 24px;
  color: #6a7580;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.tb-preview {
  display: flex;
  max-width: 420px;
  padding: 10px;
  background: #111923;
  border: 1px solid #253039;
  border-radius: 10px;
}

.tb-preview__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #98a2ac;
}

.tb-preview__icon { font-size: 18px; color: #dabb6a; }
.tb-preview__item small { font-size: 11px; }

/* 会员活动名单 */
.event-signup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #253039;
}

.event-signup:last-child {
  border-bottom: 0;
}

.event-signup__main {
  min-width: 0;
}

.event-signup__main b {
  font-size: 13px;
  color: #e8e0d1;
}

/* 等级图标 */
.tier-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #253039;
}

.tier-row:last-child {
  border-bottom: 0;
}

.tier-row__info {
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tier-row__info b {
  font-size: 14px;
  color: #e8e0d1;
}

.tier-row__preview {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #34404c;
  border-radius: 6px;
  background: #101821;
}

.tier-row__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tier-row__empty {
  font-size: 11px;
  color: #5f6a75;
}
