/* ==========================================================================
   MOE Member Center Skin
   在会员中心主题上做视觉覆盖：与官网一致的浅色卡片 + 主题蓝
   说明：购物车页面（body.moe-cart）已有独立样式，这里用 :not(.moe-cart) 隔离
   ========================================================================== */

body {
  --mc-ink: #0b0f19;
  --mc-sub: #5b6472;
  --mc-muted: #98a2b3;
  --mc-line: #e5eaf1;
  --mc-blue: #2f74d4;
  --mc-blue-soft: #eaf3ff;
  --mc-blue-deep: #1f5cb0;
  --mc-bg: #f6f9fe;

  /* 覆盖旧主题紫色变量（:root 里的派生按钮变量需要在这里重新声明） */
  --primary: #2f74d4;
  --bs-global: #2f74d4;
  --bs-global-1: #eaf3ff;
  --bs-global-2: #f4f9ff;
  --bs-global-3: #bcd7f7;
  --bs-global-o-0: rgba(47, 116, 212, 0);
  --bs-global-o-1: rgba(47, 116, 212, .1);
  --bs-global-o-2: rgba(47, 116, 212, .2);
  --bs-global-o-3: rgba(47, 116, 212, .3);
  --bs-global-o-4: rgba(47, 116, 212, .4);
  --bs-global-o-5: rgba(47, 116, 212, .5);
  --bs-btn-bg: #2f74d4;
  --bs-btn-border-color: #2f74d4;
  --bs-btn-hover-bg: #1f5cb0;
  --bs-btn-hover-border-color: #1a4f99;
  --bs-btn-active-bg: #1a4f99;
  --bs-btn-active-border-color: #17458a;
  --bs-btn-disabled-bg: #2f74d4;
  --bs-btn-disabled-border-color: #2f74d4;
  --bs-btn-focus-shadow-rgb: 47, 116, 212;
  --bs-primary: #2f74d4;
}

body:not(.moe-cart) {
  background:
    radial-gradient(760px 440px at 86% 0%, rgba(142, 190, 255, .18), transparent 65%),
    radial-gradient(620px 380px at 6% 24%, rgba(255, 208, 236, .14), transparent 66%),
    var(--mc-bg);
  color: var(--mc-ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 页面底色 ---------- */
body:not(.moe-cart) .main-content {
  min-height: 100vh;
  background:
    radial-gradient(820px 460px at 88% 0%, rgba(142, 190, 255, .16), transparent 65%),
    radial-gradient(680px 420px at 6% 28%, rgba(255, 208, 236, .12), transparent 66%),
    var(--mc-bg);
}

body:not(.moe-cart) .page-content {
  padding: 96px 0 80px;
}

body:not(.moe-cart) .page-content > .container-fluid {
  width: auto;
  max-width: none;
  margin: 0 24px;
}

/* ---------- 顶部栏 ---------- */
body:not(.moe-cart) #page-topbar {
  height: 72px;
  background: rgba(255, 255, 255, .9) !important;
  border-bottom: 1px solid var(--mc-line);
  box-shadow: none;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  z-index: 1030;
}

body:not(.moe-cart) #page-topbar .navbar-header {
  height: 72px;
  padding: 0 28px;
  align-items: center;
}

body:not(.moe-cart) #page-topbar .logo-lg img {
  height: 36px;
  width: auto;
}

body:not(.moe-cart) #page-topbar .logo-sm img {
  height: 32px;
  width: auto;
}

body:not(.moe-cart) #vertical-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  color: var(--mc-ink);
  background: #f4f7fb;
  border-radius: 50%;
}

body:not(.moe-cart) #page-header-search-dropdown {
  display: none !important;
}

body:not(.moe-cart) #page-topbar .header-item {
  height: 40px;
  color: var(--mc-ink);
  border-radius: 50%;
}

body:not(.moe-cart) #page-topbar .noti-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 4px;
  background: #f4f7fb;
  border-radius: 50%;
  transition: background-color .2s ease, color .2s ease;
}

body:not(.moe-cart) #page-topbar .noti-icon:hover {
  background: var(--mc-blue-soft);
  color: var(--mc-blue);
}

body:not(.moe-cart) #page-topbar .pointer a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  background: var(--mc-blue);
  border-radius: 6px;
}

