/* ==========================================================================
   WorkBuddy Desktop Common Styles (workbuddy-common.css)
   腾讯 WorkBuddy 官方设计语言与双色极简规范 (黑白灰中性系 + 纯正科技商务蓝点缀)
   沉淀全局外壳：桌面容器、Win11标题栏、全局侧边栏、Toast轻提示与通用遮罩
   ========================================================================== */

:root {
  /* 黑白灰无彩色中性体系 (Neutral Greyscale) */
  --bg-stage: #E2E6EC;
  --bg-window: #F2F4F7;
  --bg-card: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-hover: #F1F5F9;
  --bg-active: #E2E8F0;

  --border-color: #ECEEF1;
  --border-titlebar: #E1E4EA;
  --border-subtle: #E2E8F0;
  --border-dark: #CBD5E1;

  --text-main: #0F172A;
  --text-regular: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* 核心纯色点缀 (严格克制) */
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-subtle: #EFF6FF;
  --color-primary-border: #BFDBFE;

  --color-success: #10B981;
  --color-success-subtle: #ECFDF5;
  --color-success-border: #A7F3D0;

  --color-warning: #F59E0B;
  --color-warning-subtle: #FFFBEB;

  --color-danger: #EF4444;
  --color-danger-subtle: #FEF2F2;
  --color-close-hover: #E81123;

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --hover-btn: rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-stack);
  color: var(--text-main);
  background-color: var(--bg-window);
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

/* 桌面舞台背景容器 */
.desktop-stage {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background: var(--bg-stage);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s ease;
}

/* 整体桌面窗口容器 */
.app-window {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-window);
  position: relative;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.25s ease,
              box-shadow 0.25s ease;
}

/* 模式一：标准窗口模式 (默认 1200x780 居中、圆角 10px、Win11大阴影) */
.app-window.window-mode,
.desktop-stage:not(.fullscreen) .app-window {
  width: 1200px;
  height: 780px;
  max-width: 96vw;
  max-height: 94vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* 模式二：全屏模式 (100vw x 100vh 贴边直角无阴影) */
.app-window.fullscreen-mode,
.desktop-stage.fullscreen .app-window {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

/* 顶部自定义标题栏 */
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  min-height: 38px;
  background: var(--bg-window);
  border-bottom: 1px solid var(--border-titlebar);
  padding: 0 0 0 10px;
  z-index: 100;
  -webkit-app-region: drag;
}

.titlebar * {
  -webkit-app-region: no-drag;
}

.titlebar-left {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.icon-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.icon-action-btn:hover {
  background: var(--hover-btn);
  color: var(--text-main);
}

.nav-divider {
  width: 1px;
  height: 14px;
  background: var(--border-titlebar);
  margin: 0 4px;
}

.menu-bar {
  display: flex;
  align-items: center;
  margin-left: 2px;
}

.menu-item {
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-main);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.menu-item:hover {
  background-color: var(--hover-btn);
}

.titlebar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  pointer-events: none;
}

.titlebar-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.window-controls {
  display: flex;
  align-items: center;
  height: 100%;
}

.win-btn {
  width: 46px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.win-btn:hover {
  background-color: var(--hover-btn);
}

.win-btn.btn-close:hover {
  background-color: var(--color-close-hover);
  color: #FFFFFF;
}

.desktop-stage:not(.fullscreen) .icon-restore {
  display: none !important;
}

.desktop-stage.fullscreen .icon-maximize {
  display: none !important;
}

.desktop-stage.fullscreen .icon-restore {
  display: inline-block !important;
}

/* 桌面工作台主体布局 */
.app-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #FFFFFF;
  position: relative;
}

/* 左侧主导航侧边栏 (严格对标真实客户端截图) */
.sidebar {
  width: 230px;
  min-width: 230px;
  max-width: 230px;
  height: 100%;
  background: #F2F4F7;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  user-select: none;
  z-index: 10;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
}

.sidebar.sidebar-collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
  border-right: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  padding: 14px 12px 0 12px;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar-top::-webkit-scrollbar {
  display: none;
}

/* 1. 品牌栏：AI超级员工 5.5.3 */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 2px;
}

.brand-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.3px;
}

.brand-version {
  font-size: 11px;
  color: #6B7280;
  font-weight: 500;
}

