/* 爱易售 · 后台品牌视觉层（仅样式，不改业务逻辑） */
:root {
  --ay-navy-950: #041c40;
  --ay-navy-900: #06295b;
  --ay-navy-800: #08376e;
  --ay-blue-700: #066fb9;
  --ay-blue-600: #0789e8;
  --ay-blue-500: #0a96f2;
  --ay-cyan-500: #08b3e5;
  --ay-orange-600: #ef7c05;
  --ay-orange-500: #ff850a;
  --ay-green-600: #0a9b6c;
  --ay-red-500: #e34b55;
  --ay-bg: #f3f6fa;
  --ay-surface: #ffffff;
  --ay-surface-soft: #f8fafc;
  --ay-border: #e3eaf2;
  --ay-border-strong: #cad7e5;
  --ay-divider: #edf1f6;
  --ay-text-1: #13243c;
  --ay-text-2: #3c4d65;
  --ay-text-3: #738299;
  --ay-text-4: #a5b1c2;
  --ay-blue-soft: #e8f3ff;
  --ay-cyan-soft: #e8f9fd;
  --ay-orange-soft: #fff3e3;
  --ay-green-soft: #e8f7f1;
  --ay-red-soft: #feedef;
  --ay-shadow-1: 0 2px 8px rgba(6, 41, 91, 0.04);
  --ay-shadow-2: 0 10px 30px rgba(6, 41, 91, 0.08);

  --el-color-primary: var(--ay-blue-600);
  --el-color-primary-light-3: #4ca9ef;
  --el-color-primary-light-5: #84c3f4;
  --el-color-primary-light-7: #b7ddf8;
  --el-color-primary-light-8: #d1e9fb;
  --el-color-primary-light-9: var(--ay-blue-soft);
  --el-color-primary-dark-2: var(--ay-blue-700);
  --el-border-color: var(--ay-border);
  --el-border-color-light: var(--ay-divider);
  --el-border-color-lighter: #f0f4f8;
  --el-text-color-primary: var(--ay-text-1);
  --el-text-color-regular: var(--ay-text-2);
  --el-text-color-secondary: var(--ay-text-3);
  --el-bg-color: var(--ay-surface);
  --el-fill-color-light: var(--ay-surface-soft);
  --el-fill-color-lighter: #fbfcfe;
  --el-border-radius-base: 8px;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  color: var(--ay-text-1);
  background: var(--ay-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--ay-navy-900);
  background: var(--ay-blue-soft);
}

/* ------------------------------------------------------------ 登录页 */
.login-page.login-page {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 8%, rgba(8, 179, 229, 0.2), transparent 30%),
    radial-gradient(circle at 8% 96%, rgba(7, 137, 232, 0.16), transparent 34%),
    linear-gradient(145deg, var(--ay-navy-800), var(--ay-navy-900) 52%, var(--ay-navy-950)) !important;
}

.login-page.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, var(--ay-navy-950), transparent 88%);
  mask-image: linear-gradient(to bottom, var(--ay-navy-950), transparent 88%);
}

.login-card.login-card {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  width: 880px !important;
  max-width: calc(100vw - 48px);
  min-height: 520px;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px !important;
  background: var(--ay-surface) !important;
  box-shadow: 0 30px 80px rgba(4, 28, 64, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

.login-card > .brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  margin: 0 !important;
  padding: 132px 48px 48px !important;
  overflow: hidden;
  text-align: left !important;
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0, rgba(8, 179, 229, 0.28), transparent 38%),
    linear-gradient(145deg, var(--ay-navy-800), var(--ay-navy-900) 62%, var(--ay-navy-950));
}

.login-card > .brand::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 48px;
  width: 176px;
  height: 76px;
  background: url("/assets/wegame-logo-white.png") left center / contain no-repeat;
}

.login-card > .brand::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -92px;
  width: 330px;
  height: 330px;
  opacity: 0.07;
  background: url("/assets/wegame-logo-icon.png") center / contain no-repeat;
  transform: rotate(-8deg);
  pointer-events: none;
}

.login-card > .brand .brand-icon {
  display: none !important;
}

.login-card > .brand h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px !important;
  color: #ffffff !important;
  font-size: 27px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

.login-card > .brand p {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px !important;
}

