* {
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #7a9c67;
    font-family: Arial, sans-serif;
    padding-top: 0px;
    /* 为顶部导航留出空间，暂不留background-color: #e6d6d6; */
    padding-bottom: 50px;
    /* 为底部留出空间 */
}

table {
    border-collapse: collapse;
    border: #7b97d1 1px solid;
    /* 合并边框 */
    margin: 10px 0;
    /* 外边距 */
}

table,
th,
td {
    border: 1px solid #7b97d1;
    /* 边框 */
    padding: 5px;
    /* 内边距 */
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.login-button {
  width: 100%;
  padding: 12px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
}

.login-button:hover {
  background-color: #3367d6;
}

.switch-form {
  text-align: center;
  margin-top: 20px;
  color: #666;
}

.switch-form a {
  color: #4285f4;
  text-decoration: none;
}

.lb {
  font-size: 16px;
  color: blue;
}
.lb1 {
  background-color: rgb(192, 192, 192);
}
.lb2 {
  font-size: 12px;
  color: rgb(136, 136, 136);
  /* line-height: 130%; */
}
.lb3 {
  line-height: 200%;
}
.lb5 {
  background-color: rgb(223, 177, 177);
}

.btn {
    padding: 5px 10px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    width: 4em;
    box-sizing: border-box;
    margin-right: 5px; /* 添加间距 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.box{
  height: 100px;
}

textarea {
  width: 100%;
  height: 100%;
  margin-bottom: 10px;
}

/*div内上下左右居中*/
.hw {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/*上下菜单栏 开始*/
.menu{
    display: flex;
    color: blue;
}
.menu-item{
    display: inline-block;
    margin-right: 1px; /* 为链接之间添加间距 */
}
.menu a {
    display: block;
    color: blue;
    padding: 10px 10px;
    text-decoration: none;
}

.menu a:hover {
    background-color: #00BFFF;
    border-radius: 3px;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.menu a.active {
    background-color: #4CAF50;
    color: white;
}
.left{
    float: left;
    margin-left: 50px;
}
.right{
    float: right;
    margin-right: 50px;
}

.topbar {
    position: fixed;
    justify-content: center;
    top: 0;
    /* margin-top: 3; */
    padding: 5px;
    width: 100%;
    height: 55px;
    background: linear-gradient(to bottom, #ffffff, #8fcfa4);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}
.footer {
    position: fixed;
    justify-content: center;
    bottom: 0;
    padding: 2px;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, #ffffff, #8fcfa4);
    z-index: 10;
}

/*正文区域 卡片式显示*/
.nhd {
  position: fixed;
  letter-spacing: 15px;
  text-transform: uppercase;
  text-align: center;
  top: 40vh;
  /* left: 25%; */
  font-size: 48px;
  /* justify-content: center; */
  color: #0e3742;
  line-height: 0.7em;
  outline: none;
  -webkit-box-reflect: below 1px linear-gradient(transparent, #0008);
  animation: animate 20s linear infinite;
  z-index: 1;
}
  @keyframes animate{
    0%,21%,31%,51%,60%,80%,90%,92%{
    color: #0e3742;
  }
  20%,30%,50%,60%,80%,90%,100%{
    color: #fff;
    text-shadow: 0 0 10px #03bcf4,
                0 0 20px #03bcf4,
                0 0 40px #03bcf4,
               0 0 80px #03bcf4;
  }
}
.card-container {
    margin-top: 55px;
    /* 与导航栏的高度相同，确保内容不会被导航栏遮挡 */
    padding: 20px 30px;
    /*  上下、左右 */
    /* margin-left: 120px; */
    position: relative;
    display: flex;
    /* 使子元素水平排列 */
    flex-wrap: wrap;
    /* 允许换行 */
    gap: 5px;
    /* 卡片之间的间距 */
    justify-content: center;
    /*水平居中*/
}

.card {
    display: none;
    background: linear-gradient(to bottom, #ffffff, #c7d2e4);
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px 10px 10px 25px;
    width: 100%;
    margin: 5px;
    transition: transform 0.2s;
    z-index: 2;
}

.card h3 {
    margin-top: 0;
    scroll-margin-top: 60px;
}

/*鼠标移到 .card 区域时，只有 .card h3 元素变为红色*/
.card:hover h3 {
    color: red;
}

.card a {
    color: #333;
    text-decoration: none;
}

.card a:hover {
    color: #007BFF;
}