* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.rain-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.rain-drop {
  position: absolute;
  top: -20px;
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, rgba(174, 194, 224, 0.8));
  animation: rain-fall linear infinite;
}

.rain-drop.small {
  width: 1px;
  height: 15px;
  animation-duration: 1.5s;
}

@keyframes rain-fall {
  0% {
    transform: translateY(0) rotate(15deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(15deg);
    opacity: 0;
  }
}

.rain-drop {
  animation-duration: 2s;
}

.rain-drop:nth-child(odd) {
  animation-duration: 2.5s;
}

.rain-drop:nth-child(3n) {
  animation-duration: 1.8s;
}

.rain-drop:nth-child(4n) {
  animation-duration: 2.2s;
}

.rain-splash {
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(174, 194, 224, 0.4);
  animation: splash ease-out infinite;
  animation-duration: 1s;
}

@keyframes splash {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  10% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 24px;
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.toast-error {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.container {
  min-height: 100vh;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  overflow: hidden;
  color: white;
}

.header-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.header-connection {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffd700;
  white-space: nowrap;
  opacity: 0.95;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.login-btn, .logout-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
}

.login-btn {
  background: white;
  color: #667eea;
}

.logout-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.avatar-small {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 50% !important;
  border: 2px solid rgba(139, 92, 246, 0.7);
  box-shadow: 
    0 0 0 1px rgba(139, 92, 246, 0.4),
    0 2px 10px rgba(139, 92, 246, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  margin-right: 0.8rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.avatar-small::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(139, 92, 246, 0.6) 0deg,
    rgba(168, 85, 247, 0.6) 90deg,
    rgba(192, 132, 252, 0.6) 180deg,
    rgba(168, 85, 247, 0.6) 270deg,
    rgba(139, 92, 246, 0.6) 360deg
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -2;
  animation: avatarSmallRotate 15s linear infinite reverse;
}

.avatar-small::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  z-index: -1;
  animation: smallShimmerRing 5s ease-in-out infinite;
}

@keyframes avatarSmallRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes smallShimmerRing {
  0%, 100% {
    opacity: 0.5;
    transform: rotate(0deg);
  }
  50% {
    opacity: 0.8;
    transform: rotate(180deg);
  }
}

.avatar-small:hover {
  transform: scale(1.15);
  border-color: rgba(168, 85, 247, 0.95);
  box-shadow: 
    0 0 0 1px rgba(168, 85, 247, 0.6),
    0 0 0 3px rgba(168, 85, 247, 0.2),
    0 6px 20px rgba(139, 92, 246, 0.45),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  animation: avatarSmallPulse 1.5s ease-in-out infinite;
}

.avatar-small:hover::before {
  opacity: 1;
}

.avatar-small:hover::after {
  animation: smallShimmerRing 2.5s ease-in-out infinite;
}

@keyframes avatarSmallPulse {
  0%, 100% {
    transform: scale(1.15);
  }
  50% {
    transform: scale(1.18);
  }
}

#userName {
  font-weight: 500;
  font-size: 1rem;
  min-width: 50px;
}

.main-content {
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero-section {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(252, 182, 159, 0.4),
    0 0 60px rgba(255, 200, 150, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 10%;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-decoration {
  position: absolute;
  pointer-events: none;
}

.hero-decoration.circle-1 {
  top: 20%;
  left: 5%;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

.hero-decoration.circle-2 {
  bottom: 30%;
  right: 8%;
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite 1s;
}

.hero-decoration.circle-3 {
  top: 60%;
  left: 15%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float 3.5s ease-in-out infinite 0.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #5d4e37;
  text-shadow: 0 2px 4px rgba(255,255,255,0.5);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.15) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  color: #6b4423;
  box-shadow: 
    0 4px 15px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.tag:hover::before {
  left: 100%;
}

.tag:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.18),
    0 0 20px rgba(255,200,150,0.4),
    inset 0 1px 0 rgba(255,255,255,0.9);
  background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.3) 100%);
}

.tag:active {
  transform: translateY(-2px) scale(1.02);
}

.hang-text {
  position: absolute;
  font-size: 1.5rem;
  font-weight: bold;
  color: #8b4513;
  pointer-events: none;
  animation: hangFloat 2s ease-out forwards;
  z-index: 10;
}

@keyframes hangFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(1.2);
  }
}

