/* ==============================================================================
   French Liquid Glass UI Design System (法式液体玻璃拟态体系 - 1:1 像素级原画级还原)
   Inspired by: Guide du verre liquide (Liquid Glass Caustics & Jelly Glow)
   ============================================================================== */

:root {
  --lg-bg: #eaf3ea;
  --lg-primary: #15803d;
  --lg-primary-deep: #0a3d1b;
  --lg-accent-lime: #84cc16;
  --lg-accent-emerald: #10b981;
  --lg-accent-cyan: #06b6d4;
  --lg-text-title: #062810;
  --lg-text-body: #1e3f28;
  --lg-text-muted: #4d735a;
  --lg-border-glass: rgba(255, 255, 255, 0.85);
  --lg-surface-glass: rgba(255, 255, 255, 0.42);
}

/* ==================== 晨曦薄雾与透光自然画布 (法式液体玻璃原画级背景 - 图片已按需注释) ==================== */
body {
  background-color: #d8ebd8;
  /* background-image: 
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    url('../images/liquid_glass_bg.jpg'); */
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.45) 0%, transparent 70%),
    linear-gradient(135deg, #e4f3e4 0%, #d8ebd8 50%, #cce5cc 100%);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--lg-text-body);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 柔和透光微晕遮罩，衬托玻璃高光与通透感 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.28) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.font-mono {
  font-family: 'JetBrains Mono', 'Space Mono', Consolas, monospace;
}

/* ==================== 1:1 法式悬浮液体玻璃大巨幕 (Suspended Master Glass Sheet) ==================== */
.liquid-master-panel {
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 44px;
  box-shadow: 
    0 35px 80px -20px rgba(12, 45, 20, 0.12),
    0 12px 30px -5px rgba(12, 45, 20, 0.06),
    inset 0 2px 4px 0 rgba(255, 255, 255, 0.98),
    inset 0 -2px 4px 0 rgba(10, 40, 20, 0.04);
  position: relative;
  z-index: 10;
}

/* 玻璃次级卡槽 (Glass Inset Pod) */
.glass-pod {
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: 
    0 8px 24px -4px rgba(10, 45, 20, 0.04),
    inset 0 1.5px 3px rgba(255, 255, 255, 0.95),
    inset 0 -1.5px 3px rgba(0, 0, 0, 0.02);
  position: relative;
}

/* ==================== 超微轻量精致投影 (Micro Shadows - 确保 shadow-xs 完整保留与生效) ==================== */
.shadow-xs {
  box-shadow: 0 1px 2px 0 rgba(10, 40, 20, 0.06), 0 1px 1px 0 rgba(0, 0, 0, 0.03) !important;
}

/* ==================== 效果图 1:1 原作核心：主操作翡翠青柠果冻胶囊 (Action principale) ==================== */
.btn-jelly-primary {
  position: relative;
  background: linear-gradient(135deg, rgba(166, 235, 60, 0.92) 0%, rgba(46, 198, 86, 0.95) 55%, rgba(16, 175, 110, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 9999px;
  color: #ffffff !important;
  text-shadow: 0 1.5px 3px rgba(8, 45, 18, 0.42);
  font-weight: 800;
  letter-spacing: -0.01em;
  /* 灵魂核心：双层水晶厚壁折射壳 + 内部高光折射 + 底部翡翠漫反射阴影 */
  box-shadow: 
    0 0 0 3.5px rgba(255, 255, 255, 0.55),
    0 0 0 5.5px rgba(255, 255, 255, 0.18),
    0 16px 36px -6px rgba(34, 197, 94, 0.48),
    0 6px 14px -2px rgba(34, 197, 94, 0.3),
    inset 0 2.8px 5px 0 rgba(255, 255, 255, 0.96),
    inset 0 -3.2px 6px 0 rgba(8, 60, 24, 0.38);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  cursor: pointer;
}

/* 顶部弧形月牙镜面反光条 */
.btn-jelly-primary::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 14px;
  right: 14px;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.25) 65%, transparent 100%);
  border-radius: 9999px 9999px 50% 50% / 9999px 9999px 30% 30%;
  pointer-events: none;
  z-index: 2;
}

