:root {
  --primary: #409eff;
  --primary-dark: #337ecc;
  --primary-hover: #79bbff;
  --primary-active: #337ecc;
  --sidebar: #304156;
  --sidebar-active: #263445;
  --page: #f0f2f5;
  --text: #303133;
  --muted: #606266;
  --border: #dcdfe6;
  --border-light: #ebeef5;
  --danger: #f56c6c;
  --success: #67c23a;
  --warning: #e6a23c;
  --info: #909399;
  --transition: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition-fast: 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

html,
body,
#app,
.vue-app-host {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  min-width: 1180px;
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  background: var(--page);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: #1890ff;
  text-decoration: none;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #777;
}

::-webkit-scrollbar-track {
  background: #e0dada;
}

.login-page {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(to bottom, transparent 0 50%, #eee 50% 100%),
    url("./assets/back.png") center top / 100% 50% no-repeat;
}

.login-hero {
  position: relative;
  height: 263px;
  min-height: 263px;
  background: transparent;
}

.login-logo-row {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1200px;
  height: 80px;
  margin: 0 auto;
  padding: 0 20px;
  color: #fff;
  font-size: 16px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 75px;
  height: 78px;
  background: url("./assets/logo.png") center / 100% 100% no-repeat;
}

.brand-mark + span {
  margin-left: 20px;
}

.login-logo-row .divider {
  width: auto;
  height: auto;
  background: transparent;
  font-size: 26px;
  line-height: 1;
}

.robot {
  position: relative;
  width: 134px;
  height: 163px;
  z-index: 2;
  animation: robot-float 1.5s infinite;
}

.robot-box {
  position: relative;
  width: 134px;
  height: 163px;
  margin-right: 30px;
  flex: 0 0 auto;
}

.robot-box::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 134px;
  height: 65px;
  background: url("./assets/robot-back.png") center / 100% 100% no-repeat;
}

@keyframes robot-float {
  0% {
    top: 0;
  }
  50% {
    top: -20px;
  }
  100% {
    top: 0;
  }
}

@keyframes zoom-in-top {
  0% {
    opacity: 0;
    transform: scaleY(0.8);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes message-fade-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -100%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes dialog-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes dialog-zoom-in {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.login-title {
  position: static;
  color: #fff;
  font-size: 48px;
  line-height: normal;
  font-weight: 400;
  font-family: "Sitka Text";
}

.login-title-box {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.login-card {
  position: absolute;
  left: 50%;
  top: 255px;
  z-index: 3;
  width: 400px;
  margin-left: -200px;
  padding: 30px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  box-shadow: 0 0 12px #0000001f;
}

.form-row {
  display: grid;
  grid-template-columns: 50px 244px;
  align-items: center;
  column-gap: 33px;
  margin-bottom: 18px;
}

.form-row label {
  color: #606266;
  text-align: right;
}

.form-row label::before {
  content: "* ";
  color: #f56c6c;
}

.input-wrap {
  position: relative;
}

.input-wrap .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #c0c4cc;
  transform: translateY(-50%);
}

.input-wrap .input-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input,
.select,
.textarea {
  width: 100%;
  height: 32px;
  padding: 0 11px;
  font-size: 14px;
  color: #606266;
  background: #fff;
  border: 0;
  border-radius: 4px;
  outline: none;
  box-shadow: 0 0 0 1px var(--border) inset;
  transition: box-shadow var(--transition-fast), color var(--transition-fast);
}

.input-wrap .input {
  padding-left: 34px;
}

.input-shell {
  display: inline-flex;
  width: 100%;
  border-radius: 4px;
}

.input:hover,
.select:hover,
.textarea:hover {
  box-shadow: 0 0 0 1px #c0c4cc inset;
}

.input:focus,
.select:focus,
.textarea:focus {
  box-shadow: 0 0 0 1px var(--primary) inset;
}

.textarea {
  min-height: 86px;
  padding: 7px 11px;
  resize: vertical;
}

.btn {
  min-width: 82px;
  height: 32px;
  padding: 8px 15px;
  font-size: 14px;
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: #409eff;
  line-height: 1;
  outline: none;
  transition:
    color 0.1s,
    border-color 0.1s,
    background-color 0.1s,
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
}

.btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn:active {
  background: var(--primary-active);
  border-color: var(--primary-active);
}

.btn:focus-visible,
.page-btn:focus-visible,
.page-num:focus-visible,
.modal-close:focus-visible,
.user-menu:focus-visible,
.collapse-handle:focus-visible {
  outline: 2px solid #a0cfff;
  outline-offset: 1px;
}

.btn.secondary {
  color: #606266;
  border-color: var(--border);
  background: #fff;
}

.btn.secondary:hover {
  color: var(--primary);
  border-color: #c6e2ff;
  background: #ecf5ff;
}

.btn.secondary:active {
  color: var(--primary);
  border-color: #a0cfff;
}

.btn.danger {
  border-color: var(--danger);
  background: var(--danger);
}

.btn.danger:hover {
  border-color: #f89898;
  background: #f89898;
}

.btn.danger:active {
  border-color: #dd6161;
  background: #dd6161;
}

.btn.success {
  border-color: var(--success);
  background: var(--success);
}

.btn.success:hover {
  border-color: #95d475;
  background: #95d475;
}

.btn.success:active {
  border-color: #529b2e;
  background: #529b2e;
}

.btn.warning {
  border-color: var(--warning);
  background: var(--warning);
}

.btn.warning:hover {
  border-color: #eebe77;
  background: #eebe77;
}

.btn.warning:active {
  border-color: #b88230;
  background: #b88230;
}

.btn.link {
  min-width: 0;
  height: auto;
  padding: 0;
  color: var(--primary);
  border: 0;
  background: transparent;
}

.btn.link:hover,
.btn.link:active {
  color: #79bbff;
  background: transparent;
  border-color: transparent;
}

.btn.small {
  height: 24px;
  padding: 5px 11px;
  font-size: 12px;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.file-btn input {
  display: none;
}

.btn:disabled,
.btn.disabled {
  cursor: not-allowed;
  color: #a8abb2;
  border-color: #e4e7ed;
  background: #f5f7fa;
  opacity: 1;
}

.login-submit {
  display: block;
  width: 60%;
  margin: 30px auto 0;
}

.third-login {
  width: 100px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 14px auto 0;
  text-align: center;
  color: #545151;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.third-login:hover {
  color: #0aa2f1;
}

.wechat-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 5px;
  color: transparent;
  background: #08c11a;
  border-radius: 50%;
  position: relative;
}

.wechat-icon::before,
.wechat-icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
}

.wechat-icon::before {
  width: 4px;
  height: 4px;
  left: 5px;
  top: 7px;
}

.wechat-icon::after {
  width: 4px;
  height: 4px;
  right: 5px;
  top: 7px;
}

.agreement {
  min-height: 32px;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #409eff;
  font-size: 14px;
}

.agreement input {
  accent-color: var(--primary);
}

.login-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  min-height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #000;
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.microsoft-mask {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 360px;
  height: 160px;
  opacity: 0.04;
  background: url("./assets/microsoft-back.svg") center / contain no-repeat;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  transition: grid-template-columns var(--transition);
}

.app-shell.is-collapse {
  grid-template-columns: 64px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  color: #bfcbd9;
  background: var(--sidebar);
  overflow-y: auto;
  transition: width var(--transition);
}

.app-shell.is-collapse .sidebar {
  width: 64px;
}

.side-title {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  line-height: 50px;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
  overflow: hidden;
}

.menu {
  padding: 0 0 50px;
  overflow: hidden auto;
}

.menu-section {
  user-select: none;
}

.menu-head,
.menu-child {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 20px;
  color: #fff;
  gap: 5px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition:
    border-color 0.3s,
    background-color 0.3s,
    color 0.3s;
}

.menu-head:hover,
.menu-child:hover {
  color: #409eff;
  background: transparent;
}

.menu-head.opened {
  background: var(--sidebar-active);
}

.menu-section.is-active .menu-head {
  color: #409eff;
}

.menu-head.active,
.menu-child.active {
  color: #409eff;
  background: transparent;
}

.menu-icon {
  width: 24px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.menu-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--transition-fast);
}

.chevron {
  font-size: 12px;
  color: #bfcbd9;
  position: absolute;
  right: 20px;
  top: 50%;
  margin-top: -8px;
  transition: transform 0.3s;
}

.menu-head.opened .chevron {
  transform: rotate(180deg);
}

.submenu {
  background: #1f2d3d;
  display: block;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height var(--transition-fast);
}

.menu-section.is-opened .submenu {
  max-height: 180px;
  pointer-events: auto;
}

.menu-child {
  height: 50px;
  padding-left: 52px;
}

.collapse-btn {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 30;
  width: 220px;
  height: 30px;
  display: block;
  padding: 0;
  border: 0;
  background: var(--sidebar);
  color: #000;
  cursor: pointer;
  line-height: normal;
  transition: all 0s ease;
}

.collapse-btn:hover {
  color: #000;
}

.app-shell.is-collapse .collapse-btn {
  width: 64px;
}

.collapse-icon {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  color: currentColor;
}

.app-shell.is-collapse .menu-label,
.app-shell.is-collapse .chevron {
  opacity: 0;
  pointer-events: none;
}

.app-shell.is-collapse .menu-head,
.app-shell.is-collapse .menu-child {
  justify-content: center;
  padding: 0;
}

.app-shell.is-collapse .submenu {
  display: none;
}

.app-shell.is-collapse .side-title {
  font-size: 0;
}

.app-shell.is-collapse .side-title::after {
  content: "Xbox";
  font-size: 14px;
}

.main {
  grid-column: 2;
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 50px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px 0 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.user-dropdown-wrap {
  position: relative;
}

.user-menu {
  display: flex;
  align-items: center;
  width: 38px;
  color: #606266;
  border: 0;
  background: transparent;
  height: 24px;
  margin: -10px 0 0 10px;
  padding: 0;
  line-height: 14px;
  transition: color var(--transition-fast);
}

.user-menu:hover,
.user-menu.active {
  color: var(--primary);
}

.user-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform var(--transition-fast);
}

.user-menu.active .user-arrow {
  transform: rotate(180deg);
}

.dropdown-popper {
  position: absolute;
  top: 26px;
  right: -15px;
  z-index: 2002;
  width: max-content;
  min-width: 110px;
  color: #606266;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
  animation: zoom-in-top 0.18s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center top;
}

.dropdown-popper::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 18px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-top: 1px solid #e4e7ed;
  border-left: 1px solid #e4e7ed;
  transform: rotate(45deg);
}

.dropdown-menu {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  background: #fff;
}

.dropdown-menu li {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  cursor: pointer;
  white-space: nowrap;
  color: #606266;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.dropdown-menu li:hover {
  color: var(--primary);
  background: #ecf5ff;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 20px;
  color: #606266;
  background: var(--page);
  font-size: 14px;
}

.breadcrumb span:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #c0c4cc;
}

