/* ============================================================
   components.css — 按钮、卡片、进度条、模态框等组件
   ============================================================ */

/* ============ 按钮系统 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 32px;
  border-radius: var(--radius-full);       /* 全圆角胶囊按钮 */
  font-size: var(--font-size-md);
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
  min-width: 140px;
  border: none;
  position: relative;
  overflow: hidden;
}

/* 主按钮：粉蓝渐变 + 光晕 */
.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-on-gradient);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(232, 160, 191, 0.35);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* 次按钮：白底 + 粉色边框 */
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-pink);
  border: 1.5px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-selected);
  border-color: var(--border-focus);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 强调按钮：暖金色 */
.btn-accent {
  background: linear-gradient(135deg, var(--accent-warm), #F4845F);
  color: var(--text-on-gradient);
  box-shadow: 0 4px 16px rgba(242, 197, 124, 0.30);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(242, 197, 124, 0.40);
}


/* ============ 结果卡片 ============ */
.result-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-md) 0;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/*卡片顶部装饰光带 */
.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg, 
    var(--card-gradient-from, #E8A0BF),
    var(--card-gradient-to, #7EB8DA)
  );
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.result-header {
  margin-bottom: var(--spacing-md);
}

.result-icon {
  font-size: 56px;
  display: block;
  margin-bottom: var(--spacing-sm);
  /* 给 emoji 加个圆形淡背景 */
  width: 88px;
  height: 88px;
  line-height: 88px;
  margin: 0 auto var(--spacing-sm);
  background: var(--bg-selected);
  border-radius: var(--radius-full);
  border: 2px solid var(--border-light);
}

.result-type {
  font-size: var(--font-size-xxl);
  font-weight: 800;
  margin-bottom: var(--spacing-xs);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-label {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

/* 标签胶囊 */
.result-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.result-tags span {
  background: linear-gradient(135deg, rgba(232,160,191,0.12), rgba(126,184,218,0.12));
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--text-pink);
  border: 1px solid var(--border-light);
  font-weight: 500;
}

/* 核心文案 */
.result-oneliner {
  font-size: var(--font-size-md);
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  padding: var(--spacing-sm);
  background: linear-gradient(135deg, rgba(232,160,191,0.06), rgba(126,184,218,0.06));
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-pink);
}


/* ============ 进度条 ============ */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(232, 160, 191, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--spacing-xs);
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--transition-smooth);
}

.progress-info {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--spacing-xs);
}

#progress-text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
}


/* ============ 测试题 ============ */
.test-content h2 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
  text-align: left;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 600;
}

/*选项卡片 */
.options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) 0;
}

.option {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
  box-shadow: var(--shadow-xs);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: var(--font-size-md);
}

.option:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.option.selected {
  background: var(--bg-selected);
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(232, 160, 191, 0.15), var(--shadow-md);
}

/* 上一题按钮 */
#prev-btn {
  margin-top: var(--spacing-md);
  opacity: 0.7;
  font-size: var(--font-size-sm);
}


/* ============ 匹配指数条 ============ */
.match-index {
  margin: var(--spacing-md) 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.match-index h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.index-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.index-item span:first-child {
  width: 24px;
  font-weight: 700;
  color: var(--text-pink);
  font-size: var(--font-size-md);
}

.index-bar {
  flex: 1;
  height: 8px;
  background: rgba(232, 160, 191, 0.10);
  border-radius: var(--radius-full);
  margin: 0 var(--spacing-sm);
  overflow: hidden;
}

.index-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 1s var(--transition-smooth);
}

.index-item span:last-child {
  width: 44px;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-align: right;
  font-weight: 600;
}


/* ============ 结果详情区============ */
.result-section {
  margin: var(--spacing-md) 0;
  text-align: left;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.result-section h3 {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  font-weight: 600;
}

.result-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--font-size-md);
}

.result-section ul {
  list-style: none;
  margin-left: 0;
  color: var(--text-secondary);
}

.result-section li {
  margin-bottom: var(--spacing-xs);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

/* 用圆点替代默认列表符号，颜色跟主题一致 */
.result-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-coral);
}


/* ============ 结果按钮 ============ */
.result-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: var(--spacing-md) 0;
  width: 100%;
}


/* ============ 分享文本 ============ */
.share-text {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-md);
  text-align: center;
}

.share-text a {
  color: var(--primary-pink);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ============ 加载动画 ============ */
.loading-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(232, 160, 191, 0.15);
  border-top: 3px solid var(--primary-pink);
  border-right: 3px solid var(--primary-blue);
  border-radius: var(--radius-full);
  animation: spin 0.9s linear infinite;
  margin: var(--spacing-lg) auto;
}

