/* 文章工具栏模块样式 */
:root {
  --wechat-muted: #6b7280;
  --wechat-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.toolbar {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 16px;
  z-index: 100;
}

.tool-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--wechat-shadow);
  padding: 14px 10px;
  display: grid;
  gap: 8px;
  justify-items: center;
  backdrop-filter: blur(12px);
}

.wechat-trigger {
  width: 64px;
  height: 64px;
  border: 0;
  padding: 0;
  border-radius: 20px;
  cursor: pointer;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wechat-trigger:hover,
.wechat-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(34, 197, 94, 0.34);
  outline: none;
}

.wechat-trigger img {
  width: 34px;
  height: 34px;
  display: block;
}

.tool-label {
  font-size: 13px;
  color: var(--wechat-muted);
  text-align: center;
  line-height: 1.6;
}

.tool-tip {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.5;
}

/* 二维码弹窗样式 */
.qr-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.56);
  z-index: 1000;
}

.qr-modal.is-open {
  display: flex;
}

.qr-dialog {
  width: min(92vw, 320px);
  background: #ffffff;
  border-radius: 6px;
  padding: 14px 14px 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  text-align: left;
  position: relative;
}

.qr-close {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.qr-dialog h3 {
  margin: 0 24px 14px 0;
  font-size: 14px;
  font-weight: 400;
  color: #111827;
}

.qr-image-wrap {
  margin: 0 auto 18px;
  width: 232px;
  height: 232px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.qr-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  background: #ffffff;
}

.qr-tip {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.9;
}

@media (max-width: 1360px) {
  .toolbar {
    left: 10px;
    bottom: 20px;
    top: auto;
    transform: none;
    z-index: 10000;
  }
  
  .tool-card {
    padding: 10px;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .tool-label, .tool-tip {
    display: none;
  }
}


