@charset "UTF-8";
/* 详情页样式 */
.article-container {
  background-color: #fff;
  padding: 25px 30px;
  border-radius: 4px;
  margin-bottom: 30px;
}

.article-header {
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.article-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.4;
}

.article-meta {
  color: #777;
  font-size: 14px;
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.article-meta span {
  margin: 0 20px;
  display: flex;
  padding: 5px 0;
}

.article-content {
  line-height: 1.8;
  color: #333;
  font-size: 16px;
  margin-bottom: 30px;
}

.article-content p {
  margin-bottom: 20px;
  /* text-indent: 2em; */
  line-height: 2em !important;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 15px auto;
  display: block;
  border-radius: 4px;
}

.article-attachments {
  /* background-color: #f8f9fa; */
  padding: 15px 20px;
  border-radius: 4px;
  /* margin-top: 30px; */
}

.attachments-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1266c4;
}

.attachment-list {
  list-style: none;
  padding: 0;
}

.attachment-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e0e0e0;
}

.attachment-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.attachment-icon {
  margin-right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attachment-icon img {
  width: 100%;
  height: auto;
}

.attachment-name {
  flex: 1;
  color: #1266c4;
}

.attachment-name:hover {
  color: #1266c4;
  text-decoration: underline;
}

.attachment-size {
  color: #999;
  font-size: 13px;
  margin-left: 10px;
}

.attachment-download {
  margin-left: 15px;
  color: #1266c4;
  font-size: 13px;
  padding: 5px 12px;
  background-color: #eef4fb;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.attachment-download:hover {
  background-color: #d9e5f5;
}

/* 文章导航 */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  border-top: 1px dashed #e0e0e0;
  padding-top: 20px;
}

.prev-article,
.next-article {
  max-width: 48%;
}

.article-nav-label {
  display: block;
  font-size: 13px;
  color: #777;
  margin-bottom: 5px;
}

.article-nav-title {
  font-size: 15px;
  color: #333;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-nav-title:hover {
  color: #1266c4;
}

/* 返回列表按钮 */
.back-to-list {
  display: inline-block;
  margin: 20px 0;
  padding: 8px 20px;
  background-color: #f3f8fc;
  color: #1266c4;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.back-to-list:hover {
  background-color: #e6eef6;
  color: #1266c4;
}

/* 字体大小控制 */
.font-size-control {
  margin-left: 10px;
  color: #666;
}

.font-size-btn {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  margin: 0 2px;
  border-radius: 3px;
  background-color: #f3f8fc;
  color: #1266c4;
  text-decoration: none;
  transition: all 0.2s ease;
}

.font-size-btn:hover {
  background-color: #e6eef6;
}

.font-size-btn.active {
  background-color: #1266c4;
  color: #fff;
}

.font-size-btn.small {
  font-size: 12px;
}

.font-size-btn.medium {
  font-size: 14px;
}

.font-size-btn.large {
  font-size: 16px;
}

/* 不同字体大小下的文章内容样式 */
.article-content.font-small * {
  font-size: 14px !important;
  line-height: 1.6;
}

.article-content.font-medium * {
  font-size: 16px !important;
  line-height: 1.8;
}

.article-content.font-large * {
  font-size: 18px !important;
  line-height: 2;
}

