/* ══════════════════════════════════════════
   乐活七勤 - 班数记录系统
   ══════════════════════════════════════════ */

/* ── 暗色主题（默认） ── */
:root,
[data-theme="dark"] {
  --wx-purple: #8B5CF6;
  --wx-purple-hover: #7C3AED;
  --wx-purple-dim: rgba(139, 92, 246, 0.15);
  --wx-purple-light: rgba(139, 92, 246, 0.35);
  --bg: #0D1117;
  --card: #161B22;
  --sidebar-bg: #0A0D12;
  --sidebar-text: #FFFFFF;
  --sidebar-text-hover: #FFFFFF;
  --sidebar-active: #8B5CF6;
  --sidebar-item-hover: #1F2937;
  --border: #30363D;
  --border-soft: #21262D;
  --text: #FFFFFF;
  --text-2: #D1D5DB;
  --muted: #9CA3AF;
  --danger: #F87171;
  --danger-dim: rgba(248, 113, 113, 0.15);
  --success: #8B5CF6;
  --warn: #FBBF24;
  --info: #60A5FA;
  --input-bg: #0D1117;
  --cell-bg: #161B22;
  --hero-bg: linear-gradient(135deg, #161B22 0%, #0F172A 100%);
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 4px rgba(0,0,0,0.4);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.5);
  --heatmap-0: #1F2937;
  --heatmap-1: #3B0764;
  --heatmap-2: #5B21B6;
  --heatmap-3: #7C3AED;
  --heatmap-4: #8B5CF6;
  --chip-bg: #161B22;
  --chip-border: #30363D;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
}

/* ── 亮色主题 ── */
[data-theme="light"] {
  --wx-purple: #7C3AED;
  --wx-purple-hover: #6D28D9;
  --wx-purple-dim: rgba(124, 58, 237, 0.08);
  --wx-purple-light: rgba(124, 58, 237, 0.25);
  --bg: #F7F7F7;
  --card: #FFFFFF;
  --sidebar-bg: #2E3238;
  --sidebar-text: #B2B2B2;
  --sidebar-text-hover: #FFFFFF;
  --sidebar-active: #7C3AED;
  --sidebar-item-hover: #3A3F45;
  --border: #E5E5E5;
  --border-soft: #F0F0F0;
  --text: #353535;
  --text-2: #666666;
  --muted: #999999;
  --danger: #FA5151;
  --danger-dim: rgba(250, 81, 81, 0.08);
  --success: #7C3AED;
  --warn: #F59E0B;
  --info: #3B82F6;
  --input-bg: #FAFAFA;
  --cell-bg: #FAFAFA;
  --hero-bg: linear-gradient(135deg, #FFFFFF 0%, #F8FFFB 100%);
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
  --heatmap-0: #EBEDF0;
  --heatmap-1: #DDD6FE;
  --heatmap-2: #A78BFA;
  --heatmap-3: #8B5CF6;
  --heatmap-4: #6D28D9;
  --chip-bg: #FAFAFA;
  --chip-border: #E5E5E5;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
}

/* ── 跟随系统主题偏好 ── */
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
	    --wx-purple: #8B5CF6;
	    --wx-purple-hover: #7C3AED;
	    --wx-purple-dim: rgba(139, 92, 246, 0.15);
	    --wx-purple-light: rgba(139, 92, 246, 0.35);
	    --bg: #0D1117;
	    --card: #161B22;
	    --sidebar-bg: #0A0D12;
	    --sidebar-text: #FFFFFF;
	    --sidebar-text-hover: #FFFFFF;
	    --sidebar-active: #8B5CF6;
    --sidebar-item-hover: #1F2937;
    --border: #30363D;
    --border-soft: #21262D;
    --text: #FFFFFF;
    --text-2: #D1D5DB;
    --muted: #9CA3AF;
    --danger: #F87171;
    --danger-dim: rgba(248, 113, 113, 0.15);
    --success: #8B5CF6;
    --warn: #FBBF24;
    --info: #60A5FA;
    --input-bg: #0D1117;
    --cell-bg: #161B22;
    --hero-bg: linear-gradient(135deg, #161B22 0%, #0F172A 100%);
    --shadow: 0 1px 4px rgba(0,0,0,0.4);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.5);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.5);
	    --heatmap-0: #1F2937;
	    --heatmap-1: #3B0764;
	    --heatmap-2: #5B21B6;
	    --heatmap-3: #7C3AED;
	    --heatmap-4: #8B5CF6;
    --chip-bg: #161B22;
    --chip-border: #30363D;
  }
}

* { box-sizing: border-box; }

html[data-theme] {
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

/* 主题切换按钮 */
.theme-toggle {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  transition: all 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--wx-purple);
  color: var(--wx-purple);
}
.theme-toggle .theme-icon {
  font-size: 15px;
  line-height: 1;
}

/* ── Utility ── */
.hidden { display: none !important; }

/* ═══════════════════════════════
   WELCOME SCREEN — 现代动画首页
   ═══════════════════════════════ */

/* ── 基础容器 ── */
.welcome-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  background: linear-gradient(135deg, var(--bg) 0%, #0d1f17 40%, #1a2e1a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  overflow: hidden;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
}
.welcome-screen.hidden { display: none; }

/* ── 动态网格背景 ── */
.welcome-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 0;
}
.welcome-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    -webkit-linear-gradient(rgba(7, 193, 96, 0.04) 1px, transparent 1px),
    -webkit-linear-gradient(0deg, rgba(7, 193, 96, 0.04) 1px, transparent 1px);
  background-image:
    linear-gradient(rgba(7, 193, 96, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 193, 96, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-animation: gridMove 20s linear infinite;
          animation: gridMove 20s linear infinite;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
}
@-webkit-keyframes gridMove {
  0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  100% { -webkit-transform: translate3d(60px, 60px, 0); transform: translate3d(60px, 60px, 0); }
}
@keyframes gridMove {
  0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  100% { -webkit-transform: translate3d(60px, 60px, 0); transform: translate3d(60px, 60px, 0); }
}

/* ── 噪点纹理叠加 ── */
.welcome-bg::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  pointer-events: none;
}

