/* 笔记详情模块样式 */

/* 笔记详情弹窗 */
.note-detail-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.note-detail-modal .modal-content {
  max-width: 1100px;
  margin: 3% auto;
  width: 95%;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}
.note-detail-container {
  display: flex;
  height: 80vh;
  min-height: 600px;
}
.note-left {
  width: 60%;
  background: #f5f5f5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.note-left .media-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.note-left img, .note-left video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.note-left .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 52px;
  border: none;
  background: rgba(0,0,0,.35);
  color: white;
  font-size: 32px;
  cursor: pointer;
  border-radius: 4px;
}
.note-left .arrow.left { left: 10px; }
.note-left .arrow.right { right: 10px; }
.note-right {
  width: 40%;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.note-right-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.note-right-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.note-right-header .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.note-right-header .back-btn {
  border: none;
  background: transparent;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  color: #000;
}
.note-right-header .user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  cursor: pointer;
}
.note-right-header .user-name {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.note-right-header .pet-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  cursor: pointer;
}
.note-right-header .pet-name {
  font-size: 13px;
  color: #666;
  cursor: pointer;
}
.note-right-header .edit-btn {
  border: none;
  border-radius: 18px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  background: #f2f2f2;
  color: #333;
  display: none;
}
.note-right-header .follow-btn {
  border: none;
  border-radius: 18px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  background: #ff2442;
  color: white;
}
.note-right-header .follow-btn.following {
  background: #fff;
  color: #ff2442;
  border: 1px solid #ff2442;
}
.note-right-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.note-right-content {
  padding: 16px;
}
.note-right-content .title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}
.note-right-content .content {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.note-right-content .keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.note-right-content .keyword {
  color: #2f6feb;
  background: #eef5ff;
  padding: 5px 9px;
  border-radius: 12px;
  font-size: 13px;
}
.note-right-content .meta {
  color: #999;
  font-size: 12px;
}
.divider {
  height: 1px;
  background: #e0e0e0;
  margin: 0 16px;
}
.comments-count {
  padding: 12px 16px;
  color: #999;
  font-size: 14px;
}
.comments-section {
  padding: 0 16px;
}
.card-user {
  cursor: pointer;
}
.comments-section .comment-item {
  padding: 14px 0;
  border-bottom: 1px solid #f3f3f3;
  overflow: hidden;
}
.comments-section .reply-item {
  margin-left: 42px;
  border-bottom: none;
  padding-bottom: 8px;
  overflow: hidden;
}
.comments-section .comment-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.comments-section .comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}
.comments-section .comment-name {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}
.comments-section .comment-text {
  font-size: 14px;
  line-height: 1.6;
  margin-left: 40px;
  margin-bottom: 7px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
.comments-section .reply-item .comment-text {
  margin-left: 40px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}
.comments-section .reply-prefix {
  color: #666;
}
.comments-section .comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 40px;
  color: #999;
  font-size: 12px;
  flex-wrap: wrap;
}
.comments-section .reply-btn {
  border: none;
  background: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.comments-section .empty {
  text-align: center;
  color: #999;
  padding: 26px;
}
.comment-box-wrapper {
  padding: 14px 16px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
  position: relative;
}
.comment-box-wrapper .comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
  margin-right: 10px;
  margin-left: 4px;
}
.comment-box-wrapper .comment-input-wrapper {
  flex: 1;
  max-width: 55%;
  background: #f2f2f2;
  border-radius: 24px;
  padding: 6px 12px;
  display: flex;
  align-items: flex-start;
  min-height: 36px;
  max-height: 120px;
}
.comment-box-wrapper .comment-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 14px;
  outline: none;
  resize: none;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
}
.comment-box-wrapper .action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.comment-box-wrapper .action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #333;
  cursor: pointer;
  margin: 0;
  padding: 6px;
  min-width: 36px;
  height: 36px;
}
.comment-box-wrapper .action-btn svg {
  width: 20px;
  height: 20px;
}
.comment-box-wrapper .like-btn svg {
  fill: transparent;
  stroke: #000000;
  stroke-width: 2;
}
.comment-box-wrapper .like-btn.liked svg {
  fill: #FF6B6B;
  stroke: #FF6B6B;
  stroke-width: 0;
}
.comment-box-wrapper .favorite-btn svg {
  fill: transparent;
  stroke: #000;
  stroke-width: 2;
}
.comment-box-wrapper .favorite-btn.favorited svg {
  fill: #FFD700;
  stroke: #FFD700;
  stroke-width: 2;
}

/* 评论点赞按钮样式 */
.comment-like-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #666;
  font-size: 13px;
}
.comment-like-btn svg {
  transition: all 0.2s;
}
.comment-like-btn:hover svg {
  stroke: #FF6B35;
}
.comment-like-btn.liked {
  color: #FF6B35;
}
.comment-like-btn.liked svg {
  fill: #FF6B35 !important;
  stroke: none !important;
}

.comment-box-wrapper.focused {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.comment-box-wrapper.focused .action-buttons {
  display: none;
}
.comment-box-wrapper.focused .comment-avatar {
  display: none;
}
.comment-box-wrapper.focused .comment-input-wrapper {
  flex: none;
  width: 90%;
  justify-content: space-between;
}
.comment-box-wrapper.focused .comment-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}
.comment-box-wrapper.focused .comment-input {
  flex: 1;
}
.comment-box-wrapper.focused .emoji-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-box-wrapper .emoji-icons {
  display: none;
}
.comment-box-wrapper.emoji-hidden .emoji-icons {
  display: none !important;
}
.comment-box-wrapper .comment-actions {
  display: none;
}
.comment-box-wrapper .quick-icons {
  display: flex;
  gap: 16px;
}
.comment-box-wrapper .quick-icon {
  font-size: 20px;
  cursor: pointer;
  color: #999;
}
.comment-box-wrapper .submit-buttons {
  display: flex;
  gap: 12px;
}
.comment-box-wrapper .submit-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  cursor: pointer;
}
.comment-box-wrapper .submit-btn.send {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  color: white;
}
.comment-box-wrapper .submit-btn.cancel {
  background: #f2f2f2;
  color: #666;
}

.emoji-picker {
  position: fixed;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 12px;
  width: 320px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-out;
  pointer-events: none;
}
.emoji-picker.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.emoji-picker-header {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}
.emoji-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}
.emoji-item:hover {
  background: #f2f2f2;
}
