/* 帖子内页 — 海青视觉（主栏 + 侧栏） */

.tp-layout {
  align-items: start;
  padding-bottom: 48px;
}
.tp-page {
  min-width: 0;
  max-width: none;
  padding-bottom: 0;
}
.tp-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink3);
}
.tp-crumb a { color: var(--ink2); }
.tp-crumb a:hover { color: var(--primary); }

.tp-article {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 18px;
  padding: 22px 22px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.tp-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

/* 管理员帖内工具条 */
.mod-bar {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
}
.mod-bar-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.mod-label {
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  margin-right: 4px;
}
.mod-sep {
  width: 1px;
  height: 18px;
  background: #99f6e4;
  margin: 0 4px;
}
.mod-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #fff;
  color: #0f766e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.mod-btn:hover { background: #ccfbf1; }
.mod-btn:disabled { opacity: .4; cursor: not-allowed; }
.mod-btn.mod-danger {
  border-color: #fecaca;
  color: #b91c1c;
}
.mod-btn.mod-danger:hover { background: #fef2f2; }
@media (max-width: 640px) {
  .mod-sep { display: none; }
}
.tp-head h1 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--ink);
  word-break: break-word;
}
.tp-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}
.tp-av, img.tp-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-bg);
  color: var(--primary-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.tp-author-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.tp-author-name:hover { color: var(--primary); }
.tp-author-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink3);
}
.tp-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}
.tp-body p { margin-bottom: 12px; }
.tp-article .vip-gate {
  margin: 8px 0 0;
  border-radius: 14px;
}

.tp-comments,
.tp-composer {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 18px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tp-comments-hd,
.tp-composer-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 0;
}
.tp-comments-hd h2,
.tp-composer-hd h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.tp-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--ink3);
  font-size: 14px;
}
.tp-cmt-list .cmt-item {
  border-bottom: 1px solid #f1f5f9;
}
.tp-cmt-list .cmt-item:last-child { border-bottom: 0; }
.tp-composer { padding: 0 16px 16px; }
.tp-composer .side-text { padding: 12px 0 4px; }
.tp-composer .form-group { margin-top: 12px; }
.tp-composer textarea {
  min-height: 88px;
  border-radius: 14px;
  background: #f8fafc;
  border-color: var(--line);
}
.tp-composer textarea:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .2);
  outline: none;
  background: #fff;
}

@media (max-width: 640px) {
  .tp-article { padding: 16px 14px; border-radius: 16px; }
  .tp-head h1 { font-size: 20px; }
  .tp-comments,
  .tp-composer { border-radius: 16px; }
}
