/* 家庭相册Pro — 自定义样式（配合 Tailwind 工具类） */
* { -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f3f4f6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #1f2937;
}
#app { width: 100%; max-width: 420px; min-height: 100vh; }
#toast-host, #modal-host { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
#toast-host > *, #modal-host > * { pointer-events: auto; }

.loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100vh;
}

/* 手机壳（PC 浏览器居中显示，移动端自适应） */
.phone {
  width: 100%; max-width: 375px; min-height: 100vh;
  background: #FFFFFF; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .phone {
    min-height: 812px; height: 812px; margin: 20px 0;
    border-radius: 40px; border: 8px solid #1a1a1a;
  }
}

/* 滚动条 */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 标签 */
.tag-btn { transition: all 0.15s; }
.tag-active { background-color: #6C5CE7 !important; color: white !important; border-color: #6C5CE7 !important; }

/* 模态 */
.modal-overlay { background-color: rgba(0,0,0,0.5); display: none; }
.modal-content { transform: translateY(100%); transition: transform 0.3s ease-out; }
.modal-active .modal-overlay { display: block; }
.modal-active .modal-content { transform: translateY(0); }

/* 卡片渐变 */
.card-gradient-1 { background: linear-gradient(135deg, #E0C3FC 0%, #8EC5FC 100%); }
.card-gradient-2 { background: linear-gradient(135deg, #E2FFC1 0%, #8EC5FC 100%); }

/* 通用组件 */
.btn-primary { background: #6C5CE7; color: white; border-radius: 12px; padding: 12px; font-weight: 700; }
.btn-primary:disabled { background: #c4b5fd; cursor: not-allowed; }
.btn-secondary { background: #f3f4f6; color: #1f2937; border-radius: 12px; padding: 10px; font-weight: 600; }
.btn-danger { background: #ef4444; color: white; border-radius: 12px; padding: 10px; font-weight: 600; }
.card { background: white; border-radius: 16px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.input, .textarea, .select {
  width: 100%; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 12px; font-size: 14px; outline: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: #6C5CE7; }
.textarea { min-height: 80px; resize: none; }

/* Toast */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75); color: white; padding: 10px 18px;
  border-radius: 10px; font-size: 14px; z-index: 10000;
  animation: toast-fade 0.2s ease-out;
}
@keyframes toast-fade { from { opacity: 0; } to { opacity: 1; } }

/* 进度条 */
.progress-bar { height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress-bar > div { height: 100%; background: #6C5CE7; transition: width 0.3s; }

/* 骨架 */
.skeleton { background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 底部 Tab */
.tabbar { background: white; border-top: 1px solid #f3f4f6; padding: 8px 24px 20px; display: flex; justify-content: space-around; align-items: center; flex: none; z-index: 10; }
.tab { display: flex; flex-direction: column; align-items: center; color: #999; font-size: 10px; cursor: pointer; }
.tab-active { color: #6C5CE7; }