body:not(.moe-cart) #page-topbar .pointer a:hover {
  background: var(--mc-blue-deep);
}

/* ---------- 左侧菜单 ---------- */
body:not(.moe-cart) .vertical-menu {
  top: 72px;
  background: #fff !important;
  border-right: 1px solid var(--mc-line);
  box-shadow: none;
}

body:not(.moe-cart)[data-sidebar] #sidebar-menu ul li a {
  margin: 4px 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--mc-sub);
  border-radius: 10px;
  transition: background-color .2s ease, color .2s ease;
}

body:not(.moe-cart)[data-sidebar] #sidebar-menu ul li a i {
  margin-right: 8px;
  font-size: 18px;
  color: var(--mc-muted);
}

body:not(.moe-cart)[data-sidebar] #sidebar-menu ul li a:hover,
body:not(.moe-cart)[data-sidebar] #sidebar-menu ul li a.active,
body:not(.moe-cart)[data-sidebar] #sidebar-menu .mm-active > a {
  color: var(--mc-blue) !important;
  background: var(--mc-blue-soft) !important;
}

body:not(.moe-cart)[data-sidebar] #sidebar-menu ul li a:hover i,
body:not(.moe-cart)[data-sidebar] #sidebar-menu .mm-active > a i {
  color: var(--mc-blue) !important;
}

body:not(.moe-cart)[data-sidebar] .vertical-menu .sub-menu a {
  margin: 2px 10px;
  padding: 9px 14px 9px 34px;
  font-size: 13px;
}

body:not(.moe-cart) .vertical-menu .simplebar-content {
  padding-top: 12px;
}

/* ---------- 页头 / 面包屑 ---------- */
body:not(.moe-cart) .page-title-box {
  padding: 0 0 6px;
}

body:not(.moe-cart) .page-title-box h4 {
  font-size: 20px !important;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--mc-ink);
}

body:not(.moe-cart) .breadcrumb {
  margin: 0;
  background: transparent;
  font-size: 12px;
}

body:not(.moe-cart) .breadcrumb-item a {
  color: var(--mc-sub);
}

body:not(.moe-cart) .breadcrumb-item.active {
  color: var(--mc-muted);
}

/* ---------- 卡片 ---------- */
body:not(.moe-cart) .card {
  background: #fff;
  border: 1px solid var(--mc-line);
  border-radius: 16px;
  box-shadow: none;
}

body:not(.moe-cart) .card-body {
  padding: 24px;
}

body:not(.moe-cart) .card-header {
  padding: 16px 24px;
  background: transparent;
  border-bottom: 1px solid var(--mc-line);
  font-weight: 700;
}

body:not(.moe-cart) .card-footer {
  background: transparent;
  border-top: 1px solid var(--mc-line);
}

body:not(.moe-cart) .card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--mc-ink);
}

body:not(.moe-cart) .shadow,
body:not(.moe-cart) .shadow-sm {
  box-shadow: 0 10px 26px rgba(24, 54, 100, .06) !important;
}

/* ---------- 按钮 ---------- */
body:not(.moe-cart) .btn {
  border-radius: 8px;
  font-weight: 600;
}

body:not(.moe-cart) .btn-primary {
  color: #fff;
  background: var(--mc-blue);
  border-color: var(--mc-blue);
}

body:not(.moe-cart) .btn-primary:hover,
body:not(.moe-cart) .btn-primary:focus {
  background: var(--mc-blue-deep);
  border-color: var(--mc-blue-deep);
}

body:not(.moe-cart) .btn-outline-primary {
  color: var(--mc-blue);
  border-color: var(--mc-blue);
}

body:not(.moe-cart) .btn-outline-primary:hover {
  color: #fff;
  background: var(--mc-blue);
  border-color: var(--mc-blue);
}

body:not(.moe-cart) .btn-light {
  background: #f4f7fb;
  border-color: #e8eef7;
}

/* ---------- 表单 ---------- */
body:not(.moe-cart) .form-control,
body:not(.moe-cart) .custom-select {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--mc-ink);
  background-color: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  box-shadow: none;
}

body:not(.moe-cart) .form-control:focus,
body:not(.moe-cart) .custom-select:focus {
  border-color: var(--mc-blue);
  box-shadow: 0 0 0 3px rgba(47, 116, 212, .12);
}

