:root {
    --primary-color: #f59e0b;
    --secondary-color: #fbbf24;
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    transition: all 0.3s ease;
  }

  body.dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #e2e8f0;
  }

  body.dark h1 {
    color: #f1f5f9;
  }

  body.dark .grid {
    background: rgba(51, 65, 85, 0.6);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(148, 163, 184, 0.1);
  }

  body.dark .stats-panel {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  body.dark .stat-item {
    background: rgba(51, 65, 85, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  body.dark .stat-number {
    color: #f1f5f9;
  }

  body.dark .stat-label {
    color: #94a3b8;
  }

  body.dark .container {
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(148, 163, 184, 0.1);
  }

  body.dark .calendar-full-width {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(148, 163, 184, 0.1);
  }

  body.dark .month-stat-number {
    color: #f1f5f9;
  }

  body.dark .month-card {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  body.dark .month-name {
    color: #f1f5f9;
  }

  body.dark .month-year {
    color: #94a3b8;
  }

  body.dark .calendar-day-header {
    color: #94a3b8;
  }

  body.dark .calendar-day.future {
    color: #f1f5f9;
  }

  body.dark .calendar-day.other-month {
    color: #64748b;
  }

  body.dark .calendar-day.past {
    background: #475569;
    color: #94a3b8;
  }

  body.dark .calendar-day.past.weekend {
    color: #64748b;
  }

  body.dark .calendar-day.weekend {
    color: #f87171;
  }

  body.dark .calendar-day.future.weekend {
    color: #f87171;
  }

  body.dark .dot.past {
    background-color: #64748b;
  }

  body.dark .holidays-legend {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  body.dark .holidays-legend h3 {
    color: #f1f5f9;
  }

  body.dark .holiday-item {
    background: rgba(71, 85, 105, 0.6);
  }

  body.dark .holiday-date {
    color: #94a3b8;
  }

  body.dark .calendar-select {
    background: rgba(51, 65, 85, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #f1f5f9;
  }

  body.dark .calendar-select option {
    background: rgba(51, 65, 85, 0.9);
    color: #f1f5f9;
  }

  body.dark .country-loading {
    color: #94a3b8;
  }

  body.dark .country-loading::before {
    border: 2px solid #475569;
    border-top: 2px solid #f59e0b;
  }

  /* 顶部导航菜单 */
  .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: all 0.3s ease;
  }

  .navbar.dark {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
  }

  .nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    box-sizing: border-box;
    margin: 0;
  }

  .nav-brand:hover {
    color: #f59e0b;
    background: rgba(249, 158, 11, 0.1);
    transform: translateY(-1px);
  }

  .navbar.dark .nav-brand {
    color: #f9fafb;
  }

  .navbar.dark .nav-brand:hover {
    background: rgba(249, 158, 11, 0.2);
  }

  .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.8rem;
    align-items: center;
    position: relative;
    z-index: 20;
  }

  .nav-item {
    position: relative;
    z-index: 10;
  }

  .nav-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 15;
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 158, 11, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: -1;
    border-radius: 10px;
  }

  .nav-link:hover::before {
    left: 100%;
  }

  .nav-link:hover {
    color: #f59e0b;
    background: rgba(249, 158, 11, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 158, 11, 0.2);
    border-radius: 10px;
  }

  .nav-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(249, 158, 11, 0.3);
    border-radius: 10px;
  }

  .nav-link.active {
    color: #f59e0b;
    background: rgba(249, 158, 11, 0.15);
    box-shadow: 0 2px 8px rgba(249, 158, 11, 0.3);
    border-radius: 10px;
  }

  .navbar.dark .nav-link {
    color: #d1d5db;
  }

  .navbar.dark .nav-link:hover {
    background: rgba(249, 158, 11, 0.15);
    box-shadow: 0 4px 12px rgba(249, 158, 11, 0.3);
  }

  .navbar.dark .nav-link.active {
    background: rgba(249, 158, 11, 0.25);
    box-shadow: 0 2px 8px rgba(249, 158, 11, 0.4);
  }

  .settings-btn {
    font-size: 1.2rem;
    padding: 0.6rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: 15;
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  .settings-btn:hover {
    background: rgba(249, 158, 11, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 158, 11, 0.2);
  }

  .settings-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(249, 158, 11, 0.3);
  }

  .navbar.dark .settings-btn:hover {
    background: rgba(249, 158, 11, 0.2);
    box-shadow: 0 4px 12px rgba(249, 158, 11, 0.3);
  }

  .theme-toggle-btn {
    font-size: 1.2rem;
    padding: 0.6rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: 15;
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  .theme-toggle-btn:hover {
    background: rgba(249, 158, 11, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 158, 11, 0.2);
  }

  .theme-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(249, 158, 11, 0.3);
  }

  .navbar.dark .theme-toggle-btn:hover {
    background: rgba(249, 158, 11, 0.2);
    box-shadow: 0 4px 12px rgba(249, 158, 11, 0.3);
  }

  /* Tab Content Styles */
  .tab-content {
    display: none;
  }

  .tab-content.active {
    display: block;
  }

  /* Monthly Calendar Grid */
  .months-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1rem;
    padding-top: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .month-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 280px;
  }

  .month-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }

  .month-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(249, 158, 11, 0.2);
  }

  .month-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
  }

  .month-year {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0.2rem 0 0 0;
  }

  .month-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    flex: 1;
  }

  .calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.5rem;
  }

  .calendar-day-header {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    padding: 0.3rem 0;
  }

  .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
  }

  .calendar-day:hover {
    background: rgba(249, 158, 11, 0.1);
    transform: scale(1.1);
  }

  .calendar-day.other-month {
    color: #d1d5db;
  }

  .calendar-day.today {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
  }

  .calendar-day.past {
    background: #e5e7eb;
    color: #6b7280;
  }

  .calendar-day.future {
    color: #374151;
  }

  .calendar-day.weekend {
    color: #dc2626;
  }

  .calendar-day.future.weekend {
    color: #dc2626;
  }

  .calendar-day.past.weekend {
    color: #9ca3af;
  }

  .calendar-day.holiday {
    background: #ef4444;
    color: white;
    font-weight: 600;
  }

  .calendar-day.holiday.weekend {
    background: #dc2626;
    color: white;
  }

  .calendar-day.holiday.past {
    background: #f87171;
    color: white;
  }





  /* Settings Modal Styles */
  .settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
  }

  .settings-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }

  .settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .settings-header h2 {
    margin: 0;
    color: #374151;
  }

  .close-settings {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
  }

  .close-settings:hover {
    background: rgba(0, 0, 0, 0.1);
  }

  .settings-section {
    margin-bottom: 2rem;
  }

  .settings-section h3 {
    margin-bottom: 1rem;
    color: #374151;
  }

  .color-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }

  .color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    transition: background 0.3s ease;
  }

  .color-option:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .color-option.active {
    background: rgba(249, 158, 11, 0.1);
  }

  .color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: border 0.3s ease;
  }

  .color-option.active .color-preview {
    border-color: #f59e0b;
  }

  .default-theme {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
  }

  .blue-theme {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
  }

  .green-theme {
    background: linear-gradient(45deg, #10b981, #34d399);
  }

  .purple-theme {
    background: linear-gradient(45deg, #8b5cf6, #a78bfa);
  }

  .red-theme {
    background: linear-gradient(45deg, #ef4444, #f87171);
  }

  .custom-color-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .color-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .color-input-group label {
    min-width: 120px;
    color: #374151;
    font-weight: 500;
  }

  .color-input-group input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }


  /* 主内容区域 */
  .main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    min-height: 0;
    position: relative;
    z-index: 1;
  }

  .container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(148, 163, 184, 0.1);
    max-width: 60vw;
    width: 100%;
    margin: 0 auto;
    margin-top: -100px;
    position: relative;
    box-sizing: border-box;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* 统计面板样式 */
  .stats-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 50vw;
    margin-left: auto;
    margin-right: auto;
  }

  .stat-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70px;
  }

  .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.25rem;
    line-height: 1;
  }

  .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(156, 163, 175, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.3rem;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
    transition: width 0.8s ease-out;
  }

  h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 500;
    color: #374151;
    letter-spacing: -0.02em;
  }

  .calendar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 1rem auto;
    padding: 0 1rem;
  }

  #calendar-year-title {
    text-align: left;
    margin-bottom: 0;
    font-size: 2rem;
  }

  .calendar-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .calendar-select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .calendar-select:hover {
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(249, 158, 11, 0.2);
  }

  .calendar-select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(249, 158, 11, 0.1);
  }

  .holidays-legend {
    max-width: 1200px;
    margin: 1rem auto 1.5rem auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .holidays-legend h3 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1.1rem;
  }

  .holiday-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 1rem 0.5rem 0;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    font-size: 0.85rem;
  }

  .holiday-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .holiday-date {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-left: auto;
  }

  .country-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    padding: 0.5rem;
  }

  .country-loading::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .subtitle {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 400;
    color: #94a3b8;
    letter-spacing: 0.01em;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14px, 1fr));
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(148, 163, 184, 0.1);
    overflow: hidden;
    box-sizing: border-box;
  }

  .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
  }

  .dot:hover {
    transform: scale(1.3);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .dot.past {
    background-color: #a3a3a3; /* gray-400 */
  }

  .dot.today {
    background-color: var(--primary-color);
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }

  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
  }

  /* 工具提示样式 */
  .tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
  }

  /* 底部Footer */
  .footer {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.5rem 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
  }



  .footer-bottom {
    text-align: center;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .footer-icon {
    font-size: 1.2rem;
    opacity: 0.7;
  }

  .footer-contact {
    text-align: center;
    margin-top: 0.5rem;
  }

  .contact-email {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
  }

  .contact-email:hover {
    color: #3b82f6;
  }

  .year-badge {
    background: rgba(251, 191, 36, 0.8);
    color: #1f2937;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-weight: 500;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.3);
  }

  /* Tab Content Styles */
  .tab-content {
    display: none;
  }

  .tab-content.active {
    display: block;
  }

  .calendar-full-width {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
    width: 100%;
    margin: 0;
    position: relative;
    box-sizing: border-box;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }

  .month-stat {
    text-align: center;
  }

  .month-stat-number {
    font-weight: 600;
    color: #374151;
  }

  /* Goals页面样式 */
.goals-full-width {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.goals-header {
  text-align: center;
  margin-bottom: 3rem;
}

.goals-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.goals-header .subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 0;
}

/* 个人目标样式 */
.goal-input-section {
  margin-bottom: 2rem;
}

.goal-input-container {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.goal-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.goal-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(249, 158, 11, 0.1);
}

.add-goal-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.add-goal-btn:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.add-goal-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.goals-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.goal-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.goal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.delete-goal-btn {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-goal-btn:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.goal-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.goal-checkin-btn {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.goal-checkin-btn:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.goal-checkin-btn.checked {
  background: #10b981;
}

.goal-checkin-btn.checked:hover {
  background: #059669;
}

.goal-dots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8px, 1fr));
  gap: 3px;
  flex: 1;
  min-height: 40px;
  align-items: center;
}