.recent-posts h3 {
  margin-bottom: 1rem;
  color: #333;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.category-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.pinned-posts-section {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ffeeba;
}

.pinned-posts-section .section-header {
  margin-bottom: 0.8rem;
}

.pinned-posts-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #856404;
  margin: 0;
}

.pinned-posts-section .empty-state {
  text-align: center;
  padding: 1.5rem;
  color: #856404;
}

.pinned-posts-section .empty-state i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.pinned-posts-section .empty-state p {
  margin: 0;
  font-size: 0.9rem;
}

.pinned-posts-section .post-card {
  background: white;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.pinned-posts-section .post-card:last-child {
  margin-bottom: 0;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.15),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.category-card:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.category-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.5);
}

.category-card i {
  font-size: 1.8rem;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.category-card span {
  display: block;
  font-size: 0.9rem;
  color: #666;
}

.post-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.12),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.post-card:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.18);
  border-color: rgba(102, 126, 234, 0.4);
}

.post-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.post-card-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.8rem;
}

.post-card-header div {
  flex: 1;
}

.post-card-header h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.post-card-header span {
  font-size: 0.75rem;
  color: #999;
}

.post-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-title-text {
  flex: 1;
}

.edit-title-input {
  width: 100%;
  padding: 0.6rem;
  border: 2px solid #667eea;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  box-sizing: border-box;
  outline: none;
}

.edit-content-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.6rem;
  border: 2px solid #667eea;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
}

.post-card.editing {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.post-card-content {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
}

.post-type-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  color: white;
}

.post-code-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  background: #f4f4f4;
  color: #666;
  font-family: monospace;
  border: 1px solid #ddd;
}

.post-type-food {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.post-type-secondhand {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.post-type-dating {
  background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
}

.favorite-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  color: #666;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.favorite-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #e74c3c;
}

.unpin-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid #fcd34d;
  border-radius: 20px;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  color: #ca8a04;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.unpin-btn:hover:not(:disabled) {
  background: #fefce8;
  border-color: #f59e0b;
  color: #d97706;
}

.unpin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.delete-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 20px;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  color: #e74c3c;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.delete-btn:hover {
  background: #fef2f2;
  border-color: #e74c3c;
}

.edit-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid #667eea;
  border-radius: 20px;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  color: #667eea;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.edit-btn:hover {
  background: #f0f4ff;
  border-color: #764ba2;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.save-edit-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.save-edit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cancel-edit-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  cursor: pointer;
  padding: 0.5rem 1rem;
  color: #666;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.cancel-edit-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.favorite-btn i {
  font-size: 0.9rem;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  color: #666;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.vote-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.vote-btn.voted {
  background: #f0f4ff;
  border-color: #667eea;
  color: #667eea;
}

.vote-btn.vote-down.voted {
  background: #fff5f5;
  border-color: #ef4444;
  color: #ef4444;
}

.vote-btn.disabled,
.vote-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.vote-buttons.disabled {
  opacity: 0.5;
}

.post-card-footer {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: #999;
}

.post-card-footer > span:first-child {
  margin-right: auto;
}

.vote-buttons {
  display: flex;
  gap: 0.4rem;
}

.join-date {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 1rem;
  color: #999;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.15),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-item.shimmer::before {
  opacity: 1;
  animation: shimmer 1.5s ease;
}

.nav-item.active,
.nav-item.active:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 500 !important;
}

.nav-item.active i,
.nav-item.active:hover i {
  filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-item i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  transition: transform 0.25s ease;
}

.nav-item span {
  font-size: 0.78rem;
}

.nav-item:hover:not(.active) {
  color: #667eea;
}

.nav-center {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  margin-top: -20px;
}

.nav-center i {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.nav-center span {
  display: none;
}

.auth-modal, .post-modal, .announcement-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.post-detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  justify-content: center;
  align-items: center;
}

.auth-modal.active, .post-modal.active, .announcement-modal.active, .post-detail-modal.active {
  display: flex;
}

.auth-content, .post-content, .announcement-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  padding: 2rem;
  position: relative;
}

.post-detail-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  max-height: 35vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

.auth-tabs {
  display: flex;
  margin-bottom: 1.5rem;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 0.8rem;
  border-bottom: 2px solid #eee;
  cursor: pointer;
  font-weight: 500;
}