/* ── 粒子系统（CSS变量增强随机性） ── */
.particle {
  position: absolute;
  width: var(--p-size, 3px);
  height: var(--p-size, 3px);
  background: var(--p-color, #8B5CF6);
  border-radius: 50%;
  opacity: 0;
  -webkit-animation: particleFloat var(--p-dur, 6s) infinite ease-in-out;
          animation: particleFloat var(--p-dur, 6s) infinite ease-in-out;
  -webkit-animation-delay: var(--p-delay, 0s);
          animation-delay: var(--p-delay, 0s);
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform, opacity;
  -webkit-box-shadow: 0 0 var(--p-glow, 4px) var(--p-color, #8B5CF6);
          box-shadow: 0 0 var(--p-glow, 4px) var(--p-color, #8B5CF6);
  contain: layout;
}
.particle:nth-child(1)  { --p-size: 3px;  left: 10%; top: 20%; --p-delay: 0s;    --p-dur: 5s;   --p-glow: 6px;  }
.particle:nth-child(2)  { --p-size: 4px;  left: 20%; top: 60%; --p-delay: -1.2s; --p-dur: 7s;   --p-glow: 8px;  }
.particle:nth-child(3)  { --p-size: 3px;  left: 35%; top: 80%; --p-delay: -2.5s; --p-dur: 6s;   --p-glow: 5px;  }
.particle:nth-child(4)  { --p-size: 2px;  left: 50%; top: 15%; --p-delay: -0.5s; --p-dur: 5.5s; --p-glow: 4px;  }
.particle:nth-child(5)  { --p-size: 3px;  left: 65%; top: 70%; --p-delay: -3s;   --p-dur: 8s;   --p-glow: 6px;  }
.particle:nth-child(6)  { --p-size: 4px;  left: 75%; top: 30%; --p-delay: -4s;   --p-dur: 6.5s; --p-glow: 8px;  }
.particle:nth-child(7)  { --p-size: 3px;  left: 85%; top: 55%; --p-delay: -1.8s; --p-dur: 5.8s; --p-glow: 5px;  }
.particle:nth-child(8)  { --p-size: 2px;  left: 92%; top: 85%; --p-delay: -3.5s; --p-dur: 7.2s; --p-glow: 4px;  }
.particle:nth-child(9)  { --p-size: 3px;  left: 5%;  top: 90%; --p-delay: -2s;   --p-dur: 6.2s; --p-glow: 6px;  }
.particle:nth-child(10) { --p-size: 5px;  left: 45%; top: 40%; --p-delay: -4.5s; --p-dur: 5s;   --p-glow: 10px; }
.particle:nth-child(11) { --p-size: 3px;  left: 55%; top: 88%; --p-delay: -0.8s; --p-dur: 7.5s; --p-glow: 5px;  }
.particle:nth-child(12) { --p-size: 3px;  left: 15%; top: 45%; --p-delay: -2.8s; --p-dur: 6.8s; --p-glow: 5px;  }
.particle:nth-child(13) { --p-size: 2px;  left: 70%; top: 10%; --p-delay: -5s;   --p-dur: 5.2s; --p-glow: 4px;  }
.particle:nth-child(14) { --p-size: 2px;  left: 30%; top: 30%; --p-delay: -1.5s; --p-dur: 7.8s; --p-glow: 4px;  }
.particle:nth-child(15) { --p-size: 3px;  left: 88%; top: 45%; --p-delay: -3.2s; --p-dur: 6s;   --p-glow: 5px;  }

@-webkit-keyframes particleFloat {
  0%   { opacity: 0; -webkit-transform: translate3d(0, 0, 0) scale(0); transform: translate3d(0, 0, 0) scale(0); }
  10%  { opacity: 0.9; }
  40%  { opacity: 0.5; -webkit-transform: translate3d(var(--p-dx, 20px), -100px, 0) scale(1.3); transform: translate3d(var(--p-dx, 20px), -100px, 0) scale(1.3); }
  70%  { opacity: 0.7; -webkit-transform: translate3d(var(--p-dx2, -10px), -180px, 0) scale(0.8); transform: translate3d(var(--p-dx2, -10px), -180px, 0) scale(0.8); }
  100% { opacity: 0; -webkit-transform: translate3d(0, -260px, 0) scale(0); transform: translate3d(0, -260px, 0) scale(0); }
}
@keyframes particleFloat {
  0%   { opacity: 0; -webkit-transform: translate3d(0, 0, 0) scale(0); transform: translate3d(0, 0, 0) scale(0); }
  10%  { opacity: 0.9; }
  40%  { opacity: 0.5; -webkit-transform: translate3d(var(--p-dx, 20px), -100px, 0) scale(1.3); transform: translate3d(var(--p-dx, 20px), -100px, 0) scale(1.3); }
  70%  { opacity: 0.7; -webkit-transform: translate3d(var(--p-dx2, -10px), -180px, 0) scale(0.8); transform: translate3d(var(--p-dx2, -10px), -180px, 0) scale(0.8); }
  100% { opacity: 0; -webkit-transform: translate3d(0, -260px, 0) scale(0); transform: translate3d(0, -260px, 0) scale(0); }
}

/* ── 渐变光晕 blob ── */
.blob {
  position: absolute;
  border-radius: 50%;
  -webkit-filter: blur(100px);
          filter: blur(100px);
  opacity: 0.35;
  -webkit-animation: blobMorph 20s infinite ease-in-out;
          animation: blobMorph 20s infinite ease-in-out;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform, border-radius;
}
.blob-1 {
  width: 500px; height: 500px;
  background: #8B5CF6;
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  top: -150px; left: -120px;
  -webkit-animation-delay: 0s;
          animation-delay: 0s;
}
.blob-2 {
  width: 450px; height: 450px;
  background: #7C3AED;
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  bottom: -120px; right: -100px;
  -webkit-animation-delay: -6s;
          animation-delay: -6s;
}
.blob-3 {
  width: 350px; height: 350px;
  background: #7C3AED;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  top: 35%; left: 50%;
  -webkit-animation-delay: -12s;
          animation-delay: -12s;
  opacity: 0.2;
}
@-webkit-keyframes blobMorph {
  0%, 100% { -webkit-transform: translate3d(0, 0, 0) scale(1) rotate(0deg); transform: translate3d(0, 0, 0) scale(1) rotate(0deg);   border-radius: 50% 50% 50% 50%; }
  20%      { -webkit-transform: translate3d(50px, -40px, 0) scale(1.25) rotate(4deg); transform: translate3d(50px, -40px, 0) scale(1.25) rotate(4deg);  border-radius: 45% 55% 50% 50%; }
  40%      { -webkit-transform: translate3d(-30px, 50px, 0) scale(0.95) rotate(-2deg); transform: translate3d(-30px, 50px, 0) scale(0.95) rotate(-2deg); border-radius: 55% 45% 48% 52%; }
  60%      { -webkit-transform: translate3d(40px, 20px, 0) scale(1.1) rotate(3deg); transform: translate3d(40px, 20px, 0) scale(1.1) rotate(3deg);   border-radius: 50% 50% 55% 45%; }
  80%      { -webkit-transform: translate3d(-20px, -30px, 0) scale(1.05) rotate(-1deg); transform: translate3d(-20px, -30px, 0) scale(1.05) rotate(-1deg); border-radius: 48% 52% 50% 50%; }
}
@keyframes blobMorph {
  0%, 100% { -webkit-transform: translate3d(0, 0, 0) scale(1) rotate(0deg); transform: translate3d(0, 0, 0) scale(1) rotate(0deg);   border-radius: 50% 50% 50% 50%; }
  20%      { -webkit-transform: translate3d(50px, -40px, 0) scale(1.25) rotate(4deg); transform: translate3d(50px, -40px, 0) scale(1.25) rotate(4deg);  border-radius: 45% 55% 50% 50%; }
  40%      { -webkit-transform: translate3d(-30px, 50px, 0) scale(0.95) rotate(-2deg); transform: translate3d(-30px, 50px, 0) scale(0.95) rotate(-2deg); border-radius: 55% 45% 48% 52%; }
  60%      { -webkit-transform: translate3d(40px, 20px, 0) scale(1.1) rotate(3deg); transform: translate3d(40px, 20px, 0) scale(1.1) rotate(3deg);   border-radius: 50% 50% 55% 45%; }
  80%      { -webkit-transform: translate3d(-20px, -30px, 0) scale(1.05) rotate(-1deg); transform: translate3d(-20px, -30px, 0) scale(1.05) rotate(-1deg); border-radius: 48% 52% 50% 50%; }
}

/* ── 浮动图标 ── */
.welcome-floats {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
}
.float {
  position: absolute;
  font-size: 38px;
  opacity: 0;
  -webkit-animation: floatCustom var(--f-dur, 10s) infinite ease-in-out;
          animation: floatCustom var(--f-dur, 10s) infinite ease-in-out;
  -webkit-animation-delay: var(--f-delay, 0s);
          animation-delay: var(--f-delay, 0s);
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform, opacity;
  -webkit-filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
          filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.float-1 { top: 8%;  left: 5%;  --f-delay: 0s;    --f-dur: 8s;  }
.float-2 { top: 15%; right: 8%; --f-delay: -1.2s; --f-dur: 11s; }
.float-3 { top: 28%; left: 12%; --f-delay: -2.8s; --f-dur: 9s;  }
.float-4 { top: 42%; right: 5%; --f-delay: -4s;   --f-dur: 10s; }
.float-5 { bottom: 30%; left: 8%;  --f-delay: -1.5s; --f-dur: 8.5s; }
.float-6 { bottom: 15%; right: 14%; --f-delay: -5.5s; --f-dur: 12s; }
.float-7 { top: 55%; left: 4%;  --f-delay: -3.2s; --f-dur: 7.5s; }
.float-8 { top: 65%; right: 6%; --f-delay: -6s;   --f-dur: 9.5s; }
.float-9 { bottom: 8%; left: 20%; --f-delay: -2s;   --f-dur: 10.5s; }
.float-10 { top: 20%; right: 25%; --f-delay: -4.8s; --f-dur: 8.8s; }

@-webkit-keyframes floatCustom {
  0%   { opacity: 0;   -webkit-transform: translate3d(0, 30px, 0)  scale(0.5) rotate(-10deg); transform: translate3d(0, 30px, 0)  scale(0.5) rotate(-10deg); }
  12%  { opacity: 0.6; -webkit-transform: translate3d(10px, -15px, 0) scale(1) rotate(0deg); transform: translate3d(10px, -15px, 0) scale(1) rotate(0deg); }
  28%  { opacity: 0.8; -webkit-transform: translate3d(-5px, -40px, 0) scale(1.12) rotate(6deg); transform: translate3d(-5px, -40px, 0) scale(1.12) rotate(6deg); }
  48%  { opacity: 0.5; -webkit-transform: translate3d(15px, -60px, 0) scale(1) rotate(-4deg); transform: translate3d(15px, -60px, 0) scale(1) rotate(-4deg); }
  65%  { opacity: 0.7; -webkit-transform: translate3d(-8px, -35px, 0) scale(1.06) rotate(3deg); transform: translate3d(-8px, -35px, 0) scale(1.06) rotate(3deg); }
  82%  { opacity: 0.4; -webkit-transform: translate3d(5px, -15px, 0)  scale(0.95) rotate(-2deg); transform: translate3d(5px, -15px, 0)  scale(0.95) rotate(-2deg); }
  100% { opacity: 0;   -webkit-transform: translate3d(0, 40px, 0)  scale(0.5) rotate(10deg); transform: translate3d(0, 40px, 0)  scale(0.5) rotate(10deg); }
}
@keyframes floatCustom {
  0%   { opacity: 0;   -webkit-transform: translate3d(0, 30px, 0)  scale(0.5) rotate(-10deg); transform: translate3d(0, 30px, 0)  scale(0.5) rotate(-10deg); }
  12%  { opacity: 0.6; -webkit-transform: translate3d(10px, -15px, 0) scale(1) rotate(0deg); transform: translate3d(10px, -15px, 0) scale(1) rotate(0deg); }
  28%  { opacity: 0.8; -webkit-transform: translate3d(-5px, -40px, 0) scale(1.12) rotate(6deg); transform: translate3d(-5px, -40px, 0) scale(1.12) rotate(6deg); }
  48%  { opacity: 0.5; -webkit-transform: translate3d(15px, -60px, 0) scale(1) rotate(-4deg); transform: translate3d(15px, -60px, 0) scale(1) rotate(-4deg); }
  65%  { opacity: 0.7; -webkit-transform: translate3d(-8px, -35px, 0) scale(1.06) rotate(3deg); transform: translate3d(-8px, -35px, 0) scale(1.06) rotate(3deg); }
  82%  { opacity: 0.4; -webkit-transform: translate3d(5px, -15px, 0)  scale(0.95) rotate(-2deg); transform: translate3d(5px, -15px, 0)  scale(0.95) rotate(-2deg); }
  100% { opacity: 0;   -webkit-transform: translate3d(0, 40px, 0)  scale(0.5) rotate(10deg); transform: translate3d(0, 40px, 0)  scale(0.5) rotate(10deg); }
}

/* ── 玻璃态内容卡片 ── */
.welcome-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  -webkit-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                      inset 0 1px 0 rgba(255, 255, 255, 0.06);
          box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-animation: contentFloatIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
          animation: contentFloatIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  max-width: 460px;
  width: 90%;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform, opacity;
}
/* 浏览器兼容性：backdrop-filter 降级方案 */
@supports ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
  .welcome-content {
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
            backdrop-filter: blur(20px) saturate(1.4);
  }
}
/* Firefox 旧版 & 不支持 backdrop-filter 的浏览器使用纯色背景 */
@supports not ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
  .welcome-content {
    background: rgba(20, 30, 25, 0.92);
  }
}
@-webkit-keyframes contentFloatIn {
  from { opacity: 0; -webkit-transform: translate3d(0, 40px, 0) scale(0.95); transform: translate3d(0, 40px, 0) scale(0.95); }
  to   { opacity: 1; -webkit-transform: translate3d(0, 0, 0) scale(1); transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes contentFloatIn {
  from { opacity: 0; -webkit-transform: translate3d(0, 40px, 0) scale(0.95); transform: translate3d(0, 40px, 0) scale(0.95); }
  to   { opacity: 1; -webkit-transform: translate3d(0, 0, 0) scale(1); transform: translate3d(0, 0, 0) scale(1); }
}

/* ── Logo ── */
.welcome-logo {
  margin-bottom: 24px;
  -webkit-animation: logoGlow 3s infinite ease-in-out;
          animation: logoGlow 3s infinite ease-in-out;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform, filter;
}
.logo-circle {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100px; height: 100px;
  background: #8B5CF6;
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%);
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  border-radius: 30px;
  -webkit-box-shadow: 0 10px 30px rgba(7, 193, 96, 0.35),
                      0 0 0 8px rgba(7, 193, 96, 0.06),
                      0 0 0 16px rgba(7, 193, 96, 0.02),
                      0 0 40px rgba(7, 193, 96, 0.15);
          box-shadow: 0 10px 30px rgba(7, 193, 96, 0.35),
                      0 0 0 8px rgba(7, 193, 96, 0.06),
                      0 0 0 16px rgba(7, 193, 96, 0.02),
                      0 0 40px rgba(7, 193, 96, 0.15);
  position: relative;
  overflow: hidden;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
}
/* 光泽扫过效果 — 兼容旧浏览器 */
.logo-circle::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: rgba(255, 255, 255, 0.08);
  -webkit-animation: logoShineSweep 4s ease-in-out infinite;
          animation: logoShineSweep 4s ease-in-out infinite;
}
@supports (background: conic-gradient(red, blue)) {
  .logo-circle::after {
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,0.15) 60deg, transparent 120deg);
    -webkit-animation: logoSpin 4s linear infinite;
            animation: logoSpin 4s linear infinite;
  }
}
@-webkit-keyframes logoSpin {
  from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  to   { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes logoSpin {
  from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  to   { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@-webkit-keyframes logoShineSweep {
  0%   { -webkit-transform: translateX(-100%) translateY(-100%) rotate(45deg); transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50%  { -webkit-transform: translateX(100%) translateY(100%) rotate(45deg); transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { -webkit-transform: translateX(-100%) translateY(-100%) rotate(45deg); transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}
@keyframes logoShineSweep {
  0%   { -webkit-transform: translateX(-100%) translateY(-100%) rotate(45deg); transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50%  { -webkit-transform: translateX(100%) translateY(100%) rotate(45deg); transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { -webkit-transform: translateX(-100%) translateY(-100%) rotate(45deg); transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}
@-webkit-keyframes logoGlow {
  0%, 100% { -webkit-transform: scale(1); transform: scale(1);   -webkit-filter: brightness(1); filter: brightness(1); }
  50%      { -webkit-transform: scale(1.06); transform: scale(1.06); -webkit-filter: brightness(1.12); filter: brightness(1.12); }
}
@keyframes logoGlow {
  0%, 100% { -webkit-transform: scale(1); transform: scale(1);   -webkit-filter: brightness(1); filter: brightness(1); }
  50%      { -webkit-transform: scale(1.06); transform: scale(1.06); -webkit-filter: brightness(1.12); filter: brightness(1.12); }
}

/* ── 标题 ── */
.welcome-title {
  font-size: 44px;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: 1px;
  text-shadow: 0 2px 20px var(--wx-purple-dim);
  -webkit-animation: titleSlide 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
          animation: titleSlide 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform, opacity;
}
.welcome-title .highlight {
  color: var(--wx-purple);
  position: relative;
  display: inline-block;
  text-shadow: 0 0 30px var(--wx-purple-light);
  -webkit-animation: highlightPulse 2.5s infinite ease-in-out;
          animation: highlightPulse 2.5s infinite ease-in-out;
}
.welcome-title .highlight::after {
  content: "|";
  position: absolute;
  right: -10px;
  top: 2px;
  color: var(--wx-purple);
  font-weight: 300;
  -webkit-animation: cursorBlink 0.9s infinite step-end;
          animation: cursorBlink 0.9s infinite step-end;
}
@-webkit-keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
@-webkit-keyframes titleSlide {
  from { opacity: 0; -webkit-transform: translate3d(-30px, 0, 0); transform: translate3d(-30px, 0, 0); letter-spacing: -2px; }
  to   { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); letter-spacing: 1px; }
}
@keyframes titleSlide {
  from { opacity: 0; -webkit-transform: translate3d(-30px, 0, 0); transform: translate3d(-30px, 0, 0); letter-spacing: -2px; }
  to   { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); letter-spacing: 1px; }
}
@-webkit-keyframes highlightPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(7, 193, 96, 0.2); }
  50%      { text-shadow: 0 0 50px rgba(7, 193, 96, 0.55); }
}
@keyframes highlightPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(7, 193, 96, 0.2); }
  50%      { text-shadow: 0 0 50px rgba(7, 193, 96, 0.55); }
}

/* ── 副标题 ── */
.welcome-subtitle {
  font-size: 16px;
  font-size: clamp(14px, 2vw, 16px);
  color: var(--text-2);
  margin: 0 0 32px;
  -webkit-animation: subtitleFade 1.5s ease-out 0.3s backwards;
          animation: subtitleFade 1.5s ease-out 0.3s backwards;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
}
@-webkit-keyframes subtitleFade {
  from { opacity: 0; -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}
@keyframes subtitleFade {
  from { opacity: 0; -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

/* ── 功能标签 ── */
.welcome-features {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 36px;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
}
.feature-item {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--chip-bg);
  border: 1px solid var(--wx-purple-dim);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text);
  -webkit-animation: featureBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
          animation: featureBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  -webkit-transition: -webkit-transform 0.3s, background 0.3s, border-color 0.3s, -webkit-box-shadow 0.3s;
  transition: -webkit-transform 0.3s, background 0.3s, border-color 0.3s, -webkit-box-shadow 0.3s;
  transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
  transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s, -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  cursor: default;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
}
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .feature-item { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.feature-item:nth-child(1) { -webkit-animation-delay: 0.3s; animation-delay: 0.3s; }
.feature-item:nth-child(2) { -webkit-animation-delay: 0.5s; animation-delay: 0.5s; }
.feature-item:nth-child(3) { -webkit-animation-delay: 0.7s; animation-delay: 0.7s; }
.feature-item:hover {
  -webkit-transform: translateY(-4px) scale(1.05);
          transform: translateY(-4px) scale(1.05);
  background: var(--wx-purple-dim);
  border-color: var(--wx-purple-light);
  -webkit-box-shadow: 0 8px 24px var(--wx-purple-dim);
          box-shadow: 0 8px 24px var(--wx-purple-dim);
}
.feature-icon { font-size: 18px; }
@-webkit-keyframes featureBounce {
  from { opacity: 0; -webkit-transform: scale(0.5) translate3d(0, 20px, 0); transform: scale(0.5) translate3d(0, 20px, 0); }
  to   { opacity: 1; -webkit-transform: scale(1) translate3d(0, 0, 0); transform: scale(1) translate3d(0, 0, 0); }
}
@keyframes featureBounce {
  from { opacity: 0; -webkit-transform: scale(0.5) translate3d(0, 20px, 0); transform: scale(0.5) translate3d(0, 20px, 0); }
  to   { opacity: 1; -webkit-transform: scale(1) translate3d(0, 0, 0); transform: scale(1) translate3d(0, 0, 0); }
}

/* ── 开始按钮 ── */
.btn-welcome {
  position: relative;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  padding: 16px 48px;
  background: #8B5CF6;
  background: linear-gradient(135deg, #8B5CF6, #7C3AED, #6D28D9);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  -webkit-box-shadow: 0 8px 24px rgba(7, 193, 96, 0.35),
                      0 0 0 0 rgba(7, 193, 96, 0.3);
          box-shadow: 0 8px 24px rgba(7, 193, 96, 0.35),
                      0 0 0 0 rgba(7, 193, 96, 0.3);
  -webkit-transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  transition: transform 0.3s, box-shadow 0.3s;
  transition: transform 0.3s, box-shadow 0.3s, -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  -webkit-animation: btnAppear 1s ease-out 0.5s backwards, bgShift 4s ease infinite;
          animation: btnAppear 1s ease-out 0.5s backwards, bgShift 4s ease infinite;
  font-family: var(--font);
  overflow: hidden;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform, box-shadow;
}
@-webkit-keyframes bgShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes bgShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.btn-welcome::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: -webkit-linear-gradient(left, transparent, rgba(255,255,255,0.25), transparent);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  -webkit-animation: btnShine 2.5s infinite;
          animation: btnShine 2.5s infinite;
}
@-webkit-keyframes btnShine {
  0%        { -webkit-transform: translateX(0); transform: translateX(0); }
  50%, 100% { -webkit-transform: translateX(200%); transform: translateX(200%); }
}
@keyframes btnShine {
  0%        { -webkit-transform: translateX(0); transform: translateX(0); }
  50%, 100% { -webkit-transform: translateX(200%); transform: translateX(200%); }
}
.btn-welcome::after {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 102px;
  background: linear-gradient(135deg, #8B5CF6, #A78BFA, #8B5CF6);
  background-size: 200% 200%;
  -webkit-animation: btnBorderGlow 3s ease infinite;
          animation: btnBorderGlow 3s ease infinite;
  z-index: -1;
  opacity: 0;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
.btn-welcome:hover::after { opacity: 1; }
@-webkit-keyframes btnBorderGlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes btnBorderGlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.btn-welcome:hover {
  -webkit-transform: translateY(-4px) scale(1.03);
          transform: translateY(-4px) scale(1.03);
  -webkit-box-shadow: 0 16px 40px rgba(7, 193, 96, 0.45),
                      0 0 30px rgba(7, 193, 96, 0.15),
                      0 0 60px rgba(7, 193, 96, 0.08);
          box-shadow: 0 16px 40px rgba(7, 193, 96, 0.45),
                      0 0 30px rgba(7, 193, 96, 0.15),
                      0 0 60px rgba(7, 193, 96, 0.08);
}
.btn-welcome:active {
  -webkit-transform: translateY(-1px) scale(0.98);
          transform: translateY(-1px) scale(0.98);
  -webkit-box-shadow: 0 8px 20px rgba(7, 193, 96, 0.3);
          box-shadow: 0 8px 20px rgba(7, 193, 96, 0.3);
  -webkit-transition: -webkit-transform 0.1s, -webkit-box-shadow 0.1s;
  transition: -webkit-transform 0.1s, -webkit-box-shadow 0.1s;
  transition: transform 0.1s, box-shadow 0.1s;
  transition: transform 0.1s, box-shadow 0.1s, -webkit-transform 0.1s, -webkit-box-shadow 0.1s;
}
.btn-welcome .arrow {
  display: inline-block;
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 18px;
}
.btn-welcome:hover .arrow { -webkit-transform: translateX(6px) scale(1.2); transform: translateX(6px) scale(1.2); }
@-webkit-keyframes btnAppear {
  from { opacity: 0; -webkit-transform: translate3d(0, 20px, 0) scale(0.9); transform: translate3d(0, 20px, 0) scale(0.9); }
  to   { opacity: 1; -webkit-transform: translate3d(0, 0, 0) scale(1); transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes btnAppear {
  from { opacity: 0; -webkit-transform: translate3d(0, 20px, 0) scale(0.9); transform: translate3d(0, 20px, 0) scale(0.9); }
  to   { opacity: 1; -webkit-transform: translate3d(0, 0, 0) scale(1); transform: translate3d(0, 0, 0) scale(1); }
}

/* ── 底部提示 ── */
.welcome-tip {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  -webkit-animation: tipFade 1.5s ease-out 0.8s backwards;
          animation: tipFade 1.5s ease-out 0.8s backwards;
}
@-webkit-keyframes tipFade {
  from { opacity: 0; letter-spacing: 3px; }
  to   { opacity: 1; letter-spacing: normal; }
}
@keyframes tipFade {
  from { opacity: 0; letter-spacing: 3px; }
  to   { opacity: 1; letter-spacing: normal; }
}

.welcome-footer {
  position: absolute;
  bottom: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  z-index: 2;
}

/* 返回首页按钮 */
.back-home {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 42px; height: 42px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 20px;
  color: var(--text-2);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  z-index: 101;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-home:hover {
  transform: translateX(-3px);
  color: var(--wx-purple);
  border-color: var(--wx-purple);
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.2);
}

/* ── 减少动画偏好支持 ── */
@media (prefers-reduced-motion: reduce) {
  .welcome-bg::before,
  .particle,
  .blob,
  .float,
  .welcome-content,
  .welcome-logo,
  .welcome-title,
  .welcome-subtitle,
  .feature-item,
  .btn-welcome,
  .btn-welcome::before,
  .logo-circle::after,
  .welcome-tip {
    -webkit-animation: none !important;
            animation: none !important;
    -webkit-transition: none !important;
    transition: none !important;
  }
  .welcome-content { opacity: 1; -webkit-transform: none; transform: none; }
  .welcome-title { opacity: 1; -webkit-transform: none; transform: none; letter-spacing: 1px; }
  .welcome-subtitle { opacity: 1; -webkit-transform: none; transform: none; }
  .feature-item { opacity: 1; -webkit-transform: none; transform: none; }
  .btn-welcome { opacity: 1; -webkit-transform: none; transform: none; }
  .welcome-tip { opacity: 1; letter-spacing: normal; }
}

/* ── 移动端性能优化 ── */
@media (max-width: 640px) {
  .blob { opacity: 0.2; -webkit-filter: blur(60px); filter: blur(60px); }
  .particle { display: none; }
  .welcome-content { padding: 36px 28px; border-radius: 24px; }
}

/* ═══════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════ */
/* ── 登录背景动画 ── */
.login-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.98) 0%, 
    rgba(30, 41, 59, 0.95) 25%,
    rgba(15, 23, 42, 0.98) 50%,
    rgba(30, 41, 59, 0.95) 75%,
    rgba(15, 23, 42, 0.98) 100%
  );
}

/* 动态渐变背景 */
.login-bg::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(96, 165, 250, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(34, 197, 94, 0.08) 0%, transparent 60%);
  animation: loginGradientShift 20s ease-in-out infinite;
  will-change: transform;
}

@keyframes loginGradientShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(2%, 2%) rotate(2deg) scale(1.05); }
  50% { transform: translate(-1%, 3%) rotate(-1deg) scale(1.02); }
  75% { transform: translate(3%, -2%) rotate(1deg) scale(1.03); }
}

/* 网格背景 - 增强版 */
.login-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(96, 165, 250, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.02) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 128px 128px, 128px 128px;
  -webkit-animation: loginGridMove 24s linear infinite;
          animation: loginGridMove 24s linear infinite;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
  opacity: 0.8;
}
@-webkit-keyframes loginGridMove {
  0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  100% { -webkit-transform: translate3d(64px, 64px, 0); transform: translate3d(64px, 64px, 0); }
}
@keyframes loginGridMove {
  0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  100% { -webkit-transform: translate3d(64px, 64px, 0); transform: translate3d(64px, 64px, 0); }
}

/* 渐变光晕 blob - 增强版 */
.login-blob {
  position: absolute;
  border-radius: 50%;
  -webkit-animation: loginBlobMorph 24s infinite ease-in-out;
          animation: loginBlobMorph 24s infinite ease-in-out;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
  filter: blur(1px);
}
.login-blob-1 {
  width: 600px; height: 600px;
  top: -20%; left: -15%;
  background: radial-gradient(circle at 30% 30%, 
    rgba(34,197,94,0.2) 0%, 
    rgba(34,197,94,0.1) 30%, 
    rgba(34,197,94,0.05) 50%,
    transparent 70%);
  -webkit-animation-duration: 22s;
          animation-duration: 22s;
}
.login-blob-2 {
  width: 500px; height: 500px;
  bottom: -15%; right: -10%;
  background: radial-gradient(circle at 70% 70%, 
    rgba(96,165,250,0.18) 0%, 
    rgba(96,165,250,0.08) 40%, 
    transparent 70%);
  -webkit-animation-duration: 26s;
          animation-duration: 26s;
  -webkit-animation-delay: -6s;
          animation-delay: -6s;
}
.login-blob-3 {
  width: 400px; height: 400px;
  top: 35%; left: 60%;
  background: radial-gradient(circle at 50% 50%, 
    rgba(34,197,94,0.15) 0%, 
    rgba(34,197,94,0.05) 45%, 
    transparent 70%);
  -webkit-animation-duration: 20s;
          animation-duration: 20s;
  -webkit-animation-delay: -10s;
          animation-delay: -10s;
}
.login-blob-4 {
  width: 450px; height: 450px;
  top: 55%; left: -10%;
  background: radial-gradient(circle at 40% 60%, 
    rgba(251,191,36,0.12) 0%, 
    rgba(251,191,36,0.04) 50%, 
    transparent 70%);
  -webkit-animation-duration: 28s;
          animation-duration: 28s;
  -webkit-animation-delay: -4s;
          animation-delay: -4s;
}
.login-blob-5 {
  width: 350px; height: 350px;
  top: 10%; right: 20%;
  background: radial-gradient(circle at 60% 40%, 
    rgba(139, 92, 246, 0.1) 0%, 
    rgba(139, 92, 246, 0.04) 45%, 
    transparent 70%);
  -webkit-animation-duration: 30s;
          animation-duration: 30s;
  -webkit-animation-delay: -8s;
          animation-delay: -8s;
}
.login-blob-6 {
  width: 300px; height: 300px;
  bottom: 30%; left: 30%;
  background: radial-gradient(circle at 50% 50%, 
    rgba(236, 72, 153, 0.08) 0%, 
    rgba(236, 72, 153, 0.03) 50%, 
    transparent 70%);
  -webkit-animation-duration: 25s;
          animation-duration: 25s;
  -webkit-animation-delay: -12s;
          animation-delay: -12s;
}
@-webkit-keyframes loginBlobMorph {
  0%, 100% { -webkit-transform: scale(1) rotate(0deg) translate3d(0,0,0); transform: scale(1) rotate(0deg) translate3d(0,0,0); }
  25% { -webkit-transform: scale(1.3) rotate(5deg) translate3d(30px,-20px,0); transform: scale(1.3) rotate(5deg) translate3d(30px,-20px,0); }
  50% { -webkit-transform: scale(0.85) rotate(-3deg) translate3d(-20px,40px,0); transform: scale(0.85) rotate(-3deg) translate3d(-20px,40px,0); }
  75% { -webkit-transform: scale(1.15) rotate(4deg) translate3d(20px,-10px,0); transform: scale(1.15) rotate(4deg) translate3d(20px,-10px,0); }
}
@keyframes loginBlobMorph {
  0%, 100% { -webkit-transform: scale(1) rotate(0deg) translate3d(0,0,0); transform: scale(1) rotate(0deg) translate3d(0,0,0); }
  25% { -webkit-transform: scale(1.3) rotate(5deg) translate3d(30px,-20px,0); transform: scale(1.3) rotate(5deg) translate3d(30px,-20px,0); }
  50% { -webkit-transform: scale(0.85) rotate(-3deg) translate3d(-20px,40px,0); transform: scale(0.85) rotate(-3deg) translate3d(-20px,40px,0); }
  75% { -webkit-transform: scale(1.15) rotate(4deg) translate3d(20px,-10px,0); transform: scale(1.15) rotate(4deg) translate3d(20px,-10px,0); }
}

/* 粒子 - 增强版 */
.login-particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--wx-purple);
  border-radius: 50%;
  opacity: 0;
  -webkit-animation: loginParticleFloat 8s infinite ease-in-out;
          animation: loginParticleFloat 8s infinite ease-in-out;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform, opacity;
  -webkit-box-shadow: 
    0 0 6px var(--wx-purple),
    0 0 12px var(--wx-purple),
    0 0 18px rgba(34, 197, 94, 0.5);
          box-shadow: 
    0 0 6px var(--wx-purple),
    0 0 12px var(--wx-purple),
    0 0 18px rgba(34, 197, 94, 0.5);
}
.login-particle::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100px; height: 1px;
  background: linear-gradient(90deg, var(--wx-purple), transparent);
  transform: translate(-100%, -50%) rotate(var(--angle, 0deg));
  opacity: 0.3;
}
.login-particle:nth-child(1)  { left: 8%;  top: 15%; --p-del: 0s;    --p-dur: 7s;   --p-end: -220px; --angle: 45deg; }
.login-particle:nth-child(2)  { left: 22%; top: 70%; --p-del: -1.5s; --p-dur: 8.5s; --p-end: -200px; --angle: -30deg; }
.login-particle:nth-child(3)  { left: 38%; top: 25%; --p-del: -3s;   --p-dur: 6.5s; --p-end: -250px; --angle: 60deg; }
.login-particle:nth-child(4)  { left: 55%; top: 80%; --p-del: -0.8s; --p-dur: 9s;   --p-end: -180px; --angle: -45deg; }
.login-particle:nth-child(5)  { left: 68%; top: 10%; --p-del: -4s;   --p-dur: 7.5s; --p-end: -210px; --angle: 30deg; }
.login-particle:nth-child(6)  { left: 82%; top: 60%; --p-del: -2s;   --p-dur: 6s;   --p-end: -230px; --angle: -60deg; }
.login-particle:nth-child(7)  { left: 45%; top: 45%; --p-del: -5s;   --p-dur: 8s;   --p-end: -200px; --angle: 15deg; }
.login-particle:nth-child(8)  { left: 92%; top: 30%; --p-del: -2.5s; --p-dur: 7.2s; --p-end: -190px; --angle: -15deg; }
.login-particle:nth-child(9)  { left: 15%; top: 85%; --p-del: -3.5s; --p-dur: 8.2s; --p-end: -240px; --angle: 75deg; }
.login-particle:nth-child(10) { left: 75%; top: 35%; --p-del: -1s;   --p-dur: 6.8s; --p-end: -215px; --angle: -75deg; }
.login-particle:nth-child(11) { left: 5%;  top: 50%; --p-del: -4.5s; --p-dur: 7.8s; --p-end: -225px; --angle: 0deg; }
.login-particle:nth-child(12) { left: 60%; top: 5%;  --p-del: -2.8s; --p-dur: 8.8s; --p-end: -195px; --angle: 90deg; }
@-webkit-keyframes loginParticleFloat {
  0%   { opacity: 0; -webkit-transform: translate3d(0,0,0) scale(0); transform: translate3d(0,0,0) scale(0); }
  10%  { opacity: 1; }
  50%  { opacity: 0.6; -webkit-transform: translate3d(20px,var(--p-end,-200px),0) scale(1.2); transform: translate3d(20px,var(--p-end,-200px),0) scale(1.2); }
  100% { opacity: 0; -webkit-transform: translate3d(-10px,calc(var(--p-end,-200px) - 60px),0) scale(0); transform: translate3d(-10px,calc(var(--p-end,-200px) - 60px),0) scale(0); }
}
@keyframes loginParticleFloat {
  0%   { opacity: 0; -webkit-transform: translate3d(0,0,0) scale(0); transform: translate3d(0,0,0) scale(0); }
  10%  { opacity: 1; }
  50%  { opacity: 0.6; -webkit-transform: translate3d(20px,var(--p-end,-200px),0) scale(1.2); transform: translate3d(20px,var(--p-end,-200px),0) scale(1.2); }
  100% { opacity: 0; -webkit-transform: translate3d(-10px,calc(var(--p-end,-200px) - 60px),0) scale(0); transform: translate3d(-10px,calc(var(--p-end,-200px) - 60px),0) scale(0); }
}

