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

html {
  --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='%23ffffff' stop-opacity='.96'/%3E%3Cstop offset='.46' stop-color='%23e7eef6' stop-opacity='.88'/%3E%3Cstop offset='1' stop-color='%23c5d0dc' stop-opacity='.16'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg transform='translate(280 246) rotate(-22)' fill='none' stroke='%2394a3b8' stroke-opacity='.5' 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='%23316c72' stroke-opacity='.42' 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='%23316c72' fill-opacity='.72'/%3E%3Ccircle cx='467' cy='206' r='3' fill='%23316c72' fill-opacity='.55'/%3E%3Ccircle cx='288' cy='358' r='2.4' fill='%2364748b' fill-opacity='.42'/%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: var(--qy-sky), linear-gradient(165deg, #f8fafc 0%, #eef2f6 48%, #e7edf4 100%) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: right -210px top -150px, 0 0 !important;
  background-size: 520px 520px, auto !important;
  background-attachment: 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: var(--qy-sky), linear-gradient(165deg, #16181d 0%, #101216 100%) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: right -210px top -150px, 0 0 !important;
  background-size: 520px 520px, auto !important;
  background-attachment: 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(148, 163, 184, 0.28), transparent 68%);
}

html.dark body::before {
  background: radial-gradient(circle, rgba(71, 85, 105, 0.28), 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(226, 232, 240, 0.92) 17% 46%, transparent 48%),
    radial-gradient(ellipse 46px 14px at 50% 56%, transparent 54%, rgba(100, 116, 139, 0.42) 60%, transparent 68%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  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.55) 0 14%, rgba(71, 85, 105, 0.55) 15% 46%, transparent 48%),
    radial-gradient(ellipse 46px 14px at 50% 56%, transparent 54%, rgba(143, 212, 216, 0.45) 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.45);
  box-shadow:
    28vw 8vh 0 0 rgba(148, 163, 184, 0.55),
    -8vw 38vh 0 0.5px rgba(100, 116, 139, 0.35),
    46vw 46vh 0 0 rgba(49, 108, 114, 0.28),
    8vw -12vh 0 0 rgba(148, 163, 184, 0.4);
  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: rgba(255, 255, 255, 0.78) !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;
}

article > header {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
}

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

.title-text {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  color: #1e293b !important;
}

.title-text::before {
  content: "";
  width: 22px;
  height: 22px;
  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;
}

.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(52, 58, 64, 0.08) !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;
  }
}

/* 卡片 */
html:not(.dark) .n-card {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
  backdrop-filter: blur(16px);
}

html.dark .n-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 {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.92) !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;
}

/* 表格、弹窗、提示 */
.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: 20px !important;
}

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

::-webkit-scrollbar-thumb {
  background-color: rgba(100, 116, 139, 0.35) !important;
  border-radius: 8px;
}

/* 问号悬停提示：深色气泡配浅色字，避免沿用正文色后看不清 */
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;
}

/* 订单总额卡：原底是 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: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

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优秀线路\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 #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  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, #ffffff 0%, #f4fafa 100%) !important;
  border-top: 3px solid #316c72 !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 #e2e8f0 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  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: #ffffff !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;
}

/* 侧栏和仪表盘捷径：换成同一套细线图标 */
.side-menu .n-menu-item-content__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
}

.side-menu .n-menu-item-content__icon .n-icon,
.side-menu .n-menu-item-content__icon svg {
  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 / 18px 18px no-repeat;
  mask: var(--qy-icon) center / 18px 18px 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 {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 20px 20px !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.7' 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.7' 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.7' 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.7' 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.7' 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.7' 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.7' 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.7' 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.7' 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.7' 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.7' 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.7' 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.7' 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;
}

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

/* 套餐卡片：等高，名称与价格上下排列，表格撑满，按钮通栏 */
.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: column;
  align-items: flex-start !important;
  gap: 8px;
  padding: 22px 22px 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: 34px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

.card-container .card-item .n-card__content {
  flex: 1 1 auto;
  padding: 6px 22px 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 {
  width: 18px;
  height: 18px;
}

.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(150px, 1fr));
  gap: 10px;
}

.qy-stat {
  padding: 12px 14px;
  border-radius: 14px;
}

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

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;
  color: #64748b;
}

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

.qy-stat__value {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: #0f172a;
}

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

.qy-stat__hint {
  margin-top: 2px;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.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: 600;
  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: 18px 18px 16px;
  border-radius: 18px;
}

html:not(.dark) .qy-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

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);
}

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

.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(3, minmax(0, 1fr));
}

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

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

