:root {
  --green: #0a9257;
  --green-dark: #05623d;
  --green-soft: #e9f8f0;
  --navy: #092a3a;
  --text: #1d2932;
  --muted: #64716c;
  --line: #dce8e1;
  --surface: #ffffff;
  --page: #f2f7f4;
  --danger: #a43f35;
  --danger-soft: #fff1ef;
  --shadow: 0 24px 65px rgba(5, 69, 43, .16);
  --official-yellow: #fffed2;
  --official-border: #989898;
  --official-divider: #aaa3c7;
  --official-blue: #001fb8;
}

* { box-sizing: border-box; }

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html { background: var(--page); }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 92% 5%, rgba(39, 183, 112, .16), transparent 22rem),
    var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img,
svg { max-width: 100%; height: auto; }
input,
button,
a { min-width: 0; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px 18px 76px;
  background: linear-gradient(138deg, #0baa65 0%, #087348 56%, #082e3c 100%);
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
}

.hero::before { width: 270px; height: 270px; top: -180px; right: -80px; }
.hero::after { width: 170px; height: 170px; bottom: -115px; left: -50px; }

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  margin: 0 auto;
}

.home-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: 14px;
  font-weight: 800;
}

.eyebrow {
  margin: 30px 0 8px;
  color: #bdf4d4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(30px, 8.4vw, 46px);
  line-height: 1.17;
  letter-spacing: -.025em;
}

.hero-copy {
  max-width: 570px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.trust-row span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  font-weight: 700;
}

.page {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  margin: -48px auto 0;
  padding: 0 14px 34px;
}

.login-card,
.info-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(15, 42, 31, .07);
}

.login-card {
  padding: 24px;
  border-color: rgba(10, 146, 87, .22);
  border-radius: 25px;
  box-shadow: var(--shadow);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.step-badge,
.info-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 900;
}

