.post-image {
  max-width: 300px;
  max-height: 300px;
  width: auto;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(244,114,182,0.10);
  object-fit: cover;
}
.post-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 2px solid #fbcfe8;
  box-shadow: 0 2px 8px rgba(244,114,182,0.10);
  object-fit: cover;
  margin-right: 0.75rem;
}
/* 暧昧风格渐变背景和自定义样式，适配 chat.php 风格 */
body {
  background: linear-gradient(120deg, #ffb6b9 0%, #fcdffb 50%, #a1c4fd 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
}

.bg-gradient-love {
  background: linear-gradient(120deg, rgba(255, 182, 185, 0.8) 0%, rgba(252, 223, 251, 0.8) 50%, rgba(161, 196, 253, 0.8) 100%);
}
.text-gradient-love {
  background: linear-gradient(90deg, #ff4e79 0%, #a259ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.love-card {
  box-shadow: 0 4px 24px 0 rgba(255,182,185,0.10), 0 1.5px 6px 0 rgba(161,196,253,0.10);
  border-radius: 1.5rem;
  border: 1px solid #ffe0e6;
  background: rgba(255,255,255,0.85);
  transition: transform 0.2s, box-shadow 0.2s;
}
.love-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(255,182,185,0.18), 0 3px 12px 0 rgba(161,196,253,0.18);
}

.app-container, .discover-container, .vip-container, .profile-container {
  max-width: 42rem;
  margin: 2rem auto;
  background: rgba(255,255,255,0.8);
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px 0 rgba(255,182,185,0.10), 0 1.5px 6px 0 rgba(161,196,253,0.10);
  padding: 1.5rem;
}

.app-header, .profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 0 0 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

h1, h2, h3, h4 {
  font-weight: 800;
  background: linear-gradient(90deg, #ff4e79 0%, #a259ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.05em;
}

input, textarea, select {
  border-radius: 9999px;
  border: 1px solid #fbcfe8;
  outline: none;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
  transition: box-shadow 0.2s, border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 2px #f472b6;
  border-color: #f472b6;
}

.btn, button, .btn-primary {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #f472b6 0%, #a259ff 100%);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(244,114,182,0.10);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover, button:hover, .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(244,114,182,0.18);
}

a {
  color: #ec4899;
  font-weight: bold;
  transition: color 0.2s;
  text-decoration: none;
}
a:hover {
  color: #a259ff;
}

nav.app-nav, .love-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  margin-top: 1rem;
  background: rgba(255,255,255,0.9);
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -2px 12px 0 rgba(255,182,185,0.10);
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
}
nav.app-nav a, .love-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
  font-weight: bold;
}

.badge {
  display: inline-block;
  background: #f472b6;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  animation: bounce 1s infinite alternate;
  box-shadow: 0 2px 8px rgba(244,114,182,0.10);
  margin-left: 0.5rem;
}
@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.user-card-swipe, .user-card, .plan-card {
  background: rgba(255,255,255,0.9);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(244,114,182,0.10);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.user-card-swipe:hover, .user-card:hover, .plan-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(244,114,182,0.18);
}
.card-img img, .user-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  border: 2px solid #fbcfe8;
  box-shadow: 0 2px 8px rgba(244,114,182,0.10);
  object-fit: cover;
}
.plan-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.vip-badge {
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(90deg, #facc15 0%, #f472b6 100%);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(244,114,182,0.10);
}

.empty-state {
  color: #9ca3af;
  text-align: center;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .app-container, .discover-container, .vip-container, .profile-container {
    border-radius: 0;
    padding: 0.5rem;
    margin: 0;
    box-shadow: none;
  }
  .app-header, .profile-header {
    border-radius: 0;
    padding: 0.5rem 0.5rem;
    margin-bottom: 0.5rem;
  }
  nav.app-nav, .love-nav {
    border-radius: 0;
    padding: 0.25rem 0.5rem;
  }
}
