/* 全局样式 */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --background-light: #f3f4f6;
    --card-background-light: #ffffff;
    --text-light: #1f2937;
    --border-light: #e5e7eb;
  
    --background-dark: #1f2937;
    --card-background-dark: #374151;
    --text-dark: #f3f4f6;
    --border-dark: #4b5563;
  }
  
  body {
    background: var(--background-light);
    color: var(--text-light);
    transition: all 0.3s ease;
  }
  
  body.dark-mode {
    background: var(--background-dark);
    color: var(--text-dark);
  }
  
  .page-wrapper {
    min-height: 100vh;
    padding: 20px 0;
  }
  
  /* 主题切换按钮 */
  .theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
  }
  
  .theme-toggle:hover {
    transform: scale(1.1);
  }
  
  /* 系统标题 */
  .system-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }
  
  .system-title i {
    font-size: 2.5rem;
  }
  
  .system-title h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
  }
  
  /* 卡片样式 */
  .custom-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    background: var(--card-background-light);
    transition: all 0.3s ease;
  }
  
  .dark-mode .custom-card {
    background: var(--card-background-dark);
  }
  
  .custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
  .custom-card .card-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 15px 20px;
    font-weight: bold;
  }
  
  .custom-card .card-header i {
    margin-right: 10px;
  }
  
  /* 表单样式 */
  .custom-input {
    border-radius: 10px;
    border: 2px solid var(--border-light);
    padding: 10px 15px;
    transition: all 0.3s ease;
  }
  
  .dark-mode .custom-input {
    background: var(--card-background-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
  }
  
  .custom-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
  }
  
  /* 按钮样式 */
  .custom-btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    color: white;
    padding: 10px 20px;
    transition: all 0.3s ease;
  }
  
  .custom-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
  }
  
  .custom-btn-success {
    background: var(--success-color);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 8px 16px;
    transition: all 0.3s ease;
  }
  
  .custom-btn-success:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
  }
  
  .custom-btn-danger {
      background: var(--danger-color);
      border: none;
      border-radius: 10px;
      color: white;
      padding: 8px 16px;
      transition: all 0.3s ease;
  }
  
  .custom-btn-danger:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
  }
  
  /* 表格样式 */
  .custom-table {
      width: 100%;
      margin-bottom: 0;
  }
  
  .custom-table th {
      background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
      color: white;
      padding: 15px;
      border: none;
  }
  
  .custom-table td {
      padding: 15px;
      border-color: var(--border-light);
      vertical-align: middle;
  }
  
  .dark-mode .custom-table td {
      border-color: var(--border-dark);
  }
  
  /* 加载动画 */
  .loading {
      display: none;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 1000;
  }
  
  .custom-spinner {
      position: relative;
      width: 100px;
      height: 100px;
  }
  
  .spinner-ring {
      position: absolute;
      width: 100%;
      height: 100%;
      border: 4px solid transparent;
      border-top-color: var(--primary-color);
      border-right-color: var(--secondary-color);
      border-radius: 50%;
      animation: spin 1s linear infinite;
  }
  
  .spinner-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: white;
      font-weight: bold;
  }
  
  @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
  }
  
  .overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(5px);
      z-index: 999;
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
      .system-title {
          flex-direction: column;
          gap: 10px;
      }
      
      .custom-card {
          margin: 10px;
      }
      
      .table-responsive {
          margin: 0 -15px;
      }
  }
  
  /* 提示框样式 */
  .alert {
      border-radius: 10px;
      border: none;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .alert-success {
      background: linear-gradient(45deg, var(--success-color), #4ade80);
      color: white;
  }
  
  .alert-danger {
      background: linear-gradient(45deg, var(--danger-color), #f87171);
      color: white;
  }
  
  /* 添加以下CSS样式到你的styles.css文件 */
  
  /* 密码选项卡片样式 */
  .custom-card {
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      border: none;
      transition: all 0.3s ease;
  }
  
  /* 表单控件的额外样式 */
  .form-check-input:checked {
      background-color: #6c5ce7;
      border-color: #6c5ce7;
  }
  
  /* 渐变按钮 */
  .btn-gradient {
      background: linear-gradient(135deg, #6c5ce7 0%, #4834d4 100%);
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 6px;
      transition: all 0.3s ease;
  }
  
  .btn-gradient:hover {
      background: linear-gradient(135deg, #4834d4 0%, #6c5ce7 100%);
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
      color: white;
  }
  
  .btn-gradient-secondary {
      background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 6px;
      transition: all 0.3s ease;
  }
  
  .btn-gradient-secondary:hover {
      background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
      color: white;
  }
  
  
  /* 历史记录卡片样式 */
  .history-card {
      margin-bottom: 20px !important;
  }
  
  .history-card .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  
  .history-card .btn-group {
      gap: 10px;
  }
  
  /* 导入表单 */
  .nav-tabs .nav-link {
      color: var(--text-color);
      border: none;
      border-bottom: 2px solid transparent;
      background: transparent;
  }
  
  .nav-tabs .nav-link.active {
      color: var(--primary-color);
      background: transparent;
      border-bottom: 2px solid var(--primary-color);
  }
  
  .tab-content {
      padding: 15px 0;
  }
  
  
  
  /* 导入表格 */
  #successAccountsTable tbody tr:hover,
  #failedAccountsTable tbody tr:hover {
      background-color: var(--hover-color);
  }
  
  /* 卡片折叠展开样式 */
  .card-header[role="button"] {
      cursor: pointer;
  }
  
  .card-header .fa-chevron-down {
      transition: transform 0.3s ease;
  }
  
  .card-header[aria-expanded="true"] .fa-chevron-down {
      transform: rotate(180deg);
  }
  
  /* 卡片动画 */
  .collapse {
      transition: all 0.3s ease-out;
  }
  
  /* 设置历史记录容器样式 */
  #historyContainer {
      padding: 15px;
  }
  
  /* 历史记录卡片样式 */
  .history-record {
      background-color: var(--card-background-light);
      transition: all 0.3s ease;
  }
  
  .dark-mode .history-record {
      background-color: var(--card-background-dark);
  }
  
  /* 添加卡片展开/折叠按钮样式 */
  .collapse-toggle-btn {
      background: none;
      border: none;
      color: inherit;
      cursor: pointer;
      padding: 0;
      margin-left: 8px;
      transition: transform 0.3s;
  }
  
  .collapse-toggle-btn.collapsed .fa-chevron-down {
      transform: rotate(-90deg);
  }
  
  /* 进度条容器样式 */
  .progress-container {
      margin-bottom: 20px;
  }
  
  .progress {
      height: 20px;
      border-radius: 10px;
      background-color: #e9ecef;
      overflow: hidden;
  }
  
  .progress-bar {
      background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
      color: white;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: width 0.3s ease;
  }
  
  .progress-bar-striped {
      background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
      background-size: 1rem 1rem;
  }
  
  .progress-bar-animated {
      animation: progress-bar-stripes 1s linear infinite;
  }
  
  @keyframes progress-bar-stripes {
      from { background-position: 1rem 0; }
      to { background-position: 0 0; }
  }
  
  #progressMessage {
      font-weight: bold;
      color: var(--primary-color);
  }
  
  #progressStats {
      font-size: 0.9rem;
      color: var(--text-light);
  }
  
  .dark-mode #progressStats {
      color: var(--text-dark);
  }

  /* 分页样式 */
  .pagination {
      margin: 0;
  }

  .pagination .page-item .page-link {
      border: 1px solid var(--border-light);
      color: var(--text-light);
      background-color: var(--card-background-light);
      padding: 0.375rem 0.75rem;
      margin: 0 2px;
      border-radius: 4px;
      transition: all 0.2s ease;
  }

  .dark-mode .pagination .page-item .page-link {
      border-color: var(--border-dark);
      color: var(--text-dark);
      background-color: var(--card-background-dark);
  }

  .pagination .page-item .page-link:hover {
      background-color: var(--primary-color);
      border-color: var(--primary-color);
      color: white;
  }

  .pagination .page-item.active .page-link {
      background-color: var(--primary-color);
      border-color: var(--primary-color);
      color: white;
  }

  .pagination .page-item.disabled .page-link {
      opacity: 0.5;
      cursor: not-allowed;
  }

  .pagination .page-item.disabled .page-link:hover {
      background-color: var(--card-background-light);
      border-color: var(--border-light);
      color: var(--text-light);
  }

  .dark-mode .pagination .page-item.disabled .page-link:hover {
      background-color: var(--card-background-dark);
      border-color: var(--border-dark);
      color: var(--text-dark);
  }

  /* 页面信息样式 */
  #queryPageInfo,
  #historyPageInfo {
      font-size: 0.9rem;
      color: var(--text-light);
      opacity: 0.8;
  }

  .dark-mode #queryPageInfo,
  .dark-mode #historyPageInfo {
      color: var(--text-dark);
  }

  /* 下载模态框样式优化 */
  #downloadConfigModal .form-check {
      margin-bottom: 0.5rem;
  }

  #downloadConfigModal .form-check-input:checked {
      background-color: var(--primary-color);
      border-color: var(--primary-color);
  }

  #downloadConfigModal .alert-info {
      background-color: rgba(99, 102, 241, 0.1);
      border-color: rgba(99, 102, 241, 0.2);
      color: var(--primary-color);
  }

  #downloadConfigModal code {
      background-color: rgba(99, 102, 241, 0.1);
      color: var(--primary-color);
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      font-family: 'Courier New', monospace;
  }