/*
 * Hajiyun Global Theme — client area, home, cart and module chrome
 * Compatibility: IDCsmart Business System V10.7.1
 */
html[theme] {
  --color-primary: #57a9d8;
  --color-primary-active: #3b82b4;
  --color-primary-hover: #79c7e8;
  --color-menu-bg: #081a36;
  --color-menu-text: #a9bdd5;
  --color-menu-text-active: #fff4cf;
  --color-danger: #dc6a78;
  --hajiyun-night: #071329;
  --hajiyun-deep: #0b1e3d;
  --hajiyun-sky: #68b8e4;
  --hajiyun-cyan: #8ce9ff;
  --hajiyun-gold: #e8c477;
  --hajiyun-cream: #fff8e8;
  --hajiyun-ink: #172943;
  --hajiyun-muted: #708099;
  --hajiyun-line: rgba(88, 152, 201, 0.2);
  --hajiyun-shadow: 0 18px 50px rgba(10, 40, 75, 0.12);
  --hajiyun-orange: #ff9b2f;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--hajiyun-ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(111, 199, 238, 0.16), transparent 27rem),
    radial-gradient(circle at 12% 82%, rgba(232, 196, 119, 0.1), transparent 25rem),
    #f1f7fc;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.3;
  background-image:
    radial-gradient(circle, rgba(75, 150, 204, 0.32) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(232, 196, 119, 0.38) 0 1px, transparent 1.4px);
  background-position: 0 0, 31px 27px;
  background-size: 58px 58px, 82px 82px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}

::selection {
  color: #071329;
  background: rgba(140, 233, 255, 0.72);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(#79c9e9, #4c78ad) padding-box;
}

::-webkit-scrollbar-track {
  background: #edf5fb;
}

/* Application shell */
.hajiyun-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.hajiyun-brand img {
  width: 48px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(58, 169, 255, .34));
}

.hajiyun-brand span { display: flex; line-height: 1.08; flex-direction: column; }
.hajiyun-brand b { font-family: Georgia, "Noto Serif SC", serif; letter-spacing: .08em; }
.hajiyun-brand small { margin-top: 5px; font-size: 8px; letter-spacing: .2em; }

.hajiyun-brand--client {
  min-height: 66px;
  padding: 13px 12px 10px;
  color: #fff;
}

