/* 文章详情页专属样式：复刻 detail.png，不影响项目中的其他页面。 */
html {
  background: #fff;
}

body {
  margin: 0;
  padding: 0;
  background: url("../images/site-bg.jpg") no-repeat top center;
  color: #4b4b4b;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: 990px;
  height: 160px;
  margin: 0 auto;
}

.site-logo {
  float: left;
  width: 506px;
  height: 80px;
  margin: 40px 0;
}

.site-logo a,
.site-logo img {
  display: block;
  width: 506px;
  height: 80px;
}

.breadcrumb {
  width: 990px;
  height: 40px;
  margin: 10px auto 0;
  color: #6b6b6b;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: #567fe6;
}

.separator {
  white-space: pre;
}

.article-panel {
  position: relative;
  width: 990px;
  min-height: 662px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #a4a4a4;
  background: #fff;
}

.article-panel h1 {
  margin: 0 0 20px;
  color: #4b4b4b;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 32px;
  margin: 20px 30px 10px;
  padding: 0 30px;
  overflow: hidden;
  background: #e9e9e9;
  color: #6b6b6b;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 32px;
  white-space: nowrap;
}

.article-meta-left,
.article-meta-right {
  display: flex;
  align-items: center;
}

.article-meta-left {
  flex: 1 1 auto;
  min-width: 0;
}

.article-source {
  margin-left: 24px;
}

.article-meta-right {
  flex: 0 0 auto;
}

.article-click-count {
  white-space: nowrap;
}

.article-click-count em {
  font-style: normal;
  font-weight: inherit;
}

.article-content {
  padding: 10px 36px;
}

.article-content p {
  margin: 0;
  padding: 16px 0;
  color: #4b4b4b;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 21.3333px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0;
  text-align: left;
  text-indent: 42.6667px;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.article-content table {
  max-width: 100%;
  border-collapse: collapse;
}

.page-tools {
  width: 100%;
  height: 25px;
  background: #f5f5f5;
}

.page-tools-inner {
  width: 95%;
  height: 25px;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.page-tools button {
  margin: 0 0 0 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0000ee;
  cursor: pointer;
  font: 12px/25px Arial, "Microsoft YaHei", sans-serif;
}

.page-tools button:hover,
.page-tools button:focus-visible {
  color: #567fe6;
  text-decoration: underline;
}

.site-footer {
  width: 100%;
  height: 84px;
  margin-top: 24px;
  background: #dbdbdb;
}

.footer-content {
  width: 100%;
  height: 106px;
  padding-top: 34px;
  background: #474e62;
  text-align: center;
}

.footer-content p {
  margin: 0;
  color: #b9b9b9;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 24px;
}

@media (max-width: 1030px) {
  .site-header,
  .breadcrumb,
  .article-panel {
    width: calc(100% - 32px);
  }

  .article-panel {
    min-height: 600px;
    padding: 30px clamp(18px, 4vw, 30px);
  }

  .article-meta {
    display: flex;
    margin-right: 0;
    margin-left: 0;
    padding-right: 20px;
    padding-left: 20px;
  }

  .article-content {
    padding-right: clamp(0px, 3vw, 36px);
    padding-left: clamp(0px, 3vw, 36px);
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 126px;
  }

  .site-logo {
    float: none;
    width: min(100%, 506px);
    height: auto;
    margin: 24px 0 0;
  }

  .site-logo a,
  .site-logo img {
    width: 100%;
    height: auto;
  }

  .breadcrumb {
    margin-top: 0;
  }

  .article-panel h1 {
    font-size: 19px;
  }

  .article-meta {
    display: block;
    height: auto;
    min-height: 32px;
    white-space: normal;
  }

  .article-meta-left {
    flex-wrap: wrap;
    height: auto;
    min-height: 32px;
  }

  .article-meta-right {
    display: block;
    min-height: 32px;
    text-align: right;
  }

  .article-content p {
    font-size: 18px;
    line-height: 30px;
    text-indent: 36px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .breadcrumb,
  .page-tools,
  .site-footer {
    display: none;
  }

  .article-panel {
    width: 100%;
    min-height: 0;
    border: 0;
  }
}
