/* 用户中心侧栏图标兼容（u51 起）
   后台「导航管理」里存的图标类名是 Boxicons（bx / bxs-*），
   而 nquser 主题只加载 Remixicon，导致侧栏按钮图标空白。
   这里把导航实际用到的 Boxicons 类名映射到 Remixicon 字形，
   复用已加载的 remixicon 字体，不再额外引入 74KB 的 boxicons 字体。
   新增导航图标时，按同样格式补一条即可。 */

#nq-sidebar-nav i[class*="bx"] {
  font-family: remixicon !important;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  display: inline-block;
  speak: never;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#nq-sidebar-nav .bx-home-circle:before { content: "\ee1d"; }        /* ri-home-4-line */
#nq-sidebar-nav .bxs-grid-alt:before { content: "\edde"; }          /* ri-grid-fill */
#nq-sidebar-nav .bx-grid-alt:before { content: "\eddf"; }           /* ri-grid-line */
#nq-sidebar-nav .bx-user:before { content: "\f264"; }               /* ri-user-line */
#nq-sidebar-nav .bx-dollar-circle:before { content: "\ef65"; }      /* ri-money-dollar-circle-line */
#nq-sidebar-nav .bx-detail:before { content: "\ecef"; }             /* ri-file-list-3-line */
#nq-sidebar-nav .bxs-paper-plane:before { content: "\f0d9"; }       /* ri-send-plane-fill */
#nq-sidebar-nav .bx-ghost:before { content: "\edb7"; }              /* ri-ghost-smile-line */
#nq-sidebar-nav .bx-purchase-tag-alt:before { content: "\f023"; }   /* ri-price-tag-3-line */
#nq-sidebar-nav .bx-credit-card:before { content: "\ea92"; }        /* ri-bank-card-line */
#nq-sidebar-nav .bx-credit-card-front:before { content: "\ea90"; }  /* ri-bank-card-2-line */
#nq-sidebar-nav .bx-bolt-circle:before { content: "\ed3d"; }        /* ri-flashlight-line */
#nq-sidebar-nav .bx-crown:before { content: "\f28e"; }              /* ri-vip-crown-line */
#nq-sidebar-nav .bx-calendar:before { content: "\eb27"; }           /* ri-calendar-line */
#nq-sidebar-nav .bxs-receipt:before { content: "\eac2"; }           /* ri-bill-line */
#nq-sidebar-nav .bxs-terminal:before { content: "\f1f6"; }          /* ri-terminal-box-line */
#nq-sidebar-nav .bxs-coupon:before { content: "\ebe8"; }            /* ri-coupon-3-line */
#nq-sidebar-nav .bx-chip:before { content: "\ebf0"; }               /* ri-cpu-line */
#nq-sidebar-nav .bx-loader:before { content: "\eec6"; }             /* ri-loader-4-line */

/* ============================================================
   u52：二级 / 三级菜单图标
   后台 57 个二级项里只有「优惠续费中心」填了图标，其余 56 项
   图标字段为空，模板根本不输出 <i>，因此这里按链接地址补默认字形。
   图标统一放在二级 14px / 三级 30px 的图标列，文字仍从 38px(54px) 起，
   不改动原有缩进；选中态的左侧小圆点由下面的图标位规则覆盖。
   若以后在后台给某项补了图标类名，请删掉下面对应的 href 规则，避免重复显示。
   ============================================================ */

#nq-sidebar-nav .nq-nav-sub a::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0;
  font-family: remixicon;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  color: var(--nq-text-4, #98a2b3);
  background: none;
  border-radius: 0;
  pointer-events: none;
}

#nq-sidebar-nav .nq-nav-sub .nq-nav-sub a::before {
  left: 30px;
}

/* 后台已填图标的项（如 优惠续费中心）落到同一图标列
   u53：排除分组行首的箭头 i，避免箭头被挪进图标列 */
#nq-sidebar-nav .nq-nav-sub a > i:first-child:not(.nq-nav-arrow) {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
  color: var(--nq-text-4, #98a2b3);
}

#nq-sidebar-nav .nq-nav-sub .nq-nav-sub a > i:first-child {
  left: 30px;
}

#nq-sidebar-nav .nq-nav-sub a:hover::before,
#nq-sidebar-nav .nq-nav-sub a:hover > i:first-child {
  color: var(--nq-text-2, #475467);
}