.hajiyun-brand--client b { color: #fff; font-size: 18px; }
.hajiyun-brand--client small { color: rgba(140, 233, 255, .62); }
.hajiyun-brand--drawer { padding: 12px 16px; }
.hajiyun-brand--drawer b { color: #17365b; font-size: 18px; }
.hajiyun-brand--drawer small { color: #6f87a2; }

.hajiyun-auth-brand {
  display: flex;
  margin-bottom: 28px;
  align-items: center;
  gap: .14rem;
}

.hajiyun-auth-brand img {
  width: 70px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(62, 172, 255, .42));
}

.hajiyun-auth-brand span { display: flex; flex-direction: column; }
.hajiyun-auth-brand b { color: #fff; font-family: Georgia, "Noto Serif SC", serif; font-size: 24px; letter-spacing: .08em; }
.hajiyun-auth-brand small { margin-top: 6px; color: rgba(140, 233, 255, .66); font-size: 9px; letter-spacing: .22em; }

.template > .el-container,
.template > .el-container > .el-container {
  min-height: 100vh;
  background: transparent;
}

.el-aside {
  position: sticky;
  position: -webkit-sticky;
  z-index: 1002;
  top: 0;
  bottom: auto;
  left: auto;
  flex: 0 0 190px;
  width: 190px !important;
  min-width: 190px;
  max-width: 190px;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid rgba(139, 205, 242, 0.13);
  background:
    radial-gradient(circle at 50% 5%, rgba(94, 181, 226, 0.18), transparent 13rem),
    linear-gradient(180deg, #0a1e3e 0%, #061329 100%) !important;
  box-shadow: 16px 0 42px rgba(4, 18, 43, 0.18);
}

.el-aside::before {
  position: absolute;
  top: 68px;
  right: 18px;
  width: 42px;
  height: 42px;
  content: "✦";
  color: rgba(232, 196, 119, 0.14);
  font-size: 38px;
  line-height: 1;
}

.el-aside .ali-logo {
  position: relative;
  z-index: 1;
  max-width: 142px;
  max-height: 48px;
  margin: 24px auto 20px;
  filter: drop-shadow(0 0 13px rgba(140, 233, 255, 0.22));
}

.el-aside .el-menu,
.el-aside .el-menu-item,
.el-aside .el-submenu__title {
  border-right: 0 !important;
  background: transparent !important;
}

.el-aside .el-menu-item,
.el-aside .el-submenu__title {
  position: relative;
  margin: 4px 10px;
  border-radius: 10px;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.el-aside .el-menu-item:hover,
.el-aside .el-submenu__title:hover {
  transform: translateX(3px);
  color: #effbff !important;
  background: rgba(119, 205, 242, 0.09) !important;
}

.el-aside .el-menu-item.is-active {
  color: #fff1c2 !important;
  background: linear-gradient(90deg, rgba(89, 177, 222, 0.24), rgba(232, 196, 119, 0.08)) !important;
  box-shadow: inset 0 0 0 1px rgba(140, 233, 255, 0.12);
}

.el-aside .el-menu-item.is-active::before {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 3px;
  height: 24px;
  content: "";
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(var(--hajiyun-cyan), var(--hajiyun-gold));
  box-shadow: 0 0 10px rgba(140, 233, 255, 0.55);
}

.el-aside .line {
  border-color: rgba(139, 205, 242, 0.12) !important;
}

.el-header {
  position: sticky !important;
  top: 0;
  left: auto !important;
  width: 100%;
  flex: 0 0 52px;
  height: 52px !important;
  border-bottom: 1px solid rgba(88, 152, 201, 0.16);
  background: rgba(248, 252, 255, 0.82) !important;
  box-shadow: 0 8px 32px rgba(9, 40, 74, 0.08) !important;
  backdrop-filter: blur(18px) saturate(140%);
}

.el-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(232, 196, 119, 0.48), transparent);
}

.el-header .header-left .el-input__inner,
.el-header .header-left input {
  border-radius: 999px !important;
  background: rgba(235, 246, 253, 0.78) !important;
}

.header-right .header-right-item img {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-right .header-right-item:hover img {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(63, 135, 184, 0.24));
}

.header-right .header-right-item .el-dropdown-header .head-box {
  color: #0b2142;
  background: linear-gradient(135deg, #a8edff, #f2d899);
  box-shadow: 0 6px 16px rgba(63, 135, 184, 0.18);
}

.el-main {
  min-height: calc(100vh - 52px);
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding-top: 24px !important;
  overflow-x: hidden;
  background: transparent !important;
}

.template > .el-container > .el-container {
  width: calc(100% - 190px);
  min-width: 0;
  flex: 1 1 auto;
}

/* Content surfaces */
.main-card,
.info-box,
.statistics-box,
.product-list-box,
.recommend-box-open,
.notice-box,
.goods-box,
.account-box,
.finance-box,
.security-box,
.order-box,
.config-box,
.content-box,
.table-box,
.card-box {
  border-color: var(--hajiyun-line) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.84) !important;
  box-shadow: 0 12px 36px rgba(9, 43, 80, 0.08) !important;
  backdrop-filter: blur(12px);
}

.main-card {
  position: relative;
}

.main-card::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(91, 174, 218, 0.52), rgba(232, 196, 119, 0.48), transparent);
}

.title-text,
.main-title,
.box-title,
.page-title,
.order-title,
.goods-name,
.dialog-title,
.el-dialog__title {
  color: #193554 !important;
  letter-spacing: 0.025em;
}

.title-text,
.main-title,
.page-title,
.el-dialog__title {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
}

.main-title::after,
.title-text::after {
  display: inline-block;
  width: 36px;
  height: 1px;
  margin: 0 0 5px 10px;
  content: "";
  background: linear-gradient(90deg, var(--hajiyun-gold), transparent);
}

.griy-12,
.grey-12,
.tips,
.description,
.el-form-item__label,
.goods-description {
  color: var(--hajiyun-muted) !important;
}

/* Element UI */
.el-button {
  border-radius: 9px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

.el-button:hover {
  transform: translateY(-1px);
}

.el-button--primary,
.buy-btn,
.settle-btn,
.login-btn,
.confim-btn {
  border-color: transparent !important;
  color: #071329 !important;
  background: linear-gradient(135deg, #83dcf6, #ecd28f) !important;
  box-shadow: 0 9px 22px rgba(65, 145, 194, 0.2) !important;
}

.el-button--primary:hover,
.buy-btn:hover,
.settle-btn:hover,
.login-btn:hover,
.confim-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 26px rgba(65, 145, 194, 0.28) !important;
}

.el-input__inner,
.el-textarea__inner,
.el-input-group__prepend,
.el-input-group__append {
  border-color: rgba(88, 152, 201, 0.22) !important;
  border-radius: 9px !important;
  color: #203a5b !important;
  background: rgba(251, 254, 255, 0.92) !important;
}

.el-input__inner:focus,
.el-textarea__inner:focus {
  border-color: var(--hajiyun-sky) !important;
  box-shadow: 0 0 0 3px rgba(104, 184, 228, 0.12);
}

.el-table,
.goods-table {
  overflow: hidden;
  border-color: rgba(88, 152, 201, 0.16) !important;
  border-radius: 12px;
  color: #29435f !important;
  background: rgba(255, 255, 255, 0.68) !important;
}

.el-table th,
.goods-table thead,
.goods-table th,
.goods-table thead td {
  color: #315270 !important;
  background: rgba(225, 241, 250, 0.72) !important;
}

.el-table tr,
.goods-table tr,
.goods-table td {
  border-color: rgba(88, 152, 201, 0.12) !important;
  background: transparent !important;
}

.el-table__body tr:hover > td,
.goods-table tbody tr:hover td {
  background: rgba(125, 207, 240, 0.07) !important;
}

.el-dialog,
.el-message-box,
.el-popover,
.el-dropdown-menu {
  overflow: hidden;
  border: 1px solid rgba(88, 152, 201, 0.2) !important;
  border-radius: 16px !important;
  background: rgba(253, 254, 255, 0.96) !important;
  box-shadow: 0 24px 70px rgba(5, 28, 61, 0.2) !important;
  backdrop-filter: blur(18px);
}

.el-dialog__header {
  border-bottom: 1px solid rgba(88, 152, 201, 0.12);
  background: linear-gradient(90deg, rgba(116, 199, 239, 0.08), rgba(232, 196, 119, 0.06));
}

.el-tabs__item.is-active,
.el-tabs__item:hover,
.bule-text,
.base-color,
a:hover {
  color: #3d8fbd !important;
}

.el-tabs__active-bar,
.el-progress-bar__inner {
  background: linear-gradient(90deg, var(--hajiyun-sky), var(--hajiyun-gold)) !important;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  color: #071329 !important;
  background: linear-gradient(135deg, #83dcf6, #ecd28f) !important;
}

.el-checkbox__input.is-checked .el-checkbox__inner,
.el-radio__input.is-checked .el-radio__inner {
  border-color: var(--hajiyun-sky) !important;
  background: var(--hajiyun-sky) !important;
}

/* Home cards and cart */
.statistics-content > *,
.order-item,
.shopping-item,
.shopping-goods,
.goods-item,
.product-item,
.info-first {
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.order-item:hover,
.shopping-item:hover,
.shopping-goods:hover,
.goods-item:hover,
.product-item:hover {
  transform: translateY(-4px);
  border-color: rgba(87, 169, 216, 0.34) !important;
  box-shadow: 0 15px 35px rgba(17, 67, 105, 0.1) !important;
}

.statistics-credit,
.money-num,
.item-price,
.total-price,
.now-price {
  color: #b18135 !important;
}

.recharge-btn,
.active-name,
.domain-status,
.level-badge {
  border-radius: 999px !important;
}

.el-footer {
  border-top: 1px solid rgba(88, 152, 201, 0.15);
  background: rgba(248, 252, 255, 0.9) !important;
  box-shadow: 0 -10px 34px rgba(9, 40, 74, 0.07);
  backdrop-filter: blur(16px);
}

/* Login, register and auth pages */
.login-container,
.regist-container,
.forget-container {
  background:
    radial-gradient(circle at 18% 25%, rgba(110, 208, 245, 0.24), transparent 24rem),
    radial-gradient(circle at 82% 70%, rgba(232, 196, 119, 0.18), transparent 25rem),
    linear-gradient(135deg, #07152e, #12355c 58%, #1e526f) !important;
}

.container-back::before,
.login-container::before,
.regist-container::before,
.forget-container::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.35;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.5px),
    linear-gradient(115deg, transparent 0 49.5%, rgba(142, 222, 255, 0.06) 50%, transparent 50.5%);
  background-size: 64px 64px, 150px 150px;
  pointer-events: none;
}

.container-before,
.login,
.regist,
.forget-box {
  border-color: rgba(139, 205, 242, 0.24) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 28px 80px rgba(0, 13, 37, 0.3) !important;
  backdrop-filter: blur(20px);
}

.back-text,
.text-welcome,
.text-title,
.text-level {
  color: #f4fbff !important;
  text-shadow: 0 4px 24px rgba(0, 13, 37, 0.42);
}

.text-welcome {
  color: #f2d894 !important;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.12em;
}

/* Login page: compact, centred and safe at common laptop heights. */
#login {
  min-height: 100vh;
  height: auto;
  padding: 28px 40px;
  box-sizing: border-box;
}

#login .login-container {
  width: min(1160px, calc(100vw - 80px));
  height: min(660px, calc(100vh - 56px));
  min-height: 580px;
}

#login .container-back {
  width: 100%;
  height: calc(100% - 46px);
  min-height: 530px;
  border: 1px solid rgba(139, 219, 250, .18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 26% 45%, rgba(89, 199, 240, .23), transparent 18rem),
    linear-gradient(135deg, rgba(8, 27, 58, .96), rgba(12, 63, 98, .9)) !important;
  box-shadow: 0 26px 80px rgba(2, 17, 39, .28);
}

