PRINTFILM: AI short-video marketing and AI short-drama creation platform
fix: 社区加群改为微信号 gitpp88,去掉二维码与后台上传
yibc67cef30056
diff --git a/README.md b/README.mdindex b67c440..766613c 100644--- a/README.md+++ b/README.md@@ -7,11 +7,7 @@## 社区-扫码加入 **printfilm 用户群**(学习短剧 / 部署答疑 / 模板交流):--<p align="center">- <img src="docs/images/wechat-group-qr.png" alt="PRINTFILM 微信用户群二维码" width="260" />-</p>+添加微信号 **`gitpp88`**(备注「入群」)加入 printfilm 用户群:学习短剧 / 部署答疑 / 模板交流。diff --git a/admin/src/api/client.ts b/admin/src/api/client.tsindex 584a5fe..ce7696c 100644--- a/admin/src/api/client.ts+++ b/admin/src/api/client.ts@@ -654,7 +654,6 @@ export type AdminModelSettings = {public_base_url: string;ffmpeg_path: string;ffprobe_path: string;- wechat_group_qr_url: string;source: string;updated_at?: string | null;readiness: ModelCapabilityReadiness[];diff --git a/admin/src/components/settings/SiteSettingsPanel.tsx b/admin/src/components/settings/SiteSettingsPanel.tsxindex aff666f..6abb782 100644--- a/admin/src/components/settings/SiteSettingsPanel.tsx+++ b/admin/src/components/settings/SiteSettingsPanel.tsx@@ -1,5 +1,3 @@-import { useRef, useState } from "react";-import { toast } from "sonner";import {LabeledControl,SettingsLoading,@@ -7,25 +5,11 @@ import {SettingsStatusBar,SettingsTabShell,} from "@/components/settings/SettingsPanel";-import { Button } from "@/components/ui/button";-import { api, type AdminModelSettings } from "@/api/client";import { useAdminModelSettings } from "@/hooks/useAdminModelSettings";-/** 把相对 /static 路径拼成可预览地址(走当前管理端同源代理) */-function previewSrc(url: string | undefined | null): string {- const raw = (url || "").trim();- if (!raw) return "";- if (raw.startsWith("http://") || raw.startsWith("https://") || raw.startsWith("data:")) {- return raw;- }- return raw;-}--/** 站点 URL、媒体工具与微信群二维码 */+/** 站点公网地址与媒体工具路径 */export function SiteSettingsPanel() {- const { form, loading, saving, patchField, save, load } = useAdminModelSettings();- const fileRef = useRef<HTMLInputElement>(null);- const [uploading, setUploading] = useState(false);+ const { form, loading, saving, patchField, save } = useAdminModelSettings();async function handleSave() {if (!form) return;@@ -34,33 +18,11 @@ export function SiteSettingsPanel() {public_base_url: form.public_base_url,ffmpeg_path: form.ffmpeg_path,ffprobe_path: form.ffprobe_path,- wechat_group_qr_url: form.wechat_group_qr_url,},"站点配置已保存",);}- // 上传并立刻写入 settings.wechat_group_qr_url- async function onPickFile(file: File | null) {- if (!file) return;- setUploading(true);- try {- const body = new FormData();- body.append("file", file);- await api<{ wechat_group_qr_url: string; settings: AdminModelSettings }>(- "/api/admin/settings/site/wechat-group-qr",- { method: "POST", body },- );- await load();- toast.success("微信群二维码已更新");- } catch (err) {- toast.error(err instanceof Error ? err.message : "上传失败");- } finally {- setUploading(false);- if (fileRef.current) fileRef.current.value = "";- }- }-if (loading || !form) {return <SettingsLoading />;}@@ -68,12 +30,9 @@ export function SiteSettingsPanel() {const hasPublic = Boolean(form.public_base_url?.trim());const hasFfmpeg = Boolean(form.ffmpeg_path?.trim());const hasFfprobe = Boolean(form.ffprobe_path?.trim());- const qrUrl = (form.wechat_group_qr_url || "").trim();- const hasQr = Boolean(qrUrl);- const qrPreview = previewSrc(qrUrl);return (- <SettingsTabShell onSave={() => void handleSave()} saving={saving || uploading}>+ <SettingsTabShell onSave={() => void handleSave()} saving={saving}><SettingsStatusBartitle="站点工具状态"items={[@@ -98,13 +57,6 @@ export function SiteSettingsPanel() {readyText: form.ffprobe_path || "已配置",pendingText: "使用默认 PATH",},- {- id: "wechat",- label: "微信群二维码",- ready: hasQr,- readyText: "已配置",- pendingText: "未上传",- },]}/>@@ -156,74 +108,6 @@ export function SiteSettingsPanel() {</LabeledControl></div></SettingsPanel>-- <SettingsPanel- className="settings-panel--compact settings-field-span-full"- title="3. 微信用户群二维码"- description="官网右下角「加群」浮钮;微信邀请码约 7 天有效,过期后在此更换"- >- <div className="settings-field-grid">- <LabeledControl- label="当前二维码"- hint="支持 JPG / PNG / WebP,不超过 5MB"- className="settings-field-span-full"- >- <div className="flex flex-col gap-3 sm:flex-row sm:items-start">- <div className="flex h-[180px] w-[180px] shrink-0 items-center justify-center overflow-hidden rounded-xl border border-border bg-muted/40">- {qrPreview ? (- <img- src={qrPreview}- alt="微信群二维码预览"- className="max-h-full max-w-full object-contain"- />- ) : (- <span className="px-3 text-center text-xs text-muted-foreground">暂无图片</span>- )}- </div>- <div className="flex min-w-0 flex-1 flex-col gap-2">- <input- ref={fileRef}- type="file"- accept="image/png,image/jpeg,image/webp,.png,.jpg,.jpeg,.webp"- className="hidden"- onChange={(e) => void onPickFile(e.target.files?.[0] ?? null)}- />- <div className="flex flex-wrap gap-2">- <Button- type="button"- size="sm"- disabled={uploading}- onClick={() => fileRef.current?.click()}- >- {uploading ? "上传中…" : "上传新二维码"}- </Button>- <Button- type="button"- size="sm"- variant="outline"- disabled={uploading || !hasQr}- onClick={() => patchField("wechat_group_qr_url", "")}- >- 清空地址- </Button>- </div>- <LabeledControl label="图片 URL(可手改)" className="settings-field-span-full">- <input- className="settings-input"- placeholder="/static/site/wechat_group_qr.png"- value={form.wechat_group_qr_url || ""}- onChange={(e) => patchField("wechat_group_qr_url", e.target.value)}- />- </LabeledControl>- <p className="settings-panel-footnote">- 上传会立即生效并写入配置;手改 URL 后需点右上角「保存」。前台通过{" "}- <code>/api/site-config</code> 拉取。- </p>- </div>- </div>- </LabeledControl>- </div>- </SettingsPanel></div></SettingsTabShell>);diff --git a/backend/app/api/admin/settings.py b/backend/app/api/admin/settings.pyindex cb392ae..7959a11 100644--- a/backend/app/api/admin/settings.py+++ b/backend/app/api/admin/settings.py@@ -1,9 +1,7 @@# Admin model / provider settings APIimport logging-import time-from pathlib import Path-from fastapi import APIRouter, Depends, File, HTTPException, UploadFile+from fastapi import APIRouter, Depends, HTTPExceptionfrom pydantic import BaseModel, Fieldfrom sqlalchemy.ext.asyncio import AsyncSession@@ -17,7 +15,6 @@ from app.schemas_settings import (AdminModelSettingsPatch,AdminModelSettingsSaveOut,)-from app.services import storagefrom app.services.model_settings import (get_admin_model_settings,get_admin_routing_settings,@@ -30,14 +27,6 @@ from app.services.upstream_model_catalog import list_upstream_modelsrouter = APIRouter()logger = logging.getLogger(__name__)-_SITE_QR_MAX_BYTES = 5 * 1024 * 1024-_SITE_QR_TYPES = {- "image/jpeg": ".jpg",- "image/jpg": ".jpg",- "image/png": ".png",- "image/webp": ".webp",-}-class AdminUpstreamModelsRequest(BaseModel):"""按渠道凭证拉取上游 /models 目录。"""@@ -155,60 +144,3 @@ async def admin_tokenfree_account_quota(except RuntimeError as exc:logger.warning("tokenfree quota query failed: %s", exc)raise HTTPException(status_code=502, detail="TokenFree 额度查询失败") from exc---class WechatGroupQrUploadOut(BaseModel):- """微信群二维码上传结果。"""-- ok: bool = True- wechat_group_qr_url: str- settings: AdminModelSettingsOut--[email protected]("/settings/site/wechat-group-qr", response_model=WechatGroupQrUploadOut)-async def admin_upload_wechat_group_qr(- file: UploadFile = File(...),- _admin: User = Depends(get_current_admin),- db: AsyncSession = Depends(get_db),-) -> WechatGroupQrUploadOut:- """上传并替换官网微信用户群二维码(落盘 /static/site,写入 settings)。"""- content_type = (file.content_type or "").lower()- ext = _SITE_QR_TYPES.get(content_type)- if not ext:- suffix = Path(file.filename or "").suffix.lower()- if suffix in {".jpg", ".jpeg", ".png", ".webp"}:- ext = ".jpg" if suffix == ".jpeg" else suffix- else:- raise HTTPException(status_code=400, detail="仅支持 JPG / PNG / WebP")-- raw = await file.read()- if not raw:- raise HTTPException(status_code=400, detail="空文件")- if len(raw) > _SITE_QR_MAX_BYTES:- raise HTTPException(status_code=400, detail="图片不能超过 5MB")-- site_dir = storage.STATIC_ROOT / "site"- site_dir.mkdir(parents=True, exist_ok=True)- # 固定文件名覆盖,避免旧码残留;query 防 CDN 缓存- dest = site_dir / f"wechat_group_qr{ext}"- for stale in site_dir.glob("wechat_group_qr.*"):- if stale.resolve() != dest.resolve():- try:- stale.unlink()- except OSError:- logger.warning("failed to remove old wechat qr %s", stale)- dest.write_bytes(raw)- published = storage.publish_local(dest, sync=True)- # 相对路径加版本;完整 OSS URL 也追加,便于刷缓存- sep = "&" if "?" in published else "?"- url = f"{published}{sep}v={int(time.time())}"-- try:- settings_out, _applied = await patch_admin_model_settings(- db,- AdminModelSettingsPatch(wechat_group_qr_url=url),- )- except ValueError as exc:- raise HTTPException(status_code=400, detail=str(exc)) from exc-- return WechatGroupQrUploadOut(wechat_group_qr_url=url, settings=settings_out)diff --git a/backend/app/api/site.py b/backend/app/api/site.pydeleted file mode 100644index 028caab..0000000--- a/backend/app/api/site.py+++ /dev/null@@ -1,23 +0,0 @@-"""Public site-facing config (no auth)."""--from __future__ import annotations--from fastapi import APIRouter-from pydantic import BaseModel, Field--from app.config import get_settings--router = APIRouter(tags=["site"])---class SiteConfigOut(BaseModel):- """Safe public marketing / contact knobs for the user frontend."""-- wechat_group_qr_url: str = Field(default="", description="微信用户群二维码 URL")--[email protected]("/site-config", response_model=SiteConfigOut)-async def get_site_config() -> SiteConfigOut:- """返回前台可公开读取的站点配置(微信群二维码等)。"""- url = str(get_settings().wechat_group_qr_url or "").strip()- return SiteConfigOut(wechat_group_qr_url=url)diff --git a/backend/app/config.py b/backend/app/config.pyindex d307c28..4ebcb0b 100644--- a/backend/app/config.py+++ b/backend/app/config.py@@ -157,8 +157,6 @@ class Settings(BaseSettings):public_base_url: str = "http://127.0.0.1:8000"ffmpeg_path: str = "ffmpeg"ffprobe_path: str = "ffprobe"- # 官网右下角微信用户群二维码(相对 /static 或完整 URL;后台可更换)- wechat_group_qr_url: str = "/static/site/wechat_group_qr.png"tos_endpoint: str = ""tos_bucket: str = ""diff --git a/backend/app/main.py b/backend/app/main.pyindex a0e5072..9cd3497 100644--- a/backend/app/main.py+++ b/backend/app/main.py@@ -9,7 +9,6 @@ from sqlalchemy import select, textfrom app.api import auth, billing, projects, tasks, templates, toolsfrom app.api import api_keys as user_api_keys-from app.api import site as site_apifrom app.api.v1 import router as v1_routerfrom app.api.admin import router as admin_routerfrom app.api.drama import router as drama_router@@ -93,7 +92,6 @@ app.include_router(user_api_keys.router, prefix="/api")app.include_router(v1_router, prefix="/api")app.include_router(drama_router, prefix="/api")app.include_router(admin_router, prefix="/api")-app.include_router(site_api.router, prefix="/api")@app.on_event("startup")diff --git a/backend/app/schemas_settings.py b/backend/app/schemas_settings.pyindex 9f85a7c..a231017 100644--- a/backend/app/schemas_settings.py+++ b/backend/app/schemas_settings.py@@ -137,7 +137,6 @@ class AdminModelSettingsOut(BaseModel):public_base_url: str = ""ffmpeg_path: str = "ffmpeg"ffprobe_path: str = "ffprobe"- wechat_group_qr_url: str = ""source: str = "env"updated_at: datetime | None = None@@ -255,7 +254,6 @@ class AdminModelSettingsPatch(BaseModel):public_base_url: str | None = Noneffmpeg_path: str | None = Noneffprobe_path: str | None = None- wechat_group_qr_url: str | None = Noneclass AdminModelSettingsSaveOut(BaseModel):@@ -366,7 +364,6 @@ def model_config_field_names() -> tuple[str, ...]:"public_base_url","ffmpeg_path","ffprobe_path",- "wechat_group_qr_url",)diff --git a/backend/static/site/wechat_group_qr.png b/backend/static/site/wechat_group_qr.pngdeleted file mode 100644index 7df87c9..0000000Binary files a/backend/static/site/wechat_group_qr.png and /dev/null differdiff --git a/backend/tests/test_site_wechat_qr.py b/backend/tests/test_site_wechat_qr.pydeleted file mode 100644index 502a3af..0000000--- a/backend/tests/test_site_wechat_qr.py+++ /dev/null@@ -1,91 +0,0 @@-"""Public site-config + admin WeChat QR upload."""--from __future__ import annotations--from unittest.mock import AsyncMock, patch--import pytest-from fastapi import FastAPI-from fastapi.testclient import TestClient--from app.api import site as site_api-from app.api.admin import settings as admin_settings-from app.config import Settings, get_settings-from app.database import get_db-from app.deps import get_current_admin-from app.schemas_settings import AdminModelSettingsOut---def _minimal_png() -> bytes:- # 1x1 PNG- return (- b"\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x01\x00\x00\x00\x01"- b"\x08\x02\x00\x00\x00\x90wS\xde\x00\x00\x00\x0cIDATx\x9cc\xf8\x0f\x00"- b"\x00\x01\x01\x00\x05\x18\xd8N\x00\x00\x00\x00IEND\xaeB`\x82"- )---def site_app(tmp_path, monkeypatch):- """挂载公开 site-config + 管理端上传(鉴权与 DB 打桩)。"""- from app.services import storage-- monkeypatch.setattr(storage, "STATIC_ROOT", tmp_path)- (tmp_path / "site").mkdir(parents=True, exist_ok=True)-- def fake_settings() -> Settings:- return Settings(wechat_group_qr_url="/static/site/wechat_group_qr.png")-- get_settings.cache_clear()- monkeypatch.setattr("app.api.site.get_settings", fake_settings)-- app = FastAPI()- app.include_router(site_api.router, prefix="/api")- app.include_router(admin_settings.router, prefix="/api/admin")-- async def _admin():- return type("U", (), {"id": 1, "role": "admin"})()-- async def _db():- yield AsyncMock()-- app.dependency_overrides[get_current_admin] = _admin- app.dependency_overrides[get_db] = _db-- yield app- get_settings.cache_clear()- app.dependency_overrides.clear()---def test_site_config_returns_qr_url(site_app):- client = TestClient(site_app)- res = client.get("/api/site-config")- assert res.status_code == 200- assert res.json()["wechat_group_qr_url"] == "/static/site/wechat_group_qr.png"---def test_admin_upload_wechat_qr(site_app, tmp_path):- fake_out = AdminModelSettingsOut(- wechat_group_qr_url="/static/site/wechat_group_qr.png?v=1",- source="db",- )-- async def _patch(_db, body):- assert body.wechat_group_qr_url- assert "wechat_group_qr" in body.wechat_group_qr_url- return fake_out, ["wechat_group_qr_url"]-- with patch("app.api.admin.settings.patch_admin_model_settings", new=_patch), patch(- "app.api.admin.settings.storage.publish_local",- return_value="/static/site/wechat_group_qr.png",- ):- client = TestClient(site_app)- res = client.post(- "/api/admin/settings/site/wechat-group-qr",- files={"file": ("qr.png", _minimal_png(), "image/png")},- )- assert res.status_code == 200, res.text- data = res.json()- assert data["ok"] is True- assert data["wechat_group_qr_url"].startswith("/static/site/wechat_group_qr.png")- assert (tmp_path / "site" / "wechat_group_qr.png").is_file()diff --git a/docs/images/wechat-group-qr.png b/docs/images/wechat-group-qr.pngdeleted file mode 100644index 7df87c9..0000000Binary files a/docs/images/wechat-group-qr.png and /dev/null differdiff --git a/frontend/public/wechat-group-qr.png b/frontend/public/wechat-group-qr.pngdeleted file mode 100644index 7df87c9..0000000Binary files a/frontend/public/wechat-group-qr.png and /dev/null differdiff --git a/frontend/src/components/layout/WeChatGroupFab.tsx b/frontend/src/components/layout/WeChatGroupFab.tsxindex 2b48a7a..399654d 100644--- a/frontend/src/components/layout/WeChatGroupFab.tsx+++ b/frontend/src/components/layout/WeChatGroupFab.tsx@@ -1,41 +1,10 @@-/** 全站右下角:微信用户群二维码入口(点击展开;URL 由后台站点配置下发) */+/** 全站右下角:加微信号入群(展示微信号,可一键复制) */import { useEffect, useRef, useState } from 'react'-import { X } from 'lucide-react'+import { Check, Copy, X } from 'lucide-react'import { useI18n } from '../../i18n'-const FALLBACK_QR = '/wechat-group-qr.png'--/** API 根路径(空字符串 = 同源) */-function apiBase(): string {- const raw = import.meta.env.VITE_API_BASE- if (raw === undefined || raw === null) {- if (typeof window !== 'undefined' && window.location?.hostname) {- const { protocol, hostname } = window.location- return `${protocol}//${hostname}:8000`- }- return 'http://127.0.0.1:8000'- }- return String(raw).replace(/\/$/, '')-}--/** 把 /static 相对路径拼到 API 基址;绝对 URL 原样返回 */-function resolveMediaUrl(url: string): string {- const trimmed = url.trim()- if (!trimmed) return ''- if (- trimmed.startsWith('http://') ||- trimmed.startsWith('https://') ||- trimmed.startsWith('data:') ||- trimmed.startsWith('blob:')- ) {- return trimmed- }- if (trimmed.startsWith('/')) {- const base = apiBase()- return base ? `${base}${trimmed}` : trimmed- }- return trimmed-}+/** 社区加群微信号(不加图片二维码) */+const WECHAT_ID = 'gitpp88'/** 简易微信气泡图标 */function WeChatIcon({ size = 22 }: { size?: number }) {@@ -49,31 +18,15 @@ function WeChatIcon({ size = 22 }: { size?: number }) {export default function WeChatGroupFab() {const { t } = useI18n()+ /*+ * open 浮层是否展开+ * copied 复制成功短暂态+ */const [open, setOpen] = useState(false)- const [qrSrc, setQrSrc] = useState(FALLBACK_QR)+ const [copied, setCopied] = useState(false)const rootRef = useRef<HTMLDivElement>(null)- // 从公开站点配置拉取后台可热更的二维码- useEffect(() => {- let cancelled = false- async function load() {- try {- const res = await fetch(`${apiBase()}/api/site-config`)- if (!res.ok) return- const data = (await res.json()) as { wechat_group_qr_url?: string }- const resolved = resolveMediaUrl(data.wechat_group_qr_url || '')- if (!cancelled && resolved) setQrSrc(resolved)- } catch {- /* 保持本地兜底图 */- }- }- void load()- return () => {- cancelled = true- }- }, [])-- // 点击浮层外关闭+ // 点击浮层外 / Esc 关闭useEffect(() => {if (!open) returnfunction onPointerDown(e: PointerEvent) {@@ -92,6 +45,17 @@ export default function WeChatGroupFab() {}}, [open])+ // 复制微信号到剪贴板+ async function copyWechatId() {+ try {+ await navigator.clipboard.writeText(WECHAT_ID)+ setCopied(true)+ window.setTimeout(() => setCopied(false), 1800)+ } catch {+ /* 忽略剪贴板失败,用户仍可手动选中复制 */+ }+ }+return (<div className="pf-wx-fab-root" ref={rootRef}>{open ? (@@ -110,8 +74,18 @@ export default function WeChatGroupFab() {<X size={16} strokeWidth={2} aria-hidden /></button></header>- <div className="pf-wx-fab-qr">- <img src={qrSrc} alt={t('wechatGroup.qrAlt')} width={200} height={200} />+ <div className="pf-wx-fab-id">+ <span className="pf-wx-fab-id-label">{t('wechatGroup.idLabel')}</span>+ <code className="pf-wx-fab-id-value">{WECHAT_ID}</code>+ <button+ type="button"+ className="pf-wx-fab-copy"+ onClick={() => void copyWechatId()}+ aria-label={copied ? t('wechatGroup.copied') : t('wechatGroup.copy')}+ >+ {copied ? <Check size={14} strokeWidth={2.2} aria-hidden /> : <Copy size={14} strokeWidth={2} aria-hidden />}+ <span>{copied ? t('wechatGroup.copied') : t('wechatGroup.copy')}</span>+ </button></div><p className="pf-wx-fab-tip">{t('wechatGroup.tip')}</p></div>diff --git a/frontend/src/i18n/locales/en/shell.ts b/frontend/src/i18n/locales/en/shell.tsindex be7a3d8..2c87c2e 100644--- a/frontend/src/i18n/locales/en/shell.ts+++ b/frontend/src/i18n/locales/en/shell.ts@@ -77,8 +77,10 @@ export const enShell = {open: 'Join WeChat user group',title: 'printfilm user group',lead: 'Short drama tips · deploy help · templates',- qrAlt: 'WeChat group QR code',- tip: 'Scan with WeChat. Invite codes expire in about 7 days — open an Issue if it fails.',+ idLabel: 'WeChat ID',+ copy: 'Copy',+ copied: 'Copied',+ tip: 'Add WeChat ID gitpp88 with note “join group” and we will invite you.',},auth: {loginTitle: 'Back to the studio',diff --git a/frontend/src/i18n/locales/zh/shell.ts b/frontend/src/i18n/locales/zh/shell.tsindex 06d0ce1..9f44b00 100644--- a/frontend/src/i18n/locales/zh/shell.ts+++ b/frontend/src/i18n/locales/zh/shell.ts@@ -76,8 +76,10 @@ export const zhShell = {open: '加入微信用户群',title: 'printfilm 用户群',lead: '学习短剧 · 部署答疑 · 模板交流',- qrAlt: '微信用户群二维码',- tip: '微信扫码入群。邀请码约 7 天有效,失效请联系客服或提 Issue。',+ idLabel: '微信号',+ copy: '复制',+ copied: '已复制',+ tip: '添加微信号 gitpp88,备注「入群」即可拉你进用户群。',},auth: {loginTitle: '回到工作台',diff --git a/frontend/src/styles/printfilm.css b/frontend/src/styles/printfilm.cssindex 1f1d5a9..5055f56 100644--- a/frontend/src/styles/printfilm.css+++ b/frontend/src/styles/printfilm.css@@ -7177,20 +7177,47 @@ button.pf-shot-editable:disabled {color: var(--pf-ink);}-.pf-wx-fab-qr {- display: grid;- place-items: center;- padding: 0.35rem;+.pf-wx-fab-id {+ display: flex;+ flex-wrap: wrap;+ align-items: center;+ gap: 0.45rem 0.65rem;+ padding: 0.75rem 0.85rem;border-radius: 12px;background: #fafafa;border: 1px solid var(--pf-line);}-.pf-wx-fab-qr img {- display: block;- width: 200px;- height: auto;- max-width: 100%;+.pf-wx-fab-id-label {+ font-size: 0.75rem;+ color: var(--pf-muted);+}++.pf-wx-fab-id-value {+ flex: 1 1 auto;+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;+ font-size: 1.05rem;+ font-weight: 650;+ letter-spacing: 0.02em;+ color: var(--pf-ink);+}++.pf-wx-fab-copy {+ display: inline-flex;+ align-items: center;+ gap: 0.3rem;+ margin-left: auto;+ padding: 0.35rem 0.65rem;+ border: 1px solid var(--pf-line);+ border-radius: 8px;+ background: #fff;+ color: var(--pf-ink);+ font-size: 0.78rem;+ cursor: pointer;+}++.pf-wx-fab-copy:hover {+ background: var(--pf-bg);}.pf-wx-fab-tip {