html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  color: #333;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

.page-content {
  flex: 1;                     /* 占满剩余高度 */
  display: flex;
  justify-content: center;     /* 水平居中 */
  align-items: center;         /* 垂直居中 */
}

.login-container {
  width: 500px; /* 增大卡片宽度 */
  background-color: #fff;
  border-radius: 10px; /* 圆角稍大一点 */
  padding: 40px 30px;  /* 增大内边距 */
  box-shadow: 0 0 20px rgba(0,0,0,0.2); /* 阴影加深 */
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-container h2 {
  margin-bottom: 50px; /* 标题与二维码距离加大 */
  color: #0078d7;
  font-size: 22px;
}

/* 保留备用按钮样式 */
.login-container button {
  width: 220px;
  height: 40px;
  margin: 10px 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #0078d7;
  color: #fff;
  font-size: 16px;
  transition: background 0.2s;
}

.login-container button:hover {
  background-color: #005ea2;
}

/* 新增二维码布局 */
#qr-codes {
  display: flex;
  justify-content: center;
  gap: 60px; /* 两个二维码间距加大 */
  flex-wrap: wrap;
}

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 修改：支持 canvas 二维码 */
.qr-section canvas {
  width: 180px;
  height: 180px;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
}

.qr-label {
  margin-top: 12px;
  font-weight: bold;
  color: #333;
  font-size: 16px;
  margin-bottom: 20px;
}

#top-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;         /* 按钮间距 */
  flex-direction: row;
  z-index: 1000;
}

.top-btn {
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f2f2f2;
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.top-btn:hover {
  background-color: hsl(0, 3%, 80%);
}

footer {
  text-align: center;
  color: black;
  padding: 0.5px;
  margin-top: auto;
}
