:root {
  --xy-admin-blue: #0787f8;
  --xy-admin-blue-dark: #006ee8;
  --xy-admin-blue-soft: #e8f3ff;
  --xy-admin-bg: #eef3f8;
  --xy-admin-panel: #ffffff;
  --xy-admin-line: #e3e8f0;
  --xy-admin-line-soft: #edf1f6;
  --xy-admin-text: #2f4058;
  --xy-admin-muted: #7a8aa3;
  --xy-admin-side: 230px;
  --xy-admin-head: 68px;
}

@media (min-width: 769px) {
  html,
  body {
    background: var(--xy-admin-bg);
    color: var(--xy-admin-text);
  }

  body {
    min-width: 1180px;
  }

  .template,
  .template > .el-container {
    min-height: 100vh;
    background: var(--xy-admin-bg);
  }

  .template > .el-container > .el-container {
    margin-left: var(--xy-admin-side);
    width: calc(100% - var(--xy-admin-side));
    min-width: 0;
  }

  .el-header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 1800 !important;
    width: 100% !important;
    height: var(--xy-admin-head) !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    background: linear-gradient(90deg, var(--xy-admin-blue) 0%, #0575ee 48%, #0263df 100%) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 3px 8px rgba(0, 79, 180, 0.18) !important;
    backdrop-filter: none !important;
  }

  .header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: var(--xy-admin-head);
    min-width: 0;
  }

  .xy-admin-logo,
  .xy-console-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--xy-admin-side);
    height: var(--xy-admin-head);
    padding: 0 24px;
    color: #ffffff;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    box-sizing: border-box;
    overflow: hidden;
  }

  .xy-admin-logo img,
  .xy-console-logo img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 178px !important;
    max-height: 46px !important;
    object-fit: contain;
  }

  .xy-console-logo span {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .xy-admin-menu-btn,
  .xy-console-menu {
    width: 46px;
    height: var(--xy-admin-head);
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 24px;
    line-height: var(--xy-admin-head);
    cursor: pointer;
  }

  .xy-admin-current,
  .xy-console-current {
    display: inline-flex;
    align-items: center;
    height: var(--xy-admin-head);
    padding: 0 20px;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }

  .xy-console-current i {
    font-size: 16px;
  }

  .xy-admin-current-icon,
  .xy-top-link-icon {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
  }

  .xy-admin-current-icon::before {
    content: "";
    position: absolute;
    inset: 2px 1px 4px;
    border: 2px solid currentColor;
    border-radius: 2px;
  }

  .xy-admin-current-icon::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 3px;
    height: 2px;
    background: currentColor;
  }

  .header-left .menu-img,
  .header-left .left-img,
  .header-left .el-autocomplete {
    display: none !important;
  }

  .header-right {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    height: var(--xy-admin-head);
    margin: 0 !important;
    color: #ffffff;
  }

  .xy-top-link,
  .header-right .right-item,
  .header-right .el-dropdown-country,
  .header-right .el-dropdown-header,
  .header-right .un-login {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: var(--xy-admin-head);
    min-width: 88px;
    padding: 0 18px;
    gap: 7px;
    color: #ffffff !important;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: var(--xy-admin-head);
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.16s ease;
  }

  .xy-top-link:hover,
  .header-right .right-item:hover,
  .header-right .el-dropdown-country:hover,
  .header-right .el-dropdown-header:hover,
  .header-right .un-login:hover {
    color: #ffffff !important;
    background: rgba(0, 54, 130, 0.18) !important;
  }

  .xy-top-icon-home::before,
  .xy-top-icon-finance::before,
  .xy-top-icon-ticket::before {
    content: "";
    position: absolute;
    inset: 2px;
    border: 2px solid currentColor;
    border-radius: 2px;
  }

  .xy-top-icon-home::after {
    content: "";
    position: absolute;
    right: 3px;
    bottom: 2px;
    left: 3px;
    height: 2px;
    background: currentColor;
  }

  .xy-top-icon-finance::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 4px;
    left: 4px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 4px 0 currentColor;
  }

  .xy-top-icon-ticket::after {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 6px;
    width: 2px;
    background: currentColor;
  }

  .xy-cart-entry {
    display: none !important;
  }

  .xy-message-entry {
    margin: 0 !important;
  }

  .xy-message-entry .right-item {
    min-width: 106px;
  }

  .xy-header-action-text {
    display: inline-block;
  }

  .header-right .header-right-item {
    display: flex;
    align-items: stretch;
    height: var(--xy-admin-head);
    color: #ffffff !important;
  }

  .header-right .car-item,
  .header-right .hg-24 {
    margin: 0 !important;
  }

  .header-right .hg-24,
  .header-right .cloum-line-item {
    display: none !important;
  }

  .header-right .header-right-item img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px;
    filter: brightness(0) invert(1);
  }

  .header-right .el-badge {
    display: inline-flex;
    height: 22px;
    align-items: center;
  }

  .header-right .el-badge__content.is-fixed {
    top: 10px !important;
    right: 4px !important;
    color: #ffffff;
    background: #f13939 !important;
    border-color: #f13939 !important;
  }

  .header-right .el-dropdown-header .head-box {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    color: #0787f8 !important;
    background: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50% !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
  }

  .xy-admin-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-right .right-icon {
    width: auto !important;
    color: rgba(255, 255, 255, 0.92);
  }

  .el-aside {
    position: fixed !important;
    top: var(--xy-admin-head) !important;
    bottom: 0;
    left: 0;
    z-index: 1500 !important;
    width: var(--xy-admin-side) !important;
    height: calc(100vh - var(--xy-admin-head)) !important;
    padding: 0 !important;
    color: var(--xy-admin-text);
    background: #ffffff !important;
    border-right: 1px solid var(--xy-admin-line);
    box-shadow: none !important;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .el-aside > .menu-alink {
    display: none !important;
  }

  .el-aside .el-menu {
    background: transparent !important;
  }

  .menu-top {
    margin: 0 !important;
    padding: 10px 0 0;
  }

  .el-aside .line {
    width: 100% !important;
    margin: 10px 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--xy-admin-line-soft) !important;
    opacity: 1 !important;
  }

  .menu-top .el-submenu__title {
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 24px 0 28px !important;
    margin: 0 !important;
    color: #64748b !important;
    background: #f7f8fb !important;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 600;
  }

  .menu-top .el-submenu__title i,
  .menu-top .el-menu-item i {
    width: 17px;
    min-width: 17px;
    margin-right: 10px;
    color: #233247 !important;
    text-align: center;
  }

  .menu-top .el-menu-item {
    height: 50px !important;
    line-height: 50px !important;
    margin: 0 !important;
    padding: 0 24px 0 28px !important;
    color: #253246 !important;
    background: #ffffff !important;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 500;
  }

  .aside-menu-text {
    margin-left: 0 !important;
    color: inherit !important;
    font-weight: inherit;
  }

  .menu-top .el-submenu .el-menu-item {
    height: 50px !important;
    line-height: 50px !important;
    padding-left: 28px !important;
    color: #263446 !important;
    font-size: 14px;
  }

  .menu-top .el-submenu__title:hover,
  .menu-top .el-menu-item:hover,
  .menu-top .el-submenu .el-menu-item:hover {
    color: var(--xy-admin-blue) !important;
    background: #f5f9ff !important;
  }

  .menu-top .el-menu-item.is-active,
  .menu-top .el-submenu .el-menu-item.is-active {
    position: relative;
    color: var(--xy-admin-blue) !important;
    background: #f2f8ff !important;
  }

  .menu-top .el-menu-item.is-active::before,
  .menu-top .el-submenu .el-menu-item.is-active::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    background: var(--xy-admin-blue);
    border-radius: 0 3px 3px 0;
  }

  .menu-top .el-menu-item.is-active i,
  .menu-top .el-menu-item:hover i,
  .menu-top .el-submenu__title:hover i {
    color: var(--xy-admin-blue) !important;
  }

  .el-main,
  .home-main {
    min-height: 100vh;
    padding: 88px 16px 28px !important;
    background: var(--xy-admin-bg) !important;
    font-size: 14px;
  }

  body.xy-cart-goods-page,
  body.xy-cart-goods-list-page,
  body.xy-cart-goods-page .goods,
  body.xy-cart-goods-page .goods > .el-container,
  body.xy-cart-goods-page .goods > .el-container > .el-container,
  body.xy-cart-goods-list-page .template,
  body.xy-cart-goods-list-page .template > .el-container,
  body.xy-cart-goods-list-page .template > .el-container > .el-container {
    background: #ffffff !important;
  }

  body.xy-cart-goods-page .el-main,
  body.xy-cart-goods-list-page .el-main {
    min-height: auto !important;
    background: #ffffff !important;
  }

  body.xy-cart-goods-page .config-box,
  body.xy-cart-goods-page .config-box .content,
  body.xy-cart-goods-iframe-page .config-box,
  body.xy-cart-goods-iframe-page .config-box .content {
    height: auto !important;
    min-height: 0 !important;
    background: #ffffff !important;
  }

  .home-main .main-content {
    column-gap: 16px !important;
    background: transparent !important;
  }

  .home-main .left-box {
    row-gap: 16px !important;
  }

  .home-main .info-box,
  .home-main .money-box,
  .home-main .right-box,
  .home-main .product-list-box,
  .home-main .statistics-bottom,
  .home-main .WorkOrder-content {
    padding: 20px !important;
  }

  .home-main .info-box {
    min-height: 150px;
  }

  .home-main .statistics-content {
    min-height: 220px !important;
  }

  .home-main .money-top .money-credit,
  .home-main .money-top .money-order,
  .home-main .money-top .money-ticket,
  .home-main .statistics-bottom .statistics-item {
    background: #f8fafc !important;
    border: 1px solid var(--xy-admin-line-soft);
    border-radius: 0 !important;
  }

  .home-main .statistics-bottom {
    margin-top: 0 !important;
    padding-right: 20px !important;
    background-image: none !important;
  }

  .home-main .right-box {
    width: 33% !important;
    min-width: 360px;
    max-width: 520px;
  }

  .home-main .recommend-box img {
    width: min(100%, 320px) !important;
    height: auto !important;
  }

  .main-card {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    color: var(--xy-admin-text) !important;
    word-break: normal !important;
  }

  .content-box,
  .box-main,
  .main-card-table,
  .basic,
  .safe-box,
  .security-content,
  .order-detail,
  .finance-box,
  .info-box,
  .money-box,
  .right-box,
  .statistics-bottom,
  .product-list-box,
  .no-product,
  .WorkOrder-content {
    background: var(--xy-admin-panel) !important;
    border: 1px solid var(--xy-admin-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .main-card-title,
  .WorkOrder-title,
  .product-list-box .title-text {
    color: #7a8494 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
  }

  .btn-ok,
  .el-button--primary,
  .credit-btn,
  .recharge-btn,
  .order-btn,
  .ticket-btn {
    background: var(--xy-admin-blue) !important;
    border-color: var(--xy-admin-blue) !important;
    border-radius: 2px !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  .btn-ok:hover,
  .el-button--primary:hover,
  .credit-btn:hover,
  .recharge-btn:hover,
  .order-btn:hover,
  .ticket-btn:hover {
    background: var(--xy-admin-blue-dark) !important;
    border-color: var(--xy-admin-blue-dark) !important;
  }
}

@media (max-width: 768px) {
  .xy-admin-logo,
  .xy-console-logo,
  .xy-admin-current,
  .xy-console-current,
  .xy-top-link,
  .xy-header-action-text,
  .xy-admin-user-name {
    display: none !important;
  }
}