.login-card > .brand p::before {
  content: "AIYISHOU ADMIN";
  display: block;
  margin-bottom: 22px;
  color: rgba(105, 181, 239, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.login-card > .brand p::after {
  content: "网吧授权管理 · 代理协同服务 · 订单财务对账";
  display: block;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.login-card > form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  padding: 54px 48px !important;
  background: var(--ay-surface);
}

.login-card > form::before {
  content: "欢迎回来";
  display: block;
  margin-bottom: 28px;
  color: var(--ay-navy-900);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.login-card .el-form-item {
  margin-bottom: 22px;
}

.login-card .el-input--large .el-input__wrapper {
  min-height: 46px;
  padding: 1px 14px;
  border-radius: 9px;
  background: var(--ay-surface-soft);
  box-shadow: 0 0 0 1px var(--ay-border) inset;
  transition: background 0.2s, box-shadow 0.2s;
}

.login-card .el-input--large .el-input__wrapper:hover {
  box-shadow: 0 0 0 1px var(--ay-border-strong) inset;
}

.login-card .el-input--large .el-input__wrapper.is-focus {
  background: var(--ay-surface);
  box-shadow: 0 0 0 2px rgba(7, 137, 232, 0.22) inset !important;
}

.login-card .el-input__inner {
  color: var(--ay-text-1);
  font-size: 14px;
}

.login-card .el-input__prefix-inner {
  color: var(--ay-text-4);
}

.login-card .login-btn {
  width: 100%;
  height: 46px !important;
  margin-top: 4px;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, var(--ay-blue-600), var(--ay-cyan-500)) !important;
  box-shadow: 0 8px 20px rgba(7, 137, 232, 0.26) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
}

.login-card .login-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 24px rgba(7, 137, 232, 0.32);
}

.login-card .register-link,
.login-card .el-link {
  color: var(--ay-blue-600);
}

.icp-footer {
  z-index: 2;
  color: rgba(255, 255, 255, 0.44) !important;
}

.icp-footer .icp-link {
  color: rgba(255, 255, 255, 0.44) !important;
}

.icp-footer .icp-link:hover {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* ------------------------------------------------------------ 后台骨架 */
.layout-container {
  background: var(--ay-bg);
}

.layout-container aside.sidebar {
  width: 232px !important;
  flex: 0 0 232px;
  background: linear-gradient(180deg, var(--ay-navy-900), var(--ay-navy-950)) !important;
  box-shadow: 8px 0 28px rgba(4, 28, 64, 0.08);
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.sidebar .logo {
  height: 76px !important;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px;
  padding: 0 18px !important;
  overflow: hidden;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sidebar .logo .logo-icon,
.sidebar .logo > span:not(.logo-version) {
  display: none !important;
}

.sidebar .logo::before {
  content: "";
  width: 154px;
  height: 64px;
  flex: 0 0 154px;
  background: url("/assets/wegame-logo-white.png") left center / contain no-repeat;
}

.sidebar .logo-version {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.46) !important;
  background: rgba(255, 255, 255, 0.05);
  font-size: 9px !important;
  line-height: 16px;
  white-space: nowrap;
}

.sidebar .el-menu {
  padding: 12px 10px 20px;
  border-right: 0 !important;
  background: transparent !important;
  --el-menu-bg-color: transparent !important;
  --el-menu-text-color: rgba(255, 255, 255, 0.7);
  --el-menu-hover-text-color: #ffffff;
  --el-menu-hover-bg-color: rgba(255, 255, 255, 0.07);
  --el-menu-active-color: #ffffff;
}

.sidebar .el-menu-item,
.sidebar .el-sub-menu__title {
  height: 44px !important;
  margin: 2px 0;
  padding: 0 13px !important;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 13px;
  line-height: 44px !important;
  transition: background 0.18s, color 0.18s;
}

.sidebar .el-menu-item .el-icon,
.sidebar .el-sub-menu__title .el-icon {
  width: 20px;
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 17px;
  transition: color 0.18s;
}

.sidebar .el-menu-item:hover,
.sidebar .el-sub-menu__title:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

.sidebar .el-menu-item:hover .el-icon,
.sidebar .el-sub-menu__title:hover .el-icon {
  color: rgba(255, 255, 255, 0.9);
}

.sidebar .el-menu-item.is-active {
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(7, 137, 232, 0.34), rgba(8, 179, 229, 0.14)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.sidebar .el-menu-item.is-active .el-icon {
  color: var(--ay-cyan-500);
}

.sidebar .el-menu-item.is-active::before {
  content: "";
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ay-cyan-500);
  box-shadow: 0 0 10px rgba(8, 179, 229, 0.6);
}

.sidebar .el-sub-menu .el-menu-item {
  min-width: 0;
  padding-left: 45px !important;
  font-size: 12.5px;
}

.sidebar .el-sub-menu .el-menu {
  padding: 2px 0;
}

.sidebar .el-sub-menu__icon-arrow {
  color: rgba(255, 255, 255, 0.35) !important;
}

.layout-container header.header {
  height: 64px !important;
  padding: 0 24px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid var(--ay-border) !important;
  box-shadow: 0 1px 0 rgba(6, 41, 91, 0.02);
  backdrop-filter: blur(12px);
}

.header .el-breadcrumb {
  font-size: 13px;
}

.header .el-breadcrumb__inner {
  color: var(--ay-text-3) !important;
  font-weight: 500;
}

.header .el-breadcrumb__separator {
  color: var(--ay-text-4) !important;
}

.header .el-breadcrumb__item:last-child .el-breadcrumb__inner {
  color: var(--ay-navy-900) !important;
  font-weight: 600;
}

.header .header-right {
  gap: 14px;
}

.header .el-tag {
  height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
}

.header .el-tag--danger {
  color: var(--ay-orange-600) !important;
  background: var(--ay-orange-soft) !important;
}

.header .el-tag--warning {
  color: var(--ay-blue-600) !important;
  background: var(--ay-blue-soft) !important;
}

.header .user-info {
  height: 38px;
  padding: 0 8px;
  border-radius: 9px;
  color: var(--ay-text-2) !important;
  font-size: 13px;
  transition: background 0.18s;
}

.header .user-info:hover {
  background: var(--ay-surface-soft);
}

.header .user-info > .el-icon:first-child {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ay-blue-600), var(--ay-navy-900));
  font-size: 14px;
}

.header .cs-trigger {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ay-text-2) !important;
  font-size: 12px;
  transition: background 0.18s;
}

