/* ==========================================================================
   会员中心 v10 —— 创欧云控制台皮肤（console skin v2）
   参考：https://console.coyjs.cn/client/*（TDesign 控制台）
   实测参数：侧栏 232 / 顶栏 56 / 主色 #00ac9c / 卡片直角 1px #e5eaf3 / 无阴影
   作用域：public/clientarea/template/pc/v10
   ========================================================================== */

:root {
  --c-primary: #00ac9c;
  --c-primary-hover: #12bdac;
  --c-primary-active: #007a6f;
  --c-primary-light: #f2fbfa;
  --c-primary-light-2: #e6f7f5;
  --c-ink: #1f2937;
  --c-ink-2: #5b6b82;
  --c-muted: #5b6b82;
  --c-muted-2: #94a0b2;
  --c-line: #e5eaf3;
  --c-line-2: #eef2f7;
  --c-line-input: #cfd5de;
  --c-bg: #f5f7fb;
  --c-card: #ffffff;
  --c-danger: #d54941;
  --c-success: #0c9d4f;
  --c-warning: #d98600;
  --c-orange: #d98600;
  --c-radius: 0px;
  --c-radius-sm: 0px;
  --c-sidebar: 232px;
  --c-header: 56px;

  --v10-radius: 0px;
  --v10-radius-sm: 0px;
  --v10-shadow-sm: none;
  --v10-shadow: none;
}

/* ---------- 基础 ---------- */
html,
body {
  background: var(--c-bg) !important;
  color: var(--c-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.template,
.template > .el-container,
.template .el-main,
.template #app {
  background: var(--c-bg) !important;
}

.template {
  min-height: 100vh;
}

.template > .el-container > .el-container {
  min-width: 0;
  background: var(--c-bg) !important;
}

/* ==========================================================================
   侧边栏
   ========================================================================== */
.template .el-aside.cx-side {
  width: var(--c-sidebar) !important;
  background: #fff !important;
  border-right: 0;
  padding: 0 !important;
  overflow: hidden auto;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.template .el-aside.cx-side::-webkit-scrollbar {
  width: 4px;
}

.template .el-aside.cx-side::-webkit-scrollbar-thumb {
  background: #dfe5ef;
}

/* Logo 区（56px） */
.template .cx-logo {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 20px;
  flex: 0 0 56px;
  border-bottom: 1px solid #f1f4f9;
  text-decoration: none;
  overflow: hidden;
}

.template .cx-logo img {
  height: 26px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  display: block;
}

/* 菜单 */
.template .el-aside .el-menu.cx-menu,
.template .el-aside .el-menu {
  border-right: 0;
  padding: 8px 0 12px;
  background: transparent;
  flex: 1 1 auto;
  overflow: visible;
}

.template .el-aside .el-menu-item,
.template .el-aside .el-submenu__title {
  height: 40px;
  line-height: 40px;
  margin: 0 !important;
  padding: 0 16px 0 20px !important;
  font-size: 14px;
  background: #fff;
  color: var(--c-ink-2);
  border-radius: 0;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}

.template .el-aside .el-menu-item .cx-ico,
.template .el-aside .el-submenu__title .cx-ico {
  font-size: 17px;
  width: 17px;
  margin-right: 12px;
  color: #7a889e;
  flex: 0 0 17px;
  text-align: center;
}

.template .el-aside .el-menu-item:hover,
.template .el-aside .el-submenu__title:hover {
  background: #f3f5f9;
  color: var(--c-ink);
}

.template .el-aside .el-menu-item:hover .cx-ico,
.template .el-aside .el-submenu__title:hover .cx-ico {
  color: #7a889e;
}

/* 一级分组：展开/激活时标题转为深色 */
.template .el-aside .el-menu-item.is-active,
.template .el-aside .el-submenu.is-active > .el-submenu__title,
.template .el-aside .el-submenu.is-active > .el-submenu__title .cx-ico {
  color: var(--c-ink);
}

.template .el-aside .el-submenu .el-menu {
  padding: 4px 0 0;
  background: #fff;
}

/* 二级项（36px / 13px / 左缩进 56px） */
.template .el-aside .el-submenu .el-menu-item {
  height: 36px;
  line-height: 36px;
  padding: 0 16px 0 56px !important;
  font-size: 13px;
  color: var(--c-ink-2);
  min-width: 0;
  display: flex;
  align-items: center;
}

.template .el-aside .el-submenu .el-menu-item:hover {
  background: #f3f5f9;
  color: var(--c-ink);
}

.template .el-aside .el-submenu .el-menu-item.is-active {
  background: #f5f7fb !important;
  color: var(--c-primary);
  font-weight: 400 !important;
}

.template .el-aside .el-submenu .el-menu-item.is-active::after {
  content: none;
}

/* 展开箭头 */
.template .el-aside .el-submenu__icon-arrow {
  right: 16px;
  margin-top: -5px;
  font-size: 12px;
  color: #9aa6b8;
}

/* 菜单链接 */
.template .el-aside .menu-alink {
  text-decoration: none;
  display: block;
  color: inherit;
}

.template .el-aside .line {
  display: none;
}

/* 底部品牌 */
.template .cx-side-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--c-line-2);
  font-size: 12px;
  color: var(--c-muted-2);
}

.template .cx-side-foot .cx-foot-ver {
  color: #b6c0cf;
  font-size: 11px;
}

/* 菜单未读角标 */
.template .el-aside .cx-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 8px;
  border-radius: 9px;
  background: #e34d59;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-style: normal;
}

/* ==========================================================================
   顶栏 56px
   ========================================================================== */
.template .el-header.cx-header,
.template .cx-header {
  height: var(--c-header) !important;
  line-height: normal;
  padding: 0 24px 0 32px !important;
  background: #fff !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0;
}

.template .cx-hd-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