.tab.active {
  border-bottom-color: #667eea;
  color: #667eea;
}

.auth-form input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.auth-form button {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.form-message {
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.form-message.error {
  color: #e74c3c;
}

.form-message.success {
  color: #27ae60;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.star-radio {
  display: none;
}

.star-label {
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating-edit {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.star-rating-edit .star-label {
  font-size: 1.8rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating-edit .star-label:hover,
.star-rating-edit .star-radio:checked ~ .star-label {
  color: #ff9500;
}

.star-rating-edit .star-radio:checked ~ .star-label,
.star-rating-edit .star-radio:checked + .star-label {
  color: #ff9500;
}

.rating-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.rating-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.8rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.rating-option:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.rating-option.selected {
  border-color: #667eea;
  background: #f0f3ff;
}

.rating-text {
  font-size: 0.95rem;
  color: #333;
}

.rating-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s;
}

.rating-option:hover .rating-checkbox {
  border-color: #667eea;
}

.rating-option.selected .rating-checkbox {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
}

.rating-option.selected .rating-checkbox::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.post-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.post-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.post-type:hover, .post-type.selected {
  border-color: #667eea;
  background: #f8f9ff;
}

.post-type i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.post-type[data-type="dating"] {
  border-color: rgba(233, 30, 99, 0.3);
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.1) 0%, rgba(233, 30, 99, 0.05) 100%);
}

.post-type[data-type="dating"]:hover,
.post-type[data-type="dating"].selected {
  border-color: #e91e63;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.15) 0%, rgba(194, 24, 91, 0.1) 100%);
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
}

.post-type[data-type="dating"] i {
  color: #e91e63;
  animation: heartbeat 1.5s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

.post-type[data-type="dating"]:hover i,
.post-type[data-type="dating"].selected i {
  color: #ff4081;
  animation: heartbeat 0.8s ease-in-out infinite;
  text-shadow: 0 0 15px rgba(255, 64, 129, 0.7), 0 0 30px rgba(233, 30, 99, 0.5);
}

.post-type[data-type="dating"] span {
  color: #c2185b;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.15);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
}

.post-type[data-type="secondhand"] {
  border-color: rgba(251, 146, 60, 0.3);
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.1) 0%, rgba(251, 146, 60, 0.05) 100%);
}

.post-type[data-type="secondhand"]:hover,
.post-type[data-type="secondhand"].selected {
  border-color: #fb923c;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, rgba(249, 115, 22, 0.1) 100%);
  box-shadow: 0 4px 20px rgba(251, 146, 60, 0.3);
}

.post-type[data-type="secondhand"] i {
  color: #fb923c;
  animation: cartBounce 2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(251, 146, 60, 0.5);
}

.post-type[data-type="secondhand"]:hover i,
.post-type[data-type="secondhand"].selected i {
  color: #f97316;
  animation: cartBounce 1s ease-in-out infinite;
  text-shadow: 0 0 15px rgba(249, 115, 22, 0.7), 0 0 30px rgba(251, 146, 60, 0.5);
}

.post-type[data-type="secondhand"] span {
  color: #ea580c;
}

@keyframes cartBounce {
  0%, 100% {
    transform: rotate(0deg) translateY(0);
  }
  25% {
    transform: rotate(-5deg) translateY(-3px);
  }
  50% {
    transform: rotate(0deg) translateY(0);
  }
  75% {
    transform: rotate(5deg) translateY(-3px);
  }
}

.post-type[data-type="food"] {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, rgba(187, 247, 208, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
}

.post-type[data-type="food"]:hover,
.post-type[data-type="food"].selected {
  border-color: #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.1) 100%);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.post-type[data-type="food"] i {
  color: #22c55e;
  animation: foodSteam 2.5s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.post-type[data-type="food"]:hover i,
.post-type[data-type="food"].selected i {
  color: #16a34a;
  animation: foodSteam 1.2s ease-in-out infinite;
  text-shadow: 0 0 15px rgba(22, 163, 74, 0.7), 0 0 30px rgba(34, 197, 94, 0.5);
}

.post-type[data-type="food"] span {
  color: #15803d;
}

@keyframes foodSteam {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  25% {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.1);
  }
  50% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  75% {
    transform: scale(1.05) rotate(-2deg);
    filter: brightness(1.1);
  }
}

#postForm {
  margin-top: 1rem;
}

#postForm input, #postForm textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

#postForm textarea {
  height: 120px;
  resize: none;
}