/* 分享按钮样式 */
.share-control {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* 社交分享组件样式覆盖 */
.share-control .social-share {
  display: inline-flex;
  margin-left: 5px;
}

.share-control .social-share .social-share-icon {
  font-size: 12px;
  /* height: 24px; */
  /* line-height: 24px; */
  margin: 0 3px;
  padding: 0 8px;
  background-color: transparent;
  color: inherit;
}

/* 分享图标图片样式 */
.share-control .social-share .social-share-icon .share-icon-img {
  /* width: 24px; */
  /* height: 24px; */
  vertical-align: middle;
  border-radius: 50%;
}

.share-btn {
  display: inline-block;
  width: 33px;
  height: 33px;
  margin: 0 5px;
  vertical-align: middle;
}

.share-btn img {
  width: 100%;
  height: 100%;
  vertical-align: middle;
}

.content-title {
  text-align: center;
  line-height: 40px;
}

.content-main {
  min-height: 350px;
}

.content-main img {
  display: block;
  width: 100%;
}


/* 分享按钮基本样式 */
      .social-share-icon {
        margin: 0 5px !important;
        display: inline-block;
      }
      
      .share-icon-img {
        width: 33px !important;
        height: 33px !important;
        vertical-align: middle;
      }
      
      /* 微信模态窗口样式 */
      #wechat-share-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      #wechat-share-modal .modal-content {
        width: 300px;
        background: #fff;
        border-radius: 8px;
        padding: 20px;
        text-align: center;
        position: relative;
      }
      
      #wechat-share-modal .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 24px;
        font-weight: bold;
        color: #333;
        cursor: pointer;
      }
      
      #wechat-share-modal h3 {
        margin: 0 0 15px 0;
        color: #07C160;
        font-size: 18px;
      }
      
      #wechat-share-modal img {
        width: 200px;
        height: 200px;
        display: block;
        margin: 0 auto 15px;
      }
      
      #wechat-share-modal p {
        margin: 0;
        color: #777;
        font-size: 14px;
      }

/* 响应式样式 */
@media (max-width: 1200px) {
  .article-container {
    padding: 20px 25px;
  }

  .article-title {
    font-size: 22px;
  }

  .article-meta span {
    margin: 0 15px;
  }
}

@media (max-width: 992px) {
  .font-size-control {
    display: none;
  }
  .article-container {
    padding: 18px 20px;
  }

  .article-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .article-meta {
    font-size: 15px;
  }

  .article-meta span {
    margin: 0 10px;
  }

  .article-content {
    /* font-size: 17px; */
  }

  .attachment-download {
    padding: 4px 10px;
  }
}

@media (max-width: 768px) {
  .article-container {
    padding: 15px;
    margin-bottom: 20px;
  }

  .article-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
  }

  .article-title {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.5;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .article-meta span {
    margin: 0;
    width: 100%;
  }

  .font-size-control {
    display: none !important;
  }

  .share-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    padding: 5px 0;
  }

  .social-share {
    display: flex;
    gap: 10px;
  }

  .article-content {
    /* font-size: 16px;
    line-height: 1.6; */
  }

  .article-content p {
    margin-bottom: 15px;
  }

  .article-attachments {
    padding: 12px 15px;
  }
  .article-attachments h3 {
    /* font-size: 24px; */
  }
  .attachment-item {
    flex-wrap: wrap;
  }

  .attachment-name {
    width: 100%;
    margin-bottom: 5px;
  }

  .attachment-size {
    margin-left: 34px;
  }

  .attachment-download {
    margin-left: auto;
  }

  .article-nav {
    flex-direction: column;
    gap: 15px;
  }

  .prev-article,
  .next-article {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .font-size-control {
    display: none;
  }
  .article-container {
    padding: 12px;
    margin-bottom: 15px;
  }

  .article-header {
    margin-bottom: 15px;
    padding-bottom: 12px;
  }

  .article-title {
    font-size: 26px;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .article-meta {
    gap: 8px;
  }

  .article-meta span {
    font-size: 16px;
    display: block;
  }

  .font-size-control,
  .share-control {
    padding: 4px 0;
  }

  .font-size-btn {
    padding: 2px 8px;
    font-size: 13px;
  }

  .social-share .social-share-icon {
    width: 28px;
    height: 28px;
    line-height: 28px;
  }

  .article-content {
    font-size: 16px;
    line-height: 1.5;
    overflow:auto;
  }

  .article-content p {
    margin-bottom: 12px;
    /* font-size: 20px; */
  }

  .article-attachments {
    padding: 10px;
  }

  .attachments-title {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .attachment-item {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .attachment-icon {
    width: 20px;
    height: 20px;
  }

  .attachment-download {
    font-size: 12px;
    padding: 3px 8px;
  }

  .font-size-control {
    display: none;
  }

  .font-size-btn {
    width: 20px;
    height: 20px;
    line-height: 20px;
  }

  /* 分享控件响应式 */
  .share-control {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    margin-top: 5px;
  }
}