.content {
  flex: 1;
  min-height: 0;
  padding: 0 20px 28px;
  overflow: auto;
}

.footer {
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: #f7f8fa;
  color: #000;
}

.icp-record {
  display: inline-flex;
  align-items: center;
}

.icp-record-link {
  color: inherit;
  text-decoration: none;
}

.icp-record-link:hover {
  color: #409eff;
  text-decoration: underline;
}

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  height: 60px;
  margin: 0 0 20px;
  padding: 20px;
  color: #fff;
  border-radius: 4px;
  background: #f74747;
  font-size: 14px;
  line-height: 20px;
}

.alert-icon,
.alert-icon svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.alert-icon svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card {
  margin: 0;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
  transition: box-shadow var(--transition);
}

.card + .card {
  margin-top: 20px;
}

.card-title {
  padding: 18px 20px;
  font-size: 16px;
  line-height: 22.5px;
  border-bottom: 1px solid var(--border-light);
}

.home-info {
  padding: 20px;
  font-size: 20px;
  line-height: normal;
}

.card:first-of-type .home-info {
  padding-top: 30px;
}

.home-info p {
  min-height: 25.5px;
  margin: 0 0 10px;
}

.home-info strong {
  font-weight: 700;
  font-size: 20px;
}

.home-info .label {
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
  font-weight: 400;
}

.home-info .link {
  color: #000;
}

.cookie-panel {
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.token-panel {
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.cookie-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
}

.cookie-url-row label {
  flex: 0 0 76px;
  color: #606266;
  font-size: 14px;
  line-height: 32px;
  text-align: right;
}

.cookie-url-row .input-shell {
  flex: 1 1 auto;
  height: 32px;
}

.cookie-url-row .input {
  height: 32px;
  line-height: 32px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-status {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  color: #606266;
  line-height: 1.6;
  background: #fafafa;
}

.home-wrap {
  width: 100%;
  height: calc(100vh - 150px);
  padding: 20px 20px 10px;
  overflow: auto;
  background: #fff;
}

.home-inner {
  width: 100%;
}

.section-card {
  margin: 0 0 20px;
  padding: 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: none;
}

.search-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr)) auto;
  align-items: center;
  width: 100%;
  gap: 18px 20px;
}

.field {
  display: flex;
  align-items: center;
  height: 32px;
  min-width: 0;
  width: 100%;
  gap: 0;
}

.field label,
.date-field label {
  flex: 0 0 80px;
  width: 80px;
  margin: 0 8px 0 0;
  color: #606266;
  font-size: 14px;
  line-height: 32px;
  text-align: right;
  white-space: nowrap;
}

.field.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  min-width: 176px;
  margin-left: 0;
  grid-column: 4;
  justify-self: end;
}

.date-field {
  display: flex;
  align-items: center;
  height: 32px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  grid-column: span 2;
}

.date-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.search-panel .input-shell {
  flex: 1 1 auto;
  min-width: 130px;
  width: auto;
  height: 32px;
}

.search-panel .input,
.search-panel .select {
  height: 32px;
  line-height: 32px;
}

.search-panel .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 15px;
  font-size: 14px;
}

/* 卡片容器 - 对齐 Element UI el-card */
.wallet-card {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wallet-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 20px;
}

.wallet-card-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #409eff;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  padding: 12px 0 4px;
  margin-bottom: 0;
  font-size: 0;
}

.toolbar > div:first-child {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}

.toolbar > div:first-child::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #409eff;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-weight: 400;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #ebeef5;
  border-radius: 4px;
}

table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  height: 40px;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: #909399;
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  padding-left: 12px;
  width: 40px;
}

th:last-child {
  padding-right: 12px;
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 3;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.06);
}

td:last-child {
  padding-right: 12px;
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 2;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.06);
}

tbody tr:hover td:last-child {
  background: #f5f7fa;
}

td {
  height: 47px;
  padding: 8px 12px;
  border-bottom: 1px solid #ebeef5;
  color: #606266;
}

tbody tr:hover td {
  background: #f5f7fa;
}

.empty-row:hover td {
  background: #fff;
}

.empty-row td {
  height: 220px;
  padding: 0;
  text-align: center;
}

.el-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: #909399;
}

.el-empty__image {
  width: 160px;
  height: 100px;
  display: grid;
  place-items: center;
}

.el-empty__image svg {
  width: 64px;
  height: 41px;
}

.el-empty__description {
  margin-top: 12px;
  color: #909399;
  font-size: 14px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 260px;
}

.table-check {
  position: relative;
  display: inline-flex;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  cursor: pointer;
}

.table-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  appearance: none;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.table-check input:hover {
  border-color: var(--primary);
}

.table-check input:checked {
  border-color: var(--primary);
  background: #409eff;
}

.table-check input:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

.account-link {
  font-size: 12px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 25px;
  padding: 0 !important;
  border: none !important;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  line-height: 25px;
}
.account-link.account-success {
  background: #67c23a !important;
  color: #fff !important;
}
.account-link.account-info {
  background: #909399 !important;
  color: #fff !important;
}
.account-link.account-danger {
  background: #f56c6c !important;
  color: #fff !important;
}
.account-link.account-gray {
  background: #909399 !important;
  color: #fff !important;
}

.editable-notes {
  cursor: pointer;
  color: #303133;
  font-size: 13px;
  word-break: break-all;
  display: inline-block;
  min-width: 40px;
  padding: 2px 4px;
  border-radius: 2px;
  transition: background 0.2s;
}
.editable-notes:hover {
  background: #f0f2f5;
}
.editable-notes-input {
  font-size: 13px;
  padding: 2px 4px;
  height: 26px;
}

.editable-group {
  color: #606266;
}

	.remark-text {
		color: #303133;
		font-size: 13px;
		word-break: break-all;
	}

.remark-image {
  position: relative;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.remark-image::before {
  content: "";
  position: absolute;
  inset: 3px 2px 3px 2px;
  border: 1.5px solid var(--primary);
  border-radius: 2px;
}

.remark-image::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 10px;
  height: 7px;
  background:
    linear-gradient(135deg, transparent 0 48%, var(--primary) 50% 58%, transparent 60%),
    radial-gradient(circle at 72% 26%, var(--primary) 0 1.5px, transparent 1.8px);
}

