/* ================================================
 * 分享功能样式文件 (share.css)
 * 功能：悬浮分享按钮、分享弹窗、分享图片样式
 * 作者：自动生成
 * 日期：2026-05-13
 * ================================================ */

/* 悬浮分享按钮 */
.float-share-btn {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
}
.float-share-btn img {
   width: 100%;
   height: 100%;
}
.float-share-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.6);
}

/* .float-share-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
} */

/* 分享弹窗遮罩层 */
.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  display: none;
}

/* 分享弹窗内容 */
.share-modal-content {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  max-width: 95%;
  max-height: 95vh;
  overflow-y: auto;
}

/* 弹窗关闭按钮 */
.share-modal-content .close-btn {
  text-align: right;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  margin-bottom: 0.5rem;
}

.share-modal-content .close-btn:hover {
  color: #666;
}

/* 分享图片容器（生成图片的主体） */
.share-image-container .share-image-content{
  background: url('../images/share_mobile_bg.png');
  background-size: 100% 100%;
  border-radius: 0.75rem;
  padding: 3rem 0.8rem 2rem;
  overflow: hidden;
  color: #fff;
}
.share-image-container>img{
    border-radius: 0.75rem;
}
/* Logo头部 */
.share-image-container .logo-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.share-image-container .logo-header img {
  height: 3rem;
  width: auto;
}
.article-box{
  background: url('../images/share_mobile_contetBg.png');
  background-size: 100% 100%;
  padding: 0.8rem;
  min-height: 20rem;
  text-align: justify;
  line-height: 1.5;
}
/* 文章标题 */
.share-image-container .article-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #fff;
  text-align: left;
}

/* 文章日期 */
.share-image-container .article-date {
  font-size: 0.75rem;
  color: #8892b0;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 文章内容描述 */
.share-image-container .article-content {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #ccd6f6;
  margin-bottom: 1.5rem;
}

/* 底部信息 */
.share-image-container .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 底部左侧（Logo和标语） */
.share-image-container .footer .footer-left {
  display: flex;
  flex-direction: column;
}

.share-image-container .footer .footer-left .footer-logo img {
  height: 2.5rem;
  width: auto;
}

.share-image-container .footer .footer-left .slogan {
  font-size: 0.65rem;
  color: #8892b0;
}

/* 底部右侧（二维码区域） */
.share-image-container .footer .qr-code-area {
  display: flex;
  /* flex-direction: column; */
  align-items: center;
}

.share-image-container .footer .qr-code-area .qr-text {
  font-size: 0.8rem;
  line-height: 1.8;
  color: #8892b0;
  margin-right: 0.5rem;
  text-align: center;
}
.qrcode-box{
  background: #fff;
  padding: 0.2rem;
  position: relative;
  /* border-radius: 0.5rem; */
}
.qrcode-logo{
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 100;
  width: 1rem;
  padding: 0.1rem;
    transform: translate(-50%, -50%);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    
}
.qrcode-logo img{
  vertical-align: middle;
  height: auto;
  width: 1rem;
  /* margin-top: -0.2rem; */

}

.share-image-container .footer .qr-code-area canvas {
  width: 6rem;
  height: 6rem;
}

/* 保存按钮 */
.save-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  /* 绿色渐变#00B6B6 */
  background: linear-gradient(135deg, #3ac4c4, #00B6B6);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.save-btn:hover {
  background: linear-gradient(135deg, #3ac4c4, #00B6B6);
}