/* ========================================================
   试冠工作台 - 极简高清晰双模式系统 (黑夜模式 / 白天模式)
   ======================================================== */

/* ---------------- 1. 变量体系 ---------------- */
/* 默认与白天模式变量体系 (首屏默认清爽白昼，彻底杜绝刷新暗斑闪烁) */
:root, .theme-light {
  --bg-page: #f1f5f9;
  --bg-sidebar: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.9);
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-sub: #f8fafc;
  --bg-input: #f8fafc;
  --bg-btn: #ffffff;
  --bg-btn-hover: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-card: #e2e8f0;
  --border-input: #cbd5e1;
  --border-btn: #cbd5e1;
  --text-title: #0f172a;       /* 深邃黑石板色 */
  --text-main: #1e293b;        /* 主正文深色 */
  --text-sub: #475569;         /* 副标题 */
  --text-muted: #64748b;
  --accent: #0284c7;           /* 蔚蓝 */
  --accent-hover: #0369a1;
  --accent-bg: #e0f2fe;
  --accent-border: #bae6fd;
  --nav-active-bg: #f0f9ff;
  --nav-active-border: #0284c7;
  --hero-bg: #ffffff;
  --hero-border: #bae6fd;
}

/* 黑夜模式变量体系 */
.theme-dark {
  --bg-page: #0b0f19;
  --bg-sidebar: #0e1424;
  --bg-header: rgba(14, 20, 36, 0.85);
  --bg-card: #131c2e;
  --bg-card-hover: #1a263d;
  --bg-card-sub: #0f172a;
  --bg-input: #0f172a;
  --bg-btn: #1e293b;
  --bg-btn-hover: #334155;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-input: #334155;
  --border-btn: #334155;
  --text-title: #f8fafc;
  --text-main: #e2e8f0;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  --accent: #38bdf8;
  --accent-hover: #0284c7;
  --accent-bg: rgba(56, 189, 248, 0.15);
  --accent-border: rgba(56, 189, 248, 0.35);
  --nav-active-bg: linear-gradient(90deg, rgba(56, 189, 248, 0.15) 0%, rgba(56, 189, 248, 0.02) 100%);
  --nav-active-border: #38bdf8;
  --hero-bg: #131c2e;
  --hero-border: rgba(56, 189, 248, 0.2);
}

/* 浏览器原生色彩方案与底色锁定 */
html.theme-light, html.theme-light body {
  background-color: #f1f5f9 !important;
  color-scheme: light;
}
html.theme-dark, html.theme-dark body {
  background-color: #0b0f19 !important;
  color-scheme: dark;
}

/* ---------------- 2. 基础容器与骨架 ---------------- */
[v-cloak],
#app[v-cloak],
#app[v-cloak] *,
[v-cloak] * {
  display: none !important;
}

/* 模态框与遮罩层彻底阻断，绝不允许在首屏未挂载时弹出 */
.fixed.inset-0[v-cloak],
[v-cloak] .fixed.inset-0,
.modal-content[v-cloak],
.day-detail-drawer[v-cloak],
.context-menu[v-cloak],
.floating-toast-card[v-cloak] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

body {
  background-color: var(--bg-page) !important;
  color: var(--text-main) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  user-select: none;
}

#app:not([v-cloak]), .app-container:not([v-cloak]) {
  display: flex !important;
  flex-direction: row !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  background-color: var(--bg-page) !important;
}

aside.app-sidebar, aside:not(.day-detail-drawer) {
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  height: 100vh !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  border-right: 1px solid var(--border-subtle) !important;
  background-color: var(--bg-sidebar) !important;
  z-index: 20;
}

/* 日历当日全景回顾抽屉：46% 宽屏占比，520px~850px 黄金尺寸 */
.day-detail-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 46vw !important;
  min-width: 520px !important;
  max-width: 850px !important;
  height: 100vh !important;
  z-index: 40 !important;
  border-right: none !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .day-detail-drawer {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
  }
}

main {
  flex: 1 1 0% !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  min-width: 0 !important;
  overflow: hidden !important;
  background-color: var(--bg-page) !important;
}

header {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  background-color: var(--bg-header) !important;
  backdrop-filter: blur(12px) !important;
  flex-shrink: 0 !important;
}

