/**
 * 一日女友 · 帖子详情（Figma 2.11 免费 225:45872 / 2.12 付费 225:46291）
 */
body.dg-post-detail-page {
  background: #111 !important;
}
body.dg-post-detail-page:before {
  opacity: 0.4;
}

/* 顶栏：搜索 370×38；导航 80×38（覆盖 shell 320 收缩） */
body.dg-post-detail-page .nav-search-wrap {
  display: flex !important;
  margin-left: auto;
  min-width: 370px !important;
  max-width: 370px !important;
  flex: 0 0 370px !important;
  width: 370px !important;
}
body.dg-post-detail-page .nav-search-box {
  width: 100% !important;
  height: 38px !important;
}
body.dg-post-detail-page .nav-links a {
  width: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  padding: 0 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0;
  height: 38px !important;
}

body.dg-post-detail-page .page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 101px 0 48px;
}

/* 面包屑：动态广场 > 贴主详情（勿用 nav） */
body.dg-post-detail-page .crumb {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  position: static !important;
  width: max-content !important;
  height: auto !important;
  margin: 0 0 33px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  z-index: auto !important;
  font-size: 16px;
  line-height: 22px;
  color: #b0b1b3;
}
body.dg-post-detail-page .crumb a {
  color: #b0b1b3 !important;
  text-decoration: none !important;
  font-weight: 500;
}
body.dg-post-detail-page .crumb a:hover { color: #fff !important; }
body.dg-post-detail-page .crumb .current {
  color: #fff !important;
  font-weight: 700;
}
body.dg-post-detail-page .crumb .crumb-sep {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

body.dg-post-detail-page .pd-layout {
  display: grid;
  grid-template-columns: 804px 375px;
  gap: 21px;
  align-items: start;
}
body.dg-post-detail-page .pd-layout.no-related {
  grid-template-columns: 804px;
}
body.dg-post-detail-page .pd-main {
  min-width: 0;
  width: 804px;
  max-width: 804px;
}

body.dg-post-detail-page .pd-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  word-break: break-word;
}
body.dg-post-detail-page .pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  font-size: 14px;
  color: #b3b3b3;
}

body.dg-post-detail-page .pd-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
body.dg-post-detail-page .pd-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff2d78, #ff6b9d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
}
body.dg-post-detail-page .pd-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.dg-post-detail-page .pd-author-meta { min-width: 0; }
body.dg-post-detail-page .pd-author-name {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
body.dg-post-detail-page .pd-author-date {
  margin-top: 2px;
  font-size: 14px;
  color: #b3b3b3;
}
body.dg-post-detail-page .pd-author-city {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px 0 6px;
  border-radius: 6px;
  border: 1px solid #414141;
  background: #27272a;
  color: #ff1290;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
body.dg-post-detail-page .pd-author-city img {
  width: 13px;
  height: 13px;
  display: block;
}

body.dg-post-detail-page .pd-body {
  margin-top: 24px;
  font-size: 16px;
  line-height: 24px;
  color: #f4f4f5;
  white-space: pre-wrap;
  word-break: break-word;
}
body.dg-post-detail-page .pd-body .pd-hash {
  color: #ff1290;
  font-weight: 500;
}

body.dg-post-detail-page .pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
body.dg-post-detail-page .pd-tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(255, 200, 92, 0.1);
  color: #ffc85c;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
}
body.dg-post-detail-page a.pd-tag:hover {
  filter: brightness(1.08);
}

body.dg-post-detail-page .pd-images {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}
body.dg-post-detail-page .pd-images.two,
body.dg-post-detail-page .pd-images.many,
body.dg-post-detail-page .pd-images.single {
  grid-template-columns: minmax(0, 1fr);
}
body.dg-post-detail-page .pd-img {
  border-radius: 14px;
  border: 1px solid rgba(65, 65, 65, 0.8);
  background: #0f121c;
  overflow: hidden;
  width: 100%;
  height: 550px;
  cursor: zoom-in;
}
body.dg-post-detail-page .pd-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.dg-post-detail-page .pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  align-items: center;
}
body.dg-post-detail-page .pd-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color .15s;
  box-shadow: none;
}
body.dg-post-detail-page .pd-action:hover {
  color: #ffb6d9;
}
body.dg-post-detail-page .pd-action.active {
  color: #fff;
}
body.dg-post-detail-page .pd-action#post-like-btn.active {
  color: #ff6b9d;
}
body.dg-post-detail-page .pd-action#post-collect-btn.active {
  color: #feca69;
}
body.dg-post-detail-page .pd-action img {
  width: 20px;
  height: 20px;
  display: block;
}
body.dg-post-detail-page .pd-action-status {
  font-size: 12px;
  color: rgba(255, 107, 157, 0.55);
  min-height: 18px;
}

body.dg-post-detail-page .pd-ads {
  margin-top: 28px;
}