.goal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e5e7eb;
  transition: all 0.3s ease;
}

.goal-dot.checked {
  background-color: #10b981;
}

.goal-dot.past {
  background-color: #9ca3af;
}

.goal-dot.future {
  background-color: var(--secondary-color);
}

/* 标题行样式 */
.goals-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.goals-title-row h1 {
  margin: 0;
}

.data-info-icon-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  opacity: 0.7;
  flex-shrink: 0;
  color: #64748b;
}

.data-info-icon-btn:hover {
  opacity: 1;
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.1);
}

/* 数据说明弹窗样式 */
.data-info-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.data-info-popup.show {
  opacity: 1;
  visibility: visible;
}

.data-info-popup-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.data-info-popup.show .data-info-popup-content {
  transform: scale(1);
}

.data-info-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.data-info-popup-header h4 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e40af;
}

.popup-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  line-height: 1;
}

.popup-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.data-info-popup-body p {
  margin: 0 0 1.5rem 0;
  color: #374151;
  line-height: 1.6;
  font-size: 1rem;
}

/* 弹窗内反馈消息样式 */
.sync-feedback-message {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  animation: slideIn 0.3s ease-out;
}

.sync-feedback-message .sync-feedback-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #059669;
}

.sync-feedback-message .sync-feedback-content p {
  margin: 0;
  color: #374151;
  line-height: 1.5;
  font-size: 0.9rem;
}