/* 汉堡图标（纯 CSS，不依赖图片） */
.template .cx-burger {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.template .cx-burger i {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #4b5563;
  border-radius: 1px;
}

.template .cx-hd-left .menu-img {
  width: 20px;
  height: 20px;
  opacity: 0.65;
  cursor: pointer;
}

.template .cx-hd-left .cx-hd-title {
  font-size: 14px;
  color: var(--c-ink);
  font-weight: 400;
  white-space: nowrap;
}

.template .cx-hd-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.template .cx-bell {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 24px;
}

.template .cx-bell img {
  width: 20px;
  height: 20px;
  opacity: 0.75;
}

.template .cx-bell .cx-bell-dot {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e34d59;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

/* 用户区 */
.template .cx-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  height: 40px;
}

.template .cx-avatar {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  background: #e8efff;
  color: var(--c-primary);
  font-size: 12px;
  line-height: 24px;
  text-align: center;
  overflow: hidden;
}

.template .cx-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template .cx-user-name {
  font-size: 14px;
  color: var(--c-ink);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template .cx-balance {
  font-size: 14px;
  color: var(--c-ink);
}

.template .cx-balance em {
  font-style: normal;
  color: var(--c-muted);
  margin-right: 2px;
}

.template .cx-user .el-icon-arrow-down {
  font-size: 12px;
  color: #8b98ab;
}

/* ==========================================================================
   内容区
   ========================================================================== */
.template .el-main {
  padding: 0 24px 24px !important;
  background: var(--c-bg) !important;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ==========================================================================
   卡片
   ========================================================================== */
.cx-card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.cx-card-hd {
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cx-card-hd.bordered {
  border-bottom: 1px solid var(--c-line-2);
}

.cx-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.4;
}

.cx-card-bd {
  padding: 0 20px 20px;
}

.cx-link {
  font-size: 13px;
  color: var(--c-primary);
  cursor: pointer;
  text-decoration: none;
}

.cx-link:hover {
  color: var(--c-primary-hover);
}

.cx-muted {
  color: var(--c-muted);
  font-size: 13px;
}

.cx-unit {
  font-size: 13px;
  color: var(--c-muted);
  margin-left: 4px;
}

/* ==========================================================================
   控制台首页
   ========================================================================== */
.cx-dash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.cx-dash-left,
.cx-dash-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* 顶部指标行：欢迎卡 + 四指标 */
.cx-dash-top {
  display: grid;
  grid-template-columns: 1.94fr 1fr 1fr 1fr 1fr;
  gap: 16px;
}

.cx-welcome {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cx-welcome-hd {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cx-welcome-avatar {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: #eaf1ff;
  color: var(--c-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
  flex: 0 0 32px;
}

.cx-welcome-hello {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
}

.cx-welcome-date {
  font-size: 13px;
  color: var(--c-muted);
  margin-left: 2px;
}

.cx-welcome-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cx-tag-soft {
  height: 24px;
  line-height: 24px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 2px;
  background: #fdf4e2;
  color: #b7791f;
}

.cx-tag-soft.is-ok {
  background: #e8f7ee;
  color: #0c9d4f;
}

.cx-welcome-btns {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

/* 指标卡 */
.cx-metric {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cx-metric-label {
  font-size: 13px;
  color: var(--c-muted);
}

.cx-metric-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cx-metric-value.is-orange {
  color: var(--c-orange);
}

.cx-metric-sub {
  font-size: 12px;
  color: var(--c-muted-2);
}

/* 我的产品九宫格 */
.cx-prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 24px 18px;
}

.cx-prod-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 16px;
  cursor: pointer;
}

.cx-prod-item:hover {
  background: #f7f9fc;
}

.cx-prod-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  border-radius: 0;
}

.cx-prod-ico.is-blue {
  background: var(--c-primary);
}

.cx-prod-ico.is-indigo {
  background: #4b5ae0;
}

.cx-prod-ico.is-sky {
  background: #3d7eff;
}

.cx-prod-ico.is-green {
  background: #0c9d4f;
}

.cx-prod-ico.is-gray {
  background: #eef1f6;
  color: #8b98ab;
}

.cx-prod-name {
  font-size: 14px;
  color: var(--c-ink);
  line-height: 1.4;
}

.cx-prod-count {
  font-size: 12px;
  color: var(--c-muted-2);
  margin-top: 2px;
}

/* 消费双卡 */
.cx-consumes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cx-consume-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-line-2);
}

.cx-consume-sum {
  font-size: 13px;
  color: var(--c-muted);
}

.cx-consume-sum b {
  color: var(--c-ink);
  font-weight: 600;
}

.cx-consume-body {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 空状态 */
.cx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 56px 16px;
  color: var(--c-muted);
  font-size: 14px;
}

.cx-empty-img {
  width: 48px;
  height: 48px;
  color: #cfd5de;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.cx-empty-img svg {
  width: 48px;
  height: 48px;
  display: block;
}

.cx-empty-title {
  font-size: 14px;
  color: var(--c-ink-2);
  line-height: 22px;
}

.cx-empty-desc {
  font-size: 14px;
  color: var(--c-muted-2);
  line-height: 22px;
}

.cx-empty .el-button {
  margin-top: 8px;
}

/* 待办事项 */
.cx-todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
}

.cx-todo-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  color: #fff;
  font-size: 16px;
}

.cx-todo-ico.is-blue {
  background: var(--c-primary);
}

.cx-todo-ico.is-orange {
  background: #e37318;
}

.cx-todo-ico.is-green {
  background: #0c9d4f;
}

.cx-todo-ico.is-gray {
  background: #eef1f6;
  color: #8b98ab;
}

.cx-todo-name {
  font-size: 14px;
  color: var(--c-ink);
  flex: 1;
}

.cx-todo-num {
  font-size: 14px;
  color: var(--c-ink);
}

.cx-todo-num.is-danger {
  color: var(--c-danger);
}

/* 快捷入口 */
.cx-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px 12px 16px;
}

.cx-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 2px;
}

.cx-quick-item:hover {
  background: #f7f9fc;
}

.cx-quick-item i {
  font-size: 17px;
  color: #8b98ab;
}

.cx-quick-item span {
  font-size: 12px;
  color: var(--c-ink-2);
}

/* 消息中心 */
.cx-msg-tabs {
  display: flex;
  gap: 24px;
}

.cx-msg-tab {
  font-size: 14px;
  color: var(--c-muted);
  cursor: pointer;
  padding: 0 0 2px;
  border-bottom: 2px solid transparent;
}

.cx-msg-tab.is-active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

.cx-msg-list {
  padding: 0 20px;
}

.cx-msg-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--c-line-2);
  cursor: pointer;
}

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

.cx-msg-row-title {
  flex: 1;
  font-size: 14px;
  color: var(--c-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cx-msg-row-title:hover {
  color: var(--c-primary);
}

.cx-msg-row-time {
  font-size: 12px;
  color: var(--c-muted-2);
  flex: 0 0 auto;
}

/* 官方群 */
.cx-qq {
  display: flex;
  gap: 16px;
  padding: 4px 20px 20px;
  align-items: center;
}

.cx-qq-code {
  width: 96px;
  height: 96px;
  border: 1px solid var(--c-line);
  flex: 0 0 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted-2);
  font-size: 12px;
  background: #fafbfd;
}

.cx-qq-info {
  font-size: 13px;
  color: var(--c-ink-2);
  line-height: 1.9;
}

.cx-qq-info b {
  display: block;
  font-size: 15px;
  color: var(--c-ink);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ==========================================================================
   内页通用
   ========================================================================== */
.cx-page {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.cx-page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 26px;
  margin: 0;
}

.cx-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cx-page-desc {
  font-size: 13px;
  color: var(--c-muted);
}

/* 胶囊 Tab（全部/最近7天/本月） */
.cx-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 参考站：未选中为纯文字，选中有 1px 蓝框 */
.cx-pill {
  height: 40px;
  line-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--c-ink-2);
  font-size: 14px;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s;
}

.cx-pill:hover {
  color: var(--c-primary);
}

.cx-pill.is-active {
  background: #fff;
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* 下划线 Tab */
.cx-utabs {
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--c-line-2);
  padding: 0 24px;
}

.cx-utab {
  height: 48px;
  line-height: 48px;
  font-size: 14px;
  color: var(--c-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.cx-utab:hover {
  color: var(--c-primary);
}

.cx-utab.is-active {
  color: var(--c-primary);
}

.cx-utab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--c-primary);
}

/* 筛选栏 */
.cx-filter {
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cx-filter .el-input,
.cx-filter .el-select,
.cx-filter .el-date-editor {
  width: 220px;
}

.cx-filter .cx-filter-grow {
  flex: 1 1 260px;
  min-width: 200px;
}

.cx-filter .cx-filter-grow .el-input {
  width: 100%;
}

.cx-filter .cx-filter-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 表格 */
.cx-table {
  background: #fff;
  border: 1px solid var(--c-line);
}

.cx-table .el-table {
  width: 100% !important;
  border: 0;
}

.cx-table .el-table::before,
.cx-table .el-table::after {
  display: none;
}

.cx-table .el-table th.el-table__cell {
  background: #f5f7fb !important;
  height: 42px;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted) !important;
  border-bottom: 1px solid var(--c-line) !important;
  border-right: 1px solid var(--c-line) !important;
}

.cx-table .el-table th.el-table__cell:last-child {
  border-right: 0 !important;
}

.cx-table .el-table td.el-table__cell {
  padding: 12px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--c-line-2) !important;
  border-right: 0 !important;
}