.switch {
  width: 40px;
  height: 20px;
  position: relative;
  display: inline-block;
  border-radius: 999px;
  background: #dcdfe6;
  vertical-align: middle;
}

.switch.on {
  background: #409eff;
}

.switch::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.switch.on::after {
  transform: translateX(20px);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid transparent;
}

.tag.success {
  color: #529b2e;
  border-color: #d1edc4;
  background: #f0f9eb;
}

.tag.warning {
  color: #b88230;
  border-color: #f8e3c5;
  background: #fdf6ec;
}

.tag.danger {
  color: #c45656;
  border-color: #fcd3d3;
  background: #fef0f0;
}

.tag.info {
  color: #73767a;
  border-color: #dedfe0;
  background: #f4f4f5;
}

.pagination {
  height: 54px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  color: #606266;
}

.page-btn,
.page-num {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 0;
  border-radius: 2px;
  color: #606266;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.page-btn:hover,
.page-num:hover {
  color: var(--primary);
}

.page-btn:active,
.page-num:active {
  color: var(--primary-active);
}

.page-btn:disabled,
.page-num:disabled {
  cursor: not-allowed;
  color: #c0c4cc;
}

.page-num.active {
  color: var(--primary);
  font-weight: 700;
}

.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-jump input {
  width: 46px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  outline: none;
  transition: border-color var(--transition-fast);
}

.page-jump input:focus {
  border-color: var(--primary);
}

.wallet-page {
  min-height: calc(100vh - 150px);
  margin-right: 0;
}

.wallet-page .search-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  height: 102px;
}

.wallet-page .wallet-card {
  padding: 0;
  box-shadow: none;
}

.wallet-page .search-panel .field,
.wallet-page .search-panel .date-field {
  flex: 0 0 auto;
  width: auto;
  margin: 0 32px 18px 0;
}

.wallet-page .search-panel .field label,
.wallet-page .search-panel .date-field label {
  flex: 0 0 auto;
  width: auto;
  margin-right: 12px;
}

.wallet-page .search-panel .field:nth-child(1) .input-shell,
.wallet-page .search-panel .field:nth-child(2) .input-shell,
.wallet-page .search-panel .field:nth-child(4) .input-shell {
  width: 168px;
}

.wallet-page .search-panel .field:nth-child(3) .input-shell {
  width: 140px;
}

.wallet-page .search-panel .field:nth-child(5) .input-shell {
  width: 190px;
}

.wallet-page .search-panel .date-field {
  width: 388px;
}

.wallet-page .search-panel .date-range {
  width: 320px;
}

.wallet-page .search-panel .field.actions {
  width: 132px;
  min-width: 0;
  margin-right: 0;
  grid-column: auto;
  justify-self: auto;
}

.wallet-page .search-panel .field.actions .btn {
  min-width: 60px;
}

.wallet-page .toolbar {
  min-height: 50px;
  padding-top: 6px;
  margin-bottom: 10px;
}

.wallet-page .toolbar-actions {
  gap: 8px;
}

.wallet-page .toolbar-actions .btn.small {
  height: 24px;
  padding: 5px 11px;
}

.wallet-table {
  max-width: 100%;
  border-top-color: #ebeef5;
  border-bottom-color: #ebeef5;
}

.wallet-table table {
  min-width: 1740px;
  table-layout: fixed;
  font-size: 14px;
}

.wallet-table th,
.wallet-table td {
  height: 47px;
  padding: 8px 12px;
  line-height: normal;
  border-bottom-color: #ebeef5;
}

.wallet-table th {
  height: 40px;
  color: #909399;
  font-weight: 600;
}

.wallet-table th:nth-child(1),
.wallet-table td:nth-child(1) {
  width: 48px;
  text-align: center;
}

.wallet-table th:nth-child(2),
.wallet-table td:nth-child(2) {
  width: 260px;
}

.wallet-table th:nth-child(3),
.wallet-table td:nth-child(3) {
  width: 110px;
}

.wallet-table th:nth-child(4),
.wallet-table td:nth-child(4) {
  width: 145px;
}

.wallet-table th:nth-child(5),
.wallet-table td:nth-child(5) {
  width: 110px;
}

.wallet-table th:nth-child(6),
.wallet-table td:nth-child(6) {
  width: 110px;
}

.wallet-table th:nth-child(7),
.wallet-table td:nth-child(7) {
  width: 110px;
}

.wallet-table th:nth-child(8),
.wallet-table td:nth-child(8) {
  width: 90px;
}

.wallet-table th:nth-child(9),
.wallet-table td:nth-child(9),
.wallet-table th:nth-child(10),
.wallet-table td:nth-child(10) {
  width: 112px;
}

.wallet-table th:nth-child(11),
.wallet-table td:nth-child(11),
.wallet-table th:nth-child(12),
.wallet-table td:nth-child(12) {
  width: 176px;
}

.wallet-table th:nth-child(13),
.wallet-table td:nth-child(13) {
  width: 260px;
}

/* 订单列表表格（19列） */
.order-table {
  max-width: 100%;
  border-top-color: #ebeef5;
  border-bottom-color: #ebeef5;
}

.order-table table {
  min-width: 2200px;
  font-size: 13px;
}

.order-table th,
.order-table td {
  height: 40px;
  padding: 6px 8px;
  line-height: 20px;
  border-bottom-color: #ebeef5;
  white-space: nowrap;
}

.order-table th {
  color: #909399;
  font-weight: 700;
}

.order-table th:nth-child(1),
.order-table td:nth-child(1) { width: 40px; text-align: center; }
.order-table th:nth-child(2),
.order-table td:nth-child(2) { width: 200px; }
.order-table th:nth-child(3),
.order-table td:nth-child(3) { width: 200px; }
.order-table th:nth-child(4),
.order-table td:nth-child(4) { width: 90px; }
.order-table th:nth-child(5),
.order-table td:nth-child(5) { width: 115px; }
.order-table th:nth-child(6),
.order-table td:nth-child(6) { width: 90px; }
.order-table th:nth-child(7),
.order-table td:nth-child(7) { width: 90px; }
.order-table th:nth-child(8),
.order-table td:nth-child(8) { width: 95px; }
.order-table th:nth-child(9),
.order-table td:nth-child(9) { width: 80px; }
.order-table th:nth-child(10),
.order-table td:nth-child(10) { width: 80px; }
.order-table th:nth-child(11),
.order-table td:nth-child(11) { width: 80px; }
.order-table th:nth-child(12),
.order-table td:nth-child(12) { width: 80px; }
.order-table th:nth-child(13),
.order-table td:nth-child(13) { width: 110px; }
.order-table th:nth-child(14),
.order-table td:nth-child(14) { width: 90px; }
.order-table th:nth-child(15),
.order-table td:nth-child(15) { width: 140px; }
.order-table th:nth-child(16),
.order-table td:nth-child(16) { width: 140px; }
.order-table th:nth-child(17),
.order-table td:nth-child(17) { width: 70px; }
.order-table th:nth-child(18),
.order-table td:nth-child(18) { width: 80px; }
.order-table th:nth-child(19),
.order-table td:nth-child(19) { width: 320px; }

.order-table .table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}
.order-table .table-actions + .table-actions {
  margin-top: 6px;
}
.order-table .table-actions .btn.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: 24px;
  font-size: 12px;
  padding: 5px 11px;
  color: #fff;
  background: #409eff;
  border: 1px solid var(--primary);
  border-radius: 4px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.order-table .table-actions .btn.link:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.order-table .table-actions .btn.link[data-modal="取消订单"] {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}
.order-table .table-actions .btn.link[data-modal="取消订单"]:hover {
  background: #f89898;
  border-color: #f89898;
}
.order-table .table-actions .btn.link[data-modal="充值完成"] {
  color: #fff;
  background: var(--success);
  border-color: var(--success);
}
.order-table .table-actions .btn.link[data-modal="充值完成"]:hover {
  background: #95d475;
  border-color: #95d475;
}
.order-table .table-actions .btn.link:hover {
  color: #409eff;
  border-color: #c6e2ff;
  background: #ecf5ff;
}
.order-table .table-actions .btn.link:active {
  color: #3a8ee6;
  border-color: #3a8ee6;
}