#login .container-back .back-text {
  max-width: 440px;
  margin: 0;
  padding: 88px 0 0 70px;
}

#login .container-back .text-welcome {
  margin-top: 34px;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
}

#login .container-back .text-title {
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.6;
}

#login .container-back .text-level {
  max-width: 360px;
  margin-top: 58px;
  color: rgba(226, 240, 250, .66) !important;
  font-size: 12px;
  line-height: 1.8;
}

#login .container-before {
  top: 50%;
  right: 34px;
  width: min(540px, 50%);
  height: auto;
  min-height: 570px;
  max-height: calc(100vh - 56px);
  overflow: hidden;
  transform: translateY(-50%);
  border: 1px solid rgba(130, 197, 232, .2) !important;
  border-radius: 26px !important;
}

#login .login {
  box-sizing: border-box;
  height: 100%;
  max-height: calc(100vh - 58px);
  padding: 50px 58px 44px;
  overflow-x: hidden;
  overflow-y: auto;
}

#login .login-text-title { font-size: 28px; line-height: 1.25; }
#login .login-form { margin-top: 36px; }
#login .form-main { margin-top: 22px; }
#login .form-item { margin-top: 20px; }
#login .login .qr-code { top: 48px; right: 54px; }
#login .login-jump-btn { z-index: 30; top: 8px; right: 0; }

