/* Tencent Cloud inspired console theme */
html.tc-theme-tencentcloud[theme] {
  --color-primary: #0052d9;
  --color-primary-hover: #266fe8;
  --color-primary-soft: #e8f0ff;
  --color-success: #00a870;
  --color-warning: #ed7b2f;
  --color-danger: #e34d59;
  --color-info: #86909c;
  --color-text-tips: #86909c;
  --color-menu-bg: #001b36;
  --color-menu-active-bg: #0b64e0;
  --color-menu-hover-bg: rgba(255, 255, 255, 0.08);
  --color-menu-text: rgba(255, 255, 255, 0.72);
  --color-menu-text-active: #ffffff;
  --color-price-text: #e34d59;
  --color-discount-num: #ed7b2f;
  --color-cash-num: #e34d59;
  --tc-blue: #0052d9;
  --tc-blue-light: #266fe8;
  --tc-cyan: #00a4ff;
  --tc-ink: #1d2129;
  --tc-text: #4e5969;
  --tc-muted: #86909c;
  --tc-line: #e5e6eb;
  --tc-bg: #f2f4f7;
  --tc-sidebar: 208px;
}

html.tc-theme-tencentcloud,
html.tc-theme-tencentcloud body {
  background: var(--tc-bg);
  color: var(--tc-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html.tc-theme-tencentcloud body {
  line-height: 1.5715;
}

html.tc-theme-tencentcloud *,
html.tc-theme-tencentcloud *::before,
html.tc-theme-tencentcloud *::after {
  box-sizing: border-box;
}

html.tc-theme-tencentcloud #mainLoading {
  background: #ffffff;
}

html.tc-theme-tencentcloud #mainLoading .ddr {
  width: 6px;
  height: 46px;
  border-radius: 4px;
  background: var(--tc-blue);
}

