/* 互粉助手 — App 组件扩展 */

.mf-header {
  padding-top: env(safe-area-inset-top);
  height: calc(var(--mf-header-height) + env(safe-area-inset-top));
}

.mf-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mf-header-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mf-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.mf-header-back:hover { text-decoration: none; color: var(--mf-accent-hover); }

.mf-progress {
  height: 6px;
  background: var(--mf-bg-elevated);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}

.mf-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.mf-list-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--mf-border);
  background: var(--mf-bg-card);
  color: var(--mf-text);
  text-decoration: none;
}

.mf-list-cell span:last-child {
  color: var(--mf-text-muted);
  flex-shrink: 0;
}

.mf-list-cell:first-child { border-radius: var(--mf-radius-lg) var(--mf-radius-lg) 0 0; }
.mf-list-cell:last-child { border-bottom: none; border-radius: 0 0 var(--mf-radius-lg) var(--mf-radius-lg); }
.mf-list-cell:only-child { border-radius: var(--mf-radius-lg); }

button.mf-list-cell,
.mf-list-cell-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid var(--mf-border);
  border-radius: 0;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--mf-text);
  background: var(--mf-bg-card);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: rgba(139, 92, 246, 0.15);
  touch-action: manipulation;
  min-height: 48px;
}

button.mf-list-cell:last-child,
.mf-list-group button.mf-list-cell:last-of-type {
  border-bottom: none;
}

button.mf-list-cell:active,
.mf-list-cell-btn:active {
  opacity: 0.85;
}

.mf-list-group {
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.mf-segmented {
  display: flex;
  background: var(--mf-bg-elevated);
  border-radius: var(--mf-radius-md);
  padding: 4px;
  margin-bottom: 16px;
}

.mf-segmented button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--mf-text-muted);
  padding: 10px 12px;
  border-radius: var(--mf-radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.mf-segmented button.active {
  background: var(--mf-accent);
  color: #fff;
}

.mf-skeleton {
  background: linear-gradient(90deg, var(--mf-bg-elevated) 25%, var(--mf-bg-card) 50%, var(--mf-bg-elevated) 75%);
  background-size: 200% 100%;
  animation: mf-shimmer 1.2s infinite;
  border-radius: var(--mf-radius-md);
  min-height: 88px;
}

@keyframes mf-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.mf-profile-hero {
  text-align: center;
  padding: 24px 16px;
  margin-bottom: 16px;
  background: var(--mf-bg-card);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
}

/* —— 个人中心（dashboard）—— */
.mf-dashboard {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 8px;
}

.mf-profile-card {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 0;
  margin-bottom: 16px;
  background: var(--mf-bg-card);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  box-shadow: var(--mf-shadow);
}

.mf-profile-card__glow {
  position: absolute;
  inset: -50% -30% auto;
  height: 160px;
  background: radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.28), transparent 65%);
  pointer-events: none;
}

.mf-profile-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
}

.mf-profile-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.mf-profile-card__info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.mf-profile-name-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 2px 0;
  margin: 0 0 6px;
  border-radius: var(--mf-radius-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mf-profile-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--mf-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(240px, calc(100vw - 140px));
}

.mf-profile-name-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mf-accent-soft);
  color: var(--mf-accent-hover);
  flex-shrink: 0;
}

.mf-profile-name-row:active {
  opacity: 0.88;
}

.mf-profile-rep {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--mf-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

.mf-profile-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--mf-border);
  padding: 14px 0;
}

.mf-profile-stat {
  padding: 0 8px;
  text-align: center;
}

.mf-profile-stat + .mf-profile-stat {
  border-left: 1px solid var(--mf-border);
}

.mf-profile-stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mf-text);
  margin-bottom: 2px;
}

.mf-profile-stat span {
  font-size: 0.72rem;
  color: var(--mf-text-muted);
}

.mf-menu-group--dashboard {
  margin-bottom: 16px;
}

.mf-menu-section {
  margin-bottom: 18px;
}

.mf-menu-section__label {
  margin: 0 0 8px 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mf-text-muted);
}

.mf-menu-group {
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
  background: var(--mf-bg-card);
}

