/* ============================================
   小萌芽 · iOS 高保真原型样式
   iPhone 15 Pro: 393x852
   ============================================ */

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro Display", sans-serif;
  background: #f5f5f7;
}

/* CSS 变量 */
:root {
  --primary: #FF8C5A;
  --primary-light: #FFB088;
  --primary-bg: #FFF5EE;
  --text: #1c1c1e;
  --text-2: #636366;
  --text-3: #8e8e93;
  --bg: #ffffff;
  --bg-2: #f9f9fb;
  --border: #e5e5ea;
  --tabbar: rgba(255,255,255,0.85);
}

/* iPhone 15 Pro 外壳 */
.phone {
  width: 393px;
  height: 852px;
  background: #000;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15), 0 0 0 2px #1a1a1a;
  margin: 0 auto;
}

/* 屏幕 */
.phone-screen {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  overflow: hidden;
  background: #f9f9fb;
}

/* 状态栏（iOS Dynamic Island） */
.status-bar {
  position: relative;
  height: 54px;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 600;
  color: #1c1c1e;
  z-index: 100;
}
.status-bar.dark { color: #fff; }
.status-bar .time { margin-left: 8px; }
.status-bar .right {
  display: flex; gap: 6px; align-items: center; margin-right: 8px;
}
.dynamic-island {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 35px;
  background: #000;
  border-radius: 20px;
  z-index: 101;
}

/* 顶部导航 */
.nav-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 10;
}
.nav-bar.transparent { background: transparent; backdrop-filter: none; }
.nav-bar .nav-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; }
.nav-bar .nav-btn { font-size: 17px; color: var(--primary); min-width: 40px; }
.nav-bar .nav-btn.cancel { color: var(--text-2); }

/* Tab Bar 底部 */
.tab-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 83px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-top: 0.5px solid rgba(0,0,0,0.08);
  display: flex;
  padding-bottom: 25px;
  z-index: 100;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-3);
  cursor: pointer;
  position: relative;
}
.tab-item i { font-size: 24px; }
.tab-item.active { color: var(--primary); }
.tab-item.center { position: relative; }
.tab-item.center .plus-btn {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #FF8C5A 0%, #FF6B35 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 28px;
  margin-top: -20px;
  box-shadow: 0 6px 20px rgba(255,107,53,0.45);
}

/* 内容区 */
.screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.scroll-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.scroll-content::-webkit-scrollbar { display: none; }

/* 卡片 */
.card {
  background: white;
  border-radius: 18px;
  margin: 0 16px 12px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* 按钮 */
.btn-primary {
  background: linear-gradient(135deg, #FF8C5A 0%, #FF6B35 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  box-shadow: 0 4px 14px rgba(255,107,53,0.3);
}

/* 标签徽章 */
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}

/* 渐变背景 */
.gradient-bg {
  background: linear-gradient(180deg, #FFE4D0 0%, #FFF5EE 50%, #FFFFFF 100%);
}
.gradient-card {
  background: linear-gradient(135deg, #FF8C5A 0%, #FF6B35 100%);
  color: white;
}

/* 头像 */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  background: linear-gradient(135deg, #ffd1dc, #ffb6c1);
  color: white;
  font-weight: 600;
  flex-shrink: 0;
  object-fit: cover;
}

/* 通用工具 */
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg { font-size: 17px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-gray { color: var(--text-2); }
.text-light { color: var(--text-3); }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.p-4 { padding: 16px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-2xl { border-radius: 20px; }
.rounded-full { border-radius: 999px; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* 沉浸式头图 */
.cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
}
