/* 评论区样式 */
.comment-section {
  padding: 0 5px 20px;
  margin-top: 20px;
  max-width: 1200px;
  border: none;
}

.cs-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cs-title-inline {
  color: var(--nav-text-primary, #CFCDE4);
  font-size: 16px;
  font-weight: 600;
}

.cs-write-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--nav-text-primary, #CFCDE4);
  border: 1px solid var(--nav-border-color, rgba(207, 205, 228, 0.1));
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
}

.cs-item-inline {
  display: flex;
  gap: 12px;
  background: var(--nav-bg-secondary, #282c40);
  border-radius: 12px;
  padding: 15px;

}

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

.cs-content-inline {
  flex: 1;
}

.cs-nick-row {
  display: flex;
  flex-direction: row;
  /* 改为水平排列 */
  align-items: center;
  gap: 10px;
  /* 增加间距 */
  margin-bottom: 6px;
}

.cs-nick {
  color: var(--nav-text-primary, #CFCDE4);
  font-size: 14px;
  font-weight: 600;
}

.cs-time {
  color: var(--nav-text-secondary, #8C8EA6);
  font-size: 12px;
  margin-top: 0;
  /* 移除顶部间距 */
}

.cs-text {
  color: var(--nav-text-primary, #CFCDE4);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.cs-actions-row {
  display: flex;
  gap: 20px;
}

.cs-action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--nav-text-secondary, #8C8EA6);
  font-size: 13px;
  cursor: pointer;
}

.cs-action-item svg {
  opacity: 0.7;
}

/* 底部评论发布弹窗 */
.comment-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  align-items: flex-end;
  animation: fadeIn 0.2s ease-out;
}

.comment-modal-backdrop.show {
  display: flex;
}

.comment-modal {
  width: 100%;
  background: var(--nav-bg-primary, #212536);
  border-radius: 20px 20px 0 0;
  padding: 20px;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid var(--nav-border-color, rgba(207, 205, 228, 0.1));
}

.cm-header {
  font-size: 18px;
  font-weight: 600;
  color: var(--nav-text-primary, #CFCDE4);
  margin-bottom: 20px;
}

.cm-textarea {
  width: 100%;
  height: 120px;
  background: var(--nav-bg-secondary, #282c40);
  border: 1px solid var(--nav-border-color, rgba(207, 205, 228, 0.1));
  border-radius: 12px;
  padding: 15px;
  color: var(--nav-text-primary, #CFCDE4);
  font-size: 15px;
  resize: none;
  outline: none;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.cm-textarea::placeholder {
  color: var(--nav-text-secondary, #8C8EA6);
}

.cm-submit {
  width: 100%;
  background: linear-gradient(135deg, #8533ED 0%, #008EFE 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* 更多菜单样式 */
.more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--nav-bg-secondary, #282c40);
  border-radius: 8px;
  padding: 5px 0;
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 5px;
}

.more-menu.show {
  display: block;
}

.menu-item {
  padding: 12px 15px;
  color: var(--nav-text-primary, #CFCDE4);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.menu-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 10px;
}

/* 屏蔽确认弹窗样式 */
.block-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.block-modal-backdrop.show {
  display: flex;
}

.block-modal {
  width: 85%;
  max-width: 320px;
  background: rgba(35, 39, 56, 0.95);
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 24px 24px;
  box-sizing: border-box;
}

.bm-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 69, 58, 0.1);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF453A;
}

.bm-title {
  padding: 0;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.bm-content {
  padding: 0;
  margin-bottom: 32px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.bm-actions {
  display: flex;
  gap: 12px;
  border-top: none;
}

.bm-btn {
  flex: 1;
  border: none;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s;
}

.bm-btn.cancel {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

.bm-btn.cancel:active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.bm-btn.confirm {
  background: linear-gradient(135deg, #FF453A 0%, #FF3B30 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.bm-btn.confirm:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(255, 59, 48, 0.3);
}

.bm-btn:last-child {
  border-right: none;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}