.mf-menu-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--mf-text);
  text-decoration: none;
  border-bottom: 1px solid var(--mf-border);
  -webkit-tap-highlight-color: rgba(139, 92, 246, 0.1);
  touch-action: manipulation;
}

.mf-menu-cell:last-child {
  border-bottom: none;
}

.mf-menu-cell:active,
.mf-menu-cell--action:active {
  background: var(--mf-bg-elevated);
}

a.mf-menu-cell:hover {
  text-decoration: none;
  color: var(--mf-text);
}

.mf-menu-cell--action {
  cursor: pointer;
  user-select: none;
}

.mf-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mf-menu-icon--violet { background: rgba(139, 92, 246, 0.18); }
.mf-menu-icon--blue { background: rgba(59, 130, 246, 0.18); }
.mf-menu-icon--amber { background: rgba(245, 158, 11, 0.18); }
.mf-menu-icon--pink { background: rgba(236, 72, 153, 0.18); }
.mf-menu-icon--green { background: rgba(34, 197, 94, 0.18); }

.mf-menu-cell__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mf-menu-cell__text strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mf-text);
}

.mf-menu-cell__text small {
  font-size: 0.75rem;
  color: var(--mf-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-menu-chevron {
  color: var(--mf-text-muted);
  font-size: 1.1rem;
  opacity: 0.6;
  flex-shrink: 0;
}

.mf-dashboard-logout-wrap {
  padding: 4px 0 20px;
  text-align: center;
}

.mf-dashboard-logout {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fca5a5;
  cursor: pointer;
  border-radius: var(--mf-radius-md);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mf-dashboard-logout:active {
  background: rgba(239, 68, 68, 0.1);
}

.mf-sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--mf-border-strong);
}

.mf-sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--mf-bg-elevated);
  color: var(--mf-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.mf-sheet-desc {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--mf-text-muted);
  line-height: 1.5;
}

.mf-sheet-msg {
  margin-bottom: 12px;
}

.mf-sheet-actions {
  flex-direction: column;
  margin-top: 8px;
}

.mf-sheet-actions .mf-btn {
  width: 100%;
  flex: none;
}

#mf-overlay-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

#mf-overlay-root > * {
  pointer-events: auto;
}

#mf-overlay-root > [hidden] {
  pointer-events: none;
}

.mf-profile-edit-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}

.mf-profile-edit-sheet[hidden] {
  display: none !important;
}

.mf-profile-edit-sheet.open {
  display: flex;
  pointer-events: auto;
  visibility: visible;
}

body.mf-sheet-open {
  overflow: hidden;
}

.mf-lang-sheet-panel {
  max-height: min(85vh, 520px);
}

.mf-lang-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 4px;
}

.mf-lang-sheet-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--mf-text);
  font-size: 1rem;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mf-lang-sheet-opt:active {
  background: rgba(139, 92, 246, 0.08);
}

.mf-lang-sheet-opt.active {
  background: rgba(139, 92, 246, 0.12);
  color: var(--mf-accent-hover);
  font-weight: 600;
}

.mf-lang-sheet-check {
  flex-shrink: 0;
  color: var(--mf-accent-hover);
  font-size: 1.1rem;
  font-weight: 700;
}

.mf-menu-cell--lang .mf-menu-chevron {
  flex-shrink: 0;
}

.mf-profile-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.mf-profile-edit-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 12px 18px calc(20px + env(safe-area-inset-bottom, 0));
  background: var(--mf-bg-elevated);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--mf-border);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
}

.mf-profile-edit-panel h3 {
  font-size: 1.08rem;
  margin: 0 36px 6px 0;
  font-weight: 700;
}

.mf-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 12px;
}

.mf-badge-rep {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--mf-accent-soft);
  color: var(--mf-accent-hover);
  font-size: 0.78rem;
  font-weight: 600;
}

.mf-toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  background: var(--mf-bg-elevated);
  border: 1px solid var(--mf-border-strong);
  color: var(--mf-text);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: var(--mf-shadow);
}

.mf-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mf-install-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--mf-accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--mf-radius-md);
  font-size: 0.88rem;
  position: relative;
  z-index: 2;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(139, 92, 246, 0.15);
  touch-action: manipulation;
}

.mf-install-banner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.mf-install-banner .mf-btn {
  touch-action: manipulation;
  min-height: 36px;
  min-width: 44px;
}

