/*
 * 邀请 H5 截图基准：原画布 1254 × 1254，单张状态卡约 540px 宽。
 * 以单卡坐标换算 rem：P / 16。桌面卡宽 33.75rem；手机根字号按视口 / 540 等比。
 * 关键量：顶部栏 96、首屏 274、内容侧距 28、输入框 70、主按钮 72（均为稿内 px）。
 * 独立原生 HTML 页面使用 rem；无 uni-app 样式或 Figma 依赖。
 */
:root {
  color-scheme: light;
  --brand: #2563ff;
  --ink: #07152f;
  --muted: #7d8ca6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: #07152f; background: #f3f6fa; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { min-width: 0; cursor: pointer; }
button:disabled { cursor: default; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 0.1875rem solid #8cafff; outline-offset: 0.1875rem; }
a { color: #1459f5; text-decoration: none; }
svg, img { display: block; }
p, h1, h2, h3, h4 { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 全尺寸都只展示一张状态卡；移动端填满视口，桌面居中保留留白。 */
.page-shell { width: 100%; max-width: 33.75rem; margin: 2.5rem auto; overflow: hidden; border: 1px solid #e3eaf3; border-radius: 1.25rem; background: #fff; box-shadow: 0 0.75rem 2.25rem rgba(56, 91, 143, 0.07); }
.site-header { position: relative; z-index: 2; display: flex; min-height: 6rem; align-items: center; justify-content: space-between; padding: 1.375rem 1.625rem; border-bottom: 1px solid #e9eef6; background: #fff; }
.brand { display: flex; min-width: 0; align-items: center; }
.brand-logo { width: 3.125rem; height: 3.125rem; flex: 0 0 auto; border-radius: 0.875rem; object-fit: cover; }
.brand-name { margin-left: 0.875rem; font-size: 1.75rem; font-weight: 750; letter-spacing: 0.025rem; line-height: 1.4; }
.header-note { margin-left: 1rem; color: #7788a4; font-size: 1.1875rem; line-height: 1.5; white-space: nowrap; }

/* 蓝色邀请头图：文字位于上层，透明车辆图片固定在右下。 */
.invite-hero { position: relative; height: 17.125rem; overflow: hidden; border-radius: 0 0 1.9375rem 1.9375rem; background: #176bff; background: linear-gradient(115deg, #0753ff 0%, #176bff 46%, #479cff 100%); }
.invite-hero::before { position: absolute; top: -25rem; right: 3.125rem; width: 42rem; height: 38rem; border-radius: 50%; background: rgba(123, 192, 255, 0.17); content: ""; }
.invite-hero::after { position: absolute; right: -12.75rem; bottom: -16rem; width: 25rem; height: 28rem; border-radius: 50%; background: rgba(179, 216, 255, 0.13); content: ""; }
.hero-copy { position: relative; z-index: 2; padding: 1.875rem 1.75rem 0; color: #fff; }
.hero-tag { display: inline-block; padding: 0.4375rem 1.125rem; border-radius: 2rem; background: rgba(255, 255, 255, 0.2); font-size: 1.125rem; line-height: 1.4; }
.hero-copy h1 { margin-top: 1.125rem; font-size: 2.875rem; font-weight: 750; letter-spacing: -0.075rem; line-height: 1.22; }
.hero-copy p { margin-top: 1rem; font-size: 1.25rem; line-height: 1.5; letter-spacing: 0.025rem; }
.hero-car { position: absolute; z-index: 1; right: 0.5625rem; bottom: 0.125rem; width: 15rem; height: auto; pointer-events: none; }

.login-content { padding: 1.625rem 1.75rem 2.125rem; }
.invitation-strip { display: flex; min-height: 4rem; align-items: center; padding: 0.6875rem 0.875rem; border-radius: 1rem; background: #f2f6ff; }
.invitation-icon { width: 2rem; height: 2rem; flex: 0 0 auto; margin-right: 1rem; color: #155aff; }
#invite-state { min-width: 0; flex: 1; color: #132441; font-size: 1.25rem; line-height: 1.5; }
.invitation-badge { flex: 0 0 auto; margin-left: 0.625rem; padding: 0.375rem 1rem; border-radius: 2rem; color: #205bff; background: #e1ebff; font-size: 1.125rem; line-height: 1.45; }
.invitation-badge[data-tone="warning"], .invitation-badge[data-tone="error"] { color: #936522; background: #fff1d5; }
.notice { margin-top: 0.875rem; padding: 0.75rem 0.875rem; border-radius: 0.75rem; font-size: 1rem; line-height: 1.65; overflow-wrap: break-word; }
.notice-warning { color: #946322; background: #fff8ea; }
.login-heading { margin-top: 2.375rem; }
.login-heading h2 { font-size: 2.125rem; font-weight: 740; line-height: 1.4; letter-spacing: -0.03125rem; }
.login-heading p { margin-top: 0.375rem; color: #8290a8; font-size: 1.25rem; line-height: 1.65; }
#login-form { margin-top: 1.75rem; }
.form-field + .form-field { margin-top: 1.625rem; }
.form-field > label { display: block; margin-bottom: 0.5rem; color: #152640; font-size: 1.25rem; line-height: 1.5; }
.input-container { display: flex; min-height: 4.375rem; align-items: center; overflow: hidden; border: 1px solid #dce4f1; border-radius: 0.9375rem; background: #fbfcff; transition: border-color 0.15s, box-shadow 0.15s; }
.input-container:focus-within { border-color: #82a7ff; background: #fff; box-shadow: 0 0 0 0.1875rem #eff4ff; }
.input-container input { width: 100%; min-width: 0; min-height: 4.25rem; flex: 1 1 auto; padding: 0.8125rem 1.5rem; border: 0; border-radius: 0; outline: none; background: transparent; color: #152640; font-size: 1.375rem; line-height: 1.5; -webkit-appearance: none; appearance: none; }
.input-container input::placeholder { color: #94a0b5; font-size: 1.25rem; }
.phone-prefix { flex: 0 0 auto; margin-left: 1.5rem; padding-right: 1.375rem; border-right: 1px solid #cfd8e9; color: #13243f; font-size: 1.3125rem; line-height: 1.5rem; }
.phone-container input { padding-left: 1.5rem; }
.send-code { position: relative; min-width: 9.4375rem; min-height: 4.25rem; flex: 0 0 auto; align-self: stretch; padding: 0.1875rem 1.4375rem; border: 0; background: transparent; color: #1359ff; font-size: 1.1875rem; line-height: 1.5rem; white-space: nowrap; }
.send-code::before { position: absolute; top: 50%; left: 0; height: 1.5rem; margin-top: -0.75rem; border-left: 1px solid #cfd8e9; content: ""; }
.send-code:disabled { color: #92a1b9; }
.button { position: relative; display: flex; width: 100%; min-height: 4.5rem; align-items: center; justify-content: center; padding: 0.875rem 1.5rem; border: 1px solid transparent; border-radius: 1.0625rem; font-size: 1.375rem; font-weight: 650; line-height: 1.5; transition: background 0.15s, opacity 0.15s; }
.button-primary { color: #fff; background: #256fff; background: linear-gradient(110deg, #2d79ff, #256aff); }
.button-primary:hover { background: #1d61ec; }
.button-primary:active { background: #1556da; }
.button-primary:disabled { opacity: 0.58; }
.button.is-recommended { border-color: #9cbcff; box-shadow: 0 0 0 0.1875rem #e9f0ff; }
.button-arrow { width: 2.125rem; height: 2.125rem; flex: 0 0 auto; }
.login-button { margin-top: 1.875rem; }
.login-button .button-arrow { position: absolute; top: 50%; right: 1.375rem; margin-top: -1.0625rem; }
#login-submit-label { padding-right: 1.875rem; }
.form-status { margin-top: 0.75rem; color: #a13b3b; font-size: 1rem; line-height: 1.65; overflow-wrap: break-word; }
.form-status:empty { display: none; }
.form-status[data-tone="success"], .form-status.is-success { color: #24815b; }
.form-status[data-tone="info"] { color: #6b7e98; }
.form-status[data-tone="warning"] { color: #946322; }
.form-status[data-tone="error"] { color: #a13b3b; }
.registration-note, .success-slogan { display: flex; align-items: center; justify-content: center; color: #92a0b7; font-size: 1rem; line-height: 1.7; }
.registration-note { margin: 1.25rem 2.9375rem 0; }
.registration-note::before, .registration-note::after, .success-slogan::before, .success-slogan::after { height: 1px; flex: 1; background: #d7e0ee; content: ""; }
.registration-note span, .success-slogan span { margin: 0 0.9375rem; flex: 0 0 auto; }
.privacy-note { display: flex; align-items: center; justify-content: center; margin-top: 2.6875rem; color: #8b9ab3; font-size: 1rem; line-height: 1.6; }
.privacy-note svg { width: 1.375rem; height: 1.375rem; flex: 0 0 auto; margin-right: 0.75rem; }

/* 成功状态顶部仅确认手机验证；邀请绑定回执由脚本独立写入。 */
.success-panel { padding: 2.375rem 1.75rem 1.25rem; }
.verification-summary { display: flex; align-items: center; padding: 0 0.75rem 1.9375rem; border-bottom: 1px solid #e0e7f1; }
.success-symbol { display: flex; width: 5.625rem; height: 5.625rem; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; color: #0aab35; background: #e5f8e9; }
.success-symbol svg { width: 3rem; height: 3rem; }
.verification-copy { min-width: 0; flex: 1; margin-left: 1.875rem; }
#success-title { font-size: 2.125rem; font-weight: 750; line-height: 1.5; }
.binding-status { margin-top: 0.25rem; color: #71839d; font-size: 1.3125rem; line-height: 1.6; overflow-wrap: break-word; }
.binding-status:empty { display: none; }
.binding-status[data-tone="success"] { color: #6a7c99; }
.binding-status[data-tone="warning"] { color: #99692c; }
.binding-status[data-tone="error"] { color: #ac4d45; }
.text-button { min-height: 2.75rem; padding: 0.4375rem 0.75rem; border: 0; background: transparent; color: #6f86ab; font-size: 1rem; line-height: 1.6; }
.text-button:hover { color: #2563ff; }
.retry-button { margin: 0.375rem 0 0; padding-left: 0; text-align: left; }
.download-intro { margin-top: 2rem; }
.download-intro h3 { font-size: 2.9375rem; font-weight: 750; line-height: 1.38; letter-spacing: -0.0625rem; }
.download-intro h3 span { color: #1658ff; }
#success-description { margin-top: 0.3125rem; color: #7a89a2; font-size: 1.3125rem; line-height: 1.65; }
.app-brand-card { display: flex; min-height: 7.1875rem; align-items: center; margin-top: 1.5rem; padding: 1rem 1.125rem; border: 1px solid #e6edf8; border-radius: 0.9375rem; background: #f7f9ff; }
.app-brand-logo { width: 5.125rem; height: 5.125rem; flex: 0 0 auto; margin-right: 1.5rem; border-radius: 1.4375rem; object-fit: cover; }
.app-brand-name { color: #10203c; font-size: 1.75rem; font-weight: 700; line-height: 1.5; }
.app-brand-description { margin-top: 0.0625rem; color: #7487a2; font-size: 1.25rem; line-height: 1.6; }
.app-entry { margin-top: 1.3125rem; }
.platform-entry + .platform-entry { margin-top: 1.0625rem; }
.download-button { min-height: 6.5rem; justify-content: flex-start; padding: 1.125rem 2rem; color: #fff; text-align: left; }
.ios-button { background: #1e3b5d; background: linear-gradient(112deg, #1c3a5c, #1e3652); box-shadow: 0 0.125rem 0.125rem rgba(11, 36, 70, 0.08); }
.ios-button:hover { background: #152e4b; }
.android-button { background: #1c70ff; background: linear-gradient(110deg, #1f77ff, #1565ff); }
.android-button:hover { background: #155ae8; }
.download-button:disabled { opacity: 0.58; }
.platform-icon { width: 3.25rem; height: 3.25rem; flex: 0 0 auto; margin-right: 2.5rem; }
.apple-icon { width: 3.25rem; height: 3.25rem; }
.android-icon { width: 3.25rem; height: 3.5rem; }
.download-copy { min-width: 0; flex: 1; }
.platform-name { display: block; color: rgba(255, 255, 255, 0.82); font-size: 1.0625rem; font-weight: 400; line-height: 1.6; }
.download-title { display: block; font-size: 1.625rem; font-weight: 650; line-height: 1.5; letter-spacing: 0.00625rem; white-space: nowrap; }
.download-button .button-arrow { margin-left: 0.75rem; }
.copy-button { display: flex; min-height: 2.125rem; align-items: center; justify-content: flex-end; margin: 0.3125rem 0 0 auto; padding: 0.25rem 0.3125rem; border: 0; background: transparent; color: #7894b6; font-size: 1.0625rem; line-height: 1.5; }
.copy-button svg { width: 1.1875rem; height: 1.1875rem; flex: 0 0 auto; margin-right: 0.625rem; }
.copy-button:disabled { color: #a0aec0; }
.app-status { margin-bottom: 0.75rem; }
.store-link { display: inline-block; margin: 0.1875rem 0.25rem; color: #2563ff; font-weight: 550; text-decoration: underline; overflow-wrap: break-word; }
.download-copy-area { margin: 0.75rem 0; padding: 0.75rem; border: 1px solid #dce6f6; border-radius: 0.75rem; background: #f5f8ff; color: #6c82a4; font-size: 1rem; line-height: 1.7; }
.browser-hint { display: flex; min-height: 6.25rem; align-items: center; margin-top: 1.25rem; padding: 1.125rem 1.4375rem; border-radius: 1.125rem; background: #f0f5ff; }
.compass-icon { width: 3rem; height: 3rem; flex: 0 0 auto; margin-right: 2rem; }
.browser-hint h4 { color: #1d3154; font-size: 1.25rem; font-weight: 600; line-height: 1.6; }
.browser-hint p { margin-top: 0.125rem; color: #738bad; font-size: 1.0625rem; line-height: 1.65; }
.success-slogan { margin: 2.125rem 4.25rem 0; }
.switch-account { display: block; margin: 0.875rem auto 0; color: #a3afc1; font-size: 0.875rem; }

/* 微信内置浏览器提示弹层保留，复制失败时允许长按只读链接。 */
.browser-guide { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem; overflow-y: auto; background: rgba(13, 31, 61, 0.58); }
.browser-guide-card { position: relative; width: 100%; max-width: 27rem; padding: 2rem 1.5rem 1rem; border-radius: 1.25rem; background: #fff; text-align: center; }
.guide-arrow { display: block; margin-bottom: 0.75rem; color: #2563ff; font-size: 3.25rem; line-height: 1; }
.browser-guide-card h2 { font-size: 1.75rem; }
.browser-guide-card p { margin: 0.75rem 0 1.5rem; color: #7a8597; font-size: 1.125rem; line-height: 1.9; }
.browser-guide-card strong { color: #2563ff; font-size: 1.375rem; }
.browser-guide-card .text-button { margin-top: 0.625rem; font-size: 1.125rem; }
#manual-copy-link, .download-copy-area input { display: block; width: 100%; min-height: 3.25rem; margin-top: 0.75rem; padding: 0.6875rem; border: 1px solid #dbe4f3; border-radius: 0.625rem; color: #355984; background: #f5f8fe; font-size: 1.125rem; line-height: 1.5; -webkit-user-select: text; user-select: text; }
.noscript-notice { max-width: 33.75rem; margin: 1rem auto; padding: 1rem; border-radius: 0.5rem; color: #946322; background: #fff3d6; font-size: 1.125rem; line-height: 1.8; }

@media (max-width: 33.75rem) {
  /* 375 / 402 / 481 视口的基准字号分别为 11.11 / 11.91 / 14.25。 */
  html { font-size: 2.96296296vw; }
  body { background: #fff; }
  .page-shell { min-height: 100vh; margin: 0 auto; padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); border: 0; border-radius: 0; box-shadow: none; }
  .site-header { padding-top: calc(1.375rem + constant(safe-area-inset-top)); padding-top: calc(1.375rem + env(safe-area-inset-top)); }
  /* 输入文字至少 16 CSS px，避免 iOS 聚焦自动放大；此值属于浏览器输入行为适配。 */
  .input-container input, #manual-copy-link, .download-copy-area input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .input-container, .button { transition: none; }
}