section.content-section {
  flex: 1 1 0% !important;
  overflow-y: auto !important;
  position: relative !important;
  background-color: var(--bg-page) !important;
}

/* ---------------- 3. 卡片与通用面板 ---------------- */
.tech-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-main) !important;
}
.tech-card:hover {
  border-color: var(--accent-border) !important;
}
.theme-light .tech-card {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}
.theme-light .tech-card:hover {
  box-shadow: 0 4px 14px -2px rgba(2, 132, 199, 0.12) !important;
}

/* 控制器卡片与次级按钮 */
.btn-control {
  background-color: var(--bg-btn) !important;
  border: 1px solid var(--border-btn) !important;
  color: var(--text-main) !important;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-control:hover {
  background-color: var(--bg-btn-hover) !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* 图标小按钮 (如 Header 刷新按钮) */
.btn-icon {
  background-color: var(--bg-btn) !important;
  border: 1px solid var(--border-btn) !important;
  color: var(--text-sub) !important;
  transition: all 0.15s ease;
}
.btn-icon:hover {
  background-color: var(--bg-btn-hover) !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* 柔和提示徽章 (如 "周一为起始日") */
.badge-accent {
  background-color: var(--accent-bg) !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent-border) !important;
}

/* 首页顶部横幅 */
.hero-banner {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
}
.stat-box {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
}
.theme-light .stat-box {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

/* 导航项核心视觉与交互设计 */
.nav-item {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  padding: 11px 16px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  border-left: 3.5px solid transparent !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  background-color: transparent !important;
}

.theme-light .nav-item {
  color: #334155 !important;
}
.theme-light .nav-item:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.theme-dark .nav-item {
  color: #94a3b8 !important;
}
.theme-dark .nav-item:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
}

.nav-item-active {
  font-weight: 600 !important;
}

.theme-light .nav-item-active {
  background-color: #f0f9ff !important;
  color: #0284c7 !important;
  border-left-color: #0284c7 !important;
}
.theme-light .nav-item-active:hover {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
}

.theme-dark .nav-item-active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0.03) 100%) !important;
  color: #38bdf8 !important;
  border-left-color: #38bdf8 !important;
}
.theme-dark .nav-item-active:hover {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0.05) 100%) !important;
}

/* 周报周标签选中态 (清爽高对比) */
.week-tab-active {
  background: var(--nav-active-bg) !important;
  border: 2px solid var(--accent) !important;
}
.theme-dark .week-tab-active {
  background: #182845 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15) !important;
}
.theme-light .week-tab-active {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15) !important;
}
.theme-light .week-tab-active span,
.theme-light .week-tab-active div {
  color: #0369a1 !important;
}

/* 招投标项目列表选中态 */
.bidding-item-active {
  border-color: var(--accent) !important;
}
.theme-dark .bidding-item-active {
  background: #162238 !important;
  border-color: #38bdf8 !important;
}
.theme-light .bidding-item-active {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12) !important;
}

/* ---------------- 4. 白天模式全量高清晰度覆盖 ---------------- */
.theme-light h1, 
.theme-light h2, 
.theme-light h3, 
.theme-light h4, 
.theme-light .text-slate-100 {
  color: #0f172a !important;
}

.theme-light p, 
.theme-light span, 
.theme-light div, 
.theme-light .text-slate-200, 
.theme-light .text-slate-300 {
  color: #1e293b;
}

.theme-light .text-slate-400, 
.theme-light .text-slate-500 {
  color: #475569 !important;
}

