:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172037;
  background: #f5f7fb;
  --accent: #2056e8;
  --muted: #737e94;
  --line: #e4e8f0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 3px solid #96b3ff; outline-offset: 3px; }
input { min-width: 0; width: 100%; border: 0; background: transparent; outline: none; color: #172037; }
input:focus-visible { outline: none; }
input::placeholder { color: #939cae; }
.site-header { max-width: 1120px; margin: auto; height: 96px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #18223b; font-size: 23px; font-weight: 800; letter-spacing: -.5px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; object-fit: cover; }
.header-link { font-size: 14px; font-weight: 600; padding: 12px 0 12px 16px; }
.header-link span { margin-left: 10px; }
main { max-width: 1040px; margin: 0 auto; }
.register-layout { display: grid; grid-template-columns: 1fr 1fr; background: #fff; overflow: hidden; border-radius: 24px; min-height: 646px; animation: enter .45s ease both; }
.intro { background: var(--accent); color: #fff; padding: 65px 50px 30px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 3px; opacity: .8; }
.intro h1 { font-size: clamp(34px, 4vw, 46px); line-height: 1.4; letter-spacing: -1.5px; margin: 30px 0 20px; font-weight: 750; white-space: pre-line; }
.intro-copy p { font-size: 15px; line-height: 1.8; opacity: .85; margin: 0; }
.route-art { width: 125%; margin: auto -12% 30px; color: #fff; overflow: visible; }
.route-line { animation: route-enter 1.1s ease both; }
.intro-caption { font-size: 12px; opacity: .65; letter-spacing: 1px; }
.form-area { padding: 38px 46px 28px; }
.section-label { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 2px; }
.form-heading h2 { font-size: 30px; letter-spacing: -.8px; margin: 9px 0 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; margin-bottom: 8px; font-weight: 600; }
.input-wrap { display: flex; align-items: center; height: 48px; padding: 0 14px; background: #f6f8fb; border: 1px solid transparent; border-radius: 9px; transition: border-color .18s, background .18s; }
.input-wrap:focus-within { border-color: var(--accent); background: #fff; }
.input-wrap input { height: 100%; font-size: 15px; }
.phone-prefix { font-size: 14px; margin-right: 12px; color: #46536d; padding-right: 12px; border-right: 1px solid #d9dfe9; }
.code-button, .visibility-button { background: none; border: 0; color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; padding: 10px 0 10px 12px; min-height: 44px; }
.visibility-button { color: var(--muted); }
.consent-row { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.9; color: #6d788e; margin: 20px 0 0; }
.consent-row input { width: 17px; height: 17px; flex: 0 0 17px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent-row label { cursor: pointer; }
.consent-row a { white-space: nowrap; }
.form-message { font-size: 12px; color: #b33d3d; line-height: 1.6; min-height: 20px; margin: 8px 0; overflow-wrap: anywhere; }
.form-message[data-tone="success"] { color: #216547; }
.primary-button, .secondary-button { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 50px; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-size: 15px; font-weight: 650; transition: transform .16s, background .16s; }
.primary-button:hover { text-decoration: none; background: #1948cc; }
.primary-button:active, .secondary-button:active { transform: translateY(1px) scale(.99); }
.primary-button span { margin-left: auto; font-size: 20px; line-height: 1; }
#register-button { justify-content: flex-start; }
.secondary-button { background: transparent; color: var(--accent); margin-top: 12px; }
.existing-account { text-align: center; font-size: 12px; color: var(--muted); margin: 18px 0 0; }
.existing-account a { margin-left: 5px; padding: 10px 0; }
.notice { padding: 12px; border-radius: 7px; font-size: 12px; line-height: 1.7; background: #fff2f2; color: #a63838; }
footer { max-width: 1040px; margin: 24px auto; display: flex; justify-content: space-between; color: #8790a2; font-size: 11px; padding: 0 8px max(12px, env(safe-area-inset-bottom)); }
.simple-view { background: #fff; border-radius: 24px; min-height: 575px; max-width: 520px; margin: 0 auto; padding: 44px 46px; text-align: center; animation: enter .3s ease both; }
.simple-view .back-link { display: block; text-align: left; margin-bottom: 35px; }
.simple-view h1 { font-size: 34px; letter-spacing: -1px; margin: 12px 0; }
.simple-view > p:not(.form-message) { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 32px; }
.download-logo { display: block; margin: 0 auto 26px; border-radius: 22px; object-fit: cover; }
.success-mark { display: grid; place-items: center; height: 84px; width: 84px; border-radius: 50%; background: #edf2ff; color: var(--accent); font-size: 38px; margin: 48px auto 30px; }
.back-link, .text-button { border: 0; background: transparent; font-size: 13px; color: var(--accent); padding: 10px 0; min-height: 40px; }
.policy-view { background: #fff; border-radius: 20px; max-width: 800px; margin: auto; padding: 24px 40px 48px; min-height: 500px; }
.policy-toolbar { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.policy-view > h1 { font-size: 28px; margin: 26px 0 20px; }
.policy-content { line-height: 1.9; font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.policy-content p { margin: 0 0 16px; }
.policy-content div, .policy-content section { white-space: normal; }
.policy-content h1, .policy-content h2, .policy-content h3 { line-height: 1.5; font-size: 19px; margin: 24px 0 12px; }
.policy-content ul, .policy-content ol { padding-left: 1.8em; white-space: normal; }
.policy-content li { margin: 8px 0; }
.policy-content table { display: block; overflow: auto; max-width: 100%; border-collapse: collapse; }
.policy-content th, .policy-content td { padding: 8px; border: 1px solid var(--line); }
.modal { border: none; border-radius: 18px; padding: 24px; width: min(360px, calc(100vw - 32px)); color: #172037; box-shadow: 0 20px 70px #0c1d4230; }
.modal[open] { animation: modal-enter .2s ease both; }
.modal::backdrop { background: #101e3c70; backdrop-filter: blur(3px); }
.modal-header { display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 20px; margin: 0; }
.close-button { border: none; background: transparent; color: var(--muted); font-size: 28px; width: 44px; height: 44px; margin: -10px -10px -10px 0; }
.modal-description { color: var(--muted); font-size: 12px; margin: 18px 0; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { background: #f5f7fb; border: 1px solid var(--line); border-radius: 8px; width: calc(100% - 124px); padding: 12px; font-size: 16px; }
#captcha-refresh { width: 114px; height: 48px; padding: 0; flex-shrink: 0; background: #f5f7fb; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 12px; color: var(--muted); }
#captcha-image { width: 100%; height: 100%; object-fit: contain; }
.wechat-arrow { text-align: right; font-size: 45px; color: var(--accent); padding-right: 10px; }
.wechat-modal ol { line-height: 2.3; font-size: 14px; margin-top: 0; padding-left: 22px; color: #536078; }
.agreement-only .site-header { max-width: 880px; }
.agreement-only footer { max-width: 800px; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes route-enter { from { stroke-dashoffset: 70; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes modal-enter { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 760px) {
  body { background: #fff; }
  .site-header { height: 72px; padding: max(0px, env(safe-area-inset-top)) 24px 0; }
  .brand { font-size: 21px; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .header-link { font-size: 12px; }
  .register-layout { display: block; border-radius: 0; }
  .intro { min-height: 148px; padding: 20px 26px 18px; }
  .intro-copy { z-index: 1; position: relative; max-width: 74%; }
  .eyebrow { font-size: 11px; letter-spacing: 2px; }
  .intro h1 { font-size: 26px; line-height: 1.35; letter-spacing: -.6px; margin: 10px 0 9px; }
  .intro-copy p { display: none; }
  .route-art { position: absolute; width: 260px; right: -63px; bottom: 22px; margin: 0; opacity: .78; }
  .intro-caption { display: none; }
  .form-area { padding: 21px 26px 25px; }
  .form-heading h2 { font-size: 25px; margin: 8px 0 17px; }
  .field { margin-bottom: 13px; }
  .input-wrap input { font-size: 16px; }
  .input-wrap { height: 48px; }
  .consent-row { margin-top: 16px; }
  footer { margin: 0; flex-direction: column; gap: 7px; padding: 12px 26px max(24px, env(safe-area-inset-bottom)); }
  .simple-view { min-height: calc(100svh - 150px); border-radius: 0; padding: 20px 26px 36px; }
  .simple-view .back-link { margin-bottom: 24px; }
  .policy-view { padding: 10px 24px 32px; border-radius: 0; }
  .policy-view > h1 { font-size: 25px; }
}
@media (max-width: 350px) {
  .site-header { padding-left: 18px; padding-right: 18px; }
  .intro { padding-left: 20px; }
  .intro h1 { font-size: 26px; }
  .form-area { padding-left: 20px; padding-right: 20px; }
  .input-wrap { padding: 0 10px; }
  .code-button { font-size: 11px; padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
