/* 七号星球 Xboard 用户端
   参考玫瑰云 Liquid Glass：浅色底、玻璃卡片、大圆角、炭黑按钮
   适配 v20261102-d826a3b；文件末尾 .qy-* 样式供 xb.js 使用
*/

html {
  /* 相对浅青灰背景的同色系分层：菜单略提亮、卡片更干净 */
  --qy-menu-bg: #f2f8fa;
  --qy-menu-border: #c5d9df;
  --qy-menu-shadow: rgba(36, 72, 86, 0.1);
  --qy-card-bg: rgba(255, 255, 255, 0.52);
  --qy-card-border: rgba(197, 217, 223, 0.72);
  --qy-card-shadow: rgba(36, 72, 86, 0.06);
  --qy-ink: #334155;
  --qy-muted: #64748b;
  --qy-accent: #3d7a82;
  --qy-orbit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 5 27 20'%3E%3Cpath d='M19.6 8.4C26.4 7.2 30.2 12.4 27.4 18' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='12.2' cy='15.6' r='6.4' fill='%23000'/%3E%3C/svg%3E");
  --qy-sky: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 560'%3E%3Cdefs%3E%3CradialGradient id='p' cx='36%25' cy='32%25' r='68%25'%3E%3Cstop offset='0' stop-color='%23f8fafc' stop-opacity='.9'/%3E%3Cstop offset='.5' stop-color='%238fd4d8' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23c7d2e0' stop-opacity='.12'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg transform='translate(280 246) rotate(-22)' fill='none' stroke='%2394a3b8' stroke-opacity='.4' stroke-width='1.2'%3E%3Cellipse cx='0' cy='0' rx='198' ry='108'/%3E%3C/g%3E%3Cpath d='M94 282C176 148 390 124 467 206' fill='none' stroke='%238fd4d8' stroke-opacity='.55' stroke-width='1.1' stroke-dasharray='1.2 7' stroke-linecap='round'/%3E%3Ccircle cx='280' cy='246' r='30' fill='url(%23p)'/%3E%3Ccircle cx='94' cy='282' r='3.5' fill='%238fd4d8' fill-opacity='.85'/%3E%3Ccircle cx='467' cy='206' r='3' fill='%238fd4d8' fill-opacity='.7'/%3E%3Ccircle cx='288' cy='358' r='2.4' fill='%2394a3b8' fill-opacity='.45'/%3E%3C/svg%3E");
}

html.dark {
  --qy-sky: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 560'%3E%3Cdefs%3E%3CradialGradient id='p' cx='36%25' cy='32%25' r='68%25'%3E%3Cstop offset='0' stop-color='%23f8fafc' stop-opacity='.42'/%3E%3Cstop offset='.5' stop-color='%23475569' stop-opacity='.28'/%3E%3Cstop offset='1' stop-color='%230f172a' stop-opacity='.02'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg transform='translate(280 246) rotate(-22)' fill='none' stroke='%23cbd5e1' stroke-opacity='.28' stroke-width='1.2'%3E%3Cellipse cx='0' cy='0' rx='198' ry='108'/%3E%3C/g%3E%3Cpath d='M94 282C176 148 390 124 467 206' fill='none' stroke='%238fd4d8' stroke-opacity='.32' stroke-width='1.1' stroke-dasharray='1.2 7' stroke-linecap='round'/%3E%3Ccircle cx='280' cy='246' r='30' fill='url(%23p)'/%3E%3Ccircle cx='94' cy='282' r='3.5' fill='%238fd4d8' fill-opacity='.7'/%3E%3Ccircle cx='467' cy='206' r='3' fill='%238fd4d8' fill-opacity='.5'/%3E%3Ccircle cx='288' cy='358' r='2.4' fill='%23cbd5e1' fill-opacity='.35'/%3E%3C/svg%3E");
}

html,
body {
  background-color: #f4f7fb !important;
  background-image: linear-gradient(165deg, #f8fafc 0%, #eef2f6 48%, #e7edf4 100%) !important;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif !important;
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(circle at 14% 12%, rgba(143, 212, 216, 0.42), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(251, 191, 138, 0.28), transparent 28%),
    var(--qy-sky),
    linear-gradient(165deg, #f3fbff 0%, #e7f3f4 42%, #eef2f8 100%) !important;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat !important;
  background-position: 0 0, 0 0, right -210px top -150px, 0 0 !important;
  background-size: auto, auto, 520px 520px, auto !important;
  background-attachment: fixed, fixed, fixed, fixed !important;
}

html.dark,
html.dark body {
  background-color: #0f1115 !important;
  background-image: linear-gradient(165deg, #16181d 0%, #101216 100%) !important;
  color: #e2e8f0;
}

html.dark body {
  background-image:
    radial-gradient(circle at 14% 12%, rgba(49, 108, 114, 0.48), transparent 36%),
    radial-gradient(circle at 90% 6%, rgba(180, 130, 90, 0.22), transparent 28%),
    var(--qy-sky),
    linear-gradient(165deg, #1a2228 0%, #12161b 46%, #101216 100%) !important;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat !important;
  background-position: 0 0, 0 0, right -210px top -150px, 0 0 !important;
  background-size: auto, auto, 520px 520px, auto !important;
  background-attachment: fixed, fixed, fixed, fixed !important;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
}

body::before {
  width: 460px;
  height: 460px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle, rgba(143, 212, 216, 0.38), transparent 68%);
}

html.dark body::before {
  background: radial-gradient(circle, rgba(49, 108, 114, 0.42), transparent 70%);
}

/* 右下角一颗很小的星球，和右上角轨道成对，不挡住内容 */
body::after {
  width: 64px;
  height: 64px;
  left: auto;
  right: 6vw;
  bottom: 7vh;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.98) 0 16%, rgba(186, 230, 232, 0.95) 17% 46%, transparent 48%),
    radial-gradient(ellipse 46px 14px at 50% 56%, transparent 54%, rgba(49, 108, 114, 0.55) 60%, transparent 68%);
  box-shadow: 0 10px 24px rgba(49, 108, 114, 0.12);
  animation: qy-float 8.5s ease-in-out infinite alternate;
}

html.dark body::after {
  background:
    radial-gradient(circle at 34% 32%, rgba(248, 250, 252, 0.72) 0 14%, rgba(94, 168, 172, 0.62) 15% 46%, transparent 48%),
    radial-gradient(ellipse 46px 14px at 50% 56%, transparent 54%, rgba(143, 212, 216, 0.7) 60%, transparent 68%);
  box-shadow: none;
}

html::before {
  content: "";
  position: fixed;
  z-index: 0;
  left: 18vw;
  top: 22vh;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(49, 108, 114, 0.72);
  box-shadow:
    28vw 8vh 0 0 rgba(143, 212, 216, 0.85),
    -8vw 38vh 0 0.5px rgba(251, 191, 138, 0.7),
    46vw 46vh 0 0 rgba(49, 108, 114, 0.55),
    8vw -12vh 0 0 rgba(125, 211, 192, 0.66);
  animation: qy-stars 7.5s ease-in-out infinite;
}

html.dark::before {
  background: rgba(143, 212, 216, 0.45);
  box-shadow:
    28vw 8vh 0 0 rgba(226, 232, 240, 0.35),
    -8vw 38vh 0 0.5px rgba(143, 212, 216, 0.28),
    46vw 46vh 0 0 rgba(148, 163, 184, 0.22),
    8vw -12vh 0 0 rgba(226, 232, 240, 0.24);
}

@keyframes qy-float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -12px, 0); }
}

@keyframes qy-stars {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

@keyframes qy-orbit-rock {
  from { transform: rotate(-10deg); }
  to { transform: rotate(12deg); }
}

#app {
  position: relative;
  z-index: 1;
}

#app,
.n-config-provider,
.n-button,
.n-input,
.n-card,
.n-menu,
.n-base-selection,
.n-data-table,
.n-drawer,
.n-modal,
.markdown-body {
  font-family: inherit !important;
}

/* 覆盖原主题字色。正文、标题、辅助说明不再使用原来的藏青和纯黑 */
html:not(.dark) .n-card:not(.text-white):not([class*="bg-gray-800"]),
html:not(.dark) .n-menu,
html:not(.dark) .n-input,
html:not(.dark) .n-base-selection,
html:not(.dark) .n-data-table,
html:not(.dark) .n-list,
html:not(.dark) .n-thing,
html:not(.dark) .n-descriptions,
html:not(.dark) .n-tabs,
html:not(.dark) .n-pagination,
html:not(.dark) .n-form,
html:not(.dark) .n-statistic,
html:not(.dark) .n-drawer,
html:not(.dark) .n-modal,
html:not(.dark) .n-popover,
html:not(.dark) .n-checkbox,
html:not(.dark) .n-radio {
  --n-text-color: #1e293b !important;
  --n-title-text-color: #0f172a !important;
  --n-label-text-color: #64748b !important;
  --n-placeholder-color: #94a3b8 !important;
  --n-td-text-color: #334155 !important;
  --n-th-text-color: #475569 !important;
  --n-item-text-color: #334155 !important;
  --n-item-text-color-hover: #0f172a !important;
  --n-item-text-color-active: #0f172a !important;
  --n-item-text-color-active-hover: #0f172a !important;
  --n-item-text-color-child-active: #0f172a !important;
  --n-item-icon-color: #64748b !important;
  --n-item-icon-color-hover: #1e293b !important;
  --n-item-icon-color-active: #1e293b !important;
  --n-item-icon-color-active-hover: #1e293b !important;
  color: #1e293b !important;
}

html.dark .n-card,
html.dark .n-menu,
html.dark .n-input,
html.dark .n-base-selection,
html.dark .n-data-table,
html.dark .n-list,
html.dark .n-thing,
html.dark .n-descriptions,
html.dark .n-tabs,
html.dark .n-pagination,
html.dark .n-form,
html.dark .n-statistic,
html.dark .n-drawer,
html.dark .n-modal,
html.dark .n-popover,
html.dark .n-checkbox,
html.dark .n-radio {
  --n-text-color: #e2e8f0 !important;
  --n-title-text-color: #f8fafc !important;
  --n-label-text-color: #94a3b8 !important;
  --n-placeholder-color: #64748b !important;
  --n-td-text-color: #e2e8f0 !important;
  --n-th-text-color: #cbd5e1 !important;
  --n-item-text-color: #cbd5e1 !important;
  --n-item-text-color-hover: #f8fafc !important;
  --n-item-text-color-active: #f8fafc !important;
  --n-item-text-color-active-hover: #f8fafc !important;
  --n-item-text-color-child-active: #f8fafc !important;
  --n-item-icon-color: #94a3b8 !important;
  --n-item-icon-color-hover: #f8fafc !important;
  --n-item-icon-color-active: #f8fafc !important;
  color: #e2e8f0 !important;
}

html:not(.dark) .text-gray-900,
html:not(.dark) .text-gray-700,
html:not(.dark) .color-primary,
html:not(.dark) [class*="--primary-color"] {
  color: #1e293b !important;
}

html:not(.dark) .text-gray-600 {
  color: #334155 !important;
}

html:not(.dark) .text-gray-500,
html:not(.dark) .text-muted,
html:not(.dark) [color="#6c757d"],
html:not(.dark) [color="#6a6a6a"] {
  color: #64748b !important;
}

html:not(.dark) .text-gray-400 {
  color: #94a3b8 !important;
}

html:not(.dark) .text-gray-300 {
  color: #94a3b8 !important;
}

.bg-gray-800 .text-gray-300,
.bg-gray-800 .text-gray-400,
.text-white .text-gray-300,
[class*="bg-gray-800"] {
  color: #e2e8f0 !important;
}

.bg-gray-800 .text-gray-300,
.text-white .text-gray-300 {
  color: #cbd5e1 !important;
}

html:not(.dark) .text-3xl,
html:not(.dark) .text-4xl,
html:not(.dark) .text-5xl,
html:not(.dark) .n-card-header__main {
  color: #0f172a !important;
}

html.dark .text-gray-500,
html.dark .text-gray-400,
html.dark .text-muted {
  color: #94a3b8 !important;
}

html.dark .color-primary,
html.dark .text-gray-700,
html.dark .text-gray-900,
html.dark .text-3xl,
html.dark .text-4xl,
html.dark .text-5xl {
  color: #f8fafc !important;
}

html:not(.dark) .text-red-500 {
  color: #dc3545 !important;
}

html:not(.dark) .text-green-500,
html:not(.dark) .text-green-400 {
  color: #16a34a !important;
}

.n-button.n-button--primary-type:not(.n-button--disabled),
.n-button.n-button--primary-type:not(.n-button--disabled) .color-primary {
  color: #fff !important;
}

.side-menu {
  font-size: 14px;
}