@media (max-height: 680px) and (min-width: 751px) {
  #login { padding-top: 18px; padding-bottom: 18px; }
  #login .login-container { height: calc(100vh - 36px); min-height: 0; }
  #login .container-back { min-height: 0; }
  #login .container-before { min-height: 0; max-height: calc(100vh - 36px); }
  #login .login { max-height: calc(100vh - 38px); padding-top: 36px; padding-bottom: 32px; }
  #login .login-form { margin-top: 26px; }
  #login .form-item { margin-top: 16px; }
}

/* Loading */
#mainLoading {
  background:
    radial-gradient(circle at 50% 44%, rgba(105, 199, 235, 0.18), transparent 18rem),
    #f4f9fd !important;
}

#mainLoading::after {
  position: absolute;
  top: calc(50% + 72px);
  left: 50%;
  content: "正在穿越星海…";
  transform: translateX(-50%);
  color: #6c819a;
  font-size: 13px;
  letter-spacing: 0.12em;
}

#mainLoading .ddr {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(var(--hajiyun-cyan), var(--hajiyun-gold)) !important;
  box-shadow: 0 0 13px rgba(104, 184, 228, 0.4);
}

/* Paimon guide */
.hajiyun-guide {
  position: fixed;
  right: 12px;
  bottom: 8px;
  z-index: 4000;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  --guide-image: 154px;
}

