/* 登录注册页样式 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }
  
  .auth-card {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  
  .auth-card:hover {
    transform: translateY(-5px);
  }
  
  .auth-header {
    margin-bottom: 30px;
  }
  
  .logo-container {
    margin-bottom: 20px;
  }
  
  .auth-logo {
    font-size: 3rem;
    color: #6e8efb;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .auth-subtitle {
    color: #6b7280;
    margin-top: 10px;
  }
  
  .auth-form {
    margin: 20px 0;
  }
  
  .form-group {
    margin-bottom: 20px;
    text-align: left;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4b5563;
  }
  
  .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  
  .form-group input:focus {
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
    outline: none;
  }
  
  .auth-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
  }
  
  .btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .btn-signup {
    background-color: #6e8efb;
    color: white;
  }
  
  .btn-signup:hover {
    background-color: #5a75d9;
    transform: translateY(-2px);
  }
  
  .btn-login {
    background-color: white;
    color: #6e8efb;
    border: 1px solid #6e8efb;
  }
  
  .btn-login:hover {
    background-color: #f0f4ff;
    transform: translateY(-2px);
  }
  
  .auth-footer {
    margin-top: 30px;
    font-size: 14px;
    color: #6b7280;
  }
  
  .auth-footer a {
    color: #6e8efb;
    text-decoration: none;
  }
  
  .auth-footer a:hover {
    text-decoration: underline;
  }
  
  .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
  }
  
  /* Responsive adjustments */
  @media (max-width: 480px) {
    .auth-card {
      padding: 30px 20px;
    }
    
    .auth-buttons {
      flex-direction: column;
    }
  }
  
  /* 图像样式 */
  .site-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
  }
  
  body {
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
  }
  
  /* 确保输入框不会溢出容器 */
  .auth-form {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }
    
    .form-group {
      width: 100%;
      margin-bottom: 15px;
    }
    
    .form-group label {
      display: block;
      margin-bottom: 5px;
    }
    
    .form-group input {
      width: 100%;
      box-sizing: border-box;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 16px;
    }
    
    /* 确保按钮容器也不会溢出 */
    .auth-buttons {
      display: flex;
      justify-content: space-between;
      width: 100%;
      margin-top: 20px;
    }
    
    .auth-card {
      padding: 20px;
      box-sizing: border-box;
      width: 100%;
      max-width: 400px;
    }
    
    /* 媒体查询以确保移动设备上的响应式布局 */
    @media (max-width: 480px) {
      .auth-card {
        padding: 15px;
      }
      
      .auth-buttons {
        flex-direction: column;
        gap: 10px;
      }
      
      .btn {
        width: 100%;
      }
    }

    /* 添加到现有CSS文件末尾 */

    .btn-anonymous {
      background-color: #6c757d;
      color: white;
      border: none;
    }
    
    .btn-anonymous:hover {
      background-color: #5a6268;
    }
    
    .anonymous-note {
      font-size: 0.8rem;
      color: #666;
      margin-top: 10px;
      font-style: italic;
    }

    /* 匿名访问验证模态框样式 */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    
    .modal-content {
      background-color: white;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      width: 90%;
      max-width: 320px;
    }
    
    .modal h3 {
      margin-top: 0;
      color: #333;
    }
    
    .modal-buttons {
      display: flex;
      justify-content: space-between;
      margin-top: 20px;
    }
    
    .btn-verify {
      background-color: #aeecb1;
    }
    
    .btn-cancel {
      background-color: #b7cbf0;
    }
    
    .error-message {
      color: red;
      margin-top: 10px;
      font-size: 14px;
    }

    footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0px 20px;
    background-color: #a17dcc;
    color: #985e5e;
    text-align: center;
    z-index: 96; /* 降低z-index，确保遮罩层能覆盖footer */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;
    border: none;
    box-shadow: none;
}

.copyright {
    color: #2d2c2d;
    font-size: 0.9rem;
  }