.header .cs-trigger:hover {
  background: var(--ay-blue-soft);
}

.header .cs-trigger .el-icon {
  color: var(--ay-blue-600) !important;
}

main.el-main.main {
  min-height: calc(100vh - 64px);
  padding: 24px !important;
  background: var(--ay-bg) !important;
}

/* ------------------------------------------------------------ 通用组件 */
.el-card {
  border: 1px solid var(--ay-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--ay-shadow-1) !important;
}

.el-card__header {
  padding: 18px 20px !important;
  border-bottom: 1px solid var(--ay-divider) !important;
}

.el-card__body {
  padding: 20px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ay-shadow-2) !important;
}

.stat-card .stat-icon {
  width: 46px !important;
  height: 46px !important;
  display: grid;
  place-items: center;
  border-radius: 12px !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(6, 41, 91, 0.12);
}

.el-row > .el-col:nth-child(4n + 1) .stat-card .stat-icon {
  background: var(--ay-blue-600) !important;
}

.el-row > .el-col:nth-child(4n + 2) .stat-card .stat-icon {
  background: var(--ay-cyan-500) !important;
}

.el-row > .el-col:nth-child(4n + 3) .stat-card .stat-icon {
  background: var(--ay-green-600) !important;
}

.el-row > .el-col:nth-child(4n + 4) .stat-card .stat-icon {
  background: var(--ay-orange-500) !important;
}