.char-count {
  text-align: right;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.8rem;
}

.image-upload-section {
  margin-bottom: 1rem;
}

.image-upload-label {
  cursor: pointer;
}

.upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  border: 2px dashed #ddd;
  border-radius: 10px;
  background: #fafafa;
  color: #666;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  border-color: #667eea;
  background: #f0f4ff;
  color: #667eea;
}

.upload-btn i {
  font-size: 1.2rem;
}

.upload-limit {
  font-size: 0.8rem;
  color: #999;
}

.upload-btn:hover .upload-limit {
  color: #667eea;
}

.uploaded-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.uploaded-image-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
}

.uploaded-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-image-btn {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.uploaded-image-item:hover .remove-image-btn {
  opacity: 1;
}

.remove-image-btn:hover {
  background: #cc0000;
}

.upload-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #667eea;
  animation: progress 1s ease-in-out infinite;
}

@keyframes progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.post-images {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  margin-top: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.post-images::-webkit-scrollbar {
  height: 4px;
}

.post-images::-webkit-scrollbar-track {
  background: transparent;
}

.post-images::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.post-image-item {
  flex: 0 0 calc(33.33% - 0.2rem);
  min-width: calc(33.33% - 0.2rem);
  max-width: 90px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.post-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-image-item:hover img {
  transform: scale(1.05);
}

.image-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.image-preview-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.post-detail-images {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin: 1rem 0;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.post-detail-images::-webkit-scrollbar {
  height: 6px;
}

.post-detail-images::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.post-detail-images::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.post-detail-images::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.post-detail-image-item {
  flex: 0 0 calc(33.33% - 0.27rem);
  min-width: calc(33.33% - 0.27rem);
  max-width: 120px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.post-detail-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-hover-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 400px;
  max-height: 70vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  overflow: hidden;
}

.user-hover-card.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.user-card-header {
  display: flex;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.user-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.user-card-info {
  flex: 1;
  margin-left: 0.8rem;
  overflow: hidden;
}

.user-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
}

.user-card-miaoid {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.user-card-school {
  font-size: 0.85rem;
  color: #2563eb;
  display: flex;
  align-items: center;
}

.user-card-school::before {
  content: '🏫';
  margin-right: 0.3rem;
}

.user-card-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  color: #666;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.user-card-close:hover {
  background: #e0e0e0;
  color: #333;
}

.user-card-posts-header {
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-card-posts {
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.user-card-posts::-webkit-scrollbar {
  width: 4px;
}

.user-card-posts::-webkit-scrollbar-track {
  background: transparent;
}

.user-card-posts::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.user-card-post {
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: background 0.15s;
}

.user-card-post:hover {
  background: rgba(0, 0, 0, 0.02);
}

.user-card-post:last-child {
  border-bottom: none;
}

.user-card-post-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.user-card-post-content {
  font-size: 0.8rem;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.user-card-post-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: #999;
  flex-wrap: wrap;
}

.user-card-post-type {
  padding: 0.15rem 0.4rem;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.7rem;
}

.user-card-post-votes {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.user-card-post-votes i {
  font-size: 0.75rem;
}

.user-card-empty {
  padding: 2rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

.user-card-post-vote-buttons {
  display: flex;
  gap: 0.4rem;
}

.user-card-vote-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  color: #666;
  transition: all 0.2s ease;
}

.user-card-vote-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.user-card-vote-btn.voting {
  opacity: 0.6;
  pointer-events: none;
  animation: vote-pulse 0.3s ease;
}

.user-card-vote-btn.user-card-vote-up:hover {
  border-color: #27ae60;
  color: #27ae60;
}

.user-card-vote-btn.user-card-vote-down:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

.user-card-vote-btn i {
  font-size: 0.7rem;
}

.user-card-vote-btn span {
  font-weight: 500;
}

@keyframes vote-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#postForm button {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.page-header h2 {
  font-size: 1.3rem;
}

.admin-btn {
  padding: 0.5rem 1rem;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.announcement-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 4px solid #e74c3c;
  transition: transform 0.2s, box-shadow 0.2s;
}

.announcement-card:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.announcement-card {
  position: relative;
}

.admin-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.65rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.3px;
}

.admin-badge::before {
  content: '★';
  font-size: 0.6rem;
}



.announcement-card p {
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

.announcement-card time {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #888;
}

.announcement-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.announcement-edit-btn,
.announcement-delete-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.announcement-edit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.announcement-edit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.announcement-delete-btn {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}

.announcement-delete-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

#announcementForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#announcementForm input,
#announcementForm textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

#announcementForm input:focus,
#announcementForm textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#announcementForm textarea {
  height: 150px;
  resize: none;
  line-height: 1.5;
}

#announcementForm button {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#announcementForm button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.category-tab {
  padding: 0.5rem 1rem;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.category-tab.active {
  background: #667eea;
  color: white;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 243, 255, 0.9) 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: cardFadeIn 0.6s ease-out;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 0% 0%, rgba(139, 92, 246, 0.18) 0%, transparent 40%),
    radial-gradient(ellipse at 100% 0%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 0% 100%, rgba(192, 132, 252, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 100% 100%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
  animation: cardGlow 6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.profile-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gradientShift {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes cardGlow {
  0%, 100% {
    opacity: 0.5;
    filter: brightness(1);
  }
  50% {
    opacity: 0.85;
    filter: brightness(1.1);
  }
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 24px 24px;
  }
}

.settings-btn {
  margin-top: 0.8rem;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.settings-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.avatar-large {
  width: 100px !important;
  height: 100px !important;
  min-width: 100px;
  min-height: 100px;
  max-width: 100px;
  max-height: 100px;
  border-radius: 50% !important;
  margin-bottom: 1rem;
  border: 3px solid rgba(139, 92, 246, 0.6);
  box-shadow: 
    0 0 0 1px rgba(139, 92, 246, 0.3),
    0 0 0 4px rgba(139, 92, 246, 0.15),
    0 8px 32px rgba(139, 92, 246, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}



.profile-card:hover .avatar-large {
  transform: scale(1.1);
  border-color: rgba(168, 85, 247, 0.9);
  box-shadow: 
    0 0 0 1px rgba(168, 85, 247, 0.5),
    0 0 0 4px rgba(168, 85, 247, 0.25),
    0 12px 40px rgba(139, 92, 246, 0.5),
    inset 0 0 30px rgba(255, 255, 255, 0.15);
}





@keyframes avatarRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes avatarPulse {
  0%, 100% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.13);
  }
}

@keyframes shimmerRing {
  0%, 100% {
    opacity: 0.6;
    transform: rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: rotate(180deg);
  }
}

.profile-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  transition: all 0.3s ease;
  position: relative;
}

.profile-card h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.profile-card:hover h2::after {
  width: 60%;
}

.miaoid {
  color: #999;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.profile-card:hover .miaoid {
  color: #667eea;
}

.join-date {
  color: #bbb;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  transition: all 0.3s ease;
}

.profile-card:hover .join-date {
  color: #999;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 243, 255, 0.8) 100%);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.08);
  animation: statsSlideIn 0.5s ease-out 0.2s both;
}

@keyframes statsSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-btn {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-btn:hover {
  background: rgba(102, 126, 234, 0.08);
  transform: translateY(-3px);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  transition: all 0.3s ease;
}

.stat-btn:hover .stat-value {
  color: #764ba2;
  transform: scale(1.1);
  text-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.2rem;
}

.stat-btn:hover {
  background: #f0f4ff;
}

.follow-permission-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #64748b;
}

.follow-permission-hint i {
  color: #3b82f6;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #667eea;
}

.stat-label {
  font-size: 0.85rem;
  color: #999;
}

.profile-modal,
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.profile-modal.active,
.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  max-height: 70vh;
  overflow: hidden;
  position: relative;
}

.profile-modal-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  max-height: 70vh;
  overflow: hidden;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.modal-body {
  padding: 1.2rem 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.form-group input:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f0f0f0;
  color: #666;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.close-btn:hover {
  color: #333;
}

#modalContent {
  padding: 1rem;
  max-height: calc(70vh - 80px);
  overflow-y: auto;
}

.user-list-item {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.user-list-item:hover {
  background: #f8f9ff;
}

.user-list-item img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 0.8rem;
}

.user-list-item .user-info {
  flex: 1;
}

.user-list-item .user-name {
  display: block;
  font-weight: 500;
  color: #333;
}

.user-list-item .user-miaoid {
  display: block;
  font-size: 0.8rem;
  color: #999;
}

.user-list-item .follow-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid #667eea;
  border-radius: 20px;
  background: white;
  color: #667eea;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.user-list-item .follow-btn:hover {
  background: #667eea;
  color: white;
}

.user-list-item .follow-btn.following {
  background: #667eea;
  color: white;
}

.user-list-item .follow-back-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid #10b981;
  border-radius: 20px;
  background: white;
  color: #10b981;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.user-list-item .follow-back-btn:hover {
  background: #10b981;
  color: white;
}

