/* 咱家点菜 · 在线版增量样式（在 styles.css 之后加载） */

.pre-app .view {
  width: min(100%, 1040px);
}

.pre-app .main {
  padding-bottom: 42px;
}

.pre-app .tabbar {
  display: none !important;
}

.topbar-actions {
  justify-content: flex-end;
}

.topbar-download {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 38px;
  padding: 0 12px;
  gap: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid #d4dfd7;
  border-radius: 999px;
  transition: background 0.16s ease, transform 0.16s ease;
}

.topbar-download:hover {
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.topbar-download svg {
  width: 15px;
  height: 15px;
}

.account-button {
  display: grid;
  width: 43px;
  height: 43px;
  padding: 0;
  place-items: center;
  color: var(--brand);
  font-size: 16px;
  font-weight: 750;
  background: var(--brand-soft);
  border: 1px solid #cddfd4;
  border-radius: 50%;
  transition: transform 0.16s ease, background 0.16s ease;
}

.account-button:hover {
  background: #dcebe3;
  transform: translateY(-1px);
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  align-items: center;
  min-height: calc(100vh - 122px);
  min-height: calc(100dvh - 122px);
  padding: 20px 0 44px;
  gap: clamp(38px, 7vw, 78px);
}

.auth-intro {
  min-width: 0;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 17px;
  padding: 6px 11px;
  gap: 7px;
  color: #7a5f3d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  background: rgba(250, 242, 228, 0.9);
  border: 1px solid #ebdfca;
  border-radius: 999px;
}

.auth-eyebrow .live-dot {
  background: #c98b52;
}

.auth-title {
  max-width: 640px;
  margin: 0;
  color: #203f34;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 840;
  line-height: 1.14;
  letter-spacing: -0.05em;
}

.auth-lede {
  max-width: 500px;
  margin: 20px 0 0;
  color: #5a6961;
  font-size: 15px;
  line-height: 1.85;
}

.auth-points {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  gap: 13px;
  list-style: none;
}

.auth-point {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #40524a;
  font-size: 13.5px;
  font-weight: 570;
}

.auth-point-mark {
  display: grid;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--brand);
  background: rgba(230, 240, 234, 0.9);
  border: 1px solid #d2e2d9;
  border-radius: 9px;
}

.auth-point-mark svg {
  width: 15px;
  height: 15px;
}

.auth-small {
  margin: 27px 0 0;
  color: #8a887f;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.auth-card {
  position: relative;
  padding: 27px 26px 23px;
  background: rgba(255, 253, 248, 0.97);
  border: 1px solid rgba(226, 216, 202, 0.95);
  border-radius: 26px;
  box-shadow: 0 22px 65px rgba(46, 58, 48, 0.1);
}

.auth-card-head {
  margin-bottom: 18px;
}

.auth-card-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 790;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.auth-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-mobile-mark {
  display: none;
}

.auth-tabs {
  display: flex;
  margin-bottom: 19px;
  padding: 4px;
  background: #f0e9de;
  border-radius: 13px;
}

.auth-tab {
  flex: 1;
  min-height: 41px;
  padding: 0 10px;
  color: #78817a;
  font-size: 13px;
  font-weight: 650;
  border-radius: 10px;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.auth-tab.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 7px rgba(51, 52, 44, 0.08);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form .field {
  gap: 6px;
}

.phone-group {
  display: flex;
  align-items: center;
  width: 100%;
  height: 49px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.phone-group:focus-within {
  background: #fff;
  border-color: #9fb9a9;
  box-shadow: 0 0 0 3px rgba(83, 129, 108, 0.09);
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  flex: 0 0 auto;
  padding: 0 12px;
  color: #7a7e75;
  font-size: 13px;
  font-weight: 600;
  border-right: 1px solid #e8e0d5;
}

.phone-group input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 13px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 560;
  background: transparent;
  border: 0;
  outline: none;
}

.phone-group input::placeholder {
  color: #9a9389;
  font-weight: 400;
}

.password-wrap {
  position: relative;
}

.password-wrap .text-input {
  padding-right: 65px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  min-width: 52px;
  min-height: 36px;
  padding: 0 8px;
  color: #6e7c74;
  font-size: 11.5px;
  font-weight: 600;
  background: transparent;
  border-radius: 8px;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: #eee8de;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  font-size: 15px;
  border-radius: 13px;
}

.auth-error {
  margin: 0;
  padding: 9px 11px;
  color: #8f342a;
  font-size: 12px;
  line-height: 1.55;
  background: var(--danger-soft);
  border-radius: 9px;
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -1px;
  gap: 12px;
}

.auth-link {
  min-height: 36px;
  padding: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 620;
}

.auth-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-note {
  margin: 1px 0 0;
  color: #8a8378;
  font-size: 10.5px;
  line-height: 1.65;
}

.auth-privacy {
  margin: 18px 0 0;
  padding-top: 14px;
  color: #999186;
  font-size: 10px;
  line-height: 1.7;
  border-top: 1px solid #f0e8dd;
  text-align: center;
}

.auth-foot {
  margin-top: 8px;
  color: #aaa197;
  font-size: 9.5px;
  text-align: center;
}

.auth-download-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  margin: 10px auto 0;
  padding: 0 14px;
  gap: 6px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 720;
  background: #f1f7f2;
  border: 1px solid #d6e4da;
  border-radius: 999px;
}