.btn-jelly-primary:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 
    0 0 0 4px rgba(255, 255, 255, 0.7),
    0 0 0 7px rgba(255, 255, 255, 0.22),
    0 22px 42px -6px rgba(34, 197, 94, 0.58),
    inset 0 3px 6px 0 rgba(255, 255, 255, 1);
}

.btn-jelly-primary:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
  box-shadow: 
    0 0 0 2.5px rgba(255, 255, 255, 0.5),
    0 6px 16px -2px rgba(34, 197, 94, 0.35);
}

.btn-jelly-primary:disabled {
  opacity: 0.55;
  filter: grayscale(35%);
  cursor: not-allowed;
  transform: none !important;
}

/* ==================== 效果图 1:1 原作核心：次级操作湖水薄荷晶体胶囊 (Action secondaire) ==================== */
.btn-jelly-secondary {
  position: relative;
  background: linear-gradient(135deg, rgba(52, 226, 206, 0.92) 0%, rgba(20, 184, 166, 0.95) 60%, rgba(13, 148, 136, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 9999px;
  color: #ffffff !important;
  text-shadow: 0 1.5px 3px rgba(6, 45, 42, 0.42);
  font-weight: 800;
  letter-spacing: -0.01em;
  /* 双层水晶厚壁折射壳 + 湖水薄荷折射阴影 */
  box-shadow: 
    0 0 0 3.5px rgba(255, 255, 255, 0.55),
    0 0 0 5.5px rgba(255, 255, 255, 0.18),
    0 16px 34px -6px rgba(20, 184, 166, 0.45),
    0 6px 14px -2px rgba(20, 184, 166, 0.28),
    inset 0 2.8px 5px 0 rgba(255, 255, 255, 0.96),
    inset 0 -3.2px 6px 0 rgba(8, 55, 50, 0.38);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  cursor: pointer;
}

/* 顶部弧形月牙反光 */
.btn-jelly-secondary::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 14px;
  right: 14px;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.25) 65%, transparent 100%);
  border-radius: 9999px 9999px 50% 50% / 9999px 9999px 30% 30%;
  pointer-events: none;
  z-index: 2;
}

.btn-jelly-secondary:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 
    0 0 0 4px rgba(255, 255, 255, 0.7),
    0 0 0 7px rgba(255, 255, 255, 0.22),
    0 22px 42px -6px rgba(20, 184, 166, 0.55),
    inset 0 3px 6px 0 rgba(255, 255, 255, 1);
}

.btn-jelly-secondary:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
}

.btn-jelly-secondary:disabled {
  opacity: 0.55;
  filter: grayscale(35%);
  cursor: not-allowed;
  transform: none !important;
}

/* 交付区复制按钮：覆盖通用胶囊的两端对齐，让图标与文案稳定居中。 */
#btn-copy-result {
  min-height: 44px;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 1.25rem;
  text-align: center;
}

#btn-copy-result > * {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}

/* 胶囊左侧的圆形凹凸透镜微光徽章 (Lens Inset Badge) */
.btn-lens-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.12) 60%, rgba(255, 255, 255, 0.3) 100%);
  border: 1.2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 3px rgba(0, 0, 0, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

/* ==================== 效果图 1:1 原作核心：凸起水滴正圆透镜按钮 (Ajouter / Filtres) ==================== */
.btn-water-drop {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /* 真正的全透光水珠凸透镜渐变 */
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.22) 52%, rgba(255, 255, 255, 0.65) 100%);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  border: 1.6px solid rgba(255, 255, 255, 0.95);
  /* 水晶双重折射环 + 凸起高光 */
  box-shadow: 
    0 0 0 3.5px rgba(255, 255, 255, 0.45),
    0 0 0 5.5px rgba(255, 255, 255, 0.15),
    0 12px 26px -4px rgba(12, 55, 25, 0.18),
    0 4px 10px rgba(12, 55, 25, 0.08),
    inset 0 3.2px 6px rgba(255, 255, 255, 0.98),
    inset 0 -3.2px 6px rgba(10, 50, 20, 0.16);
  color: #164e29;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

