:root {
  --primary-color: #007bff;
  --secondary-color: #333;
  --light-color: #ffffff73;
  --dark-color: #444;
  --success-color: #28a745;
  --error-color: #d32f2f;
  --info-color: #17a2b8;
  --warning-color: #218838;
  --white-color: #fff;
  --black-color: #000;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-image: url("/assets/images/01.png");
  background-size: cover;
  background-position: center;
  color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.enroll {
  width: 100%;
  max-width: 470px;
  border-radius: 15px;
  overflow: hidden;
  background-color: var(--light-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center; /* 使内部内容可以继承居中对齐 */
}

.enroll-shelf {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 16px;
  width: 380px;
  gap: 12px;
  justify-content: flex-start; /* 默认为左对齐 */
}

.enroll-shelf > span {
  flex: 0 0 80px; /* 固定宽度，不伸缩 */
  font-size: 14px;
  color: var(--dark-color);
  text-align: right;
}

.enroll-shelf > input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  outline: none;
  text-align: center;
}

.enroll-shelf > input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
  text-align: center;
}

.error-msg {
  font-size: 13px;
  color: var(--error-color);
  margin-top: 4px;
  font-size: 16px;
  margin-bottom: 12px;
}

.centered {
  justify-content: center;
  margin-left: 0 !important; /* 覆盖之前的margin-left */
  display: inline-flex;
  align-items: center;
}

.centered a {
  color: var(--primary-color);
  text-decoration: none;
}

.centered a:hover {
  text-decoration: underline;
}

.submit-btn {
  justify-content: center;
  margin-top: 10px;
  margin-left: 10px;
  display: flex;
  justify-content: center;
}

.submit-btn div {
  width: 100px;
  padding: 12px 0;
  background-color: var(--success-color);
  color: white;
  text-align: center;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  font-size: 16px;
}

.submit-btn div:hover {
  background-color: var(--warning-color);
}

.register-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}
.bottom-iframe {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 30px; 
    border: none;
  }
/* 响应式设计开始 */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .enroll {
    max-width: 100%;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 50px;
  }

  .enroll-shelf {
    flex-direction: column;
    width: 100%; /* 关键：取消固定 380px 宽度 */
    gap: 8px;
    /* 确保内容左对齐 */
    justify-content: flex-start;
    align-items: stretch; /* 子元素拉伸占满宽度 */
  }

  .enroll-shelf > span {
    flex: none;
    width: 100%;
    text-align: left !important; /* 强制左对齐 */
    font-size: 14px;
  }

  .enroll-shelf > input {
    width: 100% !important; /* 确保占满 */
    text-align: left !important; /* ✅ 关键：取消居中或右对齐 */
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
  }

  .submit-btn div {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
  }

  .bottom-iframe {
    position: relative;
    height: auto;
    min-height: 40px;
    padding: 10px;
    /* background-color: var(--light-color); */
    border: none;
  }
}