/* 仪表盘、文档列表和文档抽屉共用同一内容宽度 */
.max-w-1200,
.cus-scroll-y > *:not(.z-99999) {
  width: 100%;
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.n-drawer:has(.markdown-body) {
  width: min(1080px, 100vw) !important;
}

.markdown-body {
  font-size: 16px !important;
  line-height: 1.8 !important;
}

html:not(.dark) .markdown-body {
  color: #334155 !important;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0;
}

.markdown-body h1 {
  font-size: 26px !important;
}

.markdown-body h2 {
  font-size: 20px !important;
}

.markdown-body h3 {
  font-size: 17px !important;
}

.markdown-body p,
.markdown-body li {
  line-height: 1.8 !important;
}

.markdown-body pre,
.markdown-body code {
  font-family: Consolas, "Sarasa Mono SC", "PingFang SC", monospace !important;
}

.n-layout,
.n-layout-scroll-container {
  background: transparent !important;
}

html:not(.dark) .bg-hex-f5f6fb,
html:not(.dark) [class*="f5f6fb"] {
  background-color: transparent !important;
}

/* 侧栏默认（未登录或回退） */
.n-layout-sider {
  background: var(--qy-menu-bg) !important;
  backdrop-filter: blur(18px);
  border-right: none !important;
  box-shadow: none !important;
}

html.dark .n-layout-sider {
  background: rgba(24, 24, 28, 0.88) !important;
}

/*
 * 登录后桌面端：菜单悬浮叠在整页背景上。
 * 右侧内容区取消分栏占位，背景连成一片「穿到」菜单卡片下方。
 */
html.qy-authed.qy-sider-dock {
  --qy-sider-w: 240px;
  --qy-sider-gap: 16px;
}

html.qy-authed.qy-sider-dock .n-layout-sider {
  position: fixed !important;
  z-index: 80 !important;
  top: var(--qy-sider-gap) !important;
  left: var(--qy-sider-gap) !important;
  right: auto !important;
  bottom: var(--qy-sider-gap) !important;
  width: var(--qy-sider-w) !important;
  min-width: var(--qy-sider-w) !important;
  max-width: var(--qy-sider-w) !important;
  height: auto !important;
  max-height: none !important;
  flex: 0 0 0px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  border: 0 !important;
  border-right: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: none !important;
}

html.qy-authed.qy-sider-dock .n-layout-sider > .n-layout-sider-scroll-container,
html.qy-authed.qy-sider-dock .n-layout-sider > .n-scrollbar {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: var(--qy-menu-bg) !important;
  border: 1px solid var(--qy-menu-border) !important;
  box-shadow:
    0 18px 44px var(--qy-menu-shadow),
    0 2px 8px rgba(36, 72, 86, 0.04) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html.dark.qy-authed.qy-sider-dock .n-layout-sider > .n-layout-sider-scroll-container,
html.dark.qy-authed.qy-sider-dock .n-layout-sider > .n-scrollbar {
  background: rgba(24, 24, 28, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.38),
    0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

html.qy-authed.qy-sider-dock .n-layout-sider .side-menu {
  padding-top: 8px;
  padding-bottom: 12px;
}

html.qy-authed.qy-sider-dock .n-layout.has-sider > .n-layout {
  margin-left: 0 !important;
  padding-left: calc(var(--qy-sider-w) + var(--qy-sider-gap) * 2) !important;
  background: transparent !important;
}

html.qy-authed.qy-sider-dock .n-layout.has-sider > .n-layout > .n-layout-scroll-container,
html.qy-authed.qy-sider-dock .n-layout.has-sider > .n-layout .n-layout,
html.qy-authed.qy-sider-dock .n-layout.has-sider > .n-layout .n-layout-scroll-container {
  background: transparent !important;
}

html.qy-authed .n-layout-sider-border,
html.qy-authed .n-layout-toggle-bar,
html.qy-authed .n-layout-toggle-button,
html.qy-authed [class*="n-layout-toggle"],
html.qy-authed .qy-sider-close,
html.qy-authed .n-layout-sider > .n-layout-toggle-button,
html.qy-authed .n-layout-sider-scroll-container > .n-layout-toggle-button,
html.qy-authed .n-layout-sider .n-base-close {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* 手机端主题左侧抽屉：叉号会打开它并触发 blockScroll，页面会锁死无法下滑 */
html.qy-authed.qy-sider-overlay .n-drawer-container:has(.side-menu),
html.qy-authed.qy-sider-overlay .n-drawer.n-drawer--left-placement {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* 收起时整棵侧栏都不能吃到触摸，避免挡住购买页滚动 */
html.qy-authed.qy-sider-overlay:not(.qy-sider-open) .n-layout-sider,
html.qy-authed.qy-sider-overlay:not(.qy-sider-open) .n-layout-sider * {
  pointer-events: none !important;
}

html.qy-authed.qy-sider-overlay .n-layout.has-sider > .n-layout {
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
}

html.qy-authed.qy-sider-overlay .n-layout-sider,
html.qy-authed.qy-sider-overlay .n-layout-sider.n-layout-sider--collapsed,
html.qy-authed.qy-sider-overlay .n-layout-sider:not(.n-layout-sider--collapsed) {
  position: fixed !important;
  z-index: 4000 !important;
  top: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  flex: 0 0 0px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  pointer-events: none !important;
  transform: none !important;
}

html.qy-authed.qy-sider-overlay .n-layout-sider > .n-layout-sider-scroll-container,
html.qy-authed.qy-sider-overlay .n-layout-sider > .n-scrollbar {
  position: fixed !important;
  z-index: 4010 !important;
  top: 12px !important;
  left: 12px !important;
  bottom: 12px !important;
  box-sizing: border-box !important;
  width: min(248px, 82vw) !important;
  height: auto !important;
  max-height: calc(100dvh - 24px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  overflow-y: auto !important;
  background: var(--qy-menu-bg) !important;
  border: 1px solid var(--qy-menu-border) !important;
  box-shadow: 0 18px 48px rgba(36, 72, 86, 0.22) !important;
  opacity: 0 !important;
  transform: translateX(calc(-100% - 28px)) !important;
  pointer-events: none !important;
  transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.28, 1), opacity 0.22s ease;
}

html.qy-authed.qy-sider-overlay.qy-sider-open .n-layout-sider > .n-layout-sider-scroll-container,
html.qy-authed.qy-sider-overlay.qy-sider-open .n-layout-sider > .n-scrollbar {
  opacity: 1 !important;
  transform: translateX(0) !important;
  pointer-events: auto !important;
}

html.dark.qy-authed.qy-sider-overlay .n-layout-sider > .n-layout-sider-scroll-container,
html.dark.qy-authed.qy-sider-overlay .n-layout-sider > .n-scrollbar {
  background: rgba(24, 24, 28, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45) !important;
}

/* 顶栏：未登录保留轻分隔；登录后与页面背景融为一体 */
article > header {
  background: rgba(242, 248, 250, 0.9) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--qy-menu-border) !important;
}

html.dark article > header {
  background: rgba(24, 24, 28, 0.9) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

html.qy-authed article > header,
html.dark.qy-authed article > header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* 登录后顶栏收成右上角账号入口，腾出上方空间给内容 */
html.qy-authed article {
  position: relative !important;
}

/*
 * 主题 html/body 是 overflow:hidden，滚动只能发生在 .cus-scroll-y。
 * router-view / fade-slide 中间层会跟着内容长高，height:100% 的
 * .cus-scroll-y 也被撑满 → scrollHeight==clientHeight，手机长页滑不动。
 * 做法：section 做定位容器，.cus-scroll-y 绝对铺满，与中间层脱钩。
 */
html.qy-authed .n-layout,
html.qy-authed .n-layout.has-sider,
html.qy-authed .n-config-provider,
html.qy-authed #app {
  min-height: 0 !important;
  max-height: 100% !important;
}

html.qy-authed article {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html.qy-authed article > section {
  position: relative !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
}

html.qy-authed .cus-scroll-y {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  box-sizing: border-box !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

/* 购买页：关闭滚动锚定，避免上方节点重排时把视口拽回去 */
html[data-qy-route="plan"] .cus-scroll-y {
  overflow-anchor: none;
}

/* 购买页：全端口隐藏分页 */
html[data-qy-route="plan"] .qy-plan-pager {
  display: none !important;
}

/* 手机购买页：竖向紧凑列表，只露名称/价格，点进详情 */
.qy-plan-face {
  display: none;
}

@media (max-width: 767px) {
  html.qy-plan-mobile .max-w-1200 > h2.text-3xl.font-normal::after {
    display: none !important;
  }

  html.qy-plan-mobile .card-container.qy-plan-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    grid-template-columns: none !important;
    min-width: 0 !important;
    margin-top: 14px !important;
  }

  html.qy-plan-mobile .card-container.qy-plan-list .card-item {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html.qy-plan-mobile .card-container.qy-plan-list .card-item > .n-card {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: var(--qy-card-bg) !important;
    border: 1px solid var(--qy-card-border) !important;
    box-shadow: 0 10px 28px var(--qy-card-shadow) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  html.qy-plan-mobile .card-container.qy-plan-list .card-item > .n-card:active {
    transform: scale(0.985);
  }

  html.qy-plan-mobile .card-container.qy-plan-list .card-item .n-card-header,
  html.qy-plan-mobile .card-container.qy-plan-list .card-item .n-card__content,
  html.qy-plan-mobile .card-container.qy-plan-list .card-item .n-card__action {
    display: none !important;
  }

  html.qy-plan-mobile .card-container.qy-plan-list .qy-plan-face {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-height: 76px;
    padding: 14px 12px 14px 14px;
  }

  html.qy-plan-mobile .qy-plan-face__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #316c72;
    background:
      linear-gradient(160deg, rgba(143, 212, 216, 0.42), rgba(255, 255, 255, 0.55) 58%),
      rgba(49, 108, 114, 0.08);
    border: 1px solid rgba(197, 217, 223, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }

  html.qy-plan-mobile .qy-plan-face__icon svg {
    width: 22px;
    height: 22px;
  }

  html.dark.qy-plan-mobile .qy-plan-face__icon {
    color: #8fd4d8;
    background:
      linear-gradient(160deg, rgba(49, 108, 114, 0.38), rgba(24, 24, 28, 0.2) 60%),
      rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }

  html.qy-plan-mobile .qy-plan-face__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  html.qy-plan-mobile .qy-plan-face__title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  html.qy-plan-mobile .qy-plan-face__name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0f172a;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: 0.01em;
  }

  html.dark.qy-plan-mobile .qy-plan-face__name {
    color: #f8fafc;
  }

  html.qy-plan-mobile .qy-plan-face__badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(49, 108, 114, 0.12);
    color: #316c72;
    font-size: 11px;
    font-weight: 650;
  }

  html.qy-plan-mobile .qy-plan-face__badge[hidden] {
    display: none !important;
  }

  html.dark.qy-plan-mobile .qy-plan-face__badge {
    background: rgba(95, 179, 185, 0.16);
    color: #a7e6e9;
  }

  html.qy-plan-mobile .qy-plan-face__price {
    color: #334155;
    font-size: 18px;
    font-weight: 720;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  html.dark.qy-plan-mobile .qy-plan-face__price {
    color: #e2e8f0;
  }

  html.qy-plan-mobile .qy-plan-face__more {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding: 6px 4px 6px 8px;
    color: var(--qy-accent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }

  html.qy-plan-mobile .qy-plan-face__more svg {
    width: 16px;
    height: 16px;
  }

  html.dark.qy-plan-mobile .qy-plan-face__more {
    color: #8fd4d8;
  }

  html.qy-plan-mobile .card-container.qy-plan-list .card-item.qy-current-plan > .n-card {
    border-color: #316c72 !important;
    box-shadow: 0 0 0 1px #316c72, 0 10px 24px rgba(49, 108, 114, 0.12) !important;
  }

  html.qy-plan-mobile .card-container.qy-plan-list .card-item.qy-current-plan .qy-plan-face__icon {
    color: #fff;
    background: linear-gradient(160deg, #5fb3b9, #316c72);
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(49, 108, 114, 0.22);
  }

  html.dark.qy-plan-mobile .card-container.qy-plan-list .card-item.qy-current-plan > .n-card {
    border-color: #5fb3b9 !important;
    box-shadow: 0 0 0 1px #5fb3b9, 0 10px 24px rgba(0, 0, 0, 0.35) !important;
  }
}

html.qy-authed article > header.qy-topbar {
  position: absolute !important;
  top: var(--qy-sider-gap, 16px) !important;
  right: 20px !important;
  left: auto !important;
  z-index: 70 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.qy-authed article > header.qy-topbar .qy-header-tools,
html.qy-authed article > header.qy-topbar .qy-header-stashed {
  display: none !important;
}

html.qy-authed article > header.qy-topbar .title-text {
  display: none !important;
}

html.qy-authed.qy-sider-dock article > header.qy-topbar .qy-header-brand {
  display: none !important;
}

html.qy-authed.qy-sider-dock .cus-scroll-y {
  padding: calc(var(--qy-sider-gap, 16px) + 10px) 20px 20px !important;
}

html.qy-authed.qy-sider-overlay article > header.qy-topbar {
  top: 8px !important;
  right: 10px !important;
  left: 10px !important;
  justify-content: space-between !important;
  width: auto !important;
  z-index: 90 !important;
}

html.qy-authed.qy-sider-overlay article > header.qy-topbar .qy-header-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  overflow: hidden;
  border: 1px solid var(--qy-menu-border);
  border-radius: 14px;
  background: var(--qy-menu-bg);
  box-shadow: 0 10px 24px var(--qy-menu-shadow);
  font-size: 0 !important;
  color: transparent !important;
}

html.qy-authed.qy-sider-overlay article > header.qy-topbar .qy-header-brand::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #0f172a;
  box-shadow: 0 -5px 0 #0f172a, 0 5px 0 #0f172a;
}

html.dark.qy-authed.qy-sider-overlay article > header.qy-topbar .qy-header-brand::before {
  background: #f8fafc;
  box-shadow: 0 -5px 0 #f8fafc, 0 5px 0 #f8fafc;
}

html.qy-authed.qy-sider-overlay article > header.qy-topbar .qy-header-brand * {
  display: none !important;
}

html.qy-authed.qy-sider-overlay .cus-scroll-y {
  padding: 58px 12px 16px !important;
}

html.qy-authed.qy-sider-overlay.qy-sider-open .qy-pagehead {
  display: none !important;
}

html.qy-authed.qy-sider-overlay.qy-sider-open article > header.qy-topbar .qy-header-brand {
  visibility: hidden;
  pointer-events: none !important;
}

.qy-account {
  position: relative;
  z-index: 90;
  flex: none;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

html.qy-authed article > header.qy-topbar .qy-account,
html.qy-authed article > header.qy-topbar .qy-account__trigger {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.qy-account__trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--qy-menu-border);
  border-radius: 999px;
  background: var(--qy-menu-bg);
  color: var(--qy-ink);
  box-shadow: 0 8px 22px var(--qy-menu-shadow);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

html.dark .qy-account__trigger {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 28, 0.92);
  color: #f8fafc;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.qy-account__avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #343a40;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

html.dark .qy-account__avatar {
  background: #e8eef2;
  color: #0f172a;
}

.qy-account__name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qy-account__caret {
  color: #94a3b8;
  font-size: 11px;
}

.qy-account__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  box-sizing: border-box;
  width: min(240px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid var(--qy-menu-border);
  border-radius: 16px;
  background: var(--qy-card-bg);
  box-shadow: 0 18px 40px var(--qy-menu-shadow);
  backdrop-filter: blur(16px);
}

html.dark .qy-account__menu {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(24, 24, 28, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.qy-account__menu[hidden] {
  display: none !important;
}

.qy-account__email {
  margin: 0 0 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(49, 108, 114, 0.08);
  color: #316c72;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}

html.dark .qy-account__email {
  background: rgba(143, 212, 216, 0.12);
  color: #8fd4d8;
}

.qy-account__item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.qy-account__item:hover {
  background: rgba(52, 58, 64, 0.06);
}

html.dark .qy-account__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.qy-account__logout {
  color: #b42318;
}

.qy-account__langs {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

html.dark .qy-account__langs {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.qy-account__langs[hidden] {
  display: none !important;
}

.qy-account__lang-item {
  font-size: 12px;
  color: #64748b;
}

html.dark .qy-account__lang-item {
  color: #94a3b8;
}

.title-text {
  display: inline-flex !important;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  margin-right: 8px;
  overflow: hidden;
  letter-spacing: 0.04em;
  color: #1e293b !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 左上角装饰图标和收起侧边栏挤在一起，页面上不再显示 */
.title-text::before,
.title-text img,
.title-text .n-image,
.title-text .n-icon {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  animation: none !important;
}

.side-menu .n-menu-item-content {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.side-menu .n-menu-item-content:active {
  transform: scale(0.98);
}

.side-menu .n-menu-item-content::before {
  transition: background-color 0.22s ease !important;
}

html.dark .title-text {
  color: #f8fafc !important;
}

.side-menu:not(.n-menu--collapsed) .n-menu-item-content {
  margin: 4px 10px;
  border-radius: 12px;
}

.side-menu:not(.n-menu--collapsed) .n-menu-item-content::before {
  left: 10px !important;
  right: 10px !important;
  border: none !important;
  border-radius: 12px !important;
}

.side-menu:not(.n-menu--collapsed) .n-menu-item-content:hover::before,
.side-menu:not(.n-menu--collapsed) .n-menu-item-content.n-menu-item-content--selected::before {
  background-color: rgba(143, 212, 216, 0.28) !important;
  border-left: none !important;
}

html.dark .side-menu:not(.n-menu--collapsed) .n-menu-item-content:hover::before,
html.dark .side-menu:not(.n-menu--collapsed) .n-menu-item-content.n-menu-item-content--selected::before {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.side-menu .n-menu-item-content--selected .n-menu-item-content-header,
.side-menu .n-menu-item-content--selected .n-menu-item-content__icon {
  color: #1e293b !important;
  font-weight: 600;
}

html.dark .side-menu .n-menu-item-content--selected .n-menu-item-content-header,
html.dark .side-menu .n-menu-item-content--selected .n-menu-item-content__icon {
  color: #f8fafc !important;
}

@media (min-width: 768px) {
  .cus-scroll-y {
    padding: 22px !important;
  }

  /* 与悬浮侧栏 top gap + 品牌文字起点对齐 */
  html.qy-authed .cus-scroll-y {
    padding: calc(var(--qy-sider-gap, 16px) + 18px) 20px 20px !important;
  }
}

.n-card {
  --n-border-radius: 18px !important;
  border-radius: 18px !important;
}

.qy-panel,
.qy-order,
.qy-knowledge-doc-card,
.qy-knowledge-cat-card,
.qy-stat,
.qy-compare,
.qy-announce__card {
  border-radius: 16px !important;
}

/* 右侧内容卡片：毛玻璃半透明，避免纯白贴脸（公告彩卡、登录卡、改密弹窗内卡除外） */
html:not(.dark) .n-card:not(.text-white):not(.mx-auto):not(.qy-profile-pass-card) {
  background: var(--qy-card-bg) !important;
  border: 1px solid var(--qy-card-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px var(--qy-card-shadow) !important;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

html.dark .n-card:not(.qy-profile-pass-card) {
  background: rgba(24, 24, 28, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28) !important;
}

.card-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-item:hover {
  transform: translateY(-3px);
}

/* 登录、注册、重置密码 */
.n-card.mx-auto.max-w-md {
  border-radius: 24px !important;
  box-shadow: 0 8px 45px rgba(15, 23, 42, 0.08) !important;
  overflow: hidden;
}

html:not(.dark) .n-card.mx-auto.max-w-md {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.n-card.mx-auto.max-w-md .p-6 {
  padding: 42px 32px 8px !important;
}

.n-card.mx-auto.max-w-md h1 {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 30px !important;
  font-weight: 650 !important;
  letter-spacing: 0.04em;
  line-height: 1.25 !important;
  color: #1e293b !important;
}

.n-card.mx-auto.max-w-md h1::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--qy-orbit) center / contain no-repeat;
  mask: var(--qy-orbit) center / contain no-repeat;
  animation: qy-orbit-rock 8s ease-in-out infinite alternate;
}

html.dark .n-card.mx-auto.max-w-md h1 {
  color: #f8fafc !important;
}

.n-card.mx-auto.max-w-md h5 {
  margin-top: 10px !important;
  color: #64748b !important;
  letter-spacing: 0.02em;
  font-weight: 400 !important;
}

.n-card.mx-auto.max-w-md .mt-5 {
  margin-top: 16px !important;
}

.n-card.mx-auto.max-w-md .n-card__content > div:last-child {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  min-height: 52px;
  background: transparent !important;
  border-top: 1px solid #f1f5f9;
  padding: 10px 22px 12px !important;
  color: #64748b !important;
  line-height: 1 !important;
}

.n-card.mx-auto.max-w-md .n-card__content > div:last-child > div {
  display: flex !important;
  align-items: center !important;
  min-height: 32px;
  line-height: 1;
}

.n-card.mx-auto.max-w-md .n-card__content > div:last-child .n-divider {
  height: 12px !important;
  margin: 0 10px !important;
  align-self: center !important;
}

.n-card.mx-auto.max-w-md .n-card__content > div:last-child .n-button {
  height: 32px !important;
  margin: 0 !important;
  padding: 0 2px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.n-card.mx-auto.max-w-md .n-card__content > div:last-child .n-button .n-button__content,
.n-card.mx-auto.max-w-md .n-card__content > div:last-child a {
  display: inline-flex !important;
  align-items: center !important;
  height: 32px;
  line-height: 32px !important;
}

.n-card.mx-auto.max-w-md .n-checkbox {
  align-items: flex-start;
}

.n-card.mx-auto.max-w-md .n-checkbox .n-checkbox__label {
  line-height: 1.55;
  padding-top: 1px;
}

html.dark .n-card.mx-auto.max-w-md .n-card__content > div:last-child {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.n-card.mx-auto.max-w-md a {
  color: #475569 !important;
  text-decoration: none;
}

html.dark .n-card.mx-auto.max-w-md a {
  color: #cbd5e1 !important;
}

.n-card.mx-auto.max-w-md a:hover {
  color: #1e293b !important;
}

@media (max-width: 520px) {
  .n-card.mx-auto.max-w-md {
    width: calc(100% - 28px) !important;
  }

  .n-card.mx-auto.max-w-md .p-6 {
    padding: 32px 20px 8px !important;
  }
}

/* 输入框 */
.n-input,
.n-base-selection {
  border-radius: 12px !important;
}

.n-card.mx-auto.max-w-md .n-input {
  --n-height: 42px;
  --n-padding-left: 12px;
  --n-padding-right: 12px;
  height: 42px;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.92) !important;
}

.n-card.mx-auto.max-w-md .n-input .n-input-wrapper {
  align-items: center;
}

.n-card.mx-auto.max-w-md .n-input .n-input__input-el {
  height: var(--n-height) !important;
  line-height: var(--n-height) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

html.dark .n-card.mx-auto.max-w-md .n-input {
  background: rgba(15, 17, 21, 0.72) !important;
}

.n-input .n-input__border,
.n-input .n-input__state-border,
.n-base-selection .n-base-selection__border,
.n-base-selection .n-base-selection__state-border {
  border-radius: 12px !important;
}

html:not(.dark) .n-input .n-input__border,
html:not(.dark) .n-base-selection .n-base-selection__border {
  border-color: #e2e8f0 !important;
}

.n-input-group > .n-input:only-child,
.n-input-group > .n-base-selection:only-child,
.n-input-group > .n-input:only-child .n-input__border,
.n-input-group > .n-input:only-child .n-input__state-border {
  border-radius: 12px !important;
}

.n-input-group > .n-input:not(:only-child),
.n-input-group > .n-base-selection:not(:only-child),
.n-input-group > .n-input:not(:only-child) .n-input__border,
.n-input-group > .n-input:not(:only-child) .n-input__state-border {
  border-radius: 12px 0 0 12px !important;
}

/* 按钮 */
.n-button.n-button--primary-type:not(.n-button--disabled) {
  background-color: #343a40 !important;
  border-color: #343a40 !important;
  border-radius: 12px !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.n-button.n-button--primary-type .n-button__border,
.n-button.n-button--primary-type .n-button__state-border,
.n-button.n-button--primary-type .n-base-wave {
  border-radius: 12px !important;
}

.n-card.mx-auto.max-w-md .n-button.n-button--primary-type:not(.n-button--disabled) {
  height: 42px !important;
}

.n-button.n-button--primary-type:not(.n-button--disabled):hover {
  background-color: #23272b !important;
  border-color: #23272b !important;
}

.n-card.mx-auto.max-w-md .n-input-group {
  display: flex;
  align-items: stretch;
}

.n-input-group > .n-button.n-button--primary-type {
  border-radius: 0 12px 12px 0 !important;
  box-shadow: none !important;
  height: 42px !important;
}

.n-card.mx-auto.max-w-md .n-input-group > .n-button.n-button--primary-type {
  height: auto !important;
  align-self: stretch;
}

.n-card.mx-auto.max-w-md .n-input-group > .n-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.n-card.mx-auto.max-w-md .n-input-group > .n-select {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto !important;
  width: max-content !important;
  min-width: 118px;
  max-width: 48%;
}

.n-card.mx-auto.max-w-md .n-input-group > .n-select .n-base-selection {
  width: auto !important;
  min-width: 118px;
}

.n-card.mx-auto.max-w-md .n-input-group > .n-select .n-base-selection,
.n-card.mx-auto.max-w-md .n-input-group > .n-select .n-base-selection-label {
  height: 42px !important;
  min-height: 42px !important;
}

.n-card.mx-auto.max-w-md .n-input-group > .n-select .n-base-selection,
.n-card.mx-auto.max-w-md .n-input-group > .n-select .n-base-selection .n-base-selection__border,
.n-card.mx-auto.max-w-md .n-input-group > .n-select .n-base-selection .n-base-selection__state-border {
  border-radius: 0 12px 12px 0 !important;
}

html.dark .n-card.mx-auto.max-w-md .n-input-group > .n-select .n-base-selection,
html.dark .n-card.mx-auto.max-w-md .n-input-group > .n-select .n-base-selection-label {
  background: rgba(15, 17, 21, 0.72) !important;
}

html:not(.dark) .n-card.mx-auto.max-w-md .n-input-group > .n-select .n-base-selection,
html:not(.dark) .n-card.mx-auto.max-w-md .n-input-group > .n-select .n-base-selection-label {
  background: rgba(255, 255, 255, 0.92) !important;
}

.n-input-group > .n-button .n-button__border,
.n-input-group > .n-button .n-button__state-border,
.n-input-group > .n-button .n-base-wave {
  border-radius: 0 12px 12px 0 !important;
}

.n-button.n-button--disabled {
  box-shadow: none !important;
}

/* 按钮图标保持正方形。正文行高是 1.65，不单独收回来时，图标和文字会在固定高度里被挤在一起 */
.n-button {
  line-height: 1;
}

.n-button .n-button__content {
  line-height: 1.25;
}

.n-button .n-button__icon,
.n-button .n-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.n-button .n-button__icon svg,
.n-button .n-icon svg {
  display: block;
  width: 1em;
  height: 1em;
  flex: none;
}

.n-button--tiny-type .n-icon { font-size: 14px; }
.n-button--small-type .n-icon { font-size: 15px; }
.n-button--medium-type .n-icon { font-size: 16px; }
.n-button--large-type .n-icon { font-size: 18px; }

/* 功能图标统一保持正方形。顶栏、密码眼睛、下拉和选择器不再被行高拉高 */
html {
  --qy-eye-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 12S6.2 6.8 12 6.8 21.2 12 21.2 12 17.8 17.2 12 17.2 2.8 12 2.8 12z'/%3E%3Ccircle cx='12' cy='12' r='2.3'/%3E%3C/svg%3E");
  --qy-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5 19.5 20'/%3E%3Cpath d='M9.6 7.1A8.8 8.8 0 0 1 12 6.8c5.6 0 9 5.2 9 5.2a15 15 0 0 1-2.9 3.3'/%3E%3Cpath d='M6.4 8.7C4.4 10.2 3 12 3 12s3.4 5.2 9 5.2c1 0 2-.2 2.9-.5'/%3E%3Cpath d='M10.1 12.2a2.2 2.2 0 0 0 2.9 2'/%3E%3C/svg%3E");
}

.n-icon,
.n-base-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  line-height: 0;
  vertical-align: middle;
}

.n-icon > svg,
.n-base-icon > svg {
  display: block;
  width: 1em;
  height: 1em;
  flex: none;
}

article > header .n-icon,
article > header .n-base-icon,
.n-dropdown-option-body__prefix .n-icon,
.n-dropdown-option-body__prefix .n-base-icon {
  width: 22px !important;
  height: 22px !important;
  font-size: 22px !important;
}

article > header .n-icon svg,
article > header .n-base-icon svg,
.n-dropdown-option-body__prefix .n-icon svg,
.n-dropdown-option-body__prefix .n-base-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.n-input__prefix,
.n-input__suffix,
.n-base-selection__suffix,
.n-base-suffix {
  display: inline-flex;
  align-items: center;
  flex: none;
}

html:not(.dark) .n-input__prefix,
html:not(.dark) .n-input__suffix,
html:not(.dark) .n-input__eye {
  color: #64748b;
}

html.dark .n-input__prefix,
html.dark .n-input__suffix,
html.dark .n-input__eye {
  color: #94a3b8;
}

.n-input__prefix .n-icon,
.n-input__prefix .n-base-icon,
.n-input__suffix .n-icon,
.n-input__suffix .n-base-icon,
.n-input__prefix svg,
.n-input__suffix svg,
.n-base-selection__suffix .n-base-icon,
.n-base-selection__suffix svg,
.n-base-suffix .n-base-icon,
.n-base-suffix svg,
.n-base-close .n-base-icon,
.n-base-close svg,
.n-pagination .n-base-icon,
.n-pagination .n-base-icon svg,
.n-back-top .n-base-icon,
.n-back-top .n-base-icon svg {
  width: 18px !important;
  height: 18px !important;
  font-size: 18px !important;
  flex: none !important;
}

.n-input__eye {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  cursor: pointer;
}

.n-input__eye .n-icon,
.n-input__eye .n-base-icon,
.n-input__eye svg {
  width: 18px !important;
  height: 18px !important;
  font-size: 18px !important;
}

.n-input__eye svg {
  background-color: currentColor;
  -webkit-mask: var(--qy-eye-on) center / contain no-repeat;
  mask: var(--qy-eye-on) center / contain no-repeat;
}

.n-input__eye svg[data-qy-eye="off"] {
  -webkit-mask-image: var(--qy-eye-off);
  mask-image: var(--qy-eye-off);
}

.n-input__eye svg > * {
  opacity: 0;
}

/* 表格、弹窗、提示 */
.n-data-table {
  border-radius: 16px !important;
}

html:not(.dark) .n-data-table .n-data-table-th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 600 !important;
}

html.dark .n-data-table .n-data-table-th {
  font-weight: 600 !important;
}

.n-modal .n-card,
.n-dialog .n-card {
  border-radius: 18px !important;
}

/* 确认框 / 通用弹层：圆角 + 毛玻璃 */
html:not(.dark) .n-dialog,
html:not(.dark) .n-modal .n-card:not(.text-white) {
  --n-border-radius: 18px !important;
  --n-color: rgba(255, 255, 255, 0.68) !important;
  background: rgba(255, 255, 255, 0.68) !important;
  border: 1px solid rgba(197, 217, 223, 0.78) !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 56px rgba(36, 72, 86, 0.14) !important;
  backdrop-filter: blur(22px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.15) !important;
  overflow: hidden;
}

html.dark .n-dialog,
html.dark .n-modal .n-card:not(.text-white) {
  --n-border-radius: 18px !important;
  background: rgba(24, 24, 28, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(22px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.1) !important;
  overflow: hidden;
}

html:not(.dark) .n-dialog .n-dialog__content,
html:not(.dark) .n-dialog .n-dialog__action {
  background: transparent !important;
}

.n-dialog__title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  line-height: 1.4 !important;
}

.n-dialog__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  flex: none !important;
  line-height: 0 !important;
  font-size: 24px !important;
}

.n-dialog__icon .n-icon,
.n-dialog__icon .n-base-icon {
  width: 24px !important;
  height: 24px !important;
  font-size: 24px !important;
}

.n-dialog__icon svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
}

.n-dialog--icon-left .n-dialog__content {
  padding-left: 34px;
}

.n-alert,
.n-tag {
  border-radius: 10px !important;
}

html,
body,
#app,
.n-layout,
.n-layout-scroll-container,
.n-scrollbar,
.n-scrollbar-container,
.n-scrollbar-content,
.cus-scroll-y {
  scrollbar-width: none !important;
}

* {
  scrollbar-width: none !important;
}

*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

.n-scrollbar-rail,
.n-scrollbar-rail__horizontal,
.n-scrollbar-rail__vertical,
.n-scrollbar-rail__scrollbar {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 问号悬停提示：深色气泡配浅色字，避免沿用正文色后看不清 */
html:not(.dark) .n-tooltip,
html.dark .n-tooltip {
  --n-color: #1e293b !important;
  --n-text-color: #f8fafc !important;
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16) !important;
  max-width: 280px !important;
}

html:not(.dark) .n-tooltip .n-popover__content,
html.dark .n-tooltip .n-popover__content {
  color: #f8fafc !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  white-space: normal !important;
}

.n-tooltip .n-popover-arrow {
  background-color: #1e293b !important;
}

html:not(.dark) .n-data-table-th svg,
html:not(.dark) .n-data-table-th .n-icon {
  color: #64748b !important;
}

/* 表格里的文字按钮不再铺实心底，避免「查看详情」溢出格子 */
.n-data-table .n-button.n-button--primary-type,
.n-data-table .n-button.n-button--primary-type:hover,
.n-data-table .n-button.n-button--primary-type:not(.n-button--disabled),
.n-data-table .n-button.n-button--primary-type:not(.n-button--disabled) .color-primary {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #334155 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 2px !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

html.dark .n-data-table .n-button.n-button--primary-type,
html.dark .n-data-table .n-button.n-button--primary-type:not(.n-button--disabled) {
  color: #e2e8f0 !important;
}

.n-data-table .n-button.n-button--primary-type:hover {
  color: #0f172a !important;
}

.n-data-table-td--fixed-right,
.n-data-table-th--fixed-right {
  white-space: nowrap !important;
}

.n-button.n-button--ghost {
  background: transparent !important;
  box-shadow: none !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

html.dark .n-button.n-button--ghost {
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html:not(.dark) .n-dialog,
html:not(.dark) .n-message,
html:not(.dark) .n-empty {
  --n-text-color: #334155 !important;
  color: #334155 !important;
}

html:not(.dark) .n-dialog__title,
html:not(.dark) .n-message__content {
  color: #0f172a !important;
}

/* 提醒弹窗：略放大、滑入、边框匀速倒计时（SVG 描边） */
.n-message-container {
  top: 18px !important;
}

.n-message.qy-toast,
.n-notification.qy-toast {
  --qy-toast-dur: 3s;
  --qy-toast-accent: #316c72;
  position: relative !important;
  isolation: isolate;
  box-sizing: border-box;
  min-width: min(320px, calc(100vw - 32px));
  min-height: 52px !important;
  margin: 10px 0 !important;
  padding: 14px 18px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(197, 217, 223, 0.7) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1) !important;
  overflow: hidden !important;
  animation: qy-toast-in 0.4s cubic-bezier(0.22, 0.9, 0.28, 1) both;
}

html.dark .n-message.qy-toast,
html.dark .n-notification.qy-toast {
  --qy-toast-accent: #8fd4d8;
  background: rgba(24, 24, 28, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
}

.n-message.qy-toast,
.n-notification.qy-toast {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
}

.n-message.qy-toast [class*="message__icon"],
.n-notification.qy-toast [class*="notification__avatar"] {
  position: relative !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  flex: none !important;
}

.n-message.qy-toast [class*="message__icon"] > *,
.n-notification.qy-toast [class*="notification__avatar"] > * {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.n-message.qy-toast .n-icon,
.n-message.qy-toast .n-base-icon,
.n-notification.qy-toast .n-icon,
.n-notification.qy-toast .n-base-icon {
  width: 100% !important;
  height: 100% !important;
  font-size: 22px !important;
}

.n-message.qy-toast .n-icon svg,
.n-message.qy-toast .n-base-icon svg,
.n-notification.qy-toast .n-icon svg,
.n-notification.qy-toast .n-base-icon svg {
  width: 100% !important;
  height: 100% !important;
}

.n-message.qy-toast .n-message__content,
.n-message.qy-toast [class*="message__content"] {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

.n-notification.qy-toast {
  min-width: min(320px, calc(100vw - 32px));
  padding: 14px 18px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.qy-toast__ring {
  display: none !important;
}

.n-message--error-type.qy-toast,
.n-message--warning-type.qy-toast,
.n-notification--error-type.qy-toast,
.n-notification--warning-type.qy-toast {
  --qy-toast-accent: #b45309;
}

.n-message--success-type.qy-toast,
.n-notification--success-type.qy-toast {
  --qy-toast-accent: #0f766e;
}

/* 订单详情：已取消/已完成 图标与说明垂直居中，避免大图标把句号挤歪 */
html[data-qy-route="order"] .qy-order-status,
html[data-qy-route="order"] .n-card.flex.text-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

html[data-qy-route="order"] .qy-order-status .n-card__content,
html[data-qy-route="order"] .n-card.flex.text-center .n-card__content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center;
  width: 100%;
  text-align: center !important;
  padding: 28px 24px 32px !important;
  gap: 0;
}

html[data-qy-route="order"] .n-card.flex.text-center .text-9xl,
html[data-qy-route="order"] .qy-order-status .text-9xl {
  display: block !important;
  width: 88px !important;
  height: 88px !important;
  margin: 0 auto 12px !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 88px !important;
  flex: none !important;
}

html[data-qy-route="order"] .n-card.flex.text-center .text-9xl svg,
html[data-qy-route="order"] .qy-order-status svg.text-9xl,
html[data-qy-route="order"] .n-card.flex.text-center .n-card__content > svg {
  display: block !important;
  width: 88px !important;
  height: 88px !important;
  margin: 0 auto 12px !important;
}

html[data-qy-route="order"] .n-card.flex.text-center .text-xl,
html[data-qy-route="order"] .qy-order-status .text-xl {
  margin: 0 0 8px !important;
  line-height: 1.4 !important;
  font-weight: 650;
}

html[data-qy-route="order"] .n-card.flex.text-center .text-sm,
html[data-qy-route="order"] .qy-order-status .text-sm {
  margin: 0 !important;
  max-width: 22em;
  line-height: 1.65 !important;
  text-wrap: pretty;
}

@keyframes qy-toast-in {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes qy-toast-stroke {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 100;
  }
}

/* 发信成功后的垃圾箱提醒（$message 不可用时的兜底） */
.qy-mail-spam-hint {
  position: fixed;
  z-index: 13000;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  width: min(420px, calc(100vw - 28px));
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: rgba(255, 251, 235, 0.92);
  color: #92400e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  transform: translate(-50%, -12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.qy-mail-spam-hint.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

html.dark .qy-mail-spam-hint {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(69, 26, 3, 0.88);
  color: #fde68a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* 订单总额卡：原底是 gray-800，总额又被正文的 text-3xl / text-4xl 改成深色字。
   浅色用白底深字，深色用与其他卡片一致的深底浅字。 */
.bg-gray-800.text-white {
  border-radius: 16px !important;
}

html:not(.dark) .bg-gray-800.text-white {
  background-color: rgba(255, 255, 255, 0.58) !important;
  color: #0f172a !important;
  border: 1px solid rgba(197, 217, 223, 0.75) !important;
  box-shadow: 0 8px 24px rgba(36, 72, 86, 0.06);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

html.dark .bg-gray-800.text-white {
  background-color: #18191e !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

html:not(.dark) .bg-gray-800.text-white .text-3xl,
html:not(.dark) .bg-gray-800.text-white .text-4xl,
html:not(.dark) .bg-gray-800.text-white .text-lg,
html:not(.dark) .bg-gray-800.text-white [class*="f8f9fa"]:not([class*="f8f9fa41"]) {
  color: #0f172a !important;
}

html.dark .bg-gray-800.text-white .text-3xl,
html.dark .bg-gray-800.text-white .text-4xl,
html.dark .bg-gray-800.text-white .text-lg,
html.dark .bg-gray-800.text-white [class*="f8f9fa"]:not([class*="f8f9fa41"]) {
  color: #f8fafc !important;
}

html:not(.dark) .bg-gray-800.text-white .text-gray-300,
html:not(.dark) .bg-gray-800.text-white .text-gray-400,
html:not(.dark) .bg-gray-800.text-white [class*="f8f9fa41"] {
  color: #475569 !important;
}

html.dark .bg-gray-800.text-white .text-gray-300,
html.dark .bg-gray-800.text-white .text-gray-400,
html.dark .bg-gray-800.text-white [class*="f8f9fa41"] {
  color: #94a3b8 !important;
}

html:not(.dark) .bg-gray-800.text-white .text-green-400 {
  color: #166534 !important;
}

html.dark .bg-gray-800.text-white .text-green-400 {
  color: #4ade80 !important;
}

html:not(.dark) .bg-gray-800.text-white .border-gray-600,
html:not(.dark) .bg-gray-800.text-white [class*="646669"] {
  border-color: #e2e8f0 !important;
}

html.dark .bg-gray-800.text-white .border-gray-600,
html.dark .bg-gray-800.text-white [class*="646669"] {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.bg-gray-800.text-white input {
  border-radius: 10px !important;
  padding: 8px 12px !important;
}

html:not(.dark) .bg-gray-800.text-white input {
  color: #0f172a !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

html.dark .bg-gray-800.text-white input {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.bg-gray-800.text-white input::placeholder {
  color: #64748b !important;
}

.bg-gray-800.text-white .n-button.n-button--primary-type:not(.n-button--disabled),
.bg-gray-800.text-white .n-button.n-button--primary-type:not(.n-button--disabled) .n-button__content {
  color: #ffffff !important;
}

/* 购买页标题下的服务说明。列表卡片从第二个标题起不再重复这段。 */
.max-w-1200 > h2.text-3xl.font-normal {
  text-align: center;
}

.max-w-1200 > h2.text-3xl.font-normal::after {
  content: "🚀 线路与服务优势\A\A🤖 AI 平台解锁：支持解锁各大主流 AI 平台，畅享 AI 服务\A🏅 优秀线路 · 线路号：CN2 / CMIN2 / 9929\A🌏 全球直连节点：覆盖日本、美国、新加坡、台湾等地区，提供多地区直连选择\A🔄 流量重置：按各套餐自身规则重置，详见下方参数\A📲 多平台兼容：支持 Windows、macOS、iOS、Android 等主流设备\A🕐 全天候服务：提供 7×24 小时技术支持";
  display: block;
  box-sizing: border-box;
  width: min(760px, 100%);
  margin: 16px auto 0;
  padding: 20px 24px 18px;
  border-radius: 16px;
  border: 1px solid rgba(197, 217, 223, 0.72);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 28px rgba(36, 72, 86, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
  letter-spacing: 0 !important;
  text-align: left;
  white-space: pre-line;
}

html.dark .max-w-1200 > h2.text-3xl.font-normal::after {
  background: rgba(24, 25, 30, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  color: #cbd5e1 !important;
}

/* 全部 / 按周期 / 按流量：去掉中间分隔线，文字居中，选中只加一整圈阴影 */
.max-w-1200 > .n-radio-group--button-group {
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 26px auto 8px !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.max-w-1200 > .n-radio-group--button-group .n-radio-group__splitor,
.max-w-1200 > .n-radio-group--button-group .n-radio-button__state-border {
  display: none !important;
}

.max-w-1200 > .n-radio-group--button-group .n-radio-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  min-width: 92px;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  color: #334155 !important;
  overflow: visible !important;
}

.max-w-1200 > .n-radio-group--button-group .n-radio__label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  color: inherit !important;
}

.max-w-1200 > .n-radio-group--button-group .n-radio-button--checked {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04), 0 0 14px rgba(15, 23, 42, 0.18) !important;
}

.max-w-1200 > .n-radio-group--button-group .n-radio-button--checked .n-radio__label {
  background: transparent !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

html.dark .max-w-1200 > .n-radio-group--button-group .n-radio-button {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}

html.dark .max-w-1200 > .n-radio-group--button-group .n-radio-button--checked {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 16px rgba(0, 0, 0, 0.45) !important;
}

html.dark .max-w-1200 > .n-radio-group--button-group .n-radio-button--checked .n-radio__label {
  color: #f8fafc !important;
}

@media (max-width: 640px) {
  .max-w-1200 > h2.text-3xl.font-normal::after {
    padding: 16px 14px 14px;
    font-size: 13px !important;
    line-height: 1.75 !important;
  }

  .max-w-1200 > .n-radio-group--button-group {
    gap: 8px;
    margin-top: 22px !important;
  }
}

.card-item .markdown-body hr,
.card-item .markdown-body h2:nth-of-type(n + 2),
.card-item .markdown-body h2:nth-of-type(n + 2) ~ * {
  display: none !important;
}

/* 仪表盘：订阅卡和底部捷径分开层次（毛玻璃） */
.mb-1.md\:mb-10 > .n-card.mt-1 {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(244, 250, 250, 0.5)) !important;
  border-top: 3px solid #316c72 !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
}

html.dark .mb-1.md\:mb-10 > .n-card.mt-1 {
  background: linear-gradient(180deg, rgba(28, 36, 40, 0.96), rgba(16, 20, 24, 0.94)) !important;
  border-top-color: #3d8b92 !important;
}

.mb-1.md\:mb-10 > .n-card.mt-1 .text-xl {
  font-size: 22px !important;
  letter-spacing: 0.02em;
}

.mb-1.md\:mb-10 > .n-card.mt-1 .text-sm,
html:not(.dark) .mb-1.md\:mb-10 > .n-card.mt-1 .text-gray-500,
html.dark .mb-1.md\:mb-10 > .n-card.mt-1 .text-gray-500 {
  color: #475569 !important;
  line-height: 1.7 !important;
}

html.dark .mb-1.md\:mb-10 > .n-card.mt-1 .text-sm,
html.dark .mb-1.md\:mb-10 > .n-card.mt-1 .text-gray-500 {
  color: #cbd5e1 !important;
}

.mb-1.md\:mb-10 > .n-card.mt-1 .text-red-500 {
  color: #dc2626 !important;
}

.mb-1.md\:mb-10 > .n-card.mt-1 .n-progress + div {
  margin-top: 10px;
  color: #1e293b !important;
  font-weight: 600;
}

html.dark .mb-1.md\:mb-10 > .n-card.mt-1 .n-progress + div {
  color: #f8fafc !important;
}

.mb-1.md\:mb-10 > .n-card.mt-1 .n-button.n-button--primary-type,
.mb-1.md\:mb-10 > .n-card.mt-1 .n-button.n-button--primary-type .n-button__border,
.mb-1.md\:mb-10 > .n-card.mt-1 .n-button.n-button--primary-type .n-button__state-border,
.mb-1.md\:mb-10 > .n-card.mt-1 .n-button.n-button--primary-type .n-base-wave {
  border-radius: 999px !important;
}

.mb-1.md\:mb-10 > .n-card.mt-1 .n-button.n-button--primary-type {
  width: 100%;
  height: 42px !important;
  margin-top: 18px !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-card-header__main {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list {
  padding: 4px 12px 14px;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item__divider {
  display: none !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item {
  margin: 8px 0;
  padding: 14px 16px !important;
  border: 1px solid rgba(197, 217, 223, 0.75) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.48) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

html.dark .mb-1.md\:mb-10 > .n-card.mt-5 .n-list {
  background: transparent !important;
}

html.dark .mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark .mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .text-base,
html.dark .mb-1.md\:mb-10 > .n-card.mt-5 .text-base {
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
}

html.dark .mb-1.md\:mb-10 > .n-card.mt-5 .text-base {
  color: #f8fafc !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .text-sm.text-gray-500,
html:not(.dark) .mb-1.md\:mb-10 > .n-card.mt-5 .text-gray-500,
html.dark .mb-1.md\:mb-10 > .n-card.mt-5 .text-sm.text-gray-500,
html.dark .mb-1.md\:mb-10 > .n-card.mt-5 .text-gray-500 {
  margin-top: 3px;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #64748b !important;
}

html.dark .mb-1.md\:mb-10 > .n-card.mt-5 .text-sm.text-gray-500,
html.dark .mb-1.md\:mb-10 > .n-card.mt-5 .text-gray-500 {
  color: #cbd5e1 !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .text-3xl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 22px !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .text-3xl svg {
  width: 22px;
  height: 22px;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(1) {
  border-left: 3px solid #316c72 !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(2) {
  border-left: 3px solid #2563eb !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(3) {
  border-left: 3px solid #b45309 !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(4) {
  border-left: 3px solid #be185d !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(1) .text-3xl,
html.dark .mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(1) .text-3xl {
  background-color: rgba(49, 108, 114, 0.12);
  color: #316c72 !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(2) .text-3xl,
html.dark .mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(2) .text-3xl {
  background-color: rgba(37, 99, 235, 0.1);
  color: #1d4ed8 !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(3) .text-3xl,
html.dark .mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(3) .text-3xl {
  background-color: rgba(180, 83, 9, 0.1);
  color: #b45309 !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(4) .text-3xl,
html.dark .mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(4) .text-3xl {
  background-color: rgba(190, 24, 93, 0.1);
  color: #be185d !important;
}

/* 节点状态：原来是一条拉开的细列表，改成卡片网格，状态带文字 */
.n-list:has(.break-anywhere) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 2px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.n-list:has(.break-anywhere) .n-list__header,
.n-list:has(.break-anywhere) .n-list-item__divider {
  display: none !important;
}

.n-list:has(.break-anywhere) .n-list-item {
  min-height: 118px;
  margin: 0 !important;
  padding: 16px 16px 14px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.n-list:has(.break-anywhere) .n-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.n-list:has(.break-anywhere) .n-list-item:has(.bg-blue-500) {
  border-top: 3px solid #2563eb !important;
}

.n-list:has(.break-anywhere) .n-list-item:has(.bg-red-500) {
  border-top: 3px solid #e11d48 !important;
  background: #fff8f8 !important;
}

html.dark .n-list:has(.break-anywhere) .n-list-item {
  background: rgba(24, 24, 28, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark .n-list:has(.break-anywhere) .n-list-item:has(.bg-red-500) {
  background: rgba(69, 10, 10, 0.28) !important;
}

.n-list:has(.break-anywhere) .n-list-item .flex:has(> .break-anywhere) {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.n-list:has(.break-anywhere) .break-anywhere {
  flex: none !important;
  width: 100%;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: #0f172a !important;
}

html.dark .n-list:has(.break-anywhere) .break-anywhere {
  color: #f8fafc !important;
}

.n-list:has(.break-anywhere) .flex.flex-\[2\] {
  flex: none !important;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
}

.n-list:has(.break-anywhere) .flex.flex-\[2\] > div {
  flex: none !important;
}

.n-list:has(.break-anywhere) .justify-center:has(.h-1\.5) {
  justify-content: flex-start !important;
  gap: 8px;
}

.n-list:has(.break-anywhere) .h-1\.5.w-1\.5 {
  width: 8px !important;
  height: 8px !important;
  flex: none;
}

.n-list:has(.break-anywhere) .bg-blue-500.h-1\.5 {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.n-list:has(.break-anywhere) .bg-red-500.h-1\.5 {
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.14);
}

.n-list:has(.break-anywhere) .justify-center:has(.bg-blue-500)::after,
.n-list:has(.break-anywhere) .justify-center:has(.bg-red-500)::after {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.n-list:has(.break-anywhere) .justify-center:has(.bg-blue-500)::after {
  content: "在线";
  color: #1d4ed8;
}

.n-list:has(.break-anywhere) .justify-center:has(.bg-red-500)::after {
  content: "离线";
  color: #be123c;
}

html.dark .n-list:has(.break-anywhere) .justify-center:has(.bg-blue-500)::after {
  color: #93c5fd;
}

html.dark .n-list:has(.break-anywhere) .justify-center:has(.bg-red-500)::after {
  color: #fda4af;
}

.n-list:has(.break-anywhere) .n-tag {
  height: auto !important;
  padding: 2px 10px !important;
  border: none !important;
  border-radius: 999px !important;
  background: rgba(49, 108, 114, 0.12) !important;
  color: #1f5c62 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

html.dark .n-list:has(.break-anywhere) .n-tag {
  background: rgba(61, 139, 146, 0.22) !important;
  color: #b7e3e6 !important;
}

.n-list:has(.break-anywhere) .flex-\[2\] > .flex-\[1\]:last-child > span {
  display: none !important;
}

@media (max-width: 640px) {
  .n-list:has(.break-anywhere) {
    grid-template-columns: 1fr;
  }
}

/* 使用文档：标题在左，更新日期在右，搜索和列表对齐 */
.cus-scroll-y > .n-input-group:first-child {
  align-items: stretch;
  margin-bottom: 6px;
}

.cus-scroll-y > .n-input-group:first-child .n-input,
.cus-scroll-y > .n-input-group:first-child .n-button {
  height: 40px !important;
}

.cus-scroll-y > .n-input-group:first-child .n-button {
  min-width: 76px;
  border-radius: 0 12px 12px 0 !important;
}

.cus-scroll-y > .n-input-group:first-child .n-button__content {
  justify-content: center;
}

.n-card.mt-5:has(.text-xs.text-gray-500) .n-card-header {
  padding: 14px 20px 2px !important;
}

.n-card.mt-5:has(.text-xs.text-gray-500) .n-card__content {
  padding-bottom: 6px !important;
}

.n-card.mt-5:has(.text-xs.text-gray-500) .n-list-item {
  align-items: center !important;
  min-height: 52px;
  padding: 0 20px !important;
}

.n-card.mt-5:has(.text-xs.text-gray-500) .n-list-item__main,
.n-card.mt-5:has(.text-xs.text-gray-500) .n-list-item__main > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.n-card.mt-5:has(.text-xs.text-gray-500) .text-base {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.n-card.mt-5:has(.text-xs.text-gray-500) .text-xs {
  flex: none;
  margin: 0 !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  white-space: nowrap;
}

html.dark .n-card.mt-5:has(.text-xs.text-gray-500) .text-xs {
  color: #94a3b8 !important;
}

html.dark .n-card.mt-5:has(.text-xs.text-gray-500) .n-list {
  background: transparent !important;
}

html.dark .n-card.mt-5:has(.text-xs.text-gray-500) .text-base {
  color: #f8fafc !important;
}

html.dark .n-card.mt-5:has(.text-xs.text-gray-500) .n-list-item__divider {
  background: rgba(255, 255, 255, 0.08) !important;
}

html.dark .n-card.mt-5:has(.text-xs.text-gray-500) .n-list-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* 侧栏和仪表盘捷径：细线图标固定为正方形，用 contain 避免在窄栏里被拉扁 */
.side-menu .n-menu-item-content__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  width: 22px !important;
  height: 22px !important;
}

.side-menu .n-menu-item-content__icon .n-icon,
.side-menu .n-menu-item-content__icon svg {
  flex: none !important;
  width: 18px !important;
  height: 18px !important;
}

.side-menu .n-menu-item-content__icon svg {
  display: block;
  background-color: currentColor;
  -webkit-mask: var(--qy-icon) center / contain no-repeat;
  mask: var(--qy-icon) center / contain no-repeat;
}

.side-menu .n-menu-item-content__icon svg path,
.mb-1.md\:mb-10 > .n-card.mt-5 .text-3xl path {
  display: none !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .text-3xl {
  flex: none;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
}

.side-menu svg:has(path[d^="M10 20v-6h4v6h5v-8h3L12 3"]) {
  --qy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.8 12 5l7 5.8V20H5z'/%3E%3C/svg%3E");
}

.side-menu svg:has(path[d^="M12 21.5c-1.35"]),
.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(1) .text-3xl {
  --qy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23316c72' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4.5h9.5a2.5 2.5 0 0 1 2.5 2.5V20H8.5A2.5 2.5 0 0 0 6 22.5z'/%3E%3C/svg%3E");
}

.side-menu svg:has(path[d^="M12 21.5c-1.35"]) {
  --qy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4.5h9.5a2.5 2.5 0 0 1 2.5 2.5V20H8.5A2.5 2.5 0 0 0 6 22.5z'/%3E%3C/svg%3E");
}

.side-menu svg:has(path[d^="M7 5h14v2H7z"]) {
  --qy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M8 7h11M8 12h11M8 17h7M5 7h.01M5 12h.01M5 17h.01'/%3E%3C/svg%3E");
}

.side-menu svg:has(path[d^="M19 17v2H7v-2"]) {
  --qy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M16 19.2v-1.1a2.8 2.8 0 0 0-2.8-2.8H8.2A2.8 2.8 0 0 0 5.4 18.1v1.1M10.6 8.6a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8z'/%3E%3C/svg%3E");
}

.side-menu svg:has(path[d^="M19 6h-2c0-2.8"]) {
  --qy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.2 8V7a4.8 4.8 0 0 1 9.6 0v1M6 8h12l-.8 12H6.8z'/%3E%3C/svg%3E");
}

.side-menu svg:has(path[d^="M12 2C6.5 2 2 6.5"]) {
  --qy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zM3 12h18M12 3c2.2 2.6 2.2 15.4 0 18M12 3c-2.2 2.6-2.2 15.4 0 18'/%3E%3C/svg%3E");
}

.side-menu svg:has(path[d^="M12 4a4 4 0 0 1 4 4"]) {
  --qy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 12.2a3.1 3.1 0 1 0 0-6.2 3.1 3.1 0 0 0 0 6.2zM5.6 19.2a6.4 6.4 0 0 1 12.8 0'/%3E%3C/svg%3E");
}

.side-menu svg:has(path[d^="M9 22a1 1 0 0 1-1-1"]),
.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(4) .text-3xl {
  --qy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be185d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6.5h14v8.5H8.5L5 18z'/%3E%3C/svg%3E");
}

.side-menu svg:has(path[d^="M9 22a1 1 0 0 1-1-1"]) {
  --qy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6.5h14v8.5H8.5L5 18z'/%3E%3C/svg%3E");
}

.side-menu svg:has(path[d^="M3 22V8h4v14"]) {
  --qy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M5 19V10M12 19V5M19 19v-6'/%3E%3C/svg%3E");
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(1) .text-3xl {
  background-image: var(--qy-icon) !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(2) .text-3xl {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M9 12h6M8 8H6.6a3.4 3.4 0 0 0 0 6.8H8M16 8h1.4a3.4 3.4 0 0 1 0 6.8H16'/%3E%3C/svg%3E") !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(3) .text-3xl {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6M20 5v5h-5'/%3E%3C/svg%3E") !important;
}

.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:nth-child(4) .text-3xl {
  background-image: var(--qy-icon) !important;
}

/* 深色模式主按钮：炭黑按钮在深色卡片上几乎看不见，改为雾白底深字 */
html.dark .n-button.n-button--primary-type:not(.n-button--disabled) {
  background-color: #e5e9f0 !important;
  border-color: #e5e9f0 !important;
  box-shadow: none;
}

html.dark .n-button.n-button--primary-type:not(.n-button--disabled):hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

html.dark .n-button.n-button--primary-type:not(.n-button--disabled),
html.dark .n-button.n-button--primary-type:not(.n-button--disabled) .n-button__content,
html.dark .n-button.n-button--primary-type:not(.n-button--disabled) .color-primary,
html.dark .bg-gray-800.text-white .n-button.n-button--primary-type:not(.n-button--disabled),
html.dark .bg-gray-800.text-white .n-button.n-button--primary-type:not(.n-button--disabled) .n-button__content {
  color: #0f172a !important;
}

html.dark .n-data-table .n-button.n-button--primary-type:not(.n-button--disabled),
html.dark .n-data-table .n-button.n-button--primary-type:not(.n-button--disabled):hover {
  background-color: transparent !important;
  border-color: transparent !important;
}

html.dark .n-data-table .n-button.n-button--primary-type:not(.n-button--disabled),
html.dark .n-data-table .n-button.n-button--primary-type:not(.n-button--disabled) .n-button__content {
  color: #e2e8f0 !important;
}

/* 弹窗遮罩加一层轻微模糊 */
.n-modal-mask {
  background-color: rgba(15, 23, 42, 0.32) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

html.dark .n-modal-mask {
  background-color: rgba(0, 0, 0, 0.55) !important;
}

/* 仪表盘公告：去掉默认几何底图和半透明黑罩，换成品牌渐变，并压低高度 */
.n-card.text-white,
.mb-1.md\:mb-10 > .n-card.text-white,
html[data-qy-route="dashboard"] .n-card.text-white {
  --n-border-radius: 18px !important;
  border: none !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 14px 34px rgba(18, 58, 64, 0.18) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.n-card.text-white .n-carousel,
.n-card.text-white .n-carousel-container,
.n-card.text-white .n-carousel__slides,
.n-card.text-white .n-carousel__slide,
.n-card.text-white .carousel-img {
  border-radius: inherit !important;
}

.mb-1.md\:mb-10 > .n-card.text-white:hover {
  opacity: 1 !important;
  transform: translateY(-2px);
}

.mb-1.md\:mb-10 > .n-card.text-white .n-carousel__slide > div {
  background: none !important;
}

.mb-1.md\:mb-10 > .n-card.text-white .carousel-img {
  position: relative;
  isolation: isolate;
  height: 176px !important;
  padding: 24px 28px !important;
}

.mb-1.md\:mb-10 > .n-card.text-white .carousel-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(167, 230, 233, 0.38), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(15, 61, 68, 0.55), transparent 70%),
    linear-gradient(120deg, #173f45 0%, #2b6a71 55%, #4a9499 100%);
}

html.dark .mb-1.md\:mb-10 > .n-card.text-white .carousel-img::before {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(95, 179, 185, 0.26), transparent 60%),
    linear-gradient(120deg, #0f1c20 0%, #16323a 60%, #1d434a 100%);
}

html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="orbit"]::before {
  background: radial-gradient(circle at 88% 0%, rgba(143, 212, 216, 0.55), transparent 36%), linear-gradient(165deg, #f8fafc, #e7eef5) !important;
}
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="night"]::before {
  background: radial-gradient(circle at 80% 12%, rgba(49, 108, 114, 0.45), transparent 28%), linear-gradient(165deg, #1a2230, #0f141c) !important;
}
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="paper"]::before {
  background: linear-gradient(165deg, #f7f1e6, #efe2cf) !important;
}
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="tide"]::before {
  background: linear-gradient(135deg, #173f45, #2b6a71 58%, #4a9499) !important;
}
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="amber"]::before {
  background: linear-gradient(180deg, #fff8eb, #ffedd5) !important;
}
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="orbit"],
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="paper"],
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="amber"] {
  color: #0f172a !important;
}
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="orbit"] > div:last-child,
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="paper"] > div:last-child,
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="amber"] > div:last-child,
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="orbit"] > div:last-child > :last-child,
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="paper"] > div:last-child > :last-child,
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="amber"] > div:last-child > :last-child,
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="orbit"] .n-tag,
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="paper"] .n-tag,
html .mb-1.md\:mb-10 > .n-card.text-white .carousel-img[data-qy-board="amber"] .n-tag {
  color: #0f172a !important;
}

html.dark .mb-1.md\:mb-10 > .n-card.text-white {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35) !important;
  outline: 1px solid rgba(255, 255, 255, 0.06);
}

.mb-1.md\:mb-10 > .n-card.text-white .n-tag {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  padding: 0 10px !important;
  backdrop-filter: blur(6px);
}

.mb-1.md\:mb-10 > .n-card.text-white .carousel-img > div:last-child {
  color: #ffffff !important;
}

.mb-1.md\:mb-10 > .n-card.text-white .carousel-img > div:last-child > :first-child {
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
}

.mb-1.md\:mb-10 > .n-card.text-white .carousel-img > div:last-child > :last-child {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* 订阅卡进度条 */
.mb-1.md\:mb-10 > .n-card.mt-1 .n-progress-graph-line-rail {
  height: 8px !important;
  border-radius: 999px !important;
}

.mb-1.md\:mb-10 > .n-card.mt-1 .n-progress-graph-line-fill {
  border-radius: 999px !important;
  background: linear-gradient(90deg, #316c72, #5fb3b9) !important;
  min-width: 8px;
}

/* 捷径：宽屏改两列 */
@media (min-width: 900px) {
  .mb-1.md\:mb-10 > .n-card.mt-5 .n-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 4px 16px 18px;
  }

  .mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item {
    margin: 0 !important;
  }

  .mb-1.md\:mb-10 > .n-card.mt-5 .text-3xl {
    background-size: 20px 20px !important;
  }
}

/* 套餐卡片：等高，名称与价格上下排列，表格撑满，按钮通栏 */
.card-container {
  align-items: stretch;
}

.card-container .card-item {
  display: flex;
}

.card-container .card-item > .n-card {
  display: flex;
  flex-direction: column;
  width: 100% !important;
  border-radius: 20px !important;
}

.card-container .card-item .n-card-header {
  flex-direction: row;
  align-items: baseline !important;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 14px 16px 4px !important;
}

.card-container .card-item .n-card-header__main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
}

html:not(.dark) .card-container .card-item .n-card-header__main {
  color: #475569 !important;
}

html.dark .card-container .card-item .n-card-header__main {
  color: #cbd5e1 !important;
}

.card-container .card-item .n-card-header__extra {
  margin-left: 0 !important;
}

.card-container .card-item .n-card-header__extra .text-3xl {
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.1 !important;
}

.card-container .card-item .n-card__content {
  flex: 1 1 auto;
  padding: 4px 16px 4px !important;
}

.card-container .card-item .markdown-body h2 {
  margin: 12px 0 10px !important;
  padding-bottom: 8px !important;
  font-size: 15px !important;
}

.card-container .card-item .markdown-body table,
html[data-qy-route="plan"] .markdown-body table {
  display: table !important;
  width: 100% !important;
  table-layout: fixed;
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px;
  font-size: 13.5px;
}

.card-container .card-item .markdown-body table th,
.card-container .card-item .markdown-body table td,
html[data-qy-route="plan"] .markdown-body table th,
html[data-qy-route="plan"] .markdown-body table td {
  padding: 9px 12px !important;
  border: none !important;
  border-bottom: 1px solid #eef2f6 !important;
  background: transparent !important;
}

.card-container .card-item .markdown-body table tr:last-child td,
html[data-qy-route="plan"] .markdown-body table tr:last-child td {
  border-bottom: none !important;
}

html:not(.dark) .card-container .card-item .markdown-body table,
html:not(.dark)[data-qy-route="plan"] .markdown-body table {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

html.dark .card-container .card-item .markdown-body table,
html.dark[data-qy-route="plan"] .markdown-body table {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

html.dark .card-container .card-item .markdown-body table th,
html.dark .card-container .card-item .markdown-body table td,
html.dark[data-qy-route="plan"] .markdown-body table th,
html.dark[data-qy-route="plan"] .markdown-body table td {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-qy-route="plan"] .n-card__content:has(> div > .cursor-pointer.border-2) {
  padding: 0 14px 14px !important;
}

html[data-qy-route="plan"] .n-card__content:has(> div > .cursor-pointer.border-2) > div > .n-divider {
  display: none !important;
}

html[data-qy-route="plan"] .n-card__content > div > .cursor-pointer.border-2 {
  margin-top: 8px;
  padding: 14px 16px !important;
  border-radius: 12px !important;
}

html:not(.dark)[data-qy-route="plan"] .n-card__content > div > .cursor-pointer.border-2:not(.border-primary) {
  border-color: #e2e8f0 !important;
  background: #f8fafc;
}

html.dark[data-qy-route="plan"] .n-card__content > div > .cursor-pointer.border-2:not(.border-primary) {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03);
}

html[data-qy-route="plan"] .n-card__content > div > .cursor-pointer.border-2:not(.border-primary):hover {
  border-color: rgba(49, 108, 114, 0.45) !important;
}

.card-container .card-item .n-card__action {
  background: transparent !important;
  border-top: none !important;
  padding: 8px 22px 22px !important;
}

.card-container .card-item .n-card__action .n-button {
  width: 100%;
  height: 42px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}

.card-container .card-item .n-card__action .n-button .n-button__border,
.card-container .card-item .n-card__action .n-button .n-button__state-border,
.card-container .card-item .n-card__action .n-button .n-base-wave {
  border-radius: 12px !important;
}

.card-container .card-item.qy-current-plan > .n-card {
  border-color: #316c72 !important;
  box-shadow: 0 0 0 1px #316c72, 0 14px 30px rgba(49, 108, 114, 0.14) !important;
}

html.dark .card-container .card-item.qy-current-plan > .n-card {
  border-color: #5fb3b9 !important;
  box-shadow: 0 0 0 1px #5fb3b9, 0 14px 30px rgba(0, 0, 0, 0.35) !important;
}

.qy-plan-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(49, 108, 114, 0.12);
  color: #1f5c62;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

html.dark .qy-plan-badge {
  background: rgba(95, 179, 185, 0.16);
  color: #a7e6e9;
}

/* ===== 以下为 xb.js 注入的组件 ===== */

.qy-hidden {
  display: none !important;
}

/* 一键订阅弹窗 */
.n-modal.qy-sub-modal {
  width: min(400px, calc(100vw - 24px)) !important;
  border-radius: 20px !important;
  overflow: hidden;
}

.qy-sub-modal > .n-card__content {
  padding: 14px !important;
}

.qy-sub-modal .n-list {
  background: transparent !important;
}

.qy-sub-modal .n-list-item__divider {
  display: none !important;
}

.qy-sub-modal .n-list-item {
  margin: 2px 0;
  border-radius: 12px !important;
  overflow: hidden;
}

.qy-sub-modal .n-list-item .p-2\.5 {
  padding: 11px 8px !important;
}

.qy-sub-modal .n-list-item .w-16 {
  width: 52px !important;
}

.qy-sub-modal .n-list-item .text-gray-500 {
  font-size: 14px !important;
  font-weight: 500;
}

html:not(.dark) .qy-sub-modal .n-list-item .text-gray-500 {
  color: #1e293b !important;
}

html.dark .qy-sub-modal .n-list-item .text-gray-500 {
  color: #e2e8f0 !important;
}

html:not(.dark) .qy-sub-modal .n-list-item:hover {
  background: #f1f5f9 !important;
}

html.dark .qy-sub-modal .n-list-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

.qy-sub-modal .n-button {
  width: 100%;
  margin-top: 6px;
  height: 40px !important;
}

.qy-sub-notice {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(49, 108, 114, 0.1), rgba(95, 179, 185, 0.06));
  border: 1px solid rgba(49, 108, 114, 0.18);
}

.qy-sub-notice[hidden] {
  display: none;
}

html.dark .qy-sub-notice {
  background: linear-gradient(135deg, rgba(95, 179, 185, 0.12), rgba(95, 179, 185, 0.04));
  border-color: rgba(95, 179, 185, 0.22);
}

.qy-sub-notice.is-warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.qy-sub-notice__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #316c72;
  color: #ffffff;
}

.qy-sub-notice__icon svg {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
}

.qy-sub-notice.is-warn .qy-sub-notice__icon {
  background: #d97706;
}

.qy-sub-notice__body {
  min-width: 0;
}

.qy-sub-notice__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

html:not(.dark) .qy-sub-notice__title {
  color: #0f172a;
}

html.dark .qy-sub-notice__title {
  color: #f8fafc;
}

.qy-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(49, 108, 114, 0.14);
  color: #1f5c62;
  font-size: 12px;
  font-weight: 600;
}

html.dark .qy-chip {
  background: rgba(95, 179, 185, 0.18);
  color: #a7e6e9;
}

.qy-sub-notice__desc {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.65;
}

html:not(.dark) .qy-sub-notice__desc {
  color: #475569;
}

html.dark .qy-sub-notice__desc {
  color: #a8b3c2;
}

.qy-sub-notice__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #1f5c62;
}

html.dark .qy-sub-notice__meta {
  color: #a7e6e9;
}

.qy-sub-notice.is-warn .qy-sub-notice__meta {
  color: #b45309;
}

html.dark .qy-sub-notice.is-warn .qy-sub-notice__meta {
  color: #fbbf24;
}

.qy-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: qy-pulse 1.8s ease-out infinite;
}

@keyframes qy-pulse {
  0% { box-shadow: 0 0 0 0 rgba(49, 108, 114, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(49, 108, 114, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 108, 114, 0); }
}

/* 仪表盘订阅卡：数据格与操作按钮 */
.qy-dash-panel {
  margin-top: 18px;
}

.qy-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
  gap: 8px;
}

.qy-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
}

html:not(.dark) .qy-stat {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(197, 217, 223, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.dark .qy-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.qy-stat__label {
  font-size: 12px;
  line-height: 1.3;
  color: #64748b;
}

html.dark .qy-stat__label {
  color: #94a3b8;
}

.qy-stat__value {
  margin-top: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: #0f172a;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  overflow-wrap: anywhere;
}

html.dark .qy-stat__value {
  color: #f8fafc;
}

.qy-stat__hint {
  margin-top: 0;
  font-size: 11px;
  line-height: 1.3;
  color: #94a3b8;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

.qy-stat--spacer {
  opacity: 0;
  pointer-events: none;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.qy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.qy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.qy-btn:hover {
  background: rgba(15, 23, 42, 0.05);
}

.qy-btn:active {
  transform: scale(0.98);
}

.qy-btn:focus-visible,
.qy-filter:focus-visible {
  outline: 2px solid #5fb3b9;
  outline-offset: 2px;
}

.qy-btn--primary {
  border-color: #343a40;
  background: #343a40;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.qy-btn--primary:hover {
  border-color: #23272b;
  background: #23272b;
}

html.dark .qy-btn {
  border-color: rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

html.dark .qy-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

html.dark .qy-btn--primary {
  border-color: #e5e9f0;
  background: #e5e9f0;
  color: #0f172a;
  box-shadow: none;
}

html.dark .qy-btn--primary:hover {
  border-color: #ffffff;
  background: #ffffff;
}

.qy-btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.qy-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* 仪表盘：流量明细与邀请返利 */
.qy-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.qy-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 14px 12px;
  border-radius: 16px;
}

html:not(.dark) .qy-panel {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(197, 217, 223, 0.72);
  box-shadow: 0 10px 30px rgba(36, 72, 86, 0.06);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

html.dark .qy-panel {
  background: rgba(24, 24, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

/* 卡片动态布局：文字将被裁切时加高/换行，左右留白对称 */
.n-card,
.qy-panel,
.qy-order,
.qy-knowledge-doc-card {
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
}

.n-card.qy-fit-tall,
.qy-panel.qy-fit-tall,
.qy-order.qy-fit-tall,
.qy-knowledge-doc-card.qy-fit-tall,
.n-card.qy-fit-wide,
.qy-panel.qy-fit-wide {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.qy-fit-wide,
.qy-fit-tall {
  white-space: normal !important;
}

.qy-fit-wide .n-card-header,
.qy-fit-tall .n-card-header,
.qy-fit-wide .n-card__content,
.qy-fit-tall .n-card__content {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
}

@media (max-width: 767px) {
  .n-card,
  .qy-panel {
    height: auto !important;
    max-height: none !important;
  }

  .n-card .n-card__content,
  .n-card .n-card-header {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  html[data-qy-route="order"] .n-card .flex {
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 12px;
    row-gap: 6px;
  }

  html[data-qy-route="order"] .n-card [class*="flex-[1]"],
  html[data-qy-route="order"] .n-card [class*="flex-[2]"] {
    min-width: 0;
    flex: 1 1 140px !important;
    word-break: break-word;
  }
}

.qy-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.qy-panel__title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #0f172a;
}

html.dark .qy-panel__title {
  color: #f8fafc;
}

.qy-panel__link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #316c72;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

html.dark .qy-panel__link {
  color: #8fd4d8;
}

.qy-panel__link:hover {
  text-decoration: underline;
}

.qy-stats--mini {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
}

.qy-stats--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qy-stats--pair:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qy-stats--mini .qy-stat__value,
.qy-stats--pair .qy-stat__value {
  font-size: 16px;
}

.qy-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  height: 92px;
  margin-top: 14px;
}

.qy-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  height: 100%;
}

.qy-bar__track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  flex: 1;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.qy-bar__fill {
  width: 100%;
  max-width: 28px;
  margin: 0 auto;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #5fb3b9, #316c72);
}

html.dark .qy-bar__fill {
  background: linear-gradient(180deg, #b7ecee, #3d8b92);
}

.qy-bar__label {
  margin-top: 6px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
}

.qy-log {
  margin-top: 14px;
}

.qy-log__row {
  display: grid;
  grid-template-columns: minmax(52px, 0.9fr) minmax(0, 1fr) minmax(0, 1fr) minmax(36px, 0.7fr) minmax(52px, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #334155;
}

.qy-log__row > span {
  min-width: 0;
  overflow: visible;
  white-space: normal;
  word-break: break-word;
}

html.dark .qy-log__row {
  color: #e2e8f0;
}

.qy-log__row + .qy-log__row {
  border-top: 1px solid #eef2f6;
}

html.dark .qy-log__row + .qy-log__row {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.qy-log__head {
  padding-top: 0;
  font-size: 12px;
  color: #94a3b8;
}

.qy-log__head + .qy-log__row {
  border-top: none;
}

.qy-log__total {
  font-weight: 650;
  text-align: right;
}

.qy-rate {
  justify-self: start;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 12px;
  color: #316c72;
  background: rgba(49, 108, 114, 0.1);
}

html.dark .qy-rate {
  color: #b7ecee;
  background: rgba(143, 212, 216, 0.12);
}

.qy-panel__note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #94a3b8;
}

.qy-panel__note--warn {
  color: #b45309;
}

html.dark .qy-panel__note--warn {
  color: #fbbf24;
}

.qy-empty {
  margin-top: 12px;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
  color: #64748b;
}

html:not(.dark) .qy-empty {
  background: #f8fafc;
}

html.dark .qy-empty {
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
}

.qy-empty .qy-btn {
  margin-top: 10px;
}

.qy-invite-link {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.qy-invite-link input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
}

html.dark .qy-invite-link input {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

.qy-invite-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(49, 108, 114, 0.16);
  background: linear-gradient(135deg, rgba(49, 108, 114, 0.08), rgba(255, 255, 255, 0.55));
}

html.dark .qy-invite-code {
  border-color: rgba(143, 212, 216, 0.18);
  background: linear-gradient(135deg, rgba(143, 212, 216, 0.1), rgba(255, 255, 255, 0.03));
}

.qy-invite-code__label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

html.dark .qy-invite-code__label {
  color: #94a3b8;
}

.qy-invite-code__value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

html.dark .qy-invite-code__value {
  color: #f8fafc;
}

.qy-invite-code .qy-btn {
  flex-shrink: 0;
}

.qy-rebate {
  margin-top: auto;
  padding-top: 14px;
}

.qy-rebate__title {
  margin-bottom: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.qy-rebate__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #334155;
}

html.dark .qy-rebate__row {
  color: #e2e8f0;
}

.qy-rebate__row + .qy-rebate__row {
  border-top: 1px solid #eef2f6;
}

html.dark .qy-rebate__row + .qy-rebate__row {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.qy-rebate .qy-empty {
  margin-top: 8px;
}

/* 节点状态：统计、地区筛选、搜索 */
.qy-node-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
}

html:not(.dark) .qy-node-bar {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(197, 217, 223, 0.72);
  box-shadow: 0 8px 22px rgba(36, 72, 86, 0.05);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

html.dark .qy-node-bar {
  background: rgba(24, 25, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.qy-node-bar__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 13px;
  color: #64748b;
}

html.dark .qy-node-bar__summary {
  color: #94a3b8;
}

.qy-node-bar__summary b {
  margin: 0 2px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

html.dark .qy-node-bar__summary b {
  color: #f8fafc;
}

.qy-online i,
.qy-offline i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  vertical-align: 1px;
}

.qy-online i {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.qy-offline i {
  background: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.14);
}

.qy-node-bar__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.qy-filters {
  display: flex;
  gap: 6px;
}

.qy-filter {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.qy-filter:hover {
  background: rgba(15, 23, 42, 0.05);
}

.qy-filter.is-active {
  border-color: #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

html.dark .qy-filter {
  color: #a8b3c2;
}

html.dark .qy-filter:hover {
  background: rgba(255, 255, 255, 0.06);
}

html.dark .qy-filter.is-active {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  box-shadow: none;
}

.qy-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #94a3b8;
}

html:not(.dark) .qy-search {
  background: #f1f5f9;
}

html.dark .qy-search {
  background: rgba(255, 255, 255, 0.06);
}

.qy-search svg {
  flex: none;
  width: 15px;
  height: 15px;
}

.qy-search input {
  width: 140px;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
}

html:not(.dark) .qy-search input {
  color: #0f172a;
}

html.dark .qy-search input {
  color: #f8fafc;
}

.qy-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.qy-node-empty {
  width: 100%;
  padding: 18px 0 4px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.qy-node-empty[hidden] {
  display: none;
}

/* 流量明细、个人中心 */
.qy-traffic,
.qy-profile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.qy-profile-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
  width: 100%;
  max-width: 100%;
}

.qy-profile-row {
  display: grid;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}

.qy-profile-row--info {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qy-profile-tile {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  margin-top: 0 !important;
}

.qy-profile-tile.n-card,
.qy-profile-telegram {
  border-radius: 16px !important;
  overflow: hidden;
}

.qy-profile-telegram {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.qy-profile-tile-nested.n-card {
  margin-top: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  width: 100%;
}

.qy-profile-tile .n-card-header,
.qy-profile-tile-nested .n-card-header {
  padding: 10px 12px 4px !important;
}

.qy-profile-tile .n-card-header__main,
.qy-profile-tile-nested .n-card-header__main {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px !important;
}

.qy-profile-tile .n-card__content,
.qy-profile-tile-nested .n-card__content {
  padding: 6px 12px 12px !important;
}

/* 钱包：金额与说明横向紧凑 */
.qy-profile-tile--wallet .n-card-header {
  display: none !important;
}

.qy-profile-tile--wallet .n-card__content {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 12px !important;
}

.qy-profile-tile--wallet .n-card__content > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.qy-profile-tile--wallet .text-5xl {
  font-size: 26px !important;
  line-height: 1.1 !important;
}

.qy-profile-tile--wallet .text-xl {
  font-size: 13px !important;
  margin-left: 0 !important;
}

.qy-profile-tile--wallet .n-card__content > div:last-child {
  flex: 0 1 auto;
  max-width: 46%;
  text-align: right;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: #64748b !important;
}

.qy-profile-tile--wallet .n-card__content::before {
  content: "钱包";
  flex: none;
  margin-right: 4px;
  font-size: 13px;
  font-weight: 650;
  color: #0f172a;
}

html.dark .qy-profile-tile--wallet .n-card__content::before {
  color: #f8fafc;
}

/* 通知：两项开关横向排列，每项标签+开关同行 */
.qy-profile-tile--notice .n-card-header {
  padding: 10px 12px 0 !important;
}

.qy-profile-tile--notice .n-card__content {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 8px 12px 12px !important;
}

.qy-profile-tile--notice .n-card__content > div {
  flex: 1 1 0;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0;
  padding: 8px 9px !important;
  border-radius: 10px;
  background: rgba(49, 108, 114, 0.06);
}

html.dark .qy-profile-tile--notice .n-card__content > div {
  background: rgba(255, 255, 255, 0.04);
}

.qy-profile-tile--notice .n-card__content > div > div:first-child,
.qy-profile-tile--notice .mb-1 {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: #475569 !important;
}

.qy-profile-tile--telegram .n-card-header {
  padding: 10px 12px !important;
  align-items: center !important;
}

.qy-profile-tile--telegram .n-card__content:empty,
.qy-profile-tile--telegram .n-card__content:not(:has(*)) {
  display: none !important;
}

/* 修改密码 / 重置订阅 并排操作条 */
.qy-profile-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(49, 108, 114, 0.12);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.dark .qy-profile-actions {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.qy-profile-action,
.qy-profile-actions .qy-profile-action,
.qy-profile-actions .n-button.qy-profile-action,
.qy-profile-actions .n-button.qy-profile-reset__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-width: 168px;
  width: 168px;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  vertical-align: middle;
  cursor: pointer;
}

.qy-profile-action--pass {
  background: #d97706 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.22) !important;
}

.qy-profile-action--pass:hover {
  background: #b45309 !important;
}

.qy-profile-action--reset,
.qy-profile-reset__btn,
.qy-profile-actions .qy-profile-reset__btn,
.qy-profile-actions .n-button.qy-profile-reset__btn {
  background: #dc2626 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22) !important;
}

.qy-profile-action--reset:hover,
.qy-profile-reset__btn:hover,
.qy-profile-actions .n-button.qy-profile-reset__btn:hover {
  background: #b91c1c !important;
  color: #fff !important;
}

.qy-profile-reset.qy-native-muted {
  display: none !important;
}

/* 确认订单：付款周期下拉选择 + 与订单总额同列 */
.qy-period-card .n-card-header {
  padding: 12px 14px 6px !important;
}

.qy-period-card .n-card__content {
  padding: 6px 14px 14px !important;
}

.qy-period-picker {
  position: relative;
  z-index: 5;
}

.qy-period-picker__trigger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px dashed rgba(49, 108, 114, 0.55);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(49, 108, 114, 0.1), rgba(255, 255, 255, 0.72));
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

html.dark .qy-period-picker__trigger {
  border-color: rgba(143, 212, 216, 0.45);
  background: linear-gradient(135deg, rgba(143, 212, 216, 0.12), rgba(255, 255, 255, 0.04));
}

.qy-period-picker__trigger:hover {
  border-color: #316c72;
  box-shadow: 0 8px 20px rgba(49, 108, 114, 0.12);
}

.qy-period-card.is-open .qy-period-picker__trigger {
  border-style: solid;
  border-color: #316c72;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.qy-period-picker__hint {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #316c72;
}

html.dark .qy-period-picker__hint {
  color: #8fd4d8;
}

.qy-period-picker__current {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.qy-period-picker__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

html.dark .qy-period-picker__name {
  color: #f8fafc;
}

.qy-period-picker__price {
  flex: none;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #316c72;
}

html.dark .qy-period-picker__price {
  color: #8fd4d8;
}

.qy-period-picker__chev {
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  transition: transform 0.18s ease;
  color: #316c72;
}

.qy-period-card.is-open .qy-period-picker__chev {
  transform: rotate(-135deg);
  margin-top: 4px;
}

/* 收起：只显示触发按钮；展开：显示原生周期列表 */
.qy-period-card:not(.is-open) .n-card__content > *:not(.qy-period-picker) {
  display: none !important;
}

.qy-period-card.is-open .n-card__content > *:not(.qy-period-picker) {
  display: block !important;
  margin-top: 8px;
}

.qy-period-card.is-open .n-card__content {
  display: flex;
  flex-direction: column;
}

.qy-period-card .qy-period-option,
.qy-period-card .cursor-pointer {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px !important;
  padding: 12px 14px !important;
  border-width: 1px !important;
  border-radius: 12px !important;
  cursor: pointer;
}

.qy-period-card .qy-period-option:last-child,
.qy-period-card .n-card__content > div:last-child .cursor-pointer {
  margin-bottom: 0 !important;
}

.qy-period-card .n-divider {
  display: none !important;
}

/* 修改密码弹窗：对齐原生 n-dialog 毛玻璃确认框 */
.qy-pass-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.qy-pass-modal[hidden] {
  display: none !important;
}

.qy-pass-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

html.dark .qy-pass-modal__backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.qy-pass-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  max-height: min(86vh, 640px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(197, 217, 223, 0.78);
  /* 与原生 n-dialog 同系毛玻璃 */
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 22px 56px rgba(36, 72, 86, 0.14);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}

html.dark .qy-pass-modal__panel {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 28, 0.82);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
}

.qy-pass-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  padding: 18px 20px 8px;
}

.qy-pass-modal__titlewrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.qy-pass-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(49, 108, 114, 0.12);
  color: #1f5c62;
}

html.dark .qy-pass-modal__icon {
  background: rgba(143, 212, 216, 0.14);
  color: #b7ecee;
}

.qy-pass-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #0f172a;
}

html.dark .qy-pass-modal__title {
  color: #f8fafc;
}

.qy-pass-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(197, 217, 223, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #475569;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html.dark .qy-pass-modal__close {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.qy-pass-modal__close:hover {
  background: rgba(143, 212, 216, 0.22);
  border-color: rgba(49, 108, 114, 0.4);
}

.qy-pass-modal__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 4px 20px 20px;
  background: transparent;
}

.qy-pass-modal__tip {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
}

html.dark .qy-pass-modal__tip {
  color: #94a3b8;
}

/* 打开改密弹窗时收起右下角浮层，避免挡住提交按钮 */
html.qy-pass-open .qy-wechat-wrap,
html.qy-pass-open .crisp-client,
html.qy-pass-open #crisp-chatbox,
html.qy-pass-open .n-back-top {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* 改密弹窗内：卡片彻底透明，只保留面板毛玻璃 */
html:not(.dark) .qy-pass-modal .qy-profile-pass-card.n-card,
html.dark .qy-pass-modal .qy-profile-pass-card.n-card,
.qy-pass-modal .qy-profile-pass-card.n-card {
  --n-color: transparent !important;
  --n-color-modal: transparent !important;
  --n-color-embedded: transparent !important;
  --n-color-target: transparent !important;
  --n-border-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.qy-pass-modal .qy-profile-pass-card .n-card-header,
.qy-pass-modal .qy-profile-pass-card .n-card__footer,
.qy-pass-modal .qy-profile-pass-card .n-card__action {
  display: none !important;
  background: transparent !important;
}

.qy-pass-modal .qy-profile-pass-card .n-card__content,
.qy-pass-modal .qy-profile-pass-card .n-card__content > div,
.qy-pass-modal .qy-profile-pass-card .n-form-item,
.qy-pass-modal .qy-profile-pass-card .n-form-item-blank,
.qy-pass-modal .qy-profile-pass-card .n-form-item__label,
.qy-pass-modal .qy-profile-pass-card .n-form-item-label {
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
}

.qy-pass-modal .qy-profile-pass-card .n-card__content {
  padding: 0 !important;
}

.qy-pass-modal .qy-profile-pass-card .max-w-125,
.qy-pass-modal .qy-profile-pass-card .mt-2\.5 {
  max-width: none !important;
  margin-top: 0 !important;
  background: transparent !important;
}

.qy-pass-modal .qy-profile-pass-card .n-card__content > div {
  margin: 0 0 12px !important;
}

.qy-pass-modal .qy-profile-pass-card .n-card__content > div:last-child {
  margin-bottom: 0 !important;
  margin-top: 4px !important;
}

.qy-pass-modal .qy-profile-pass-card label {
  display: block;
  margin: 0 0 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: transparent !important;
}

html.dark .qy-pass-modal .qy-profile-pass-card label {
  color: #94a3b8 !important;
}

/* 输入框：透到底，只留描边，内部视觉统一为面板毛玻璃 */
.qy-pass-modal .qy-profile-pass-card .n-input {
  width: 100% !important;
  --n-border-radius: 12px !important;
  --n-color: transparent !important;
  --n-color-disabled: transparent !important;
  --n-color-focus: rgba(255, 255, 255, 0.12) !important;
  --n-border: 1px solid rgba(148, 163, 184, 0.45) !important;
  --n-border-hover: 1px solid rgba(49, 108, 114, 0.5) !important;
  --n-border-focus: 1px solid rgba(49, 108, 114, 0.62) !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.dark .qy-pass-modal .qy-profile-pass-card .n-input {
  --n-color: transparent !important;
  --n-color-disabled: transparent !important;
  --n-color-focus: rgba(255, 255, 255, 0.08) !important;
  --n-border: 1px solid rgba(255, 255, 255, 0.16) !important;
  --n-border-hover: 1px solid rgba(143, 212, 216, 0.4) !important;
  --n-border-focus: 1px solid rgba(143, 212, 216, 0.5) !important;
  background: transparent !important;
}

.qy-pass-modal .qy-profile-pass-card .n-input .n-input__input-el,
.qy-pass-modal .qy-profile-pass-card .n-input .n-input__textarea-el,
.qy-pass-modal .qy-profile-pass-card .n-input .n-input-wrapper,
.qy-pass-modal .qy-profile-pass-card .n-input .n-input__prefix,
.qy-pass-modal .qy-profile-pass-card .n-input .n-input__suffix {
  background: transparent !important;
}

.qy-pass-modal .qy-profile-pass-card .n-input .n-input__input-el {
  font-size: 16px !important; /* iOS 避免自动放大 */
}

.qy-pass-modal .qy-profile-pass-card .n-input .n-input__border,
.qy-pass-modal .qy-profile-pass-card .n-input .n-input__state-border {
  border-radius: 12px !important;
}

.qy-pass-modal .qy-profile-pass-card .n-button,
.qy-pass-modal .qy-profile-pass-card .qy-pass-modal__submit {
  width: 100% !important;
  height: 42px !important;
  margin-top: 8px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #343a40 !important;
  color: #fff !important;
  font-weight: 650 !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14) !important;
}

.qy-pass-modal .qy-profile-pass-card .n-button:hover {
  background: #23272b !important;
}

html.dark .qy-pass-modal .qy-profile-pass-card .n-button {
  background: #e5e9f0 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

/* —— 近期改动的响应式适配 —— */
@media (max-width: 960px) {
  .qy-profile-row--info {
    grid-template-columns: 1fr;
  }

  .qy-profile-tile--notice .n-card__content {
    flex-direction: column !important;
  }
}

@media (max-width: 720px) {
  .qy-profile-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .qy-profile-action,
  .qy-profile-actions .qy-profile-action,
  .qy-profile-actions .n-button.qy-profile-action,
  .qy-profile-actions .n-button.qy-profile-reset__btn {
    width: 100% !important;
    min-width: 0;
  }

  .qy-profile-tile--wallet .n-card__content {
    flex-wrap: wrap;
  }

  .qy-profile-tile--wallet .n-card__content > div:last-child {
    max-width: 100%;
    text-align: left;
    flex: 1 1 100%;
  }

  .qy-period-picker__trigger {
    padding: 12px;
  }

  .qy-period-picker__current {
    flex-wrap: wrap;
  }

  .qy-period-card .qy-period-option,
  .qy-period-card .cursor-pointer {
    padding-right: 48px !important; /* 避开右下角浮层 */
  }

  .qy-pass-modal {
    align-items: flex-end;
    padding: 0;
  }

  .qy-pass-modal__panel {
    width: 100%;
    max-height: min(92vh, 720px);
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .qy-pass-modal__head,
  .qy-pass-modal__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .qy-pass-modal__body {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

.qy-panel__titleline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.qy-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(49, 108, 114, 0.12);
  color: #1f5c62;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

html.dark .qy-badge {
  background: rgba(143, 212, 216, 0.14);
  color: #b7ecee;
}

.qy-badge.is-warn {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

html.dark .qy-badge.is-warn {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}

.qy-traffic .qy-stats--mini {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
}

.qy-compares {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.qy-compare {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
}

html:not(.dark) .qy-compare {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e2e8f0;
}

html.dark .qy-compare {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.qy-compare__label {
  font-size: 12px;
  color: #64748b;
}

html.dark .qy-compare__label {
  color: #94a3b8;
}

.qy-compare__values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 650;
  color: #0f172a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.qy-fit-wide .qy-compare__values,
.qy-compare.qy-fit-wide .qy-compare__values {
  white-space: normal !important;
}

html.dark .qy-compare__values {
  color: #f8fafc;
}

.qy-compare__delta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
}

.qy-compare__delta.is-up { color: #b45309; }
.qy-compare__delta.is-down { color: #0f766e; }
.qy-compare__delta.is-flat { color: #64748b; }

html.dark .qy-compare__delta.is-up { color: #fbbf24; }
html.dark .qy-compare__delta.is-down { color: #5eead4; }
html.dark .qy-compare__delta.is-flat { color: #94a3b8; }

.qy-bars--month {
  height: 132px;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18px, 1fr);
  overflow-x: auto;
}

.qy-forecast {
  margin-top: 14px;
}

.qy-forecast__text,
.qy-sub__usage {
  font-size: 13px;
  color: #64748b;
}

html.dark .qy-forecast__text,
html.dark .qy-sub__usage {
  color: #94a3b8;
}

.qy-meter {
  height: 7px;
  margin-top: 8px;
  margin-bottom: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

html.dark .qy-meter {
  background: rgba(255, 255, 255, 0.16);
}

.qy-meter__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5fb3b9, #316c72);
}

.qy-sub__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
}

.qy-sub__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}

html.dark .qy-sub__name {
  color: #f8fafc;
}

.qy-sub__usage {
  margin-top: 0;
  font-size: 12px;
  color: #64748b;
}

html.dark .qy-sub__usage {
  color: #94a3b8;
}

.qy-orders {
  margin-top: 2px;
}

.qy-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 10px 0;
}

.qy-order + .qy-order {
  border-top: 1px solid #eef2f6;
}

html.dark .qy-order + .qy-order {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.qy-order__main {
  min-width: 0;
  flex: 1 1 160px;
}

.qy-order__name {
  font-size: 14px;
  font-weight: 650;
  color: #0f172a;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
}

html.dark .qy-order__name {
  color: #f8fafc;
}

.qy-order__meta {
  margin-top: 2px;
  font-size: 12px;
  color: #94a3b8;
  white-space: normal;
  word-break: break-word;
}

.qy-order__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
}

.qy-order__money {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

html.dark .qy-order__money {
  color: #f8fafc;
}

.qy-status {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: #64748b;
  background: rgba(100, 116, 139, 0.12);
}

.qy-status--0,
.qy-status--1 {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
}

.qy-status--3 {
  color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
}

html.dark .qy-status--0,
html.dark .qy-status--1 {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}

html.dark .qy-status--3 {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.12);
}

.qy-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2f6;
}

html.dark .qy-pager {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.qy-pager__info {
  font-size: 12px;
  color: #64748b;
}

html.dark .qy-pager__info {
  color: #94a3b8;
}

.qy-pager__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qy-pager__btn {
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d5e4ea;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.qy-pager__btn:hover:not(:disabled) {
  border-color: rgba(49, 108, 114, 0.45);
  background: rgba(143, 212, 216, 0.16);
}

.qy-pager__btn.is-active {
  border-color: #343a40;
  background: #343a40;
  color: #fff;
}

.qy-pager__btn:disabled {
  opacity: 0.45;
  cursor: default;
}

html.dark .qy-pager__btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

html.dark .qy-pager__btn.is-active {
  border-color: #e5e9f0;
  background: #e5e9f0;
  color: #0f172a;
}

.qy-node-pager,
.qy-plan-pager {
  margin-top: 12px;
}

.qy-node-pager .qy-pager,
.qy-plan-pager .qy-pager {
  border-top: 0;
  padding-top: 0;
}

/* 菜单页统一信息壳：对齐仪表盘卡片节奏 */
.qy-page-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 18px;
}

.qy-page-shell > .qy-panel {
  margin: 0;
}

.qy-native-muted {
  display: none !important;
}

/* 订单页：有增强列表时彻底隐藏原生重复区块 */
.cus-scroll-y:has(.qy-page-order) > .n-card,
.cus-scroll-y:has(.qy-page-order) > .n-spin-container,
.cus-scroll-y:has(.qy-page-order) > .n-data-table-wrapper,
.cus-scroll-y:has(.qy-page-order) > div > .n-card:not(.qy-page-shell .n-card):not(.qy-pagehead .n-card) {
  display: none !important;
}

.qy-order--click {
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 10px;
  margin: 0 -10px;
}

.qy-order--click:hover {
  background: rgba(143, 212, 216, 0.12);
}

html.dark .qy-order--click:hover {
  background: rgba(143, 212, 216, 0.08);
}

.qy-order .qy-btn {
  margin-top: 4px;
}

.qy-page-order .qy-filters {
  margin-bottom: 12px;
}

.qy-plan-summary {
  margin: 0 0 16px;
}

.qy-tickets {
  display: flex;
  flex-direction: column;
}

.qy-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  cursor: pointer;
  border-radius: 12px;
}

.qy-ticket + .qy-ticket {
  border-top: 1px solid #eef2f6;
}

html.dark .qy-ticket + .qy-ticket {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.qy-ticket:hover {
  background: rgba(143, 212, 216, 0.12);
}

.qy-ticket__main {
  min-width: 0;
}

.qy-ticket__title {
  font-size: 14px;
  font-weight: 650;
  color: #0f172a;
}

html.dark .qy-ticket__title {
  color: #f8fafc;
}

.qy-ticket__meta {
  margin-top: 2px;
  font-size: 12px;
  color: #94a3b8;
}

.qy-ticket-compose {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef2f6;
}

html.dark .qy-ticket-compose {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.qy-field {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d5e4ea;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font: inherit;
  font-size: 14px;
}

html.dark .qy-field {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.qy-field--area {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}

.qy-ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qy-ticket-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(143, 212, 216, 0.14);
}

.qy-ticket-msg.is-me {
  align-self: flex-end;
  background: rgba(51, 65, 85, 0.08);
}

html.dark .qy-ticket-msg {
  background: rgba(143, 212, 216, 0.1);
}

html.dark .qy-ticket-msg.is-me {
  background: rgba(255, 255, 255, 0.06);
}

.qy-ticket-msg__meta {
  font-size: 12px;
  color: #64748b;
}

.qy-ticket-msg__body {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #0f172a;
}

html.dark .qy-ticket-msg__body {
  color: #f8fafc;
}

/* 使用文档：保留原生抽屉/markdown；分类纵向、文档卡片横向 */
html[data-qy-route="knowledge"] .qy-knowledge-native > .n-card.qy-knowledge-cat-card,
html[data-qy-route="knowledge"] .cus-scroll-y > .n-card.mt-5 {
  margin-top: 16px !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

html[data-qy-route="knowledge"] .qy-knowledge-cat-card .n-card-header,
html[data-qy-route="knowledge"] .cus-scroll-y > .n-card.mt-5 .n-card-header {
  padding: 14px 18px 8px !important;
}

html[data-qy-route="knowledge"] .qy-knowledge-cat-card .n-card__content,
html[data-qy-route="knowledge"] .cus-scroll-y > .n-card.mt-5 .n-card__content,
html[data-qy-route="knowledge"] .qy-knowledge-cat-card .n-scrollbar,
html[data-qy-route="knowledge"] .qy-knowledge-cat-card .n-scrollbar-container,
html[data-qy-route="knowledge"] .qy-knowledge-cat-card .n-list {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

html[data-qy-route="knowledge"] .qy-knowledge-cat-card .n-card__content,
html[data-qy-route="knowledge"] .cus-scroll-y > .n-card.mt-5 .n-card__content {
  padding: 0 12px 14px !important;
}

html[data-qy-route="knowledge"] .qy-knowledge-card-grid,
html[data-qy-route="knowledge"] .cus-scroll-y > .n-card.mt-5 .n-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  padding: 4px 2px 2px !important;
  background: transparent !important;
}

html[data-qy-route="knowledge"] .qy-knowledge-doc-card,
html[data-qy-route="knowledge"] .cus-scroll-y > .n-card.mt-5 .n-list-item {
  box-sizing: border-box;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid var(--qy-card-border, rgba(197, 217, 223, 0.72)) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.48) !important;
  box-shadow: 0 8px 20px rgba(36, 72, 86, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

html.dark[data-qy-route="knowledge"] .qy-knowledge-doc-card,
html.dark[data-qy-route="knowledge"] .cus-scroll-y > .n-card.mt-5 .n-list-item {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none;
}

html[data-qy-route="knowledge"] .qy-knowledge-doc-card:hover,
html[data-qy-route="knowledge"] .cus-scroll-y > .n-card.mt-5 .n-list-item:hover {
  border-color: rgba(49, 108, 114, 0.45) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(36, 72, 86, 0.1);
}

html[data-qy-route="knowledge"] .qy-knowledge-doc-card .n-list-item__divider,
html[data-qy-route="knowledge"] .cus-scroll-y > .n-card.mt-5 .n-list-item .n-list-item__divider {
  display: none !important;
}

html[data-qy-route="knowledge"] .n-drawer .markdown-body,
html[data-qy-route="knowledge"] .n-drawer .custom-html-style {
  font-size: 14.5px;
  line-height: 1.7;
  word-break: break-word;
}

@media (max-width: 720px) {
  html[data-qy-route="knowledge"] .qy-knowledge-card-grid,
  html[data-qy-route="knowledge"] .cus-scroll-y > .n-card.mt-5 .n-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  html[data-qy-route="knowledge"] .qy-knowledge-doc-card,
  html[data-qy-route="knowledge"] .cus-scroll-y > .n-card.mt-5 .n-list-item {
    min-height: 0;
    height: auto !important;
    overflow: visible !important;
    padding: 14px 16px !important;
  }
}

/* 登录、注册页左侧说明 */
.qy-auth-parent {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  box-sizing: border-box;
  padding: 28px 16px 36px;
}

.qy-auth-orbit {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  color: rgba(100, 116, 139, 0.7);
}

.qy-auth-orbit svg {
  position: absolute;
  left: -6%;
  top: 8%;
  width: min(760px, 68vw);
  height: auto;
  animation: qy-float 12s ease-in-out infinite alternate;
}

html.dark .qy-auth-orbit {
  color: rgba(203, 213, 225, 0.55);
}

.qy-auth__intro,
.qy-auth-parent > .n-card {
  position: relative;
  z-index: 1;
}

.qy-auth-parent > .n-card.mx-auto {
  width: min(440px, 100%) !important;
  margin: 0 !important;
  flex: none;
}

.qy-auth__intro {
  width: min(440px, 100%);
  text-align: center;
}

/* 登录页：tabs + 登录卡同列叠放（桌面横排时不会被挤到中间） */
.qy-login-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  width: min(440px, 100%);
  gap: 10px;
  position: relative;
  z-index: 1;
  flex: none;
}

.qy-login-stack > .n-card.mx-auto {
  width: 100% !important;
  margin: 0 !important;
  flex: none;
}

.qy-login-stack > .qy-email-login {
  width: 100%;
  position: relative;
  z-index: 2;
  margin: 0;
  flex: none;
}

.qy-auth-parent > .qy-login-stack {
  position: relative;
  z-index: 1;
}

.qy-email-login__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(197, 217, 223, 0.75);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(36, 72, 86, 0.08);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

html.dark .qy-email-login__tabs {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 28, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.qy-email-login__tab {
  appearance: none;
  margin: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.qy-email-login__tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.45);
}

html.dark .qy-email-login__tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.qy-email-login__tab.is-active {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

html.dark .qy-email-login__tab.is-active {
  color: #0f172a;
  background: #e5e9f0;
  box-shadow: none;
}

/* 邮箱/密码登录共用同一张原生卡：只切换字段可见性，不另起一套表单样式 */
.qy-login-shell--code .qy-login-row--password,
.qy-login-shell--code .qy-login-row--confirm,
.qy-login-shell--code .qy-login-row--invite,
.qy-login-shell--code .qy-login-row--terms {
  display: none !important;
}

.qy-login-shell--code .qy-login-row--code {
  display: block !important;
}

.qy-login-shell--password .qy-login-row--code,
.qy-login-shell--password .qy-login-row--confirm,
.qy-login-shell--password .qy-login-row--invite,
.qy-login-shell--password .qy-login-row--terms {
  display: none !important;
}

.qy-email-login__msg {
  margin: 0;
  padding: 0 4px;
  min-height: 0;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.qy-email-login__msg[hidden] {
  display: none !important;
}

.qy-email-login__msg.is-bad {
  color: #dc2626;
}

form.qy-login-form {
  display: block;
  margin: 0;
  padding: 0;
}

.qy-auth__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
}

.qy-auth__mark::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: none;
  letter-spacing: 0;
  background-color: currentColor;
  -webkit-mask: var(--qy-orbit) center / contain no-repeat;
  mask: var(--qy-orbit) center / contain no-repeat;
  animation: qy-orbit-rock 8s ease-in-out infinite alternate;
}

html.dark .qy-auth__mark {
  color: #f8fafc;
}

.qy-auth__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #0f172a;
}

html.dark .qy-auth__title {
  color: #f8fafc;
}

.qy-auth__desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
}

.qy-auth__list {
  display: none;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.qy-auth__list li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

html.dark .qy-auth__list li {
  color: #cbd5e1;
}

.qy-auth__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #316c72;
}

@media (min-width: 980px) {
  .qy-auth-parent {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 72px;
    padding: 40px 32px;
  }

  .qy-auth__intro {
    width: 340px;
    text-align: left;
  }

  .qy-auth__list {
    display: block;
  }
}

@media (max-width: 979px) {
  .qy-auth-orbit svg {
    left: -28%;
    top: -6%;
    width: 150%;
    opacity: 0.55;
  }
}

.n-card.mx-auto.max-w-md .p-6 > .qy-captcha {
  margin-top: 16px !important;
  width: 100%;
}

.qy-captcha[hidden] {
  display: none !important;
}

.qy-captcha__row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.qy-captcha__pic {
  box-sizing: border-box;
  width: 132px;
  height: 42px;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(15, 17, 21, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html:not(.dark) .qy-captcha__pic {
  background: #e8edf3;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.qy-captcha__pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.qy-captcha__field {
  box-sizing: border-box;
  flex: 1 1 0;
  width: 1px;
  min-width: 0;
  height: 42px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 17, 21, 0.72);
  color: #f8fafc;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.12em;
}

html:not(.dark) .qy-captcha__field {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border-color: #e2e8f0;
}

.qy-captcha__field:focus {
  outline: 2px solid rgba(49, 108, 114, 0.45);
  outline-offset: 1px;
}

.qy-captcha__field::placeholder {
  letter-spacing: 0;
  color: #94a3b8;
}

@media (max-width: 700px) {
  .qy-captcha__row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .qy-captcha__pic {
    width: 100%;
    max-width: 100%;
    height: 48px;
  }

  .qy-captcha__field {
    flex: none;
    width: 100%;
    min-width: 0;
    height: 44px;
  }
}

/* 各页页头：一句说明加主操作，底下用一条细弧线分开内容 */
.qy-pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 12px;
  padding: 0 2px 12px;
  position: relative;
}

html.qy-authed .qy-pagehead {
  margin-top: 0;
  padding-right: 2px;
  box-sizing: border-box;
  width: 100%;
}

html.qy-authed.qy-sider-dock .qy-pagehead {
  margin-bottom: 10px;
  padding-bottom: 10px;
  min-height: 36px;
}

.qy-pagehead__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(197, 217, 223, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #334155;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.qy-pagehead__back[hidden] {
  display: none !important;
}

.qy-pagehead__back:hover {
  background: rgba(143, 212, 216, 0.22);
  border-color: rgba(49, 108, 114, 0.4);
}

.qy-pagehead__back:active {
  transform: scale(0.96);
}

.qy-pagehead__back svg {
  width: 18px;
  height: 18px;
  display: block;
}

html.dark .qy-pagehead__back {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.qy-pagehead__text {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 10px 12px;
  min-width: 0;
  flex-wrap: nowrap;
}

.qy-pagehead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  border: 1px solid rgba(49, 108, 114, 0.32);
  border-top: 0;
  border-radius: 0 0 80px 80px;
  pointer-events: none;
}

html.dark .qy-pagehead::after {
  border-color: rgba(143, 212, 216, 0.35);
}

.qy-pagehead__title {
  flex: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--qy-ink);
}

html.dark .qy-pagehead__title {
  color: #f8fafc;
}

.qy-pagehead__desc {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--qy-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .qy-pagehead__text {
    flex-wrap: wrap;
  }

  .qy-pagehead__desc {
    flex: 1 1 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .qy-sub__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

.qy-pagehead__btn {
  flex: none;
  height: 36px !important;
  padding: 0 16px !important;
}

/* 仪表盘永久入口：公告下方，信息横排居中 */
.qy-keep {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin: 14px 0 16px;
  padding: 14px 18px;
  border: 1px solid rgba(49, 108, 114, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 28px rgba(49, 108, 114, 0.06);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  text-align: center;
}

html.dark .qy-keep {
  border-color: rgba(143, 212, 216, 0.24);
  background: rgba(24, 24, 28, 0.55);
  box-shadow: none;
}

.qy-keep__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  min-width: 0;
}

.qy-keep__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: #316c72;
  white-space: nowrap;
}

html.dark .qy-keep__label {
  color: #8fd4d8;
}

.qy-keep__dot {
  color: #94a3b8;
  font-weight: 600;
}

.qy-keep__host {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #0f172a;
  white-space: nowrap;
}

html.dark .qy-keep__host {
  color: #f8fafc;
}

.qy-keep__desc {
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
}

html.dark .qy-keep__desc {
  color: #94a3b8;
}

.qy-keep__note {
  width: 100%;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #316c72;
  text-align: center;
}

html.dark .qy-keep__note {
  color: #8fd4d8;
}

.qy-keep__actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.qy-keep__btn {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .qy-keep {
    gap: 12px;
    padding: 14px 14px;
  }

  .qy-keep__host {
    font-size: 18px;
  }

  .qy-keep__actions {
    width: 100%;
    justify-content: center;
  }

  .qy-keep__actions .qy-btn {
    flex: 1 1 0;
    max-width: 140px;
  }
}

.qy-dock {
  display: none;
}

@media (max-width: 640px) {
  .qy-pagehead {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .qy-pagehead__btn {
    width: 100%;
  }

  html[data-qy-route="dashboard"] .qy-pagehead__btn {
    display: none;
  }

  html:not(.qy-authed) .qy-dock,
  html:not(.qy-authed) .n-back-top {
    display: none !important;
  }

  html.qy-has-dock.qy-authed .qy-dock {
    display: none !important;
  }

  html.dark.qy-has-dock.qy-authed .qy-dock {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(24, 24, 28, 0.94);
  }

  html.qy-has-dock.qy-authed .qy-dock .qy-btn {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px !important;
    padding: 0 12px;
  }

  html.qy-has-dock.qy-authed .cus-scroll-y {
    padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }
}

/* 点击反馈 */
.n-button:not(.n-button--disabled) {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, opacity 0.22s ease;
}

.n-button:not(.n-button--disabled):active {
  transform: translateY(1px) scale(0.975);
}

.card-item:active,
.n-list:has(.break-anywhere) .n-list-item:active,
.mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item:active {
  transform: translateY(0) scale(0.99);
}

/* 页面未就绪：模糊 + 中央遮罩，避免半成品闪现 */
html.qy-page-pending #app {
  filter: blur(10px) !important;
  opacity: 0.42 !important;
  pointer-events: none !important;
  transition: filter 0.28s ease, opacity 0.28s ease !important;
}

html.qy-gate-open.qy-page-pending #app {
  visibility: hidden !important;
  filter: none !important;
  opacity: 0 !important;
}

.qy-page-veil {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  background: rgba(231, 238, 245, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

html.dark .qy-page-veil {
  background: rgba(16, 18, 22, 0.62);
}

html.qy-page-pending .qy-page-veil,
html.qy-routing .qy-page-veil {
  opacity: 1;
  visibility: visible;
}

html.qy-gate-open .qy-page-veil {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.qy-page-veil__card {
  min-width: 168px;
  max-width: 86vw;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(197, 217, 223, 0.8);
  box-shadow: 0 12px 40px rgba(36, 72, 86, 0.12);
  text-align: center;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

html.dark .qy-page-veil__card {
  background: rgba(30, 34, 40, 0.88);
  border-color: rgba(71, 85, 105, 0.55);
  color: #cbd5e1;
}

.qy-page-veil__spin {
  width: 22px;
  height: 22px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 2px solid rgba(61, 122, 130, 0.22);
  border-top-color: #3d7a82;
  animation: qy-veil-spin 0.7s linear infinite;
}

@keyframes qy-veil-spin {
  to { transform: rotate(360deg); }
}

/* 路由切换进度与内容过渡 */
.qy-progress {
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.qy-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(143, 212, 216, 0.15), #8fd4d8 42%, #316c72);
  box-shadow: 0 0 12px rgba(49, 108, 114, 0.4);
}

html.qy-routing .qy-progress {
  opacity: 1;
}

html.qy-routing .qy-progress__bar {
  width: 70%;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html.qy-route-done .qy-progress {
  opacity: 1;
  animation: qy-progress-fade 0.45s ease 0.12s forwards;
}

html.qy-route-done .qy-progress__bar {
  width: 100%;
  transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes qy-progress-fade {
  to { opacity: 0; }
}

@keyframes qy-page-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

html.qy-enter .cus-scroll-y,
html.qy-enter .qy-auth-parent {
  animation: qy-page-in 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

html.qy-gate-open.qy-enter .qy-auth-parent,
html.qy-gate-leave.qy-enter .qy-auth-parent {
  animation: none;
}

/* 登录前的简介页 */
.qy-gate {
  position: fixed;
  z-index: 5000;
  inset: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(280px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 7vh 7vw;
  overflow: hidden;
  color: #0f172a;
  background:
    radial-gradient(circle at 76% 42%, rgba(143, 212, 216, 0.22), transparent 26%),
    linear-gradient(165deg, #f8fafc 0%, #e7eef5 100%);
  transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}

html.dark .qy-gate {
  color: #f8fafc;
  background:
    radial-gradient(circle at 76% 42%, rgba(49, 108, 114, 0.34), transparent 28%),
    linear-gradient(165deg, #16181d 0%, #0f1115 100%);
}

html.qy-gate-open,
html.qy-gate-open body {
  overflow: hidden;
}

html.qy-gate-open #app {
  pointer-events: none;
}

html.qy-gate-open .qy-auth-parent {
  transform: translate3d(72px, 0, 0);
  opacity: 0;
}

html.qy-gate-open.qy-gate-leave .qy-auth-parent {
  transform: none;
  opacity: 1;
  transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.62s ease;
}

html.qy-gate-leave .qy-gate {
  transform: translate3d(-14%, 0, 0);
  opacity: 0;
  pointer-events: none;
}

.qy-gate__copy {
  position: relative;
  z-index: 1;
  order: 1;
  max-width: 440px;
}

.qy-gate__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.qy-gate__mark::before {
  content: "";
  width: 28px;
  height: 28px;
  background: currentColor;
  -webkit-mask: var(--qy-orbit) center / contain no-repeat;
  mask: var(--qy-orbit) center / contain no-repeat;
  animation: qy-orbit-rock 7s ease-in-out infinite alternate;
}

.qy-gate__title {
  margin: 14px 0 0;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.qy-gate__break {
  display: none;
}

.qy-gate__lead {
  margin: 16px 0 0;
  max-width: 38em;
  color: #64748b;
  font-size: 16px;
  line-height: 1.75;
}

html.dark .qy-gate__lead,
html.dark .qy-gate__points {
  color: #cbd5e1;
}

.qy-gate__points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #334155;
}

.qy-gate__points li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 16px;
}

.qy-gate__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #316c72;
}

.qy-gate__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #94a3b8;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.qy-gate__go::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.qy-gate__go:hover {
  color: #334155;
}

.qy-gate__go:hover::after {
  width: 28px;
}

.qy-gate__go:focus-visible {
  outline: 2px solid #5fb3b9;
  outline-offset: 4px;
}

html.dark .qy-gate__go {
  color: #94a3b8;
  background: transparent;
}

html.dark .qy-gate__go:hover {
  color: #f8fafc;
  background: transparent;
}

.qy-gate__mark,
.qy-gate__title,
.qy-gate__lead,
.qy-gate__points li,
.qy-gate__go {
  animation: qy-gate-rise 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.qy-gate__title { animation-delay: 0.08s; }
.qy-gate__lead { animation-delay: 0.16s; }
.qy-gate__points li:nth-child(1) { animation-delay: 0.24s; }
.qy-gate__points li:nth-child(2) { animation-delay: 0.32s; }
.qy-gate__points li:nth-child(3) { animation-delay: 0.4s; }
.qy-gate__go { animation-delay: 0.5s; }

.qy-gate__sky {
  position: relative;
  order: 2;
  height: min(560px, 68vh);
  overflow: hidden;
}

.qy-gate__glow {
  position: absolute;
  left: 24%;
  top: 18%;
  width: 52%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 212, 216, 0.42), transparent 68%);
  pointer-events: none;
  animation: qy-glow 7s ease-in-out infinite alternate;
}

html.dark .qy-gate__glow {
  background: radial-gradient(circle, rgba(49, 108, 114, 0.55), transparent 70%);
}

.qy-gate__dust {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #5ea8ac;
  pointer-events: none;
  animation: qy-dust 7.5s ease-in-out infinite;
}

.qy-gate__dust:nth-child(3n) { background: #f0b27a; }
.qy-gate__dust:nth-child(3n + 1) { width: 3px; height: 3px; }

.qy-gate__comet {
  position: absolute;
  width: 86px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(49, 108, 114, 0.9));
  pointer-events: none;
  animation: qy-comet 8s linear infinite;
}

.qy-gate__comet--b {
  width: 54px;
  opacity: 0.7;
  animation-duration: 11.5s;
  animation-delay: -4.5s;
}

.qy-gate__halo {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 110px;
  height: 110px;
  margin: -55px 0 0 -55px;
  border: 1px solid rgba(49, 108, 114, 0.45);
  border-radius: 50%;
  pointer-events: none;
  animation: qy-halo 3.8s ease-out infinite;
}

.qy-gate__halo--late { animation-delay: -1.9s; }

html.dark .qy-gate__halo { border-color: rgba(143, 212, 216, 0.4); }

.qy-gate__beacon {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #316c72;
  box-shadow: 0 0 0 4px rgba(49, 108, 114, 0.16);
  pointer-events: none;
  animation: qy-beacon 7s linear infinite;
}

.qy-gate__beacon--b {
  width: 5px;
  height: 5px;
  margin: -2px 0 0 -2px;
  background: #f0b27a;
  box-shadow: 0 0 0 3px rgba(240, 178, 122, 0.2);
  animation-duration: 9s;
  animation-delay: -4s;
}

.qy-gate__star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #316c72;
  opacity: 0.35;
  animation: qy-gate-twinkle 2.2s ease-in-out infinite;
}

.qy-gate__system,
.qy-gate__tilt,
.qy-gate__route {
  position: absolute;
  inset: 0;
}

.qy-gate__tilt {
  left: 50%;
  top: 46%;
  width: 92%;
  height: 92%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.qy-gate__tilt--b { transform: translate(-50%, -50%) rotate(24deg); }
.qy-gate__tilt--c { transform: translate(-50%, -50%) rotate(-6deg); }

.qy-gate__spin {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(100, 116, 139, 0.42);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

html.dark .qy-gate__spin { border-color: rgba(203, 213, 225, 0.28); }

.qy-gate__spin--a { width: 86%; height: 38%; }
.qy-gate__spin--b { width: 64%; height: 28%; border-style: dashed; }
.qy-gate__spin--c { width: 108%; height: 52%; opacity: 0.55; }

.qy-gate__body {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff, #dbe3ec 42%, #64748b);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.qy-gate__spin--b .qy-gate__body {
  width: 10px;
  height: 10px;
}

.qy-gate__spin--c .qy-gate__body {
  width: 8px;
  height: 8px;
  background: #316c72;
  box-shadow: none;
}

.qy-gate__core {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #fff 0 16%, #e8eef5 46%, #94a3b8 78%);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  animation: qy-core-float 4.2s ease-in-out infinite alternate;
}

html.dark .qy-gate__core {
  background: radial-gradient(circle at 34% 32%, #f8fafc 0 14%, #64748b 48%, #1e293b 80%);
}

.qy-gate__core::before,
.qy-gate__core::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  border: 1.5px solid rgba(71, 85, 105, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  animation: qy-ring-rock 5.5s ease-in-out infinite alternate;
}

.qy-gate__core::before {
  width: 132px;
  height: 28px;
}

.qy-gate__core::after {
  width: 168px;
  height: 42px;
  opacity: 0.45;
}

.qy-gate__route {
  inset: auto 0 4% 0;
  height: 120px;
  color: rgba(49, 108, 114, 0.72);
  pointer-events: none;
}

.qy-gate__route svg { width: 100%; height: 100%; }

.qy-gate__route path {
  stroke-dasharray: 3 9;
  animation: qy-gate-dash 4.5s linear infinite;
}

@keyframes qy-core-float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -16px, 0); }
}

@keyframes qy-ring-rock {
  from { transform: translate(-50%, -50%) rotate(-24deg); }
  to { transform: translate(-50%, -50%) rotate(-6deg); }
}

@keyframes qy-gate-twinkle {
  0%, 100% { opacity: 0.18; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1); }
}

@keyframes qy-gate-dash {
  to { stroke-dashoffset: -160; }
}

@keyframes qy-glow {
  from { transform: translate3d(-8%, 4%, 0) scale(0.92); opacity: 0.55; }
  to { transform: translate3d(10%, -8%, 0) scale(1.12); opacity: 1; }
}

@keyframes qy-dust {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.2; }
  50% { transform: translate3d(16px, -26px, 0); opacity: 0.95; }
}

@keyframes qy-comet {
  0% { left: -18%; top: 16%; opacity: 0; transform: rotate(-16deg); }
  10% { opacity: 1; }
  42% { left: 108%; top: 48%; opacity: 0; }
  100% { left: 108%; top: 48%; opacity: 0; }
}

.qy-gate__comet--b {
  animation-name: qy-comet-b;
}

@keyframes qy-comet-b {
  0% { left: 110%; top: 12%; opacity: 0; transform: rotate(198deg); }
  12% { opacity: 0.8; }
  46% { left: -20%; top: 58%; opacity: 0; }
  100% { left: -20%; top: 58%; opacity: 0; }
}

@keyframes qy-halo {
  0% { transform: scale(0.85); opacity: 0.55; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes qy-beacon {
  0% { left: 2%; top: 74%; }
  45% { left: 54%; top: 42%; }
  100% { left: 97%; top: 24%; }
}

@keyframes qy-gate-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .qy-gate {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0;
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    padding:
      max(16px, env(safe-area-inset-top))
      22px
      max(20px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .qy-gate__sky {
    position: relative;
    order: 0;
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    height: auto;
    overflow: hidden;
    opacity: 1;
  }

  .qy-gate__copy {
    order: 1;
    flex: none;
    width: 100%;
    max-width: none;
    padding: 4px 2px 2px;
    background: transparent;
  }

  .qy-gate__break {
    display: block;
  }

  .qy-gate__mark {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .qy-gate__title {
    margin-top: 10px;
    font-size: clamp(34px, 10.5vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.03em;
  }

  .qy-gate__lead {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.7;
  }

  .qy-gate__points {
    margin-top: 10px;
  }

  .qy-gate__points li {
    padding: 5px 0 5px 16px;
    font-size: 15px;
  }

  .qy-gate__go {
    width: auto;
    min-height: 44px;
    margin-top: 8px;
    padding: 8px 0;
    -webkit-tap-highlight-color: transparent;
  }

  .qy-gate__core {
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
  }

  .qy-gate__halo {
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
  }

  .qy-gate__comet { width: 64px; }
  .qy-gate__comet--b { width: 40px; }

  .qy-gate__glow {
    left: 12%;
    top: 6%;
    width: 76%;
    height: 58%;
  }

  .qy-gate__core::before {
    width: 108px;
    height: 22px;
  }

  .qy-gate__core::after {
    width: 138px;
    height: 34px;
  }

  .qy-gate__route {
    height: 72px;
  }
}

@media (max-width: 860px) and (max-height: 700px) {
  .qy-gate__sky {
    min-height: 0;
    flex-basis: 0;
  }

  .qy-gate__title {
    font-size: 32px;
  }

  .qy-gate__route {
    height: 46px;
  }

  .qy-gate__halo {
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
  }
}

@media (max-height: 520px) {
  .qy-gate {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100svh;
    max-height: 100svh;
    padding: 12px 22px max(12px, env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .qy-gate__sky {
    order: 0;
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }

  .qy-gate__copy {
    order: 1;
    max-width: none;
  }

  .qy-gate__title {
    margin-top: 6px;
    font-size: 28px;
  }

  .qy-gate__lead {
    margin-top: 8px;
    font-size: 14px;
  }

  .qy-gate__points { margin-top: 6px; }

  .qy-gate__points li { padding: 3px 0 3px 16px; }

  .qy-gate__go { margin-top: 4px; }
}

@media (max-height: 520px) and (min-width: 700px) {
  .qy-gate {
    display: grid;
    grid-template-columns: minmax(240px, 380px) minmax(200px, 1fr);
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
  }

  .qy-gate__sky {
    order: 2;
    width: auto;
    height: 100%;
    min-height: 0;
  }

  .qy-gate__copy {
    order: 1;
    width: auto;
    max-width: 380px;
  }
}

/* 未登录或简介页打开时不显示 Crisp */
html:not(.qy-authed) .crisp-client,
html:not(.qy-authed) #crisp-chatbox,
html.qy-gate-open .crisp-client,
html.qy-gate-open #crisp-chatbox {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Crisp 收成站点的深色圆角按钮；宽屏聊天窗跟卡片同一套圆角和阴影 */
html.qy-authed .crisp-client {
  --crisp-color-theme-100: 236, 244, 245 !important;
  --crisp-color-theme-200: 100, 116, 139 !important;
  --crisp-color-theme-500: 52, 58, 64 !important;
  --crisp-color-theme-600: 35, 39, 43 !important;
  --crisp-color-theme-700: 30, 41, 59 !important;
  --crisp-color-theme-800: 22, 28, 36 !important;
  --crisp-color-theme-900: 15, 23, 42 !important;
  --crisp-color-theme-reverse: 248, 250, 252 !important;
}

html.dark.qy-authed .crisp-client {
  --crisp-color-theme-100: 36, 42, 48 !important;
  --crisp-color-theme-200: 148, 163, 184 !important;
  --crisp-color-theme-500: 232, 236, 241 !important;
  --crisp-color-theme-600: 248, 250, 252 !important;
  --crisp-color-theme-700: 226, 232, 240 !important;
  --crisp-color-theme-800: 203, 213, 225 !important;
  --crisp-color-theme-900: 248, 250, 252 !important;
  --crisp-color-theme-reverse: 15, 23, 42 !important;
}

/* 右下角：Crisp 保持外挂原位；微信/回顶按实测圆形对齐，就绪后一起显示 */
html.qy-authed {
  --qy-fab-right: 24px;
  --qy-fab-size: 52px;
  --qy-fab-gap: 12px;
  --qy-fab-bottom: 24px;
  --qy-fab-step: 64px;
  --qy-fab-radius: 50%;
}

html.qy-authed:not(.qy-fab-ready) .qy-wechat-wrap,
html.qy-authed:not(.qy-fab-ready) .n-back-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.qy-authed.qy-fab-ready .qy-wechat-wrap,
html.qy-authed.qy-fab-ready .n-back-top {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease;
}

html.qy-authed .n-back-top {
  box-sizing: border-box !important;
  right: var(--qy-fab-right) !important;
  bottom: calc(var(--qy-fab-bottom) + var(--qy-fab-step)) !important;
  width: var(--qy-fab-size) !important;
  height: var(--qy-fab-size) !important;
  min-width: var(--qy-fab-size) !important;
  min-height: var(--qy-fab-size) !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

html.qy-authed.qy-wechat .n-back-top {
  bottom: calc(var(--qy-fab-bottom) + var(--qy-fab-step) * 2) !important;
}

html.qy-authed #crisp-chatbox [data-id="chat_opened"] {
  background: #343a40 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(49, 108, 114, 0.45) !important;
}

html.dark.qy-authed #crisp-chatbox [data-id="chat_opened"] {
  background: #e8eef2 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(143, 212, 216, 0.4) !important;
}

html.qy-authed #crisp-chatbox[data-large-view="true"] > div > [data-visible] {
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16) !important;
  outline: 1px solid rgba(226, 232, 240, 0.95);
  outline-offset: -1px;
}

html.dark.qy-authed #crisp-chatbox[data-large-view="true"] > div > [data-visible] {
  outline-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4) !important;
}

/* 未登录 / 简介页：桌面+移动都不露出回顶与微信浮层（Crisp 见上方 hide） */
html:not(.qy-authed) .n-back-top,
html.qy-gate-open .n-back-top,
html:not(.qy-authed) .qy-wechat-wrap,
html.qy-gate-open .qy-wechat-wrap {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.qy-wechat-wrap {
  box-sizing: border-box;
  position: fixed;
  z-index: 1000001;
  right: var(--qy-fab-right, 24px);
  bottom: calc(var(--qy-fab-bottom, 24px) + var(--qy-fab-step, 64px));
  width: var(--qy-fab-size, 52px);
  height: var(--qy-fab-size, 52px);
}

.qy-wechat-wrap[hidden] {
  display: none !important;
}

.qy-wechat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #343a40;
  color: #f8fafc;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(49, 108, 114, 0.45);
  cursor: pointer;
}

.qy-wechat svg {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
}

html.dark .qy-wechat {
  background: #e8eef2;
  color: #1e293b;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(143, 212, 216, 0.4);
}

.qy-wechat__card {
  display: none;
  position: absolute;
  right: calc(100% + 12px);
  bottom: 0;
  width: min(280px, calc(100vw - 110px));
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.qy-wechat__card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

html.dark .qy-wechat__card {
  background: #1b212b;
}

@media (min-width: 641px) {
  .qy-wechat-wrap:hover .qy-wechat__card,
  .qy-wechat-wrap.is-open .qy-wechat__card {
    display: block;
  }
}

.qy-wechat__layer {
  position: fixed;
  z-index: 1000005;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.qy-wechat__layer[hidden] {
  display: none !important;
}

.qy-wechat__mask {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.46);
}

.qy-wechat__sheet {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: auto;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  color: #0f172a;
}

html.dark .qy-wechat__sheet {
  background: #1b212b;
  color: #f8fafc;
}

.qy-wechat__view {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
}

.qy-wechat__hint {
  margin: 10px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

.qy-wechat__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.qy-wechat__save,
.qy-wechat__close {
  flex: 1 1 0;
  min-height: 42px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.qy-wechat__save {
  border: 0;
  background: #343a40;
  color: #fff;
}

html.dark .qy-wechat__save {
  background: #e8eef2;
  color: #0f172a;
}

.qy-wechat__close {
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: transparent;
  color: inherit;
}

/* 侧栏：隐藏「我的工单」 */
.side-menu .n-menu-item.qy-menu-ticket-hidden,
.n-drawer .n-menu-item.qy-menu-ticket-hidden {
  display: none !important;
}

/* 工单页：硬禁用遮罩；侧栏/顶栏菜单抬高以便切走 */
.qy-ticket-tip {
  box-sizing: border-box;
  position: fixed;
  z-index: 1000004;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  overflow: auto;
}

.qy-ticket-tip[hidden] {
  display: none !important;
}

.qy-ticket-tip__mask {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.46);
  cursor: default;
  pointer-events: auto;
}

/* 锁定时允许切换菜单：侧栏与移动顶栏压过遮罩 */
html.qy-ticket-locked.qy-sider-dock .n-layout-sider {
  z-index: 1000006 !important;
}

html.qy-ticket-locked.qy-sider-overlay .n-layout-sider,
html.qy-ticket-locked.qy-sider-overlay .n-drawer-container:has(.side-menu),
html.qy-ticket-locked.qy-sider-overlay .n-drawer.n-drawer--left-placement {
  z-index: 1000006 !important;
}

html.qy-ticket-locked.qy-sider-overlay article > header.qy-topbar {
  z-index: 1000006 !important;
}

.qy-ticket-tip__card {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 22px 20px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(143, 212, 216, 0.42), transparent 34%),
    linear-gradient(165deg, #f8fafc, #e7eef5);
  color: #0f172a;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.22);
}

html.dark .qy-ticket-tip__card {
  background:
    radial-gradient(circle at 80% 12%, rgba(49, 108, 114, 0.42), transparent 28%),
    linear-gradient(165deg, #1a2230, #0f141c);
  color: #f8fafc;
}

.qy-ticket-tip__mark {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #316c72;
}

html.dark .qy-ticket-tip__mark {
  color: #8fd4d8;
}

.qy-ticket-tip__title {
  margin: 8px 0 0;
  font-size: clamp(18px, 4.5vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.qy-ticket-tip__body {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

html.dark .qy-ticket-tip__body {
  color: #cbd5e1;
}

.qy-ticket-tip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.qy-ticket-tip__primary {
  box-sizing: border-box;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  background: #343a40;
  color: #fff;
}

html.dark .qy-ticket-tip__primary {
  background: #e8eef2;
  color: #0f172a;
}

@media (max-width: 640px) {
  .qy-ticket-tip {
    align-items: flex-end;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .qy-ticket-tip__card {
    width: 100%;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 18px 16px 14px;
    border-radius: 18px 18px 14px 14px;
  }

  .qy-ticket-tip__actions {
    flex-direction: column;
  }
}

/* 未登录时不露出仪表盘 */
html.qy-guest-lock #app {
  visibility: hidden !important;
}

/* 公告弹层：桌面/手机都限制在视口内，避免撑出屏幕 */
.n-modal.w-150 {
  box-sizing: border-box !important;
  width: min(600px, calc(100vw - 32px)) !important;
  max-width: min(600px, calc(100vw - 32px)) !important;
  max-height: min(85dvh, calc(100dvh - 32px)) !important;
}

.n-modal.w-150 .n-card {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: inherit !important;
  min-height: 0 !important;
  overflow: hidden !important;
  --n-border-radius: 18px !important;
  border-radius: 18px !important;
}

.n-modal.w-150 .n-card-header {
  flex: none !important;
}

.n-modal.w-150 .n-card__content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.n-modal.w-150 .markdown-body,
.n-modal.w-150 .n-card__content {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.n-modal.w-150 .markdown-body img,
.n-modal.w-150 .markdown-body video,
.n-modal.w-150 .markdown-body iframe,
.n-modal.w-150 .markdown-body table,
.n-modal.w-150 .markdown-body pre {
  max-width: 100% !important;
}

.n-modal.w-150 .markdown-body pre {
  overflow-x: auto !important;
}

@media (max-width: 640px) {
  .n-modal-container:has(.n-modal.w-150) .n-modal-body-wrapper,
  .n-modal-container:has(.n-modal.w-150) .n-modal-scroll-content {
    box-sizing: border-box !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    height: 100% !important;
    max-height: 100dvh !important;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important;
  }

  .n-modal.w-150 {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    transform: none !important;
  }

  .n-modal.w-150 .n-card-header {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .n-modal.w-150 .n-card__content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* 公告背景板：只换底色，不改弹出层排版 */
[data-qy-board="orbit"],
html .n-modal.w-150 .n-card[data-qy-board="orbit"] {
  background: radial-gradient(circle at 88% 0%, rgba(143, 212, 216, 0.55), transparent 36%), linear-gradient(165deg, #f8fafc, #e7eef5) !important;
  color: #0f172a !important;
}
[data-qy-board="night"],
html .n-modal.w-150 .n-card[data-qy-board="night"] {
  background: radial-gradient(circle at 80% 12%, rgba(49, 108, 114, 0.45), transparent 28%), linear-gradient(165deg, #1a2230, #0f141c) !important;
  color: #f8fafc !important;
}
[data-qy-board="paper"],
html .n-modal.w-150 .n-card[data-qy-board="paper"] {
  background: linear-gradient(165deg, #f7f1e6, #efe2cf) !important;
  color: #3f3428 !important;
}
[data-qy-board="tide"],
html .n-modal.w-150 .n-card[data-qy-board="tide"] {
  background: linear-gradient(135deg, #173f45, #2b6a71 58%, #4a9499) !important;
  color: #f8fafc !important;
}
[data-qy-board="amber"],
html .n-modal.w-150 .n-card[data-qy-board="amber"] {
  background: linear-gradient(180deg, #fff8eb, #ffedd5) !important;
  color: #431407 !important;
}
html .n-modal.w-150 .n-card[data-qy-board] .markdown-body,
html .n-modal.w-150 .n-card[data-qy-board] .n-card-header__main,
html .n-modal.w-150 .n-card[data-qy-board] .n-card-header {
  color: inherit !important;
}

/* 会话公告 */
.qy-announce {
  box-sizing: border-box;
  position: fixed;
  z-index: 1000003;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.46);
  overflow: auto;
}

.qy-announce__card {
  box-sizing: border-box;
  position: relative;
  width: min(440px, 100%);
  max-width: 100%;
  max-height: min(78dvh, calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 22px;
  padding: 26px 24px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.qy-announce__mark {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.qy-announce__title {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.qy-announce__body {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.qy-announce__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.qy-announce__go,
.qy-announce__quiet {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.qy-announce__go {
  border: 0;
  background: #343a40;
  color: #fff;
}

.qy-announce__quiet {
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: transparent;
  color: inherit;
}

.qy-announce--orbit {
  color: #0f172a;
  background:
    radial-gradient(circle at 88% 0%, rgba(143, 212, 216, 0.45), transparent 34%),
    linear-gradient(165deg, #f8fafc, #e7eef5);
}
.qy-announce--orbit .qy-announce__mark,
.qy-announce--orbit .qy-announce__body { color: #475569; }

.qy-announce--night {
  color: #f8fafc;
  background:
    radial-gradient(circle at 80% 12%, rgba(49, 108, 114, 0.45), transparent 28%),
    linear-gradient(165deg, #1a2230, #0f141c);
}
.qy-announce--night .qy-announce__body { color: #cbd5e1; }

.qy-announce--paper {
  color: #3f3428;
  background:
    linear-gradient(#f7f1e6, #f7f1e6) padding-box,
    linear-gradient(#e6d3b8, #c4a078) border-box;
  border: 1px solid transparent;
}
.qy-announce--paper .qy-announce__body { color: #6b5844; }

.qy-announce--tide {
  color: #f8fafc;
  background: linear-gradient(135deg, #173f45, #2b6a71 58%, #4a9499);
}
.qy-announce--tide .qy-announce__body { color: rgba(248, 250, 252, 0.82); }

.qy-announce--amber {
  color: #431407;
  background: linear-gradient(180deg, #fff8eb, #ffedd5);
  box-shadow: inset 4px 0 0 #ea580c, 0 24px 60px rgba(15, 23, 42, 0.18);
}
.qy-announce--amber .qy-announce__mark { color: #c2410c; }
.qy-announce--amber .qy-announce__body { color: #7c2d12; }

.qy-announce--night .qy-announce__go,
.qy-announce--tide .qy-announce__go {
  background: #f8fafc;
  color: #0f172a;
}

html.dark .qy-announce--orbit {
  color: #f8fafc;
  background:
    radial-gradient(circle at 88% 0%, rgba(49, 108, 114, 0.4), transparent 34%),
    linear-gradient(165deg, #1c2430, #12161c);
}
html.dark .qy-announce--orbit .qy-announce__mark,
html.dark .qy-announce--orbit .qy-announce__body { color: #cbd5e1; }
html.dark .qy-announce--orbit .qy-announce__go { background: #e8eef2; color: #0f172a; }

@media (max-width: 640px) {
  .qy-announce {
    align-items: flex-start;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .qy-announce__card {
    width: 100%;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 18px 16px 14px;
    border-radius: 18px;
  }

  .qy-announce__title {
    font-size: clamp(18px, 5.5vw, 22px);
  }

  .qy-announce__body {
    font-size: 14px;
    line-height: 1.65;
  }

  .qy-announce__actions {
    flex-direction: column;
  }

  .qy-announce__go,
  .qy-announce__quiet {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qy-announce { animation: none; }
}

@media (max-width: 980px) {
  body,
  html.dark body {
    background-position: right -180px top -170px, 0 0 !important;
    background-size: 360px 360px, auto !important;
  }
}

@media (max-width: 640px) {
  body {
    background-image: linear-gradient(165deg, #f8fafc 0%, #eef2f6 48%, #e7edf4 100%) !important;
  }

  html.dark body {
    background-image: linear-gradient(165deg, #16181d 0%, #101216 100%) !important;
  }

  body::after,
  html::before {
    display: none;
  }
}

/* 手机端 */
@media (max-width: 640px) {
  .cus-scroll-y {
    padding: 10px !important;
  }

  html.qy-authed .cus-scroll-y {
    padding: 46px 12px 16px !important;
  }

  .mb-1.md\:mb-10 > .n-card.text-white .carousel-img {
    height: 136px !important;
    padding: 18px 20px !important;
  }

  .mb-1.md\:mb-10 > .n-card.text-white .carousel-img > div:last-child > :first-child {
    font-size: 18px !important;
  }

  .mb-1.md\:mb-10 > .n-card.mt-1 {
    margin-top: 10px !important;
  }

  .mb-1.md\:mb-10 > .n-card.mt-1 .text-xl {
    font-size: 19px !important;
  }

  .qy-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .qy-stat {
    padding: 10px 12px;
  }

  .qy-stat__value {
    font-size: 17px;
  }

  .qy-actions .qy-btn,
  .qy-keep__actions .qy-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 14px;
  }

  article > header .n-icon,
  article > header .n-base-icon,
  .n-dropdown-option-body__prefix .n-icon,
  .n-dropdown-option-body__prefix .n-base-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 24px !important;
  }

  article > header .n-icon svg,
  article > header .n-base-icon svg,
  .n-dropdown-option-body__prefix .n-icon svg,
  .n-dropdown-option-body__prefix .n-base-icon svg,
  .n-input__eye .n-icon,
  .n-input__eye .n-base-icon,
  .n-input__eye svg,
  .n-input__prefix .n-icon,
  .n-input__prefix .n-base-icon,
  .n-input__prefix svg,
  .n-input__suffix .n-icon,
  .n-input__suffix .n-base-icon,
  .n-input__suffix svg {
    width: 20px !important;
    height: 20px !important;
  }

  .side-menu .n-menu-item-content__icon {
    width: 24px !important;
    height: 24px !important;
  }

  .side-menu .n-menu-item-content__icon .n-icon,
  .side-menu .n-menu-item-content__icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .mb-1.md\:mb-10 > .n-card.mt-5 .text-3xl {
    background-size: 18px 18px !important;
  }

  .card-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .card-container .card-item {
    min-width: 0 !important;
  }

  .qy-node-bar {
    padding: 12px;
  }

  .qy-node-bar__tools {
    width: 100%;
  }

  .qy-filters {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .qy-filters::-webkit-scrollbar {
    display: none;
  }

  .qy-search {
    width: 100%;
  }

  .qy-search input {
    width: 100%;
    font-size: 16px;
  }

  .n-list:has(.break-anywhere) .n-list-item {
    min-height: 0;
    padding: 12px 14px 12px !important;
  }

  .n-list:has(.break-anywhere) .n-list-item .flex:has(> .break-anywhere) {
    gap: 8px;
  }

  .n-list:has(.break-anywhere) .break-anywhere {
    font-size: 15px !important;
  }

  .qy-dash-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .qy-stats,
  .qy-stats--mini,
  .qy-stats--pair,
  .qy-traffic .qy-stats--mini {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
  }

  .qy-compares {
    grid-template-columns: minmax(0, 1fr);
  }

  .qy-panel {
    padding: 14px 14px 12px;
  }

  .qy-log__row {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    font-size: 12.5px;
    align-items: start;
  }

  .qy-rate,
  .qy-log__head span:nth-child(4) {
    display: none;
  }

  .qy-invite-link input {
    font-size: 16px;
  }

  .qy-invite-code {
    flex-direction: column;
    align-items: stretch;
  }

  .qy-invite-code .qy-btn {
    width: 100%;
  }

  .qy-invite-code__value {
    font-size: 20px;
  }

  .qy-auth-parent {
    min-height: 100dvh;
    padding:
      max(24px, env(safe-area-inset-top))
      16px
      max(24px, env(safe-area-inset-bottom));
  }

  .qy-auth__mark {
    font-size: 18px;
    letter-spacing: 0.1em;
  }

  .qy-auth__title {
    font-size: 24px;
  }

  .n-card.mx-auto.max-w-md {
    width: 100% !important;
  }

  .n-card.mx-auto.max-w-md h1 {
    font-size: 26px !important;
  }

  .n-card.mx-auto.max-w-md .n-card__content > div:last-child {
    flex-wrap: wrap;
    justify-content: center !important;
    row-gap: 4px;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .n-card.mx-auto.max-w-md .n-input .n-input__input-el,
  .n-card.mx-auto.max-w-md input,
  .n-input .n-input__input-el {
    font-size: 16px !important;
  }

  .max-w-1200 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .max-w-1200 > h2.text-3xl,
  .max-w-1200 > h2.text-3xl.font-normal {
    font-size: 26px !important;
    line-height: 1.35 !important;
  }

  .qy-panel__head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .qy-order {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 8px;
  }

  .qy-order__name,
  .qy-order__meta {
    white-space: normal;
    overflow: visible;
  }

  .n-data-table-base-table {
    overflow-x: auto;
  }

  .cus-scroll-y {
    padding-left: max(10px, env(safe-area-inset-left)) !important;
    padding-right: max(10px, env(safe-area-inset-right)) !important;
  }
}

@media (max-width: 980px) {
  .qy-dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-item,
  .card-item:hover,
  .mb-1.md\:mb-10 > .n-card.text-white,
  .mb-1.md\:mb-10 > .n-card.mt-5 .n-list-item,
  .n-list:has(.break-anywhere) .n-list-item {
    transition: none !important;
    transform: none !important;
  }

  .qy-pulse {
    animation: none;
  }

  .qy-progress,
  .qy-progress__bar,
  html.qy-enter .cus-scroll-y,
  html.qy-enter .qy-auth-parent,
  body::after,
  html::before,
  .title-text::before,
  .qy-auth__mark::before,
  .n-card.mx-auto.max-w-md h1::before,
  .qy-auth-orbit svg,
  .qy-gate__mark,
  .qy-gate__title,
  .qy-gate__lead,
  .qy-gate__points li,
  .qy-gate__go,
  .qy-gate__mark::before,
  html.qy-gate-open .qy-auth-parent,
  html.qy-gate-leave .qy-auth-parent,
  .n-button {
    animation: none !important;
    transition: none !important;
  }
}