.loading-bar {
  width: 80%;
  max-width: 300px;
  height: 6px;
  background: rgba(232, 160, 191, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--spacing-md) auto 0;
}

.loading-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.loading-text {
  margin: var(--spacing-md) 0;
  color: var(--text-secondary);
  font-size: var(--font-size-md);
}


/* ============ 匹配报告 ============ */
.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--spacing-md) 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.match-person {
  flex: 1;
  text-align: center;
}

.match-person h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 4px;
  color: var(--text-primary);
  font-weight: 700;
}

.match-person p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.match-score {
  flex: 1;
  text-align: center;
}

.score-circle {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--text-on-gradient);
  margin: 0 auto 6px;
  box-shadow: var(--shadow-glow);
}

.score-grade {
  font-size: var(--font-size-sm);
  color: var(--text-pink);
  font-weight: 700;
  letter-spacing: 1px;
}

.match-title {
  margin: var(--spacing-md) 0;
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  text-align: center;
  font-weight: 700;
}

.match-dimensions {
  margin: var(--spacing-md) 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-dimension {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: left;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-dimension:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.match-dimension h4 {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  font-weight: 600;
}

.match-dimension h4 span {
  margin-right: var(--spacing-xs);
}

.match-dimension .dimension-score {
  font-size: var(--font-size-sm);
  color: var(--text-pink);
  margin-bottom: 6px;
  font-weight: 600;
}

.match-dimension .dimension-bar {
  height: 6px;
  background: rgba(232, 160, 191, 0.10);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--spacing-xs);
}

.match-dimension .dimension-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
}

.match-dimension p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.match-dimension .dimension-detail {
  margin-top: var(--spacing-xs);
  padding-top: var(--spacing-xs);
  border-top: 1px solid rgba(232, 160, 191, 0.15);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.match-dimension .dimension-detail span {
  font-size: var(--font-size-xs);
  color: var(--text-pink);
  font-weight: 600;
}

/* 摩擦点样式 */
#friction-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.friction-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(251, 146, 60, 0.08);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-coral);
}

.friction-icon {
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.friction-content {
  flex: 1;
}

.friction-title {
  font-size: var(--font-size-md);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.friction-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 成长空间样式 */
#growth-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

#growth-verdict {
  margin-bottom: var(--spacing-sm);
  font-style: italic;
  color: var(--text-secondary);
}

.growth-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(52, 211, 153, 0.08);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-mint);
}

.growth-icon {
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.growth-content {
  flex: 1;
}

.growth-title {
  font-size: var(--font-size-md);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.growth-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.match-section {
  margin: var(--spacing-md) 0;
  text-align: left;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.match-section h3 {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  font-weight: 600;
}

.match-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.match-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: var(--spacing-md) 0;
  width: 100%;
}


/* ============ 模态框 ============ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-modal-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-xl);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.modal-content p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: var(--spacing-md);
}


/* ────昵称输入 ──── */
.nickname-input {
  margin: var(--spacing-md) 0;
}

.nickname-input label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-align: left;
}

.nickname-input input {
  width: 100%;
  padding: 12px var(--spacing-sm);
  background: var(--bg-base);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nickname-input input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(232, 160, 191, 0.12);
}

.nickname-input input::placeholder {
  color: var(--text-muted);
}


/* ──── 自我画像测试 ──── */
.self-test {
  margin: var(--spacing-md) 0;
}

.self-question {
  text-align: left;
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  font-weight: 600;
}

.self-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.self-option {
  background: var(--bg-base);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px var(--spacing-sm);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
  color: var(--text-primary);
  font-size: var(--font-size-md);
}

.self-option:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
}

.self-option.selected {
  background: var(--bg-selected);
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(232, 160, 191, 0.12);
  color: var(--text-pink);
  font-weight: 500;
}


/* ────邀请链接弹窗 ──── */
.link-container {
  margin: var(--spacing-md) 0;
}

.link-container input {
  width: 100%;
  padding: 12px var(--spacing-sm);
  background: var(--bg-base);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
}

.link-container input:focus {
  border-color: var(--primary-pink);
}

.expiry {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--spacing-sm);
}

.invite-info {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--spacing-sm);
  line-height: 1.5;
}


