/* 界面美化增强 - 仅修改视觉效果，不改变功能 */

/* 全局优化 */
body {
  background: linear-gradient(180deg, #f8f9ff 0%, #f0f2f8 100%) !important;
  background-attachment: fixed;
}

/* 标题美化 */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: -16px -16px 20px -16px !important;
  padding: 24px 16px !important;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

h1 {
  color: white !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.date {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 14px !important;
}

.mute-mini {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  backdrop-filter: blur(10px);
}

/* 组员选择器美化 */
.member-picker {
  background: white !important;
  border-radius: 16px !important;
  padding: 16px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.member-picker select {
  border: 2px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 14px 36px 14px 14px !important;
  font-weight: 500;
  transition: all 0.2s;
}

.member-picker select:focus {
  border-color: #667eea !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 间隔卡片美化 */
.interval-card {
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25) !important;
  backdrop-filter: blur(10px);
}

/* 动作按钮美化 */
.action-btn {
  background: white !important;
  border: 2px solid #f0f2f8 !important;
  border-radius: 16px !important;
  padding: 16px 14px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.action-btn:hover {
  border-color: #667eea !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25) !important;
}

.action-btn:active {
  transform: translateY(-2px) scale(0.98) !important;
}

.action-btn .ab-icon {
  font-size: 32px !important;
}

.action-btn .ab-count {
  font-size: 20px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 小休按钮美化 */
.rest-card {
  border-radius: 20px !important;
  padding: 20px 22px !important;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.rest-card:hover:not(.cooldown):not(.resting) {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.4) !important;
}

.rest-card .rc-icon {
  font-size: 42px !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 宠物盒子美化 */
.pet-box {
  background: white !important;
  border-radius: 20px !important;
  padding: 18px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  border: 2px solid rgba(102, 126, 234, 0.1) !important;
  transition: all 0.3s !important;
}

.pet-box:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 28px rgba(102, 126, 234, 0.2) !important;
  border-color: rgba(102, 126, 234, 0.3) !important;
}

.pet-box .pet-stage {
  border-radius: 16px !important;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2f8 100%) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.pet-box .pet-name {
  font-size: 16px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pet-box .pet-bar {
  background: #e5e7eb !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pet-box .pet-bar-fill {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 1px 4px rgba(102, 126, 234, 0.5);
}

/* 统计卡片美化 */
.my-stats {
  background: white !important;
  border-radius: 20px !important;
  padding: 20px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  border: 2px solid rgba(102, 126, 234, 0.1) !important;
}

.my-stats h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #374151 !important;
  margin-bottom: 16px !important;
}

.stat-card {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2f8 100%) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  border: 1px solid rgba(102, 126, 234, 0.1) !important;
  transition: all 0.2s !important;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.stat-card .sc-value {
  font-size: 28px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 撤销按钮美化 */
.undo-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.undo-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4) !important;
}

.undo-btn:active {
  transform: translateY(-1px) scale(0.98) !important;
}

/* Toast 美化 */
.toast {
  border-radius: 14px !important;
  padding: 14px 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.5) !important;
  backdrop-filter: blur(10px);
}

.toast.error {
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.5) !important;
}

/* 经验值弹出美化 */
.pet-exp-pop {
  font-weight: 800 !important;
  font-size: 18px !important;
  text-shadow: 0 2px 8px rgba(16, 185, 129, 0.6) !important;
}

/* 升级 Toast 美化 */
.levelup-toast {
  border-radius: 16px !important;
  padding: 20px 28px !important;
  box-shadow: 0 12px 48px rgba(251, 191, 36, 0.6) !important;
  backdrop-filter: blur(10px);
}

.levelup-pet {
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.5) !important;
}

/* 页面间隔优化 */
.actions {
  margin-bottom: 20px !important;
}

.pet-box {
  margin-bottom: 20px !important;
}

.my-stats {
  margin-bottom: 20px !important;
}

/* 添加微妙的脉冲效果 */
@keyframes gentle-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
  }
  50% {
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.35);
  }
}

.action-btn:hover {
  animation: gentle-pulse 2s infinite;
}

/* 渐变边框效果 */
.member-picker::before,
.pet-box::before,
.my-stats::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}

.member-picker,
.pet-box,
.my-stats {
  position: relative;
}

.member-picker:hover::before,
.pet-box:hover::before,
.my-stats:hover::before {
  opacity: 0.15;
}