.cx-table .el-table__body tr:hover > td.el-table__cell {
  background: #f7f9fc !important;
}

.cx-table .el-table .cell,
.cx-table .el-table th .cell,
.cx-table .el-table td .cell {
  padding: 0 12px;
}

/* 分页 */
.cx-pager {
  display: flex;
  justify-content: flex-end;
  padding: 16px 0 0;
}

.cx-pager .el-pagination {
  padding: 0;
}

/* 状态标签 */
.cx-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 2px;
  background: #eef1f6;
  color: var(--c-muted);
}

.cx-tag.is-blue {
  background: #eaf1ff;
  color: var(--c-primary);
}

.cx-tag.is-green {
  background: #e8f7ee;
  color: var(--c-success);
}

.cx-tag.is-orange {
  background: #fdf4e2;
  color: #b7791f;
}

.cx-tag.is-red {
  background: #fdeceb;
  color: var(--c-danger);
}

.cx-amount {
  font-weight: 600;
  color: var(--c-ink);
}

.cx-amount.is-plus {
  color: var(--c-success);
}

.cx-amount.is-minus {
  color: var(--c-ink);
}

/* 列表单元 */
.cx-cell-name {
  color: var(--c-ink);
  font-size: 13px;
  line-height: 1.5;
}

.cx-cell-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  color: var(--c-muted-2);
  font-size: 12px;
  line-height: 1.5;
}

/* ==========================================================================
   Element 组件向控制台口径靠拢
   ========================================================================== */
.template .el-button {
  border-radius: 0;
  font-weight: 400;
  font-size: 13px;
  height: 32px;
  padding: 0 16px;
  box-shadow: none;
}

.template .el-button--mini,
.template .el-button--small {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
}

.template .el-button--primary {
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.template .el-button--primary:hover,
.template .el-button--primary:focus {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
}

.template .el-button--primary:active {
  background: var(--c-primary-active);
  border-color: var(--c-primary-active);
}

.template .el-button--default {
  border-color: var(--c-line-input);
  color: var(--c-ink);
}

.template .el-button--default:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.template .el-button--text {
  color: var(--c-primary);
  height: auto;
  padding: 0;
}

.template .el-input__inner,
.template .el-textarea__inner,
.template .el-select .el-input__inner {
  border-radius: 0 !important;
  border-color: var(--c-line-input);
  height: 32px;
  line-height: 32px;
  font-size: 13px;
  color: var(--c-ink);
}

.template .el-input__inner::placeholder,
.template .el-textarea__inner::placeholder {
  color: #a9b4c6;
}

.template .el-input__inner:hover,
.template .el-textarea__inner:hover {
  border-color: #a9b4c6;
}

.template .el-input__inner:focus,
.template .el-textarea__inner:focus,
.template .el-select .el-input.is-focus .el-input__inner {
  border-color: var(--c-primary);
}

.template .el-input__icon {
  line-height: 32px;
}

.template .el-select .el-input__inner {
  padding-right: 30px;
}

.template .el-textarea__inner {
  height: auto;
  padding: 8px 12px;
  line-height: 1.6;
}

.template .el-form-item__label {
  font-size: 13px;
  color: var(--c-ink-2);
  font-weight: 400;
}

/* 下拉 */
.el-select-dropdown,
.el-dropdown-menu {
  border-radius: 0;
}

.el-select-dropdown__item {
  font-size: 13px;
  height: 34px;
  line-height: 34px;
}

.el-select-dropdown__item.selected {
  color: var(--c-primary);
}

/* 表格（通用，包含未包裹 .cx-table 的情况） */
.template .el-table {
  font-size: 13px;
  color: var(--c-ink);
}

.template .el-table th.el-table__cell {
  background: #f5f7fb !important;
  color: var(--c-muted);
  font-weight: 400;
  font-size: 12px;
}

.template .el-table td.el-table__cell {
  height: 54px;
  padding: 0;
  font-size: 14px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line-2);
}

/* 卡片 / 旧版盒子归一 */
.template .el-card,
.template .table-box,
.template .form-box,
.template .info-box,
.template .content-box {
  border: 1px solid var(--c-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--c-card);
}

/* 弹窗 */
.el-dialog {
  border-radius: 0;
}

.el-dialog__header {
  border-bottom: 1px solid var(--c-line-2);
  padding: 16px 20px;
}

.el-dialog__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
}

.el-dialog__body {
  padding: 20px;
  color: var(--c-ink);
  font-size: 13px;
}

.el-dialog__footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--c-line-2);
}

/* 分页器 */
.el-pagination.is-background .el-pager li {
  border-radius: 0;
  background: #fff;
  border: 1px solid var(--c-line);
  color: var(--c-ink-2);
  font-weight: 400;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.el-pagination.is-background .btn-prev,
.el-pagination.is-background .btn-next {
  border-radius: 0;
  background: #fff;
  border: 1px solid var(--c-line);
}

/* 消息提示 */
.el-message {
  border-radius: 0;
  min-width: 240px;
}

/* 标签 */
.el-tag {
  border-radius: 2px;
}

/* 响应式 */
@media (max-width: 1440px) {
  .cx-dash {
    grid-template-columns: minmax(0, 1fr) 248px;
  }
}

@media (max-width: 1280px) {
  .cx-dash-top {
    grid-template-columns: 1fr 1fr;
  }

  .cx-welcome {
    grid-column: span 2;
  }
}

@media (max-width: 1100px) {
  .cx-dash {
    grid-template-columns: minmax(0, 1fr);
  }

  .cx-prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   账户充值
   ========================================================================== */
.cx-recharge {
  display: flex;
  gap: 48px;
  padding: 20px 24px 28px;
}

.cx-recharge-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cx-recharge-credit {
  font-size: 13px;
  color: var(--c-muted);
}

.cx-recharge-credit b {
  color: var(--c-ink);
  font-weight: 600;
}

.cx-recharge-label {
  font-size: 13px;
  color: var(--c-ink);
  margin-bottom: 8px;
}

.cx-recharge-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cx-recharge-amount {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.cx-recharge-amount .cx-recharge-label {
  margin-bottom: 0;
}

.cx-recharge-input {
  width: 220px;
}

.cx-recharge-pay {
  margin-top: 0;
  font-size: 13px;
  color: var(--c-ink-2);
}

/* 金额/支付方式用小号胶囊，贴近参考站 */
.cx-recharge .cx-pill {
  height: 32px;
  line-height: 30px;
  padding: 0 14px;
  border: 1px solid var(--c-line-input);
  background: #fff;
  color: var(--c-ink-2);
  font-size: 13px;
}

.cx-recharge .cx-pill.is-active {
  background: #eaf1ff;
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.cx-recharge-pay b {
  color: var(--c-ink);
  font-weight: 600;
}

.cx-recharge-side {
  width: 260px;
  flex: 0 0 260px;
  text-align: center;
  padding-top: 4px;
}

.cx-qr-box {
  width: 150px;
  height: 150px;
  margin: 0 auto 16px;
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfd;
}

.cx-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cx-qr-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
}

.cx-qr-tip {
  font-size: 12px;
  color: var(--c-muted-2);
  margin-top: 6px;
  line-height: 1.7;
}

.cx-qr-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 12px;
  border-top: 1px dashed var(--c-line-2);
  padding-top: 8px;
}

.cx-qr-meta b {
  color: var(--c-ink);
  font-weight: 600;
}


/* ==========================================================================
   实名认证
   ========================================================================== */
.cx-verify {
  padding: 20px 24px 24px;
}

.cx-verify-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.cx-verify-status {
  font-size: 12px;
  color: var(--c-muted-2);
  margin-bottom: 6px;
}

.cx-verify-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.4;
}

.cx-verify-desc {
  font-size: 13px;
  color: var(--c-muted);
  margin-top: 6px;
}

.cx-verify-act {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cx-verify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cx-field {
  background: #f7f9fc;
  border: 1px solid var(--c-line);
  padding: 10px 14px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.cx-field-label {
  font-size: 12px;
  color: var(--c-muted-2);
}

.cx-field-value {
  font-size: 14px;
  color: var(--c-ink);
}

.cx-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cx-steps {
  margin: 0;
  padding-left: 18px;
  color: var(--c-ink-2);
  font-size: 13px;
  line-height: 2;
}

.cx-tips {
  font-size: 13px;
  color: var(--c-ink-2);
  line-height: 2;
}


/* ==========================================================================
   推广大使
   ========================================================================== */
.cx-ref-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.cx-ref-metric {
  padding: 16px 20px;
}

.cx-ref-metric-label {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cx-ref-metric-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--c-ink);
  white-space: nowrap;
}

.cx-link-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cx-link-row .el-input {
  flex: 1 1 auto;
}

.cx-link-desc {
  font-size: 12px;
  color: var(--c-muted-2);
  margin-top: 10px;
  line-height: 1.7;
}

.cx-ref-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cx-ref-table th {
  height: 42px;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted);
  text-align: left;
  padding: 0 18px;
  border-bottom: 1px solid var(--c-line);
  background: #fff;
}

@media (max-width: 1400px) {
  .cx-ref-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ==========================================================================
   个人资料
   ========================================================================== */
.cx-profile {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.cx-profile-menu .cx-card-hd {
  height: 56px;
  border-bottom: 1px solid var(--c-line-2);
}

.cx-menu-list {
  padding: 8px 0 12px;
}

.cx-menu-item {
  display: block;
  height: 40px;
  line-height: 40px;
  padding: 0 20px;
  font-size: 14px;
  color: var(--c-ink-2);
  cursor: pointer;
}

.cx-menu-item:hover {
  background: #f7f9fc;
  color: var(--c-ink);
}

.cx-menu-item.is-active {
  background: var(--c-primary);
  color: #fff;
}

.cx-profile-body .cx-card-bd {
  padding: 20px 24px 24px;
  max-width: 720px;
}

.cx-form-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.cx-form-row > label {
  width: 96px;
  flex: 0 0 96px;
  font-size: 13px;
  color: var(--c-ink-2);
}

.cx-form-field {
  flex: 1 1 auto;
  min-width: 0;
}

.cx-form-field .el-input__inner[readonly] {
  background: #f7f9fc;
  color: var(--c-ink-2);
}

.cx-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line-2);
}


/* ==========================================================================
   公告 / 帮助中心（两栏）
   ========================================================================== */
.cx-help-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.cx-help-main,
.cx-help-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.cx-help-head {
  padding: 20px 24px;
}

.cx-help-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
}