/* ────邀请接受卡片（B 看到的） ──── */
.invite-accept-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-md) 0;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.invite-accept-text {
  font-size: var(--font-size-md);
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.invite-accept-note {
  font-size: var(--font-size-sm);
  color: var(--text-pink);
  font-weight: 500;
}


/* ──── 海报预览弹窗 ──── */
#poster-preview-modal {
  background: rgba(45, 45, 63, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.poster-preview-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.close-preview {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  line-height: 40px;
  text-align: center;
  font-size: 28px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.close-preview:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.save-hint {
  color: #FFFFFF;
  font-size: 18px;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  animation: floatHint 2s ease-in-out infinite;
  letter-spacing: 1px;
}

#preview-image {
  width: 85vw;
  max-width: 450px;
  aspect-ratio: 5/7;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  -webkit-touch-callout: default;
  pointer-events: auto;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

@keyframes floatHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── MBTI 自选器 ── */
.mbti-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--spacing-sm);
}

.mbti-dim-row {
  display: flex;
  gap: 10px;
}

.mbti-dim-btn {
  flex: 1;
  padding: 12px 8px;
  background: var(--bg-base);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s var(--transition-bounce);
  text-align: center;
  line-height: 1.4;
}

.mbti-dim-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.mbti-dim-btn.selected {
  background: var(--bg-selected);
  border-color: var(--primary-pink);
  color: var(--text-pink);
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(232, 160, 191, 0.12);
}

.mbti-dim-btn .mbti-letter {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-bottom: 2px;
}

.mbti-dim-btn .mbti-desc {
  display: block;
  font-size: var(--font-size-xs);
  opacity: 0.7;
}

.mbti-dim-btn.selected .mbti-desc {
  opacity: 1;
}

/* 分隔线 */
.sp-divider {
  text-align: center;
  margin: var(--spacing-sm) 0;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  position: relative;
}

.sp-divider::before,
.sp-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border-light);
}

.sp-divider::before { left: 0; }
.sp-divider::after { right: 0; }

/* 不知道 MBTI 的按钮组 */
.sp-unknown-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-unknown-btns .btn {
  font-size: 13px;
  padding: 11px 16px;
}

.sp-unknown-btns .btn-detail-test {
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed var(--border-medium);
  font-size: 12px;
}

.sp-unknown-btns .btn-detail-test:hover {
  color: var(--text-pink);
  border-color: var(--primary-pink);
}

/* ──── 匹配邀请信息 ──── */
.match-info {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--spacing-md);
}

/* ============================================================补充样式 —— 身份注册、记录选择、按钮组
   ============================================================ */

/* ── 首页按钮组 ── */
.home-secondary-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: var(--spacing-sm);
  flex-wrap: wrap;
}
.home-secondary-btns .btn {
  padding: 10px 20px;
  font-size: var(--font-size-sm);
  min-width: auto;
}

/* ── 身份注册弹窗 ── */
.identity-hint {
  font-size: var(--font-size-xs) !important;
  color: var(--text-muted)!important;
  margin-top: var(--spacing-sm);font-style: italic;
  text-align: center;
}

/* ── 记录选择弹窗 ── */
.record-selector-content {
  max-height: 80vh;
  overflow-y: auto;
}
.record-selector-list {
  max-height: 50vh;
  overflow-y: auto;
  margin: var(--spacing-sm) 0;
}
.record-selector-card {
  padding: 14px;
  background: var(--bg-base);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom:10px;
  transition: all 0.2s ease;
}
.record-selector-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}
.rsc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.rsc-icon {
  font-size: 28px;
  line-height: 1;
}
.rsc-info {
  flex: 1;
}
.rsc-type {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
}
.rsc-meta {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 2px;
}
.rsc-btn {
  width: 100%;
  padding: 10px !important;
  font-size: var(--font-size-sm) !important;
}
.record-selector-divider {
  text-align: center;
  margin: var(--spacing-md) 0 var(--spacing-sm);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ── 输入匹配链接弹窗 ── */
.link-input-container {
  margin: var(--spacing-md) 0;
}
.link-input-container input {
  width: 100%;
  padding: 14px var(--spacing-sm);
  background: var(--bg-base);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.link-input-container input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(232, 160, 191, 0.12);
}
.link-input-container input::placeholder {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}
.paste-hint {
  font-size: var(--font-size-xs) !important;
  color: var(--text-muted) !important;
  margin-top: var(--spacing-sm);
  font-style: italic;
}

/* ── 邀请接受卡片（B首页） ── */
.invite-accept-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-md) 0;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.invite-accept-text {
  font-size: var(--font-size-md);
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}
.invite-accept-note {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-style: italic;
}
