:root {
  --bg-card: rgba(255, 255, 255, 0.82);
  --text-primary: #172033;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: rgba(148, 163, 184, 0.26);
  --input-bg: rgba(255, 255, 255, 0.82);
  --accent: #1677ff;
  --accent-hover: #4096ff;
  --shadow-card: 0 24px 70px rgba(37, 99, 235, 0.16), 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-card: 26px;
  --radius-input: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body.gdh-landing-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background-color: #f4f8ff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.gdh-landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(219, 234, 254, 0.22));
  pointer-events: none;
  z-index: 0;
}
.gdh-landing {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 410px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
  padding: 2.15rem 1.9rem 1.85rem;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.gdh-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}
.gdh-landing__brand { text-align: center; margin-bottom: 1.5rem; }
.gdh-landing__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #1677ff 0%, #2563eb 58%, #7c3aed 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.34);
}
.gdh-landing__title { font-size: 1.375rem; font-weight: 600; margin-bottom: 0.25rem; }
.gdh-landing__subtitle { font-size: 0.8125rem; color: var(--text-muted); }
.gdh-landing__form { display: flex; flex-direction: column; gap: 0.875rem; }
.gdh-landing__field label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.gdh-landing__field input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-input);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.gdh-landing__field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
  background: rgba(255, 255, 255, 0.96);
}
.gdh-landing__captcha { display: flex; gap: 0.625rem; align-items: stretch; }
.gdh-landing__captcha img {
  flex-shrink: 0;
  height: 46px;
  width: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  background: #fff;
}
.gdh-landing__captcha input { flex: 1; min-width: 0; }
.gdh-landing__submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.6875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1677ff 0%, #2563eb 58%, #4f46e5 100%);
  border: none;
  border-radius: var(--radius-input);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.gdh-landing__submit:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}
.gdh-landing__submit:disabled { opacity: 0.65; cursor: not-allowed; }
.gdh-landing__register {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.gdh-landing__register a { color: var(--accent); text-decoration: none; font-weight: 500; }
.gdh-landing__register a:hover { text-decoration: underline; }
.gdh-landing__foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.gdh-landing__field--sms {
  display: flex;
  gap: 0.625rem;
  align-items: stretch;
}
.gdh-landing__field--sms input { flex: 1; min-width: 0; }
.gdh-landing__sms-btn {
  flex-shrink: 0;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--accent);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-input);
  cursor: pointer;
  white-space: nowrap;
}
.gdh-landing__sms-btn:hover { background: #fff; border-color: var(--accent); }
.gdh-landing__agree {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}
.gdh-landing__agree input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.gdh-landing__agree input:disabled { cursor: not-allowed; }
.gdh-landing__agree-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.gdh-agreement[hidden] { display: none !important; }
.gdh-agreement {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gdh-agreement__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gdh-agreement__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.gdh-agreement__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.gdh-agreement__head h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.gdh-agreement__close {
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.25rem;
}
.gdh-agreement__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-primary);
}
.gdh-agreement__doc-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-align: center;
}
.gdh-agreement__doc-meta {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.gdh-agreement__doc h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}
.gdh-agreement__doc p {
  margin: 0 0 0.5rem;
  color: var(--text-secondary);
}
.gdh-agreement__doc-sign {
  margin-top: 1rem !important;
  font-weight: 500;
  color: var(--text-primary) !important;
}
.gdh-agreement__foot {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border-color);
  background: #fafbfd;
}
.gdh-agreement__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 0.625rem;
}
.gdh-agreement__actions {
  display: flex;
  gap: 0.75rem;
}
.gdh-agreement__actions .gdh-landing__submit,
.gdh-agreement__actions .gdh-landing__btn-ghost {
  flex: 1;
  margin-top: 0;
}
.gdh-landing__btn-ghost {
  display: block;
  width: 100%;
  padding: 0.6875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.gdh-landing__btn-ghost:hover {
  background: var(--input-bg);
  border-color: #d9d9d9;
}
.gdh-register-main[hidden] { display: none !important; }

@media (max-width: 640px) {
  body.gdh-landing-page {
    align-items: flex-start;
    padding: 2.25rem 1rem 1.25rem;
    background-attachment: scroll;
  }
  .gdh-landing {
    max-width: 100%;
    padding: 1.75rem 1.35rem 1.45rem;
    border-radius: 20px;
  }
}
