/* =============================================================
   YT 充值系统（sprpro 对接版）
   样式层：复刻原版 Ant Design 深色侧边栏 + 顶栏 + xt-* 业务风格
   ============================================================= */

:root {
  --xt-primary: #1677ff;
  --el-color-primary: #1677ff;
  --el-color-primary-light-3: #4096ff;
  --el-color-primary-light-5: #69b1ff;
  --el-color-primary-light-7: #91caff;
  --el-color-primary-light-8: #adc6ff;
  --el-color-primary-light-9: #d6e4ff;
  --el-color-primary-dark-2: #0958d9;
  --el-color-success: #52c41a;
  --el-color-warning: #faad14;
  --el-color-danger: #ff4d4f;
  --el-color-error: #ff4d4f;
  --el-border-radius-base: 6px;
  --el-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --xt-sider-bg: #001529;
  --xt-sider-w: 222px;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; padding: 0; }
body {
  font-family: var(--el-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f0f2f5;
  font-weight: 500;
  -webkit-text-size-adjust: 100%;
}
/* 电脑 / 手机统一 UI（手机端抽屉式导航，全端一致） */

/* 字重统一（对齐原版观感） */
.el-form-item__label, .el-descriptions__label, .el-descriptions__content,
.el-table .cell, .el-statistic__content, .el-alert__title, .el-card__header,
.el-select__selected-item, .el-date-editor, .el-input__inner { font-weight: 500 !important; }
.el-button, .el-menu-item, .el-sub-menu__title, .el-card__header, .el-dialog__title,
.el-statistic__head, h1, h2, h3, h4, h5, .el-table th.el-table__cell { font-weight: 600 !important; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d9d9d9; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #bfbfbf; }
.el-dialog__body { word-break: break-word; }

/* ================= 登录页（原版 xt-login） ================= */
.xt-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #14243c, #0c1626 60%, #0a1220);
}
.xt-login-card {
  width: 420px; max-width: 92vw;
  padding: 44px 40px 36px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}
.xt-login-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 26px;
  letter-spacing: 2px;
}
.xt-login-sub { text-align: center; color: #8c8c8c; font-size: 13px; margin: -14px 0 20px; }
.xt-login-input .el-input__wrapper { padding: 11px 14px; border-radius: 8px; }
.xt-login-btn {
  margin-top: 20px;
  width: 100%;
  height: 46px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 6px;
  border-radius: 8px;
}
.xt-login-foot { margin-top: 22px; text-align: center; color: #555; font-size: 14px; }
.xt-login-foot a { color: #1677ff; font-weight: 600; cursor: pointer; }

/* ================= 侧边栏（原版 Ant dark 风格） ================= */
.xt-sider {
  background: var(--xt-sider-bg);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  transition: width .2s ease;
  box-shadow: 2px 0 8px rgba(0, 0, 0, .25);
}
.xt-brand {
  height: 52px;
  margin: 12px 14px 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #1d3660, #16324f);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 12px rgba(0, 0, 0, .25);
  white-space: nowrap;
  overflow: hidden;
  cursor: default;
  transition: transform .18s ease, box-shadow .18s ease;
}
.xt-brand:hover {
  transform: translate(-2px, -2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 3px 3px 10px rgba(0, 0, 0, .35);
}
.xt-brand-logo {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1677ff, #0958d9);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0;
}
.xt-brand-collapsed .xt-brand-text { display: none; }
.xt-brand-fold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: auto;
  opacity: .5;
  font-size: 0;
}
.xt-brand-fold svg { width: 15px; height: 15px; }
.xt-brand:hover .xt-brand-fold { opacity: .95; }
.xt-sider-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; padding-bottom: 8px; }
.xt-sider-scroll::-webkit-scrollbar { width: 5px; }
.xt-sider-scroll::-webkit-scrollbar-track { background: transparent; }
.xt-sider-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 3px; }
.xt-sider-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .35); }

/* 菜单（Ant dark 观感，覆盖 Element Plus） */
.xt-sider .el-menu { background: transparent; border-right: none; padding: 0 8px; }
.xt-sider .el-menu-item {
  height: 42px; line-height: 42px;
  margin: 2px 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}