.stat-card .stat-value {
  color: var(--ay-navy-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-label {
  color: var(--ay-text-3);
  font-size: 12px;
}

.stat-card .stat-arrow {
  color: var(--ay-text-4);
}

.el-button {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.18s;
}

.el-button--primary:not(.is-plain):not(.is-text):not(.is-link) {
  border-color: var(--ay-blue-600) !important;
  background: var(--ay-blue-600) !important;
  box-shadow: 0 4px 12px rgba(7, 137, 232, 0.18);
}

.el-button--primary:not(.is-plain):not(.is-text):not(.is-link):hover,
.el-button--primary:not(.is-plain):not(.is-text):not(.is-link):focus {
  border-color: var(--ay-blue-500) !important;
  background: var(--ay-blue-500) !important;
}

.el-button--primary.is-plain {
  color: var(--ay-blue-600) !important;
  background: var(--ay-blue-soft) !important;
  border-color: #b7ddf8 !important;
  box-shadow: none;
}

.el-button--primary.is-plain:hover,
.el-button--primary.is-plain:focus {
  color: var(--ay-blue-700) !important;
  background: #d9ecfc !important;
  border-color: #84c3f4 !important;
}

.el-button--primary.is-text,
.el-button--primary.is-link {
  color: var(--ay-blue-600) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none;
}

.el-button--default {
  border-color: var(--ay-border-strong);
  color: var(--ay-text-2);
  background: var(--ay-surface);
}

.el-button--default:hover {
  border-color: var(--ay-blue-600);
  color: var(--ay-blue-600);
  background: var(--ay-blue-soft);
}

.el-input__wrapper,
.el-textarea__inner,
.el-select__wrapper {
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--ay-border) inset;
  transition: box-shadow 0.18s, background 0.18s;
}

.el-input__wrapper:hover,
.el-select__wrapper:hover {
  box-shadow: 0 0 0 1px var(--ay-border-strong) inset;
}

.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused,
.el-textarea__inner:focus {
  box-shadow: 0 0 0 2px rgba(7, 137, 232, 0.2) inset !important;
}

.el-form-item__label {
  color: var(--ay-text-2);
  font-weight: 500;
}

.el-table {
  --el-table-border-color: var(--ay-divider);
  --el-table-header-bg-color: var(--ay-surface-soft);
  --el-table-row-hover-bg-color: #f4f9ff;
  --el-table-header-text-color: var(--ay-text-3);
  --el-table-text-color: var(--ay-text-2);
  border-radius: 10px;
}

.el-table th.el-table__cell {
  height: 46px;
  font-size: 12px;
  font-weight: 600;
}

.el-table td.el-table__cell {
  height: 48px;
}

.el-table .cell {
  line-height: 20px;
}

.el-table__inner-wrapper::before {
  display: none;
}

.el-tag {
  border-radius: 6px;
  font-weight: 500;
}

.el-pagination {
  --el-pagination-button-bg-color: var(--ay-surface);
  --el-pagination-hover-color: var(--ay-blue-600);
}

.el-pagination.is-background .el-pager li.is-active {
  background: var(--ay-blue-600);
}

.el-dialog {
  overflow: hidden;
  border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(6, 41, 91, 0.2) !important;
}

.el-dialog__header {
  padding: 20px 24px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--ay-divider);
}

.el-dialog__title {
  color: var(--ay-navy-900);
  font-size: 16px;
  font-weight: 700;
}

.el-dialog__body {
  padding: 24px !important;
}

.el-dialog__footer {
  padding: 14px 24px 18px !important;
}

.el-drawer {
  box-shadow: -20px 0 60px rgba(6, 41, 91, 0.14);
}

.el-drawer__header {
  padding: 18px 22px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--ay-divider);
  color: var(--ay-navy-900);
  font-weight: 700;
}

.el-drawer__body {
  padding: 22px;
}

.el-tabs__item {
  color: var(--ay-text-3);
  font-weight: 500;
}

.el-tabs__item.is-active {
  color: var(--ay-blue-600);
  font-weight: 600;
}

.el-tabs__active-bar {
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--ay-blue-600);
}

.el-dropdown-menu__item:not(.is-disabled):focus,
.el-dropdown-menu__item:not(.is-disabled):hover {
  color: var(--ay-blue-600);
  background: var(--ay-blue-soft);
}

.el-message {
  border-color: var(--ay-border);
  border-radius: 10px;
  box-shadow: var(--ay-shadow-2);
}

.el-message-box {
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(6, 41, 91, 0.2);
}

.el-popover.el-popper {
  border-color: var(--ay-border);
  border-radius: 12px;
  box-shadow: var(--ay-shadow-2);
}

.el-loading-mask {
  background-color: rgba(243, 246, 250, 0.72);
  backdrop-filter: blur(2px);
}

/* ------------------------------------------------------------ 首页确认稿布局 */
.ay-dashboard {
  max-width: 1500px;
  margin: 0 auto;
}

.ay-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
}

.ay-welcome-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ay-welcome-title h1 {
  margin: 0;
  color: var(--ay-navy-900);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.ay-welcome-title > span {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ay-blue-700);
  background: var(--ay-blue-soft);
  font-size: 11px;
  line-height: 1.4;
}

