* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #333;
  background: #fff;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
input, textarea, button { font: inherit; outline: none; -webkit-appearance: none; appearance: none; }
button { cursor: pointer; border: 0; }

:root {
  --blue: #00a6ff;
  --page-max: 480px;
}

.btn-primary {
  display: block;
  width: 100%;
  height: 52px;
  line-height: 52px;
  border-radius: 26px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  text-align: center;
}
.btn-primary:active { opacity: .85; }
.btn-primary:disabled { opacity: .6; }

.tip { padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.tip-success { background: #e8f7ee; color: #18a058; }
.tip-error { background: #fdecec; color: #d03050; }

/* ---------- 登录页 ---------- */
.page-login {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  overflow: hidden;
}
.page-login.has-bg { background-size: cover; background-position: center; }
.login-stars { position: fixed; inset: 0; width: 100%; height: 100%; }
.login-glow {
  position: fixed;
  left: -40%;
  right: -40%;
  bottom: -30vh;
  height: 70vh;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%,
    #fff 0%, #fff 38%, rgba(255,255,255,.75) 52%, rgba(255,255,255,.3) 63%, rgba(255,255,255,0) 72%);
}
.login-form {
  position: relative;
  z-index: 1;
  width: 80%;
  max-width: 400px;
  margin: 0 auto;
  padding-top: 42vh;
}
.login-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .55);
  color: #222;
  font-size: 16px;
}
.login-input::placeholder { color: #666; }
.login-error { margin-top: 10px; color: #ff6b6b; font-size: 14px; }
.login-btn {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 48px;
  border-radius: 4px;
  background: #00b4ff;
  color: #fff;
  font-size: 17px;
}
.login-btn:active { opacity: .85; }

/* ---------- 列表页 ---------- */
.home-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
}
.home-header {
  margin: 0 16px;
  padding: 18px 22px;
  border-left: 3px double #e6dcc6;
  border-right: 3px double #e6dcc6;
  background: #fffdf8;
}
.home-header.has-bg { background-size: cover; background-position: center; min-height: 160px; }
.home-header-text {
  white-space: pre-line;
  line-height: 1.9;
  font-size: 15px;
  color: #444;
  text-indent: 2em;
}
.home-list-title {
  margin: 26px 0 18px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.home-list { list-style: none; padding: 0 18px; }
.home-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
}
a.home-item:active { opacity: .7; }
.home-item-avatar {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #f2f2f2;
}
.home-item-text {
  flex: 1;
  margin-left: 26px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  white-space: pre-line;
  word-break: break-all;
}
.home-end {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto 0;
  width: 70%;
  font-size: 14px;
  color: #999;
}
.home-end::before, .home-end::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eee;
}
.home-end span { padding: 0 14px; }
.home-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 10% calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0));
}
.home-footer .btn-primary { max-width: 400px; margin: 0 auto; background: #0a8cff; }

/* ---------- 联系我们 ---------- */
.page-contact { max-width: var(--page-max); margin: 0 auto; }
.contact-nav {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-back {
  position: absolute;
  left: 8px;
  top: 0;
  width: 44px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}
.contact-title { font-size: 17px; font-weight: 600; color: #111; }
.contact-form { padding: 24px 25px; }
.contact-textarea {
  display: block;
  width: 100%;
  height: 320px;
  padding: 14px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  resize: none;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
.contact-input {
  display: block;
  width: 100%;
  height: 54px;
  margin-top: 26px;
  padding: 0 26px;
  border: 1px solid #e3e3e3;
  border-radius: 27px;
  font-size: 16px;
  color: #333;
}
.contact-textarea::placeholder, .contact-input::placeholder { color: #888; }
.contact-textarea:focus, .contact-input:focus { border-color: var(--blue); }
.contact-submit { margin-top: 24px; height: 54px; line-height: 54px; border-radius: 27px; font-size: 16px; }
