/* ===== 全局容器 ===== */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

/* ===== 页面容器 ===== */
.page {
  display: none;
  padding-bottom: 110px;
  min-height: 100vh;
}
.page.active { display: block; }

/* ===== 顶部导航 ===== */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-header h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.nav-header .back-btn {
  font-size: 18px;
  color: var(--text);
  padding: 4px;
}
.nav-header .city-selector {
  font-size: 13px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}
.nav-header .city-selector svg { width: 14px; height: 14px; }

/* ===== 搜索栏 ===== */
.search-bar {
  margin: 12px 16px;
  background: var(--white);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 42px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--primary-light); box-shadow: 0 0 0 3px var(--primary-lighter); }
.search-bar svg { width: 16px; height: 16px; color: var(--primary); margin-right: 8px; flex-shrink: 0; }
.search-bar input { flex: 1; height: 100%; font-size: 14px; background: transparent; color: var(--text); }
.search-bar input::placeholder { color: var(--text-light); }

/* ===== Banner ===== */
.banner {
  margin: 0 16px 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 140px;
  background: linear-gradient(135deg, #FFB6C1 0%, #FF8FAB 55%, #FF6B95 100%);
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: white;
  position: relative;
  box-shadow: 0 10px 24px rgba(255, 107, 149, 0.28);
}
.banner::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.banner::before {
  content: '';
  position: absolute;
  right: 40px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.banner-content { z-index: 1; position: relative; }
.banner-content h2 { font-size: 21px; font-weight: 700; margin-bottom: 5px; letter-spacing: 0.5px; }
.banner-content p { font-size: 12px; opacity: 0.92; letter-spacing: 0.5px; }

/* ===== 首页头部 (问候式) ===== */
.home-hero {
  background: linear-gradient(160deg, #FFE4EC 0%, #FFF0F5 70%, #FFF5F8 100%);
  padding: 18px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
}
.home-hero::after {
  content: '';
  position: absolute;
  right: -24px;
  top: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.home-hero::before {
  content: '';
  position: absolute;
  right: 82px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFC857;
  box-shadow: 0 0 14px rgba(255, 200, 87, 0.7);
}
.hero-greeting { position: relative; z-index: 1; }
.hero-hi { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: 0.3px; }
.hero-sub { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.hero-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #FFC9DC 0%, #FF9DBA 100%);
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 4px 14px rgba(255, 123, 160, 0.4);
  border: 2.5px solid white;
  position: relative; z-index: 1;
  transition: var(--transition);
}
.hero-avatar:active { transform: scale(0.9); }
.hero-avatar svg { width: 22px; height: 22px; }

/* ===== 快捷入口 ===== */
.quick-actions {
  display: flex;
  justify-content: space-around;
  padding: 18px 8px 4px;
}
.qa-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}
.qa-item:active { transform: scale(0.88) translateY(2px); }
.qa-icon {
  width: 52px; height: 52px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 6px 14px rgba(255, 123, 160, 0.18);
}
.qa-icon svg { width: 26px; height: 26px; }

/* ===== 区块标题 ===== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
}
.section-title h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.section-title h3::before { content: ''; display: inline-block; width: 4px; height: 14px; background: var(--primary); border-radius: 2px; margin-right: 7px; vertical-align: -2px; }
.section-title .more { font-size: 13px; color: var(--text-light); }

/* ===== 横滑卡片 ===== */
.scroll-row {
  display: flex;
  gap: 12px;
  padding: 0 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroll-row::-webkit-scrollbar { display: none; }

/* ===== 房源卡片 - 横滑小卡 ===== */
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.property-card:active { transform: scale(0.97); }
.property-card.narrow { width: 230px; }
.property-card .card-img {
  height: 130px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.property-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.property-card .card-img .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFE4EC 0%, #FFC9DC 100%);
}
.property-card .card-img .img-placeholder svg { width: 36px; height: 36px; color: #FF9DBA; }
.property-card .card-img .tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 123, 160, 0.92);
  color: white;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  font-weight: 600;
}
.property-card .card-body { padding: 11px 13px; }
.property-card .card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.property-card .card-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.property-card .card-meta svg { width: 12px; height: 12px; }
.property-card .card-bottom-sm {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.property-card .card-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}
.property-card .card-price span { font-size: 11px; font-weight: 400; color: var(--text-light); }
.property-card .card-stats {
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 2px;
}
.property-card .card-stats svg { width: 12px; height: 12px; }

/* ===== 房源卡片 - 列表大卡 ===== */
.property-card-wide {
  background: var(--white);
  border-radius: var(--radius);
  margin: 0 16px 12px;
  display: flex;
  padding: 12px;
  gap: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.property-card-wide:active { background: var(--primary-bg); transform: scale(0.99); }
.property-card-wide .card-thumb {
  width: 104px;
  height: 104px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #FFE4EC 0%, #FFC9DC 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.property-card-wide .card-thumb svg { width: 32px; height: 32px; color: #FF9DBA; }
.property-card-wide .card-thumb .thumb-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(255, 123, 160, 0.92);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.property-card-wide .card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.property-card-wide .card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-card-wide .card-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}
.property-card-wide .card-meta svg { width: 12px; height: 12px; }
.property-card-wide .card-user {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 11px;
}
.property-card-wide .card-user .avatar-sm {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFC9DC 0%, #FF9DBA 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.property-card-wide .card-user .user-name { color: var(--text-secondary); font-weight: 500; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.property-card-wide .card-user .time { color: var(--text-light); }
.property-card-wide .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.property-card-wide .card-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}
.property-card-wide .card-price span { font-size: 11px; font-weight: 400; color: var(--text-light); }
.property-card-wide .card-stats {
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 2px;
}
.property-card-wide .card-stats svg { width: 12px; height: 12px; }
.property-card-wide .card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.property-card-wide .card-tags .tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 500;
}

/* ===== 帖子卡片 ===== */
.post-card {
  background: var(--white);
  padding: 14px 16px;
  margin: 0 16px 12px;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.post-card:active { background: var(--primary-bg); }
.post-card .post-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.post-card .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFC9DC 0%, #FF9DBA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(255, 123, 160, 0.25);
}
.post-card .user-info .name { font-size: 14px; font-weight: 600; color: var(--text); }
.post-card .user-info .time { font-size: 11px; color: var(--text-light); }
.post-card .post-type {
  margin-left: auto;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.post-card .post-type.find { background: #FFE4EC; color: #FF6B95; }
.post-card .post-type.seek { background: #F0E8FF; color: #9B7FD4; }
.post-card .post-type.share { background: #FFEDDC; color: #FF9F6B; }
.post-card .post-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
}
.post-card .post-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.post-card .post-tags .tag {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}
.post-card .post-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px dashed var(--border);
}
.post-card .post-actions button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 7px 0;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  font-weight: 500;
}
.post-card .post-actions button:active { background: var(--primary-bg); color: var(--primary); }
.post-card .post-actions button.liked { color: var(--primary); }
.post-card .post-actions button.liked svg { animation: heartPop 0.4s ease; }
@keyframes heartPop { 0%{transform:scale(1)} 40%{transform:scale(1.35)} 100%{transform:scale(1)} }
.post-card .post-actions button svg { width: 17px; height: 17px; }

/* ===== 筛选栏 ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  white-space: nowrap;
  background: var(--white);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: var(--transition);
  font-weight: 500;
}
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(255, 123, 160, 0.3);
}

/* ===== 底部 Tab (浮动胶囊栏) ===== */
.tab-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 452px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  display: flex;
  padding: 7px 6px;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(255, 107, 149, 0.2), 0 2px 8px rgba(255, 123, 160, 0.1);
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 0;
  color: var(--text-light);
  font-size: 10px;
  border-radius: 20px;
  transition: var(--transition);
  position: relative;
}
.tab-item > span:last-child { font-weight: 500; }
.tab-item.active {
  color: var(--primary);
  background: var(--primary-bg);
}
.tab-item svg { width: 22px; height: 22px; transition: var(--transition); }
.tab-item.active svg { transform: scale(1.12); }
.tab-item:active { transform: scale(0.9); }
/* 发布按钮 - 醒目圆角 FAB + 呼吸光晕 */
.tab-item.publish-btn { background: none; }
.tab-item.publish-btn > span:last-child { display: none; }
.tab-item.publish-btn .pub-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #FFB6C1 0%, #FF6B95 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
  box-shadow: 0 6px 18px rgba(255, 107, 149, 0.5);
  animation: pubPulse 2.6s ease-in-out infinite;
  border: 2.5px solid rgba(255, 255, 255, 0.85);
}
@keyframes pubPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(255, 107, 149, 0.5); transform: translateY(0); }
  50% { box-shadow: 0 10px 28px rgba(255, 107, 149, 0.72); transform: translateY(-2px); }
}
.tab-item.publish-btn .pub-icon svg { width: 24px; height: 24px; color: white; }

