* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #ffb3d9 0%, #ffcce6 25%, #ffe6f2 50%, #fff0f8 75%, #ffe6f2 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  padding: 20px;
  color: #555;
  overflow-x: hidden;
  position: relative;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* 鼠标跟随效果 - 糖果果风格 */
.cursor-follow {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 105, 180, 0.8), rgba(255, 182, 193, 0.4));
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 
    0 0 20px rgba(255, 105, 180, 0.8),
    0 0 40px rgba(255, 182, 193, 0.5),
    0 0 60px rgba(255, 105, 180, 0.3);
  opacity: 0;
  will-change: transform;
  filter: blur(0.5px);
}

.cursor-follow.hover {
  width: 35px;
  height: 35px;
  background: radial-gradient(circle, rgba(255, 105, 180, 0.95), rgba(255, 182, 193, 0.6));
  box-shadow: 
    0 0 30px rgba(255, 105, 180, 0.9),
    0 0 50px rgba(255, 182, 193, 0.6),
    0 0 70px rgba(255, 105, 180, 0.4);
}

.cursor-star {
  position: fixed;
  font-size: 14px;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  animation: starTwinkle 2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  filter: 
    drop-shadow(0 0 8px rgba(255, 105, 180, 0.8))
    drop-shadow(0 0 15px rgba(255, 182, 193, 0.6))
    drop-shadow(0 0 25px rgba(255, 105, 180, 0.4));
  will-change: transform, opacity;
}

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
    filter: 
      drop-shadow(0 0 6px rgba(255, 105, 180, 0.6))
      drop-shadow(0 0 12px rgba(255, 182, 193, 0.4));
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3) rotate(180deg);
    filter: 
      drop-shadow(0 0 12px rgba(255, 105, 180, 1))
      drop-shadow(0 0 20px rgba(255, 182, 193, 0.8))
      drop-shadow(0 0 30px rgba(255, 105, 180, 0.5));
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeIn 0.8s ease-in;
}

.title {
  color: #ffffff;
  font-size: 3.5em;
  margin-bottom: 10px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #ff69b4, #ffb3d9, #ffcce6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #ffffff;
  font-size: 1.3em;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(255, 105, 180, 0.5);
}

