:root {
  --color-primary: #F59E0B;
  --color-primary-light: #FCD34D;
  --color-primary-dark: #D97706;
  --color-primary-glow: rgba(245, 158, 11, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
  background-color: #0F172A;
  color: #FFFFFF;
  min-height: 100vh;
  overflow-x: hidden;
}

.font-mono {
  font-family: 'Orbitron', 'DIN Alternate', monospace;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track { background: #1E293B; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748B; }

/* 动画 */
@keyframes float-up {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-50px); }
}
@keyframes float-up-positive {
  0% { opacity: 1; transform: translateY(0) scale(0.8); }
  30% { opacity: 1; transform: translateY(-10px) scale(1.25); }
  100% { opacity: 0; transform: translateY(-45px) scale(1); }
}
@keyframes float-down-negative {
  0% { opacity: 1; transform: translateY(0) scale(0.8); }
  30% { opacity: 1; transform: translateY(8px) scale(1.15); }
  100% { opacity: 0; transform: translateY(40px) scale(0.9); }
}
@keyframes level-up-glow {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.15); filter: brightness(1.5) drop-shadow(0 0 20px rgba(245,158,11,0.8)); }
  100% { transform: scale(1); filter: brightness(1); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 正向任务动画 - 辉煌星爆 ===== */
@keyframes positive-burst {
  0% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(2); }
}
@keyframes positive-ring {
  0% { opacity: 0.8; transform: scale(0); border-width: 10px; }
  100% { opacity: 0; transform: scale(4); border-width: 1px; }
}
@keyframes positive-star-fly {
  0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.3) rotate(360deg); }
}
@keyframes positive-sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes positive-rise {
  0% { opacity: 0; transform: translateY(20px) scale(0.5); }
  30% { opacity: 1; transform: translateY(0) scale(1.1); }
  100% { opacity: 0; transform: translateY(-100px) scale(0.8); }
}

.positive-burst {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.6) 0%, rgba(245, 158, 11, 0.3) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: positive-burst 0.6s ease-out forwards;
}
.positive-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 6px solid #F59E0B;
  transform: translate(-50%, -50%);
  animation: positive-ring 0.8s ease-out forwards;
}
.positive-ring.ring2 {
  border-color: #FCD34D;
  animation-delay: 0.1s;
  animation-duration: 0.9s;
}
.positive-star {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 20px;
  animation: positive-star-fly 0.9s ease-out forwards;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8));
}
.positive-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 6px;
  height: 6px;
  background: #FCD34D;
  border-radius: 50%;
  animation: positive-sparkle 0.6s ease-in-out forwards;
  box-shadow: 0 0 10px #F59E0B, 0 0 20px #FCD34D;
}
.positive-rise {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 24px;
  animation: positive-rise 1.2s ease-out forwards;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
}

/* ===== 负向任务动画 - 破碎冲击 ===== */
@keyframes negative-shock {
  0% { opacity: 0; transform: scale(0); }
  50% { opacity: 0.6; transform: scale(1.8); }
  100% { opacity: 0; transform: scale(2.5); }
}
@keyframes negative-shard-fly {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.4); }
}
@keyframes negative-flash {
  0%, 100% { opacity: 0; }
  20% { opacity: 0.3; }
  50% { opacity: 0.15; }
}
@keyframes negative-shake-heavy {
  0%, 100% { transform: translateX(0) rotate(0); }
  10% { transform: translateX(-8px) rotate(-1deg); }
  20% { transform: translateX(8px) rotate(1deg); }
  30% { transform: translateX(-6px) rotate(-0.5deg); }
  40% { transform: translateX(6px) rotate(0.5deg); }
  50% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
@keyframes negative-fall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(120px) rotate(180deg); }
}
@keyframes negative-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
}

.negative-shock {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.5) 0%, rgba(220, 38, 38, 0.2) 50%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: negative-shock 0.5s ease-out forwards;
}
.negative-shard {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 12px solid #EF4444;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.8));
  animation: negative-shard-fly 0.8s ease-in forwards;
}
.negative-flash-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(circle at center, transparent 30%, rgba(239, 68, 68, 0.3) 100%);
  animation: negative-flash 0.6s ease-out forwards;
}
.task-card.shake-heavy {
  animation: negative-shake-heavy 0.6s ease-in-out;
}
.negative-fall-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 2px;
  animation: negative-fall 0.9s ease-in forwards;
  transform: rotate(45deg);
}
.negative-pulse-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #EF4444;
  transform: translate(-50%, -50%);
  animation: negative-pulse 0.6s ease-out;
}

.exp-float {
  animation: float-up 1s ease-out forwards;
}
.exp-indicator.positive {
  animation: float-up-positive 1s ease-out forwards;
  color: #10B981;
  text-shadow: 
    0 0 2px #fff,
    0 0 4px #10B981,
    0 0 8px rgba(16, 185, 129, 0.8),
    0 0 16px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(20, 184, 166, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.4));
}
.exp-indicator.negative {
  animation: float-down-negative 1s ease-in forwards;
  color: #EF4444;
  text-shadow: 
    0 0 2px #fff,
    0 0 4px #EF4444,
    0 0 8px rgba(239, 68, 68, 0.8),
    0 0 16px rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(248, 113, 113, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.4));
}
.level-up-glow {
  animation: level-up-glow 0.8s ease-out;
}
.level-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: particle-burst 1.5s ease-out forwards;
}
@keyframes particle-burst {
  0% { opacity: 1; transform: scale(0) translateY(0); }
  50% { opacity: 1; transform: scale(1.5) translateY(-20px); }
  100% { opacity: 0; transform: scale(0) translateY(-40px); }
}

/* 升级全屏闪光 */
.levelup-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9996;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.4) 0%, rgba(245, 158, 11, 0.2) 40%, transparent 70%);
  animation: levelup-flash-anim 1s ease-out forwards;
}
@keyframes levelup-flash-anim {
  0% { opacity: 0; transform: scale(0.5); }
  30% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(2); }
}

/* 升级大光环 */
.levelup-ring {
  position: fixed;
  top: 50%;
  left: 50%;
  pointer-events: none;
  z-index: 9997;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: levelup-ring-anim 1.2s ease-out forwards;
}
.levelup-ring.r1 {
  width: 100px;
  height: 100px;
  border: 6px solid #FCD34D;
  box-shadow: 0 0 30px #F59E0B, 0 0 60px rgba(245, 158, 11, 0.5);
}
.levelup-ring.r2 {
  width: 100px;
  height: 100px;
  border: 4px solid #FBBF24;
  animation-delay: 0.15s;
  opacity: 0.8;
}
.levelup-ring.r3 {
  width: 100px;
  height: 100px;
  border: 3px solid #FDE68A;
  animation-delay: 0.3s;
  opacity: 0.6;
}
@keyframes levelup-ring-anim {
  0% { opacity: 0.9; width: 100px; height: 100px; border-width: 8px; }
  100% { opacity: 0; width: 500px; height: 500px; border-width: 1px; }
}

/* 升级文字 */
.levelup-text {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  text-align: center;
  animation: levelup-text-anim 2s ease-out forwards;
}
.levelup-text .lv-up-label {
  font-size: 1.2rem;
  color: #FCD34D;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.8), 0 0 40px rgba(245, 158, 11, 0.4);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: levelup-label-in 0.5s ease-out 0.3s forwards;
}
.levelup-text .lv-up-num {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FCD34D, #F59E0B, #F97316, #FCD34D);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.6));
  animation: levelup-num-anim 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
  opacity: 0;
  transform: scale(0.3);
}
@keyframes levelup-label-in {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes levelup-num-anim {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  80% { transform: translate(-50%, -50%) scale(0.95); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
@keyframes levelup-text-anim {
  0%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

/* 星星爆炸粒子 */
.levelup-star {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 24px;
  animation: levelup-star-fly 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
}
@keyframes levelup-star-fly {
  0% { opacity: 0; transform: translate(0, 0) scale(0) rotate(0deg); }
  20% { opacity: 1; transform: translate(calc(var(--tx) * 0.3), calc(var(--ty) * 0.3)) scale(1.3) rotate(120deg); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.5) rotate(480deg); }
}

/* 金币上升粒子 */
.levelup-coin {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 22px;
  animation: levelup-coin-rise 2s ease-out forwards;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.5));
}
@keyframes levelup-coin-rise {
  0% { opacity: 0; transform: translateY(0) rotateY(0deg) scale(0.5); }
  20% { opacity: 1; transform: translateY(-30px) rotateY(180deg) scale(1.2); }
  100% { opacity: 0; transform: translateY(-200px) rotateY(720deg) scale(0.8); }
}

.glass-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}