.user-list-item .follow-back-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.user-list-item .follow-status {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: #f0fdf4;
  color: #059669;
  font-size: 0.8rem;
  font-weight: 500;
}

.follow-btn-post {
  padding: 0.4rem 1rem;
  border: 1px solid #667eea;
  border-radius: 20px;
  background: white;
  color: #667eea;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.follow-btn-post:hover {
  background: #667eea;
  color: white;
}

.follow-btn-post.following {
  background: #667eea;
  color: white;
}

.likes-count-display {
  text-align: center;
  padding: 2rem;
}

.likes-count-display .big-number {
  font-size: 3rem;
  font-weight: 700;
  color: #e74c3c;
  display: block;
  margin-bottom: 0.5rem;
}

.ban-status {
  display: none;
  color: #e74c3c;
  font-weight: 500;
  margin-top: 0.5rem;
}

.ban-status.active {
  display: block;
}

.admin-panel {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.admin-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #a855f7 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.admin-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.admin-btn:hover::before {
  left: 100%;
}

.admin-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.admin-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.admin-btn#btnUserManage {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.admin-btn#btnUserManage:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.admin-btn#btnPostManage {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.admin-btn#btnPostManage:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.admin-btn#btnSchoolManage {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.admin-btn#btnSchoolManage:hover {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.admin-btn#btnStats {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.admin-btn#btnStats:hover {
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.admin-modal.active {
  display: flex;
}

