/* 自定义样式 */

/* 开关按钮样式 */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #6366f1;
}

input:focus + .slider {
  box-shadow: 0 0 1px #6366f1;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* 任务优先级标签颜色 */
.priority-high {
  background-color: rgba(239, 68, 68, 0.1);
  color: rgb(185, 28, 28);
}

.dark .priority-high {
  background-color: rgba(239, 68, 68, 0.2);
  color: rgb(248, 113, 113);
}

.priority-medium {
  background-color: rgba(245, 158, 11, 0.1);
  color: rgb(180, 83, 9);
}

.dark .priority-medium {
  background-color: rgba(245, 158, 11, 0.2);
  color: rgb(251, 191, 36);
}

.priority-low {
  background-color: rgba(16, 185, 129, 0.1);
  color: rgb(4, 120, 87);
}

.dark .priority-low {
  background-color: rgba(16, 185, 129, 0.2);
  color: rgb(52, 211, 153);
}

/* 任务完成样式 */
.task-completed h3 {
  text-decoration: line-through;
  color: #9ca3af;
}

.dark .task-completed h3 {
  color: #6b7280;
}

/* 动画效果 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 按钮动画效果 */
button {
  transition: all 0.2s ease-in-out !important;
  position: relative;
  overflow: hidden;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* 点击涟漪效果 */
button::after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}

button:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* 主要按钮特殊效果 */
button.bg-indigo-600:hover {
  background-color: #4f46e5 !important;
  box-shadow: 0 4px 12px -1px rgba(79, 70, 229, 0.4), 0 2px 6px -1px rgba(79, 70, 229, 0.3);
}

button.bg-indigo-600:active {
  background-color: #4338ca !important;
  box-shadow: none;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.dark ::-webkit-scrollbar-track {
  background: #374151;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #4b5563;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* 过渡效果 */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s;
}
.fade-enter, .fade-leave-to {
  opacity: 0;
}

/* 任务列表项悬停效果 */
.task-item {
  transition: transform 0.2s, box-shadow 0.2s;
}

.task-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .task-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.12);
}

/* 确保圆形进度条动画平滑 */
#timer-progress {
  transition: stroke-dashoffset 1s linear;
}

/* 焦点样式 */
.focus-visible:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* 修复右侧边栏高度对齐问题 */
.grid.lg\\:grid-cols-3 {
  align-items: stretch;
}

.grid.lg\\:grid-cols-3 > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 确保右侧面板填充完整高度 */
.space-y-4.md\\:space-y-6.flex.flex-col.h-full {
  min-height: 100%;
}

/* 任务列表容器优化 */
#task-list {
  min-height: 200px;
}

/* 确保任务管理区域能够扩展 */
.bg-white.dark\\:bg-gray-800.rounded-2xl.shadow-lg.flex-1.flex.flex-col {
  min-height: 300px;
}

/* 语言选择器标志图标 */
.flag-icon {
  font-size: 1.2rem;
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
  /* 计时器部分移动端优化 */
  #timer {
    padding: 1rem 0;
    min-height: auto;
  }
  
  /* 主标题区域 */
  .text-center.mb-8 {
    margin-bottom: 1.5rem;
  }
  
  .text-3xl.md\:text-5xl {
    font-size: 2rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .text-lg.md\:text-xl {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* 特性标签移动端优化 */
  .flex.justify-center.items-center.space-x-6 {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  .flex.justify-center.items-center.space-x-6 > div {
    margin: 0;
  }
  
  /* 主要功能区域 */
  .grid.lg\:grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  /* 计时器组件 */
  .lg\:col-span-2 {
    padding: 1.5rem;
    min-width: auto !important;
    width: 100% !important;
  }
  
  /* 计时器标题 */
  .text-2xl.md\:text-3xl {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* 计时器圆环 */
  .relative.w-64.h-64.md\:w-80.md\:h-80 {
    width: 200px !important;
    height: 200px !important;
    min-width: auto !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }
  
  /* 计时器显示 */
  #timer-display {
    font-size: 2rem !important;
  }
  
  #session-count {
    top: calc(50% + 1.2rem) !important;
  }
  
  /* 控制按钮 */
  .flex.justify-center.space-x-4.mb-6 {
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-width: auto !important;
  }
  
  .flex.justify-center.space-x-4.mb-6 button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: auto !important;
  }
  
  /* 会话类型选择器 */
  .flex.justify-center.space-x-2 {
    gap: 0.25rem;
    min-width: auto !important;
  }
  
  .flex.justify-center.space-x-2 button {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    min-width: auto !important;
  }
  
  /* 统计面板 */
  .space-y-6 {
    gap: 1rem;
    min-width: auto !important;
  }
  
  .space-y-6 > div {
    padding: 1rem;
    min-width: auto !important;
  }
  
  /* 统计标题 */
  .text-xl.font-bold {
    font-size: 1.125rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* 统计网格 */
  .grid.grid-cols-2.gap-4 {
    gap: 0.5rem;
    min-width: auto !important;
  }
  
  .grid.grid-cols-2.gap-4 > div {
    padding: 0.75rem;
    min-width: auto !important;
  }
  
  .grid.grid-cols-2.gap-4 .text-2xl {
    font-size: 1.25rem !important;
  }
  
  .grid.grid-cols-2.gap-4 .text-sm {
    font-size: 0.75rem !important;
  }
  
  /* 快速操作栏 */
  .flex.flex-wrap.justify-center.gap-4 {
    gap: 0.5rem;
    min-width: auto !important;
  }
  
  .flex.flex-wrap.justify-center.gap-4 button {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    min-width: auto !important;
  }
  
  /* 任务管理部分 */
  #task-form {
    padding: 0.75rem;
    min-width: auto !important;
  }
  
  #task-form input,
  #task-form select {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    min-width: auto !important;
  }
  
  #task-form .flex.gap-2 {
    gap: 0.5rem;
    min-width: auto !important;
  }
  
  #task-form .w-28 {
    width: 5rem;
    min-width: auto !important;
  }
  
  /* 任务列表 */
  #task-list {
    max-height: 200px;
    min-width: auto !important;
  }
  
  /* 本周进度条 */
  .flex.justify-between.items-center.mb-2 span {
    font-size: 0.75rem;
  }

  /* 全局移除最小宽度限制 */
  * {
    min-width: auto !important;
  }
}