.wallet-table .table-actions {
  display: block;
  min-width: 400px;
}
.wallet-table .table-actions .btn.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: 24px;
  font-size: 12px;
  padding: 5px 11px;
  color: #fff;
  background: #409eff;
  border: 1px solid #409eff;
  border-radius: 3px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  margin: 2px;
}
.wallet-table .table-actions .btn.link:hover {
  background: #66b1ff;
  border-color: #66b1ff;
}
.wallet-table .table-actions .btn.link[data-modal="删除"] {
  color: #fff;
  background: #f56c6c;
  border-color: #f56c6c;
}
.wallet-table .table-actions .btn.link[data-modal="删除"]:hover {
  background: #f89898;
  border-color: #f89898;
}
.wallet-table .table-actions .btn.link:disabled {
  color: #fff;
  background: #a0cfff;
  border-color: #a0cfff;
  cursor: not-allowed;
  opacity: 0.7;
}
.wallet-table .table-actions .btn.link:disabled:hover {
  background: #a0cfff;
  border-color: #a0cfff;
}

.wallet-page .pagination {
  height: 54px;
  padding-right: 2px;
}

.wallet-page .pagination .select {
  height: 28px;
  color: #606266;
}

.product-page {
  height: calc(100vh - 150px);
  overflow: auto;
  padding: 20px 20px 10px;
  margin-right: 0;
  background: #fff;
}

.product-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 340px;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 900px;
  height: 100%;
  min-height: 0;
  padding: 10px;
  background: #f0f2f5;
}

.product-hero {
  grid-column: 1 / -1;
  padding: 20px;
  background: #fff;
}

.product-banner {
  position: relative;
  height: 100px;
  display: flex;
  align-items: center;
  padding: 8px 32px 8px 86px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(54, 74, 231, 0.96), rgba(72, 96, 236, 0.95)),
    #4857ee;
  border-radius: 4px;
  overflow: hidden;
}

.product-hero-logo {
  position: absolute;
  left: 28px;
  top: 50%;
  width: 46px;
  height: 46px;
  object-fit: contain;
  transform: translateY(-50%);
  z-index: 2;
}

.product-hero-computer {
  position: absolute;
  right: 0;
  top: 0;
  height: 100px;
  width: 439px;
  object-fit: contain;
  opacity: 0.95;
}

.product-banner > div {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.product-hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.18;
  font-weight: 600;
}

.product-list-panel {
  min-height: 0;
  padding: 20px 0 0 20px;
  background: #fff;
  overflow: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  gap: 20px 30px;
  align-content: start;
  padding: 0 16px 22px 0;
}

.product-empty {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.product-item {
  width: 300px;
  height: 221px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 12px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.product-item:hover {
  border-color: #dcdfe6;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
}

.product-thumb {
  width: 300px;
  height: 170px;
  margin-bottom: 14px;
  object-fit: cover;
  border-radius: 3px 3px 0 0;
}

.product-name {
  width: 100%;
  padding: 0 10px;
  color: #303133;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-panel {
  min-height: 0;
  overflow: auto;
  background: #fff;
  border-left: 1px solid var(--border-light);
  padding: 20px;
}

.log-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.log-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}

.log-item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 18px;
  border-left: 2px solid #e4e7ed;
}

.log-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #409eff;
  box-shadow: 0 0 0 4px #fff;
}

.log-time {
  color: #909399;
  margin-bottom: 10px;
}

.log-card {
  padding: 0 0 6px;
  color: #303133;
}

.log-item:first-of-type .log-card {
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.log-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.log-name.primary {
  color: #0054ff;
}

.log-card p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.form-card {
  max-width: 820px;
  margin: 20px 28px 20px 0;
  padding: 22px 28px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--border-light);
  margin: -4px -8px 24px;
  padding: 0 8px;
}

.tab {
  position: relative;
  padding: 0 0 14px;
  color: #606266;
  cursor: pointer;
}

.tab.active {
  color: var(--primary);
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #409eff;
}

.settings-form {
  display: grid;
  gap: 20px;
}

.settings-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.settings-row label {
  color: #606266;
  text-align: right;
}

.editor {
  min-height: 240px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

.editor-toolbar {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--border-light);
  background: #f5f7fa;
}

.editor-body {
  min-height: 190px;
  padding: 14px;
  color: #606266;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 340px;
  color: #909399;
  background: #fff;
  border-radius: 4px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 20px;
  z-index: 3000;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 12px 18px;
  color: #529b2e;
  border: 1px solid #e1f3d8;
  border-radius: 4px;
  background: #f0f9eb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  animation: message-fade-in 0.3s ease-out;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  animation: dialog-fade-in 0.2s ease;
}

.modal {
  width: 520px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  animation: dialog-zoom-in 0.3s cubic-bezier(0.55, 0, 0.1, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 16px;
}

.modal-close {
  border: 0;
  background: transparent;
  color: #909399;
  font-size: 20px;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  padding: 22px 24px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 20px;
}

.qr-placeholder {
  width: 190px;
  height: 190px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.qr-placeholder span {
  background: #111;
}

.wallet-dialog {
  width: 520px;
}

.wallet-dialog .modal-body {
  padding: 22px 24px 8px;
}

.wallet-dialog .modal-footer {
  padding: 12px 20px 20px;
}

.batch-login-summary {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #d9ecff;
  border-radius: 4px;
  color: #337ecc;
  background: #ecf5ff;
}

.batch-login-summary.has-warning {
  border-color: #faecd8;
  color: #b88230;
  background: #fdf6ec;
}

.batch-login-result-table {
  overflow-x: auto;
}

.batch-login-result-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.batch-login-result-table th,
.batch-login-result-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  overflow-wrap: anywhere;
}

.batch-login-result-table th:nth-child(1) {
  width: 42%;
}

.batch-login-result-table th:nth-child(2) {
  width: 76px;
}

.wallet-form {
  display: grid;
  gap: 18px;
}

.wallet-form-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.wallet-form-row label {
  color: #606266;
  font-size: 14px;
  line-height: 32px;
  text-align: right;
}

.required-label::before {
  content: "*";
  margin-right: 4px;
  color: #f56c6c;
}

.wallet-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 132px;
  color: #606266;
  font-size: 13px;
  line-height: 1.5;
}

.wallet-check input {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
}

.wallet-oauth-panel {
  display: grid;
  gap: 8px;
  margin-left: 132px;
  padding: 12px;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  background: #f8fafc;
  color: #606266;
  font-size: 13px;
  line-height: 1.6;
}

.wallet-oauth-panel p {
  margin: 0;
}

.wallet-oauth-state {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 20px;
}

.wallet-oauth-state.is-ready {
  color: #529b2e;
  background: #f0f9eb;
}

.wallet-oauth-state.is-blocked {
  color: #b88230;
  background: #fdf6ec;
}

.wallet-oauth-redirect {
  color: #909399;
  word-break: break-all;
}

.wallet-form-tip {
  margin: -4px 0 0 132px;
  color: #909399;
  font-size: 12px;
  line-height: 1.6;
}