.admin-modal-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
}

.search-box {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-box input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 0.9rem;
}

.search-box button {
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.user-detail-panel {
  padding: 1rem;
}

.user-detail-panel .user-info {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f8f9ff;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.user-detail-panel .user-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
}

.user-detail-panel .user-info .detail-text {
  flex: 1;
}

.user-detail-panel .user-info .detail-text h4 {
  margin: 0 0 0.3rem 0;
}

.user-detail-panel .user-info .detail-text p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.user-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.user-action-btn {
  padding: 0.8rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-action-btn:hover {
  transform: translateY(-2px);
}

.user-action-btn.ban {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.user-action-btn.ban:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
}

.user-action-btn.block {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.user-action-btn.block:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
}

.user-action-btn.revoke {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #d97706;
  border: 1px solid #fed7aa;
}

.user-action-btn.revoke:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: white;
}

.user-action-btn.stats {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.user-action-btn.stats:hover {
  background: #2563eb;
  color: white;
}

.post-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-list-item .post-info {
  flex: 1;
}

.post-list-item .post-info h4 {
  margin: 0 0 0.3rem 0;
  font-size: 0.95rem;
}

.post-list-item .post-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #999;
}

.post-list-item .delete-post-btn {
  padding: 0.5rem 1rem;
  background: #fef2f2;
  color: #e74c3c;
  border: 1px solid #fecaca;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
}

.post-list-item .delete-post-btn:hover {
  background: #e74c3c;
  color: white;
}

.stats-panel {
  padding: 1.5rem;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 1rem;
}

.stat-card .stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.profile-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.profile-tab {
  flex: 1;
  min-width: calc(25% - 0.375rem);
  padding: 0.8rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: white;
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-tab:hover {
  background: #f8f9fa;
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.profile-tab:active {
  transform: translateY(0);
}

.profile-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
}

.profile-tab.active:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.about-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 243, 255, 0.9) 100%);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.08);
  animation: aboutFadeIn 0.4s ease-out;
}

@keyframes aboutFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.about-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.about-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.8rem;
  position: relative;
  animation: aboutFloat 3s ease-in-out infinite;
  border-radius: 50%;
}

@keyframes aboutFloat {
  0%, 100% { transform: translateY(0); }
  33% { transform: translateY(-6px); }
  66% { transform: translateY(-3px); }
}

