/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url("../img/back.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

    .protocol-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .protocol-content {
      background-color: white;
      padding: 20px;
      border-radius: 8px;
      max-width: 600px;
      max-height: 80vh;
      overflow-y: auto;
    }

    .protocol-buttons {
      display: flex;
      justify-content: center;
      margin-top: 20px;
      gap: 20px;
    }

    .protocol-btn {
      padding: 8px 20px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }

    .agree-btn {
      background-color: #4CAF50;
      color: white;
    }

    .disagree-btn {
      background-color: #f44336;
      color: white;
    }

    .hidden {
      display: none !important;
    }

.hidden {
    display: none;
}

.hbtn {
    height: 60px;
    width: 150px;
    padding: 10px 20px;
    font-size: 27px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #28a745;
    color: white;
    margin: 10px;
    transition: background-color 0.3s ease;
}

.btn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    margin: 10px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/* 登录页样式 */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.login-container {
    display: flex; /* 启用flex布局 */
    flex-direction: column; /* 垂直排列子元素 */
    justify-content: center; /* 垂直居中 */
    align-items: center; /* 水平居中 */
    text-align: center;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1000px;
    height: auto; /* 或固定高度如 600px（根据需求调整） */
    min-height: 500px; /* 确保容器有足够高度 */
    margin: auto; /* 水平居中（如果父元素是flex/grid则不需要） */
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.user-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
}

.user-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
    object-fit: contain;
}

/* 模态框样式 */
.modal-content {
    padding: 20px;
    border-radius: 10px;
    width: 500px;
    position: relative;
    display: flex;          /* 启用Flex布局 */
    flex-direction: column; /* 竖直排列子元素 */
    align-items: center;    /* 水平居中（可选） */
    gap: 15px;             /* 子元素之间的间距（可选） */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

/* 测试账号提示样式 */
.test-account {
    margin: 15px 0;
    padding: 12px 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 6px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 300px;
  }
  
  .test-account p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
  }
  
/* 身份证绑定页样式 */
.id-binding-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
}

.id-binding-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.id-binding-container label {
    display: block;
    margin: 10px 0 5px;
    color: #555;
}

.id-binding-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* 账号与密码设置页样式 */
.account-setup-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
}

.account-setup-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.account-setup-container label {
    display: block;
    margin: 10px 0 5px;
    color: #555;
}

.account-setup-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* 主页面样式 */
.main-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
}

.main-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.user-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* 登录/注册选项样式 */
.auth-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-direction: column; /* 竖直排列子元素 */
    align-items: center;    /* 水平居中（可选） */
}

.auth-option-btn {
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease;
}

.login-btn {
    background-color: #007bff;
}

.login-btn:hover {
    background-color: #0069d9;
}

.register-btn {
    background-color: #28a745;
}

.register-btn:hover {
    background-color: #218838;
}