body:not(.moe-cart) .custom-control-label::before {
  border-color: #cfd8e3;
}

body:not(.moe-cart) .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--mc-blue);
  border-color: var(--mc-blue);
}

body:not(.moe-cart) .input-group-text {
  background: #f7fafd;
  border-color: #dfe5ee;
  border-radius: 8px;
}

/* ---------- 提示 / 标签 ---------- */
body:not(.moe-cart) .badge {
  border-radius: 6px;
  font-weight: 600;
}

body:not(.moe-cart) .badge-primary,
body:not(.moe-cart) .badge-soft-yunyoo {
  color: var(--mc-blue) !important;
  background: var(--mc-blue-soft) !important;
}

body:not(.moe-cart) .badge-pill {
  border-radius: 999px;
}

body:not(.moe-cart) .alert {
  border: 1px solid var(--mc-line);
  border-radius: 10px;
}

body:not(.moe-cart) .text-primary,
body:not(.moe-cart) .yunyoo-c-primary {
  color: var(--mc-blue) !important;
}

/* ---------- 表格 ---------- */
body:not(.moe-cart) .table {
  margin-bottom: 0;
  color: var(--mc-ink);
}

body:not(.moe-cart) .table thead th {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mc-muted);
  background: #f8fafd;
  border-top: 0;
  border-bottom: 1px solid var(--mc-line);
  white-space: nowrap;
}

body:not(.moe-cart) .table td {
  padding: 12px 14px;
  vertical-align: middle;
  border-color: var(--mc-line);
}

body:not(.moe-cart) .table-hover tbody tr:hover {
  background: #f7fbff;
}

body:not(.moe-cart) .table-responsive {
  border-radius: 12px;
}

/* ---------- 分页 / 标签页 ---------- */
body:not(.moe-cart) .pagination .page-link {
  color: var(--mc-blue);
  border-color: var(--mc-line);
  box-shadow: none;
}

body:not(.moe-cart) .pagination .page-item.active .page-link {
  color: #fff;
  background: var(--mc-blue);
  border-color: var(--mc-blue);
}

body:not(.moe-cart) .nav-tabs {
  border-bottom: 1px solid var(--mc-line);
}

body:not(.moe-cart) .nav-tabs .nav-link {
  padding: 10px 16px;
  font-weight: 600;
  color: var(--mc-sub);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
}

body:not(.moe-cart) .nav-tabs .nav-link.active {
  color: var(--mc-blue);
  background: transparent;
  border-bottom-color: var(--mc-blue);
}

/* ---------- 下拉 / 弹窗 ---------- */
body:not(.moe-cart) .dropdown-menu {
  padding: 6px;
  border: 1px solid var(--mc-line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(24, 54, 100, .12);
}

body:not(.moe-cart) .dropdown-item {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
}

body:not(.moe-cart) .dropdown-item:hover,
body:not(.moe-cart) .dropdown-item:focus {
  color: var(--mc-blue);
  background: var(--mc-blue-soft);
}

body:not(.moe-cart) .modal-content {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(24, 54, 100, .18);
}

body:not(.moe-cart) .modal-header,
body:not(.moe-cart) .modal-footer {
  border-color: var(--mc-line);
}

/* ---------- 会员中心首页 ---------- */
body:not(.moe-cart) .bl-hov .bx-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 22px;
  color: var(--mc-blue);
  background: var(--mc-blue-soft);
  border-radius: 12px;
}

body:not(.moe-cart) .bl-hov:hover,
body:not(.moe-cart) .bl-hover:hover {
  border-left-width: 4px;
}

body:not(.moe-cart) .card .bl-global,
body:not(.moe-cart) .card .bl-blue,
body:not(.moe-cart) .card .bl-yellow,
body:not(.moe-cart) .card .bl-green {
  border-left-width: 4px;
}

body:not(.moe-cart) .user-center_header {
  width: 52px;
  height: 52px;
  font-size: 26px;
  background-color: var(--mc-blue-soft);
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(24, 54, 100, .12);
}

body:not(.moe-cart) .user-center_h300 {
  border-radius: 16px !important;
  overflow: hidden;
}

body:not(.moe-cart) .user-center_h300 > .card-body {
  border-radius: 16px !important;
}