.xt-sider .el-menu-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.xt-sider .el-menu-item.is-active {
  background: var(--xt-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 119, 255, .45);
}
.xt-sider .el-menu-item.is-active::after { display: none; }

.xt-menu-group {
  padding: 14px 12px 6px;
  color: rgba(255, 255, 255, .38);
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}
.xt-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  margin-left: 8px;
  background: #ff4d4f;
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.xt-sider-collapse {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
}
.xt-sider-collapse .el-button { color: rgba(255, 255, 255, .55); font-size: 13px; }
.xt-sider-collapse .el-button:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* 侧边栏容器（el-aside 浮动圆角面板） */
.xt-sider-wrap {
  background: #f0f2f5;
  padding: 14px 0 14px 14px;
  overflow: visible;
  transition: width .2s ease;
}
.xt-sider-wrap .el-aside { overflow: visible; }
.xt-sider {
  border-radius: 16px;
  height: calc(100vh - 28px);
  box-shadow: 0 6px 24px rgba(0, 21, 41, .35), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

/* 菜单图标（内联 SVG） */
.xt-mi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  margin-right: 10px;
  flex: 0 0 16px;
  font-size: 0;
}
.xt-mi svg { width: 16px; height: 16px; }

/* 折叠态：仅显示图标（需覆盖 Element Plus 对 span 的隐藏） */
.xt-sider .el-menu--collapse { width: 100%; padding: 0 6px; }
.xt-sider .el-menu--collapse > .el-menu-item { padding: 0 !important; justify-content: center; }
.xt-sider .el-menu--collapse > .el-menu-item span:not(.xt-mi) { display: none; }
.xt-sider .el-menu--collapse > .el-menu-item .xt-mi {
  display: inline-flex !important;
  visibility: visible !important;
  width: 16px !important; height: 16px !important;
  margin-right: 0;
  overflow: visible !important;
}

/* 折叠态：品牌框 / 分组标题 / 底部用户卡 */
.xt-sider-mini .xt-brand { justify-content: center; padding: 0; margin: 12px 10px 8px; }
.xt-sider-mini .xt-brand-text, .xt-sider-mini .xt-brand-fold { display: none; }
.xt-sider-mini .xt-menu-group {
  height: 1px; padding: 0; margin: 10px 16px;
  font-size: 0; line-height: 0; letter-spacing: 0;
  background: rgba(255, 255, 255, .12); color: transparent;
}
.xt-sider-mini .xt-sider-user { justify-content: center; padding: 8px; margin: 8px 8px 10px; }
.xt-sider-mini .xt-sider-user-info, .xt-sider-mini .xt-sider-logout { display: none; }