.cx-help-desc {
  font-size: 13px;
  color: var(--c-muted);
  margin-top: 6px;
}

.cx-hot-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
}

.cx-hot-label {
  font-size: 12px;
  color: var(--c-muted-2);
}

.cx-hot-tag {
  font-size: 12px;
  color: var(--c-primary);
  cursor: pointer;
}

.cx-hot-tag:hover {
  text-decoration: underline;
}

.cx-help-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-line-2);
}

.cx-news-list {
  padding: 0 20px;
}

.cx-news-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line-2);
  cursor: pointer;
}

.cx-news-item:last-child {
  border-bottom: 0;
}

.cx-news-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.5;
}

.cx-news-item:hover .cx-news-title {
  color: var(--c-primary);
}

.cx-news-desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.7;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cx-news-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--c-muted-2);
  margin-top: 8px;
}

.cx-help-list {
  padding: 0 20px;
}

.cx-help-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line-2);
  cursor: pointer;
}

.cx-help-item:last-child {
  border-bottom: 0;
}

.cx-help-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
}

.cx-help-item:hover .cx-help-item-title {
  color: var(--c-primary);
}

.cx-help-item-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--c-muted-2);
  margin-top: 6px;
}

.cx-rank-list {
  padding: 4px 20px 16px;
}

.cx-rank-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  cursor: pointer;
}

.cx-rank-no {
  width: 18px;
  flex: 0 0 18px;
  font-size: 13px;
  color: var(--c-muted-2);
  line-height: 1.6;
}

.cx-rank-no.is-top {
  color: var(--c-primary);
  font-weight: 600;
}

.cx-rank-text {
  font-size: 13px;
  color: var(--c-ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cx-rank-item:hover .cx-rank-text {
  color: var(--c-primary);
}

.cx-recent-list {
  padding: 4px 20px 16px;
}

.cx-recent-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line-2);
  cursor: pointer;
}

.cx-recent-item:last-child {
  border-bottom: 0;
}

.cx-recent-title {
  font-size: 13px;
  color: var(--c-ink-2);
  line-height: 1.6;
}

.cx-recent-item:hover .cx-recent-title {
  color: var(--c-primary);
}

.cx-recent-time {
  font-size: 12px;
  color: var(--c-muted-2);
  margin-top: 2px;
}

@media (max-width: 1200px) {
  .cx-help-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   工单页（插件模板 default 复用，做皮肤覆盖）
   ========================================================================== */
.template .ticket .main-card {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.ticket .main-card-title {
  display: none;
}

.ticket .order-des {
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 12px 20px !important;
  margin: 0 0 16px !important;
  font-size: 13px;
  color: var(--c-ink-2);
  line-height: 1.8;
}

.ticket .order-des:empty {
  display: none;
}

.ticket .content_searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 14px 20px !important;
  margin: 0 0 16px !important;
}

.ticket .content_searchbar .searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.ticket .content_searchbar .searchbar .select-input {
  width: 220px;
}

.ticket .content_searchbar .searchbar .el-input.select-input {
  flex: 1 1 260px;
  width: auto;
  max-width: 360px;
}

.ticket .new-ticket-btn {
  order: 9;
  margin-left: auto;
  height: 32px;
  line-height: 30px;
  padding: 0 19px;
  background: var(--c-primary);
  color: #fff;
  font-size: 14px;
  border-radius: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.ticket .new-ticket-btn:hover {
  background: var(--c-primary-hover);
}

.ticket .tabledata {
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 0 !important;
  margin: 0 !important;
}

.ticket .tabledata .el-table th.el-table__cell {
  background: #f5f7fb !important;
  height: 42px;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted) !important;
  border-bottom: 1px solid var(--c-line) !important;
}

.ticket .tabledata .el-table td.el-table__cell {
  height: 54px;
  padding: 0;
  font-size: 14px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line-2) !important;
}

.ticket .tabledata .el-table::before {
  display: none;
}

/* 表格单元格单行展示 */
.cx-table .el-table .cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

/* ==========================================================================
   旧版内页归一（安全中心 / 操作日志 / 子账户 / 提现 / 跨模块 等 default 结构）
   ========================================================================== */
.template .main-card {
  background: #fff !important;
  border: 1px solid var(--c-line) !important;
  padding: 0 !important;
  overflow: hidden;
}

/* 卡内搜索条 / 表格去重边框 */
.template .main-card .content_searchbar {
  border: 0 !important;
  border-bottom: 1px solid var(--c-line-2) !important;
  background: #fff !important;
  margin: 0 !important;
  padding: 14px 24px !important;
}

.template .main-card .tabledata .el-table,
.template .main-card .tabledata {
  border: 0 !important;
}

.template .main-card > .el-tabs > .el-tabs__header {
  padding: 0 24px;
}

.template .main-card .el-tabs__content {
  padding: 0;
}

