    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    /* ==================== 主题变量 ==================== */
    :root {
      /* Apple iOS Design System Colors */
      --primary: #007AFF; /* iOS Blue */
      --primary-light: #E5F1FF;
      --primary-dark: #0056B3;
      --secondary: #8E8E93; /* iOS Gray */
      --green: #34C759; /* iOS Green */
      --green-light: #E0F8E4;
      --red: #FF3B30; /* iOS Red */
      --red-light: #FFEBEA;
      --purple: #AF52DE; /* iOS Purple */
      --purple-light: #F6E6FD;
      --orange: #FF9500; /* iOS Orange */
      --orange-light: #FFF4E5;
      --gray: #8E8E93;
      --gray-light: #F2F2F7; /* iOS System Gray 6 */
      --border: rgba(0, 0, 0, 0.1);
      --bg: #F2F2F7; /* iOS System Background Grouped */
      --bg-card: #FFFFFF;
      --text: #000000;
      --text-secondary: #3C3C4399; /* Label Color Secondary */
      --shadow: 0 4px 24px rgba(0,0,0,0.06);
      --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
      --radius: 16px;
      --radius-sm: 10px;
      --navbar-bg: #FFFFFF;
      --gradient: linear-gradient(135deg, #007AFF, #5AC8FA);

      /* Apple Font Stack */
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    /* 少女主题 (Soft Pink / Morandi) */
    [data-theme="girl"] {
      --primary: #FF2D55; /* iOS Pink */
      --primary-light: #FFE5EB;
      --primary-dark: #D61E42;
      --green: #FF375F;
      --green-light: #FFF0F2;
      --purple: #BF5AF2;
      --purple-light: #F8E6FF;
      --orange: #FF9F0A;
      --orange-light: #FFF3E0;
      --bg: #F9F2F5;
      --bg-card: #FFFFFF;
      --border: rgba(255, 45, 85, 0.1);
      --navbar-bg: #FFFFFF;
      --gradient: linear-gradient(135deg, #FF2D55, #FF375F, #FF9F0A);
    }

    /* 科技主题 (Dark Glassmorphism) */
    [data-theme="tech"] {
      --primary: #0A84FF; /* iOS Dark Blue */
      --primary-light: rgba(10, 132, 255, 0.2);
      --primary-dark: #0060DF;
      --secondary: #98989D;
      --green: #30D158; /* iOS Dark Green */
      --green-light: rgba(48, 209, 88, 0.2);
      --red: #FF453A; /* iOS Dark Red */
      --red-light: rgba(255, 69, 58, 0.2);
      --purple: #BF5AF2;
      --purple-light: rgba(191, 90, 242, 0.2);
      --orange: #FF9F0A;
      --orange-light: rgba(255, 159, 10, 0.2);
      --gray: #8E8E93;
      --gray-light: #2C2C2E;
      --border: rgba(255, 255, 255, 0.1);
      --bg: #000000;
      --bg-card: #1C1C1E; /* System Gray 6 Dark */
      --text: #FFFFFF;
      --text-secondary: #EBEBF599;
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
      --navbar-bg: #1C1C1E;
      --gradient: linear-gradient(135deg, #0A84FF, #5E5CE6);
    }

    /* 幻紫主题 (Deep Purple Dream) */
    [data-theme="purple"] {
      --primary: #BF5AF2; /* iOS Purple */
      --primary-light: rgba(191, 90, 242, 0.2);
      --primary-dark: #8944AB;
      --green: #5E5CE6; /* iOS Indigo */
      --green-light: rgba(94, 92, 230, 0.2);
      --red: #FF375F;
      --red-light: rgba(255, 55, 95, 0.2);
      --purple: #AC8E68;
      --purple-light: rgba(172, 142, 104, 0.2);
      --orange: #FFD60A;
      --orange-light: rgba(255, 214, 10, 0.2);
      --gray: #98989D;
      --gray-light: #2C2C2E;
      --border: rgba(191, 90, 242, 0.2);
      --bg: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%);
      --bg-card: #2C2C2E;
      --text: #FFFFFF;
      --text-secondary: #EBEBF599;
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
      --navbar-bg: #2C2C2E;
      --gradient: linear-gradient(135deg, #BF5AF2, #5E5CE6, #0A84FF);
    }

/* 幻紫主题背景图片
body[data-theme="purple"] {
  background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body[data-theme="purple"] .navbar {
  background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?w=1920');
  background-size: cover;
  backdrop-filter: blur(10px);
}

body[data-theme="purple"] .card,
body[data-theme="purple"] .calendar {
  background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?w=1920');
  background-size: cover;
}

body[data-theme="purple"] .stat-card.overtime {
  background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?w=1920');
  background-size: cover;
}

body[data-theme="purple"] .stat-card.overtime-fee {
  background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?w=1920');
  background-size: cover;
}

body[data-theme="purple"] .stat-card.claim {
  background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?w=1920');
  background-size: cover;
}

body[data-theme="purple"] .stat-card.deduct {
  background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?w=1920');
  background-size: cover;
}

body[data-theme="purple"] .stat-card.salary {
  background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?w=1920');
  background-size: cover;
} */

/* ========== 自定义主题 ========== */
[data-theme="custom"] {
  --primary: var(--custom-primary, #3b82f6);
  --primary-light: var(--custom-primary-light, #dbeafe);
  --primary-dark: var(--custom-primary-dark, #2563eb);
  --green: var(--custom-green, #22c55e);
  --green-light: var(--custom-green-light, #dcfce7);
  --red: var(--custom-red, #ef4444);
  --red-light: var(--custom-red-light, #fee2e2);
  --purple: var(--custom-purple, #a855f7);
  --purple-light: var(--custom-purple-light, #f3e8ff);
  --orange: var(--custom-orange, #f97316);
  --orange-light: var(--custom-orange-light, #ffedd5);
  --bg: var(--custom-bg, #f8fafc);
  --bg-card: var(--custom-bg-card, #ffffff);
  --text: var(--custom-text, #1e293b);
  --text-secondary: var(--custom-text-secondary, #64748b);
  --border: var(--custom-border, #e5e7eb);
  --navbar-bg: var(--custom-navbar-bg, rgba(255,255,255,0.9));
  --gradient: linear-gradient(135deg, var(--custom-primary, #3b82f6), var(--custom-primary-dark, #2563eb));

}

/* 自定义背景图片 */
[data-theme="custom"].has-bg-image {
  background-image: var(--custom-bg-image) !important;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

[data-theme="custom"].has-bg-image .navbar {
  background: var(--custom-navbar-opacity-bg, rgba(255,255,255,0.8));
  backdrop-filter: blur(20px);
}

[data-theme="custom"].has-bg-image .card,
[data-theme="custom"].has-bg-image .calendar {
  background: var(--custom-card-opacity-bg, rgba(255,255,255,0.85));
  backdrop-filter: blur(10px);
}

/* ========== 自定义主题卡片渐变 ========== */
[data-theme="custom"] .stat-card.overtime {
  background: var(--custom-card-overtime-bg);
  background-size: cover;
  background-position: center;
}
[data-theme="custom"] .stat-card.overtime .stat-value { color: var(--custom-card-overtime-text, #ffffff); }
[data-theme="custom"] .stat-card.overtime .stat-label { color: var(--custom-card-overtime-subtext, rgba(255,255,255,0.9)); }
[data-theme="custom"] .stat-card.overtime .stat-sub { color: var(--custom-card-overtime-subtext, rgba(255,255,255,0.8)); }

[data-theme="custom"] .stat-card.overtime-fee {
  background: var(--custom-card-overtime-fee-bg);
  background-size: cover;
  background-position: center;
}
[data-theme="custom"] .stat-card.overtime-fee .stat-value { color: var(--custom-card-overtime-fee-text, #ffffff); }
[data-theme="custom"] .stat-card.overtime-fee .stat-label { color: var(--custom-card-overtime-fee-subtext, rgba(255,255,255,0.9)); }

[data-theme="custom"] .stat-card.claim {
  background: var(--custom-card-claim-bg);
  background-size: cover;
  background-position: center;
}
[data-theme="custom"] .stat-card.claim .stat-value { color: var(--custom-card-claim-text, #ffffff); }
[data-theme="custom"] .stat-card.claim .stat-label { color: var(--custom-card-claim-subtext, rgba(255,255,255,0.9)); }

[data-theme="custom"] .stat-card.deduct {
  background: var(--custom-card-deduct-bg);
  background-size: cover;
  background-position: center;
}
[data-theme="custom"] .stat-card.deduct .stat-value { color: var(--custom-card-deduct-text, #ffffff); }
[data-theme="custom"] .stat-card.deduct .stat-label { color: var(--custom-card-deduct-subtext, rgba(255,255,255,0.9)); }

[data-theme="custom"] .stat-card.salary {
  background: var(--custom-card-salary-bg);
  background-size: cover;
  background-position: center;
}
[data-theme="custom"] .stat-card.salary .stat-value { color: var(--custom-card-salary-text, #ffffff); }
[data-theme="custom"] .stat-card.salary .stat-label { color: var(--custom-card-salary-subtext, rgba(255,255,255,0.9)); }
[data-theme="custom"] .stat-card.salary .stat-sub { color: var(--custom-card-salary-subtext, rgba(255,255,255,0.8)); }

/* ========== 自定义主题日历样式 ========== */
[data-theme="custom"] .calendar-day.overtime {
  background: var(--custom-red-light, #fee2e2);
}

[data-theme="custom"] .calendar-day.early {
  background: var(--custom-orange-light, #ffedd5);
}

[data-theme="custom"] .calendar-day.leave {
  background: var(--custom-purple-light, #f3e8ff);
}

[data-theme="custom"] .calendar-day.rest-work {
  background: var(--custom-green-light, #dcfce7);
}

[data-theme="custom"] .calendar-day.is-rest {
  background: var(--custom-primary-light, #dbeafe);
  color: var(--custom-primary, #3b82f6);
}

[data-theme="custom"] .calendar-day.today {
  border-color: var(--custom-primary, #3b82f6);
}

[data-theme="custom"] .calendar-day.selected {
  background: var(--gradient);
  color: white;
}

[data-theme="custom"] .calendar-day-dot {
  background: var(--custom-orange, #f97316);
}

/* ========== 自定义主题状态条样式 ========== */
[data-theme="custom"] .status-bar.overtime {
  background: var(--custom-green-light, #dcfce7);
  color: var(--custom-green, #22c55e);
  border-color: var(--custom-green, #22c55e);
}

[data-theme="custom"] .status-bar.early {
  background: var(--custom-red-light, #fee2e2);
  color: var(--custom-red, #ef4444);
  border-color: var(--custom-red, #ef4444);
}

[data-theme="custom"] .status-bar.leave {
  background: var(--custom-purple-light, #f3e8ff);
  color: var(--custom-purple, #a855f7);
  border-color: var(--custom-purple, #a855f7);
}

[data-theme="custom"] .status-bar.rest {
  background: var(--custom-green-light, #dcfce7);
  color: var(--custom-green, #22c55e);
  border-color: var(--custom-green, #22c55e);
}

/* ========== 自定义主题记录标签样式 ========== */
[data-theme="custom"] .record-tag.overtime {
  background: var(--custom-green, #22c55e);
}

[data-theme="custom"] .record-tag.early {
  background: var(--custom-red, #ef4444);
}

[data-theme="custom"] .record-tag.leave {
  background: var(--custom-purple, #a855f7);
}

[data-theme="custom"] .record-tag.rest {
  background: var(--custom-orange, #f97316);
}

/* ========== 自定义主题申报/扣款样式 ========== */
[data-theme="custom"] .claim-item.claim {
  background: var(--custom-green-light, #dcfce7);
  border-color: var(--custom-green, #22c55e);
}

[data-theme="custom"] .claim-item.claim .claim-item-amount {
  color: var(--custom-green, #22c55e);
}

[data-theme="custom"] .claim-item.deduct {
  background: var(--custom-red-light, #fee2e2);
  border-color: var(--custom-red, #ef4444);
}

[data-theme="custom"] .claim-item.deduct .claim-item-amount {
  color: var(--custom-red, #ef4444);
}
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      min-height: 100vh;
      transition: background 0.3s, color 0.3s;
    }

    /* 导航栏 */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 60px;
      background: var(--navbar-bg);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      z-index: 100;
    }

    .navbar-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 700;
      font-size: 18px;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .nav-brand-icon {
      width: 32px;
      height: 32px;
      background: var(--gradient);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      -webkit-text-fill-color: white;
    }

    .nav-tabs {
      display: flex;
      gap: 6px;
      background: var(--gray-light);
      padding: 4px;
      border-radius: 12px;
    }

    .nav-tab {
      padding: 8px 20px;
      border: none;
      background: none;
      font-size: 14px;
      font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      border-radius: 8px;
      transition: all 0.3s;
    }

    .nav-tab.active {
      background: var(--bg-card);
      color: var(--primary);
      box-shadow: var(--shadow-sm);
    }

    .nav-tab:hover:not(.active) {
      color: var(--text);
    }

    .nav-actions {
      display: flex;
      gap: 8px;
    }

    .icon-btn {
      width: 40px;
      height: 40px;
      border: none;
      background: var(--gray-light);
      border-radius: 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      transition: all 0.3s;
      color: var(--text);
    }

    .icon-btn:hover {
      background: var(--primary-light);
      transform: scale(1.05);
    }

    /* 主容器 */
    .main-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 80px 20px 40px;
    }

    .page {
      display: none;
      opacity: 0;
      transform: translateY(20px);
    }

    .page.active {
      display: block;
      opacity: 1;
      transform: translateY(0);
      animation: fadeIn 0.6s ease;
    }

    /* 动画 */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .page.active {
      opacity: 1;
      transform: translateY(0);
      animation: fadeIn 0.6s ease;
    }

    .page-layout {
      display: flex;
      gap: 24px;
    }

    .left-panel {
      flex: 0 0 400px;
    }

    .right-panel {
      flex: 1;
      min-width: 0;
    }

    @media (max-width: 800px) {
      .main-container {
        padding: 70px 16px 30px;
      }

      .page-layout {
        flex-direction: column;
      }

      .left-panel {
        flex: none;
        width: 100%;
      }

      .nav-brand {
        display: none;
      }

      .card {
        padding: 20px;
        margin-bottom: 16px;
      }
    }

    /* 卡片 */
    .card {
      background: var(--bg-card);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 24px;
      margin-bottom: 20px;
      border: 1px solid var(--border);
      transition: all 0.3s;
    }

    .card:hover {
      box-shadow: var(--shadow), 0 8px 40px rgba(0,0,0,0.1);
    }

    .card-title {
      font-size: 17px;
      font-weight: 700;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text);
    }

    .card-title-icon {
      width: 36px;
      height: 36px;
      background: var(--gradient);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
    }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .card-header .card-title {
      margin-bottom: 0;
    }

    /* 按钮组 */
    .btn-group {
      display: flex;
      gap: 8px;
      margin-bottom: 20px;
      background: var(--gray-light);
      padding: 4px;
      border-radius: 12px;
    }

    .btn {
      padding: 10px 20px;
      border: none;
      background: transparent;
      border-radius: 10px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      flex: 1;
      color: var(--text-secondary);
    }
    
    .btn:active {
      transform: scale(0.96);
    }

    .btn:hover {
      color: var(--text);
    }

    .btn.active {
      background: var(--bg-card);
      color: var(--primary);
      box-shadow: var(--shadow-sm);
    }

    .btn-primary {
      background: var(--gradient);
      color: white !important;
      border: none;
      box-shadow: 0 4px 15px rgba(59,130,246,0.4);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(59,130,246,0.5);
    }

    .btn-danger {
      background: linear-gradient(135deg, var(--red), #dc2626);
      color: white !important;
      box-shadow: 0 4px 15px rgba(239,68,68,0.4);
    }

    .btn-sm {
      padding: 6px 14px;
      font-size: 12px;
      flex: none;
      border-radius: 8px;
    }

    .btn-rest.active {
      background: var(--green);
      color: white !important;
    }

    .btn-leave.active {
      background: var(--purple);
      color: white !important;
    }

    /* 表单 */
    .form-group {
      margin-bottom: 16px;
    }

    .form-label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 6px;
    }

    .form-row {
      display: flex;
      gap: 12px;
    }

    .form-row .form-group {
      flex: 1;
    }

    .form-input {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid var(--border);
      border-radius: 12px;
      font-size: 16px; /* Prevent zoom on iOS */
      transition: all 0.3s;
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      color: var(--text);
    }

    /* 移动端适配优化 */
    @media (max-width: 480px) {
      /* 保持一排两列，减小间距防止溢出 */
      .form-row {
        gap: 8px;
      }

      /* 减小输入框内边距，使其更紧凑，但保持16px防止iOS缩放 */
      .form-input {
        padding: 10px 8px;
        font-size: 16px;
        border-radius: 8px;
      }

      /* 调整时间输入框，给按钮留出空间但不过大 */
      .time-input-wrap .form-input {
        padding-right: 34px;
      }

      /* 缩小"现"按钮 */
      .now-btn {
        width: 26px;
        height: 26px;
        right: 4px;
        font-size: 12px;
        border-radius: 6px;
      }
    }
    
    /* Dark theme input adjustment */
    [data-theme="tech"] .form-input,
    [data-theme="purple"] .form-input {
      background: rgba(0, 0, 0, 0.2);
      border-color: rgba(255, 255, 255, 0.1);
    }

    .time-input-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .time-input-wrap .form-input {
      width: 100%;
      padding-right: 42px;
    }

    .now-btn {
      position: absolute;
      right: 6px;
      top: 50%;
      transform: translateY(-50%);
      width: 32px;
      height: 32px;
      padding: 0;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    .now-btn:hover {
      background: var(--primary-dark);
    }

    .now-btn:active {
      transform: translateY(-50%) scale(0.9);
    }

    .form-input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 4px var(--primary-light);
    }

    /* 状态条 */
    .status-bar {
      padding: 16px 20px;
      border-radius: var(--radius-sm);
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      border-left: 4px solid;
    }

    .status-bar.overtime {
      background: var(--green-light);
      color: var(--green);
      border-color: var(--green);
    }

    .status-bar.early {
      background: var(--red-light);
      color: var(--red);
      border-color: var(--red);
    }

    .status-bar.leave {
      background: var(--purple-light);
      color: var(--purple);
      border-color: var(--purple);
    }

    .status-bar.rest {
      background: var(--green-light);
      color: var(--green);
      border-color: var(--green);
    }

    .status-bar.normal {
      background: var(--gray-light);
      color: var(--gray);
      border-color: var(--gray);
    }

    /* 申报/扣款模块 */
    .claim-section {
      border-top: 1px solid var(--border);
      padding-top: 20px;
      margin-top: 20px;
    }

    .claim-toggle {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
    }

    .claim-toggle .btn {
      font-size: 13px;
      padding: 8px 16px;
      border: 2px solid var(--border);
      background: var(--bg-card);
    }

    .claim-toggle .btn.claim-active {
      background: var(--green);
      border-color: var(--green);
      color: white !important;
    }

    .claim-toggle .btn.deduct-active {
      background: var(--red);
      border-color: var(--red);
      color: white !important;
    }

    .claim-add {
      display: flex;
      gap: 10px;
      margin-bottom: 16px;
    }

    .claim-add input {
      flex: 1;
    }

    .claim-add .amount-input {
      width: 100px;
    }

    .claim-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      background: var(--gray-light);
      border-radius: var(--radius-sm);
      margin-bottom: 8px;
      font-size: 14px;
      border-left: 3px solid;
    }

    .claim-item.claim {
      background: var(--green-light);
      border-color: var(--green);
    }

    .claim-item.deduct {
      background: var(--red-light);
      border-color: var(--red);
    }

    .claim-item-name {
      flex: 1;
      font-weight: 500;
    }

.claim-item-detail {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 10px;
}

    .claim-item-amount {
      font-weight: 700;
      margin: 0 16px;
    }

    .claim-item.claim .claim-item-amount {
      color: var(--green);
    }

    .claim-item.deduct .claim-item-amount {
      color: var(--red);
    }

    .claim-delete {
      background: none;
      border: none;
      color: var(--red);
      cursor: pointer;
      padding: 4px 8px;
      font-size: 18px;
      opacity: 0.7;
      transition: all 0.2s;
    }

    .claim-delete:hover {
      opacity: 1;
      transform: scale(1.2);
    }

    /* 保存按钮 */
    .save-btn {
      width: 100%;
      padding: 16px;
      font-size: 16px;
      font-weight: 700;
      border-radius: var(--radius-sm);
      margin-top: 8px;
      transition: all 0.3s ease;
    }

/* 默认主题保存按钮背景 
body[data-theme="default"] .save-btn {
  background-image: url('https://images.unsplash.com/photo-1557683316-973673baf926?w=1920');
  background-size: cover;
  background-position: center;
  color: white;
  border: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}*/

/* 少女主题保存按钮 
body[data-theme="girl"] .save-btn {
  background-image: url('https://images.unsplash.com/photo-1490750967868-88aa4486c946?w=1920');
  background-size: cover;
  background-position: center;
  color: white;
  border: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}*/

/* 科技主题保存按钮 
body[data-theme="tech"] .save-btn {
  background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920');
  background-size: cover;
  background-position: center;
  color: white;
  border: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}*/

/* 幻紫主题保存按钮 
body[data-theme="purple"] .save-btn {
  background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?w=1920');
  background-size: cover;
  background-position: center;
  color: white;
  border: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}*/

    .save-btn:active {
      transform: scale(0.95);
    }

    .save-btn.saving {
      animation: saveSuccess 0.6s ease;
    }

    @keyframes saveSuccess {
      0% { transform: scale(1); }
      30% { transform: scale(0.9); }
      50% { transform: scale(1.05); }
      70% { transform: scale(0.98); }
      100% { transform: scale(1); }
    }

      /* ==================== 统计卡片 ==================== */
    .stat-cards {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 16px;
    }

    .stat-card {
      padding: 18px;
      border-radius: var(--radius-sm);
      position: relative;
      overflow: hidden;
      transition: all 0.3s;
      box-shadow: var(--shadow-sm);
    }

    .stat-label {
      font-size: 12px;
      margin-bottom: 6px;
      font-weight: 500;
    }

    .stat-value {
      font-size: 24px;
      font-weight: 700;
    }

    .stat-sub {
      font-size: 11px;
      margin-top: 4px;
    }

    /* ========== 默认主题卡片渐变 ========== */
    .stat-card.overtime {
      background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 50%, #86efac 100%);
    }
    .stat-card.overtime .stat-value { color: #15803d; }
    .stat-card.overtime .stat-label { color: #166534; }
    .stat-card.overtime .stat-sub { color: #166534; }

    .stat-card.overtime-fee {
      background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 50%, #fdba74 100%);
    }
    .stat-card.overtime-fee .stat-value { color: #c2410c; }
    .stat-card.overtime-fee .stat-label { color: #9a3412; }

    .stat-card.claim {
      background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    }
    .stat-card.claim .stat-value { color: #1d4ed8; }
    .stat-card.claim .stat-label { color: #1e40af; }

    .stat-card.deduct {
      background: linear-gradient(135deg, #fee2e2 0%, #fecaca 50%, #fca5a5 100%);
    }
    .stat-card.deduct .stat-value { color: #dc2626; }
    .stat-card.deduct .stat-label { color: #b91c1c; }

    .stat-card.salary {
      background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
      grid-column: span 2;
    }
    .stat-card.salary .stat-value { color: #ffffff; }
    .stat-card.salary .stat-label { color: rgba(255,255,255,0.85); }
    .stat-card.salary .stat-sub { color: rgba(255,255,255,0.7); }

    /* ========== 少女主题卡片渐变 ========== */
    [data-theme="girl"] .stat-card.overtime {
      background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 50%, #f9a8d4 100%);
    }
    [data-theme="girl"] .stat-card.overtime .stat-value { color: #db2777; }
    [data-theme="girl"] .stat-card.overtime .stat-label { color: #be185d; }
    [data-theme="girl"] .stat-card.overtime .stat-sub { color: #be185d; }

    [data-theme="girl"] .stat-card.overtime-fee {
      background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fecdd3 100%);
    }
    [data-theme="girl"] .stat-card.overtime-fee .stat-value { color: #e11d48; }
    [data-theme="girl"] .stat-card.overtime-fee .stat-label { color: #be123c; }

    [data-theme="girl"] .stat-card.claim {
      background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
    }
    [data-theme="girl"] .stat-card.claim .stat-value { color: #ec4899; }
    [data-theme="girl"] .stat-card.claim .stat-label { color: #db2777; }

    [data-theme="girl"] .stat-card.deduct {
      background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 50%, #fda4af 100%);
    }
    [data-theme="girl"] .stat-card.deduct .stat-value { color: #f43f5e; }
    [data-theme="girl"] .stat-card.deduct .stat-label { color: #e11d48; }

    [data-theme="girl"] .stat-card.salary {
      background: linear-gradient(135deg, #ec4899 0%, #f472b6 50%, #fb7185 100%);
    }
    [data-theme="girl"] .stat-card.salary .stat-value { color: #ffffff; }
    [data-theme="girl"] .stat-card.salary .stat-label { color: rgba(255,255,255,0.9); }
    [data-theme="girl"] .stat-card.salary .stat-sub { color: rgba(255,255,255,0.8); }

    /* ========== 科技主题卡片渐变 ========== */
    [data-theme="tech"] .stat-card.overtime {
      background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    }
    [data-theme="tech"] .stat-card.overtime .stat-value { color: #34d399; }
    [data-theme="tech"] .stat-card.overtime .stat-label { color: #6ee7b7; }
    [data-theme="tech"] .stat-card.overtime .stat-sub { color: #6ee7b7; }

    [data-theme="tech"] .stat-card.overtime-fee {
      background: linear-gradient(135deg, #451a03 0%, #78350f 50%, #92400e 100%);
    }
    [data-theme="tech"] .stat-card.overtime-fee .stat-value { color: #fbbf24; }
    [data-theme="tech"] .stat-card.overtime-fee .stat-label { color: #fcd34d; }

    [data-theme="tech"] .stat-card.claim {
      background: linear-gradient(135deg, #164e63 0%, #155e75 50%, #0e7490 100%);
    }
    [data-theme="tech"] .stat-card.claim .stat-value { color: #22d3ee; }
    [data-theme="tech"] .stat-card.claim .stat-label { color: #67e8f9; }

    [data-theme="tech"] .stat-card.deduct {
      background: linear-gradient(135deg, #4c0519 0%, #881337 50%, #9f1239 100%);
    }
    [data-theme="tech"] .stat-card.deduct .stat-value { color: #fb7185; }
    [data-theme="tech"] .stat-card.deduct .stat-label { color: #fda4af; }

    [data-theme="tech"] .stat-card.salary {
      background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #8b5cf6 100%);
    }
    [data-theme="tech"] .stat-card.salary .stat-value { color: #ffffff; }
    [data-theme="tech"] .stat-card.salary .stat-label { color: rgba(255,255,255,0.9); }
    [data-theme="tech"] .stat-card.salary .stat-sub { color: rgba(255,255,255,0.8); }

   
    /* ========== 幻紫主题卡片渐变 ========== */
    [data-theme="purple"] .stat-card.overtime {
      background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
    }
    [data-theme="purple"] .stat-card.overtime .stat-value { color: #a78bfa; }
    [data-theme="purple"] .stat-card.overtime .stat-label { color: #c4b5fd; }
    [data-theme="purple"] .stat-card.overtime .stat-sub { color: #c4b5fd; }

    [data-theme="purple"] .stat-card.overtime-fee {
      background: linear-gradient(135deg, #4a044e 0%, #701a75 50%, #86198f 100%);
    }
    [data-theme="purple"] .stat-card.overtime-fee .stat-value { color: #e879f9; }
    [data-theme="purple"] .stat-card.overtime-fee .stat-label { color: #f0abfc; }

    [data-theme="purple"] .stat-card.claim {
      background: linear-gradient(135deg, #2e1065 0%, #4c1d95 50%, #5b21b6 100%);
    }
    [data-theme="purple"] .stat-card.claim .stat-value { color: #c084fc; }
    [data-theme="purple"] .stat-card.claim .stat-label { color: #d8b4fe; }

    [data-theme="purple"] .stat-card.deduct {
      background: linear-gradient(135deg, #500724 0%, #831843 50%, #9d174d 100%);
    }
    [data-theme="purple"] .stat-card.deduct .stat-value { color: #f472b6; }
    [data-theme="purple"] .stat-card.deduct .stat-label { color: #f9a8d4; }

    [data-theme="purple"] .stat-card.salary {
      background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #ec4899 100%);
    }
    [data-theme="purple"] .stat-card.salary .stat-value { color: #ffffff; }
    [data-theme="purple"] .stat-card.salary .stat-label { color: rgba(255,255,255,0.9); }
    [data-theme="purple"] .stat-card.salary .stat-sub { color: rgba(255,255,255,0.8); }

    /* 月份选择器 */
    .month-selector {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      margin-bottom: 20px;
    }

    .month-selector button {
      width: 36px;
      height: 36px;
      border: 2px solid var(--border);
      background: var(--bg-card);
      border-radius: 10px;
      cursor: pointer;
      font-size: 16px;
      transition: all 0.3s;
      color: var(--text);
    }

    .month-selector button:hover {
      border-color: var(--primary);
      color: var(--primary);
    }

    .month-selector span {
      font-weight: 700;
      font-size: 18px;
      min-width: 140px;
      text-align: center;
    }

    /* 折叠面板 */
    .collapse {
      border: 2px solid var(--border);
      border-radius: var(--radius-sm);
      margin-bottom: 20px;
      overflow: hidden;
    }

    .collapse-header {
      padding: 16px 20px;
      background: var(--gray-light);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: 600;
      transition: all 0.3s;
    }

    .detail-title-wrapper {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .detail-title-text {
      flex-shrink: 0;
    }

    .detail-title-wrapper .detail-mode-toggle-inline {
      margin-left: 0;
    }

    .detail-title-wrapper .detail-mode-btn {
      pointer-events: auto;
    }

    .collapse-header:hover {
      background: var(--border);
    }

    .collapse-arrow {
      transition: transform 0.3s;
    }

    .collapse.open .collapse-arrow {
      transform: rotate(180deg);
    }

    .detail-mode-toggle {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      justify-content: center;
    }

    .detail-mode-toggle-inline {
      display: flex;
      gap: 4px;
      margin-left: auto;
    }

    .detail-mode-btn {
      padding: 8px 20px;
      border: 2px solid var(--border);
      background: var(--bg-card);
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      color: var(--text-secondary);
    }

    .detail-mode-btn:hover {
      color: var(--text);
    }

    .detail-mode-btn.active {
      background: var(--primary);
      border-color: var(--primary);
      color: white;
    }

    .detail-mode-toggle-inline .detail-mode-btn {
      padding: 4px 12px;
      font-size: 12px;
      border-radius: 6px;
      border-color: transparent;
      background: transparent;
      opacity: 0.7;
    }

    .detail-mode-toggle-inline .detail-mode-btn:hover {
      opacity: 1;
    }

    .detail-mode-toggle-inline .detail-mode-btn.active {
      background: var(--primary-light);
      color: var(--primary);
      opacity: 1;
    }

    .collapse-content {
      display: none;
      padding: 16px 20px;
    }

    .collapse.open .collapse-content {
      display: block;
    }

    /* 资金明细两列布局 */
    .detail-columns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    @media (max-width: 768px) {
      .detail-columns {
        grid-template-columns: 1fr;
        gap: 16px;
      }
    }

    .detail-column {
      background: var(--gray-light);
      border-radius: var(--radius-sm);
      padding: 12px;
    }

    .detail-column-title {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 2px solid var(--border);
      color: var(--text);
    }

    .detail-total {
      font-size: 15px;
      font-weight: 700;
      padding: 10px 12px;
      background: var(--primary-light);
      border-radius: 8px;
      margin-bottom: 12px;
      text-align: center;
      color: var(--primary);
      cursor: pointer;
      transition: all 0.2s;
    }

    .detail-total:hover {
      background: var(--primary);
      color: white;
    }

    .detail-total.positive {
      background: var(--green-light);
      color: var(--green);
    }

    .detail-total.positive:hover {
      background: var(--green);
      color: white;
    }

    .detail-total.negative {
      background: var(--red-light);
      color: var(--red);
    }

    .detail-total.negative:hover {
      background: var(--red);
      color: white;
    }

    .detail-item {
      display: flex;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
      font-size: 13px;
    }

    .detail-item:last-child {
      border-bottom: none;
    }

    .detail-date {
      width: 60px;
      color: var(--text-secondary);
      font-weight: 500;
      font-size: 12px;
    }

    .detail-name {
      flex: 1;
    }

    .detail-amount {
      font-weight: 700;
    }

    .detail-amount.positive { color: var(--green); }
    .detail-amount.negative { color: var(--red); }

    .empty-state-text {
      text-align: center;
      color: var(--text-secondary);
      padding: 20px;
      font-size: 13px;
    }

    /* 历史记录 */
    .history-item {
      display: flex;
      align-items: center;
      padding: 16px;
      background: var(--gray-light);
      border-radius: var(--radius-sm);
      margin-bottom: 10px;
      font-size: 13px;
      border-left: 3px solid var(--primary);
      position: relative; /* For positioning if needed */
    }

    .history-status {
      padding: 6px 14px;
      border-radius: 14px;
      font-size: 12px;
      cursor: pointer;
      font-weight: 600;
      margin-left: 12px;
      user-select: none;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .history-status.status-unsent {
      background: rgba(0,0,0,0.05);
      color: var(--text-secondary);
      border: 1px solid var(--border);
    }

    .history-status.status-sent {
      background: var(--green-light);
      color: var(--green);
      border: 1px solid transparent;
    }

    .history-month {
      font-weight: 700;
      width: 90px;
      font-size: 14px;
    }

    .history-stats {
      flex: 1;
      display: flex;
      flex-wrap: wrap;
      gap: 10px 20px;
    }

    .history-stat {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .history-stat-label {
      color: var(--text-secondary);
    }

    .history-stat-value {
      font-weight: 700;
    }

    /* 日期选择器 */
    .date-picker {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin-bottom: 20px;
    }

    .date-picker button {
      width: 44px;
      height: 44px;
      border: 2px solid var(--border);
      background: var(--bg-card);
      border-radius: 12px;
      cursor: pointer;
      font-size: 20px;
      transition: all 0.3s;
      color: var(--text);
    }

    .date-picker button:hover {
      border-color: var(--primary);
      color: var(--primary);
      transform: scale(1.05);
    }

    .date-picker .date-display {
      font-size: 20px;
      font-weight: 700;
      min-width: 180px;
      text-align: center;
    }

    /* 日历 */
    .calendar {
      background: var(--bg-card);
      border-radius: var(--radius);
      padding: 20px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }

    .calendar-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .calendar-title {
      font-weight: 700;
      font-size: 16px;
    }

    .calendar-nav {
      display: flex;
      gap: 8px;
    }

    .calendar-nav button {
      width: 32px;
      height: 32px;
      border: 2px solid var(--border);
      background: var(--bg-card);
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s;
      color: var(--text);
    }

    .calendar-nav button:hover {
      border-color: var(--primary);
      color: var(--primary);
    }

    .calendar-weekdays {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 4px;
      margin-bottom: 10px;
    }

    .calendar-weekday {
      text-align: center;
      font-size: 12px;
      color: var(--text-secondary);
      padding: 8px;
      font-weight: 600;
    }

    .calendar-days {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 4px;
    }

    .calendar-day {
      position: relative;
    }

    .calendar-day .day-tooltip {
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      background: var(--text);
      color: var(--bg-card);
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 12px;
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      transition: all 0.2s;
      z-index: 10;
      pointer-events: none;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .calendar-day .day-tooltip::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-top-color: var(--text);
    }

    .calendar-day:hover .day-tooltip {
      opacity: 1;
      visibility: visible;
      bottom: calc(100% + 8px);
    }

    .calendar-day {
      aspect-ratio: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      cursor: pointer;
      font-size: 14px;
      position: relative;
      border: 2px solid transparent;
      font-weight: 500;
      transition: all 0.2s;
    }

    .calendar-day.is-rest {
      background: var(--primary-light);
      color: var(--primary);
      border: none;
    }

    /* 独立图标样式 */
    .calendar-icon-group {
      position: absolute;
      bottom: 2px;
      display: flex;
      gap: 2px;
      justify-content: center;
      width: 100%;
    }

    .calendar-icon {
      width: 16px;
      height: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }

    .calendar-icon.claim {
      color: var(--green);
    }

    .calendar-icon.deduct {
      color: var(--red);
    }
    
    /* 手机端金额图标保持小尺寸 */
    @media (max-width: 768px) {
      .calendar-icon {
        width: 12px;
        height: 12px;
        font-size: 10px;
      }
    }

    /* 状态图标样式（左上角） */
    .calendar-status-icon {
      position: absolute;
      top: 2px;
      left: 2px;
      font-size: 16px;
      line-height: 1;
      opacity: 0.9;
    }
    
    /* 手机端图标保持小尺寸 */
    @media (max-width: 768px) {
      .calendar-status-icon {
        font-size: 10px;
      }
    }

    /* 补填页面按钮样式调整 */
    #page-list .now-btn,
    #editClaimAdd {
      background: var(--primary-light) !important;
      color: var(--primary) !important;
      box-shadow: none !important;
    }

    #page-list .now-btn:hover,
    #editClaimAdd:hover {
      opacity: 0.8;
    }

    .calendar-day.unfilled {
      border: 1px dashed #fed7aa;
      background-color: #fffefb;
    }

    .calendar-day:hover {
      background: var(--gray-light);
    }

    .calendar-day.other-month {
      color: var(--text-secondary);
      opacity: 0.4;
    }

    .calendar-day.today {
      border-color: var(--primary);
      font-weight: 700;
    }

    .calendar-day.selected {
      background: var(--gradient);
      color: white;
      border-color: transparent;
    }

    .calendar-day.overtime { background: var(--red-light); }
    .calendar-day.early { background: var(--orange-light); }
    .calendar-day.leave { background: var(--purple-light); }
    .calendar-day.rest-work { background: var(--green-light); }

    .calendar-day-dot {
      position: absolute;
      bottom: 4px;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--orange);
    }

    /* 异常记录列表 */
    .record-item {
      display: flex;
      align-items: flex-start;
      padding: 16px;
      background: var(--gray-light);
      border-radius: var(--radius-sm);
      margin-bottom: 10px;
      cursor: pointer;
      transition: all 0.3s;
      border-left: 4px solid var(--primary);
    }

    .record-item:hover {
      transform: translateX(6px);
      box-shadow: var(--shadow);
    }

    /* 月度固定项目样式 */
    .record-item.monthly-item {
      border-left-color: var(--orange);
      background: linear-gradient(135deg, var(--gray-light) 0%, rgba(255, 149, 0, 0.1) 100%);
      cursor: default;
    }

    .record-item.monthly-item:hover {
      transform: none;
    }

    .record-left {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 110px;
    }

    .record-day {
      font-size: 20px;
      font-weight: 800;
      color: var(--primary);
    }

    .record-item.monthly-item .record-day {
      color: var(--orange);
    }

    .record-tag {
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700;
    }

    .record-tag.overtime { background: var(--green); color: white; }
    .record-tag.early { background: var(--red); color: white; }
    .record-tag.leave { background: var(--purple); color: white; }
    .record-tag.rest { background: var(--orange); color: white; }

    .record-tag.claim { background: var(--green); color: white; margin-left: 4px; }
    .record-tag.deduct { background: var(--red); color: white; margin-left: 4px; }

    .record-right {
      flex: 1;
      text-align: right;
    }

    .record-time {
      font-weight: 700;
      font-size: 15px;
    }

    .record-time.positive { color: var(--green); }
    .record-time.negative { color: var(--red); }

    .record-details {
      font-size: 12px;
      color: var(--text-secondary);
      margin-top: 6px;
    }

    .record-claim { color: var(--green); }
    .record-deduct { color: var(--red); }

    /* 弹窗 */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 200;
      padding: 20px;
    }

    .modal-overlay.show {
      display: flex;
    }

    .modal {
      background: var(--bg-card);
      border-radius: var(--radius);
      width: 100%;
      max-width: 520px;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      border: 1px solid var(--border);
    }

    .modal-header {
      padding: 24px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
    }

    .modal-title {
      font-size: 20px;
      font-weight: 700;
    }

    .modal-close {
      background: var(--gray-light);
      border: none;
      font-size: 20px;
      cursor: pointer;
      color: var(--text-secondary);
      width: 36px;
      height: 36px;
      border-radius: 10px;
      transition: all 0.3s;
    }

    .modal-close:hover {
      background: var(--red-light);
      color: var(--red);
    }

    .modal-body {
      padding: 24px;
      overflow-y: auto;
      flex: 1;
    }

    .modal-footer {
      padding: 20px 24px;
      border-top: 1px solid var(--border);
      display: flex;
      gap: 12px;
      flex-shrink: 0;
    }

    .modal-footer .btn {
      flex: 1;
      padding: 12px;
    }

    /* 设置组 */
    .settings-group {
      margin-bottom: 28px;
    }

    .settings-group-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-secondary);
      margin-bottom: 16px;
      padding-bottom: 10px;
      border-bottom: 2px solid var(--border);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .settings-row {
      display: flex;
      gap: 12px;
      margin-bottom: 12px;
    }

    .settings-row .form-group {
      flex: 1;
      margin-bottom: 0;
    }

    /* 主题选择 */
    .theme-selector {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 10px;
      margin-bottom: 20px;
    }

    .theme-btn {
      aspect-ratio: 1;
      border: 3px solid var(--border);
      border-radius: 12px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 600;
      transition: all 0.3s;
      background: var(--bg-card);
      color: var(--text);
    }

    .theme-btn:hover {
      transform: scale(1.05);
    }

    .theme-btn.active {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px var(--primary-light);
    }

    .theme-btn-color {
      width: 28px;
      height: 28px;
      border-radius: 50%;
    }

    .theme-btn[data-theme="default"] .theme-btn-color {
      background: linear-gradient(135deg, #3b82f6, #2563eb);
    }
    .theme-btn[data-theme="girl"] .theme-btn-color {
      background: linear-gradient(135deg, #ec4899, #f472b6);
    }
    .theme-btn[data-theme="tech"] .theme-btn-color {
      background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    }
    .theme-btn[data-theme="purple"] .theme-btn-color {
      background: linear-gradient(135deg, #8b5cf6, #ec4899);
    }

.theme-btn[data-theme="custom"] .theme-btn-color {
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
}

    .weekday-selector {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .weekday-btn {
      width: 44px;
      height: 44px;
      border: 2px solid var(--border);
      background: var(--bg-card);
      border-radius: 10px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 600;
      transition: all 0.3s;
      color: var(--text);
    }

    .weekday-btn.active {
      background: var(--primary);
      border-color: var(--primary);
      color: white;
    }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%) translateY(100px) scale(0.8);
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: #ffffff;
      padding: 16px 32px;
      border-radius: 16px;
      font-size: 15px;
      font-weight: 600;
      opacity: 0;
      transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      z-index: 300;
      box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    }

    .toast.show {
      transform: translateX(-50%) translateY(0) scale(1);
      opacity: 1;
    }

    .toast::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
      border-radius: 16px;
      pointer-events: none;
    }

    /* 确认对话框 */
    .confirm-dialog {
      text-align: center;
      padding: 24px;
    }

    .confirm-dialog p {
      margin-bottom: 24px;
      font-size: 16px;
      line-height: 1.6;
    }

    .confirm-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
    }

    .confirm-actions .btn {
      min-width: 110px;
      flex: none;
      padding: 12px 24px;
    }

    /* 导入导出 */
    .import-export {
      display: flex;
      gap: 12px;
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
    }

    .import-export .btn {
      flex: 1;
      font-size: 13px;
      padding: 12px;
    }

    /* 危险操作区 */
    .danger-zone {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 2px solid var(--red-light);
    }

    .danger-zone-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--red);
      margin-bottom: 12px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .danger-zone .btn {
      width: 100%;
    }

    #importInput {
      display: none;
    }

    /* 空状态 */
    .empty-state {
      text-align: center;
      padding: 50px 20px;
      color: var(--text-secondary);
    }

    .empty-state-icon {
      font-size: 56px;
      margin-bottom: 16px;
    }

    .empty-state-text {
      font-size: 15px;
    }

    /* 科技主题特殊效果 */
    [data-theme="tech"] .card {
      border: 1px solid rgba(6,182,212,0.3);
    }

    [data-theme="tech"] .card:hover {
      border-color: var(--primary);
    }

    [data-theme="tech"] .nav-brand-icon,
    [data-theme="tech"] .card-title-icon {
      box-shadow: 0 0 20px rgba(6,182,212,0.5);
    }

    /* 幻紫主题特殊效果 */
    [data-theme="purple"] .card {
      border: 1px solid rgba(139,92,246,0.3);
      backdrop-filter: blur(10px);
    }

    [data-theme="purple"] .navbar {
      border-bottom: 1px solid rgba(139,92,246,0.3);
    }

    [data-theme="purple"] .nav-brand-icon,
    [data-theme="purple"] .card-title-icon {
      box-shadow: 0 0 30px rgba(139,92,246,0.5);
    }

.user-menu-wrapper {
  position: relative;
}

.user-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg, #ffffff);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  min-width: 150px;
  z-index: 100;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--border-color, rgba(0,0,0,0.1));
}

.user-menu.show {
  display: block;
}

.user-menu-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.user-menu-item:hover {
  background: var(--hover-bg, rgba(0,0,0,0.05));
}

.user-menu-item:active {
  background: var(--active-bg, rgba(0,0,0,0.1));
}