.card-kicker {
  margin: 0 0 2px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.card-heading h2,
.info-card h2 {
  margin: 0;
  color: var(--navy);
  line-height: 1.3;
}

.card-heading h2 { font-size: 22px; }
.intro { margin: 17px 0; color: var(--muted); font-size: 14px; }
.intro b { color: var(--navy); }

.status {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 750;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(100, 113, 108, .1);
}

.status[data-state="loading"] { color: #52625c; background: #f6f8f7; }
.status[data-state="ready"] { color: var(--green-dark); background: var(--green-soft); border-color: #bce4ce; }
.status[data-state="error"] { color: var(--danger); background: var(--danger-soft); border-color: #f0c7c2; }

.field-group { margin-top: 16px; }
.field-group label {
  display: block;
  margin: 0 0 7px 2px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
}
.field-group label span { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 650; }

.input-shell {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1.5px solid #cbd9d1;
  border-radius: 14px;
  background: #fbfdfc;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input-shell:focus-within {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 146, 87, .1);
}

.input-shell:has(input:disabled) { opacity: .64; background: #f1f4f2; }

.input-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 16px;
}

.input-shell input::placeholder { color: #9aa7a0; }

.toggle-password {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.toggle-password:disabled { cursor: not-allowed; }

.login-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 21px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 13px 26px rgba(5, 98, 61, .22);
}

.login-submit:disabled {
  background: #9aa9a1;
  cursor: not-allowed;
  box-shadow: none;
}

.official-auth-panel {
  min-width: 0;
  margin: 22px 0 0;
  padding: 12px 14px 18px;
  border: 2px solid var(--official-border);
  border-radius: 2px;
  background: linear-gradient(180deg, #fffde7 0%, var(--official-yellow) 100%);
  color: #000;
}

.official-auth-legend {
  max-width: calc(100% - 18px);
  padding: 0 8px;
  color: #050505;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.legend-it,
.legend-zh { display: inline; }
.legend-zh { font-size: 13px; font-weight: 800; }
.legend-separator { padding: 0 4px; color: #656565; }

.official-auth-title {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #b5b5b5;
  border-bottom: 6px solid var(--official-divider);
  background: rgba(239, 238, 205, .76);
  text-align: center;
}

.official-auth-title strong {
  color: #000;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.1;
}

.official-auth-title span {
  color: #444;
  font-size: 13px;
  font-weight: 750;
}

.official-auth-panel .status {
  margin: 14px 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .62);
}

.status-text,
.status-it,
.status-zh { display: block; }
.status-it { font-weight: 850; }
.status-zh { margin-top: 1px; font-size: 12px; font-weight: 650; }

.official-auth-row {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr);
  align-items: stretch;
  margin: 0;
  border: 1px solid #b8b8b8;
  border-bottom: 0;
  background: rgba(255, 255, 188, .72);
}

.official-auth-row + .official-auth-row { border-bottom: 1px solid #b8b8b8; }

.official-auth-label {
  display: flex !important;
  min-width: 0;
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  margin: 0 !important;
  padding: 10px 14px;
  color: #050505 !important;
  line-height: 1.2;
  text-align: right;
}

.official-auth-label span {
  margin: 0 !important;
  color: inherit !important;
}

.official-auth-label .label-it { font-size: 16px; font-weight: 900; }
.official-auth-label .label-zh { margin-top: 3px !important; color: #565656 !important; font-size: 12px; font-weight: 700; }

.official-input-shell {
  min-height: 58px;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-left: 1px solid #c6c6c6;
  border-radius: 0;
  background: rgba(255, 255, 255, .16);
}

.official-input-shell:focus-within {
  border-color: #c6c6c6;
  background: rgba(255, 255, 255, .28);
  box-shadow: none;
}

.official-input-shell:has(input:disabled) { opacity: .68; background: rgba(245, 245, 232, .72); }

.official-input-shell input {
  height: 44px;
  padding: 0 11px;
  border: 1px solid #aaa7c3;
  border-radius: 1px;
  background: #fff;
  color: #000;
}

.official-input-shell input:focus {
  outline: 3px solid rgba(0, 31, 184, .2);
  outline-offset: 1px;
}

.official-input-shell .toggle-password {
  min-height: 44px;
  border: 1px solid #999;
  border-radius: 1px;
  background: #e6e6e0;
  color: #121212;
  white-space: nowrap;
}

.official-confirm {
  display: flex;
  width: auto;
  min-width: 190px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 20px auto 2px;
  padding: 8px 18px;
  border: 2px outset #a0a0a0;
  border-radius: 1px;
  background: #deded8;
  color: var(--official-blue);
  box-shadow: none;
}

.official-confirm:hover:not(:disabled) { background: #ecece6; }
.official-confirm:disabled { border-color: #b5b5ae; background: #d3d3cd; color: #6f6f6f; }
.button-it,
.button-zh { display: block; }
.button-it { font-size: 17px; font-weight: 900; line-height: 1.15; }
.button-zh { margin-top: 2px; font-size: 11px; font-weight: 750; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(10, 146, 87, .28);
  outline-offset: 3px;
}

.privacy-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 17px;
  padding: 13px;
  border-radius: 14px;
  background: #eef7f2;
  color: #496158;
  font-size: 12px;
}

.privacy-strip p { margin: 0; }
.privacy-strip b { color: var(--green-dark); }
.privacy-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.official-fallback {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #8f1d14;
  border-radius: 14px;
  background: #b42318;
  box-shadow: 0 10px 24px rgba(180, 35, 24, 0.24);
  color: #fff;
  font-size: 14px;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.official-fallback > span:first-child {
  min-width: 0;
}

.official-fallback b {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.official-fallback small {
  display: block;
  margin-top: 2px;
  color: #ffe5e1;
  font-size: 12px;
  font-weight: 500;
}

.official-fallback > span:last-child {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #b42318;
  font-size: 18px;
  font-weight: 900;
}

.official-fallback:hover {
  background: #981b13;
  box-shadow: 0 12px 28px rgba(143, 29, 20, 0.3);
}

.official-fallback:active {
  box-shadow: 0 4px 10px rgba(143, 29, 20, 0.24);
  transform: translateY(1px);
}

.official-fallback:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #8f1d14, 0 10px 24px rgba(180, 35, 24, 0.24);
}

.support-link small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.official-guide {
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(15, 42, 31, .07);
}

.guide-summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 13px 48px 13px 16px;
  position: relative;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.guide-summary::-webkit-details-marker { display: none; }

.guide-summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 19px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .18s ease;
}

.official-guide[open] .guide-summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.guide-summary:focus-visible {
  outline: 3px solid rgba(10, 146, 87, .28);
  outline-offset: -3px;
}

.guide-summary-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 900;
}

.guide-summary b,
.guide-summary small { display: block; }
.guide-summary b { font-size: 17px; }
.guide-summary small { margin-top: 1px; color: var(--muted); font-size: 12px; font-weight: 500; }

.guide-steps {
  display: grid;
  gap: 0;
  margin: 0 16px;
  border-top: 1px solid var(--line);
}

.guide-step {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #edf2ef;
}

.guide-step:last-child { border-bottom: 0; }

.guide-number {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.guide-step h3 {
  margin: 1px 0 4px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35;
}

.guide-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.guide-step p b { color: var(--navy); }

.guide-privacy {
  margin: 0;
  padding: 13px 16px;
  border-top: 1px solid #cde8d9;
  background: var(--green-soft);
  color: #496158;
  font-size: 12px;
}

.guide-privacy b { color: var(--green-dark); }

.visual-guide {
  margin-top: 15px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(15, 42, 31, .07);
}

.visual-guide-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.visual-guide-heading > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 900;
}

.visual-guide-heading h2 {
  margin: 1px 0 3px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.35;
}

.visual-guide-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.visual-guide-grid {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.visual-guide-item {
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid #e4ece7;
  border-radius: 14px;
  background: #fbfdfc;
}

.visual-guide-item figcaption {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.visual-guide-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid #e1e8e4;
  border-radius: 10px;
  background: #fff;
}

.info-card {
  display: flex;
  gap: 13px;
  margin-top: 15px;
  padding: 18px;
  border-radius: 19px;
}

.info-card h2 { font-size: 17px; }
.info-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.info-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 16px; }

.support-link {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px solid #b9e2ff;
  border-radius: 17px;
  background: #eef8ff;
  color: #075985;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 4px 12px rgba(14, 165, 233, .08);
}

.support-link::after {
  content: "联系客服";
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #0e8bc8;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.bottom-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

.bottom-nav a {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .78);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 750;
}

footer { padding: 0 16px 30px; text-align: center; color: var(--muted); font-size: 12px; }

@media (max-width: 640px) {
  .page { padding-inline: 12px; }
  .login-card { padding: 18px; border-radius: 20px; }
  .hero { padding-inline: 16px; }
}

@media (max-width: 560px) {
  .official-auth-panel { padding: 9px 9px 15px; }
  .official-auth-title { min-height: 58px; flex-direction: column; gap: 2px; }
  .official-auth-title strong { font-size: 25px; }
  .official-auth-row { grid-template-columns: minmax(0, 1fr); }
  .official-auth-label { align-items: flex-start; padding: 10px 11px 6px; text-align: left; }
  .official-auth-label .label-it,
  .official-auth-label .label-zh { display: inline; }
  .official-input-shell { min-height: 58px; padding: 4px 10px 10px; border-left: 0; }
  .official-input-shell.password-row { flex-wrap: wrap; }
  .official-input-shell.password-row input { flex: 1 1 170px; }
  .official-input-shell .toggle-password { flex: 0 0 auto; }
  .official-confirm { width: calc(100% - 20px); }
}

@media (max-width: 380px) {
  .login-card { padding-inline: 15px; }
  .trust-row { gap: 6px; }
  .trust-row span { font-size: 11px; }
  .bottom-nav { grid-template-columns: 1fr; }
}

@media (min-width: 641px) {
  .visual-guide-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .visual-guide-item:first-child { grid-row: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
