/* 补充样式 - 新增组件样式 */

/* 章节标题 */
.section-header {
  margin: 3rem 0 2rem 0;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section-header h2 i {
  color: var(--primary-gradient);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-line {
  width: 100px;
  height: 3px;
  background: var(--primary-gradient);
  margin: 0 auto;
  border-radius: 2px;
}

/* 帖子网格 */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* 帖子内容样式 */
.post-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.author, .category-tag {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author i, .category-tag i {
  color: var(--primary-gradient);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  margin: 2rem 0;
}

.empty-state i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* 按钮变体 */
.read-more {
  background: var(--accent-gradient);
}

.edit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 导航链接样式 */
.user-welcome {
  background: var(--accent-gradient);
}

.admin-link {
  background: var(--secondary-gradient);
}

.new-post-btn {
  background: var(--primary-gradient);
}

.logout-btn {
  background: var(--secondary-gradient);
}

.login-btn {
  background: var(--primary-gradient);
}

.register-btn {
  background: var(--accent-gradient);
}

.back-home {
  background: var(--accent-gradient);
}

/* 动画效果 */
.post {
  opacity: 0;
  transform: translateY(30px);
}

.post.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 搜索框焦点状态 */
.search-container.focused .search-input {
  width: 300px;
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 分页按钮 */
.page-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination .ellipsis {
  color: var(--text-muted);
  pointer-events: none;
}

/* 帖子详情页面样式 */
.post-detail-container {
  max-width: 900px;
  margin: 0 auto;
}

.post-detail-container .post {
  margin-bottom: 3rem;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

/* 媒体部分 */
.media-section {
  margin: 2rem 0;
}

.media-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.media-section h3 i {
  color: var(--primary-gradient);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.media-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
}

.gallery-image:hover {
  transform: scale(1.05);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: var(--shadow-glow);
}

.gallery-video {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* 评论区样式 */
.comments-section {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-top: 3rem;
}

.comments-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comments-section h3 i {
  color: var(--primary-gradient);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comment-form {
  margin-bottom: 2rem;
}

.comment-form textarea {
  width: 100%;
  min-height: 120px;
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  resize: vertical;
  backdrop-filter: blur(10px);
}

.comment-form textarea:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-prompt {
  text-align: center;
  padding: 2rem;
  background: var(--bg-glass);
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.login-prompt a {
  color: var(--primary-gradient);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-weight: 600;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition-normal);
  opacity: 1;
  transform: translateY(0);
}

.comment.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* 新添加的评论的初始状态 */
.comment.new-comment {
  opacity: 0;
  transform: translateY(20px);
}

.comment.new-comment.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.comment:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.comment-author, .comment-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-author i, .comment-date i {
  color: var(--primary-gradient);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comment-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.empty-comments {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.empty-comments i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.modal.show {
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  transform: scale(0.8);
  transition: var(--transition-normal);
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  font-size: 1.2rem;
}

.modal-close:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .post-actions {
    flex-direction: column;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .btn, button, input[type="submit"] {
    width: 100%;
    justify-content: center;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .media-gallery {
    grid-template-columns: 1fr;
  }
  
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .modal-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .modal-close {
    top: -40px;
    right: 0;
  }
}

/* 举报相关样式 */
.report-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.report-form {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.report-form h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.report-form h2 i {
  color: #e74c3c;
}

.post-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.post-info h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.post-info p {
  color: var(--text-secondary);
  margin: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group select:focus {
  outline: none;
  border-color: rgba(231, 76, 60, 0.5);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.btn-secondary {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

/* 处理举报页面样式 */
.reports-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.reports-container h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reports-container h2 i {
  color: #e74c3c;
}

.reports-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.report-item {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.report-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.report-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.report-content {
  margin-bottom: 1.5rem;
}

.report-content .post-info h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.report-content .post-info p, .report-details p {
  color: var(--text-secondary);
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.report-content .post-info strong, .report-details strong {
  color: var(--text-primary);
}

.report-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.action-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ban-user-form {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.ban-user-form label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.ban-user-form select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.empty-reports {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
}

.empty-reports i {
  font-size: 4rem;
  color: #27ae60;
  margin-bottom: 1rem;
}

.empty-reports p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* 管理员链接样式 */
.admin-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-warning {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.btn-info {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

/* 举报按钮样式 */
.report-btn {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* 个人主页相关样式 */
.profile-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.profile-header {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}

.profile-avatar {
  flex-shrink: 0;
}

.avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.profile-username {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
}

.profile-title {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.profile-bio {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.profile-joined {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.stat-item {
  text-align: center;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  min-width: 120px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-tabs {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: white;
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

/* 编辑个人资料样式 */
.edit-profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.edit-profile-form {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.edit-profile-form h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.avatar-upload-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
}

.current-avatar {
  flex-shrink: 0;
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.avatar-upload {
  flex: 1;
}

.avatar-upload label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.avatar-upload input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.upload-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* 用户头像和昵称样式 */
.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.author-avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.author-username {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.comment-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.comment-author-details {
  display: flex;
  flex-direction: column;
}

.comment-author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.comment-author-username {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* 编辑个人资料按钮样式 */
.edit-profile-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-primary {
  background: var(--primary-gradient);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .avatar-upload-section {
    flex-direction: column;
    text-align: center;
  }
  
  .author-info {
    flex-direction: column;
    text-align: center;
  }
  
  .comment-author-info {
    flex-direction: column;
    text-align: center;
  }
}

/* 自定义头像上传按钮样式 */
.custom-file-label {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 600;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.custom-file-label i {
  margin-right: 0.5rem;
}
.custom-file-label:hover {
  background: var(--secondary-gradient);
  box-shadow: var(--shadow-md);
}
.avatar-preview {
  display: block;
  margin: 0 auto 0.5rem auto;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 100px;
  max-height: 100px;
  object-fit: cover;
  border: 2px solid var(--primary-gradient);
}
@media (max-width: 600px) {
  .custom-file-label {
    width: 100%;
    font-size: 1.1rem;
    padding: 0.9rem 0;
  }
  .avatar-preview {
    max-width: 80px;
    max-height: 80px;
  }
}

.admin-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  margin: 1.2rem 0 2rem 0;
}
.admin-checkbox-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #4f8cff;
  border-radius: 6px;
  cursor: pointer;
  margin: 0;
}
.admin-checkbox-row label {
  font-size: 1.08rem;
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
@media (max-width: 600px) {
  .admin-checkbox-row label {
    font-size: 1rem;
  }
  .admin-checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }
} 

.reply-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-left: 4px solid #007bff !important;
    padding: 16px !important;
    border-radius: 16px !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    margin-top: 12px !important;
    min-width: 300px !important;
    min-height: 100px !important;
    opacity: 1 !important;
    z-index: 10 !important;
}

.reply-form:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

.comment {
    overflow: visible !important;
}

/* 回复框内的文本区域样式 */
.reply-form textarea {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: var(--text-primary, #333) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    resize: vertical !important;
    min-height: 80px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px) !important;
}

.reply-form textarea:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
    outline: none !important;
}

.reply-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* 回复框内的按钮样式 */
.reply-form button[type="submit"] {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
    margin-top: 8px !important;
}

.reply-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4) !important;
}

.reply-form button[type="submit"]:active {
    transform: translateY(0) !important;
}

/* 回复按钮样式优化 */
.reply-btn {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3) !important;
}

.reply-btn:hover {
    background: linear-gradient(135deg, #138496, #117a8b) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4) !important;
}

.reply-btn:active {
    transform: translateY(0) !important;
}

/* 回复列表样式优化 */
.replies-list {
    margin-left: 2.5em !important;
    margin-top: 12px !important;
    padding-left: 16px !important;
    border-left: 2px solid rgba(23, 162, 184, 0.3) !important;
}

.comment.reply {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    margin-bottom: 8px !important;
    padding: 12px 16px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.comment.reply:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateX(2px) !important;
}

/* 删除按钮样式优化 */
.delete-comment-btn {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 11px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3) !important;
}

.delete-comment-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.4) !important;
}

.delete-comment-btn:active {
    transform: translateY(0) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .reply-form {
        min-width: 250px !important;
        padding: 12px !important;
        margin-top: 8px !important;
    }
    
    .reply-form textarea {
        min-height: 60px !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    .reply-form button[type="submit"] {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    .reply-btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
    
    .replies-list {
        margin-left: 1.5em !important;
        padding-left: 12px !important;
    }
    
    .comment.reply {
        padding: 10px 12px !important;
    }
}

/* 搜索结果页面样式 */
.search-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.search-info {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.search-info p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.search-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

.search-info i {
    margin-right: 0.5rem;
    color: var(--primary-gradient);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 搜索结果网格布局 */
.search-results-container .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 搜索结果卡片样式 */
.search-results-container .post {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.search-results-container .post.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.search-results-container .post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.search-results-container .post-header h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.search-results-container .post-header h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-results-container .post-header h3 a:hover {
    color: var(--secondary-color);
}

.search-results-container .post-content {
    margin-bottom: 1rem;
}

.search-results-container .post-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.search-results-container .post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-results-container .post-actions {
    display: flex;
    justify-content: flex-end;
}

.search-results-container .read-more {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.search-results-container .read-more:hover {
    background: var(--secondary-gradient);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 空状态样式 */
.search-results-container .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.search-results-container .empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.search-results-container .empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.search-results-container .empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-results-container {
        padding: 1rem;
    }
    
    .search-results-container .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-info {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-info p {
        font-size: 1rem;
    }
} 