#nq-sidebar-nav .nq-nav-sub a.active::before,
#nq-sidebar-nav .nq-nav-sub a.active > i:first-child {
  color: var(--nq-primary, #165dff);
}

/* ---- 链接地址 → 字形（按需增删） ---- */
#nq-sidebar-nav .nq-nav-sub a[href*="groupid="]::before { content: "\f0e0"; }      /* ri-server-line 兜底 */
#nq-sidebar-nav .nq-nav-sub a[href*="groupid=305"]::before { content: "\eb9d"; }   /* ri-cloud-line 云服务器 */
#nq-sidebar-nav .nq-nav-sub a[href*="groupid=306"]::before { content: "\f394"; }   /* ri-hard-drive-3-line 独立服务器 */
#nq-sidebar-nav .nq-nav-sub a[href*="groupid=307"]::before { content: "\ef79"; }   /* ri-more-line 其他 */

#nq-sidebar-nav .nq-nav-sub a[href$="cart"]::before { content: "\f120"; }          /* ri-shopping-cart-line 订购产品 */
#nq-sidebar-nav .nq-nav-sub a[href$="details"]::before { content: "\f264"; }       /* ri-user-line 个人信息 */
#nq-sidebar-nav .nq-nav-sub a[href$="security"]::before { content: "\f100"; }      /* ri-shield-check-line 安全中心 */
#nq-sidebar-nav .nq-nav-sub a[href$="verified"]::before { content: "\f10c"; }      /* ri-shield-user-line 实名认证 */
#nq-sidebar-nav .nq-nav-sub a[href$="message"]::before { content: "\ef46"; }       /* ri-message-3-line 消息中心 */
#nq-sidebar-nav .nq-nav-sub a[href$="systemlog"]::before { content: "\ecef"; }     /* ri-file-list-3-line 系统日志 */
#nq-sidebar-nav .nq-nav-sub a[href$="apimanage"]::before { content: "\ebad"; }     /* ri-code-s-slash-line API管理 */
#nq-sidebar-nav .nq-nav-sub a[href$="billing"]::before { content: "\eac2"; }       /* ri-bill-line 账单列表 */
#nq-sidebar-nav .nq-nav-sub a[href$="addfunds"]::before { content: "\f2ac"; }      /* ri-wallet-3-line 账户充值 */
#nq-sidebar-nav .nq-nav-sub a[href$="credit"]::before { content: "\ea92"; }        /* ri-bank-card-line 信用管理 */
#nq-sidebar-nav .nq-nav-sub a[href$="contract"]::before { content: "\ed0f"; }      /* ri-file-text-line 合同管理 */
#nq-sidebar-nav .nq-nav-sub a[href$="transaction"]::before { content: "\eca9"; }   /* ri-exchange-dollar-line 交易记录 */
#nq-sidebar-nav .nq-nav-sub a[href$="supporttickets"]::before { content: "\ec0c"; }/* ri-customer-service-2-line 工单列表 */
#nq-sidebar-nav .nq-nav-sub a[href$="submitticket"]::before { content: "\f043"; }  /* ri-question-answer-line 提交工单 */
#nq-sidebar-nav .nq-nav-sub a[href$="knowledgebase"]::before { content: "\eadb"; } /* ri-book-open-line 帮助中心 */
#nq-sidebar-nav .nq-nav-sub a[href$="news"]::before { content: "\ef8f"; }          /* ri-newspaper-line 新闻中心 */
#nq-sidebar-nav .nq-nav-sub a[href$="downloads"]::before { content: "\ec5a"; }     /* ri-download-line 资源下载 */
#nq-sidebar-nav .nq-nav-sub a[href$="invoicelist"]::before { content: "\ecf1"; }   /* ri-file-list-line 发票列表 */
#nq-sidebar-nav .nq-nav-sub a[href$="invoicecompany"]::before { content: "\eb0f"; }/* ri-building-line 发票抬头 */
#nq-sidebar-nav .nq-nav-sub a[href$="invoiceaddress"]::before { content: "\ef14"; }/* ri-map-pin-line 收货地址 */
#nq-sidebar-nav .nq-nav-sub a[href$="help"]::before { content: "\f045"; }          /* ri-question-line 帮助中心 */
#nq-sidebar-nav .nq-nav-sub a[href$="management"]::before { content: "\ec0e"; }    /* ri-customer-service-line 管家服务 */
#nq-sidebar-nav .nq-nav-sub a[href$="contact"]::before { content: "\ebd2"; }       /* ri-contacts-line 联系我们 */
#nq-sidebar-nav .nq-nav-sub a[href$="cloud"]::before { content: "\eb9d"; }         /* ri-cloud-line 云服务器 */
#nq-sidebar-nav .nq-nav-sub a[href$="server"]::before { content: "\f394"; }        /* ri-hard-drive-3-line 独立服务器 */
#nq-sidebar-nav .nq-nav-sub a[href$="ssl"]::before { content: "\f107"; }           /* ri-shield-keyhole-line SSL证书 */
#nq-sidebar-nav .nq-nav-sub a[href$="about"]::before { content: "\ee59"; }         /* ri-information-line 关于我们 */
#nq-sidebar-nav .nq-nav-sub a[href$="tos"]::before { content: "\ecfb"; }           /* ri-file-paper-line 服务条款 */
#nq-sidebar-nav .nq-nav-sub a[href$="privacy"]::before { content: "\eece"; }       /* ri-lock-line 隐私政策 */

