/* ===== 提示 ===== */
.qb-notice {
  padding: 14px 20px;
  background: #fff8f0;
  border-left: 4px solid #f6821f;
  border-radius: 8px;
  margin-bottom: 26px;
}

.qb-notice p {
  color: #b8531b;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.qb-empty {
  text-align: center;
  padding: 80px 20px;
  color: #999;
  font-family: 'ZC0005', system-ui, sans-serif;
}

/* ===== 动态卡片 ===== */
.qb-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qb-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease;
}

.qb-card:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

/* 头部（点击折叠展开） */
.qb-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  background: #fafafa;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease;
}

.qb-card-header:hover {
  background: #f5f5f5;
}

.qb-date {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b8531b;
  letter-spacing: 0.05em;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.qb-date-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f6821f;
  box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.15);
}

.qb-toggle-icon {
  font-size: 1rem;
  color: #999;
  transition: transform 0.3s ease;
}

.qb-card.open .qb-toggle-icon {
  transform: rotate(180deg);
}

.qb-card.open .qb-card-header {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* 卡片主体 */
.qb-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.qb-card.open .qb-card-body {
  max-height: 3000px;
  overflow: visible;
}

.qb-content {
  padding: 20px 22px 10px;
  color: #333;
  font-size: 0.98rem;
  line-height: 1.8;
}

/* markdown 内容 */
.qb-content h1, .qb-content h2, .qb-content h3 {
  margin: 12px 0 8px;
  color: #222;
}
.qb-content p { margin: 8px 0; }
.qb-content ul, .qb-content ol { margin: 8px 0 8px 22px; }
.qb-content a { color: #f6821f; text-decoration: none; border-bottom: 1px dashed #f6821f; }
.qb-content code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.qb-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 10px 0;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}
.qb-content img:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ===== 操作按钮 ===== */
.qb-actions {
  display: flex;
  gap: 10px;
  padding: 8px 22px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  margin-top: 8px;
}

.qb-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 20px;
  color: #666;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.qb-action-btn:hover {
  background: #fff;
  border-color: #f6821f;
  color: #f6821f;
}

.qb-action-btn.liked {
  background: #fff0e6;
  border-color: #f6821f;
  color: #f6821f;
}

.qb-action-btn.liked svg {
  fill: #f6821f;
}

/* ===== 评论 ===== */
.qb-comment-box {
  padding: 0 22px 20px;
  border-top: 1px dashed #eee;
  margin-top: 4px;
  padding-top: 16px;
  animation: commentFadeIn 0.3s ease;
}

@keyframes commentFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.qb-comment-list {
  margin-bottom: 16px;
  max-height: 320px;
  overflow-y: auto;
}

.qb-comment-empty {
  text-align: center;
  color: #bbb;
  font-size: 0.85rem;
  padding: 16px 0;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.qb-comment-item {
  padding: 10px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.qb-comment-item:last-child {
  border-bottom: none;
}

.qb-comment-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f6821f;
  margin-bottom: 4px;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.qb-comment-text {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
  word-break: break-word;
}

.qb-comment-time {
  font-size: 0.72rem;
  color: #bbb;
  margin-top: 4px;
}

.qb-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qb-comment-name-input,
.qb-comment-text-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: 'ZC0005', system-ui, sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
  background: #fafafa;
}

.qb-comment-name-input:focus,
.qb-comment-text-input:focus {
  border-color: #f6821f;
  background: #fff;
}

.qb-comment-text-input {
  resize: vertical;
  min-height: 56px;
}

.qb-comment-submit {
  align-self: flex-end;
  padding: 8px 22px;
  background: linear-gradient(135deg, #f6821f, #ff9a44);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'ZC0005', system-ui, sans-serif;
  letter-spacing: 0.04em;
}

.qb-comment-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(246, 130, 31, 0.35);
}

.qb-comment-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== 图片放大 ===== */
.qb-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  animation: lbFadeIn 0.25s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.qb-lightbox-img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.qb-lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  user-select: none;
}

.qb-lightbox-close:hover {
  opacity: 1;
}

.qb-lightbox-toolbar {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
}

.qb-lightbox-download {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #f6821f, #ff9a44);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.88rem;
  font-family: 'ZC0005', system-ui, sans-serif;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(246, 130, 31, 0.4);
  transition: transform 0.2s ease;
}

.qb-lightbox-download:hover {
  transform: translateY(-2px);
}

/* ===== 移动端适配 ===== */
@media (max-width: 480px) {
  .qb-card-header { padding: 12px 16px; }
  .qb-content { padding: 16px 16px 8px; font-size: 0.94rem; }
  .qb-actions { padding: 6px 16px 14px; }
  .qb-comment-box { padding: 0 16px 16px; padding-top: 14px; }
  .qb-action-btn { padding: 6px 12px; font-size: 0.8rem; }
  .qb-lightbox-img { max-width: 96%; max-height: 72%; }
  .qb-lightbox-close { top: 12px; right: 16px; font-size: 1.7rem; }
}
/* 情报站来源链接：黑色文字 + 淡灰虚线下划线，hover 时才显示品牌橙 */
.qb-source a {
  color: #000000;
  text-decoration: none;
  border-bottom: 1px dashed #cccccc;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.qb-source a:hover {
  color: #f6821f;
  border-bottom-color: #f6821f;
}

/* @符号前缀可加淡灰，视觉上更"账号感" */
.qb-source a::before {
  content: "";
}
.qb-source-link {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.qb-source-link:hover {
  color: #f6821f;
}

.qb-source-link:hover svg {
  transform: translateX(2px);
}

.qb-source-link svg {
  transition: transform 0.2s ease;
}