.floating-status {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translate(-50%, -150%);
  z-index: 100;
  width: calc(100% - 1.5rem);
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 1.25rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.floating-status.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.floating-status.hidden, 
.floating-status:not(.show) { 
  display: none; 
}
.floating-pet {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
  border-radius: 50%;
  border: 2px solid rgba(251, 191, 36, 0.3);
  animation: float-bob 2s ease-in-out infinite;
}
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.floating-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.floating-level-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.floating-level {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FCD34D;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.03em;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}
.floating-level span {
  font-size: 1.15rem;
  font-weight: 800;
}
.floating-exp-num {
  font-size: 0.75rem;
  color: #94A3B8;
  font-family: 'Orbitron', monospace;
  white-space: nowrap;
}
.floating-exp-num span {
  color: #FCD34D;
  font-weight: 700;
}
.floating-exp-num span:first-child {
  color: #FDE68A;
}
.floating-exp-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3) inset;
}
.floating-exp-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.floating-exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #FCD34D, #F59E0B);
  background-size: 200% 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
  position: relative;
  animation: exp-shimmer 2s linear infinite;
}
.floating-exp-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6));
  border-radius: 0 4px 4px 0;
}
@keyframes exp-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  animation: fade-in 0.5s ease;
}
.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header h1 .sparkle { color: #F59E0B; }
.header .subtitle {
  color: #94A3B8;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.btn-primary { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
.btn-primary:hover { background: rgba(245, 158, 11, 0.3); }
.btn-positive { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.btn-positive:hover { background: rgba(16, 185, 129, 0.3); }
.btn-positive-solid { background: #10B981; color: white; }
.btn-positive-solid:hover { background: rgba(16, 185, 129, 0.8); }
.btn-negative { background: rgba(244, 63, 94, 0.2); color: #F43F5E; }
.btn-negative:hover { background: rgba(244, 63, 94, 0.3); }
.btn-icon { 
  padding: 0; 
  width: 38px; 
  height: 38px; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.btn-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-icon:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-icon:hover::before { opacity: 1; }
.btn-icon:active { 
  transform: scale(0.95) rotate(90deg); 
}
.btn-positive.btn-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
  border: 2px solid rgba(16, 185, 129, 0.5);
  color: #34D399;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}
.btn-positive.btn-icon:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(5, 150, 105, 0.4));
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}
.btn-negative.btn-icon {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.3), rgba(220, 38, 38, 0.2));
  border: 2px solid rgba(244, 63, 94, 0.5);
  color: #FB7185;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.2);
}
.btn-negative.btn-icon:hover {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.5), rgba(220, 38, 38, 0.4));
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.4);
  color: #FDA4AF;
}
.back-btn-icon {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #F1F5F9 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-size: 1.2rem !important;
  width: 42px !important;
  height: 42px !important;
}
.back-btn-icon:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateX(-3px) !important;
  box-shadow: -4px 0 15px rgba(0,0,0,0.2) !important;
}
.back-btn-icon:active {
  transform: translateX(-1px) scale(0.95) !important;
}
.btn-settings {
  position: relative;
  padding: 0.6rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(249, 115, 22, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #F59E0B;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.btn-settings::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #F59E0B, #F97316, #FBBF24, #F59E0B);
  background-size: 200% 200%;
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
  animation: gradient-rotate 3s linear infinite;
}
.btn-settings:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 0 40px rgba(245, 158, 11, 0.2);
  border-color: #F59E0B;
}
.btn-settings:hover::before { opacity: 0.5; }
.btn-settings:active { transform: rotate(90deg) scale(0.95); }

.btn-icon-stats {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  color: #F1F5F9;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}
.btn-icon-stats:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.btn-icon-stats:active { transform: scale(0.95); }

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.install-btn {
  animation: install-pulse 2s ease-in-out infinite;
}
@keyframes install-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
}
.install-btn:hover {
  animation: none;
  transform: scale(1.1) !important;
}
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
.btn-block-lg { padding: 0.75rem 1.5rem; width: 100%; justify-content: center; }

.main-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .main-grid { grid-template-columns: 1fr 2fr; }
}

/* 等级仪表 */
.dashboard-card {
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fade-in 0.6s ease;
}
.dashboard-card h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.level-ring-container {
  position: relative;
  width: 14rem;
  height: 14rem;
}
.level-ring-container svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.level-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.level-ring-center .lv-label { font-size: 0.75rem; color: #94A3B8; }
.level-ring-center .lv-num {
  font-family: 'Orbitron', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: #F59E0B;
  line-height: 1;
}
.level-ring-center .lv-exp { font-size: 0.75rem; color: #94A3B8; margin-top: 0.5rem; }

.pet-container {
  position: relative;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 1rem;
  width: 100%;
  text-align: center;
}
.pet-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.pet-name-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: #F1F5F9;
}
.pet-stage {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  border-radius: 999px;
}
.pet-emoji {
  display: inline-block;
  line-height: 1;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.pet-emoji.idle {
  animation: pet-breathe 3s ease-in-out infinite;
}
.pet-emoji.happy {
  animation: pet-happy 0.5s ease-in-out;
}
.pet-emoji.sad {
  animation: pet-sad 0.5s ease-in-out;
}
@keyframes pet-breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.03) translateY(-3px); }
}
@keyframes pet-happy {
  0% { transform: scale(1) translateY(0) rotate(0deg); }
  25% { transform: scale(1.1) translateY(-8px) rotate(-5deg); }
  50% { transform: scale(1.15) translateY(-12px) rotate(5deg); }
  75% { transform: scale(1.1) translateY(-6px) rotate(-3deg); }
  100% { transform: scale(1) translateY(0) rotate(0deg); }
}
@keyframes pet-sad {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(0.95) translateY(4px); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) grayscale(0.3); }
  100% { transform: scale(1) translateY(0); }
}
.pet-level-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.pet-tip {
  font-size: 0.7rem;
  color: #64748B;
  margin-top: 0.5rem;
}