/* 强制清除白天模式下所有残留的纯黑深蓝背景类名 */
.theme-light .bg-card,
.theme-light .bg-slate-800,
.theme-light .bg-slate-900,
.theme-light .bg-slate-800\/60,
.theme-light .bg-slate-900\/60,
.theme-light .bg-slate-900\/80,
.theme-light .bg-slate-900\/30,
.theme-light .bg-slate-800\/40,
.theme-light .bg-slate-800\/30,
.theme-light .bg-\[\#0e1424\],
.theme-light .bg-\[\#121a2b\],
.theme-light .bg-\[\#131c2e\],
.theme-light .bg-\[\#162032\],
.theme-light .bg-\[\#162238\] {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

/* 强制消除白天模式下所有残留的纯黑深蓝 hover 类名，防止悬停时突兀黑斑 */
.theme-light [class*="hover:bg-slate-"]:hover,
.theme-light .hover\:bg-slate-800:hover,
.theme-light .hover\:bg-slate-700:hover,
.theme-light .hover\:bg-slate-900:hover,
.theme-light .hover\:bg-slate-700\/50:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* 白天模式下的输入框与文本域 */
.theme-light input, 
.theme-light select, 
.theme-light textarea {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
.theme-light input:focus, 
.theme-light select:focus, 
.theme-light textarea:focus {
  background-color: #ffffff !important;
  border-color: #0284c7 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15) !important;
}
.theme-light input::placeholder, 
.theme-light textarea::placeholder {
  color: #94a3b8 !important;
}

/* 白天模式下的日历网格单元格 */
.calendar-day-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  min-height: 110px;
  transition: all 0.18s ease;
}
.calendar-day-cell:hover {
  background: rgba(56, 189, 248, 0.05);
  border-color: rgba(56, 189, 248, 0.45);
}
.calendar-day-cell.is-selected {
  border-color: var(--accent) !important;
  background: var(--accent-bg) !important;
  box-shadow: 0 0 0 1px var(--accent) !important;
}
.theme-light .calendar-day-cell {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
.theme-light .calendar-day-cell:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
}
.theme-light .calendar-day-cell.other-month {
  background: #f8fafc !important;
  opacity: 0.6 !important;
}
.theme-light .calendar-day-cell.is-today {
  border-color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.05) !important;
}
.theme-light .calendar-day-cell.is-selected {
  border-color: #0284c7 !important;
  background: #e0f2fe !important;
  box-shadow: 0 0 0 1px #0284c7 !important;
}

/* 徽章色彩 */
.badge-bidding {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
}
.theme-light .badge-bidding {
  background: #fff7ed !important;
  color: #c2410c !important;
  border-color: #fed7aa !important;
}

.badge-meeting {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.theme-light .badge-meeting {
  background: #faf5ff !important;
  color: #7e22ce !important;
  border-color: #e9d5ff !important;
}

.badge-normal {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.theme-light .badge-normal {
  background: #f0f9ff !important;
  color: #0369a1 !important;
  border-color: #bae6fd !important;
}

.badge-milestone {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.theme-light .badge-milestone {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border-color: #bbf7d0 !important;
}

/* 右键菜单 */
.context-menu {
  position: fixed;
  z-index: 99999;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.35);
  padding: 6px;
  min-width: 185px;
}
.theme-light .context-menu {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12) !important;
}
.context-menu-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-main);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.context-menu-item:hover {
  background: var(--nav-active-bg);
  color: var(--accent);
}
.context-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: transparent;
  cursor: default;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.theme-light ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.16);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* 键盘按键与 OCR 拖放区 */
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.theme-light kbd {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* 周报卡片拖拽与板块交互体系 */
.weekly-card {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}
.weekly-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.weekly-card:active {
  cursor: grabbing;
}
.weekly-card.is-dragging {
  opacity: 0.3 !important;
  transform: scale(0.96) !important;
  border-style: dashed !important;
}
.weekly-drop-zone {
  min-height: 240px;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.weekly-drop-zone.is-dragover {
  border-style: dashed !important;
  transform: translateY(-2px);
}

/* 日历当日全景回顾抽屉动效 (结束时释放GPU合成剪裁，彻底解决下滚卡顿与白屏) */
@keyframes slideDrawerIn {
  0% {
    transform: translateX(100%);
    opacity: 0.2;
  }
  99% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

.animate-slide-drawer {
  animation: slideDrawerIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

@keyframes fadeInBackdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-backdrop {
  animation: fadeInBackdrop 0.18s ease forwards;
}

/* ==================== 日历当日全景回顾抽屉：双主题高质感与高性能滚动 ==================== */

/* 1. 抽屉背景与边框阴影 */
.theme-light .day-detail-drawer {
  background-color: #ffffff !important;
  border-left: 1px solid #e2e8f0 !important;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}
.theme-dark .day-detail-drawer {
  background-color: #0f172a !important;
  border-left: 1px solid #1e293b !important;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.6) !important;
  color: #f8fafc !important;
}

/* 2. 抽屉头部与底部栏 */
.theme-light .day-drawer-header {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.theme-dark .day-drawer-header {
  background-color: #162032 !important;
  border-bottom: 1px solid #1e293b !important;
}

.theme-light .day-drawer-footer {
  background-color: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}
.theme-dark .day-drawer-footer {
  background-color: #162032 !important;
  border-top: 1px solid #1e293b !important;
  color: #94a3b8 !important;
}

/* 3. 统计数字与徽章 */
.theme-light .day-drawer-stat-total {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}
.theme-light .day-drawer-stat-total strong {
  color: #0f172a !important;
}
.theme-dark .day-drawer-stat-total {
  background-color: #1e293b !important;
  color: #94a3b8 !important;
  border: 1px solid #334155 !important;
}
.theme-dark .day-drawer-stat-total strong {
  color: #f8fafc !important;
}

/* 4. 前后天切换微按钮 */
.theme-light .day-drawer-nav-group {
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
}
.theme-light .day-drawer-nav-btn {
  color: #475569 !important;
}
.theme-light .day-drawer-nav-btn:hover {
  background-color: #ffffff !important;
  color: #0284c7 !important;
}
.theme-dark .day-drawer-nav-group {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
}
.theme-dark .day-drawer-nav-btn {
  color: #94a3b8 !important;
}
.theme-dark .day-drawer-nav-btn:hover {
  background-color: #334155 !important;
  color: #38bdf8 !important;
}

/* 5. 抽屉滚动内容容器 (高性能隔离防卡顿) */
.day-detail-content {
  flex: 1 1 0% !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  contain: content !important;
  will-change: scroll-position !important;
  padding: 1.5rem !important;
}

/* 6. 事项卡片体系 */
.day-drawer-card {
  padding: 1.1rem;
  border-radius: 0.85rem;
  border-width: 1px;
  border-style: solid;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  contain: layout style;
}

/* 白天模式普通卡片 */
.theme-light .day-drawer-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.theme-light .day-drawer-card:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08) !important;
}
.theme-light .day-drawer-card.is-bidding {
  background-color: #fffdfa !important;
  border-color: #fed7aa !important;
}
.theme-light .day-drawer-card.is-bidding:hover {
  border-color: #f97316 !important;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.1) !important;
}
.theme-light .day-drawer-card.is-completed {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  opacity: 0.85;
}

/* 黑夜模式普通卡片 */
.theme-dark .day-drawer-card {
  background-color: #162032 !important;
  border-color: #1e293b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}
.theme-dark .day-drawer-card:hover {
  border-color: #38bdf8 !important;
}
.theme-dark .day-drawer-card.is-bidding {
  background-color: rgba(245, 158, 11, 0.04) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}
.theme-dark .day-drawer-card.is-completed {
  background-color: rgba(30, 41, 59, 0.35) !important;
  border-color: #1e293b !important;
  opacity: 0.75;
}

/* 7. 事项标题与完成态 */
.theme-light .day-drawer-title {
  color: #0f172a !important;
  font-weight: 600 !important;
}
.theme-light .day-drawer-card.is-completed .day-drawer-title {
  color: #94a3b8 !important;
  text-decoration: line-through !important;
}
.theme-dark .day-drawer-title {
  color: #f1f5f9 !important;
  font-weight: 600 !important;
}
.theme-dark .day-drawer-card.is-completed .day-drawer-title {
  color: #64748b !important;
  text-decoration: line-through !important;
}

/* 8. 招投标核心要素明细区域 */
.theme-light .day-drawer-bidding-box {
  background-color: #fffbeb !important;
  border: 1px solid #fef3c7 !important;
  border-radius: 0.75rem;
  padding: 0.875rem;
}
.theme-light .day-drawer-bidding-title {
  color: #b45309 !important;
  border-bottom: 1px solid #fde68a !important;
  font-weight: 700 !important;
}
.theme-light .day-drawer-bidding-label {
  color: #92400e !important;
  font-weight: 600 !important;
}
.theme-light .day-drawer-bidding-val {
  color: #0f172a !important;
}
.theme-light .day-drawer-bidding-req {
  background-color: #ffffff !important;
  border: 1px solid #fde68a !important;
  color: #334155 !important;
}

.theme-dark .day-drawer-bidding-box {
  background-color: rgba(245, 158, 11, 0.08) !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  border-radius: 0.75rem;
  padding: 0.875rem;
}
.theme-dark .day-drawer-bidding-title {
  color: #fbbf24 !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2) !important;
  font-weight: 700 !important;
}
.theme-dark .day-drawer-bidding-label {
  color: #f59e0b !important;
  font-weight: 600 !important;
}
.theme-dark .day-drawer-bidding-val {
  color: #f1f5f9 !important;
}
.theme-dark .day-drawer-bidding-req {
  background-color: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
  color: #cbd5e1 !important;
}

/* 9. 事项详情与备忘正文区 */
.theme-light .day-drawer-notes-box {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem;
  padding: 0.875rem;
}
.theme-light .day-drawer-notes-title {
  color: #475569 !important;
}
.theme-light .day-drawer-notes-text {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

.theme-dark .day-drawer-notes-box {
  background-color: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid #1e293b !important;
  border-radius: 0.75rem;
  padding: 0.875rem;
}
.theme-dark .day-drawer-notes-title {
  color: #94a3b8 !important;
}
.theme-dark .day-drawer-notes-text {
  background-color: rgba(2, 6, 23, 0.5) !important;
  border: 1px solid #1e293b !important;
  color: #cbd5e1 !important;
}

/* 10. 操作按钮体系 */
.theme-light .day-drawer-btn-secondary {
  background-color: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}
.theme-light .day-drawer-btn-secondary:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}
.theme-dark .day-drawer-btn-secondary {
  background-color: #1e293b !important;
  color: #cbd5e1 !important;
  border: 1px solid #334155 !important;
}
.theme-dark .day-drawer-btn-secondary:hover {
  background-color: #334155 !important;
  color: #ffffff !important;
}

/* ==================== 11. 允许划选复制文本与交互体系 ==================== */
.select-text,
.select-text *:not(button):not(svg):not(i):not(path):not(circle):not(.btn-control):not(.badge):not(.nav-item) {
  user-select: text !important;
  -webkit-user-select: text !important;
}

.cursor-text {
  cursor: text !important;
}

/* 按钮、控制按键保持不被选中 */
.select-text button,
.select-text button *,
.select-text a,
.select-text a * {
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* 划选高亮色优化 */
.select-text ::selection {
  background-color: rgba(56, 189, 248, 0.45) !important;
  color: #ffffff !important;
}
.theme-light .select-text ::selection {
  background-color: rgba(2, 132, 199, 0.35) !important;
  color: #0f172a !important;
}

/* 可复制属性卡片交互 */
.copyable-stat-box {
  position: relative;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.copyable-stat-box:hover {
  border-color: rgba(56, 189, 248, 0.4) !important;
}
.theme-light .copyable-stat-box:hover {
  border-color: rgba(2, 132, 199, 0.45) !important;
}

/* ==================== 12. 精致微交互组件：快捷复制胶囊按钮 (btn-copy-chip) ==================== */
.btn-copy-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  font-size: 0.72rem; /* 约 11.5px */
  line-height: 1.2;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid transparent;
}
.btn-copy-chip:active {
  transform: scale(0.96);
}

/* 深色模式默认风格（科技半透极光蓝） */
.btn-copy-chip {
  background-color: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8 !important;
}
.btn-copy-chip span,
.btn-copy-chip svg,
.btn-copy-chip i {
  color: #38bdf8 !important;
  stroke: #38bdf8;
}
.btn-copy-chip:hover {
  background-color: rgba(56, 189, 248, 0.18) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2) !important;
}
.btn-copy-chip:hover span,
.btn-copy-chip:hover svg,
.btn-copy-chip:hover i {
  color: #7dd3fc !important;
  stroke: #7dd3fc;
}

/* 深色模式已复制成功状态（翡翠绿） */
.btn-copy-chip.is-copied {
  background-color: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}
.btn-copy-chip.is-copied span,
.btn-copy-chip.is-copied svg,
.btn-copy-chip.is-copied i {
  color: #34d399 !important;
  stroke: #34d399;
}

/* 白天模式默认风格（纯净透亮冰天蓝，清爽雅致，绝无任何深黑暗斑） */
.theme-light .btn-copy-chip {
  background-color: #f0f9ff !important;
  border-color: #bae6fd !important;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.05) !important;
}
.theme-light .btn-copy-chip span,
.theme-light .btn-copy-chip svg,
.theme-light .btn-copy-chip i {
  color: #0284c7 !important;
  stroke: #0284c7;
}
.theme-light .btn-copy-chip:hover {
  background-color: #e0f2fe !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.14) !important;
}
.theme-light .btn-copy-chip:hover span,
.theme-light .btn-copy-chip:hover svg,
.theme-light .btn-copy-chip:hover i {
  color: #0369a1 !important;
  stroke: #0369a1;
}

/* 白天模式已复制成功状态 */
.theme-light .btn-copy-chip.is-copied {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}
.theme-light .btn-copy-chip.is-copied span,
.theme-light .btn-copy-chip.is-copied svg,
.theme-light .btn-copy-chip.is-copied i {
  color: #059669 !important;
  stroke: #059669;
}

/* 详情页头部操作按钮深浅双主题精雕细琢 */
.theme-light .btn-bidding-summary {
  background-color: #f0f9ff !important;
  border-color: #bae6fd !important;
}
.theme-light .btn-bidding-summary span,
.theme-light .btn-bidding-summary svg,
.theme-light .btn-bidding-summary i {
  color: #0284c7 !important;
  stroke: #0284c7;
}
.theme-light .btn-bidding-summary:hover {
  background-color: #e0f2fe !important;
  border-color: #7dd3fc !important;
}
.theme-light .btn-bidding-summary:hover span,
.theme-light .btn-bidding-summary:hover svg,
.theme-light .btn-bidding-summary:hover i {
  color: #0369a1 !important;
  stroke: #0369a1;
}
.theme-light .btn-bidding-edit {
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}
.theme-light .btn-bidding-edit:hover {
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}
.theme-light .btn-bidding-delete {
  background-color: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
}
.theme-light .btn-bidding-delete:hover {
  background-color: #ffe4e6 !important;
  border-color: #fda4af !important;
  color: #be123c !important;
}

/* ==================== 13. 开标行程看板精细化设计 ==================== */
.theme-light thead tr.bg-slate-900\/80 {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
}
.theme-light tbody tr:hover {
  background-color: #f8fafc !important;
}
.theme-light td input {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
.theme-light td input:focus {
  border-color: #0284c7 !important;
  background-color: #ffffff !important;
}

/* 全局消除白天模式下所有 slate-900 半透明暗块，保证纯净通透 */
.theme-light .bg-slate-900\/40,
.theme-light .bg-slate-900\/30,
.theme-light .bg-slate-900\/20,
.theme-light .bg-slate-900\/10,
.theme-light .bg-slate-800\/40,
.theme-light .bg-slate-800\/30 {
  background-color: #f8fafc !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
}

/* 1. 开标地点微胶囊条 (bid-location-pill) */
.bid-location-pill {
  background-color: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.2);
  transition: all 0.15s ease;
}
.bid-location-pill:hover {
  border-color: rgba(244, 63, 94, 0.4);
}
.theme-light .bid-location-pill {
  background-color: #f8fafc !important; /* 纯净清爽的浅灰底，彻底告别突兀浑浊深色块 */
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}
.theme-light .bid-location-pill:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}
.theme-light .bid-location-pill .text-rose-400,
.theme-light .bid-location-pill .text-rose-400 span,
.theme-light .bid-location-pill i[data-lucide="map-pin"] {
  color: #e11d48 !important;
}
.theme-light .bid-location-pill .select-text {
  color: #1e293b !important;
}
.theme-light .bid-location-pill button {
  color: #64748b !important;
}
.theme-light .bid-location-pill button:hover {
  color: #e11d48 !important;
}
.theme-light .bid-location-pill input {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

/* 2. 开标人微胶囊条 (bid-opener-pill) */
.bid-opener-pill {
  background-color: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.15s ease;
}
.theme-light .bid-opener-pill {
  background-color: #f0f9ff !important; /* 清新雅致的淡天蓝底 */
  border: 1px solid #bae6fd !important;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.04) !important;
}
.theme-light .bid-opener-pill .text-sky-400,
.theme-light .bid-opener-pill .text-sky-400 span,
.theme-light .bid-opener-pill i[data-lucide="user-check"] {
  color: #0284c7 !important;
}
.theme-light .bid-opener-pill input {
  background-color: #ffffff !important;
  border: 1px solid #bae6fd !important;
  color: #0f172a !important;
}
.theme-light .bid-opener-pill input::placeholder {
  color: #94a3b8 !important;
}
.theme-light .bid-opener-pill input:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.2) !important;
}
.theme-light .bid-opener-pill button.bg-slate-800,
.theme-light .bid-opener-pill .bg-slate-800 {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}
.theme-light .bid-opener-pill button.bg-slate-800:hover,
.theme-light .bid-opener-pill .bg-slate-800:hover {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}
.theme-light .bid-opener-pill button.bg-sky-500 {
  background-color: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}
.theme-light .bid-opener-pill button.bg-sky-500:hover {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #7dd3fc !important;
}

/* 3. 标书要求条带 (bid-doc-pill) */
.bid-doc-pill {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.theme-light .bid-doc-pill {
  background-color: #f8fafc !important; /* 清爽 Slate-50 底色 */
  border: 1px solid #e2e8f0 !important;
}
.theme-light .bid-doc-pill span {
  color: #475569 !important;
}
.theme-light .bid-doc-pill .select-text {
  color: #1e293b !important;
}
.theme-light .bid-doc-pill i {
  color: #0284c7 !important;
}

/* ==================== 14. 视图模式切换胶囊 (view-mode-toggle) ==================== */
.view-mode-toggle {
  background-color: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  padding: 3px;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.theme-light .view-mode-toggle {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.view-mode-toggle button {
  border: 1px solid transparent;
  background: transparent;
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  color: #94a3b8;
}

.view-mode-toggle button:hover {
  color: #f8fafc;
}

.theme-light .view-mode-toggle button {
  color: #64748b !important;
}

.theme-light .view-mode-toggle button:hover {
  color: #0f172a !important;
  background-color: rgba(226, 232, 240, 0.6) !important;
}

/* 深色模式激活状态 */
.view-mode-toggle button.is-active {
  background-color: rgba(56, 189, 248, 0.2) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  font-weight: 600;
}

/* 白天浅色模式激活状态：优雅纯白浮雕卡片，搭配蔚蓝文字与精致微阴影，绝无深黑 */
.theme-light .view-mode-toggle button.is-active {
  background-color: #ffffff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(2, 132, 199, 0.08) !important;
  font-weight: 600;
}
.theme-light .view-mode-toggle button.is-active i,
.theme-light .view-mode-toggle button.is-active svg,
.theme-light .view-mode-toggle button.is-active span {
  color: #0284c7 !important;
  stroke: #0284c7 !important;
}

/* ==================== 15. 全站核心主行动按钮 (btn-brand-action) ==================== */
.btn-brand-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
}
.btn-brand-action:active {
  transform: scale(0.97);
}

/* 默认深色模式风格：半透极光蔚蓝科技底 */
.btn-brand-action {
  background-color: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.15) !important;
}
.btn-brand-action span,
.btn-brand-action i,
.btn-brand-action svg {
  color: #38bdf8 !important;
  stroke: #38bdf8 !important;
}
.btn-brand-action:hover {
  background-color: rgba(56, 189, 248, 0.25) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  color: #7dd3fc !important;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25) !important;
}
.btn-brand-action:hover span,
.btn-brand-action:hover i,
.btn-brand-action:hover svg {
  color: #7dd3fc !important;
  stroke: #7dd3fc !important;
}

/* 白天浅色模式风格：纯净冰晶天蓝底、轻透柔和、无任何深黑粗暴底色，与整体UI完全融为一体 */
.theme-light .btn-brand-action {
  background-color: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08) !important;
}
.theme-light .btn-brand-action span,
.theme-light .btn-brand-action i,
.theme-light .btn-brand-action svg {
  color: #0284c7 !important;
  stroke: #0284c7 !important;
}
.theme-light .btn-brand-action:hover {
  background-color: #e0f2fe !important;
  border-color: #7dd3fc !important;
  color: #0369a1 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.16) !important;
}
.theme-light .btn-brand-action:hover span,
.theme-light .btn-brand-action:hover i,
.theme-light .btn-brand-action:hover svg {
  color: #0369a1 !important;
  stroke: #0369a1 !important;
}

/* ==================== 16. 模式选择标签胶囊 (import-mode-tab) ==================== */
.import-mode-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  border: 1px solid transparent;
  color: #94a3b8;
  transition: all 0.15s ease;
  user-select: none;
}
.theme-light .import-mode-tab {
  color: #64748b;
}
.theme-light .import-mode-tab:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}
.import-mode-tab.is-active {
  background-color: rgba(56, 189, 248, 0.2) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
}
.theme-light .import-mode-tab.is-active {
  background-color: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.08) !important;
}
.theme-light .import-mode-tab.is-active svg,
.theme-light .import-mode-tab.is-active span {
  color: #0284c7 !important;
  stroke: #0284c7 !important;
}

/* ==================== 17. 开标时间与星期几胶囊 (bid-time-pill & bid-weekday-chip) ==================== */
.bid-time-pill {
  background-color: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  transition: all 0.15s ease;
}
.theme-light .bid-time-pill {
  background-color: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.05) !important;
}

.bid-weekday-chip {
  font-family: inherit;
  font-size: 0.72rem; /* 约 11.5px */
  font-weight: 600;
  color: #7dd3fc;
  background-color: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.08rem 0.4rem;
  border-radius: 0.25rem;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.theme-light .bid-weekday-chip {
  color: #0369a1 !important;
  background-color: #e0f2fe !important;
  border: 1px solid #7dd3fc !important;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.08) !important;
}

/* ==================== 18. 克制状态微圆点 (status-dot) ==================== */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  flex-shrink: 0;
  vertical-align: middle;
}
.status-dot-today { background-color: #ef4444; }
.status-dot-tomorrow { background-color: #f59e0b; }
.status-dot-urgent { background-color: #f59e0b; }
.status-dot-near { background-color: #0284c7; }
.status-dot-normal { background-color: #64748b; }
.status-dot-past { background-color: #94a3b8; }

/* ==================== 19. 纯净倒计时徽标 (bid-countdown-pill) ==================== */
.bid-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* 今日开标 (Today) */
.bid-countdown-pill.is-today {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-weight: 600;
}
.theme-light .bid-countdown-pill.is-today {
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
}

/* 明天开标 (Tomorrow) */
.bid-countdown-pill.is-tomorrow {
  background-color: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-weight: 600;
}
.theme-light .bid-countdown-pill.is-tomorrow {
  background-color: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #d97706 !important;
}

/* 紧迫截标 (Urgent <= 3天) */
.bid-countdown-pill.is-urgent {
  background-color: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}
.theme-light .bid-countdown-pill.is-urgent {
  background-color: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #d97706 !important;
}

/* 即将截标 (Near <= 7天) */
.bid-countdown-pill.is-near {
  background-color: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}
.theme-light .bid-countdown-pill.is-near {
  background-color: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
}

/* 常规截标 (Normal) */
.bid-countdown-pill.is-normal {
  background-color: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}
.theme-light .bid-countdown-pill.is-normal {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

/* 已开标归档 (Past) */
.bid-countdown-pill.is-past {
  background-color: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: #64748b;
}
.theme-light .bid-countdown-pill.is-past {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

/* ==================== 20. 统一筛选胶囊 (filter-pill) ==================== */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
  border: 1px solid var(--border-btn);
  background-color: var(--bg-btn);
  color: var(--text-sub);
}
.filter-pill:hover {
  background-color: var(--bg-btn-hover);
  color: var(--text-main);
  border-color: var(--border-subtle);
}
.filter-pill.is-active {
  background-color: var(--accent-bg) !important;
  border-color: var(--accent-border) !important;
  color: var(--accent) !important;
  font-weight: 600;
}
.theme-light .filter-pill.is-active {
  background-color: #f0f9ff !important;
  border-color: #bae6fd !important;
  color: #0284c7 !important;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.06) !important;
}
.filter-pill.is-active svg,
.filter-pill.is-active i {
  color: var(--accent) !important;
  stroke: var(--accent) !important;
}

/* ==================== 21. 悬浮状态通知卡片 (floating-card) ==================== */
.floating-toast-card {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  background-color: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #e2e8f0;
  font-size: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-light .floating-toast-card {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.animate-shake {
  animation: pinShake 0.4s ease-in-out;
}