/* Shell */
html.tc-theme-tencentcloud .el-aside {
  width: var(--tc-sidebar) !important;
  flex: 0 0 var(--tc-sidebar) !important;
  padding: 0 12px 24px !important;
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 116, 255, 0.3), transparent 34%),
    linear-gradient(180deg, #001b36 0%, #002344 52%, #00172d 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

html.tc-theme-tencentcloud .ali-logo {
  height: 30px;
  max-width: 150px;
  margin: 18px auto 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

html.tc-theme-tencentcloud .drawer-menu-logo {
  filter: brightness(0) invert(1);
}

html.tc-theme-tencentcloud .menu-top {
  margin-top: 55px;
  padding-top: 8px;
}

html.tc-theme-tencentcloud .menu-top + .menu-top {
  margin-top: 4px;
}

html.tc-theme-tencentcloud .el-menu {
  background: transparent !important;
}

html.tc-theme-tencentcloud .menu-top .el-menu-item,
html.tc-theme-tencentcloud .menu-top .el-submenu__title {
  height: 42px;
  line-height: 42px;
  margin: 2px 0;
  padding-right: 12px !important;
  border-radius: 4px;
  color: var(--color-menu-text) !important;
  font-size: 13px;
  transition: background 0.18s ease, color 0.18s ease;
}

html.tc-theme-tencentcloud .menu-top .el-menu-item i,
html.tc-theme-tencentcloud .menu-top .el-submenu__title i {
  width: 18px;
  margin-right: 2px;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 16px;
  text-align: center;
}

html.tc-theme-tencentcloud .menu-top .el-menu-item:hover,
html.tc-theme-tencentcloud .menu-top .el-submenu__title:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html.tc-theme-tencentcloud .menu-top .el-menu-item.is-active {
  position: relative;
  background: linear-gradient(90deg, #0b64e0, #0052d9) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(0, 82, 217, 0.28);
}

html.tc-theme-tencentcloud .menu-top .el-menu-item.is-active::before {
  position: absolute;
  top: 13px;
  left: 0;
  width: 3px;
  height: 16px;
  border-radius: 0 3px 3px 0;
  background: #5ad8ff;
  content: "";
}

html.tc-theme-tencentcloud .menu-top .el-menu-item.is-active i,
html.tc-theme-tencentcloud .menu-top .el-menu-item.is-active .aside-menu-text {
  color: #ffffff !important;
}

html.tc-theme-tencentcloud .aside-menu-text {
  margin-left: 12px;
  font-weight: 400;
}

html.tc-theme-tencentcloud .menu-top .el-submenu .el-menu {
  background: rgba(0, 0, 0, 0.16) !important;
  border-radius: 4px;
}

html.tc-theme-tencentcloud .menu-top .el-submenu .el-menu-item {
  min-width: 0;
  height: 34px;
  margin: 1px 0;
  padding-left: 44px !important;
  line-height: 34px;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 12px;
}

html.tc-theme-tencentcloud .menu-top .el-submenu .el-menu-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

html.tc-theme-tencentcloud .menu-top .el-submenu .el-menu-item.is-active {
  margin-left: 0;
  background: rgba(0, 82, 217, 0.88) !important;
  color: #ffffff !important;
  box-shadow: none;
}

html.tc-theme-tencentcloud .line {
  width: auto;
  height: 1px;
  margin: 18px 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
}

html.tc-theme-tencentcloud .el-header {
  width: calc(100% - var(--tc-sidebar)) !important;
  height: 56px !important;
  padding: 0 24px !important;
  border-bottom: 1px solid var(--tc-line);
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 1px 2px rgba(15, 32, 60, 0.035) !important;
  backdrop-filter: none !important;
}

html.tc-theme-tencentcloud .header-left {
  min-width: 0;
  gap: 16px;
}

html.tc-theme-tencentcloud .tc-header-brand {
  display: flex;
  align-items: center;
  min-width: 220px;
  color: var(--tc-ink);
  white-space: nowrap;
}

html.tc-theme-tencentcloud .tc-header-brand__mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-right: 9px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: linear-gradient(135deg, #0052d9, #00a4ff);
  color: #ffffff;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(0, 82, 217, 0.2);
}

html.tc-theme-tencentcloud .tc-header-brand__text {
  color: var(--tc-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

html.tc-theme-tencentcloud .tc-header-brand__divider {
  width: 1px;
  height: 14px;
  margin: 0 11px;
  background: var(--tc-line);
}

html.tc-theme-tencentcloud .tc-header-brand__page {
  max-width: 180px;
  overflow: hidden;
  color: var(--tc-muted);
  font-size: 13px;
  text-overflow: ellipsis;
}

html.tc-theme-tencentcloud .header-left .el-autocomplete {
  width: 280px;
}

html.tc-theme-tencentcloud .header-left .el-input input {
  width: 280px;
  height: 34px;
  padding-left: 36px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #f2f3f5;
  color: var(--tc-ink);
  font-size: 13px;
  transition: all 0.18s ease;
}

html.tc-theme-tencentcloud .header-left .el-input input:focus {
  border-color: var(--tc-blue);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

html.tc-theme-tencentcloud .header-left .left-img {
  left: 12px !important;
  width: 15px !important;
  height: 15px !important;
  opacity: 0.55;
}

html.tc-theme-tencentcloud .header-right {
  gap: 4px;
  margin-right: 0 !important;
}

html.tc-theme-tencentcloud .header-right .car-item {
  margin-right: 4px !important;
}

html.tc-theme-tencentcloud .header-right .car-item .right-item {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.18s ease;
}

html.tc-theme-tencentcloud .header-right .car-item .right-item:hover {
  background: #f2f3f5;
}

html.tc-theme-tencentcloud .header-right .right-item img {
  width: 18px !important;
  height: 18px !important;
  opacity: 0.72;
}

html.tc-theme-tencentcloud .header-right .cloum-line-item {
  margin: 0 8px !important;
}

html.tc-theme-tencentcloud .header-right .head-box {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0052d9, #00a4ff) !important;
  font-size: 13px !important;
  font-weight: 600;
}

html.tc-theme-tencentcloud .header-right .un-login {
  height: 34px;
  padding: 0 12px;
  border-radius: 3px;
  color: var(--tc-blue);
  background: var(--color-primary-soft);
}

html.tc-theme-tencentcloud .el-main {
  min-height: calc(100vh - 56px);
  padding: 84px 28px 32px !important;
  background: var(--tc-bg) !important;
  color: var(--tc-ink);
  text-align: left;
  line-height: 1.5715 !important;
}

html.tc-theme-tencentcloud .main-card {
  max-width: 1600px;
  margin: 0 auto;
  background: transparent !important;
  color: var(--tc-ink);
  font-family: inherit;
}

html.tc-theme-tencentcloud .main-card-title {
  margin-bottom: 20px;
  color: var(--tc-ink);
  font-size: 22px;
  font-weight: 600;
}

html.tc-theme-tencentcloud .main-card-title .title-text {
  color: var(--tc-ink);
}

/* Element UI alignment with Tencent Cloud console */
html.tc-theme-tencentcloud .el-button {
  min-height: 34px;
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 400;
}

html.tc-theme-tencentcloud .el-button--primary,
html.tc-theme-tencentcloud .dialog-footer .btn-ok {
  border-color: var(--tc-blue) !important;
  background: var(--tc-blue) !important;
  color: #ffffff !important;
}

html.tc-theme-tencentcloud .el-button--primary:hover,
html.tc-theme-tencentcloud .el-button--primary:focus,
html.tc-theme-tencentcloud .dialog-footer .btn-ok:hover {
  border-color: var(--tc-blue-light) !important;
  background: var(--tc-blue-light) !important;
}

html.tc-theme-tencentcloud .el-button--default {
  border-color: #d9dce1;
  color: var(--tc-text);
}

html.tc-theme-tencentcloud .el-button--default:hover,
html.tc-theme-tencentcloud .el-button--default:focus {
  border-color: var(--tc-blue);
  color: var(--tc-blue);
  background: #f5f8ff;
}

html.tc-theme-tencentcloud .el-input__inner,
html.tc-theme-tencentcloud .el-textarea__inner,
html.tc-theme-tencentcloud .el-select .el-input__inner {
  min-height: 36px;
  border-color: #d9dce1;
  border-radius: 3px;
  color: var(--tc-ink);
  background: #ffffff;
}

html.tc-theme-tencentcloud .el-input__inner:hover,
html.tc-theme-tencentcloud .el-textarea__inner:hover {
  border-color: #a9b3c2;
}

html.tc-theme-tencentcloud .el-input__inner:focus,
html.tc-theme-tencentcloud .el-textarea__inner:focus {
  border-color: var(--tc-blue);
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.08);
}

html.tc-theme-tencentcloud .el-dialog {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(15, 32, 60, 0.18);
}

html.tc-theme-tencentcloud .el-dialog__header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--tc-line);
}

html.tc-theme-tencentcloud .el-dialog__title {
  color: var(--tc-ink);
  font-size: 16px;
  font-weight: 600;
}

html.tc-theme-tencentcloud .el-dialog__body {
  color: var(--tc-text);
}

html.tc-theme-tencentcloud .el-table,
html.tc-theme-tencentcloud .el-table th,
html.tc-theme-tencentcloud .el-table tr,
html.tc-theme-tencentcloud .el-table td {
  background: transparent;
}

html.tc-theme-tencentcloud .el-table th {
  height: 44px;
  border-bottom: 1px solid var(--tc-line);
  background: #f7f8fa !important;
  color: var(--tc-muted);
  font-size: 12px;
  font-weight: 500;
}

html.tc-theme-tencentcloud .el-table td {
  height: 52px;
  border-bottom-color: #f0f1f3;
  color: var(--tc-text);
  font-size: 13px;
}

html.tc-theme-tencentcloud .el-table--enable-row-hover .el-table__body tr:hover > td {
  background: #f7f9fc !important;
}

html.tc-theme-tencentcloud .el-tabs__item {
  height: 44px;
  color: var(--tc-text);
  font-size: 14px;
  line-height: 44px;
}

html.tc-theme-tencentcloud .el-tabs__item.is-active,
html.tc-theme-tencentcloud .el-tabs__item:hover {
  color: var(--tc-blue);
}

html.tc-theme-tencentcloud .el-tabs__active-bar {
  background-color: var(--tc-blue);
}

html.tc-theme-tencentcloud .el-tabs__nav-wrap::after {
  height: 1px;
  background-color: var(--tc-line);
}

html.tc-theme-tencentcloud .el-pagination.is-background .el-pager li:not(.disabled).active {
  background: var(--tc-blue);
}

html.tc-theme-tencentcloud .el-pager .number {
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-color: var(--tc-line);
  border-radius: 3px;
}

html.tc-theme-tencentcloud .el-pager .active {
  border-color: var(--tc-blue);
  background: var(--color-primary-soft);
  color: var(--tc-blue);
}

html.tc-theme-tencentcloud .el-message-box {
  border-radius: 6px;
}

html.tc-theme-tencentcloud .el-card {
  border-color: var(--tc-line);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(15, 32, 60, 0.04);
}

html.tc-theme-tencentcloud .base-color,
html.tc-theme-tencentcloud .bule-text {
  color: var(--tc-blue) !important;
}

html.tc-theme-tencentcloud .page-total,
html.tc-theme-tencentcloud .griy-12,
html.tc-theme-tencentcloud .hello {
  color: var(--tc-muted);
}

/* Mobile shell */
@media (max-width: 750px) {
  html.tc-theme-tencentcloud body {
    overflow-x: hidden;
  }

  html.tc-theme-tencentcloud .el-header {
    width: 100% !important;
    height: 56px !important;
    padding: 0 14px !important;
  }

  html.tc-theme-tencentcloud .el-main {
    padding: 72px 14px 24px !important;
  }

  html.tc-theme-tencentcloud .tc-header-brand {
    min-width: 0;
  }

  html.tc-theme-tencentcloud .tc-header-brand__mark,
  html.tc-theme-tencentcloud .tc-header-brand__text {
    display: inline-flex;
  }

  html.tc-theme-tencentcloud .tc-header-brand__divider,
  html.tc-theme-tencentcloud .tc-header-brand__page {
    display: none;
  }

  html.tc-theme-tencentcloud .menu-img {
    height: 22px !important;
  }

  html.tc-theme-tencentcloud .drawer-menu {
    background: #001b36 !important;
  }

  html.tc-theme-tencentcloud .main-card-title {
    flex-wrap: wrap;
    gap: 8px;
  }

  html.tc-theme-tencentcloud .main-card-title .title-text {
    font-size: 22px;
  }

  html.tc-theme-tencentcloud .el-tabs__nav-wrap {
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  html.tc-theme-tencentcloud .el-tabs__nav-prev,
  html.tc-theme-tencentcloud .el-tabs__nav-next {
    display: none !important;
  }

  html.tc-theme-tencentcloud .el-tabs__nav-scroll {
    overflow: visible !important;
  }

  html.tc-theme-tencentcloud .el-tabs__nav {
    display: flex !important;
    width: 100% !important;
    flex-wrap: wrap;
    white-space: normal !important;
    transform: none !important;
  }

  html.tc-theme-tencentcloud .el-tabs__item {
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    line-height: 38px !important;
  }

  html.tc-theme-tencentcloud .el-tabs__active-bar {
    display: none !important;
  }

  html.tc-theme-tencentcloud .el-tabs__item.is-active {
    box-shadow: inset 0 -2px 0 var(--tc-blue);
  }

  html.tc-theme-tencentcloud .main-card-search {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0;
  }

  html.tc-theme-tencentcloud .main-card-search .batch-op-btn,
  html.tc-theme-tencentcloud .main-card-search .right-search {
    width: 100%;
  }

  html.tc-theme-tencentcloud .main-card-search .right-search {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  html.tc-theme-tencentcloud .main-card-search .right-search .el-select,
  html.tc-theme-tencentcloud .main-card-search .right-search .el-input,
  html.tc-theme-tencentcloud .main-card-search .right-search .search-btn {
    width: 100% !important;
    flex: 1 1 100%;
  }

  html.tc-theme-tencentcloud .main-card-search .right-search .search-btn {
    min-height: 38px;
  }

  html.tc-theme-tencentcloud .custom-pagination {
    flex-wrap: wrap;
    gap: 8px;
  }

  html.tc-theme-tencentcloud .custom-pagination .myPage,
  html.tc-theme-tencentcloud .custom-pagination .myPage .el-pagination {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  html.tc-theme-tencentcloud .el-dialog,
  html.tc-theme-tencentcloud .el-message-box {
    width: calc(100vw - 28px) !important;
    max-width: 640px;
    margin-top: 12vh !important;
  }

  html.tc-theme-tencentcloud .el-dialog__body {
    max-height: 65vh;
    overflow-y: auto;
    padding: 16px !important;
  }
}