.template .main-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.4;
  margin: 0 0 16px;
}

.template .content_searchbar {
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 14px 20px !important;
  margin: 0 0 16px !important;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.template .content_searchbar .searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.template .tabledata {
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 0 !important;
}

.template .tabledata .el-table th.el-table__cell {
  background: #f5f7fb !important;
  height: 42px;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted) !important;
  border-bottom: 1px solid var(--c-line) !important;
}

.template .tabledata .el-table td.el-table__cell {
  height: 54px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line-2) !important;
}

.template .tabledata .el-table::before {
  display: none;
}

/* Element 标签页 → 控制台风格 */
.template .el-tabs__header {
  margin: 0;
}

.template .el-tabs__nav-wrap::after {
  height: 1px;
  background-color: var(--c-line-2);
}

.template .el-tabs__item {
  height: 48px;
  line-height: 48px;
  font-size: 14px;
  color: var(--c-ink-2);
  padding: 0 16px;
}

.template .el-tabs__item.is-active {
  color: var(--c-primary);
}

.template .el-tabs__active-bar {
  background-color: var(--c-primary);
  height: 3px;
}

/* 旧版标题（页面级 CSS 优先级更高，这里再压一层） */
.template .main-card .main-card-title,
.template .main-card > .main-card-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--c-ink) !important;
  line-height: 26px !important;
  margin: 0 0 16px !important;
}

.template .main-card .el-tabs__header {
  margin-bottom: 16px;
}

/* ---------- 旧内页：统一顶距与 tab 间距 ---------- */
.template .el-main > .main-card {
  padding-top: 20px !important;
}

/* 参考站 tab：无内边距，项间距 32px，整行 1px 底线 */
.template .main-card .el-tabs__item {
  padding: 0 !important;
  margin-right: 32px;
}

.template .main-card .el-tabs__item:last-child {
  margin-right: 0;
}

.template .main-card .el-tabs__nav-wrap::after {
  height: 1px;
  background-color: var(--c-line-2);
}

.template .main-card .el-tabs__active-bar {
  height: 3px;
}

/* 旧内页：表格容器与搜索条之间留白 */
.template .main-card .content-table {
  background: transparent;
}

.template .main-card .content_searchbar + .tabledata {
  margin-top: 0 !important;
}

.template .main-card .tabledata {
  border-top: 0;
}

/* 旧内页：表格内的状态文字 / 操作链 */
.template .main-card .el-table .el-button--text {
  font-size: 13px;
  padding: 0 6px;
}

.template .main-card .open {
  color: var(--c-success);
}

.template .main-card .un-open {
  color: var(--c-muted);
}

.template .main-card .setting {
  color: var(--c-primary);
  cursor: pointer;
  margin-left: 8px;
}

/* 旧内页：更多操作（三点） */
.template .more-operation {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  cursor: pointer;
}

.template .more-operation .dot {
  width: 3px;
  height: 3px;
  background: var(--c-ink-2);
  border-radius: 50%;
}

.template .main-card .el-tabs__content {
  overflow: visible;
}

/* Element 分页 → 控制台风格 */
.template .el-pagination {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-ink-2);
}

.template .el-pagination button,
.template .el-pagination.is-background .btn-next,
.template .el-pagination.is-background .btn-prev,
.template .el-pagination.is-background .el-pager li {
  min-width: 32px;
  height: 32px;
  line-height: 30px;
  margin: 0 4px;
  padding: 0 8px;
  background: #fff !important;
  border: 1px solid var(--c-line) !important;
  border-radius: 0 !important;
  color: var(--c-ink-2) !important;
  font-size: 13px;
  font-weight: 400 !important;
}

.template .el-pagination button:disabled {
  color: #c2cad8 !important;
  background: #fafbfd !important;
}

.template .el-pagination.is-background .el-pager li:not(.disabled).active,
.template .el-pagination .el-pager li.active {
  background: #fff !important;
  border-color: var(--c-primary) !important;
  color: var(--c-primary) !important;
}

.template .el-pagination .el-select .el-input {
  width: 96px;
}

.template .el-pagination .el-input__inner {
  height: 32px;
  line-height: 32px;
  border-radius: 0;
}

/* 子账户页（插件 default 结构） */
.template .clid-box {
  background: transparent;
  padding: 0;
}

.template .clid-box > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.template .clid-box > header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.4;
}

.template .clid-box > .el-table {
  border: 1px solid var(--c-line);
  border-bottom: 0;
}

.template .clid-box .el-table th.el-table__cell {
  background: #f5f7fb !important;
  height: 42px;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted) !important;
}

.template .clid-box .el-table td.el-table__cell {
  height: 54px;
  padding: 0 12px;
  font-size: 14px;
}

/* 筛选栏右侧元素不压缩 */
.cx-filter .cx-filter-right > * {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ==========================================================================
   卡片内嵌 Tab（安全中心 / 财务 / 操作日志 等）
   ========================================================================== */
.cx-card-tabs {
  padding: 0;
  overflow: hidden;
}

.cx-card-tabs > .el-tabs > .el-tabs__header {
  padding: 0 24px;
  margin: 0;
}

.cx-card-tabs > .el-tabs > .el-tabs__content {
  padding: 0;
  overflow: visible;
}

/* tab 内容顶部的操作条 / 搜索条：融进卡片，不重复描边 */
.cx-card-tabs .content_searchbar,
.cx-card-tabs .cx-filter {
  border: 0 !important;
  border-bottom: 1px solid var(--c-line-2) !important;
  background: #fff !important;
  margin: 0 !important;
  padding: 14px 24px !important;
}

/* 卡内表格：去掉外框，只留上边线 */
.cx-card-tabs .tabledata,
.cx-card-tabs .cx-table {
  border: 0 !important;
}

.cx-card-tabs .tabledata .el-table th.el-table__cell,
.cx-card-tabs .cx-table .el-table th.el-table__cell {
  padding: 0 16px;
}

.cx-card-tabs .tabledata .el-table td.el-table__cell,
.cx-card-tabs .cx-table .el-table td.el-table__cell {
  padding: 0 16px;
  height: 48px;
}

.cx-card-tabs .tabledata .el-table .cell,
.cx-card-tabs .cx-table .el-table .cell {
  padding-left: 0;
  padding-right: 0;
}

/* 卡内分页 */
.cx-card-tabs .el-pagination {
  padding: 12px 24px;
}

/* 旧页面主操作按钮（.left-btn）→ 控制台默认按钮尺寸 */
.template .main-card .content_searchbar .left-btn,
.template .main-card .left-btn {
  width: auto !important;
  min-width: 0 !important;
  height: 32px !important;
  line-height: 32px !important;
  padding: 0 16px !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  background: var(--c-primary) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}

.template .main-card .content_searchbar .left-btn:hover,
.template .main-card .left-btn:hover {
  background: var(--c-primary-hover) !important;
}

/* 旧卡片统一直角 */
.template .main-card {
  border-radius: 0 !important;
}

/* 页面头部：返回 + 标题 */
.cx-page-head .cx-head-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.cx-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--c-muted);
  cursor: pointer;
  white-space: nowrap;
}

.cx-back:hover {
  color: var(--c-primary);
}

.cx-back i {
  font-size: 14px;
}

/* cx-page 里的旧卡片：与标题的间距由 gap 控制 */
.template .cx-page > .main-card {
  padding-top: 0 !important;
}

/* 卡内提示条 */
.template .main-card .top-text {
  padding: 14px 24px;
  font-size: 13px;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-line-2);
  background: #fff;
}

/* 卡内表格分页区 */
.template .main-card .custom-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 8px 24px 12px;
}