/* 水滴顶部微弧镜面反射 */
.btn-water-drop::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 10px;
  right: 10px;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.2) 75%, transparent 100%);
  border-radius: 9999px;
  pointer-events: none;
}

.btn-water-drop:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 
    0 0 0 4.5px rgba(255, 255, 255, 0.65),
    0 0 0 7.5px rgba(255, 255, 255, 0.22),
    0 18px 34px -4px rgba(12, 55, 25, 0.24),
    inset 0 3.5px 7px rgba(255, 255, 255, 1);
  color: #062810;
}

.btn-water-drop:active:not(:disabled) {
  transform: translateY(1px) scale(0.96);
  box-shadow: 
    0 0 0 2.5px rgba(255, 255, 255, 0.4),
    0 6px 14px rgba(12, 55, 25, 0.12);
}

.btn-water-drop:disabled {
  opacity: 0.45;
  filter: grayscale(40%);
  cursor: not-allowed;
  transform: none !important;
}

/* 带有危险色调的水滴按钮 (释放号码等) */
.btn-water-drop-danger {
  color: #991b1b;
}
.btn-water-drop-danger:hover:not(:disabled) {
  color: #7f1d1d;
  background: radial-gradient(circle at 35% 28%, rgba(254, 226, 226, 0.95) 0%, rgba(254, 202, 202, 0.3) 52%, rgba(254, 226, 226, 0.7) 100%);
}

/* ==================== 右上角法式窗体控制水晶小圆钮 (— □ ✕) ==================== */
.btn-window-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.2) 65%, rgba(255, 255, 255, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 2px 6px rgba(10, 45, 20, 0.08),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #2b5539;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-window-dot:hover {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.95);
  color: #062810;
}