/* 2. 新建任务主按钮 */
.btn-new-task {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  width: 100%;
  height: 36px;
  background: #EAECEF;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1F2328;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

.btn-new-task .icon-new-task {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-new-task:hover {
  background: #E2E5E9;
}

.btn-new-task:active {
  transform: scale(0.98);
}

.btn-new-task.active {
  background: #E2E5E9;
  font-weight: 600;
}

/* 3. 核心功能主导航菜单 (7大项垂直排列) */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.nav-item:hover {
  background-color: #ECEEF2;
  color: #111827;
}

.nav-item.active {
  background-color: #E2E5E9 !important;
  color: #111827 !important;
  font-weight: 600;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #4B5563;
  flex-shrink: 0;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  color: #111827;
}

.badge-inspiration {
  font-size: 11px;
  padding: 1px 6px;
  background: #ECEEF2;
  color: #6B7280;
  border-radius: 4px;
  font-weight: 500;
}

/* 3.5. 侧边栏任务折叠区 (任务 (1) -> 帮我做一个10秒钟的视频 3天前) */
.sidebar-task-section {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #EAECEF;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  cursor: pointer;
  color: #6B7280;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.task-section-header:hover {
  background-color: #ECEEF2;
  color: #1F2328;
}

.task-title-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-section-title {
  letter-spacing: 0.2px;
}

.task-arrow {
  font-size: 10px;
  color: #9CA3AF;
  transition: transform 0.2s ease;
}

.task-tree-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.task-tree-item:hover {
  background-color: #ECEEF2;
}

.task-tree-item.active {
  background-color: #E2E5E9 !important;
}

.task-tree-item .task-item-title {
  font-size: 12px;
  font-weight: 500;
  color: #1F2328;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 8px;
}

.task-tree-item.active .task-item-title {
  font-weight: 600;
}

.task-tree-item .task-item-time {
  font-size: 11px;
  color: #9CA3AF;
  flex-shrink: 0;
}

/* 4. 空间树折叠区 (空间 (1) -> 📁 项目新手指引 -> 生成项目功能介绍 1小时前) */
.sidebar-space-section {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #EAECEF;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.space-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  cursor: pointer;
  color: #6B7280;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.space-section-header:hover {
  background-color: #ECEEF2;
  color: #1F2328;
}

.space-header-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.space-title {
  letter-spacing: 0.2px;
}

.space-arrow, .group-arrow {
  font-size: 10px;
  color: #9CA3AF;
  transition: transform 0.2s ease;
}

.space-tree-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.space-tree-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.space-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.space-group-header:hover {
  background-color: #ECEEF2;
  color: #111827;
}

.folder-icon {
  font-size: 13px;
}

.group-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.space-group-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 20px;
}

.space-tree-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.space-tree-item:hover {
  background-color: #ECEEF2;
}

.space-tree-item.active {
  background-color: #E2E5E9;
}

.space-tree-item .item-title {
  font-size: 12px;
  font-weight: 500;
  color: #1F2328;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.space-tree-item .item-time {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 2px;
}

/* 5. 底部用户卡片栏 (深色圆形小机器人头像 + 水到渠成 + 通知反馈) */
.user-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid #EAECEF;
  background: #F7F8FA;
  box-sizing: border-box;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.user-name {
  font-size: 13px;
  font-weight: 500;
  color: #1F2328;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-icon-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.15s ease;
}

.action-icon-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.notification-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: #EF4444;
  border-radius: 50%;
  border: 1.5px solid #F7F8FA;
}

/* 全局 Toast 轻提示系统 */
#toastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 99999;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  min-width: 220px;
  max-width: 380px;
  padding: 10px 14px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-message.toast-success {
  border-left: 3px solid var(--color-success);
}

.toast-message.toast-error {
  border-left: 3px solid var(--color-danger);
}

.toast-message.toast-info {
  border-left: 3px solid var(--color-primary);
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 全局模态遮罩层基类 */
.wb-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wb-modal-backdrop.open {
  display: flex;
  opacity: 1;
}

/* ==========================================================================
   用户头像浮动面板 (User Profile Popover Menu) 视觉标准
   对标真实客户端截图 media_1788946424812.png
   ========================================================================== */
.user-profile-popover {
  position: absolute;
  bottom: 56px;
  left: 7px;
  width: 272px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  z-index: 1000;
  padding: 14px 8px 10px 8px;
  box-sizing: border-box;
  display: none;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.user-profile-popover.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.popover-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px 11px 8px;
}

.popover-user-name {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.2px;
}

.btn-copy-user {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.btn-copy-user:hover {
  background-color: #F1F5F9;
  color: #0F172A;
}

.popover-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 8px 6px;
}

.popover-menu-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.popover-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8.5px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: #334155;
  font-size: 12.5px;
  transition: background-color 0.12s ease, color 0.12s ease;
  background: transparent;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

.popover-menu-item:hover {
  background-color: #F8FAFC;
  color: #0F172A;
}

.popover-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.popover-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #475569;
  flex-shrink: 0;
}