.auth-download-link svg {
  width: 14px;
  height: 14px;
}

.auth-download-link:hover {
  background: #e7f1e9;
}

.auth-download-hint {
  max-width: 34em;
  margin: 7px auto 0;
  color: #999186;
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

/* ---------------- 恢复码页面 ---------------- */

.recovery-page {
  display: grid;
  min-height: calc(100vh - 150px);
  min-height: calc(100dvh - 150px);
  place-items: center;
  padding: 18px 0 42px;
}

.recovery-card {
  width: min(100%, 540px);
  padding: 34px 31px 28px;
  text-align: center;
}

.recovery-mark {
  display: grid;
  width: 57px;
  height: 57px;
  margin: 0 auto 17px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 19px;
}

.recovery-mark svg {
  width: 29px;
  height: 29px;
}

.recovery-card h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 790;
  letter-spacing: -0.03em;
}

.recovery-card > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.recovery-code {
  margin: 22px 0 14px;
  padding: 17px 12px;
  color: #24483c;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: clamp(22px, 5.7vw, 29px);
  font-weight: 750;
  letter-spacing: 0.08em;
  background: #edf3ef;
  border: 1px dashed #b9cec1;
  border-radius: 13px;
  user-select: all;
}

.recovery-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.recovery-warning {
  margin: 19px 0;
  padding: 12px 14px;
  color: #7d5c35;
  font-size: 12px;
  line-height: 1.65;
  text-align: left;
  background: #fbf3e5;
  border: 1px solid #f0e0c6;
  border-radius: 11px;
}

.recovery-warning strong {
  color: #604523;
}

.recovery-continue {
  width: 100%;
  min-height: 48px;
}

/* ---------------- 家庭引导 ---------------- */

.onboarding-page {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 17px 0 30px;
}

.onboarding-head {
  margin: 9px 2px 24px;
}

.onboarding-head .eyebrow {
  margin-bottom: 8px;
}

.onboarding-head h1 {
  margin: 0;
  font-size: clamp(29px, 7vw, 39px);
  font-weight: 820;
  line-height: 1.23;
  letter-spacing: -0.04em;
}

.onboarding-head p {
  max-width: 580px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.invite-cards {
  display: grid;
  margin-bottom: 14px;
  gap: 10px;
}

.invite-card {
  padding: 19px;
  background: linear-gradient(135deg, #fffdf8, #fbf4e8);
  border: 1px solid #eadcc7;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.invite-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.invite-card-head .avatar {
  background: #f2e4ce;
  color: #7c6239;
}

.invite-card-copy {
  flex: 1;
  min-width: 0;
}

.invite-card-copy h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 720;
  line-height: 1.4;
}

.invite-card-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 15px;
  gap: 8px;
}

.invite-actions .btn {
  min-height: 41px;
  font-size: 13px;
  border-radius: 11px;
}

.create-family-card {
  padding: 22px 22px 20px;
}

.create-family-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 770;
  letter-spacing: -0.02em;
}