#nq-sidebar-nav .nq-nav-sub a[href*="_plugin=28"]::before { content: "\ed3f"; }    /* ri-flask-line 插件样式Demo */
#nq-sidebar-nav .nq-nav-sub a[href*="_plugin=34"]::before { content: "\f066"; }    /* ri-refund-2-line 自助退款 */
#nq-sidebar-nav .nq-nav-sub a[href*="_plugin=42"]::before { content: "\f1c9"; }    /* ri-swap-box-line 自助更换IP */
#nq-sidebar-nav .nq-nav-sub a[href*="_plugin=44"]::before { content: "\eac2"; }    /* ri-bill-line 电子发票 */
#nq-sidebar-nav .nq-nav-sub a[href*="_plugin=48"]::before { content: "\ea62"; }    /* ri-arrow-left-right-line 产品转移 */
#nq-sidebar-nav .nq-nav-sub a[href*="_plugin=49"]::before { content: "\ea62"; }    /* ri-arrow-left-right-line 产品转移 */
#nq-sidebar-nav .nq-nav-sub a[href*="_plugin=53"]::before { content: "\f1f6"; }    /* ri-terminal-box-line SSH 管理 */
#nq-sidebar-nav .nq-nav-sub a[href*="_plugin=57"]::before { content: "\ebe8"; }    /* ri-coupon-3-line 优惠券中心 */

/* ============================================================
   u53：图标细节统一
   只覆盖尺寸盒、光学对齐、颜色与过渡，不改行高、缩进与结构，
   避免侧栏文字位置发生位移。
   ============================================================ */

/* ---- 1. 侧栏一级图标：16px 方盒居中，颜色随状态过渡 ---- */
#nq-sidebar-nav > .nq-nav-item > .nq-nav-link > i:first-child:not(.nq-nav-arrow) {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  text-align: center;
  color: var(--nq-text-3, #667085);
  opacity: .9;
  transition: color .18s ease, opacity .18s ease;
}

#nq-sidebar-nav > .nq-nav-item > .nq-nav-link:hover > i:first-child:not(.nq-nav-arrow) {
  color: var(--nq-text-1, #101828);
  opacity: 1;
}

#nq-sidebar-nav > .nq-nav-item > .nq-nav-link.active > i:first-child:not(.nq-nav-arrow) {
  color: var(--nq-primary, #165dff);
  opacity: 1;
}

/* 分组展开时一级图标与箭头一起点亮，明确当前所在分组 */
#nq-sidebar-nav > .nq-nav-item.open > .nq-nav-link > i:first-child:not(.nq-nav-arrow) {
  color: var(--nq-primary, #165dff);
  opacity: 1;
}

/* ---- 2. 展开箭头：统一 16px 盒宽，旋转带缓动 ---- */
#nq-sidebar-nav .nq-nav-arrow {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-left: auto;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
  color: var(--nq-text-4, #98a2b3);
  opacity: .75;
  transition: transform .22s cubic-bezier(.4, 0, .2, 1), color .18s ease, opacity .18s ease;
}

#nq-sidebar-nav .nq-nav-link:hover .nq-nav-arrow {
  color: var(--nq-text-2, #475467);
  opacity: 1;
}

#nq-sidebar-nav > .nq-nav-item.open > .nq-nav-link .nq-nav-arrow {
  color: var(--nq-primary, #165dff);
  opacity: 1;
}