.popover-item-title {
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.popover-item-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 11px;
  color: #94A3B8;
  flex-shrink: 0;
}

.popover-badge-upgrade {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  line-height: 1.5;
}

.popover-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #EF4444;
  display: inline-block;
  margin-right: 2px;
}

.popover-item-danger:hover {
  background-color: #FEF2F2;
  color: #EF4444;
}

.popover-item-danger:hover .popover-item-icon {
  color: #EF4444;
}



/* ==========================================================================
   Buddy AI 套餐升级模态弹窗 (Upgrade Modal) 官方高保真样式
   对标: media_1788956809674.png 与 media_1788956834106.png
   ========================================================================== */

.wb-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wb-modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-upgrade-dialog {
  width: 860px;
  max-width: 95vw;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.05);
  padding: 24px 28px 24px 28px;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  animation: upgradeModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes upgradeModalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-upgrade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-upgrade-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.modal-upgrade-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.2px;
}

.modal-upgrade-current {
  font-size: 12px;
  color: #64748B;
}

.btn-upgrade-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-upgrade-close:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* 3 列套餐卡片网格 */
.upgrade-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.upgrade-plan-card {
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 16px 18px 16px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.upgrade-plan-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.upgrade-plan-card.active {
  border: 1.5px solid #0F172A;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.plan-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
}

.plan-card-tagline {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.4;
}

.plan-card-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 12px 0 14px 0;
  width: 100%;
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #334155;
  line-height: 1.35;
}

.plan-feature-icon {
  font-size: 12px;
  color: #475569;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

/* 4 列周期选项卡 */
.upgrade-durations-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.upgrade-duration-card {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 11px 14px;
  background: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.18s ease;
}

.upgrade-duration-card:hover {
  border-color: #CBD5E1;
}

.upgrade-duration-card.active {
  border: 1.5px solid #0F172A;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.duration-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #0F172A;
  font-weight: 500;
}

.duration-badge {
  font-size: 11px;
  font-weight: 600;
  color: #0EA5E9;
}

.duration-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
}

/* 居中套餐对比链接 */
.upgrade-compare-link {
  display: block;
  text-align: center;
  margin: 14px auto 12px auto;
  font-size: 12px;
  color: #64748B;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
  width: fit-content;
}

.upgrade-compare-link:hover {
  color: #2563EB;
}