.data-error {
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.upload-panel {
  display: grid;
  gap: 12px;
  color: #909399;
  font-size: 14px;
}

.upload-panel p {
  margin: 0;
  line-height: 1.6;
}

.upload-drop {
  display: grid;
  place-items: center;
  min-height: 128px;
  border: 1px dashed #dcdfe6;
  border-radius: 6px;
  color: #606266;
  background: #fff;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.upload-drop:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.upload-drop input {
  display: none;
}

.upload-icon {
  display: block;
  color: #c0c4cc;
  font-size: 28px;
  line-height: 1;
}

.remark-preview {
  display: grid;
  place-items: center;
  gap: 12px;
  color: #909399;
  font-size: 14px;
}

.remark-preview p {
  margin: 0 0 10px;
}

.remark-preview-image {
  width: 260px;
  height: 148px;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  background:
    linear-gradient(135deg, #f5f7fa 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(135deg, transparent 75%, #f5f7fa 75%) 0 0 / 18px 18px,
    linear-gradient(135deg, transparent 25%, #fff 25%) 9px 9px / 18px 18px,
    linear-gradient(135deg, #fff 75%, transparent 75%) 9px 9px / 18px 18px;
}

.mobile-menu {
  display: none;
}

/* Original site shell/style bridge. Kept after local rules so the cloned DOM
   follows the same Element Plus sidebar/header/collapse behavior. */
.main-container.app-shell {
  display: flex;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #f0f2f5;
  transition: none;
}

.side-container.sidebar {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: 220px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #bfcbd9;
  background: #304156;
  transition: none;
}

.side-container.sidebar.isCollapse {
  width: 64px;
}

.wrap .logo.side-title {
  flex: 0 0 51px;
  height: 51px;
  color: #fff;
  background: #304156;
  text-align: center;
  line-height: 50px;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
}

.side-container.isCollapse .logo.side-title {
  font-size: 0;
}

.side-container.isCollapse .logo.side-title::after {
  content: "Xbox";
  font-size: 14px;
}

.wrap .menu.el-menu {
  flex: 1;
  width: 220px;
  min-height: 0;
  overflow: hidden auto;
  border: none;
  background: #304156;
  --el-menu-bg-color: #304156;
  --el-menu-text-color: #fff;
  --el-menu-hover-text-color: #409eff;
  --el-menu-hover-bg-color: transparent;
  --el-menu-active-color: #409eff;
  transition: width linear;
}

.side-container.isCollapse .menu.el-menu,
.wrap .menu.el-menu.el-menu--collapse {
  width: 64px;
}

.menu-section.el-menu-item,
.menu-section .el-sub-menu__title,
.menu-section .el-menu-item {
  height: 56px;
  line-height: 56px;
  color: #fff;
  background: transparent;
  transition:
    border-color var(--el-transition-duration),
    background-color var(--el-transition-duration),
    color var(--el-transition-duration);
}

.menu-section .el-sub-menu__title:hover,
.menu-section.el-menu-item:hover,
.menu-section .el-menu-item:hover {
  color: #409eff;
  background: transparent;
}

.menu-section.is-active > .el-sub-menu__title,
.menu-section.el-menu-item.is-active,
.menu-section .el-menu-item.is-active {
  color: #409eff;
}

.menu-section.is-opened > .el-sub-menu__title {
  background: #263445;
}

.menu-section .el-icon.menu-icon {
  width: 24px;
  height: 18px;
  margin-right: 0;
  font-size: 18px;
  color: inherit;
}

.menu-section .el-icon.menu-icon svg {
  width: 18px;
  height: 18px;
}

.menu-label {
  display: inline-block;
}

.menu-section .el-sub-menu__icon-arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  width: inherit;
  margin-top: -6px;
  margin-right: 0;
  font-size: 12px;
  color: inherit;
  transition: transform var(--el-transition-duration);
}

.menu-section.is-opened .el-sub-menu__icon-arrow {
  transform: rotate(180deg);
}

.wrap .menu .el-menu--inline,
.submenu.el-menu.el-menu--inline {
  background: #1f2d3d;
}

.submenu.el-menu.el-menu--inline {
  max-height: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  pointer-events: none;
  transition:
    max-height var(--el-transition-duration) ease-in-out,
    padding-top var(--el-transition-duration) ease-in-out,
    padding-bottom var(--el-transition-duration) ease-in-out;
}

.menu-section.is-opened > .submenu.el-menu.el-menu--inline {
  max-height: 180px;
  pointer-events: auto;
}

.submenu .el-menu-item {
  height: 50px;
  line-height: 50px;
  padding-left: 52px;
  background: transparent;
}

.side-container.isCollapse .menu-label,
.side-container.isCollapse .el-sub-menu__icon-arrow {
  width: 0;
  height: 0;
  display: inline-block;
  overflow: hidden;
  visibility: hidden;
}

.side-container.isCollapse .submenu {
  display: none;
}

.side-container.isCollapse .menu-section .el-icon.menu-icon {
  width: 24px;
  margin: 0;
  text-align: center;
}

.side-container.isCollapse .menu-section.el-menu-item,
.side-container.isCollapse .menu-section .el-sub-menu__title {
  justify-content: center;
  padding: 0 20px;
}

.collapse-btn {
  position: static;
  flex: 0 0 30px;
  width: 220px;
  height: 30px;
  background: #304156;
  text-align: center;
  cursor: pointer;
  color: #000;
  z-index: auto;
}

.side-container.isCollapse .collapse-btn {
  width: 64px;
}

.collapse-btn .collapse-icon {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
}

.main-container .main {
  flex: auto;
  width: calc(100% - 220px);
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main-container .main.isCollapse {
  width: calc(100% - 50px);
}

.main-container .main .nav.header,
.topbar.header {
  flex: 0 0 50px;
  height: 50px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px 0 0;
  background: #fff;
  box-shadow: none;
}

.header .drop.user-menu {
  width: 38px;
  height: 24px;
  margin-top: -10px;
  margin-left: 10px;
  padding: 0;
  color: #606266;
  line-height: 14px;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.main-container .main .content.app-main {
  flex: 1;
  min-height: 0;
  padding: 10px 20px;
  background: #f0f2f5;
  overflow: auto;
}

.main-container .main .footer {
  flex: 0 0 30px;
  height: 30px;
}

.toast {
  width: fit-content;
  max-width: calc(100% - 32px);
  min-width: 0;
  border-radius: var(--el-border-radius-base);
  border: 1px solid var(--el-color-success-light-8);
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translate(-50%);
  background-color: var(--el-color-success-light-9);
  color: var(--el-color-success);
  transition: opacity var(--el-transition-duration), transform 0.4s, top 0.4s;
  padding: 15px 19px;
  display: flex;
  align-items: center;
  box-shadow: none;
  animation: message-fade-in 0.3s;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .main-container.app-shell {
    display: block;
  }

  .login-hero {
    height: 285px;
    min-height: 285px;
    background-size: cover;
  }

  .login-logo-row {
    padding-left: 14px;
    height: 72px;
    gap: 12px;
  }

  .brand-mark {
    width: 58px;
    height: 60px;
  }

  .login-title-box {
    justify-content: flex-start;
    margin: 20px 0 0 30px;
  }

  .robot-box,
  .robot {
    width: 106px;
    height: 129px;
  }

  .robot-box {
    margin-right: 10px;
  }

  .robot-box::after {
    width: 106px;
    height: 52px;
    bottom: -22px;
  }

  .login-title {
    max-width: none;
    font-size: 29px;
    white-space: nowrap;
  }

  .login-card {
    top: 230px;
    width: calc(100vw - 32px);
    left: 16px;
    margin-left: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-container.sidebar,
  .side-container.sidebar.isCollapse {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1001;
    width: 220px;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-container .main,
  .main-container .main.isCollapse {
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }

  .mobile-menu {
    display: inline-flex;
    margin-right: auto;
    border: 0;
    background: transparent;
    font-size: 22px;
  }

  .content {
    padding: 0 12px 20px;
  }

  .section-card {
    padding: 16px;
  }

  .search-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .search-panel .field,
  .search-panel .date-field,
  .search-panel .field.actions {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    margin: 0;
    justify-self: stretch;
  }

  .search-panel .field.actions {
    justify-content: flex-end;
  }

  .wallet-page .search-panel {
    height: auto;
    gap: 12px;
  }

  .wallet-page .search-panel .field,
  .wallet-page .search-panel .date-field,
  .wallet-page .search-panel .field.actions {
    width: 100%;
    margin: 0;
  }

  .wallet-page .search-panel .field .input-shell,
  .wallet-page .search-panel .date-field,
  .wallet-page .search-panel .date-range {
    width: 100%;
  }

  .el-search-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .el-search-panel .el-field,
  .el-search-panel .el-actions,
  .el-search-panel .el-input,
  .el-search-panel .el-select {
    width: 100% !important;
  }

  .el-search-panel .el-field {
    align-items: stretch;
    flex-direction: column;
  }

  .el-search-panel .el-actions {
    justify-content: flex-end;
  }

  .wallet-table th:last-child,
  .wallet-table td:last-child {
    position: static;
    box-shadow: none;
  }

  .card,
  .section-card,
  .product-page,
  .form-card {
    margin-right: 0;
  }

  .field,
  .date-field,
  .settings-row {
    grid-template-columns: 1fr;
  }

  .field label,
.date-field label,
  .settings-row label {
    text-align: left;
  }

  .product-page {
    grid-template-columns: 1fr;
  }

  .product-hero {
    padding: 24px;
  }
}

/* 加载旋转动画 */
.verify-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #dcdfe6;
  border-top-color: #409eff;
  border-radius: 50%;
  animation: verify-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes verify-spin {
  to { transform: rotate(360deg); }
}

.manual-verify-notice {
  background: #fdf6ec;
  border: 1px solid #e6a23c;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 12px;
}

/* ===== MFA 验证页面（kehua 风格） ===== */
.mfa-verify-page {
  display: flex;
  justify-content: center;
  padding: 60px 24px;
}

.mfa-verify-card {
  width: 440px;
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 40px 32px;
  text-align: center;
}

.mfa-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.mfa-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.mfa-account-name-row {
  font-size: 13px;
  color: var(--info);
  margin-bottom: 24px;
}

.mfa-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.mfa-option-card {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
}

.mfa-option-card:hover {
  border-color: var(--primary);
  background: #ecf5ff;
}

.mfa-option-icon {
  font-size: 24px;
  margin-right: 12px;
}

.mfa-option-label {
  font-size: 15px;
  color: var(--text);
}

.mfa-masked-info {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
  padding: 12px;
  background: #f0f9ff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.mfa-input-group {
  margin-bottom: 20px;
}

.mfa-input {
  width: 100%;
  height: 44px;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.mfa-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(64,158,255,0.2);
}

.mfa-code-input {
  letter-spacing: 6px;
  font-size: 20px;
}

.mfa-submit-btn {
  width: 100%;
  height: 44px;
  font-size: 16px;
}

.mfa-waiting-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: mfa-spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes mfa-spin { to { transform: rotate(360deg); } }

.mfa-info-text {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.mfa-countdown {
  margin-top: 24px;
  font-size: 13px;
  color: #c0c4cc;
}

.mfa-resend {
  margin-top: 16px;
  font-size: 13px;
  color: var(--info);
}

.mfa-success-icon {
  font-size: 56px;
  color: var(--success);
  margin-bottom: 12px;
}

/* ===== kehua Element UI 全局样式 ===== */
.search-box{position:relative;margin-bottom:20px}
.search-box:after{position:absolute;content:"";width:calc(100% + 40px);height:20px;left:-20px;background:#f0f2f5}
.list-title{display:flex;justify-content:space-between;align-items:center;font-weight:700;padding:20px 0}
.table-container{display:flex;flex-direction:column;justify-content:stretch;height:100%}
.el-table__header-wrapper,.el-table__body-wrapper{width:100%}
.el-table--fit{border-right:0;border-bottom:0}
.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:#f5f7fa}
.el-table__empty-block{position:sticky;left:0;min-height:60px;text-align:center;width:100%;display:flex;justify-content:center;align-items:center}
.el-table__empty-text{line-height:60px;width:50%;color:#909399}
.el-table__cell{padding:12px 0}
.el-pagination{white-space:nowrap;color:#303133;font-size:14px;font-weight:400;display:flex;align-items:center;justify-content:flex-end}
.btn-prev,.btn-next{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #dcdfe6;border-radius:2px;background:#fff;color:#606266;cursor:pointer}
.btn-prev:disabled,.btn-next:disabled{color:#c0c4cc;cursor:not-allowed}
.btn-prev:hover:not(:disabled),.btn-next:hover:not(:disabled){color:#409eff;border-color:#c6e2ff}
.el-pagination__sizes,.el-pagination__total{margin-left:16px;font-weight:400;color:#606266}
.el-pagination__jump{display:flex;align-items:center;margin-left:16px;font-weight:400;color:#606266}
.el-pagination__goto{margin-right:8px}
.el-pagination__editor{text-align:center;box-sizing:border-box;width:56px;height:28px;border:1px solid #dcdfe6;border-radius:2px}
.el-pagination__editor:focus{border-color:#409eff;outline:none}
.el-pager{display:inline-flex;list-style:none;margin:0 4px;padding:0;gap:4px}
.el-pager .number{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;border-radius:2px;font-size:13px;color:#303133;cursor:pointer;background:#f5f7fa}
.el-pager .number:hover{color:#409eff}
.el-pager .number.is-active{color:#fff;background:#409eff}
.el-form-item{margin-bottom:18px}
.el-form-item__label{color:#606266;font-size:14px;line-height:32px;padding-right:8px}
.asterisk-left .el-form-item__label:before{content:"*";color:#f56c6c;margin-right:4px}
.el-form--inline .el-form-item{display:inline-flex;vertical-align:middle;margin-right:32px;margin-bottom:0}
.el-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;padding:1px 11px;background:#fff;border-radius:4px;box-shadow:0 0 0 1px #dcdfe6 inset;cursor:text;transition:box-shadow .2s}
.el-input__wrapper:hover{box-shadow:0 0 0 1px #c0c4cc inset}
.el-input__wrapper:focus-within{box-shadow:0 0 0 1px #409eff inset}
.el-input__inner{width:100%;height:30px;color:#606266;font-size:14px;line-height:30px;padding:0;outline:none;border:none;background:none;box-sizing:border-box}
.el-input__inner::placeholder{color:#c0c4cc}
.el-button{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:8px 15px;font-size:14px;color:#606266;border:1px solid #dcdfe6;border-radius:4px;background:#fff;cursor:pointer;transition:.1s;white-space:nowrap}
.el-button:hover{color:#409eff;border-color:#c6e2ff;background:#ecf5ff}
.el-button--primary{color:#fff;border-color:#409eff;background:#409eff}
.el-button--primary:hover{color:#fff;border-color:#79bbff;background:#79bbff}

/* Proxy management mirrors the Kehua workspace without changing its data flow. */
.proxy-page.wrap {
  width: 100%;
  height: calc(100vh - 150px);
  padding: 20px 20px 10px;
  overflow: auto;
  background: #fff;
}

.proxy-page .table-container {
  height: 100%;
}

.proxy-page .search-form {
  display: flex;
  align-items: flex-start;
  min-height: 50px;
}

.proxy-page .el-form--inline .el-form-item {
  margin: 0 32px 18px 0;
}

.proxy-page .el-form-item__label {
  display: flex;
  padding-right: 12px;
}

.proxy-page .el-form-item__content {
  display: flex;
  line-height: 32px;
}

.proxy-page .el-input {
  display: flex;
  width: 168px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 32px;
}

.proxy-page .el-input__wrapper {
  width: 100%;
  height: 32px;
}

.proxy-page .el-table {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: #606266;
  background: #fff;
  font-size: 14px;
}

.proxy-page .el-table__header-wrapper {
  flex: 0 0 40px;
  height: 40px;
  overflow: hidden;
}

.proxy-page .el-table__body-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.proxy-page .el-table__header,
.proxy-page .el-table__body {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.proxy-page .proxy-col-id { width: 6.632653%; }
.proxy-page .proxy-col-name { width: 13.061224%; }
.proxy-page .proxy-col-info,
.proxy-page .proxy-col-country,
.proxy-page .proxy-col-status { width: 12.653061%; }
.proxy-page .proxy-col-updated { width: 15.816327%; }
.proxy-page .proxy-col-actions { width: 26.530612%; }

.proxy-page .el-table__cell,
.proxy-page th.el-table__cell:first-child,
.proxy-page td.el-table__cell:first-child,
.proxy-page th.el-table__cell:last-child,
.proxy-page td.el-table__cell:last-child {
  height: 40px;
  width: auto;
  padding: 8px 0;
  position: static;
  box-shadow: none;
  background: #fff;
}

.proxy-page .cell {
  min-width: 0;
  padding: 0 12px;
  overflow: hidden;
  color: inherit;
  line-height: 23px;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
}

.proxy-page .el-table__body .btn.link + .btn.link {
  margin-left: 12px;
}

.proxy-page .el-table__empty-block {
  flex: 1 1 auto;
  min-height: 60px;
  font-size: 14px;
}

.proxy-page .el-table__empty-text {
  font-size: 14px;
}

.proxy-page .el-pagination {
  align-self: flex-end;
  width: max-content;
  justify-content: flex-start;
  margin: 10px 0 8px;
}

.proxy-page .el-pagination__total.is-first {
  margin-left: 0;
}

.proxy-page .el-pagination__sizes {
  position: relative;
  width: 128px;
  height: 32px;
}

.proxy-page .el-pagination__sizes::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1px solid #a8abb2;
  border-bottom: 1px solid #a8abb2;
  transform: rotate(45deg);
  pointer-events: none;
}

.proxy-page .el-page-size-select {
  width: 128px;
  height: 32px;
  padding: 0 32px 0 11px;
  appearance: none;
  border-radius: 4px;
  font-size: 14px;
}

.proxy-page .btn-prev,
.proxy-page .btn-next {
  padding: 0 4px;
  border: 0;
  border-radius: 0;
}

.proxy-page .btn-prev {
  margin-left: 16px;
}

.proxy-page .btn-prev .el-icon,
.proxy-page .btn-next .el-icon,
.proxy-page .btn-prev svg,
.proxy-page .btn-next svg {
  width: 14px;
  height: 14px;
}

.proxy-page .el-pager {
  gap: 0;
  margin: 0;
}

.proxy-page .el-pager .number {
  min-width: 32px;
  color: #303133;
  background: transparent;
}

.proxy-page .el-pager .number.is-active {
  color: #409eff;
  background: transparent;
}

.proxy-page .el-pagination__jump {
  width: 114px;
  height: 32px;
}

.proxy-page .el-pagination__editor {
  height: 32px;
}

.proxy-page .el-pagination__classifier {
  margin-left: 8px;
}

@media (max-width: 900px) {
  .proxy-page.wrap {
    height: auto;
    min-height: calc(100vh - 144px);
    padding: 16px;
    overflow: visible;
  }

  .proxy-page .search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
  }

  .proxy-page .el-form--inline .el-form-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    width: 100%;
    margin: 0;
  }

  .proxy-page .el-form--inline .el-form-item:last-child {
    display: flex;
    justify-content: flex-end;
  }

  .proxy-page .el-input,
  .proxy-page .el-form-item__content {
    width: 100%;
    min-width: 0;
  }

  .proxy-page .el-table {
    flex: 0 0 320px;
    height: 320px;
    overflow-x: auto;
  }

  .proxy-page .el-table__header-wrapper,
  .proxy-page .el-table__body-wrapper {
    min-width: 720px;
  }

  .proxy-page .el-pagination {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .proxy-page .el-pagination__sizes,
  .proxy-page .el-page-size-select {
    width: 112px;
  }
}
.w-e-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:2px;padding:6px 8px;background:#fafafa}
.w-e-bar-item{display:inline-flex;align-items:center}
.w-e-menu-tooltip-v5{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:26px;border:0;border-radius:3px;background:transparent;color:#606266;font-size:13px;cursor:pointer;padding:0 6px}
.w-e-menu-tooltip-v5:hover{background:#e5e5e5}
.w-e-menu-tooltip-v5 svg{width:16px;height:16px}
.w-e-bar-divider{display:inline-block;width:1px;height:18px;background:#ccc;margin:0 4px}
.select-button{display:inline-flex;align-items:center;justify-content:space-between;gap:4px;height:26px;border:1px solid #e5e5e5;border-radius:3px;background:#fff;color:#606266;font-size:12px;cursor:pointer;padding:0 8px}
.select-button:hover{border-color:#409eff}
.select-button svg{width:12px;height:12px;flex-shrink:0}
.w-e-text-container{position:relative;height:100%}
.w-e-text-placeholder{position:absolute;top:10px;left:14px;color:#c0c4cc;font-size:14px;pointer-events:none}
.w-e-scroll{height:100%;overflow-y:auto}
.w-e-scroll [data-slate-editor]{min-height:100%;padding:10px 14px;font-size:14px;color:#303133;line-height:1.6;outline:none}
.el-editor-preview{border:1px solid #e4e7ed;border-radius:8px;overflow:hidden;text-align:center;background:linear-gradient(135deg,#0a1628 0%,#1a2a4a 100%);color:#fff;padding:24px 16px;min-height:500px}
.preview-header{font-size:20px;font-weight:700;margin-bottom:16px}
.preview-code-box{display:inline-block;background:rgba(255,255,255,.15);border:1px dashed rgba(255,255,255,.4);border-radius:6px;padding:8px 24px;margin-bottom:10px;font-size:14px}
.preview-btn{display:block;margin:8px auto;padding:10px 40px;border:0;border-radius:24px;background:linear-gradient(135deg,#67c23a,#85ce61);color:#fff;font-size:15px;font-weight:600;cursor:pointer}
.preview-footer{margin-top:16px;font-size:12px;opacity:.6;line-height:1.6}

/* 用户/角色管理 Element UI */
.el-search-panel{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;margin-bottom:16px}
.el-field{display:inline-flex;align-items:center;gap:8px}
.el-field label{color:#606266;font-size:14px;white-space:nowrap}
.el-input{padding:0 12px;height:32px;border:1px solid #dcdfe6;border-radius:4px;font-size:14px;color:#303133;outline:none;background:#fff;transition:border-color .2s;box-sizing:border-box}
.el-input:focus{border-color:#409eff}
.el-select{padding:0 8px;height:32px;border:1px solid #dcdfe6;border-radius:4px;font-size:14px;color:#303133;outline:none;background:#fff;cursor:pointer}
.el-actions{display:flex;gap:8px}
.el-btn{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 15px;font-size:14px;color:#606266;border:1px solid #dcdfe6;border-radius:4px;background:#fff;cursor:pointer;transition:.1s}
.el-btn:hover{color:#409eff;border-color:#c6e2ff;background:#ecf5ff}
.el-btn-primary{color:#fff;border-color:#409eff;background:#409eff}
.el-btn-primary:hover{color:#fff;border-color:#79bbff;background:#79bbff}
.el-toolbar{display:flex;justify-content:flex-end;margin-bottom:12px}
.el-table-wrap{border:1px solid #ebeef5;border-radius:4px;overflow:hidden}
.el-table-wrap table{width:100%;border-collapse:collapse;font-size:14px}
.el-table-wrap thead{background:#f5f7fa}
.el-table-wrap th{height:40px;padding:8px 16px;text-align:left;color:#909399;font-weight:600;border-bottom:1px solid #ebeef5}
.el-table-wrap td{height:47px;padding:8px 16px;color:#303133;border-bottom:1px solid #ebeef5}
.el-table-wrap tbody tr:hover{background:#f5f7fa}
.el-table-actions{display:flex;gap:8px}
.el-btn-small{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 12px;font-size:12px;color:#409eff;border:1px solid #c6e2ff;border-radius:3px;background:#ecf5ff;cursor:pointer;transition:.1s}
.el-btn-small:hover{color:#fff;background:#409eff}
.el-switch{position:relative;display:inline-block;width:40px;height:20px;border-radius:10px;background:#dcdfe6;cursor:pointer;transition:background .3s;vertical-align:middle}
.el-switch input{display:none}
.el-switch-core{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .3s}
.el-switch.is-checked{background:#409eff}
.el-switch.is-checked .el-switch-core{transform:translateX(20px)}
.el-pagination-wrap{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 0;font-size:13px;color:#606266;flex-wrap:wrap}
.el-pagination-total{margin-right:8px}
.el-page-btn{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border:1px solid #dcdfe6;border-radius:2px;background:#fff;color:#606266;font-size:13px;cursor:pointer}
.el-page-btn:hover:not(:disabled){color:#409eff;border-color:#c6e2ff}
.el-page-btn:disabled{color:#c0c4cc;cursor:not-allowed}
.el-page-btn.active{color:#fff;background:#409eff;border-color:#409eff}
.el-page-size-select{height:28px;border:1px solid #dcdfe6;border-radius:2px;padding:0 8px;font-size:13px;color:#606266;background:#fff;cursor:pointer;outline:none}
.el-page-jump{display:inline-flex;align-items:center;gap:4px}
.el-page-jump input{width:48px;height:28px;border:1px solid #dcdfe6;border-radius:2px;text-align:center;font-size:13px;color:#303133;outline:none;box-sizing:border-box}
.el-page-jump input:focus{border-color:#409eff}

/* 用户下拉 */
.el-dropdown-link{display:inline-flex;align-items:center;gap:4px;color:#606266;font-size:14px;cursor:pointer;user-select:none;transition:color .2s;white-space:nowrap}
.el-dropdown-link:hover,.el-dropdown-link.active{color:#409eff}
.el-dropdown-link .el-icon--right{display:inline-flex;align-items:center;font-size:12px;transition:transform .3s}
.el-dropdown-link.active .el-icon--right{transform:rotate(180deg)}
.el-dropdown-link svg{width:12px;height:12px}
.header .el-dropdown-link{margin-right:10px}
.w-600px{width:600px}
.my-2{margin-top:8px;margin-bottom:8px}
.ml-4{margin-left:16px}
.flex-1{flex:1}
.z-10{z-index:10}

/* switch 组件 (原项目风格) */
.switch{display:inline-block;width:40px;height:20px;border-radius:10px;background:#dcdfe6;position:relative;transition:background .3s}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .3s}
.switch.on{background:#409eff}
.switch.on::after{transform:translateX(20px)}

/* 检测记录表格紧凑样式 */
.check-table-wrap{overflow-x:auto}
.check-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;border:1px solid #ebeef5;font-size:11px}
.check-table thead tr{background:#f5f7fa}
.check-th{padding:4px 6px;text-align:left;color:#909399;font-weight:700;border-bottom:1px solid #ebeef5}
.check-td{padding:4px 6px;border-bottom:1px solid #ebeef5;word-break:break-all;vertical-align:middle;font-size:11px}
.check-th--check,.check-td--check{width:6%;text-align:center}
.check-th--code,.check-td--code{width:22%;font-family:monospace;font-size:10px}
.check-th--type,.check-td--type{width:8%}
.check-th--time,.check-td--time{width:15%;font-size:10px}
.check-th--status,.check-td--status{width:8%}
.check-th--info,.check-td--info{width:24%}
.check-th--person,.check-td--person{width:9%}
.check-th--action,.check-td--action{width:8%;text-align:center}
.check-td--action .btn.small{padding:2px 4px;font-size:10px}

/* 多选下拉组件 (模拟 el-select multiple) */
.multi-select{position:relative;width:100%;}
.multi-select-trigger{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 8px;border:1px solid #dcdfe6;border-radius:4px;background:#fff;cursor:pointer;font-size:13px;min-width:120px;box-sizing:border-box;}
.multi-select-trigger:hover{border-color:#409eff;}
.multi-select-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#606266;}
.multi-select-arrow{color:#c0c4cc;font-size:12px;margin-left:4px;flex-shrink:0;}
.multi-select-dropdown{position:absolute;top:100%;left:0;right:0;z-index:100;background:#fff;border:1px solid #e4e7ed;border-radius:4px;box-shadow:0 2px 12px rgba(0,0,0,.1);padding:6px 0;max-height:200px;overflow-y:auto;}
.multi-select-item{display:flex;align-items:center;gap:6px;padding:6px 12px;font-size:13px;cursor:pointer;white-space:nowrap;}
.multi-select-item:hover{background:#f5f7fa;}
.multi-select-item input[type="checkbox"]{margin:0;cursor:pointer;}

/* 独立账号明细页 */
body.account-detail-body {
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f3f4f6;
  color: #242424;
  font-size: 14px;
}

.account-detail-page {
  min-height: 100vh;
}

.account-detail-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid #e1dfdd;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.account-detail-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(920px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
}

.account-detail-header-inner > div {
  min-width: 0;
}

.account-detail-brand {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.account-detail-header h1 {
  margin: 0;
  color: #242424;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.account-detail-section-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.account-detail-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.account-detail-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.account-detail-toolbar-copy {
  min-width: 0;
}

.account-detail-toolbar h2 {
  margin: 0 0 5px;
  color: #242424;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.account-detail-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.account-detail-overview {
  margin-bottom: 20px;
  border-top: 1px solid #d2d0ce;
  border-bottom: 1px solid #d2d0ce;
  background: #fff;
}

.account-detail-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.account-detail-overview-grid > div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid #edebe9;
  border-bottom: 1px solid #edebe9;
}

.account-detail-overview-grid > div:nth-child(3n) {
  border-right: 0;
}

.account-detail-overview-grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.account-detail-overview-grid dt,
.account-detail-overview-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.account-detail-overview-grid dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.account-detail-overview-grid dd {
  color: #242424;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.account-detail-filters {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(86px, auto));
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #c8c6c4;
  border-radius: 4px;
  background: #fff;
}

.account-detail-filter {
  min-width: 0;
  height: 36px;
  padding: 0 13px;
  border: 0;
  border-right: 1px solid #e1dfdd;
  border-radius: 0;
  background: #fff;
  color: #3b3a39;
  font-size: 13px;
  white-space: nowrap;
}

.account-detail-filter:last-child {
  border-right: 0;
}

.account-detail-filter:hover {
  background: #f3f2f1;
  color: #005a9e;
}

.account-detail-filter.is-active {
  background: #eaf4fc;
  box-shadow: inset 0 -3px #0078d4;
  color: #005a9e;
  font-weight: 600;
}

.account-detail-filter:focus-visible,
.account-detail-record-toggle:focus-visible,
.account-detail-retry:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #0078d4;
  outline-offset: 2px;
}

.account-detail-state {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
  text-align: center;
}

.account-detail-state[hidden],
.account-detail-records[hidden],
.account-detail-load-status[hidden] {
  display: none;
}

.account-detail-state p {
  max-width: 420px;
  margin: 0;
  line-height: 1.6;
}

.account-detail-state.is-error p {
  color: #a4262c;
}

.account-detail-spinner {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 3px solid #d2d0ce;
  border-top-color: #0078d4;
  border-radius: 50%;
  animation: account-detail-spin 0.75s linear infinite;
}

.account-detail-spinner.is-small {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

@keyframes account-detail-spin {
  to { transform: rotate(360deg); }
}

.account-detail-retry {
  min-width: 72px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid #0078d4;
  border-radius: 3px;
  background: #0078d4;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.account-detail-retry:hover {
  border-color: #106ebe;
  background: #106ebe;
}

.account-detail-records {
  display: grid;
  gap: 16px;
}

.account-detail-record {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d2d0ce;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.account-detail-record-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 14px;
}

.account-detail-record-identity {
  min-width: 0;
}

.account-detail-record-date {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.account-detail-record-order {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.account-detail-record-order strong {
  min-width: 0;
  color: #242424;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.account-detail-status {
  flex: 0 0 auto;
  max-width: 45%;
  padding: 4px 9px;
  border: 1px solid #c8c6c4;
  border-radius: 3px;
  background: #f3f2f1;
  color: #3b3a39;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: center;
}

.account-detail-status.is-success {
  border-color: #a7d8a9;
  background: #f1faf1;
  color: #107c10;
}

.account-detail-status.is-warning {
  border-color: #f1ca89;
  background: #fff8e7;
  color: #8a4b08;
}

.account-detail-status.is-danger {
  border-color: #e7a4a7;
  background: #fdf3f4;
  color: #a4262c;
}

.account-detail-record-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 28px;
  padding: 0 20px 18px;
}

.account-detail-record-metric {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-detail-record-metric span {
  color: var(--muted);
  font-size: 12px;
}

.account-detail-record-metric strong {
  min-width: 0;
  color: #242424;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.account-detail-record-toggle {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 20px;
  border: 0;
  border-top: 1px solid #edebe9;
  border-radius: 0;
  background: #faf9f8;
  color: #005a9e;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.account-detail-record-toggle:hover {
  background: #f3f2f1;
}

.account-detail-chevron {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.18s ease;
}

.account-detail-record-toggle[aria-expanded="true"] .account-detail-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.account-detail-record-details {
  border-top: 1px solid #edebe9;
  background: #fff;
}

.account-detail-list {
  display: grid;
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr);
  margin: 0;
  padding: 8px 20px 16px;
}

.account-detail-term,
.account-detail-description {
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #f3f2f1;
  line-height: 1.5;
}

.account-detail-term {
  padding-right: 16px;
  color: var(--muted);
  font-size: 12px;
}

.account-detail-description {
  color: #242424;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.account-detail-load-status {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.account-detail-load-status .account-detail-retry {
  min-width: 62px;
  height: 30px;
  padding: 0 12px;
}

.account-detail-sentinel {
  width: 100%;
  height: 1px;
}

.account-detail-noscript {
  width: min(920px, calc(100% - 40px));
  margin: 20px auto;
  color: #a4262c;
  text-align: center;
}

@media (max-width: 720px) {
  .account-detail-header-inner,
  .account-detail-main,
  .account-detail-noscript {
    width: min(100% - 28px, 920px);
  }

  .account-detail-header-inner {
    min-height: 70px;
  }

  .account-detail-section-label {
    display: none;
  }

  .account-detail-main {
    padding: 24px 0 40px;
  }

  .account-detail-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .account-detail-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .account-detail-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-detail-overview-grid > div:nth-child(3n) {
    border-right: 1px solid #edebe9;
  }

  .account-detail-overview-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .account-detail-overview-grid > div:nth-last-child(-n + 3) {
    border-bottom: 1px solid #edebe9;
  }

  .account-detail-overview-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .account-detail-filter:nth-child(2) {
    border-right: 0;
  }

  .account-detail-filter:nth-child(-n + 2) {
    border-bottom: 1px solid #e1dfdd;
  }

  .account-detail-record-header {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .account-detail-record-order {
    align-items: start;
    flex-direction: column;
    gap: 2px;
  }

  .account-detail-status {
    max-width: 100%;
  }

  .account-detail-record-overview {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 16px 16px;
  }

  .account-detail-record-toggle {
    padding-right: 16px;
    padding-left: 16px;
  }

  .account-detail-list {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 16px 16px;
  }

  .account-detail-term {
    padding: 10px 0 2px;
    border-bottom: 0;
  }

  .account-detail-description {
    padding: 0 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-detail-spinner {
    animation-duration: 1.5s;
  }

  .account-detail-chevron {
    transition: none;
  }
}