/* ---- 3. 二级/三级图标：弱化色、悬停加深、选中主色 ---- */
#nq-sidebar-nav .nq-nav-sub a::before {
  color: var(--nq-text-4, #98a2b3);
  opacity: .85;
  transition: color .16s ease, opacity .16s ease;
}

#nq-sidebar-nav .nq-nav-sub a:hover::before {
  color: var(--nq-text-2, #475467);
  opacity: 1;
}

#nq-sidebar-nav .nq-nav-sub a.active::before {
  color: var(--nq-primary, #165dff);
  opacity: 1;
}

#nq-sidebar-nav .nq-nav-sub a > i:first-child:not(.nq-nav-arrow) {
  opacity: .85;
  transition: color .16s ease, opacity .16s ease;
}

#nq-sidebar-nav .nq-nav-sub a:hover > i:first-child:not(.nq-nav-arrow) {
  opacity: 1;
}

#nq-sidebar-nav .nq-nav-sub a.active > i:first-child:not(.nq-nav-arrow) {
  opacity: 1;
}

/* ---- 4. 顶栏图标按钮：字形光学居中 + 悬停微上浮 ---- */
#page-topbar .nq-header-icon-btn > i,
#page-topbar .nq-header-lang-btn > i {
  display: block;
  line-height: 1;
  transition: transform .18s ease;
}

#page-topbar .nq-header-icon-btn:hover > i {
  transform: translateY(-1px);
}

/* ---- 5. 未读徽标：贴角、外环留白，不压住铃铛字形 ---- */
#page-topbar .nq-header-icon-btn .badge {
  top: 3px;
  right: 3px;
  transform: none;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  font-size: 9px;
  line-height: 15px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px var(--nq-bg-1, #fff);
}

/* ---- 6. 头像：悬停加深描边 ---- */
#page-topbar .nq-header-avatar {
  transition: box-shadow .18s ease;
}

#page-topbar .nq-header-user-btn:hover .nq-header-avatar {
  box-shadow: 0 0 0 3px rgba(22, 93, 255, .18);
}

/* ---- 7. 顶栏搜索图标：聚焦时转主色 ---- */
#page-topbar .nq-header-search-icon {
  transition: color .16s ease;
}

#page-topbar .nq-header-search:focus-within .nq-header-search-icon {
  color: var(--nq-primary, #165dff);
}

/* ---- 8. 下拉菜单图标列对齐 ---- */
#page-topbar .nq-user-menu-item > i {
  flex: 0 0 16px;
  width: 16px;
  line-height: 1;
  text-align: center;
}

#page-topbar .nq-lang-menu-item .fi {
  flex: 0 0 auto;
  line-height: 1;
}

/* ---- 9. 尊重系统「减少动态效果」偏好 ---- */
@media (prefers-reduced-motion: reduce) {
  #nq-sidebar-nav > .nq-nav-item > .nq-nav-link > i:first-child:not(.nq-nav-arrow),
  #nq-sidebar-nav .nq-nav-arrow,
  #nq-sidebar-nav .nq-nav-sub a::before,
  #page-topbar .nq-header-icon-btn > i,
  #page-topbar .nq-header-avatar {
    transition: none;
  }
}

/* ============================================================
   u54：补齐仍然空白的图标
   查库确认（shd_nav.menuid=1 共 81 行）仍有两处没有图标：
   1. 一级 7 项 fa_icon 为空 —— 首页(id308, url=index)、关于我们(id314, url=about)，
      以及 产品服务(309)/服务支持(310)/主要产品(316)/服务支持(320)/其他(324)
      五个无链接分组标题（url 为空，模板输出 href=""）。模板只按 fa_icon 输出 <i>，
      这些项根本没有图标元素，所以这里按 href 给一级链接补 ::before。
   2. 二级「发票管理」(id20) 是分组行，href="javascript:void(0);"，没有可用地址，
      按 href 前缀补一个分组图标。
   已有 <i> 的一级项不会被 ::before 命中的：未设置 content 的伪元素不生成。
   ============================================================ */

/* 一级补位图标：尺寸/配色与已有 <i> 一致，保持同一图标列 */
#nq-sidebar-nav > .nq-nav-item > .nq-nav-link::before {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  font-family: remixicon;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  color: var(--nq-text-3, #667085);
  opacity: .9;
  transition: color .18s ease, opacity .18s ease;
}