.sync-feature-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.sync-feature-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sync-feature-btn:active {
  transform: translateY(0);
}

.sync-icon {
  font-size: 1.1rem;
}

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

/* 中等屏幕优化 */
@media (min-width: 769px) and (max-width: 1024px) {
  .calendar-full-width {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .calendar-header-row {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  
  #calendar-year-title {
    font-size: 2.2rem;
    margin-bottom: 0;
  }
  
  .calendar-controls {
    gap: 1rem;
  }
  
  .calendar-select {
    min-width: 120px;
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
  }
  
  .holidays-legend {
    margin: 1.5rem auto 2rem auto;
    padding: 1rem;
  }
  
  .holidays-legend h3 {
    font-size: 1.2rem;
  }
  
  .holiday-item {
    margin: 0.2rem 0.4rem 0.2rem 0;
    padding: 0.15rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .holiday-color {
    width: 10px;
    height: 10px;
    margin-right: 0.4rem;
  }
  
  .holiday-date {
    font-size: 0.75rem;
    margin-left: 0.4rem;
  }
  
  .months-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0.5rem;
  }
  
  .month-card {
    padding: 1.25rem;
    min-height: 280px;
  }
  
  .month-name {
    font-size: 1.4rem;
  }
  
  .month-year {
    font-size: 1rem;
  }
  
  .calendar-day {
    font-size: 0.8rem;
    min-height: 28px;
    padding: 0.15rem;
  }
  
  .calendar-day-header {
    font-size: 0.75rem;
    padding: 0.2rem;
  }
  
  .calendar-day.today {
    font-size: 0.85rem;
  }
}

/* 防止水平滚动的全局规则 */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .navbar {
    padding: 0.4rem 0.5rem;
  }
  
  .nav-brand {
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
  }
  
  .nav-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .settings-btn,
  .theme-toggle-btn {
    font-size: 0.9rem;
    padding: 0.3rem;
  }
  
  .main-content {
    padding: 0.25rem;
  }
  
  .container {
    padding: 0.75rem;
  }
  
  .stats-panel {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .stat-item {
    padding: 0.5rem;
    min-height: 60px;
  }
  
  .stat-number {
    font-size: 1.2rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(10px, 1fr));
    gap: 3px;
    padding: 0.5rem;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  h1 {
    font-size: 1.6rem;
  }
  
  .subtitle {
    font-size: 0.85rem;
  }
  
  .months-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .month-card {
    padding: 0.4rem;
    min-height: 160px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .month-name {
    font-size: 1rem;
  }
  
  .month-year {
    font-size: 0.75rem;
  }
  
  .calendar-day {
    font-size: 0.55rem;
    min-height: 16px;
    padding: 0.02rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .calendar-day-header {
    font-size: 0.5rem;
    padding: 0.05rem 0.02rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .calendar-day.today {
    font-size: 0.65rem;
  }
  
  .holidays-legend {
    margin: 0.4rem auto 0.6rem auto;
    padding: 0.4rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .holidays-legend h3 {
    font-size: 0.85rem;
  }
  
  .holiday-item {
    margin: 0.1rem 0.2rem 0.1rem 0;
    padding: 0.05rem 0.3rem;
    font-size: 0.65rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .holiday-color {
    width: 6px;
    height: 6px;
    margin-right: 0.2rem;
  }
  
  .holiday-date {
    font-size: 0.55rem;
    margin-left: 0.2rem;
  }
  
  .calendar-controls {
    flex-direction: column;
    gap: 0.4rem;
  }
  
  .calendar-select {
    min-width: 100%;
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }
  
  #calendar-year-title {
    font-size: 1.6rem;
  }
  
  .goals-full-width,
  .calendar-full-width,
  .contact-full-width {
    padding: 0.75rem;
    margin: 0.25rem;
  }
  
  .goal-input-container {
    gap: 0.5rem;
  }
  
  .goal-input {
    font-size: 0.9rem;
    padding: 0.6rem;
  }
  
  .add-goal-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .goal-card {
    padding: 1rem;
  }
  
  .goal-title {
    font-size: 1rem;
  }
  
  .goal-checkin-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .goal-dots {
    gap: 1px;
    min-height: 25px;
  }
  
  .goal-dot {
    width: 5px;
    height: 5px;
  }
  
  .contact-info-card {
    padding: 1.5rem 1rem;
  }
  
  .contact-info-icon {
    font-size: 2rem;
  }
  
  .contact-info-content h3 {
    font-size: 1.3rem;
  }
  
  .contact-info-content p {
    font-size: 0.9rem;
  }
  
  .contact-link {
    font-size: 1rem;
  }
  
  .contact-buttons {
    gap: 0.5rem;
  }
  
  .contact-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }
  
  /* Documents页面移动端优化 */
  .documents-full-width {
    padding: 0.75rem;
    margin: 0.25rem;
  }
  
  .documents-header h1 {
    font-size: 1.8rem;
  }
  
  .documents-title-row {
    gap: 0.3rem;
  }
  
  .documents-header .subtitle {
    font-size: 0.9rem;
  }
  
  .document-input-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .document-input {
    min-width: 100%;
    font-size: 0.9rem;
    padding: 0.6rem;
  }
  
  .add-document-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .documents-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .document-card {
    padding: 1rem;
  }
  
  .document-title {
    font-size: 1.1rem;
  }
  
  .document-info {
    padding: 0.5rem;
  }
  
  .document-info-label,
  .document-info-value {
    font-size: 0.8rem;
  }
  
  .document-status {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
  
  .settings-content {
    padding: 1rem;
    width: 98%;
  }
  
  .color-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .color-option {
    padding: 0.5rem;
  }
  
  .color-option span {
    font-size: 0.75rem;
  }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
  .navbar {
    padding: 0.3rem 0.5rem;
  }
  
  .nav-container {
    min-height: 35px;
  }
  
  .main-content {
    padding: 0.25rem;
  }
  
  .container {
    padding: 0.75rem;
  }
  
  .stats-panel {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .stat-item {
    padding: 0.5rem;
    min-height: 50px;
  }
  
  .stat-number {
    font-size: 1.1rem;
  }
  
  .stat-label {
    font-size: 0.6rem;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(10px, 1fr));
    gap: 3px;
    padding: 0.5rem;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }
  
  .subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .calendar-header-row {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
  }
  
  #calendar-year-title {
    font-size: 1.4rem;
    margin-bottom: 0;
  }
  
  .calendar-controls {
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  
  .calendar-select {
    min-width: 80px;
    font-size: 0.8rem;
    padding: 0.3rem 0.4rem;
  }
  
  .holidays-legend {
    margin: 0.4rem auto 0.6rem auto;
    padding: 0.4rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .holidays-legend h3 {
    font-size: 0.85rem;
  }
  
  .holiday-item {
    margin: 0.1rem 0.2rem 0.1rem 0;
    padding: 0.05rem 0.3rem;
    font-size: 0.65rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .months-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.4rem;
  }
  
  .month-card {
    padding: 0.4rem;
    min-height: 160px;
  }
  
  .month-name {
    font-size: 0.9rem;
  }
  
  .month-year {
    font-size: 0.7rem;
  }
  
  .calendar-day {
    font-size: 0.55rem;
    min-height: 16px;
    padding: 0.05rem;
  }
  
  .calendar-day-header {
    font-size: 0.5rem;
    padding: 0.05rem;
  }
  
  .calendar-day.today {
    font-size: 0.6rem;
  }
  
  .goals-full-width,
  .calendar-full-width,
  .contact-full-width {
    padding: 0.75rem;
    margin: 0.25rem;
  }
  
  .goal-input-container {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .goal-content {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  
  .goal-dots {
    min-height: 20px;
  }
  
  .goal-dot {
    width: 4px;
    height: 4px;
  }
  
  .contact-content {
    min-height: 200px;
  }
  
  .contact-info-card {
    padding: 1.5rem;
  }
  
  .contact-info-icon {
    font-size: 2rem;
  }
  
  .contact-info-content h3 {
    font-size: 1.3rem;
  }
  
  .contact-info-content p {
    font-size: 0.9rem;
  }
  
  .contact-actions {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }
  
  .contact-buttons {
    flex-direction: row;
    gap: 0.5rem;
  }
}

/* Contact Us页面样式 */
.contact-full-width {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Documents页面样式 */
.documents-full-width {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.documents-header {
  text-align: center;
  margin-bottom: 2rem;
}

.documents-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.documents-title-row h1 {
  margin: 0;
}

.documents-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.documents-header .subtitle {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 400;
}

/* 证件输入区域 */
.document-input-section {
  margin-bottom: 2rem;
}

.document-input-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.document-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.document-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(249, 158, 11, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.add-document-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(249, 158, 11, 0.3);
}

.add-document-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 158, 11, 0.4);
}

.add-document-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 12px rgba(249, 158, 11, 0.2);
}

/* 证件列表 */
.documents-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  padding: 0.5rem;
}

/* 证件卡片 */
.document-card {
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid transparent;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.document-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 根据到期时间设置边框颜色 */
.document-card.urgent {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.02));
}

.document-card.warning {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.02));
}

.document-card.safe {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
}

.document-card.expired {
  border-color: #6b7280;
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.05), rgba(107, 114, 128, 0.02));
}

.document-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.document-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  flex: 1;
}