/* 连接线效果 */
.login-connections {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
}
.login-connections::before {
  content: '';
  position: absolute;
  top: 20%; left: 10%;
  width: 200px; height: 200px;
  border: 1px solid rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  animation: loginConnectionPulse 4s ease-in-out infinite;
}
.login-connections::after {
  content: '';
  position: absolute;
  bottom: 30%; right: 15%;
  width: 150px; height: 150px;
  border: 1px solid rgba(96, 165, 250, 0.1);
  border-radius: 50%;
  animation: loginConnectionPulse 4s ease-in-out infinite 2s;
}
@keyframes loginConnectionPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.1; }
}

/* ── 网站品牌展示 ── */
.login-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 32px;
  -webkit-animation: loginBrandIn 0.8s ease-out;
          animation: loginBrandIn 0.8s ease-out;
}
.brand-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 16px;
  -webkit-animation: brandIconFloat 3s ease-in-out infinite;
          animation: brandIconFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.3));
}
.brand-text {
  font-size: 36px;
  font-weight: 800;
  color: white;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.brand-text .green { 
  color: var(--wx-purple);
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}
.brand-slogan {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  letter-spacing: 3px;
  font-weight: 300;
}
@-webkit-keyframes loginBrandIn {
  0% { opacity: 0; -webkit-transform: translateY(-20px); transform: translateY(-20px); }
  100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes loginBrandIn {
  0% { opacity: 0; -webkit-transform: translateY(-20px); transform: translateY(-20px); }
  100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}
@-webkit-keyframes brandIconFloat {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
}
@keyframes brandIconFloat {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
}

/* ── 登录界面框架 ── */
.login-screen {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.login-screen.hidden { display: none; }

.login-box {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border-radius: 20px;
  padding: 40px 36px 44px;
  width: 100%;
  max-width: 400px;
  box-shadow: 
    0 0 0 1px rgba(255,255,255,0.1),
    0 25px 50px -12px rgba(0,0,0,0.5),
    0 0 100px rgba(34, 197, 94, 0.1);
  text-align: center;
  -webkit-animation: loginBoxIn 0.6s ease-out 0.3s both;
          animation: loginBoxIn 0.6s ease-out 0.3s both;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.login-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.2) 0%, 
    rgba(255,255,255,0.05) 50%,
    rgba(34, 197, 94, 0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@-webkit-keyframes loginBoxIn {
  0% { opacity: 0; -webkit-transform: translateY(20px) scale(0.97); transform: translateY(20px) scale(0.97); }
  100% { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}
@keyframes loginBoxIn {
  0% { opacity: 0; -webkit-transform: translateY(20px) scale(0.97); transform: translateY(20px) scale(0.97); }
  100% { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}

.login-box .muted { 
  margin-bottom: 28px; 
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  letter-spacing: 0.5px;
}

.auth-tabs {
  display: flex;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.auth-tab:hover { 
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.05);
}
.auth-tab.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.9) 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-panel .field { text-align: left; margin-bottom: 16px; }
.auth-panel .field label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
}
.auth-panel .field input {
  text-align: left;
  font-size: 15px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  border-radius: 10px;
  width: 100%;
  transition: all 0.3s ease;
}
.auth-panel .field input:focus {
  outline: none;
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}
.auth-panel .field input::placeholder {
  color: rgba(255,255,255,0.3);
}
.auth-panel .field input:focus { border-color: var(--wx-purple); background: var(--card); }

.login-box .field-error { 
  text-align: left; 
  margin: 4px 0 8px;
  color: #f87171;
  font-size: 13px;
  min-height: 18px;
}

/* 登录框按钮样式 */
.login-box .btn-primary {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.9) 100%);
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.5px;
}
.login-box .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, rgba(34, 197, 94, 1) 0%, rgba(22, 163, 74, 1) 100%);
}
.login-box .btn-primary:active {
  transform: translateY(0);
}