/* 微信支付面板 */
.upgrade-payment-card {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.pay-qr-wrapper {
  width: 132px;
  height: 132px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.pay-qr-wrapper.blurred .pay-qr-img {
  filter: blur(4px);
  opacity: 0.25;
}

.pay-qr-mask {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  padding: 8px;
  text-align: center;
}

.pay-qr-wrapper.blurred .pay-qr-mask {
  display: flex;
}

.pay-qr-mask-text {
  font-size: 11px;
  color: #475569;
  font-weight: 500;
  background: rgba(241, 245, 249, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-agree-pay {
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-agree-pay:hover {
  background: #1E293B;
}

.pay-info-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0F172A;
}

.pay-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.pay-price-num {
  font-size: 22px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.5px;
}

.pay-price-desc {
  font-size: 12px;
  color: #64748B;
}

.pay-agreement-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #64748B;
  cursor: pointer;
  user-select: none;
  margin-top: 4px;
}

.agreement-radio {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.agreement-radio.checked {
  background: #10B981;
  color: #FFFFFF;
}

.agreement-radio.unchecked {
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
}

.agreement-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.agreement-link:hover {
  color: #2563EB;
  text-decoration: underline;
}

/* ==========================================================================
   套餐升级双支付方式切换 (WeChat Pay & Points Pay) 视觉体系
   ========================================================================== */
.upgrade-payment-methods {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 10px;
  padding: 3px;
  background: #F1F5F9;
  border-radius: 9px;
  width: fit-content;
}

.pay-method-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #64748B;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pay-method-tab:hover {
  color: #0F172A;
}

.pay-method-tab.active {
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.pay-method-balance-hint {
  font-size: 11px;
  color: #059669;
  background: #ECFDF5;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 2px;
}

/* 算力抵扣专属面板 (#upgradePointsPayWrap) */
.upgrade-points-pay-card {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.points-dashboard-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 16px;
}

.points-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.points-stat-label {
  font-size: 11.5px;
  color: #64748B;
}

.points-stat-val {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.3px;
}

.points-stat-val.highlight {
  color: #2563EB;
}

.points-stat-val.success {
  color: #059669;
}

.points-stat-val.danger {
  color: #DC2626;
}

.points-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.points-status-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.points-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
}

.points-badge-tag.sufficient {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.points-badge-tag.insufficient {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.points-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-points-pay {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-points-pay:hover:not(:disabled) {
  background: #1E293B;
  transform: translateY(-1px);
}

.btn-points-pay:disabled {
  background: #E2E8F0;
  color: #94A3B8;
  cursor: not-allowed;
  transform: none;
}

.btn-link-recharge {
  font-size: 12px;
  color: #2563EB;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}

.btn-link-recharge:hover {
  text-decoration: underline;
}

/* ==========================================================================
   【去邀约】模态弹窗 (Invite Friends Modal) 视觉标准
   对标真实设计规格与 WorkBuddy 视觉规范
   ========================================================================== */
.modal-invite-dialog {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 660px;
  max-width: 95vw;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.invite-dialog-header {
  padding: 18px 24px 16px 24px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.invite-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invite-dialog-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.2px;
}

.invite-badge-reward {
  background: #EFF6FF;
  color: #2563EB;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #BFDBFE;
}

.btn-invite-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.btn-invite-close:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.invite-dialog-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 80vh;
  overflow-y: auto;
  box-sizing: border-box;
}

/* 模块 A：我的邀请战绩仪表盘 */
.invite-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 12px;
  padding: 14px 18px;
  box-sizing: border-box;
}

.invite-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.invite-stat-label {
  font-size: 12px;
  color: #64748B;
}

.invite-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.3px;
}

.invite-stat-val.highlight {
  color: #2563EB;
}

/* 模块 B：专属凭证与复制分享 */
.invite-share-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.invite-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.invite-code-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.invite-code-label {
  font-size: 12px;
  color: #64748B;
}

.invite-code-card {
  background: #F1F5F9;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #E2E8F0;
}

.btn-copy-code {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-code:hover {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #94A3B8;
}

.invite-link-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.invite-link-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  padding: 2px 4px;
}

.invite-link-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 7px 10px;
  font-size: 12.5px;
  color: #475569;
  outline: none;
  font-family: inherit;
  min-width: 0;
}

.btn-copy-link {
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  padding: 9px 18px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-copy-link:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

/* 模块 C：奖励规则细则 */
.invite-rules-card {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 12px;
  padding: 14px 18px;
  box-sizing: border-box;
}

.invite-rules-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.invite-rules-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.invite-rule-step {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rule-step-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rule-step-desc {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.5;
}

.rule-step-highlight {
  color: #2563EB;
  font-weight: 600;
}

/* 模块 D：最近邀请动态记录 */
.invite-records-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite-records-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.invite-records-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.invite-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 8px;
  font-size: 12px;
  color: #475569;
}

.invite-record-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #1E293B;
}

.invite-record-time {
  font-size: 11.5px;
  color: #94A3B8;
}

.invite-record-reward {
  color: #059669;
  font-weight: 600;
  background: #ECFDF5;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #A7F3D0;
  font-size: 11.5px;
}

/* ==========================================================================
   【订阅和用量】模态弹窗 (Subscription & Usage Modal) 视觉标准
   对标真实客户端截图 media_1789005647445.png 与 WorkBuddy 规范
   ========================================================================== */
.modal-usage-dialog {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 580px;
  max-width: 95vw;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.usage-dialog-header {
  padding: 20px 24px 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.usage-dialog-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.2px;
}

.btn-usage-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.btn-usage-close:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.usage-dialog-body {
  padding: 0 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 80vh;
  overflow-y: auto;
  box-sizing: border-box;
}

/* 卡片 1：当前套餐与总额汇总卡片 */
.usage-summary-card {
  background: #FFFFFF;
  border: 1px solid #ECEEF1;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.usage-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.usage-tier-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.2px;
}

.btn-usage-upgrade {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-usage-upgrade:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

.usage-total-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.usage-total-val {
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
}

.usage-total-desc {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}

.usage-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid #F1F5F9;
  padding-top: 12px;
}

.usage-metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.usage-metric-label {
  font-size: 12px;
  color: #64748B;
}

.usage-metric-val {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.3px;
}

/* 卡片 2：积分明细区块与进度卡片 */
.usage-details-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usage-details-title {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.usage-details-card {
  background: #FFFFFF;
  border: 1px solid #ECEEF1;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.usage-plan-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usage-plan-header {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.usage-plan-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 6px;
}

.usage-plan-status-right {
  color: #334155;
  font-weight: 500;
}

.usage-progress-rail {
  height: 5px;
  background: #E2E8F0;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.usage-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.usage-progress-fill.primary {
  background: #10B981;
}

.usage-progress-fill.neutral {
  background: #64748B;
}

.usage-link-records {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #2563EB;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  margin-top: 2px;
  align-self: flex-start;
}

.usage-link-records:hover {
  text-decoration: underline;
}

/* 订阅和用量卡片 1 右上角双按钮组 */
.usage-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-usage-buy-points {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-usage-buy-points:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
}

.usage-metric-link {
  font-size: 11px;
  color: #2563EB;
  cursor: pointer;
  text-decoration: none;
  margin-left: 4px;
  font-weight: normal;
}

.usage-metric-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   【购买算力积分】模态弹窗 (Buy Points Modal) 视觉标准
   对标购买会员套餐体系与 WorkBuddy 极简双色设计规范
   ========================================================================== */
.modal-buy-points-dialog {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 760px;
  max-width: 95vw;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.buy-points-header {
  padding: 18px 24px 16px 24px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.buy-points-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buy-points-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.2px;
}

.buy-points-badge-balance {
  background: #F1F5F9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

.btn-buy-points-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.btn-buy-points-close:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.buy-points-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 80vh;
  overflow-y: auto;
  box-sizing: border-box;
}

/* 4 大积分规格包卡片网格 */
.points-packs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.points-pack-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.points-pack-card:hover {
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.points-pack-card.active {
  border-color: #0F172A;
  background: #FAFAFA;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.pack-badge-tag {
  position: absolute;
  top: -9px;
  right: 10px;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.pack-badge-tag.highlight {
  background: #0F172A;
  color: #FFFFFF;
}

.pack-name {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.pack-points {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
}

.pack-bonus {
  font-size: 11.5px;
  color: #059669;
  font-weight: 600;
  min-height: 16px;
}

.pack-price-row {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.pack-price-symbol {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.pack-price-num {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
}

/* 支付与结算卡片（对标购买会员套餐） */
.buy-points-pay-card {
  background: #F8FAFC;
  border: 1px solid #ECEEF1;
  border-radius: 12px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  box-sizing: border-box;
  align-items: center;
}

.pay-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pay-qr-holder {
  width: 112px;
  height: 112px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pay-qr-hint {
  font-size: 11.5px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pay-info-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-info-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pay-info-price-label {
  font-size: 13px;
  color: #64748B;
}

.pay-info-price-val {
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
}

.pay-info-breakdown {
  font-size: 12.5px;
  color: #334155;
  font-weight: 500;
}

.pay-info-rule {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.5;
}

.btn-submit-recharge {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 4px;
}

.btn-submit-recharge:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

/* 购买积分双支付方式 Tab 切换器 */
.buy-points-pay-methods {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
  margin-bottom: 2px;
  align-self: flex-start;
}

.buy-points-pay-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: #475569;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.buy-points-pay-tab:hover {
  color: #0F172A;
}

.buy-points-pay-tab.active {
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.buy-points-tab-hint {
  font-size: 11px;
  color: #059669;
  background: #ECFDF5;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 2px;
  font-weight: normal;
}

/* 购买积分算力抵扣专属卡片 (#buyPointsDeductPayWrap) */
.buy-points-deduct-card {
  background: #F8FAFC;
  border: 1px solid #ECEEF1;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.buy-points-deduct-card .points-dashboard-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 16px;
}

.btn-deduct-submit {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-deduct-submit:hover:not(:disabled) {
  background: #1E293B;
  transform: translateY(-1px);
}

.btn-deduct-submit:disabled {
  background: #CBD5E1;
  color: #64748B;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   系统设置模态弹窗 (#modalSystemSettings) 780px × 540px 双栏桌面级中枢
   ========================================================================== */
.modal-settings-dialog {
  width: 780px;
  max-width: 94vw;
  height: 540px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.settings-header {
  height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid #ECEEF1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #FFFFFF;
}

.settings-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-settings-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-settings-close:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.settings-body {
  display: flex;
  flex: 1;
  height: calc(540px - 48px - 54px);
  overflow: hidden;
}

.settings-sidebar {
  width: 190px;
  background: #F8FAFC;
  border-right: 1px solid #ECEEF1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.settings-nav-item:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.settings-nav-item.active {
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  border-left: 3px solid #2563EB;
}

.settings-content-pane {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 18px 24px;
  box-sizing: border-box;
  background: #FFFFFF;
}

.settings-pane {
  display: none;
}

.settings-pane.active {
  display: block;
}

.settings-section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #F1F5F9;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #F8FAFC;
  gap: 16px;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 360px;
}

.settings-item-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1E293B;
}

.settings-item-desc {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.4;
}

.settings-select {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  font-size: 12px;
  color: #0F172A;
  background: #FFFFFF;
  cursor: pointer;
  outline: none;
  min-width: 160px;
}

.settings-select:focus {
  border-color: #2563EB;
}

.settings-input {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  font-size: 12px;
  color: #0F172A;
  width: 160px;
  outline: none;
}

.settings-input:focus {
  border-color: #2563EB;
}

.settings-radio-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #334155;
}

.settings-radio-label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* 纯 CSS 开关 Toggle */
.settings-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  flex-shrink: 0;
}

.settings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: .2s;
  border-radius: 18px;
}

.settings-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

.settings-switch input:checked + .settings-slider {
  background-color: #2563EB;
}

.settings-switch input:checked + .settings-slider:before {
  transform: translateX(16px);
}

.settings-btn-inline {
  padding: 5px 12px;
  border-radius: 5px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 11.5px;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-btn-inline:hover {
  border-color: #2563EB;
  color: #2563EB;
}

.settings-footer {
  height: 54px;
  padding: 0 20px;
  border-top: 1px solid #ECEEF1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #F8FAFC;
}

.btn-settings-reset {
  font-size: 12px;
  color: #64748B;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-settings-reset:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.settings-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-settings-cancel {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 12.5px;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-settings-cancel:hover {
  background: #F1F5F9;
}

.btn-settings-save {
  padding: 6px 18px;
  border-radius: 6px;
  border: none;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-settings-save:hover {
  background: #1E293B;
}

/* ==========================================================================
   Buddy AI 帮助与反馈模态弹窗 (Help & Feedback Modal) 样式规范
   对标规格: 680px × 520px 桌面双色极简设计
   ========================================================================== */

.help-feedback-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.help-feedback-modal-mask.open {
  display: flex;
  opacity: 1;
}

.help-feedback-dialog {
  width: 680px;
  height: 520px;
  max-width: 95vw;
  max-height: 95vh;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: helpModalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes helpModalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.help-feedback-header {
  padding: 16px 20px 12px 20px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  flex-shrink: 0;
}

.help-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-header-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-header-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.help-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

.help-header-sub {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.2;
}

.btn-help-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-help-close:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* 4 大导航 Tab 栏 */
.help-tabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  border-bottom: 1px solid #F1F5F9;
  background: #FAFBFD;
  flex-shrink: 0;
}

.help-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: #64748B;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  user-select: none;
}

.help-tab-btn:hover {
  color: #0F172A;
}

.help-tab-btn.active {
  color: #2563EB;
  font-weight: 600;
}

.help-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #2563EB;
  border-radius: 2px 2px 0 0;
}

/* 面板主体区域 */
.help-content-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  background: #FFFFFF;
}

.help-content-pane {
  display: none;
}

.help-content-pane.active {
  display: block;
  animation: helpPaneFadeIn 0.18s ease forwards;
}

@keyframes helpPaneFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: FAQ 面板 */
.faq-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 7px 12px;
  margin-bottom: 14px;
}

.faq-search-box svg {
  color: #94A3B8;
  flex-shrink: 0;
}

.faq-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  color: #0F172A;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-accordion-item {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #FFFFFF;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-accordion-item:hover {
  border-color: #CBD5E1;
}

.faq-accordion-item.expanded {
  border-color: #BFDBFE;
  background: #FBFDFF;
}

.faq-accordion-header {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-question-title {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.faq-tag {
  font-size: 10.5px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
}

.faq-accordion-icon {
  color: #94A3B8;
  transition: transform 0.2s ease;
}

.faq-accordion-item.expanded .faq-accordion-icon {
  transform: rotate(180deg);
  color: #2563EB;
}

.faq-accordion-body {
  display: none;
  padding: 0 14px 12px 14px;
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
  border-top: 1px dashed #EDF2F7;
  padding-top: 10px;
}

.faq-accordion-item.expanded .faq-accordion-body {
  display: block;
}

.faq-footer-link-row {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  justify-content: flex-end;
}

.faq-footer-link {
  font-size: 12px;
  color: #2563EB;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}

.faq-footer-link:hover {
  text-decoration: underline;
}

/* Tab 2: Feedback 面板 */
.feedback-form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback-label {
  font-size: 12px;
  font-weight: 600;
  color: #1E293B;
}

.feedback-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feedback-pill-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.feedback-pill-btn:hover {
  border-color: #CBD5E1;
  color: #0F172A;
}

.feedback-pill-btn.active {
  border-color: #2563EB;
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 600;
}

.feedback-textarea-wrap {
  position: relative;
}

.feedback-textarea {
  width: 100%;
  box-sizing: border-box;
  height: 96px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-family: inherit;
  color: #0F172A;
  resize: none;
  outline: none;
  line-height: 1.5;
  transition: border-color 0.15s ease;
}

.feedback-textarea:focus {
  border-color: #2563EB;
}

.feedback-char-count {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 11px;
  color: #94A3B8;
}

.feedback-contact-input {
  width: 100%;
  box-sizing: border-box;
  height: 34px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12.5px;
  color: #0F172A;
  outline: none;
  transition: border-color 0.15s ease;
}

.feedback-contact-input:focus {
  border-color: #2563EB;
}

.feedback-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.btn-feedback-clear {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-feedback-clear:hover {
  background: #F1F5F9;
}

.btn-feedback-submit {
  padding: 6px 20px;
  border-radius: 6px;
  border: none;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-feedback-submit:hover {
  background: #1E293B;
}

/* Tab 3: Support 客服面板 */
.support-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 4px;
}

.support-card {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.support-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
}

.support-card-desc {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.4;
}

.support-qr-box {
  width: 120px;
  height: 120px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
}

.support-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.support-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.btn-support-action {
  width: 100%;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 12px;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-support-action:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* Tab 4: Diagnostics 诊断面板 */
.diagnostics-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diagnostics-table-wrap {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  background: #FFFFFF;
}

.diagnostics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 12px;
}

.diagnostics-row:last-child {
  border-bottom: none;
}

.diagnostics-key {
  color: #64748B;
  font-weight: 500;
}

.diagnostics-val {
  color: #0F172A;
  font-weight: 600;
  font-family: Consolas, monospace;
}

.diagnostics-val.status-ok {
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.diagnostics-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.diagnostics-hint {
  font-size: 11.5px;
  color: #94A3B8;
}

.diagnostics-btn-group {
  display: flex;
  gap: 8px;
}

.btn-diag-action {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 12px;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-diag-action:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.btn-diag-action.primary {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.btn-diag-action.primary:hover {
  background: #1E293B;
}

/* 6. 左侧边栏底部升级通知条 (#versionReadyBar) */
.version-ready-bar {
  position: absolute;
  bottom: 58px;
  left: 10px;
  width: 296px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.05);
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 100;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-sizing: border-box;
}

.version-ready-bar.hidden {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.version-ready-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.icon-version-ready {
  width: 18px;
  height: 18px;
  color: #10B981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.version-ready-title {
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
  letter-spacing: 0;
}

.version-ready-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-version-log {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #10B981;
  background: #FFFFFF;
  color: #10B981;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-version-log:hover {
  background: #ECFDF5;
  border-color: #059669;
  color: #059669;
}

.btn-version-upgrade {
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  background: #10B981;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}

.btn-version-upgrade:hover {
  background: #059669;
}

.btn-close-version-bar {
  position: absolute;
  top: -8px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 11px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: all 0.15s ease;
}

.btn-close-version-bar:hover {
  color: #0F172A;
  background: #F1F5F9;
  border-color: #CBD5E1;
}