.template .main-card .custom-pagination .manual-btn {
  display: flex;
  gap: 8px;
}

/* 主区域：顶栏为 fixed，主区让出 56px */
.template .el-main {
  margin: 0 !important;
  padding: 56px 24px 24px !important;
}

/* 旧卡片在 flex 容器里不要被 margin:auto 收缩 */
.template .cx-page > .main-card,
.template .el-main > .main-card {
  margin: 0 !important;
  width: 100% !important;
  align-self: stretch;
  box-sizing: border-box !important;
}

/* 没有 cx-page 包裹时，给卡片留出顶距 */
.template .el-main > .main-card:first-child {
  margin-top: 20px !important;
}

/* 卡片内下划线 Tab 布局（交易记录等） */
.cx-card-utabs {
  overflow: hidden;
}

.cx-card-utabs > .cx-utabs {
  padding: 0 24px;
}

/* 无外框筛选条（嵌在卡片里） */
.cx-filter-flat {
  border: 0;
  border-bottom: 1px solid var(--c-line-2);
  background: #fff;
  padding: 14px 24px;
}

.cx-card-utabs .cx-table {
  border: 0;
}

.cx-card-utabs .cx-table .el-table th.el-table__cell {
  padding: 0 16px;
}

.cx-card-utabs .cx-table .el-table td.el-table__cell {
  height: 48px;
  padding: 0 16px;
}

.cx-card-utabs .cx-table .el-table .cell {
  padding-left: 0;
  padding-right: 0;
}

.cx-pager {
  display: flex;
  justify-content: flex-end;
  padding: 12px 24px;
}

.cx-card-utabs .cx-empty {
  padding: 56px 0 64px;
}

/* ==========================================================================
   详情页（订单 / 产品）
   ========================================================================== */
.cx-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cx-detail-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-line-2);
}

.cx-detail-no {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--c-ink);
  min-width: 0;
}

.cx-detail-no b {
  font-size: 16px;
  font-weight: 600;
}

.cx-detail-status {
  margin-left: 4px;
}

.cx-detail-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.cx-detail-amount b {
  font-size: 22px;
  font-weight: 600;
  color: var(--c-ink);
}

.cx-detail-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 32px;
  padding: 20px 24px 24px;
}

.cx-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cx-detail-item label {
  font-size: 12px;
  color: var(--c-muted-2);
  line-height: 1.4;
}

.cx-detail-item span {
  font-size: 13px;
  color: var(--c-ink);
  line-height: 1.5;
  word-break: break-all;
}

.cx-detail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--c-line-2);
  background: #fafbfd;
}

.cx-sum {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--c-line-2);
}

.cx-sum b {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
}

/* 详情卡片内表格去外框 */
.cx-detail .cx-table,
.cx-card .cx-table {
  border: 0;
}

/* 卡片内表格行高统一 */
.cx-card .cx-table .el-table th.el-table__cell {
  padding: 0 16px;
}

.cx-card .cx-table .el-table td.el-table__cell {
  height: 48px;
  padding: 0 16px;
}

.cx-card .cx-table .el-table .cell {
  padding-left: 0;
  padding-right: 0;
}

/* ==========================================================================
   账户页（account）旧表单归一
   ========================================================================== */
.template .main-card .account-title,
.template .main-card .basic-title {
  border-left: 0 !important;
  padding-left: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 22px !important;
  color: var(--c-ink) !important;
}

.template .main-card .box-item-t {
  font-size: 12px !important;
  font-weight: 400 !important;
  height: auto !important;
  line-height: 20px !important;
  color: var(--c-muted-2) !important;
  margin-bottom: 6px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.template .main-card .box-item-b > .el-input,
.template .main-card .box-item-b .el-select,
.template .main-card .box-item-b .el-textarea {
  width: 100% !important;
  max-width: 380px;
  border: 0 !important;
}

.template .main-card .box-item-b .el-input__inner {
  border: 1px solid var(--c-line-input) !important;
  padding: 0 12px !important;
  height: 32px !important;
  line-height: 32px !important;
  background: #fff !important;
  border-radius: 0 !important;
}

.template .main-card .box-item-b .el-textarea__inner {
  border: 1px solid var(--c-line-input) !important;
  padding: 6px 12px !important;
  border-radius: 0 !important;
}

.template .main-card .account {
  margin-top: 28px !important;
}

.template .main-card .account > .el-row {
  margin-top: 16px !important;
}

.template .main-card .basic > .el-row {
  margin-top: 16px !important;
}

/* 顶部用户名 */
.template .main-card .name-text {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--c-ink) !important;
  line-height: 26px;
}

.template .main-card .box-top {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line-2);
}

/* 保存按钮 */
.template .main-card .btn-save {
  width: auto !important;
  min-width: 88px;
  height: 32px !important;
  line-height: 32px;
  padding: 0 16px;
  margin-top: 24px !important;
  border-radius: 0 !important;
  font-size: 14px;
}

/* ==========================================================================
   公告详情
   ========================================================================== */
.cx-notice-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.cx-notice-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cx-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-muted-2);
  line-height: 20px;
}

.cx-breadcrumb a {
  color: var(--c-muted-2);
  cursor: pointer;
}

.cx-breadcrumb a:hover {
  color: var(--c-primary);
}

.cx-breadcrumb i {
  font-style: normal;
  color: var(--c-muted-2);
}

.cx-breadcrumb-cur {
  color: var(--c-ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cx-doc {
  padding: 0;
}

.cx-doc-inner {
  padding: 28px 32px 36px;
}

.cx-doc-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 36px;
  color: var(--c-ink);
  margin: 0 0 16px;
}

.cx-doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  background: #f5f7fb;
  border: 1px solid var(--c-line-2);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 28px;
}

.cx-doc-body {
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-ink);
  word-break: break-word;
}

.cx-doc-body img {
  max-width: 100%;
  height: auto;
}

.cx-doc-body h1,
.cx-doc-body h2,
.cx-doc-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 12px;
  line-height: 1.6;
}

.cx-doc-body p {
  margin: 0 0 12px;
}

.cx-doc-body a {
  color: var(--c-primary);
}

.cx-doc-body blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background: #eef2f7;
  border-left: 3px solid #1f2937;
  color: var(--c-ink);
}

.cx-doc-attach {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line-2);
  font-size: 13px;
  color: var(--c-muted);
}

.cx-doc-attach-t {
  font-weight: 600;
  color: var(--c-ink-2);
  margin-bottom: 8px;
}

.cx-doc-attach a {
  color: var(--c-primary);
}

/* 侧栏 */
.cx-notice-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cx-side-cats {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cx-side-cat {
  height: 36px;
  line-height: 34px;
  text-align: center;
  border: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-ink-2);
  cursor: pointer;
}

.cx-side-cat:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.cx-side-cat.is-active {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.cx-side-links {
  padding: 8px 24px 16px;
  display: flex;
  flex-direction: column;
}

.cx-side-links a {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 36px;
  cursor: pointer;
}

.cx-side-links a:hover {
  color: var(--c-primary);
}

/* ==========================================================================
   协议 / 单文档页（无侧栏壳）
   ========================================================================== */
.template #content .contnet-right-out {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  box-sizing: border-box;
}

.template #content .content-right {
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 32px 40px 40px;
  box-sizing: border-box;
}

.template #content .right-title {
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 36px !important;
  color: var(--c-ink) !important;
  margin: 0 0 16px !important;
}

.template #content .right-keywords-time {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background: #f5f7fb;
  border: 1px solid var(--c-line-2);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 24px;
}

.template #content .right-content {
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-ink);
}

.template #content .right-content img {
  max-width: 100%;
  height: auto;
}

.template #content .right-attachment {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line-2);
  font-size: 13px;
  color: var(--c-muted);
}

