/* 统一分享面板 */
.share-panel {
  padding: 4px 4px 8px;
}

.share-panel-title {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.share-panel-url-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.share-panel-url {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 12px;
  color: #333;
  background: #f9fafb;
}

.share-panel-copy-btn {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  background: #0066cc;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.share-panel-copy-btn:hover {
  background: #0052a3;
}

.share-panel-qr-wrap {
  text-align: center;
}

.share-panel-qr {
  display: inline-block;
  padding: 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  line-height: 0;
}

.share-panel-qr img,
.share-panel-qr canvas {
  display: block;
}

.share-panel-qr-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: #888;
}

.share-panel-hint {
  margin: 12px 0 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #996600;
  background: #fffbeb;
  border-radius: 6px;
}

.share-panel-qr-fallback {
  margin: 0;
  padding: 24px 12px;
  font-size: 12px;
  color: #999;
}

.share-panel-social {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.share-panel-social-label {
  margin: 0 0 10px;
  font-size: 12px;
  color: #999;
}

.share-panel-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.share-panel-social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.share-panel-social-btn:hover {
  background: #f5f5f5;
}

.share-panel-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.share-panel-social-weibo {
  background: #e6162d;
}

.share-panel-social-qq {
  background: #12b7f5;
}

.share-panel-social-qzone {
  background: #ffc028;
  color: #333;
}

.share-panel-social-name {
  font-size: 11px;
  color: #666;
}

/* 后台顶栏分享 */
.admin-topbar-share {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #f5f7fa;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.admin-topbar-share:hover {
  color: #0066cc;
  border-color: #0066cc;
  background: #fff;
}

.admin-topbar-share .layui-icon {
  font-size: 16px;
}

/* 后台 embed 页右下角分享（已隐藏，顶栏保留分享入口） */
.admin-share-fab {
  display: none !important;
}

.admin-share-fab:hover {
  background: #0052a3;
}

.admin-share-fab .layui-icon {
  font-size: 20px;
}

@media (max-width: 768px) {
  .admin-share-fab {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }

  .share-panel-url-row {
    flex-direction: column;
  }

  .share-panel-copy-btn {
    width: 100%;
  }
}