.hajiyun-guide__bubble {
  position: relative;
  width: min(310px, calc(100vw - 224px));
  margin-bottom: 58px;
  padding: 16px 16px 12px;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
  visibility: hidden;
  opacity: 0;
  pointer-events: auto;
  border: 1px solid rgba(119, 185, 225, 0.36);
  border-radius: 17px 17px 5px 17px;
  color: #203857;
  background: rgba(253, 254, 255, 0.96);
  box-shadow: 0 18px 54px rgba(4, 25, 58, 0.22);
  backdrop-filter: blur(18px);
}

.hajiyun-guide[data-open="true"] .hajiyun-guide__bubble {
  transform: none;
  visibility: visible;
  opacity: 1;
}

.hajiyun-guide__bubble::after {
  position: absolute;
  right: -10px;
  bottom: 22px;
  width: 18px;
  height: 18px;
  content: "";
  transform: rotate(45deg);
  border-top: 1px solid rgba(119, 185, 225, 0.3);
  border-right: 1px solid rgba(119, 185, 225, 0.3);
  background: rgba(253, 254, 255, 0.96);
}

.hajiyun-guide__eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #977135;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hajiyun-guide__eyebrow::before {
  content: "✦";
  color: var(--hajiyun-gold);
}

.hajiyun-guide__text {
  min-height: 46px;
  margin: 0;
  color: #27405f;
  font-size: 13px;
  line-height: 1.72;
}

.hajiyun-guide__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.hajiyun-guide__next,
.hajiyun-guide__close {
  min-width: 0;
  padding: 4px 8px;
  border: 0;
  color: #346f9d;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}

.hajiyun-guide__next:hover,
.hajiyun-guide__close:hover {
  transform: none;
  color: #9b742f;
}

.hajiyun-guide__mascot {
  position: relative;
  width: var(--guide-image);
  height: calc(var(--guide-image) * 1.28);
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  filter: drop-shadow(0 16px 16px rgba(7, 31, 70, 0.24));
  pointer-events: auto;
}

.hajiyun-guide__mascot::before {
  position: absolute;
  right: 22%;
  bottom: 8%;
  left: 22%;
  height: 14px;
  content: "";
  animation: hajiyun-shadow-pulse 3s ease-in-out infinite;
  border-radius: 50%;
  background: rgba(68, 174, 230, 0.24);
  filter: blur(7px);
}

.hajiyun-guide__mascot img {
  width: 100%;
  height: 100%;
  animation: hajiyun-float 4s ease-in-out infinite;
  object-fit: contain;
}

.hajiyun-guide__badge {
  position: absolute;
  top: 18%;
  right: 5%;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(232, 196, 119, 0.7);
  border-radius: 50%;
  color: #102342;
  background: #fff6d9;
  box-shadow: 0 5px 16px rgba(6, 24, 51, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.hajiyun-spark {
  position: fixed;
  z-index: 3999;
  width: 5px;
  height: 5px;
  animation: hajiyun-spark 0.8s ease-out forwards;
  border-radius: 50%;
  background: var(--spark-color, #8ce9ff);
  box-shadow: 0 0 10px var(--spark-color, #8ce9ff);
  pointer-events: none;
}

/* Paimon-assisted route transition */
.hajiyun-transition {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(97, 204, 242, .22), transparent 22rem),
    linear-gradient(135deg, rgba(5, 18, 42, .97), rgba(9, 53, 86, .98));
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}

.hajiyun-transition__stars {
  position: absolute;
  inset: -15%;
  opacity: .45;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(237,205,126,.88) 0 1px, transparent 1.4px);
  background-position: 0 0, 35px 31px;
  background-size: 72px 72px, 108px 108px;
}

.hajiyun-transition__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateY(18px) scale(.96);
  opacity: 0;
  color: #fff;
  transition: transform .36s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}

.hajiyun-transition__content img {
  width: 138px;
  height: 174px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 11, 32, .36));
}