/* 筛选条里的定宽搜索框 */
.cx-filter .cx-filter-search,
.cx-filter-flat .cx-filter-search {
  flex: 0 0 280px !important;
  max-width: 280px;
}

.cx-filter-flat .el-button {
  height: 32px;
  padding: 0 16px;
}

.cx-filter-flat .el-button--primary {
  background: var(--c-primary);
  border-color: var(--c-primary);
  border-radius: 0;
}

/* 提现记录页 */
.template .main-card .withdrawal-content {
  padding: 0 !important;
}

.template .main-card .withdrawal-content .el-table {
  width: 100%;
  border: 0;
}

.template .main-card .withdrawal-content .el-table th.el-table__cell {
  height: 42px;
  padding: 0 24px;
  background: var(--c-bg);
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted);
}

.template .main-card .withdrawal-content .el-table td.el-table__cell {
  height: 48px;
  padding: 0 24px;
  font-size: 13px;
  color: var(--c-ink);
}

.template .main-card .withdrawal-content .el-table .cell {
  padding-left: 0;
  padding-right: 0;
}

.template .main-card .withdrawal-content .el-table::before {
  display: none;
}

/* 表内空状态兜底 */
.template .el-table__empty-block {
  min-height: 240px;
}

.template .el-table__empty-text {
  width: 100%;
  line-height: 1.5;
}

.template .el-table__empty-text .cx-empty {
  padding: 40px 0;
}

/* ==========================================================================
   工单列表（插件页）筛选条
   ========================================================================== */
.template.ticket .main-card {
  padding: 0 !important;
  border: 1px solid var(--c-line) !important;
  background: #fff !important;
}

.template.ticket .main-card-title {
  display: none !important;
}

.template.ticket .content_searchbar {
  margin: 0 !important;
  padding: 14px 24px !important;
  border-bottom: 1px solid var(--c-line-2) !important;
  display: flex;
  align-items: center;
  justify-content: space-between !important;
  gap: 16px;
}

.template.ticket .content_searchbar .searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.template.ticket .content_searchbar .searchbar > .el-input:first-child,
.template.ticket .content_searchbar .searchbar > .select-input:first-child {
  width: 300px;
  flex: 0 0 300px;
}

.template.ticket .content_searchbar .searchbar .select-input {
  width: 180px;
  flex: 0 0 180px;
}

.template.ticket .content_searchbar .searchbar .el-input__inner {
  height: 32px !important;
  line-height: 32px !important;
  border-radius: 0;
  border-color: var(--c-line-input);
}

.template.ticket .content_searchbar .searchbar .el-button {
  height: 32px;
  padding: 0 16px;
  border-radius: 0;
}

.template.ticket .content_searchbar .new-ticket-btn {
  width: auto !important;
  min-width: 0;
  height: 32px !important;
  line-height: 32px !important;
  padding: 0 16px !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  background: var(--c-primary) !important;
  color: #fff !important;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.template.ticket .content_searchbar .new-ticket-btn:hover {
  background: var(--c-primary-hover) !important;
}

.template.ticket .tabledata {
  border: 0 !important;
}

.template.ticket .tabledata .el-table th.el-table__cell {
  height: 42px;
  padding: 0 24px;
  background: var(--c-bg);
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted);
}

.template.ticket .tabledata .el-table td.el-table__cell {
  height: 52px;
  padding: 0 24px;
  font-size: 13px;
}

.template.ticket .tabledata .el-table .cell {
  padding-left: 0;
  padding-right: 0;
}

.template.ticket .order-des {
  margin: 14px 24px !important;
  border: 1px solid var(--c-line-2) !important;
  border-radius: 0 !important;
  font-size: 13px;
  color: var(--c-muted);
}

.template.ticket .el-pagination {
  padding: 8px 24px 16px !important;
}

/* 空状态里的按钮 */
.cx-empty-btn {
  margin-top: 14px;
  height: 32px !important;
  padding: 0 16px !important;
  border-radius: 0 !important;
  font-size: 14px !important;
}

/* ==========================================================================
   子账户列表（插件页）
   ========================================================================== */
.template .clid-box {
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 0 !important;
  overflow: hidden;
}

.template .clid-box > header {
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--c-line-2);
}

.template .clid-box > header h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--c-ink);
  margin: 0;
}

.template .clid-box > header .el-button {
  height: 32px;
  padding: 0 16px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
}

.template .clid-box .el-table {
  border: 0;
}

.template .clid-box .el-table th.el-table__cell {
  height: 42px;
  padding: 0 24px;
  background: var(--c-bg);
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted);
}

.template .clid-box .el-table td.el-table__cell {
  height: 52px;
  padding: 0 24px;
  font-size: 13px;
  color: var(--c-ink);
}

.template .clid-box .el-table .cell {
  padding-left: 0;
  padding-right: 0;
}

.template .clid-box .el-table::before {
  display: none;
}

.template .clid-box .el-pagination {
  padding: 12px 24px 16px;
}

/* 分页条：总数靠左，翻页靠右 */
.template .custom-pagination .el-pagination {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
}

.template .custom-pagination .el-pagination .page-total {
  margin-right: auto;
  font-size: 13px;
  color: var(--c-muted);
}

.template .custom-pagination .el-pagination .el-pagination__sizes {
  margin-right: 12px;
}

.template .custom-pagination .el-pagination .el-pagination__jump {
  margin-left: 12px;
  font-size: 13px;
  color: var(--c-muted);
}

.template .custom-pagination .el-pagination .el-pagination__editor.el-input {
  width: 44px;
}

.template .custom-pagination .el-pagination .el-input__inner {
  height: 32px;
  line-height: 32px;
  border-radius: 0;
  border-color: var(--c-line-input);
  padding: 0 6px;
}

.template .custom-pagination .el-pagination button,
.template .custom-pagination .el-pagination .el-pager li {
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 0;
  font-size: 13px;
}

.template .custom-pagination .el-pagination .el-pager li.active {
  background: var(--c-primary);
  color: #fff;
}

/* 分页容器：交给分页组件自己布局 */
.template .cx-pager {
  display: block;
  padding: 8px 0 4px;
}

.template .cx-pager .custom-pagination {
  width: 100%;
}

/* 筛选栏：下拉/日期定宽，搜索框自适应 */
.template .cx-filter > .el-select,
.template .cx-filter > .el-select .el-input {
  width: 128px;
  flex: 0 0 128px;
}

.template .cx-filter > .el-date-editor,
.template .cx-filter > .el-date-editor.el-input__inner {
  width: 236px !important;
  flex: 0 0 236px;
}

.template .cx-filter > .cx-filter-grow {
  flex: 1 1 auto;
  min-width: 160px;
}

.template .cx-filter > .el-date-editor .el-range-input {
  font-size: 13px;
}

.template .cx-filter > .el-date-editor .el-range-separator {
  padding: 0 4px;
  font-size: 13px;
}

.template .cx-filter > .el-select .el-input__inner,
.template .cx-filter > .el-date-editor {
  height: 32px;
  line-height: 32px;
  border-radius: 0;
}

/* 表格默认空状态：图标 + 文案 */
.template .el-table__empty-text:not(:has(.cx-empty))::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M4 27.5 12.8 12h22.4L44 27.5V44H4V27.5Z' fill='%23F2F4F8' stroke='%23C9D0DE' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M15.6 26h5.4l1.2 2.6h3.6l1.2-2.6h5.4' stroke='%23C9D0DE' stroke-width='1.4' fill='none' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.template .el-table__empty-text:not(:has(.cx-empty)) {
  font-size: 13px;
  color: var(--c-muted-2);
}