.exp-bar-wrap { width: 100%; margin-top: 1.5rem; }
.exp-bar {
  height: 0.5rem;
  background: #1E293B;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.exp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #FCD34D);
  border-radius: 999px;
  transition: width 0.5s ease;
}
.exp-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}
.exp-bar-label .label-text { color: #94A3B8; }
.exp-bar-label .value { color: #F59E0B; font-family: 'Orbitron', monospace; }

.stat-row { margin-top: 1rem; }
.stat-row .stat-label { color: #94A3B8; font-size: 0.75rem; }
.stat-row .stat-value {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F59E0B;
}

/* 任务区 */
.section { margin-bottom: 2rem; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title .ico-sun { color: #10B981; }
.section-title .ico-moon { color: #F43F5E; }
.section-title .ico-gift { color: #F59E0B; }
.section-title .ico-star { color: #10B981; }

.task-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .task-grid { grid-template-columns: 1fr 1fr; }
}

/* 任务卡片 */
.task-card {
  border-radius: 1rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
  animation: fade-in 0.5s ease;
}
.task-card:hover { transform: translateY(-2px); }
.task-card .exp-indicator {
  position: absolute;
  top: 2.5rem;
  right: 1rem;
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  pointer-events: none;
  z-index: 10;
  letter-spacing: 0.02em;
}
.task-card .task-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.task-card .task-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.task-card .task-icon.positive { background: rgba(16, 185, 129, 0.2); }
.task-card .task-icon.negative { background: rgba(244, 63, 94, 0.2); }
.task-card .task-info { flex: 1; min-width: 0; }
.task-card .task-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-card .task-exp { font-family: 'Orbitron', monospace; font-size: 0.85rem; }
.task-card .task-exp.positive { color: #10B981; }
.task-card .task-exp.negative { color: #F43F5E; }
.task-card .task-action {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.6rem;
  border-radius: 0.75rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.task-card .task-action.positive { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.task-card .task-action.positive:hover { background: rgba(16, 185, 129, 0.3); }
.task-card .task-action.negative { background: rgba(244, 63, 94, 0.2); color: #F43F5E; }
.task-card .task-action.negative:hover { background: rgba(244, 63, 94, 0.3); }

/* 视图切换按钮 */
.view-toggle {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0.625rem;
}
.view-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.view-btn:hover {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
}
.view-btn.active {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.15);
}

/* 列表视图 */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.task-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}
.task-list-item .task-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.task-list-item .task-icon.positive { background: rgba(16, 185, 129, 0.15); }
.task-list-item .task-icon.negative { background: rgba(244, 63, 94, 0.15); }
.task-list-item .task-info { flex: 1; min-width: 0; }
.task-list-item .task-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: inherit;
}
.task-list-item .task-exp {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
}
.task-list-item .task-exp.positive { color: #10B981; }
.task-list-item .task-exp.negative { color: #F43F5E; }
.task-list-item .task-action {
  padding: 0.6rem 1rem;
  border-radius: 0.625rem;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.task-list-item .task-action.positive {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}
.task-list-item .task-action.positive:hover { background: rgba(16, 185, 129, 0.25); }
.task-list-item .task-action.negative {
  background: rgba(244, 63, 94, 0.15);
  color: #F43F5E;
}
.task-list-item .task-action.negative:hover { background: rgba(244, 63, 94, 0.25); }

/* 紧凑视图 */
.task-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.625rem;
}
.task-compact-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
  border-radius: 0.875rem;
}
.task-compact-item .compact-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.task-compact-item .compact-icon.positive { background: rgba(16, 185, 129, 0.15); }
.task-compact-item .compact-icon.negative { background: rgba(244, 63, 94, 0.15); }
.task-compact-item .compact-name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}
.task-compact-item .compact-exp {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  margin-right: 0.5rem;
}
.task-compact-item .compact-exp.positive { color: #10B981; }
.task-compact-item .compact-exp.negative { color: #F43F5E; }
.task-compact-item .compact-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.task-compact-item .compact-btn.positive {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}
.task-compact-item .compact-btn.positive:hover { background: rgba(16, 185, 129, 0.25); }
.task-compact-item .compact-btn.negative {
  background: rgba(244, 63, 94, 0.15);
  color: #F43F5E;
}
.task-compact-item .compact-btn.negative:hover { background: rgba(244, 63, 94, 0.25); }

/* 矩阵圆形悬浮按钮视图 */
.task-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1.25rem 0.75rem;
  padding: 0.75rem 0.5rem;
}
.task-matrix-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}
.task-matrix-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}
.task-matrix-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.task-matrix-btn.positive::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
}
.task-matrix-btn.negative::before {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(244, 63, 94, 0.05));
}
.task-matrix-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.08);
}
.task-matrix-btn:hover::before { opacity: 1; }
.task-matrix-btn:active {
  transform: translateY(-4px) scale(0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.task-matrix-btn.positive {
  border-color: rgba(16, 185, 129, 0.3);
}
.task-matrix-btn.negative {
  border-color: rgba(244, 63, 94, 0.3);
}
.task-matrix-name {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  opacity: 0.9;
}
.task-matrix-exp {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  margin-top: -0.2rem;
}
.task-matrix-exp.positive { color: #10B981; }
.task-matrix-exp.negative { color: #F43F5E; }

.empty-card {
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}
.empty-card p { color: #94A3B8; }
.empty-card .empty-action { color: #10B981; margin-top: 0.75rem; background: none; border: none; cursor: pointer; font-family: inherit; }
.empty-card .empty-action.negative { color: #F43F5E; }

/* 奖励卡片 */
.reward-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .reward-grid { grid-template-columns: 1fr 1fr; }
}
.reward-card {
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.2s;
  animation: fade-in 0.5s ease;
}
.reward-card.available { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5); }
.reward-card .reward-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.reward-card .reward-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.reward-card .reward-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.reward-card .reward-name { font-weight: 500; }
.reward-card .reward-condition { color: #94A3B8; font-size: 0.85rem; }
.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.status-badge.locked { background: rgba(148, 163, 184, 0.2); color: #94A3B8; }
.status-badge.available { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.status-badge.redeemed { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
.reward-actions { display: flex; gap: 0.5rem; }
.reward-actions .btn-positive-solid { flex: 1; padding: 0.6rem; border-radius: 0.75rem; border: none; font-weight: 500; cursor: pointer; font-family: inherit; color: white; }
.reward-actions .btn-icon { padding: 0.6rem; background: transparent; border: none; cursor: pointer; border-radius: 0.75rem; color: #F43F5E; }
.reward-actions .btn-icon:hover { background: rgba(51, 65, 85, 1); }

/* 顶部统计行 */
.stats-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
.stat-card {
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}
.stat-card .stat-big {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.stat-card .stat-big.gold { color: #F59E0B; }
.stat-card .stat-big.positive { color: #10B981; }
.stat-card .stat-big.star { color: #F59E0B; }
.stat-card .stat-small { color: #94A3B8; font-size: 0.8rem; }

/* 历史记录 */
.exp-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.summary-card {
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.5);
}
.summary-card.positive { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); }
.summary-card.negative { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); }
.summary-label {
  font-size: 0.75rem;
  color: #94A3B8;
  margin-bottom: 0.4rem;
}
.summary-value {
  font-size: 1.4rem;
  font-weight: 700;
}
.summary-card.positive .summary-value { color: #10B981; }
.summary-card.negative .summary-value { color: #EF4444; }
.summary-unit {
  font-size: 0.7rem;
  color: #64748B;
  margin-top: 0.2rem;
}

.history-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.5);
  color: #94A3B8;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
}
.filter-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #F59E0B;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0.75rem;
}
.history-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-weight: 700;
}
.history-icon.positive { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.history-icon.negative { background: rgba(239, 68, 68, 0.2); color: #EF4444; }
.history-icon.gold { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
.history-info { flex: 1; min-width: 0; }
.history-title { font-weight: 500; }
.history-detail { color: #94A3B8; font-size: 0.8rem; }
.history-balance { color: #64748B; font-size: 0.7rem; margin-top: 0.15rem; }
.history-right {
  text-align: right;
  flex-shrink: 0;
}
.history-exp {
  font-weight: 600;
  font-size: 0.95rem;
}
.history-exp.positive { color: #10B981; }
.history-exp.negative { color: #EF4444; }
.history-time { color: #64748B; font-size: 0.75rem; margin-top: 0.2rem; }
.history-time-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.history-delete-btn {
  width: 26px;
  height: 26px;
  border-radius: 0.4rem;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #F87171;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
}
.history-item:hover .history-delete-btn { opacity: 1; }
.history-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  transform: scale(1.1);
}
.history-delete-btn:active { transform: scale(0.95); }

/* 模态框 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fade-in 0.2s ease;
}
.modal-overlay.hidden { display: none; }
.modal-content {
  background: #1E293B;
  border-radius: 1rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: fade-in 0.2s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.modal-header h2 { font-size: 1.25rem; font-weight: 600; }
.modal-close {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}
.modal-close:hover { color: white; }

.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  color: #94A3B8;
  margin-bottom: 0.5rem;
}
.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-select:focus { border-color: #F59E0B; }
.form-input::placeholder { color: rgba(148, 163, 184, 0.5); }

.type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.type-toggle button {
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  background: #0F172A;
  color: #94A3B8;
  transition: all 0.2s;
}
.type-toggle button.active.positive { background: #10B981; color: white; }
.type-toggle button.active.negative { background: #F43F5E; color: white; }
.type-toggle button.active.gold { background: #F59E0B; color: white; }
.type-toggle button:not(.active):hover { background: #334155; }

.icon-grid {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.icon-grid.active {
  display: flex;
}
.icon-grid button {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1.15rem;
  background: #0F172A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.icon-grid button:hover { background: #334155; transform: scale(1.1); }
.icon-grid button.active {
  background: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 0 2px #F59E0B;
}

.icon-picker-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.icon-group-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.icon-group-tab {
  padding: 0.35rem 0.7rem;
  border-radius: 0.4rem;
  border: none;
  background: rgba(15, 23, 42, 0.8);
  color: #94A3B8;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.icon-group-tab:hover {
  color: #E2E8F0;
  background: #1E293B;
}
.icon-group-tab.active {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
}

.form-submit {
  width: 100%;
  padding: 0.75rem;
  background: #F59E0B;
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.form-submit:hover { background: rgba(245, 158, 11, 0.8); }
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.confirm-content {
  text-align: center;
  padding: 1rem 0;
}
.confirm-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background: rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}
.confirm-content p { color: white; font-size: 1.1rem; margin-bottom: 0.5rem; }
.confirm-content .gold { color: #F59E0B; font-weight: 600; }
.confirm-content .muted { color: #94A3B8; font-size: 0.85rem; }
.confirm-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.confirm-actions button {
  flex: 1;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.confirm-actions .cancel-btn { background: #334155; color: white; }
.confirm-actions .cancel-btn:hover { background: rgba(51, 65, 85, 0.8); }
.confirm-actions .confirm-btn { background: #10B981; color: white; }
.confirm-actions .confirm-btn:hover { background: rgba(16, 185, 129, 0.8); }

/* Toast */
#toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-weight: 500;
  animation: float-up 1s ease-out forwards;
  pointer-events: auto;
}
.toast.negative { color: #F43F5E; }
.toast.positive { color: #10B981; }
.toast.gold { color: #F59E0B; }

/* 管理页 */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.admin-tab {
  flex: 1;
  min-width: 70px;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: #94A3B8;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}
.admin-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.admin-tab:hover { 
  background: rgba(255, 255, 255, 0.08); 
  color: #E2E8F0;
  transform: translateY(-2px);
}
.admin-tab:hover::before { opacity: 1; }
.admin-tab:active { transform: translateY(0) scale(0.98); }
.admin-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(249, 115, 22, 0.2));
  color: #FCD34D;
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
  transform: translateY(-2px);
}
.admin-tab.active::before { opacity: 1; }
.admin-tab .tab-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.admin-tab .tab-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.admin-panel {
  border-radius: 1rem;
  padding: 1.5rem;
  animation: fade-in 0.4s ease;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.panel-title {
  font-size: 1.1rem;
  font-weight: 600;
}
.panel-desc {
  color: #94A3B8;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}
.setting-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.setting-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.setting-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 0.75rem;
  font-size: 1.2rem;
}
.setting-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #F1F5F9;
}
.setting-desc {
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 0.15rem;
}
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.15));
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 0.6rem;
  color: #FCD34D;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}
.theme-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(249, 115, 22, 0.25));
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}
.theme-toggle-btn:active {
  transform: translateY(0) scale(0.98);
}
.theme-toggle-btn .theme-icon {
  font-size: 1.1rem;
}

.generate-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0.75rem;
  align-items: flex-end;
}
.generate-form .form-group { margin-bottom: 0; display: flex; flex-direction: column; }
.generate-form .form-submit { margin-top: 0; white-space: nowrap; }

.mode-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.5rem;
  padding: 0.15rem;
  gap: 0.15rem;
}
.mode-toggle button {
  flex: 1;
  padding: 0.4rem 0.7rem;
  border: none;
  background: transparent;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
  transition: all 0.2s;
}
.mode-toggle button.active {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.mode-param { display: none; }
.mode-param.show { display: block; }

.level-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 0.6rem;
}
.preview-label {
  font-size: 0.75rem;
  color: #F59E0B;
  font-weight: 600;
  white-space: nowrap;
}
.preview-values {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
}
.preview-item { color: #CBD5E1; }
.preview-item b { color: #F1F5F9; font-weight: 600; }
.preview-more { color: #64748B; font-style: italic; }

.level-table-wrap {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  padding: 0.75rem;
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}
.level-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 0.5rem;
  font-size: 0.85rem;
}
.lv-num-label {
  font-family: 'Orbitron', monospace;
  color: #F59E0B;
  font-weight: 600;
  min-width: 3rem;
}
.lv-input {
  flex: 1;
  width: 100%;
  padding: 0.4rem 0.5rem;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 0.4rem;
  color: white;
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  outline: none;
  min-width: 0;
}
.lv-input:focus { border-color: #F59E0B; }
.lv-exp-label { color: #64748B; font-size: 0.75rem; }

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 0.75rem;
  transition: background 0.2s;
}
.admin-item:hover { background: rgba(15, 23, 42, 0.8); }
.admin-item-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.admin-item-info { min-width: 0; flex: 1; }
.admin-item-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-item-sub {
  color: #94A3B8;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.admin-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.admin-action-btn {
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  border: none;
  background: rgba(51, 65, 85, 0.6);
  color: #94A3B8;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.admin-action-btn:hover { background: rgba(71, 85, 105, 0.8); color: white; }
.admin-action-btn.danger:hover { background: rgba(244, 63, 94, 0.3); color: #F43F5E; }

/* ===== 数据统计页面 ===== */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.stat-overview-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem;
  border-radius: 1rem;
}
.overview-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 0.875rem;
  flex-shrink: 0;
}
.overview-icon.gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(251, 191, 36, 0.15));
}
.overview-icon.positive {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(20, 184, 166, 0.15));
}
.overview-icon.negative {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(248, 113, 113, 0.15));
}
.overview-icon.streak {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(251, 146, 60, 0.15));
}
.overview-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.overview-value {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F1F5F9;
  line-height: 1;
}
.overview-value.positive { color: #10B981; }
.overview-value.negative { color: #F43F5E; }
.overview-value.gold { color: #F59E0B; }
.overview-value.streak { color: #F97316; }
.overview-label {
  font-size: 0.75rem;
  color: #94A3B8;
}

/* 热力图 */
.heatmap-week {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.heatmap-labels,
.heatmap-grid,
.heatmap-date-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}
.heatmap-day-label {
  text-align: center;
  font-size: 0.75rem;
  color: #94A3B8;
}
.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}
.heatmap-cell:hover {
  transform: scale(1.05);
}
.heatmap-empty {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: #475569;
}
.heatmap-very-low {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 184, 166, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}
.heatmap-low {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(20, 184, 166, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
}
.heatmap-med {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(20, 184, 166, 0.3));
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #10B981;
}
.heatmap-high {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.55), rgba(20, 184, 166, 0.45));
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #059669;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.heatmap-count {
  font-family: 'Orbitron', monospace;
}
.heatmap-date {
  text-align: center;
  font-size: 0.7rem;
  color: #64748B;
}

.stats-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

/* 任务排行榜 */
.task-rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.task-rank-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0.75rem;
  transition: all 0.2s;
}
.task-rank-item:hover {
  background: rgba(15, 23, 42, 0.7);
}
.rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  background: rgba(148, 163, 184, 0.2);
  color: #94A3B8;
}
.rank-badge.rank-1 {
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  color: #78350F;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}
.rank-badge.rank-2 {
  background: linear-gradient(135deg, #E5E7EB, #9CA3AF);
  color: #374151;
  box-shadow: 0 0 15px rgba(156, 163, 175, 0.3);
}
.rank-badge.rank-3 {
  background: linear-gradient(135deg, #FDBA74, #F97316);
  color: #7C2D12;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}
.rank-info {
  flex: 1;
  min-width: 0;
}
.rank-name {
  font-weight: 500;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-sub {
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 0.15rem;
}

/* 任务分布图表 */
.task-type-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.type-bar-wrap {
  display: flex;
  height: 48px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
}
.type-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.5s ease;
  min-width: 0;
}
.type-bar.positive {
  background: linear-gradient(135deg, #10B981, #059669);
}
.type-bar.negative {
  background: linear-gradient(135deg, #F43F5E, #E11D48);
}
.type-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}
.type-legend {
  display: flex;
  justify-content: space-around;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #94A3B8;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-dot.positive { background: #10B981; }
.legend-dot.negative { background: #F43F5E; }
.legend-val {
  font-weight: 600;
  color: #E2E8F0;
  font-family: 'Orbitron', monospace;
}

/* 经验趋势图 */
.exp-trend-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.375rem;
  align-items: end;
  height: 100px;
}
.trend-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  height: 100%;
  justify-content: flex-end;
}
.trend-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 80px;
}
.trend-bar {
  width: 12px;
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
  min-height: 2px;
}
.trend-bar.gain {
  background: linear-gradient(to top, #10B981, #34D399);
}
.trend-bar.loss {
  background: linear-gradient(to top, #F43F5E, #FB7185);
}
.trend-day {
  font-size: 0.7rem;
  color: #64748B;
}

/* 兑换统计 */
.redeem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.redeem-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0.75rem;
}
.redeem-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 0.625rem;
  background: rgba(245, 158, 11, 0.15);
  flex-shrink: 0;
}
.redeem-icon.gold {
  background: rgba(16, 185, 129, 0.15);
}
.redeem-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.redeem-value {
  font-family: 'Orbitron', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #F1F5F9;
  line-height: 1;
}
.redeem-value.gold { color: #10B981; }
.redeem-label {
  font-size: 0.7rem;
  color: #64748B;
}

/* ===== 元气值设置 ===== */
.setting-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.setting-input {
  width: 100px;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #F1F5F9;
  font-size: 0.9rem;
  font-family: 'Orbitron', monospace;
  text-align: center;
}
.setting-input:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.5);
}
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 0.5rem;
}

.energy-convert-box {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.convert-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.convert-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.convert-input-group label {
  font-size: 0.75rem;
  color: #94A3B8;
}
.convert-input-group .convert-input,
.convert-input-group .convert-result {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.625rem;
  color: #F1F5F9;
  font-size: 1.1rem;
  font-family: 'Orbitron', monospace;
  text-align: center;
  font-weight: 600;
}
.convert-input-group .convert-result {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}
.convert-input-group .convert-unit {
  font-size: 0.75rem;
  color: #64748B;
  text-align: center;
}
.convert-arrow {
  font-size: 1.25rem;
  color: #64748B;
  flex-shrink: 0;
}
.convert-quick {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.quick-btn {
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #94A3B8;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-btn:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.3);
  color: #F97316;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 奖励商店元气值 ===== */
.stat-big.energy {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.reward-balance-wrap {
  margin-bottom: 1.5rem;
}
.balance-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 1rem;
}
.balance-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(249, 115, 22, 0.15));
  border-radius: 0.875rem;
  flex-shrink: 0;
}
.balance-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.balance-label {
  font-size: 0.85rem;
  color: #94A3B8;
}
.balance-value {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F59E0B;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #F59E0B;
}
.btn-outline:hover {
  background: rgba(245, 158, 11, 0.15);
}

.reward-card.energy-type {
  border-color: rgba(245, 158, 11, 0.25);
}
.reward-card.energy-type.available {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}
.energy-btn {
  background: linear-gradient(135deg, #F59E0B, #F97316) !important;
  color: #fff !important;
}
.energy-btn:hover {
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
}

/* 三列toggle按钮 */
.type-toggle.three-col {
  grid-template-columns: repeat(3, 1fr);
}

/* 主题色选择器 */
.theme-color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0.75rem;
}
.theme-color-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.theme-color-btn:hover {
  transform: scale(1.1);
}
.theme-color-btn.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

/* 首页元气值兑换面板 */
.energy-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.08));
  border-radius: 1rem;
  margin-bottom: 0.875rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.energy-balance-item {
  flex: 1;
  text-align: center;
}
.eb-label {
  font-size: 0.75rem;
  color: #92400E;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.eb-value {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'Orbitron', monospace;
}
.eb-value.positive {
  color: #059669;
}
.eb-value.gold {
  color: #D97706;
}
.energy-arrow {
  font-size: 1.4rem;
  color: #F59E0B;
  font-weight: bold;
}
.energy-convert-mini {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}
.energy-convert-input {
  flex: 1;
  padding: 0.7rem 0.875rem;
  border: 2px solid rgba(245, 158, 11, 0.2);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  color: #1F2937;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}
.energy-convert-input:focus {
  border-color: #F59E0B;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.energy-convert-input::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}
.energy-convert-mini .btn {
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.energy-convert-mini .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}
.energy-convert-mini .btn:active {
  transform: translateY(0);
}
.energy-convert-mini .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.energy-quick-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.energy-quick-btn {
  padding: 0.5rem;
  border: 2px solid rgba(245, 158, 11, 0.15);
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.5);
  color: #92400E;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.energy-quick-btn:hover {
  border-color: #F59E0B;
  color: #D97706;
  background: rgba(245, 158, 11, 0.1);
  transform: translateY(-1px);
}
.energy-quick-btn:active {
  transform: translateY(0);
}
.home-convert-ratio {
  font-size: 0.8rem;
  color: #92400E;
  text-align: center;
  padding-top: 0.25rem;
  font-weight: 500;
  opacity: 0.8;
}

/* 登录页面 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
}
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}
.login-logo {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.login-title {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.35rem;
}
.login-subtitle {
  font-size: 0.9rem;
  color: #94A3B8;
}
.login-form .form-group {
  margin-bottom: 1.25rem;
}
.login-form .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 0.5rem;
}
.login-form .form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
.login-form .form-input:focus {
  border-color: #F59E0B;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.login-btn {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}
.login-btn:active {
  transform: translateY(0);
}
.login-tip {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.login-tip p {
  font-size: 0.8rem;
  color: #D97706;
  margin: 0.2rem 0;
  line-height: 1.5;
}
.login-tip p:first-child {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* 用户菜单 */
.user-menu-wrap {
  position: relative;
}
.user-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.2));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.user-btn:hover {
  border-color: #F59E0B;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}
.user-avatar {
  font-size: 1rem;
  font-weight: 800;
  color: #F59E0B;
  text-transform: uppercase;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 200px;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 100;
  overflow: hidden;
  animation: dropdownIn 0.2s ease;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.user-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 1rem;
}
.user-dropdown-name {
  font-weight: 600;
  color: #F1F5F9;
  font-size: 0.95rem;
}
.user-dropdown-role {
  font-size: 0.75rem;
  color: #F59E0B;
  margin-top: 0.2rem;
}
.user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  color: #CBD5E1;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  font-family: inherit;
}
.user-dropdown-item:hover {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.user-list-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(249, 115, 22, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: #F59E0B;
}

/* ===== 移动端优化 ===== */
@media (max-width: 640px) {
  .container { padding: 0.75rem 0.75rem 5rem; }
  
  .header { margin-bottom: 1.25rem; }
  .header h1 { font-size: 1.2rem; }
  .header .subtitle { font-size: 0.75rem; }
  
  .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 0.6rem;
  }
  .btn-settings {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .btn-icon { min-width: 44px; min-height: 44px; padding: 0.6rem; }
  
  .main-grid { gap: 1rem; }
  
  .dashboard-card { padding: 1rem; }
  .dashboard-card h2 { font-size: 1rem; margin-bottom: 0.75rem; }
  
  .level-ring-container {
    width: 11rem;
    height: 11rem;
  }
  .level-ring-center .lv-num { font-size: 2.2rem; }
  .level-ring-center .lv-label { font-size: 0.65rem; }
  .level-ring-center .lv-exp { font-size: 0.65rem; }
  
  .pet-container { padding: 0.75rem; margin-top: 0.75rem; }
  .pet-name-text { font-size: 0.8rem; }
  .pet-stage { font-size: 0.65rem; }
  .pet-tip { font-size: 0.65rem; }
  
  .exp-bar-wrap { margin-top: 1rem; }
  
  .section { margin-bottom: 1.25rem; }
  .section-title { font-size: 1rem; }
  
  .task-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .task-card { padding: 0.75rem; }
  .task-name { font-size: 0.9rem; }
  .task-exp { font-size: 0.75rem; }
  .task-action {
    min-width: 64px;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  .task-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
  }
  
  .reward-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .reward-card { padding: 0.75rem; }
  .reward-name { font-size: 0.85rem; }
  
  .modal-overlay { padding: 0.75rem; align-items: flex-end; }
  .modal-content {
    width: 100%;
    max-height: 85vh;
    border-radius: 1rem 1rem 0 0;
    margin: 0;
  }
  .modal-header { padding: 1rem; }
  .modal-header h2 { font-size: 1.05rem; }
  .modal-body { padding: 0 1rem 1rem; }
  
  .form-group { margin-bottom: 0.9rem; }
  .form-label { font-size: 0.8rem; margin-bottom: 0.35rem; }
  .form-input {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  .form-submit {
    min-height: 48px;
    font-size: 0.9rem;
  }
  
  .admin-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .admin-item-actions { width: 100%; }
  .admin-action-btn {
    flex: 1;
    text-align: center;
    min-height: 38px;
  }
  
  .generate-form .form-group { width: 100% !important; flex: none !important; }
  .generate-form { gap: 0.6rem; padding: 0.75rem; }
  .mode-toggle { width: 100%; }
  .mode-toggle button { padding: 0.5rem 0.6rem; font-size: 0.75rem; }
  
  .stats-row { grid-template-columns: 1fr 1fr 1fr; }
  .stat-card .stat-big { font-size: 1.1rem; }
  
  .level-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.4rem;
  }
  .level-row { padding: 0.4rem 0.5rem; }
  .lv-num-label { font-size: 0.7rem; }
  .lv-input { padding: 0.35rem 0.5rem; font-size: 0.8rem; min-height: 36px; }
  
  .admin-tabs {
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-tab {
    min-width: 60px;
    padding: 0.5rem 0.4rem;
    border-radius: 0.6rem;
  }
  .admin-tab .tab-icon {
    font-size: 1rem;
  }
  .admin-tab .tab-label {
    font-size: 0.6rem;
  }
  
  .history-filter { gap: 0.35rem; }
  .filter-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
    min-height: 36px;
  }
  
  .exp-summary { gap: 0.5rem; }
  .summary-card { padding: 0.75rem 0.5rem; }
  .summary-label { font-size: 0.65rem; }
  .summary-value { font-size: 1.1rem; }
  .summary-unit { font-size: 0.6rem; }
  
  .history-item { padding: 0.6rem; gap: 0.5rem; }
  .history-icon {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.9rem;
  }
  .history-title { font-size: 0.85rem; }
  .history-detail { font-size: 0.72rem; }
  .history-balance { font-size: 0.65rem; }
  .history-exp { font-size: 0.85rem; }
  .history-time { font-size: 0.65rem; }
  
  .history-delete-btn {
    opacity: 1;
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .toast {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    max-width: 90vw;
  }
  
  .panel-title { font-size: 1rem; }
  .panel-desc { font-size: 0.75rem; }
  
  .confirm-btn, .cancel-btn {
    min-height: 44px;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
  }
  
  .empty-card { padding: 1.5rem 1rem; }
  
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .stat-overview-card {
    padding: 0.875rem;
    gap: 0.625rem;
  }
  .overview-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    border-radius: 0.625rem;
  }
  .overview-value {
    font-size: 1.15rem;
  }
  .overview-label {
    font-size: 0.7rem;
  }
  
  .stats-row-2 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .heatmap-cell {
    border-radius: 0.5rem;
    font-size: 0.75rem;
  }
  .heatmap-day-label {
    font-size: 0.7rem;
  }
  .heatmap-date {
    font-size: 0.65rem;
  }
  
  .redeem-stats {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .redeem-stat-item {
    padding: 0.75rem;
  }
  
  .trend-bar {
    width: 10px;
  }
  
  .btn-icon-stats {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border-radius: 0.625rem;
  }
  
  .balance-item {
    padding: 1rem;
    gap: 0.75rem;
  }
  .balance-icon {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    border-radius: 0.75rem;
  }
  .balance-value {
    font-size: 1.25rem;
  }
  
  .convert-input-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .convert-arrow {
    transform: rotate(90deg);
  }
  .energy-convert-box {
    padding: 0.875rem;
  }
  
  .setting-input-wrap {
    flex-direction: column;
    align-items: flex-end;
  }
  .setting-input {
    width: 80px;
  }
}

@media (max-width: 380px) {
  .reward-grid { grid-template-columns: 1fr; }
  .exp-summary { grid-template-columns: 1fr; }
  .summary-card { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.75rem; text-align: left; }
  .summary-label { margin-bottom: 0; }
  .summary-value { font-size: 1rem; }
  .summary-unit { margin-top: 0; margin-left: auto; }
}

@media (hover: none) and (pointer: coarse) {
  .btn:hover { transform: none; }
  .task-card:hover { transform: none; }
  .btn:active { transform: scale(0.97); }
  .task-card:active { transform: scale(0.98); }
  .admin-item:active { background: rgba(15, 23, 42, 0.9); }
  -webkit-tap-highlight-color: transparent;
}

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

button {
  -webkit-appearance: none;
  appearance: none;
}

input, select, textarea {
  -webkit-appearance: none;
  appearance: none;
  font-size: 16px;
}

/* ===== 白天模式 ===== */
body[data-theme="light"] {
  color-scheme: light;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 25%, #fef9c3 50%, #ecfccb 75%, #d1fae5 100%);
  color: #1F2937;
}
body[data-theme="light"] .container { background: transparent; }

body[data-theme="light"] .floating-status {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 243, 199, 0.95));
  border: 1px solid rgba(217, 119, 6, 0.35);
  box-shadow: 
    0 8px 32px rgba(217, 119, 6, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 1px 0 rgba(255, 255, 255, 1) inset;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
}
body[data-theme="light"] .floating-pet {
  background: radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.1));
  border: 2px solid rgba(217, 119, 6, 0.35);
}
body[data-theme="light"] .floating-level { color: #92400E; text-shadow: 0 0 12px rgba(217, 119, 6, 0.3); }
body[data-theme="light"] .floating-level span { color: #78350F; }
body[data-theme="light"] .floating-exp-num { color: #6B7280; }
body[data-theme="light"] .floating-exp-num span { color: #D97706; }
body[data-theme="light"] .floating-exp-num span:first-child { color: #92400E; }
body[data-theme="light"] .floating-exp-bar { 
  background: rgba(217, 119, 6, 0.12); 
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.1) inset;
}
body[data-theme="light"] .floating-exp-fill {
  background: linear-gradient(90deg, #F59E0B, #FCD34D, #F59E0B);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

body[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  color: #1F2937;
}
body[data-theme="light"] .header h1 { color: #92400E; }
body[data-theme="light"] .header .subtitle { color: #A16207; }

body[data-theme="light"] .btn {
  background: rgba(255, 255, 255, 0.9);
  color: #1F2937;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
body[data-theme="light"] .btn:hover { background: #fff; border-color: rgba(0, 0, 0, 0.15); }
body[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: white;
  border: none;
}
body[data-theme="light"] .btn-primary:hover { filter: brightness(1.05); }

body[data-theme="light"] .btn-settings {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #D97706;
}
body[data-theme="light"] .btn-settings:hover {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), 0 0 40px rgba(245, 158, 11, 0.15);
  border-color: #F59E0B;
}

body[data-theme="light"] .level-ring-container svg circle:first-child { stroke: #E5E7EB; }
body[data-theme="light"] .level-ring-center { color: #92400E; }
body[data-theme="light"] .level-ring-center .lv-label { color: #D97706; }
body[data-theme="light"] .level-ring-center .lv-exp { color: #92400E; }

body[data-theme="light"] .pet-container {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}
body[data-theme="light"] .pet-name-text { color: #92400E; }
body[data-theme="light"] .pet-stage { background: rgba(245, 158, 11, 0.2); color: #D97706; }
body[data-theme="light"] .pet-level-badge { background: rgba(255, 255, 255, 0.9); color: #92400E; }
body[data-theme="light"] .pet-tip { color: #D97706; }

body[data-theme="light"] .exp-bar-track { background: #E5E7EB; }
body[data-theme="light"] .exp-bar-fill { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
body[data-theme="light"] .exp-bar-text { color: #92400E; }

body[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #1F2937;
}
body[data-theme="light"] .stat-label { color: #6B7280; }
body[data-theme="light"] .stat-big { color: #1F2937; }
body[data-theme="light"] .stat-unit { color: #9CA3AF; }

body[data-theme="light"] .section-title { color: #92400E; }

body[data-theme="light"] .task-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  color: #1F2937;
}
body[data-theme="light"] .task-card:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
body[data-theme="light"] .task-card .task-icon { background: rgba(245, 158, 11, 0.1); }
body[data-theme="light"] .task-card .task-icon.positive { background: rgba(16, 185, 129, 0.12); }
body[data-theme="light"] .task-card .task-icon.negative { background: rgba(244, 63, 94, 0.12); }
body[data-theme="light"] .task-name { color: #1F2937; }
body[data-theme="light"] .task-exp { color: #6B7280; }
body[data-theme="light"] .task-exp.positive { color: #059669; }
body[data-theme="light"] .task-exp.negative { color: #DC2626; }

body[data-theme="light"] .view-toggle {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
body[data-theme="light"] .view-btn {
  color: #92400E;
  opacity: 0.6;
}
body[data-theme="light"] .view-btn:hover {
  color: #D97706;
  background: rgba(245, 158, 11, 0.15);
  opacity: 1;
}
body[data-theme="light"] .view-btn.active {
  color: #D97706;
  background: rgba(245, 158, 11, 0.25);
  opacity: 1;
}

body[data-theme="light"] .task-list-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  color: #1F2937;
}
body[data-theme="light"] .task-list-item:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
body[data-theme="light"] .task-list-item .task-icon.positive { background: rgba(16, 185, 129, 0.12); }
body[data-theme="light"] .task-list-item .task-icon.negative { background: rgba(244, 63, 94, 0.12); }
body[data-theme="light"] .task-list-item .task-action.positive {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}
body[data-theme="light"] .task-list-item .task-action.negative {
  background: linear-gradient(135deg, #F43F5E, #E11D48);
  color: white;
}

body[data-theme="light"] .task-compact-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  color: #1F2937;
}
body[data-theme="light"] .task-compact-item .compact-icon.positive { background: rgba(16, 185, 129, 0.12); }
body[data-theme="light"] .task-compact-item .compact-icon.negative { background: rgba(244, 63, 94, 0.12); }
body[data-theme="light"] .task-compact-item .compact-btn.positive {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
  color: #059669;
}
body[data-theme="light"] .task-compact-item .compact-btn.positive:hover {
  background: rgba(16, 185, 129, 0.25);
}
body[data-theme="light"] .task-compact-item .compact-btn.negative {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(220, 38, 38, 0.1));
  color: #DC2626;
}
body[data-theme="light"] .task-compact-item .compact-btn.negative:hover {
  background: rgba(244, 63, 94, 0.25);
}

body[data-theme="light"] .task-matrix-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1), 0 2px 5px rgba(0, 0, 0, 0.05);
}
body[data-theme="light"] .task-matrix-btn.positive {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15), 0 2px 5px rgba(0, 0, 0, 0.05);
}
body[data-theme="light"] .task-matrix-btn.negative {
  border-color: rgba(244, 63, 94, 0.3);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.15), 0 2px 5px rgba(0, 0, 0, 0.05);
}
body[data-theme="light"] .task-matrix-btn:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2), 0 4px 10px rgba(0, 0, 0, 0.08);
}
body[data-theme="light"] .task-matrix-btn.positive:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25), 0 4px 10px rgba(0, 0, 0, 0.08);
}
body[data-theme="light"] .task-matrix-btn.negative:hover {
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.25), 0 4px 10px rgba(0, 0, 0, 0.08);
}
body[data-theme="light"] .task-matrix-name { color: #1F2937; }
body[data-theme="light"] .task-matrix-exp.positive { color: #059669; }
body[data-theme="light"] .task-matrix-exp.negative { color: #DC2626; }

body[data-theme="light"] .task-action {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}
body[data-theme="light"] .task-action.negative {
  background: linear-gradient(135deg, #F43F5E, #E11D48);
  color: white;
}

body[data-theme="light"] .section-add-btn {
  color: #D97706;
  background: rgba(245, 158, 11, 0.1);
}

body[data-theme="light"] .btn-positive.btn-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
  border: 2px solid rgba(16, 185, 129, 0.35);
  color: #059669;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
}
body[data-theme="light"] .btn-positive.btn-icon:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.2));
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  color: #047857;
}
body[data-theme="light"] .btn-negative.btn-icon {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(220, 38, 38, 0.1));
  border: 2px solid rgba(244, 63, 94, 0.35);
  color: #DC2626;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.15);
}
body[data-theme="light"] .btn-negative.btn-icon:hover {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(220, 38, 38, 0.2));
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
  color: #B91C1C;
}

body[data-theme="light"] .reward-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  color: #1F2937;
}
body[data-theme="light"] .reward-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}
body[data-theme="light"] .reward-name { color: #1F2937; }
body[data-theme="light"] .reward-condition { color: #6B7280; }
body[data-theme="light"] .reward-card.locked .reward-name { color: #9CA3AF; }
body[data-theme="light"] .reward-card.locked .reward-icon { filter: grayscale(0.7) opacity(0.5); }
body[data-theme="light"] .reward-card.redeemed { opacity: 0.6; }

body[data-theme="light"] .reward-redeem-btn {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: white;
}
body[data-theme="light"] .reward-redeem-btn.redeemed {
  background: #9CA3AF;
  color: white;
}
body[data-theme="light"] .reward-redeem-btn.locked {
  background: #E5E7EB;
  color: #6B7280;
}

body[data-theme="light"] .modal-overlay { background: rgba(0, 0, 0, 0.4); }
body[data-theme="light"] .modal-content {
  background: #fff;
  color: #1F2937;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
body[data-theme="light"] .modal-header h2 { color: #1F2937; }
body[data-theme="light"] .modal-close { color: #6B7280; }
body[data-theme="light"] .modal-close:hover { color: #1F2937; background: #F3F4F6; }

body[data-theme="light"] .form-label { color: #374151; }
body[data-theme="light"] .form-input {
  background: #F9FAFB;
  color: #1F2937;
  border: 1px solid #D1D5DB;
}
body[data-theme="light"] .form-input:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
body[data-theme="light"] .form-input::placeholder { color: #9CA3AF; }

body[data-theme="light"] .type-toggle {
  background: #F3F4F6;
}
body[data-theme="light"] .type-toggle button { color: #6B7280; }
body[data-theme="light"] .type-toggle button:not(.active):hover { background: #E5E7EB; }
body[data-theme="light"] .type-toggle button.active.positive { background: #10B981; color: white; }
body[data-theme="light"] .type-toggle button.active.negative { background: #F43F5E; color: white; }
body[data-theme="light"] .type-toggle button.active.gold { background: #F59E0B; color: white; }

body[data-theme="light"] .icon-grid button {
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
}
body[data-theme="light"] .icon-grid button:hover { background: #E5E7EB; }
body[data-theme="light"] .icon-grid button.active {
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 0 2px #F59E0B;
}

body[data-theme="light"] .icon-group-tabs {
  border-bottom-color: #E5E7EB;
}
body[data-theme="light"] .icon-group-tab {
  background: #F9FAFB;
  color: #6B7280;
}
body[data-theme="light"] .icon-group-tab:hover {
  color: #1F2937;
  background: #F3F4F6;
}
body[data-theme="light"] .icon-group-tab.active {
  background: rgba(245, 158, 11, 0.15);
  color: #D97706;
}

body[data-theme="light"] .form-submit {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
body[data-theme="light"] .form-submit:hover { filter: brightness(1.05); }

body[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.95);
  color: #1F2937;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
body[data-theme="light"] .toast.positive { border-color: rgba(16, 185, 129, 0.3); color: #1F2937; }
body[data-theme="light"] .toast.negative { border-color: rgba(244, 63, 94, 0.3); color: #1F2937; }
body[data-theme="light"] .toast.gold { border-color: rgba(245, 158, 11, 0.3); color: #1F2937; }

body[data-theme="light"] .confirm-title { color: #1F2937; }
body[data-theme="light"] .confirm-desc { color: #6B7280; }
body[data-theme="light"] .confirm-btn {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: white;
}
body[data-theme="light"] .cancel-btn {
  background: #F3F4F6;
  color: #6B7280;
  border: 1px solid #E5E7EB;
}

body[data-theme="light"] .admin-tabs {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
body[data-theme="light"] .admin-tab {
  background: rgba(255, 255, 255, 0.6);
  color: #6B7280;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
body[data-theme="light"] .admin-tab:hover { 
  color: #1F2937; 
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(217, 119, 6, 0.2);
}
body[data-theme="light"] .admin-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.15));
  color: #92400E;
  border-color: rgba(217, 119, 6, 0.4);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}
body[data-theme="light"] .admin-tab::before {
  background: radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.15), transparent 70%);
}

body[data-theme="light"] .panel-title { color: #92400E; }
body[data-theme="light"] .panel-desc { color: #D97706; }

body[data-theme="light"] .setting-row {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
}
body[data-theme="light"] .setting-row:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(217, 119, 6, 0.2);
}
body[data-theme="light"] .setting-name { color: #1F2937; }
body[data-theme="light"] .setting-desc { color: #6B7280; }
body[data-theme="light"] .setting-icon {
  background: rgba(245, 158, 11, 0.1);
}
body[data-theme="light"] .theme-toggle-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(249, 115, 22, 0.1));
  border-color: rgba(217, 119, 6, 0.35);
  color: #92400E;
}
body[data-theme="light"] .theme-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(249, 115, 22, 0.2));
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

body[data-theme="light"] .generate-form {
  background: rgba(249, 250, 251, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .mode-toggle {
  background: #F3F4F6;
}
body[data-theme="light"] .mode-toggle button { color: #6B7280; }
body[data-theme="light"] .mode-toggle button.active {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: white;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

body[data-theme="light"] .level-preview {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}
body[data-theme="light"] .preview-label { color: #D97706; }
body[data-theme="light"] .preview-item { color: #6B7280; }
body[data-theme="light"] .preview-item b { color: #1F2937; }
body[data-theme="light"] .preview-more { color: #9CA3AF; }

body[data-theme="light"] .level-row {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
body[data-theme="light"] .lv-num-label { color: #D97706; }
body[data-theme="light"] .lv-input {
  background: #fff;
  color: #1F2937;
  border: 1px solid #E5E7EB;
}
body[data-theme="light"] .lv-input:focus { border-color: #F59E0B; }
body[data-theme="light"] .lv-exp-label { color: #9CA3AF; }

body[data-theme="light"] .admin-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #1F2937;
}
body[data-theme="light"] .admin-item-name { color: #1F2937; }
body[data-theme="light"] .admin-item-info { color: #6B7280; }
body[data-theme="light"] .admin-action-btn {
  background: #F3F4F6;
  color: #4B5563;
  border: 1px solid #E5E7EB;
}
body[data-theme="light"] .admin-action-btn:hover { background: #E5E7EB; color: #1F2937; }
body[data-theme="light"] .admin-action-btn.danger:hover {
  background: rgba(244, 63, 94, 0.1);
  color: #DC2626;
}

body[data-theme="light"] .exp-summary .summary-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #1F2937;
}
body[data-theme="light"] .summary-card.positive {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}
body[data-theme="light"] .summary-card.negative {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}
body[data-theme="light"] .summary-label { color: #6B7280; }
body[data-theme="light"] .summary-card.positive .summary-value { color: #059669; }
body[data-theme="light"] .summary-card.negative .summary-value { color: #DC2626; }
body[data-theme="light"] .summary-unit { color: #9CA3AF; }

body[data-theme="light"] .history-filter .filter-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #6B7280;
}
body[data-theme="light"] .filter-btn:hover {
  border-color: rgba(0, 0, 0, 0.15);
  color: #1F2937;
}
body[data-theme="light"] .filter-btn.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #D97706;
}

body[data-theme="light"] .history-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #1F2937;
}
body[data-theme="light"] .history-icon.positive { background: rgba(16, 185, 129, 0.15); color: #059669; }
body[data-theme="light"] .history-icon.negative { background: rgba(239, 68, 68, 0.15); color: #DC2626; }
body[data-theme="light"] .history-icon.gold { background: rgba(245, 158, 11, 0.15); color: #D97706; }
body[data-theme="light"] .history-title { color: #1F2937; }
body[data-theme="light"] .history-detail { color: #6B7280; }
body[data-theme="light"] .history-balance { color: #9CA3AF; }
body[data-theme="light"] .history-exp.positive { color: #059669; }
body[data-theme="light"] .history-exp.negative { color: #DC2626; }
body[data-theme="light"] .history-time { color: #9CA3AF; }
body[data-theme="light"] .history-delete-btn {
  background: rgba(239, 68, 68, 0.08);
  color: #F87171;
}
body[data-theme="light"] .history-delete-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #DC2626;
}

body[data-theme="light"] .back-btn {
  background: rgba(255, 255, 255, 0.8);
  color: #6B7280;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
body[data-theme="light"] .back-btn:hover { color: #1F2937; background: #fff; }

body[data-theme="light"] .back-btn-icon {
  background: #fff !important;
  color: #92400E !important;
  border: 1px solid rgba(217, 119, 6, 0.3) !important;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.1) !important;
}
body[data-theme="light"] .back-btn-icon:hover {
  background: #FFFBEB !important;
  color: #78350F !important;
  border-color: rgba(217, 119, 6, 0.5) !important;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2) !important;
  transform: translateX(-3px) !important;
}

body[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #F59E0B, #EA580C) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
  font-weight: 600 !important;
  position: relative !important;
  overflow: hidden !important;
}
body[data-theme="light"] .btn-primary:hover {
  filter: brightness(1.05) !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45) !important;
  transform: translateY(-1px) !important;
}
body[data-theme="light"] .btn-primary:active {
  transform: translateY(0) scale(0.98) !important;
}

body[data-theme="light"] .danger-zone {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.05);
  color: #1F2937;
}
body[data-theme="light"] .danger-title { color: #DC2626; }
body[data-theme="light"] .danger-desc { color: #6B7280; }

body[data-theme="light"] .empty-card {
  background: rgba(255, 255, 255, 0.6);
  color: #9CA3AF;
}

body[data-theme="light"] .sparkle {
  color: #F59E0B;
  animation: sparkle 2s ease-in-out infinite;
}

body[data-theme="light"] ::-webkit-scrollbar-track { background: #F3F4F6; }
body[data-theme="light"] ::-webkit-scrollbar-thumb { background: #D1D5DB; }
body[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* 删除按钮白天模式 */
body[data-theme="light"] .history-delete-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

body[data-theme="light"] .stat-overview-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
body[data-theme="light"] .overview-value { color: #1F2937; }
body[data-theme="light"] .overview-value.positive { color: #059669; }
body[data-theme="light"] .overview-value.negative { color: #DC2626; }
body[data-theme="light"] .overview-value.gold { color: #D97706; }
body[data-theme="light"] .overview-value.streak { color: #EA580C; }
body[data-theme="light"] .overview-label { color: #6B7280; }
body[data-theme="light"] .overview-icon.gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.1));
}
body[data-theme="light"] .overview-icon.positive {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 184, 166, 0.1));
}
body[data-theme="light"] .overview-icon.negative {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(248, 113, 113, 0.1));
}
body[data-theme="light"] .overview-icon.streak {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(251, 146, 60, 0.1));
}

body[data-theme="light"] .heatmap-day-label { color: #6B7280; }
body[data-theme="light"] .heatmap-empty {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: #D1D5DB;
}
body[data-theme="light"] .heatmap-very-low {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(20, 184, 166, 0.08));
  border-color: rgba(16, 185, 129, 0.25);
  color: #059669;
}
body[data-theme="light"] .heatmap-low {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(20, 184, 166, 0.12));
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
}
body[data-theme="light"] .heatmap-med {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(20, 184, 166, 0.25));
  border-color: rgba(16, 185, 129, 0.45);
  color: #065F46;
}
body[data-theme="light"] .heatmap-high {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(20, 184, 166, 0.4));
  border-color: rgba(16, 185, 129, 0.55);
  color: #064E3B;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}
body[data-theme="light"] .heatmap-date { color: #9CA3AF; }

body[data-theme="light"] .task-rank-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
body[data-theme="light"] .task-rank-item:hover { background: #fff; }
body[data-theme="light"] .rank-name { color: #1F2937; }
body[data-theme="light"] .rank-sub { color: #6B7280; }

body[data-theme="light"] .type-bar-wrap {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
body[data-theme="light"] .legend-item { color: #6B7280; }
body[data-theme="light"] .legend-val { color: #1F2937; }

body[data-theme="light"] .trend-day { color: #9CA3AF; }

body[data-theme="light"] .redeem-stat-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
body[data-theme="light"] .redeem-icon {
  background: rgba(245, 158, 11, 0.1);
}
body[data-theme="light"] .redeem-icon.gold {
  background: rgba(16, 185, 129, 0.1);
}
body[data-theme="light"] .redeem-value { color: #1F2937; }
body[data-theme="light"] .redeem-value.gold { color: #059669; }
body[data-theme="light"] .redeem-label { color: #6B7280; }

body[data-theme="light"] .btn-icon-stats {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
body[data-theme="light"] .btn-icon-stats:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

body[data-theme="light"] .setting-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1F2937;
}
body[data-theme="light"] .setting-input:focus {
  border-color: rgba(249, 115, 22, 0.5);
}

body[data-theme="light"] .energy-convert-box {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.06);
}
body[data-theme="light"] .convert-input-group .convert-input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1F2937;
}
body[data-theme="light"] .convert-input-group .convert-result {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: #D97706;
}
body[data-theme="light"] .quick-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #6B7280;
}
body[data-theme="light"] .quick-btn:hover {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: #EA580C;
}

body[data-theme="light"] .balance-item {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(249, 115, 22, 0.04));
  border-color: rgba(245, 158, 11, 0.2);
}
body[data-theme="light"] .balance-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.12));
}
body[data-theme="light"] .balance-label { color: #6B7280; }
body[data-theme="light"] .balance-value { color: #D97706; }

body[data-theme="light"] .btn-outline {
  border-color: rgba(245, 158, 11, 0.4);
  color: #D97706;
}
body[data-theme="light"] .btn-outline:hover {
  background: rgba(245, 158, 11, 0.1);
}

body[data-theme="light"] .stat-big.energy {
  background: linear-gradient(135deg, #D97706, #EA580C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body[data-theme="light"] .reward-card.energy-type {
  border-color: rgba(245, 158, 11, 0.3);
}
body[data-theme="light"] .reward-card.energy-type.available {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.12);
}