/* 记住我样式 */
.login-box label[for="login-remember"] {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-box input[type="checkbox"] {
  accent-color: var(--wx-purple);
}

/* ═══════════════════════════════
   APP LAYOUT
   ═══════════════════════════════ */
#app-root {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.app-sidebar .brand {
  font-size: 18px;
  font-weight: 700;
  padding: 24px 20px 20px;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}
.app-sidebar .brand .green { color: var(--wx-purple); }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  color: var(--sidebar-text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.12s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}
.nav-item:hover { background: var(--sidebar-item-hover); color: var(--sidebar-text-hover); }
.nav-item.active {
  background: rgba(7, 193, 96, 0.12);
  color: var(--wx-purple);
  font-weight: 600;
  border-left: 3px solid var(--wx-purple);
  padding-left: 17px;
}

.nav-spacer { flex: 1; }

.nav-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.nav-user .name { color: #ddd; font-size: 13px; }
.nav-user .role { color: var(--wx-purple); font-size: 11px; margin-top: 2px; }

.app-main {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  min-width: 0;
  background: var(--bg);
}

/* ═══════════════════════════════
   HEADER BAR (微信顶部绿条)
   ═══════════════════════════════ */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--wx-purple);
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-header h1 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: #FFFFFF;
}

.header-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════ */
.app-main-content {
  padding: 20px 24px;
}