.hajiyun-transition__content div { display: flex; flex-direction: column; gap: 9px; }
.hajiyun-transition__content b { color: #fff6dc; font-family: Georgia, "Noto Serif SC", serif; font-size: 20px; letter-spacing: .04em; }
.hajiyun-transition__content span { color: rgba(211, 237, 250, .68); font-size: 12px; letter-spacing: .08em; }

.hajiyun-leaving .hajiyun-transition { visibility: visible; opacity: 1; pointer-events: all; }
.hajiyun-leaving .hajiyun-transition__stars { animation: hajiyun-transition-stars 7s linear infinite; }
.hajiyun-leaving .hajiyun-transition__content { transform: none; opacity: 1; }
.hajiyun-leaving .hajiyun-transition__content img { animation: hajiyun-transition-paimon .9s ease-in-out infinite alternate; }

@keyframes hajiyun-transition-stars { to { transform: rotate(7deg) scale(1.06); } }
@keyframes hajiyun-transition-paimon { to { transform: translateY(-9px) rotate(1.5deg); } }

@media (max-width: 520px) {
  .hajiyun-transition__content { padding: 24px; align-items: center; text-align: center; flex-direction: column; }
  .hajiyun-transition__content img { width: 112px; height: 142px; }
  .hajiyun-transition__content b { font-size: 17px; }
}

.hajiyun-enhanced .hajiyun-reveal {
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  opacity: 0;
}

.hajiyun-enhanced .hajiyun-reveal.is-visible {
  transform: none;
  opacity: 1;
}

@keyframes hajiyun-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.2deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(1.2deg); }
}

@keyframes hajiyun-shadow-pulse {
  0%, 100% { transform: scale(0.82); opacity: 0.46; }
  50% { transform: scale(1.08); opacity: 0.22; }
}

@keyframes hajiyun-spark {
  to { transform: translate(var(--spark-x), var(--spark-y)) scale(0); opacity: 0; }
}

@media (max-width: 750px) {
  .template > .el-container > .el-container {
    width: 100%;
  }

  .el-aside {
    display: none !important;
  }

  .el-header {
    left: 0 !important;
    width: 100% !important;
    height: 52px !important;
  }

  .el-header .menu-img {
    display: block !important;
  }

  .el-main {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 64px 12px 88px !important;
  }

  .main-card,
  .info-box,
  .statistics-box,
  .product-list-box,
  .goods-box {
    border-radius: 13px !important;
  }

  .main-content,
  .statistics-content,
  .order-box {
    flex-wrap: wrap !important;
  }

  .hajiyun-guide {
    right: 2px;
    bottom: 2px;
    --guide-image: 104px;
  }

  .hajiyun-guide__bubble {
    position: fixed;
    right: 10px;
    bottom: 102px;
    left: 10px;
    width: auto;
    margin: 0;
    border-radius: 15px;
  }

  .hajiyun-guide__bubble::after {
    right: 56px;
    bottom: -9px;
    transform: rotate(135deg);
  }

  .hajiyun-guide__badge {
    top: 13%;
    right: 0;
  }

  .login-container,
  .regist-container,
  .forget-container {
    min-height: 100vh;
    padding: 12px !important;
  }

  #login {
    min-height: 100vh;
    padding: 12px;
  }

  #login .login-container {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 24px);
    padding: 0 !important;
  }

  #login .container-before {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    overflow: visible;
    transform: none;
  }

  #login .login {
    max-height: none;
    padding: 88px 24px 36px;
    overflow: visible;
  }

  #login .login-form { margin-top: 48px; }
  #login .login .qr-code { top: 84px; right: 24px; }

  .container-back {
    display: none !important;
  }

  .container-before::before {
    position: absolute;
    top: 24px;
    left: 26px;
    width: 48px;
    height: 40px;
    background: url("../../img/hajiyun/logo-mark.png") center / contain no-repeat;
    content: "";
    filter: drop-shadow(0 0 10px rgba(58, 169, 255, .28));
  }

  .container-before::after {
    position: absolute;
    top: 33px;
    left: 80px;
    color: #17365b;
    content: "哈基云";
    font-family: Georgia, "Noto Serif SC", serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hajiyun 1.2.0: console navigation */
.el-aside {
  padding: 0 10px 14px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 218, 244, 0.28) transparent;
}