/* 超小屏幕优化 (iPhone SE等) */
@media (max-width: 375px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .relative.w-64.h-64.md\:w-80.md\:h-80 {
    width: 180px !important;
    height: 180px !important;
  }
  
  #timer-display {
    font-size: 1.75rem !important;
  }
  
  #session-count {
    top: calc(50% + 1rem) !important;
    font-size: 0.7rem !important;
  }
  
  .flex.justify-center.space-x-4.mb-6 button {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .flex.justify-center.space-x-2 button {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
  }
  
  .grid.grid-cols-2.gap-4 .text-2xl {
    font-size: 1rem !important;
  }
  
  .flex.flex-wrap.justify-center.gap-4 button {
    padding: 0.375rem 0.5rem;
    font-size: 0.625rem;
  }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
  #timer {
    padding: 0.5rem 0;
  }
  
  .text-center.mb-8 {
    margin-bottom: 1rem;
  }
  
  .relative.w-64.h-64.md\:w-80.md\:h-80 {
    width: 150px !important;
    height: 150px !important;
  }
  
  #timer-display {
    font-size: 2rem !important;
  }
  
  .flex.justify-center.mb-8 {
    margin-bottom: 1rem;
  }
  
  .flex.justify-center.space-x-4.mb-6 {
    margin-bottom: 0.5rem;
  }
}

/* 确保设置面板在移动设备上有足够的间距 */
@media (max-width: 640px) {
  #settings-panel .bg-white,
  #language-panel .bg-white {
    margin: 1rem;
  }
  
  .timer-display {
    font-size: 2.5rem;
  }
  
  .session-count {
    font-size: 0.75rem;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes scaleOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.9); }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

.animate-fadeOut {
  animation: fadeOut 0.3s ease-out;
}

.animate-scaleIn {
  animation: scaleIn 0.3s ease-out;
}

.animate-scaleOut {
  animation: scaleOut 0.3s ease-out;
}