/* ═══════════════════════════════
   HERO CARD — 本月概览
   ═══════════════════════════════ */
.hero-card {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  background: var(--hero-bg);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(7, 193, 96, 0.10);
  border: 1px solid var(--wx-purple-dim);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-left { flex: 1; }
.hero-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.hero-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.hero-big {
  font-size: 48px;
  font-weight: 800;
  color: var(--wx-purple);
  line-height: 1;
  letter-spacing: -1px;
}
.hero-unit {
  font-size: 16px;
  color: var(--text-2);
  font-weight: 500;
}
.hero-target {
  font-size: 14px;
  color: var(--text-2);
}
.hero-target strong { color: var(--text); }

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
}
.hero-ring-wrap {
  position: relative;
  width: 90px;
  height: 90px;
}
.hero-ring { width: 90px; height: 90px; }
.hero-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--wx-purple);
}
.hero-remain {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ═══════════════════════════════
   HALF-YEAR CARDS
   ═══════════════════════════════ */
.half-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.half-card {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.half-card-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: var(--wx-purple-dim);
  border-radius: 12px;
  -webkit-flex-shrink: 0;
      -ms-flex: 0 0 auto;
          flex-shrink: 0;
}
.half-card-spring .half-card-icon { background: var(--wx-purple-dim); }
.half-card-autumn .half-card-icon { background: rgba(245, 158, 11, 0.15); }

.half-card-body { -webkit-flex: 1; -ms-flex: 1; flex: 1; }
.half-card-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.half-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.25s ease;
}
.half-card-spring .half-card-value { color: var(--wx-purple); }
.half-card-autumn .half-card-value { color: var(--warn); }