/* ==================== 效果图 1:1 搜索输入胶囊 (Rechercher un projet... 风格) ==================== */
.liquid-search-capsule {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  border-radius: 9999px;
  box-shadow: 
    inset 0 2px 4px rgba(10, 40, 20, 0.04),
    0 4px 12px rgba(10, 40, 20, 0.03);
  transition: all 0.24s ease;
  display: flex;
  align-items: center;
  padding: 4px 6px 4px 14px;
}
.liquid-search-capsule:focus-within {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 
    0 0 0 3px rgba(34, 197, 94, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* 玻璃白底透光按钮 (Pill Button) */
.btn-glass-pill {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 9999px;
  color: var(--lg-text-title);
  font-weight: 700;
  box-shadow: 
    0 4px 14px -2px rgba(10, 50, 20, 0.06),
    inset 0 1.5px 3px rgba(255, 255, 255, 0.96);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-glass-pill:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -2px rgba(10, 50, 20, 0.1);
}

/* ==================== 效果图 1:1 底部导航胶囊 (Aperçu / Projets / Équipe) ==================== */
.liquid-dock-capsule {
  position: relative;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  padding: 4px;
  box-shadow: 
    0 12px 28px -4px rgba(10, 45, 20, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 胶囊指示块：在Tab之间物理平移滑动的背景 (过渡移动动画) */
.liquid-dock-glider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 
    0 4px 14px rgba(10, 45, 20, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 1);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.25, 1.15), width 0.32s cubic-bezier(0.2, 0.9, 0.25, 1);
  will-change: transform, width;
}

.liquid-dock-item {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lg-text-muted);
  transition: color 0.25s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 2;
  background: transparent;
}
.liquid-dock-item:hover:not(.active) {
  color: #062810;
}
.liquid-dock-item.active {
  color: #062810;
}
.liquid-dock-item:active {
  transform: scale(0.96);
}

/* ==================== 工作区面板：左右方向平滑过渡移动动画 ==================== */
@keyframes tabSlideFromRight {
  0% {
    opacity: 0;
    transform: translateX(24px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes tabSlideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-24px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.tab-pane-slide-right {
  animation: tabSlideFromRight 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

.tab-pane-slide-left {
  animation: tabSlideFromLeft 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

/* ==================== 效果图 1:1 原作：6 位水晶数字透光插槽 (SMS CRYSTAL SLOTS) ==================== */
.crystal-digit-slot {
  width: 2.85rem;
  height: 2.95rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1.6px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 8px 20px -3px rgba(12, 50, 22, 0.08),
    inset 0 2px 4px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(10, 50, 20, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 800;
  color: #062810;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.crystal-digit-slot::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  right: 6px;
  height: 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
  border-radius: 12px;
  pointer-events: none;
}

.crystal-digit-slot.active {
  background: linear-gradient(145deg, rgba(163, 230, 53, 0.3) 0%, rgba(34, 197, 94, 0.45) 100%);
  border-color: rgba(34, 197, 94, 0.9);
  color: #062810;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 14px 28px -4px rgba(34, 197, 94, 0.35),
    0 0 0 3px rgba(34, 197, 94, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

/* 占位透光小翡翠水滴点 */
.crystal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* ==================== 效果图 1:1 右下角悬浮绿宝石立方体 (Crystal Gem Cube) ==================== */
.crystal-gem-cube {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.4) 0%, rgba(34, 197, 94, 0.65) 50%, rgba(13, 148, 136, 0.75) 100%);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  box-shadow: 
    0 20px 40px -8px rgba(22, 101, 52, 0.32),
    inset 0 3px 6px rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(6, 78, 59, 0.4);
  transform: rotate(-8deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: floatGem 4s ease-in-out infinite alternate;
}

@keyframes floatGem {
  0% { transform: translateY(0px) rotate(-8deg); }
  100% { transform: translateY(-8px) rotate(-4deg); }
}

/* 全局彻底消除表单控件点击时触发 Chrome 默认黑色外边框与高亮框 */
input, textarea, select, button {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
input:focus, textarea:focus, select:focus, button:focus,
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible {
  outline: none !important;
  outline-color: transparent !important;
}

/* ==================== 通用透光输入框 (Liquid Ceramic Input) ==================== */
.liquid-input {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 16px;
  color: var(--lg-text-title);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
}
.liquid-input:focus,
.liquid-input:focus-visible {
  outline: none !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(16, 185, 129, 0.65) !important;
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.18) !important;
}

/* ==================== 现代白瓷轻奢浮动提示框 (Modern Ceramic Floating Toast) ==================== */
.liquid-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  color: #0f172a;
  padding: 6px 18px 6px 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 10px 25px -4px rgba(15, 23, 42, 0.08),
    0 4px 10px -2px rgba(15, 23, 42, 0.03);
  animation: toastSpring 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease;
  pointer-events: auto;
  white-space: nowrap;
}

/* 彻底移除塑料感顶部反光罩 */
.liquid-toast::after {
  display: none !important;
}

/* 提示框精致微型徽章 */
.toast-lens-badge {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #059669 !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.toast-lens-badge svg,
.toast-lens-badge i {
  width: 13px !important;
  height: 13px !important;
  stroke-width: 2.5 !important;
  color: inherit !important;
}

/* 错误态 Toast 与徽章 */
.liquid-toast.toast-error {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(239, 68, 68, 0.18);
  color: #991b1b;
  box-shadow: 
    0 0 0 1px rgba(239, 68, 68, 0.12),
    0 10px 25px -4px rgba(220, 38, 38, 0.10),
    0 4px 10px -2px rgba(220, 38, 38, 0.03);
}

.liquid-toast.toast-error .toast-lens-badge,
.toast-lens-badge.\!bg-rose-500,
.toast-lens-badge.badge-error {
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
}

.toast-lens-badge.\!bg-emerald-600,
.toast-lens-badge.badge-success {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #059669 !important;
}

@keyframes toastSpring {
  0% { opacity: 0; transform: translate(-50%, -16px) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* 呼吸绿圆点 */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.animate-pulse-dot {
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==================== 现代主流管理后台：左侧高透玻璃侧边栏 (绝对固定，杜绝抖动) ==================== */
.admin-sidebar {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  box-shadow: 
    0 20px 50px -10px rgba(10, 45, 20, 0.08),
    inset 0 1.5px 3px rgba(255, 255, 255, 0.98);
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  min-height: 600px;
  max-height: 960px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    position: static;
    height: auto;
    min-height: 0;
  }
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lg-text-muted);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
}

.admin-nav-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.65);
  color: #062810;
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateX(3px);
}

.admin-nav-item.active {
  background: linear-gradient(135deg, rgba(166, 235, 60, 0.92) 0%, rgba(34, 197, 94, 0.95) 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(8, 45, 18, 0.42);
  box-shadow: 
    0 8px 22px -3px rgba(34, 197, 94, 0.38),
    inset 0 2px 3px rgba(255, 255, 255, 0.95);
}

.admin-nav-item.active i {
  color: #ffffff !important;
}

.admin-view-panel {
  display: none;
  animation: adminFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-view-panel.active {
  display: block;
}

@keyframes adminFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== 法式高透液体玻璃滚动条体系 (Liquid Glass Scrollbars) ==================== */
/* 全局页面与容器滚动条 */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.28);
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 197, 94, 0.58);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.45), inset 0 1px 2px rgba(255, 255, 255, 1);
}

::-webkit-scrollbar-thumb:active {
  background: rgba(21, 128, 61, 0.8);
}

/* 局部微细滚动条 (subtle-scroll) */
.subtle-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.subtle-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.subtle-scroll::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.24);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.subtle-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 197, 94, 0.48);
}

/* Firefox 滚动条全局适配 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 197, 94, 0.35) transparent;
}

/* ==================== 法式液体玻璃通用下拉菜单组件 (Liquid Glass Dropdown) ==================== */
.liquid-dropdown {
  position: relative;
  display: inline-block;
  user-select: none;
}

/* 下拉触发器胶囊 */
.liquid-dropdown-trigger {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #062810;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 
    0 4px 12px rgba(10, 45, 20, 0.05),
    inset 0 1.5px 3px rgba(255, 255, 255, 0.95);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10, 45, 20, 0.08);
}

.liquid-dropdown-trigger.open {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(34, 197, 94, 0.8);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), inset 0 1px 2px rgba(255, 255, 255, 1);
}

