/* ============ 站点附加样式（与原站版式保持一致，仅补充原站没有的功能） ============ */

/* 列表头像 + 认证角标（对应原站帖子卡片结构） */
.post-box-face {
  position: relative;
  width: 55px;
  float: left;
}

.post-box-img a img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.post-box-img i.author-ident {
  position: relative;
  display: block;
}

.post-box-img i.author-ident::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 18px;
  height: 18px;
  background: url('../img/badge.svg') no-repeat center;
  background-size: 18px;
}

/* 详情页图片画廊（尺寸与原站内联样式一致） */
.swiper-container {
  width: 100%;
  height: 300px;
  margin-left: auto;
  margin-right: auto;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
}

.gallery-top {
  height: 80%;
  width: 100%;
}

.gallery-thumbs {
  height: 20%;
  box-sizing: border-box;
  padding: 10px 0;
}

.gallery-thumbs .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.4;
}

.gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.article-image {
  height: 600px;
}

@media (max-width: 767px) {
  .article-image {
    height: 400px;
  }
}

/* 相关交友信息标题 */
.related-article h4 {
  margin-top: 0;
  border-left: 4px solid #d93567;
  padding-left: 10px;
}

/* 简易灯箱 */
.lightbox-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: none;
}

.lightbox-mask.show {
  display: block;
}

.lightbox-mask .lb-img {
  max-width: 90vw;
  max-height: 85vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 4px;
}

.lightbox-mask .lb-close,
.lightbox-mask .lb-prev,
.lightbox-mask .lb-next {
  position: absolute;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

.lightbox-mask .lb-close {
  top: 18px;
  right: 26px;
}

.lightbox-mask .lb-prev {
  top: 50%;
  left: 26px;
  transform: translateY(-50%);
}

.lightbox-mask .lb-next {
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
}

.lb-count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 12px;
  border-radius: 12px;
}

/* 发布页 */
.publish-panel .panel-default {
  padding: 15px;
}

.publish-panel .form-group label {
  font-weight: 600;
  color: #333;
}

.publish-panel .form-control:focus {
  border-color: #ff4467;
  box-shadow: none;
}

.btn-publish {
  color: #fff;
  background: linear-gradient(58deg, #ff4467 0%, #ff7e4b 100%);
  border: none;
  border-radius: 20px;
  padding: 8px 40px;
  font-size: 15px;
}

.btn-publish:hover {
  opacity: 0.9;
  color: #fff;
}

/* 发布成功提示 */
.publish-result {
  display: none;
}

.publish-result.show {
  display: block;
}

.result-box {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 8px;
  padding: 16px;
}
