/* 移动端优先保留表单可读性，桌面端使用品牌欢迎区与注册表单的双栏布局。 */
:root {
  color-scheme: light;
  --ink: #202f32;
  --muted: #718082;
  --green: #0bb6a7;
  --green-dark: #078f83;
  --line: #e3ecea;
  --field: #fbfcfc;
  --mint: #edf8f4;
  font-family: "Avenir Next", "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: var(--ink); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #78d9cc; outline-offset: 4px; }
.site-shell { width: min(1184px, calc(100% - 80px)); min-height: 100svh; margin: 0 auto; }
.site-header { height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark { width: 53px; height: auto; display: block; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: 1.7px; }
.header-actions { display: flex; align-items: center; gap: 36px; }
.header-link { color: #3f5658; font-size: 13px; font-weight: 600; }
.header-link:hover { color: var(--green-dark); }
.language-switch { display: inline-flex; align-items: center; gap: 10px; color: #c3cecc; white-space: nowrap; }
.language-switch button { padding: 8px 0; border: 0; background: transparent; color: #8c9a99; font-size: 12px; font-weight: 600; }
.language-switch button[aria-pressed="true"] { color: #273c3d; }
.register-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); min-height: 760px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.welcome-panel { position: relative; display: flex; flex-direction: column; padding: 48px 44px 30px; overflow: hidden; background: var(--mint); }
.eyebrow { display: block; color: var(--green-dark); font-size: 10px; font-weight: 800; letter-spacing: 1.8px; line-height: 1.6; }
.welcome-copy { position: relative; z-index: 1; }
.welcome-copy h1 { margin: 22px 0 18px; max-width: 350px; font-size: clamp(35px, 3.4vw, 45px); font-weight: 600; letter-spacing: -1.9px; line-height: 1.18; }
.welcome-copy p { max-width: 290px; margin: 0; color: #718682; font-size: 14px; line-height: 1.8; }
.welcome-art { width: min(100%, 350px); margin: 34px auto 24px; position: relative; }
.welcome-art img { width: 100%; height: auto; display: block; border-radius: 44% 44% 38% 38%; }
.welcome-art-caption { display: block; margin-top: 18px; color: #569c91; font-size: 9px; letter-spacing: 3px; text-align: center; }
.welcome-bottom { margin-top: auto; display: flex; align-items: center; gap: 18px; color: #70918a; font-size: 10px; line-height: 1.6; }
.welcome-step { display: inline-flex; align-items: center; gap: 8px; color: #498e81; font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.welcome-step span { color: #a2c5ba; }
.registration-panel { padding: 42px 46px 27px; min-width: 0; }
.section-heading h2 { margin: 9px 0 8px; font-size: 29px; font-weight: 600; letter-spacing: -1px; line-height: 1.3; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
#register-form { margin-top: 29px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 16px; }
.field-wide { grid-column: 1 / -1; }
.form-field { min-width: 0; }
.form-field > label { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font-size: 11px; font-weight: 600; line-height: 1.5; }
.optional-label { color: #99a6a4; font-size: 10px; font-weight: 400; }
.form-field > input, .input-with-action, .select-control { width: 100%; min-height: 46px; border: 1px solid #dee8e5; border-radius: 8px; background: var(--field); transition: border-color .18s, box-shadow .18s; }
.form-field > input, .input-with-action input, select { color: var(--ink); font-size: 13px; }
.form-field > input { padding: 12px 13px; }
input::placeholder { color: #a6b1ae; opacity: 1; }
.input-with-action { display: flex; align-items: center; }
.input-with-action:focus-within, .select-control:focus-within, .form-field > input:focus { border-color: #6bc9ba; box-shadow: 0 0 0 3px #0bb6a70a; }
.input-with-action input { flex: 1; min-width: 0; width: 100%; padding: 12px 13px; border: 0; outline: 0; background: transparent; }
.input-with-action input:focus-visible { outline: none; }
.input-action { align-self: stretch; margin: 7px 0; padding: 0 14px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--green-dark); font-size: 11px; font-weight: 700; white-space: nowrap; }
.input-action:disabled { color: #a1b1ad; }
.password-toggle { padding: 10px; border: 0; background: transparent; color: #7b8b87; font-size: 10px; }
.select-control { position: relative; }
.select-control::after { position: absolute; right: 15px; top: 18px; width: 6px; height: 6px; transform: rotate(45deg); border-right: 1.5px solid #8a9c96; border-bottom: 1.5px solid #8a9c96; content: ""; pointer-events: none; }
select { width: 100%; min-height: 44px; padding: 10px 30px 10px 13px; border: 0; appearance: none; background: transparent; }
select:disabled { color: #9baaa6; opacity: 1; }
.invite-code-input { letter-spacing: .6px; }
.field-note { margin: 7px 0 0; color: #92a09c; font-size: 10px; line-height: 1.6; }
.invite-notice { margin: 20px 0 -9px; padding: 11px 13px; border-radius: 7px; background: #edf9f5; color: #248b77; font-size: 11px; line-height: 1.6; }
.agreement-row { display: flex; align-items: flex-start; gap: 9px; margin-top: 21px; }
.agreement-row > input { width: 14px; height: 14px; margin: 3px 0 0; flex: 0 0 14px; accent-color: var(--green-dark); }
.agreement-row > label { color: #82908c; font-size: 10px; line-height: 1.9; }
.text-button { display: inline; padding: 0; border: 0; background: transparent; color: #387d70; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.text-button:disabled { color: #8ba69c; }
.primary-button { display: block; width: 100%; min-height: 47px; padding: 13px 18px; border: 0; border-radius: 9px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; transition: background .18s, transform .18s; }
.primary-button:hover:not(:disabled) { background: var(--green-dark); }
.primary-button:active:not(:disabled) { transform: translateY(1px); }
.primary-button:disabled { background: #b8dfd6; color: #fff; }
.register-submit { margin-top: 21px; }
.form-bottom-note { margin: 12px 0 0; color: #98a39f; font-size: 10px; line-height: 1.6; text-align: center; }
.form-status { margin: 14px 0 0; padding: 11px 12px; border-radius: 7px; background: #fff3ee; color: #a85437; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.form-status:empty, .download-feedback:empty { display: none; }
.form-status[data-state="success"] { background: #edf9f3; color: #287955; }
.retry-button { margin-top: 12px; padding: 0; border: 0; background: transparent; color: var(--green-dark); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.ip-credit { margin: 22px 0 0; color: #a2aca8; font-size: 9px; line-height: 1.6; text-align: center; }
.ip-credit a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; padding: 26px 0; color: #a0aaa6; font-size: 10px; line-height: 1.6; }

/* 协议只展示实际发布正文，独立滚动且不挤压注册表单。 */
.agreement-dialog { width: min(650px, calc(100% - 32px)); max-height: min(80svh, 780px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 22px 90px #153b3129; }
.agreement-dialog::backdrop { background: #132d2766; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; padding: 22px 26px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-heading h2 { margin: 0; font-size: 20px; font-weight: 600; }
.dialog-close { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #f1f6f3; color: #5a7166; font-size: 24px; line-height: 1; }
.agreement-content { padding: 24px 26px 32px; color: #52665d; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }

/* 下载平台仅为待开放入口，白色平台图标使用深色背景保证识别。 */
.download-shell { display: flex; flex-direction: column; }
.download-main { flex: 1; width: min(780px, 100%); margin: 16px auto 0; }
.download-hero { text-align: center; }
.app-icon-frame { position: relative; width: 112px; margin: 0 auto 27px; padding: 8px; border: 1px solid #e0efe8; border-radius: 29px; background: #f8fcf9; }
.app-icon { display: block; width: 94px; height: 94px; border-radius: 22px; }
.download-hero .eyebrow { font-size: 10px; }
.download-hero h1 { margin: 12px 0 17px; font-size: clamp(36px, 4vw, 50px); font-weight: 600; letter-spacing: -2px; line-height: 1.2; }
.download-intro { max-width: 440px; margin: 0 auto; color: #7f8d87; font-size: 14px; line-height: 1.8; }
.account-ready-note { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 8px 13px; border-radius: 30px; background: #f1f8f4; color: #567c6b; font-size: 10px; line-height: 1.5; }
.status-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #31ad83; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 37px 30px 0; }
.platform-card { display: flex; align-items: center; gap: 15px; min-height: 104px; padding: 22px; border: 1px solid #233c36; border-radius: 14px; background: #20372f; color: #fff; text-align: left; transition: background .18s, transform .18s; }
.platform-card:hover { transform: translateY(-2px); background: #29473b; }
.platform-icon { width: 36px; height: 36px; object-fit: contain; flex: 0 0 36px; }
.platform-copy { display: flex; flex-direction: column; gap: 6px; }
.platform-overline { color: #a7bfb0; font-size: 7px; font-weight: 500; letter-spacing: 1.5px; }
.platform-name { font-size: 23px; font-weight: 600; line-height: 1; }
.platform-badge { margin-left: auto; border: 1px solid #ffffff21; border-radius: 5px; padding: 5px 6px; color: #c5d2c9; font-size: 8px; line-height: 1.2; white-space: nowrap; }
.download-feedback { margin: 20px auto 0; padding: 10px 15px; width: fit-content; max-width: 100%; border-radius: 8px; background: #edf7f1; color: #377a5e; font-size: 12px; line-height: 1.6; text-align: center; }
.download-release-note { margin: 15px 0 0; color: #a0aba4; font-size: 10px; line-height: 1.8; text-align: center; }
.next-steps { margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--line); }
.next-steps > h2 { margin: 0 0 22px; font-size: 15px; font-weight: 600; text-align: center; }
.next-steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.next-step { display: flex; gap: 11px; }
.step-number { margin-top: 2px; color: #55a58a; font-size: 10px; font-weight: 600; letter-spacing: .4px; }
.next-step h3 { margin: 0 0 7px; font-size: 11px; font-weight: 600; }
.next-step p { margin: 0; color: #97a29c; font-size: 10px; line-height: 1.8; }
.return-register { margin: 38px 0 28px; color: #8a9990; font-size: 11px; line-height: 1.6; text-align: center; }
.return-register a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1050px) {
  .site-shell { width: calc(100% - 48px); }
  .welcome-panel { padding: 38px 32px 27px; }
  .welcome-copy h1 { font-size: 36px; }
  .registration-panel { padding: 38px 30px 27px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
}

@media (max-width: 720px) {
  .site-shell { width: 100%; padding: 0 22px; }
  .site-header { height: 89px; gap: 14px; }
  .brand { gap: 9px; }
  .brand-mark { width: 43px; }
  .brand-name { font-size: 12px; letter-spacing: 1.1px; }
  .header-actions { gap: 19px; }
  .header-link { font-size: 10px; }
  .language-switch { gap: 7px; }
  .language-switch button { font-size: 11px; }
  .register-layout { display: block; min-height: 0; overflow: visible; border: 0; border-radius: 0; }
  .welcome-panel { display: none; }
  .registration-panel { padding: 23px 0 8px; }
  .section-heading .eyebrow { font-size: 9px; }
  .section-heading h2 { margin-top: 10px; font-size: 29px; letter-spacing: -.9px; }
  .section-heading > p { font-size: 13px; }
  #register-form { margin-top: 30px; }
  .form-grid { gap: 21px; }
  .form-field > label { margin-bottom: 9px; font-size: 12px; }
  .optional-label { font-size: 11px; }
  .form-field > input, .input-with-action, .select-control { min-height: 51px; border-radius: 9px; }
  .form-field > input, .input-with-action input, select { font-size: 16px; }
  .form-field > input, .input-with-action input { padding: 14px 13px; }
  select { min-height: 49px; }
  .select-control::after { top: 20px; }
  .input-action { padding: 0 12px; font-size: 12px; }
  .password-toggle { padding-right: 14px; font-size: 12px; }
  .field-note { margin-top: 9px; font-size: 11px; }
  .invite-notice { margin: 24px 0 -9px; font-size: 12px; }
  .agreement-row { margin-top: 24px; gap: 10px; }
  .agreement-row > input { width: 16px; height: 16px; flex-basis: 16px; }
  .agreement-row > label { font-size: 11px; }
  .primary-button { min-height: 51px; font-size: 15px; }
  .register-submit { margin-top: 24px; }
  .form-bottom-note { margin-top: 15px; font-size: 11px; }
  .ip-credit { margin-top: 25px; font-size: 10px; }
  .site-footer { margin-top: 10px; padding: 23px 0 calc(23px + env(safe-area-inset-bottom)); font-size: 9px; }
  .site-footer span:last-child { max-width: 48%; text-align: right; }
  .dialog-heading { padding: 19px 20px; }
  .dialog-heading h2 { font-size: 18px; }
  .agreement-content { padding: 20px; font-size: 14px; }
  .download-main { margin-top: 31px; }
  .app-icon-frame { width: 108px; margin-bottom: 29px; padding: 7px; border-radius: 28px; }
  .app-icon { width: 92px; height: 92px; border-radius: 22px; }
  .download-hero h1 { margin-top: 14px; font-size: 37px; letter-spacing: -1.7px; }
  .download-intro { max-width: 300px; font-size: 13px; }
  .account-ready-note { max-width: 100%; margin-top: 20px; padding: 9px 12px; font-size: 10px; }
  .platform-grid { grid-template-columns: 1fr; gap: 12px; max-width: 360px; margin: 32px auto 0; }
  .platform-card { min-height: 98px; padding: 23px; }
  .platform-icon { width: 36px; height: 36px; }
  .platform-overline { font-size: 8px; }
  .platform-name { font-size: 24px; }
  .platform-badge { padding: 6px 8px; font-size: 9px; }
  .download-release-note { margin-top: 17px; font-size: 11px; }
  .next-steps { margin-top: 41px; padding-top: 26px; }
  .next-steps > h2 { font-size: 14px; }
  .next-steps-grid { grid-template-columns: 1fr; gap: 21px; padding: 0 12px; }
  .next-step { gap: 16px; }
  .step-number { font-size: 11px; }
  .next-step h3 { margin-bottom: 5px; font-size: 12px; }
  .next-step p { font-size: 11px; }
  .return-register { margin-top: 31px; font-size: 12px; }
}

@media (max-width: 360px) {
  .site-shell { padding-right: 18px; padding-left: 18px; }
  .brand-name { font-size: 11px; letter-spacing: .5px; }
  .header-actions { gap: 13px; }
  .header-link { max-width: 42px; text-align: center; line-height: 1.4; }
  .section-heading h2 { font-size: 27px; }
  .platform-card { padding: 21px 18px; gap: 12px; }
}

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