.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: 52px minmax(0, 1fr) minmax(0, 1fr) 42px minmax(52px, auto);
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #334155;
}

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-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.86);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

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-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(4, minmax(0, 1fr));
}

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

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

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;
}

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: 8px;
  margin-top: 8px;
  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__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}

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

.qy-sub__usage {
  margin-top: 8px;
}

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

.qy-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  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;
}

.qy-order__name {
  font-size: 14px;
  font-weight: 650;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.qy-order__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: none;
}

.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-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;
}

.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;
}

/* 各页页头：一句说明加主操作，底下用一条细弧线分开内容 */
.qy-pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 2px 2px 14px;
  position: relative;
}

.qy-pagehead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 22%;
  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 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #0f172a;
}

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

.qy-pagehead__desc {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
}

.qy-pagehead__btn {
  flex: none;
  height: 36px !important;
  padding: 0 16px !important;
}

.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: flex;
    position: fixed;
    z-index: 40;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
  }

  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 0;
    height: 40px !important;
  }

  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);
}

/* 路由切换进度与内容过渡 */
.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;
  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 .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);
}

.qy-gate__star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #316c72;
  opacity: 0.35;
  animation: qy-gate-twinkle 3.6s 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%;
  animation: qy-gate-spin 24s linear infinite;
}

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; animation-duration: 16s; animation-direction: reverse; }
.qy-gate__spin--c { width: 108%; height: 52%; opacity: 0.55; animation-duration: 34s; }

.qy-gate__body {
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  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;
  margin: -5px 0 0 -5px;
}

.qy-gate__spin--c .qy-gate__body {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  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-float 7s 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);
}

.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 9s linear infinite;
}

@keyframes qy-gate-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@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-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: 100dvh;
    max-height: 100dvh;
    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 auto;
    width: 100%;
    min-height: 210px;
    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__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: 150px;
    flex-basis: 150px;
  }

  .qy-gate__title {
    font-size: 32px;
  }
}

/* 未登录或简介页打开时不显示 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;
}

html.qy-authed #crisp-chatbox [role="button"]:has([data-id="chat_opened"]) {
  right: 18px !important;
  bottom: 18px !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
}

html.qy-has-dock.qy-authed #crisp-chatbox [role="button"]:has([data-id="chat_opened"]) {
  bottom: calc(78px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 640px) {
  html.qy-authed #crisp-chatbox [role="button"]:has([data-id="chat_opened"]) {
    right: 18px !important;
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
  }

  html.qy-has-dock.qy-authed #crisp-chatbox [role="button"]:has([data-id="chat_opened"]) {
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }

  .n-back-top {
    right: 18px !important;
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
  }

  html.qy-has-dock .n-back-top {
    bottom: calc(140px + env(safe-area-inset-bottom)) !important;
  }

  .n-modal.w-150 {
    top: max(12px, env(safe-area-inset-top)) !important;
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    transform: none !important;
  }

  .n-modal-body-wrapper,
  .n-modal-scroll-content {
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .n-modal.w-150 .n-card__content {
    max-height: calc(100dvh - 132px - env(safe-area-inset-bottom)) !important;
    overflow: auto !important;
  }
}

html.qy-authed #crisp-chatbox [data-id="chat_opened"] {
  border-radius: 16px !important;
  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;
}

/* 未登录时不露出仪表盘 */
html.qy-guest-lock #app {
  visibility: hidden !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 {
  position: fixed;
  z-index: 1000003;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.46);
}

.qy-announce__card {
  position: relative;
  width: min(440px, 100%);
  max-height: min(78vh, 640px);
  overflow: auto;
  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__card { padding: 22px 18px 16px; }
  .qy-announce__title { font-size: 22px; }
  .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;
  }

  .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 {
    flex: 1 1 0;
    padding: 0 12px;
  }

  .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--mini,
  .qy-traffic .qy-stats--mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qy-compares {
    grid-template-columns: minmax(0, 1fr);
  }

  .qy-panel {
    padding: 14px 14px 12px;
  }

  .qy-log__row {
    grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 6px;
    font-size: 12.5px;
  }

  .qy-rate,
  .qy-log__head span:nth-child(4) {
    display: none;
  }

  .qy-invite-link input {
    font-size: 16px;
  }

  .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 {
    align-items: flex-start;
  }

  .qy-order__name {
    white-space: normal;
  }

  .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,
  .qy-gate__mark,
  .qy-gate__title,
  .qy-gate__lead,
  .qy-gate__points li,
  .qy-gate__go,
  .qy-gate__spin,
  .qy-gate__core,
  .qy-gate__star,
  .qy-gate__route path,
  .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;
  }
}
