/* ====== 全局 ====== */
html {
  font-size: 18px;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  background-color: #0d1b2a;
  color: #e0e1dd;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ====== 容器 ====== */
.container {
  width: 94%;
  max-width: 600px;
  background-color: #1b263b;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

h1, h2 {
  text-align: center;
  color: #e0e1dd;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

/* ====== 输入框 / 下拉框 / 文本域 ====== */
input, select, textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  margin: 0.5rem 0 1.2rem 0;
  border: 1px solid #415a77;
  border-radius: 10px;
  background-color: #0d1b2a;
  color: #e0e1dd;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #778da9;
  box-shadow: 0 0 8px rgba(119,141,169,0.5);
}

/* ====== 按钮 ====== */
button {
  width: 100%;
  padding: 0.9rem;
  background-color: #778da9;
  color: #0d1b2a;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

button:hover {
  background-color: #e0e1dd;
  color: #0d1b2a;
}

/* ====== 菜单 ====== */
.menu {
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  border-top: 1px solid #415a77;
  background-color: #1b263b;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

.menu button {
  flex: 1;
  margin: 0 0.3rem;
}

/* ====== 移动端优化 ====== */
@media (max-width: 480px) {
  html {
    font-size: 17px;
  }

  .container {
    padding: 1.8rem;
  }

  input, select, textarea {
    font-size: 1rem;
  }

  button {
    font-size: 1rem;
    padding: 0.8rem;
  }
}

/* ====== 主界面按钮卡片 ====== */
.grid-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card {
  background-color: #1b263b;
  border: 1px solid #415a77;
  border-radius: 16px;
  padding: 2rem 1rem;
  text-align: center;
  color: #e0e1dd;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.card i {
  font-size: 2rem;
  color: #e0e1dd;
  margin-bottom: 1rem;
}

.card span {
  display: block;
  font-size: 1rem;
}

.card:hover {
  background-color: #778da9;
  color: #0d1b2a;
}

.card:hover i {
  color: #0d1b2a;
}

/* 移动端优化 */
@media (max-width: 480px) {
  .grid-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .card {
    padding: 1.5rem 0.5rem;
  }
}
/* ====== 弹出层 ====== */
.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 999;
}

.modal-content {
  background-color: #1b263b;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.modal-content h3 {
  text-align: center;
  margin-bottom: 1.2rem;
}

.modal-content label {
  display: block;
  margin-top: 0.5rem;
  color: #e0e1dd;
}

.modal-content input {
  width: 100%;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
}

.modal-content button {
  margin-top: 0.8rem;
}

.cancel {
  background-color: #415a77 !important;
  color: #e0e1dd !important;
  margin-top: 0.5rem;
}

