/*
 * 移动端优先 · 简洁界面
 * 无顶栏；已登录用户使用底部导航（≤4 项，触控≥48px，安全区）
 */

:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #8e8e93;
  --border: rgba(60, 60, 67, 0.18);
  --primary: #07c160;
  --primary-press: #06ad56;
  --danger: #ff3b30;
  --tap: 48px;
  --bottom-nav-h: 3.25rem;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 300;
  padding: 0.5rem 0.85rem;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  border-radius: 8px;
}

.skip-link:focus {
  left: max(0.5rem, env(safe-area-inset-left, 0px));
  outline: 2px solid #fff;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: #007aff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}

/* 为主内容留出底部导航与安全区 */
.wrap {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-left, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-right, 0px));
}

.has-bottom-nav .wrap {
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 0.75rem);
}

@media (min-width: 768px) {
  .wrap {
    max-width: 32rem;
    padding-top: 1.25rem;
  }
}

/* 提示 */
.flash-wrap {
  padding: 0.5rem max(1rem, env(safe-area-inset-left, 0px)) 0
    max(1rem, env(safe-area-inset-right, 0px));
  max-width: 26rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .flash-wrap {
    max-width: 32rem;
  }
}

.flash {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.flash-success {
  background: rgba(7, 193, 96, 0.12);
  color: #1a7f4c;
}

.flash-danger {
  background: rgba(255, 59, 48, 0.1);
  color: #c41e16;
}

.flash-info {
  background: rgba(0, 122, 255, 0.1);
  color: #0058b0;
}

/* 返回 */
.back-row {
  margin: 0 0 0.75rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.25rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #007aff;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.back-link::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.35rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

/* 标题 */
.page-head h1,
main > h1,
.form-page h1,
.sheet-title,
.card > h1 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.sheet-title {
  margin-bottom: 0.25rem;
}

.sheet-email {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  word-break: break-all;
}

/* 卡片 */
.card,
.sheet {
  background: var(--card);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.form-page {
  margin-top: 0;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* 自定义图片选择（替代系统 file 样式） */
.file-picker-row__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.file-picker {
  position: relative;
}

.file-picker__native {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.file-picker__zone {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: 4.65rem;
  padding: 0.5rem 0.85rem;
  border: 2px dashed rgba(7, 193, 96, 0.5);
  border-radius: 12px;
  background: rgba(7, 193, 96, 0.07);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-align: left;
}

.file-picker__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.08rem;
  min-width: 0;
}

.file-picker__zone:hover {
  background: rgba(7, 193, 96, 0.1);
  border-color: rgba(7, 193, 96, 0.65);
}

.file-picker__zone:active {
  background: rgba(7, 193, 96, 0.12);
}

.file-picker__icon {
  flex-shrink: 0;
  color: var(--primary);
  display: flex;
  line-height: 0;
}

.file-picker__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.file-picker__hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.25;
}

.file-picker__filename {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  text-align: left;
  word-break: break-all;
  line-height: 1.35;
}

.update-preview-wrap {
  margin: 0 0 1.15rem;
  text-align: center;
}

.update-preview-wrap img {
  width: min(100%, 18rem);
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  vertical-align: middle;
}

.input,
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}

@media (min-width: 768px) {
  .input,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea {
    font-size: 1rem;
  }
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input[type="file"] {
  width: 100%;
  min-height: var(--tap);
  font-size: 0.875rem;
}

.form-errors {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: 0.3rem;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 420px) {
  .radio-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.875rem;
  min-height: var(--tap);
  cursor: pointer;
}

.radio-pill input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.form-footer-link {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.875rem;
}

.stack-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack-vertical .btn,
.stack-vertical input[type="submit"] {
  width: 100%;
}

/* 按钮 */
.btn,
input[type="submit"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active,
input[type="submit"].btn:active {
  transform: scale(0.98);
}

.btn-primary,
input[type="submit"].btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover,
input[type="submit"].btn-primary:hover {
  text-decoration: none;
  background: var(--primary-press);
  color: #fff;
}

.btn-ghost,
input[type="submit"].btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover,
input[type="submit"].btn-ghost:hover {
  text-decoration: none;
  background: rgba(0, 0, 0, 0.04);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  min-height: 3.125rem;
  font-size: 1.0625rem;
  border-radius: 14px;
}

/* 列表 */
.qr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  min-height: calc(var(--tap) + 0.5rem);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.qr-card:hover {
  text-decoration: none;
  background: #fafafa;
}

.qr-card:active {
  background: #f0f0f0;
}

.qr-card .qr-thumb {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.qr-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.qr-card-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  word-break: break-word;
}

.qr-card-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.qr-card-chevron {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  flex-shrink: 0;
  opacity: 0.45;
}

.qr-card-add {
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  border-style: dashed;
  border-color: rgba(7, 193, 96, 0.45);
  background: rgba(7, 193, 96, 0.04);
  min-height: 5.25rem;
}

.qr-add-icon {
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  color: var(--primary);
}

.qr-card-add .qr-card-title {
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 600;
}

.empty-hint {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.page-head {
  margin-bottom: 1rem;
}

.page-head .muted {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

/* 我的（与列表 qr-card、表单页留白一致） */
.me-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  margin-bottom: 0.85rem;
  background: #f2f2f7;
  border-radius: 14px;
  border: 1px solid rgba(60, 60, 67, 0.08);
}

.me-profile__avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(7, 193, 96, 0.14);
  color: var(--primary);
}

.me-profile__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.me-profile__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.me-profile__email {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
  color: var(--text);
}

.me-menu.me-menu--danger {
  margin-top: 0.85rem;
}

.me-menu-card .me-menu-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f2f2f7;
  color: var(--muted);
}

.me-menu-card .me-menu-icon--primary {
  background: rgba(7, 193, 96, 0.12);
  color: var(--primary);
}

.me-menu-card .me-menu-icon--danger {
  background: rgba(255, 59, 48, 0.1);
  color: var(--danger);
}

.me-menu-card .qr-card-meta {
  font-size: 0.8125rem;
}

.me-menu-card--danger .qr-card-title {
  color: var(--danger);
}

.me-menu-card--danger:hover {
  background: rgba(255, 59, 48, 0.05);
}

.me-menu-card--danger:hover .qr-card-title {
  color: #d70015;
}

.me-menu-card--danger .qr-card-chevron {
  border-right-color: rgba(255, 59, 48, 0.45);
  border-bottom-color: rgba(255, 59, 48, 0.45);
}

/* 落地页 */
.hero {
  padding: 0.25rem 0 1rem;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(7, 193, 96, 0.1);
  border-radius: 6px;
}

.hero-title {
  font-size: clamp(1.375rem, calc(1.1rem + 1.2vw), 1.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero-cta {
  margin: 0;
}

.landing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-features li {
  padding: 0.5rem 0;
  padding-left: 1.1rem;
  position: relative;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.landing-features li:last-child {
  border-bottom: none;
}

.landing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* 详情 */
.detail-lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
}

.detail-qr-block {
  margin-bottom: 1.15rem;
}

.detail-qr-overlay-wrap {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.detail-qr-hint {
  position: absolute;
  left: 50%;
  top: 0.55rem;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 0.4rem 0.85rem;
  max-width: calc(100% - 1.2rem);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.detail-preview {
  margin: 0;
}

.detail-preview img {
  width: 100%;
  max-width: 16rem;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

.detail-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.detail-action-btn {
  flex: 1;
  min-width: calc(50% - 0.25rem);
  text-decoration: none;
}

.detail-follow-actions {
  margin-top: 0.25rem;
}

.small-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.link-break {
  font-size: 0.8125rem;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #007aff;
}

/* 账户链接列表 */
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  border-top: 1px solid var(--border);
}

.link-list li:first-child {
  border-top: none;
}

.link-row {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.65rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.link-row:hover {
  text-decoration: none;
  color: #007aff;
}

.link-row--danger {
  color: var(--danger);
}

.link-row--danger:hover {
  color: #d70015;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  min-height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 4px;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__item:hover {
  text-decoration: none;
  color: var(--muted);
}

.bottom-nav__item.is-active {
  color: var(--primary);
}

.bottom-nav__icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.bottom-nav__item.is-active .bottom-nav__icon {
  opacity: 1;
  stroke-width: 2.25;
}

/* 公开扫码页 */
.page-public {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
}

.public-qr-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(0.65rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.85rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
}

/* 全屏铺满可视区域展示群码（仅公开页） */
.public-qr-page--fill {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
  gap: 0.35rem;
  justify-content: flex-start;
}

.public-qr-page--fill.public-qr-page--no-heading {
  gap: 0;
  justify-content: center;
}

.public-qr-page--fill .public-title {
  padding: 0.35rem 0.75rem 0;
  flex-shrink: 0;
}

.public-qr-page--fill .public-qr-frame {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.public-qr-page--fill .public-qr-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.public-title {
  font-size: clamp(1rem, 4vw, 1.2rem);
  font-weight: 700;
  margin: 0;
  padding: 0 max(0.5rem, env(safe-area-inset-left, 0px)) 0 max(0.5rem, env(safe-area-inset-right, 0px));
  line-height: 1.3;
  flex-shrink: 0;
}

.public-qr-frame {
  display: block;
  flex-shrink: 0;
  padding: clamp(0.4rem, 1.8vw, 0.75rem);
  background: var(--card);
  border-radius: clamp(12px, 3vw, 16px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.public-qr-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, calc(100dvh - 7.5rem), 560px);
  max-height: min(94vw, calc(100dvh - 7.5rem), 560px);
  border-radius: clamp(8px, 2vw, 12px);
}

@media (min-width: 768px) {
  .public-qr-frame img {
    max-width: min(520px, calc(100dvh - 8rem));
    max-height: min(520px, calc(100dvh - 8rem));
  }

  .public-qr-page--fill .public-qr-frame img {
    max-width: 100%;
    max-height: 100%;
  }
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.qr-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.radio-inline label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.75rem;
}

/* 兼容旧类名 */
.card-elevated {
  box-shadow: none;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ========== 登录 / 注册页（移动端 App 常见布局）========== */
body.page-auth {
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f7 22%, #f2f2f7 100%);
}

body.page-auth .wrap {
  max-width: 24rem;
  padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
  padding-left: max(1.15rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.15rem, env(safe-area-inset-right, 0px));
}

.auth-shell {
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
}

.auth-topbar {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 0.25rem;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  margin-left: -0.5rem;
  color: var(--text);
  border-radius: 12px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.auth-back:hover {
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.auth-back:active {
  background: rgba(0, 0, 0, 0.08);
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.65rem;
  padding: 0 0.5rem;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-logo svg {
  display: block;
  filter: drop-shadow(0 6px 16px rgba(7, 193, 96, 0.22));
}

.auth-title {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.65rem);
  font-weight: 700;
  margin: 0 0 0.45rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.auth-sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.auth-card {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  padding: 1.35rem 1.2rem 1.45rem;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.auth-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
}

.auth-segment {
  display: flex;
  padding: 4px;
  background: #e5e5ea;
  border-radius: 12px;
  gap: 4px;
  margin-bottom: 1.2rem;
}

.auth-segment__item {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-segment__item:has(.auth-segment__input:checked) {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.auth-segment__input {
  position: absolute;
  inset: 0;
  opacity: 0.01;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.auth-segment__text {
  pointer-events: none;
  position: relative;
  z-index: 0;
}

.auth-field-group {
  background: #f2f2f7;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  transition: box-shadow 0.2s ease;
}

.auth-field-group:focus-within {
  box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.35);
}

.auth-field {
  padding: 0.7rem 1rem 0.8rem;
}

.auth-field--divider {
  border-top: 0.5px solid var(--border);
}

.auth-field__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.auth-field__input {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.0625rem;
  font-family: inherit;
  color: var(--text);
  padding: 0;
  min-height: 1.5rem;
  -webkit-appearance: none;
  appearance: none;
}

.auth-field__input::placeholder {
  color: #aeaeb2;
}

.auth-field__input:focus {
  outline: none;
}

.auth-field:focus-within {
  background: rgba(255, 255, 255, 0.55);
}

.auth-field-error {
  padding: 0 1rem 0.55rem;
  margin-top: -0.15rem;
  font-size: 0.8125rem;
}

.auth-hint {
  font-size: 0.75rem;
  line-height: 1.45;
  margin: 0 0 1.1rem;
}

.btn-auth-submit {
  width: 100%;
  min-height: 3.125rem;
  border-radius: 14px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.btn-secondary,
input[type="submit"].btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
  font-weight: 600;
}

.btn-secondary:hover,
input[type="submit"].btn-secondary:hover {
  background: #fafafa;
  text-decoration: none;
  color: var(--text);
}

.btn-auth-secondary {
  width: 100%;
  min-height: var(--tap);
  border-radius: 14px;
  font-size: 1rem;
}

.auth-forgot {
  text-align: center;
  margin: 1.2rem 0 0;
  font-size: 0.9375rem;
}

.auth-forgot a {
  color: #007aff;
  font-weight: 500;
}

.auth-send-proxy {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-field__row--code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.auth-field__row--code .auth-field__input--inline {
  flex: 1;
  min-width: 0;
  width: auto;
}

.btn-auth-code-send {
  flex-shrink: 0;
  padding: 0.5rem 0.7rem;
  min-height: 2.75rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.auth-send-feedback {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.auth-send-feedback--success {
  color: #07c160;
}

.auth-send-feedback--error {
  color: #ff3b30;
}

/* —— SEO 长文页 /guide/…（主导航无入口，供收录） */
.page-seo-article .seo-article {
  padding: 0.5rem 0 1.5rem;
}

.seo-article .seo-article__inner {
  max-width: 42.3rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.25rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  font-size: 1.0625rem;
  line-height: 1.9;
  color: #333;
}

.seo-article .seo-article-kicker {
  font-size: 0.8125rem;
  color: #888;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}

.seo-article h1 {
  font-size: 1.5rem;
  line-height: 1.45;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #1a1a1a;
}

.seo-article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.85rem;
  padding-left: 0.6rem;
  border-left: 4px solid #07c160;
  color: #1a1a1a;
}

.seo-article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.35rem 0 0.6rem;
  color: #2c2c2c;
}

.seo-article p {
  margin: 0 0 1rem;
}

.seo-article ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.seo-article li {
  margin-bottom: 0.5rem;
}

.seo-article .seo-article-lead {
  font-size: 1rem;
  color: #555;
  padding: 0.85rem 1rem;
  background: #f7faf8;
  border-radius: 6px;
  border: 1px solid #e8f0ec;
}

.seo-article .seo-article-pain {
  background: #fff8f5;
  border-left: 4px solid #ff976a;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 0 6px 6px 0;
}

.seo-article .seo-article-highlight {
  color: #07c160;
  font-weight: 600;
}

.seo-article .seo-article-tutorial-steps {
  counter-reset: seo-tut;
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5rem;
}

.seo-article .seo-article-tutorial-steps > li {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.35rem;
  min-height: 1.75rem;
}

.seo-article .seo-article-tutorial-steps > li::before {
  counter-increment: seo-tut;
  content: counter(seo-tut);
  position: absolute;
  left: 0;
  top: 2px;
  width: 1.85rem;
  height: 1.85rem;
  line-height: 1.85rem;
  text-align: center;
  background: #07c160;
  color: #fff;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
}

.seo-article .seo-article-tutorial-steps li p {
  margin-bottom: 0.6rem;
}

.seo-article .seo-article-tutorial-steps li p:last-child {
  margin-bottom: 0;
}

.seo-article .seo-article-tutorial-tip {
  font-size: 1rem;
  color: #555;
  padding: 0.75rem 0.85rem;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #eee;
  margin: 0 0 1.25rem;
}

.seo-article .seo-article-cta-box {
  text-align: center;
  margin: 1.75rem 0 0.5rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, #f0fff4 0%, #fff 100%);
  border: 1px solid #c8e6c9;
  border-radius: 8px;
}

.seo-article .seo-article-cta-box a {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #07c160;
  text-decoration: none;
}

.seo-article .seo-article-cta-box a:hover {
  text-decoration: underline;
}

.seo-article .seo-article-cta-lead {
  margin: 0 0 0.2rem !important;
  color: #555;
  font-size: 0.95rem;
}

.seo-article .seo-article-cta-note {
  margin: 0.75rem 0 0 !important;
  font-size: 0.875rem;
  color: #888;
}

.seo-article .seo-article-footnote {
  font-size: 0.8125rem;
  color: #999;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.seo-article strong {
  color: #222;
}
