mirror of
https://github.com/SMNETSTUDIO/WeChat-AI.git
synced 2026-08-13 14:43:42 +08:00
988 lines
37 KiB
HTML
988 lines
37 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, maximum-scale=5" />
|
|
<meta name="theme-color" content="#f5f5f7" id="themeColor" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
<meta name="format-detection" content="telephone=no" />
|
|
<meta name="description" content="WeChat-AI:自托管微信角色扮演对话服务。LINUX DO 登录、扫码绑定机器人、人设广场、表情包、长期记忆与私聊分配。" />
|
|
<!-- Open Graph / Twitter:绝对 URL 由服务端按 PUBLIC_BASE_URL 注入 -->
|
|
<meta property="og:title" content="WeChat-AI — 微信角色扮演机器人" />
|
|
<meta property="og:description" content="自托管微信角色扮演平台:扫码绑定机器人、人设广场、表情包回图、长期记忆与私聊分配。LINUX DO 登录,一站管理智能体。" />
|
|
<meta property="og:image" content="/og.jpg" />
|
|
<meta property="og:image:type" content="image/jpeg" />
|
|
<meta property="og:image:width" content="1280" />
|
|
<meta property="og:image:height" content="720" />
|
|
<meta property="og:image:alt" content="WeChat-AI" />
|
|
<meta property="og:url" content="/" />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:site_name" content="WeChat-AI" />
|
|
<meta property="og:locale" content="zh_CN" />
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:title" content="WeChat-AI — 微信角色扮演机器人" />
|
|
<meta name="twitter:description" content="扫码绑定机器人、人设广场、长期记忆与私聊分配。多用户角色扮演,一站管理智能体。" />
|
|
<meta name="twitter:image" content="/og.jpg" />
|
|
<link rel="canonical" href="/" />
|
|
<!-- Robot favicon (inline SVG) -->
|
|
<link
|
|
rel="icon"
|
|
type="image/svg+xml"
|
|
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%235e5ce6'/%3E%3Cstop offset='100%25' stop-color='%23bf5af2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='14' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='22' width='36' height='28' rx='8'/%3E%3Ccircle cx='26' cy='36' r='2.4' fill='%23fff' stroke='none'/%3E%3Ccircle cx='38' cy='36' r='2.4' fill='%23fff' stroke='none'/%3E%3Cpath d='M32 14v8M24 50v4M40 50v4M14 34h-4M54 34h-4'/%3E%3C/g%3E%3C/svg%3E"
|
|
/>
|
|
<!-- Icon font: render-blocking cross-origin CSS that then chain-loads a woff2.
|
|
preconnect collapses the DNS+TLS round trips; media=print + onload takes it
|
|
off the critical path so first paint never waits on jsdelivr. -->
|
|
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin />
|
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net" />
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css"
|
|
media="print" onload="this.media='all';this.onload=null" />
|
|
<noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css" /></noscript>
|
|
<title>WeChat-AI — 微信角色扮演机器人</title>
|
|
<script>
|
|
(function () {
|
|
try {
|
|
var k = "wa_theme";
|
|
var t = localStorage.getItem(k);
|
|
if (t === "system" || (t !== "light" && t !== "dark")) {
|
|
if (localStorage.getItem(k) === "system") {
|
|
document.documentElement.setAttribute("data-theme-pref", "system");
|
|
}
|
|
t = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
}
|
|
document.documentElement.setAttribute("data-theme", t);
|
|
} catch (e) {
|
|
document.documentElement.setAttribute("data-theme", "light");
|
|
}
|
|
})();
|
|
</script>
|
|
<style>
|
|
:root {
|
|
--bg: #f5f5f7;
|
|
--bg-elevated: rgba(255, 255, 255, 0.72);
|
|
--surface: #ffffff;
|
|
--surface-2: #f5f5f7;
|
|
--text: #1d1d1f;
|
|
--text-secondary: #6e6e73;
|
|
--text-tertiary: #86868b;
|
|
--separator: rgba(0, 0, 0, 0.08);
|
|
--blue: #0071e3;
|
|
--blue-hover: #0077ed;
|
|
--blue-soft: rgba(0, 113, 227, 0.1);
|
|
--green: #34c759;
|
|
--green-soft: rgba(52, 199, 89, 0.12);
|
|
--chip: rgba(0, 0, 0, 0.05);
|
|
--glow-a: rgba(0, 113, 227, 0.1);
|
|
--glow-b: rgba(175, 82, 222, 0.08);
|
|
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
|
|
--shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
|
|
--radius: 18px;
|
|
--radius-sm: 12px;
|
|
--radius-lg: 22px;
|
|
--radius-pill: 980px;
|
|
--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
|
|
"Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
|
|
sans-serif;
|
|
--ease: cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
--theme-icon-sun: none;
|
|
--theme-icon-moon: inline;
|
|
--safe-t: env(safe-area-inset-top, 0px);
|
|
--safe-b: env(safe-area-inset-bottom, 0px);
|
|
--safe-l: env(safe-area-inset-left, 0px);
|
|
--safe-r: env(safe-area-inset-right, 0px);
|
|
--nav-h: 56px;
|
|
/* Fluid page gutter + content width: continuous phone → 4K, no jumps */
|
|
--gutter: clamp(16px, 4vw, 28px);
|
|
--content-max: 1080px;
|
|
/* ---- Liquid glass ----
|
|
Layered translucency: tinted base + blurred backdrop + specular rim
|
|
(bright top edge, dim bottom edge) that reads as glass thickness
|
|
rather than a flat frosted panel. */
|
|
--glass-bg: rgba(255, 255, 255, 0.6);
|
|
--glass-bg-strong: rgba(255, 255, 255, 0.76);
|
|
--glass-blur: 24px;
|
|
--glass-hi: rgba(255, 255, 255, 0.95);
|
|
--glass-lo: rgba(255, 255, 255, 0.3);
|
|
--glass-ring: rgba(0, 0, 0, 0.07);
|
|
--glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
|
|
--sk-sheen: rgba(255, 255, 255, 0.6);
|
|
/* ---- 动态玻璃:滚动深度驱动 ---- */
|
|
--glass-rgb: 255, 255, 255;
|
|
--glass-a-min: 0.3;
|
|
--glass-a-max: 0.76;
|
|
--glass-blur-min: 4px;
|
|
--glass-blur-max: 24px;
|
|
--glass-progress: 0;
|
|
--glass-a: calc(var(--glass-a-min) + (var(--glass-a-max) - var(--glass-a-min)) * var(--glass-progress));
|
|
--glass-blur-live: calc(var(--glass-blur-min) + (var(--glass-blur-max) - var(--glass-blur-min)) * var(--glass-progress));
|
|
}
|
|
@media (min-width: 1600px) {
|
|
:root { --content-max: 1200px; }
|
|
}
|
|
html[data-theme="dark"] {
|
|
--bg: #000000;
|
|
--bg-elevated: rgba(28, 28, 30, 0.72);
|
|
--surface: #1c1c1e;
|
|
--surface-2: #2c2c2e;
|
|
--text: #f5f5f7;
|
|
--text-secondary: #a1a1a6;
|
|
--text-tertiary: #6e6e73;
|
|
--separator: rgba(255, 255, 255, 0.1);
|
|
--blue: #0a84ff;
|
|
--blue-hover: #409cff;
|
|
--blue-soft: rgba(10, 132, 255, 0.18);
|
|
--green: #30d158;
|
|
--green-soft: rgba(48, 209, 88, 0.16);
|
|
--chip: rgba(255, 255, 255, 0.08);
|
|
--glow-a: rgba(10, 132, 255, 0.14);
|
|
--glow-b: rgba(191, 90, 242, 0.12);
|
|
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
|
|
--shadow-md: 0 4px 24px rgba(0, 0, 0, 0.45);
|
|
--shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
|
|
--theme-icon-sun: inline;
|
|
--theme-icon-moon: none;
|
|
--glass-bg: rgba(30, 30, 32, 0.58);
|
|
--glass-bg-strong: rgba(32, 32, 34, 0.78);
|
|
--glass-hi: rgba(255, 255, 255, 0.16);
|
|
--glass-lo: rgba(255, 255, 255, 0.04);
|
|
--glass-ring: rgba(255, 255, 255, 0.1);
|
|
--glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
|
|
--sk-sheen: rgba(255, 255, 255, 0.08);
|
|
--glass-rgb: 30, 30, 32;
|
|
--glass-a-min: 0.32;
|
|
--glass-a-max: 0.78;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
html {
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
color-scheme: light;
|
|
scroll-behavior: smooth;
|
|
-webkit-text-size-adjust: 100%;
|
|
text-size-adjust: 100%;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--chip) transparent;
|
|
}
|
|
*::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
*::-webkit-scrollbar-track { background: transparent; }
|
|
*::-webkit-scrollbar-thumb {
|
|
background: var(--chip);
|
|
border-radius: 99px;
|
|
border: 2px solid transparent;
|
|
background-clip: padding-box;
|
|
}
|
|
html[data-theme="dark"] { color-scheme: dark; }
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
font-family: var(--font);
|
|
color: var(--text);
|
|
background:
|
|
radial-gradient(1200px 600px at 10% -10%, var(--glow-a), transparent 50%),
|
|
radial-gradient(900px 500px at 100% 0%, var(--glow-b), transparent 45%),
|
|
var(--bg);
|
|
line-height: 1.47;
|
|
overflow-x: hidden;
|
|
}
|
|
a { color: var(--blue); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
/* ---------- 边缘折射(位移滤镜)---------- */
|
|
.wa-lens-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
|
|
/* 折射只在 Chromium 桌面开启,见下方网关脚本。降低模糊让折射看得见——
|
|
已经糊成一团的内容没法再折射,两者此消彼长。 */
|
|
html.wa-lens .glass,
|
|
html.wa-lens .glass-strong {
|
|
backdrop-filter: blur(14px) saturate(180%) url(#waGlassLens);
|
|
-webkit-backdrop-filter: blur(14px) saturate(180%);
|
|
}
|
|
/* ---------- Liquid glass material ---------- */
|
|
.glass {
|
|
position: relative;
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(var(--glass-blur)) saturate(180%);
|
|
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
|
|
box-shadow:
|
|
inset 0 1px 0 0 var(--glass-hi),
|
|
inset 0 -1px 0 0 var(--glass-lo),
|
|
var(--glass-shadow);
|
|
}
|
|
.glass-strong { background: var(--glass-bg-strong); }
|
|
/* 吸顶层专用:底下有内容滚过时才逐渐加深,滚动到顶部时近乎透明。
|
|
与 iOS 导航栏一致;.glass 保持静态,供不随滚动变化的浮层使用。 */
|
|
.glass-dynamic {
|
|
background: rgba(var(--glass-rgb), var(--glass-a));
|
|
backdrop-filter: blur(var(--glass-blur-live)) saturate(180%);
|
|
-webkit-backdrop-filter: blur(var(--glass-blur-live)) saturate(180%);
|
|
box-shadow:
|
|
inset 0 1px 0 0 rgba(255, 255, 255, calc(0.95 * var(--glass-progress))),
|
|
0 1px 0 0 rgba(0, 0, 0, calc(0.08 * var(--glass-progress)));
|
|
}
|
|
html[data-theme="dark"] .glass-dynamic {
|
|
box-shadow:
|
|
inset 0 1px 0 0 rgba(255, 255, 255, calc(0.16 * var(--glass-progress))),
|
|
0 1px 0 0 rgba(255, 255, 255, calc(0.1 * var(--glass-progress)));
|
|
}
|
|
/* Specular rim traced around the shape, masked to a 1px ring so the fill
|
|
stays clear. Gives the edge-lit look that separates liquid glass from
|
|
plain frosted blur. */
|
|
.glass-rim::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: inherit;
|
|
padding: 1px;
|
|
background: linear-gradient(145deg, var(--glass-hi) 0%, transparent 38%, transparent 62%, var(--glass-lo) 100%);
|
|
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
-webkit-mask-composite: xor;
|
|
mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
mask-composite: exclude;
|
|
pointer-events: none;
|
|
z-index: 3;
|
|
}
|
|
.glass-rim > * { position: relative; z-index: 2; }
|
|
|
|
/* ---------- Staggered entrance (gated on scroll reveal, see script) ---------- */
|
|
@keyframes riseIn {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
/* fill-mode "backwards" (not "both"): it holds the pre-delay state so the
|
|
stagger still reads, but releases the settled state once the animation
|
|
ends. With "both" the frozen "transform: none" out-ranked
|
|
.feature-card:hover, and cancelling the animation on hover made every
|
|
card replay riseIn on hover-out. */
|
|
.stagger.in-view > * { animation: riseIn 0.42s var(--ease) backwards; }
|
|
.stagger:not(.in-view) > * { opacity: 0; }
|
|
html.no-js .stagger > *, .stagger.in-view > * { opacity: 1; }
|
|
.stagger.in-view > *:nth-child(1) { animation-delay: 0.02s; }
|
|
.stagger.in-view > *:nth-child(2) { animation-delay: 0.06s; }
|
|
.stagger.in-view > *:nth-child(3) { animation-delay: 0.1s; }
|
|
.stagger.in-view > *:nth-child(4) { animation-delay: 0.14s; }
|
|
.stagger.in-view > *:nth-child(5) { animation-delay: 0.18s; }
|
|
.stagger.in-view > *:nth-child(6) { animation-delay: 0.22s; }
|
|
.stagger.in-view > *:nth-child(7) { animation-delay: 0.26s; }
|
|
.stagger.in-view > *:nth-child(8) { animation-delay: 0.3s; }
|
|
.stagger.in-view > *:nth-child(n + 9) { animation-delay: 0.34s; }
|
|
|
|
/* ---------- Button busy spinner ---------- */
|
|
.btn.is-busy {
|
|
pointer-events: none;
|
|
position: relative;
|
|
color: transparent !important;
|
|
}
|
|
.btn.is-busy > * { visibility: hidden; }
|
|
.btn.is-busy::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 15px;
|
|
height: 15px;
|
|
margin: -8px 0 0 -8px;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--spin-track, rgba(0, 0, 0, 0.2));
|
|
border-top-color: var(--spin-head, var(--text));
|
|
animation: spin 0.7s linear infinite;
|
|
}
|
|
.btn-primary.is-busy, .btn-danger.is-busy { --spin-track: rgba(255, 255, 255, 0.35); --spin-head: #fff; }
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
button, .btn, .theme-toggle {
|
|
-webkit-tap-highlight-color: transparent;
|
|
touch-action: manipulation;
|
|
}
|
|
.btn:focus-visible,
|
|
.theme-toggle:focus-visible,
|
|
a:focus-visible {
|
|
outline: 2px solid var(--blue);
|
|
outline-offset: 2px;
|
|
box-shadow: 0 0 0 4px var(--blue-soft);
|
|
}
|
|
.nav {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
min-height: var(--nav-h);
|
|
padding: calc(10px + var(--safe-t)) max(16px, var(--safe-r)) 10px max(16px, var(--safe-l));
|
|
/* 动态玻璃:内容真的从下面滚过,所以底色、模糊与边缘阴影
|
|
全部交给 .glass-dynamic 按滚动进度连续给出,这里只留布局。 */
|
|
}
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
letter-spacing: -0.01em;
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
}
|
|
.brand:hover { text-decoration: none; }
|
|
.brand-mark {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 8px;
|
|
flex-shrink: 0;
|
|
display: inline-grid;
|
|
place-items: center;
|
|
background: linear-gradient(145deg, #5e5ce6 0%, #bf5af2 100%);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.28),
|
|
0 2px 8px rgba(94, 92, 230, 0.28);
|
|
color: #fff;
|
|
font-size: 14px;
|
|
line-height: 1;
|
|
}
|
|
.brand-mark .bi {
|
|
font-size: 0.95em;
|
|
line-height: 1;
|
|
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
|
|
}
|
|
.nav-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
.theme-toggle {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
background: var(--chip);
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 16px;
|
|
}
|
|
.theme-toggle:hover { background: var(--blue-soft); }
|
|
.theme-toggle .sun { display: var(--theme-icon-sun); }
|
|
.theme-toggle .moon { display: var(--theme-icon-moon); }
|
|
|
|
.btn {
|
|
appearance: none;
|
|
border: none;
|
|
font-family: inherit;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
letter-spacing: -0.01em;
|
|
border-radius: var(--radius-pill);
|
|
padding: 9px 18px;
|
|
min-height: 40px;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
text-decoration: none;
|
|
transition: transform 0.15s var(--ease), background 0.15s;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.btn:hover { text-decoration: none; }
|
|
.btn:active { transform: scale(0.98); }
|
|
.btn-primary {
|
|
background: var(--blue);
|
|
color: #fff;
|
|
box-shadow: 0 1px 2px rgba(0, 113, 227, 0.25);
|
|
}
|
|
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
|
|
.btn-secondary {
|
|
background: var(--chip);
|
|
color: var(--text);
|
|
}
|
|
.btn-secondary:hover { filter: brightness(0.96); color: var(--text); }
|
|
html[data-theme="dark"] .btn-secondary:hover { filter: brightness(1.15); }
|
|
.btn-lg { padding: 14px 28px; font-size: 16px; min-height: 48px; }
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: var(--blue);
|
|
padding: 9px 12px;
|
|
}
|
|
|
|
.wrap {
|
|
width: min(var(--content-max), 100%);
|
|
margin: 0 auto;
|
|
padding: 0 max(var(--gutter), var(--safe-r)) 0 max(var(--gutter), var(--safe-l));
|
|
}
|
|
|
|
/* Hero */
|
|
.hero {
|
|
display: grid;
|
|
grid-template-columns: 1.1fr 0.9fr;
|
|
gap: 40px;
|
|
align-items: center;
|
|
padding: 56px 0 48px;
|
|
}
|
|
.hero-copy h1 {
|
|
margin: 0 0 14px;
|
|
font-size: clamp(29px, 5.4vw, 48px);
|
|
font-weight: 700;
|
|
letter-spacing: -0.035em;
|
|
line-height: 1.08;
|
|
}
|
|
.hero-copy .lead {
|
|
margin: 0 0 28px;
|
|
font-size: clamp(15.5px, 2vw, 18px);
|
|
color: var(--text-secondary);
|
|
line-height: 1.55;
|
|
max-width: 36em;
|
|
}
|
|
.hero-cta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
.hero-meta {
|
|
margin-top: 18px;
|
|
font-size: 13px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
.pill-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 18px;
|
|
}
|
|
.pill {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
padding: 5px 12px;
|
|
border-radius: var(--radius-pill);
|
|
background: var(--blue-soft);
|
|
color: var(--blue);
|
|
}
|
|
.hero-visual {
|
|
position: relative;
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
border: 1px solid var(--separator);
|
|
box-shadow: var(--shadow-lg);
|
|
background: var(--surface);
|
|
aspect-ratio: 16 / 9;
|
|
}
|
|
.hero-visual img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
/* The screenshot fills the frame, so lift the specular rim above it */
|
|
|
|
/* Sections */
|
|
section.block {
|
|
padding: 28px 0 12px;
|
|
}
|
|
.section-head {
|
|
margin-bottom: 22px;
|
|
}
|
|
.section-head h2 {
|
|
margin: 0 0 8px;
|
|
font-size: clamp(22px, 3.4vw, 28px);
|
|
font-weight: 700;
|
|
letter-spacing: -0.03em;
|
|
line-height: 1.2;
|
|
}
|
|
.section-head p {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
font-size: clamp(14px, 1.6vw, 16px);
|
|
}
|
|
|
|
/* auto-fit: 3 → 2 → 1 columns with no breakpoint steps */
|
|
.feature-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
|
|
gap: 16px;
|
|
}
|
|
.feature-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--separator);
|
|
border-radius: var(--radius);
|
|
padding: 22px 20px;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: transform 0.18s var(--ease), box-shadow 0.18s;
|
|
}
|
|
.feature-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
.feature-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 12px;
|
|
display: grid;
|
|
place-items: center;
|
|
background: var(--blue-soft);
|
|
color: var(--blue);
|
|
font-size: 18px;
|
|
margin-bottom: 14px;
|
|
}
|
|
.feature-card h3 {
|
|
margin: 0 0 8px;
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
.feature-card p {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.steps {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
|
|
gap: 14px;
|
|
counter-reset: step;
|
|
}
|
|
.step {
|
|
background: var(--surface);
|
|
border: 1px solid var(--separator);
|
|
border-radius: var(--radius);
|
|
padding: 20px 18px;
|
|
position: relative;
|
|
}
|
|
.step::before {
|
|
counter-increment: step;
|
|
content: counter(step);
|
|
display: grid;
|
|
place-items: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
background: var(--blue);
|
|
color: #fff;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin-bottom: 12px;
|
|
}
|
|
.step h3 {
|
|
margin: 0 0 6px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
}
|
|
.step p {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.cta-banner {
|
|
margin: 40px 0 24px;
|
|
padding: 36px 32px;
|
|
border-radius: 24px;
|
|
background:
|
|
linear-gradient(135deg, rgba(0, 113, 227, 0.12), rgba(94, 92, 230, 0.1)),
|
|
var(--surface);
|
|
border: 1px solid var(--separator);
|
|
text-align: center;
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
html[data-theme="dark"] .cta-banner {
|
|
background:
|
|
linear-gradient(135deg, rgba(10, 132, 255, 0.16), rgba(94, 92, 230, 0.12)),
|
|
var(--surface);
|
|
}
|
|
.cta-banner h2 {
|
|
margin: 0 0 10px;
|
|
font-size: clamp(21px, 3.2vw, 26px);
|
|
letter-spacing: -0.03em;
|
|
line-height: 1.2;
|
|
}
|
|
.cta-banner p {
|
|
margin: 0 0 22px;
|
|
color: var(--text-secondary);
|
|
font-size: 15px;
|
|
}
|
|
.cta-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.note {
|
|
margin: 8px 0 40px;
|
|
padding: 16px 18px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--separator);
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.55;
|
|
}
|
|
.note strong { color: var(--text); font-weight: 600; }
|
|
|
|
footer {
|
|
border-top: 1px solid var(--separator);
|
|
padding: 28px 0 calc(36px + var(--safe-b));
|
|
color: var(--text-tertiary);
|
|
font-size: 13px;
|
|
}
|
|
footer .foot-inner {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px 24px;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
footer a { color: var(--text-secondary); }
|
|
footer a:hover { color: var(--blue); }
|
|
|
|
@media (max-width: 900px) {
|
|
.hero {
|
|
grid-template-columns: 1fr;
|
|
gap: 28px;
|
|
padding: 36px 0 32px;
|
|
}
|
|
.hero-visual { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
|
|
}
|
|
@media (max-width: 560px) {
|
|
:root { --nav-h: 52px; }
|
|
.cta-banner { padding: 28px 20px; }
|
|
.cta-actions { flex-direction: column; align-items: stretch; }
|
|
.cta-actions .btn { width: 100%; min-height: 48px; }
|
|
.hero-cta { flex-direction: column; align-items: stretch; }
|
|
.hero-cta .btn { width: 100%; min-height: 48px; }
|
|
.nav {
|
|
padding-left: max(12px, var(--safe-l));
|
|
padding-right: max(12px, var(--safe-r));
|
|
gap: 8px;
|
|
}
|
|
.nav-actions { gap: 6px; }
|
|
.nav-actions .btn-ghost .btn-label { display: none; }
|
|
.nav-actions .btn-ghost {
|
|
padding: 0;
|
|
min-width: 36px;
|
|
min-height: 36px;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
}
|
|
.brand span {
|
|
max-width: 42vw;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.theme-toggle { width: 36px; height: 36px; flex-shrink: 0; }
|
|
}
|
|
@media (max-width: 380px) {
|
|
.brand span { max-width: 96px; }
|
|
.nav-actions .btn-primary { padding: 8px 12px; font-size: 13px; min-height: 36px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
html { scroll-behavior: auto; }
|
|
}
|
|
@media (prefers-contrast: more) {
|
|
:root {
|
|
--separator: rgba(0, 0, 0, 0.24);
|
|
--text-secondary: #515154;
|
|
--text-tertiary: #6e6e73;
|
|
}
|
|
html[data-theme="dark"] {
|
|
--separator: rgba(255, 255, 255, 0.3);
|
|
--text-secondary: #c7c7cc;
|
|
--text-tertiary: #98989d;
|
|
}
|
|
}
|
|
@media (prefers-reduced-transparency: reduce) {
|
|
:root { --bg-elevated: #f5f5f7; }
|
|
html[data-theme="dark"] { --bg-elevated: #1c1c1e; }
|
|
/* Every glass surface falls back to an opaque fill, no backdrop blur */
|
|
.nav,
|
|
.glass,
|
|
.glass-strong,
|
|
.glass-dynamic,
|
|
html.wa-lens .glass,
|
|
html.wa-lens .glass-strong {
|
|
background: var(--bg-elevated);
|
|
backdrop-filter: none !important;
|
|
-webkit-backdrop-filter: none !important;
|
|
}
|
|
/* 动态玻璃降级为实心:底色不再随滚动变化,只留一条分隔线 */
|
|
.glass-dynamic,
|
|
html[data-theme="dark"] .glass-dynamic {
|
|
box-shadow: 0 1px 0 0 var(--separator);
|
|
}
|
|
.glass-rim::before { display: none; }
|
|
}
|
|
</style>
|
|
<noscript>
|
|
<style>
|
|
/* No script means the reveal observer never adds .in-view, which would
|
|
leave the feature grid and steps stuck at opacity 0. Ungate them. */
|
|
.stagger > * { opacity: 1 !important; animation: none !important; }
|
|
/* 没有脚本就没有滚动进度:--glass-progress 会永远停在 0,吸顶栏只剩
|
|
30% 底色 + 4px 模糊、且上下边缘阴影的 alpha 也是 0,正文会直接透过
|
|
导航栏。钉到 1,等同于改造前 .nav 的 --glass-bg-strong + 24px 模糊。 */
|
|
:root { --glass-progress: 1; }
|
|
</style>
|
|
</noscript>
|
|
</head>
|
|
<body>
|
|
<svg class="wa-lens-defs" width="0" height="0" aria-hidden="true" focusable="false"><defs>
|
|
<!-- 边缘折射位移图:R 通道控制横向取样、G 通道控制纵向。中心为中性值 128 故不位移,
|
|
四边渐变让取样点向内偏移,形成玻璃厚度的透镜感。
|
|
color-interpolation-filters="sRGB" 必须保留:默认的 linearRGB 会把中性点 128
|
|
换算成 ~55,导致整个背景被均匀推歪。 -->
|
|
<filter id="waGlassLens" x="0%" y="0%" width="100%" height="100%" color-interpolation-filters="sRGB">
|
|
<feImage href="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' preserveAspectRatio='none'><defs><linearGradient id='x' x1='0' x2='1'><stop offset='0' stop-color='rgb(255,0,0)'/><stop offset='0.25' stop-color='rgb(128,0,0)'/><stop offset='0.75' stop-color='rgb(128,0,0)'/><stop offset='1' stop-color='rgb(0,0,0)'/></linearGradient><linearGradient id='y' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='rgb(0,255,0)'/><stop offset='0.3' stop-color='rgb(0,128,0)'/><stop offset='0.7' stop-color='rgb(0,128,0)'/><stop offset='1' stop-color='rgb(0,0,0)'/></linearGradient></defs><rect width='100' height='100' fill='url(%23x)'/><rect width='100' height='100' fill='url(%23y)' style='mix-blend-mode:plus-lighter'/></svg>" preserveAspectRatio="none" result="wa-map"/>
|
|
<feDisplacementMap in="SourceGraphic" in2="wa-map" scale="14" xChannelSelector="R" yChannelSelector="G"/>
|
|
</filter>
|
|
</defs></svg>
|
|
<header class="nav glass-dynamic">
|
|
<a class="brand" href="/">
|
|
<span class="brand-mark" aria-hidden="true"><i class="bi bi-robot"></i></span>
|
|
<span>WeChat-AI</span>
|
|
</a>
|
|
<div class="nav-actions">
|
|
<button class="theme-toggle" id="themeToggle" type="button" title="切换主题" aria-label="切换主题">
|
|
<i class="bi bi-sun-fill sun" aria-hidden="true"></i>
|
|
<i class="bi bi-moon-fill moon" aria-hidden="true"></i>
|
|
</button>
|
|
<a class="btn btn-ghost" href="/docs"><span class="btn-label">使用文档</span></a>
|
|
<a class="btn btn-ghost" href="/app"><span class="btn-label">用户中心</span></a>
|
|
<a class="btn btn-primary" href="/app">开始使用</a>
|
|
</div>
|
|
</header>
|
|
|
|
<main>
|
|
<div class="wrap">
|
|
<section class="hero">
|
|
<div class="hero-copy">
|
|
<div class="pill-row">
|
|
<span class="pill">自托管</span>
|
|
<span class="pill">LINUX DO 登录</span>
|
|
<span class="pill">iLink 直连</span>
|
|
</div>
|
|
<h1>用微信,跑起你的角色扮演智能体</h1>
|
|
<p class="lead">
|
|
WeChat-AI 把扫码绑定、人设广场、表情包回图、长期记忆与私聊分配放在一个面板里。
|
|
登录后几分钟即可添加机器人,和微信好友开始对话。
|
|
</p>
|
|
<div class="hero-cta">
|
|
<a class="btn btn-primary btn-lg" href="/app">
|
|
<i class="bi bi-box-arrow-in-right" aria-hidden="true"></i>
|
|
进入用户中心
|
|
</a>
|
|
<a class="btn btn-secondary btn-lg" href="/docs">
|
|
<i class="bi bi-book" aria-hidden="true"></i>
|
|
使用文档
|
|
</a>
|
|
</div>
|
|
<p class="hero-meta">支持 LINUX DO OAuth · 多机器人 · 人设 / 表情广场</p>
|
|
</div>
|
|
<div class="hero-visual glass-rim">
|
|
<img src="/og.jpg" width="1280" height="720" alt="WeChat-AI 产品预览" />
|
|
</div>
|
|
</section>
|
|
|
|
<section class="block" id="features">
|
|
<div class="section-head">
|
|
<h2>核心能力</h2>
|
|
<p>面向多用户的微信角色扮演服务,从绑定到运营一条链路打通。</p>
|
|
</div>
|
|
<div class="feature-grid stagger">
|
|
<article class="feature-card">
|
|
<div class="feature-icon"><i class="bi bi-qr-code-scan" aria-hidden="true"></i></div>
|
|
<h3>扫码绑定机器人</h3>
|
|
<p>微信扫码添加自己的机器人;token 失效可「重新扫码」,好友、人设与记忆会保留。</p>
|
|
</article>
|
|
<article class="feature-card">
|
|
<div class="feature-icon"><i class="bi bi-person-badge" aria-hidden="true"></i></div>
|
|
<h3>人设广场</h3>
|
|
<p>浏览、投稿与收藏公开人设;为自己的机器人分配角色,随时切换性格与提示词。</p>
|
|
</article>
|
|
<article class="feature-card">
|
|
<div class="feature-icon"><i class="bi bi-emoji-smile" aria-hidden="true"></i></div>
|
|
<h3>表情包广场</h3>
|
|
<p>投稿 / 收藏表情;模型可按 slug 引用,机器人通过 iLink 回发图片表情。</p>
|
|
</article>
|
|
<article class="feature-card">
|
|
<div class="feature-icon"><i class="bi bi-chat-heart" aria-hidden="true"></i></div>
|
|
<h3>私聊批准与分配</h3>
|
|
<p>默认白名单模式:批准微信用户后才可对话,并为每个 peer 指定人设。</p>
|
|
</article>
|
|
<article class="feature-card">
|
|
<div class="feature-icon"><i class="bi bi-brain" aria-hidden="true"></i></div>
|
|
<h3>长期记忆</h3>
|
|
<p>跨会话记住关键事实与偏好,让角色扮演更连贯;可按人设分组查看与清理。</p>
|
|
</article>
|
|
<article class="feature-card">
|
|
<div class="feature-icon"><i class="bi bi-lightning-charge" aria-hidden="true"></i></div>
|
|
<h3>主动联系</h3>
|
|
<p>空闲一段时间后,智能体可按配置主动找对方聊天,可设安静时段与每日上限。</p>
|
|
</article>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="block" id="how">
|
|
<div class="section-head">
|
|
<h2>如何开始</h2>
|
|
<p>四步完成从登录到和微信好友对话。</p>
|
|
</div>
|
|
<div class="steps stagger">
|
|
<div class="step">
|
|
<h3>LINUX DO 登录</h3>
|
|
<p>在用户中心使用 LINUX DO 账号登录,创建个人空间。</p>
|
|
</div>
|
|
<div class="step">
|
|
<h3>扫码加机器人</h3>
|
|
<p>在「机器人」页扫码绑定微信 ClawBot / iLink 账号。</p>
|
|
</div>
|
|
<div class="step">
|
|
<h3>选人设与表情</h3>
|
|
<p>从广场添加人设与表情到自己的库,再分配给机器人。</p>
|
|
</div>
|
|
<div class="step">
|
|
<h3>批准好友对话</h3>
|
|
<p>批准私聊用户后即可收消息、LLM 回复文字与表情。</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<div class="cta-banner">
|
|
<h2>准备好了?</h2>
|
|
<p>登录用户中心,添加第一台机器人,开始角色扮演。</p>
|
|
<div class="cta-actions">
|
|
<a class="btn btn-primary btn-lg" href="/app">
|
|
<i class="bi bi-box-arrow-in-right" aria-hidden="true"></i>
|
|
进入用户中心
|
|
</a>
|
|
<a class="btn btn-secondary btn-lg" href="/docs">使用文档</a>
|
|
<a class="btn btn-secondary btn-lg" href="/admin">管理后台</a>
|
|
</div>
|
|
</div>
|
|
|
|
<p class="note">
|
|
<strong>合规提示:</strong>使用腾讯微信 ClawBot / iLink 能力须遵守相关条款;个人 Bot 存在限流与处置风险。
|
|
默认仅白名单用户可对话。角色扮演内容会经 LLM API 出机,请自行评估隐私与内容安全。
|
|
</p>
|
|
</div>
|
|
</main>
|
|
|
|
<footer>
|
|
<div class="wrap foot-inner">
|
|
<span>WeChat-AI · 自托管微信角色扮演</span>
|
|
<span>
|
|
<a href="/docs">使用文档</a>
|
|
·
|
|
<a href="/app">用户中心</a>
|
|
·
|
|
<a href="/admin">管理后台</a>
|
|
·
|
|
<a href="/health">健康检查</a>
|
|
</span>
|
|
</div>
|
|
</footer>
|
|
|
|
<script>
|
|
(function () {
|
|
var root = document.documentElement;
|
|
var btn = document.getElementById("themeToggle");
|
|
var meta = document.getElementById("themeColor");
|
|
function applyThemeColor() {
|
|
if (!meta) return;
|
|
meta.content = root.getAttribute("data-theme") === "dark" ? "#000000" : "#f5f5f7";
|
|
}
|
|
applyThemeColor();
|
|
if (btn) {
|
|
btn.addEventListener("click", function () {
|
|
var next = root.getAttribute("data-theme") === "dark" ? "light" : "dark";
|
|
root.setAttribute("data-theme", next);
|
|
try { localStorage.setItem("wa_theme", next); } catch (e) {}
|
|
root.removeAttribute("data-theme-pref");
|
|
applyThemeColor();
|
|
});
|
|
}
|
|
// 旧的 .scrolled 开关已移除:吸顶栏改由 --glass-progress 连续驱动,
|
|
// 不再需要这个二值状态类。
|
|
})();
|
|
</script>
|
|
<!-- Kept in a separate script element so a throw above can never abort the
|
|
reveal below and leave .stagger content permanently at opacity 0. -->
|
|
<script>
|
|
// Reveal grids as they scroll into view (respects reduced-motion)
|
|
(function () {
|
|
// Array.prototype.slice.call, not NodeList#forEach: the browsers that
|
|
// take the fallback branch below (no IntersectionObserver) are the same
|
|
// ones that lack NodeList.prototype.forEach, and a throw there would
|
|
// hide the feature grid and steps for good.
|
|
var targets = Array.prototype.slice.call(document.querySelectorAll(".stagger"));
|
|
function revealAll() {
|
|
for (var i = 0; i < targets.length; i++) targets[i].classList.add("in-view");
|
|
}
|
|
try {
|
|
var reduce = false;
|
|
try { reduce = matchMedia("(prefers-reduced-motion: reduce)").matches; } catch (e) {}
|
|
if (reduce || !("IntersectionObserver" in window)) {
|
|
revealAll();
|
|
return;
|
|
}
|
|
var io = new IntersectionObserver(function (entries) {
|
|
entries.forEach(function (en) {
|
|
if (en.isIntersecting) { en.target.classList.add("in-view"); io.unobserve(en.target); }
|
|
});
|
|
}, { rootMargin: "0px 0px -10% 0px", threshold: 0.05 });
|
|
for (var j = 0; j < targets.length; j++) io.observe(targets[j]);
|
|
} catch (e) {
|
|
revealAll();
|
|
}
|
|
})();
|
|
|
|
/* 只有 Chromium 会真正渲染 backdrop-filter 里的 SVG 滤镜引用;Safari / Firefox
|
|
语法能解析但渲染为空,会把整条 backdrop-filter 作废——必须运行时判定而不是 @supports。
|
|
navigator.userAgentData 目前仅 Chromium 实现,用作引擎判定。
|
|
再要求 pointer:fine:位移滤镜在滚动时每帧重算,中低端手机上代价太高。 */
|
|
(function () {
|
|
try {
|
|
var fine = matchMedia("(pointer: fine)").matches;
|
|
var chromium = !!navigator.userAgentData;
|
|
if (chromium && fine && CSS.supports("backdrop-filter", "url(#x)")) {
|
|
document.documentElement.classList.add("wa-lens");
|
|
}
|
|
} catch (e) {}
|
|
})();
|
|
|
|
/* 把滚动深度写成 0..1 的进度值,驱动吸顶层的模糊与底色。rAF 节流,passive 监听。 */
|
|
(function () {
|
|
var root = document.documentElement;
|
|
var ticking = false;
|
|
function apply() {
|
|
ticking = false;
|
|
var y = window.scrollY || root.scrollTop || 0;
|
|
root.style.setProperty("--glass-progress", Math.min(1, y / 80).toFixed(3));
|
|
}
|
|
addEventListener(
|
|
"scroll",
|
|
function () {
|
|
if (!ticking) {
|
|
ticking = true;
|
|
requestAnimationFrame(apply);
|
|
}
|
|
},
|
|
{ passive: true },
|
|
);
|
|
apply();
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|