/* 全局基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* 页面基础布局 */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 禁止整个页面的滚动 */
}

body {
  color: #333;
  background: #f5f7fa;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* 背景置底 */
  background: linear-gradient(to bottom, #f0f9ff, #d0e8ff);
  background-size: cover;
  background-repeat: no-repeat;
}

/* 顶部导航 */
nav {
  background: #00bcd4;
  color: white;
  padding: 5px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.8;
}

.nav-links {
  flex-wrap: wrap;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
}

.nav-right a {
  white-space: nowrap;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  margin-right: 30px;
  color: white;
}

/* 页脚 */
footer {
  width: 100%;
  text-align: center;
  padding: 10px;
  background: #eeeeee;
  font-size: 0.9em;
  color: #555;
  flex-shrink: 0; /* 防止页脚被压缩 */
}

main {
  flex: 1; /* 主体自动撑开 */
  display: flex;
  flex-direction: column;
  
  overflow-y: auto;        /* 内容超出时允许垂直滚动 */
}

/* 主体居中容器 */
.container {
  flex: 1;                  /* 占据父容器剩余空间 */
  display: flex;            /* 启用 Flex 布局 */
  flex-direction: column;  /* 垂直排列子元素 */
  justify-content: center; /* 垂直居中 */
  align-items: center;     /* 水平居中 */
  height: 100%;          /* 占满整个视口高度 */
}

/* 保证页面内容区域滚动 */
.content-wrapper {
  max-width: 400px; /* 限制内容区域的最大宽度，避免大屏幕时内容过宽影响阅读 */
  margin: 0px auto; /* 注意原来少了 px */
  padding: 20px 20px; /* 内边距，上下 40px，左右 20px，避免内容紧贴边界 */

  text-align: center; /* 将内容（文字、标题等）水平居中对齐 */
}

.container h2 {
  text-align: center;
  color: #00796b;
}

/* 输入框 */
.container input,
.input-field {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em;
  box-sizing: border-box;
  background-color: white;
}

/* select 样式 */
select.input-field {
  appearance: none;
  background: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
  background-size: 16px;
  padding-right: 40px;
}

select.input-field option[disabled] {
  color: #999;
}

input::placeholder {
  color: #999;
}

/* 验证码行 */
.verify-row {
  display: flex;
  gap: 10px;
}

.verify-row input {
  flex: 2;
}

.verify-row button {
  flex: 1;
  background-color: #ccc;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* 主按钮 */
.container button.primary {
  width: 100%;
  padding: 12px;
  background-color: #00796b;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 10px;
}

.container button.primary:hover {
  background-color: #004d40;
}

/* 额外链接 */
.switch-link, .method-toggle {
  text-align: center;
  margin-top: 12px;
  font-size: 0.9em;
}

.switch-link a, .method-toggle a {
  color: #00796b;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
}

.hidden {
  display: none;
}

/* 辅助表单区域 */
.form-aux {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  margin-top: 10px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  vertical-align: middle;
}

.form-aux a {
  color: #00796b;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: bold;
}

.form-aux a:hover {
  color: #007bff;
}


.icp-link {
  color: inherit;          /* 和前面的文字一样颜色 */
  text-decoration: none;   /* 去掉默认的下划线 */
  transition: color 0.3s;  /* 平滑过渡效果，可选 */
}
 
.icp-link:hover {
  color: blue;             /* 鼠标悬停时变蓝色 */
  text-decoration: underline; /* 鼠标悬停时出现下划线 */
}