.create-family-card > p {
  margin: 5px 0 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.create-family-card .field {
  margin-bottom: 13px;
}

.onboarding-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 17px;
  padding: 0 4px;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.account-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-inline .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.text-link-button {
  min-height: 38px;
  padding: 0 2px;
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
}

.text-link-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- 家庭信息条 ---------------- */

.order-profile {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding: 13px 17px;
  gap: 11px;
}

.order-profile .avatar {
  width: 37px;
  height: 37px;
  font-size: 14px;
}

.order-profile-info {
  flex: 1;
  min-width: 0;
}

.order-profile-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.order-profile-name {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-profile-action {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 10px;
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 650;
  border-radius: 8px;
}

.order-profile-action:hover {
  background: var(--brand-soft);
}

.family-badge {
  display: inline-flex;
  align-items: center;
  max-width: 150px;
  min-height: 26px;
  padding: 0 9px;
  overflow: hidden;
  color: #6f786f;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f3ede3;
  border-radius: 999px;
}

/* ---------------- 设置：账户 / 家庭 ---------------- */

.account-identity {
  display: flex;
  align-items: center;
  padding: 3px 1px 15px;
  gap: 13px;
  border-bottom: 1px solid #f1eae0;
}

.account-identity .avatar {
  width: 52px;
  height: 52px;
  font-size: 20px;
}

.account-identity-text {
  flex: 1;
  min-width: 0;
}

.account-identity-text h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.account-identity-text p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 14px;
  gap: 8px;
}

.account-actions .btn {
  min-height: 41px;
  padding: 0 13px;
  font-size: 12px;
  border-radius: 11px;
}

.account-actions .logout {
  margin-left: auto;
}

.account-security-note {
  margin: 13px 0 0;
  padding: 9px 11px;
  color: #746449;
  font-size: 10.5px;
  line-height: 1.6;
  background: #fbf4e8;
  border-radius: 9px;
}

.family-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.family-title-row h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 760;
}

.family-title-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.inline-edit {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 6px;
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 650;
}

.member-list,
.outgoing-list {
  display: grid;
  gap: 2px;
}

.member-row {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 7px 4px;
  gap: 10px;
  border-bottom: 1px solid #f2ece2;
}

.member-row:last-child {
  border-bottom: 0;
}

.member-row .avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.member-main {
  flex: 1;
  min-width: 0;
}

.member-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.member-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-phone {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.role-badge {
  display: inline-flex;
  min-height: 19px;
  padding: 0 6px;
  align-items: center;
  color: var(--brand);
  font-size: 9px;
  font-weight: 650;
  background: var(--brand-soft);
  border-radius: 5px;
}

.member-remove {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 8px;
  color: #9c7168;
  font-size: 10.5px;
  border-radius: 8px;
}

.member-remove:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.invite-tools {
  margin-top: 14px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid #eee3d5;
  border-radius: 13px;
}

.invite-tools h3 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.invite-tools p {
  margin: 3px 0 11px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.invite-tools .btn {
  min-height: 40px;
  font-size: 12px;
}

.share-box {
  display: flex;
  align-items: center;
  margin-top: 11px;
  padding: 7px 7px 7px 10px;
  gap: 7px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.share-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-copy {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 9px;
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 650;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.outgoing-block {
  margin-top: 14px;
}

.outgoing-block h3 {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
}

.outgoing-row {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 5px 3px;
  gap: 9px;
  border-bottom: 1px solid #f2ece2;
}

.outgoing-row:last-child {
  border-bottom: 0;
}

.outgoing-info {
  flex: 1;
  min-width: 0;
}

.outgoing-name {
  color: var(--ink-soft);
  font-size: 12px;
}

.outgoing-meta {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9.5px;
}

.outgoing-cancel {
  min-height: 34px;
  padding: 0 8px;
  color: #917267;
  font-size: 10px;
  border-radius: 7px;
}

.outgoing-cancel:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.family-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.install-card {
  padding: 17px 18px;
}

.install-card .install-copy {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.install-icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 12px;
}

.install-icon svg {
  width: 21px;
  height: 21px;
}

.install-copy h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 740;
}

.install-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  gap: 8px;
}

.install-actions .btn {
  min-height: 40px;
  font-size: 12px;
}

.member-leave-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #f2ece2;
}

.member-leave-row .btn {
  min-height: 38px;
  font-size: 11px;
}

/* ---------------- 邀请和账户弹层 ---------------- */

.invite-modal-body {
  display: grid;
  gap: 15px;
}

.lookup-result {
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid #ede3d6;
  border-radius: 13px;
}

.lookup-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lookup-person .avatar {
  width: 39px;
  height: 39px;
  font-size: 15px;
}

.lookup-person-name {
  flex: 1;
  min-width: 0;
}

.lookup-person-name strong {
  display: block;
  font-size: 14px;
}

.lookup-person-name span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
}