.half-card-tag {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 12px 3px 12px;
  border-radius: 0 12px 0 10px;
  color: #fff;
}
.half-card-spring .half-card-tag { background: #7C3AED; }
.half-card-autumn .half-card-tag { background: #F59E0B; }

/* ═══════════════════════════════
   PANEL
   ═══════════════════════════════ */
.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.panel-title {
  color: var(--text);
  transition: color 0.25s ease;
}

.panel h2,
.panel h3 {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.panel-header h2 {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 15px;
}

/* ═══════════════════════════════
   CALENDAR
   ═══════════════════════════════ */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-head {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0;
  font-weight: 500;
}

.cal-cell {
  position: relative;
  background: var(--cell-bg);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  min-height: 64px;
  padding: 4px 6px;
  cursor: pointer;
  -webkit-transition: border-color 0.12s, background 0.12s;
  transition: border-color 0.12s, background 0.12s;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.cal-cell:hover {
  border-color: var(--wx-purple);
  background: var(--wx-purple-dim);
}
.cal-cell.out {
  opacity: 0.25;
  background: transparent;
  border-color: transparent;
}
.cal-cell.out:hover {
  border-color: var(--border);
  background: var(--cell-bg);
}

.cal-cell.today {
  border-color: var(--wx-purple);
  border-width: 2px;
  padding: 3px 5px;
}

.cal-cell .day-num {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.25s ease;
}
.cal-cell.today .day-num {
  color: var(--wx-purple);
  font-weight: 700;
}

.cal-cell .shift-val {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

/* ── 班数颜色 (保留旧样式) ── */
.cal-cell.level-05 { background: rgba(147, 51, 234, 0.18); }
.cal-cell.level-05 .shift-val { color: #A78BFA; }
.cal-cell.level-1 { background: rgba(16, 185, 129, 0.18); }
.cal-cell.level-1 .shift-val { color: var(--wx-purple); }
.cal-cell.level-15 { background: rgba(13, 148, 136, 0.18); }
.cal-cell.level-15 .shift-val { color: #2DD4BF; }
.cal-cell.level-2 { background: rgba(217, 119, 6, 0.18); }
.cal-cell.level-2 .shift-val { color: var(--warn); }
.cal-cell.level-3 { background: rgba(220, 38, 38, 0.18); }
.cal-cell.level-3 .shift-val { color: var(--danger); }
.cal-cell.level-rest { background: var(--border-soft); }
.cal-cell.level-rest .shift-val { color: var(--muted); font-size: 11px; }

/* ── 出勤类型颜色 ── */
.cal-cell.type-work { background: rgba(16, 185, 129, 0.18); }
.cal-cell.type-work .shift-val { color: var(--wx-purple); }
.cal-cell.type-business { background: rgba(37, 99, 235, 0.18); }
.cal-cell.type-business .shift-val { color: var(--info); }
.cal-cell.type-annual { background: rgba(225, 29, 72, 0.18); }
.cal-cell.type-annual .shift-val { color: #F43F5E; }
.cal-cell.type-sick { background: rgba(202, 138, 4, 0.18); }
.cal-cell.type-sick .shift-val { color: var(--warn); }
.cal-cell.type-personal { background: rgba(147, 51, 234, 0.18); }
.cal-cell.type-personal .shift-val { color: #A78BFA; }
.cal-cell.type-rest { background: var(--border-soft); }
.cal-cell.type-rest .shift-val { color: var(--muted); font-size: 11px; }

.legend {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 0;
}
.legend-group {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px 12px;
}
.legend-title {
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}
.legend-item {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}
.dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
}
.dot.d-rest { background: var(--border); }
.dot.d-05 { background: #A78BFA; }
.dot.d-1 { background: var(--wx-purple); }
.dot.d-15 { background: #2DD4BF; }
.dot.d-2 { background: var(--warn); }
.dot.d-3 { background: var(--danger); }

/* ── 出勤类型图例点 ── */
.dot.d-work { background: var(--wx-purple); }
.dot.d-business { background: var(--info); }
.dot.d-annual { background: #F43F5E; }
.dot.d-sick { background: var(--warn); }
.dot.d-personal { background: #A78BFA; }

/* ═══════════════════════════════
   MONTH CARDS — 月度统计卡片
   ═══════════════════════════════ */
.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px !important;
}
.panel-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: var(--wx-purple);
  padding: 3px 10px;
  border-radius: 100px;
}

.month-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.month-card {
  background: var(--card);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  -webkit-transition: -webkit-transform 0.15s, box-shadow 0.15s;
  transition: transform 0.15s, box-shadow 0.15s;
  transition: transform 0.15s, box-shadow 0.15s, background 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.month-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.month-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.month-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.month-card-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.month-card-value.rate-done { color: var(--wx-purple); }
.month-card-value.rate-warn { color: #F59E0B; }
.month-card-value.rate-bad  { color: var(--danger); }

.month-card-bar-bg {
  height: 6px;
  background: var(--border-soft);
  border-radius: 3px;
  margin-bottom: 6px;
  overflow: hidden;
}
.month-card-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease-out;
  width: 0%;
}
.month-card-bar.bar-done { background: var(--wx-purple); }
.month-card-bar.bar-warn { background: #F59E0B; }
.month-card-bar.bar-bad  { background: var(--danger); }

.month-card-target {
  font-size: 11px;
  color: var(--muted);
}

/* 月份颜色装饰条 */
.month-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.month-card.card-spring::before { background: #7C3AED; }
.month-card.card-summer::before { background: #F59E0B; }
.month-card.card-autumn::before { background: #F97316; }
.month-card.card-winter::before { background: #3B82F6; }

/* ═══════════════════════════════
   SUMMARY GRID — 月度出勤概览
   ═══════════════════════════════ */
.summary-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[4];
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.summary-grid.grid-3 {
  -ms-grid-columns: (1fr)[3];
  grid-template-columns: repeat(3, 1fr);
}
.summary-cell {
  background: var(--cell-bg);
  border-radius: 10px;
  padding: 16px 8px;
  text-align: center;
  border: 1px solid var(--border-soft);
  -webkit-transition: -webkit-transform 0.2s, box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s, background 0.25s ease, border-color 0.25s ease;
}
.summary-cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.summary-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--wx-purple);
  line-height: 1.2;
}
.summary-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.summary-sub {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 2px;
}

/* ═══════════════════════════════
   HEATMAP — 年度上班热力图
   ═══════════════════════════════ */
.heatmap-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
}
.heatmap-body {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: max-content;
}
.heatmap-main {
  display: flex;
  flex-direction: column;
}
.heatmap-topbar {
  display: flex;
  gap: 3px;
  height: 16px;
  margin-bottom: 2px;
}
.heatmap-topbar-cell {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  line-height: 16px;
  width: 12px;
  text-align: left;
  position: relative;
  overflow: visible;
}
.heatmap-weekdays {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 18px;
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  line-height: 12px;
}
.heatmap-weekdays span {
  height: 12px;
  line-height: 12px;
}
.heatmap-grid {
  display: flex;
  gap: 3px;
}
.heatmap-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.heatmap-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.15s, outline 0.15s;
  position: relative;
}
.heatmap-cell:hover {
  transform: scale(1.35);
  z-index: 2;
  outline: 2px solid var(--text);
}
.heatmap-cell[title] {
  /* tooltip via title attr */
}
.heatmap-legend-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}
.heatmap-legend-label { font-size: 11px; }
.heatmap-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.heatmap-dot.h-0 { background: var(--heatmap-0); }
.heatmap-dot.h-1 { background: var(--heatmap-1); }
.heatmap-dot.h-2 { background: var(--heatmap-2); }
.heatmap-dot.h-3 { background: var(--heatmap-3); }
.heatmap-dot.h-4 { background: var(--heatmap-4); }

/* ═══════════════════════════════
   YEAR SUMMARY
   ═══════════════════════════════ */
.year-summary {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  background: var(--cell-bg);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.year-summary-item {
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 160px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 10px 12px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.ys-icon { font-size: 20px; }
.ys-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ys-body .ys-label {
  font-size: 11px;
  color: var(--muted);
}
.ys-body .ys-nums {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.ys-body .ys-nums .ys-target { color: var(--muted); font-weight: 400; font-size: 13px; }
.ys-body .ys-nums .ys-worked { color: var(--text); }

.year-summary-item .ys-rate {
  font-weight: 700;
  font-size: 18px;
  color: var(--wx-purple);
  flex-shrink: 0;
}
.year-summary-total {
  background: var(--wx-purple-dim);
  border-color: rgba(7, 193, 96, 0.15);
}
.year-summary-total .ys-rate { color: var(--wx-purple); font-size: 20px; }

/* ═══════════════════════════════
   BUTTONS (微信风格)
   ═══════════════════════════════ */
.btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  -webkit-transition: all 0.12s;
  transition: all 0.12s;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.btn:hover {
  border-color: var(--wx-purple);
  color: var(--wx-purple);
}
.btn-primary {
  background: var(--wx-purple);
  color: #FFFFFF;
  border-color: var(--wx-purple);
  font-weight: 500;
}
.btn-primary:hover {
  background: var(--wx-purple-hover);
  border-color: var(--wx-purple-hover);
  color: #FFFFFF;
}
.btn-ghost { background: transparent; border-color: transparent; color: var(--danger); }
.btn-ghost:hover { background: var(--danger-dim); border-color: transparent; color: var(--danger); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--wx-purple); color: var(--wx-purple); background: var(--wx-purple-dim); }
.btn-small { padding: 4px 8px; font-size: 12px; }
.btn-icon { font-size: 16px; padding: 3px 8px; }

/* ═══════════════════════════════
   MODAL (微信弹窗风格)
   ═══════════════════════════════ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 50;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 16px;
}
.modal.show { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; }

.modal-content {
  background: var(--card);
  border-radius: 12px;
  padding: 24px 22px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  transition: background 0.25s ease;
}
.modal-content h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); transition: color 0.25s ease; }
.muted { color: var(--muted); font-size: 13px; margin: 0 0 14px; transition: color 0.25s ease; }

.field { margin: 12px 0; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 4px;
  transition: color 0.25s ease;
}
.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-transition: border-color 0.12s;
  transition: border-color 0.12s;
  transition: border-color 0.12s, background 0.12s;
}
.field input:focus,
.field select:focus {
  border-color: var(--wx-purple);
  background: var(--card);
}
.field select option { background: var(--card); color: var(--text); }

.quick-buttons {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  cursor: pointer;
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--font);
  -webkit-transition: all 0.12s;
  transition: all 0.12s;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.chip:hover { border-color: var(--wx-purple); color: var(--wx-purple); }
.chip.active {
  background: var(--wx-purple);
  color: #FFFFFF;
  border-color: var(--wx-purple);
  font-weight: 500;
}

.month-targets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.month-targets .field { margin: 0; }
.month-targets .field input { padding: 6px 8px; font-size: 13px; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.field-error {
  color: var(--danger);
  font-size: 12px;
  min-height: 18px;
  margin: 2px 0;
}

/* ═══════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════ */
.admin-detail {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}
.admin-detail table { font-size: 12px; width: 100%; border-collapse: collapse; }
.admin-detail table th,
.admin-detail table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.admin-detail table th {
  background: var(--card);
  color: var(--text-2);
  font-weight: 600;
  text-align: left;
}
.admin-detail table tr:last-child td { border-bottom: none; }
.admin-detail strong { color: var(--text); }

.admin-split {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.admin-split-left { flex: 0 0 auto; min-width: 0; overflow-x: auto; }
.admin-split-right {
  flex: 1;
  min-width: 260px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.admin-edit-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.admin-edit-cal .cal-head {
  font-size: 10px;
  padding: 2px 0;
  color: var(--muted);
}
.admin-edit-cal .cal-cell {
  min-height: 34px;
  padding: 2px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  transition: all 0.2s ease;
}
.admin-edit-cal .cal-cell.out {
  background: transparent;
  border-color: transparent;
}
.admin-edit-cal .cal-cell .day-num { font-size: 9px; color: var(--muted); }
.admin-edit-cal .cal-cell:hover { transform: none; box-shadow: none; border-color: var(--wx-purple); }

.admin-shift-input {
  width: 100%;
  padding: 3px 5px;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  margin-top: 1px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.admin-shift-input:focus { border-color: var(--wx-purple); background: var(--card); }
.admin-shift-input::placeholder { color: var(--muted); opacity: 0.7; }

/* 数据表格通用样式 */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.stats-table thead th {
  background: var(--card);
  color: var(--text-2);
  font-weight: 600;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.stats-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.stats-table tbody tr:last-child td { border-bottom: none; }
.stats-table tbody tr:hover td { background: var(--card); }

@media (max-width: 820px) {
  .admin-split { flex-direction: column; }
  .admin-split-left, .admin-split-right { width: 100%; min-width: 0; }
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.app-footer {
  text-align: center;
  padding: 16px 0 4px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 820px) {
  .app-sidebar { width: 56px; }
  .app-sidebar .brand { font-size: 0; padding: 20px 0 16px; text-align: center; }
  .app-sidebar .brand::before { content: "📅"; font-size: 20px; }
  .nav-item span { display: none; }
  .nav-item { justify-content: center; padding: 13px; }
  .nav-user { display: none; }
  .app-main-content { padding: 16px; }
  .app-header { padding: 10px 16px; }
  .app-header h1 { font-size: 16px; }
}

@media (max-width: 640px) {
  .cal-cell { min-height: 52px; padding: 3px 4px; }
  .cal-cell .shift-val { font-size: 13px; }
  .card-value { font-size: 22px; }
  .summary-cards { grid-template-columns: repeat(2, 1fr); }
  .app-main-content { padding: 12px; }
  .hero-card { flex-direction: column; text-align: center; padding: 20px 16px; }
  .hero-main { justify-content: center; }
  .hero-big { font-size: 38px; }
  .hero-right { min-width: auto; margin-top: 12px; }
  .half-cards { grid-template-columns: 1fr; }
  .month-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .year-summary { flex-direction: column; }
  .year-summary-item { min-width: auto; }
  .year-summary-item .ys-rate { font-size: 16px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .summary-val { font-size: 22px; }
  .summary-cell { padding: 12px 6px; }
}

/* ═══════════════════════════════
   DAY POPUP — 浮动班数选择面板
   ═══════════════════════════════ */
.day-popup {
  position: fixed;
  z-index: 60;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
  min-width: 200px;
  max-width: 240px;
  animation: popupIn 0.15s ease-out;
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.day-popup-arrow {
  position: absolute;
  top: -6px;
  left: 50%;
  margin-left: -6px;
  width: 12px;
  height: 12px;
  background: var(--card);
  transform: rotate(45deg);
  box-shadow: -2px -2px 6px rgba(0,0,0,0.04);
}

.day-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.day-popup-close {
  width: 24px; height: 24px;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.day-popup-close:hover {
  background: var(--bg);
  color: var(--text);
}

.day-popup-body {
  padding: 8px 14px 14px;
}

.day-popup-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 6px 0 8px;
  letter-spacing: 0.3px;
}

.day-popup-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.type-chip {
  padding: 8px 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.type-chip:hover {
  background: var(--hover-bg);
  border-color: var(--wx-purple);
}
.type-chip.active {
  background: var(--wx-purple-dim);
  border-color: var(--wx-purple);
  color: var(--wx-purple);
  font-weight: 600;
}

.day-popup-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.popup-chip {
  padding: 9px 4px;
  background: var(--wx-purple-dim);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wx-purple);
  cursor: pointer;
  transition: all 0.1s;
  font-family: var(--font);
}
.popup-chip:hover {
  background: var(--wx-purple);
  color: #fff;
  transform: scale(1.04);
}
.popup-chip:active {
  transform: scale(0.96);
}

.day-popup-custom {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.day-popup-custom input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-width: 0;
}
.day-popup-custom input:focus {
  border-color: var(--wx-purple);
  background: var(--card);
}

.day-popup-clear {
  width: 100%;
  padding: 8px;
  background: var(--danger-dim);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  color: var(--danger);
  cursor: pointer;
  transition: background 0.12s;
  font-family: var(--font);
}
.day-popup-clear:hover {
  background: var(--danger);
  color: #fff;
}

/* 备注输入框 */
.day-popup-note {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  resize: none;
  min-height: 50px;
  outline: none;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.day-popup-note:focus {
  border-color: var(--wx-purple);
  background: var(--card);
}

/* 日历备注小圆点 */
.note-dot {
  position: absolute;
  bottom: 3px;
  left: 50%;
  margin-left: -3px;
  width: 6px;
  height: 6px;
  background: #F59E0B;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
}

/* ── 登录页移动端适配 ── */
@media (max-width: 640px) {
  .login-screen {
    padding: 20px;
  }
  .login-brand {
    margin-bottom: 24px;
  }
  .brand-icon {
    font-size: 42px;
    margin-bottom: 12px;
  }
  .brand-text {
    font-size: 28px;
    letter-spacing: 1px;
  }
  .brand-slogan {
    font-size: 12px;
    letter-spacing: 2px;
  }
  .login-box {
    padding: 28px 24px 32px;
    border-radius: 16px;
    max-width: 100%;
  }
  .login-box::before {
    border-radius: 16px;
  }
  .login-box .muted {
    margin-bottom: 20px;
    font-size: 14px;
  }
  .auth-tabs {
    margin-bottom: 20px;
  }
  .auth-tab {
    padding: 10px;
    font-size: 14px;
  }
  .login-blob-1 {
    width: 300px; height: 300px;
  }
  .login-blob-2 {
    width: 250px; height: 250px;
  }
  .login-blob-3, .login-blob-4 {
    display: none;
  }
  .login-particle {
    display: none;
  }
}