/* ===== 发布页 ===== */
.publish-hero {
  background: linear-gradient(160deg, #FFE4EC 0%, #FFF0F5 100%);
  padding: 22px 18px 20px;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
}
.publish-hero::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.publish-hero-title { font-size: 20px; font-weight: 700; color: var(--text); position: relative; z-index: 1; }
.publish-hero-sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; position: relative; z-index: 1; }
.publish-types {
  display: flex;
  gap: 10px;
  padding: 18px 16px 16px;
}
.publish-type-btn {
  flex: 1;
  padding: 16px 8px;
  border-radius: var(--radius);
  text-align: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.publish-type-btn.active { border-color: var(--primary); background: var(--primary-bg); }
.publish-type-btn:active { transform: scale(0.97); }
.pt-icon {
  width: 48px; height: 48px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 123, 160, 0.2);
}
.pt-icon svg { width: 24px; height: 24px; }
.pt-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.publish-type-btn.active .pt-label { color: var(--primary); }

.publish-form { padding: 0 16px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--white);
  transition: var(--transition);
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lighter);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 90px; }

.btn-primary {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #FF9DBA 0%, #FF6B95 100%);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(255, 107, 149, 0.3);
}
.btn-primary:active { transform: scale(0.98); opacity: 0.92; }

/* ===== 个人中心 ===== */
.profile-hero {
  position: relative;
  padding: 38px 16px 28px;
  background: linear-gradient(160deg, #FFB6C1 0%, #FF8FAB 55%, #FF6B95 100%);
  color: white;
  text-align: center;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.profile-deco-1, .profile-deco-2 {
  position: absolute;
  border-radius: 50%;
}
.profile-deco-1 { width: 150px; height: 150px; right: -45px; top: -55px; background: rgba(255,255,255,0.16); }
.profile-deco-2 { width: 80px; height: 80px; left: -20px; bottom: -28px; background: rgba(255,255,255,0.12); }
.profile-avatar-lg {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.85);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700;
  position: relative; z-index: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.profile-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; position: relative; z-index: 1; letter-spacing: 0.5px; }
.profile-bio { font-size: 13px; opacity: 0.92; position: relative; z-index: 1; }
.profile-edit-btn {
  margin-top: 14px;
  padding: 7px 24px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  position: relative; z-index: 1;
  transition: var(--transition);
}
.profile-edit-btn:active { transform: scale(0.94); }

.profile-stats {
  display: flex;
  padding: 0 16px;
  gap: 10px;
  margin-top: -20px;
  position: relative; z-index: 2;
}
.stat-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(255, 123, 160, 0.12);
}
.stat-card .stat-num { font-size: 22px; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 12px; color: var(--text-light); margin-top: 3px; }