.about-logo-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-inner {
  position: relative;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #a855f7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 25px rgba(102, 126, 234, 0.5),
    0 6px 20px rgba(102, 126, 234, 0.4),
    inset 0 2px 8px rgba(255, 255, 255, 0.3),
    inset 0 -2px 8px rgba(0, 0, 0, 0.2);
  animation: aboutPulse 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes aboutPulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 
      0 0 25px rgba(102, 126, 234, 0.5),
      0 6px 20px rgba(102, 126, 234, 0.4),
      inset 0 2px 8px rgba(255, 255, 255, 0.3),
      inset 0 -2px 8px rgba(0, 0, 0, 0.2);
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 
      0 0 40px rgba(102, 126, 234, 0.7),
      0 10px 30px rgba(102, 126, 234, 0.5),
      inset 0 2px 8px rgba(255, 255, 255, 0.4),
      inset 0 -2px 8px rgba(0, 0, 0, 0.2);
  }
}

.about-logo-m {
  position: relative;
  width: 30px;
  height: 26px;
  animation: aboutTwinkle 1.5s ease-in-out infinite;
}

@keyframes aboutTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.about-logo-m::before {
  content: 'M';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  font-weight: 900;
  color: white;
  text-shadow: 
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 15px rgba(255, 255, 255, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -2px;
}

.about-logo-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, rgba(102, 126, 234, 0.1) 40%, transparent 70%);
  animation: aboutGlow 2s ease-in-out infinite;
}

@keyframes aboutGlow {
  0%, 100% { 
    opacity: 0.6; 
    transform: scale(1); 
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3), 0 0 40px rgba(102, 126, 234, 0.1);
  }
  50% { 
    opacity: 0.9; 
    transform: scale(1.15); 
    box-shadow: 0 0 35px rgba(102, 126, 234, 0.5), 0 0 70px rgba(102, 126, 234, 0.2);
  }
}

.about-bubble {
  position: absolute;
  border-radius: 50%;
  animation: aboutBubbleRise 4s ease-in-out infinite;
  opacity: 0;
  z-index: 10;
  box-shadow: 
    inset -2px -2px 4px rgba(255, 255, 255, 0.3),
    inset 2px 2px 4px rgba(0, 0, 0, 0.1),
    0 0 8px rgba(255, 255, 255, 0.5);
}

.about-bubble-1 {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4) 40%, rgba(102, 126, 234, 0.3) 60%, rgba(102, 126, 234, 0.1) 100%);
  left: 5%;
  bottom: 10%;
  animation-delay: 0s;
}

.about-bubble-2 {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4) 40%, rgba(168, 85, 247, 0.3) 60%, rgba(168, 85, 247, 0.1) 100%);
  right: 15%;
  bottom: 20%;
  animation-delay: 1s;
}

.about-bubble-3 {
  width: 5px;
  height: 5px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4) 40%, rgba(244, 114, 182, 0.3) 60%, rgba(244, 114, 182, 0.1) 100%);
  left: 20%;
  top: 5%;
  animation-delay: 2s;
}

.about-bubble-4 {
  width: 7px;
  height: 7px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4) 40%, rgba(118, 75, 162, 0.3) 60%, rgba(118, 75, 162, 0.1) 100%);
  right: 5%;
  top: 15%;
  animation-delay: 3s;
}

@keyframes aboutBubbleRise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(1);
  }
}

.about-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.3rem;
}

.about-subtitle {
  font-size: 0.9rem;
  color: #999;
}

.about-section {
  margin-bottom: 1.5rem;
}

.about-item {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.05);
  transition: all 0.3s ease;
}

.about-item:last-child {
  border-bottom: none;
}

.about-item:hover {
  background: rgba(102, 126, 234, 0.03);
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-radius: 8px;
}

.about-label {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.about-value {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

.about-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.about-footer p {
  font-size: 0.9rem;
  color: #777;
}

.about-footer #currentYear {
  color: #667eea;
  font-weight: 600;
}

@media (max-width: 480px) {
  .about-content {
    padding: 1.5rem 1rem;
  }
  
  .about-header h3 {
    font-size: 1.3rem;
  }
  
  .about-logo {
    font-size: 2.5rem;
  }
  
  .profile-tab {
    min-width: calc(50% - 0.25rem);
    font-size: 0.8rem;
    padding: 0.6rem;
  }
}

.profile-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.15),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.profile-tab:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease;
}