.el-aside::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(126, 221, 244, 0.72), rgba(232, 196, 119, 0.48), transparent);
  opacity: 0.58;
}

.el-aside .hajiyun-brand--client {
  min-height: 78px;
  margin: 0 !important;
  padding: 17px 11px 10px;
  box-sizing: border-box;
}

.hajiyun-aside-status {
  position: relative;
  z-index: 1;
  min-height: 30px;
  display: flex;
  align-items: center;
  margin: 2px 8px 14px;
  padding: 0 10px;
  border: 1px solid rgba(126, 221, 244, 0.12);
  border-radius: 999px;
  color: rgba(211, 239, 250, 0.66);
  font-size: 11px;
  letter-spacing: 0.05em;
  background: rgba(96, 183, 221, 0.06);
}

.hajiyun-aside-status i {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #75dfb7;
  box-shadow: 0 0 0 4px rgba(117, 223, 183, 0.08), 0 0 12px rgba(117, 223, 183, 0.72);
  animation: hajiyun-status-pulse 2.4s ease-in-out infinite;
}

.hajiyun-aside-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 11px 5px;
  color: rgba(233, 248, 255, 0.54);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.hajiyun-aside-caption small {
  color: rgba(232, 196, 119, 0.36);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.el-aside > .menu-top {
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
}

.el-aside > .line {
  display: none !important;
}

.hajiyun-aside-divider {
  position: relative;
  z-index: 1;
  height: 24px;
  display: flex;
  align-items: center;
  margin: 5px 10px 4px;
  color: rgba(232, 196, 119, 0.48);
  font-size: 10px;
}

.hajiyun-aside-divider::before,
.hajiyun-aside-divider::after {
  height: 1px;
  content: "";
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(126, 221, 244, 0.2));
}

.hajiyun-aside-divider::after {
  background: linear-gradient(90deg, rgba(232, 196, 119, 0.2), transparent);
}

.hajiyun-aside-divider span {
  margin: 0 8px;
}

.el-aside .el-menu-item,
.el-aside .el-submenu__title {
  height: 42px !important;
  min-width: 0 !important;
  margin: 3px 0 !important;
  padding-right: 12px !important;
  padding-left: 14px !important;
  line-height: 42px !important;
  border: 1px solid transparent;
  border-radius: 11px;
}