.ay-welcome-copy > p {
  margin: 7px 0 0;
  color: var(--ay-text-3);
  font-size: 12px;
}

.ay-system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--ay-border);
  border-radius: 999px;
  color: var(--ay-text-3);
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.ay-system-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ay-green-600);
  box-shadow: 0 0 0 4px var(--ay-green-soft);
}

.ay-dashboard .ay-stats.el-row {
  display: grid !important;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
}

.ay-dashboard .ay-stats > .el-col {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  flex: none !important;
  grid-column: span 4;
}

.ay-dashboard .ay-stats > .el-col:nth-child(4),
.ay-dashboard .ay-stats > .el-col:nth-child(3),
.ay-dashboard .ay-stats > .el-col:nth-child(2),
.ay-dashboard .ay-stats > .el-col:nth-child(5) {
  grid-column: span 5;
}

.ay-dashboard .ay-stats > .el-col:nth-child(4) { order: 1; }
.ay-dashboard .ay-stats > .el-col:nth-child(3) { order: 2; }
.ay-dashboard .ay-stats > .el-col:nth-child(2) { order: 3; }
.ay-dashboard .ay-stats > .el-col:nth-child(5) { order: 4; }
.ay-dashboard .ay-stats > .el-col:nth-child(1) { order: 5; }
.ay-dashboard .ay-stats > .el-col:nth-child(6) { order: 6; }
.ay-dashboard .ay-stats > .el-col:nth-child(7) { order: 7; }
.ay-dashboard .ay-stats > .el-col:nth-child(8) { order: 8; }
.ay-dashboard .ay-stats > .el-col:nth-child(9) { order: 9; }

.ay-dashboard .stat-card {
  height: 100%;
  border-color: var(--ay-border) !important;
  border-radius: 13px !important;
  box-shadow: 0 3px 14px rgba(6, 41, 91, 0.045) !important;
}

.ay-dashboard .stat-card .el-card__body {
  height: 100%;
  padding: 20px !important;
}

.ay-dashboard .stat-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "info icon";
  align-items: start;
  gap: 12px;
  height: 100%;
}