.profile-tab:hover {
  border-color: #667eea;
  color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.profile-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
}

#profileContent {
  background: white;
  border-radius: 15px;
  padding: 1rem;
}

.my-posts h3 {
  margin-bottom: 1rem;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #999;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.post-detail-content h2 {
  margin-bottom: 1rem;
}

.post-detail-content .post-meta {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-detail-content .post-meta .meta-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.post-detail-content .post-body {
  line-height: 1.8;
  color: #333;
  word-wrap: break-word;
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.3rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .category-grid {
    gap: 0.7rem;
  }
  
  .category-card {
    padding: 1rem 0.5rem;
  }
  
  .category-card i {
    font-size: 1.5rem;
  }
  
  .profile-card {
    padding: 1.5rem 1rem;
    border-radius: 15px;
  }
  
  .profile-card::before {
    animation: none;
  }
  
  .avatar-large {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    animation: none;
  }
  
  .profile-card:hover .avatar-large {
    transform: none;
  }
  
  .profile-card h2 {
    font-size: 1.2rem;
  }
  
  .profile-card h2::after {
    display: none;
  }
  
  .profile-stats {
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 1.2rem;
  }
  
  .stat-btn:hover {
    transform: none;
  }
  
  .stat-btn:hover .stat-value {
    transform: none;
    text-shadow: none;
  }
}

.school-select-btn {
  width: 100%;
  padding: 0.8rem;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.school-select-btn:hover {
  background: #bae6fd;
}

.edit-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.edit-modal.active {
  display: flex;
}

.edit-modal-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
}

.edit-form {
  padding: 1rem;
}

.edit-form .form-group {
  margin-bottom: 1rem;
}

.edit-form .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #333;
}

.edit-form .form-group input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.edit-form .form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.edit-form .form-group textarea {
  width: 100%;
  min-height: 150px;
  padding: 0.7rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
  font-family: inherit;
}

.edit-form .form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.edit-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.school-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.school-modal.active {
  display: flex;
}

.school-modal-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
}

.school-list {
  padding: 16px !important;
  max-height: 400px;
  overflow-y: auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

.school-list-item,
.school-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin: 8px auto !important;
  width: auto !important;
  min-width: 200px !important;
  max-width: 260px !important;
  border: 1px solid #e5e7eb !important;
  background: white !important;
}

.school-list-item:hover,
.school-item:hover {
  background: #f0fdf4 !important;
  border-color: #10b981 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.school-list-item.selected,
.school-item.selected {
  background: #f0fdf4 !important;
  border-color: #10b981 !important;
}

.school-item .school-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}

.school-item .school-info {
  flex: 1;
  min-width: 0;
}

.school-item .school-name {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.school-item .school-count {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

.school-list-item input[type="radio"] {
  margin-right: 0.8rem;
  transform: scale(1.2);
}

.school-list-item .school-name {
  flex: 1;
  font-weight: 500;
}

.settings-form {
  padding: 1rem;
}

.settings-form h3 {
  margin-bottom: 1.2rem;
  color: #333;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.8rem;
}

.settings-form .form-group {
  margin-bottom: 1rem;
}

.settings-form .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #333;
}

.settings-form .form-group input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.settings-form .form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.settings-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.post-manage-panel {
  padding: 1rem;
}

.search-section {
  display: flex;
  gap: 0.8rem;
}

.search-section input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
}

.search-section input:focus {
  outline: none;
  border-color: #667eea;
}

.post-preview {
  padding: 1rem;
  background: #f8f9ff;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.post-preview h4 {
  margin: 0 0 0.3rem 0;
  color: #333;
}

.action-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #f0f4ff;
}

.action-btn:active {
  background: #667eea;
  color: white;
}

.pinned-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.post-card.pinned {
  border: 2px solid #f59e0b !important;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.pinned-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.pinned-section h3 {
  color: #d97706;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pinned-section .empty-state {
  text-align: center;
  padding: 2rem;
  color: #999;
}

.deleted-post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(231, 76, 60, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  z-index: 10;
}

.deleted-post-overlay p {
  color: #e74c3c;
  font-weight: 500;
  margin-bottom: 1rem;
}

.deleted-post-overlay button {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.deleted-post-overlay button:hover {
  background: #c0392b;
}