.stats {
  color: #ffffff;
  font-size: 1.2em;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(255, 105, 180, 0.5);
  background: rgba(255, 255, 255, 0.2);
  padding: 15px 30px;
  border-radius: 25px;
  display: inline-block;
  margin-top: 15px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

.stats span {
  display: block;
  margin: 5px 0;
}

.stats span:first-child {
  margin-top: 0;
}

.stats span:last-child {
  margin-bottom: 0;
}

.search-bar {
  margin-bottom: 30px;
  text-align: center;
  animation: fadeIn 1s ease-in;
}

#search-input {
  width: 100%;
  max-width: 500px;
  padding: 15px 20px;
  border: 3px solid #ffccff;
  border-radius: 50px;
  font-size: 1em;
  box-shadow: 
    0 4px 15px rgba(255, 182, 193, 0.3),
    0 0 0 2px rgba(255, 182, 193, 0.1);
  outline: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

#search-input:focus {
  transform: scale(1.05);
  border-color: #ff69b4;
  box-shadow: 
    0 6px 20px rgba(255, 105, 180, 0.4),
    0 0 0 4px rgba(255, 182, 193, 0.2);
  background: rgba(255, 255, 255, 1);
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.user-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f9 50%, #ffe6f2 100%);
  border-radius: 30px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 25px rgba(255, 182, 193, 0.3),
    0 0 0 3px rgba(255, 182, 193, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: slideUp 0.5s ease-out;
  animation-fill-mode: both;
  border: 3px solid #ffccff;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.user-card::after {
  content: '🍭';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5em;
  opacity: 0.3;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.user-card:hover {
  transform: translateY(-12px) scale(1.08) rotate(1deg);
  box-shadow: 
    0 20px 40px rgba(255, 105, 180, 0.5),
    0 0 0 5px rgba(255, 182, 193, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: #ff99cc;
  background: linear-gradient(135deg, #ffffff 0%, #ffe6f2 50%, #ffd9e6 100%);
}

.user-card:hover::after {
  opacity: 0.6;
  transform: scale(1.2) rotate(15deg);
}

.user-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, #ffffff, #ffe6f2);
  padding: 5px;
  box-shadow: 
    0 5px 15px rgba(255, 182, 193, 0.4),
    inset 0 0 20px rgba(255, 182, 193, 0.1);
}

.user-card:hover .user-avatar {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 
    0 8px 20px rgba(255, 105, 180, 0.6),
    inset 0 0 30px rgba(255, 182, 193, 0.2);
}

.user-card h3 {
  color: #333;
  font-size: 1.2em;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card p {
  color: #666;
  font-size: 0.9em;
}

.comment-badge {
  background: linear-gradient(135deg, #ff69b4, #ff85c0, #ffb3d9);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
  box-shadow: 
    0 4px 15px rgba(255, 105, 180, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-card:hover .comment-badge {
  transform: scale(1.1);
  box-shadow: 
    0 6px 20px rgba(255, 105, 180, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 用户详情页样式 */
.back-btn {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-size: 1.2em;
  padding: 10px 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  transition: all 0.3s;
}

.back-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateX(-5px);
}

.user-detail {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 249, 0.95));
  border-radius: 30px;
  padding: 40px;
  margin-top: 20px;
  animation: fadeIn 0.8s ease-in;
  box-shadow: 
    0 10px 40px rgba(255, 182, 193, 0.3),
    0 0 0 3px rgba(255, 182, 193, 0.1);
  border: 3px solid #ffccff;
  backdrop-filter: blur(10px);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #eee;
}

.user-avatar-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 
    0 8px 25px rgba(255, 105, 180, 0.4),
    inset 0 0 30px rgba(255, 182, 193, 0.2);
  background: linear-gradient(135deg, #ffffff, #ffe6f2);
  padding: 6px;
}

.user-info h1 {
  color: #333;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.user-stats {
  color: #666;
  font-size: 1.1em;
}

.user-stats span {
  margin-right: 20px;
}

.comments-section h2 {
  color: #ff69b4;
  margin-bottom: 30px;
  font-size: 2.2em;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(255, 182, 193, 0.5);
  background: linear-gradient(135deg, #ff69b4, #ffb3d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comments-list {
  display: grid;
  gap: 16px;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 10px;
}

/* 自定义滚动条 */
.comments-list::-webkit-scrollbar {
  width: 8px;
}

.comments-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.comments-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff69b4, #ffb3d9);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(255, 105, 180, 0.3);
}

.comments-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff5caa, #ff99cc);
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.5);
}

.comment-item {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f9 50%, #ffe6f2 100%);
  padding: 20px 25px;
  border-radius: 20px;
  border-left: 5px solid;
  border-image: linear-gradient(135deg, #ff69b4, #ffb3d9) 1;
  box-shadow: 
    0 4px 15px rgba(255, 182, 193, 0.3),
    0 0 0 2px rgba(255, 182, 193, 0.1);
  transition: all 0.3s ease;
  animation: slideUp 0.4s ease-out;
  animation-fill-mode: both;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.comment-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 182, 193, 0.5), transparent);
}

.comment-item:hover {
  transform: translateX(8px) translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(255, 105, 180, 0.4),
    0 0 0 3px rgba(255, 182, 193, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #ffe6f2 50%, #ffd9e6 100%);
}

.comment-number {
  color: #ff69b4;
  font-weight: 700;
  font-size: 0.9em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(255, 182, 193, 0.1));
  padding: 5px 12px;
  border-radius: 15px;
  display: inline-block;
}

.comment-number::before {
  content: '💬';
  font-size: 1.1em;
}

.comment-text {
  color: #2d3748;
  line-height: 1.7;
  font-size: 0.95em;
  word-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 179, 217, 0.95), rgba(255, 204, 230, 0.95));
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(255, 105, 180, 0.5);
}

.spinner {
  border: 5px solid rgba(255, 182, 193, 0.3);
  border-top: 5px solid #ff69b4;
  border-right: 5px solid #ffb3d9;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* 流动效果 - 为不同的卡片添加延迟 */
.user-card:nth-child(1) { animation-delay: 0.1s; }
.user-card:nth-child(2) { animation-delay: 0.2s; }
.user-card:nth-child(3) { animation-delay: 0.3s; }
.user-card:nth-child(4) { animation-delay: 0.4s; }
.user-card:nth-child(5) { animation-delay: 0.5s; }
.user-card:nth-child(6) { animation-delay: 0.6s; }
.user-card:nth-child(7) { animation-delay: 0.7s; }
.user-card:nth-child(8) { animation-delay: 0.8s; }
.user-card:nth-child(n+9) { animation-delay: 0.9s; }

.comment-item:nth-child(odd) {
  animation-delay: 0.1s;
}

.comment-item:nth-child(even) {
  animation-delay: 0.2s;
}

/* 分页器样式 */
.pagination {
  margin: 40px auto;
  text-align: center;
  padding: 20px;
}

.pagination-info {
  color: #ff69b4;
  font-size: 1em;
  margin-bottom: 15px;
  font-weight: bold;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  background: white;
  color: #ff69b4;
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}

.page-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff69b4, #ffb3d9);
  color: white;
  border-color: #ff69b4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

.page-btn.active {
  background: linear-gradient(135deg, #ff69b4, #ffb3d9);
  color: white;
  border-color: #ff69b4;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.5);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #ccc;
}

.page-ellipsis {
  padding: 0 8px;
  color: #ff69b4;
  font-weight: bold;
}

/* 评论分页器 */
.comment-pagination {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 240, 248, 0.5);
  border-radius: 15px;
  border: 1px solid rgba(255, 182, 193, 0.3);
}

/* 验证界面样式 - 糖果果粉色系 */
.verify-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #ffb3d9 0%, #ffcce6 25%, #ffe6f2 50%, #fff0f8 75%, #ffe6f2 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.verify-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 50px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(255, 105, 180, 0.3);
  border: 2px solid rgba(255, 182, 193, 0.3);
  animation: fadeIn 0.5s ease-in;
}

.verify-box h2 {
  background: linear-gradient(135deg, #ff69b4, #ffb3d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  font-size: 2em;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.verify-hint {
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.verify-info {
  margin-bottom: 30px;
}

.verify-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 105, 180, 0.6);
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
  margin-bottom: 15px;
}

.verify-info h3 {
  color: #333;
  font-size: 1.5em;
  margin: 0;
}

.id-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1.1em;
  margin-bottom: 20px;
  transition: all 0.3s;
  box-sizing: border-box;
}

.id-input:focus {
  outline: none;
  border-color: #ff69b4;
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
  background: rgba(255, 240, 248, 0.5);
}

.verify-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #ff69b4, #ffb3d9);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.verify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
  background: linear-gradient(135deg, #ff1493, #ff69b4);
}

.verify-btn:active {
  transform: translateY(0);
}

.error-msg {
  color: #e74c3c;
  margin-top: 15px;
  font-size: 1em;
  font-weight: bold;
  display: none;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .title {
      font-size: 2em;
  }
  
  .user-grid {
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 15px;
  }
  
  .user-profile {
      flex-direction: column;
      text-align: center;
  }
  
  .user-info h1 {
      font-size: 1.8em;
  }
  
  .load-more-btn {
      padding: 12px 30px;
      font-size: 1em;
  }
  
  .verify-box {
      padding: 30px 20px;
  }
  
  .verify-box h2 {
      font-size: 1.5em;
  }
  
  .verify-hint {
      font-size: 1em;
  }
}

