body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  background: url('bg-container.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #000;
  text-shadow: 1px 1px 2px white, -1px -1px 2px white, 1px -1px 2px white, -1px 1px 2px white;
}

.container {
  box-sizing: border-box;
  width: 95%;
  max-width: 1400px;
  margin: 30px auto;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.95) 100%);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

h2 {
  font-size: 2.1rem;
  letter-spacing: 2px;
  color: #000;
  margin: 0 0 18px 0;
  text-shadow: 1px 1px 2px white, -1px -1px 2px white, 1px -1px 2px white, -1px 1px 2px white;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

.auth-btn {
  background: linear-gradient(90deg, #e16ba0 60%, #5b6ee1 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #e16ba022;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.auth-btn:hover {
  background: linear-gradient(90deg, #5b6ee1 60%, #e16ba0 100%);
  box-shadow: 0 4px 16px #e16ba033;
}

.logout-btn {
  background: linear-gradient(90deg, #ff6b6b 60%, #ffa726 100%);
}

.logout-btn:hover {
  background: linear-gradient(90deg, #ffa726 60%, #ff6b6b 100%);
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
  .auth-btn, .admin-btn, .admin-form button, .actions button {
    min-height: 44px; /* iOS推荐的最小触摸目标尺寸 */
    min-width: 44px;
  }
  
  .auth-btn:active, .admin-btn:active, .admin-form button:active, .actions button:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
  
  .nav-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  /* 禁用hover效果，使用active替代 */
  .auth-btn:hover, .admin-btn:hover, .admin-form button:hover, .actions button:hover {
    transform: none;
  }
  
  .nav-card:hover {
    transform: none;
  }
}

/* 登录按钮样式 */
.login-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.login-confirm-btn {
  background: linear-gradient(90deg, #27ae60 60%, #2ecc71 100%);
}

.login-confirm-btn:hover {
  background: linear-gradient(90deg, #2ecc71 60%, #27ae60 100%);
}

.login-cancel-btn {
  background: linear-gradient(90deg, #95a5a6 60%, #7f8c8d 100%);
}

.login-cancel-btn:hover {
  background: linear-gradient(90deg, #7f8c8d 60%, #95a5a6 100%);
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-form {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* 消息提示样式 */
#msg {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 8px 0;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.admin-form input {
  border: 2px solid #e0e3e8;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 15px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  transition: all 0.3s ease;
  outline: none;
  min-width: 140px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.admin-form input:focus {
  border-color: #2196f3;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
  transform: translateY(-1px);
}

.admin-form button {
  background: linear-gradient(90deg, #e16ba0 60%, #5b6ee1 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 28px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #e16ba022;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-form button:hover {
  background: linear-gradient(90deg, #5b6ee1 60%, #e16ba0 100%);
  box-shadow: 0 4px 16px #e16ba033;
}

/* 通用按钮样式（添加/登录） */
.admin-btn, .admin-form button {
  background: linear-gradient(90deg, #e16ba0 60%, #5b6ee1 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 28px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #e16ba022;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.admin-btn:hover, .admin-form button:hover {
  background: linear-gradient(90deg, #5b6ee1 60%, #e16ba0 100%);
  box-shadow: 0 4px 16px #e16ba033;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(224, 227, 232, 0.5);
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
  min-width: 700px;
  table-layout: fixed; /* 固定表格布局 */
}

th, td {
  border: none;
  padding: 5px 5px;
  text-align: center;
  font-size: 15px;
  color: #2c3e50;
  font-weight: 500;
  word-wrap: break-word; /* 允许单词换行 */
  word-break: break-all; /* 强制换行 */
  overflow: hidden; /* 隐藏溢出内容 */
  text-overflow: ellipsis; /* 超出显示省略号 */
  white-space: normal; /* 允许换行 */
  height: 60px; /* 固定行高 */
  vertical-align: middle; /* 垂直居中 */
  display: table-cell; /* 确保保持表格单元格显示 */
}

/* 精确列宽比例分配 */
th:nth-child(1), td:nth-child(1) { width: 8%; }   /* ID列 */
th:nth-child(2), td:nth-child(2) { width: 10%; }  /* 分组列 */
th:nth-child(3), td:nth-child(3) { width: 18%; }  /* 名称列 */
th:nth-child(4), td:nth-child(4) { width: 30%; }  /* 网址列 */
th:nth-child(5), td:nth-child(5) { width: 20%; }  /* 图标列 */
th:nth-child(6), td:nth-child(6) { width: 14%; }  /* 操作列（调整为14%确保总和100%） */

/* 多行文本显示支持 */
td {
  white-space: normal; /* 允许换行 */
  line-height: 1.4; /* 行高设置 */
  max-height: 60px; /* 最大高度限制 */
  overflow: hidden; /* 隐藏溢出 */
  text-overflow: ellipsis; /* 超出显示省略号 */
  display: table-cell; /* 确保保持表格单元格显示 */
  vertical-align: middle; /* 垂直居中 */
}

/* 操作列特殊处理 - 保持单行显示 */
td:nth-child(6) {
  white-space: nowrap; /* 操作按钮不换行 */
  overflow: visible; /* 操作列允许溢出 */
}

/* ID列特殊处理 - 保持单行显示 */
td:nth-child(1) {
  white-space: nowrap; /* ID不换行 */
  overflow: hidden; /* 隐藏溢出 */
}

/* 网址列特殊处理 - 允许长网址换行 */
td:nth-child(4) {
  word-break: break-all; /* 强制长网址换行 */
  word-wrap: break-word; /* 支持单词换行 */
}

/* 名称列特殊处理 - 限制显示 */
td:nth-child(3) {
  max-width: 0; /* 允许文本溢出处理 */
  overflow: hidden;
  text-overflow: ellipsis;
}

th {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
  border-bottom: 2px solid #1565c0;
  white-space: nowrap; /* 表头不换行 */
  overflow: hidden;
  text-overflow: ellipsis;
}

tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(224, 227, 232, 0.3);
}

tr:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.5);
}

tr:nth-child(even):hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.actions button {
  margin: 0 4px;
  padding: 8px 18px;
  font-size: 15px;
  background: #e16ba0;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.actions button:hover {
  background: #5b6ee1;
}

/* 编辑模式样式 */
.edit-mode {
  width: 90%;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.edit-btn, .save-btn, .cancel-btn {
  margin: 0 2px;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
}

.save-btn {
  background: #27ae60;
}

.save-btn:hover {
  background: #219653;
}

.cancel-btn {
  background: #95a5a6;
}

.cancel-btn:hover {
  background: #7f8c8d;
}

.success { color: #27ae60; }
.error { color: #e74c3c; }

#loginModal {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: #0005; z-index: 1000;
  align-items: center; justify-content: center;
}

/* 分组筛选下拉菜单样式 */
.filter-dropdown-container {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #e0e3e8;
}

.filter-label {
  font-size: 15px;
  color: #2c3e50;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.filter-dropdown {
  padding: 10px 18px;
  border: 2px solid #2196f3;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #2c3e50;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.filter-dropdown:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #1976d2;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.25);
  transform: translateY(-1px);
}

.filter-dropdown:focus {
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
}

#loginModal .modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: 0 2px 24px #0003;
  min-width: 320px;
}

#loginModal input {
  width: 100%;
  margin-bottom: 16px;
  border: 1.5px solid #e0e3e8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
}

/* 修复图标与输入框重叠问题 */
#loginModal .input-group input {
  padding-left: 45px;
}

/* 修复图标与输入框重叠问题 */
#loginModal .input-group input {
  padding-left: 45px;
}

/* 移动端适配 - 增强版 */
@media (max-width: 768px) {
  /* 基础容器优化 */
  .container {
    box-sizing: border-box;
    width: 98%;
    margin: 10px auto;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 20px);
  }
  
  /* 头部区域优化 */
  .header { 
    margin-bottom: 20px; 
    flex-direction: column;
    gap: 15px;
    text-align: center;
    position: relative;
  }
  
  h2 { 
    font-size: 1.4rem; 
    margin-bottom: 10px;
    line-height: 1.3;
  }
  
  .auth-buttons {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .auth-btn {
    padding: 12px 20px;
    font-size: 16px;
    min-width: 100px;
    min-height: 48px;
    border-radius: 12px;
  }
  
  /* 表单区域优化 */
  .form-section {
    padding: 15px;
    gap: 20px;
    margin-bottom: 25px;
  }
  
  .admin-form { 
    flex-direction: column; 
    gap: 15px; 
    align-items: center;
  }
  
  .admin-form input { 
    font-size: 16px; 
    padding: 14px 16px; 
    min-width: 0; 
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    min-height: 48px;
  }
  
  /* 移动端消息提示样式 */
  #msg {
    width: 100%;
    margin: 10px 0;
    text-align: center;
  }
  
  .admin-form button {
    font-size: 16px;
    padding: 14px 24px;
    min-width: 0;
    width: 100%;
    justify-content: center;
    min-height: 48px;
    border-radius: 12px;
  }
  
  /* 筛选区域优化 */
  .filter-dropdown-container {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
  }
  
  .filter-dropdown {
    min-width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    min-height: 48px;
    border-radius: 12px;
  }
  
  /* 表格区域优化 - 卡片式布局 */
  .table-wrapper { 
    padding: 0; 
    border-radius: 15px; 
    overflow-x: auto;
    position: relative;
  }
  
  table { 
    min-width: 600px; 
    font-size: 14px; 
  }
  
  th, td { 
    padding: 14px 10px; 
    font-size: 14px; 
    min-height: 52px;
    vertical-align: middle;
  }
  
  /* 操作按钮优化 */
  .actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  
  .actions button {
    padding: 10px 14px;
    font-size: 13px;
    margin: 0 2px;
    min-height: 36px;
    min-width: 60px;
    border-radius: 8px;
    white-space: nowrap;
  }
  
  /* 模态框优化 */
  .modal-content { 
    min-width: 280px; 
    padding: 25px 20px; 
    margin: 20px;
    border-radius: 16px;
  }
  
  #loginModal input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    box-sizing: border-box;
    min-height: 48px;
    border-radius: 12px;
  }
  
  #loginModal .input-group input {
    padding-left: 45px;
  }
  
  #loginModal .input-group input {
    padding-left: 45px;
  }
  
  .login-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .admin-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    justify-content: center;
    min-height: 48px;
    border-radius: 12px;
  }
  
  /* 移动端手势优化 */
  .swipe-actions {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #ff6b6b 60%, #ffa726 100%);
    padding: 0 15px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .swipe-delete {
    background: linear-gradient(90deg, #e74c3c 60%, #c0392b 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
  }
  
  /* 下拉刷新指示器 */
  .pull-to-refresh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #2196f3 60%, #1976d2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  /* 加载状态指示器 */
  .loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    z-index: 2000;
    display: none;
  }
  
  /* 触摸反馈优化 */
  .touch-feedback {
    position: relative;
    overflow: hidden;
  }
  
  .touch-feedback::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    pointer-events: none;
  }
  
  .touch-feedback:active::after {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 超小屏幕适配 - 增强版 */
@media (max-width: 480px) {
  .container {
    width: 98%;
    margin: 8px auto;
    padding: 12px;
    border-radius: 16px;
  }
  
  h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  
  .auth-buttons {
    gap: 8px;
  }
  
  .auth-btn {
    padding: 10px 16px;
    font-size: 14px;
    min-width: 80px;
    min-height: 44px;
  }
  
  .form-section {
    padding: 12px;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .admin-form {
    align-items: center;
  }
  
  #msg {
    width: 100%;
    margin: 8px 0;
    text-align: center;
  }
  
  .admin-form input {
    padding: 12px 14px;
    font-size: 16px;
    min-height: 44px;
  }
  
  .admin-form button {
    padding: 12px 18px;
    font-size: 15px;
    min-height: 44px;
  }
  
  .filter-dropdown-container {
    padding: 12px;
    gap: 10px;
  }
  
  .filter-dropdown {
    padding: 12px 14px;
    font-size: 15px;
    min-height: 44px;
  }
  
  /* 表格优化 - 更紧凑的布局 */
  table {
    min-width: 480px;
    font-size: 12px;
  }
  
  th, td {
    padding: 10px 6px;
    font-size: 12px;
    min-height: 44px;
  }
  
  /* 操作按钮紧凑布局 */
  .actions {
    gap: 4px;
    flex-direction: column;
    align-items: center;
  }
  
  .actions button {
    padding: 8px 10px;
    font-size: 11px;
    margin: 1px;
    min-width: 50px;
    min-height: 32px;
    width: 100%;
  }
  
  .modal-content {
    min-width: 240px;
    padding: 18px 14px;
    margin: 12px;
    border-radius: 14px;
  }
  
  #loginModal input {
    padding: 12px 14px;
    font-size: 16px;
    min-height: 44px;
  }
  
  #loginModal .input-group input {
    padding-left: 45px;
  }
  
  #loginModal .input-group input {
    padding-left: 45px;
  }
  
  .admin-btn {
    padding: 12px 18px;
    font-size: 15px;
    min-height: 44px;
  }
  
  /* 极窄屏幕适配 */
  @media (max-width: 360px) {
    .container {
      width: 99%;
      margin: 5px auto;
      padding: 10px;
    }
    
    h2 {
      font-size: 1.1rem;
    }
    
    .auth-btn {
      padding: 8px 12px;
      font-size: 13px;
      min-width: 70px;
    }
    
    .admin-form input {
      padding: 10px 12px;
      font-size: 15px;
    }
    
    #msg {
      width: 100%;
      margin: 6px 0;
      padding: 6px 12px;
      font-size: 14px;
    }
    
    table {
      min-width: 420px;
    }
    
    th, td {
      padding: 8px 4px;
      font-size: 11px;
    }
    
    .actions button {
      padding: 6px 8px;
      font-size: 10px;
      min-width: 45px;
    }
  }
}

/* 图标显示优化样式 */
.icon-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 4px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.icon-display:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.icon-display img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

.icon-display:hover img {
  transform: scale(1.1);
}

.icon-display::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 1000;
}

.icon-display:hover::after {
  opacity: 1;
}

/* 表格图标列固定尺寸 */
td:nth-child(5) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

/* 编辑模式下的图标输入框 */
.edit-mode[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* 确保图标显示区域稳定 */
.view-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}

/* 现代化登录框架样式 */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.login-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  max-width: 90vw;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

.login-header {
  padding: 40px 30px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.login-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(0, 0, 0, 0.7);
}

.login-user {
  margin: 0 auto 15px;
  display: flex;
}

.login-key {
  margin: 0 auto 15px;
  display: flex;
}

.login-header h2 {
  margin: 0 0 8px;
  color: rgba(0, 0, 0, 0.7);
  font-size: 24px;
  font-weight: 600;
}

.login-header p {
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  font-size: 14px;
}

.login-form {
  padding: 30px;
  background: white;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
  font-size: 16px;
  z-index: 2;
}

.input-group input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
  color: #a0a4a8;
}

.login-options {
  margin-bottom: 25px;
}

.remember-me {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.remember-me input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
  background: #667eea;
  border-color: #667eea;
}

.remember-me input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.login-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.login-btn {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.login-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.login-btn.secondary {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e1e5e9;
}

.login-btn.secondary:hover {
  background: #e9ecef;
  border-color: #667eea;
}

.login-message {
  text-align: center;
  font-size: 14px;
  min-height: 20px;
}

.login-message.error {
  color: #e74c3c;
}

.login-message.success {
  color: #27ae60;
}

.login-footer {
  padding: 20px 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.login-footer p {
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  font-size: 12px;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes shake {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(-53%, -50%); }
  50% { transform: translate(-47%, -50%); }
  75% { transform: translate(-53%, -50%); }
}

/* 响应式设计 */
@media (max-width: 480px) {
  .login-container {
    width: 95vw;
    margin: 0 10px;
  }
  
  .login-header {
    padding: 30px 20px 15px;
  }
  
  .login-form {
    padding: 20px;
  }
  
  .login-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .login-btn {
    padding: 12px 20px;
  }
}
