.comment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.comment-modal-content {
  background: #2b2b2b;
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px; /*稍微加宽以适应搜索结果*/
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.comment-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
}
.row {
  margin-bottom: 15px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 14px;
  color: #ddd;
}
/* 输入框样式 */
input[type="text"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1a1a1a;
  color: #fff;
  outline: none;
}
input[type="text"]:focus {
  border-color: #ff6b6b;
}
/* --- 分类单选按钮样式 (原有样式微调) --- */
.nom-type {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.nom-radio {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nom-radio input {
  display: none;
}
.nom-radio .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #666;
  display: inline-block;
}
.nom-radio input:checked + .dot {
  border-color: #ff6b6b;
  background: #ff6b6b;
}
.nom-radio .txt {
  font-size: 14px;
}
/* --- 新增：搜索结果区域样式 --- */
.search-results-container {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  max-height: 250px; /* 限制高度，内部滚动 */
  overflow-y: auto;
  margin-top: 5px;
  display: none; /* 默认隐藏，有结果时显示 */
}
.search-results-container.active {
  display: block;
}
.result-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background 0.2s;
}
.result-item:hover {
  background: #333;
}
.result-item img {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
}
.result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.result-title {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}
.result-meta {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}
/* --- 新增：预提交菜单 (Selected Area) --- */
.pre-submit-area {
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 15px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
/* 左侧：已选列表 */
.selected-list {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  align-content: flex-start;
}
/* 每一个选中的胶囊样式 */
.selected-tag {
  background: #ff6b6b;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeIn 0.2s ease;
}
.selected-tag span {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.remove-tag {
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  opacity: 0.8;
}
.remove-tag:hover {
  opacity: 1;
}
/* 右侧：操作按钮 */
.actions-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100px;
}
.btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
}
.btn-primary {
  background: #fff;
  color: #000;
  font-weight: bold;
}
.btn-primary:hover {
  background: #ddd;
}
.btn-secondary {
  background: transparent;
  color: #aaa;
  border: 1px solid #444;
}
.btn-secondary:hover {
  color: #fff;
  border-color: #fff;
}
/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #666;
}
@-moz-keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@-o-keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