/* 通知样式 */
.notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-popup {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.dark .notification-popup {
  background: #1f2937;
  color: white;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  25% {
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 30px rgba(99, 102, 241, 0.6);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* 渐变文字效果 */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 通知样式增强 */
.notification-backdrop {
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.3);
}

.notification-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .notification-card {
  background: rgba(31, 41, 55, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-icon-ring {
  animation: rotate 2s linear infinite;
}

.notification-icon-pulse {
  animation: heartbeat 1.5s ease-in-out infinite;
}

.notification-glow {
  animation: glow 2s ease-in-out infinite;
}

/* 按钮样式增强 */
.btn-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* 移动端通知样式 */
@media (max-width: 640px) {
  .notification-card {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .notification-icon-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .notification-title {
    font-size: 1.25rem;
  }
  
  .notification-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .notification-buttons button {
    width: 100%;
  }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
  /* 移动设备触摸优化 */
  button {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* 禁用hover效果 */
  button:hover {
    transform: none;
    box-shadow: none;
  }
  
  /* 增强触摸反馈 */
  button:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
  
  /* 任务项触摸优化 */
  .task-item:hover {
    transform: none;
    box-shadow: none;
  }
  
  .task-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* 防止文本选择 */
.select-none {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 移动端滚动优化 */
@media (max-width: 768px) {
  .overflow-y-auto {
    -webkit-overflow-scrolling: touch;
  }
  
  /* 防止过度滚动 */
  body {
    overscroll-behavior: contain;
  }
  
  /* 移动端布局一致性修复 - 全局容器设置 */
  .container, .max-w-6xl, .max-w-7xl, section .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* 确保导航栏宽度一致 */
  header nav.container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* 确保所有section有一致的容器宽度 */
  section > .container > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* 确保核心功能区与其他区域宽度一致 */
  #timer .container .max-w-6xl {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* 确保卡片内容边距一致 */
  .bg-white.dark\:bg-gray-800.rounded-2xl {
    padding: 1rem !important;
  }
  
  /* 修复顶部导航栏与内容区域宽度不一致问题 */
  header .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* 修复页脚宽度一致性 */
  footer .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* 确保所有内容区块宽度一致 */
  .grid.lg\:grid-cols-3 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* 超小屏幕额外优化 */
@media (max-width: 375px) {
  .container, .max-w-6xl, .max-w-7xl, header nav.container, section .container, footer .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* 添加全局容器样式覆盖 */
@media (max-width: 768px) {
  /* 确保所有容器宽度一致 */
  .mx-auto {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* 移除不必要的内边距 */
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* 强制移除所有最小宽度限制 */
  div, section, header, footer, main, aside, 
  .container, .max-w-6xl, .max-w-7xl, 
  #timer, #timer-container, #timer-controls,
  .timer-section, .timer-wrapper, .timer-inner,
  .lg\:col-span-2, .col-span-1, .col-span-2, .col-span-3,
  .grid, .flex, .block, .inline-block, .inline-flex {
    min-width: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 确保按钮和输入框不被上面的规则影响 */
  button, input, select, textarea {
    width: auto !important;
    max-width: 100% !important;
  }

  /* 确保固定宽度的元素可以缩放 */
  [class*="w-"], [style*="width"] {
    min-width: auto !important;
    max-width: 100% !important;
  }
  
  /* 确保计时器数字正确居中 */
  #timer-display {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -60%) !important;
    width: auto !important;
    max-width: 80% !important;
  }
  
  /* 修复通知弹窗样式 */
  .notification-card, 
  .notification-popup,
  .notification-backdrop {
    width: 90% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }
  
  .notification-buttons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
  }
  
  .notification-buttons button {
    min-width: 80px !important;
    width: auto !important;
  }
}

/* 超小屏幕额外优化 */
@media (max-width: 375px) {
  .container, .max-w-6xl, .max-w-7xl, header nav.container, section .container, footer .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* 添加全局容器样式覆盖 */
@media (max-width: 768px) {
  /* 确保所有容器宽度一致 */
  .mx-auto {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* 移除不必要的内边距 */
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* 强制移除所有最小宽度限制 */
  div, section, header, footer, main, aside, 
  .container, .max-w-6xl, .max-w-7xl, 
  #timer, #timer-container, #timer-controls,
  .timer-section, .timer-wrapper, .timer-inner,
  .lg\:col-span-2, .col-span-1, .col-span-2, .col-span-3,
  .grid, .flex, .block, .inline-block, .inline-flex {
    min-width: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 确保按钮和输入框不被上面的规则影响 */
  button, input, select, textarea {
    width: auto !important;
    max-width: 100% !important;
  }

  /* 确保固定宽度的元素可以缩放 */
  [class*="w-"], [style*="width"] {
    min-width: auto !important;
    max-width: 100% !important;
  }
}

/* 修复通知弹窗样式 */
.notification-card, 
.notification-popup,
.notification-backdrop {
  width: 90% !important;
  max-width: 400px !important;
  margin: 0 auto !important;
}

.notification-buttons {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  margin-top: 1rem !important;
}

.notification-buttons button {
  min-width: 80px !important;
  width: auto !important;
}

/* 移动端通知弹窗修复 */
@media (max-width: 768px) {
  /* 确保弹窗内容正确显示 */
  .fixed.inset-0.bg-gradient-to-br,
  .fixed.inset-0.bg-black {
    padding: 1rem !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* 修复弹窗容器 */
  .relative.bg-white.dark\:bg-gray-900.rounded-3xl,
  .bg-white.dark\:bg-gray-900.rounded-3xl {
    width: 90% !important;
    max-width: 350px !important;
    padding: 1.5rem !important;
    margin: 0 auto !important;
  }
  
  /* 修复图标容器 */
  .flex.justify-center.mb-6 {
    margin-bottom: 1rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* 确保图标为圆形且不被拉伸 */
  .relative.w-24.h-24.rounded-full,
  div[style*="width: 80px"][style*="height: 80px"],
  div[style*="width:80px"][style*="height:80px"] {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    border-radius: 50% !important;
    aspect-ratio: 1/1 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* 修复图标内部SVG */
  .relative.w-24.h-24.rounded-full svg,
  div[style*="width: 80px"] svg,
  div[style*="width:80px"] svg {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }
  
  /* 修复标题样式 */
  .text-3xl.font-bold.text-center.mb-2 {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* 修复副标题样式 */
  .text-xl.font-semibold.text-center.text-gray-800.dark\:text-white.mb-4 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* 修复消息文本样式 */
  .text-center.text-gray-600.dark\:text-gray-300.text-lg.leading-relaxed.mb-8 {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* 修复统计数据容器 */
  .flex.justify-center.gap-6.mb-8 {
    gap: 2rem !important;
    margin-bottom: 1rem !important;
    justify-content: center !important;
  }
  
  /* 修复统计数据项 */
  .text-center {
    text-align: center !important;
  }
  
  /* 修复统计数据数字 */
  .text-2xl.font-bold.text-indigo-600,
  .text-2xl.font-bold.text-green-600,
  div[style*="color: #6366f1"],
  div[style*="color: #10b981"],
  div[style*="color:#6366f1"],
  div[style*="color:#10b981"] {
    font-size: 1.25rem !important;
  }
  
  /* 修复统计数据标签 */
  .text-sm.text-gray-500.dark\:text-gray-400 {
    font-size: 0.75rem !important;
  }
  
  /* 修复按钮容器 */
  .flex.justify-center {
    justify-content: center !important;
    margin-top: 1rem !important;
  }
  
  /* 修复按钮样式 */
  .px-8.py-3.bg-gradient-to-r,
  button[style*="background-color: #6366f1"],
  button[style*="background-color: #10b981"],
  button[style*="backgroundColor: #6366f1"],
  button[style*="backgroundColor: #10b981"] {
    padding: 0.5rem 1.5rem !important;
    font-size: 0.875rem !important;
    width: auto !important;
    min-width: 120px !important;
  }
  
  /* 超小屏幕额外优化 */
  @media (max-width: 375px) {
    /* 更小屏幕上的弹窗调整 */
    .relative.bg-white.dark\:bg-gray-900.rounded-3xl,
    .bg-white.dark\:bg-gray-900.rounded-3xl {
      padding: 1rem !important;
    }
    
    /* 更小的图标 */
    .relative.w-24.h-24.rounded-full,
    div[style*="width: 80px"][style*="height: 80px"],
    div[style*="width:80px"][style*="height:80px"] {
      width: 60px !important;
      height: 60px !important;
      min-width: 60px !important;
      min-height: 60px !important;
      max-width: 60px !important;
      max-height: 60px !important;
    }
    
    /* 更小的图标内部SVG */
    .relative.w-24.h-24.rounded-full svg,
    div[style*="width: 80px"] svg,
    div[style*="width:80px"] svg,
    div[style*="width: 60px"] svg,
    div[style*="width:60px"] svg {
      width: 30px !important;
      height: 30px !important;
      min-width: 30px !important;
      min-height: 30px !important;
      max-width: 30px !important;
      max-height: 30px !important;
    }
    
    /* 调整统计数据间距 */
    .flex.justify-center.gap-6.mb-8 {
      gap: 1.5rem !important;
    }
  }
}

/* 计时器显示 */
#timer-display {
  font-size: 2.5rem !important;
  min-width: auto !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -60%) !important; /* 向上偏移一点，视觉上更居中 */
  text-align: center !important;
  width: auto !important;
  max-width: 80% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

#session-count {
  font-size: 0.75rem !important;
  margin-top: 0 !important;
  min-width: auto !important;
  position: absolute !important;
  top: calc(50% + 1.5rem) !important; /* 调整位置，使视觉上更平衡 */
  left: 50% !important;
  transform: translateX(-50%) !important;
  text-align: center !important;
  width: auto !important;
  line-height: 1 !important;
}

/* 确保计时器内容居中 - 中等屏幕 */
@media (max-width: 768px) {
  #timer-display {
    font-size: 2rem !important;
  }
  
  #session-count {
    top: calc(50% + 1.2rem) !important;
  }
}

/* 超小屏幕额外优化 */
@media (max-width: 375px) {
  #timer-display {
    font-size: 1.75rem !important;
  }
  
  #session-count {
    top: calc(50% + 1rem) !important;
    font-size: 0.7rem !important;
  }
}