/* guestbook.css - 留言板页面专用样式 */

/* 强制黑色主题 */
body {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.navbar {
  background-color: rgba(0, 0, 0, 0.95) !important;
}

.main-content {
  background-color: #000000 !important;
}

.footer {
  background-color: #000000 !important;
}

.page-header {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.page-title {
  color: #ffffff !important;
}

.page-description {
  color: #cbd5e1 !important;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.stat-number {
  color: #ffffff !important;
}

.stat-label {
  color: #cbd5e1 !important;
}

/* 留言表单 */
.message-form {
  background: #1a1a1a !important;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff !important;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #cbd5e1 !important;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  background: #000000 !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px;
  font-size: 1rem;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3) !important;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
}

/* 留言列表 */
.messages-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message-card {
  background: #1a1a1a !important;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.message-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(79, 70, 229, 0.5) !important;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

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

.message-info {
  flex: 1;
}

.message-author {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff !important;
  margin-bottom: 5px;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #cbd5e1 !important;
  font-size: 0.85rem;
}

.message-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.message-actions {
  display: flex;
  gap: 10px;
}

.message-body {
  color: #cbd5e1 !important;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.message-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.message-stats {
  display: flex;
  gap: 20px;
}

.message-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8 !important;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.message-stat:hover {
  color: #4f46e5 !important;
}

.message-stat i {
  font-size: 0.9rem;
}

.message-reply {
  background: none;
  border: none;
  color: #4f46e5 !important;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.message-reply:hover {
  background: rgba(79, 70, 229, 0.1) !important;
}

/* 回复表单 */
.reply-form {
  background: #000000 !important;
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: none;
}

.reply-form.active {
  display: block;
}

.reply-form .form-group {
  margin-bottom: 15px;
}

.reply-form .form-textarea {
  min-height: 80px;
}

.reply-form .form-actions {
  margin-top: 15px;
}

/* 回复列表 */
.replies-list {
  margin-top: 15px;
  padding-left: 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.reply-card {
  background: #000000 !important;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.reply-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.reply-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff !important;
}

.reply-date {
  font-size: 0.75rem;
  color: #cbd5e1 !important;
}

.reply-body {
  color: #cbd5e1 !important;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination-button {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-button:hover:not(:disabled) {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  gap: 5px;
}

.pagination-page {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-page:hover {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

.pagination-page.active {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 4rem;
  color: #cbd5e1 !important;
  margin-bottom: 20px;
}

.empty-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 10px;
}

.empty-description {
  color: #cbd5e1 !important;
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .message-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .message-actions {
    align-self: flex-start;
  }

  .message-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .message-stats {
    width: 100%;
    justify-content: space-between;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* 用户信息显示 */
.user-info-display {
  background: #000000 !important;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.user-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #cbd5e1 !important;
}

.user-info-item:last-child {
  margin-bottom: 0;
}

.user-info-item i {
  color: #4f46e5 !important;
  width: 20px;
  text-align: center;
}

.user-info-label {
  font-weight: 600;
  min-width: 40px;
}

.user-info-value {
  color: #ffffff !important;
}

/* 页面标题区域 - 新布局 */
.page-header {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
  color: white !important;
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: cover;
}

.page-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-left {
  flex: 1;
}

.header-right {
  margin-left: 40px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff !important;
}

.page-description {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
  color: #cbd5e1 !important;
  max-width: 600px;
}

.total-comments {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px;
  padding: 20px 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  min-width: 120px;
}

.total-number {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: #ffffff !important;
}

.total-label {
  font-size: 0.9rem;
  opacity: 0.8;
  color: #cbd5e1 !important;
}

/* 留言列表区域背景 */
.bg-light {
  background: #000000 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.section-title {
  color: #ffffff !important;
}

.section-description {
  color: #cbd5e1 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-header-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .header-right {
    margin-left: 0;
    margin-top: 10px;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .page-description {
    font-size: 1rem;
  }

  .total-comments {
    padding: 15px 20px;
    min-width: 100px;
  }

  .total-number {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .message-form {
    padding: 20px;
  }

  .message-card {
    padding: 20px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .pagination-pages {
    order: 1;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .page-header {
    padding: 50px 0 30px;
  }

  .page-title {
    font-size: 1.8rem;
  }
}

/* 点赞功能样式 */
.message-stat.like-message.liked {
  color: #ef4444 !important;
}

.message-stat.like-message.liked i {
  color: #ef4444 !important;
}

.message-stat.like-message:hover {
  color: #ef4444 !important;
}

.message-stat.like-message:hover i {
  color: #ef4444 !important;
}

/* 点赞动画 */
@keyframes likePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.message-stat.like-message.pulsing {
  animation: likePulse 0.3s ease-in-out;
}

/* 禁用状态 */
.message-stat.like-message.disabled {
  cursor: not-allowed !important;
  opacity: 0.5;
}

.message-stat.like-message.disabled:hover {
  color: #94a3b8 !important;
}

.message-stat.like-message.disabled:hover i {
  color: #94a3b8 !important;
}

/* 点赞计数样式 */
.like-count {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* 已点赞状态 */
.message-stat.like-message.liked .like-count {
  color: #ef4444 !important;
}

/* 登录提示样式 */
.login-prompt {
  background: #1a1a1a !important;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-bottom: 40px;
}

.login-prompt-icon {
  font-size: 4rem;
  color: #4f46e5 !important;
  margin-bottom: 20px;
}

.login-prompt-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 15px;
}

.login-prompt-description {
  color: #cbd5e1 !important;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.login-prompt-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .login-prompt {
    padding: 30px 20px;
  }

  .login-prompt-icon {
    font-size: 3rem;
  }

  .login-prompt-title {
    font-size: 1.5rem;
  }

  .login-prompt-description {
    font-size: 1rem;
  }

  .login-prompt-actions {
    flex-direction: column;
    align-items: center;
  }

  .login-prompt-actions .btn {
    width: 100%;
    max-width: 200px;
  }
}
