/* ── 家庭同步 UI 样式 ──────────────────────────────────── */

/* 遮罩层 */
.family-setup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(30, 20, 50, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 卡片 */
.family-setup-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(80, 40, 140, 0.3);
  animation: slideUp 0.35s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.family-setup-card h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  color: #4a2d8f;
}
.family-setup-card > p {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: #666;
  line-height: 1.5;
}

/* 按钮区 */
.family-setup-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.family-setup-buttons .primary-button {
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 12px;
}

/* 分割线 */
.family-setup-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #999;
  font-size: 0.85rem;
}
.family-setup-divider::before,
.family-setup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0dce8;
}

/* 加入家庭 */
.family-setup-join {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.family-setup-join > span {
  font-size: 0.85rem;
  color: #888;
}
.family-join-row {
  display: flex;
  gap: 8px;
}
.family-join-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid #d4cee4;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.family-join-row input:focus {
  border-color: #8b5cf6;
}
.family-join-row button {
  white-space: nowrap;
  padding: 10px 16px;
}

/* 底部提示 */
.family-setup-hint {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: #aaa;
}

/* 同步状态按钮 */
.sync-status-btn {
  font-size: 0.85rem !important;
  opacity: 0.9;
  cursor: pointer;
  transition: opacity 0.2s;
}
.sync-status-btn:hover {
  opacity: 1;
}

/* Toast 动画 */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20000;
  background: #333;
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  animation: toastIn 0.3s ease;
  pointer-events: none;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
