.case-detail-page {
  padding: 28px 0 64px;
  background: #fff;
}

.case-detail {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
}

.case-detail-head {
  text-align: center;
  padding: 8px 0 6px;
}

.case-detail-head h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  color: #222;
  letter-spacing: 1px;
}

.case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 18px;
  color: #999;
  font-size: 16px;
  line-height: 1.5;
}

.case-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-time::before,
.meta-author::before,
.meta-views::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  background: center / contain no-repeat;
}

.meta-time::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.meta-author::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 19c1.5-3.5 4-5 7-5s5.5 1.5 7 5'/%3E%3C/svg%3E");
}

.meta-views::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}

.case-detail-divider {
  margin: 22px 0 28px;
  border: 0;
  border-top: 1px dashed #ddd;
}

.case-detail-body {
  color: #444;
  font-size: 18px;
  line-height: 1.95;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}

/* 编辑器常输出 <pre class="detail-text">，默认不换行；前台强制自动换行 */
.case-detail-body pre,
.case-detail-body .detail-text,
.detail-text {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  overflow-x: hidden;
}

.case-subhead {
  margin: 0 0 28px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.case-detail-body h3 {
  margin: 28px 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

.case-detail-body p {
  margin: 0 0 16px;
  text-indent: 2em;
  text-align: justify;
}

.case-detail-figure {
  margin: 36px auto 8px;
  text-align: center;
}

.case-detail-figure img {
  display: inline-block;
  max-width: min(560px, 100%);
  width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 760px) {
  .case-detail-page {
    padding: 18px 0 48px;
  }

  .case-detail-head h1 {
    font-size: 28px;
  }

  .case-detail-meta {
    gap: 8px 16px;
    font-size: 15px;
  }

  .case-subhead {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .case-detail-body {
    font-size: 17px;
    line-height: 1.9;
  }

  .case-detail-body h3 {
    font-size: 18px;
  }
}