/* 侧边栏底部用户信息卡 */
.xt-sider-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 10px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .18s ease;
}
.xt-sider-user:hover { background: rgba(255, 255, 255, .1); }
.xt-sider-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1677ff, #0958d9);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(22, 119, 255, .4);
}
.xt-sider-user-info { flex: 1; min-width: 0; }
.xt-sider-un {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xt-sider-bal { margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.xt-sider-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: all .15s ease;
  font-size: 0;
}
.xt-sider-logout svg { width: 14px; height: 14px; }
.xt-sider-logout:hover { color: #fff; background: rgba(255, 77, 79, .35); }

/* ================= 顶栏（原版 Ant dark header） ================= */
.xt-header {
  display: flex;
  align-items: center;
  background: var(--xt-sider-bg);
  color: #fff;
  padding: 0 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  position: relative;
  z-index: 10;
}
.xt-header-title { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.xt-header-crumb { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.xt-header-crumb-sub { color: rgba(255, 255, 255, .45); font-size: 12px; letter-spacing: 1px; }
.xt-header-crumb-sep { color: rgba(255, 255, 255, .3); font-size: 12px; }
.xt-header-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.xt-header-msg {
  font-size: 14px; cursor: pointer; position: relative;
  color: rgba(255, 255, 255, .85); user-select: none;
}
.xt-header-msg:hover { color: #fff; }
.xt-msg-dot {
  position: absolute; top: -8px; right: -20px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  background: #ff4d4f;
  border-radius: 9px;
  color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.xt-balance-inline { font-size: 13px; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.xt-balance-inline-num { margin-left: 6px; font-size: 17px; font-weight: 800; color: #fa8c16; font-variant-numeric: tabular-nums; }

/* ================= 主内容区 ================= */
.xt-main { background: #f0f2f5; padding: 18px 22px; overflow-y: auto; }

/* 卡片通用（原版 xt-card 观感） */
.el-card { border-radius: 10px; }
.el-card__header { padding: 14px 20px; font-size: 15px; }
.el-card__body { padding: 18px 20px; }

.xt-hover-lift { transition: transform .18s ease, box-shadow .18s ease; }
.xt-hover-lift:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 8px rgba(0, 0, 0, .15); }
.xt-hover-lift:active { transform: translate(0); box-shadow: none; }

.xt-info-card { cursor: default; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.xt-info-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .1); border-color: #d6e4ff; }

.xt-page-card .el-card__header { display: flex; align-items: center; }
.xt-toolbar { width: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #595959; font-size: 13px; }
.xt-toolbar-grow { flex: 1; }

/* ================= 统计卡（原版 xt-gen-stat） ================= */
.xt-gen-stats { margin-bottom: 16px; }
.xt-gen-stat {
  height: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  cursor: default;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.xt-gen-stat:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 10px rgba(0, 0, 0, .1);
  border-color: #d6e4ff;
}
.xt-gen-stat:active { transform: translate(0); box-shadow: none; }
.xt-gen-stat-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.xt-gen-stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  font-size: 15px;
}
.xt-gen-stat-icon svg { width: 15px; height: 15px; }
.xt-gen-stat-label { color: #8c8c8c; font-size: 13px; }
.xt-gen-stat-num { font-size: 22px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.xt-gen-stat-sub { margin-top: 4px; color: #b0b0b0; font-size: 12px; }

/* ================= 生成链接页 ================= */
.xt-gen-card { height: 100%; }
.xt-gen-result-card { margin-top: 16px; }
.xt-gen-field { margin-bottom: 18px; }
.xt-gen-field-label {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
  margin-bottom: 8px;
  font-weight: 600; color: #262626;
}
.xt-gen-field-hint { font-weight: 400; font-size: 12px; color: #8c8c8c; }
.xt-gen-cost {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin: 4px 0 18px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fff7e6, #fff1f0);
  border: 1px solid #ffd591;
  border-radius: 10px;
}
.xt-gen-cost-num { font-size: 30px; font-weight: 800; line-height: 1.1; color: #fa541c; font-variant-numeric: tabular-nums; }
.xt-gen-cost-num-label { font-size: 14px; font-weight: 600; color: #ad4e00; }
.xt-gen-cost-side { text-align: right; color: #8c6b32; font-size: 13px; line-height: 1.7; }
.xt-gen-tips { color: #8c8c8c; font-size: 12px; line-height: 2; }
.xt-gen-tips b { color: #595959; }

/* 分类卡片（按钮式，点击弹窗生成） */
.xt-cat-card {
  height: 148px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  user-select: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.xt-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .09);
  border-color: #91caff;
}
.xt-cat-card:active { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, .08); }
.xt-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: #e6f4ff;
  color: var(--xt-primary);
  font-size: 0;
  transition: transform .18s ease;
}
.xt-cat-icon svg { width: 22px; height: 22px; }
.xt-cat-card:hover .xt-cat-icon { transform: scale(1.08); }
.xt-cat-name {
  font-weight: 700;
  font-size: 15px;
  color: #262626;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.xt-cat-types { display: flex; gap: 5px; }
.xt-cat-type {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.xt-cat-type.meal { background: #e6f4ff; color: #1677ff; }
.xt-cat-type.custom { background: #fff0f0; color: #cf1322; }
.xt-cat-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: #8c8c8c;
  transition: color .16s ease;
}
.xt-cat-card:hover .xt-cat-go { color: var(--xt-primary); }
.xt-cat-arrow { display: inline-flex; font-size: 0; transition: transform .18s ease; }
.xt-cat-arrow svg { width: 13px; height: 13px; }
.xt-cat-card:hover .xt-cat-arrow { transform: translateX(3px); }

/* 弹窗：标题 / 步骤 / 类型选择 */
.xt-dlg-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; color: #1f1f1f; }
.xt-dlg-title-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: #e6f4ff;
  color: var(--xt-primary);
  font-size: 0;
}
.xt-dlg-title-ic svg { width: 16px; height: 16px; }
.xt-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px;
  font-weight: 700;
  font-size: 14.5px;
  color: #262626;
}
.xt-step-title .el-input { margin-left: auto; }
.xt-type-btns { display: flex; gap: 12px; }
.xt-type-btns.single .xt-type-btn { cursor: default; }
.xt-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #f0f0f0;
  border-radius: 11px;
  cursor: pointer;
  user-select: none;
  transition: all .16s ease;
}
.xt-type-btn:hover { border-color: #91caff; background: #f7fbff; }
.xt-type-btn.on {
  border-color: var(--xt-primary);
  background: #f0f7ff;
  box-shadow: 0 2px 10px rgba(22, 119, 255, .16);
}
.xt-type-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: #f0f0f0;
  color: #8c8c8c;
  font-size: 0;
  transition: all .16s ease;
}
.xt-type-ic svg { width: 18px; height: 18px; }
.xt-type-btn.on .xt-type-ic {
  background: linear-gradient(135deg, #1677ff, #0958d9);
  color: #fff;
  box-shadow: 0 3px 8px rgba(22, 119, 255, .35);
}
.xt-type-name { font-weight: 700; font-size: 14px; color: #262626; }
.xt-type-desc { margin-top: 2px; font-size: 12px; color: #8c8c8c; }
.xt-type-wait {
  margin-top: 6px;
  padding: 26px 16px;
  text-align: center;
  color: #b0b0b0;
  font-size: 13px;
  background: #fafafa;
  border: 1px dashed #e5e5e5;
  border-radius: 10px;
}

/* 弹窗：套餐列表 / 表单 / 结果 */
.xt-dlg-pkgs { max-height: 330px; overflow-y: auto; padding-right: 2px; }
.xt-dlg-form { padding-top: 4px; }
.xt-dlg-result { margin-top: 18px; }
.xt-dlg-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.xt-dlg-result-ok { font-weight: 700; font-size: 15px; color: #389e0d; }

/* 套餐价格表（原版 xt-price-*） */
.xt-price-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
  color: #8c8c8c; font-size: 12px;
}
.xt-price-head b { color: #595959; }
.xt-price-name { font-weight: 600; }
.xt-price-name-cur { color: var(--xt-primary); }
.xt-price-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 8px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all .16s ease;
}
.xt-price-row:hover { background: #f0f7ff; border-color: #91caff; transform: translateY(-1px); }
.xt-price-row-cur { background: #e6f4ff !important; border-color: var(--xt-primary) !important; box-shadow: inset 0 0 0 1px var(--xt-primary); }
.xt-price-row-main { flex: 1; min-width: 0; }
.xt-price-row-name { font-weight: 600; color: #262626; font-size: 14px; }
.xt-price-row-desc { font-size: 12px; color: #8c8c8c; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-price-row-price { text-align: right; flex: 0 0 auto; }
.xt-price-row-price b { font-size: 17px; color: #fa541c; font-variant-numeric: tabular-nums; }
.xt-price-row-price span { display: block; font-size: 11px; color: #b0b0b0; }

/* 生成结果（原版 xt-link-result） */
.xt-link-result { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 8px; padding: 12px 14px; max-height: 320px; overflow: auto; }
.xt-link-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #f0f0f0; }
.xt-link-row:last-child { border-bottom: none; }
.xt-link-url { flex: 1 1 auto; color: #1677ff; word-break: break-all; margin-right: 12px; font-weight: 500; }
.xt-link-row-idx {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 6px;
  background: #f0f5ff; color: #2f54eb;
  font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ================= 概览页 ================= */
/* 问候横幅 */
.xt-hero {
  margin-bottom: 16px;
  border-radius: 14px;
  background:
    radial-gradient(1100px 320px at 88% -60%, rgba(64, 150, 255, .5), transparent 60%),
    radial-gradient(700px 280px at 4% 130%, rgba(22, 119, 255, .35), transparent 60%),
    linear-gradient(112deg, #0a2a5e 0%, #103e8c 48%, #1668dc 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.xt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.xt-hero-in { position: relative; padding: 26px 28px; }
.xt-hero-hi { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.xt-hero-sub { margin-top: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .78); line-height: 1.7; }
.xt-hero-sub b { color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; padding: 0 2px; }
.xt-hero-btns { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.xt-hero-btn {
  height: 38px;
  padding: 0 20px;
  border: none;
  border-radius: 9px;
  background: #fff;
  color: #0f3f96;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 21, 41, .3);
  transition: transform .16s ease, box-shadow .16s ease;
}
.xt-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(0, 21, 41, .4);
  color: #0a2a5e;
  border: none;
  background: #fff;
}
.xt-hero-btn.ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.xt-hero-btn.ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.xt-quick-item {
  cursor: pointer;
  background: #f7f8fa;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 20px 8px 16px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.xt-quick-item:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 12px rgba(0, 0, 0, .1); border-color: #91caff; }
.xt-quick-item:active { transform: translate(0); box-shadow: none; }
.xt-quick-icon { font-size: 24px; color: var(--xt-primary); margin-bottom: 8px; }
.xt-quick-icon svg { width: 24px; height: 24px; }
.xt-quick-label { font-size: 14px; font-weight: 600; color: #333; }

/* 图表（7 日趋势柱状图） */
.xt-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 6px 2px 0; }
.xt-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.xt-chart-bar { width: 100%; max-width: 34px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #69b1ff, #1677ff); transition: filter .15s ease; min-height: 3px; position: relative; }
.xt-chart-bar em { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11px; color: #595959; font-weight: 600; font-variant-numeric: tabular-nums; }
.xt-chart-col:hover .xt-chart-bar { filter: brightness(1.12); }
.xt-chart-day { font-size: 11px; color: #b0b0b0; white-space: nowrap; }

/* 公告条目 */
.xt-notice-item { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.xt-notice-item:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 12px rgba(0, 0, 0, .1); border-color: #91caff; background: #f5faff; }

/* ================= 余额兑换页（原版 xt-redeem） ================= */
.xt-redeem-result {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f6ffed, #e6fffb);
  border: 1px solid #b7eb8f;
}
.xt-redeem-result-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xt-redeem-ok-text { font-size: 16px; font-weight: 700; color: #389e0d; }
.xt-redeem-gain { margin-left: auto; font-size: 18px; font-weight: 800; color: #fa8c16; }
.xt-redeem-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.xt-redeem-flow-label { font-size: 12px; color: #8c8c8c; font-weight: 600; }
.xt-redeem-flow-val { font-size: 16px; font-weight: 700; color: #595959; font-variant-numeric: tabular-nums; }
.xt-redeem-flow-new { color: #389e0d; }
.xt-redeem-arrow { color: #52c41a; font-size: 14px; }
.xt-redeem-bar { margin-top: 12px; height: 6px; border-radius: 4px; background: #e8f5e0; overflow: hidden; }
.xt-redeem-bar-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #95de64, #52c41a); width: 0; animation: xt-bar-run .9s ease-out .15s forwards; }
@keyframes xt-bar-run { from { width: 0; } to { width: 100%; } }
.xt-redeem-record {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin-bottom: 8px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}
.xt-redeem-record-code { font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 12px; color: #595959; font-weight: 600; }

/* ================= 站内信 ================= */
.xt-msg-item { border-radius: 10px !important; padding-left: 12px !important; padding-right: 12px !important; transition: background .18s ease; }
.xt-msg-item:hover { background: #f0f7ff; }
.xt-msg-unread { background: #f6faff; box-shadow: inset 3px 0 0 var(--xt-primary); }
.xt-msg-unread:hover { background: #eaf3ff; }
.xt-msg-content { white-space: pre-wrap; word-break: break-word; line-height: 1.75; font-size: 14px; color: #333; max-height: 52vh; overflow-y: auto; }

/* ================= 通用小件 ================= */
.xt-empty { padding: 26px 10px; text-align: center; color: #b0b0b0; font-size: 13px; }
.xt-mono { font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 12px; }
.xt-url-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; color: #1677ff; }
.xt-decoration { text-decoration: line-through; color: #b0b0b0; }
.xt-pager { margin-top: 14px; display: flex; justify-content: flex-end; }
.xt-equal-card { display: flex; flex-direction: column; height: 100%; }
.xt-equal-card .el-card__body { display: flex; flex-direction: column; flex: 1; }

/* 套餐管理：物品面板 */
.xt-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.xt-item-card {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
}
.xt-item-card:hover { border-color: #91caff; background: #f0f7ff; }
.xt-check-panel { margin-bottom: 14px; }
.xt-input-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.xt-input-panel { padding: 12px; background: #fafafa; border-radius: 8px; border: 1px solid #f0f0f0; }
.xt-custom-panel { padding: 12px 14px; background: #f6faff; border: 1px solid #d6e4ff; border-radius: 10px; margin-bottom: 14px; }
.xt-panel-desc { font-size: 12px; color: #8c8c8c; line-height: 1.7; margin-top: 6px; }
.xt-tab-panel { padding: 4px 0; }
.xt-align { text-align: right; }

/* 表格细化（对齐原版） */
.el-table { border-radius: 8px; }
.el-table th.el-table__cell { background: #fafafa !important; color: #595959; font-size: 13px; }
.el-table .el-table__row:hover > td.el-table__cell { background: #f0f7ff !important; }

/* 对话框（原版观感） */
.el-dialog { border-radius: 12px !important; box-shadow: 0 8px 32px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .06) !important; }
.el-dialog__header { padding: 18px 22px 14px !important; border-bottom: 1px solid #f0f0f0; margin: 0 !important; }
.el-dialog__title { font-size: 16px !important; font-weight: 600 !important; }
.el-dialog__body { padding: 18px 22px !important; }
.el-dialog__footer { padding: 12px 22px 18px !important; }

/* 标签 / 分页 */
.el-tag { border-radius: 6px; font-weight: 500; }
.el-pagination { font-weight: 500; }

/* ================= 统一 UI：侧边栏（电脑常驻可折叠 / 窄屏抽屉） ================= */
/* 顶栏汉堡按钮（仅窄屏显示，打开侧边抽屉） */
.xt-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px; height: 36px;
  margin-right: 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  font-size: 0;
  transition: background .15s ease;
}
.xt-hamburger svg { width: 19px; height: 19px; }
.xt-hamburger:active { background: rgba(255, 255, 255, .22); }

/* 抽屉遮罩 */
.xt-drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 2000;
}

/* 电脑端：侧边栏常驻，宽度由 el-aside 控制（点击顶部品牌框折叠 / 展开） */
.xt-sider-wrap {
  position: relative;
  top: auto; left: auto; bottom: auto;
  width: auto;
  z-index: 5;
  padding: 14px 0 14px 14px;
  background: #f0f2f5;
  overflow: visible;
  transition: width .2s ease;
}
.xt-sider {
  height: calc(100vh - 28px);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 21, 41, .3), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.xt-brand { cursor: pointer; }
.xt-sider-collapse { display: none; }

/* 窄屏：固定抽屉（滑出 / 收起） */
@media (max-width: 900px) {
  .xt-sider-wrap {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 232px !important;
    padding: 12px;
    z-index: 2001;
    background: transparent;
    transform: translateX(-110%);
    transition: transform .25s ease;
  }
  .xt-sider-wrap.xt-drawer-open { transform: translateX(0); }
  .xt-sider {
    height: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 21, 41, .5), inset 0 0 0 1px rgba(255, 255, 255, .04);
  }
}
@media (min-width: 901px) {
  .xt-hamburger { display: none; }
  .xt-drawer-mask { display: none; }
}

/* 弹窗防溢出：视口极窄时上限 96vw，宽屏无影响 */
.el-dialog { max-width: 96vw; }