.delete-document-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.delete-document-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.1);
}

.document-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.document-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.document-info-label {
  font-weight: 600;
  color: #475569;
  font-size: 0.9rem;
}

.document-info-value {
  color: #1e293b;
  font-weight: 500;
  font-size: 0.9rem;
}

.document-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.document-status.urgent {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.document-status.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.document-status.safe {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.document-status.expired {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

.document-status-icon {
  font-size: 1rem;
}

/* 空状态 */
.empty-documents {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
}

.empty-documents-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-documents h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #475569;
}

.empty-documents p {
  font-size: 1rem;
  line-height: 1.6;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-header .subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 0;
}

.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.contact-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-info-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.contact-info-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #374151;
}

.contact-info-content p {
  margin: 0 0 2rem 0;
  color: #6b7280;
  line-height: 1.6;
  font-size: 1.1rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(249, 158, 11, 0.1);
}

.contact-link:hover {
  color: #d97706;
  background: rgba(249, 158, 11, 0.2);
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.875rem 1.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.contact-btn:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 158, 11, 0.3);
}



/* 空状态样式 */
.empty-goals {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.empty-goals-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-goals h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #374151;
}

.empty-goals p {
  font-size: 1rem;
  margin: 0;
}

/* 深色主题下的目标样式 */
body.dark .goals-full-width {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body.dark .goals-header h1 {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark .goals-header .subtitle {
  color: #9ca3af;
}

body.dark .goal-input {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(148, 163, 184, 0.3);
  color: #f1f5f9;
}

body.dark .goal-card {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark .goal-title {
  color: #f1f5f9;
}

body.dark .goal-dot {
  background-color: #64748b;
}

body.dark .goal-dot.checked {
  background-color: #10b981;
}

body.dark .goal-dot.past {
  background-color: #475569;
}

body.dark .goal-dot.future {
  background-color: var(--secondary-color);
}

body.dark .data-info-icon-btn:hover {
  background: rgba(59, 130, 246, 0.2);
}

body.dark .data-info-popup {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

body.dark .data-info-popup-content {
  background: rgba(51, 65, 85, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(148, 163, 184, 0.1);
}

body.dark .data-info-popup-header h4 {
  color: #60a5fa;
}

body.dark .popup-close-btn {
  color: #9ca3af;
}

body.dark .popup-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

body.dark .data-info-popup-body p {
  color: #d1d5db;
}

body.dark .sync-feedback-message {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

body.dark .sync-feedback-message .sync-feedback-content h4 {
  color: #34d399;
}

body.dark .sync-feedback-message .sync-feedback-content p {
  color: #d1d5db;
}



body.dark .empty-goals {
  color: #9ca3af;
}

/* Contact Us深色主题 */
body.dark .contact-full-width {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body.dark .contact-header h1 {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark .contact-header .subtitle {
  color: #9ca3af;
}

body.dark .contact-info-card {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark .contact-info-content h3 {
  color: #f1f5f9;
}

body.dark .contact-info-content p {
  color: #d1d5db;
}

body.dark .contact-link {
  color: #60a5fa;
}

body.dark .contact-link:hover {
  color: #93c5fd;
}



body.dark .empty-goals h3 {
  color: #f1f5f9;
}

/* 深色主题下的Documents页面样式 */
body.dark .documents-full-width {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark .documents-header h1 {
  color: #f1f5f9;
}

body.dark .documents-header .subtitle {
  color: #94a3b8;
}

body.dark .document-input {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(148, 163, 184, 0.3);
  color: #f1f5f9;
}

body.dark .document-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(249, 158, 11, 0.2);
  background: rgba(51, 65, 85, 0.9);
}

body.dark .document-card {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(148, 163, 184, 0.3);
}

body.dark .document-title {
  color: #f1f5f9;
}

body.dark .document-info {
  background: rgba(71, 85, 105, 0.6);
  border-left-color: var(--primary-color);
}

body.dark .document-info-label {
  color: #94a3b8;
}

body.dark .document-info-value {
  color: #f1f5f9;
}

body.dark .empty-documents {
  color: #94a3b8;
}

body.dark .empty-documents h3 {
  color: #f1f5f9;
}

body.dark .documents-title-row h1 {
  color: #f1f5f9;
}

/* 移动端响应式 */
@media (max-width: 768px) {
  /* 导航栏优化 */
  .navbar {
    padding: 0.5rem 0.75rem;
  }
  
  .nav-container {
    min-height: 40px;
  }
  
  .nav-brand {
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
  }
  
  .nav-menu {
    gap: 0.3rem;
  }
  
  .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .settings-btn,
  .theme-toggle-btn {
    font-size: 1rem;
    padding: 0.4rem;
  }
  
  /* 主内容区域优化 */
  .main-content {
    padding: 0.5rem;
  }
  
  .container {
    padding: 1rem;
    margin: 0;
    width: 100%;
    max-width: 100vw;
    border-radius: 12px;
  }
  
  /* 统计面板优化 */
  .stats-panel {
    padding: 0.75rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 100%;
    margin: 0;
  }
  
  .stat-item {
    padding: 0.75rem;
    min-height: 70px;
  }
  
  .stat-number {
    font-size: 1.3rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  /* 日历网格优化 */
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(12px, 1fr));
    gap: 4px;
    width: 100%;
    padding: 0.75rem;
  }
  
  .dot {
    width: 12px;
    height: 12px;
  }
  
  /* 标题优化 */
  h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  /* 页脚优化 */
  .footer-bottom {
    font-size: 0.8rem;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0.5rem;
  }
  
  .year-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    margin-left: 0.2rem;
  }
  
  .contact-email {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .footer-separator {
    margin: 0 0.2rem;
  }
  
  /* Goals页面优化 */
  .goals-full-width {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .goals-header h1 {
    font-size: 2rem;
  }
  
  .goals-header .subtitle {
    font-size: 1rem;
  }
  
  .goal-input-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .goal-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .goals-title-row {
    gap: 0.75rem;
  }
  
  .data-info-icon-btn {
    font-size: 1rem;
    padding: 0.4rem;
  }
  
  .data-info-popup-content {
    padding: 1.5rem;
    width: 95%;
  }
  
  .data-info-popup-header h4 {
    font-size: 1.1rem;
  }
  
  .popup-close-btn {
    font-size: 1.3rem;
  }
  
  /* Contact Us移动端响应式 */
  .contact-content {
    min-height: 300px;
  }
  
  .contact-full-width {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .contact-header h1 {
    font-size: 2rem;
  }
  
  .contact-header .subtitle {
    font-size: 1rem;
  }
  
  .contact-info-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-info-icon {
    font-size: 2.5rem;
  }
  
  .contact-info-content h3 {
    font-size: 1.5rem;
  }
  
  .contact-info-content p {
    font-size: 1rem;
  }
  
  .contact-link {
    font-size: 1.1rem;
  }
  
  .contact-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .contact-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* 日历页面优化 */
  .calendar-full-width {
    padding: 0.5rem;
    margin: 0.25rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .calendar-header-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
  
  #calendar-year-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .calendar-controls {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .calendar-select {
    min-width: 100px;
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
  }
  
  .country-loading {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  
  /* 节假日图例优化 */
  .holidays-legend {
    margin: 0.5rem auto 0.75rem auto;
    padding: 0.5rem;
    border-radius: 8px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .holidays-legend h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .holiday-item {
    margin: 0.1rem 0.2rem 0.1rem 0;
    padding: 0.05rem 0.3rem;
    font-size: 0.65rem;
    border-radius: 4px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .holiday-color {
    width: 8px;
    height: 8px;
    margin-right: 0.3rem;
  }
  
  .holiday-date {
    font-size: 0.6rem;
    margin-left: 0.3rem;
  }
  
  /* 月份网格优化 */
  .months-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.25rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .month-card {
    padding: 0.5rem;
    min-height: 180px;
    border-radius: 8px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .month-header {
    margin-bottom: 0.5rem;
  }
  
  .month-name {
    font-size: 1.1rem;
    margin-bottom: 0.1rem;
  }
  
  .month-year {
    font-size: 0.8rem;
  }
  
  /* 日历头部优化 */
  .calendar-header {
    margin-bottom: 0.25rem;
  }
  
  .calendar-day-header {
    font-size: 0.55rem;
    padding: 0.1rem 0.05rem;
    font-weight: 500;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* 日历天数优化 */
  .month-calendar {
    gap: 1px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .calendar-day {
    font-size: 0.6rem;
    min-height: 18px;
    padding: 0.05rem;
    border-radius: 2px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .calendar-day.today {
    font-weight: 600;
    font-size: 0.7rem;
  }
  
  .calendar-day.holiday {
    font-weight: 500;
  }
  
  /* 设置面板优化 */
  .settings-content {
    padding: 1.5rem;
    width: 95%;
    max-width: 400px;
  }
  
  .settings-header h2 {
    font-size: 1.3rem;
  }
  
  .color-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .color-option {
    padding: 0.75rem;
  }
  
  .color-option span {
    font-size: 0.8rem;
  }
  
  .custom-color-inputs {
    flex-direction: column;
    gap: 1rem;
  }
  
  .color-input-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .color-input-group label {
    font-size: 0.9rem;
  }
  
  .color-input-group input[type="color"] {
    width: 100%;
    height: 40px;
  }
  

  
  .goal-dots {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(6px, 1fr));
    gap: 2px;
  }
  
  .goal-dot {
    width: 6px;
    height: 6px;
  }
  
  .empty-goals {
    padding: 2rem 1rem;
  }
  
  .empty-goals-icon {
    font-size: 3rem;
  }
  
  .empty-goals h3 {
    font-size: 1.3rem;
  }
  
  /* Goals页面进一步优化 */
  .goals-header h1 {
    font-size: 1.8rem;
  }
  
  .goals-header .subtitle {
    font-size: 0.9rem;
  }
  
  .goal-input-container {
    flex-direction: column;
    gap: 0.75rem;
    max-width: 100%;
  }
  
  .goal-input {
    font-size: 0.95rem;
    padding: 0.75rem;
  }
  
  .add-goal-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .goal-card {
    padding: 1.25rem;
  }
  
  .goal-title {
    font-size: 1.1rem;
  }
  
  .goal-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .goal-checkin-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .goal-dots {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(6px, 1fr));
    gap: 2px;
    min-height: 30px;
  }
  
  .goal-dot {
    width: 6px;
    height: 6px;
  }
  
  .delete-goal-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}