.profile-section-title {
  padding: 20px 18px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.profile-menu { padding: 0 16px; }
.menu-item {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.menu-item:active { background: var(--primary-bg); transform: scale(0.99); }
.menu-item .menu-icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #E84C8A;
  margin-right: 12px;
  flex-shrink: 0;
}
.menu-item .menu-icon svg { width: 19px; height: 19px; }
.menu-item .label { flex: 1; font-size: 14px; color: var(--text); font-weight: 500; }
.menu-item .menu-arrow { color: var(--text-light); display: flex; align-items: center; }
.menu-item .menu-arrow svg { width: 16px; height: 16px; }

/* ===== 详情页 ===== */
.detail-img {
  height: 220px;
  background: linear-gradient(135deg, #FFE4EC 0%, #FFC9DC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-img svg { width: 48px; height: 48px; color: #FF9DBA; }

.detail-body { padding: 16px 16px; }
.detail-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.detail-price { font-size: 22px; font-weight: 700; color: var(--primary); }
.detail-price span { font-size: 12px; font-weight: 400; color: var(--text-light); }
.detail-meta {
  display: flex;
  gap: 14px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.detail-meta span { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 3px; }
.detail-meta svg { width: 14px; height: 14px; color: var(--primary); }
.detail-tags { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-tags .tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 500;
}
.detail-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.detail-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.detail-section p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.user-card .avatar {
  width: 42px;
  height: 42px;
  font-size: 16px;
  background: linear-gradient(135deg, #FFC9DC 0%, #FF9DBA 100%);
  color: white;
}
.user-card .name { font-size: 14px; font-weight: 600; color: var(--text); }
.user-card .bio { font-size: 12px; color: var(--text-light); }

/* ===== 评论区 ===== */
.comment-input-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  z-index: 100;
}
.comment-input-bar input {
  flex: 1;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  background: var(--bg);
}
.comment-input-bar input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-lighter); }
.comment-input-bar button {
  padding: 9px 20px;
  background: linear-gradient(135deg, #FF9DBA 0%, #FF6B95 100%);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255, 107, 149, 0.3);
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 16px;
  color: var(--text-light);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 12px; color: #FFC9DC; }
.empty-state .text { font-size: 14px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(45, 36, 56, 0.88);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  z-index: 9999;
  animation: toastIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); } }

/* === 媒体上传组件 === */
.media-uploader { padding: 0; margin-top: 8px; }
.media-uploader label { display:block; font-size:13px; font-weight:500; color:var(--text); margin-bottom:8px; }
.media-uploader .media-label-2 { margin-top:14px; }
.media-pick {
  border: 1.5px dashed #FFB6C8; border-radius: 12px; padding: 18px 0;
  text-align: center; background: #FFF6F9; cursor: pointer; transition: all .2s;
}
.media-pick:active { background: #FFE9F0; }
.media-pick-icon { color: #FF7DA0; margin-bottom: 6px; font-size: 28px; }
.media-pick-icon svg { width: 28px; height: 28px; }
.media-pick-text { font-size: 12px; color: #FF7DA0; }

.media-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.media-thumb {
  position: relative; width: 78px; height: 78px; border-radius: 8px;
  overflow: hidden; background: #F5F5F5; border: 1px solid #EEE;
}
.media-thumb img, .media-thumb video {
  width: 100%; height: 100%; object-fit: cover;
}
.media-thumb-status {
  position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.55);
  color: #FFF; font-size: 10px; padding: 1px 4px; border-radius: 4px;
}
.media-thumb-status.uploading { background: rgba(255,165,0,.85); }
.media-thumb-status.failed { background: rgba(220,53,69,.85); }
.media-thumb-status.done { background: rgba(40,167,69,.85); }
.media-thumb-del {
  position: absolute; top: 2px; left: 2px; background: rgba(0,0,0,.55);
  color: #FFF; border: 0; width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; cursor: pointer; line-height: 1;
}
.media-thumb-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.55); color: #FFF; font-size: 9px; padding: 1px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.video-thumb { width: 100%; height: 100px; }
.video-thumb video { object-fit: contain; }

/* === 媒体展示（详情页） === */
.media-gallery { margin-bottom: 12px; }
.media-video-wrap { width: 100%; background: #000; border-radius: 12px; overflow: hidden; }
.media-video-wrap video { width: 100%; max-height: 280px; display: block; }
.media-image-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  margin-top: 4px;
}
.media-image-grid:has(> img:only-child) { display: block; }
.media-image {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer;
  background: #F5F5F5;
}

/* === 列表卡片图片封面 === */
.card-img-cover {
  width: 100%; height: 100%; object-fit: cover;
}
.card-thumb { position: relative; }
.card-thumb-cover {
  width: 100%; height: 100%; object-fit: cover;
}
.thumb-video-tag {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.6); color: #FFF;
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
}
.post-media {
  margin: 8px 0; display: inline-block;
}
.post-cover {
  width: 100%; max-height: 200px; object-fit: cover; border-radius: 8px;
  display: block;
}

/* === 图片预览弹窗 === */
.image-preview-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.9);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.image-preview-overlay img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.image-preview-overlay .close-btn {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,.2); border: 0; color: #FFF;
  width: 36px; height: 36px; border-radius: 50%; font-size: 18px;
  cursor: pointer;
}