.lookup-message {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.lookup-result.is-eligible {
  background: #f0f6f2;
  border-color: #d0e2d7;
}

.lookup-result.is-unavailable {
  background: #fbf5ec;
  border-color: #eee0cc;
}

.lookup-actions {
  display: flex;
  margin-top: 11px;
  gap: 8px;
}

.lookup-actions .btn {
  min-height: 39px;
  font-size: 12px;
}

.copy-link-row {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.copy-link-row span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-link-row button {
  min-height: 32px;
  padding: 0 8px;
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 650;
}

.modal-recovery {
  padding: 18px 14px;
  color: #24483c;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: clamp(19px, 5.4vw, 25px);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-align: center;
  background: #edf3ef;
  border: 1px dashed #b9cec1;
  border-radius: 11px;
  user-select: all;
}

.modal-warning {
  color: #755d3e;
  font-size: 11.5px;
  line-height: 1.65;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 17px;
    gap: 0;
  }

  .auth-intro {
    display: none;
  }

  .auth-card {
    width: min(100%, 510px);
    margin: 0 auto;
  }

  .auth-mobile-mark {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    margin-bottom: 15px;
    padding: 0 9px;
    gap: 6px;
    color: #536c60;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.06em;
    background: #edf4ef;
    border: 1px solid #d8e5dc;
    border-radius: 999px;
  }

  .auth-mobile-mark > svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 640px) {
  .pre-app .main {
    padding-top: 15px;
  }

  .auth-card {
    padding: 22px 18px 20px;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(46, 58, 48, 0.07);
  }

  .auth-card-head h2 {
    font-size: 22px;
  }

  .recovery-card {
    padding: 28px 19px 23px;
  }

  .recovery-card h1 {
    font-size: 23px;
  }

  .create-family-card {
    padding: 19px 17px 17px;
  }

  .onboarding-page {
    padding-top: 5px;
  }

  .onboarding-head {
    margin: 4px 2px 19px;
  }

  .settings-section {
    padding: 18px 16px 16px;
  }

  .account-actions .logout {
    margin-left: 0;
  }

  .account-actions .btn {
    flex: 1 1 auto;
  }

  .account-actions .logout {
    flex-basis: 100%;
  }

  .member-row {
    gap: 8px;
  }

  .member-phone {
    font-size: 10px;
  }

  .order-profile {
    padding: 11px 13px;
  }
}

@media (max-width: 380px) {
  .auth-card {
    padding: 19px 15px 17px;
  }

  .auth-tabs {
    margin-bottom: 16px;
  }

  .auth-tab {
    min-height: 39px;
    font-size: 12.5px;
  }

  .phone-group {
    height: 47px;
  }

  .phone-group input {
    font-size: 16px;
  }

  .recovery-code {
    font-size: 20px;
    letter-spacing: 0.05em;
  }

  .onboarding-head h1 {
    font-size: 27px;
  }
}

/* ---------------- 下载 / 安装引导 ---------------- */

.install-guide .modal-head {
  margin-bottom: 12px;
}

.install-guide-free {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.install-guide-steps {
  display: grid;
  margin: 10px 0 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.install-guide-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.install-step-number {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  background: #f8ead9;
  border-radius: 8px;
}

.install-guide-steps strong {
  display: block;
  color: var(--ink);
  font-size: 11.5px;
}

.install-guide-steps p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.install-guide-note {
  display: flex;
  align-items: flex-start;
  margin: 13px 0 0;
  padding: 9px 11px;
  gap: 6px;
  color: #8b6c4a;
  font-size: 9.8px;
  line-height: 1.55;
  background: #fdf7ec;
  border-radius: 10px;
}

.install-guide-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.install-guide-actions {
  flex-wrap: wrap;
  margin-top: 15px;
}

.install-guide-actions .btn {
  flex: 1 1 auto;
}

@media (max-width: 380px) {
  .topbar-download {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .topbar-download span {
    display: none;
  }
}

.modal-inner.install-guide {
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
}