#nq-sidebar-nav > .nq-nav-item > .nq-nav-link[href="index"]::before { content: "\ee1d"; }  /* ri-home-4-line 首页 */
#nq-sidebar-nav > .nq-nav-item > .nq-nav-link[href="about"]::before { content: "\ee59"; }   /* ri-information-line 关于我们 */
#nq-sidebar-nav > .nq-nav-item > .nq-nav-link:hover::before {
  color: var(--nq-text-1, #101828);
  opacity: 1;
}

#nq-sidebar-nav > .nq-nav-item > .nq-nav-link.active::before,
#nq-sidebar-nav > .nq-nav-item.open > .nq-nav-link::before {
  color: var(--nq-primary, #165dff);
  opacity: 1;
}

/* 二级分组行（发票管理等）：没有地址的分组给分组图标 */
#nq-sidebar-nav .nq-nav-sub a[href^="javascript"]::before {
  content: "\ed54";                                   /* ri-folder-3-line */
}

/* 兜底：仍未被映射、自身又没有 <i> 的二级/三级叶子，显示中性圆点，不再留空图标位 */
#nq-sidebar-nav .nq-nav-sub a:not(:has(> i))::before {
  content: "\eb7d";                                   /* ri-checkbox-blank-circle-line */
  font-size: 9px;
}

/* 一级分组项：menu.tpl 第 8 行对有子项的一级菜单输出 href="javascript:void(0);"，
   这些 fa_icon 为空的分组既不是 href="" 也不是 href="about"，需要单独映射。
   u55：按要求去掉点阵类字形（\ea42 通用栏目、\ef77 更多点），
   只保留语义明确的分组图标；没有 content 的一级项不生成伪元素，保持原有 <i> 或空白。 */
#nq-sidebar-nav > .nq-nav-item > .nq-nav-link[href^="javascript"]:has(+ .nq-nav-sub a[href="help"])::before {
  content: "\ec0c";                                   /* ri-customer-service-2-line 服务支持 */
}

#nq-sidebar-nav > .nq-nav-item > .nq-nav-link[href^="javascript"]:has(+ .nq-nav-sub a[href="cloud"])::before {
  content: "\eb9d";                                   /* ri-cloud-line 主要产品 */
}

#nq-sidebar-nav > .nq-nav-item > .nq-nav-link[href^="javascript"]:has(+ .nq-nav-sub a[href="contact"])::before {
  content: "\ee59";                                   /* ri-information-line 关于我们 */
}

/* ============================================================
   u56：四个外链一级按钮的自定义图标
   后台 shd_nav 332/346/351/353 填的是 Boxicons 类名
   （bx-wrench / bx-pyramid / bx-cog / bx-hive），u51 映射表里没有
   对应字形，侧栏这几项一直占着空图标位。这里不再借用字体字形，
   而是按按钮含义自绘 4 个 24×24 线性 SVG（终端窗口 / 对话气泡 /
   卡面+云 / 宝石切面），以内联 data URI 作 mask 遮罩、
   background-color: currentColor 上色，因此自动继承 u53 已有的
   常态 / 悬停 / 展开 / 选中配色与 16px 图标盒，不新增布局。
   注意：选择器精确匹配后台当前填写的完整链接地址，
   后台改了这四条的地址后，需同步改下面的 href。
   ============================================================ */

/* 四个图标的公共遮罩参数：居中等比缩放，颜色取元素自身 color */
#nq-sidebar-nav > .nq-nav-item > .nq-nav-link:is([href="https://www.lmyun.com/downloads"], [href="https://www.lmyun.com/announcementcontent/35.html"], [href="https://www.4np.cn/"], [href="https://q.uurn.cn/"]) > i:first-child {
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* 远程 Linux 系统工具：终端窗口 + 提示符箭头 + 命令光标 */
#nq-sidebar-nav > .nq-nav-item > .nq-nav-link[href="https://www.lmyun.com/downloads"] > i:first-child {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='3'/%3E%3Cpath d='M7.2 9.6l2.5 2.6-2.5 2.6'/%3E%3Cpath d='M12.8 14.8h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='3'/%3E%3Cpath d='M7.2 9.6l2.5 2.6-2.5 2.6'/%3E%3Cpath d='M12.8 14.8h4'/%3E%3C/svg%3E");
}