body.dg-post-detail-page .pd-unlock {
  margin: 48px auto 0;
  display: flex;
  justify-content: center;
}
body.dg-post-detail-page .pd-unlock-card {
  box-sizing: border-box;
  width: 200px;
  max-width: calc(100% - 24px);
  min-height: 180px;
  padding: 28px 16px 18px;
  border-radius: 8px;
  border: 1px solid #35363c;
  background: linear-gradient(141deg, #231d19 6%, #4f4d56 94%);
  box-shadow: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.dg-post-detail-page .pd-unlock-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
body.dg-post-detail-page .pd-unlock-title img {
  width: 20px;
  height: 20px;
  display: block;
}
body.dg-post-detail-page .pd-unlock-coins {
  margin: 0 0 16px;
  color: #b3b3b3;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}
body.dg-post-detail-page .pd-unlock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 34px;
  margin-top: auto;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: linear-gradient(105deg, #ff43a7 0%, #ef2df9 95%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
}
body.dg-post-detail-page .pd-unlock-btn:hover {
  filter: brightness(1.05);
}

/* 右栏同类推荐 */
body.dg-post-detail-page .pd-side {
  position: sticky;
  top: 76px;
  width: 375px;
  border-radius: 20px;
  border: 1px solid #27282d;
  background: #1d1e25;
  padding: 16px 12px 12px;
  box-shadow: 0 2px 7.5px rgba(0, 0, 0, 0.4);
}
body.dg-post-detail-page .pd-side-title {
  margin: 0 0 8px 16px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
body.dg-post-detail-page .pd-related {
  display: flex;
  flex-direction: column;
}
body.dg-post-detail-page .pd-related-empty {
  padding: 16px;
  font-size: 12px;
  color: rgba(181, 183, 191, 0.7);
}
body.dg-post-detail-page .pd-related-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 92px;
  box-sizing: border-box;
  padding: 16px 14px;
  border-bottom: 1px solid #262626;
  text-decoration: none;
  color: inherit;
}
body.dg-post-detail-page .pd-related-card:last-child {
  border-bottom: 0;
}
body.dg-post-detail-page .pd-related-card:hover .pd-related-title {
  color: #ffb6d9;
}
body.dg-post-detail-page .pd-related-thumb {
  width: 96px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #27282d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.5);
}
body.dg-post-detail-page .pd-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.dg-post-detail-page .pd-related-body {
  min-width: 0;
  flex: 1;
}
body.dg-post-detail-page .pd-related-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  min-height: 25px;
}
body.dg-post-detail-page .pd-related-meta {
  margin-top: 14px;
  font-size: 12px;
  line-height: 18px;
  color: #b5b7bf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dg-post-detail-page .not-found {
  margin: 80px auto;
  max-width: 520px;
  text-align: center;
  border: 1px solid rgba(255, 107, 157, 0.13);
  border-radius: 12px;
  background: rgba(20, 16, 34, 0.82);
  padding: 42px 24px;
}
body.dg-post-detail-page .not-found h1 {
  font-size: 22px;
  margin-bottom: 12px;
}

/* 评论区（Figma 804×116 输入框 / 78×30 发送） */
body.dg-post-detail-page .dg-cmt {
  margin-top: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
body.dg-post-detail-page .dg-cmt-head {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
}
body.dg-post-detail-page .dg-cmt-form {
  position: relative;
}
body.dg-post-detail-page .dg-cmt-form textarea {
  min-height: 116px;
  border-radius: 10px;
  background: #27282d;
  border: 1px solid #35363c;
  color: #f4f4f5;
  padding: 14px 96px 44px 12px;
  font-size: 12px;
}
body.dg-post-detail-page .dg-cmt-form textarea::placeholder {
  color: #7f8189;
}
body.dg-post-detail-page .dg-cmt-bar,
body.dg-post-detail-page .dg-cmt-tip {
  display: none;
}
body.dg-post-detail-page .dg-cmt-send {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-width: 78px !important;
  width: 78px !important;
  height: 30px !important;
  padding: 0 !important;
  background: #ff1290 !important;
  border-radius: 12px !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

@media (max-width: 980px) {
  body.dg-post-detail-page .page {
    padding: 78px 16px 36px;
  }
  body.dg-post-detail-page .pd-layout {
    grid-template-columns: 1fr;
  }
  body.dg-post-detail-page .pd-main {
    width: auto;
    max-width: none;
  }
  body.dg-post-detail-page .pd-side {
    width: auto;
  }
  body.dg-post-detail-page .pd-img {
    height: auto;
    min-height: 220px;
    max-height: 420px;
  }
  body.dg-post-detail-page .pd-side {
    position: static;
  }
}
@media (max-width: 760px) {
  body.dg-post-detail-page .page {
    padding: 68px 14px 36px;
  }
  body.dg-post-detail-page .pd-title {
    font-size: 18px;
  }
  body.dg-post-detail-page .pd-images.two,
  body.dg-post-detail-page .pd-images.many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body.dg-post-detail-page .pd-author-city {
    margin-left: 0;
  }
  body.dg-post-detail-page .pd-author {
    flex-wrap: wrap;
  }
}