.ay-dashboard .stat-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ay-dashboard .stat-label {
  order: 0;
  overflow: hidden;
  color: var(--ay-text-3);
  font-size: 12px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ay-dashboard .stat-value {
  order: 1;
  margin-top: 12px;
  color: var(--ay-navy-900);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.18;
}

.ay-dashboard .stat-sub {
  order: 2;
  margin-top: 9px;
  color: var(--ay-text-4);
  font-size: 11px;
}

.ay-dashboard .stat-arrow {
  display: none;
}

.ay-dashboard .stat-icon {
  grid-area: icon;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-size: 18px;
}

.ay-dashboard .ay-stats > .el-col:nth-child(4) .stat-icon,
.ay-dashboard .ay-stats > .el-col:nth-child(1) .stat-icon,
.ay-dashboard .ay-stats > .el-col:nth-child(9) .stat-icon {
  color: var(--ay-blue-600) !important;
  background: var(--ay-blue-soft) !important;
}

.ay-dashboard .ay-stats > .el-col:nth-child(3) .stat-icon,
.ay-dashboard .ay-stats > .el-col:nth-child(8) .stat-icon {
  color: var(--ay-cyan-500) !important;
  background: var(--ay-cyan-soft) !important;
}

.ay-dashboard .ay-stats > .el-col:nth-child(2) .stat-icon,
.ay-dashboard .ay-stats > .el-col:nth-child(7) .stat-icon {
  color: var(--ay-navy-800) !important;
  background: #edf2f9 !important;
}

.ay-dashboard .ay-stats > .el-col:nth-child(5) .stat-icon {
  color: var(--ay-orange-600) !important;
  background: var(--ay-orange-soft) !important;
}

.ay-dashboard .ay-stats > .el-col:nth-child(6) .stat-icon {
  color: var(--ay-red-500) !important;
  background: var(--ay-red-soft) !important;
}

.ay-dashboard .ay-stats > .el-col:nth-child(n + 6) .el-card__body,
.ay-dashboard .ay-stats > .el-col:first-child .el-card__body {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

.ay-dashboard .ay-stats > .el-col:nth-child(n + 6) .stat-value,
.ay-dashboard .ay-stats > .el-col:first-child .stat-value {
  margin-top: 6px;
  font-size: 21px;
}

.ay-dashboard .ay-stats > .el-col:nth-child(n + 6) .stat-icon,
.ay-dashboard .ay-stats > .el-col:first-child .stat-icon {
  width: 34px !important;
  height: 34px !important;
}

.ay-dashboard .ay-stats > .el-col:nth-child(5) .stat-card {
  border-color: #f6e3c7 !important;
  background: linear-gradient(135deg, #ffffff, #fffbf5) !important;
}

.ay-dashboard .ay-main-grid.el-row {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
  gap: 16px;
  margin: 18px 0 0 !important;
}

.ay-main-grid > .el-col {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  flex: none !important;
}

.ay-main-grid > .el-col:nth-child(2) {
  grid-column: 1;
  grid-row: 1;
}

.ay-main-grid > .el-col:nth-child(1) {
  grid-column: 1;
  grid-row: 2;
}

.ay-main-grid > .ay-todo-card {
  grid-column: 2;
  grid-row: 1;
}

.ay-main-grid > .msg-card {
  grid-column: 2;
  grid-row: 2;
  height: 100%;
  margin: 0 !important;
}

.ay-main-grid .chart-card {
  height: 100%;
}

.ay-main-grid .chart-card .el-card__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 20px 14px !important;
}

.ay-main-grid .chart-title,
.ay-todo-header h2 {
  color: var(--ay-navy-900);
  font-size: 15px;
  font-weight: 700;
}

.ay-main-grid .chart-hint {
  color: var(--ay-text-4);
  font-size: 11px;
}

.ay-main-grid .chart-card .el-card__body {
  padding: 4px 16px 16px !important;
}

.ay-main-grid .chart {
  height: 278px !important;
}

.ay-main-grid > .el-col:first-child .chart {
  height: 236px !important;
}

.ay-todo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ay-todo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px !important;
}

.ay-todo-header h2 {
  margin: 0;
}

.ay-todo-header p {
  margin: 5px 0 0;
  color: var(--ay-text-4);
  font-size: 11px;
}

.ay-todo-total {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--ay-orange-600);
  background: var(--ay-orange-soft);
  font-size: 13px;
  font-weight: 700;
}

.ay-todo-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2px 14px 10px !important;
}

.ay-todo-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 8px;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 62px;
  padding: 9px 4px;
  border: 0;
  border-bottom: 1px solid var(--ay-divider);
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s;
}

.ay-todo-item:last-child {
  border-bottom: 0;
}

.ay-todo-item:hover {
  background: var(--ay-surface-soft);
}

.ay-todo-marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.ay-todo-marker::before { content: "审"; }
.ay-todo-marker.orange { color: var(--ay-orange-600); background: var(--ay-orange-soft); }
.ay-todo-marker.red { color: var(--ay-red-500); background: var(--ay-red-soft); }
.ay-todo-marker.red::before { content: "异"; }
.ay-todo-marker.blue { color: var(--ay-blue-600); background: var(--ay-blue-soft); }
.ay-todo-marker.blue::before { content: "代"; }
.ay-todo-marker.cyan { color: var(--ay-cyan-500); background: var(--ay-cyan-soft); }
.ay-todo-marker.cyan::before { content: "期"; }

.ay-todo-copy {
  min-width: 0;
}

.ay-todo-copy b {
  display: block;
  color: var(--ay-text-2);
  font-size: 12px;
  font-weight: 600;
}

.ay-todo-copy small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--ay-text-4);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ay-todo-value {
  color: var(--ay-navy-900);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.ay-todo-arrow {
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--ay-text-4);
  border-right: 1.5px solid var(--ay-text-4);
  transform: rotate(45deg);
}

.ay-main-grid .msg-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ay-main-grid .msg-card .el-card__header {
  padding: 18px 20px 14px !important;
}

.ay-main-grid .msg-card .el-card__body {
  flex: 1;
}

.ay-main-grid .msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ay-main-grid .msg-all-read {
  margin-left: 6px;
  color: var(--ay-text-4);
  font-size: 10px;
  font-weight: 400;
}