.liquid-dropdown-arrow,
.liquid-dropdown-trigger svg:last-child,
.liquid-dropdown-trigger i:last-child {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.liquid-dropdown-trigger.open .liquid-dropdown-arrow,
.liquid-dropdown-trigger.open svg:last-child,
.liquid-dropdown-trigger.open i:last-child {
  transform: rotate(180deg);
}

/* 展开的玻璃悬浮选项面板 (默认居左对齐向右展开) */
.liquid-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 175px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 253, 244, 0.95) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.6px solid rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 6px;
  box-shadow: 
    0 0 0 3.5px rgba(255, 255, 255, 0.5),
    0 18px 40px -4px rgba(12, 50, 22, 0.18),
    inset 0 1.5px 3px rgba(255, 255, 255, 0.98);
  z-index: 1000;
  display: none;
  animation: dropdownPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-dropdown-menu.menu-right {
  left: auto;
  right: 0;
}

.liquid-dropdown-menu.show {
  display: block;
}

@keyframes dropdownPop {
  0% { opacity: 0; transform: translateY(-8px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 选项条目 */
.liquid-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #1e3f28;
  cursor: pointer;
  transition: all 0.18s ease;
}

.liquid-dropdown-item:hover {
  background: rgba(34, 197, 94, 0.12);
  color: #062810;
  transform: translateX(2px);
}

.liquid-dropdown-item.active {
  background: linear-gradient(135deg, rgba(166, 235, 60, 0.9) 0%, rgba(34, 197, 94, 0.92) 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(8, 45, 18, 0.35);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 全局原生 select 样式兜底 (优雅清爽，避免默认丑陋框) */
select.liquid-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ==================== 法式高透液体玻璃复选框体系 (Liquid Glass Checkbox) ==================== */
.liquid-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.liquid-checkbox-label:hover .liquid-checkbox-custom {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(34, 197, 94, 0.65);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.16);
}

.liquid-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.liquid-checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.6px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 3px 8px rgba(10, 45, 20, 0.06),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  position: relative;
}

.liquid-checkbox-custom .check-icon {
  color: #ffffff;
  stroke: #ffffff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 选中状态：翡翠透光渐变底色 + 纯白微高光勾 */
.liquid-checkbox-input:checked + .liquid-checkbox-custom {
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.92) 0%, rgba(34, 197, 94, 0.95) 100%);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 
    0 4px 14px rgba(34, 197, 94, 0.38),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transform: scale(1.02);
}

.liquid-checkbox-input:checked + .liquid-checkbox-custom .check-icon {
  opacity: 1;
  transform: scale(1);
}

/* 键盘焦点指示 */
.liquid-checkbox-input:focus-visible + .liquid-checkbox-custom {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

/* ==================== 管理后台向下兼容补丁 (仅供历史测试与管理台，不影响门户) ==================== */
:root {
  --admin-page-inset: 1.5rem;
}

@media (min-width: 640px) {
  :root { --admin-page-inset: 2.5rem; }
}

@media (min-width: 1024px) {
  :root { --admin-page-inset: 3rem; }
}

.admin-entry-dialog .el-dialog__body {
  padding: 0 !important;
}

.admin-entry-dialog .el-dialog__header {
  display: none !important;
}

#dashboard-section > main {
  margin-right: calc(var(--admin-page-inset) / -2);
  padding-right: calc(var(--admin-page-inset) / 2);
}

.admin-table-shell > .admin-table-scroll {
  height: 100%;
  max-height: none;
  overflow: hidden;
}

.admin-data-table {
  height: 100%;
}

.admin-data-table .el-table__body-wrapper {
  overscroll-behavior: contain;
}

/* ==================== 通用液体玻璃弹窗缩放动效 ==================== */
@keyframes queryBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes queryPanelIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes queryPanelOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.8); }
}

.query-modal-backdrop.is-open {
  animation: queryBackdropIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.query-modal-backdrop.is-open .query-modal-panel {
  animation: queryPanelIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.query-modal-backdrop.is-closing {
  pointer-events: none;
  animation: queryBackdropOut 0.24s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.query-modal-backdrop.is-closing .query-modal-panel {
  animation: queryPanelOut 0.24s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

html,
body {
  touch-action: manipulation;
}

@media (max-width: 639px) {
  .liquid-master-panel {
    border-radius: 26px;
  }

  .mobile-sheet-panel {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
    border-bottom: 0 !important;
  }

  @keyframes mobileSheetIn {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes mobileSheetOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(100%); }
  }

  .query-modal-backdrop.is-open .mobile-sheet-panel {
    animation: mobileSheetIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .query-modal-backdrop.is-closing .mobile-sheet-panel {
    animation: mobileSheetOut 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .query-modal-backdrop.is-open,
  .query-modal-backdrop.is-closing,
  .query-modal-backdrop.is-open .query-modal-panel,
  .query-modal-backdrop.is-closing .query-modal-panel {
    animation: none;
  }
}