body:not(.moe-cart) .user-center_h300 .card-body[style] {
  background-color: rgba(47, 116, 212, .42) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body:not(.moe-cart) .user-center_product_grid .user-center_product {
  height: 48px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--mc-sub);
  background: #f9fbff;
  border: 1px solid var(--mc-line);
  border-radius: 10px;
  transition: border-color .2s ease, background-color .2s ease;
}

body:not(.moe-cart) .user-center_product_grid .user-center_product:hover {
  color: var(--mc-blue);
  background: var(--mc-blue-soft);
  border-color: rgba(47, 116, 212, .35);
}

body:not(.moe-cart) .user-center_notice_item {
  height: auto;
  padding: 9px 0;
  border-bottom: 1px dashed var(--mc-line);
}

body:not(.moe-cart) .user-center_notice_item .notice_item_title {
  color: var(--mc-sub);
}

body:not(.moe-cart) .user-center_notice_item .notice_item_title:hover {
  color: var(--mc-blue);
}

body:not(.moe-cart) .yunyoo-num {
  color: var(--mc-ink);
}

/* 安全中心 / 推广中心：覆盖旧主题的固定紫色 */
body:not(.moe-cart) .security-header {
  background-image: url(/themes/clientarea/yunyoo/assets_custom/img/security_top.png),
    linear-gradient(87deg, #2f74d4, #3f8ae6) !important;
}

body:not(.moe-cart) .security-avatar {
  box-shadow: inset 0 0 0 10px rgba(47, 116, 212, .28),
    inset 0 0 0 20px rgba(47, 116, 212, .12) !important;
}

body:not(.moe-cart) .security-info {
  background-color: var(--mc-blue) !important;
}

body:not(.moe-cart) .bg-promote {
  background: linear-gradient(120deg, #2f74d4 0%, #3f8ae6 100%) !important;
  box-shadow: 0 10px 24px rgba(47, 116, 212, .22) !important;
}

/* ---------- 登录 / 注册 ---------- */
body:not(.moe-cart) section {
  background-color: transparent !important;
}

body:not(.moe-cart) .semi-transparent-white-bg {
  background-color: #fff !important;
  border: 1px solid var(--mc-line);
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(24, 54, 100, .12) !important;
}

body:not(.moe-cart) .semi-transparent-white-bg .bg-info {
  background: var(--mc-blue) !important;
}

body:not(.moe-cart) .semi-transparent-white-bg h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--mc-ink);
}

body:not(.moe-cart) .semi-transparent-white-bg .card-body {
  padding: 36px;
}

/* ---------- 会员中心首页欢迎横幅 ---------- */
body:not(.moe-cart) .moe-member-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 170px;
  margin: 0 0 24px;
  padding: 26px 34px;
  overflow: hidden;
  background:
    radial-gradient(460px 280px at 88% 18%, rgba(63, 138, 230, .18), transparent 70%),
    linear-gradient(115deg, #f8fbff 0%, #eef5ff 55%, #e6f0ff 100%);
  border: 1px solid rgba(47, 116, 212, .16);
  border-radius: 20px;
}

body:not(.moe-cart) .moe-member-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 66%;
}

body:not(.moe-cart) .moe-member-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--mc-blue);
}

body:not(.moe-cart) .moe-member-hero h1 {
  margin: 8px 0 8px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--mc-ink);
}

body:not(.moe-cart) .moe-member-hero p {
  max-width: 620px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mc-sub);
}

body:not(.moe-cart) .moe-member-hero-art {
  flex: 0 0 auto;
  width: auto;
  height: 190px;
  margin: -18px -6px -26px 0;
  filter: drop-shadow(0 18px 36px rgba(24, 54, 100, .16));
}

/* ---------- 悬浮动漫助手 ---------- */
.moe-assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
  width: 104px;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.moe-assistant.dragging {
  cursor: grabbing;
}

.moe-assistant-avatar {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: auto;
  -webkit-user-drag: none;
  filter: drop-shadow(0 18px 28px rgba(24, 54, 100, .22));
  animation: moe-assistant-float 6s ease-in-out infinite;
}

.moe-assistant.dragging .moe-assistant-avatar {
  animation: none;
}