/* main-card 内的 cx-table */
.template .main-card .cx-table {
  border: 0 !important;
}

.template .main-card .cx-table .el-table th.el-table__cell {
  padding: 0 24px;
}

.template .main-card .cx-table .el-table td.el-table__cell {
  height: 48px;
  padding: 0 24px;
}

.template .main-card .cx-table .el-table .cell {
  padding-left: 0;
  padding-right: 0;
}

/* 子账户页：头部按钮别被旧样式顶出去 */
.template .clid-box > header .el-button {
  margin: 0 !important;
}

.template .clid-box > header h2 {
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 24px !important;
}

.template .clid-box .myPage {
  margin: 0 !important;
}

/* ==========================================================================
   控制台首页 · 参考站版式校准（1600 视口实测）
   ========================================================================== */
.cx-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.template .cx-balance .cx-yen {
  font-style: normal;
  color: #e37318;
  margin: 0 2px 0 6px;
}

/* 栅格：右栏 314px，全局 12px 间距 */
.cx-dash {
  grid-template-columns: minmax(0, 1fr) 314px;
  gap: 12px;
}

.cx-dash-left,
.cx-dash-right {
  gap: 12px;
}

.cx-dash-top {
  grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* 欢迎卡 */
.cx-welcome {
  padding: 20px 24px 18px;
  gap: 10px;
}

.cx-welcome-hd {
  gap: 12px;
  align-items: flex-start;
}

.cx-welcome-info {
  min-width: 0;
}

.cx-welcome-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  line-height: 36px;
  font-size: 16px;
  background: #eaf0ff;
  color: #5679d6;
  margin-top: 2px;
}

.cx-welcome-hello {
  font-size: 20px;
  line-height: 28px;
}

.cx-welcome-date {
  font-size: 14px;
  line-height: 22px;
  margin: 2px 0 0;
}

.cx-welcome-tags {
  gap: 12px;
  margin-top: 2px;
}

.cx-tag-soft {
  height: 28px;
  line-height: 28px;
  padding: 0 10px;
  font-size: 13px;
}

.cx-tag-soft.is-warn {
  background: #fdf4e2;
  color: #c07c18;
}

.cx-tag-soft.is-neutral {
  background: #f2f3f5;
  color: #5f6b7d;
}

.cx-tag-soft.is-ok {
  background: #e9f8f0;
  color: #0fa05a;
}

.cx-welcome-btns {
  gap: 12px;
  margin-top: 4px;
}

.cx-welcome-btns .el-button {
  height: 32px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 0;
}

.cx-welcome-btns .el-button--primary {
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.cx-welcome-btns .el-button--default {
  border-color: #d9dfe9;
  color: var(--c-ink);
}

.cx-btn-ico {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  fill: none;
  stroke: currentColor;
}

/* 指标卡 */
.cx-metric {
  padding: 20px 24px 24px;
  gap: 10px;
}

.cx-metric-value {
  font-size: 32px;
  line-height: 40px;
}

.cx-unit {
  font-size: 16px;
  font-weight: 400;
  color: var(--c-ink-2);
  margin-left: 12px;
}

/* 我的产品 */
.cx-prod-grid {
  gap: 0 8px;
  padding: 12px 24px;
}

.cx-prod-item {
  height: 72px;
  padding: 0 16px;
  gap: 12px;
}

.cx-prod-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.cx-prod-svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}

.cx-prod-info {
  min-width: 0;
}

.cx-prod-name {
  font-size: 14px;
  line-height: 22px;
}

.cx-prod-count {
  font-size: 12px;
  line-height: 18px;
  margin-top: 0;
}

/* 消费双卡 */
.cx-consumes {
  gap: 12px;
}

.cx-consume-head {
  padding: 20px 24px 8px;
  border-bottom: 0;
}

.cx-consume-body {
  height: 286px;
}

.cx-consume-body .cx-empty {
  padding: 0;
}

/* 消息中心 */
.cx-msg-tabs {
  display: flex;
  gap: 28px;
  padding: 0 24px;
  height: 46px;
  align-items: stretch;
}

.cx-msg-tab {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
  border-bottom: 0;
  font-size: 14px;
}

.cx-msg-tab.is-active {
  color: var(--c-primary);
  border-bottom-color: transparent;
}

.cx-msg-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--c-primary);
}

.cx-msg-list {
  padding: 0 24px 6px;
}

.cx-msg-row {
  padding: 13px 0;
}

/* ---- 首页细节再校准（2026-10-25） ---- */
.cx-welcome {
  padding: 18px 24px 16px;
  gap: 9px;
}

.cx-welcome-tags,
.cx-welcome-btns {
  margin-top: 0;
}

.cx-consume-body {
  height: 313px;
}

/* 待办：行高 52，图标 40 */
.cx-todo-item {
  height: 52px;
  padding: 0 24px;
  gap: 12px;
}

.cx-todo-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 18px;
}

.cx-card-hd + .cx-todo-item {
  margin-top: 12px;
}

.cx-todo-item:last-of-type {
  margin-bottom: 30px;
}

.cx-todo-name {
  font-size: 14px;
}

/* 快捷入口：行距 82 */
.cx-quick-grid {
  padding: 0 12px 20px;
}

.cx-quick-item {
  padding: 20px 0;
  gap: 8px;
}

.cx-quick-item i {
  font-size: 18px;
}

.cx-quick-item span {
  font-size: 13px;
}

/* 消费卡空状态：底部对齐（参考站实测） */
.cx-consume-body {
  align-items: flex-end;
  padding-bottom: 22px;
}

.cx-consume-body .cx-empty {
  gap: 8px;
}

.cx-consume-body .cx-empty-img {
  margin-bottom: 2px;
  color: #aab4c4;
}

.cx-consume-body .cx-empty-img svg {
  width: 44px;
  height: 44px;
}

/* 快捷入口：线性图标 */
.cx-quick-ico {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  color: #8b98ab;
}

.cx-quick-item {
  color: var(--c-ink-2);
}

.cx-quick-item:hover .cx-quick-ico {
  color: var(--c-primary);
}

.cx-consume-body .cx-empty-img svg {
  width: 48px;
  height: 48px;
}

/* 消费卡：高度含内边距，图标 44 */
.cx-consume-body {
  height: 313px;
  box-sizing: border-box;
}

.cx-consume-body .cx-empty-img {
  width: 44px;
  height: 44px;
}

.cx-consume-body .cx-empty-img svg {
  width: 44px;
  height: 44px;
}

.cx-consume-body .cx-empty {
  gap: 6px;
}

.cx-consume-body .cx-empty-title,
.cx-consume-body .cx-empty-desc {
  line-height: 21px;
}

/* 侧栏 SVG 图标 */
.cx-side-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.template .el-aside .cx-ico-svg {
  width: 17px;
  height: 17px;
  margin-right: 12px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  color: #7a889e;
}

.template .el-aside .cx-ico-svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-right: 11px;
  color: #6f7f96;
}

.template .el-aside .el-submenu.is-active > .el-submenu__title .el-submenu__icon-arrow {
  color: #4b5563;
}

/* ==========================================================================
   首页响应式（置于文件末尾，避免被后写的基准样式覆盖）
   ========================================================================== */
@media (max-width: 1440px) {
  .cx-dash {
    grid-template-columns: minmax(0, 1fr) 268px;
  }
}

@media (max-width: 1280px) {
  .cx-dash-top {
    grid-template-columns: 1fr 1fr;
  }

  .cx-welcome {
    grid-column: span 2;
  }

  .cx-prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .cx-dash {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 待办事项：SVG 图标 + 红色提醒 */
.cx-todo-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}

.cx-todo-num {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cx-num-alert {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
}