.mf-install-banner.visible { display: flex; }

.mf-install-guide {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: flex-end;
  justify-content: center;
}

.mf-install-guide.open {
  display: flex;
}

.mf-install-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mf-install-guide-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  margin: 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0));
  background: var(--mf-bg-card);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--mf-shadow);
}

.mf-install-guide-panel h3 {
  font-size: 1.05rem;
  margin: 0 32px 14px 0;
}

.mf-install-guide-panel ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--mf-text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.mf-install-guide-panel li + li {
  margin-top: 10px;
}

.mf-install-guide-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--mf-bg-elevated);
  color: var(--mf-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.mf-bottom-nav a.mf-tab-fab span.mf-tab-icon {
  width: 44px;
  height: 44px;
  margin: -8px auto 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
}

.mf-bottom-nav-inner--5 { max-width: 520px; }

/* 关注条在底栏之上，避免遮挡 Tab */
:root {
  --mf-bottom-nav-offset: 80px;
}

body.mf-has-bottom-nav .mf-follow-bar {
  bottom: calc(var(--mf-bottom-nav-offset) + env(safe-area-inset-bottom));
  padding-bottom: 12px;
}

.mf-minimal-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  min-height: calc(100dvh - var(--mf-header-height) - env(safe-area-inset-top));
}

.mf-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.mf-claim-item { padding: 12px 0; border-bottom: 1px solid var(--mf-border); }
.mf-claim-item:last-child { border-bottom: none; }

.mf-status-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mf-bg-elevated);
  color: var(--mf-text-muted);
}

.mf-status-tag.done { color: var(--mf-success); }
.mf-status-tag.pending { color: var(--mf-warning); }
.mf-status-tag.expired { opacity: 0.7; }

@media (max-width: 768px) {
  .mf-logo-text { display: none; }
  .mf-card:hover { transform: none; }
  .mf-btn:hover { transform: none; }
  .mf-btn:active { opacity: 0.85; transform: scale(0.98); }
}

body.mf-has-follow-bar.mf-has-bottom-nav .mf-page-body,
body.mf-has-follow-bar.mf-has-bottom-nav.mf-app {
  padding-bottom: calc(var(--mf-bottom-nav-offset) + 140px + env(safe-area-inset-bottom));
}

/* 绑定教程 */
.mf-guide {
  margin-bottom: 20px;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
  background: var(--mf-bg-card);
}

.mf-guide-title {
  font-size: 1rem;
  padding: 14px 16px;
  border-bottom: 1px solid var(--mf-border);
  margin: 0;
}

.mf-guide-item {
  border-bottom: 1px solid var(--mf-border);
}

.mf-guide-item:last-child { border-bottom: none; }

.mf-guide-item summary {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.mf-guide-item summary::-webkit-details-marker { display: none; }

.mf-guide-item summary::after {
  content: '›';
  color: var(--mf-text-muted);
  transform: rotate(90deg);
  transition: transform 0.2s;
}

.mf-guide-item[open] summary::after { transform: rotate(-90deg); }

.mf-guide-body {
  padding: 0 16px 16px;
  font-size: 0.88rem;
  color: var(--mf-text-muted);
  line-height: 1.65;
}

.mf-guide-body ol {
  margin: 8px 0 0 1.1rem;
}

.mf-guide-body li { margin-bottom: 6px; }

.mf-guide-body code {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--mf-radius-sm);
  background: var(--mf-bg-elevated);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--mf-text-secondary);
}

.mf-guide-tip {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--mf-radius-sm);
  background: var(--mf-accent-soft);
  color: var(--mf-text-secondary);
}

/* 绑定账号页 — 表单优先，教程收进底部弹窗 */
.mf-bind-page .mf-page-title {
  margin-bottom: 6px;
}

.mf-bind-intro {
  margin-bottom: 14px;
}

.mf-bind-card {
  margin-bottom: 20px;
  padding: 16px;
}

.mf-bind-platform-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mf-text-secondary);
  margin-bottom: 10px;
}