.moe-assistant-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 4px);
  width: max-content;
  max-width: min(240px, 62vw);
  padding: 12px 30px 12px 14px;
  background: #fff;
  border: 1px solid var(--mc-line);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(24, 54, 100, .16);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mc-sub);
  opacity: 0;
  transform: translate(-58%, 8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.moe-assistant-bubble.show {
  opacity: 1;
  transform: translate(-58%, 0);
  pointer-events: auto;
}

.moe-assistant-bubble::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid var(--mc-line);
  border-bottom: 1px solid var(--mc-line);
  transform: rotate(45deg);
}

.moe-assistant.bubble-below .moe-assistant-bubble {
  top: calc(100% - 4px);
  bottom: auto;
  transform: translate(-58%, -8px);
}

.moe-assistant.bubble-below .moe-assistant-bubble.show {
  transform: translate(-58%, 0);
}

.moe-assistant.bubble-below .moe-assistant-bubble::after {
  top: -6px;
  bottom: auto;
  border: 0;
  border-left: 1px solid var(--mc-line);
  border-top: 1px solid var(--mc-line);
}

/* 贴近屏幕左右边缘时，气泡改为左/右对齐，避免被裁掉 */
.moe-assistant.bubble-right .moe-assistant-bubble {
  left: auto;
  right: 0;
  transform: translate(0, 8px);
}

.moe-assistant.bubble-right .moe-assistant-bubble.show {
  transform: translate(0, 0);
}

.moe-assistant.bubble-right.bubble-below .moe-assistant-bubble {
  transform: translate(0, -8px);
}

.moe-assistant.bubble-right.bubble-below .moe-assistant-bubble.show {
  transform: translate(0, 0);
}

.moe-assistant.bubble-right .moe-assistant-bubble::after {
  right: 34px;
  left: auto;
}

.moe-assistant.bubble-left .moe-assistant-bubble {
  left: 0;
  transform: translate(0, 8px);
}

.moe-assistant.bubble-left .moe-assistant-bubble.show {
  transform: translate(0, 0);
}

.moe-assistant.bubble-left.bubble-below .moe-assistant-bubble {
  transform: translate(0, -8px);
}

.moe-assistant.bubble-left.bubble-below .moe-assistant-bubble.show {
  transform: translate(0, 0);
}

.moe-assistant.bubble-left .moe-assistant-bubble::after {
  left: 18px;
  right: auto;
}

.moe-assistant-title {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mc-ink);
}

.moe-assistant-text {
  display: block;
}

.moe-assistant-close {
  position: absolute;
  top: 5px;
  right: 7px;
  padding: 2px;
  font-size: 14px;
  line-height: 1;
  color: var(--mc-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

@keyframes moe-assistant-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- 页脚 ---------- */
body:not(.moe-cart) .footer {
  height: auto;
  padding: 22px 24px;
  color: var(--mc-muted);
  background: transparent;
  border-top: 1px solid var(--mc-line);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  body:not(.moe-cart) #page-topbar .navbar-header {
    padding: 0 16px;
  }

  body:not(.moe-cart) .page-content {
    padding-top: 88px;
  }

  body:not(.moe-cart) .page-content > .container-fluid {
    margin: 0 12px;
  }

  body:not(.moe-cart) .card-body {
    padding: 20px;
  }

  body:not(.moe-cart) .moe-member-hero {
    padding: 22px;
  }

  body:not(.moe-cart) .moe-member-hero-copy {
    max-width: 100%;
  }

  body:not(.moe-cart) .moe-member-hero-art {
    display: none;
  }
}

@media (max-width: 575px) {
  body:not(.moe-cart) #page-topbar,
  body:not(.moe-cart) #page-topbar .navbar-header {
    height: 64px;
  }

  body:not(.moe-cart) .vertical-menu {
    top: 64px;
  }

  body:not(.moe-cart) .page-content {
    padding-top: 80px;
  }

  body:not(.moe-cart) .page-title-box h4 {
    font-size: 18px;
  }

  body:not(.moe-cart) .moe-member-hero {
    min-height: 0;
    margin-bottom: 18px;
    padding: 20px;
  }

  body:not(.moe-cart) .moe-member-hero h1 {
    font-size: 21px;
  }

  .moe-assistant {
    width: 84px;
  }

  .moe-assistant-bubble {
    max-width: 62vw;
    padding: 10px 26px 10px 12px;
    font-size: 12px;
  }
}
