/* 正德知识产权官网 · 分享组件 v1 (2026-11-27)
   全站共用，依赖 style.css 的 :root 变量；每条规则都带色值兜底。
   纯 CSS，不加载任何外部字体、图标或脚本。 */

.share-box {
  border-top: 1px solid var(--line-soft, #eef2f7);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 26px 0 30px;
}
.share-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 20px; flex-wrap: wrap;
}
.share-lead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.share-lead b {
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  color: var(--ink, #0f172a);
}
.share-lead span { font-size: 13px; color: var(--ink-3, #64748b); }
.share-acts { display: flex; gap: 8px; flex-wrap: wrap; }

.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px; border: 1px solid var(--line, #e2e8f0); border-radius: 999px;
  background: #fff; color: var(--ink, #0f172a);
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.25;
  text-decoration: none; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, color .15s ease, background .15s ease;
}
.share-btn:hover {
  border-color: #93b8f5; color: var(--brand-2, #2563eb);
  box-shadow: 0 6px 16px -10px rgba(37, 99, 235, .55);
}
.share-btn.primary {
  background: var(--brand-2, #2563eb); border-color: var(--brand-2, #2563eb); color: #fff;
}
.share-btn.primary:hover { background: var(--brand, #1e40af); color: #fff; }
.share-btn.copied { background: #eaf5ed; border-color: #b9dcc3; color: #1b7a3a; }
.share-btn:focus-visible { outline: 2px solid var(--brand-2, #2563eb); outline-offset: 2px; }

.share-panel {
  display: flex; align-items: center; gap: 20px;
  margin-top: 18px; padding: 18px;
  border: 1px solid var(--line, #e2e8f0); border-radius: 14px;
  background: #fff; box-shadow: 0 16px 40px -26px rgba(23, 37, 84, .45);
}
.share-panel[hidden] { display: none; }
.share-qr {
  flex: 0 0 148px; width: 148px; height: 148px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft, #eef2f7); border-radius: 10px;
  background: #fff; overflow: hidden;
}
.share-qr svg { display: block; width: 100%; height: 100%; }
.share-qr span { padding: 8px; text-align: center; }
.share-panel-txt { min-width: 0; }
.share-panel-txt b {
  display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px;
  color: var(--ink, #0f172a);
}
.share-panel-txt p {
  margin: 0 0 8px; font-size: 13px; line-height: 1.6;
  color: var(--ink-3, #64748b);
}
.share-panel-txt .share-wx-tip { color: #1b7a3a; font-weight: 650; }
.share-wx-tip[hidden] { display: none; }
.share-close {
  margin-top: 2px; padding: 6px 12px;
  border: 1px solid var(--line, #e2e8f0); border-radius: 8px;
  background: #f8fafc; color: var(--ink-3, #64748b);
  font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.share-close:hover { color: var(--brand-2, #2563eb); border-color: #93b8f5; }

@media (max-width: 760px) {
  .share-box { padding: 22px 0 26px; }
  .share-inner { flex-direction: column; align-items: flex-start; }
  .share-acts { width: 100%; }
  .share-btn { flex: 1 1 44%; }
  .share-panel { flex-direction: column; align-items: flex-start; gap: 14px; }
  .share-qr { flex: 0 0 auto; }
}
@media (max-width: 480px) {
  .share-btn { flex: 1 1 100%; }
  .share-qr { width: 132px; height: 132px; }
}