/* 官方公众号：对话气泡 + 三个圆点 */
#nq-sidebar-nav > .nq-nav-item > .nq-nav-link[href="https://www.lmyun.com/announcementcontent/35.html"] > i:first-child {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5c0 3.9-3.6 7-8 7-.9 0-1.8-.15-2.6-.4L5 20l1-3.1C4.7 15.7 4 13.7 4 11.5c0-3.9 3.6-7 8-7s8 3.1 8 7z'/%3E%3Ccircle cx='8.8' cy='11.5' r='.9' fill='%23000' stroke='none'/%3E%3Ccircle cx='12' cy='11.5' r='.9' fill='%23000' stroke='none'/%3E%3Ccircle cx='15.2' cy='11.5' r='.9' fill='%23000' stroke='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5c0 3.9-3.6 7-8 7-.9 0-1.8-.15-2.6-.4L5 20l1-3.1C4.7 15.7 4 13.7 4 11.5c0-3.9 3.6-7 8-7s8 3.1 8 7z'/%3E%3Ccircle cx='8.8' cy='11.5' r='.9' fill='%23000' stroke='none'/%3E%3Ccircle cx='12' cy='11.5' r='.9' fill='%23000' stroke='none'/%3E%3Ccircle cx='15.2' cy='11.5' r='.9' fill='%23000' stroke='none'/%3E%3C/svg%3E");
}

/* 梦言云卡：卡面 + 磁道线 + 号码条 + 云朵 */
#nq-sidebar-nav > .nq-nav-item > .nq-nav-link[href="https://www.4np.cn/"] > i:first-child {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6.5' width='19' height='12.5' rx='2.5'/%3E%3Cpath d='M2.5 10.4h19'/%3E%3Cpath d='M5.8 15.9h3'/%3E%3Cpath d='M12.4 18.4a2.2 2.2 0 0 1 2.7-3.4 2.6 2.6 0 0 1 5.1.9 1.6 1.6 0 0 1-.6 2.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6.5' width='19' height='12.5' rx='2.5'/%3E%3Cpath d='M2.5 10.4h19'/%3E%3Cpath d='M5.8 15.9h3'/%3E%3Cpath d='M12.4 18.4a2.2 2.2 0 0 1 2.7-3.4 2.6 2.6 0 0 1 5.1.9 1.6 1.6 0 0 1-.6 2.5z'/%3E%3C/svg%3E");
}

/* 幻境权益：宝石切面 + 腰线 + 两个切面棱 */
#nq-sidebar-nav > .nq-nav-item > .nq-nav-link[href="https://q.uurn.cn/"] > i:first-child {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.6 3.8h10.8L21 9l-9 11.2L3 9z'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9.2 9L12 20.2 14.8 9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.6 3.8h10.8L21 9l-9 11.2L3 9z'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9.2 9L12 20.2 14.8 9'/%3E%3C/svg%3E");
}

/* ============================================================
   u99：二级菜单「账户充值 / 交易记录」图标高清化
   u52 给这两项用的是 remixicon 14px 字形（wallet-3-line /
   exchange-dollar-line），字形内部线条密集，缩到 14px 后
   单笔只有零点几像素，抗锯齿后发虚。
   这里改成 16px 图标盒内的 SVG 遮罩（同 u55/u56 一级图标做法）：
   矢量在任意 DPI 下按设备像素栅格化，笔画锐利；
   background 取 currentColor，自动沿用常态/悬停/选中配色，
   图标盒、左侧 14px 位置与 38px 文字缩进都不变。
   ============================================================ */

#nq-sidebar-nav .nq-nav-sub a[href$="addfunds"]::before,
#nq-sidebar-nav .nq-nav-sub a[href$="transaction"]::before {
  content: "";
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* 账户充值：圆币 + 加号 */
#nq-sidebar-nav .nq-nav-sub a[href$="addfunds"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.6'/%3E%3Cpath d='M7.8 12h8.4M12 7.8v8.4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.6'/%3E%3Cpath d='M7.8 12h8.4M12 7.8v8.4'/%3E%3C/svg%3E");
}

/* 交易记录：上箭头指左、下箭头指右，两端各带两条箭臂 */
#nq-sidebar-nav .nq-nav-sub a[href$="transaction"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 6.4H3.8M3.8 6.4l4.3-4.3M3.8 6.4l4.3 4.3'/%3E%3Cpath d='M3.5 17.6h16.7M20.2 17.6l-4.3-4.3M20.2 17.6l-4.3 4.3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 6.4H3.8M3.8 6.4l4.3-4.3M3.8 6.4l4.3 4.3'/%3E%3Cpath d='M3.5 17.6h16.7M20.2 17.6l-4.3-4.3M20.2 17.6l-4.3 4.3'/%3E%3C/svg%3E");
}
