/* 助手页「聊天 | 问答」与问答列表（深色主题，与运营端问答区接近） */
#video-right .chat-main.chat-main-with-tabs {
  display: flex;
  flex-direction: column;
  background: #1a1d21;
}

#video-right .chat-main.chat-main-with-tabs .assistant-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px 0;
  border-bottom: 1px solid #2d3238;
  background: #1a1d21;
}

#video-right .chat-main.chat-main-with-tabs .assistant-tab {
  padding: 6px 25px 8px;
  font-size: 13px;
  color: #9aa0a6;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

#video-right .chat-main.chat-main-with-tabs .assistant-tab:hover {
  color: #cfd3d7;
}

#video-right .chat-main.chat-main-with-tabs .assistant-tab.active {
  color: #fff;
  border-bottom-color: #ff6a00;
}

#video-right .chat-main.chat-main-with-tabs .assistant-tab--muted {
  cursor: default;
  opacity: 0.45;
}

#video-right .chat-main.chat-main-with-tabs .assistant-panel {
  flex: 1;
  min-height: 0;
  position: relative;
  display: none;
}

#video-right .chat-main.chat-main-with-tabs .assistant-panel.is-active {
  display: block;
}

/* #panel-chat 内沿用原聊天标题与列表的绝对定位 */
#video-right .chat-main.chat-main-with-tabs #panel-chat .chat-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

#video-right .chat-main.chat-main-with-tabs #panel-chat .chat-list.l-r-m {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #fff;
}

#video-right .chat-main.chat-main-with-tabs #panel-chat .chat-title {
  background-color: #f1f1f1;
}

/* 问答列表区域 */
.qa-panel-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  background: #1a1d21;
  color: #e6e8ea;
}

.qa-list-scroll {
  flex: 1;
  overflow: auto;
  padding: 8px 6px;
}

.qa-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qa-question-item {
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 6px;
  background: #24292e;
}

.qa-question-item:hover .qa-actions {
  opacity: 1;
}

.qa-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.qa-nickname {
  font-size: 13px;
  color: #ff6a00;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-actions {
  display: flex;
  gap: 4px;
  opacity: 0.35;
  transition: opacity 0.15s;
}

.qa-question-item:hover .qa-actions,
.qa-question-item.qa-item--replay-open .qa-actions {
  opacity: 1;
}

.qa-btn {
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 2px;
  border: 1px solid #ff6a00;
  background: transparent;
  color: #ff6a00;
  cursor: pointer;
}

.qa-btn:hover {
  background: rgba(255, 106, 0, 0.15);
}

.qa-btn.qa-btn--disabled,
.qa-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qa-body {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.qa-icon-q {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 12px;
  background: #ff6a00;
  color: #fff;
  border-radius: 2px;
}

.qa-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  color: #ff9f66;
}

.qa-imgs {
  margin: 6px 0 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qa-imgs img {
  max-width: 72px;
  max-height: 72px;
  border-radius: 4px;
  cursor: pointer;
  object-fit: cover;
}

.qa-answers {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #2d3238;
}

.qa-answer-row {
  font-size: 12px;
  margin-bottom: 6px;
  color: #cfd3d7;
}

.qa-answer-row .qa-ans-user {
  color: #7eb8ff;
}

.qa-answer-row .qa-ans-user.myanswer {
  color: #6fdc8c;
}

.qa-replay-box {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #2d3238;
}

.qa-replay-box textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 72px;
  max-height: 160px;
  padding: 8px;
  border: 1px solid #ff6a00;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 13px;
  resize: vertical;
}

.qa-replay-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.qa-char-count {
  font-size: 11px;
  color: #9aa0a6;
}

.qa-replay-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  justify-content: space-between;
}

.qa-replay-actions label {
  font-size: 12px;
  color: #cfd3d7;
  cursor: pointer;
  user-select: none;
}

.qa-replay-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qa-send {
  background: #ff6a00;
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.qa-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qa-cancel {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.qa-toolbar-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #24292e;
  border-top: 1px solid #2d3238;
  font-size: 11px;
  color: #9aa0a6;
}

.qa-toolbar-bottom label {
  margin-right: 10px;
  cursor: pointer;
  user-select: none;
}

.qa-toolbar-bottom a {
  color: #ff6a00;
  text-decoration: none;
}

.qa-toolbar-bottom a:hover {
  text-decoration: underline;
}

.qa-empty {
  padding: 24px 12px;
  text-align: center;
  font-size: 12px;
  color: #6b7078;
}