.el-aside .el-menu-item .iconfont,
.el-aside .el-submenu__title .iconfont {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  margin-right: 0 !important;
  border: 1px solid rgba(134, 207, 238, 0.08);
  border-radius: 9px;
  color: rgba(211, 235, 247, 0.7) !important;
  font-size: 15px;
  background: rgba(122, 194, 226, 0.045);
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.el-aside .aside-menu-text {
  margin-left: 10px !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.el-aside .el-menu-item:hover,
.el-aside .el-submenu__title:hover {
  transform: translateX(2px);
  border-color: rgba(126, 221, 244, 0.1);
  background: linear-gradient(90deg, rgba(99, 187, 226, 0.13), rgba(99, 187, 226, 0.035)) !important;
}

.el-aside .el-menu-item:hover .iconfont,
.el-aside .el-submenu__title:hover .iconfont {
  color: #dff8ff !important;
  background: rgba(126, 221, 244, 0.1);
  transform: rotate(-4deg) scale(1.04);
}

.el-aside .el-menu-item.is-active {
  border-color: rgba(128, 221, 244, 0.2);
  color: #fff1c2 !important;
  background:
    radial-gradient(circle at 88% 50%, rgba(232, 196, 119, 0.13), transparent 34%),
    linear-gradient(90deg, rgba(73, 166, 215, 0.28), rgba(20, 76, 117, 0.13)) !important;
  box-shadow: inset 0 0 18px rgba(101, 201, 237, 0.06), 0 6px 18px rgba(2, 12, 31, 0.12);
}

.el-aside .el-menu-item.is-active .iconfont {
  border-color: rgba(232, 196, 119, 0.22);
  color: #ffeaa9 !important;
  background: rgba(232, 196, 119, 0.08);
  box-shadow: 0 0 15px rgba(232, 196, 119, 0.08);
}

.el-aside .el-menu-item.is-active::before {
  left: -1px;
  width: 3px;
  height: 25px;
}

.el-aside .el-submenu .el-menu-item {
  height: 34px !important;
  margin: 2px 0 2px 32px !important;
  padding-left: 20px !important;
  line-height: 34px !important;
  font-size: 12px;
}

.hajiyun-aside-footer {
  position: relative;
  z-index: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  margin: 13px 4px 0;
  padding: 9px 10px;
  box-sizing: border-box;
  border: 1px solid rgba(128, 221, 244, 0.1);
  border-radius: 12px;
  color: rgba(222, 241, 250, 0.66);
  background:
    radial-gradient(circle at 10% 30%, rgba(103, 201, 236, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.hajiyun-aside-footer > i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-right: 9px;
  border-radius: 50%;
  color: #e2c36c;
  font-style: normal;
  background: rgba(232, 196, 119, 0.08);
  box-shadow: 0 0 15px rgba(232, 196, 119, 0.08);
}

.hajiyun-aside-footer span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hajiyun-aside-footer b {
  color: rgba(234, 249, 255, 0.82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hajiyun-aside-footer small {
  margin-top: 3px;
  color: rgba(176, 207, 222, 0.45);
  font-size: 8px;
  letter-spacing: 0.06em;
}

@keyframes hajiyun-status-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

.el-aside .el-menu-item,
.el-aside .el-submenu__title {
  color: rgba(220, 238, 248, 0.76) !important;
}

.el-aside .el-menu-item.is-active {
  color: #fff1c2 !important;
}

/* Hajiyun 1.3.0: cross-device safeguards. */
html,
body {
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.el-dialog,
.el-message-box {
  max-width: calc(100vw - 32px);
}

.el-table__body-wrapper,
.el-table__header-wrapper {
  max-width: 100%;
}

@supports (min-height: 100dvh) {
  body,
  #app,
  .template {
    min-height: 100dvh;
  }
}

@media (max-width: 750px) {
  .el-header {
    padding-right: max(12px, env(safe-area-inset-right)) !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
  }

  .el-main {
    padding-right: max(12px, env(safe-area-inset-right)) !important;
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
    overscroll-behavior-y: contain;
  }

  .el-dialog {
    width: calc(100vw - 24px) !important;
    margin: max(12px, env(safe-area-inset-top)) auto !important;
  }

  .el-message-box {
    width: calc(100vw - 24px) !important;
  }

  .el-dialog__body {
    max-height: calc(100dvh - 150px);
    padding: 18px 16px;
    overflow-y: auto;
  }

  input,
  select,
  textarea,
  .el-input__inner,
  .el-textarea__inner {
    font-size: 16px !important;
  }

  .el-button,
  button,
  [role="button"] {
    min-height: 40px;
  }

  .el-table__body-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 420px) {
  .el-main {
    padding-top: 60px !important;
    padding-right: max(9px, env(safe-area-inset-right)) !important;
    padding-left: max(9px, env(safe-area-inset-left)) !important;
  }

  .hajiyun-guide {
    --guide-image: 92px;
  }

  .hajiyun-guide__bubble {
    right: 8px;
    bottom: 92px;
    left: 8px;
  }
}