@media (max-width: 1100px) {
  .ay-dashboard .ay-stats.el-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .ay-dashboard .ay-stats > .el-col:nth-child(4),
  .ay-dashboard .ay-stats > .el-col:nth-child(3),
  .ay-dashboard .ay-stats > .el-col:nth-child(2),
  .ay-dashboard .ay-stats > .el-col:nth-child(5) {
    grid-column: span 6;
  }

  .ay-dashboard .ay-main-grid.el-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ay-main-grid > .el-col:nth-child(2),
  .ay-main-grid > .el-col:nth-child(1),
  .ay-main-grid > .ay-todo-card,
  .ay-main-grid > .msg-card {
    grid-column: 1;
    grid-row: auto;
  }

  .ay-main-grid > .el-col:nth-child(2) { order: 1; }
  .ay-main-grid > .ay-todo-card { order: 2; }
  .ay-main-grid > .el-col:nth-child(1) { order: 3; }
  .ay-main-grid > .msg-card { order: 4; }
}

@media (max-width: 680px) {
  .ay-welcome {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .ay-welcome-title h1 {
    font-size: 22px;
  }

  .ay-welcome-title > span,
  .ay-system-status {
    display: none;
  }

  .ay-dashboard .ay-stats.el-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ay-dashboard .ay-stats > .el-col,
  .ay-dashboard .ay-stats > .el-col:nth-child(4),
  .ay-dashboard .ay-stats > .el-col:nth-child(3),
  .ay-dashboard .ay-stats > .el-col:nth-child(2),
  .ay-dashboard .ay-stats > .el-col:nth-child(5) {
    grid-column: 1;
  }

  .ay-dashboard .stat-card .el-card__body {
    padding: 16px 18px !important;
  }

  .ay-dashboard .stat-value {
    margin-top: 7px;
    font-size: 23px;
  }
}

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 900px) {
  .login-card.login-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    width: 760px !important;
    min-height: 490px;
  }

  .login-card > .brand {
    padding: 118px 34px 36px !important;
  }

  .login-card > .brand::before {
    top: 34px;
    left: 34px;
    width: 150px;
    height: 66px;
  }

  .login-card > form {
    padding: 46px 34px !important;
  }

  .layout-container aside.sidebar {
    width: 210px !important;
    flex-basis: 210px;
  }

  .sidebar .logo::before {
    width: 138px;
    flex-basis: 138px;
  }

  .sidebar .logo-version {
    display: none;
  }
}

@media (max-width: 680px) {
  .login-page.login-page {
    height: auto;
    min-height: 100vh;
    padding: 24px 16px 54px;
    overflow-y: auto;
  }

  .login-card.login-card {
    display: block !important;
    width: 100% !important;
    max-width: 440px;
    min-height: 0;
  }

  .login-card > .brand {
    min-height: 172px;
    padding: 96px 28px 24px !important;
  }

  .login-card > .brand::before {
    top: 22px;
    left: 28px;
    width: 136px;
    height: 60px;
  }

  .login-card > .brand h2 {
    font-size: 21px !important;
  }

  .login-card > .brand p::before,
  .login-card > .brand p::after {
    display: none;
  }

  .login-card > form {
    padding: 30px 28px 34px !important;
  }

  .login-card > form::before {
    margin-bottom: 22px;
    font-size: 24px;
  }

  main.el-main.main {
    padding: 14px !important;
  }

  .layout-container header.header {
    padding: 0 10px !important;
  }

  .layout-container aside.sidebar {
    width: 112px !important;
    flex-basis: 112px;
  }

  .sidebar .logo {
    height: 64px !important;
    padding: 0 8px !important;
  }

  .sidebar .logo::before {
    width: 94px;
    height: 54px;
    flex-basis: 94px;
  }

  .sidebar .el-menu {
    padding: 10px 6px 16px;
  }

  .sidebar .el-menu-item,
  .sidebar .el-sub-menu__title {
    padding: 0 7px !important;
    font-size: 11px;
  }

  .sidebar .el-menu-item .el-icon,
  .sidebar .el-sub-menu__title .el-icon {
    width: 16px;
    margin-right: 5px;
    font-size: 14px;
  }

  .sidebar .el-sub-menu .el-menu-item {
    padding-left: 25px !important;
    font-size: 10px;
  }

  .header .header-right {
    gap: 6px;
  }

  .header .el-tag {
    display: none;
  }

  .header .user-info {
    padding: 0 3px;
    font-size: 11px;
  }
}
