/* === 全局基础 === */
html {
  font-size: 16px;
}
body {
  background: #f9f9f9;
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 480px) {
  html {
    font-size: 15px;
  }
}

/* === 顶部在线客服 === */
.top-right {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #444;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.kefu-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

/* === 容器样式 === */
.container {
  width: 90%;
  max-width: 400px;
  margin: 100px auto;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 255, 0.08);
  border-radius: 12px;
  padding: 40px;
  box-sizing: border-box;
  text-align: center;
}
.container.small {
  width: 90%;
  max-width: 360px;
  margin-top: 100px;
}
h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

/* === logo === */
.logo {
  width: 80px;
  margin-bottom: 24px;
}

.modal-logo {
  width: 80px;
}


/* === 登录 / 注册 Tab === */
.tab-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.tab {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #999;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: #3f7df7;
  border-bottom: 2px solid #3f7df7;
}

/* === 表单输入标签 === */
.input-label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: left;
  margin: 14px 0 6px 4px;
}

/* === 表单输入框 === */
.input-group {
  text-align: left;
  margin-bottom: 20px;
}
.input-group label {
  display: block;
  font-size: 13px;
  color: #777;
  margin-bottom: 6px;
}
.input-group input,
input[type="text"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 14px;
  box-sizing: border-box;
}

/* === 图标输入框组 === */
.input-icon-group {
  display: flex;
  align-items: center;
  background-color: #f5f7fb;
  border-radius: 12px;
  padding: 12px 14px;
  border: none;
  margin-bottom: 20px;
}
.input-icon-group img {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  /*filter: brightness(0) saturate(100%) invert(34%) sepia(86%) saturate(2900%) hue-rotate(209deg) brightness(93%) contrast(101%);*/
}
.input-icon-group input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
  color: #333;
}

/* === 登录 / 注册按钮样式 === */
.login-btn,
.dark-btn {
  width: 100%;
  background-color: #3f7df7;
  color: white;
  border: none;
  border-radius: 24px;
  padding: 14px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.login-btn:hover,
.dark-btn:hover {
  background-color: #2d63d3;
}

/* === 支付密码输入样式 === */
.pay-label {
  text-align: left;
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
  margin-top: 20px;
}
.paycode-box {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 30px;
}
.paycode-box input {
  flex: 1;
  height: 45px;
  font-size: 18px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  min-width: 40px;
}

/* === 注册弹窗 === */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
  width: 90%;
  max-width: 800px;
  background: #fff;
  color: #000;
  border-radius: 12px;
  padding: 20px 30px;
  margin: 80px auto;
  overflow-y: auto;
  max-height: 80%;
  box-sizing: border-box;
}
.modal-logo {
  width: 60px;
  display: block;
  margin: 0 auto 20px;
}
.modal-text {
  max-height: 300px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.8em;
}
.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}
.cancel-btn,
.confirm-btn {
  padding: 10px 30px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  cursor: pointer;
}
.cancel-btn {
  background-color: #eee;
  color: #555;
}
.confirm-btn {
  background-color: #3f7df7;
  color: #fff;
}

/* === 后台页面表格 === */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin-top: 20px;
}
th, td {
  border: 1px solid #ddd;
  padding: 10px;
  font-size: 14px;
  text-align: center;
}
th {
  background-color: #3f7df7;
  color: white;
}
tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* === 后台提示浮层提醒 === */
.popup-alert {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 12px 24px;
  font-size: 15px;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: fadeInOut 4s ease-in-out;
}
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  10% { opacity: 1; transform: translateX(-50%) translateY(0); }
  90% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}
/* ✅ 适配移动端的整体容器 */
@media screen and (max-width: 600px) {
  body {
    padding: 0;
    margin: 0;
  }

  .container {
    margin-top: 40px !important;
    width: 94% !important;
    padding: 24px 20px !important;
    box-shadow: none;
    border-radius: 0;
  }

  .input-icon-group {
    padding: 10px 12px;
  }

  .login-btn, .dark-btn {
    padding: 12px;
    font-size: 15px;
    border-radius: 20px;
  }

  .tab-bar {
    margin-bottom: 20px;
  }

  .input-label {
    margin: 10px 0 4px 4px;
    font-size: 13px;
  }

  .logo {
    width: 48px;
    margin-bottom: 12px;
  }

  .paycode-box input {
    height: 42px;
    font-size: 16px;
    min-width: 36px;
  }
}
@media screen and (max-width: 600px) {
  body {
    padding: 0;
    margin: 0;
  }

  .container {
    margin: 0 auto !important;
    margin-top: 20px !important;
    width: 96% !important;
    padding: 20px 16px !important;
    box-shadow: none;
    border-radius: 0;
  }

  .logo {
    margin-top: 0 !important;
    margin-bottom: 16px;
  }

  .tab-bar {
    margin-bottom: 16px;
  }
}