.mf-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mf-field-label-row label {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.mf-chip-help {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 6px 12px;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid var(--mf-border);
  background: var(--mf-bg-elevated);
  color: var(--mf-text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mf-chip-help::before {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mf-accent-soft);
  color: var(--mf-accent-hover);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.mf-chip-help:hover {
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--mf-text);
}

.mf-chip-help:active {
  background: var(--mf-accent-soft);
  border-color: rgba(139, 92, 246, 0.45);
  color: var(--mf-accent-hover);
}

.mf-bind-platform-bar {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 14px;
  padding-bottom: 2px;
}

.mf-bind-platform-bar::-webkit-scrollbar {
  display: none;
}

.mf-bind-platform-bar button {
  flex-shrink: 0;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.mf-bind-field {
  margin-bottom: 12px;
}

.mf-bind-field:last-of-type {
  margin-bottom: 0;
}

.mf-bind-actions {
  margin-top: 14px;
  gap: 10px;
}

.mf-bind-bound-title {
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.mf-guide-sheet-panel {
  max-height: min(78vh, 560px);
}

.mf-guide-sheet-platforms {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 8px 0 12px;
  padding-bottom: 2px;
}

.mf-guide-sheet-platforms::-webkit-scrollbar {
  display: none;
}

.mf-guide-sheet-platforms button {
  flex-shrink: 0;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.mf-guide-sheet-body {
  overflow-y: auto;
  max-height: calc(78vh - 160px);
  -webkit-overflow-scrolling: touch;
  font-size: 0.88rem;
  color: var(--mf-text-muted);
  line-height: 1.65;
}

.mf-guide-sheet-platform-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--mf-text-primary);
  margin-bottom: 8px;
}

.mf-guide-steps {
  margin: 0 0 0 1.15rem;
  padding: 0;
}

.mf-guide-steps li {
  margin-bottom: 6px;
}

.mf-guide-code {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: var(--mf-radius-sm);
  background: var(--mf-bg-elevated);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--mf-text-secondary);
}

.mf-parse-preview {
  margin-top: 12px;
  font-size: 0.82rem;
  background: var(--mf-bg-elevated);
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  color: var(--mf-text-muted);
  max-height: 200px;
  -webkit-overflow-scrolling: touch;
}

.mf-account-card .mf-account-url {
  word-break: break-all;
  margin-bottom: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.mf-account-card .mf-account-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mf-account-card .mf-account-actions-row {
  display: flex;
  gap: 10px;
}

.mf-account-card .mf-account-actions-row .mf-btn {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .mf-account-card .mf-account-actions-row {
    flex-direction: column;
  }

  .mf-account-card .mf-account-actions-row .mf-btn {
    width: 100%;
  }
}

/* 分享弹层（二维码） */
.mf-share-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.65);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.mf-share-sheet-backdrop.open {
  display: flex !important;
}

.mf-share-sheet {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  max-height: min(92vh, 640px);
  overflow: auto;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: var(--mf-radius-lg) var(--mf-radius-lg) 0 0;
  background: var(--mf-bg-card);
  border: 1px solid var(--mf-border);
  border-bottom: none;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 480px) {
  .mf-share-sheet-backdrop {
    align-items: center;
    padding: 16px;
  }

  .mf-share-sheet {
    border-radius: var(--mf-radius-lg);
    border-bottom: 1px solid var(--mf-border);
    padding-bottom: 20px;
  }
}

.mf-share-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--mf-bg-elevated);
  color: var(--mf-text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.mf-share-sheet-title {
  font-size: 1.05rem;
  margin: 0 32px 6px 0;
}

.mf-share-sheet-desc {
  margin-bottom: 16px;
}

.mf-share-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.mf-share-qr {
  padding: 12px;
  background: #fff;
  border-radius: var(--mf-radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.mf-share-qr img,
.mf-share-qr canvas {
  display: block;
  width: 200px !important;
  height: 200px !important;
}

.mf-share-url {
  font-size: 0.78rem;
  word-break: break-all;
  text-align: center;
  color: var(--mf-text-muted);
  margin-bottom: 8px;
  padding: 0 4px;
  user-select: all;
  -webkit-user-select: all;
}

.mf-share-url-link {
  color: var(--mf-accent-hover);
  text-decoration: underline;
}

.mf-share-hint {
  text-align: center;
  margin-bottom: 16px;
}

.mf-share-actions {
  margin-top: 0;
}

body.mf-share-sheet-open {
  overflow: hidden;
}

