/**
 * QieYun Dashboard v3.44.2 — Dark Premium SaaS
 */

[data-theme="slate"] .qy-dashboard-layout.fw-layout,
[data-theme="purple"] .qy-dashboard-layout.fw-layout,
[data-theme="cyan"] .qy-dashboard-layout.fw-layout {
  background: #0a0a0a !important;
}

[data-theme="slate"] .qy-dashboard-layout.fw-layout::before,
[data-theme="purple"] .qy-dashboard-layout.fw-layout::before,
[data-theme="cyan"] .qy-dashboard-layout.fw-layout::before {
  display: block !important;
  background:
    radial-gradient(ellipse 50% 40% at 15% 10%, rgba(16, 185, 129, 0.08), transparent 55%),
    radial-gradient(ellipse 45% 35% at 85% 80%, rgba(59, 130, 246, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(139, 92, 246, 0.05), transparent 60%) !important;
}

[data-theme="slate"] .qy-pg-navbar,
[data-theme="purple"] .qy-pg-navbar,
[data-theme="cyan"] .qy-pg-navbar {
  background: rgba(10, 10, 10, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

[data-theme="slate"] .qy-pg-navbar .qy-nav-item.fw-nav-pill,
[data-theme="purple"] .qy-pg-navbar .qy-nav-item.fw-nav-pill,
[data-theme="cyan"] .qy-pg-navbar .qy-nav-item.fw-nav-pill {
  color: rgba(226, 232, 240, 0.65) !important;
}

[data-theme="slate"] .qy-pg-navbar .qy-nav-item.fw-nav-pill:hover,
[data-theme="purple"] .qy-pg-navbar .qy-nav-item.fw-nav-pill:hover,
[data-theme="cyan"] .qy-pg-navbar .qy-nav-item.fw-nav-pill:hover {
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="slate"] .qy-pg-navbar .qy-nav-item.fw-nav-pill.active,
[data-theme="purple"] .qy-pg-navbar .qy-nav-item.fw-nav-pill.active,
[data-theme="cyan"] .qy-pg-navbar .qy-nav-item.fw-nav-pill.active {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

/* ===== 仪表盘布局 — 最终对齐方案 ===== */
[data-theme="slate"] .qy-dashboard-layout.fw-layout,
[data-theme="purple"] .qy-dashboard-layout.fw-layout,
[data-theme="cyan"] .qy-dashboard-layout.fw-layout {
  --qy-dx-side-w: 520px;
  --qy-dx-dash-gap: 16px;
  --qy-dx-dash-pad-x: 24px;
  --qy-dx-dash-max: 1680px;
  --qy-pg-max: var(--qy-dx-dash-max);
  --qy-dash-max: var(--qy-dx-dash-max);
  --qy-main-w: none;
}

[data-theme="slate"] .qy-dashboard-layout.fw-layout .qy-main,
[data-theme="purple"] .qy-dashboard-layout.fw-layout .qy-main,
[data-theme="cyan"] .qy-dashboard-layout.fw-layout .qy-main {
  background: transparent !important;
  max-width: var(--qy-dx-dash-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 24px var(--qy-dx-dash-pad-x) 40px !important;
  box-sizing: border-box !important;
}

/* 顶栏与主内容同宽；桌面端 Logo 左 + 菜单居中 + 工具栏右（全主题统一） */
@media (min-width: 769px) {
  .qy-dashboard-layout.fw-layout .qy-pg-navbar .qy-navbar-inner {
    display: flex !important;
    grid-template-columns: unset !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    max-width: var(--qy-dx-dash-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--qy-dx-dash-pad-x) !important;
    padding-right: var(--qy-dx-dash-pad-x) !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    box-sizing: border-box !important;
    gap: 12px !important;
  }

  .qy-dashboard-layout.fw-layout .qy-pg-navbar .qy-navbar-inner::before,
  .qy-dashboard-layout.fw-layout .qy-pg-navbar .qy-navbar-inner::after {
    display: none !important;
    content: none !important;
  }

  .qy-dashboard-layout.fw-layout .qy-pg-navbar .qy-brand.qy-nav-mobile-brand,
  .qy-dashboard-layout.fw-layout .qy-pg-navbar .qy-brand.fw-brand {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    order: 0 !important;
    margin-right: 0 !important;
    width: max-content !important;
    max-width: min(200px, 18vw) !important;
    min-width: 0 !important;
  }

  .qy-dashboard-layout.fw-layout .qy-pg-navbar .qy-nav.qy-nav-desktop.fw-nav-pills {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    order: 0 !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .qy-dashboard-layout.fw-layout .qy-pg-navbar .qy-nav.qy-nav-desktop.fw-nav-pills::-webkit-scrollbar {
    display: none !important;
  }

  .qy-dashboard-layout.fw-layout .qy-pg-navbar .qy-navbar-actions,
  .qy-dashboard-layout.fw-layout .qy-pg-navbar .qy-navbar-actions.fw-nav-utils {
    flex: 0 0 auto !important;
    order: 0 !important;
    min-width: 0 !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
  }
}

/* Grid layout — 默认（手机/平板单列由下方 media 控制） */
.qy-dx-dash .qy-ref-grid {
  grid-template-columns: 1fr !important;
  gap: 22px !important;
  align-items: start !important;
}

.qy-dx-dash .qy-ref-main,
.qy-dx-dash .qy-ref-side {
  gap: 22px !important;
  min-width: 0;
}

.qy-dx-dash .qy-ref-side {
  width: 100% !important;
}

.qy-dx-dash .qy-ref-side .qy-ref-card,
.qy-dx-dash .qy-ref-side .qy-ref-invite,
.qy-dx-dash .qy-ref-side .qy-dx-subscribe {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* ===== Hero — 绿色渐变大卡 ===== */
.qy-dx-hero {
  position: relative;
  min-height: 260px !important;
  border-radius: 20px !important;
  background: linear-gradient(125deg, #047857 0%, #059669 28%, #10b981 55%, #059669 78%, #065f46 100%) !important;
  box-shadow:
    0 20px 50px rgba(5, 150, 105, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset !important;
  border: none !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qy-dx-hero:hover {
  transform: translateY(-2px);
  box-shadow:
    0 28px 60px rgba(5, 150, 105, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

.qy-dx-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 92% 15%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 8% 85%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.qy-dx-hero .qy-ref-banner-body {
  padding: 32px 36px !important;
  max-width: calc(100% - 240px) !important;
  color: #fff;
  position: relative;
  z-index: 1;
}

.qy-dx-hero .qy-ref-greet {
  font-size: 14px !important;
  opacity: 0.92;
  margin-bottom: 8px !important;
}

.qy-dx-hero .qy-ref-greet span {
  font-weight: 600;
}

.qy-dx-hero .qy-ref-plan {
  font-size: 28px !important;
  font-weight: 800 !important;
  margin-bottom: 24px !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.qy-dx-stats {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  padding: 0 !important;
  list-style: none;
}

.qy-dx-stats li {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, transform 0.2s;
}

.qy-dx-stats li:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
}

.qy-dx-stats .qy-ref-stat-ico {
  display: flex !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qy-dx-stats .qy-ref-stat-ico .qy-ico {
  width: 18px;
  height: 18px;
  color: #fff;
}

.qy-dx-stat-text em {
  display: block;
  font-style: normal;
  font-size: 11px;
  opacity: 0.88;
  margin-bottom: 3px;
  font-weight: 500;
}

.qy-dx-stat-text strong {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.qy-dx-hero .qy-ref-banner-btns {
  gap: 12px;
}

.qy-dx-btn-charge,
.qy-dx-btn-gift {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 11px 22px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.qy-dx-btn-charge {
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%) !important;
  color: #047857 !important;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.85) inset !important;
}

.qy-dx-btn-charge:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

.qy-dx-btn-gift {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

.qy-dx-btn-gift:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

.qy-dx-btn-charge > span:first-child,
.qy-dx-btn-gift > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.qy-dx-btn-charge > span:first-child {
  background: rgba(5, 150, 105, 0.14);
}

.qy-dx-btn-gift > span:first-child {
  background: rgba(255, 255, 255, 0.22);
}

.qy-dx-btn-charge .qy-ico,
.qy-dx-btn-gift .qy-ico {
  width: 15px;
  height: 15px;
}

.qy-dx-hero-art {
  width: 240px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding-right: 20px;
  position: relative;
  z-index: 1;
}

.qy-dx-hero-art .qy-ref-art-svg {
  max-height: 200px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.2));
}

/* ===== 深色玻璃卡片 ===== */
[data-theme="slate"] .qy-dx-card,
[data-theme="purple"] .qy-dx-card,
[data-theme="cyan"] .qy-dx-card {
  background: linear-gradient(168deg, rgba(20, 20, 20, 0.94) 0%, rgba(10, 10, 10, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 16px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.48),
    0 16px 48px rgba(0, 0, 0, 0.58) !important;
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  padding: 24px 26px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

[data-theme="slate"] .qy-dx-card:hover,
[data-theme="purple"] .qy-dx-card:hover,
[data-theme="cyan"] .qy-dx-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.2) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.06) inset !important;
}

.qy-dx-card::before,
.qy-dx-card::after {
  display: none !important;
}

.qy-dx-card-head {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin-bottom: 20px !important;
}

.qy-dx-card-head h2 {
  font-size: 17px !important;
  font-weight: 700 !important;
  margin: 0 0 4px !important;
  color: #f1f5f9 !important;
  letter-spacing: -0.01em;
}

.qy-dx-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qy-dx-card-icon .qy-ico {
  width: 20px;
  height: 20px;
}

.qy-dx-card-icon-violet {
  background: rgba(139, 92, 246, 0.18);
  color: #a78bfa;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.qy-dx-card-icon-amber {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.12);
}

.qy-dx-card-icon-blue {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

[data-theme="slate"] .qy-dx-download .qy-pg-dl-desc,
[data-theme="purple"] .qy-dx-download .qy-pg-dl-desc,
[data-theme="cyan"] .qy-dx-download .qy-pg-dl-desc {
  color: #94a3b8 !important;
  margin: 0 !important;
  font-size: 12px;
}

[data-theme="slate"] .qy-dx-sub-desc,
[data-theme="purple"] .qy-dx-sub-desc,
[data-theme="cyan"] .qy-dx-sub-desc {
  display: block !important;
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

/* ===== v3 图二布局：上方平台图标 + 下方客户端列表 ===== */
.qy-dx-download-v3 .qy-dx-plat-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.qy-dx-plat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.qy-dx-plat-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(148, 163, 184, 0.24);
  transform: translateY(-1px);
}

.qy-dx-plat-card.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.qy-dx-plat-card--ios.active {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(167, 139, 250, 0.45);
}

.qy-dx-plat-card--android.active {
  background: rgba(61, 220, 132, 0.1);
  border-color: rgba(61, 220, 132, 0.4);
}

.qy-dx-plat-card--windows.active {
  background: rgba(0, 120, 212, 0.12);
  border-color: rgba(0, 120, 212, 0.45);
}

.qy-dx-plat-card--macos.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(129, 140, 248, 0.45);
}

.qy-dx-plat-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.qy-dx-plat-logo .qy-dx-fc-os-svg {
  width: 44px;
  height: 44px;
  display: block;
}

.qy-dx-plat-logo .qy-dx-fc-os-svg--android,
.qy-dx-plat-logo .qy-dx-fc-os-svg--windows {
  width: 44px;
  height: 44px;
}

.qy-dx-plat-logo .qy-dx-fc-os-svg--windows {
  display: block;
}

.qy-dx-plat-card--ios .qy-dx-fc-os-svg--ios { color: #c4b5fd; }
.qy-dx-plat-card--macos .qy-dx-fc-os-svg--macos { color: #a5b4fc; }
.qy-dx-plat-card--android .qy-dx-fc-os-svg--android path { fill: #3DDC84; }
.qy-dx-plat-card--windows .qy-dx-fc-os-svg--windows path { fill: #0078D4; }

.qy-dx-plat-label {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}

/* PC：横向四卡大卡片（恢复 v3.64.25 格局） */
.qy-dx-download-v3 .qy-dx-fc-grid--platform {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 14px;
  margin-bottom: 22px;
  overflow-x: visible;
  width: 100%;
}

.qy-dx-download-v3 .qy-dx-fc-grid--platform .qy-dx-fc-card {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 268px;
  height: auto;
}

.qy-dx-fc-grid--platform .qy-dx-fc-body-mobile,
.qy-dx-fc-grid--platform .qy-dx-fc-active-wrap {
  display: none;
}

.qy-dx-fc-grid--platform .qy-dx-fc-body-desktop {
  display: block;
}

.qy-dx-fc-grid--platform .qy-dx-fc-foot {
  display: flex;
}

.qy-dx-fc-grid--platform .qy-dx-fc-visual {
  flex: 1;
  min-height: 130px;
  padding: 36px 20px 12px;
}

.qy-dx-fc-grid--platform .qy-dx-fc-platform-logo {
  width: 92px;
  height: 92px;
}

.qy-dx-fc-grid--platform .qy-dx-fc-os-svg {
  width: 76px;
  height: 76px;
}

.qy-dx-fc-grid--platform .qy-dx-fc-os-svg--android,
.qy-dx-fc-grid--platform .qy-dx-fc-os-svg--windows {
  width: 72px;
  height: 72px;
}

.qy-dx-fc-grid--platform .qy-dx-fc-body {
  flex: 0 0 auto;
  padding: 0 18px 14px;
  text-align: left;
}

.qy-dx-fc-platform {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.qy-dx-fc-client {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.82;
}

.qy-dx-fc-active-wrap {
  flex-shrink: 0;
  padding: 0 12px 14px;
  text-align: center;
}

.qy-dx-fc-active-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 16px;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #fff;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.qy-dx-fc-active-pill:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.qy-dx-fc-grid--platform .qy-dx-fc-card--ios .qy-dx-fc-active-pill {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}
.qy-dx-fc-grid--platform .qy-dx-fc-card--android .qy-dx-fc-active-pill {
  background: linear-gradient(135deg, #059669, #047857);
}
.qy-dx-fc-grid--platform .qy-dx-fc-card--windows .qy-dx-fc-active-pill {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.qy-dx-fc-grid--platform .qy-dx-fc-card--macos .qy-dx-fc-active-pill {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.qy-dx-fc-grid--platform .qy-dx-fc-card--ios .qy-dx-fc-platform { color: #4c1d95; }
.qy-dx-fc-grid--platform .qy-dx-fc-card--ios .qy-dx-fc-client { color: rgba(76, 29, 149, 0.78); }
.qy-dx-fc-grid--platform .qy-dx-fc-card--windows .qy-dx-fc-platform { color: #1e3a8a; }
.qy-dx-fc-grid--platform .qy-dx-fc-card--windows .qy-dx-fc-client { color: rgba(30, 58, 138, 0.78); }
.qy-dx-fc-grid--platform .qy-dx-fc-card--android .qy-dx-fc-platform { color: #065f46; }
.qy-dx-fc-grid--platform .qy-dx-fc-card--android .qy-dx-fc-client { color: rgba(6, 95, 70, 0.78); }
.qy-dx-fc-grid--platform .qy-dx-fc-card--macos .qy-dx-fc-platform { color: #3730a3; }
.qy-dx-fc-grid--platform .qy-dx-fc-card--macos .qy-dx-fc-client { color: rgba(55, 48, 163, 0.78); }

@media (max-width: 1100px) {
  .qy-dx-download-v3 .qy-dx-fc-grid--platform {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .qy-dx-download-v3 .qy-dx-fc-grid--platform .qy-dx-fc-card {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
    width: clamp(200px, 46vw, 300px) !important;
    min-width: clamp(200px, 46vw, 300px) !important;
    max-width: clamp(200px, 46vw, 300px) !important;
  }
}

@media (max-width: 768px) {
  .qy-dx-dash .qy-ref-main,
  .qy-dx-dash .qy-ref-grid,
  .qy-dx-download-v3 .qy-dx-fc-grid--platform .qy-dx-fc-card {
    position: relative;
    z-index: 1;
  }

  .qy-dx-download-v3 .qy-dx-fc-grid--platform {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .qy-dx-download-v3 .qy-dx-fc-grid--platform .qy-dx-fc-card {
    flex: unset !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 164px;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-body-mobile {
    display: block;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-body-desktop,
  .qy-dx-fc-grid--platform .qy-dx-fc-foot {
    display: none !important;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-active-wrap {
    display: block;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-visual {
    flex: 0 0 auto;
    min-height: 78px;
    padding: 18px 10px 4px;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-platform-logo {
    width: 64px;
    height: 64px;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-os-svg {
    width: 52px;
    height: 52px;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-os-svg--android,
  .qy-dx-fc-grid--platform .qy-dx-fc-os-svg--windows {
    width: 48px;
    height: 48px;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-body {
    padding: 0 12px 8px;
    text-align: center;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-card.is-active {
    transform: none;
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.24),
      0 0 0 2px rgba(255, 255, 255, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-card--ios.is-active {
    box-shadow:
      0 12px 32px rgba(91, 33, 182, 0.28),
      0 0 0 2px rgba(167, 139, 250, 0.75),
      0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-card--android.is-active {
    box-shadow:
      0 12px 32px rgba(6, 95, 70, 0.28),
      0 0 0 2px rgba(110, 231, 183, 0.75),
      0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-card--windows.is-active {
    box-shadow:
      0 12px 32px rgba(30, 58, 138, 0.28),
      0 0 0 2px rgba(147, 197, 253, 0.75),
      0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-card--macos.is-active {
    box-shadow:
      0 12px 32px rgba(67, 56, 202, 0.28),
      0 0 0 2px rgba(165, 180, 252, 0.75),
      0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  }

  .qy-dx-fc-platform {
    font-size: 14px;
  }

  .qy-dx-fc-client {
    font-size: 11px;
  }

  .qy-dx-fc-active-pill {
    min-height: 32px;
    padding: 6px 14px;
    font-size: 11px;
  }
}

.qy-dx-fc-card.is-active {
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transform: translateY(-4px);
}

.qy-dx-fc-clients-section {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.qy-dx-fc-clients-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}

.qy-dx-fc-clients-panel {
  animation: qyDxClientsIn 0.28s ease;
}

@keyframes qyDxClientsIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.qy-dx-fc-clients-empty {
  margin: 0;
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(148, 163, 184, 0.15);
  border-radius: 12px;
}

.qy-dx-fc-more-section {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.qy-dx-fc-more-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}

.qy-dx-download-v3 .qy-dx-dl-grid,
.qy-dx-download-v3 .qy-pg-dl-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .qy-dx-download-v3 .qy-dx-dl-grid,
  .qy-dx-download-v3 .qy-pg-dl-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .qy-dx-download-v3 .qy-dx-plat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .qy-dx-plat-card {
    padding: 16px 10px;
  }

  .qy-dx-plat-logo {
    width: 48px;
    height: 48px;
  }

  .qy-dx-plat-logo .qy-dx-fc-os-svg {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 520px) {
  .qy-dx-download-v3 .qy-dx-plat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* legacy: v2 Featured 彩色大卡片（v3 已改用上方平台图标行） */

/* OS tabs — v2 Featured cards 模式下隐藏（legacy） */
.qy-dx-download-v2 .qy-dx-os-row,
.qy-dx-download-v2 .qy-pg-os-row,
.qy-dx-download-v2 .qy-dx-dl-grid,
.qy-dx-download-v2 .qy-pg-dl-grid {
  display: none !important;
}

/* ===== Featured 彩色卡片 — 图一风格 ===== */
.qy-dx-fc-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.qy-dx-fc-grid .qy-dx-fc-card {
  flex: 1 1 0;
  min-width: 0;
}

.qy-dx-fc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.qy-dx-fc-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.qy-dx-fc-card--ios {
  background: linear-gradient(180deg, #ede9fe 0%, #ddd6fe 38%, #c4b5fd 72%, #a78bfa 100%);
}

.qy-dx-fc-card--windows {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 40%, #bfdbfe 72%, #93c5fd 100%);
}

.qy-dx-fc-card--android {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 42%, #a7f3d0 74%, #6ee7b7 100%);
}

.qy-dx-fc-card--macos {
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 42%, #c7d2fe 74%, #a5b4fc 100%);
}

.qy-dx-fc-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.qy-dx-fc-badge--hot { color: #fca5a5; }
.qy-dx-fc-badge--rec { color: #86efac; }

.qy-dx-fc-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px 12px;
  min-height: 130px;
}

.qy-dx-fc-platform-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.12));
}

.qy-dx-fc-platform-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
}

.qy-client-logo-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
  line-height: 1;
}

.qy-dx-dl-logo img,
.qy-pg-dl-logo img {
  width: 100%;
  height: 100%;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
}

.qy-dx-dl-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qy-dx-fc-os-svg {
  width: 76px;
  height: 76px;
}

.qy-dx-fc-os-svg--android,
.qy-dx-fc-os-svg--windows {
  width: 72px;
  height: 72px;
}

.qy-dx-fc-card--ios .qy-dx-fc-os-svg--ios { color: #5b21b6; }
.qy-dx-fc-card--windows .qy-dx-fc-os-svg--windows path { fill: #0078D4; }
.qy-dx-fc-card--android .qy-dx-fc-os-svg--android path { fill: #3DDC84; }
.qy-dx-fc-card--macos .qy-dx-fc-os-svg--macos { color: #4338ca; }

.qy-dx-fc-card.is-active .qy-dx-fc-os-svg--ios,
.qy-dx-fc-card.is-active .qy-dx-fc-os-svg--macos {
  color: #fff;
}

.qy-dx-fc-card.is-active .qy-dx-fc-os-svg--android path {
  fill: #fff;
}

.qy-dx-fc-card.is-active .qy-dx-fc-os-svg--windows path {
  fill: #fff;
}

.qy-dx-fc-body {
  padding: 0 18px 14px;
  text-align: left;
}

.qy-dx-fc-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.qy-dx-fc-desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.qy-dx-fc-card--ios .qy-dx-fc-title { color: #4c1d95; }
.qy-dx-fc-card--ios .qy-dx-fc-desc { color: rgba(76, 29, 149, 0.72); }
.qy-dx-fc-card--windows .qy-dx-fc-title { color: #1e3a8a; }
.qy-dx-fc-card--windows .qy-dx-fc-desc { color: rgba(30, 58, 138, 0.72); }
.qy-dx-fc-card--android .qy-dx-fc-title { color: #065f46; }
.qy-dx-fc-card--android .qy-dx-fc-desc { color: rgba(6, 95, 70, 0.72); }
.qy-dx-fc-card--macos .qy-dx-fc-title { color: #3730a3; }
.qy-dx-fc-card--macos .qy-dx-fc-desc { color: rgba(55, 48, 163, 0.72); }

.qy-dx-fc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.qy-dx-fc-action {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.qy-dx-fc-action-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
}

.qy-dx-fc-action-ico .qy-ico {
  width: 14px;
  height: 14px;
}

.qy-dx-fc-card--ios .qy-dx-fc-action { color: #c4b5fd; }
.qy-dx-fc-card--ios .qy-dx-fc-action-ico { color: #c4b5fd; background: rgba(196, 181, 253, 0.15); }
.qy-dx-fc-card--windows .qy-dx-fc-action { color: #93c5fd; }
.qy-dx-fc-card--windows .qy-dx-fc-action-ico { color: #93c5fd; background: rgba(147, 197, 253, 0.15); }
.qy-dx-fc-card--android .qy-dx-fc-action { color: #6ee7b7; }
.qy-dx-fc-card--android .qy-dx-fc-action-ico { color: #6ee7b7; background: rgba(110, 231, 183, 0.15); }
.qy-dx-fc-card--macos .qy-dx-fc-action { color: #a5b4fc; }
.qy-dx-fc-card--macos .qy-dx-fc-action-ico { color: #a5b4fc; background: rgba(165, 180, 252, 0.15); }

.qy-dx-fc-more {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.qy-dx-fc-more-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.qy-dx-fc-more-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(148, 163, 184, 0.18);
}

.qy-dx-fc-more-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.qy-dx-fc-more-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.qy-dx-fc-more-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qy-dx-fc-more-info strong {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}

.qy-dx-fc-more-info span {
  font-size: 11px;
  color: #94a3b8;
}

.qy-dx-fc-more-arrow {
  color: #64748b;
  flex-shrink: 0;
}

.qy-dx-fc-more-arrow .qy-ico {
  width: 16px;
  height: 16px;
}

.qy-dx-fc-toggle {
  margin-top: 14px !important;
}

@media (max-width: 640px) {
  .qy-dx-download-v3 .qy-dx-fc-grid--platform {
    gap: 10px;
  }

  .qy-dx-download-v3 .qy-dx-fc-grid--platform .qy-dx-fc-card {
    min-height: 164px;
    border-radius: 16px;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-visual {
    min-height: 78px;
    padding: 18px 10px 4px;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-platform-logo {
    width: 64px;
    height: 64px;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-os-svg {
    width: 52px;
    height: 52px;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-platform {
    font-size: 14px;
  }

  .qy-dx-fc-grid--platform .qy-dx-fc-client {
    font-size: 11px;
  }

  .qy-dx-fc-active-pill {
    min-height: 32px;
    padding: 6px 14px;
    font-size: 11px;
  }
}

/* ===== Knowledge 使用文档 — 分类卡片横向一排（同下载区图二） ===== */
.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid.qy-dx-fc-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  margin-bottom: 24px !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid > .qy-dx-fc-card {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-height: 206px;
  max-height: 206px;
  border-radius: 16px;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--all {
  background: linear-gradient(180deg, #ecfeff 0%, #cffafe 32%, #67e8f9 70%, #06b6d4 100%) !important;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-visual {
  min-height: 72px;
  padding: 16px 8px 2px;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-platform-logo {
  width: 56px;
  height: 56px;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-os-svg {
  width: 46px;
  height: 46px;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-os-svg--android,
.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-os-svg--windows {
  width: 42px;
  height: 42px;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-body {
  padding: 0 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-title {
  font-size: 12px;
  line-height: 1.32;
  text-align: center;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-desc {
  font-size: 10px;
  margin-top: 3px;
  text-align: center;
  line-height: 1.35;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 10px;
  min-height: 26px;
  margin-top: auto;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 0 0 16px 16px;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-action {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-action-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-action-ico .qy-ico {
  width: 11px;
  height: 11px;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid > .qy-dx-fc-card:hover .qy-dx-fc-action-ico {
  transform: scale(1.05);
}

/* 各平台底部栏 + 按钮配色 */
.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--all .qy-dx-fc-foot {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.96) 0%, rgba(8, 145, 178, 0.98) 100%);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--all .qy-dx-fc-action {
  color: #ecfeff;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--all .qy-dx-fc-action-ico {
  color: #0891b2;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 6px rgba(8, 145, 178, 0.35);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--ios .qy-dx-fc-foot {
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.94) 0%, rgba(76, 29, 149, 0.97) 100%);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--ios .qy-dx-fc-action {
  color: #ede9fe;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--ios .qy-dx-fc-action-ico {
  color: #6d28d9;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 6px rgba(109, 40, 217, 0.32);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--android .qy-dx-fc-foot {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.94) 0%, rgba(4, 120, 87, 0.97) 100%);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--android .qy-dx-fc-action {
  color: #d1fae5;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--android .qy-dx-fc-action-ico {
  color: #047857;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 6px rgba(4, 120, 87, 0.32);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--windows .qy-dx-fc-foot {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.94) 0%, rgba(29, 78, 216, 0.97) 100%);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--windows .qy-dx-fc-action {
  color: #dbeafe;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--windows .qy-dx-fc-action-ico {
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 6px rgba(29, 78, 216, 0.32);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--macos .qy-dx-fc-foot {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.94) 0%, rgba(67, 56, 202, 0.97) 100%);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--macos .qy-dx-fc-action {
  color: #e0e7ff;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--macos .qy-dx-fc-action-ico {
  color: #4338ca;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 6px rgba(67, 56, 202, 0.32);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--default .qy-dx-fc-foot {
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.94) 0%, rgba(51, 65, 85, 0.97) 100%);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--default .qy-dx-fc-action {
  color: #e2e8f0;
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-card--default .qy-dx-fc-action-ico {
  color: #475569;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 6px rgba(51, 65, 85, 0.28);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-badge {
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-badge--hot {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.88);
}

.fw-layout .qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-badge--rec {
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.88);
}

/* OS tabs (legacy) */
.qy-dx-os-row {
  margin-bottom: 20px !important;
}

.qy-dx-os-btn {
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(148, 163, 184, 0.1) !important;
  color: #94a3b8 !important;
  transition: all 0.2s ease;
}

.qy-dx-os-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
}

.qy-dx-os-btn.active {
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.qy-dx-os-btn--windows.active {
  background: linear-gradient(145deg, #6366f1, #4f46e5) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.qy-dx-os-btn--macos.active {
  background: linear-gradient(145deg, #3b82f6, #2563eb) !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.qy-dx-os-btn--android.active {
  background: linear-gradient(145deg, #22c55e, #16a34a) !important;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

.qy-dx-os-btn--ios.active {
  background: linear-gradient(145deg, #a855f7, #9333ea) !important;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}

.qy-dx-os-btn.active .qy-pg-os-btn-count {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Download cards — 彩色渐变 */
.qy-dx-dl-grid {
  gap: 14px !important;
}

.qy-dx-dl-card {
  border-radius: 16px !important;
  padding: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qy-dx-dl-card:hover {
  transform: translateY(-3px);
}

.qy-dx-dl-card--windows {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.22) 0%, rgba(79, 70, 229, 0.12) 100%) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.qy-dx-dl-card--macos {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.22) 0%, rgba(37, 99, 235, 0.12) 100%) !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.qy-dx-dl-card--android {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.22) 0%, rgba(22, 163, 74, 0.12) 100%) !important;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
}

.qy-dx-dl-card--ios {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.22) 0%, rgba(147, 51, 234, 0.12) 100%) !important;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.12);
}

.qy-dx-dl-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.qy-dx-dl-logo {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  width: 44px !important;
  height: 44px !important;
}

[data-theme="slate"] .qy-dx-dl-card .qy-pg-dl-name,
[data-theme="purple"] .qy-dx-dl-card .qy-pg-dl-name,
[data-theme="cyan"] .qy-dx-dl-card .qy-pg-dl-name {
  color: #f1f5f9 !important;
}

[data-theme="slate"] .qy-dx-dl-card .qy-pg-dl-ver,
[data-theme="slate"] .qy-dx-dl-card .qy-pg-dl-arch,
[data-theme="purple"] .qy-dx-dl-card .qy-pg-dl-ver,
[data-theme="purple"] .qy-dx-dl-card .qy-pg-dl-arch,
[data-theme="cyan"] .qy-dx-dl-card .qy-pg-dl-ver,
[data-theme="cyan"] .qy-dx-dl-card .qy-pg-dl-arch {
  color: #94a3b8 !important;
}

.qy-dx-dl-btn-dl {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 7px 12px !important;
}

.qy-dx-dl-btn-dl:hover {
  background: rgba(59, 130, 246, 0.32) !important;
  opacity: 1 !important;
}

.qy-dx-dl-btn-tut {
  background: rgba(139, 92, 246, 0.18) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 7px 12px !important;
}

.qy-dx-dl-btn-tut:hover {
  background: rgba(139, 92, 246, 0.28) !important;
  opacity: 1 !important;
}

.qy-dx-dl-more {
  margin-top: 16px !important;
  border: 1px dashed rgba(148, 163, 184, 0.25) !important;
  border-radius: 12px !important;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.03) !important;
  transition: border-color 0.2s, color 0.2s;
}

.qy-dx-dl-more:hover {
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #93c5fd !important;
}

/* ===== 系统公告 — Premium SaaS ===== */
.qy-dx-notice-premium.qy-dx-card,
.qy-dx-notice.qy-dx-notice-premium {
  position: relative;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.82) 0%, rgba(15, 23, 42, 0.72) 52%, rgba(30, 41, 59, 0.78) 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset !important;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.qy-dx-notice-premium.qy-dx-card::before {
  content: '';
  display: block !important;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 100% 0%, rgba(251, 191, 36, 0.12) 0%, transparent 58%),
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 55%);
  opacity: 1 !important;
}

.qy-dx-notice-premium:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.22) !important;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(251, 191, 36, 0.08) inset,
    0 0 32px rgba(251, 191, 36, 0.06) !important;
}

.qy-dx-notice-head {
  position: relative;
  z-index: 1;
  margin-bottom: 18px !important;
}

.qy-dx-notice-head-left {
  align-items: center !important;
  gap: 14px !important;
}

.qy-dx-notice-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.22) 0%, rgba(245, 158, 11, 0.12) 100%) !important;
  color: #fcd34d !important;
  box-shadow:
    0 8px 24px rgba(251, 191, 36, 0.18),
    0 0 0 1px rgba(251, 191, 36, 0.16) inset !important;
}

.qy-dx-notice-icon .qy-ico {
  width: 22px !important;
  height: 22px !important;
}

.qy-dx-notice-head-text h2 {
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: #f8fafc !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.qy-dx-notice-sub {
  margin: 4px 0 0 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  line-height: 1.45;
}

.qy-dx-notice-refresh {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #cbd5e1 !important;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.qy-dx-notice-refresh .qy-ico {
  width: 18px !important;
  height: 18px !important;
}

.qy-dx-notice-refresh:hover:not(:disabled) {
  transform: translateY(-1px) rotate(18deg);
  background: rgba(59, 130, 246, 0.14) !important;
  border-color: rgba(96, 165, 250, 0.35) !important;
  color: #bfdbfe !important;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
}

.qy-dx-notice-list {
  position: relative;
  z-index: 1;
}

.qy-dx-notice-list li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 16px 14px !important;
  margin-bottom: 8px;
  border: 1px solid rgba(148, 163, 184, 0.1) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.qy-dx-notice-list li:last-child {
  margin-bottom: 0;
}

.qy-dx-notice-list li:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(96, 165, 250, 0.22) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.qy-dx-notice-list li.is-important {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(251, 191, 36, 0.22) !important;
}

.qy-dx-notice-list li.is-important:hover {
  border-color: rgba(251, 191, 36, 0.34) !important;
  box-shadow: 0 12px 32px rgba(251, 191, 36, 0.08);
}

.qy-dx-notice-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), 0 0 12px rgba(59, 130, 246, 0.45);
  flex-shrink: 0;
  margin-top: 7px;
}

.qy-dx-notice-list li.is-important .qy-dx-notice-dot {
  background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12), 0 0 14px rgba(251, 191, 36, 0.42);
}

.qy-dx-notice-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qy-dx-notice-title {
  display: block;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  letter-spacing: -0.01em;
  color: #f8fafc !important;
  margin: 0 !important;
  transition: color 0.2s;
}

.qy-dx-notice-list li:hover .qy-dx-notice-title {
  color: #bfdbfe !important;
}

.qy-dx-notice-list li.is-important .qy-dx-notice-title {
  color: #fff7ed !important;
}

.qy-dx-notice-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fef3c7;
  background: rgba(217, 119, 6, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.qy-dx-notice-date {
  display: block !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em;
  color: #94a3b8 !important;
  margin-top: 0 !important;
  font-variant-numeric: tabular-nums;
}

.qy-dx-notice-list li.is-important .qy-dx-notice-date {
  color: #fcd34d !important;
  opacity: 0.82;
}

[data-theme="light"] .qy-dx-notice-premium.qy-dx-card,
[data-theme="light"] .qy-dx-notice.qy-dx-notice-premium {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
}

[data-theme="light"] .qy-dx-notice-head-text h2 {
  color: #0f172a !important;
}

[data-theme="light"] .qy-dx-notice-title {
  color: #0f172a !important;
}

[data-theme="light"] .qy-dx-notice-list li {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(15, 23, 42, 0.06) !important;
}

[data-theme="slate"] .qy-dx-notice .qy-ref-notice-body strong,
[data-theme="purple"] .qy-dx-notice .qy-ref-notice-body strong,
[data-theme="cyan"] .qy-dx-notice .qy-ref-notice-body strong {
  color: #e2e8f0 !important;
  font-size: 15px !important;
  font-weight: 650 !important;
}

[data-theme="slate"] .qy-dx-notice .qy-ref-notice-body span,
[data-theme="purple"] .qy-dx-notice .qy-ref-notice-body span,
[data-theme="cyan"] .qy-dx-notice .qy-ref-notice-body span {
  display: block !important;
  font-size: 12px !important;
  color: #64748b !important;
  margin-top: 4px;
}

.qy-dx-refresh {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(148, 163, 184, 0.15) !important;
  color: #94a3b8 !important;
  border-radius: 10px !important;
}

.qy-dx-refresh:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #93c5fd !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

[data-theme="slate"] .qy-dx-empty,
[data-theme="purple"] .qy-dx-empty,
[data-theme="cyan"] .qy-dx-empty {
  color: #64748b !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px dashed rgba(148, 163, 184, 0.15) !important;
  border-radius: 12px;
}

/* ===== 订阅链接 — Premium SaaS 玻璃态按钮体系 v3.51.3 ===== */
.qy-dx-subscribe.qy-dx-card,
.qy-dx-subscribe.qy-ref-card {
  --qy-sub-glass: linear-gradient(155deg, rgba(38, 50, 68, 0.78) 0%, rgba(18, 26, 40, 0.58) 48%, rgba(12, 18, 30, 0.52) 100%);
  --qy-sub-glass-hover: linear-gradient(155deg, rgba(55, 70, 92, 0.88) 0%, rgba(32, 44, 62, 0.72) 48%, rgba(22, 32, 48, 0.65) 100%);
  --qy-sub-border: rgba(255, 255, 255, 0.11);
  --qy-sub-border-hover: rgba(125, 180, 255, 0.52);
  --qy-sub-glow: rgba(59, 130, 246, 0.22);
  --qy-sub-text: #f8fafc;
  --qy-sub-muted: #94a3b8;
  --qy-sub-pill-h: 46px;
  --qy-sub-pill-r: 16px;
}

.qy-dx-subscribe .qy-dx-sub-grid,
.qy-dx-subscribe .qy-sub-pills.qy-sub-grid-ref,
.qy-dx-subscribe .qy-ref-sub-grid.qy-sub-grid-ref {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
  align-content: start !important;
  justify-items: stretch !important;
}

.qy-dx-subscribe .qy-dx-sub-pill,
.qy-dx-subscribe.qy-pg-subscribe .qy-sub-pill,
.qy-dx-subscribe.qy-pg-subscribe .qy-ref-sub-btn,
.qy-dx-subscribe .qy-sub-grid-ref .qy-ref-sub-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: var(--qy-sub-pill-h) !important;
  height: var(--qy-sub-pill-h) !important;
  padding: 0 14px 0 8px !important;
  gap: 10px !important;
  border-radius: var(--qy-sub-pill-r) !important;
  box-sizing: border-box !important;
  cursor: pointer;
  overflow: hidden !important;
  background: var(--qy-sub-glass) !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
  border: 1px solid var(--qy-sub-border) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.14) !important;
  transition:
    background 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
    filter 0.2s ease !important;
}

.qy-dx-subscribe .qy-dx-sub-pill:hover,
.qy-dx-subscribe.qy-pg-subscribe .qy-sub-pill:hover,
.qy-dx-subscribe.qy-pg-subscribe .qy-ref-sub-btn:hover,
.qy-dx-subscribe .qy-sub-grid-ref .qy-ref-sub-btn:hover {
  background: var(--qy-sub-glass-hover) !important;
  border-color: var(--qy-sub-border-hover) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 8px 24px var(--qy-sub-glow),
    0 0 0 1px rgba(96, 165, 250, 0.14) !important;
  transform: scale(1.02) translateY(-1px) !important;
  filter: brightness(1.08) !important;
}

.qy-dx-subscribe .qy-dx-sub-pill:active,
.qy-dx-subscribe .qy-sub-grid-ref .qy-ref-sub-btn:active {
  transform: scale(0.98) translateY(0) !important;
  filter: brightness(0.96) !important;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

.qy-dx-subscribe .qy-sub-pill-icon,
.qy-dx-subscribe .qy-ref-sub-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.92) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 6px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.qy-dx-subscribe .qy-dx-sub-pill:hover .qy-sub-pill-icon,
.qy-dx-subscribe .qy-dx-sub-pill:hover .qy-ref-sub-icon,
.qy-dx-subscribe .qy-sub-pill:hover .qy-sub-pill-icon,
.qy-dx-subscribe .qy-ref-sub-btn:hover .qy-ref-sub-icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 10px rgba(0, 0, 0, 0.14) !important;
}

.qy-dx-subscribe .qy-sub-pill-icon img,
.qy-dx-subscribe .qy-ref-sub-icon img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  display: block !important;
}

.qy-dx-subscribe .qy-sub-pill-name,
.qy-dx-subscribe .qy-sub-name,
.qy-dx-subscribe .qy-ref-sub-btn .qy-sub-pill-name,
.qy-dx-subscribe .qy-ref-sub-btn .qy-sub-name,
.qy-dx-subscribe .qy-sub-grid-ref .qy-sub-name {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0.015em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: var(--qy-sub-text) !important;
  text-align: left !important;
  -webkit-font-smoothing: antialiased !important;
}

.qy-dx-subscribe .qy-dx-dl-more,
.qy-dx-subscribe .qy-pg-dl-more {
  margin-top: 10px !important;
  padding: 8px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px dashed rgba(148, 163, 184, 0.2) !important;
  color: var(--qy-sub-muted) !important;
  font-size: 12px !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

.qy-dx-subscribe .qy-dx-dl-more:hover,
.qy-dx-subscribe .qy-pg-dl-more:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  color: #93c5fd !important;
}

.qy-dx-mobile .qy-dx-subscribe.qy-ref-card {
  flex: 0 1 auto !important;
  min-height: auto !important;
  max-height: none !important;
  height: auto !important;
  width: 100% !important;
  overflow: visible !important;
}

/* ===== PC 宽屏：左 1fr + 右 520px，整体对齐 ===== */
@media (min-width: 1101px) {
  .qy-dx-dash.desktop-only {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    --qy-main-w: none;
  }

  /* 覆盖 fw-design 所有 .qy-ref-grid 冲突规则 */
  .qy-dx-dash.desktop-only .qy-ref-grid,
  .qy-dx-dash.desktop-only .qy-ref-grid.qy-ref-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--qy-dx-side-w, 520px) !important;
    gap: var(--qy-dx-dash-gap, 16px) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    align-items: start !important;
    justify-content: stretch !important;
  }

  .qy-dx-dash.desktop-only .qy-ref-main {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    align-self: stretch !important;
  }

  .qy-dx-dash.desktop-only .qy-ref-main > .qy-ref-banner,
  .qy-dx-dash.desktop-only .qy-ref-main > .qy-dx-hero,
  .qy-dx-dash.desktop-only .qy-ref-main > .qy-ref-download,
  .qy-dx-dash.desktop-only .qy-ref-main > .qy-dx-download {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  .qy-dx-dash.desktop-only .qy-dx-side-stack {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    align-self: stretch !important;
  }

  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-ref-notice.qy-ref-card,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-dx-notice,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-ref-subscribe.qy-ref-card,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-dx-subscribe,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-ref-invite,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-dx-invite {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-ref-notice.qy-ref-card,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-dx-notice {
    flex: 1 1 auto !important;
    min-height: 280px !important;
    height: auto !important;
  }

  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-ref-subscribe.qy-ref-card,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-dx-subscribe {
    flex: 0 0 auto !important;
    min-height: 400px !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-ref-invite,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-dx-invite {
    flex: 0 0 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
    height: 350px !important;
  }

  /* 订阅：3 列，与全局 Premium 玻璃态 pill 一致 */
  .qy-dx-dash.desktop-only .qy-dx-subscribe .qy-dx-sub-grid,
  .qy-dx-dash.desktop-only .qy-dx-subscribe .qy-sub-pills.qy-sub-grid-ref,
  .qy-dx-dash.desktop-only .qy-dx-subscribe .qy-ref-sub-grid.qy-sub-grid-ref,
  .qy-dx-dash.desktop-only .qy-dx-subscribe .qy-sub-grid-ref.qy-ref-sub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .qy-dx-dash.desktop-only .qy-dx-subscribe .qy-dx-sub-footer,
  .qy-dx-dash.desktop-only .qy-dx-subscribe .qy-ref-sub-footer {
    flex-shrink: 0 !important;
    margin-top: 14px !important;
    padding-top: 14px !important;
  }

  .qy-dx-dash.desktop-only .qy-dx-subscribe .qy-dx-card-head,
  .qy-dx-dash.desktop-only .qy-dx-subscribe .qy-ref-card-head {
    margin-bottom: 14px !important;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .qy-dx-subscribe .qy-dx-sub-grid,
  .qy-dx-subscribe .qy-sub-pills.qy-sub-grid-ref,
  .qy-dx-subscribe .qy-ref-sub-grid.qy-sub-grid-ref {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.qy-dx-sub-footer {
  margin-top: 20px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(148, 163, 184, 0.1) !important;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%) !important;
}

.qy-dx-reset-btns {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

/* 主操作：复制订阅地址 — 蓝色 Premium 玻璃 CTA */
.qy-dx-subscribe .qy-dx-reset-copy,
.qy-dx-subscribe .qy-ref-reset-copy {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 22px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.42) 0%, rgba(37, 99, 235, 0.32) 52%, rgba(29, 78, 216, 0.28) 100%) !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
  border: 1px solid rgba(147, 197, 253, 0.5) !important;
  color: #f0f9ff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.025em !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(37, 99, 235, 0.2),
    0 6px 20px rgba(59, 130, 246, 0.28) !important;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    filter 0.2s ease !important;
  -webkit-font-smoothing: antialiased !important;
}

.qy-dx-reset-copy-icon {
  font-size: 16px;
  line-height: 1;
  opacity: 0.92;
}

.qy-dx-subscribe .qy-dx-reset-copy:hover,
.qy-dx-subscribe .qy-ref-reset-copy:hover {
  border-color: rgba(191, 219, 254, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(37, 99, 235, 0.28),
    0 10px 28px rgba(59, 130, 246, 0.38) !important;
  transform: scale(1.02) translateY(-1px) !important;
  filter: brightness(1.1) !important;
}

.qy-dx-subscribe .qy-dx-reset-copy:active,
.qy-dx-subscribe .qy-ref-reset-copy:active {
  transform: scale(0.98) translateY(0) !important;
  filter: brightness(0.95) !important;
}

/* 次操作：重置订阅 — 红色 Premium 玻璃描边 */
.qy-dx-subscribe .qy-dx-reset-go,
.qy-dx-subscribe .qy-ref-reset-go {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 22px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(127, 29, 29, 0.2) 52%, rgba(69, 10, 10, 0.18) 100%) !important;
  backdrop-filter: blur(12px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(130%) !important;
  border: 1px solid rgba(252, 165, 165, 0.42) !important;
  color: #fee2e2 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.025em !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    filter 0.2s ease !important;
  -webkit-font-smoothing: antialiased !important;
}

.qy-dx-subscribe .qy-dx-reset-go:hover:not(:disabled),
.qy-dx-subscribe .qy-ref-reset-go:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.24) 0%, rgba(153, 27, 27, 0.28) 52%, rgba(127, 29, 29, 0.22) 100%) !important;
  border-color: rgba(254, 202, 202, 0.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 16px rgba(239, 68, 68, 0.22),
    0 0 0 1px rgba(248, 113, 113, 0.12) !important;
  transform: scale(1.02) translateY(-1px) !important;
  filter: brightness(1.08) !important;
}

.qy-dx-subscribe .qy-dx-reset-go:active:not(:disabled),
.qy-dx-subscribe .qy-ref-reset-go:active:not(:disabled) {
  transform: scale(0.98) translateY(0) !important;
  filter: brightness(0.94) !important;
}

.qy-dx-subscribe .qy-dx-reset-go:disabled,
.qy-dx-subscribe .qy-ref-reset-go:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
}

/* 移动端：系统公告仅在 main 内显示，aside 内隐藏 */
.qy-dx-mobile .qy-dx-side-stack .qy-dx-notice,
.qy-dx-mobile .qy-ref-side .qy-dx-notice:not(.qy-dx-mobile-notice) {
  display: none !important;
}

.qy-dx-mobile .qy-dx-mobile-notice {
  display: block !important;
}

.qy-dx-dash.desktop-only .qy-dx-mobile-notice {
  display: none !important;
}

/* ===== 邀请卡片 v3.64.37 — 图二橙黄渐变 + 3D 机器人 ===== */
.qy-dx-invite.qy-dx-invite-v2,
.qy-ref-invite.qy-dx-invite-v2 {
  position: relative !important;
  display: flex !important;
  align-items: stretch !important;
  min-height: 188px !important;
  padding: 26px 28px 24px 26px !important;
  border-radius: 24px !important;
  overflow: visible !important;
  cursor: pointer;
  border: none !important;
  background: linear-gradient(
    105deg,
    #fff8ed 0%,
    #ffecc7 16%,
    #ffd28a 42%,
    #ffb347 72%,
    #ff9f43 100%
  ) !important;
  box-shadow:
    0 18px 44px rgba(255, 140, 60, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(234, 88, 12, 0.08) !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.qy-dx-invite-v2:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 56px rgba(255, 140, 60, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(234, 88, 12, 0.1) !important;
}

.qy-dx-invite-v2 .qy-dx-invite-glow,
.qy-dx-invite-v2 .qy-ref-invite-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 55% 70% at 88% 18%, rgba(255, 255, 255, 0.42) 0%, transparent 58%),
    radial-gradient(ellipse 40% 45% at 8% 92%, rgba(255, 255, 255, 0.18) 0%, transparent 52%);
}

.qy-dx-invite-v2 .qy-ref-invite-body,
.qy-dx-invite-v2 .qy-dx-invite-body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 62%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  color: #1f2937 !important;
}

.qy-dx-invite-v2 .qy-ref-invite-body h3 {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.02em;
  color: #111827 !important;
  text-shadow: none !important;
}

.qy-dx-invite-v2 .qy-ref-invite-rate,
.qy-dx-invite-v2 .qy-dx-invite-rate {
  display: inline-flex !important;
  align-items: center;
  padding: 6px 14px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  color: #fef3c7 !important;
  background: #1f2937 !important;
  border: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.18);
}

.qy-dx-invite-v2 .qy-ref-invite-body p,
.qy-dx-invite-v2 .qy-dx-invite-desc {
  display: block !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  color: rgba(87, 52, 23, 0.82) !important;
  opacity: 1 !important;
}

.qy-dx-invite-v2 .qy-ref-invite-btn,
.qy-dx-invite-v2 .qy-dx-invite-btn {
  margin-top: 2px;
  padding: 11px 22px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #1a1410 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(26, 20, 16, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.qy-dx-invite-v2 .qy-ref-invite-btn:hover,
.qy-dx-invite-v2 .qy-dx-invite-btn:hover {
  background: #2d2318 !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(26, 20, 16, 0.28);
}

.qy-dx-invite-v2 .qy-ref-invite-art,
.qy-dx-invite-v2 .qy-dx-invite-art {
  position: absolute !important;
  right: -6px !important;
  bottom: -14px !important;
  top: auto !important;
  width: 168px !important;
  height: 168px !important;
  flex-shrink: 0;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 0 !important;
  z-index: 3;
  pointer-events: none;
}

.qy-dx-invite-v2 .qy-dx-invite-art .qy-invite-art-svg,
.qy-dx-invite-v2 .qy-ref-invite-art .qy-invite-art-svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(234, 88, 12, 0.22));
  animation: qyInviteRobotFloat 4.5s ease-in-out infinite;
}

@keyframes qyInviteRobotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* legacy alias — 保持旧类名兼容 */
.qy-dx-invite:not(.qy-dx-invite-v2) {
  position: relative;
  border-radius: 18px !important;
  background: linear-gradient(125deg, #ea580c 0%, #f97316 35%, #fb923c 65%, #fbbf24 100%) !important;
  box-shadow:
    0 16px 48px rgba(234, 88, 12, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset !important;
  border: none !important;
  padding: 28px 30px !important;
  min-height: 168px !important;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qy-dx-invite:not(.qy-dx-invite-v2):hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 56px rgba(234, 88, 12, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
}

.qy-dx-invite-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 95% 10%, rgba(255, 255, 255, 0.3) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.qy-dx-invite:not(.qy-dx-invite-v2) .qy-ref-invite-body {
  position: relative;
  z-index: 1;
  color: #fff;
}

.qy-dx-invite:not(.qy-dx-invite-v2) .qy-ref-invite-body h3 {
  font-size: 18px !important;
  font-weight: 800 !important;
  margin-bottom: 10px !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

.qy-dx-invite:not(.qy-dx-invite-v2) .qy-ref-invite-rate {
  display: inline-block !important;
  padding: 5px 14px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  backdrop-filter: blur(6px);
}

.qy-dx-invite:not(.qy-dx-invite-v2) .qy-ref-invite-body p {
  display: block !important;
  font-size: 12px !important;
  opacity: 0.92;
  margin: 0 0 16px !important;
  line-height: 1.55;
}

.qy-dx-invite-btn {
  padding: 10px 24px !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.qy-dx-invite:not(.qy-dx-invite-v2) .qy-dx-invite-btn:hover {
  background: rgba(0, 0, 0, 0.38) !important;
  transform: translateY(-1px);
}

.qy-dx-invite-art {
  width: 88px !important;
  height: 88px !important;
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.qy-dx-invite-art .qy-invite-art-svg {
  width: 100%;
  height: 100%;
}

/* Unpaid alert dark */
[data-theme="slate"] .qy-dx-unpaid,
[data-theme="purple"] .qy-dx-unpaid,
[data-theme="cyan"] .qy-dx-unpaid {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  border-radius: 14px !important;
}

[data-theme="slate"] .qy-dx-unpaid .qy-ref-unpaid-text strong,
[data-theme="purple"] .qy-dx-unpaid .qy-ref-unpaid-text strong,
[data-theme="cyan"] .qy-dx-unpaid .qy-ref-unpaid-text strong {
  color: #fecaca !important;
}

[data-theme="slate"] .qy-dx-unpaid .qy-ref-unpaid-text span,
[data-theme="purple"] .qy-dx-unpaid .qy-ref-unpaid-text span,
[data-theme="cyan"] .qy-dx-unpaid .qy-ref-unpaid-text span {
  color: #fca5a5 !important;
}

[data-theme="slate"] .qy-dx-unpaid .qy-ref-unpaid-btn,
[data-theme="purple"] .qy-dx-unpaid .qy-ref-unpaid-btn,
[data-theme="cyan"] .qy-dx-unpaid .qy-ref-unpaid-btn,
[data-theme="slate"] .qy-unpaid-premium .qy-ref-unpaid-btn,
[data-theme="purple"] .qy-unpaid-premium .qy-ref-unpaid-btn,
[data-theme="cyan"] .qy-unpaid-premium .qy-ref-unpaid-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #fff !important;
  border: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* Light theme fallback */
[data-theme="light"] .qy-dx-hero {
  background: linear-gradient(125deg, #047857 0%, #10b981 50%, #059669 100%) !important;
}

[data-theme="light"] .qy-dx-card {
  background: #fff !important;
  border: 1px solid #e8edf2 !important;
  box-shadow: 0 2px 12px rgba(15, 40, 80, 0.06) !important;
}

[data-theme="light"] .qy-dx-card-head h2 {
  color: #0f172a !important;
}

/* Light theme — 与深色模式相同的仪表盘布局尺寸 */
[data-theme="light"] .qy-dashboard-layout.fw-layout {
  --qy-dx-side-w: 520px;
  --qy-dx-dash-gap: 16px;
  --qy-dx-dash-pad-x: 24px;
  --qy-dx-dash-max: 1680px;
  --qy-pg-max: var(--qy-dx-dash-max);
  --qy-dash-max: var(--qy-dx-dash-max);
  --qy-main-w: none;
}

[data-theme="light"] .qy-dashboard-layout.fw-layout .qy-main {
  background: transparent !important;
  max-width: var(--qy-dx-dash-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 24px var(--qy-dx-dash-pad-x) 40px !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  [data-theme="light"] .qy-dashboard-layout.fw-layout .qy-pg-navbar .qy-navbar-inner {
    max-width: var(--qy-dx-dash-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--qy-dx-dash-pad-x) !important;
    padding-right: var(--qy-dx-dash-pad-x) !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 1100px) {
  .qy-dx-dash .qy-ref-grid {
    grid-template-columns: 1fr !important;
  }
  .qy-dx-hero .qy-ref-banner-body {
    max-width: 100% !important;
  }
  .qy-dx-dash:not(.qy-dx-mobile) .qy-dx-hero-art {
    display: none !important;
  }
  .qy-dx-dash:not(.qy-dx-mobile) .qy-dx-stats {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .qy-dx-dash:not(.qy-dx-mobile) .qy-dx-stats {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Mobile — 与 PC 同款 Hero（三列统计 + 并排按钮） ===== */
.qy-dx-mobile .qy-dx-mobile-grid,
.qy-dx-dash.qy-dx-mobile .qy-ref-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.qy-dx-mobile .qy-ref-main,
.qy-dx-mobile .qy-ref-side {
  grid-column: 1 / -1 !important;
  gap: 16px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.qy-dx-mobile .qy-dx-mobile-notice {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

.qy-dx-mobile .qy-dx-mobile-notice .qy-ref-card-head,
.qy-dx-mobile .qy-dx-mobile-notice .qy-ref-card-head-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-width: 0 !important;
}

.qy-dx-mobile .qy-dx-mobile-notice .qy-ref-card-head-left {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.qy-dx-mobile .qy-dx-mobile-notice .qy-ref-card-head h2,
.qy-dx-mobile .qy-dx-mobile-notice .qy-dx-notice-title {
  white-space: normal !important;
  word-break: break-word !important;
  writing-mode: horizontal-tb !important;
}

.qy-dx-mobile .qy-dx-hero {
  min-height: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  overflow: hidden;
}

.qy-dx-mobile .qy-ref-banner-body {
  flex: 1;
  min-width: 0;
  max-width: 100% !important;
  padding: 22px 18px !important;
  position: relative;
  z-index: 2;
}

.qy-dx-mobile .qy-dx-hero .qy-ref-plan {
  font-size: 22px !important;
  margin-bottom: 16px !important;
}

.qy-dx-mobile .qy-pg-hero .qy-dx-hero-art--mobile,
.qy-dx-mobile .qy-dx-hero-art.qy-dx-hero-art--mobile {
  display: flex !important;
  position: absolute !important;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 108px !important;
  padding: 0 !important;
  opacity: 0.38;
  pointer-events: none;
  z-index: 1;
}

.qy-dx-mobile .qy-dx-hero-art--mobile .qy-ref-art-svg {
  max-height: 132px !important;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
}

.qy-dx-mobile .qy-dx-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
}

.qy-dx-mobile .qy-dx-stats li {
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 9px 7px !important;
  min-width: 0;
}

.qy-dx-mobile .qy-dx-stats .qy-ref-stat-ico {
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
}

.qy-dx-mobile .qy-dx-stats .qy-ref-stat-ico .qy-ico {
  width: 13px;
  height: 13px;
}

.qy-dx-mobile .qy-dx-stat-text {
  min-width: 0;
  flex: 1;
}

.qy-dx-mobile .qy-dx-stat-text em {
  font-size: 9px !important;
  margin-bottom: 2px !important;
  line-height: 1.2;
  opacity: 0.9;
}

.qy-dx-mobile .qy-dx-stat-text strong {
  font-size: 11px !important;
  line-height: 1.25;
  word-break: break-word;
}

@media (max-width: 480px) {
  .qy-dx-mobile .qy-dx-stats {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .qy-dx-mobile .qy-dx-stats li {
    padding: 12px 14px !important;
  }

  .qy-dx-mobile .qy-dx-stat-text strong {
    font-size: 13px !important;
  }

  .qy-dx-mobile .qy-dx-stat-text em {
    font-size: 10px !important;
  }

  .qy-dx-mobile .qy-pg-hero .qy-dx-hero-art--mobile,
  .qy-dx-mobile .qy-dx-hero-art.qy-dx-hero-art--mobile {
    display: none !important;
  }

  .qy-dx-mobile .qy-ref-banner-body {
    padding: 20px 16px !important;
  }

  .qy-dx-mobile .qy-dx-hero .qy-ref-plan {
    font-size: 20px !important;
  }

  .qy-dx-mobile .qy-ref-banner-btns {
    flex-direction: column !important;
  }

  .qy-dx-mobile .qy-dx-sub-grid,
  .qy-dx-mobile .qy-sub-pills.qy-sub-grid-ref {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  @media (max-width: 359px) {
    .qy-dx-mobile .qy-dx-sub-grid,
    .qy-dx-mobile .qy-sub-pills.qy-sub-grid-ref {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  .qy-dx-mobile .qy-dx-subscribe .qy-dx-sub-pill,
  .qy-dx-mobile .qy-dx-subscribe.qy-pg-subscribe .qy-sub-pill,
  .qy-dx-mobile .qy-dx-subscribe.qy-pg-subscribe .qy-ref-sub-btn,
  .qy-dx-mobile .qy-dx-subscribe .qy-sub-grid-ref .qy-ref-sub-btn {
    min-height: 52px !important;
    height: auto !important;
    padding: 8px 12px 8px 8px !important;
  }

  .qy-dx-mobile .qy-dx-subscribe .qy-sub-pill-name,
  .qy-dx-mobile .qy-dx-subscribe .qy-sub-name,
  .qy-dx-mobile .qy-dx-subscribe .qy-ref-sub-btn .qy-sub-pill-name,
  .qy-dx-mobile .qy-dx-subscribe .qy-ref-sub-btn .qy-sub-name,
  .qy-dx-mobile .qy-dx-subscribe .qy-sub-grid-ref .qy-sub-name {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }
}

.qy-dx-mobile .qy-ref-banner-btns {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 10px !important;
  flex-wrap: nowrap;
}

.qy-dx-mobile .qy-dx-btn-charge,
.qy-dx-mobile .qy-dx-btn-gift {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  justify-content: center !important;
  padding: 11px 10px !important;
  font-size: 12px !important;
  gap: 6px !important;
}

.qy-dx-mobile .qy-dx-btn-charge > span:first-child,
.qy-dx-mobile .qy-dx-btn-gift > span:first-child {
  width: 24px;
  height: 24px;
}

.qy-dx-mobile .qy-dx-btn-charge .qy-ico,
.qy-dx-mobile .qy-dx-btn-gift .qy-ico {
  width: 13px;
  height: 13px;
}

/* 覆盖 qy-penguin / fw-design 强制双白底 */
.qy-dx-mobile .qy-pg-hero .qy-btn-white.qy-dx-btn-charge {
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%) !important;
  color: #047857 !important;
  border: none !important;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.85) inset !important;
}

.qy-dx-mobile .qy-pg-hero .qy-btn-white.qy-dx-btn-gift {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

.qy-dx-mobile .qy-pg-os-row {
  grid-template-columns: repeat(2, 1fr) !important;
}

.qy-dx-mobile .qy-dx-dl-grid,
.qy-dx-mobile .qy-pg-dl-grid {
  grid-template-columns: 1fr !important;
}

.qy-dx-mobile .qy-dx-invite-v2 {
  display: block !important;
  min-height: 176px !important;
  padding: 22px 20px 20px !important;
}

.qy-dx-mobile .qy-dx-invite-v2 .qy-ref-invite-body,
.qy-dx-mobile .qy-dx-invite-v2 .qy-dx-invite-body {
  max-width: 68% !important;
}

.qy-dx-mobile .qy-dx-invite-v2 .qy-ref-invite-body h3 {
  font-size: 17px !important;
}

.qy-dx-mobile .qy-dx-invite-v2 .qy-dx-invite-art {
  width: 138px !important;
  height: 138px !important;
  right: -10px !important;
  bottom: -12px !important;
}

.qy-dx-mobile .qy-dx-invite {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.qy-dx-mobile .qy-dx-card {
  padding: 20px 18px !important;
}

.qy-dx-mobile .qy-dx-card-head h2 {
  font-size: 16px !important;
}

.qy-dx-mobile .qy-dx-hero,
.qy-dx-mobile .qy-ref-banner.qy-dx-hero,
.qy-dx-mobile .qy-pg-hero.qy-dx-hero,
[data-theme="slate"] .qy-dx-mobile .qy-pg-hero.qy-dx-hero,
[data-theme="purple"] .qy-dx-mobile .qy-pg-hero.qy-dx-hero,
[data-theme="cyan"] .qy-dx-mobile .qy-pg-hero.qy-dx-hero {
  background: linear-gradient(125deg, #047857 0%, #059669 28%, #10b981 55%, #059669 78%, #065f46 100%) !important;
  box-shadow:
    0 20px 50px rgba(5, 150, 105, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset !important;
  border: none !important;
}

.qy-dx-mobile .qy-dx-hero-glow,
.qy-dx-mobile .qy-ref-banner-glow.qy-dx-hero-glow {
  display: block !important;
  opacity: 1 !important;
}

/* 覆盖 qy-penguin / fw-design 对 Hero 内统计区的重置 */
.qy-dx-mobile .qy-dx-hero .qy-stats-ref,
.qy-dx-mobile .qy-pg-hero .qy-dx-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
  flex-wrap: unset !important;
}

.qy-dx-mobile .qy-dx-hero .qy-stats-ref li,
.qy-dx-mobile .qy-pg-hero .qy-dx-stats li {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 9px 7px !important;
  min-width: 0;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px !important;
}

.qy-dx-mobile .qy-dx-hero .qy-stats-ref .qy-ref-stat-ico,
.qy-dx-mobile .qy-pg-hero .qy-dx-stats .qy-ref-stat-ico {
  display: flex !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qy-dx-mobile .qy-dx-hero .qy-stats-ref .qy-ref-stat-ico .qy-ico,
.qy-dx-mobile .qy-pg-hero .qy-dx-stats .qy-ref-stat-ico .qy-ico {
  width: 13px;
  height: 13px;
  color: #fff;
}

.qy-dx-mobile .qy-dx-hero .qy-stats-ref em,
.qy-dx-mobile .qy-pg-hero .qy-dx-stats em {
  font-size: 9px !important;
  margin-bottom: 2px !important;
  line-height: 1.2;
  opacity: 0.9;
}

.qy-dx-mobile .qy-dx-hero .qy-stats-ref strong,
.qy-dx-mobile .qy-pg-hero .qy-dx-stats strong {
  font-size: 11px !important;
  line-height: 1.25;
  word-break: break-word;
}

/* 覆盖 qy-penguin 浅色样式（移动端卡片，Hero 除外） */
[data-theme="slate"] .qy-dx-mobile .qy-pg-card,
[data-theme="purple"] .qy-dx-mobile .qy-pg-card,
[data-theme="cyan"] .qy-dx-mobile .qy-pg-card {
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
}

[data-theme="slate"] .qy-dx-mobile .qy-pg-card::before,
[data-theme="slate"] .qy-dx-mobile .qy-pg-card::after,
[data-theme="purple"] .qy-dx-mobile .qy-pg-card::before,
[data-theme="purple"] .qy-dx-mobile .qy-pg-card::after,
[data-theme="cyan"] .qy-dx-mobile .qy-pg-card::before,
[data-theme="cyan"] .qy-dx-mobile .qy-pg-card::after {
  display: none !important;
}

[data-theme="slate"] .qy-dx-mobile .qy-pg-os-btn,
[data-theme="purple"] .qy-dx-mobile .qy-pg-os-btn,
[data-theme="cyan"] .qy-dx-mobile .qy-pg-os-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(148, 163, 184, 0.1) !important;
  color: #94a3b8 !important;
}

[data-theme="slate"] .qy-dx-mobile .qy-pg-dl-card,
[data-theme="purple"] .qy-dx-mobile .qy-pg-dl-card,
[data-theme="cyan"] .qy-dx-mobile .qy-pg-dl-card {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 768px) {
  [data-theme="slate"] .qy-dashboard-layout.fw-layout,
  [data-theme="purple"] .qy-dashboard-layout.fw-layout,
  [data-theme="cyan"] .qy-dashboard-layout.fw-layout {
    background: #030712 !important;
  }
}

/* ===== Mobile 顶栏：无汉堡菜单，Logo 左 / 操作右 ===== */
@media (max-width: 768px) {
  .qy-pg-navbar .qy-mobile-menu-btn,
  .qy-pg-navbar .fw-menu-toggle,
  .qy-pg-navbar .qy-menu-toggle {
    display: none !important;
  }

  .qy-pg-navbar .qy-navbar-inner {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .qy-pg-navbar .qy-nav-mobile-brand {
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: calc(100vw - 168px) !important;
    min-width: 0 !important;
    order: 1 !important;
    align-self: center !important;
  }

  .qy-pg-navbar .qy-navbar-actions {
    flex: 0 0 auto !important;
    order: 2 !important;
    margin-left: auto !important;
  }

  .qy-pg-navbar .qy-nav-drawer,
  .qy-pg-navbar .qy-nav-backdrop {
    display: none !important;
  }
}

/**
 * v3.64.3 — 全主题统一仪表盘布局（浅色/深色同尺寸，覆盖 fw-design 冲突）
 */
.qy-dashboard-layout.fw-layout {
  --qy-dx-side-w: 520px;
  --qy-dx-dash-gap: 16px;
  --qy-dx-dash-pad-x: 24px;
  --qy-dx-dash-max: 1680px;
  --qy-pg-max: var(--qy-dx-dash-max);
  --qy-dash-max: var(--qy-dx-dash-max);
  --qy-notice-min-h: 280px;
  --qy-subscribe-h: 400px;
  --qy-invite-h: 350px;
}

.qy-dashboard-layout.fw-layout .qy-main {
  max-width: var(--qy-dx-dash-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 24px var(--qy-dx-dash-pad-x) 40px !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  .qy-dashboard-layout.fw-layout .qy-pg-navbar .qy-navbar-inner {
    max-width: var(--qy-dx-dash-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--qy-dx-dash-pad-x) !important;
    padding-right: var(--qy-dx-dash-pad-x) !important;
    box-sizing: border-box !important;
  }
}

@media (min-width: 1101px) {
  /* 双列：覆盖 fw-design @1280px 强制单列 */
  .qy-dx-dash.desktop-only .qy-ref-grid,
  .qy-dx-dash.desktop-only .qy-ref-grid.qy-ref-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--qy-dx-side-w, 520px) !important;
    gap: var(--qy-dx-dash-gap, 16px) !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .qy-dx-dash.desktop-only .qy-ref-main,
  .qy-dx-dash.desktop-only .qy-ref-side,
  .qy-dx-dash.desktop-only .qy-dx-side-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--qy-dx-dash-gap, 16px) !important;
    min-width: 0 !important;
  }

  .qy-dx-dash.desktop-only .qy-dx-side-stack {
    width: 100% !important;
    align-self: stretch !important;
  }

  .qy-dx-dash.desktop-only .qy-dx-hero,
  .qy-dx-dash.desktop-only .qy-ref-banner.qy-dx-hero {
    min-height: 280px !important;
  }

  .qy-dx-dash.desktop-only .qy-ref-side .qy-ref-notice,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-ref-notice,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-dx-notice {
    flex: 1 1 auto !important;
    min-height: var(--qy-notice-min-h, 280px) !important;
    max-height: none !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  .qy-dx-dash.desktop-only .qy-ref-side .qy-ref-subscribe,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-ref-subscribe,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-dx-subscribe {
    flex: 0 0 auto !important;
    min-height: var(--qy-subscribe-h, 400px) !important;
    max-height: none !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  .qy-dx-dash.desktop-only .qy-ref-side .qy-ref-invite,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-ref-invite,
  .qy-dx-dash.desktop-only .qy-dx-side-stack .qy-dx-invite {
    flex: 0 0 var(--qy-invite-h, 350px) !important;
    min-height: var(--qy-invite-h, 350px) !important;
    max-height: var(--qy-invite-h, 350px) !important;
    height: var(--qy-invite-h, 350px) !important;
    box-sizing: border-box !important;
  }

  .qy-dx-dash.desktop-only .qy-dx-subscribe .qy-dx-sub-grid,
  .qy-dx-dash.desktop-only .qy-dx-subscribe .qy-sub-pills.qy-sub-grid-ref,
  .qy-dx-dash.desktop-only .qy-dx-subscribe .qy-ref-sub-grid.qy-sub-grid-ref {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
