diff --git a/README.md b/README.md
index f78b6b4..06c2ea0 100644
--- a/README.md
+++ b/README.md
@@ -4,76 +4,114 @@
>
> | 域名 | 是什么 | 不是什么 |
> |------|--------|----------|
-> | [admin.hackrobot.cn](https://admin.hackrobot.cn/) | **VIP 运营台**(服务 [vip.hackrobot.cn](https://vip.hackrobot.cn/):线索 / 拉黑存档 / LIVE 在线与弹窗通知) | 不是 Nomadro 微信/抖音后台 |
-> | [admin.nomadro.cn](https://admin.nomadro.cn/) | Nomadro **中国站**管理 SPA(pps/admin:微信 / 抖音) | 不是 VIP 运营台;禁止用它的包覆盖 hackrobot |
-> | [admin.nomadro.com](https://admin.nomadro.com/) | Nomadro **国际站**管理 SPA(pps/com/admin,美国 VPS,无小程序) | 与上两者均独立 |
+> | [admin.hackrobot.cn](https://admin.hackrobot.cn/) | **VIP 运营台**(服务 [vip.hackrobot.cn](https://vip.hackrobot.cn/):线索 / 拉黑存档 / LIVE 在线与弹窗通知)· 腾讯云 `129.204.21.129` | 不是 Nomadro 微信/抖音后台 |
+> | [admin.nomadro.cn](https://admin.nomadro.cn/) | Nomadro **中国站**管理 SPA(`apps/admin`:微信 / 抖音 / 小红书线)· 中国机 `82.157.112.245` | 不是 VIP 运营台;禁止用它的包覆盖 hackrobot |
+> | [admin.nomadro.com](https://admin.nomadro.com/) | Nomadro **`.com` Web 运营台**(`apps/com/admin`,美国 VPS)· **登录后强制选轨:中文 `/cn`(Hub)↔ 国际 `/intl`(Social)** | 与上两者均独立;无小程序 |
>
-> 反代、发版、鉴权、LIVE 注入、文档里写「管理后台」时必须带全称域名。规则见 \.cursor/rules/admin-hosts-never-confuse.mdc\。
+> 反代、发版、鉴权、LIVE 注入、文档里写「管理后台」时必须带全称域名。规则见 `.cursor/rules/admin-hosts-never-confuse.mdc`。
-2026-11-22:微信小册**提审态默认免费**,且与正式付费数据隔离 — `platforms.weapp.bookAudit.reviewMode` 开启时读独立 `audit*` 书(永远 `is_free` / 不可下单 / 不读正式 `unlocks`·`__vip__`);关闭后重新拉正式已购与 VIP,互不粘态。weapp App 挂远程配置 WS + 1s 轮询,后台开关约 1s 热更新。API 已推 `api.nomadro.cn`(`_push_audit_free_isolate.py`);体验包须本轮许可后再 `build:weapp` 上传。
+数字游民操作系统。**主开发与默认发版**:[nomadro.com](https://nomadro.com)(美国 VPS)。**中国独立站**:[nomadro.cn](https://nomadro.cn)(腾讯云 `82.157.112.245`,与 `.com` 中文轨 UI/UX/功能对齐后独立同步)。**VIP 隔离产品**:[vip.hackrobot.cn](https://vip.hackrobot.cn/) / [admin.hackrobot.cn](https://admin.hackrobot.cn/)(`129.204.21.129`)。
-2026-11-15:VIP 运营台实时能力 — dmin.hackrobot.cn LIVE 在线/弹窗通知(ops token ↔ /api/admin/live)、用户拉黑/曾拉黑 tag 与身份提示;**写死** dmin.hackrobot.cn 与 dmin.nomadro.cn 永远禁止混淆。资产 pps/admin/deploy/_vip_live_assets/ · API live_ops/ops_live。
+## 产品逻辑(SoT)
+### 双站与受众
+| 站 | 机 | 角色 |
+|---|---|---|
+| **nomadro.com** | 美国 VPS(如 `108.174.50.68`) | 主开发 / 默认部署;站内再分 **中文用户 / 国际用户** |
+| **nomadro.cn** | `82.157.112.245` | 中国独立生产;对齐 `.com` **中文**体验后再发;库/进程互不顶替 |
+| **vip.hackrobot.cn** | `129.204.21.129` | 独立 VIP 产品 + 运营台;禁止与 Nomadro admin 混发 |
-2026-11-10:`test14` 收尾(`8935269` / tag `2026-11-10`)后切换 `test15` 开发。基线含社区主题 1–4、后台体验主题切换、反馈图片灯箱、招聘首页底部化、本地皮肤调试小球。见 [test14 收尾](docs/test14-closeout.md) · [test15 开发](docs/test15-development.md)。
+`.com` 受众识别(`src/modules/audience`,**勿用 UI locale 反推**):
-2026-11-09:`test14` 门户、后端及 `.com` 管理后台已获许可并部署美国机。门户构建 `T9G517UdX-JND3zgNO3SD`;修复生产通知/预约代理自循环,公网接口恢复 200。门户/后台静态资源哈希、服务健康与后台鉴权验证通过,`.cn` 未同步。备份与验收见 [test14 上线记录](docs/test14-release.md)。
+1. 微信 / 企业微信内置 → **cn**
+2. `is-china-user` → **cn**
+3. 否则 → **intl**
-2026-11-09:`test13` 收尾后切换 `test14`,仅优化门户/后端/后台功能与构建,不调整前端视觉、不部署生产。修复首页重写循环、迁移 Next.js 16 `proxy`、统一本地 `.com` API/配置默认值、修复 Strict Mode 埋点监听及后台请求异常处理、为共享 PocketBase 凭证增加并发保护与一次 401 恢复,并修复 `.cn` 后台构建类型冲突。范围与验证见 [test14 开发记录](docs/test14-development.md)。
+| 受众 | 首页 | 社区产品 | 支付 | 关注 |
+|------|------|----------|------|------|
+| **intl**(默认) | `/` → **Social** `/social` | **Social** 英文游民社区 | Creem / NOWPayments | X |
+| **cn** | `/` → **Portal** `/portal` | **Hub** `/hub`(独立副本,**勿改 `/social` 业务**) | zpay · 微信内 xpay | 公众号二维码 |
-2026-11-08:远程工作门禁 + Work UX + 语言水合修复并部署 `.com` — `/social/work` 未加入社区不可用(登录/注册/补资料,与约会同门禁);Pads/Boards 增强(收藏复制删除、专注预览快捷键、看板筛选模板);`LocaleProvider`/`LanguageSwitcher` 首帧固定 zh 消除 hydration mismatch;反馈页英文短语补全。本地构建上传门户 `.next` + `admin.nomadro.com` + API/social;`.cn` 未同步。
+支付分流跟 `detectAudience().isChina`,**不要**跟 UI 语言。
-2026-11-07:Work Pads 深度定制(Etherpad 域模型 → Next 原生)— `/social/work/pads`:作者色条、行号、在场名单、侧栏聊天、时间轴浏览/还原、冲突提示、导入导出、Ctrl/⌘+S、删除;API `presence`/`chat`/`DELETE` + Welcome pad;work 服务补 PocketBase 鉴权。无 iframe。
+### 中文公开三大模块(其余后台可关)
-2026-11-07:Google 增长 OAuth UX 修复 — 未配 Client 时不再展示灰掉的「用 Google 账号授权」;改为红条提示 +「① 保存客户端」为主按钮,保存成功后再出现「② 用 Google 账号授权」。
+门户 `/portal` Hero 主入口(远程 `modules.*` 可动态隐藏):
-2026-11-07:用户分析补全环境特征并部署 `.com` — 埋点写入 IP(服务端)+ UA/浏览器/系统/设备/屏幕/时区/语言等;后台「访客明细 → 看明细」展示环境特征卡与时间线;API `track-analytics` / `track-visitor`。
+| # | 产品 | 路由 | 说明 |
+|---|------|------|------|
+| 1 | 出海导航 | `/nav` | `src/modules/nav` |
+| 2 | 数字游民小册 | `/book` | `src/modules/ebook` + 离线 `ebook-content` |
+| 3 | 游民社区 | **`/hub`** | 中文独立 Hub;**不是** `/social` |
-2026-11-07:产品分析 — 门户接入 [PostHog](https://github.com/PostHog/posthog)(`posthog-js`)与开源 [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs) visitorId;经 `PortalAnalytics` + `src/lib/analytics/*` 镜像现有 `/api/track`;远程配置 `flags.posthog*` / `fingerprintEnabled` + env `NEXT_PUBLIC_POSTHOG_KEY`。未配 key 时 PostHog 静默跳过。
+旅居社群 `/community`、VIP `/vip` 等仍保留,默认可由后台开关隐藏。
-2026-11-07:Google 增长自动化 — 后台「增长 → Google 增长」支持粘贴片段 / 同步 env / 一键写入;API `/api/admin/google/{status,parse,auto-link}`;`ca-pub` 自动补 `ads.txt` publisher;保留手填。门户 `GoogleTags` + `/sitemap.xml` `/robots.txt` `/ads.txt`。文字厅双语与咖啡聊离线兜底见 [`src/modules/social/README.md`](src/modules/social/README.md)。
+### Social vs Hub(强制分治)
-2026-11-05:UI/UX 与预约、通知功能升级已上线 .com,详见 [本轮发布与验收记录](docs/uiux-upgrade-2026-11-05.md),包括当前构建、备份位置及功能边界。
+| | **Social(国际)** | **Hub(中文)** |
+|---|---|---|
+| 门户 | `/social` · `src/modules/social` | `/hub` · `src/modules/hub`(从 social **只读 fork**,独立演进) |
+| API | `/api/social/v1` · `social_main :8020` | `/api/hub/v1` · `hub_main :8025` |
+| 数据 | `social_*` / `social.db` | `hub_*` / 独立库 |
+| 后台 | **admin.nomadro.com → `/intl/social/*`** | **admin.nomadro.com → `/cn/hub/*`** |
+| 铁律 | 国际默认产品;**勿把中文门户链到 `/social`** | 中文门户「游民社区」→ `/hub/home`;改 Hub **禁止**顺手改 Social |
-数字游民操作系统(主开发与默认发版:[nomadro.com](https://nomadro.com);中国独立站:[nomadro.cn](https://nomadro.cn))。
+### 多端复制链(中国)
-2026-11 平台升级已部署至 `.com` 门户、API 与 [Web 管理后台](https://admin.nomadro.com)。升级内容、验收范围、构建编号与回滚位置见 [升级记录](docs/platform-upgrade-2026-11.md)。`.cn` 未同步本次发版。
+```
+.com(Next · audience cn/intl)
+ └─ 中文轨测稳 → 同步 .cn(Next · 82,独立)
+ └─ Taro H5(apps/miniprogram/h5)对齐 .cn
+ └─ 编译 → 微信小程序 / 抖音小程序 / 小红书小工具
+管理:admin.nomadro.cn(微信 / 抖音);全端禁止 web-view 承载业务
+```
-**归档禁发:** 分支 `test12`(Codex 实验改动)已冻结,**永远不要上线**;见 [docs/archive/test12-NEVER-DEPLOY.md](docs/archive/test12-NEVER-DEPLOY.md) 与 tag `archive/test12-never-deploy`。
+本地:`pnpm dev`(门户)· `pnpm dev:h5`(Taro PC/H5)· `pnpm dev:weapp` / `dev:tt` · `pnpm build:xhs`。
+
+### 管理后台三套(永不互盖)
+
+| 后台 | 源码 | 职责 |
+|------|------|------|
+| [admin.nomadro.com](https://admin.nomadro.com/) | `apps/com/admin` | Web:登录 → 选 **中文轨(Hub)** 或 **国际轨(Social)**;侧栏互不混挂;误入对方路径自动改写 |
+| [admin.nomadro.cn](https://admin.nomadro.cn/) | `apps/admin` | 中国:`/wechat` · `/douyin` · 小程序运营 |
+| [admin.hackrobot.cn](https://admin.hackrobot.cn/) | `apps/hackrobot/*` | VIP LIVE / 拉黑 / 线索 |
+
+---
+
+**近期 changelog(摘要)**:**Hub 中文锁**(`hubCnOnly` 写死开)· 城市目录 / 地图 / 咖啡聊 **只留中国**(清迈/巴厘岛/里斯本/槟城移出默认种子)· Hub 独立上线 · admin.nomadro.com 真分轨(cn→`/cn/hub/*` · intl→`/intl/social/*`)· 微信小册提审免费隔离 · VIP LIVE · 细节见 [`docs/`](docs/) · [`src/modules/hub/README.md`](src/modules/hub/README.md)。**归档禁发:** `test12` — [docs/archive/test12-NEVER-DEPLOY.md](docs/archive/test12-NEVER-DEPLOY.md)。
## 架构
```
-src/ Next.js 门户 .cn(app 路由壳 + modules 业务)
-apps/miniprogram/ Taro:h5 SoT · weapp · tt · xhs(仅 .cn 备案线)
-apps/api/ 统一 FastAPI(ebook + community + pay + social + work + notify)
-apps/admin/ admin.nomadro.cn 管理 SPA(微信 / 抖音)
-apps/com/ .com 源码隔离树(美国 VPS · 无小程序)→ admin.nomadro.com
-apps/work/ 远程工作参考 upstream / overlay(Planka · Etherpad;产品 UI 不跑 iframe)
-apps/notify/ 通知参考 upstream(Novu;产品 UI 不跑 iframe)
-apps/coffee/ 咖啡聊预约参考 upstream(Cal.com;产品 UI 不跑 iframe)
+src/ Next.js 门户(app 路由壳 + modules 业务;.com 主 / .cn 同步)
+apps/miniprogram/ Taro:h5 SoT · weapp · tt · xhs(中国备案线)
+apps/api/ 统一 FastAPI(ebook + community + pay + social + hub + work + notify + coffee)
+apps/admin/ admin.nomadro.cn(微信 / 抖音)
+apps/com/ .com 隔离树(美国 VPS · 无小程序)→ admin.nomadro.com
+apps/hackrobot/ VIP 隔离树 → vip.hackrobot.cn / admin.hackrobot.cn(129)
+apps/work|notify|coffee/ 开源域模型对照(产品 UI 禁 iframe)
packages/ @nomadro/pay · pb · sdk
-data/ 远程配置等运行时数据(含 social.db · work/notify/coffee.sqlite3)
-scripts/ 本地开发 / 清理(dev-api · clean-artifacts)
+data/ remote-config · social/hub/work/notify/coffee 运行时库
+scripts/ 本地开发 / 清理 / .com 本地构建部署
```
| 产品 | 门户路由 | 源码 |
|------|----------|------|
-| 导航 | `/nav` | `src/modules/nav` · 远程 `navContent`(后台 `/wechat/nav` 可 CRUD) |
-| 小册 | `/book` | `src/modules/ebook` + `src/modules/ebook-content` |
-| 旅居社群 | `/community` | `src/modules/community`(Lounge / Ergo / MiroTalk;**勿改名**) |
-| 游民社区 | `/social` | `src/modules/social` · API `/api/social/v1` · SQLite · Centrifugo 实时 · 视觉默认 T1 |
-| **远程工作** | `/social/work` | `src/modules/work` · FastAPI `work_svc` `/api/work/v1`(看板 + 文档) |
-| **通知** | `/notifications` · `/social/notify` | `src/modules/notify` · FastAPI `notify_svc` `/api/notify/v1`(收件箱 + 工作流) |
-| **咖啡聊预约** | `/social/coffeechat` | `src/modules/coffee` · FastAPI `coffee_svc` `/api/coffee/v1`(Cal.com 域:日程/时段/预约) |
-| VIP | `/vip` | `src/modules/vip`(微信小程序原生页,见下) |
+| 导航 | `/nav` | `src/modules/nav` |
+| 小册 | `/book` | `src/modules/ebook` + `ebook-content` |
+| 旅居社群 | `/community` | `src/modules/community`(**勿改名**) |
+| **Social(国际游民社区)** | `/social` | `src/modules/social` · `/api/social/v1` · `:8020` |
+| **Hub(中文游民社区)** | `/hub` | `src/modules/hub` · `/api/hub/v1` · `:8025` · 后台仅 `/cn/hub/*` |
+| 远程工作 | `/social/work` | `src/modules/work` · `work_svc` `:8021` |
+| 通知 | `/notifications` · `/social/notify` | `src/modules/notify` · `notify_svc` `:8023` |
+| 咖啡聊 | `/social/coffeechat` | `src/modules/coffee` · `coffee_svc` `:8024` |
+| VIP(门户) | `/vip` | `src/modules/vip` |
+| **VIP(hackrobot)** | vip.hackrobot.cn | `apps/hackrobot/{vip,admin-site,nomadmini}` |
+| 后台 .com | admin.nomadro.com | `apps/com/admin`(`/cn` Hub · `/intl` Social) |
| 后台 .cn | admin.nomadro.cn | `apps/admin`(`/wechat` · `/douyin`) |
-| **VIP 运营台** | **admin.hackrobot.cn** | 独立 VIP SPA(vip.hackrobot.cn);**禁止**与 admin.nomadro.cn 混淆;LIVE/拉黑见 _vip_live_assets |
-| 后台 .com | admin.nomadro.com | `apps/com/admin`(**仅 Web**;美国 VPS) |
-| API | api.nomadro.cn | `apps/api` |
-`.cn` 后台平台:`/wechat/*` 微信 · `/douyin/*` 抖音。抖音加群弹窗集成在 **`/douyin/modules`**。`.com` 未备案,**无**小程序后台。
+`.cn` 后台:`/wechat/*` · `/douyin/*`。`.com` **无**小程序后台。
## 技术栈(Next 门户 + FastAPI)
@@ -208,9 +246,12 @@ pnpm dev:api # FastAPI(需先建 apps/api/.venv)
pnpm dev:work-api # 仅本机联调 work_svc :8021;日常 pnpm dev 直连线上 nomadro.com
pnpm dev:notify-api # 通知 notify_svc :8023(收件箱 / 工作流)
pnpm dev:coffee-api # 咖啡聊 coffee_svc :8024(预约 / 时段)
+pnpm dev:hub-api # 中文 Hub hub_svc :8025(独立于 social)
+pnpm dev:admin-com # admin.nomadro.com 本地(Vite)
pnpm build:portal
pnpm build:admin
+pnpm build:admin-com # .com Web 运营台
pnpm build:xhs # 小红书离线包 → apps/miniprogram/xhs/release
pnpm typecheck
pnpm clean # 清 .next / dist
@@ -237,15 +278,20 @@ pnpm dev:api
- 审核冻结分支:`pre4`(历史审核包);历史微信提审包:`test9` + tag `2026-11-02`
- `pre5`:承接 pre4 之后的功能(含游民社区 `/social`)
- `test5`–`test8`:游民社区 / 原生 weapp 迭代线(已合入 `test9`)
-- **当前开发分支:`test14`**(微信小册提审隔离与热更新在此迭代;历史定版 tag 仍见 `test9`)
+- **当前开发分支:`test15`**(Hub 中文受众锁与国内城市目录;历史定版 tag 仍见 `test9`)
-### 游民社区(`/social`)
+### 游民社区 · Social(`/social`,国际)与 Hub(`/hub`,中文)
-与旅居社群 `/community` **完全独立**:门户 `src/modules/social` + `src/app/social`;后端 `social_svc`(前缀 `/api/social/v1`,库文件 `data/social/social.db` 或 `SOCIAL_DB_PATH`);`SOCIAL_ENABLED=false` 或挂载失败不影响 ebook / community / pay。门户首页主入口为「游民社区」;旅居社群仍保留。增量部署见 [`deploy/social/README.md`](deploy/social/README.md)。
+与旅居社群 `/community` **完全独立**。
+
+- **Social(intl)**:`src/modules/social` + `/api/social/v1`(`social_main :8020`,库 `data/social/social.db`)。`.com` **非中文**默认首页入口。后台仅 **`/intl/social/*`**。
+- **Hub(cn)**:`src/modules/hub` + `/api/hub/v1`(`hub_main :8025`)。从 Social **只读 fork**;中文门户「游民社区」→ `/hub/home`。后台仅 **`/cn/hub/*`**。改 Hub **禁止**顺手改 Social 业务代码。
+- **中文锁(当前)**:`isHubCnOnly()` 写死开启 → UI 强制中文、屏蔽语言切换;地理 `HUB_CN_GEO_CODES=["CN"]`;`/hub/places` `/hub/map` `/hub/coffeechat` `/hub/people` 等城市轨 **只出国内城**(国际城保留在 `HUB_CITIES_INTL` / `SOCIAL_CITIES_INTL`,默认不进目录)。聊天中文受众只要一个「游民大厅」。
+- `SOCIAL_ENABLED=false` / Hub 挂载失败不影响 ebook / community / pay。增量部署见 [`deploy/social/README.md`](deploy/social/README.md) · [`src/modules/hub/README.md`](src/modules/hub/README.md)。
**加入流程(`/social/join`)**:支付成功 → `?step=profile` 完善资料(PC 双栏 + 实时名片;H5 全宽)→ 完成。本地 `joinFlow` 标记;开发可跳过支付。**头像**:`POST /api/social/v1/upload` → 美国机 SeaweedFS(`s3.nomadro.com`,与 community 共用 `S3_*`);失败落本地 `/api/social/v1/files/avatar/*`。资料草稿挂载后再读 localStorage,避免 SSR hydration 不一致。**人脸门禁**(默认开):头像需**单人正脸**;优先 InsightFace 检测 + RGB 活体。**现场自拍核验**(推荐):`POST /api/social/v1/avatar/challenge` 收正脸+转头两帧,校验同人 embedding + 转头幅度后再存头像。关检测:`SOCIAL_AVATAR_FACE_CHECK=false`;关活体:`SOCIAL_AVATAR_LIVENESS=false`。
-**地理发现**:`/social/map`、`/social/places`;内部 API `GET /api/social/v1/map/cities`。对外标准面:`/api/public/v1`(OpenAPI / SDK / MCP / Skill,见 [`docs/public-api.md`](docs/public-api.md))。**默认发版 `.com`(美国机)**;`.cn` 独立同步。
+**地理发现**:Social `/social/map` · `/social/places`(`GET /api/social/v1/map/cities`);Hub `/hub/map` · `/hub/places`(`GET /api/hub/v1/map/cities`,种子默认仅中国)。对外标准面:`/api/public/v1`(OpenAPI / SDK / MCP / Skill,见 [`docs/public-api.md`](docs/public-api.md))。**默认发版 `.com`(美国机)**;`.cn` 独立同步。
**文字厅(`/social/chat`)**:Centrifugo WS 优先(`/rt` 反代 · token `/api/social/v1/realtime/token`),失败降级轮询。侧栏为 Lobby + **国家频道**(多语言国名,不做大洲分组)。消息能力:未读分隔、在线 presence、发送中态、@提及、转发、已读回执、频道 rail 实时。气泡内 **MessageBilingual**:原文 + 当前 UI 语言译文同框(细线分隔,非第二气泡);不展示活动条 / 置顶条。本地:`pnpm` 起 Next `:3000` + `social_main :8020` + Centrifugo(见 `deploy/social/centrifugo`)。
diff --git a/apps/api/services/ebook_svc/services/hub_locale_geo.py b/apps/api/services/ebook_svc/services/hub_locale_geo.py
new file mode 100644
index 0000000..35c513b
--- /dev/null
+++ b/apps/api/services/ebook_svc/services/hub_locale_geo.py
@@ -0,0 +1,193 @@
+"""/hub locale + geo ops — modular remote-config surface.
+
+Writes only copy.hubLocale / copy.hubGeo; leaves catalogs & orders alone.
+"""
+from __future__ import annotations
+
+from copy import deepcopy
+from datetime import datetime, timezone
+from typing import Any
+
+from ebook_svc.services.tt_platform_config import resolve_config_file
+
+# Keep in sync with src/modules/hub/locale/catalog.ts
+LOCALE_CATALOG: list[dict[str, str]] = [
+ {"id": "zh", "label": "中文"},
+ {"id": "en", "label": "English"},
+ {"id": "ja", "label": "日本語"},
+ {"id": "ko", "label": "한국어"},
+ {"id": "vi", "label": "Tiếng Việt"},
+ {"id": "th", "label": "ไทย"},
+ {"id": "id", "label": "Bahasa Indonesia"},
+ {"id": "ms", "label": "Bahasa Melayu"},
+ {"id": "es", "label": "Español"},
+ {"id": "pt", "label": "Português"},
+ {"id": "fr", "label": "Français"},
+ {"id": "de", "label": "Deutsch"},
+ {"id": "it", "label": "Italiano"},
+ {"id": "ru", "label": "Русский"},
+ {"id": "ar", "label": "العربية"},
+ {"id": "hi", "label": "हिन्दी"},
+ {"id": "tr", "label": "Türkçe"},
+ {"id": "nl", "label": "Nederlands"},
+ {"id": "pl", "label": "Polski"},
+ {"id": "uk", "label": "Українська"},
+]
+LOCALE_IDS = {x["id"] for x in LOCALE_CATALOG}
+
+# Keep in sync with src/modules/hub/geo/countries.ts
+COUNTRY_CATALOG: list[dict[str, str]] = [
+ {"code": "CN", "nameZh": "中国", "nameEn": "China", "emoji": "🇨🇳", "lane": "cn"},
+ {"code": "TH", "nameZh": "泰国", "nameEn": "Thailand", "emoji": "🇹🇭", "lane": "intl"},
+ {"code": "ID", "nameZh": "印尼", "nameEn": "Indonesia", "emoji": "🇮🇩", "lane": "intl"},
+ {"code": "MY", "nameZh": "马来西亚", "nameEn": "Malaysia", "emoji": "🇲🇾", "lane": "intl"},
+ {"code": "PT", "nameZh": "葡萄牙", "nameEn": "Portugal", "emoji": "🇵🇹", "lane": "intl"},
+ {"code": "JP", "nameZh": "日本", "nameEn": "Japan", "emoji": "🇯🇵", "lane": "intl"},
+ {"code": "KR", "nameZh": "韩国", "nameEn": "South Korea", "emoji": "🇰🇷", "lane": "intl"},
+ {"code": "DE", "nameZh": "德国", "nameEn": "Germany", "emoji": "🇩🇪", "lane": "intl"},
+ {"code": "ES", "nameZh": "西班牙", "nameEn": "Spain", "emoji": "🇪🇸", "lane": "intl"},
+ {"code": "VN", "nameZh": "越南", "nameEn": "Vietnam", "emoji": "🇻🇳", "lane": "intl"},
+]
+COUNTRY_CODES = {x["code"] for x in COUNTRY_CATALOG}
+
+CITY_SEED: list[dict[str, str]] = [
+ {"id": "dali", "name": "大理", "country": "CN"},
+ {"id": "chengdu", "name": "成都", "country": "CN"},
+ {"id": "hangzhou", "name": "杭州", "country": "CN"},
+ {"id": "kunming", "name": "昆明", "country": "CN"},
+ {"id": "shenzhen", "name": "深圳", "country": "CN"},
+ {"id": "xiamen", "name": "厦门", "country": "CN"},
+ {"id": "shanghai", "name": "上海", "country": "CN"},
+ {"id": "lijiang", "name": "丽江", "country": "CN"},
+]
+CITY_IDS = {x["id"] for x in CITY_SEED}
+
+
+def _read_raw() -> dict[str, Any]:
+ path = resolve_config_file()
+ if not path.is_file():
+ return {}
+ try:
+ import json
+
+ raw = json.loads(path.read_text(encoding="utf-8"))
+ return raw if isinstance(raw, dict) else {}
+ except Exception:
+ return {}
+
+
+def _write_raw(out: dict[str, Any]) -> None:
+ import json
+
+ path = resolve_config_file()
+ path.parent.mkdir(parents=True, exist_ok=True)
+ out["updatedAt"] = datetime.now(timezone.utc).isoformat()
+ try:
+ out["version"] = int(out.get("version") or 1) + 1
+ except Exception:
+ out["version"] = 2
+ if path.is_file():
+ bak = path.with_suffix(
+ path.suffix + f".bak-locale-geo-{out['updatedAt'].replace(':', '-')}"
+ )
+ try:
+ bak.write_text(path.read_text(encoding="utf-8"), encoding="utf-8")
+ except Exception:
+ pass
+ path.write_text(json.dumps(out, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
+ try:
+ from ebook_svc.services.config_live import notify_config_written
+
+ notify_config_written(out)
+ except Exception:
+ pass
+
+
+def _norm_locale(raw: Any) -> dict[str, Any]:
+ src = raw if isinstance(raw, dict) else {}
+ enabled_in = src.get("enabled")
+ enabled: list[str] = []
+ if isinstance(enabled_in, list):
+ for item in enabled_in:
+ sid = str(item or "").strip()
+ if sid in LOCALE_IDS:
+ enabled.append(sid)
+ fallback = str(src.get("fallback") or "en").strip()
+ if fallback not in LOCALE_IDS:
+ fallback = "en"
+ mt = src.get("mtEnabled")
+ return {
+ "enabled": enabled,
+ "mtEnabled": True if mt is None else bool(mt),
+ "fallback": fallback,
+ }
+
+
+def _norm_geo(raw: Any) -> dict[str, Any]:
+ src = raw if isinstance(raw, dict) else {}
+ countries: list[str] = []
+ if isinstance(src.get("enabledCountries"), list):
+ for item in src["enabledCountries"]:
+ code = str(item or "").strip().upper()
+ if code in COUNTRY_CODES:
+ countries.append(code)
+ featured: list[str] = []
+ if isinstance(src.get("featuredCityIds"), list):
+ for item in src["featuredCityIds"]:
+ cid = str(item or "").strip()
+ if cid in CITY_IDS:
+ featured.append(cid)
+ return {
+ "enabledCountries": countries,
+ "featuredCityIds": featured,
+ }
+
+
+def read_locale_geo() -> dict[str, Any]:
+ raw = _read_raw()
+ copy = raw.get("copy") if isinstance(raw.get("copy"), dict) else {}
+ locale = _norm_locale(copy.get("hubLocale"))
+ geo = _norm_geo(copy.get("hubGeo"))
+ return {
+ "ok": True,
+ "locale": locale,
+ "geo": geo,
+ "meta": {
+ "locales": LOCALE_CATALOG,
+ "countries": COUNTRY_CATALOG,
+ "cities": CITY_SEED,
+ },
+ "version": raw.get("version"),
+ "updatedAt": raw.get("updatedAt"),
+ "configPath": str(resolve_config_file()),
+ }
+
+
+def write_locale_geo(patch: dict[str, Any]) -> dict[str, Any]:
+ raw = _read_raw()
+ out: dict[str, Any] = dict(raw) if raw else {"version": 1, "modules": {}, "flags": {}, "copy": {}}
+ copy = dict(out.get("copy") or {})
+ locale = _norm_locale(copy.get("hubLocale"))
+ geo = _norm_geo(copy.get("hubGeo"))
+
+ if isinstance(patch.get("locale"), dict):
+ lp = patch["locale"]
+ if "enabled" in lp:
+ locale = _norm_locale({**locale, "enabled": lp.get("enabled")})
+ if "mtEnabled" in lp:
+ locale["mtEnabled"] = bool(lp.get("mtEnabled"))
+ if "fallback" in lp:
+ locale = _norm_locale({**locale, "fallback": lp.get("fallback")})
+
+ if isinstance(patch.get("geo"), dict):
+ gp = patch["geo"]
+ if "enabledCountries" in gp:
+ geo = _norm_geo({**geo, "enabledCountries": gp.get("enabledCountries")})
+ if "featuredCityIds" in gp:
+ geo = _norm_geo({**geo, "featuredCityIds": gp.get("featuredCityIds")})
+
+ copy["hubLocale"] = locale
+ copy["hubGeo"] = geo
+ out["copy"] = copy
+ _write_raw(out)
+ return read_locale_geo()
diff --git a/apps/api/services/ebook_svc/services/social_locale_geo.py b/apps/api/services/ebook_svc/services/social_locale_geo.py
index f1d521a..aa841ce 100644
--- a/apps/api/services/ebook_svc/services/social_locale_geo.py
+++ b/apps/api/services/ebook_svc/services/social_locale_geo.py
@@ -59,10 +59,6 @@ CITY_SEED: list[dict[str, str]] = [
{"id": "xiamen", "name": "厦门", "country": "CN"},
{"id": "shanghai", "name": "上海", "country": "CN"},
{"id": "lijiang", "name": "丽江", "country": "CN"},
- {"id": "chiangmai", "name": "清迈", "country": "TH"},
- {"id": "bali", "name": "巴厘岛", "country": "ID"},
- {"id": "lisbon", "name": "里斯本", "country": "PT"},
- {"id": "penang", "name": "槟城", "country": "MY"},
]
CITY_IDS = {x["id"] for x in CITY_SEED}
diff --git a/apps/api/services/hub_svc/__init__.py b/apps/api/services/hub_svc/__init__.py
new file mode 100644
index 0000000..278bcf0
--- /dev/null
+++ b/apps/api/services/hub_svc/__init__.py
@@ -0,0 +1,4 @@
+"""Nomadro Hub 独立后端 — 与 community/ebook/pay 数据完全隔离。
+
+IM 协议见 ``contract.py``:服务端无 UI 假设;Web / 微信小程序任意换皮。
+"""
diff --git a/apps/api/services/hub_svc/assets/haarcascade_frontalface_default.xml b/apps/api/services/hub_svc/assets/haarcascade_frontalface_default.xml
new file mode 100644
index 0000000..cbd1aa8
--- /dev/null
+++ b/apps/api/services/hub_svc/assets/haarcascade_frontalface_default.xml
@@ -0,0 +1,33314 @@
+
+
+
+BOOST
+ HAAR
+ 24
+ 24
+
+ 211
+
+ 0
+ 25
+
+ <_>
+ 9
+ -5.0425500869750977e+00
+
+ <_>
+
+ 0 -1 0 -3.1511999666690826e-02
+
+ 2.0875380039215088e+00 -2.2172100543975830e+00
+ <_>
+
+ 0 -1 1 1.2396000325679779e-02
+
+ -1.8633940219879150e+00 1.3272049427032471e+00
+ <_>
+
+ 0 -1 2 2.1927999332547188e-02
+
+ -1.5105249881744385e+00 1.0625729560852051e+00
+ <_>
+
+ 0 -1 3 5.7529998011887074e-03
+
+ -8.7463897466659546e-01 1.1760339736938477e+00
+ <_>
+
+ 0 -1 4 1.5014000236988068e-02
+
+ -7.7945697307586670e-01 1.2608419656753540e+00
+ <_>
+
+ 0 -1 5 9.9371001124382019e-02
+
+ 5.5751299858093262e-01 -1.8743000030517578e+00
+ <_>
+
+ 0 -1 6 2.7340000960975885e-03
+
+ -1.6911929845809937e+00 4.4009700417518616e-01
+ <_>
+
+ 0 -1 7 -1.8859000876545906e-02
+
+ -1.4769539833068848e+00 4.4350099563598633e-01
+ <_>
+
+ 0 -1 8 5.9739998541772366e-03
+
+ -8.5909199714660645e-01 8.5255599021911621e-01
+ <_>
+ 16
+ -4.9842400550842285e+00
+
+ <_>
+
+ 0 -1 9 -2.1110000088810921e-02
+
+ 1.2435649633407593e+00 -1.5713009834289551e+00
+ <_>
+
+ 0 -1 10 2.0355999469757080e-02
+
+ -1.6204780340194702e+00 1.1817760467529297e+00
+ <_>
+
+ 0 -1 11 2.1308999508619308e-02
+
+ -1.9415930509567261e+00 7.0069098472595215e-01
+ <_>
+
+ 0 -1 12 9.1660000383853912e-02
+
+ -5.5670100450515747e-01 1.7284419536590576e+00
+ <_>
+
+ 0 -1 13 3.6288000643253326e-02
+
+ 2.6763799786567688e-01 -2.1831810474395752e+00
+ <_>
+
+ 0 -1 14 -1.9109999760985374e-02
+
+ -2.6730210781097412e+00 4.5670801401138306e-01
+ <_>
+
+ 0 -1 15 8.2539999857544899e-03
+
+ -1.0852910280227661e+00 5.3564202785491943e-01
+ <_>
+
+ 0 -1 16 1.8355000764131546e-02
+
+ -3.5200199484825134e-01 9.3339198827743530e-01
+ <_>
+
+ 0 -1 17 -7.0569999516010284e-03
+
+ 9.2782098054885864e-01 -6.6349899768829346e-01
+ <_>
+
+ 0 -1 18 -9.8770000040531158e-03
+
+ 1.1577470302581787e+00 -2.9774799942970276e-01
+ <_>
+
+ 0 -1 19 1.5814000740647316e-02
+
+ -4.1960600018501282e-01 1.3576040267944336e+00
+ <_>
+
+ 0 -1 20 -2.0700000226497650e-02
+
+ 1.4590020179748535e+00 -1.9739399850368500e-01
+ <_>
+
+ 0 -1 21 -1.3760800659656525e-01
+
+ 1.1186759471893311e+00 -5.2915501594543457e-01
+ <_>
+
+ 0 -1 22 1.4318999834358692e-02
+
+ -3.5127198696136475e-01 1.1440860033035278e+00
+ <_>
+
+ 0 -1 23 1.0253000073134899e-02
+
+ -6.0850602388381958e-01 7.7098500728607178e-01
+ <_>
+
+ 0 -1 24 9.1508001089096069e-02
+
+ 3.8817799091339111e-01 -1.5122940540313721e+00
+ <_>
+ 27
+ -4.6551899909973145e+00
+
+ <_>
+
+ 0 -1 25 6.9747000932693481e-02
+
+ -1.0130879878997803e+00 1.4687349796295166e+00
+ <_>
+
+ 0 -1 26 3.1502999365329742e-02
+
+ -1.6463639736175537e+00 1.0000629425048828e+00
+ <_>
+
+ 0 -1 27 1.4260999858379364e-02
+
+ 4.6480301022529602e-01 -1.5959889888763428e+00
+ <_>
+
+ 0 -1 28 1.4453000389039516e-02
+
+ -6.5511900186538696e-01 8.3021801710128784e-01
+ <_>
+
+ 0 -1 29 -3.0509999487549067e-03
+
+ -1.3982310295104980e+00 4.2550599575042725e-01
+ <_>
+
+ 0 -1 30 3.2722998410463333e-02
+
+ -5.0702601671218872e-01 1.0526109933853149e+00
+ <_>
+
+ 0 -1 31 -7.2960001416504383e-03
+
+ 3.6356899142265320e-01 -1.3464889526367188e+00
+ <_>
+
+ 0 -1 32 5.0425000488758087e-02
+
+ -3.0461400747299194e-01 1.4504129886627197e+00
+ <_>
+
+ 0 -1 33 4.6879000961780548e-02
+
+ -4.0286201238632202e-01 1.2145609855651855e+00
+ <_>
+
+ 0 -1 34 -6.9358997046947479e-02
+
+ 1.0539360046386719e+00 -4.5719701051712036e-01
+ <_>
+
+ 0 -1 35 -4.9033999443054199e-02
+
+ -1.6253089904785156e+00 1.5378999710083008e-01
+ <_>
+
+ 0 -1 36 8.4827996790409088e-02
+
+ 2.8402999043464661e-01 -1.5662059783935547e+00
+ <_>
+
+ 0 -1 37 -1.7229999648407102e-03
+
+ -1.0147459506988525e+00 2.3294800519943237e-01
+ <_>
+
+ 0 -1 38 1.1562199890613556e-01
+
+ -1.6732899844646454e-01 1.2804069519042969e+00
+ <_>
+
+ 0 -1 39 -5.1279999315738678e-02
+
+ 1.5162390470504761e+00 -3.0271100997924805e-01
+ <_>
+
+ 0 -1 40 -4.2706999927759171e-02
+
+ 1.7631920576095581e+00 -5.1832001656293869e-02
+ <_>
+
+ 0 -1 41 3.7178099155426025e-01
+
+ -3.1389200687408447e-01 1.5357979536056519e+00
+ <_>
+
+ 0 -1 42 1.9412999972701073e-02
+
+ -1.0017599910497665e-01 9.3655401468276978e-01
+ <_>
+
+ 0 -1 43 1.7439000308513641e-02
+
+ -4.0379899740219116e-01 9.6293002367019653e-01
+ <_>
+
+ 0 -1 44 3.9638999849557877e-02
+
+ 1.7039099335670471e-01 -2.9602990150451660e+00
+ <_>
+
+ 0 -1 45 -9.1469995677471161e-03
+
+ 8.8786798715591431e-01 -4.3818700313568115e-01
+ <_>
+
+ 0 -1 46 1.7219999572262168e-03
+
+ -3.7218600511550903e-01 4.0018901228904724e-01
+ <_>
+
+ 0 -1 47 3.0231000855565071e-02
+
+ 6.5924003720283508e-02 -2.6469180583953857e+00
+ <_>
+
+ 0 -1 48 -7.8795999288558960e-02
+
+ -1.7491459846496582e+00 2.8475299477577209e-01
+ <_>
+
+ 0 -1 49 2.1110000088810921e-03
+
+ -9.3908101320266724e-01 2.3205199837684631e-01
+ <_>
+
+ 0 -1 50 2.7091000229120255e-02
+
+ -5.2664000540971756e-02 1.0756820440292358e+00
+ <_>
+
+ 0 -1 51 -4.4964998960494995e-02
+
+ -1.8294479846954346e+00 9.9561996757984161e-02
+ <_>
+ 32
+ -4.4531588554382324e+00
+
+ <_>
+
+ 0 -1 52 -6.5701000392436981e-02
+
+ 1.1558510065078735e+00 -1.0716359615325928e+00
+ <_>
+
+ 0 -1 53 1.5839999541640282e-02
+
+ -1.5634720325469971e+00 7.6877099275588989e-01
+ <_>
+
+ 0 -1 54 1.4570899307727814e-01
+
+ -5.7450097799301147e-01 1.3808720111846924e+00
+ <_>
+
+ 0 -1 55 6.1389999464154243e-03
+
+ -1.4570560455322266e+00 5.1610302925109863e-01
+ <_>
+
+ 0 -1 56 6.7179999314248562e-03
+
+ -8.3533602952957153e-01 5.8522200584411621e-01
+ <_>
+
+ 0 -1 57 1.8518000841140747e-02
+
+ -3.1312099099159241e-01 1.1696679592132568e+00
+ <_>
+
+ 0 -1 58 1.9958000630140305e-02
+
+ -4.3442600965499878e-01 9.5446902513504028e-01
+ <_>
+
+ 0 -1 59 -2.7755001187324524e-01
+
+ 1.4906179904937744e+00 -1.3815900683403015e-01
+ <_>
+
+ 0 -1 60 9.1859996318817139e-03
+
+ -9.6361500024795532e-01 2.7665498852729797e-01
+ <_>
+
+ 0 -1 61 -3.7737999111413956e-02
+
+ -2.4464108943939209e+00 2.3619599640369415e-01
+ <_>
+
+ 0 -1 62 1.8463000655174255e-02
+
+ 1.7539200186729431e-01 -1.3423130512237549e+00
+ <_>
+
+ 0 -1 63 -1.1114999651908875e-02
+
+ 4.8710799217224121e-01 -8.9851897954940796e-01
+ <_>
+
+ 0 -1 64 3.3927999436855316e-02
+
+ 1.7874200642108917e-01 -1.6342279911041260e+00
+ <_>
+
+ 0 -1 65 -3.5649001598358154e-02
+
+ -1.9607399702072144e+00 1.8102499842643738e-01
+ <_>
+
+ 0 -1 66 -1.1438000015914440e-02
+
+ 9.9010699987411499e-01 -3.8103199005126953e-01
+ <_>
+
+ 0 -1 67 -6.5236002206802368e-02
+
+ -2.5794160366058350e+00 2.4753600358963013e-01
+ <_>
+
+ 0 -1 68 -4.2272001504898071e-02
+
+ 1.4411840438842773e+00 -2.9508298635482788e-01
+ <_>
+
+ 0 -1 69 1.9219999667257071e-03
+
+ -4.9608600139617920e-01 6.3173598051071167e-01
+ <_>
+
+ 0 -1 70 -1.2921799719333649e-01
+
+ -2.3314270973205566e+00 5.4496999830007553e-02
+ <_>
+
+ 0 -1 71 2.2931000217795372e-02
+
+ -8.4447097778320312e-01 3.8738098740577698e-01
+ <_>
+
+ 0 -1 72 -3.4120000898838043e-02
+
+ -1.4431500434875488e+00 9.8422996699810028e-02
+ <_>
+
+ 0 -1 73 2.6223000138998032e-02
+
+ 1.8223099410533905e-01 -1.2586519718170166e+00
+ <_>
+
+ 0 -1 74 2.2236999124288559e-02
+
+ 6.9807998836040497e-02 -2.3820950984954834e+00
+ <_>
+
+ 0 -1 75 -5.8240001089870930e-03
+
+ 3.9332500100135803e-01 -2.7542799711227417e-01
+ <_>
+
+ 0 -1 76 4.3653000146150589e-02
+
+ 1.4832699298858643e-01 -1.1368780136108398e+00
+ <_>
+
+ 0 -1 77 5.7266999036073685e-02
+
+ 2.4628099799156189e-01 -1.2687400579452515e+00
+ <_>
+
+ 0 -1 78 2.3409998975694180e-03
+
+ -7.5448900461196899e-01 2.7163800597190857e-01
+ <_>
+
+ 0 -1 79 1.2996000237762928e-02
+
+ -3.6394900083541870e-01 7.0959198474884033e-01
+ <_>
+
+ 0 -1 80 -2.6517000049352646e-02
+
+ -2.3221859931945801e+00 3.5744000226259232e-02
+ <_>
+
+ 0 -1 81 -5.8400002308189869e-03
+
+ 4.2194300889968872e-01 -4.8184998333454132e-02
+ <_>
+
+ 0 -1 82 -1.6568999737501144e-02
+
+ 1.1099940538406372e+00 -3.4849700331687927e-01
+ <_>
+
+ 0 -1 83 -6.8157002329826355e-02
+
+ -3.3269989490509033e+00 2.1299000084400177e-01
+ <_>
+ 52
+ -4.3864588737487793e+00
+
+ <_>
+
+ 0 -1 84 3.9974000304937363e-02
+
+ -1.2173449993133545e+00 1.0826710462570190e+00
+ <_>
+
+ 0 -1 85 1.8819500505924225e-01
+
+ -4.8289400339126587e-01 1.4045250415802002e+00
+ <_>
+
+ 0 -1 86 7.8027002513408661e-02
+
+ -1.0782150030136108e+00 7.4040299654006958e-01
+ <_>
+
+ 0 -1 87 1.1899999663000926e-04
+
+ -1.2019979953765869e+00 3.7749201059341431e-01
+ <_>
+
+ 0 -1 88 8.5056997835636139e-02
+
+ -4.3939098715782166e-01 1.2647340297698975e+00
+ <_>
+
+ 0 -1 89 8.9720003306865692e-03
+
+ -1.8440499901771545e-01 4.5726400613784790e-01
+ <_>
+
+ 0 -1 90 8.8120000436902046e-03
+
+ 3.0396699905395508e-01 -9.5991098880767822e-01
+ <_>
+
+ 0 -1 91 -2.3507999256253242e-02
+
+ 1.2487529516220093e+00 4.6227999031543732e-02
+ <_>
+
+ 0 -1 92 7.0039997808635235e-03
+
+ -5.9442102909088135e-01 5.3963297605514526e-01
+ <_>
+
+ 0 -1 93 3.3851999789476395e-02
+
+ 2.8496098518371582e-01 -1.4895249605178833e+00
+ <_>
+
+ 0 -1 94 -3.2530000898987055e-03
+
+ 4.8120799660682678e-01 -5.2712398767471313e-01
+ <_>
+
+ 0 -1 95 2.9097000136971474e-02
+
+ 2.6743900775909424e-01 -1.6007850170135498e+00
+ <_>
+
+ 0 -1 96 -8.4790000692009926e-03
+
+ -1.3107639551162720e+00 1.5243099629878998e-01
+ <_>
+
+ 0 -1 97 -1.0795000009238720e-02
+
+ 4.5613598823547363e-01 -7.2050899267196655e-01
+ <_>
+
+ 0 -1 98 -2.4620000272989273e-02
+
+ -1.7320619821548462e+00 6.8363003432750702e-02
+ <_>
+
+ 0 -1 99 3.7380000576376915e-03
+
+ -1.9303299486637115e-01 6.8243497610092163e-01
+ <_>
+
+ 0 -1 100 -1.2264000251889229e-02
+
+ -1.6095290184020996e+00 7.5268000364303589e-02
+ <_>
+
+ 0 -1 101 -4.8670000396668911e-03
+
+ 7.4286502599716187e-01 -2.1510200202465057e-01
+ <_>
+
+ 0 -1 102 7.6725997030735016e-02
+
+ -2.6835098862648010e-01 1.3094140291213989e+00
+ <_>
+
+ 0 -1 103 2.8578000143170357e-02
+
+ -5.8793000876903534e-02 1.2196329832077026e+00
+ <_>
+
+ 0 -1 104 1.9694000482559204e-02
+
+ -3.5142898559570312e-01 8.4926998615264893e-01
+ <_>
+
+ 0 -1 105 -2.9093999415636063e-02
+
+ -1.0507299900054932e+00 2.9806300997734070e-01
+ <_>
+
+ 0 -1 106 -2.9144000262022018e-02
+
+ 8.2547801733016968e-01 -3.2687199115753174e-01
+ <_>
+
+ 0 -1 107 1.9741000607609749e-02
+
+ 2.0452600717544556e-01 -8.3760201930999756e-01
+ <_>
+
+ 0 -1 108 4.3299999088048935e-03
+
+ 2.0577900111675262e-01 -6.6829800605773926e-01
+ <_>
+
+ 0 -1 109 -3.5500999540090561e-02
+
+ -1.2969900369644165e+00 1.3897499442100525e-01
+ <_>
+
+ 0 -1 110 -1.6172999516129494e-02
+
+ -1.3110569715499878e+00 7.5751997530460358e-02
+ <_>
+
+ 0 -1 111 -2.2151000797748566e-02
+
+ -1.0524389743804932e+00 1.9241100549697876e-01
+ <_>
+
+ 0 -1 112 -2.2707000374794006e-02
+
+ -1.3735309839248657e+00 6.6780999302864075e-02
+ <_>
+
+ 0 -1 113 1.6607999801635742e-02
+
+ -3.7135999649763107e-02 7.7846401929855347e-01
+ <_>
+
+ 0 -1 114 -1.3309000059962273e-02
+
+ -9.9850702285766602e-01 1.2248100340366364e-01
+ <_>
+
+ 0 -1 115 -3.3732000738382339e-02
+
+ 1.4461359977722168e+00 1.3151999562978745e-02
+ <_>
+
+ 0 -1 116 1.6935000196099281e-02
+
+ -3.7121298909187317e-01 5.2842199802398682e-01
+ <_>
+
+ 0 -1 117 3.3259999472647905e-03
+
+ -5.7568502426147461e-01 3.9261901378631592e-01
+ <_>
+
+ 0 -1 118 8.3644002676010132e-02
+
+ 1.6116000711917877e-02 -2.1173279285430908e+00
+ <_>
+
+ 0 -1 119 2.5785198807716370e-01
+
+ -8.1609003245830536e-02 9.8782497644424438e-01
+ <_>
+
+ 0 -1 120 -3.6566998809576035e-02
+
+ -1.1512110233306885e+00 9.6459001302719116e-02
+ <_>
+
+ 0 -1 121 -1.6445999965071678e-02
+
+ 3.7315499782562256e-01 -1.4585399627685547e-01
+ <_>
+
+ 0 -1 122 -3.7519999314099550e-03
+
+ 2.6179298758506775e-01 -5.8156698942184448e-01
+ <_>
+
+ 0 -1 123 -6.3660000450909138e-03
+
+ 7.5477397441864014e-01 -1.7055200040340424e-01
+ <_>
+
+ 0 -1 124 -3.8499999791383743e-03
+
+ 2.2653999924659729e-01 -6.3876402378082275e-01
+ <_>
+
+ 0 -1 125 -4.5494001358747482e-02
+
+ -1.2640299797058105e+00 2.5260698795318604e-01
+ <_>
+
+ 0 -1 126 -2.3941000923514366e-02
+
+ 8.7068402767181396e-01 -2.7104699611663818e-01
+ <_>
+
+ 0 -1 127 -7.7558003365993500e-02
+
+ -1.3901610374450684e+00 2.3612299561500549e-01
+ <_>
+
+ 0 -1 128 2.3614000529050827e-02
+
+ 6.6140003502368927e-02 -1.2645419836044312e+00
+ <_>
+
+ 0 -1 129 -2.5750000495463610e-03
+
+ -5.3841698169708252e-01 3.0379098653793335e-01
+ <_>
+
+ 0 -1 130 1.2010800093412399e-01
+
+ -3.5343000292778015e-01 5.2866202592849731e-01
+ <_>
+
+ 0 -1 131 2.2899999748915434e-03
+
+ -5.8701997995376587e-01 2.4061000347137451e-01
+ <_>
+
+ 0 -1 132 6.9716997444629669e-02
+
+ -3.3348900079727173e-01 5.1916301250457764e-01
+ <_>
+
+ 0 -1 133 -4.6670001000165939e-02
+
+ 6.9795399904251099e-01 -1.4895999804139137e-02
+ <_>
+
+ 0 -1 134 -5.0129000097513199e-02
+
+ 8.6146199703216553e-01 -2.5986000895500183e-01
+ <_>
+
+ 0 -1 135 3.0147999525070190e-02
+
+ 1.9332799315452576e-01 -5.9131097793579102e-01
+ <_>
+ 53
+ -4.1299300193786621e+00
+
+ <_>
+
+ 0 -1 136 9.1085001826286316e-02
+
+ -8.9233100414276123e-01 1.0434230566024780e+00
+ <_>
+
+ 0 -1 137 1.2818999588489532e-02
+
+ -1.2597670555114746e+00 5.5317097902297974e-01
+ <_>
+
+ 0 -1 138 1.5931999310851097e-02
+
+ -8.6254400014877319e-01 6.3731801509857178e-01
+ <_>
+
+ 0 -1 139 2.2780001163482666e-03
+
+ -7.4639201164245605e-01 5.3155601024627686e-01
+ <_>
+
+ 0 -1 140 3.1840998679399490e-02
+
+ -1.2650489807128906e+00 3.6153900623321533e-01
+ <_>
+
+ 0 -1 141 2.6960000395774841e-03
+
+ -9.8290401697158813e-01 3.6013001203536987e-01
+ <_>
+
+ 0 -1 142 -1.2055000290274620e-02
+
+ 6.4068400859832764e-01 -5.0125002861022949e-01
+ <_>
+
+ 0 -1 143 2.1324999630451202e-02
+
+ -2.4034999310970306e-01 8.5448002815246582e-01
+ <_>
+
+ 0 -1 144 3.0486000701785088e-02
+
+ -3.4273600578308105e-01 1.1428849697113037e+00
+ <_>
+
+ 0 -1 145 -4.5079998672008514e-02
+
+ 1.0976949930191040e+00 -1.7974600195884705e-01
+ <_>
+
+ 0 -1 146 -7.1700997650623322e-02
+
+ 1.5735000371932983e+00 -3.1433498859405518e-01
+ <_>
+
+ 0 -1 147 5.9218000620603561e-02
+
+ -2.7582401037216187e-01 1.0448570251464844e+00
+ <_>
+
+ 0 -1 148 6.7010000348091125e-03
+
+ -1.0974019765853882e+00 1.9801199436187744e-01
+ <_>
+
+ 0 -1 149 4.1046999394893646e-02
+
+ 3.0547699332237244e-01 -1.3287999629974365e+00
+ <_>
+
+ 0 -1 150 -8.5499999113380909e-04
+
+ 2.5807100534439087e-01 -7.0052897930145264e-01
+ <_>
+
+ 0 -1 151 -3.0360000208020210e-02
+
+ -1.2306419610977173e+00 2.2609399259090424e-01
+ <_>
+
+ 0 -1 152 -1.2930000200867653e-02
+
+ 4.0758600831031799e-01 -5.1234501600265503e-01
+ <_>
+
+ 0 -1 153 3.7367999553680420e-02
+
+ -9.4755001366138458e-02 6.1765098571777344e-01
+ <_>
+
+ 0 -1 154 2.4434000253677368e-02
+
+ -4.1100600361824036e-01 4.7630500793457031e-01
+ <_>
+
+ 0 -1 155 5.7007998228073120e-02
+
+ 2.5249299407005310e-01 -6.8669801950454712e-01
+ <_>
+
+ 0 -1 156 -1.6313999891281128e-02
+
+ -9.3928402662277222e-01 1.1448100209236145e-01
+ <_>
+
+ 0 -1 157 -1.7648899555206299e-01
+
+ 1.2451089620590210e+00 -5.6519001722335815e-02
+ <_>
+
+ 0 -1 158 1.7614600062370300e-01
+
+ -3.2528200745582581e-01 8.2791501283645630e-01
+ <_>
+
+ 0 -1 159 -7.3910001665353775e-03
+
+ 3.4783700108528137e-01 -1.7929099500179291e-01
+ <_>
+
+ 0 -1 160 6.0890998691320419e-02
+
+ 5.5098000913858414e-02 -1.5480779409408569e+00
+ <_>
+
+ 0 -1 161 -2.9123000800609589e-02
+
+ -1.0255639553070068e+00 2.4106900393962860e-01
+ <_>
+
+ 0 -1 162 -4.5648999512195587e-02
+
+ 1.0301599502563477e+00 -3.1672099232673645e-01
+ <_>
+
+ 0 -1 163 3.7333000451326370e-02
+
+ 2.1620599925518036e-01 -8.2589900493621826e-01
+ <_>
+
+ 0 -1 164 -2.4411000311374664e-02
+
+ -1.5957959890365601e+00 5.1139000803232193e-02
+ <_>
+
+ 0 -1 165 -5.9806998819112778e-02
+
+ -1.0312290191650391e+00 1.3092300295829773e-01
+ <_>
+
+ 0 -1 166 -3.0106000602245331e-02
+
+ -1.4781630039215088e+00 3.7211999297142029e-02
+ <_>
+
+ 0 -1 167 7.4209999293088913e-03
+
+ -2.4024100601673126e-01 4.9333998560905457e-01
+ <_>
+
+ 0 -1 168 -2.1909999195486307e-03
+
+ 2.8941500186920166e-01 -5.7259601354598999e-01
+ <_>
+
+ 0 -1 169 2.0860999822616577e-02
+
+ -2.3148399591445923e-01 6.3765901327133179e-01
+ <_>
+
+ 0 -1 170 -6.6990000195801258e-03
+
+ -1.2107750177383423e+00 6.4018003642559052e-02
+ <_>
+
+ 0 -1 171 1.8758000805974007e-02
+
+ 2.4461300671100616e-01 -9.9786698818206787e-01
+ <_>
+
+ 0 -1 172 -4.4323001056909561e-02
+
+ -1.3699189424514771e+00 3.6051999777555466e-02
+ <_>
+
+ 0 -1 173 2.2859999909996986e-02
+
+ 2.1288399398326874e-01 -1.0397620201110840e+00
+ <_>
+
+ 0 -1 174 -9.8600005730986595e-04
+
+ 3.2443600893020630e-01 -5.4291802644729614e-01
+ <_>
+
+ 0 -1 175 1.7239000648260117e-02
+
+ -2.8323900699615479e-01 4.4468200206756592e-01
+ <_>
+
+ 0 -1 176 -3.4531001001596451e-02
+
+ -2.3107020854949951e+00 -3.1399999279528856e-03
+ <_>
+
+ 0 -1 177 6.7006997764110565e-02
+
+ 2.8715699911117554e-01 -6.4481002092361450e-01
+ <_>
+
+ 0 -1 178 2.3776899278163910e-01
+
+ -2.7174800634384155e-01 8.0219101905822754e-01
+ <_>
+
+ 0 -1 179 -1.2903000228106976e-02
+
+ -1.5317620038986206e+00 2.1423600614070892e-01
+ <_>
+
+ 0 -1 180 1.0514999739825726e-02
+
+ 7.7037997543811798e-02 -1.0581140518188477e+00
+ <_>
+
+ 0 -1 181 1.6969000920653343e-02
+
+ 1.4306700229644775e-01 -8.5828399658203125e-01
+ <_>
+
+ 0 -1 182 -7.2460002265870571e-03
+
+ -1.1020129919052124e+00 6.4906999468803406e-02
+ <_>
+
+ 0 -1 183 1.0556999593973160e-02
+
+ 1.3964000158011913e-02 6.3601499795913696e-01
+ <_>
+
+ 0 -1 184 6.1380001716315746e-03
+
+ -3.4545901417732239e-01 5.6296801567077637e-01
+ <_>
+
+ 0 -1 185 1.3158000074326992e-02
+
+ 1.9927300512790680e-01 -1.5040320158004761e+00
+ <_>
+
+ 0 -1 186 3.1310000922530890e-03
+
+ -4.0903699398040771e-01 3.7796398997306824e-01
+ <_>
+
+ 0 -1 187 -1.0920699685811996e-01
+
+ -2.2227079868316650e+00 1.2178199738264084e-01
+ <_>
+
+ 0 -1 188 8.1820003688335419e-03
+
+ -2.8652000427246094e-01 6.7890799045562744e-01
+ <_>
+ 62
+ -4.0218091011047363e+00
+
+ <_>
+
+ 0 -1 189 3.1346999108791351e-02
+
+ -8.8884598016738892e-01 9.4936800003051758e-01
+ <_>
+
+ 0 -1 190 3.1918000429868698e-02
+
+ -1.1146880388259888e+00 4.8888999223709106e-01
+ <_>
+
+ 0 -1 191 6.5939999185502529e-03
+
+ -1.0097689628601074e+00 4.9723801016807556e-01
+ <_>
+
+ 0 -1 192 2.6148000732064247e-02
+
+ 2.5991299748420715e-01 -1.2537480592727661e+00
+ <_>
+
+ 0 -1 193 1.2845000252127647e-02
+
+ -5.7138597965240479e-01 5.9659498929977417e-01
+ <_>
+
+ 0 -1 194 2.6344999670982361e-02
+
+ -5.5203199386596680e-01 3.0217400193214417e-01
+ <_>
+
+ 0 -1 195 -1.5083000063896179e-02
+
+ -1.2871240377426147e+00 2.2354200482368469e-01
+ <_>
+
+ 0 -1 196 -3.8887001574039459e-02
+
+ 1.7425049543380737e+00 -9.9747002124786377e-02
+ <_>
+
+ 0 -1 197 -5.7029998861253262e-03
+
+ -1.0523240566253662e+00 1.8362599611282349e-01
+ <_>
+
+ 0 -1 198 -1.4860000228509307e-03
+
+ 5.6784200668334961e-01 -4.6742001175880432e-01
+ <_>
+
+ 0 -1 199 -2.8486000373959541e-02
+
+ 1.3082909584045410e+00 -2.6460900902748108e-01
+ <_>
+
+ 0 -1 200 6.6224999725818634e-02
+
+ -4.6210700273513794e-01 4.1749599575996399e-01
+ <_>
+
+ 0 -1 201 8.8569996878504753e-03
+
+ -4.1474899649620056e-01 5.9204798936843872e-01
+ <_>
+
+ 0 -1 202 1.1355999857187271e-02
+
+ 3.6103099584579468e-01 -4.5781201124191284e-01
+ <_>
+
+ 0 -1 203 -2.7679998893290758e-03
+
+ -8.9238899946212769e-01 1.4199000597000122e-01
+ <_>
+
+ 0 -1 204 1.1246999725699425e-02
+
+ 2.9353401064872742e-01 -9.7330600023269653e-01
+ <_>
+
+ 0 -1 205 7.1970000863075256e-03
+
+ -7.9334902763366699e-01 1.8313400447368622e-01
+ <_>
+
+ 0 -1 206 3.1768999993801117e-02
+
+ 1.5523099899291992e-01 -1.3245639801025391e+00
+ <_>
+
+ 0 -1 207 2.5173999369144440e-02
+
+ 3.4214999526739120e-02 -2.0948131084442139e+00
+ <_>
+
+ 0 -1 208 7.5360001064836979e-03
+
+ -3.9450600743293762e-01 5.1333999633789062e-01
+ <_>
+
+ 0 -1 209 3.2873000949621201e-02
+
+ 8.8372997939586639e-02 -1.2814120054244995e+00
+ <_>
+
+ 0 -1 210 -2.7379998937249184e-03
+
+ 5.5286502838134766e-01 -4.6384999155998230e-01
+ <_>
+
+ 0 -1 211 -3.8075000047683716e-02
+
+ -1.8497270345687866e+00 4.5944001525640488e-02
+ <_>
+
+ 0 -1 212 -3.8984000682830811e-02
+
+ -4.8223701119422913e-01 3.4760600328445435e-01
+ <_>
+
+ 0 -1 213 2.8029999230057001e-03
+
+ -4.5154699683189392e-01 4.2806300520896912e-01
+ <_>
+
+ 0 -1 214 -5.4145999252796173e-02
+
+ -8.4520798921585083e-01 1.6674900054931641e-01
+ <_>
+
+ 0 -1 215 -8.3280000835657120e-03
+
+ 3.5348299145698547e-01 -4.7163200378417969e-01
+ <_>
+
+ 0 -1 216 3.3778000622987747e-02
+
+ 1.8463100492954254e-01 -1.6686669588088989e+00
+ <_>
+
+ 0 -1 217 -1.1238099634647369e-01
+
+ -1.2521569728851318e+00 3.5992000252008438e-02
+ <_>
+
+ 0 -1 218 -1.0408000089228153e-02
+
+ -8.1620401144027710e-01 2.3428599536418915e-01
+ <_>
+
+ 0 -1 219 -4.9439999274909496e-03
+
+ -9.2584699392318726e-01 1.0034800320863724e-01
+ <_>
+
+ 0 -1 220 -9.3029998242855072e-03
+
+ 5.6499302387237549e-01 -1.8881900608539581e-01
+ <_>
+
+ 0 -1 221 -1.1749999597668648e-02
+
+ 8.0302399396896362e-01 -3.8277000188827515e-01
+ <_>
+
+ 0 -1 222 -2.3217000067234039e-02
+
+ -8.4926998615264893e-01 1.9671200215816498e-01
+ <_>
+
+ 0 -1 223 1.6866000369191170e-02
+
+ -4.0591898560523987e-01 5.0695300102233887e-01
+ <_>
+
+ 0 -1 224 -2.4031000211834908e-02
+
+ -1.5297520160675049e+00 2.3344999551773071e-01
+ <_>
+
+ 0 -1 225 -3.6945998668670654e-02
+
+ 6.3007700443267822e-01 -3.1780400872230530e-01
+ <_>
+
+ 0 -1 226 -6.1563998460769653e-02
+
+ 5.8627897500991821e-01 -1.2107999995350838e-02
+ <_>
+
+ 0 -1 227 2.1661000326275826e-02
+
+ -2.5623700022697449e-01 1.0409849882125854e+00
+ <_>
+
+ 0 -1 228 -3.6710000131279230e-03
+
+ 2.9171100258827209e-01 -8.3287298679351807e-01
+ <_>
+
+ 0 -1 229 4.4849000871181488e-02
+
+ -3.9633199572563171e-01 4.5662000775337219e-01
+ <_>
+
+ 0 -1 230 5.7195000350475311e-02
+
+ 2.1023899316787720e-01 -1.5004800558090210e+00
+ <_>
+
+ 0 -1 231 -1.1342000216245651e-02
+
+ 4.4071298837661743e-01 -3.8653799891471863e-01
+ <_>
+
+ 0 -1 232 -1.2004000134766102e-02
+
+ 9.3954598903656006e-01 -1.0589499771595001e-01
+ <_>
+
+ 0 -1 233 2.2515999153256416e-02
+
+ 9.4480002298951149e-03 -1.6799509525299072e+00
+ <_>
+
+ 0 -1 234 -1.9809000194072723e-02
+
+ -1.0133639574050903e+00 2.4146600067615509e-01
+ <_>
+
+ 0 -1 235 1.5891000628471375e-02
+
+ -3.7507599592208862e-01 4.6614098548889160e-01
+ <_>
+
+ 0 -1 236 -9.1420002281665802e-03
+
+ -8.0484098196029663e-01 1.7816999554634094e-01
+ <_>
+
+ 0 -1 237 -4.4740000739693642e-03
+
+ -1.0562069416046143e+00 7.3305003345012665e-02
+ <_>
+
+ 0 -1 238 1.2742500007152557e-01
+
+ 2.0165599882602692e-01 -1.5467929840087891e+00
+ <_>
+
+ 0 -1 239 4.7703001648187637e-02
+
+ -3.7937799096107483e-01 3.7885999679565430e-01
+ <_>
+
+ 0 -1 240 5.3608000278472900e-02
+
+ 2.1220499277114868e-01 -1.2399710416793823e+00
+ <_>
+
+ 0 -1 241 -3.9680998772382736e-02
+
+ -1.0257550477981567e+00 5.1282998174428940e-02
+ <_>
+
+ 0 -1 242 -6.7327000200748444e-02
+
+ -1.0304750204086304e+00 2.3005299270153046e-01
+ <_>
+
+ 0 -1 243 1.3337600231170654e-01
+
+ -2.0869000256061554e-01 1.2272510528564453e+00
+ <_>
+
+ 0 -1 244 -2.0919300615787506e-01
+
+ 8.7929898500442505e-01 -4.4254999607801437e-02
+ <_>
+
+ 0 -1 245 -6.5589003264904022e-02
+
+ 1.0443429946899414e+00 -2.1682099997997284e-01
+ <_>
+
+ 0 -1 246 6.1882998794317245e-02
+
+ 1.3798199594020844e-01 -1.9009059667587280e+00
+ <_>
+
+ 0 -1 247 -2.5578999891877174e-02
+
+ -1.6607600450515747e+00 5.8439997956156731e-03
+ <_>
+
+ 0 -1 248 -3.4827001392841339e-02
+
+ 7.9940402507781982e-01 -8.2406997680664062e-02
+ <_>
+
+ 0 -1 249 -1.8209999427199364e-02
+
+ -9.6073997020721436e-01 6.6320002079010010e-02
+ <_>
+
+ 0 -1 250 1.5070999972522259e-02
+
+ 1.9899399578571320e-01 -7.6433002948760986e-01
+ <_>
+ 72
+ -3.8832089900970459e+00
+
+ <_>
+
+ 0 -1 251 4.6324998140335083e-02
+
+ -1.0362670421600342e+00 8.2201498746871948e-01
+ <_>
+
+ 0 -1 252 1.5406999737024307e-02
+
+ -1.2327589988708496e+00 2.9647698998451233e-01
+ <_>
+
+ 0 -1 253 1.2808999978005886e-02
+
+ -7.5852298736572266e-01 5.7985502481460571e-01
+ <_>
+
+ 0 -1 254 4.9150999635457993e-02
+
+ -3.8983899354934692e-01 8.9680302143096924e-01
+ <_>
+
+ 0 -1 255 1.2621000409126282e-02
+
+ -7.1799302101135254e-01 5.0440901517868042e-01
+ <_>
+
+ 0 -1 256 -1.8768999725580215e-02
+
+ 5.5147600173950195e-01 -7.0555400848388672e-01
+ <_>
+
+ 0 -1 257 4.1965000331401825e-02
+
+ -4.4782099127769470e-01 7.0985502004623413e-01
+ <_>
+
+ 0 -1 258 -5.1401998847723007e-02
+
+ -1.0932120084762573e+00 2.6701900362968445e-01
+ <_>
+
+ 0 -1 259 -7.0960998535156250e-02
+
+ 8.3618402481079102e-01 -3.8318100571632385e-01
+ <_>
+
+ 0 -1 260 1.6745999455451965e-02
+
+ -2.5733101367950439e-01 2.5966501235961914e-01
+ <_>
+
+ 0 -1 261 -6.2400000169873238e-03
+
+ 3.1631499528884888e-01 -5.8796900510787964e-01
+ <_>
+
+ 0 -1 262 -3.9397999644279480e-02
+
+ -1.0491210222244263e+00 1.6822400689125061e-01
+ <_>
+
+ 0 -1 263 0.
+
+ 1.6144199669361115e-01 -8.7876898050308228e-01
+ <_>
+
+ 0 -1 264 -2.2307999432086945e-02
+
+ -6.9053500890731812e-01 2.3607000708580017e-01
+ <_>
+
+ 0 -1 265 1.8919999711215496e-03
+
+ 2.4989199638366699e-01 -5.6583297252655029e-01
+ <_>
+
+ 0 -1 266 1.0730000212788582e-03
+
+ -5.0415802001953125e-01 3.8374501466751099e-01
+ <_>
+
+ 0 -1 267 3.9230998605489731e-02
+
+ 4.2619001120328903e-02 -1.3875889778137207e+00
+ <_>
+
+ 0 -1 268 6.2238000333309174e-02
+
+ 1.4119400084018707e-01 -1.0688860416412354e+00
+ <_>
+
+ 0 -1 269 2.1399999968707561e-03
+
+ -8.9622402191162109e-01 1.9796399772167206e-01
+ <_>
+
+ 0 -1 270 9.1800000518560410e-04
+
+ -4.5337298512458801e-01 4.3532699346542358e-01
+ <_>
+
+ 0 -1 271 -6.9169998168945312e-03
+
+ 3.3822798728942871e-01 -4.4793000817298889e-01
+ <_>
+
+ 0 -1 272 -2.3866999894380569e-02
+
+ -7.8908598423004150e-01 2.2511799633502960e-01
+ <_>
+
+ 0 -1 273 -1.0262800008058548e-01
+
+ -2.2831439971923828e+00 -5.3960001096129417e-03
+ <_>
+
+ 0 -1 274 -9.5239998772740364e-03
+
+ 3.9346700906753540e-01 -5.2242201566696167e-01
+ <_>
+
+ 0 -1 275 3.9877001196146011e-02
+
+ 3.2799001783132553e-02 -1.5079489946365356e+00
+ <_>
+
+ 0 -1 276 -1.3144999742507935e-02
+
+ -1.0839990377426147e+00 1.8482400476932526e-01
+ <_>
+
+ 0 -1 277 -5.0590999424457550e-02
+
+ -1.8822289705276489e+00 -2.2199999075382948e-03
+ <_>
+
+ 0 -1 278 2.4917000904679298e-02
+
+ 1.4593400061130524e-01 -2.2196519374847412e+00
+ <_>
+
+ 0 -1 279 -7.6370001770555973e-03
+
+ -1.0164569616317749e+00 5.8797001838684082e-02
+ <_>
+
+ 0 -1 280 4.2911998927593231e-02
+
+ 1.5443000197410583e-01 -1.1843889951705933e+00
+ <_>
+
+ 0 -1 281 2.3000000510364771e-04
+
+ -7.7305799722671509e-01 1.2189900130033493e-01
+ <_>
+
+ 0 -1 282 9.0929996222257614e-03
+
+ -1.1450099945068359e-01 7.1091300249099731e-01
+ <_>
+
+ 0 -1 283 1.1145000346004963e-02
+
+ 7.0000998675823212e-02 -1.0534820556640625e+00
+ <_>
+
+ 0 -1 284 -5.2453000098466873e-02
+
+ -1.7594360113143921e+00 1.9523799419403076e-01
+ <_>
+
+ 0 -1 285 -2.3020699620246887e-01
+
+ 9.5840299129486084e-01 -2.5045698881149292e-01
+ <_>
+
+ 0 -1 286 -1.6365999355912209e-02
+
+ 4.6731901168823242e-01 -2.1108399331569672e-01
+ <_>
+
+ 0 -1 287 -1.7208000645041466e-02
+
+ 7.0835697650909424e-01 -2.8018298745155334e-01
+ <_>
+
+ 0 -1 288 -3.6648001521825790e-02
+
+ -1.1013339757919312e+00 2.4341100454330444e-01
+ <_>
+
+ 0 -1 289 -1.0304999537765980e-02
+
+ -1.0933129787445068e+00 5.6258998811244965e-02
+ <_>
+
+ 0 -1 290 -1.3713000342249870e-02
+
+ -2.6438099145889282e-01 1.9821000099182129e-01
+ <_>
+
+ 0 -1 291 2.9308000579476357e-02
+
+ -2.2142399847507477e-01 1.0525950193405151e+00
+ <_>
+
+ 0 -1 292 2.4077000096440315e-02
+
+ 1.8485699594020844e-01 -1.7203969955444336e+00
+ <_>
+
+ 0 -1 293 6.1280000954866409e-03
+
+ -9.2721498012542725e-01 5.8752998709678650e-02
+ <_>
+
+ 0 -1 294 -2.2377999499440193e-02
+
+ 1.9646559953689575e+00 2.7785999700427055e-02
+ <_>
+
+ 0 -1 295 -7.0440000854432583e-03
+
+ 2.1427600085735321e-01 -4.8407599329948425e-01
+ <_>
+
+ 0 -1 296 -4.0603000670671463e-02
+
+ -1.1754349470138550e+00 1.6061200201511383e-01
+ <_>
+
+ 0 -1 297 -2.4466000497341156e-02
+
+ -1.1239900588989258e+00 4.1110001504421234e-02
+ <_>
+
+ 0 -1 298 2.5309999473392963e-03
+
+ -1.7169700562953949e-01 3.2178801298141479e-01
+ <_>
+
+ 0 -1 299 -1.9588999450206757e-02
+
+ 8.2720202207565308e-01 -2.6376700401306152e-01
+ <_>
+
+ 0 -1 300 -2.9635999351739883e-02
+
+ -1.1524770259857178e+00 1.4999300241470337e-01
+ <_>
+
+ 0 -1 301 -1.5030000358819962e-02
+
+ -1.0491830110549927e+00 4.0160998702049255e-02
+ <_>
+
+ 0 -1 302 -6.0715001076459885e-02
+
+ -1.0903840065002441e+00 1.5330800414085388e-01
+ <_>
+
+ 0 -1 303 -1.2790000066161156e-02
+
+ 4.2248600721359253e-01 -4.2399200797080994e-01
+ <_>
+
+ 0 -1 304 -2.0247999578714371e-02
+
+ -9.1866999864578247e-01 1.8485699594020844e-01
+ <_>
+
+ 0 -1 305 -3.0683999881148338e-02
+
+ -1.5958670377731323e+00 2.5760000571608543e-03
+ <_>
+
+ 0 -1 306 -2.0718000829219818e-02
+
+ -6.6299998760223389e-01 3.1037199497222900e-01
+ <_>
+
+ 0 -1 307 -1.7290000105276704e-03
+
+ 1.9183400273323059e-01 -6.5084999799728394e-01
+ <_>
+
+ 0 -1 308 -3.1394001096487045e-02
+
+ -6.3643002510070801e-01 1.5408399701118469e-01
+ <_>
+
+ 0 -1 309 1.9003000110387802e-02
+
+ -1.8919399380683899e-01 1.5294510126113892e+00
+ <_>
+
+ 0 -1 310 6.1769997701048851e-03
+
+ -1.0597900301218033e-01 6.4859598875045776e-01
+ <_>
+
+ 0 -1 311 -1.0165999643504620e-02
+
+ -1.0802700519561768e+00 3.7176001816987991e-02
+ <_>
+
+ 0 -1 312 -1.4169999631121755e-03
+
+ 3.4157499670982361e-01 -9.7737997770309448e-02
+ <_>
+
+ 0 -1 313 -4.0799998678267002e-03
+
+ 4.7624599933624268e-01 -3.4366300702095032e-01
+ <_>
+
+ 0 -1 314 -4.4096998870372772e-02
+
+ 9.7634297609329224e-01 -1.9173000007867813e-02
+ <_>
+
+ 0 -1 315 -6.0669999569654465e-02
+
+ -2.1752851009368896e+00 -2.8925999999046326e-02
+ <_>
+
+ 0 -1 316 -3.2931998372077942e-02
+
+ -6.4383101463317871e-01 1.6494099795818329e-01
+ <_>
+
+ 0 -1 317 -1.4722800254821777e-01
+
+ -1.4745830297470093e+00 2.5839998852461576e-03
+ <_>
+
+ 0 -1 318 -1.1930000036954880e-02
+
+ 4.2441400885581970e-01 -1.7712600529193878e-01
+ <_>
+
+ 0 -1 319 1.4517900347709656e-01
+
+ 2.5444999337196350e-02 -1.2779400348663330e+00
+ <_>
+
+ 0 -1 320 5.1447998732328415e-02
+
+ 1.5678399801254272e-01 -1.5188430547714233e+00
+ <_>
+
+ 0 -1 321 3.1479999888688326e-03
+
+ -4.0424400568008423e-01 3.2429701089859009e-01
+ <_>
+
+ 0 -1 322 -4.3600000441074371e-02
+
+ -1.9932260513305664e+00 1.5018600225448608e-01
+ <_>
+ 83
+ -3.8424909114837646e+00
+
+ <_>
+
+ 0 -1 323 1.2899599969387054e-01
+
+ -6.2161999940872192e-01 1.1116520166397095e+00
+ <_>
+
+ 0 -1 324 -9.1261997818946838e-02
+
+ 1.0143059492111206e+00 -6.1335200071334839e-01
+ <_>
+
+ 0 -1 325 1.4271999709308147e-02
+
+ -1.0261659622192383e+00 3.9779999852180481e-01
+ <_>
+
+ 0 -1 326 3.2889999449253082e-02
+
+ -1.1386079788208008e+00 2.8690800070762634e-01
+ <_>
+
+ 0 -1 327 1.2590000405907631e-02
+
+ -5.6645601987838745e-01 4.5172399282455444e-01
+ <_>
+
+ 0 -1 328 1.4661000110208988e-02
+
+ 3.0505999922752380e-01 -6.8129599094390869e-01
+ <_>
+
+ 0 -1 329 -3.3555999398231506e-02
+
+ -1.7208939790725708e+00 6.1439000070095062e-02
+ <_>
+
+ 0 -1 330 1.4252699911594391e-01
+
+ 2.3192200064659119e-01 -1.7297149896621704e+00
+ <_>
+
+ 0 -1 331 -6.2079997733235359e-03
+
+ -1.2163300514221191e+00 1.2160199880599976e-01
+ <_>
+
+ 0 -1 332 1.8178999423980713e-02
+
+ 3.2553699612617493e-01 -8.1003999710083008e-01
+ <_>
+
+ 0 -1 333 2.5036999955773354e-02
+
+ -3.1698799133300781e-01 6.7361402511596680e-01
+ <_>
+
+ 0 -1 334 4.6560999006032944e-02
+
+ -1.1089800298213959e-01 8.4082502126693726e-01
+ <_>
+
+ 0 -1 335 -8.9999996125698090e-03
+
+ 3.9574500918388367e-01 -4.7624599933624268e-01
+ <_>
+
+ 0 -1 336 4.0805999189615250e-02
+
+ -1.8000000272877514e-04 9.4570702314376831e-01
+ <_>
+
+ 0 -1 337 -3.4221999347209930e-02
+
+ 7.5206297636032104e-01 -3.1531500816345215e-01
+ <_>
+
+ 0 -1 338 -3.9716001600027084e-02
+
+ -8.3139598369598389e-01 1.7744399607181549e-01
+ <_>
+
+ 0 -1 339 2.5170000735670328e-03
+
+ -5.9377998113632202e-01 2.4657000601291656e-01
+ <_>
+
+ 0 -1 340 2.7428999543190002e-02
+
+ 1.5998399257659912e-01 -4.2781999707221985e-01
+ <_>
+
+ 0 -1 341 3.4986000508069992e-02
+
+ 3.5055998712778091e-02 -1.5988600254058838e+00
+ <_>
+
+ 0 -1 342 4.4970000162720680e-03
+
+ -5.2034300565719604e-01 3.7828299403190613e-01
+ <_>
+
+ 0 -1 343 2.7699999045580626e-03
+
+ -5.3182601928710938e-01 2.4951000511646271e-01
+ <_>
+
+ 0 -1 344 3.5174001008272171e-02
+
+ 1.9983400404453278e-01 -1.4446129798889160e+00
+ <_>
+
+ 0 -1 345 2.5970999151468277e-02
+
+ 4.4426999986171722e-02 -1.3622980117797852e+00
+ <_>
+
+ 0 -1 346 -1.5783999115228653e-02
+
+ -9.1020399332046509e-01 2.7190300822257996e-01
+ <_>
+
+ 0 -1 347 -7.5880000367760658e-03
+
+ 9.2064999043941498e-02 -8.1628900766372681e-01
+ <_>
+
+ 0 -1 348 2.0754000172019005e-02
+
+ 2.1185700595378876e-01 -7.4729001522064209e-01
+ <_>
+
+ 0 -1 349 5.9829000383615494e-02
+
+ -2.7301099896430969e-01 8.0923300981521606e-01
+ <_>
+
+ 0 -1 350 3.9039000868797302e-02
+
+ -1.0432299971580505e-01 8.6226201057434082e-01
+ <_>
+
+ 0 -1 351 2.1665999665856361e-02
+
+ 6.2709003686904907e-02 -9.8894298076629639e-01
+ <_>
+
+ 0 -1 352 -2.7496999129652977e-02
+
+ -9.2690998315811157e-01 1.5586300194263458e-01
+ <_>
+
+ 0 -1 353 1.0462000034749508e-02
+
+ 1.3418099284172058e-01 -7.0386397838592529e-01
+ <_>
+
+ 0 -1 354 2.4870999157428741e-02
+
+ 1.9706700742244720e-01 -4.0263301134109497e-01
+ <_>
+
+ 0 -1 355 -1.6036000102758408e-02
+
+ -1.1409829854965210e+00 7.3997996747493744e-02
+ <_>
+
+ 0 -1 356 4.8627000302076340e-02
+
+ 1.6990399360656738e-01 -7.2152197360992432e-01
+ <_>
+
+ 0 -1 357 1.2619999470189214e-03
+
+ -4.7389799356460571e-01 2.6254999637603760e-01
+ <_>
+
+ 0 -1 358 -8.8035002350807190e-02
+
+ -2.1606519222259521e+00 1.4554800093173981e-01
+ <_>
+
+ 0 -1 359 1.8356999382376671e-02
+
+ 4.4750999659299850e-02 -1.0766370296478271e+00
+ <_>
+
+ 0 -1 360 3.5275001078844070e-02
+
+ -3.2919000834226608e-02 1.2153890132904053e+00
+ <_>
+
+ 0 -1 361 -2.0392900705337524e-01
+
+ -1.3187999725341797e+00 1.5503999777138233e-02
+ <_>
+
+ 0 -1 362 -1.6619000583887100e-02
+
+ 3.6850199103355408e-01 -1.5283699333667755e-01
+ <_>
+
+ 0 -1 363 3.7739001214504242e-02
+
+ -2.5727799534797668e-01 7.0655298233032227e-01
+ <_>
+
+ 0 -1 364 2.2720000706613064e-03
+
+ -7.7602997422218323e-02 3.3367800712585449e-01
+ <_>
+
+ 0 -1 365 -1.4802999794483185e-02
+
+ -7.8524798154830933e-01 7.6934002339839935e-02
+ <_>
+
+ 0 -1 366 -4.8319000750780106e-02
+
+ 1.7022320032119751e+00 4.9722000956535339e-02
+ <_>
+
+ 0 -1 367 -2.9539000242948532e-02
+
+ 7.7670699357986450e-01 -2.4534299969673157e-01
+ <_>
+
+ 0 -1 368 -4.6169001609086990e-02
+
+ -1.4922779798507690e+00 1.2340000271797180e-01
+ <_>
+
+ 0 -1 369 -2.8064999729394913e-02
+
+ -2.1345369815826416e+00 -2.5797000154852867e-02
+ <_>
+
+ 0 -1 370 -5.7339998893439770e-03
+
+ 5.6982600688934326e-01 -1.2056600302457809e-01
+ <_>
+
+ 0 -1 371 -1.0111000388860703e-02
+
+ 6.7911398410797119e-01 -2.6638001203536987e-01
+ <_>
+
+ 0 -1 372 1.1359999887645245e-02
+
+ 2.4789799749851227e-01 -6.4493000507354736e-01
+ <_>
+
+ 0 -1 373 5.1809001713991165e-02
+
+ 1.4716000296175480e-02 -1.2395579814910889e+00
+ <_>
+
+ 0 -1 374 3.3291999250650406e-02
+
+ -8.2559995353221893e-03 1.0168470144271851e+00
+ <_>
+
+ 0 -1 375 -1.4494000002741814e-02
+
+ 4.5066800713539124e-01 -3.6250999569892883e-01
+ <_>
+
+ 0 -1 376 -3.4221999347209930e-02
+
+ -9.5292502641677856e-01 2.0684599876403809e-01
+ <_>
+
+ 0 -1 377 -8.0654002726078033e-02
+
+ -2.0139501094818115e+00 -2.3084999993443489e-02
+ <_>
+
+ 0 -1 378 -8.9399999706074595e-04
+
+ 3.9572000503540039e-01 -2.9351300001144409e-01
+ <_>
+
+ 0 -1 379 9.7162000834941864e-02
+
+ -2.4980300664901733e-01 1.0859220027923584e+00
+ <_>
+
+ 0 -1 380 3.6614000797271729e-02
+
+ -5.7844001799821854e-02 1.2162159681320190e+00
+ <_>
+
+ 0 -1 381 5.1693998277187347e-02
+
+ 4.3062999844551086e-02 -1.0636160373687744e+00
+ <_>
+
+ 0 -1 382 -2.4557000026106834e-02
+
+ -4.8946800827980042e-01 1.7182900011539459e-01
+ <_>
+
+ 0 -1 383 3.2736799120903015e-01
+
+ -2.9688599705696106e-01 5.1798301935195923e-01
+ <_>
+
+ 0 -1 384 7.6959999278187752e-03
+
+ -5.9805899858474731e-01 2.4803200364112854e-01
+ <_>
+
+ 0 -1 385 1.6172200441360474e-01
+
+ -2.9613999649882317e-02 -2.3162529468536377e+00
+ <_>
+
+ 0 -1 386 -4.7889999113976955e-03
+
+ 3.7457901239395142e-01 -3.2779198884963989e-01
+ <_>
+
+ 0 -1 387 -1.8402999266982079e-02
+
+ -9.9692702293395996e-01 7.2948001325130463e-02
+ <_>
+
+ 0 -1 388 7.7665001153945923e-02
+
+ 1.4175699651241302e-01 -1.7238730192184448e+00
+ <_>
+
+ 0 -1 389 1.8921000882983208e-02
+
+ -2.1273100376129150e-01 1.0165189504623413e+00
+ <_>
+
+ 0 -1 390 -7.9397998750209808e-02
+
+ -1.3164349794387817e+00 1.4981999993324280e-01
+ <_>
+
+ 0 -1 391 -6.8037003278732300e-02
+
+ 4.9421998858451843e-01 -2.9091000556945801e-01
+ <_>
+
+ 0 -1 392 -6.1010001227259636e-03
+
+ 4.2430499196052551e-01 -3.3899301290512085e-01
+ <_>
+
+ 0 -1 393 3.1927000731229782e-02
+
+ -3.1046999618411064e-02 -2.3459999561309814e+00
+ <_>
+
+ 0 -1 394 -2.9843999072909355e-02
+
+ -7.8989601135253906e-01 1.5417699515819550e-01
+ <_>
+
+ 0 -1 395 -8.0541998147964478e-02
+
+ -2.2509229183197021e+00 -3.0906999483704567e-02
+ <_>
+
+ 0 -1 396 3.8109999150037766e-03
+
+ -2.5577300786972046e-01 2.3785500228404999e-01
+ <_>
+
+ 0 -1 397 3.3647000789642334e-02
+
+ -2.2541399300098419e-01 9.2307400703430176e-01
+ <_>
+
+ 0 -1 398 8.2809999585151672e-03
+
+ -2.8896200656890869e-01 3.1046199798583984e-01
+ <_>
+
+ 0 -1 399 1.0104399919509888e-01
+
+ -3.4864000976085663e-02 -2.7102620601654053e+00
+ <_>
+
+ 0 -1 400 -1.0009000077843666e-02
+
+ 5.9715402126312256e-01 -3.3831000328063965e-02
+ <_>
+
+ 0 -1 401 7.1919998154044151e-03
+
+ -4.7738000750541687e-01 2.2686000168323517e-01
+ <_>
+
+ 0 -1 402 2.4969000369310379e-02
+
+ 2.2877700626850128e-01 -1.0435529947280884e+00
+ <_>
+
+ 0 -1 403 2.7908000349998474e-01
+
+ -2.5818100571632385e-01 7.6780498027801514e-01
+ <_>
+
+ 0 -1 404 -4.4213000684976578e-02
+
+ -5.9798002243041992e-01 2.8039899468421936e-01
+ <_>
+
+ 0 -1 405 -1.4136999845504761e-02
+
+ 7.0987302064895630e-01 -2.5645199418067932e-01
+ <_>
+ 91
+ -3.6478610038757324e+00
+
+ <_>
+
+ 0 -1 406 1.3771200180053711e-01
+
+ -5.5870598554611206e-01 1.0953769683837891e+00
+ <_>
+
+ 0 -1 407 3.4460999071598053e-02
+
+ -7.1171897649765015e-01 5.2899599075317383e-01
+ <_>
+
+ 0 -1 408 1.8580000847578049e-02
+
+ -1.1157519817352295e+00 4.0593999624252319e-01
+ <_>
+
+ 0 -1 409 2.5041999295353889e-02
+
+ -4.0892499685287476e-01 7.4129998683929443e-01
+ <_>
+
+ 0 -1 410 5.7179000228643417e-02
+
+ -3.8054299354553223e-01 7.3647701740264893e-01
+ <_>
+
+ 0 -1 411 1.4932000078260899e-02
+
+ -6.9945502281188965e-01 3.7950998544692993e-01
+ <_>
+
+ 0 -1 412 8.8900001719594002e-03
+
+ -5.4558598995208740e-01 3.6332499980926514e-01
+ <_>
+
+ 0 -1 413 3.0435999855399132e-02
+
+ -1.0124599933624268e-01 7.9585897922515869e-01
+ <_>
+
+ 0 -1 414 -4.4160000979900360e-02
+
+ 8.4410899877548218e-01 -3.2976400852203369e-01
+ <_>
+
+ 0 -1 415 1.8461000174283981e-02
+
+ 2.6326599717140198e-01 -9.6736502647399902e-01
+ <_>
+
+ 0 -1 416 1.0614999569952488e-02
+
+ 1.5251900255680084e-01 -1.0589870214462280e+00
+ <_>
+
+ 0 -1 417 -4.5974001288414001e-02
+
+ -1.9918340444564819e+00 1.3629099726676941e-01
+ <_>
+
+ 0 -1 418 8.2900002598762512e-02
+
+ -3.2037198543548584e-01 6.0304200649261475e-01
+ <_>
+
+ 0 -1 419 -8.9130001142621040e-03
+
+ 5.9586602449417114e-01 -2.1139599382877350e-01
+ <_>
+
+ 0 -1 420 4.2814001441001892e-02
+
+ 2.2925000637769699e-02 -1.4679330587387085e+00
+ <_>
+
+ 0 -1 421 -8.7139997631311417e-03
+
+ -4.3989500403404236e-01 2.0439699292182922e-01
+ <_>
+
+ 0 -1 422 -4.3390002101659775e-03
+
+ -8.9066797494888306e-01 1.0469999909400940e-01
+ <_>
+
+ 0 -1 423 8.0749997869133949e-03
+
+ 2.1164199709892273e-01 -4.0231600403785706e-01
+ <_>
+
+ 0 -1 424 9.6739001572132111e-02
+
+ 1.3319999910891056e-02 -1.6085360050201416e+00
+ <_>
+
+ 0 -1 425 -3.0536999925971031e-02
+
+ 1.0063740015029907e+00 -1.3413299620151520e-01
+ <_>
+
+ 0 -1 426 -6.0855999588966370e-02
+
+ -1.4689979553222656e+00 9.4240000471472740e-03
+ <_>
+
+ 0 -1 427 -3.8162000477313995e-02
+
+ -8.1636399030685425e-01 2.6171201467514038e-01
+ <_>
+
+ 0 -1 428 -9.6960002556443214e-03
+
+ 1.1561699956655502e-01 -7.1693199872970581e-01
+ <_>
+
+ 0 -1 429 4.8902999609708786e-02
+
+ 1.3050499558448792e-01 -1.6448370218276978e+00
+ <_>
+
+ 0 -1 430 -4.1611999273300171e-02
+
+ -1.1795840263366699e+00 2.5017000734806061e-02
+ <_>
+
+ 0 -1 431 -2.0188000053167343e-02
+
+ 6.3188201189041138e-01 -1.0490400344133377e-01
+ <_>
+
+ 0 -1 432 -9.7900000400841236e-04
+
+ 1.8507799506187439e-01 -5.3565901517868042e-01
+ <_>
+
+ 0 -1 433 -3.3622000366449356e-02
+
+ -9.3127602338790894e-01 2.0071500539779663e-01
+ <_>
+
+ 0 -1 434 1.9455999135971069e-02
+
+ 3.8029000163078308e-02 -1.0112210512161255e+00
+ <_>
+
+ 0 -1 435 -3.1800000579096377e-04
+
+ 3.6457699537277222e-01 -2.7610900998115540e-01
+ <_>
+
+ 0 -1 436 -3.8899999344721437e-04
+
+ 1.9665899872779846e-01 -5.3410500288009644e-01
+ <_>
+
+ 0 -1 437 -9.3496002256870270e-02
+
+ -1.6772350072860718e+00 2.0727099478244781e-01
+ <_>
+
+ 0 -1 438 -7.7877998352050781e-02
+
+ -3.0760629177093506e+00 -3.5803999751806259e-02
+ <_>
+
+ 0 -1 439 1.6947999596595764e-02
+
+ 2.1447399258613586e-01 -7.1376299858093262e-01
+ <_>
+
+ 0 -1 440 -2.1459000185132027e-02
+
+ -1.1468060016632080e+00 1.5855999663472176e-02
+ <_>
+
+ 0 -1 441 -1.2865999713540077e-02
+
+ 8.3812397718429565e-01 -6.5944001078605652e-02
+ <_>
+
+ 0 -1 442 7.8220004215836525e-03
+
+ -2.8026801347732544e-01 7.9376900196075439e-01
+ <_>
+
+ 0 -1 443 1.0294400155544281e-01
+
+ 1.7832300066947937e-01 -6.8412202596664429e-01
+ <_>
+
+ 0 -1 444 -3.7487998604774475e-02
+
+ 9.6189999580383301e-01 -2.1735599637031555e-01
+ <_>
+
+ 0 -1 445 2.5505999103188515e-02
+
+ 1.0103999637067318e-02 1.2461110353469849e+00
+ <_>
+
+ 0 -1 446 6.6700001480057836e-04
+
+ -5.3488200902938843e-01 1.4746299386024475e-01
+ <_>
+
+ 0 -1 447 -2.8867900371551514e-01
+
+ 8.2172799110412598e-01 -1.4948000200092793e-02
+ <_>
+
+ 0 -1 448 9.1294996440410614e-02
+
+ -1.9605399668216705e-01 1.0803170204162598e+00
+ <_>
+
+ 0 -1 449 1.2056600302457809e-01
+
+ -2.3848999291658401e-02 1.1392610073089600e+00
+ <_>
+
+ 0 -1 450 -7.3775000870227814e-02
+
+ -1.3583840131759644e+00 -4.2039998807013035e-03
+ <_>
+
+ 0 -1 451 -3.3128000795841217e-02
+
+ -6.4483201503753662e-01 2.4142199754714966e-01
+ <_>
+
+ 0 -1 452 -4.3937001377344131e-02
+
+ 8.4285402297973633e-01 -2.0624800026416779e-01
+ <_>
+
+ 0 -1 453 1.8110199272632599e-01
+
+ 1.9212099909782410e-01 -1.2222139835357666e+00
+ <_>
+
+ 0 -1 454 -1.1850999668240547e-02
+
+ -7.2677397727966309e-01 5.2687998861074448e-02
+ <_>
+
+ 0 -1 455 4.5920000411570072e-03
+
+ -3.6305201053619385e-01 2.9223799705505371e-01
+ <_>
+
+ 0 -1 456 7.0620002225041389e-03
+
+ 5.8116000145673752e-02 -6.7161601781845093e-01
+ <_>
+
+ 0 -1 457 -2.3715000599622726e-02
+
+ 4.7142100334167480e-01 1.8580000847578049e-02
+ <_>
+
+ 0 -1 458 -6.7171998322010040e-02
+
+ -1.1331889629364014e+00 2.3780999705195427e-02
+ <_>
+
+ 0 -1 459 -6.5310001373291016e-02
+
+ 9.8253500461578369e-01 2.8362000361084938e-02
+ <_>
+
+ 0 -1 460 2.2791000083088875e-02
+
+ -2.8213700652122498e-01 5.8993399143218994e-01
+ <_>
+
+ 0 -1 461 -1.9037999212741852e-02
+
+ -6.3711500167846680e-01 2.6514598727226257e-01
+ <_>
+
+ 0 -1 462 -6.8689999170601368e-03
+
+ 3.7487301230430603e-01 -3.3232098817825317e-01
+ <_>
+
+ 0 -1 463 -4.0146000683307648e-02
+
+ -1.3048729896545410e+00 1.5724299848079681e-01
+ <_>
+
+ 0 -1 464 -4.0530998259782791e-02
+
+ -2.0458049774169922e+00 -2.6925999671220779e-02
+ <_>
+
+ 0 -1 465 -1.2253999710083008e-02
+
+ 7.7649402618408203e-01 -4.2971000075340271e-02
+ <_>
+
+ 0 -1 466 -2.7219999581575394e-02
+
+ 1.7424400150775909e-01 -4.4600901007652283e-01
+ <_>
+
+ 0 -1 467 -8.8366001844406128e-02
+
+ -1.5036419630050659e+00 1.4289900660514832e-01
+ <_>
+
+ 0 -1 468 -7.9159997403621674e-03
+
+ 2.8666698932647705e-01 -3.7923699617385864e-01
+ <_>
+
+ 0 -1 469 -4.1960000991821289e-02
+
+ 1.3846950531005859e+00 6.5026998519897461e-02
+ <_>
+
+ 0 -1 470 4.5662999153137207e-02
+
+ -2.2452299296855927e-01 7.9521000385284424e-01
+ <_>
+
+ 0 -1 471 -1.4090600609779358e-01
+
+ -1.5879319906234741e+00 1.1359000205993652e-01
+ <_>
+
+ 0 -1 472 -5.9216000139713287e-02
+
+ -1.1945960521697998e+00 -7.1640000678598881e-03
+ <_>
+
+ 0 -1 473 4.3390002101659775e-03
+
+ -1.5528699755668640e-01 4.0664499998092651e-01
+ <_>
+
+ 0 -1 474 -2.0369999110698700e-03
+
+ 2.5927901268005371e-01 -3.8368299603462219e-01
+ <_>
+
+ 0 -1 475 2.7516499161720276e-01
+
+ -8.8497996330261230e-02 7.6787501573562622e-01
+ <_>
+
+ 0 -1 476 -2.6601999998092651e-02
+
+ 7.5024497509002686e-01 -2.2621999680995941e-01
+ <_>
+
+ 0 -1 477 4.0906000882387161e-02
+
+ 1.2158600240945816e-01 -1.4566910266876221e+00
+ <_>
+
+ 0 -1 478 5.5320002138614655e-03
+
+ -3.6611500382423401e-01 2.5968599319458008e-01
+ <_>
+
+ 0 -1 479 3.1879000365734100e-02
+
+ -7.5019001960754395e-02 4.8484799265861511e-01
+ <_>
+
+ 0 -1 480 -4.1482001543045044e-02
+
+ 7.8220397233963013e-01 -2.1992200613021851e-01
+ <_>
+
+ 0 -1 481 -9.6130996942520142e-02
+
+ -8.9456301927566528e-01 1.4680700004100800e-01
+ <_>
+
+ 0 -1 482 -1.1568999849259853e-02
+
+ 8.2714098691940308e-01 -2.0275600254535675e-01
+ <_>
+
+ 0 -1 483 1.8312999978661537e-02
+
+ 1.6367999836802483e-02 2.7306801080703735e-01
+ <_>
+
+ 0 -1 484 -3.4166000783443451e-02
+
+ 1.1307320594787598e+00 -1.8810899555683136e-01
+ <_>
+
+ 0 -1 485 -2.4476999416947365e-02
+
+ -5.7791298627853394e-01 1.5812499821186066e-01
+ <_>
+
+ 0 -1 486 4.8957001417875290e-02
+
+ -2.2564999759197235e-02 -1.6373280286788940e+00
+ <_>
+
+ 0 -1 487 -2.0702999085187912e-02
+
+ -5.4512101411819458e-01 2.4086999893188477e-01
+ <_>
+
+ 0 -1 488 -2.3002000525593758e-02
+
+ -1.2236540317535400e+00 -7.3440000414848328e-03
+ <_>
+
+ 0 -1 489 6.4585000276565552e-02
+
+ 1.4695599675178528e-01 -4.4967499375343323e-01
+ <_>
+
+ 0 -1 490 1.2666000053286552e-02
+
+ -2.7873900532722473e-01 4.3876600265502930e-01
+ <_>
+
+ 0 -1 491 -1.2002999894320965e-02
+
+ -2.4289099872112274e-01 2.5350099802017212e-01
+ <_>
+
+ 0 -1 492 -2.6443999260663986e-02
+
+ -8.5864800214767456e-01 2.6025999337434769e-02
+ <_>
+
+ 0 -1 493 -2.5547999888658524e-02
+
+ 6.9287902116775513e-01 -2.1160000469535589e-03
+ <_>
+
+ 0 -1 494 3.9115000516176224e-02
+
+ -1.6589100658893585e-01 1.5209139585494995e+00
+ <_>
+
+ 0 -1 495 -6.0330000706017017e-03
+
+ 4.3856900930404663e-01 -2.1613700687885284e-01
+ <_>
+
+ 0 -1 496 -3.3936999738216400e-02
+
+ -9.7998398542404175e-01 2.2133000195026398e-02
+ <_>
+ 99
+ -3.8700489997863770e+00
+
+ <_>
+
+ 0 -1 497 4.0672998875379562e-02
+
+ -9.0474700927734375e-01 6.4410597085952759e-01
+ <_>
+
+ 0 -1 498 2.5609999895095825e-02
+
+ -7.9216998815536499e-01 5.7489997148513794e-01
+ <_>
+
+ 0 -1 499 1.9959500432014465e-01
+
+ -3.0099600553512573e-01 1.3143850564956665e+00
+ <_>
+
+ 0 -1 500 1.2404999695718288e-02
+
+ -8.9882999658584595e-01 2.9205799102783203e-01
+ <_>
+
+ 0 -1 501 3.9207998663187027e-02
+
+ -4.1955199837684631e-01 5.3463298082351685e-01
+ <_>
+
+ 0 -1 502 -3.0843999236822128e-02
+
+ 4.5793399214744568e-01 -4.4629099965095520e-01
+ <_>
+
+ 0 -1 503 -3.5523001104593277e-02
+
+ 9.1310501098632812e-01 -2.7373200654983521e-01
+ <_>
+
+ 0 -1 504 -6.1650000512599945e-02
+
+ -1.4697799682617188e+00 2.0364099740982056e-01
+ <_>
+
+ 0 -1 505 -1.1739999987185001e-02
+
+ -1.0482879877090454e+00 6.7801997065544128e-02
+ <_>
+
+ 0 -1 506 6.6933996975421906e-02
+
+ 2.9274499416351318e-01 -5.2282899618148804e-01
+ <_>
+
+ 0 -1 507 -2.0631000399589539e-02
+
+ -1.2855139970779419e+00 4.4550999999046326e-02
+ <_>
+
+ 0 -1 508 -2.2357000038027763e-02
+
+ -8.5753798484802246e-01 1.8434000015258789e-01
+ <_>
+
+ 0 -1 509 1.1500000255182385e-03
+
+ 1.6405500471591949e-01 -6.9125002622604370e-01
+ <_>
+
+ 0 -1 510 3.5872999578714371e-02
+
+ 1.5756499767303467e-01 -8.4262597560882568e-01
+ <_>
+
+ 0 -1 511 3.0659999698400497e-02
+
+ 2.1637000143527985e-02 -1.3634690046310425e+00
+ <_>
+
+ 0 -1 512 5.5559999309480190e-03
+
+ -1.6737000644207001e-01 2.5888401269912720e-01
+ <_>
+
+ 0 -1 513 -6.1160000041127205e-03
+
+ -9.7271800041198730e-01 6.6100001335144043e-02
+ <_>
+
+ 0 -1 514 -3.0316999182105064e-02
+
+ 9.8474198579788208e-01 -1.6448000445961952e-02
+ <_>
+
+ 0 -1 515 -9.7200004383921623e-03
+
+ 4.7604700922966003e-01 -3.2516700029373169e-01
+ <_>
+
+ 0 -1 516 -5.7126998901367188e-02
+
+ -9.5920699834823608e-01 1.9938200712203979e-01
+ <_>
+
+ 0 -1 517 4.0059997700154781e-03
+
+ -5.2612501382827759e-01 2.2428700327873230e-01
+ <_>
+
+ 0 -1 518 3.3734001219272614e-02
+
+ 1.7070099711418152e-01 -1.0737580060958862e+00
+ <_>
+
+ 0 -1 519 -3.4641999751329422e-02
+
+ -1.1343129873275757e+00 3.6540001630783081e-02
+ <_>
+
+ 0 -1 520 4.6923000365495682e-02
+
+ 2.5832301378250122e-01 -7.1535801887512207e-01
+ <_>
+
+ 0 -1 521 -8.7660001590847969e-03
+
+ 1.9640900194644928e-01 -5.3355097770690918e-01
+ <_>
+
+ 0 -1 522 6.5627999603748322e-02
+
+ -5.1194999366998672e-02 9.7610700130462646e-01
+ <_>
+
+ 0 -1 523 -4.4165000319480896e-02
+
+ 1.0631920099258423e+00 -2.3462599515914917e-01
+ <_>
+
+ 0 -1 524 1.7304999753832817e-02
+
+ -1.8582899868488312e-01 4.5889899134635925e-01
+ <_>
+
+ 0 -1 525 3.3135998994112015e-02
+
+ -2.9381999745965004e-02 -2.6651329994201660e+00
+ <_>
+
+ 0 -1 526 -2.1029999479651451e-02
+
+ 9.9979901313781738e-01 2.4937000125646591e-02
+ <_>
+
+ 0 -1 527 2.9783999547362328e-02
+
+ -2.9605999588966370e-02 -2.1695868968963623e+00
+ <_>
+
+ 0 -1 528 5.5291999131441116e-02
+
+ -7.5599999399855733e-04 7.4651998281478882e-01
+ <_>
+
+ 0 -1 529 -3.3597998321056366e-02
+
+ -1.5274159908294678e+00 1.1060000397264957e-02
+ <_>
+
+ 0 -1 530 1.9602999091148376e-02
+
+ 3.3574998378753662e-02 9.9526202678680420e-01
+ <_>
+
+ 0 -1 531 -2.0787000656127930e-02
+
+ 7.6612901687622070e-01 -2.4670800566673279e-01
+ <_>
+
+ 0 -1 532 3.2536000013351440e-02
+
+ 1.6263400018215179e-01 -6.1134302616119385e-01
+ <_>
+
+ 0 -1 533 -1.0788000188767910e-02
+
+ -9.7839701175689697e-01 2.8969999402761459e-02
+ <_>
+
+ 0 -1 534 -9.9560003727674484e-03
+
+ 4.6145799756050110e-01 -1.3510499894618988e-01
+ <_>
+
+ 0 -1 535 -3.7489999085664749e-03
+
+ 2.5458198785781860e-01 -5.1955598592758179e-01
+ <_>
+
+ 0 -1 536 -4.1779998689889908e-02
+
+ -8.0565100908279419e-01 1.5208500623703003e-01
+ <_>
+
+ 0 -1 537 -3.4221000969409943e-02
+
+ -1.3137799501419067e+00 -3.5800000187009573e-03
+ <_>
+
+ 0 -1 538 1.0130000300705433e-02
+
+ 2.0175799727439880e-01 -6.1339598894119263e-01
+ <_>
+
+ 0 -1 539 -8.9849002659320831e-02
+
+ 9.7632801532745361e-01 -2.0884799957275391e-01
+ <_>
+
+ 0 -1 540 2.6097999885678291e-02
+
+ -1.8807999789714813e-01 4.7705799341201782e-01
+ <_>
+
+ 0 -1 541 -3.7539999466389418e-03
+
+ -6.7980402708053589e-01 1.1288800090551376e-01
+ <_>
+
+ 0 -1 542 3.1973000615835190e-02
+
+ 1.8951700627803802e-01 -1.4967479705810547e+00
+ <_>
+
+ 0 -1 543 1.9332999363541603e-02
+
+ -2.3609900474548340e-01 8.1320500373840332e-01
+ <_>
+
+ 0 -1 544 1.9490000559017062e-03
+
+ 2.4830399453639984e-01 -6.9211997091770172e-02
+ <_>
+
+ 0 -1 545 -4.4146999716758728e-02
+
+ -1.0418920516967773e+00 4.8053000122308731e-02
+ <_>
+
+ 0 -1 546 -4.4681999832391739e-02
+
+ 5.1346302032470703e-01 -7.3799998499453068e-03
+ <_>
+
+ 0 -1 547 -1.0757499933242798e-01
+
+ 1.6202019453048706e+00 -1.8667599558830261e-01
+ <_>
+
+ 0 -1 548 -1.2846800684928894e-01
+
+ 2.9869480133056641e+00 9.5427997410297394e-02
+ <_>
+
+ 0 -1 549 -4.4757999479770660e-02
+
+ 6.0405302047729492e-01 -2.7058699727058411e-01
+ <_>
+
+ 0 -1 550 -4.3990999460220337e-02
+
+ -6.1790502071380615e-01 1.5997199714183807e-01
+ <_>
+
+ 0 -1 551 -1.2268999963998795e-01
+
+ 6.6327202320098877e-01 -2.3636999726295471e-01
+ <_>
+
+ 0 -1 552 -1.9982999190688133e-02
+
+ -1.1228660345077515e+00 1.9616700708866119e-01
+ <_>
+
+ 0 -1 553 -1.5527999959886074e-02
+
+ -1.0770269632339478e+00 2.0693000406026840e-02
+ <_>
+
+ 0 -1 554 -4.8971001058816910e-02
+
+ 8.1168299913406372e-01 -1.7252000048756599e-02
+ <_>
+
+ 0 -1 555 5.5975999683141708e-02
+
+ -2.2529000416398048e-02 -1.7356760501861572e+00
+ <_>
+
+ 0 -1 556 -9.8580000922083855e-03
+
+ 6.7881399393081665e-01 -5.8180000633001328e-02
+ <_>
+
+ 0 -1 557 1.3481000438332558e-02
+
+ 5.7847999036312103e-02 -7.7255302667617798e-01
+ <_>
+
+ 0 -1 558 6.5609999001026154e-03
+
+ -1.3146899640560150e-01 6.7055797576904297e-01
+ <_>
+
+ 0 -1 559 7.1149999275803566e-03
+
+ -3.7880599498748779e-01 3.0978998541831970e-01
+ <_>
+
+ 0 -1 560 4.8159998841583729e-03
+
+ -5.8470398187637329e-01 2.5602099299430847e-01
+ <_>
+
+ 0 -1 561 9.5319999381899834e-03
+
+ -3.0217000842094421e-01 4.1253298521041870e-01
+ <_>
+
+ 0 -1 562 -2.7474999427795410e-02
+
+ 5.9154701232910156e-01 1.7963999882340431e-02
+ <_>
+
+ 0 -1 563 -3.9519999176263809e-02
+
+ 9.6913498640060425e-01 -2.1020300686359406e-01
+ <_>
+
+ 0 -1 564 -3.0658999457955360e-02
+
+ 9.1155898571014404e-01 4.0550000965595245e-02
+ <_>
+
+ 0 -1 565 -1.4680000022053719e-03
+
+ -6.0489797592163086e-01 1.6960899531841278e-01
+ <_>
+
+ 0 -1 566 1.9077600538730621e-01
+
+ 4.3515000492334366e-02 8.1892901659011841e-01
+ <_>
+
+ 0 -1 567 5.1790000870823860e-03
+
+ -9.3617302179336548e-01 2.4937000125646591e-02
+ <_>
+
+ 0 -1 568 2.4126000702381134e-02
+
+ 1.8175500631332397e-01 -3.4185901284217834e-01
+ <_>
+
+ 0 -1 569 -2.6383999735116959e-02
+
+ -1.2912579774856567e+00 -3.4280000254511833e-03
+ <_>
+
+ 0 -1 570 5.4139997810125351e-03
+
+ -4.6291999518871307e-02 2.5269600749015808e-01
+ <_>
+
+ 0 -1 571 5.4216001182794571e-02
+
+ -1.2848000042140484e-02 -1.4304540157318115e+00
+ <_>
+
+ 0 -1 572 2.3799999326001853e-04
+
+ -2.6676699519157410e-01 3.3588299155235291e-01
+ <_>
+
+ 0 -1 573 1.5216999687254429e-02
+
+ -5.1367300748825073e-01 1.3005100190639496e-01
+ <_>
+
+ 0 -1 574 1.7007999122142792e-02
+
+ 4.1575899720191956e-01 -3.1241199374198914e-01
+ <_>
+
+ 0 -1 575 3.0496999621391296e-02
+
+ -2.4820999801158905e-01 7.0828497409820557e-01
+ <_>
+
+ 0 -1 576 6.5430002287030220e-03
+
+ -2.2637000679969788e-01 1.9184599816799164e-01
+ <_>
+
+ 0 -1 577 1.4163999259471893e-01
+
+ 6.5227001905441284e-02 -8.8809502124786377e-01
+ <_>
+
+ 0 -1 578 1.9338000565767288e-02
+
+ 1.8891200423240662e-01 -2.7397701144218445e-01
+ <_>
+
+ 0 -1 579 -1.7324000597000122e-02
+
+ -9.4866698980331421e-01 2.4196999147534370e-02
+ <_>
+
+ 0 -1 580 -6.2069999985396862e-03
+
+ 3.6938399076461792e-01 -1.7494900524616241e-01
+ <_>
+
+ 0 -1 581 -1.6109000891447067e-02
+
+ 9.6159499883651733e-01 -2.0005300641059875e-01
+ <_>
+
+ 0 -1 582 -1.0122500360012054e-01
+
+ -3.0699110031127930e+00 1.1363799870014191e-01
+ <_>
+
+ 0 -1 583 -7.5509999878704548e-03
+
+ 2.2921000421047211e-01 -4.5645099878311157e-01
+ <_>
+
+ 0 -1 584 4.4247999787330627e-02
+
+ -3.1599999056197703e-04 3.9225301146507263e-01
+ <_>
+
+ 0 -1 585 -1.1636000126600266e-01
+
+ 9.5233702659606934e-01 -2.0201599597930908e-01
+ <_>
+
+ 0 -1 586 4.7360002063214779e-03
+
+ -9.9177002906799316e-02 2.0370499789714813e-01
+ <_>
+
+ 0 -1 587 2.2459000349044800e-02
+
+ 8.7280003353953362e-03 -1.0217070579528809e+00
+ <_>
+
+ 0 -1 588 -1.2109000235795975e-02
+
+ 6.4812600612640381e-01 -9.0149000287055969e-02
+ <_>
+
+ 0 -1 589 5.6120000779628754e-02
+
+ -3.6759998649358749e-02 -1.9275590181350708e+00
+ <_>
+
+ 0 -1 590 -8.7379999458789825e-03
+
+ 6.9261300563812256e-01 -6.8374998867511749e-02
+ <_>
+
+ 0 -1 591 6.6399998031556606e-03
+
+ -4.0569800138473511e-01 1.8625700473785400e-01
+ <_>
+
+ 0 -1 592 -1.8131999298930168e-02
+
+ -6.4518201351165771e-01 2.1976399421691895e-01
+ <_>
+
+ 0 -1 593 -2.2718999534845352e-02
+
+ 9.7776198387145996e-01 -1.8654300272464752e-01
+ <_>
+
+ 0 -1 594 1.2705000117421150e-02
+
+ -1.0546600073575974e-01 3.7404099106788635e-01
+ <_>
+
+ 0 -1 595 -1.3682999648153782e-02
+
+ 6.1064100265502930e-01 -2.6881098747253418e-01
+ <_>
+ 115
+ -3.7160909175872803e+00
+
+ <_>
+
+ 0 -1 596 3.1357999891042709e-02
+
+ -1.0183910131454468e+00 5.7528597116470337e-01
+ <_>
+
+ 0 -1 597 9.3050003051757812e-02
+
+ -4.1297501325607300e-01 1.0091199874877930e+00
+ <_>
+
+ 0 -1 598 2.5949999690055847e-02
+
+ -5.8587902784347534e-01 5.6606197357177734e-01
+ <_>
+
+ 0 -1 599 1.6472000628709793e-02
+
+ -9.2857497930526733e-01 3.0924499034881592e-01
+ <_>
+
+ 0 -1 600 -1.8779999809339643e-03
+
+ 1.1951000243425369e-01 -1.1180130243301392e+00
+ <_>
+
+ 0 -1 601 -9.0129999443888664e-03
+
+ -5.7849502563476562e-01 3.3154401183128357e-01
+ <_>
+
+ 0 -1 602 2.2547999396920204e-02
+
+ -3.8325101137161255e-01 5.2462202310562134e-01
+ <_>
+
+ 0 -1 603 -3.7780001759529114e-02
+
+ 1.1790670156478882e+00 -3.4166999161243439e-02
+ <_>
+
+ 0 -1 604 -5.3799999877810478e-03
+
+ -8.6265897750854492e-01 1.1867900192737579e-01
+ <_>
+
+ 0 -1 605 -2.3893000558018684e-02
+
+ -7.4950599670410156e-01 2.1011400222778320e-01
+ <_>
+
+ 0 -1 606 -2.6521999388933182e-02
+
+ 9.2128598690032959e-01 -2.8252801299095154e-01
+ <_>
+
+ 0 -1 607 1.2280000373721123e-02
+
+ 2.6662799715995789e-01 -7.0013600587844849e-01
+ <_>
+
+ 0 -1 608 9.6594996750354767e-02
+
+ -2.8453999757766724e-01 7.3168998956680298e-01
+ <_>
+
+ 0 -1 609 -2.7414999902248383e-02
+
+ -6.1492699384689331e-01 1.5576200187206268e-01
+ <_>
+
+ 0 -1 610 -1.5767000615596771e-02
+
+ 5.7551199197769165e-01 -3.4362199902534485e-01
+ <_>
+
+ 0 -1 611 -2.1100000012665987e-03
+
+ 3.2599699497222900e-01 -1.3008299469947815e-01
+ <_>
+
+ 0 -1 612 1.2006999924778938e-02
+
+ 8.9322999119758606e-02 -9.6025598049163818e-01
+ <_>
+
+ 0 -1 613 -1.5421999618411064e-02
+
+ 3.4449499845504761e-01 -4.6711999177932739e-01
+ <_>
+
+ 0 -1 614 -4.1579999960958958e-03
+
+ 2.3696300387382507e-01 -5.2563297748565674e-01
+ <_>
+
+ 0 -1 615 -2.1185999736189842e-02
+
+ -7.4267697334289551e-01 2.1702000498771667e-01
+ <_>
+
+ 0 -1 616 -1.7077000811696053e-02
+
+ -9.0471798181533813e-01 6.6012002527713776e-02
+ <_>
+
+ 0 -1 617 -4.0849998593330383e-02
+
+ -3.4446600079536438e-01 2.1503700315952301e-01
+ <_>
+
+ 0 -1 618 -8.1930002197623253e-03
+
+ -9.3388599157333374e-01 5.0471000373363495e-02
+ <_>
+
+ 0 -1 619 -1.9238000735640526e-02
+
+ -5.3203701972961426e-01 1.7240600287914276e-01
+ <_>
+
+ 0 -1 620 -4.4192001223564148e-02
+
+ 9.2075002193450928e-01 -2.2148500382900238e-01
+ <_>
+
+ 0 -1 621 -6.2392000108957291e-02
+
+ -7.1053802967071533e-01 1.8323899805545807e-01
+ <_>
+
+ 0 -1 622 -1.0079999919980764e-03
+
+ -8.7063097953796387e-01 5.5330000817775726e-02
+ <_>
+
+ 0 -1 623 2.3870000615715981e-02
+
+ -2.2854200005531311e-01 5.2415597438812256e-01
+ <_>
+
+ 0 -1 624 2.1391000598669052e-02
+
+ -3.0325898528099060e-01 5.5860602855682373e-01
+ <_>
+
+ 0 -1 625 2.0254999399185181e-02
+
+ 2.6901501417160034e-01 -7.0261800289154053e-01
+ <_>
+
+ 0 -1 626 -2.8772000223398209e-02
+
+ -1.1835030317306519e+00 4.6512000262737274e-02
+ <_>
+
+ 0 -1 627 3.4199999645352364e-03
+
+ -5.4652100801467896e-01 2.5962498784065247e-01
+ <_>
+
+ 0 -1 628 5.6983001530170441e-02
+
+ -2.6982900500297546e-01 5.8170700073242188e-01
+ <_>
+
+ 0 -1 629 -9.3892000615596771e-02
+
+ -9.1046398878097534e-01 1.9677700102329254e-01
+ <_>
+
+ 0 -1 630 1.7699999734759331e-02
+
+ -4.4003298878669739e-01 2.1349500119686127e-01
+ <_>
+
+ 0 -1 631 2.2844199836254120e-01
+
+ 2.3605000227689743e-02 7.7171599864959717e-01
+ <_>
+
+ 0 -1 632 -1.8287500739097595e-01
+
+ 7.9228597879409790e-01 -2.4644799530506134e-01
+ <_>
+
+ 0 -1 633 -6.9891996681690216e-02
+
+ 8.0267798900604248e-01 -3.6072000861167908e-02
+ <_>
+
+ 0 -1 634 1.5297000296413898e-02
+
+ -2.0072300732135773e-01 1.1030600070953369e+00
+ <_>
+
+ 0 -1 635 6.7500001750886440e-03
+
+ -4.5967999845743179e-02 7.2094500064849854e-01
+ <_>
+
+ 0 -1 636 -1.5983000397682190e-02
+
+ -9.0357202291488647e-01 4.4987998902797699e-02
+ <_>
+
+ 0 -1 637 1.3088000006973743e-02
+
+ 3.5297098755836487e-01 -3.7710601091384888e-01
+ <_>
+
+ 0 -1 638 1.3061000034213066e-02
+
+ -1.9583599269390106e-01 1.1198940277099609e+00
+ <_>
+
+ 0 -1 639 -3.9907000958919525e-02
+
+ -1.3998429775238037e+00 1.9145099818706512e-01
+ <_>
+
+ 0 -1 640 1.5026999637484550e-02
+
+ 2.3600000422447920e-03 -1.1611249446868896e+00
+ <_>
+
+ 0 -1 641 -2.0517999306321144e-02
+
+ -4.8908099532127380e-01 1.6743400692939758e-01
+ <_>
+
+ 0 -1 642 -2.2359000518918037e-02
+
+ -1.2202980518341064e+00 -1.1975999921560287e-02
+ <_>
+
+ 0 -1 643 -7.9150004312396049e-03
+
+ 3.7228098511695862e-01 -8.5063003003597260e-02
+ <_>
+
+ 0 -1 644 1.5258000232279301e-02
+
+ -2.9412600398063660e-01 5.9406399726867676e-01
+ <_>
+
+ 0 -1 645 -3.1665999442338943e-02
+
+ -1.4395569562911987e+00 1.3578799366950989e-01
+ <_>
+
+ 0 -1 646 -3.0773999169468880e-02
+
+ -2.2545371055603027e+00 -3.3971000462770462e-02
+ <_>
+
+ 0 -1 647 -1.5483000315725803e-02
+
+ 3.7700700759887695e-01 1.5847999602556229e-02
+ <_>
+
+ 0 -1 648 3.5167001187801361e-02
+
+ -2.9446101188659668e-01 5.3159099817276001e-01
+ <_>
+
+ 0 -1 649 -1.7906000837683678e-02
+
+ -9.9788200855255127e-01 1.6235999763011932e-01
+ <_>
+
+ 0 -1 650 -3.1799999997019768e-03
+
+ 4.7657001763582230e-02 -7.5249898433685303e-01
+ <_>
+
+ 0 -1 651 1.5720000490546227e-02
+
+ 1.4873799681663513e-01 -6.5375399589538574e-01
+ <_>
+
+ 0 -1 652 2.9864000156521797e-02
+
+ -1.4952000230550766e-02 -1.2275190353393555e+00
+ <_>
+
+ 0 -1 653 2.9899999499320984e-03
+
+ -1.4263699948787689e-01 4.3272799253463745e-01
+ <_>
+
+ 0 -1 654 8.4749996662139893e-02
+
+ -1.9280999898910522e-02 -1.1946409940719604e+00
+ <_>
+
+ 0 -1 655 -5.8724999427795410e-02
+
+ -1.7328219413757324e+00 1.4374700188636780e-01
+ <_>
+
+ 0 -1 656 4.4755998998880386e-02
+
+ -2.4140599370002747e-01 5.4019999504089355e-01
+ <_>
+
+ 0 -1 657 4.0369000285863876e-02
+
+ 5.7680001482367516e-03 5.6578099727630615e-01
+ <_>
+
+ 0 -1 658 3.7735998630523682e-02
+
+ 3.8180999457836151e-02 -7.9370397329330444e-01
+ <_>
+
+ 0 -1 659 6.0752999037504196e-02
+
+ 7.6453000307083130e-02 1.4813209772109985e+00
+ <_>
+
+ 0 -1 660 -1.9832000136375427e-02
+
+ -1.6971720457077026e+00 -2.7370000258088112e-02
+ <_>
+
+ 0 -1 661 -1.6592699289321899e-01
+
+ 6.2976002693176270e-01 3.1762998551130295e-02
+ <_>
+
+ 0 -1 662 6.9014996290206909e-02
+
+ -3.3463200926780701e-01 3.0076700448989868e-01
+ <_>
+
+ 0 -1 663 1.1358000338077545e-02
+
+ 2.2741499543190002e-01 -3.8224700093269348e-01
+ <_>
+
+ 0 -1 664 1.7000000225380063e-03
+
+ 1.9223800301551819e-01 -5.2735102176666260e-01
+ <_>
+
+ 0 -1 665 7.9769000411033630e-02
+
+ 9.1491997241973877e-02 2.1049048900604248e+00
+ <_>
+
+ 0 -1 666 -5.7144001126289368e-02
+
+ -1.7452130317687988e+00 -4.0910001844167709e-02
+ <_>
+
+ 0 -1 667 7.3830001056194305e-03
+
+ -2.4214799702167511e-01 3.5577800869941711e-01
+ <_>
+
+ 0 -1 668 -1.8040999770164490e-02
+
+ 1.1779999732971191e+00 -1.7676700651645660e-01
+ <_>
+
+ 0 -1 669 9.4503000378608704e-02
+
+ 1.3936099410057068e-01 -1.2993700504302979e+00
+ <_>
+
+ 0 -1 670 5.4210000671446323e-03
+
+ -5.4608601331710815e-01 1.3916400074958801e-01
+ <_>
+
+ 0 -1 671 7.0290002040565014e-03
+
+ -2.1597200632095337e-01 3.9258098602294922e-01
+ <_>
+
+ 0 -1 672 3.4515999257564545e-02
+
+ 6.3188999891281128e-02 -7.2108101844787598e-01
+ <_>
+
+ 0 -1 673 -5.1924999803304672e-02
+
+ 6.8667602539062500e-01 6.3272997736930847e-02
+ <_>
+
+ 0 -1 674 -6.9162003695964813e-02
+
+ 1.7411810159683228e+00 -1.6619299352169037e-01
+ <_>
+
+ 0 -1 675 -5.5229999125003815e-03
+
+ 3.0694699287414551e-01 -1.6662900149822235e-01
+ <_>
+
+ 0 -1 676 6.8599998950958252e-02
+
+ -2.1405400335788727e-01 7.3185002803802490e-01
+ <_>
+
+ 0 -1 677 -6.7038998007774353e-02
+
+ -7.9360598325729370e-01 2.0525799691677094e-01
+ <_>
+
+ 0 -1 678 -2.1005000919103622e-02
+
+ 3.7344399094581604e-01 -2.9618600010871887e-01
+ <_>
+
+ 0 -1 679 2.0278999581933022e-02
+
+ -1.5200000256299973e-02 4.0555301308631897e-01
+ <_>
+
+ 0 -1 680 -4.7107998281717300e-02
+
+ 1.2116849422454834e+00 -1.7464299499988556e-01
+ <_>
+
+ 0 -1 681 1.8768499791622162e-01
+
+ -2.2909000515937805e-02 6.9645798206329346e-01
+ <_>
+
+ 0 -1 682 -4.3228998780250549e-02
+
+ -1.0602480173110962e+00 -5.5599998449906707e-04
+ <_>
+
+ 0 -1 683 2.0004000514745712e-02
+
+ -3.2751001417636871e-02 5.3805100917816162e-01
+ <_>
+
+ 0 -1 684 8.0880001187324524e-03
+
+ 3.7548001855611801e-02 -7.4768900871276855e-01
+ <_>
+
+ 0 -1 685 2.7101000770926476e-02
+
+ -8.1790000200271606e-02 3.3387100696563721e-01
+ <_>
+
+ 0 -1 686 -9.1746002435684204e-02
+
+ -1.9213509559631348e+00 -3.8952998816967010e-02
+ <_>
+
+ 0 -1 687 -1.2454999610781670e-02
+
+ 4.8360601067543030e-01 1.8168000504374504e-02
+ <_>
+
+ 0 -1 688 1.4649000018835068e-02
+
+ -1.9906699657440186e-01 7.2815400362014771e-01
+ <_>
+
+ 0 -1 689 2.9101999476552010e-02
+
+ 1.9871099293231964e-01 -4.9216800928115845e-01
+ <_>
+
+ 0 -1 690 8.7799998000264168e-03
+
+ -1.9499599933624268e-01 7.7317398786544800e-01
+ <_>
+
+ 0 -1 691 -5.4740000516176224e-02
+
+ 1.8087190389633179e+00 6.8323001265525818e-02
+ <_>
+
+ 0 -1 692 -1.4798000454902649e-02
+
+ 7.8064900636672974e-01 -1.8709599971771240e-01
+ <_>
+
+ 0 -1 693 2.5012999773025513e-02
+
+ 1.5285299718379974e-01 -1.6021020412445068e+00
+ <_>
+
+ 0 -1 694 4.6548001468181610e-02
+
+ -1.6738200187683105e-01 1.1902060508728027e+00
+ <_>
+
+ 0 -1 695 1.7624000087380409e-02
+
+ -1.0285499691963196e-01 3.9175900816917419e-01
+ <_>
+
+ 0 -1 696 1.6319599747657776e-01
+
+ -3.5624001175165176e-02 -1.6098170280456543e+00
+ <_>
+
+ 0 -1 697 1.3137999922037125e-02
+
+ -5.6359000504016876e-02 5.4158902168273926e-01
+ <_>
+
+ 0 -1 698 -1.5665000304579735e-02
+
+ 2.8063100576400757e-01 -3.1708601117134094e-01
+ <_>
+
+ 0 -1 699 8.0554001033306122e-02
+
+ 1.2640400230884552e-01 -1.0297529697418213e+00
+ <_>
+
+ 0 -1 700 3.5363998264074326e-02
+
+ 2.0752999931573868e-02 -7.9105597734451294e-01
+ <_>
+
+ 0 -1 701 3.2986998558044434e-02
+
+ 1.9057099521160126e-01 -8.3839899301528931e-01
+ <_>
+
+ 0 -1 702 1.2195000424981117e-02
+
+ 7.3729000985622406e-02 -6.2780702114105225e-01
+ <_>
+
+ 0 -1 703 4.3065998703241348e-02
+
+ 4.7384999692440033e-02 1.5712939500808716e+00
+ <_>
+
+ 0 -1 704 3.0326999723911285e-02
+
+ -2.7314600348472595e-01 3.8572001457214355e-01
+ <_>
+
+ 0 -1 705 3.5493001341819763e-02
+
+ 5.4593998938798904e-02 5.2583402395248413e-01
+ <_>
+
+ 0 -1 706 -1.4596999622881413e-02
+
+ 3.8152599334716797e-01 -2.8332400321960449e-01
+ <_>
+
+ 0 -1 707 1.2606999836862087e-02
+
+ 1.5455099940299988e-01 -3.0501499772071838e-01
+ <_>
+
+ 0 -1 708 1.0172000154852867e-02
+
+ 2.3637000471353531e-02 -8.7217897176742554e-01
+ <_>
+
+ 0 -1 709 2.8843000531196594e-02
+
+ 1.6090999543666840e-01 -2.0277599990367889e-01
+ <_>
+
+ 0 -1 710 5.5100000463426113e-04
+
+ -6.1545401811599731e-01 8.0935999751091003e-02
+ <_>
+ 127
+ -3.5645289421081543e+00
+
+ <_>
+
+ 0 -1 711 4.8344001173973083e-02
+
+ -8.4904599189758301e-01 5.6974399089813232e-01
+ <_>
+
+ 0 -1 712 3.2460000365972519e-02
+
+ -8.1417298316955566e-01 4.4781699776649475e-01
+ <_>
+
+ 0 -1 713 3.3339999616146088e-02
+
+ -3.6423799395561218e-01 6.7937397956848145e-01
+ <_>
+
+ 0 -1 714 6.4019998535513878e-03
+
+ -1.1885459423065186e+00 1.9238699972629547e-01
+ <_>
+
+ 0 -1 715 -5.6889997795224190e-03
+
+ 3.3085298538208008e-01 -7.1334099769592285e-01
+ <_>
+
+ 0 -1 716 1.2698000296950340e-02
+
+ -5.0990802049636841e-01 1.1376299709081650e-01
+ <_>
+
+ 0 -1 717 6.0549997724592686e-03
+
+ -1.0470550060272217e+00 2.0222599804401398e-01
+ <_>
+
+ 0 -1 718 2.6420000940561295e-03
+
+ -5.0559401512145996e-01 3.6441200971603394e-01
+ <_>
+
+ 0 -1 719 -1.6925999894738197e-02
+
+ -9.9541902542114258e-01 1.2602199614048004e-01
+ <_>
+
+ 0 -1 720 2.8235999867320061e-02
+
+ -9.4137996435165405e-02 5.7780402898788452e-01
+ <_>
+
+ 0 -1 721 1.0428999550640583e-02
+
+ 2.3272900283336639e-01 -5.2569699287414551e-01
+ <_>
+
+ 0 -1 722 9.8860003054141998e-03
+
+ -1.0316299647092819e-01 4.7657600045204163e-01
+ <_>
+
+ 0 -1 723 2.6015000417828560e-02
+
+ -1.0920000495389104e-03 -1.5581729412078857e+00
+ <_>
+
+ 0 -1 724 -2.5537999346852303e-02
+
+ -6.5451401472091675e-01 1.8843199312686920e-01
+ <_>
+
+ 0 -1 725 -3.5310001112520695e-03
+
+ 2.8140598535537720e-01 -4.4575300812721252e-01
+ <_>
+
+ 0 -1 726 9.2449998483061790e-03
+
+ 1.5612000226974487e-01 -2.1370999515056610e-01
+ <_>
+
+ 0 -1 727 2.1030999720096588e-02
+
+ -2.9170298576354980e-01 5.2234101295471191e-01
+ <_>
+
+ 0 -1 728 -5.1063001155853271e-02
+
+ 1.3661290407180786e+00 3.0465999618172646e-02
+ <_>
+
+ 0 -1 729 -6.2330000102519989e-02
+
+ 1.2207020521163940e+00 -2.2434400022029877e-01
+ <_>
+
+ 0 -1 730 -3.2963000237941742e-02
+
+ -8.2016801834106445e-01 1.4531899988651276e-01
+ <_>
+
+ 0 -1 731 -3.7418000400066376e-02
+
+ -1.2218099832534790e+00 1.9448999315500259e-02
+ <_>
+
+ 0 -1 732 1.2402799725532532e-01
+
+ 1.2082300335168839e-01 -9.8729300498962402e-01
+ <_>
+
+ 0 -1 733 -8.9229997247457504e-03
+
+ -1.1688489913940430e+00 2.1105000749230385e-02
+ <_>
+
+ 0 -1 734 -5.9879999607801437e-02
+
+ -1.0689330101013184e+00 1.9860200583934784e-01
+ <_>
+
+ 0 -1 735 6.2620001845061779e-03
+
+ -3.6229598522186279e-01 3.8000801205635071e-01
+ <_>
+
+ 0 -1 736 -1.7673000693321228e-02
+
+ 4.9094098806381226e-01 -1.4606699347496033e-01
+ <_>
+
+ 0 -1 737 1.7579000443220139e-02
+
+ 5.8728098869323730e-01 -2.7774399518966675e-01
+ <_>
+
+ 0 -1 738 5.1560001447796822e-03
+
+ -7.5194999575614929e-02 6.0193097591400146e-01
+ <_>
+
+ 0 -1 739 -1.0599999688565731e-02
+
+ 2.7637401223182678e-01 -3.7794300913810730e-01
+ <_>
+
+ 0 -1 740 2.0884099602699280e-01
+
+ -5.3599998354911804e-03 1.0317809581756592e+00
+ <_>
+
+ 0 -1 741 -2.6412999257445335e-02
+
+ 8.2336401939392090e-01 -2.2480599582195282e-01
+ <_>
+
+ 0 -1 742 5.8892000466585159e-02
+
+ 1.3098299503326416e-01 -1.1853699684143066e+00
+ <_>
+
+ 0 -1 743 -1.1579000391066074e-02
+
+ -9.0667802095413208e-01 4.4126998633146286e-02
+ <_>
+
+ 0 -1 744 4.5988000929355621e-02
+
+ 1.0143999941647053e-02 1.0740900039672852e+00
+ <_>
+
+ 0 -1 745 -2.2838000208139420e-02
+
+ 1.7791990041732788e+00 -1.7315499484539032e-01
+ <_>
+
+ 0 -1 746 -8.1709995865821838e-03
+
+ 5.7386302947998047e-01 -7.4106000363826752e-02
+ <_>
+
+ 0 -1 747 3.5359999164938927e-03
+
+ -3.2072898745536804e-01 4.0182501077651978e-01
+ <_>
+
+ 0 -1 748 4.9444999545812607e-02
+
+ 1.9288000464439392e-01 -1.2166700363159180e+00
+ <_>
+
+ 0 -1 749 3.5139999818056822e-03
+
+ 6.9568000733852386e-02 -7.1323698759078979e-01
+ <_>
+
+ 0 -1 750 -3.0996000394225121e-02
+
+ -3.8862198591232300e-01 1.8098799884319305e-01
+ <_>
+
+ 0 -1 751 8.6452998220920563e-02
+
+ -2.5792999193072319e-02 -1.5453219413757324e+00
+ <_>
+
+ 0 -1 752 -1.3652600347995758e-01
+
+ -1.9199420213699341e+00 1.6613300144672394e-01
+ <_>
+
+ 0 -1 753 -5.7689999230206013e-03
+
+ -1.2822589874267578e+00 -1.5907999128103256e-02
+ <_>
+
+ 0 -1 754 -1.7899999395012856e-02
+
+ -4.0409898757934570e-01 2.3591600358486176e-01
+ <_>
+
+ 0 -1 755 -1.9969999790191650e-02
+
+ -7.2891902923583984e-01 5.6235000491142273e-02
+ <_>
+
+ 0 -1 756 -5.7493001222610474e-02
+
+ 5.7830798625946045e-01 -1.5796000137925148e-02
+ <_>
+
+ 0 -1 757 -8.3056002855300903e-02
+
+ 9.1511601209640503e-01 -2.1121400594711304e-01
+ <_>
+
+ 0 -1 758 -5.3771000355482101e-02
+
+ -5.1931297779083252e-01 1.8576000630855560e-01
+ <_>
+
+ 0 -1 759 -8.3670001477003098e-03
+
+ 2.4109700322151184e-01 -3.9648601412773132e-01
+ <_>
+
+ 0 -1 760 5.5406998842954636e-02
+
+ 1.6771200299263000e-01 -2.5664970874786377e+00
+ <_>
+
+ 0 -1 761 -6.7180998623371124e-02
+
+ -1.3658570051193237e+00 -1.4232000336050987e-02
+ <_>
+
+ 0 -1 762 -2.3900000378489494e-02
+
+ -1.7084569931030273e+00 1.6507799923419952e-01
+ <_>
+
+ 0 -1 763 5.5949999950826168e-03
+
+ -3.1373998522758484e-01 3.2837900519371033e-01
+ <_>
+
+ 0 -1 764 2.1294999867677689e-02
+
+ 1.4953400194644928e-01 -4.8579800128936768e-01
+ <_>
+
+ 0 -1 765 -2.4613000452518463e-02
+
+ 7.4346399307250977e-01 -2.2305199503898621e-01
+ <_>
+
+ 0 -1 766 -1.9626000896096230e-02
+
+ -4.0918299555778503e-01 1.8893200159072876e-01
+ <_>
+
+ 0 -1 767 -5.3266000002622604e-02
+
+ 8.1381601095199585e-01 -2.0853699743747711e-01
+ <_>
+
+ 0 -1 768 7.1290000341832638e-03
+
+ 3.2996100187301636e-01 -5.9937399625778198e-01
+ <_>
+
+ 0 -1 769 -2.2486999630928040e-02
+
+ -1.2551610469818115e+00 -2.0413000136613846e-02
+ <_>
+
+ 0 -1 770 -8.2310996949672699e-02
+
+ 1.3821430206298828e+00 5.9308998286724091e-02
+ <_>
+
+ 0 -1 771 1.3097000122070312e-01
+
+ -3.5843998193740845e-02 -1.5396369695663452e+00
+ <_>
+
+ 0 -1 772 1.4293000102043152e-02
+
+ -1.8475200235843658e-01 3.7455001473426819e-01
+ <_>
+
+ 0 -1 773 6.3479999080300331e-03
+
+ -4.4901099801063538e-01 1.3876999914646149e-01
+ <_>
+
+ 0 -1 774 -4.6055000275373459e-02
+
+ 6.7832601070404053e-01 -1.7071999609470367e-02
+ <_>
+
+ 0 -1 775 5.7693999260663986e-02
+
+ -1.1955999769270420e-02 -1.2261159420013428e+00
+ <_>
+
+ 0 -1 776 -6.0609998181462288e-03
+
+ 3.3958598971366882e-01 6.2800000887364149e-04
+ <_>
+
+ 0 -1 777 -5.2163001149892807e-02
+
+ -1.0621069669723511e+00 -1.3779999688267708e-02
+ <_>
+
+ 0 -1 778 4.6572998166084290e-02
+
+ 1.4538800716400146e-01 -1.2384550571441650e+00
+ <_>
+
+ 0 -1 779 7.5309998355805874e-03
+
+ -2.4467700719833374e-01 5.1377099752426147e-01
+ <_>
+
+ 0 -1 780 2.1615000441670418e-02
+
+ 1.3072599470615387e-01 -7.0996797084808350e-01
+ <_>
+
+ 0 -1 781 -1.7864000052213669e-02
+
+ -1.0474660396575928e+00 4.9599999329075217e-04
+ <_>
+
+ 0 -1 782 -3.7195000797510147e-02
+
+ -1.5126730203628540e+00 1.4801399409770966e-01
+ <_>
+
+ 0 -1 783 -3.1100001069717109e-04
+
+ 1.3971500098705292e-01 -4.6867498755455017e-01
+ <_>
+
+ 0 -1 784 2.5042999535799026e-02
+
+ 2.8632000088691711e-01 -4.1794699430465698e-01
+ <_>
+
+ 0 -1 785 9.3449996784329414e-03
+
+ -2.7336201071739197e-01 4.3444699048995972e-01
+ <_>
+
+ 0 -1 786 3.2363999634981155e-02
+
+ 1.8438899517059326e-01 -9.5019298791885376e-01
+ <_>
+
+ 0 -1 787 -6.2299999408423901e-03
+
+ 3.2581999897956848e-01 -3.0815601348876953e-01
+ <_>
+
+ 0 -1 788 5.1488999277353287e-02
+
+ 1.1416000127792358e-01 -1.9795479774475098e+00
+ <_>
+
+ 0 -1 789 -2.6449000462889671e-02
+
+ -1.1067299842834473e+00 -8.5519999265670776e-03
+ <_>
+
+ 0 -1 790 -1.5420000068843365e-02
+
+ 8.0138701200485229e-01 -3.2035000622272491e-02
+ <_>
+
+ 0 -1 791 1.9456999376416206e-02
+
+ -2.6449498534202576e-01 3.8753899931907654e-01
+ <_>
+
+ 0 -1 792 3.3620998263359070e-02
+
+ 1.6052000224590302e-02 5.8840900659561157e-01
+ <_>
+
+ 0 -1 793 2.8906000778079033e-02
+
+ 1.5216000378131866e-02 -9.4723600149154663e-01
+ <_>
+
+ 0 -1 794 2.0300000323913991e-04
+
+ -3.0766001343727112e-01 2.1235899627208710e-01
+ <_>
+
+ 0 -1 795 -4.9141999334096909e-02
+
+ -1.6058609485626221e+00 -3.1094999983906746e-02
+ <_>
+
+ 0 -1 796 7.6425999402999878e-02
+
+ 7.4758999049663544e-02 1.1639410257339478e+00
+ <_>
+
+ 0 -1 797 2.3897999897599220e-02
+
+ -6.4320000819861889e-03 -1.1150749921798706e+00
+ <_>
+
+ 0 -1 798 3.8970001041889191e-03
+
+ -2.4105699360370636e-01 2.0858900249004364e-01
+ <_>
+
+ 0 -1 799 -8.9445002377033234e-02
+
+ 1.9157789945602417e+00 -1.5721100568771362e-01
+ <_>
+
+ 0 -1 800 -1.5008999966084957e-02
+
+ -2.5174099206924438e-01 1.8179899454116821e-01
+ <_>
+
+ 0 -1 801 -1.1145999655127525e-02
+
+ -6.9349497556686401e-01 4.4927999377250671e-02
+ <_>
+
+ 0 -1 802 9.4578996300697327e-02
+
+ 1.8102100491523743e-01 -7.4978601932525635e-01
+ <_>
+
+ 0 -1 803 5.5038899183273315e-01
+
+ -3.0974000692367554e-02 -1.6746139526367188e+00
+ <_>
+
+ 0 -1 804 4.1381001472473145e-02
+
+ 6.3910000026226044e-02 7.6561200618743896e-01
+ <_>
+
+ 0 -1 805 2.4771999567747116e-02
+
+ 1.1380000039935112e-02 -8.8559401035308838e-01
+ <_>
+
+ 0 -1 806 5.0999000668525696e-02
+
+ 1.4890299737453461e-01 -2.4634211063385010e+00
+ <_>
+
+ 0 -1 807 -1.6893999651074409e-02
+
+ 3.8870999217033386e-01 -2.9880300164222717e-01
+ <_>
+
+ 0 -1 808 -1.2162300199270248e-01
+
+ -1.5542800426483154e+00 1.6300800442695618e-01
+ <_>
+
+ 0 -1 809 -3.6049999762326479e-03
+
+ 2.1842800080776215e-01 -3.7312099337577820e-01
+ <_>
+
+ 0 -1 810 1.1575400084257126e-01
+
+ -4.7061000019311905e-02 5.9403699636459351e-01
+ <_>
+
+ 0 -1 811 3.6903999745845795e-02
+
+ -2.5508600473403931e-01 5.5397301912307739e-01
+ <_>
+
+ 0 -1 812 1.1483999900519848e-02
+
+ -1.8129499256610870e-01 4.0682798624038696e-01
+ <_>
+
+ 0 -1 813 -2.0233999937772751e-02
+
+ 5.4311197996139526e-01 -2.3822399973869324e-01
+ <_>
+
+ 0 -1 814 -2.8765000402927399e-02
+
+ -6.9172298908233643e-01 1.5943300724029541e-01
+ <_>
+
+ 0 -1 815 -5.8320001699030399e-03
+
+ 2.9447799921035767e-01 -3.4005999565124512e-01
+ <_>
+
+ 0 -1 816 -5.5468998849391937e-02
+
+ 9.2200797796249390e-01 9.4093002378940582e-02
+ <_>
+
+ 0 -1 817 -1.4801000244915485e-02
+
+ -7.9539698362350464e-01 3.1521998345851898e-02
+ <_>
+
+ 0 -1 818 -7.0940000005066395e-03
+
+ 3.3096000552177429e-01 -5.0886999815702438e-02
+ <_>
+
+ 0 -1 819 -4.5124001801013947e-02
+
+ -1.3719749450683594e+00 -2.1408999338746071e-02
+ <_>
+
+ 0 -1 820 6.4377002418041229e-02
+
+ 6.3901998102664948e-02 9.1478300094604492e-01
+ <_>
+
+ 0 -1 821 -1.4727000147104263e-02
+
+ 3.6050599813461304e-01 -2.8614500164985657e-01
+ <_>
+
+ 0 -1 822 4.5007001608610153e-02
+
+ -1.5619699656963348e-01 5.3160297870635986e-01
+ <_>
+
+ 0 -1 823 -1.1330000124871731e-03
+
+ 1.3422900438308716e-01 -4.4358900189399719e-01
+ <_>
+
+ 0 -1 824 4.9451000988483429e-02
+
+ 1.0571800172328949e-01 -2.5589139461517334e+00
+ <_>
+
+ 0 -1 825 2.9102999716997147e-02
+
+ -1.0088000446557999e-02 -1.1073939800262451e+00
+ <_>
+
+ 0 -1 826 3.4786000847816467e-02
+
+ -2.7719999197870493e-03 5.6700998544692993e-01
+ <_>
+
+ 0 -1 827 -6.1309998854994774e-03
+
+ -4.6889400482177734e-01 1.2636399269104004e-01
+ <_>
+
+ 0 -1 828 1.5525000169873238e-02
+
+ -8.4279999136924744e-03 8.7469202280044556e-01
+ <_>
+
+ 0 -1 829 2.9249999206513166e-03
+
+ -3.4434300661087036e-01 2.0851600170135498e-01
+ <_>
+
+ 0 -1 830 -5.3571000695228577e-02
+
+ 1.4982949495315552e+00 5.7328000664710999e-02
+ <_>
+
+ 0 -1 831 -1.9217999652028084e-02
+
+ -9.9234098196029663e-01 -9.3919998034834862e-03
+ <_>
+
+ 0 -1 832 -5.5282998830080032e-02
+
+ -5.7682299613952637e-01 1.6860599815845490e-01
+ <_>
+
+ 0 -1 833 5.6336000561714172e-02
+
+ -3.3775001764297485e-02 -1.3889650106430054e+00
+ <_>
+
+ 0 -1 834 -2.3824000731110573e-02
+
+ 4.0182098746299744e-01 1.8360000103712082e-03
+ <_>
+
+ 0 -1 835 1.7810000572353601e-03
+
+ 1.8145999312400818e-01 -4.1743400692939758e-01
+ <_>
+
+ 0 -1 836 -3.7689000368118286e-02
+
+ 5.4683101177215576e-01 1.8219999969005585e-02
+ <_>
+
+ 0 -1 837 -2.4144999682903290e-02
+
+ 6.8352097272872925e-01 -1.9650200009346008e-01
+ <_>
+ 135
+ -3.7025990486145020e+00
+
+ <_>
+
+ 0 -1 838 2.7444999665021896e-02
+
+ -8.9984202384948730e-01 5.1876497268676758e-01
+ <_>
+
+ 0 -1 839 1.1554100364446640e-01
+
+ -5.6524401903152466e-01 7.0551300048828125e-01
+ <_>
+
+ 0 -1 840 -2.2297000512480736e-02
+
+ 3.6079999804496765e-01 -6.6864597797393799e-01
+ <_>
+
+ 0 -1 841 1.3325000181794167e-02
+
+ -5.5573397874832153e-01 3.5789999365806580e-01
+ <_>
+
+ 0 -1 842 -3.8060001097619534e-03
+
+ -1.0713000297546387e+00 1.8850000202655792e-01
+ <_>
+
+ 0 -1 843 -2.6819999329745770e-03
+
+ -7.1584302186965942e-01 2.6344498991966248e-01
+ <_>
+
+ 0 -1 844 3.3819999080151320e-03
+
+ -4.6930798888206482e-01 2.6658400893211365e-01
+ <_>
+
+ 0 -1 845 3.7643000483512878e-02
+
+ 2.1098700165748596e-01 -1.0804339647293091e+00
+ <_>
+
+ 0 -1 846 -1.3861999846994877e-02
+
+ 6.6912001371383667e-01 -2.7942800521850586e-01
+ <_>
+
+ 0 -1 847 -2.7350001037120819e-03
+
+ -9.5332300662994385e-01 2.4051299691200256e-01
+ <_>
+
+ 0 -1 848 -3.8336999714374542e-02
+
+ 8.1432801485061646e-01 -2.4919399619102478e-01
+ <_>
+
+ 0 -1 849 -3.4697998315095901e-02
+
+ 1.2330100536346436e+00 6.8600000813603401e-03
+ <_>
+
+ 0 -1 850 2.3360999301075935e-02
+
+ -3.0794700980186462e-01 7.0714497566223145e-01
+ <_>
+
+ 0 -1 851 3.5057999193668365e-02
+
+ 2.1205900609493256e-01 -1.4399830102920532e+00
+ <_>
+
+ 0 -1 852 -1.3256999664008617e-02
+
+ -9.0260702371597290e-01 4.8610001802444458e-02
+ <_>
+
+ 0 -1 853 1.2740000151097775e-02
+
+ 2.2655199468135834e-01 -4.4643801450729370e-01
+ <_>
+
+ 0 -1 854 3.6400000099092722e-03
+
+ -3.9817899465560913e-01 3.4665399789810181e-01
+ <_>
+
+ 0 -1 855 1.0064700245857239e-01
+
+ 1.8383599817752838e-01 -1.3410769701004028e+00
+ <_>
+
+ 0 -1 856 0.
+
+ 1.5536400675773621e-01 -5.1582497358322144e-01
+ <_>
+
+ 0 -1 857 1.1708999983966351e-02
+
+ 2.1651400625705719e-01 -7.2705197334289551e-01
+ <_>
+
+ 0 -1 858 -3.5964999347925186e-02
+
+ -1.4789500236511230e+00 -2.4317000061273575e-02
+ <_>
+
+ 0 -1 859 -2.1236000582575798e-02
+
+ -1.6844099760055542e-01 1.9526599347591400e-01
+ <_>
+
+ 0 -1 860 1.4874000102281570e-02
+
+ 3.7335999310016632e-02 -8.7557297945022583e-01
+ <_>
+
+ 0 -1 861 -5.1409997977316380e-03
+
+ 3.3466500043869019e-01 -2.4109700322151184e-01
+ <_>
+
+ 0 -1 862 2.3450000211596489e-02
+
+ 5.5320002138614655e-03 -1.2509720325469971e+00
+ <_>
+
+ 0 -1 863 -2.5062000378966331e-02
+
+ 4.5212399959564209e-01 -8.4469996392726898e-02
+ <_>
+
+ 0 -1 864 -7.7400001464411616e-04
+
+ 1.5249900519847870e-01 -4.8486500978469849e-01
+ <_>
+
+ 0 -1 865 -4.0483999997377396e-02
+
+ -1.3024920225143433e+00 1.7983500659465790e-01
+ <_>
+
+ 0 -1 866 2.8170999139547348e-02
+
+ -2.4410900473594666e-01 6.2271100282669067e-01
+ <_>
+
+ 0 -1 867 4.5692998915910721e-02
+
+ 2.8122000396251678e-02 9.2394399642944336e-01
+ <_>
+
+ 0 -1 868 3.9707001298666000e-02
+
+ -2.2332799434661865e-01 7.7674001455307007e-01
+ <_>
+
+ 0 -1 869 5.0517000257968903e-02
+
+ 2.0319999754428864e-01 -1.0895930528640747e+00
+ <_>
+
+ 0 -1 870 -1.7266999930143356e-02
+
+ 6.8598401546478271e-01 -2.3304499685764313e-01
+ <_>
+
+ 0 -1 871 8.0186001956462860e-02
+
+ -1.0292000137269497e-02 6.1881101131439209e-01
+ <_>
+
+ 0 -1 872 9.7676001489162445e-02
+
+ -2.0070299506187439e-01 1.0088349580764771e+00
+ <_>
+
+ 0 -1 873 -1.5572000294923782e-02
+
+ 4.7615298628807068e-01 4.5623999089002609e-02
+ <_>
+
+ 0 -1 874 -1.5305000357329845e-02
+
+ -1.1077369451522827e+00 4.5239999890327454e-03
+ <_>
+
+ 0 -1 875 -1.6485000029206276e-02
+
+ 1.0152939558029175e+00 1.6327999532222748e-02
+ <_>
+
+ 0 -1 876 -2.6141999289393425e-02
+
+ 4.1723299026489258e-01 -2.8645500540733337e-01
+ <_>
+
+ 0 -1 877 8.8679995387792587e-03
+
+ 2.1404999494552612e-01 -1.6772800683975220e-01
+ <_>
+
+ 0 -1 878 -2.6886999607086182e-02
+
+ -1.1564220190048218e+00 -1.0324000380933285e-02
+ <_>
+
+ 0 -1 879 7.7789998613297939e-03
+
+ 3.5359498858451843e-01 -2.9611301422119141e-01
+ <_>
+
+ 0 -1 880 -1.5974000096321106e-02
+
+ -1.5374109745025635e+00 -2.9958000406622887e-02
+ <_>
+
+ 0 -1 881 2.0866999402642250e-02
+
+ 2.0244100689888000e-01 -7.1270197629928589e-01
+ <_>
+
+ 0 -1 882 8.5482001304626465e-02
+
+ -2.5932999327778816e-02 -1.5156569480895996e+00
+ <_>
+
+ 0 -1 883 2.3872999474406242e-02
+
+ 1.6803400218486786e-01 -3.8806200027465820e-01
+ <_>
+
+ 0 -1 884 -3.9105001837015152e-02
+
+ -1.1958349943161011e+00 -2.0361000671982765e-02
+ <_>
+
+ 0 -1 885 -7.7946998178958893e-02
+
+ -1.0898950099945068e+00 1.4530299603939056e-01
+ <_>
+
+ 0 -1 886 -1.6876000910997391e-02
+
+ 2.8049701452255249e-01 -4.1336300969123840e-01
+ <_>
+
+ 0 -1 887 1.1875600367784500e-01
+
+ -4.3490998446941376e-02 4.1263699531555176e-01
+ <_>
+
+ 0 -1 888 1.5624199807643890e-01
+
+ -2.6429599523544312e-01 5.5127799510955811e-01
+ <_>
+
+ 0 -1 889 -4.5908000320196152e-02
+
+ 6.0189199447631836e-01 1.8921000882983208e-02
+ <_>
+
+ 0 -1 890 -1.0309999808669090e-02
+
+ 3.8152998685836792e-01 -2.9507899284362793e-01
+ <_>
+
+ 0 -1 891 9.5769003033638000e-02
+
+ 1.3246500492095947e-01 -4.6266800165176392e-01
+ <_>
+
+ 0 -1 892 1.3686999678611755e-02
+
+ 1.1738699674606323e-01 -5.1664102077484131e-01
+ <_>
+
+ 0 -1 893 2.3990001063793898e-03
+
+ -3.4007599949836731e-01 2.0953500270843506e-01
+ <_>
+
+ 0 -1 894 3.3264998346567154e-02
+
+ -1.7052799463272095e-01 1.4366799592971802e+00
+ <_>
+
+ 0 -1 895 -3.3206000924110413e-02
+
+ 6.1295700073242188e-01 -4.1549999266862869e-02
+ <_>
+
+ 0 -1 896 2.7979998849332333e-03
+
+ -4.8554301261901855e-01 1.3372699916362762e-01
+ <_>
+
+ 0 -1 897 -6.5792001783847809e-02
+
+ -4.0257668495178223e+00 1.0876700282096863e-01
+ <_>
+
+ 0 -1 898 2.1430000197142363e-03
+
+ -3.9179998636245728e-01 2.2427099943161011e-01
+ <_>
+
+ 0 -1 899 2.2363999858498573e-02
+
+ -8.6429998278617859e-02 3.7785199284553528e-01
+ <_>
+
+ 0 -1 900 -5.7410001754760742e-02
+
+ 1.1454069614410400e+00 -1.9736599922180176e-01
+ <_>
+
+ 0 -1 901 6.6550001502037048e-03
+
+ -2.1105000749230385e-02 5.8453398942947388e-01
+ <_>
+
+ 0 -1 902 1.2326999567449093e-02
+
+ 3.7817001342773438e-02 -6.6987001895904541e-01
+ <_>
+
+ 0 -1 903 -8.1869997084140778e-03
+
+ 5.6366002559661865e-01 -7.6877996325492859e-02
+ <_>
+
+ 0 -1 904 3.6681000143289566e-02
+
+ -1.7343300580978394e-01 1.1670149564743042e+00
+ <_>
+
+ 0 -1 905 -4.0220400691032410e-01
+
+ 1.2640819549560547e+00 4.3398998677730560e-02
+ <_>
+
+ 0 -1 906 -2.2126000374555588e-02
+
+ 6.6978102922439575e-01 -2.1605299413204193e-01
+ <_>
+
+ 0 -1 907 -1.3156999833881855e-02
+
+ -4.1198599338531494e-01 2.0215000212192535e-01
+ <_>
+
+ 0 -1 908 -1.2860000133514404e-02
+
+ -9.1582697629928589e-01 3.9232999086380005e-02
+ <_>
+
+ 0 -1 909 2.1627999842166901e-02
+
+ 3.8719999138265848e-03 3.5668200254440308e-01
+ <_>
+
+ 0 -1 910 1.1896000243723392e-02
+
+ -3.7303900718688965e-01 1.9235099852085114e-01
+ <_>
+
+ 0 -1 911 -1.9548999145627022e-02
+
+ -4.2374899983406067e-01 2.4429599940776825e-01
+ <_>
+
+ 0 -1 912 6.4444996416568756e-02
+
+ -1.6558900475502014e-01 1.2697030305862427e+00
+ <_>
+
+ 0 -1 913 1.0898499935865402e-01
+
+ 1.4894300699234009e-01 -2.1534640789031982e+00
+ <_>
+
+ 0 -1 914 -3.4077998250722885e-02
+
+ 1.3779460191726685e+00 -1.6198499500751495e-01
+ <_>
+
+ 0 -1 915 -3.7489999085664749e-03
+
+ -3.3828601241111755e-01 2.1152900159358978e-01
+ <_>
+
+ 0 -1 916 -1.0971999727189541e-02
+
+ 7.6517897844314575e-01 -1.9692599773406982e-01
+ <_>
+
+ 0 -1 917 -1.1485000140964985e-02
+
+ -6.9271200895309448e-01 2.1657100319862366e-01
+ <_>
+
+ 0 -1 918 2.5984000414609909e-02
+
+ -1.1983999982476234e-02 -9.9697297811508179e-01
+ <_>
+
+ 0 -1 919 4.2159999720752239e-03
+
+ -1.0205700248479843e-01 4.8884400725364685e-01
+ <_>
+
+ 0 -1 920 -4.7697000205516815e-02
+
+ 1.0666010379791260e+00 -1.7576299607753754e-01
+ <_>
+
+ 0 -1 921 4.0300001273863018e-04
+
+ 1.8524800240993500e-01 -7.4790000915527344e-01
+ <_>
+
+ 0 -1 922 1.1539600044488907e-01
+
+ -2.2019700706005096e-01 5.4509997367858887e-01
+ <_>
+
+ 0 -1 923 1.6021000221371651e-02
+
+ 2.5487500429153442e-01 -5.0740098953247070e-01
+ <_>
+
+ 0 -1 924 5.6632000952959061e-02
+
+ -1.1256000027060509e-02 -9.5968097448348999e-01
+ <_>
+
+ 0 -1 925 -1.0726000182330608e-02
+
+ -2.8544700145721436e-01 1.6994799673557281e-01
+ <_>
+
+ 0 -1 926 1.2420000135898590e-01
+
+ -3.6139998584985733e-02 -1.3132710456848145e+00
+ <_>
+
+ 0 -1 927 -5.3799999877810478e-03
+
+ 3.3092701435089111e-01 1.3307999819517136e-02
+ <_>
+
+ 0 -1 928 1.1908000335097313e-02
+
+ -3.4830299019813538e-01 2.4041900038719177e-01
+ <_>
+
+ 0 -1 929 -4.3007999658584595e-02
+
+ -1.4390469789505005e+00 1.5599599480628967e-01
+ <_>
+
+ 0 -1 930 -3.3149998635053635e-02
+
+ -1.1805850267410278e+00 -1.2347999960184097e-02
+ <_>
+
+ 0 -1 931 -2.1341999992728233e-02
+
+ 2.2119441032409668e+00 6.2737002968788147e-02
+ <_>
+
+ 0 -1 932 -1.2218999676406384e-02
+
+ -1.8709750175476074e+00 -4.5499999076128006e-02
+ <_>
+
+ 0 -1 933 -1.6860999166965485e-02
+
+ -7.6912701129913330e-01 1.5330000221729279e-01
+ <_>
+
+ 0 -1 934 -2.4999999441206455e-03
+
+ -6.2987399101257324e-01 5.1600001752376556e-02
+ <_>
+
+ 0 -1 935 -4.5037999749183655e-02
+
+ 8.5428899526596069e-01 6.2600001692771912e-03
+ <_>
+
+ 0 -1 936 3.9057999849319458e-02
+
+ -3.2458998262882233e-02 -1.3325669765472412e+00
+ <_>
+
+ 0 -1 937 6.6720000468194485e-03
+
+ -1.9423599541187286e-01 3.7328699231147766e-01
+ <_>
+
+ 0 -1 938 -1.6361000016331673e-02
+
+ 2.0605869293212891e+00 -1.5042699873447418e-01
+ <_>
+
+ 0 -1 939 6.1719999648630619e-03
+
+ -1.1610999703407288e-01 2.5455400347709656e-01
+ <_>
+
+ 0 -1 940 4.5722000300884247e-02
+
+ -1.6340000554919243e-02 -1.0449140071868896e+00
+ <_>
+
+ 0 -1 941 4.1209999471902847e-03
+
+ -4.1997998952865601e-02 3.9680999517440796e-01
+ <_>
+
+ 0 -1 942 -1.7800000205170363e-04
+
+ -6.6422599554061890e-01 3.3443000167608261e-02
+ <_>
+
+ 0 -1 943 7.1109998971223831e-03
+
+ -5.8231998234987259e-02 3.7857300043106079e-01
+ <_>
+
+ 0 -1 944 -4.9864001572132111e-02
+
+ 6.1019402742385864e-01 -2.1005700528621674e-01
+ <_>
+
+ 0 -1 945 -2.5011999532580376e-02
+
+ -5.7100099325180054e-01 1.7848399281501770e-01
+ <_>
+
+ 0 -1 946 3.0939999967813492e-02
+
+ 5.6363001465797424e-02 -6.4731001853942871e-01
+ <_>
+
+ 0 -1 947 4.6271000057458878e-02
+
+ 1.7482399940490723e-01 -9.8909401893615723e-01
+ <_>
+
+ 0 -1 948 -3.1870000530034304e-03
+
+ -6.6804802417755127e-01 3.2267000526189804e-02
+ <_>
+
+ 0 -1 949 -2.4351999163627625e-02
+
+ 2.9444900155067444e-01 -1.3599999947473407e-03
+ <_>
+
+ 0 -1 950 1.1974000371992588e-02
+
+ -2.8345099091529846e-01 4.7171199321746826e-01
+ <_>
+
+ 0 -1 951 1.3070000335574150e-02
+
+ -1.0834600031375885e-01 5.7193297147750854e-01
+ <_>
+
+ 0 -1 952 5.9163000434637070e-02
+
+ -5.0939001142978668e-02 -1.9059720039367676e+00
+ <_>
+
+ 0 -1 953 -4.1094999760389328e-02
+
+ 4.5104598999023438e-01 -9.7599998116493225e-03
+ <_>
+
+ 0 -1 954 -8.3989001810550690e-02
+
+ -2.0349199771881104e+00 -5.1019001752138138e-02
+ <_>
+
+ 0 -1 955 4.4619001448154449e-02
+
+ 1.7041100561618805e-01 -1.2278720140457153e+00
+ <_>
+
+ 0 -1 956 2.4419000372290611e-02
+
+ -2.1796999499201775e-02 -1.0822949409484863e+00
+ <_>
+
+ 0 -1 957 -4.3870001100003719e-03
+
+ 3.0466699600219727e-01 -3.7066599726676941e-01
+ <_>
+
+ 0 -1 958 2.4607999250292778e-02
+
+ -3.1169500946998596e-01 2.3657299578189850e-01
+ <_>
+
+ 0 -1 959 -8.5182003676891327e-02
+
+ -1.7982350587844849e+00 1.5254299342632294e-01
+ <_>
+
+ 0 -1 960 2.1844999864697456e-02
+
+ -5.1888000220060349e-02 -1.9017189741134644e+00
+ <_>
+
+ 0 -1 961 -1.6829000785946846e-02
+
+ 2.1025900542736053e-01 2.1656999364495277e-02
+ <_>
+
+ 0 -1 962 3.2547999173402786e-02
+
+ -2.0292599499225616e-01 6.0944002866744995e-01
+ <_>
+
+ 0 -1 963 2.4709999561309814e-03
+
+ -9.5371198654174805e-01 1.8568399548530579e-01
+ <_>
+
+ 0 -1 964 5.5415999144315720e-02
+
+ -1.4405299723148346e-01 2.1506340503692627e+00
+ <_>
+
+ 0 -1 965 -1.0635499656200409e-01
+
+ -1.0911970138549805e+00 1.3228000700473785e-01
+ <_>
+
+ 0 -1 966 -7.9889995977282524e-03
+
+ 1.0253400355577469e-01 -5.1744902133941650e-01
+ <_>
+
+ 0 -1 967 7.5567997992038727e-02
+
+ 5.8965001255273819e-02 1.2354209423065186e+00
+ <_>
+
+ 0 -1 968 -9.2805996537208557e-02
+
+ -1.3431650400161743e+00 -3.4462999552488327e-02
+ <_>
+
+ 0 -1 969 4.9431998282670975e-02
+
+ 4.9601998180150986e-02 1.6054730415344238e+00
+ <_>
+
+ 0 -1 970 -1.1772999539971352e-02
+
+ -1.0261050462722778e+00 -4.1559999808669090e-03
+ <_>
+
+ 0 -1 971 8.5886001586914062e-02
+
+ 8.4642998874187469e-02 9.5220798254013062e-01
+ <_>
+
+ 0 -1 972 8.1031002104282379e-02
+
+ -1.4687100052833557e-01 1.9359990358352661e+00
+ <_>
+ 136
+ -3.4265899658203125e+00
+
+ <_>
+
+ 0 -1 973 -3.3840999007225037e-02
+
+ 6.5889501571655273e-01 -6.9755297899246216e-01
+ <_>
+
+ 0 -1 974 1.5410000458359718e-02
+
+ -9.0728402137756348e-01 3.0478599667549133e-01
+ <_>
+
+ 0 -1 975 5.4905999451875687e-02
+
+ -4.9774798750877380e-01 5.7132601737976074e-01
+ <_>
+
+ 0 -1 976 2.1390000358223915e-02
+
+ -4.2565199732780457e-01 5.8096802234649658e-01
+ <_>
+
+ 0 -1 977 7.8849997371435165e-03
+
+ -4.7905999422073364e-01 4.3016499280929565e-01
+ <_>
+
+ 0 -1 978 -3.7544999271631241e-02
+
+ 5.0861597061157227e-01 -1.9985899329185486e-01
+ <_>
+
+ 0 -1 979 1.5925799310207367e-01
+
+ -2.3263600468635559e-01 1.0993319749832153e+00
+ <_>
+
+ 0 -1 980 -6.8939998745918274e-02
+
+ 4.0569001436233521e-01 5.6855000555515289e-02
+ <_>
+
+ 0 -1 981 -3.3695001155138016e-02
+
+ 4.5132800936698914e-01 -3.3332800865173340e-01
+ <_>
+
+ 0 -1 982 -6.3314996659755707e-02
+
+ -8.5015702247619629e-01 2.2341699898242950e-01
+ <_>
+
+ 0 -1 983 7.3699997738003731e-03
+
+ -9.3082201480865479e-01 5.9216998517513275e-02
+ <_>
+
+ 0 -1 984 -9.5969997346401215e-03
+
+ -1.2794899940490723e+00 1.8447299301624298e-01
+ <_>
+
+ 0 -1 985 -1.3067999482154846e-01
+
+ 5.8426898717880249e-01 -2.6007199287414551e-01
+ <_>
+
+ 0 -1 986 5.7402998208999634e-02
+
+ -5.3789000958204269e-02 7.1175599098205566e-01
+ <_>
+
+ 0 -1 987 -7.2340001352131367e-03
+
+ -8.6962199211120605e-01 7.5214996933937073e-02
+ <_>
+
+ 0 -1 988 3.1098999083042145e-02
+
+ -7.5006999075412750e-02 9.0781599283218384e-01
+ <_>
+
+ 0 -1 989 3.5854000598192215e-02
+
+ -2.4795499444007874e-01 7.2272098064422607e-01
+ <_>
+
+ 0 -1 990 -3.1534999608993530e-02
+
+ -1.1238329410552979e+00 2.0988300442695618e-01
+ <_>
+
+ 0 -1 991 -1.9437000155448914e-02
+
+ -1.4499390125274658e+00 -1.5100000426173210e-02
+ <_>
+
+ 0 -1 992 -7.2420001961290836e-03
+
+ 5.3864902257919312e-01 -1.1375399678945541e-01
+ <_>
+
+ 0 -1 993 8.1639997661113739e-03
+
+ 6.6889002919197083e-02 -7.6872897148132324e-01
+ <_>
+
+ 0 -1 994 -4.3653000146150589e-02
+
+ 1.1413530111312866e+00 4.0217000991106033e-02
+ <_>
+
+ 0 -1 995 2.6569999754428864e-02
+
+ -2.4719099700450897e-01 5.9295099973678589e-01
+ <_>
+
+ 0 -1 996 3.2216999679803848e-02
+
+ -4.0024999529123306e-02 3.2688000798225403e-01
+ <_>
+
+ 0 -1 997 -7.2236001491546631e-02
+
+ 5.8729398250579834e-01 -2.5396001338958740e-01
+ <_>
+
+ 0 -1 998 3.1424999237060547e-02
+
+ 1.5315100550651550e-01 -5.6042098999023438e-01
+ <_>
+
+ 0 -1 999 -4.7699999413453043e-04
+
+ 1.6958899796009064e-01 -5.2626699209213257e-01
+ <_>
+
+ 0 -1 1000 2.7189999818801880e-03
+
+ -1.4944599568843842e-01 2.9658699035644531e-01
+ <_>
+
+ 0 -1 1001 3.2875001430511475e-02
+
+ -3.9943501353263855e-01 2.5156599283218384e-01
+ <_>
+
+ 0 -1 1002 -1.4553000219166279e-02
+
+ 2.7972599864006042e-01 -4.7203800082206726e-01
+ <_>
+
+ 0 -1 1003 3.8017999380826950e-02
+
+ -2.9200001154094934e-03 -1.1300059556961060e+00
+ <_>
+
+ 0 -1 1004 2.8659999370574951e-03
+
+ 4.1111800074577332e-01 -2.6220801472663879e-01
+ <_>
+
+ 0 -1 1005 -4.1606999933719635e-02
+
+ -1.4293819665908813e+00 -1.9132999703288078e-02
+ <_>
+
+ 0 -1 1006 -2.4802999570965767e-02
+
+ -2.5013598799705505e-01 1.5978699922561646e-01
+ <_>
+
+ 0 -1 1007 1.0098000057041645e-02
+
+ 4.3738998472690582e-02 -6.9986099004745483e-01
+ <_>
+
+ 0 -1 1008 -2.0947000011801720e-02
+
+ -9.4137799739837646e-01 2.3204000294208527e-01
+ <_>
+
+ 0 -1 1009 2.2458000108599663e-02
+
+ -2.7185800671577454e-01 4.5319199562072754e-01
+ <_>
+
+ 0 -1 1010 -3.7110999226570129e-02
+
+ -1.0314660072326660e+00 1.4421799778938293e-01
+ <_>
+
+ 0 -1 1011 -1.0648000054061413e-02
+
+ 6.3107001781463623e-01 -2.5520798563957214e-01
+ <_>
+
+ 0 -1 1012 5.5422998964786530e-02
+
+ 1.6206599771976471e-01 -1.7722640037536621e+00
+ <_>
+
+ 0 -1 1013 2.1601999178528786e-02
+
+ -2.5016099214553833e-01 5.4119801521301270e-01
+ <_>
+
+ 0 -1 1014 8.7000000348780304e-05
+
+ -2.9008901119232178e-01 3.3507999777793884e-01
+ <_>
+
+ 0 -1 1015 1.4406000263988972e-02
+
+ -7.8840004280209541e-03 -1.1677219867706299e+00
+ <_>
+
+ 0 -1 1016 1.0777399688959122e-01
+
+ 1.1292000114917755e-01 -2.4940319061279297e+00
+ <_>
+
+ 0 -1 1017 3.5943999886512756e-02
+
+ -1.9480599462985992e-01 9.5757502317428589e-01
+ <_>
+
+ 0 -1 1018 -3.9510000497102737e-03
+
+ 3.0927801132202148e-01 -2.5530201196670532e-01
+ <_>
+
+ 0 -1 1019 2.0942000672221184e-02
+
+ -7.6319999061524868e-03 -1.0086350440979004e+00
+ <_>
+
+ 0 -1 1020 -2.9877999797463417e-02
+
+ -4.6027699112892151e-01 1.9507199525833130e-01
+ <_>
+
+ 0 -1 1021 2.5971999391913414e-02
+
+ -1.2187999673187733e-02 -1.0035500526428223e+00
+ <_>
+
+ 0 -1 1022 1.0603000409901142e-02
+
+ -7.5969003140926361e-02 4.1669899225234985e-01
+ <_>
+
+ 0 -1 1023 8.5819996893405914e-03
+
+ -2.6648598909378052e-01 3.9111500978469849e-01
+ <_>
+
+ 0 -1 1024 2.1270999684929848e-02
+
+ 1.8273900449275970e-01 -3.6052298545837402e-01
+ <_>
+
+ 0 -1 1025 7.4518002569675446e-02
+
+ -1.8938399851322174e-01 9.2658001184463501e-01
+ <_>
+
+ 0 -1 1026 4.6569998376071453e-03
+
+ -1.4506199955940247e-01 3.3294600248336792e-01
+ <_>
+
+ 0 -1 1027 1.7119999974966049e-03
+
+ -5.2464002370834351e-01 8.9879997074604034e-02
+ <_>
+
+ 0 -1 1028 9.8500004969537258e-04
+
+ -3.8381999731063843e-01 2.4392999708652496e-01
+ <_>
+
+ 0 -1 1029 2.8233999386429787e-02
+
+ -5.7879998348653316e-03 -1.2617139816284180e+00
+ <_>
+
+ 0 -1 1030 -3.2678000628948212e-02
+
+ -5.7953298091888428e-01 1.6955299675464630e-01
+ <_>
+
+ 0 -1 1031 2.2536000236868858e-02
+
+ 2.2281000390648842e-02 -8.7869602441787720e-01
+ <_>
+
+ 0 -1 1032 -2.1657999604940414e-02
+
+ -6.5108501911163330e-01 1.2966899573802948e-01
+ <_>
+
+ 0 -1 1033 7.6799998059868813e-03
+
+ -3.3965200185775757e-01 2.2013300657272339e-01
+ <_>
+
+ 0 -1 1034 1.4592000283300877e-02
+
+ 1.5077300369739532e-01 -5.0452399253845215e-01
+ <_>
+
+ 0 -1 1035 2.7868000790476799e-02
+
+ -2.5045299530029297e-01 4.5741999149322510e-01
+ <_>
+
+ 0 -1 1036 5.6940000504255295e-03
+
+ -1.0948500037193298e-01 5.5757802724838257e-01
+ <_>
+
+ 0 -1 1037 -1.0002999566495419e-02
+
+ -9.7366297245025635e-01 1.8467999994754791e-02
+ <_>
+
+ 0 -1 1038 -4.0719998069107533e-03
+
+ 3.8222199678421021e-01 -1.6921100020408630e-01
+ <_>
+
+ 0 -1 1039 -2.2593999281525612e-02
+
+ -1.0391089916229248e+00 5.1839998923242092e-03
+ <_>
+
+ 0 -1 1040 -3.9579998701810837e-02
+
+ -5.5109229087829590e+00 1.1163999885320663e-01
+ <_>
+
+ 0 -1 1041 -1.7537999898195267e-02
+
+ 9.5485800504684448e-01 -1.8584500253200531e-01
+ <_>
+
+ 0 -1 1042 9.0300003066658974e-03
+
+ 1.0436000302433968e-02 8.2114797830581665e-01
+ <_>
+
+ 0 -1 1043 -7.9539995640516281e-03
+
+ 2.2632899880409241e-01 -3.4568199515342712e-01
+ <_>
+
+ 0 -1 1044 2.7091000229120255e-02
+
+ 1.6430099308490753e-01 -1.3926379680633545e+00
+ <_>
+
+ 0 -1 1045 -2.0625999197363853e-02
+
+ -8.6366099119186401e-01 2.3880000226199627e-03
+ <_>
+
+ 0 -1 1046 -7.1989998221397400e-02
+
+ -2.8192629814147949e+00 1.1570499837398529e-01
+ <_>
+
+ 0 -1 1047 -2.6964999735355377e-02
+
+ -1.2946130037307739e+00 -2.4661000818014145e-02
+ <_>
+
+ 0 -1 1048 -4.7377999871969223e-02
+
+ -8.1306397914886475e-01 1.1831399798393250e-01
+ <_>
+
+ 0 -1 1049 -1.0895600169897079e-01
+
+ 6.5937900543212891e-01 -2.0843900740146637e-01
+ <_>
+
+ 0 -1 1050 1.3574000447988510e-02
+
+ 7.4240001849830151e-03 5.3152197599411011e-01
+ <_>
+
+ 0 -1 1051 -6.6920001991093159e-03
+
+ 3.0655801296234131e-01 -3.1084299087524414e-01
+ <_>
+
+ 0 -1 1052 -3.9070001803338528e-03
+
+ 2.5576499104499817e-01 -5.2932001650333405e-02
+ <_>
+
+ 0 -1 1053 -3.7613000720739365e-02
+
+ -1.4350049495697021e+00 -1.5448000282049179e-02
+ <_>
+
+ 0 -1 1054 8.6329998448491096e-03
+
+ -1.6884399950504303e-01 4.2124900221824646e-01
+ <_>
+
+ 0 -1 1055 -3.2097000628709793e-02
+
+ -6.4979398250579834e-01 4.1110001504421234e-02
+ <_>
+
+ 0 -1 1056 5.8495998382568359e-02
+
+ -5.2963998168706894e-02 6.3368302583694458e-01
+ <_>
+
+ 0 -1 1057 -4.0901999920606613e-02
+
+ -9.2101097106933594e-01 9.0640000998973846e-03
+ <_>
+
+ 0 -1 1058 -1.9925000146031380e-02
+
+ 5.3759998083114624e-01 -6.2996998429298401e-02
+ <_>
+
+ 0 -1 1059 -4.6020001173019409e-03
+
+ -5.4333502054214478e-01 8.4104999899864197e-02
+ <_>
+
+ 0 -1 1060 1.6824999824166298e-02
+
+ 1.5563699603080750e-01 -4.0171200037002563e-01
+ <_>
+
+ 0 -1 1061 9.4790002331137657e-03
+
+ -2.4245299398899078e-01 5.1509499549865723e-01
+ <_>
+
+ 0 -1 1062 -1.9534999504685402e-02
+
+ -5.1118397712707520e-01 1.3831999897956848e-01
+ <_>
+
+ 0 -1 1063 1.0746000334620476e-02
+
+ -2.1854999661445618e-01 6.2828701734542847e-01
+ <_>
+
+ 0 -1 1064 3.7927001714706421e-02
+
+ 1.1640299856662750e-01 -2.7301959991455078e+00
+ <_>
+
+ 0 -1 1065 1.6390999779105186e-02
+
+ -1.4635999687016010e-02 -1.0797250270843506e+00
+ <_>
+
+ 0 -1 1066 -1.9785000011324883e-02
+
+ 1.2166420221328735e+00 3.3275000751018524e-02
+ <_>
+
+ 0 -1 1067 1.1067000217735767e-02
+
+ -2.5388300418853760e-01 4.4038599729537964e-01
+ <_>
+
+ 0 -1 1068 5.2479999139904976e-03
+
+ 2.2496800124645233e-01 -2.4216499924659729e-01
+ <_>
+
+ 0 -1 1069 -1.1141999624669552e-02
+
+ 2.5018098950386047e-01 -3.0811500549316406e-01
+ <_>
+
+ 0 -1 1070 -1.0666999965906143e-02
+
+ -3.2729101181030273e-01 2.6168298721313477e-01
+ <_>
+
+ 0 -1 1071 1.0545299947261810e-01
+
+ -5.5750001221895218e-02 -1.9605729579925537e+00
+ <_>
+
+ 0 -1 1072 5.4827999323606491e-02
+
+ -1.9519999623298645e-03 7.3866099119186401e-01
+ <_>
+
+ 0 -1 1073 1.7760999500751495e-02
+
+ -3.0647200345993042e-01 2.6346999406814575e-01
+ <_>
+
+ 0 -1 1074 -3.1185999512672424e-02
+
+ -2.4600900709629059e-01 1.7082199454307556e-01
+ <_>
+
+ 0 -1 1075 -5.7296000421047211e-02
+
+ 4.7033500671386719e-01 -2.6048299670219421e-01
+ <_>
+
+ 0 -1 1076 -1.1312000453472137e-02
+
+ 3.8628900051116943e-01 -2.8817000985145569e-01
+ <_>
+
+ 0 -1 1077 3.0592000111937523e-02
+
+ -4.8826001584529877e-02 -1.7638969421386719e+00
+ <_>
+
+ 0 -1 1078 1.8489999929443002e-03
+
+ 2.1099899709224701e-01 -2.5940999388694763e-02
+ <_>
+
+ 0 -1 1079 1.1419000104069710e-02
+
+ -1.6829599440097809e-01 1.0278660058975220e+00
+ <_>
+
+ 0 -1 1080 8.1403002142906189e-02
+
+ 1.1531999707221985e-01 -1.2482399940490723e+00
+ <_>
+
+ 0 -1 1081 5.3495999425649643e-02
+
+ -4.6303998678922653e-02 -1.7165969610214233e+00
+ <_>
+
+ 0 -1 1082 -2.3948000743985176e-02
+
+ -4.0246599912643433e-01 2.0562100410461426e-01
+ <_>
+
+ 0 -1 1083 6.7690000869333744e-03
+
+ -3.3152300119400024e-01 2.0683400332927704e-01
+ <_>
+
+ 0 -1 1084 -3.2343998551368713e-02
+
+ -7.2632801532745361e-01 2.0073500275611877e-01
+ <_>
+
+ 0 -1 1085 3.7863001227378845e-02
+
+ -1.5631000697612762e-01 1.6697460412979126e+00
+ <_>
+
+ 0 -1 1086 1.5440000221133232e-02
+
+ 1.9487400352954865e-01 -3.5384199023246765e-01
+ <_>
+
+ 0 -1 1087 -4.4376000761985779e-02
+
+ 8.2093602418899536e-01 -1.8193599581718445e-01
+ <_>
+
+ 0 -1 1088 -2.3102000355720520e-02
+
+ -4.3044099211692810e-01 1.2375400215387344e-01
+ <_>
+
+ 0 -1 1089 1.9400000572204590e-02
+
+ -2.9726000502705574e-02 -1.1597590446472168e+00
+ <_>
+
+ 0 -1 1090 1.0385700315237045e-01
+
+ 1.1149899661540985e-01 -4.6835222244262695e+00
+ <_>
+
+ 0 -1 1091 -1.8964000046253204e-02
+
+ 2.1773819923400879e+00 -1.4544400572776794e-01
+ <_>
+
+ 0 -1 1092 3.8750998675823212e-02
+
+ -4.9446001648902893e-02 3.4018298983573914e-01
+ <_>
+
+ 0 -1 1093 2.2766999900341034e-02
+
+ -3.2802999019622803e-01 3.0531400442123413e-01
+ <_>
+
+ 0 -1 1094 -3.1357001513242722e-02
+
+ 1.1520819664001465e+00 2.7305999770760536e-02
+ <_>
+
+ 0 -1 1095 9.6909999847412109e-03
+
+ -3.8799500465393066e-01 2.1512599289417267e-01
+ <_>
+
+ 0 -1 1096 -4.9284998327493668e-02
+
+ -1.6774909496307373e+00 1.5774199366569519e-01
+ <_>
+
+ 0 -1 1097 -3.9510998874902725e-02
+
+ -9.7647899389266968e-01 -1.0552000254392624e-02
+ <_>
+
+ 0 -1 1098 4.7997999936342239e-02
+
+ 2.0843900740146637e-01 -6.8992799520492554e-01
+ <_>
+
+ 0 -1 1099 5.1422998309135437e-02
+
+ -1.6665300726890564e-01 1.2149239778518677e+00
+ <_>
+
+ 0 -1 1100 1.4279999770224094e-02
+
+ 2.3627699911594391e-01 -4.1396799683570862e-01
+ <_>
+
+ 0 -1 1101 -9.1611996293067932e-02
+
+ -9.2830902338027954e-01 -1.8345000222325325e-02
+ <_>
+
+ 0 -1 1102 6.5080001950263977e-03
+
+ -7.3647201061248779e-01 1.9497099518775940e-01
+ <_>
+
+ 0 -1 1103 3.5723000764846802e-02
+
+ 1.4197799563407898e-01 -4.2089301347732544e-01
+ <_>
+
+ 0 -1 1104 5.0638001412153244e-02
+
+ 1.1644000187516212e-02 7.8486597537994385e-01
+ <_>
+
+ 0 -1 1105 -1.4613999985158443e-02
+
+ -1.1909500360488892e+00 -3.5128001123666763e-02
+ <_>
+
+ 0 -1 1106 -3.8662999868392944e-02
+
+ 2.4314730167388916e+00 6.5647996962070465e-02
+ <_>
+
+ 0 -1 1107 -4.0346998721361160e-02
+
+ 7.1755301952362061e-01 -1.9108299911022186e-01
+ <_>
+
+ 0 -1 1108 2.3902000859379768e-02
+
+ 1.5646199882030487e-01 -7.9294800758361816e-01
+ <_>
+ 137
+ -3.5125269889831543e+00
+
+ <_>
+
+ 0 -1 1109 8.5640000179409981e-03
+
+ -8.1450700759887695e-01 5.8875298500061035e-01
+ <_>
+
+ 0 -1 1110 -1.3292600214481354e-01
+
+ 9.3213397264480591e-01 -2.9367300868034363e-01
+ <_>
+
+ 0 -1 1111 9.8400004208087921e-03
+
+ -5.6462901830673218e-01 4.1647699475288391e-01
+ <_>
+
+ 0 -1 1112 5.0889998674392700e-03
+
+ -7.9232800006866455e-01 1.6975000500679016e-01
+ <_>
+
+ 0 -1 1113 -6.1039000749588013e-02
+
+ -1.4169000387191772e+00 2.5020999833941460e-02
+ <_>
+
+ 0 -1 1114 -4.6599999768659472e-04
+
+ 3.7982499599456787e-01 -4.1567099094390869e-01
+ <_>
+
+ 0 -1 1115 3.3889999613165855e-03
+
+ -4.0768599510192871e-01 3.5548499226570129e-01
+ <_>
+
+ 0 -1 1116 2.1006999537348747e-02
+
+ -2.4080100655555725e-01 8.6112701892852783e-01
+ <_>
+
+ 0 -1 1117 7.5559997931122780e-03
+
+ -8.7467199563980103e-01 9.8572000861167908e-02
+ <_>
+
+ 0 -1 1118 2.4779999628663063e-02
+
+ 1.5566200017929077e-01 -6.9229799509048462e-01
+ <_>
+
+ 0 -1 1119 -3.5620000213384628e-02
+
+ -1.1472270488739014e+00 3.6359999328851700e-02
+ <_>
+
+ 0 -1 1120 1.9810000434517860e-02
+
+ 1.5516200661659241e-01 -6.9520097970962524e-01
+ <_>
+
+ 0 -1 1121 1.5019999817013741e-02
+
+ 4.1990000754594803e-02 -9.6622800827026367e-01
+ <_>
+
+ 0 -1 1122 -2.3137999698519707e-02
+
+ 4.3396899104118347e-01 2.4160000029951334e-03
+ <_>
+
+ 0 -1 1123 -1.8743000924587250e-02
+
+ 4.3481099605560303e-01 -3.2522499561309814e-01
+ <_>
+
+ 0 -1 1124 4.5080000162124634e-01
+
+ -9.4573996961116791e-02 7.2421300411224365e-01
+ <_>
+
+ 0 -1 1125 1.1854999698698521e-02
+
+ -3.8133099675178528e-01 3.0098399519920349e-01
+ <_>
+
+ 0 -1 1126 -2.4830000475049019e-02
+
+ 8.9300602674484253e-01 -1.0295899957418442e-01
+ <_>
+
+ 0 -1 1127 -4.4743001461029053e-02
+
+ 8.6280298233032227e-01 -2.1716499328613281e-01
+ <_>
+
+ 0 -1 1128 -1.4600000344216824e-02
+
+ 6.0069400072097778e-01 -1.5906299650669098e-01
+ <_>
+
+ 0 -1 1129 -2.4527000263333321e-02
+
+ -1.5872869491577148e+00 -2.1817000582814217e-02
+ <_>
+
+ 0 -1 1130 2.3024000227451324e-02
+
+ 1.6853399574756622e-01 -3.8106900453567505e-01
+ <_>
+
+ 0 -1 1131 -2.4917000904679298e-02
+
+ 5.0810897350311279e-01 -2.7279898524284363e-01
+ <_>
+
+ 0 -1 1132 1.0130000300705433e-03
+
+ -4.3138799071311951e-01 2.6438099145889282e-01
+ <_>
+
+ 0 -1 1133 1.5603000298142433e-02
+
+ -3.1624200940132141e-01 5.5715900659561157e-01
+ <_>
+
+ 0 -1 1134 -2.6685999706387520e-02
+
+ 1.0553920269012451e+00 2.9074000194668770e-02
+ <_>
+
+ 0 -1 1135 1.3940000208094716e-03
+
+ -7.1873801946640015e-01 6.5390996634960175e-02
+ <_>
+
+ 0 -1 1136 -6.4799998654052615e-04
+
+ 2.4884399771690369e-01 -2.0978200435638428e-01
+ <_>
+
+ 0 -1 1137 -3.1888000667095184e-02
+
+ -6.8844497203826904e-01 6.3589997589588165e-02
+ <_>
+
+ 0 -1 1138 -4.9290000461041927e-03
+
+ -5.9152501821517944e-01 2.7943599224090576e-01
+ <_>
+
+ 0 -1 1139 3.1168000772595406e-02
+
+ 4.5223999768495560e-02 -8.8639199733734131e-01
+ <_>
+
+ 0 -1 1140 -3.3663000911474228e-02
+
+ -6.1590200662612915e-01 1.5749299526214600e-01
+ <_>
+
+ 0 -1 1141 1.1966999620199203e-02
+
+ -3.0606698989868164e-01 4.2293301224708557e-01
+ <_>
+
+ 0 -1 1142 -3.4680001437664032e-02
+
+ -1.3734940290451050e+00 1.5908700227737427e-01
+ <_>
+
+ 0 -1 1143 9.9290004000067711e-03
+
+ -5.5860197544097900e-01 1.2119200080633163e-01
+ <_>
+
+ 0 -1 1144 5.9574998915195465e-02
+
+ 4.9720001406967640e-03 8.2055401802062988e-01
+ <_>
+
+ 0 -1 1145 -6.5428003668785095e-02
+
+ 1.5651429891586304e+00 -1.6817499697208405e-01
+ <_>
+
+ 0 -1 1146 -9.2895999550819397e-02
+
+ -1.5794529914855957e+00 1.4661799371242523e-01
+ <_>
+
+ 0 -1 1147 -4.1184000670909882e-02
+
+ -1.5518720149993896e+00 -2.9969999566674232e-02
+ <_>
+
+ 0 -1 1148 2.1447999402880669e-02
+
+ 1.7196300625801086e-01 -6.9343197345733643e-01
+ <_>
+
+ 0 -1 1149 -2.5569999590516090e-02
+
+ -1.3061310052871704e+00 -2.4336999282240868e-02
+ <_>
+
+ 0 -1 1150 -4.1200999170541763e-02
+
+ -1.3821059465408325e+00 1.4801800251007080e-01
+ <_>
+
+ 0 -1 1151 -1.7668999731540680e-02
+
+ -7.0889997482299805e-01 3.6524001508951187e-02
+ <_>
+
+ 0 -1 1152 9.0060001239180565e-03
+
+ -4.0913999080657959e-02 8.0373102426528931e-01
+ <_>
+
+ 0 -1 1153 -1.1652999557554722e-02
+
+ 5.7546800374984741e-01 -2.4991700053215027e-01
+ <_>
+
+ 0 -1 1154 -7.4780001305043697e-03
+
+ -4.9280899763107300e-01 1.9810900092124939e-01
+ <_>
+
+ 0 -1 1155 8.5499999113380909e-04
+
+ -4.8858100175857544e-01 1.3563099503517151e-01
+ <_>
+
+ 0 -1 1156 -3.0538000166416168e-02
+
+ -6.0278397798538208e-01 1.8522000312805176e-01
+ <_>
+
+ 0 -1 1157 -1.8846999853849411e-02
+
+ 2.3565599322319031e-01 -3.5136300325393677e-01
+ <_>
+
+ 0 -1 1158 -8.1129996106028557e-03
+
+ -8.1304997205734253e-02 2.1069599688053131e-01
+ <_>
+
+ 0 -1 1159 -3.4830000251531601e-02
+
+ -1.2065670490264893e+00 -1.4251999557018280e-02
+ <_>
+
+ 0 -1 1160 1.9021000713109970e-02
+
+ 2.3349900543689728e-01 -4.5664900541305542e-01
+ <_>
+
+ 0 -1 1161 -1.9004000350832939e-02
+
+ -8.1075799465179443e-01 1.3140000402927399e-02
+ <_>
+
+ 0 -1 1162 -8.9057996869087219e-02
+
+ 6.1542397737503052e-01 3.2983001321554184e-02
+ <_>
+
+ 0 -1 1163 6.8620000965893269e-03
+
+ -2.9583099484443665e-01 2.7003699541091919e-01
+ <_>
+
+ 0 -1 1164 -2.8240999206900597e-02
+
+ -6.1102700233459473e-01 1.7357499897480011e-01
+ <_>
+
+ 0 -1 1165 -3.2099999953061342e-04
+
+ -5.3322899341583252e-01 6.8539001047611237e-02
+ <_>
+
+ 0 -1 1166 -1.0829100012779236e-01
+
+ -1.2879559993743896e+00 1.1801700294017792e-01
+ <_>
+
+ 0 -1 1167 1.5878999605774879e-02
+
+ -1.7072600126266479e-01 1.1103910207748413e+00
+ <_>
+
+ 0 -1 1168 8.6859995499253273e-03
+
+ -1.0995099693536758e-01 4.6010500192642212e-01
+ <_>
+
+ 0 -1 1169 -2.5234999135136604e-02
+
+ 1.0220669507980347e+00 -1.8694299459457397e-01
+ <_>
+
+ 0 -1 1170 -1.3508999720215797e-02
+
+ -7.8316599130630493e-01 1.4202600717544556e-01
+ <_>
+
+ 0 -1 1171 -7.7149998396635056e-03
+
+ -8.8060700893402100e-01 1.1060000397264957e-02
+ <_>
+
+ 0 -1 1172 7.1580000221729279e-02
+
+ 1.1369399726390839e-01 -1.1032789945602417e+00
+ <_>
+
+ 0 -1 1173 -1.3554000295698643e-02
+
+ -8.1096500158309937e-01 3.4080001059919596e-03
+ <_>
+
+ 0 -1 1174 2.9450000729411840e-03
+
+ -7.2879999876022339e-02 3.4998100996017456e-01
+ <_>
+
+ 0 -1 1175 -5.0833001732826233e-02
+
+ -1.2868590354919434e+00 -2.8842000290751457e-02
+ <_>
+
+ 0 -1 1176 -8.7989997118711472e-03
+
+ 4.7613599896430969e-01 -1.4690400660037994e-01
+ <_>
+
+ 0 -1 1177 2.1424399316310883e-01
+
+ -5.9702001512050629e-02 -2.4802260398864746e+00
+ <_>
+
+ 0 -1 1178 1.3962999917566776e-02
+
+ 1.7420299351215363e-01 -4.3911001086235046e-01
+ <_>
+
+ 0 -1 1179 4.2502000927925110e-02
+
+ -1.9965299963951111e-01 7.0654797554016113e-01
+ <_>
+
+ 0 -1 1180 1.9827999174594879e-02
+
+ -6.9136001169681549e-02 6.1643397808074951e-01
+ <_>
+
+ 0 -1 1181 -3.3560000360012054e-02
+
+ -1.2740780115127563e+00 -2.5673000141978264e-02
+ <_>
+
+ 0 -1 1182 6.3542999327182770e-02
+
+ 1.2403500080108643e-01 -1.0776289701461792e+00
+ <_>
+
+ 0 -1 1183 2.1933000534772873e-02
+
+ 1.4952000230550766e-02 -7.1023499965667725e-01
+ <_>
+
+ 0 -1 1184 -7.8424997627735138e-02
+
+ 6.2033998966217041e-01 3.3610999584197998e-02
+ <_>
+
+ 0 -1 1185 1.4390000142157078e-02
+
+ -3.6324599385261536e-01 1.7308300733566284e-01
+ <_>
+
+ 0 -1 1186 -6.7309997975826263e-02
+
+ 5.2374100685119629e-01 1.2799999676644802e-02
+ <_>
+
+ 0 -1 1187 1.3047499954700470e-01
+
+ -1.7122499644756317e-01 1.1235200166702271e+00
+ <_>
+
+ 0 -1 1188 -4.6245999634265900e-02
+
+ -1.1908329725265503e+00 1.7425599694252014e-01
+ <_>
+
+ 0 -1 1189 -2.9842000454664230e-02
+
+ 8.3930599689483643e-01 -1.8064199388027191e-01
+ <_>
+
+ 0 -1 1190 -3.8099999073892832e-04
+
+ 3.5532799363136292e-01 -2.3842300474643707e-01
+ <_>
+
+ 0 -1 1191 -2.2378999739885330e-02
+
+ -8.7943899631500244e-01 -7.8399997437372804e-04
+ <_>
+
+ 0 -1 1192 -1.5569999814033508e-03
+
+ -1.4253300428390503e-01 2.5876200199127197e-01
+ <_>
+
+ 0 -1 1193 1.2013000436127186e-02
+
+ -2.9015499353408813e-01 2.6051101088523865e-01
+ <_>
+
+ 0 -1 1194 2.4384999647736549e-02
+
+ -3.1438998878002167e-02 5.8695900440216064e-01
+ <_>
+
+ 0 -1 1195 -4.7180999070405960e-02
+
+ 6.9430100917816162e-01 -2.1816100180149078e-01
+ <_>
+
+ 0 -1 1196 -2.4893999099731445e-02
+
+ -6.4599299430847168e-01 1.5611599385738373e-01
+ <_>
+
+ 0 -1 1197 2.1944999694824219e-02
+
+ -2.7742000296711922e-02 -1.1346880197525024e+00
+ <_>
+
+ 0 -1 1198 1.8809899687767029e-01
+
+ -1.0076000355184078e-02 1.2429029941558838e+00
+ <_>
+
+ 0 -1 1199 -7.7872000634670258e-02
+
+ 8.5008001327514648e-01 -1.9015499949455261e-01
+ <_>
+
+ 0 -1 1200 -4.8769000917673111e-02
+
+ -2.0763080120086670e+00 1.2179400026798248e-01
+ <_>
+
+ 0 -1 1201 -1.7115000635385513e-02
+
+ -8.5687297582626343e-01 7.8760003671050072e-03
+ <_>
+
+ 0 -1 1202 -2.7499999850988388e-03
+
+ 3.8645499944686890e-01 -1.1391499638557434e-01
+ <_>
+
+ 0 -1 1203 -9.8793998360633850e-02
+
+ -1.7233899831771851e+00 -5.6063000112771988e-02
+ <_>
+
+ 0 -1 1204 -2.1936999633908272e-02
+
+ 5.4749399423599243e-01 -4.2481999844312668e-02
+ <_>
+
+ 0 -1 1205 6.1096999794244766e-02
+
+ -3.8945000618696213e-02 -1.0807880163192749e+00
+ <_>
+
+ 0 -1 1206 -2.4563999846577644e-02
+
+ 5.8311098814010620e-01 -9.7599998116493225e-04
+ <_>
+
+ 0 -1 1207 3.3752001821994781e-02
+
+ -1.3795999810099602e-02 -8.4730297327041626e-01
+ <_>
+
+ 0 -1 1208 3.8199000060558319e-02
+
+ 1.5114299952983856e-01 -7.9473400115966797e-01
+ <_>
+
+ 0 -1 1209 -2.0117999985814095e-02
+
+ 5.1579099893569946e-01 -2.1445399522781372e-01
+ <_>
+
+ 0 -1 1210 2.4734999984502792e-02
+
+ -2.2105000913143158e-02 4.2917698621749878e-01
+ <_>
+
+ 0 -1 1211 -2.4357000365853310e-02
+
+ -8.6201298236846924e-01 -3.6760000512003899e-03
+ <_>
+
+ 0 -1 1212 -2.6442000642418861e-02
+
+ -4.5397499203681946e-01 2.2462800145149231e-01
+ <_>
+
+ 0 -1 1213 -3.4429999068379402e-03
+
+ 1.3073000311851501e-01 -3.8622701168060303e-01
+ <_>
+
+ 0 -1 1214 1.0701700299978256e-01
+
+ 1.3158600032329559e-01 -7.9306900501251221e-01
+ <_>
+
+ 0 -1 1215 4.5152999460697174e-02
+
+ -2.5296801328659058e-01 4.0672400593757629e-01
+ <_>
+
+ 0 -1 1216 4.4349998235702515e-02
+
+ 2.2613000124692917e-02 7.9618102312088013e-01
+ <_>
+
+ 0 -1 1217 1.0839999886229634e-03
+
+ -3.9158400893211365e-01 1.1639100313186646e-01
+ <_>
+
+ 0 -1 1218 7.1433000266551971e-02
+
+ 8.2466997206211090e-02 1.2530590295791626e+00
+ <_>
+
+ 0 -1 1219 3.5838000476360321e-02
+
+ -1.8203300237655640e-01 7.7078700065612793e-01
+ <_>
+
+ 0 -1 1220 -2.0839000120759010e-02
+
+ -6.1744397878646851e-01 1.5891399979591370e-01
+ <_>
+
+ 0 -1 1221 4.2525801062583923e-01
+
+ -4.8978000879287720e-02 -1.8422030210494995e+00
+ <_>
+
+ 0 -1 1222 1.1408000253140926e-02
+
+ 1.7918199300765991e-01 -1.5383499860763550e-01
+ <_>
+
+ 0 -1 1223 -1.5364999882876873e-02
+
+ -8.4016501903533936e-01 -1.0280000278726220e-03
+ <_>
+
+ 0 -1 1224 -1.5212000347673893e-02
+
+ -1.8995699286460876e-01 1.7130999267101288e-01
+ <_>
+
+ 0 -1 1225 -1.8972000107169151e-02
+
+ -7.9541999101638794e-01 6.6800001077353954e-03
+ <_>
+
+ 0 -1 1226 -3.3330000005662441e-03
+
+ -2.3530800640583038e-01 2.4730099737644196e-01
+ <_>
+
+ 0 -1 1227 9.3248002231121063e-02
+
+ -5.4758001118898392e-02 -1.8324300050735474e+00
+ <_>
+
+ 0 -1 1228 -1.2555000372231007e-02
+
+ 2.6385200023651123e-01 -3.8526400923728943e-01
+ <_>
+
+ 0 -1 1229 -2.7070000767707825e-02
+
+ -6.6929799318313599e-01 2.0340999588370323e-02
+ <_>
+
+ 0 -1 1230 -2.3677000775933266e-02
+
+ 6.7265301942825317e-01 -1.4344000257551670e-02
+ <_>
+
+ 0 -1 1231 -1.4275000430643559e-02
+
+ 3.0186399817466736e-01 -2.8514400124549866e-01
+ <_>
+
+ 0 -1 1232 2.8096999973058701e-02
+
+ 1.4766000211238861e-01 -1.4078520536422729e+00
+ <_>
+
+ 0 -1 1233 5.0840001553297043e-02
+
+ -1.8613600730895996e-01 7.9953002929687500e-01
+ <_>
+
+ 0 -1 1234 1.1505999602377415e-02
+
+ 1.9118399918079376e-01 -8.5035003721714020e-02
+ <_>
+
+ 0 -1 1235 -1.4661000110208988e-02
+
+ 4.5239299535751343e-01 -2.2205199301242828e-01
+ <_>
+
+ 0 -1 1236 2.2842499613761902e-01
+
+ 1.3488399982452393e-01 -1.2894610166549683e+00
+ <_>
+
+ 0 -1 1237 1.1106900125741959e-01
+
+ -2.0753799378871918e-01 5.4561597108840942e-01
+ <_>
+
+ 0 -1 1238 3.2450000289827585e-03
+
+ 3.2053700089454651e-01 -1.6403500735759735e-01
+ <_>
+
+ 0 -1 1239 8.5309997200965881e-02
+
+ -2.0210500061511993e-01 5.3296798467636108e-01
+ <_>
+
+ 0 -1 1240 2.2048000246286392e-02
+
+ 1.5698599815368652e-01 -1.7014099657535553e-01
+ <_>
+
+ 0 -1 1241 -1.5676999464631081e-02
+
+ -6.2863498926162720e-01 4.0761999785900116e-02
+ <_>
+
+ 0 -1 1242 3.3112901449203491e-01
+
+ 1.6609300673007965e-01 -1.0326379537582397e+00
+ <_>
+
+ 0 -1 1243 8.8470000773668289e-03
+
+ -2.5076198577880859e-01 3.1660598516464233e-01
+ <_>
+
+ 0 -1 1244 4.6080000698566437e-02
+
+ 1.5352100133895874e-01 -1.6333500146865845e+00
+ <_>
+
+ 0 -1 1245 -3.7703000009059906e-02
+
+ 5.6873798370361328e-01 -2.0102599263191223e-01
+ <_>
+ 159
+ -3.5939640998840332e+00
+
+ <_>
+
+ 0 -1 1246 -8.1808999180793762e-02
+
+ 5.7124799489974976e-01 -6.7438799142837524e-01
+ <_>
+
+ 0 -1 1247 2.1761199831962585e-01
+
+ -3.8610199093818665e-01 9.0343999862670898e-01
+ <_>
+
+ 0 -1 1248 1.4878000132739544e-02
+
+ 2.2241599857807159e-01 -1.2779350280761719e+00
+ <_>
+
+ 0 -1 1249 5.2434999495744705e-02
+
+ -2.8690400719642639e-01 7.5742298364639282e-01
+ <_>
+
+ 0 -1 1250 9.1429995372891426e-03
+
+ -6.4880400896072388e-01 2.2268800437450409e-01
+ <_>
+
+ 0 -1 1251 7.9169999808073044e-03
+
+ -2.9253599047660828e-01 3.1030198931694031e-01
+ <_>
+
+ 0 -1 1252 -2.6084000244736671e-02
+
+ 4.5532700419425964e-01 -3.8500601053237915e-01
+ <_>
+
+ 0 -1 1253 -2.9400000348687172e-03
+
+ -5.1264399290084839e-01 2.7432298660278320e-01
+ <_>
+
+ 0 -1 1254 5.7130001485347748e-02
+
+ 1.5788000077009201e-02 -1.2133100032806396e+00
+ <_>
+
+ 0 -1 1255 -6.1309998854994774e-03
+
+ 3.9174601435661316e-01 -3.0866798758506775e-01
+ <_>
+
+ 0 -1 1256 -4.0405001491308212e-02
+
+ 1.1901949644088745e+00 -2.0347100496292114e-01
+ <_>
+
+ 0 -1 1257 -2.0297000184655190e-02
+
+ -6.8239498138427734e-01 2.0458699762821198e-01
+ <_>
+
+ 0 -1 1258 -1.7188999801874161e-02
+
+ -8.4939897060394287e-01 3.8433000445365906e-02
+ <_>
+
+ 0 -1 1259 -2.4215999990701675e-02
+
+ -1.1039420366287231e+00 1.5975099802017212e-01
+ <_>
+
+ 0 -1 1260 5.6869000196456909e-02
+
+ -1.9595299661159515e-01 1.1806850433349609e+00
+ <_>
+
+ 0 -1 1261 3.6199999158270657e-04
+
+ -4.0847799181938171e-01 3.2938599586486816e-01
+ <_>
+
+ 0 -1 1262 9.9790003150701523e-03
+
+ -2.9673001170158386e-01 4.1547900438308716e-01
+ <_>
+
+ 0 -1 1263 -5.2625000476837158e-02
+
+ -1.3069299459457397e+00 1.7862600088119507e-01
+ <_>
+
+ 0 -1 1264 -1.3748999685049057e-02
+
+ 2.3665800690650940e-01 -4.4536599516868591e-01
+ <_>
+
+ 0 -1 1265 -3.0517000705003738e-02
+
+ 2.9018300771713257e-01 -1.1210100352764130e-01
+ <_>
+
+ 0 -1 1266 -3.0037501454353333e-01
+
+ -2.4237680435180664e+00 -4.2830999940633774e-02
+ <_>
+
+ 0 -1 1267 -3.5990998148918152e-02
+
+ 8.8206499814987183e-01 -4.7012999653816223e-02
+ <_>
+
+ 0 -1 1268 -5.5112000554800034e-02
+
+ 8.0119001865386963e-01 -2.0490999519824982e-01
+ <_>
+
+ 0 -1 1269 3.3762000501155853e-02
+
+ 1.4617599546909332e-01 -1.1349489688873291e+00
+ <_>
+
+ 0 -1 1270 -8.2710003480315208e-03
+
+ -8.1604897975921631e-01 1.8988000229001045e-02
+ <_>
+
+ 0 -1 1271 -5.4399999789893627e-03
+
+ -7.0980900526046753e-01 2.2343699634075165e-01
+ <_>
+
+ 0 -1 1272 3.1059999018907547e-03
+
+ -7.2808599472045898e-01 4.0224999189376831e-02
+ <_>
+
+ 0 -1 1273 5.3651999682188034e-02
+
+ 1.7170900106430054e-01 -1.1163710355758667e+00
+ <_>
+
+ 0 -1 1274 -1.2541399896144867e-01
+
+ 2.7680370807647705e+00 -1.4611500501632690e-01
+ <_>
+
+ 0 -1 1275 9.2542000114917755e-02
+
+ 1.1609800159931183e-01 -3.9635529518127441e+00
+ <_>
+
+ 0 -1 1276 3.8513999432325363e-02
+
+ -7.6399999670684338e-03 -9.8780900239944458e-01
+ <_>
+
+ 0 -1 1277 -2.0200000144541264e-03
+
+ 2.3059999942779541e-01 -7.4970299005508423e-01
+ <_>
+
+ 0 -1 1278 9.7599998116493225e-03
+
+ -3.1137999892234802e-01 3.0287799239158630e-01
+ <_>
+
+ 0 -1 1279 2.4095000699162483e-02
+
+ -4.9529999494552612e-02 5.2690100669860840e-01
+ <_>
+
+ 0 -1 1280 -1.7982000485062599e-02
+
+ -1.1610640287399292e+00 -5.7000000961124897e-03
+ <_>
+
+ 0 -1 1281 -1.0555000044405460e-02
+
+ -2.7189099788665771e-01 2.3597699403762817e-01
+ <_>
+
+ 0 -1 1282 -7.2889998555183411e-03
+
+ -5.4219102859497070e-01 8.1914000213146210e-02
+ <_>
+
+ 0 -1 1283 2.3939000442624092e-02
+
+ 1.7975799739360809e-01 -6.7049497365951538e-01
+ <_>
+
+ 0 -1 1284 -1.8365999683737755e-02
+
+ 6.2664300203323364e-01 -2.0970100164413452e-01
+ <_>
+
+ 0 -1 1285 1.5715999528765678e-02
+
+ 2.4193699657917023e-01 -1.0444309711456299e+00
+ <_>
+
+ 0 -1 1286 -4.8804000020027161e-02
+
+ -9.4060599803924561e-01 -3.7519999314099550e-03
+ <_>
+
+ 0 -1 1287 6.7130001261830330e-03
+
+ -7.5432002544403076e-02 6.1575299501419067e-01
+ <_>
+
+ 0 -1 1288 9.7770001739263535e-03
+
+ 3.9285000413656235e-02 -8.4810298681259155e-01
+ <_>
+
+ 0 -1 1289 1.4744999818503857e-02
+
+ 1.6968999803066254e-01 -5.0906401872634888e-01
+ <_>
+
+ 0 -1 1290 9.7079001367092133e-02
+
+ -3.3103000372648239e-02 -1.2706379890441895e+00
+ <_>
+
+ 0 -1 1291 4.8285998404026031e-02
+
+ 9.4329997897148132e-02 2.7203190326690674e+00
+ <_>
+
+ 0 -1 1292 9.7810002043843269e-03
+
+ -3.9533400535583496e-01 1.5363800525665283e-01
+ <_>
+
+ 0 -1 1293 -3.9893999695777893e-02
+
+ -2.2767400741577148e-01 1.3913999497890472e-01
+ <_>
+
+ 0 -1 1294 2.2848000749945641e-02
+
+ -2.7391999959945679e-01 3.4199500083923340e-01
+ <_>
+
+ 0 -1 1295 6.7179999314248562e-03
+
+ -1.0874299705028534e-01 4.8125401139259338e-01
+ <_>
+
+ 0 -1 1296 5.9599999338388443e-02
+
+ -4.9522001296281815e-02 -2.0117089748382568e+00
+ <_>
+
+ 0 -1 1297 6.9340001791715622e-03
+
+ 1.5037499368190765e-01 -1.1271899938583374e-01
+ <_>
+
+ 0 -1 1298 1.5757000073790550e-02
+
+ -2.0885000005364418e-02 -1.1651979684829712e+00
+ <_>
+
+ 0 -1 1299 -4.9690000712871552e-02
+
+ -8.0213499069213867e-01 1.4372299611568451e-01
+ <_>
+
+ 0 -1 1300 5.2347000688314438e-02
+
+ -2.0836700499057770e-01 6.1677598953247070e-01
+ <_>
+
+ 0 -1 1301 2.2430999204516411e-02
+
+ 2.0305900275707245e-01 -7.5326198339462280e-01
+ <_>
+
+ 0 -1 1302 4.1142001748085022e-02
+
+ -1.8118199706077576e-01 1.0033359527587891e+00
+ <_>
+
+ 0 -1 1303 -2.1632000803947449e-02
+
+ 4.9998998641967773e-01 -3.4662999212741852e-02
+ <_>
+
+ 0 -1 1304 -8.2808002829551697e-02
+
+ 1.1711900234222412e+00 -1.8433600664138794e-01
+ <_>
+
+ 0 -1 1305 8.5060000419616699e-03
+
+ -6.3225001096725464e-02 2.9024899005889893e-01
+ <_>
+
+ 0 -1 1306 7.8905001282691956e-02
+
+ -2.3274500668048859e-01 5.9695798158645630e-01
+ <_>
+
+ 0 -1 1307 -9.0207003057003021e-02
+
+ -8.2211899757385254e-01 1.7772200703620911e-01
+ <_>
+
+ 0 -1 1308 -2.9269000515341759e-02
+
+ 6.0860699415206909e-01 -2.1468900144100189e-01
+ <_>
+
+ 0 -1 1309 6.9499998353421688e-03
+
+ -4.2665999382734299e-02 6.0512101650238037e-01
+ <_>
+
+ 0 -1 1310 -8.0629996955394745e-03
+
+ -1.1508270502090454e+00 -2.7286000549793243e-02
+ <_>
+
+ 0 -1 1311 1.9595999270677567e-02
+
+ -9.1880001127719879e-03 5.6857800483703613e-01
+ <_>
+
+ 0 -1 1312 -1.4884999953210354e-02
+
+ 3.7658798694610596e-01 -2.7149501442909241e-01
+ <_>
+
+ 0 -1 1313 2.5217000395059586e-02
+
+ -9.9991001188755035e-02 2.4664700031280518e-01
+ <_>
+
+ 0 -1 1314 -1.5855999663472176e-02
+
+ 6.6826701164245605e-01 -2.0614700019359589e-01
+ <_>
+
+ 0 -1 1315 2.9441000893712044e-02
+
+ 1.5832200646400452e-01 -7.6060897111892700e-01
+ <_>
+
+ 0 -1 1316 -8.5279997438192368e-03
+
+ 3.8212299346923828e-01 -2.5407800078392029e-01
+ <_>
+
+ 0 -1 1317 2.4421999230980873e-02
+
+ 1.5105099976062775e-01 -2.8752899169921875e-01
+ <_>
+
+ 0 -1 1318 -3.3886998891830444e-02
+
+ -6.8002802133560181e-01 3.4327000379562378e-02
+ <_>
+
+ 0 -1 1319 -2.0810000132769346e-03
+
+ 2.5413900613784790e-01 -2.6859098672866821e-01
+ <_>
+
+ 0 -1 1320 3.0358999967575073e-02
+
+ -3.0842000618577003e-02 -1.1476809978485107e+00
+ <_>
+
+ 0 -1 1321 4.0210001170635223e-03
+
+ -3.5253798961639404e-01 2.9868099093437195e-01
+ <_>
+
+ 0 -1 1322 2.7681000530719757e-02
+
+ -3.8148999214172363e-02 -1.3262039422988892e+00
+ <_>
+
+ 0 -1 1323 7.9039996489882469e-03
+
+ -2.3737000301480293e-02 7.0503002405166626e-01
+ <_>
+
+ 0 -1 1324 4.4031001627445221e-02
+
+ 1.0674899816513062e-01 -4.5261201262474060e-01
+ <_>
+
+ 0 -1 1325 -3.2370999455451965e-02
+
+ 4.6674901247024536e-01 -6.1546999961137772e-02
+ <_>
+
+ 0 -1 1326 2.0933000370860100e-02
+
+ -2.8447899222373962e-01 4.3845599889755249e-01
+ <_>
+
+ 0 -1 1327 2.5227999314665794e-02
+
+ -2.2537000477313995e-02 7.0389097929000854e-01
+ <_>
+
+ 0 -1 1328 6.5520000644028187e-03
+
+ -3.2554900646209717e-01 2.4023699760437012e-01
+ <_>
+
+ 0 -1 1329 -5.8557998389005661e-02
+
+ -1.2227720022201538e+00 1.1668799817562103e-01
+ <_>
+
+ 0 -1 1330 3.1899999827146530e-02
+
+ -1.9305000081658363e-02 -1.0973169803619385e+00
+ <_>
+
+ 0 -1 1331 -3.0445000156760216e-02
+
+ 6.5582501888275146e-01 7.5090996921062469e-02
+ <_>
+
+ 0 -1 1332 1.4933000318706036e-02
+
+ -5.2155798673629761e-01 1.1523099988698959e-01
+ <_>
+
+ 0 -1 1333 -4.9008000642061234e-02
+
+ -7.8303998708724976e-01 1.6657200455665588e-01
+ <_>
+
+ 0 -1 1334 8.3158999681472778e-02
+
+ -2.6879999786615372e-03 -8.5282301902770996e-01
+ <_>
+
+ 0 -1 1335 2.3902999237179756e-02
+
+ -5.1010999828577042e-02 4.1999098658561707e-01
+ <_>
+
+ 0 -1 1336 1.6428999602794647e-02
+
+ 1.9232999533414841e-02 -6.5049099922180176e-01
+ <_>
+
+ 0 -1 1337 -1.1838000267744064e-02
+
+ -6.2409800291061401e-01 1.5411199629306793e-01
+ <_>
+
+ 0 -1 1338 -1.6799999866634607e-04
+
+ 1.7589199542999268e-01 -3.4338700771331787e-01
+ <_>
+
+ 0 -1 1339 1.9193999469280243e-02
+
+ 4.3418999761343002e-02 7.9069197177886963e-01
+ <_>
+
+ 0 -1 1340 -1.0032000020146370e-02
+
+ 4.5648899674415588e-01 -2.2494800388813019e-01
+ <_>
+
+ 0 -1 1341 -1.4004000462591648e-02
+
+ 3.3570998907089233e-01 -4.8799999058246613e-03
+ <_>
+
+ 0 -1 1342 -1.0319899767637253e-01
+
+ -2.3378000259399414e+00 -5.8933001011610031e-02
+ <_>
+
+ 0 -1 1343 -9.5697000622749329e-02
+
+ -6.6153901815414429e-01 2.0098599791526794e-01
+ <_>
+
+ 0 -1 1344 -4.1480999439954758e-02
+
+ 4.5939201116561890e-01 -2.2314099967479706e-01
+ <_>
+
+ 0 -1 1345 2.4099999573081732e-03
+
+ -2.6898598670959473e-01 2.4922999739646912e-01
+ <_>
+
+ 0 -1 1346 1.0724999755620956e-01
+
+ -1.8640199303627014e-01 7.2769802808761597e-01
+ <_>
+
+ 0 -1 1347 3.1870000530034304e-03
+
+ -2.4608999490737915e-02 2.8643900156021118e-01
+ <_>
+
+ 0 -1 1348 2.9167000204324722e-02
+
+ -3.4683000296354294e-02 -1.1162580251693726e+00
+ <_>
+
+ 0 -1 1349 1.1287000030279160e-02
+
+ 6.3760001212358475e-03 6.6632097959518433e-01
+ <_>
+
+ 0 -1 1350 -1.2001000344753265e-02
+
+ 4.2420101165771484e-01 -2.6279801130294800e-01
+ <_>
+
+ 0 -1 1351 -1.2695999816060066e-02
+
+ -2.1957000717520714e-02 1.8936799466609955e-01
+ <_>
+
+ 0 -1 1352 2.4597000330686569e-02
+
+ -3.4963998943567276e-02 -1.0989320278167725e+00
+ <_>
+
+ 0 -1 1353 4.5953001827001572e-02
+
+ 1.1109799891710281e-01 -2.9306049346923828e+00
+ <_>
+
+ 0 -1 1354 -2.7241000905632973e-02
+
+ 2.9101699590682983e-01 -2.7407899498939514e-01
+ <_>
+
+ 0 -1 1355 4.0063999593257904e-02
+
+ 1.1877900362014771e-01 -6.2801802158355713e-01
+ <_>
+
+ 0 -1 1356 2.3055000230669975e-02
+
+ 1.4813800156116486e-01 -3.7007498741149902e-01
+ <_>
+
+ 0 -1 1357 -2.3737000301480293e-02
+
+ -5.3724801540374756e-01 1.9358199834823608e-01
+ <_>
+
+ 0 -1 1358 7.7522002160549164e-02
+
+ -6.0194000601768494e-02 -1.9489669799804688e+00
+ <_>
+
+ 0 -1 1359 -1.3345000334084034e-02
+
+ -4.5229598879814148e-01 1.8741500377655029e-01
+ <_>
+
+ 0 -1 1360 -2.1719999611377716e-02
+
+ 1.2144249677658081e+00 -1.5365800261497498e-01
+ <_>
+
+ 0 -1 1361 -7.1474999189376831e-02
+
+ -2.3047130107879639e+00 1.0999900102615356e-01
+ <_>
+
+ 0 -1 1362 -5.4999999701976776e-03
+
+ -7.1855199337005615e-01 2.0100999623537064e-02
+ <_>
+
+ 0 -1 1363 2.6740999892354012e-02
+
+ 7.3545001447200775e-02 9.8786002397537231e-01
+ <_>
+
+ 0 -1 1364 -3.9407998323440552e-02
+
+ -1.2227380275726318e+00 -4.3506998568773270e-02
+ <_>
+
+ 0 -1 1365 2.5888999924063683e-02
+
+ 1.3409300148487091e-01 -1.1770780086517334e+00
+ <_>
+
+ 0 -1 1366 4.8925001174211502e-02
+
+ -3.0810000374913216e-02 -9.3479502201080322e-01
+ <_>
+
+ 0 -1 1367 3.6892998963594437e-02
+
+ 1.3333700597286224e-01 -1.4998290538787842e+00
+ <_>
+
+ 0 -1 1368 7.8929997980594635e-02
+
+ -1.4538800716400146e-01 1.5631790161132812e+00
+ <_>
+
+ 0 -1 1369 2.9006000608205795e-02
+
+ 1.9383700191974640e-01 -6.7642802000045776e-01
+ <_>
+
+ 0 -1 1370 6.3089998438954353e-03
+
+ -3.7465399503707886e-01 1.0857500135898590e-01
+ <_>
+
+ 0 -1 1371 -6.5830998122692108e-02
+
+ 8.1059402227401733e-01 3.0201999470591545e-02
+ <_>
+
+ 0 -1 1372 -6.8965002894401550e-02
+
+ 8.3772599697113037e-01 -1.7140999436378479e-01
+ <_>
+
+ 0 -1 1373 -1.1669100075960159e-01
+
+ -9.4647198915481567e-01 1.3123199343681335e-01
+ <_>
+
+ 0 -1 1374 -1.3060000492259860e-03
+
+ 4.6007998287677765e-02 -5.2011597156524658e-01
+ <_>
+
+ 0 -1 1375 -4.4558998197317123e-02
+
+ -1.9423669576644897e+00 1.3200700283050537e-01
+ <_>
+
+ 0 -1 1376 5.1033001393079758e-02
+
+ -2.1480999886989594e-01 4.8673900961875916e-01
+ <_>
+
+ 0 -1 1377 -3.1578000634908676e-02
+
+ 5.9989798069000244e-01 7.9159997403621674e-03
+ <_>
+
+ 0 -1 1378 2.1020000800490379e-02
+
+ -2.2069500386714935e-01 5.4046201705932617e-01
+ <_>
+
+ 0 -1 1379 -1.3824200630187988e-01
+
+ 6.2957501411437988e-01 -2.1712999790906906e-02
+ <_>
+
+ 0 -1 1380 5.2228998392820358e-02
+
+ -2.3360900580883026e-01 4.9760800600051880e-01
+ <_>
+
+ 0 -1 1381 2.5884000584483147e-02
+
+ 1.8041999638080597e-01 -2.2039200365543365e-01
+ <_>
+
+ 0 -1 1382 -1.2138999998569489e-02
+
+ -6.9731897115707397e-01 1.5712000429630280e-02
+ <_>
+
+ 0 -1 1383 -2.4237999692559242e-02
+
+ 3.4593299031257629e-01 7.1469999849796295e-02
+ <_>
+
+ 0 -1 1384 -2.5272000581026077e-02
+
+ -8.7583297491073608e-01 -9.8240002989768982e-03
+ <_>
+
+ 0 -1 1385 1.2597000226378441e-02
+
+ 2.3649999499320984e-01 -2.8731200098991394e-01
+ <_>
+
+ 0 -1 1386 5.7330999523401260e-02
+
+ -6.1530999839305878e-02 -2.2326040267944336e+00
+ <_>
+
+ 0 -1 1387 1.6671000048518181e-02
+
+ -1.9850100576877594e-01 4.0810701251029968e-01
+ <_>
+
+ 0 -1 1388 -2.2818999364972115e-02
+
+ 9.6487599611282349e-01 -2.0245699584484100e-01
+ <_>
+
+ 0 -1 1389 3.7000001611886546e-05
+
+ -5.8908998966217041e-02 2.7055400609970093e-01
+ <_>
+
+ 0 -1 1390 -7.6700001955032349e-03
+
+ -4.5317101478576660e-01 8.9628003537654877e-02
+ <_>
+
+ 0 -1 1391 9.4085998833179474e-02
+
+ 1.1604599654674530e-01 -1.0951169729232788e+00
+ <_>
+
+ 0 -1 1392 -6.2267001718282700e-02
+
+ 1.8096530437469482e+00 -1.4773200452327728e-01
+ <_>
+
+ 0 -1 1393 1.7416000366210938e-02
+
+ 2.3068200051784515e-01 -4.2417600750923157e-01
+ <_>
+
+ 0 -1 1394 -2.2066000849008560e-02
+
+ 4.9270299077033997e-01 -2.0630900561809540e-01
+ <_>
+
+ 0 -1 1395 -1.0404000058770180e-02
+
+ 6.0924297571182251e-01 2.8130000457167625e-02
+ <_>
+
+ 0 -1 1396 -9.3670003116130829e-03
+
+ 4.0171200037002563e-01 -2.1681700646877289e-01
+ <_>
+
+ 0 -1 1397 -2.9039999470114708e-02
+
+ -8.4876501560211182e-01 1.4246800541877747e-01
+ <_>
+
+ 0 -1 1398 -2.1061999723315239e-02
+
+ -7.9198300838470459e-01 -1.2595999985933304e-02
+ <_>
+
+ 0 -1 1399 -3.7000998854637146e-02
+
+ -6.7488902807235718e-01 1.2830400466918945e-01
+ <_>
+
+ 0 -1 1400 1.0735999792814255e-02
+
+ 3.6779999732971191e-02 -6.3393002748489380e-01
+ <_>
+
+ 0 -1 1401 1.6367599368095398e-01
+
+ 1.3803899288177490e-01 -4.7189000248908997e-01
+ <_>
+
+ 0 -1 1402 9.4917997717857361e-02
+
+ -1.3855700194835663e-01 1.9492419958114624e+00
+ <_>
+
+ 0 -1 1403 3.5261999815702438e-02
+
+ 1.3721899688243866e-01 -2.1186530590057373e+00
+ <_>
+
+ 0 -1 1404 1.2811000458896160e-02
+
+ -2.0008100569248199e-01 4.9507799744606018e-01
+ <_>
+ 155
+ -3.3933560848236084e+00
+
+ <_>
+
+ 0 -1 1405 1.3904400169849396e-01
+
+ -4.6581199765205383e-01 7.6431602239608765e-01
+ <_>
+
+ 0 -1 1406 1.1916999705135822e-02
+
+ -9.4398999214172363e-01 3.9726299047470093e-01
+ <_>
+
+ 0 -1 1407 -1.0006999596953392e-02
+
+ 3.2718798518180847e-01 -6.3367402553558350e-01
+ <_>
+
+ 0 -1 1408 -6.0479999519884586e-03
+
+ 2.7427899837493896e-01 -5.7446998357772827e-01
+ <_>
+
+ 0 -1 1409 -1.2489999644458294e-03
+
+ 2.3629300296306610e-01 -6.8593502044677734e-01
+ <_>
+
+ 0 -1 1410 3.2382000237703323e-02
+
+ -5.7630199193954468e-01 2.7492699027061462e-01
+ <_>
+
+ 0 -1 1411 -1.3957999646663666e-02
+
+ -6.1061501502990723e-01 2.4541600048542023e-01
+ <_>
+
+ 0 -1 1412 1.1159999994561076e-03
+
+ -5.6539100408554077e-01 2.7179300785064697e-01
+ <_>
+
+ 0 -1 1413 2.7000000045518391e-05
+
+ -8.0235999822616577e-01 1.1509100347757339e-01
+ <_>
+
+ 0 -1 1414 -2.5700000696815550e-04
+
+ -8.1205898523330688e-01 2.3844699561595917e-01
+ <_>
+
+ 0 -1 1415 4.0460000745952129e-03
+
+ 1.3909600675106049e-01 -6.6163200139999390e-01
+ <_>
+
+ 0 -1 1416 1.4356000348925591e-02
+
+ -1.6485199332237244e-01 4.1901698708534241e-01
+ <_>
+
+ 0 -1 1417 -5.5374998599290848e-02
+
+ 1.4425870180130005e+00 -1.8820199370384216e-01
+ <_>
+
+ 0 -1 1418 9.3594998121261597e-02
+
+ 1.3548299670219421e-01 -9.1636097431182861e-01
+ <_>
+
+ 0 -1 1419 2.6624999940395355e-02
+
+ -3.3748298883438110e-01 3.9233601093292236e-01
+ <_>
+
+ 0 -1 1420 3.7469998933374882e-03
+
+ -1.1615400016307831e-01 4.4399300217628479e-01
+ <_>
+
+ 0 -1 1421 -3.1886000186204910e-02
+
+ -9.9498301744461060e-01 1.6120000509545207e-03
+ <_>
+
+ 0 -1 1422 -2.2600000724196434e-02
+
+ -4.8067399859428406e-01 1.7007300257682800e-01
+ <_>
+
+ 0 -1 1423 2.5202000513672829e-02
+
+ 3.5580001771450043e-02 -8.0215400457382202e-01
+ <_>
+
+ 0 -1 1424 -3.1036999076604843e-02
+
+ -1.0895340442657471e+00 1.8081900477409363e-01
+ <_>
+
+ 0 -1 1425 -2.6475999504327774e-02
+
+ 9.5671200752258301e-01 -2.1049399673938751e-01
+ <_>
+
+ 0 -1 1426 -1.3853999786078930e-02
+
+ -1.0370320081710815e+00 2.2166700661182404e-01
+ <_>
+
+ 0 -1 1427 -6.2925003468990326e-02
+
+ 9.0199398994445801e-01 -1.9085299968719482e-01
+ <_>
+
+ 0 -1 1428 -4.4750999659299850e-02
+
+ -1.0119110345840454e+00 1.4691199362277985e-01
+ <_>
+
+ 0 -1 1429 -2.0428000018000603e-02
+
+ 6.1624497175216675e-01 -2.3552699387073517e-01
+ <_>
+
+ 0 -1 1430 -8.0329999327659607e-03
+
+ -8.3279997110366821e-02 2.1728700399398804e-01
+ <_>
+
+ 0 -1 1431 8.7280003353953362e-03
+
+ 6.5458998084068298e-02 -6.0318702459335327e-01
+ <_>
+
+ 0 -1 1432 -2.7202000841498375e-02
+
+ -9.3447399139404297e-01 1.5270000696182251e-01
+ <_>
+
+ 0 -1 1433 -1.6471000388264656e-02
+
+ -8.4177100658416748e-01 1.3332000002264977e-02
+ <_>
+
+ 0 -1 1434 -1.3744000345468521e-02
+
+ 6.0567200183868408e-01 -9.2021003365516663e-02
+ <_>
+
+ 0 -1 1435 2.9164999723434448e-02
+
+ -2.8114000335335732e-02 -1.4014569520950317e+00
+ <_>
+
+ 0 -1 1436 3.7457000464200974e-02
+
+ 1.3080599904060364e-01 -4.9382498860359192e-01
+ <_>
+
+ 0 -1 1437 -2.5070000439882278e-02
+
+ -1.1289390325546265e+00 -1.4600000344216824e-02
+ <_>
+
+ 0 -1 1438 -6.3812002539634705e-02
+
+ 7.5871598720550537e-01 -1.8200000049546361e-03
+ <_>
+
+ 0 -1 1439 -9.3900002539157867e-03
+
+ 2.9936400055885315e-01 -2.9487800598144531e-01
+ <_>
+
+ 0 -1 1440 -7.6000002445653081e-04
+
+ 1.9725000485777855e-02 1.9993899762630463e-01
+ <_>
+
+ 0 -1 1441 -2.1740999072790146e-02
+
+ -8.5247898101806641e-01 4.9169998615980148e-02
+ <_>
+
+ 0 -1 1442 -1.7869999632239342e-02
+
+ -5.9985999017953873e-02 1.5222500264644623e-01
+ <_>
+
+ 0 -1 1443 -2.4831000715494156e-02
+
+ 3.5603401064872742e-01 -2.6259899139404297e-01
+ <_>
+
+ 0 -1 1444 1.5715500712394714e-01
+
+ 1.5599999460391700e-04 1.0428730249404907e+00
+ <_>
+
+ 0 -1 1445 6.9026999175548553e-02
+
+ -3.3006999641656876e-02 -1.1796669960021973e+00
+ <_>
+
+ 0 -1 1446 -1.1021999642252922e-02
+
+ 5.8987700939178467e-01 -5.7647999376058578e-02
+ <_>
+
+ 0 -1 1447 -1.3834999874234200e-02
+
+ 5.9502798318862915e-01 -2.4418599903583527e-01
+ <_>
+
+ 0 -1 1448 -3.0941000208258629e-02
+
+ -1.1723799705505371e+00 1.6907000541687012e-01
+ <_>
+
+ 0 -1 1449 2.1258000284433365e-02
+
+ -1.8900999799370766e-02 -1.0684759616851807e+00
+ <_>
+
+ 0 -1 1450 9.3079999089241028e-02
+
+ 1.6305600106716156e-01 -1.3375270366668701e+00
+ <_>
+
+ 0 -1 1451 2.9635999351739883e-02
+
+ -2.2524799406528473e-01 4.5400100946426392e-01
+ <_>
+
+ 0 -1 1452 -1.2199999764561653e-04
+
+ 2.7409100532531738e-01 -3.7371399998664856e-01
+ <_>
+
+ 0 -1 1453 -4.2098000645637512e-02
+
+ -7.5828802585601807e-01 1.7137000337243080e-02
+ <_>
+
+ 0 -1 1454 -2.2505000233650208e-02
+
+ -2.2759300470352173e-01 2.3698699474334717e-01
+ <_>
+
+ 0 -1 1455 -1.2862999923527241e-02
+
+ 1.9252400100231171e-01 -3.2127100229263306e-01
+ <_>
+
+ 0 -1 1456 2.7860000729560852e-02
+
+ 1.6723699867725372e-01 -1.0209059715270996e+00
+ <_>
+
+ 0 -1 1457 -2.7807999402284622e-02
+
+ 1.2824759483337402e+00 -1.7225299775600433e-01
+ <_>
+
+ 0 -1 1458 -6.1630001291632652e-03
+
+ -5.4072898626327515e-01 2.3885700106620789e-01
+ <_>
+
+ 0 -1 1459 -2.0436000078916550e-02
+
+ 6.3355398178100586e-01 -2.1090599894523621e-01
+ <_>
+
+ 0 -1 1460 -1.2307999655604362e-02
+
+ -4.9778199195861816e-01 1.7402599751949310e-01
+ <_>
+
+ 0 -1 1461 -4.0493998676538467e-02
+
+ -1.1848740577697754e+00 -3.3890999853610992e-02
+ <_>
+
+ 0 -1 1462 2.9657000675797462e-02
+
+ 2.1740999072790146e-02 1.0069919824600220e+00
+ <_>
+
+ 0 -1 1463 6.8379999138414860e-03
+
+ 2.9217999428510666e-02 -5.9906297922134399e-01
+ <_>
+
+ 0 -1 1464 1.6164999455213547e-02
+
+ -2.1000799536705017e-01 3.7637299299240112e-01
+ <_>
+
+ 0 -1 1465 5.0193000584840775e-02
+
+ 2.5319999549537897e-03 -7.1668201684951782e-01
+ <_>
+
+ 0 -1 1466 1.9680000841617584e-03
+
+ -2.1921400725841522e-01 3.2298699021339417e-01
+ <_>
+
+ 0 -1 1467 2.4979999288916588e-02
+
+ -9.6840001642704010e-03 -7.7572900056838989e-01
+ <_>
+
+ 0 -1 1468 -1.5809999778866768e-02
+
+ 4.4637501239776611e-01 -6.1760000884532928e-02
+ <_>
+
+ 0 -1 1469 3.7206999957561493e-02
+
+ -2.0495399832725525e-01 5.7722198963165283e-01
+ <_>
+
+ 0 -1 1470 -7.9264998435974121e-02
+
+ -7.6745402812957764e-01 1.2550400197505951e-01
+ <_>
+
+ 0 -1 1471 -1.7152000218629837e-02
+
+ -1.4121830463409424e+00 -5.1704000681638718e-02
+ <_>
+
+ 0 -1 1472 3.2740000635385513e-02
+
+ 1.9334000349044800e-01 -6.3633698225021362e-01
+ <_>
+
+ 0 -1 1473 -1.1756999790668488e-01
+
+ 8.4325402975082397e-01 -1.8018600344657898e-01
+ <_>
+
+ 0 -1 1474 1.2057200074195862e-01
+
+ 1.2530000507831573e-01 -2.1213600635528564e+00
+ <_>
+
+ 0 -1 1475 4.2779999785125256e-03
+
+ -4.6604400873184204e-01 8.9643999934196472e-02
+ <_>
+
+ 0 -1 1476 -7.2544999420642853e-02
+
+ 5.1826500892639160e-01 1.6823999583721161e-02
+ <_>
+
+ 0 -1 1477 1.7710599303245544e-01
+
+ -3.0910000205039978e-02 -1.1046639680862427e+00
+ <_>
+
+ 0 -1 1478 8.4229996427893639e-03
+
+ 2.4445800483226776e-01 -3.8613098859786987e-01
+ <_>
+
+ 0 -1 1479 -1.3035000301897526e-02
+
+ 9.8004400730133057e-01 -1.7016500234603882e-01
+ <_>
+
+ 0 -1 1480 1.8912000581622124e-02
+
+ 2.0248499512672424e-01 -3.8545900583267212e-01
+ <_>
+
+ 0 -1 1481 2.1447999402880669e-02
+
+ -2.5717198848724365e-01 3.5181200504302979e-01
+ <_>
+
+ 0 -1 1482 6.3357003033161163e-02
+
+ 1.6994799673557281e-01 -9.1383802890777588e-01
+ <_>
+
+ 0 -1 1483 -3.2435998320579529e-02
+
+ -8.5681599378585815e-01 -2.1680999547243118e-02
+ <_>
+
+ 0 -1 1484 -2.3564999923110008e-02
+
+ 5.6115597486495972e-01 -2.2400000307243317e-04
+ <_>
+
+ 0 -1 1485 1.8789000809192657e-02
+
+ -2.5459799170494080e-01 3.4512901306152344e-01
+ <_>
+
+ 0 -1 1486 3.1042000278830528e-02
+
+ 7.5719999149441719e-03 3.4800198674201965e-01
+ <_>
+
+ 0 -1 1487 -1.1226999573409557e-02
+
+ -6.0219800472259521e-01 4.2814999818801880e-02
+ <_>
+
+ 0 -1 1488 -1.2845999561250210e-02
+
+ 4.2020401358604431e-01 -5.3801000118255615e-02
+ <_>
+
+ 0 -1 1489 -1.2791999615728855e-02
+
+ 2.2724500298500061e-01 -3.2398000359535217e-01
+ <_>
+
+ 0 -1 1490 6.8651996552944183e-02
+
+ 9.3532003462314606e-02 10.
+ <_>
+
+ 0 -1 1491 5.2789999172091484e-03
+
+ -2.6926299929618835e-01 3.3303201198577881e-01
+ <_>
+
+ 0 -1 1492 -3.8779001682996750e-02
+
+ -7.2365301847457886e-01 1.7806500196456909e-01
+ <_>
+
+ 0 -1 1493 6.1820000410079956e-03
+
+ -3.5119399428367615e-01 1.6586300730705261e-01
+ <_>
+
+ 0 -1 1494 1.7515200376510620e-01
+
+ 1.1623100191354752e-01 -1.5419290065765381e+00
+ <_>
+
+ 0 -1 1495 1.1627999693155289e-01
+
+ -9.1479998081922531e-03 -9.9842602014541626e-01
+ <_>
+
+ 0 -1 1496 -2.2964000701904297e-02
+
+ 2.0565399527549744e-01 1.5432000160217285e-02
+ <_>
+
+ 0 -1 1497 -5.1410000771284103e-02
+
+ 5.8072400093078613e-01 -2.0118400454521179e-01
+ <_>
+
+ 0 -1 1498 2.2474199533462524e-01
+
+ 1.8728999421000481e-02 1.0829299688339233e+00
+ <_>
+
+ 0 -1 1499 9.4860000535845757e-03
+
+ -3.3171299099922180e-01 1.9902999699115753e-01
+ <_>
+
+ 0 -1 1500 -1.1846300214529037e-01
+
+ 1.3711010217666626e+00 6.8926997482776642e-02
+ <_>
+
+ 0 -1 1501 3.7810999900102615e-02
+
+ -9.3600002583116293e-04 -8.3996999263763428e-01
+ <_>
+
+ 0 -1 1502 2.2202000021934509e-02
+
+ -1.1963999830186367e-02 3.6673998832702637e-01
+ <_>
+
+ 0 -1 1503 -3.6366000771522522e-02
+
+ 3.7866500020027161e-01 -2.7714800834655762e-01
+ <_>
+
+ 0 -1 1504 -1.3184699416160583e-01
+
+ -2.7481179237365723e+00 1.0666900128126144e-01
+ <_>
+
+ 0 -1 1505 -4.1655998677015305e-02
+
+ 4.7524300217628479e-01 -2.3249800503253937e-01
+ <_>
+
+ 0 -1 1506 -3.3151999115943909e-02
+
+ -5.7929402589797974e-01 1.7434400320053101e-01
+ <_>
+
+ 0 -1 1507 1.5769999474287033e-02
+
+ -1.1284000240266323e-02 -8.3701401948928833e-01
+ <_>
+
+ 0 -1 1508 -3.9363000541925430e-02
+
+ 3.4821599721908569e-01 -1.7455400526523590e-01
+ <_>
+
+ 0 -1 1509 -6.7849002778530121e-02
+
+ 1.4225699901580811e+00 -1.4765599370002747e-01
+ <_>
+
+ 0 -1 1510 -2.6775000616908073e-02
+
+ 2.3947000503540039e-01 1.3271999545395374e-02
+ <_>
+
+ 0 -1 1511 3.9919000118970871e-02
+
+ -8.9999996125698090e-03 -7.5938898324966431e-01
+ <_>
+
+ 0 -1 1512 1.0065600275993347e-01
+
+ -1.8685000017285347e-02 7.6245301961898804e-01
+ <_>
+
+ 0 -1 1513 -8.1022001802921295e-02
+
+ -9.0439099073410034e-01 -8.5880002006888390e-03
+ <_>
+
+ 0 -1 1514 -2.1258000284433365e-02
+
+ -2.1319599449634552e-01 2.1919700503349304e-01
+ <_>
+
+ 0 -1 1515 -1.0630999691784382e-02
+
+ 1.9598099589347839e-01 -3.5768100619316101e-01
+ <_>
+
+ 0 -1 1516 8.1300002057105303e-04
+
+ -9.2794999480247498e-02 2.6145899295806885e-01
+ <_>
+
+ 0 -1 1517 3.4650000743567944e-03
+
+ -5.5336099863052368e-01 2.7386000379920006e-02
+ <_>
+
+ 0 -1 1518 1.8835999071598053e-02
+
+ 1.8446099758148193e-01 -6.6934299468994141e-01
+ <_>
+
+ 0 -1 1519 -2.5631999596953392e-02
+
+ 1.9382879734039307e+00 -1.4708900451660156e-01
+ <_>
+
+ 0 -1 1520 -4.0939999744296074e-03
+
+ -2.6451599597930908e-01 2.0733200013637543e-01
+ <_>
+
+ 0 -1 1521 -8.9199998183175921e-04
+
+ -5.5031597614288330e-01 5.0374999642372131e-02
+ <_>
+
+ 0 -1 1522 -4.9518000334501266e-02
+
+ -2.5615389347076416e+00 1.3141700625419617e-01
+ <_>
+
+ 0 -1 1523 1.1680999770760536e-02
+
+ -2.4819800257682800e-01 3.9982700347900391e-01
+ <_>
+
+ 0 -1 1524 3.4563999623060226e-02
+
+ 1.6178800165653229e-01 -7.1418899297714233e-01
+ <_>
+
+ 0 -1 1525 -8.2909995689988136e-03
+
+ 2.2180099785327911e-01 -2.9181700944900513e-01
+ <_>
+
+ 0 -1 1526 -2.2358000278472900e-02
+
+ 3.1044098734855652e-01 -2.7280000504106283e-03
+ <_>
+
+ 0 -1 1527 -3.0801000073552132e-02
+
+ -9.5672702789306641e-01 -8.3400001749396324e-03
+ <_>
+
+ 0 -1 1528 4.3779000639915466e-02
+
+ 1.2556900084018707e-01 -1.1759619712829590e+00
+ <_>
+
+ 0 -1 1529 4.3046001344919205e-02
+
+ -5.8876998722553253e-02 -1.8568470478057861e+00
+ <_>
+
+ 0 -1 1530 2.7188999578356743e-02
+
+ 4.2858000844717026e-02 3.9036700129508972e-01
+ <_>
+
+ 0 -1 1531 9.4149997457861900e-03
+
+ -4.3567001819610596e-02 -1.1094470024108887e+00
+ <_>
+
+ 0 -1 1532 9.4311997294425964e-02
+
+ 4.0256999433040619e-02 9.8442298173904419e-01
+ <_>
+
+ 0 -1 1533 1.7025099694728851e-01
+
+ 2.9510000720620155e-02 -6.9509297609329224e-01
+ <_>
+
+ 0 -1 1534 -4.7148000448942184e-02
+
+ 1.0338569879531860e+00 6.7602001130580902e-02
+ <_>
+
+ 0 -1 1535 1.1186300218105316e-01
+
+ -6.8682998418807983e-02 -2.4985830783843994e+00
+ <_>
+
+ 0 -1 1536 -1.4353999868035316e-02
+
+ -5.9481900930404663e-01 1.5001699328422546e-01
+ <_>
+
+ 0 -1 1537 3.4024000167846680e-02
+
+ -6.4823001623153687e-02 -2.1382639408111572e+00
+ <_>
+
+ 0 -1 1538 2.1601999178528786e-02
+
+ 5.5309999734163284e-02 7.8292900323867798e-01
+ <_>
+
+ 0 -1 1539 2.1771999076008797e-02
+
+ -7.1279997937381268e-03 -7.2148102521896362e-01
+ <_>
+
+ 0 -1 1540 8.2416996359825134e-02
+
+ 1.4609499275684357e-01 -1.3636670112609863e+00
+ <_>
+
+ 0 -1 1541 8.4671996533870697e-02
+
+ -1.7784699797630310e-01 7.2857701778411865e-01
+ <_>
+
+ 0 -1 1542 -5.5128000676631927e-02
+
+ -5.9402400255203247e-01 1.9357800483703613e-01
+ <_>
+
+ 0 -1 1543 -6.4823001623153687e-02
+
+ -1.0783840417861938e+00 -4.0734000504016876e-02
+ <_>
+
+ 0 -1 1544 -2.2769000381231308e-02
+
+ 7.7900201082229614e-01 3.4960000775754452e-03
+ <_>
+
+ 0 -1 1545 5.4756000638008118e-02
+
+ -6.5683998167514801e-02 -1.8188409805297852e+00
+ <_>
+
+ 0 -1 1546 -8.9000001025851816e-05
+
+ -1.7891999334096909e-02 2.0768299698829651e-01
+ <_>
+
+ 0 -1 1547 9.8361998796463013e-02
+
+ -5.5946998298168182e-02 -1.4153920412063599e+00
+ <_>
+
+ 0 -1 1548 -7.0930002257227898e-03
+
+ 3.4135299921035767e-01 -1.2089899927377701e-01
+ <_>
+
+ 0 -1 1549 5.0278000533580780e-02
+
+ -2.6286700367927551e-01 2.5797298550605774e-01
+ <_>
+
+ 0 -1 1550 -5.7870000600814819e-03
+
+ -1.3178600370883942e-01 1.7350199818611145e-01
+ <_>
+
+ 0 -1 1551 1.3973999768495560e-02
+
+ 2.8518000617623329e-02 -6.1152201890945435e-01
+ <_>
+
+ 0 -1 1552 2.1449999883770943e-02
+
+ 2.6181999593973160e-02 3.0306598544120789e-01
+ <_>
+
+ 0 -1 1553 -2.9214000329375267e-02
+
+ 4.4940599799156189e-01 -2.2803099453449249e-01
+ <_>
+
+ 0 -1 1554 4.8099999548867345e-04
+
+ -1.9879999756813049e-01 2.0744499564170837e-01
+ <_>
+
+ 0 -1 1555 1.7109999898821115e-03
+
+ -5.4037201404571533e-01 6.7865997552871704e-02
+ <_>
+
+ 0 -1 1556 8.6660003289580345e-03
+
+ -1.3128000311553478e-02 5.2297902107238770e-01
+ <_>
+
+ 0 -1 1557 6.3657999038696289e-02
+
+ 6.8299002945423126e-02 -4.9235099554061890e-01
+ <_>
+
+ 0 -1 1558 -2.7968000620603561e-02
+
+ 6.8183898925781250e-01 7.8781001269817352e-02
+ <_>
+
+ 0 -1 1559 4.8953998833894730e-02
+
+ -2.0622399449348450e-01 5.0388097763061523e-01
+ <_>
+ 169
+ -3.2396929264068604e+00
+
+ <_>
+
+ 0 -1 1560 -2.9312999919056892e-02
+
+ 7.1284699440002441e-01 -5.8230698108673096e-01
+ <_>
+
+ 0 -1 1561 1.2415099889039993e-01
+
+ -3.6863499879837036e-01 6.0067200660705566e-01
+ <_>
+
+ 0 -1 1562 7.9349996522068977e-03
+
+ -8.6008298397064209e-01 2.1724699437618256e-01
+ <_>
+
+ 0 -1 1563 3.0365999788045883e-02
+
+ -2.7186998724937439e-01 6.1247897148132324e-01
+ <_>
+
+ 0 -1 1564 2.5218000635504723e-02
+
+ -3.4748300909996033e-01 5.0427699089050293e-01
+ <_>
+
+ 0 -1 1565 1.0014000348746777e-02
+
+ -3.1898999214172363e-01 4.1376799345016479e-01
+ <_>
+
+ 0 -1 1566 -1.6775000840425491e-02
+
+ -6.9048100709915161e-01 9.4830997288227081e-02
+ <_>
+
+ 0 -1 1567 -2.6950000319629908e-03
+
+ -2.0829799771308899e-01 2.3737199604511261e-01
+ <_>
+
+ 0 -1 1568 4.2257998138666153e-02
+
+ -4.9366700649261475e-01 1.8170599639415741e-01
+ <_>
+
+ 0 -1 1569 -4.8505000770092010e-02
+
+ 1.3429640531539917e+00 3.9769001305103302e-02
+ <_>
+
+ 0 -1 1570 2.8992999345064163e-02
+
+ 4.6496000140905380e-02 -8.1643497943878174e-01
+ <_>
+
+ 0 -1 1571 -4.0089000016450882e-02
+
+ -7.1197801828384399e-01 2.2553899884223938e-01
+ <_>
+
+ 0 -1 1572 -4.1021998971700668e-02
+
+ 1.0057929754257202e+00 -1.9690200686454773e-01
+ <_>
+
+ 0 -1 1573 1.1838000267744064e-02
+
+ -1.2600000016391277e-02 8.0767101049423218e-01
+ <_>
+
+ 0 -1 1574 -2.1328000351786613e-02
+
+ -8.2023900747299194e-01 2.0524999126791954e-02
+ <_>
+
+ 0 -1 1575 -2.3904999718070030e-02
+
+ 5.4210501909255981e-01 -7.4767000973224640e-02
+ <_>
+
+ 0 -1 1576 1.8008999526500702e-02
+
+ -3.3827701210975647e-01 4.2358601093292236e-01
+ <_>
+
+ 0 -1 1577 -4.3614000082015991e-02
+
+ -1.1983489990234375e+00 1.5566200017929077e-01
+ <_>
+
+ 0 -1 1578 -9.2449998483061790e-03
+
+ -8.9029997587203979e-01 1.1003999970853329e-02
+ <_>
+
+ 0 -1 1579 4.7485001385211945e-02
+
+ 1.6664099693298340e-01 -9.0764498710632324e-01
+ <_>
+
+ 0 -1 1580 -1.4233999885618687e-02
+
+ 6.2695199251174927e-01 -2.5791200995445251e-01
+ <_>
+
+ 0 -1 1581 3.8010000716894865e-03
+
+ -2.8229999542236328e-01 2.6624599099159241e-01
+ <_>
+
+ 0 -1 1582 3.4330000635236502e-03
+
+ -6.3771998882293701e-01 9.8422996699810028e-02
+ <_>
+
+ 0 -1 1583 -2.9221000149846077e-02
+
+ -7.6769900321960449e-01 2.2634500265121460e-01
+ <_>
+
+ 0 -1 1584 -6.4949998632073402e-03
+
+ 4.5600101351737976e-01 -2.6528900861740112e-01
+ <_>
+
+ 0 -1 1585 -3.0034000054001808e-02
+
+ -7.6551097631454468e-01 1.4009299874305725e-01
+ <_>
+
+ 0 -1 1586 7.8360000625252724e-03
+
+ 4.6755999326705933e-02 -7.2356200218200684e-01
+ <_>
+
+ 0 -1 1587 8.8550001382827759e-03
+
+ -4.9141999334096909e-02 5.1472699642181396e-01
+ <_>
+
+ 0 -1 1588 9.5973998308181763e-02
+
+ -2.0068999379873276e-02 -1.0850950479507446e+00
+ <_>
+
+ 0 -1 1589 -3.2876998186111450e-02
+
+ -9.5875298976898193e-01 1.4543600380420685e-01
+ <_>
+
+ 0 -1 1590 -1.3384000398218632e-02
+
+ -7.0013600587844849e-01 2.9157999902963638e-02
+ <_>
+
+ 0 -1 1591 1.5235999599099159e-02
+
+ -2.8235700726509094e-01 2.5367999076843262e-01
+ <_>
+
+ 0 -1 1592 1.2054000049829483e-02
+
+ -2.5303399562835693e-01 4.6526700258255005e-01
+ <_>
+
+ 0 -1 1593 -7.6295003294944763e-02
+
+ -6.9915801286697388e-01 1.3217200338840485e-01
+ <_>
+
+ 0 -1 1594 -1.2040000408887863e-02
+
+ 4.5894598960876465e-01 -2.3856499791145325e-01
+ <_>
+
+ 0 -1 1595 2.1916000172495842e-02
+
+ 1.8268600106239319e-01 -6.1629700660705566e-01
+ <_>
+
+ 0 -1 1596 -2.7330000884830952e-03
+
+ -6.3257902860641479e-01 3.4219000488519669e-02
+ <_>
+
+ 0 -1 1597 -4.8652000725269318e-02
+
+ -1.0297729969024658e+00 1.7386500537395477e-01
+ <_>
+
+ 0 -1 1598 -1.0463999584317207e-02
+
+ 3.4757301211357117e-01 -2.7464100718498230e-01
+ <_>
+
+ 0 -1 1599 -6.6550001502037048e-03
+
+ -2.8980299830436707e-01 2.4037900567054749e-01
+ <_>
+
+ 0 -1 1600 8.5469996556639671e-03
+
+ -4.4340500235557556e-01 1.4267399907112122e-01
+ <_>
+
+ 0 -1 1601 1.9913999363780022e-02
+
+ 1.7740400135517120e-01 -2.4096299707889557e-01
+ <_>
+
+ 0 -1 1602 2.2012999281287193e-02
+
+ -1.0812000371515751e-02 -9.4690799713134766e-01
+ <_>
+
+ 0 -1 1603 -5.2179001271724701e-02
+
+ 1.6547499895095825e+00 9.6487000584602356e-02
+ <_>
+
+ 0 -1 1604 1.9698999822139740e-02
+
+ -6.7560002207756042e-03 -8.6311501264572144e-01
+ <_>
+
+ 0 -1 1605 2.3040000349283218e-02
+
+ -2.3519999813288450e-03 3.8531300425529480e-01
+ <_>
+
+ 0 -1 1606 -1.5038000419735909e-02
+
+ -6.1905699968338013e-01 3.1077999621629715e-02
+ <_>
+
+ 0 -1 1607 -4.9956001341342926e-02
+
+ 7.0657497644424438e-01 4.7880999743938446e-02
+ <_>
+
+ 0 -1 1608 -6.9269999861717224e-02
+
+ 3.9212900400161743e-01 -2.3848000168800354e-01
+ <_>
+
+ 0 -1 1609 4.7399997711181641e-03
+
+ -2.4309000000357628e-02 2.5386300683021545e-01
+ <_>
+
+ 0 -1 1610 -3.3923998475074768e-02
+
+ 4.6930399537086487e-01 -2.3321899771690369e-01
+ <_>
+
+ 0 -1 1611 -1.6231000423431396e-02
+
+ 3.2319200038909912e-01 -2.0545600354671478e-01
+ <_>
+
+ 0 -1 1612 -5.0193000584840775e-02
+
+ -1.2277870178222656e+00 -4.0798000991344452e-02
+ <_>
+
+ 0 -1 1613 5.6944001466035843e-02
+
+ 4.5184001326560974e-02 6.0197502374649048e-01
+ <_>
+
+ 0 -1 1614 4.0936999022960663e-02
+
+ -1.6772800683975220e-01 8.9819300174713135e-01
+ <_>
+
+ 0 -1 1615 -3.0839999672025442e-03
+
+ 3.3716198801994324e-01 -2.7240800857543945e-01
+ <_>
+
+ 0 -1 1616 -3.2600000500679016e-02
+
+ -8.5446500778198242e-01 1.9664999097585678e-02
+ <_>
+
+ 0 -1 1617 9.8480999469757080e-02
+
+ 5.4742000997066498e-02 6.3827300071716309e-01
+ <_>
+
+ 0 -1 1618 -3.8185000419616699e-02
+
+ 5.2274698019027710e-01 -2.3384800553321838e-01
+ <_>
+
+ 0 -1 1619 -4.5917000621557236e-02
+
+ 6.2829202413558960e-01 3.2859001308679581e-02
+ <_>
+
+ 0 -1 1620 -1.1955499649047852e-01
+
+ -6.1572700738906860e-01 3.4680001437664032e-02
+ <_>
+
+ 0 -1 1621 -1.2044399976730347e-01
+
+ -8.4380000829696655e-01 1.6530700027942657e-01
+ <_>
+
+ 0 -1 1622 7.0619001984596252e-02
+
+ -6.3261002302169800e-02 -1.9863929748535156e+00
+ <_>
+
+ 0 -1 1623 8.4889996796846390e-03
+
+ -1.7663399875164032e-01 3.8011199235916138e-01
+ <_>
+
+ 0 -1 1624 2.2710999473929405e-02
+
+ -2.7605999261140823e-02 -9.1921401023864746e-01
+ <_>
+
+ 0 -1 1625 4.9700000090524554e-04
+
+ -2.4293200671672821e-01 2.2878900170326233e-01
+ <_>
+
+ 0 -1 1626 3.4651998430490494e-02
+
+ -2.3705999553203583e-01 5.4010999202728271e-01
+ <_>
+
+ 0 -1 1627 -4.4700000435113907e-03
+
+ 3.9078998565673828e-01 -1.2693800032138824e-01
+ <_>
+
+ 0 -1 1628 2.3643000051379204e-02
+
+ -2.6663699746131897e-01 3.2312598824501038e-01
+ <_>
+
+ 0 -1 1629 1.2813000008463860e-02
+
+ 1.7540800571441650e-01 -6.0787999629974365e-01
+ <_>
+
+ 0 -1 1630 -1.1250999756157398e-02
+
+ -1.0852589607238770e+00 -2.8046000748872757e-02
+ <_>
+
+ 0 -1 1631 -4.1535001248121262e-02
+
+ 7.1887397766113281e-01 2.7982000261545181e-02
+ <_>
+
+ 0 -1 1632 -9.3470998108386993e-02
+
+ -1.1906319856643677e+00 -4.4810999184846878e-02
+ <_>
+
+ 0 -1 1633 -2.7249999344348907e-02
+
+ 6.2942498922348022e-01 9.5039997249841690e-03
+ <_>
+
+ 0 -1 1634 -2.1759999915957451e-02
+
+ 1.3233649730682373e+00 -1.5027000010013580e-01
+ <_>
+
+ 0 -1 1635 -9.6890004351735115e-03
+
+ -3.3947101235389709e-01 1.7085799574851990e-01
+ <_>
+
+ 0 -1 1636 6.9395996630191803e-02
+
+ -2.5657799839973450e-01 4.7652098536491394e-01
+ <_>
+
+ 0 -1 1637 3.1208999454975128e-02
+
+ 1.4154000580310822e-01 -3.4942001104354858e-01
+ <_>
+
+ 0 -1 1638 -4.9727000296115875e-02
+
+ -1.1675560474395752e+00 -4.0757998824119568e-02
+ <_>
+
+ 0 -1 1639 -2.0301999524235725e-02
+
+ -3.9486399292945862e-01 1.5814900398254395e-01
+ <_>
+
+ 0 -1 1640 -1.5367000363767147e-02
+
+ 4.9300000071525574e-01 -2.0092099905014038e-01
+ <_>
+
+ 0 -1 1641 -5.0735000520944595e-02
+
+ 1.8736059665679932e+00 8.6730003356933594e-02
+ <_>
+
+ 0 -1 1642 -2.0726000890135765e-02
+
+ -8.8938397169113159e-01 -7.3199998587369919e-03
+ <_>
+
+ 0 -1 1643 -3.0993999913334846e-02
+
+ -1.1664899587631226e+00 1.4274600148200989e-01
+ <_>
+
+ 0 -1 1644 -4.4269999489188194e-03
+
+ -6.6815102100372314e-01 4.4120000675320625e-03
+ <_>
+
+ 0 -1 1645 -4.5743998140096664e-02
+
+ -4.7955200076103210e-01 1.5121999382972717e-01
+ <_>
+
+ 0 -1 1646 1.6698999330401421e-02
+
+ 1.2048599869012833e-01 -4.5235899090766907e-01
+ <_>
+
+ 0 -1 1647 3.2210000790655613e-03
+
+ -7.7615000307559967e-02 2.7846598625183105e-01
+ <_>
+
+ 0 -1 1648 2.4434000253677368e-02
+
+ -1.9987100362777710e-01 6.7253702878952026e-01
+ <_>
+
+ 0 -1 1649 -7.9677999019622803e-02
+
+ 9.2222398519515991e-01 9.2557996511459351e-02
+ <_>
+
+ 0 -1 1650 4.4530000537633896e-02
+
+ -2.6690500974655151e-01 3.3320501446723938e-01
+ <_>
+
+ 0 -1 1651 -1.2528300285339355e-01
+
+ -5.4253101348876953e-01 1.3976299762725830e-01
+ <_>
+
+ 0 -1 1652 1.7971999943256378e-02
+
+ 1.8219999969005585e-02 -6.8048501014709473e-01
+ <_>
+
+ 0 -1 1653 1.9184000790119171e-02
+
+ -1.2583999894559383e-02 5.4126697778701782e-01
+ <_>
+
+ 0 -1 1654 4.0024001151323318e-02
+
+ -1.7638799548149109e-01 7.8810399770736694e-01
+ <_>
+
+ 0 -1 1655 1.3558999635279179e-02
+
+ 2.0737600326538086e-01 -4.7744300961494446e-01
+ <_>
+
+ 0 -1 1656 1.6220999881625175e-02
+
+ 2.3076999932527542e-02 -6.1182099580764771e-01
+ <_>
+
+ 0 -1 1657 1.1229000054299831e-02
+
+ -1.7728000879287720e-02 4.1764199733734131e-01
+ <_>
+
+ 0 -1 1658 3.9193000644445419e-02
+
+ -1.8948499858379364e-01 7.4019300937652588e-01
+ <_>
+
+ 0 -1 1659 -9.5539996400475502e-03
+
+ 4.0947100520133972e-01 -1.3508899509906769e-01
+ <_>
+
+ 0 -1 1660 2.7878999710083008e-02
+
+ -2.0350700616836548e-01 6.1625397205352783e-01
+ <_>
+
+ 0 -1 1661 -2.3600999265909195e-02
+
+ -1.6967060565948486e+00 1.4633199572563171e-01
+ <_>
+
+ 0 -1 1662 2.6930000633001328e-02
+
+ -3.0401999130845070e-02 -1.0909470319747925e+00
+ <_>
+
+ 0 -1 1663 2.8999999631196260e-04
+
+ -2.0076000690460205e-01 2.2314099967479706e-01
+ <_>
+
+ 0 -1 1664 -4.1124999523162842e-02
+
+ -4.5242199301719666e-01 5.7392001152038574e-02
+ <_>
+
+ 0 -1 1665 6.6789998672902584e-03
+
+ 2.3824900388717651e-01 -2.1262100338935852e-01
+ <_>
+
+ 0 -1 1666 4.7864999622106552e-02
+
+ -1.8194800615310669e-01 6.1918401718139648e-01
+ <_>
+
+ 0 -1 1667 -3.1679999083280563e-03
+
+ -2.7393200993537903e-01 2.5017300248146057e-01
+ <_>
+
+ 0 -1 1668 -8.6230002343654633e-03
+
+ -4.6280300617218018e-01 4.2397998273372650e-02
+ <_>
+
+ 0 -1 1669 -7.4350000359117985e-03
+
+ 4.1796800494194031e-01 -1.7079999670386314e-03
+ <_>
+
+ 0 -1 1670 -1.8769999733194709e-03
+
+ 1.4602300524711609e-01 -3.3721101284027100e-01
+ <_>
+
+ 0 -1 1671 -8.6226001381874084e-02
+
+ 7.5143402814865112e-01 1.0711999610066414e-02
+ <_>
+
+ 0 -1 1672 4.6833999454975128e-02
+
+ -1.9119599461555481e-01 4.8414900898933411e-01
+ <_>
+
+ 0 -1 1673 -9.2000002041459084e-05
+
+ 3.5220399498939514e-01 -1.7333300411701202e-01
+ <_>
+
+ 0 -1 1674 -1.6343999654054642e-02
+
+ -6.4397698640823364e-01 9.0680001303553581e-03
+ <_>
+
+ 0 -1 1675 4.5703999698162079e-02
+
+ 1.8216000869870186e-02 3.1970798969268799e-01
+ <_>
+
+ 0 -1 1676 -2.7382999658584595e-02
+
+ 1.0564049482345581e+00 -1.7276400327682495e-01
+ <_>
+
+ 0 -1 1677 -2.7602000162005424e-02
+
+ 2.9715499281883240e-01 -9.4600003212690353e-03
+ <_>
+
+ 0 -1 1678 7.6939999125897884e-03
+
+ -2.1660299599170685e-01 4.7385200858116150e-01
+ <_>
+
+ 0 -1 1679 -7.0500001311302185e-04
+
+ 2.4048799276351929e-01 -2.6776000857353210e-01
+ <_>
+
+ 0 -1 1680 1.1054199934005737e-01
+
+ -3.3539000898599625e-02 -1.0233880281448364e+00
+ <_>
+
+ 0 -1 1681 6.8765997886657715e-02
+
+ -4.3239998631179333e-03 5.7153397798538208e-01
+ <_>
+
+ 0 -1 1682 1.7999999690800905e-03
+
+ 7.7574998140335083e-02 -4.2092698812484741e-01
+ <_>
+
+ 0 -1 1683 1.9232000410556793e-01
+
+ 8.2021996378898621e-02 2.8810169696807861e+00
+ <_>
+
+ 0 -1 1684 1.5742099285125732e-01
+
+ -1.3708199560642242e-01 2.0890059471130371e+00
+ <_>
+
+ 0 -1 1685 -4.9387000501155853e-02
+
+ -1.8610910177230835e+00 1.4332099258899689e-01
+ <_>
+
+ 0 -1 1686 5.1929000765085220e-02
+
+ -1.8737000226974487e-01 5.4231601953506470e-01
+ <_>
+
+ 0 -1 1687 4.9965001642704010e-02
+
+ 1.4175300300121307e-01 -1.5625779628753662e+00
+ <_>
+
+ 0 -1 1688 -4.2633000761270523e-02
+
+ 1.6059479713439941e+00 -1.4712899923324585e-01
+ <_>
+
+ 0 -1 1689 -3.7553999572992325e-02
+
+ -8.0974900722503662e-01 1.3256999850273132e-01
+ <_>
+
+ 0 -1 1690 -3.7174999713897705e-02
+
+ -1.3945020437240601e+00 -5.7055000215768814e-02
+ <_>
+
+ 0 -1 1691 1.3945999555289745e-02
+
+ 3.3427000045776367e-02 5.7474797964096069e-01
+ <_>
+
+ 0 -1 1692 -4.4800000614486635e-04
+
+ -5.5327498912811279e-01 2.1952999755740166e-02
+ <_>
+
+ 0 -1 1693 3.1993001699447632e-02
+
+ 2.0340999588370323e-02 3.7459200620651245e-01
+ <_>
+
+ 0 -1 1694 -4.2799999937415123e-03
+
+ 4.4428700208663940e-01 -2.2999699413776398e-01
+ <_>
+
+ 0 -1 1695 9.8550003021955490e-03
+
+ 1.8315799534320831e-01 -4.0964999794960022e-01
+ <_>
+
+ 0 -1 1696 9.3356996774673462e-02
+
+ -6.3661001622676849e-02 -1.6929290294647217e+00
+ <_>
+
+ 0 -1 1697 1.7209999263286591e-02
+
+ 2.0153899490833282e-01 -4.6061098575592041e-01
+ <_>
+
+ 0 -1 1698 8.4319999441504478e-03
+
+ -3.2003998756408691e-01 1.5312199294567108e-01
+ <_>
+
+ 0 -1 1699 -1.4054999686777592e-02
+
+ 8.6882400512695312e-01 3.2575000077486038e-02
+ <_>
+
+ 0 -1 1700 -7.7180000953376293e-03
+
+ 6.3686698675155640e-01 -1.8425500392913818e-01
+ <_>
+
+ 0 -1 1701 2.8005000203847885e-02
+
+ 1.7357499897480011e-01 -4.7883599996566772e-01
+ <_>
+
+ 0 -1 1702 -1.8884999677538872e-02
+
+ 2.4101600050926208e-01 -2.6547598838806152e-01
+ <_>
+
+ 0 -1 1703 -1.8585000187158585e-02
+
+ 5.4232501983642578e-01 5.3633000701665878e-02
+ <_>
+
+ 0 -1 1704 -3.6437001079320908e-02
+
+ 2.3908898830413818e+00 -1.3634699583053589e-01
+ <_>
+
+ 0 -1 1705 3.2455001026391983e-02
+
+ 1.5910699963569641e-01 -6.7581498622894287e-01
+ <_>
+
+ 0 -1 1706 5.9781998395919800e-02
+
+ -2.3479999508708715e-03 -7.3053699731826782e-01
+ <_>
+
+ 0 -1 1707 9.8209995776414871e-03
+
+ -1.1444099992513657e-01 3.0570301413536072e-01
+ <_>
+
+ 0 -1 1708 -3.5163998603820801e-02
+
+ -1.0511469841003418e+00 -3.3103000372648239e-02
+ <_>
+
+ 0 -1 1709 2.7429999317973852e-03
+
+ -2.0135399699211121e-01 3.2754099369049072e-01
+ <_>
+
+ 0 -1 1710 8.1059997901320457e-03
+
+ -2.1383500099182129e-01 4.3362098932266235e-01
+ <_>
+
+ 0 -1 1711 8.8942997157573700e-02
+
+ 1.0940899699926376e-01 -4.7609338760375977e+00
+ <_>
+
+ 0 -1 1712 -3.0054999515414238e-02
+
+ -1.7169300317764282e+00 -6.0919001698493958e-02
+ <_>
+
+ 0 -1 1713 -2.1734999492764473e-02
+
+ 6.4778900146484375e-01 -3.2830998301506042e-02
+ <_>
+
+ 0 -1 1714 3.7648998200893402e-02
+
+ -1.0060000233352184e-02 -7.6569098234176636e-01
+ <_>
+
+ 0 -1 1715 2.7189999818801880e-03
+
+ 1.9888900220394135e-01 -8.2479000091552734e-02
+ <_>
+
+ 0 -1 1716 -1.0548000223934650e-02
+
+ -8.6613601446151733e-01 -2.5986000895500183e-02
+ <_>
+
+ 0 -1 1717 1.2966300547122955e-01
+
+ 1.3911999762058258e-01 -2.2271950244903564e+00
+ <_>
+
+ 0 -1 1718 -1.7676999792456627e-02
+
+ 3.3967700600624084e-01 -2.3989599943161011e-01
+ <_>
+
+ 0 -1 1719 -7.7051997184753418e-02
+
+ -2.5017969608306885e+00 1.2841999530792236e-01
+ <_>
+
+ 0 -1 1720 -1.9230000674724579e-02
+
+ 5.0641202926635742e-01 -1.9751599431037903e-01
+ <_>
+
+ 0 -1 1721 -5.1222998648881912e-02
+
+ -2.9333369731903076e+00 1.3858500123023987e-01
+ <_>
+
+ 0 -1 1722 2.0830000285059214e-03
+
+ -6.0043597221374512e-01 2.9718000441789627e-02
+ <_>
+
+ 0 -1 1723 2.5418000295758247e-02
+
+ 3.3915799856185913e-01 -1.4392000436782837e-01
+ <_>
+
+ 0 -1 1724 -2.3905999958515167e-02
+
+ -1.1082680225372314e+00 -4.7377001494169235e-02
+ <_>
+
+ 0 -1 1725 -6.3740001060068607e-03
+
+ 4.4533699750900269e-01 -6.7052997648715973e-02
+ <_>
+
+ 0 -1 1726 -3.7698999047279358e-02
+
+ -1.0406579971313477e+00 -4.1790001094341278e-02
+ <_>
+
+ 0 -1 1727 2.1655100584030151e-01
+
+ 3.3863000571727753e-02 8.2017302513122559e-01
+ <_>
+
+ 0 -1 1728 -1.3400999829173088e-02
+
+ 5.2903497219085693e-01 -1.9133000075817108e-01
+ <_>
+ 196
+ -3.2103500366210938e+00
+
+ <_>
+
+ 0 -1 1729 7.1268998086452484e-02
+
+ -5.3631198406219482e-01 6.0715299844741821e-01
+ <_>
+
+ 0 -1 1730 5.6111000478267670e-02
+
+ -5.0141602754592896e-01 4.3976101279258728e-01
+ <_>
+
+ 0 -1 1731 4.0463998913764954e-02
+
+ -3.2922199368476868e-01 5.4834699630737305e-01
+ <_>
+
+ 0 -1 1732 6.3155002892017365e-02
+
+ -3.1701698899269104e-01 4.6152999997138977e-01
+ <_>
+
+ 0 -1 1733 1.0320999659597874e-02
+
+ 1.0694999992847443e-01 -9.8243898153305054e-01
+ <_>
+
+ 0 -1 1734 6.2606997787952423e-02
+
+ -1.4329700171947479e-01 7.1095001697540283e-01
+ <_>
+
+ 0 -1 1735 -3.9416000247001648e-02
+
+ 9.4380199909210205e-01 -2.1572099626064301e-01
+ <_>
+
+ 0 -1 1736 -5.3960001096129417e-03
+
+ -5.4611998796463013e-01 2.5303798913955688e-01
+ <_>
+
+ 0 -1 1737 1.0773199796676636e-01
+
+ 1.2496000155806541e-02 -1.0809199810028076e+00
+ <_>
+
+ 0 -1 1738 1.6982000321149826e-02
+
+ -3.1536400318145752e-01 5.1239997148513794e-01
+ <_>
+
+ 0 -1 1739 3.1216999515891075e-02
+
+ -4.5199999585747719e-03 -1.2443480491638184e+00
+ <_>
+
+ 0 -1 1740 -2.3106999695301056e-02
+
+ -7.6492899656295776e-01 2.0640599727630615e-01
+ <_>
+
+ 0 -1 1741 -1.1203999631106853e-02
+
+ 2.4092699587345123e-01 -3.5142099857330322e-01
+ <_>
+
+ 0 -1 1742 -4.7479998320341110e-03
+
+ -9.7007997334003448e-02 2.0638099312782288e-01
+ <_>
+
+ 0 -1 1743 -1.7358999699354172e-02
+
+ -7.9020297527313232e-01 2.1852999925613403e-02
+ <_>
+
+ 0 -1 1744 1.8851999193429947e-02
+
+ -1.0394600033760071e-01 5.4844200611114502e-01
+ <_>
+
+ 0 -1 1745 7.2249998338520527e-03
+
+ -4.0409401059150696e-01 2.6763799786567688e-01
+ <_>
+
+ 0 -1 1746 1.8915999680757523e-02
+
+ 2.0508000254631042e-01 -1.0206340551376343e+00
+ <_>
+
+ 0 -1 1747 3.1156999990344048e-02
+
+ 1.2400000123307109e-03 -8.7293499708175659e-01
+ <_>
+
+ 0 -1 1748 2.0951999351382256e-02
+
+ -5.5559999309480190e-03 8.0356198549270630e-01
+ <_>
+
+ 0 -1 1749 1.1291000060737133e-02
+
+ -3.6478400230407715e-01 2.2767899930477142e-01
+ <_>
+
+ 0 -1 1750 -5.7011000812053680e-02
+
+ -1.4295619726181030e+00 1.4322000741958618e-01
+ <_>
+
+ 0 -1 1751 7.2194002568721771e-02
+
+ -4.1850000619888306e-02 -1.9111829996109009e+00
+ <_>
+
+ 0 -1 1752 -1.9874000921845436e-02
+
+ 2.6425498723983765e-01 -3.2617700099945068e-01
+ <_>
+
+ 0 -1 1753 -1.6692999750375748e-02
+
+ -8.3907800912857056e-01 4.0799999260343611e-04
+ <_>
+
+ 0 -1 1754 -3.9834998548030853e-02
+
+ -4.8858499526977539e-01 1.6436100006103516e-01
+ <_>
+
+ 0 -1 1755 2.7009999379515648e-02
+
+ -1.8862499296665192e-01 8.3419400453567505e-01
+ <_>
+
+ 0 -1 1756 -3.9420002140104771e-03
+
+ 2.3231500387191772e-01 -7.2360001504421234e-02
+ <_>
+
+ 0 -1 1757 2.2833000868558884e-02
+
+ -3.5884000360965729e-02 -1.1549400091171265e+00
+ <_>
+
+ 0 -1 1758 -6.8888001143932343e-02
+
+ -1.7837309837341309e+00 1.5159000456333160e-01
+ <_>
+
+ 0 -1 1759 4.3097000569105148e-02
+
+ -2.1608099341392517e-01 5.0624102354049683e-01
+ <_>
+
+ 0 -1 1760 8.6239995434880257e-03
+
+ -1.7795599997043610e-01 2.8957900404930115e-01
+ <_>
+
+ 0 -1 1761 1.4561000280082226e-02
+
+ -1.1408000253140926e-02 -8.9402002096176147e-01
+ <_>
+
+ 0 -1 1762 -1.1501000262796879e-02
+
+ 3.0171999335289001e-01 -4.3659001588821411e-02
+ <_>
+
+ 0 -1 1763 -1.0971499979496002e-01
+
+ -9.5147097110748291e-01 -1.9973000511527061e-02
+ <_>
+
+ 0 -1 1764 4.5228000730276108e-02
+
+ 3.3110998570919037e-02 9.6619802713394165e-01
+ <_>
+
+ 0 -1 1765 -2.7047999203205109e-02
+
+ 9.7963601350784302e-01 -1.7261900007724762e-01
+ <_>
+
+ 0 -1 1766 1.8030999228358269e-02
+
+ -2.0801000297069550e-02 2.7385899424552917e-01
+ <_>
+
+ 0 -1 1767 5.0524998456239700e-02
+
+ -5.6802999228239059e-02 -1.7775089740753174e+00
+ <_>
+
+ 0 -1 1768 -2.9923999682068825e-02
+
+ 6.5329200029373169e-01 -2.3537000641226768e-02
+ <_>
+
+ 0 -1 1769 3.8058001548051834e-02
+
+ 2.6317000389099121e-02 -7.0665699243545532e-01
+ <_>
+
+ 0 -1 1770 1.8563899397850037e-01
+
+ -5.6039998307824135e-03 3.2873699069023132e-01
+ <_>
+
+ 0 -1 1771 -4.0670000016689301e-03
+
+ 3.4204798936843872e-01 -3.0171599984169006e-01
+ <_>
+
+ 0 -1 1772 1.0108999907970428e-02
+
+ -7.3600001633167267e-03 5.7981598377227783e-01
+ <_>
+
+ 0 -1 1773 -1.1567000299692154e-02
+
+ -5.2722197771072388e-01 4.6447999775409698e-02
+ <_>
+
+ 0 -1 1774 -6.5649999305605888e-03
+
+ -5.8529102802276611e-01 1.9101899862289429e-01
+ <_>
+
+ 0 -1 1775 1.0582000017166138e-02
+
+ 2.1073000505566597e-02 -6.8892598152160645e-01
+ <_>
+
+ 0 -1 1776 -2.0304000005125999e-02
+
+ -3.6400699615478516e-01 1.5338799357414246e-01
+ <_>
+
+ 0 -1 1777 2.3529999889433384e-03
+
+ 3.6164000630378723e-02 -5.9825098514556885e-01
+ <_>
+
+ 0 -1 1778 -1.4690000098198652e-03
+
+ -1.4707699418067932e-01 3.7507998943328857e-01
+ <_>
+
+ 0 -1 1779 8.6449999362230301e-03
+
+ -2.1708500385284424e-01 5.1936799287796021e-01
+ <_>
+
+ 0 -1 1780 -2.4326000362634659e-02
+
+ -1.0846769809722900e+00 1.4084799587726593e-01
+ <_>
+
+ 0 -1 1781 7.4418999254703522e-02
+
+ -1.5513800084590912e-01 1.1822769641876221e+00
+ <_>
+
+ 0 -1 1782 1.7077999189496040e-02
+
+ 4.4231001287698746e-02 9.1561102867126465e-01
+ <_>
+
+ 0 -1 1783 -2.4577999487519264e-02
+
+ -1.5504100322723389e+00 -5.4745998233556747e-02
+ <_>
+
+ 0 -1 1784 3.0205000191926956e-02
+
+ 1.6662800312042236e-01 -1.0001239776611328e+00
+ <_>
+
+ 0 -1 1785 1.2136000208556652e-02
+
+ -7.7079099416732788e-01 -4.8639997839927673e-03
+ <_>
+
+ 0 -1 1786 8.6717002093791962e-02
+
+ 1.1061699688434601e-01 -1.6857999563217163e+00
+ <_>
+
+ 0 -1 1787 -4.2309001088142395e-02
+
+ 1.1075930595397949e+00 -1.5438599884510040e-01
+ <_>
+
+ 0 -1 1788 -2.6420000940561295e-03
+
+ 2.7451899647712708e-01 -1.8456199765205383e-01
+ <_>
+
+ 0 -1 1789 -5.6662000715732574e-02
+
+ -8.0625599622726440e-01 -1.6928000375628471e-02
+ <_>
+
+ 0 -1 1790 2.3475000634789467e-02
+
+ 1.4187699556350708e-01 -2.5500899553298950e-01
+ <_>
+
+ 0 -1 1791 -2.0803000777959824e-02
+
+ 1.9826300442218781e-01 -3.1171199679374695e-01
+ <_>
+
+ 0 -1 1792 7.2599998675286770e-03
+
+ -5.0590999424457550e-02 4.1923800110816956e-01
+ <_>
+
+ 0 -1 1793 3.4160000085830688e-01
+
+ -1.6674900054931641e-01 9.2748600244522095e-01
+ <_>
+
+ 0 -1 1794 6.2029999680817127e-03
+
+ -1.2625899910926819e-01 4.0445300936698914e-01
+ <_>
+
+ 0 -1 1795 3.2692000269889832e-02
+
+ -3.2634999603033066e-02 -9.8939800262451172e-01
+ <_>
+
+ 0 -1 1796 2.1100000594742596e-04
+
+ -6.4534001052379608e-02 2.5473698973655701e-01
+ <_>
+
+ 0 -1 1797 7.2100001852959394e-04
+
+ -3.6618599295616150e-01 1.1973100155591965e-01
+ <_>
+
+ 0 -1 1798 5.4490998387336731e-02
+
+ 1.2073499709367752e-01 -1.0291390419006348e+00
+ <_>
+
+ 0 -1 1799 -1.0141000151634216e-02
+
+ -5.2177202701568604e-01 3.3734999597072601e-02
+ <_>
+
+ 0 -1 1800 -1.8815999850630760e-02
+
+ 6.5181797742843628e-01 1.3399999588727951e-03
+ <_>
+
+ 0 -1 1801 -5.3480002097785473e-03
+
+ 1.7370699346065521e-01 -3.4132000803947449e-01
+ <_>
+
+ 0 -1 1802 -1.0847000405192375e-02
+
+ -1.9699899852275848e-01 1.5045499801635742e-01
+ <_>
+
+ 0 -1 1803 -4.9926001578569412e-02
+
+ -5.0888502597808838e-01 3.0762000009417534e-02
+ <_>
+
+ 0 -1 1804 1.2160000391304493e-02
+
+ -6.9251999258995056e-02 1.8745499849319458e-01
+ <_>
+
+ 0 -1 1805 -2.2189998999238014e-03
+
+ -4.0849098563194275e-01 7.9954996705055237e-02
+ <_>
+
+ 0 -1 1806 3.1580000650137663e-03
+
+ -2.1124599874019623e-01 2.2366400063037872e-01
+ <_>
+
+ 0 -1 1807 4.1439998894929886e-03
+
+ -4.9900299310684204e-01 6.2917001545429230e-02
+ <_>
+
+ 0 -1 1808 -7.3730000294744968e-03
+
+ -2.0553299784660339e-01 2.2096699476242065e-01
+ <_>
+
+ 0 -1 1809 5.1812000572681427e-02
+
+ 1.8096800148487091e-01 -4.3495801091194153e-01
+ <_>
+
+ 0 -1 1810 1.8340000882744789e-02
+
+ 1.5200000256299973e-02 3.7991699576377869e-01
+ <_>
+
+ 0 -1 1811 1.7490799725055695e-01
+
+ -2.0920799672603607e-01 4.0013000369071960e-01
+ <_>
+
+ 0 -1 1812 5.3993999958038330e-02
+
+ 2.4751600623130798e-01 -2.6712900400161743e-01
+ <_>
+
+ 0 -1 1813 -3.2033199071884155e-01
+
+ -1.9094380140304565e+00 -6.6960997879505157e-02
+ <_>
+
+ 0 -1 1814 -2.7060000225901604e-02
+
+ -7.1371299028396606e-01 1.5904599428176880e-01
+ <_>
+
+ 0 -1 1815 7.7463999390602112e-02
+
+ -1.6970199346542358e-01 7.7552998065948486e-01
+ <_>
+
+ 0 -1 1816 2.3771999403834343e-02
+
+ 1.9021899998188019e-01 -6.0162097215652466e-01
+ <_>
+
+ 0 -1 1817 1.1501000262796879e-02
+
+ 7.7039999887347221e-03 -6.1730301380157471e-01
+ <_>
+
+ 0 -1 1818 3.2616000622510910e-02
+
+ 1.7159199714660645e-01 -7.0978200435638428e-01
+ <_>
+
+ 0 -1 1819 -4.4383000582456589e-02
+
+ -2.2606229782104492e+00 -7.3276996612548828e-02
+ <_>
+
+ 0 -1 1820 -5.8476001024246216e-02
+
+ 2.4087750911712646e+00 8.3091996610164642e-02
+ <_>
+
+ 0 -1 1821 1.9303999841213226e-02
+
+ -2.7082300186157227e-01 2.7369999885559082e-01
+ <_>
+
+ 0 -1 1822 -4.4705998152494431e-02
+
+ 3.1355598568916321e-01 -6.2492001801729202e-02
+ <_>
+
+ 0 -1 1823 -6.0334999114274979e-02
+
+ -1.4515119791030884e+00 -5.8761000633239746e-02
+ <_>
+
+ 0 -1 1824 1.1667000129818916e-02
+
+ -1.8084999173879623e-02 5.0479698181152344e-01
+ <_>
+
+ 0 -1 1825 2.8009999543428421e-02
+
+ -2.3302899301052094e-01 3.0708700418472290e-01
+ <_>
+
+ 0 -1 1826 6.5397001802921295e-02
+
+ 1.4135900139808655e-01 -5.0010901689529419e-01
+ <_>
+
+ 0 -1 1827 9.6239997074007988e-03
+
+ -2.2054600715637207e-01 3.9191201329231262e-01
+ <_>
+
+ 0 -1 1828 2.5510000996291637e-03
+
+ -1.1381500214338303e-01 2.0032300055027008e-01
+ <_>
+
+ 0 -1 1829 3.1847000122070312e-02
+
+ 2.5476999580860138e-02 -5.3326398134231567e-01
+ <_>
+
+ 0 -1 1830 3.3055000007152557e-02
+
+ 1.7807699739933014e-01 -6.2793898582458496e-01
+ <_>
+
+ 0 -1 1831 4.7600999474525452e-02
+
+ -1.4747899770736694e-01 1.4204180240631104e+00
+ <_>
+
+ 0 -1 1832 -1.9571999087929726e-02
+
+ -5.2693498134613037e-01 1.5838600695133209e-01
+ <_>
+
+ 0 -1 1833 -5.4730001837015152e-02
+
+ 8.8231599330902100e-01 -1.6627800464630127e-01
+ <_>
+
+ 0 -1 1834 -2.2686000913381577e-02
+
+ -4.8386898636817932e-01 1.5000100433826447e-01
+ <_>
+
+ 0 -1 1835 1.0713200271129608e-01
+
+ -2.1336199343204498e-01 4.2333900928497314e-01
+ <_>
+
+ 0 -1 1836 -3.6380000412464142e-02
+
+ -7.4198000133037567e-02 1.4589400589466095e-01
+ <_>
+
+ 0 -1 1837 1.3935999944806099e-02
+
+ -2.4911600351333618e-01 2.6771199703216553e-01
+ <_>
+
+ 0 -1 1838 2.0991999655961990e-02
+
+ 8.7959999218583107e-03 4.3064999580383301e-01
+ <_>
+
+ 0 -1 1839 4.9118999391794205e-02
+
+ -1.7591999471187592e-01 6.9282901287078857e-01
+ <_>
+
+ 0 -1 1840 3.6315999925136566e-02
+
+ 1.3145299255847931e-01 -3.3597299456596375e-01
+ <_>
+
+ 0 -1 1841 4.1228000074625015e-02
+
+ -4.5692000538110733e-02 -1.3515930175781250e+00
+ <_>
+
+ 0 -1 1842 1.5672000125050545e-02
+
+ 1.7544099688529968e-01 -6.0550000518560410e-02
+ <_>
+
+ 0 -1 1843 -1.6286000609397888e-02
+
+ -1.1308189630508423e+00 -3.9533000439405441e-02
+ <_>
+
+ 0 -1 1844 -3.0229999683797359e-03
+
+ -2.2454300522804260e-01 2.3628099262714386e-01
+ <_>
+
+ 0 -1 1845 -1.3786299526691437e-01
+
+ 4.5376899838447571e-01 -2.1098700165748596e-01
+ <_>
+
+ 0 -1 1846 -9.6760001033544540e-03
+
+ -1.5105099976062775e-01 2.0781700313091278e-01
+ <_>
+
+ 0 -1 1847 -2.4839999154210091e-02
+
+ -6.8350297212600708e-01 -8.0040004104375839e-03
+ <_>
+
+ 0 -1 1848 -1.3964399695396423e-01
+
+ 6.5011298656463623e-01 4.6544000506401062e-02
+ <_>
+
+ 0 -1 1849 -8.2153998315334320e-02
+
+ 4.4887199997901917e-01 -2.3591999709606171e-01
+ <_>
+
+ 0 -1 1850 3.8449999410659075e-03
+
+ -8.8173002004623413e-02 2.7346798777580261e-01
+ <_>
+
+ 0 -1 1851 -6.6579999402165413e-03
+
+ -4.6866598725318909e-01 7.7001996338367462e-02
+ <_>
+
+ 0 -1 1852 -1.5898000448942184e-02
+
+ 2.9268398880958557e-01 -2.1941000595688820e-02
+ <_>
+
+ 0 -1 1853 -5.0946000963449478e-02
+
+ -1.2093789577484131e+00 -4.2109999805688858e-02
+ <_>
+
+ 0 -1 1854 1.6837999224662781e-02
+
+ -4.5595999807119370e-02 5.0180697441101074e-01
+ <_>
+
+ 0 -1 1855 1.5918999910354614e-02
+
+ -2.6904299855232239e-01 2.6516300439834595e-01
+ <_>
+
+ 0 -1 1856 3.6309999413788319e-03
+
+ -1.3046100735664368e-01 3.1807100772857666e-01
+ <_>
+
+ 0 -1 1857 -8.6144998669624329e-02
+
+ 1.9443659782409668e+00 -1.3978299498558044e-01
+ <_>
+
+ 0 -1 1858 3.3140998333692551e-02
+
+ 1.5266799926757812e-01 -3.0866000801324844e-02
+ <_>
+
+ 0 -1 1859 -3.9679999463260174e-03
+
+ -7.1202301979064941e-01 -1.3844000175595284e-02
+ <_>
+
+ 0 -1 1860 -2.4008000269532204e-02
+
+ 9.2007797956466675e-01 4.6723999083042145e-02
+ <_>
+
+ 0 -1 1861 8.7320003658533096e-03
+
+ -2.2567300498485565e-01 3.1931799650192261e-01
+ <_>
+
+ 0 -1 1862 -2.7786999940872192e-02
+
+ -7.2337102890014648e-01 1.7018599808216095e-01
+ <_>
+
+ 0 -1 1863 -1.9455300271511078e-01
+
+ 1.2461860179901123e+00 -1.4736199378967285e-01
+ <_>
+
+ 0 -1 1864 -1.0869699716567993e-01
+
+ -1.4465179443359375e+00 1.2145300209522247e-01
+ <_>
+
+ 0 -1 1865 -1.9494999200105667e-02
+
+ -7.8153097629547119e-01 -2.3732999339699745e-02
+ <_>
+
+ 0 -1 1866 3.0650000553578138e-03
+
+ -8.5471397638320923e-01 1.6686999797821045e-01
+ <_>
+
+ 0 -1 1867 5.9193998575210571e-02
+
+ -1.4853699505329132e-01 1.1273469924926758e+00
+ <_>
+
+ 0 -1 1868 -5.4207999259233475e-02
+
+ 5.4726999998092651e-01 3.5523999482393265e-02
+ <_>
+
+ 0 -1 1869 -3.9324998855590820e-02
+
+ 3.6642599105834961e-01 -2.0543999969959259e-01
+ <_>
+
+ 0 -1 1870 8.2278996706008911e-02
+
+ -3.5007998347282410e-02 5.3994202613830566e-01
+ <_>
+
+ 0 -1 1871 -7.4479999020695686e-03
+
+ -6.1537498235702515e-01 -3.5319998860359192e-03
+ <_>
+
+ 0 -1 1872 7.3770000599324703e-03
+
+ -6.5591000020503998e-02 4.1961398720741272e-01
+ <_>
+
+ 0 -1 1873 7.0779998786747456e-03
+
+ -3.4129500389099121e-01 1.2536799907684326e-01
+ <_>
+
+ 0 -1 1874 -1.5581999905407429e-02
+
+ -3.0240398645401001e-01 2.1511000394821167e-01
+ <_>
+
+ 0 -1 1875 -2.7399999089539051e-03
+
+ 7.6553001999855042e-02 -4.1060501337051392e-01
+ <_>
+
+ 0 -1 1876 -7.0600003004074097e-02
+
+ -9.7356200218200684e-01 1.1241800338029861e-01
+ <_>
+
+ 0 -1 1877 -1.1706000193953514e-02
+
+ 1.8560700118541718e-01 -2.9755198955535889e-01
+ <_>
+
+ 0 -1 1878 7.1499997284263372e-04
+
+ -5.9650000184774399e-02 2.4824699759483337e-01
+ <_>
+
+ 0 -1 1879 -3.6866001784801483e-02
+
+ 3.2751700282096863e-01 -2.3059600591659546e-01
+ <_>
+
+ 0 -1 1880 -3.2526999711990356e-02
+
+ -2.9320299625396729e-01 1.5427699685096741e-01
+ <_>
+
+ 0 -1 1881 -7.4813999235630035e-02
+
+ -1.2143570184707642e+00 -5.2244000136852264e-02
+ <_>
+
+ 0 -1 1882 4.1469998657703400e-02
+
+ 1.3062499463558197e-01 -2.3274369239807129e+00
+ <_>
+
+ 0 -1 1883 -2.8880000114440918e-02
+
+ -6.6074597835540771e-01 -9.0960003435611725e-03
+ <_>
+
+ 0 -1 1884 4.6381998807191849e-02
+
+ 1.6630199551582336e-01 -6.6949498653411865e-01
+ <_>
+
+ 0 -1 1885 2.5424998998641968e-01
+
+ -5.4641999304294586e-02 -1.2676080465316772e+00
+ <_>
+
+ 0 -1 1886 2.4000001139938831e-03
+
+ 2.0276799798011780e-01 1.4667999930679798e-02
+ <_>
+
+ 0 -1 1887 -8.2805998623371124e-02
+
+ -7.8713601827621460e-01 -2.4468999356031418e-02
+ <_>
+
+ 0 -1 1888 -1.1438000015914440e-02
+
+ 2.8623399138450623e-01 -3.0894000083208084e-02
+ <_>
+
+ 0 -1 1889 -1.2913399934768677e-01
+
+ 1.7292929887771606e+00 -1.4293900132179260e-01
+ <_>
+
+ 0 -1 1890 3.8552999496459961e-02
+
+ 1.9232999533414841e-02 3.7732601165771484e-01
+ <_>
+
+ 0 -1 1891 1.0191400349140167e-01
+
+ -7.4533998966217041e-02 -3.3868899345397949e+00
+ <_>
+
+ 0 -1 1892 -1.9068000838160515e-02
+
+ 3.1814101338386536e-01 1.9261000677943230e-02
+ <_>
+
+ 0 -1 1893 -6.0775000602006912e-02
+
+ 7.6936298608779907e-01 -1.7644000053405762e-01
+ <_>
+
+ 0 -1 1894 2.4679999798536301e-02
+
+ 1.8396499752998352e-01 -3.0868801474571228e-01
+ <_>
+
+ 0 -1 1895 2.6759000495076180e-02
+
+ -2.3454900085926056e-01 3.3056598901748657e-01
+ <_>
+
+ 0 -1 1896 1.4969999901950359e-02
+
+ 1.7213599383831024e-01 -1.8248899281024933e-01
+ <_>
+
+ 0 -1 1897 2.6142999529838562e-02
+
+ -4.6463999897241592e-02 -1.1318379640579224e+00
+ <_>
+
+ 0 -1 1898 -3.7512000650167465e-02
+
+ 8.0404001474380493e-01 6.9660000503063202e-02
+ <_>
+
+ 0 -1 1899 -5.3229997865855694e-03
+
+ -8.1884402036666870e-01 -1.8224999308586121e-02
+ <_>
+
+ 0 -1 1900 1.7813000828027725e-02
+
+ 1.4957800507545471e-01 -1.8667200207710266e-01
+ <_>
+
+ 0 -1 1901 -3.4010000526905060e-02
+
+ -7.2852301597595215e-01 -1.6615999862551689e-02
+ <_>
+
+ 0 -1 1902 -1.5953000634908676e-02
+
+ 5.6944000720977783e-01 1.3832000084221363e-02
+ <_>
+
+ 0 -1 1903 1.9743999466300011e-02
+
+ 4.0525000542402267e-02 -4.1773399710655212e-01
+ <_>
+
+ 0 -1 1904 -1.0374800115823746e-01
+
+ -1.9825149774551392e+00 1.1960200220346451e-01
+ <_>
+
+ 0 -1 1905 -1.9285000860691071e-02
+
+ 5.0230598449707031e-01 -1.9745899736881256e-01
+ <_>
+
+ 0 -1 1906 -1.2780000455677509e-02
+
+ 4.0195000171661377e-01 -2.6957999914884567e-02
+ <_>
+
+ 0 -1 1907 -1.6352999955415726e-02
+
+ -7.6608800888061523e-01 -2.4209000170230865e-02
+ <_>
+
+ 0 -1 1908 -1.2763699889183044e-01
+
+ 8.6578500270843506e-01 6.4205996692180634e-02
+ <_>
+
+ 0 -1 1909 1.9068999215960503e-02
+
+ -5.5929797887802124e-01 -1.6880000475794077e-03
+ <_>
+
+ 0 -1 1910 3.2480999827384949e-02
+
+ 4.0722001343965530e-02 4.8925098776817322e-01
+ <_>
+
+ 0 -1 1911 9.4849998131394386e-03
+
+ -1.9231900572776794e-01 5.1139700412750244e-01
+ <_>
+
+ 0 -1 1912 5.0470000132918358e-03
+
+ 1.8706800043582916e-01 -1.6113600134849548e-01
+ <_>
+
+ 0 -1 1913 4.1267998516559601e-02
+
+ -4.8817999660968781e-02 -1.1326299905776978e+00
+ <_>
+
+ 0 -1 1914 -7.6358996331691742e-02
+
+ 1.4169390201568604e+00 8.7319999933242798e-02
+ <_>
+
+ 0 -1 1915 -7.2834998369216919e-02
+
+ 1.3189860582351685e+00 -1.4819100499153137e-01
+ <_>
+
+ 0 -1 1916 5.9576999396085739e-02
+
+ 4.8376999795436859e-02 8.5611802339553833e-01
+ <_>
+
+ 0 -1 1917 2.0263999700546265e-02
+
+ -2.1044099330902100e-01 3.3858999609947205e-01
+ <_>
+
+ 0 -1 1918 -8.0301001667976379e-02
+
+ -1.2464400529861450e+00 1.1857099831104279e-01
+ <_>
+
+ 0 -1 1919 -1.7835000529885292e-02
+
+ 2.5782299041748047e-01 -2.4564799666404724e-01
+ <_>
+
+ 0 -1 1920 1.1431000195443630e-02
+
+ 2.2949799895286560e-01 -2.9497599601745605e-01
+ <_>
+
+ 0 -1 1921 -2.5541000068187714e-02
+
+ -8.6252999305725098e-01 -7.0400000549852848e-04
+ <_>
+
+ 0 -1 1922 -7.6899997657164931e-04
+
+ 3.1511399149894714e-01 -1.4349000155925751e-01
+ <_>
+
+ 0 -1 1923 -1.4453999698162079e-02
+
+ 2.5148499011993408e-01 -2.8232899308204651e-01
+ <_>
+
+ 0 -1 1924 8.6730001494288445e-03
+
+ 2.6601400971412659e-01 -2.8190800547599792e-01
+ <_>
+ 197
+ -3.2772979736328125e+00
+
+ <_>
+
+ 0 -1 1925 5.4708998650312424e-02
+
+ -5.4144299030303955e-01 6.1043000221252441e-01
+ <_>
+
+ 0 -1 1926 -1.0838799923658371e-01
+
+ 7.1739900112152100e-01 -4.1196098923683167e-01
+ <_>
+
+ 0 -1 1927 2.2996999323368073e-02
+
+ -5.8269798755645752e-01 2.9645600914955139e-01
+ <_>
+
+ 0 -1 1928 2.7540000155568123e-03
+
+ -7.4243897199630737e-01 1.4183300733566284e-01
+ <_>
+
+ 0 -1 1929 -2.1520000882446766e-03
+
+ 1.7879900336265564e-01 -6.8548601865768433e-01
+ <_>
+
+ 0 -1 1930 -2.2559000179171562e-02
+
+ -1.0775549411773682e+00 1.2388999760150909e-01
+ <_>
+
+ 0 -1 1931 8.3025000989437103e-02
+
+ 2.4500999599695206e-02 -1.0251879692077637e+00
+ <_>
+
+ 0 -1 1932 -6.6740000620484352e-03
+
+ -4.5283100008964539e-01 2.1230199933052063e-01
+ <_>
+
+ 0 -1 1933 7.6485000550746918e-02
+
+ -2.6972699165344238e-01 4.8580199480056763e-01
+ <_>
+
+ 0 -1 1934 5.4910001344978809e-03
+
+ -4.8871201276779175e-01 3.1616398692131042e-01
+ <_>
+
+ 0 -1 1935 -1.0414999909698963e-02
+
+ 4.1512900590896606e-01 -3.0044800043106079e-01
+ <_>
+
+ 0 -1 1936 2.7607999742031097e-02
+
+ 1.6203799843788147e-01 -9.9868500232696533e-01
+ <_>
+
+ 0 -1 1937 -2.3272000253200531e-02
+
+ -1.1024399995803833e+00 2.1124999970197678e-02
+ <_>
+
+ 0 -1 1938 -5.5619999766349792e-02
+
+ 6.5033102035522461e-01 -2.7938000857830048e-02
+ <_>
+
+ 0 -1 1939 -4.0631998330354691e-02
+
+ 4.2117300629615784e-01 -2.6763799786567688e-01
+ <_>
+
+ 0 -1 1940 -7.3560001328587532e-03
+
+ 3.5277798771858215e-01 -3.7854000926017761e-01
+ <_>
+
+ 0 -1 1941 1.7007000744342804e-02
+
+ -2.9189500212669373e-01 4.1053798794746399e-01
+ <_>
+
+ 0 -1 1942 -3.7034001201391220e-02
+
+ -1.3216309547424316e+00 1.2966500222682953e-01
+ <_>
+
+ 0 -1 1943 -1.9633000716567039e-02
+
+ -8.7702298164367676e-01 1.0799999581649899e-03
+ <_>
+
+ 0 -1 1944 -2.3546999320387840e-02
+
+ 2.6106101274490356e-01 -2.1481400728225708e-01
+ <_>
+
+ 0 -1 1945 -4.3352998793125153e-02
+
+ -9.9089699983596802e-01 -9.9560003727674484e-03
+ <_>
+
+ 0 -1 1946 -2.2183999419212341e-02
+
+ 6.3454401493072510e-01 -5.6547001004219055e-02
+ <_>
+
+ 0 -1 1947 1.6530999913811684e-02
+
+ 2.4664999917149544e-02 -7.3326802253723145e-01
+ <_>
+
+ 0 -1 1948 -3.2744001597166061e-02
+
+ -5.6297200918197632e-01 1.6640299558639526e-01
+ <_>
+
+ 0 -1 1949 7.1415998041629791e-02
+
+ -3.0000001424923539e-04 -9.3286401033401489e-01
+ <_>
+
+ 0 -1 1950 8.0999999772757292e-04
+
+ -9.5380000770092010e-02 2.5184699892997742e-01
+ <_>
+
+ 0 -1 1951 -8.4090000018477440e-03
+
+ -6.5496802330017090e-01 6.7300997674465179e-02
+ <_>
+
+ 0 -1 1952 -1.7254000529646873e-02
+
+ -4.6492999792098999e-01 1.6070899367332458e-01
+ <_>
+
+ 0 -1 1953 -1.8641000613570213e-02
+
+ -1.0594010353088379e+00 -1.9617000594735146e-02
+ <_>
+
+ 0 -1 1954 -9.1979997232556343e-03
+
+ 5.0716197490692139e-01 -1.5339200198650360e-01
+ <_>
+
+ 0 -1 1955 1.8538000062108040e-02
+
+ -3.0498200654983521e-01 7.3506200313568115e-01
+ <_>
+
+ 0 -1 1956 -5.0335001200437546e-02
+
+ -1.1140480041503906e+00 1.8000100553035736e-01
+ <_>
+
+ 0 -1 1957 -2.3529000580310822e-02
+
+ -8.6907899379730225e-01 -1.2459999881684780e-02
+ <_>
+
+ 0 -1 1958 -2.7100000530481339e-02
+
+ 6.5942901372909546e-01 -3.5323999822139740e-02
+ <_>
+
+ 0 -1 1959 6.5879998728632927e-03
+
+ -2.2953400015830994e-01 4.2425099015235901e-01
+ <_>
+
+ 0 -1 1960 2.3360000923275948e-02
+
+ 1.8356199562549591e-01 -9.8587298393249512e-01
+ <_>
+
+ 0 -1 1961 1.2946999631822109e-02
+
+ -3.3147400617599487e-01 2.1323199570178986e-01
+ <_>
+
+ 0 -1 1962 -6.6559999249875546e-03
+
+ -1.1951400339603424e-01 2.9752799868583679e-01
+ <_>
+
+ 0 -1 1963 -2.2570999339222908e-02
+
+ 3.8499400019645691e-01 -2.4434499442577362e-01
+ <_>
+
+ 0 -1 1964 -6.3813999295234680e-02
+
+ -8.9383500814437866e-01 1.4217500388622284e-01
+ <_>
+
+ 0 -1 1965 -4.9945000559091568e-02
+
+ 5.3864401578903198e-01 -2.0485299825668335e-01
+ <_>
+
+ 0 -1 1966 6.8319998681545258e-03
+
+ -5.6678999215364456e-02 3.9970999956130981e-01
+ <_>
+
+ 0 -1 1967 -5.5835999548435211e-02
+
+ -1.5239470005035400e+00 -5.1183000206947327e-02
+ <_>
+
+ 0 -1 1968 3.1957000494003296e-01
+
+ 7.4574001133441925e-02 1.2447799444198608e+00
+ <_>
+
+ 0 -1 1969 8.0955997109413147e-02
+
+ -1.9665500521659851e-01 5.9889698028564453e-01
+ <_>
+
+ 0 -1 1970 -1.4911999925971031e-02
+
+ -6.4020597934722900e-01 1.5807600319385529e-01
+ <_>
+
+ 0 -1 1971 4.6709001064300537e-02
+
+ 8.5239000618457794e-02 -4.5487201213836670e-01
+ <_>
+
+ 0 -1 1972 6.0539999976754189e-03
+
+ -4.3184000253677368e-01 2.2452600300312042e-01
+ <_>
+
+ 0 -1 1973 -3.4375999122858047e-02
+
+ 4.0202501416206360e-01 -2.3903599381446838e-01
+ <_>
+
+ 0 -1 1974 -3.4924000501632690e-02
+
+ 5.2870100736618042e-01 3.9709001779556274e-02
+ <_>
+
+ 0 -1 1975 3.0030000489205122e-03
+
+ -3.8754299283027649e-01 1.4192600548267365e-01
+ <_>
+
+ 0 -1 1976 -1.4132999815046787e-02
+
+ 8.7528401613235474e-01 8.5507996380329132e-02
+ <_>
+
+ 0 -1 1977 -6.7940000444650650e-03
+
+ -1.1649219989776611e+00 -3.3943001180887222e-02
+ <_>
+
+ 0 -1 1978 -5.2886001765727997e-02
+
+ 1.0930680036544800e+00 5.1187001168727875e-02
+ <_>
+
+ 0 -1 1979 -2.1079999860376120e-03
+
+ 1.3696199655532837e-01 -3.3849999308586121e-01
+ <_>
+
+ 0 -1 1980 1.8353000283241272e-02
+
+ 1.3661600649356842e-01 -4.0777799487113953e-01
+ <_>
+
+ 0 -1 1981 1.2671999633312225e-02
+
+ -1.4936000108718872e-02 -8.1707501411437988e-01
+ <_>
+
+ 0 -1 1982 1.2924999929964542e-02
+
+ 1.7625099420547485e-01 -3.2491698861122131e-01
+ <_>
+
+ 0 -1 1983 -1.7921000719070435e-02
+
+ -5.2745401859283447e-01 4.4443000108003616e-02
+ <_>
+
+ 0 -1 1984 1.9160000374540687e-03
+
+ -1.0978599637746811e-01 2.2067500650882721e-01
+ <_>
+
+ 0 -1 1985 -1.4697999693453312e-02
+
+ 3.9067798852920532e-01 -2.2224999964237213e-01
+ <_>
+
+ 0 -1 1986 -1.4972999691963196e-02
+
+ -2.5450900197029114e-01 1.7790000140666962e-01
+ <_>
+
+ 0 -1 1987 1.4636999927461147e-02
+
+ -2.5125000625848770e-02 -8.7121301889419556e-01
+ <_>
+
+ 0 -1 1988 -1.0974000208079815e-02
+
+ 7.9082798957824707e-01 2.0121000707149506e-02
+ <_>
+
+ 0 -1 1989 -9.1599998995661736e-03
+
+ -4.7906899452209473e-01 5.2232000976800919e-02
+ <_>
+
+ 0 -1 1990 4.6179997734725475e-03
+
+ -1.7244599759578705e-01 3.4527799487113953e-01
+ <_>
+
+ 0 -1 1991 2.3476999253034592e-02
+
+ 3.7760001141577959e-03 -6.5333700180053711e-01
+ <_>
+
+ 0 -1 1992 3.1766999512910843e-02
+
+ 1.6364000737667084e-02 5.8723700046539307e-01
+ <_>
+
+ 0 -1 1993 -1.8419999629259109e-02
+
+ 1.9993899762630463e-01 -3.2056498527526855e-01
+ <_>
+
+ 0 -1 1994 1.9543999806046486e-02
+
+ 1.8450200557708740e-01 -2.3793600499629974e-01
+ <_>
+
+ 0 -1 1995 4.1159498691558838e-01
+
+ -6.0382001101970673e-02 -1.6072119474411011e+00
+ <_>
+
+ 0 -1 1996 -4.1595999151468277e-02
+
+ -3.2756200432777405e-01 1.5058000385761261e-01
+ <_>
+
+ 0 -1 1997 -1.0335999540984631e-02
+
+ -6.2394398450851440e-01 1.3112000189721584e-02
+ <_>
+
+ 0 -1 1998 1.2392999604344368e-02
+
+ -3.3114999532699585e-02 5.5579900741577148e-01
+ <_>
+
+ 0 -1 1999 -8.7270000949501991e-03
+
+ 1.9883200526237488e-01 -3.7635600566864014e-01
+ <_>
+
+ 0 -1 2000 1.6295000910758972e-02
+
+ 2.0373000204563141e-01 -4.2800799012184143e-01
+ <_>
+
+ 0 -1 2001 -1.0483999736607075e-02
+
+ -5.6847000122070312e-01 4.4199001044034958e-02
+ <_>
+
+ 0 -1 2002 -1.2431999668478966e-02
+
+ 7.4641901254653931e-01 4.3678998947143555e-02
+ <_>
+
+ 0 -1 2003 -5.0374999642372131e-02
+
+ 8.5090100765228271e-01 -1.7773799598217010e-01
+ <_>
+
+ 0 -1 2004 4.9548000097274780e-02
+
+ 1.6784900426864624e-01 -2.9877498745918274e-01
+ <_>
+
+ 0 -1 2005 -4.1085001081228256e-02
+
+ -1.3302919864654541e+00 -4.9182001501321793e-02
+ <_>
+
+ 0 -1 2006 1.0069999843835831e-03
+
+ -6.0538999736309052e-02 1.8483200669288635e-01
+ <_>
+
+ 0 -1 2007 -5.0142999738454819e-02
+
+ 7.6447701454162598e-01 -1.8356999754905701e-01
+ <_>
+
+ 0 -1 2008 -8.7879998609423637e-03
+
+ 2.2655999660491943e-01 -6.3156999647617340e-02
+ <_>
+
+ 0 -1 2009 -5.0170999020338058e-02
+
+ -1.5899070501327515e+00 -6.1255000531673431e-02
+ <_>
+
+ 0 -1 2010 1.0216099768877029e-01
+
+ 1.2071800231933594e-01 -1.4120110273361206e+00
+ <_>
+
+ 0 -1 2011 -1.4372999779880047e-02
+
+ -1.3116970062255859e+00 -5.1936000585556030e-02
+ <_>
+
+ 0 -1 2012 1.0281999595463276e-02
+
+ -2.1639999467879534e-03 4.4247201085090637e-01
+ <_>
+
+ 0 -1 2013 -1.1814000084996223e-02
+
+ 6.5378099679946899e-01 -1.8723699450492859e-01
+ <_>
+
+ 0 -1 2014 7.2114996612071991e-02
+
+ 7.1846999228000641e-02 8.1496298313140869e-01
+ <_>
+
+ 0 -1 2015 -1.9001999869942665e-02
+
+ -6.7427200078964233e-01 -4.3200000072829425e-04
+ <_>
+
+ 0 -1 2016 -4.6990001574158669e-03
+
+ 3.3311501145362854e-01 5.5794000625610352e-02
+ <_>
+
+ 0 -1 2017 -5.8157000690698624e-02
+
+ 4.5572298765182495e-01 -2.0305100083351135e-01
+ <_>
+
+ 0 -1 2018 1.1360000353306532e-03
+
+ -4.4686999171972275e-02 2.2681899368762970e-01
+ <_>
+
+ 0 -1 2019 -4.9414999783039093e-02
+
+ 2.6694598793983459e-01 -2.6116999983787537e-01
+ <_>
+
+ 0 -1 2020 -1.1913800239562988e-01
+
+ -8.3017998933792114e-01 1.3248500227928162e-01
+ <_>
+
+ 0 -1 2021 -1.8303999677300453e-02
+
+ -6.7499202489852905e-01 1.7092000693082809e-02
+ <_>
+
+ 0 -1 2022 -7.9199997708201408e-03
+
+ -7.2287000715732574e-02 1.4425800740718842e-01
+ <_>
+
+ 0 -1 2023 5.1925998181104660e-02
+
+ 3.0921999365091324e-02 -5.5860602855682373e-01
+ <_>
+
+ 0 -1 2024 6.6724002361297607e-02
+
+ 1.3666400313377380e-01 -2.9411000013351440e-01
+ <_>
+
+ 0 -1 2025 -1.3778000138700008e-02
+
+ -5.9443902969360352e-01 1.5300000086426735e-02
+ <_>
+
+ 0 -1 2026 -1.7760999500751495e-02
+
+ 4.0496501326560974e-01 -3.3559999428689480e-03
+ <_>
+
+ 0 -1 2027 -4.2234998196363449e-02
+
+ -1.0897940397262573e+00 -4.0224999189376831e-02
+ <_>
+
+ 0 -1 2028 -1.3524999842047691e-02
+
+ 2.8921899199485779e-01 -2.5194799900054932e-01
+ <_>
+
+ 0 -1 2029 -1.1106000281870365e-02
+
+ 6.5312802791595459e-01 -1.8053700029850006e-01
+ <_>
+
+ 0 -1 2030 -1.2284599989652634e-01
+
+ -1.9570649862289429e+00 1.4815400540828705e-01
+ <_>
+
+ 0 -1 2031 4.7715999186038971e-02
+
+ -2.2875599563121796e-01 3.4233701229095459e-01
+ <_>
+
+ 0 -1 2032 3.1817000359296799e-02
+
+ 1.5976299345493317e-01 -1.0091969966888428e+00
+ <_>
+
+ 0 -1 2033 4.2570000514388084e-03
+
+ -3.8881298899650574e-01 8.4210000932216644e-02
+ <_>
+
+ 0 -1 2034 -6.1372999101877213e-02
+
+ 1.7152810096740723e+00 5.9324998408555984e-02
+ <_>
+
+ 0 -1 2035 -2.7030000928789377e-03
+
+ -3.8161700963973999e-01 8.5127003490924835e-02
+ <_>
+
+ 0 -1 2036 -6.8544000387191772e-02
+
+ -3.0925889015197754e+00 1.1788000166416168e-01
+ <_>
+
+ 0 -1 2037 1.0372500121593475e-01
+
+ -1.3769300282001495e-01 1.9009410142898560e+00
+ <_>
+
+ 0 -1 2038 1.5799000859260559e-02
+
+ -6.2660001218318939e-02 2.5917699933052063e-01
+ <_>
+
+ 0 -1 2039 -9.8040001466870308e-03
+
+ -5.6291598081588745e-01 4.3923001736402512e-02
+ <_>
+
+ 0 -1 2040 -9.0229995548725128e-03
+
+ 2.5287100672721863e-01 -4.1225999593734741e-02
+ <_>
+
+ 0 -1 2041 -6.3754998147487640e-02
+
+ -2.6178569793701172e+00 -7.4005998671054840e-02
+ <_>
+
+ 0 -1 2042 3.8954999297857285e-02
+
+ 5.9032998979091644e-02 8.5945600271224976e-01
+ <_>
+
+ 0 -1 2043 -3.9802998304367065e-02
+
+ 9.3600499629974365e-01 -1.5639400482177734e-01
+ <_>
+
+ 0 -1 2044 5.0301998853683472e-02
+
+ 1.3725900650024414e-01 -2.5549728870391846e+00
+ <_>
+
+ 0 -1 2045 4.6250000596046448e-02
+
+ -1.3964000158011913e-02 -7.1026200056076050e-01
+ <_>
+
+ 0 -1 2046 6.2196001410484314e-02
+
+ 5.9526000171899796e-02 1.6509100198745728e+00
+ <_>
+
+ 0 -1 2047 -6.4776003360748291e-02
+
+ 7.1368998289108276e-01 -1.7270000278949738e-01
+ <_>
+
+ 0 -1 2048 2.7522999793291092e-02
+
+ 1.4631600677967072e-01 -8.1428997218608856e-02
+ <_>
+
+ 0 -1 2049 3.9900001138448715e-04
+
+ -3.7144500017166138e-01 1.0152699798345566e-01
+ <_>
+
+ 0 -1 2050 -4.3299999088048935e-03
+
+ -2.3756299912929535e-01 2.6798400282859802e-01
+ <_>
+
+ 0 -1 2051 4.7297000885009766e-02
+
+ -2.7682000771164894e-02 -8.4910297393798828e-01
+ <_>
+
+ 0 -1 2052 1.2508999556303024e-02
+
+ 1.8730199337005615e-01 -5.6001102924346924e-01
+ <_>
+
+ 0 -1 2053 4.5899000018835068e-02
+
+ -1.5601199865341187e-01 9.7073000669479370e-01
+ <_>
+
+ 0 -1 2054 1.9853399693965912e-01
+
+ 1.4895500242710114e-01 -1.1015529632568359e+00
+ <_>
+
+ 0 -1 2055 1.6674999147653580e-02
+
+ -1.6615299880504608e-01 8.2210999727249146e-01
+ <_>
+
+ 0 -1 2056 1.9829999655485153e-03
+
+ -7.1249999105930328e-02 2.8810900449752808e-01
+ <_>
+
+ 0 -1 2057 2.2447999566793442e-02
+
+ -2.0981000736355782e-02 -7.8416502475738525e-01
+ <_>
+
+ 0 -1 2058 -1.3913000002503395e-02
+
+ -1.8165799975395203e-01 2.0491799712181091e-01
+ <_>
+
+ 0 -1 2059 -7.7659999951720238e-03
+
+ -4.5595899224281311e-01 6.3576996326446533e-02
+ <_>
+
+ 0 -1 2060 -1.3209000229835510e-02
+
+ 2.6632300019264221e-01 -1.7795999348163605e-01
+ <_>
+
+ 0 -1 2061 4.9052998423576355e-02
+
+ -1.5476800501346588e-01 1.1069979667663574e+00
+ <_>
+
+ 0 -1 2062 2.0263999700546265e-02
+
+ 6.8915002048015594e-02 6.9867497682571411e-01
+ <_>
+
+ 0 -1 2063 -1.6828000545501709e-02
+
+ 2.7607199549674988e-01 -2.5139200687408447e-01
+ <_>
+
+ 0 -1 2064 -1.6939499974250793e-01
+
+ -3.0767529010772705e+00 1.1617500334978104e-01
+ <_>
+
+ 0 -1 2065 -1.1336100101470947e-01
+
+ -1.4639229774475098e+00 -5.1447000354528427e-02
+ <_>
+
+ 0 -1 2066 -7.7685996890068054e-02
+
+ 8.8430202007293701e-01 4.3306998908519745e-02
+ <_>
+
+ 0 -1 2067 -1.5568000264465809e-02
+
+ 1.3672499358654022e-01 -3.4505501389503479e-01
+ <_>
+
+ 0 -1 2068 -6.6018998622894287e-02
+
+ -1.0300110578536987e+00 1.1601399630308151e-01
+ <_>
+
+ 0 -1 2069 8.3699999377131462e-03
+
+ 7.6429001986980438e-02 -4.4002500176429749e-01
+ <_>
+
+ 0 -1 2070 3.5402998328208923e-02
+
+ 1.1979500204324722e-01 -7.2668302059173584e-01
+ <_>
+
+ 0 -1 2071 -3.9051000028848648e-02
+
+ 6.7375302314758301e-01 -1.8196000158786774e-01
+ <_>
+
+ 0 -1 2072 -9.7899995744228363e-03
+
+ 2.1264599263668060e-01 3.6756001412868500e-02
+ <_>
+
+ 0 -1 2073 -2.3047000169754028e-02
+
+ 4.4742199778556824e-01 -2.0986700057983398e-01
+ <_>
+
+ 0 -1 2074 3.1169999856501818e-03
+
+ 3.7544000893831253e-02 2.7808201313018799e-01
+ <_>
+
+ 0 -1 2075 1.3136000372469425e-02
+
+ -1.9842399656772614e-01 5.4335701465606689e-01
+ <_>
+
+ 0 -1 2076 1.4782000333070755e-02
+
+ 1.3530600070953369e-01 -1.1153600364923477e-01
+ <_>
+
+ 0 -1 2077 -6.0139000415802002e-02
+
+ 8.4039300680160522e-01 -1.6711600124835968e-01
+ <_>
+
+ 0 -1 2078 5.1998998969793320e-02
+
+ 1.7372000217437744e-01 -7.8547602891921997e-01
+ <_>
+
+ 0 -1 2079 2.4792000651359558e-02
+
+ -1.7739200592041016e-01 6.6752600669860840e-01
+ <_>
+
+ 0 -1 2080 -1.2014999985694885e-02
+
+ -1.4263699948787689e-01 1.6070500016212463e-01
+ <_>
+
+ 0 -1 2081 -9.8655998706817627e-02
+
+ 1.0429769754409790e+00 -1.5770199894905090e-01
+ <_>
+
+ 0 -1 2082 1.1758299916982651e-01
+
+ 1.0955700278282166e-01 -4.4920377731323242e+00
+ <_>
+
+ 0 -1 2083 -1.8922999501228333e-02
+
+ -7.8543400764465332e-01 1.2984000146389008e-02
+ <_>
+
+ 0 -1 2084 -2.8390999883413315e-02
+
+ -6.0569900274276733e-01 1.2903499603271484e-01
+ <_>
+
+ 0 -1 2085 1.3182999566197395e-02
+
+ -1.4415999874472618e-02 -7.3210501670837402e-01
+ <_>
+
+ 0 -1 2086 -1.1653000116348267e-01
+
+ -2.0442469120025635e+00 1.4053100347518921e-01
+ <_>
+
+ 0 -1 2087 -3.8880000356584787e-03
+
+ -4.1861599683761597e-01 7.8704997897148132e-02
+ <_>
+
+ 0 -1 2088 3.1229000538587570e-02
+
+ 2.4632999673485756e-02 4.1870400309562683e-01
+ <_>
+
+ 0 -1 2089 2.5198999792337418e-02
+
+ -1.7557799816131592e-01 6.4710599184036255e-01
+ <_>
+
+ 0 -1 2090 -2.8124000877141953e-02
+
+ -2.2005599737167358e-01 1.4121000468730927e-01
+ <_>
+
+ 0 -1 2091 3.6499001085758209e-02
+
+ -6.8426996469497681e-02 -2.3410849571228027e+00
+ <_>
+
+ 0 -1 2092 -7.2292998433113098e-02
+
+ 1.2898750305175781e+00 8.4875002503395081e-02
+ <_>
+
+ 0 -1 2093 -4.1671000421047211e-02
+
+ -1.1630970239639282e+00 -5.3752999752759933e-02
+ <_>
+
+ 0 -1 2094 4.7703001648187637e-02
+
+ 7.0101000368595123e-02 7.3676502704620361e-01
+ <_>
+
+ 0 -1 2095 6.5793000161647797e-02
+
+ -1.7755299806594849e-01 6.9780498743057251e-01
+ <_>
+
+ 0 -1 2096 1.3904999941587448e-02
+
+ 2.1936799585819244e-01 -2.0390799641609192e-01
+ <_>
+
+ 0 -1 2097 -2.7730999514460564e-02
+
+ 6.1867898702621460e-01 -1.7804099619388580e-01
+ <_>
+
+ 0 -1 2098 -1.5879999846220016e-02
+
+ -4.6484100818634033e-01 1.8828600645065308e-01
+ <_>
+
+ 0 -1 2099 7.4128001928329468e-02
+
+ -1.2858100235462189e-01 3.2792479991912842e+00
+ <_>
+
+ 0 -1 2100 -8.9000002481043339e-04
+
+ -3.0117601156234741e-01 2.3818799853324890e-01
+ <_>
+
+ 0 -1 2101 1.7965000122785568e-02
+
+ -2.2284999489784241e-01 2.9954001307487488e-01
+ <_>
+
+ 0 -1 2102 -2.5380000006407499e-03
+
+ 2.5064399838447571e-01 -1.3665600121021271e-01
+ <_>
+
+ 0 -1 2103 -9.0680001303553581e-03
+
+ 2.9017499089241028e-01 -2.8929701447486877e-01
+ <_>
+
+ 0 -1 2104 4.9169998615980148e-02
+
+ 1.9156399369239807e-01 -6.8328702449798584e-01
+ <_>
+
+ 0 -1 2105 -3.0680999159812927e-02
+
+ -7.5677001476287842e-01 -1.3279999606311321e-02
+ <_>
+
+ 0 -1 2106 1.0017400234937668e-01
+
+ 8.4453999996185303e-02 1.0888710021972656e+00
+ <_>
+
+ 0 -1 2107 3.1950001139193773e-03
+
+ -2.6919400691986084e-01 1.9537900388240814e-01
+ <_>
+
+ 0 -1 2108 3.5503000020980835e-02
+
+ 1.3632300496101379e-01 -5.6917202472686768e-01
+ <_>
+
+ 0 -1 2109 4.5900000259280205e-04
+
+ -4.0443998575210571e-01 1.4074799418449402e-01
+ <_>
+
+ 0 -1 2110 2.5258999317884445e-02
+
+ 1.6243200004100800e-01 -5.5741798877716064e-01
+ <_>
+
+ 0 -1 2111 -5.1549999043345451e-03
+
+ 3.1132599711418152e-01 -2.2756099700927734e-01
+ <_>
+
+ 0 -1 2112 1.5869999770075083e-03
+
+ -2.6867699623107910e-01 1.9565400481224060e-01
+ <_>
+
+ 0 -1 2113 -1.6204999759793282e-02
+
+ 1.5486499667167664e-01 -3.4057798981666565e-01
+ <_>
+
+ 0 -1 2114 -2.9624000191688538e-02
+
+ 1.1466799974441528e+00 9.0557999908924103e-02
+ <_>
+
+ 0 -1 2115 -1.5930000226944685e-03
+
+ -7.1257501840591431e-01 -7.0400000549852848e-04
+ <_>
+
+ 0 -1 2116 -5.4019000381231308e-02
+
+ 4.1537499427795410e-01 2.7246000245213509e-02
+ <_>
+
+ 0 -1 2117 -6.6211000084877014e-02
+
+ -1.3340090513229370e+00 -4.7352999448776245e-02
+ <_>
+
+ 0 -1 2118 2.7940999716520309e-02
+
+ 1.4446300268173218e-01 -5.1518398523330688e-01
+ <_>
+
+ 0 -1 2119 2.8957000002264977e-02
+
+ -4.9966000020503998e-02 -1.1929039955139160e+00
+ <_>
+
+ 0 -1 2120 -2.0424999296665192e-02
+
+ 6.3881301879882812e-01 3.8141001015901566e-02
+ <_>
+
+ 0 -1 2121 1.2416999787092209e-02
+
+ -2.1547000110149384e-01 4.9477699398994446e-01
+ <_>
+ 181
+ -3.3196411132812500e+00
+
+ <_>
+
+ 0 -1 2122 4.3274000287055969e-02
+
+ -8.0494397878646851e-01 3.9897298812866211e-01
+ <_>
+
+ 0 -1 2123 1.8615500628948212e-01
+
+ -3.1655299663543701e-01 6.8877297639846802e-01
+ <_>
+
+ 0 -1 2124 3.1860999763011932e-02
+
+ -6.4266198873519897e-01 2.5550898909568787e-01
+ <_>
+
+ 0 -1 2125 1.4022000133991241e-02
+
+ -4.5926600694656372e-01 3.1171199679374695e-01
+ <_>
+
+ 0 -1 2126 -6.3029997982084751e-03
+
+ 4.6026900410652161e-01 -2.7438500523567200e-01
+ <_>
+
+ 0 -1 2127 -5.4310001432895660e-03
+
+ 3.6608600616455078e-01 -2.7205801010131836e-01
+ <_>
+
+ 0 -1 2128 1.6822999343276024e-02
+
+ 2.3476999253034592e-02 -8.8443797826766968e-01
+ <_>
+
+ 0 -1 2129 2.6039000600576401e-02
+
+ 1.7488799989223480e-01 -5.4564702510833740e-01
+ <_>
+
+ 0 -1 2130 -2.6720000430941582e-02
+
+ -9.6396499872207642e-01 2.3524999618530273e-02
+ <_>
+
+ 0 -1 2131 -1.7041999846696854e-02
+
+ -7.0848798751831055e-01 2.1468099951744080e-01
+ <_>
+
+ 0 -1 2132 5.9569999575614929e-03
+
+ 7.3601000010967255e-02 -6.8225598335266113e-01
+ <_>
+
+ 0 -1 2133 -2.8679999522864819e-03
+
+ -7.4935001134872437e-01 2.3803399503231049e-01
+ <_>
+
+ 0 -1 2134 -4.3774999678134918e-02
+
+ 6.8323302268981934e-01 -2.1380299329757690e-01
+ <_>
+
+ 0 -1 2135 5.1633000373840332e-02
+
+ -1.2566499412059784e-01 6.7523801326751709e-01
+ <_>
+
+ 0 -1 2136 8.1780003383755684e-03
+
+ 7.0689998567104340e-02 -8.0665898323059082e-01
+ <_>
+
+ 0 -1 2137 -5.2841998636722565e-02
+
+ 9.5433902740478516e-01 1.6548000276088715e-02
+ <_>
+
+ 0 -1 2138 5.2583999931812286e-02
+
+ -2.8414401412010193e-01 4.7129800915718079e-01
+ <_>
+
+ 0 -1 2139 -1.2659000232815742e-02
+
+ 3.8445401191711426e-01 -6.2288001179695129e-02
+ <_>
+
+ 0 -1 2140 1.1694000102579594e-02
+
+ 5.6000000768108293e-05 -1.0173139572143555e+00
+ <_>
+
+ 0 -1 2141 -2.3918999359011650e-02
+
+ 8.4921300411224365e-01 5.7399999350309372e-03
+ <_>
+
+ 0 -1 2142 -6.1673998832702637e-02
+
+ -9.2571401596069336e-01 -1.7679999582469463e-03
+ <_>
+
+ 0 -1 2143 -1.8279999494552612e-03
+
+ -5.4372298717498779e-01 2.4932399392127991e-01
+ <_>
+
+ 0 -1 2144 3.5257998853921890e-02
+
+ -7.3719997890293598e-03 -9.3963998556137085e-01
+ <_>
+
+ 0 -1 2145 -1.8438000231981277e-02
+
+ 7.2136700153350830e-01 1.0491999797523022e-02
+ <_>
+
+ 0 -1 2146 -3.8389001041650772e-02
+
+ 1.9272600114345551e-01 -3.5832101106643677e-01
+ <_>
+
+ 0 -1 2147 9.9720999598503113e-02
+
+ 1.1354199796915054e-01 -1.6304190158843994e+00
+ <_>
+
+ 0 -1 2148 8.4462001919746399e-02
+
+ -5.3420998156070709e-02 -1.6981120109558105e+00
+ <_>
+
+ 0 -1 2149 4.0270000696182251e-02
+
+ -1.0783199965953827e-01 5.1926600933074951e-01
+ <_>
+
+ 0 -1 2150 5.8935999870300293e-02
+
+ -1.8053700029850006e-01 9.5119798183441162e-01
+ <_>
+
+ 0 -1 2151 1.4957000315189362e-01
+
+ 1.6785299777984619e-01 -1.1591869592666626e+00
+ <_>
+
+ 0 -1 2152 6.9399998756125569e-04
+
+ 2.0491400361061096e-01 -3.3118200302124023e-01
+ <_>
+
+ 0 -1 2153 -3.3369001001119614e-02
+
+ 9.3468099832534790e-01 -2.9639999847859144e-03
+ <_>
+
+ 0 -1 2154 9.3759996816515923e-03
+
+ 3.7000000011175871e-03 -7.7549797296524048e-01
+ <_>
+
+ 0 -1 2155 4.3193999677896500e-02
+
+ -2.2040000185370445e-03 7.4589699506759644e-01
+ <_>
+
+ 0 -1 2156 -6.7555002868175507e-02
+
+ 7.2292101383209229e-01 -1.8404200673103333e-01
+ <_>
+
+ 0 -1 2157 -3.1168600916862488e-01
+
+ 1.0014270544052124e+00 3.4003000706434250e-02
+ <_>
+
+ 0 -1 2158 2.9743999242782593e-02
+
+ -4.6356000006198883e-02 -1.2781809568405151e+00
+ <_>
+
+ 0 -1 2159 1.0737000033259392e-02
+
+ 1.4812000095844269e-02 6.6649997234344482e-01
+ <_>
+
+ 0 -1 2160 -2.8841000050306320e-02
+
+ -9.4222599267959595e-01 -2.0796999335289001e-02
+ <_>
+
+ 0 -1 2161 -5.7649998925626278e-03
+
+ -4.3541899323463440e-01 2.3386000096797943e-01
+ <_>
+
+ 0 -1 2162 2.8410999104380608e-02
+
+ -1.7615799605846405e-01 8.5765302181243896e-01
+ <_>
+
+ 0 -1 2163 -2.9007999226450920e-02
+
+ 5.7978099584579468e-01 2.8565999120473862e-02
+ <_>
+
+ 0 -1 2164 2.4965999647974968e-02
+
+ -2.2729000076651573e-02 -9.6773099899291992e-01
+ <_>
+
+ 0 -1 2165 1.2036000378429890e-02
+
+ -1.4214700460433960e-01 5.1687997579574585e-01
+ <_>
+
+ 0 -1 2166 -4.2514000087976456e-02
+
+ 9.7273802757263184e-01 -1.8119800090789795e-01
+ <_>
+
+ 0 -1 2167 1.0276000015437603e-02
+
+ -8.3099998533725739e-02 3.1762799620628357e-01
+ <_>
+
+ 0 -1 2168 -6.9191999733448029e-02
+
+ -2.0668580532073975e+00 -6.0173999518156052e-02
+ <_>
+
+ 0 -1 2169 -4.6769999898970127e-03
+
+ 4.4131800532341003e-01 2.3209000006318092e-02
+ <_>
+
+ 0 -1 2170 -1.3923999853432178e-02
+
+ 2.8606700897216797e-01 -2.9152700304985046e-01
+ <_>
+
+ 0 -1 2171 -1.5333999879658222e-02
+
+ -5.7414501905441284e-01 2.3063300549983978e-01
+ <_>
+
+ 0 -1 2172 -1.0239000432193279e-02
+
+ 3.4479200839996338e-01 -2.6080399751663208e-01
+ <_>
+
+ 0 -1 2173 -5.0988998264074326e-02
+
+ 5.6154102087020874e-01 6.1218999326229095e-02
+ <_>
+
+ 0 -1 2174 3.0689999461174011e-02
+
+ -1.4772799611091614e-01 1.6378489732742310e+00
+ <_>
+
+ 0 -1 2175 -1.1223999783396721e-02
+
+ 2.4006199836730957e-01 -4.4864898920059204e-01
+ <_>
+
+ 0 -1 2176 -6.2899999320507050e-03
+
+ 4.3119499087333679e-01 -2.3808999359607697e-01
+ <_>
+
+ 0 -1 2177 7.8590996563434601e-02
+
+ 1.9865000620484352e-02 8.0853801965713501e-01
+ <_>
+
+ 0 -1 2178 -1.0178999975323677e-02
+
+ 1.8193200230598450e-01 -3.2877799868583679e-01
+ <_>
+
+ 0 -1 2179 3.1227000057697296e-02
+
+ 1.4973899722099304e-01 -1.4180339574813843e+00
+ <_>
+
+ 0 -1 2180 4.0196999907493591e-02
+
+ -1.9760499894618988e-01 5.8508199453353882e-01
+ <_>
+
+ 0 -1 2181 1.6138000413775444e-02
+
+ 5.0000002374872565e-04 3.9050000905990601e-01
+ <_>
+
+ 0 -1 2182 -4.5519001781940460e-02
+
+ 1.2646820545196533e+00 -1.5632599592208862e-01
+ <_>
+
+ 0 -1 2183 -1.8130000680685043e-02
+
+ 6.5148502588272095e-01 1.0235999710857868e-02
+ <_>
+
+ 0 -1 2184 -1.4001999981701374e-02
+
+ -1.0344820022583008e+00 -3.2182998955249786e-02
+ <_>
+
+ 0 -1 2185 -3.8816001266241074e-02
+
+ -4.7874298691749573e-01 1.6290700435638428e-01
+ <_>
+
+ 0 -1 2186 3.1656000763177872e-02
+
+ -2.0983399450778961e-01 5.4575902223587036e-01
+ <_>
+
+ 0 -1 2187 -1.0839999653398991e-02
+
+ 5.1898801326751709e-01 -1.5080000273883343e-02
+ <_>
+
+ 0 -1 2188 1.2032999657094479e-02
+
+ -2.1107600629329681e-01 7.5937002897262573e-01
+ <_>
+
+ 0 -1 2189 7.0772998034954071e-02
+
+ 1.8048800528049469e-01 -7.4048501253128052e-01
+ <_>
+
+ 0 -1 2190 5.3139799833297729e-01
+
+ -1.4491699635982513e-01 1.5360039472579956e+00
+ <_>
+
+ 0 -1 2191 -1.4774000272154808e-02
+
+ -2.8153699636459351e-01 2.0407299697399139e-01
+ <_>
+
+ 0 -1 2192 -2.2410000674426556e-03
+
+ -4.4876301288604736e-01 5.3989000618457794e-02
+ <_>
+
+ 0 -1 2193 4.9968000501394272e-02
+
+ 4.1514001786708832e-02 2.9417100548744202e-01
+ <_>
+
+ 0 -1 2194 -4.7701999545097351e-02
+
+ 3.9674299955368042e-01 -2.8301799297332764e-01
+ <_>
+
+ 0 -1 2195 -9.1311000287532806e-02
+
+ 2.1994259357452393e+00 8.7964996695518494e-02
+ <_>
+
+ 0 -1 2196 3.8070000708103180e-02
+
+ -2.8025600314140320e-01 2.5156199932098389e-01
+ <_>
+
+ 0 -1 2197 -1.5538999810814857e-02
+
+ 3.4157499670982361e-01 1.7924999818205833e-02
+ <_>
+
+ 0 -1 2198 -1.5445999801158905e-02
+
+ 2.8680199384689331e-01 -2.5135898590087891e-01
+ <_>
+
+ 0 -1 2199 -5.7388000190258026e-02
+
+ 6.3830000162124634e-01 8.8597998023033142e-02
+ <_>
+
+ 0 -1 2200 -5.9440000914037228e-03
+
+ 7.9016998410224915e-02 -4.0774899721145630e-01
+ <_>
+
+ 0 -1 2201 -6.9968998432159424e-02
+
+ -4.4644200801849365e-01 1.7219600081443787e-01
+ <_>
+
+ 0 -1 2202 -2.5064999237656593e-02
+
+ -9.8270201683044434e-01 -3.5388000309467316e-02
+ <_>
+
+ 0 -1 2203 1.7216000705957413e-02
+
+ 2.2705900669097900e-01 -8.0550098419189453e-01
+ <_>
+
+ 0 -1 2204 -4.4279001653194427e-02
+
+ 8.3951997756958008e-01 -1.7429600656032562e-01
+ <_>
+
+ 0 -1 2205 4.3988998979330063e-02
+
+ 1.1557199805974960e-01 -1.9666889905929565e+00
+ <_>
+
+ 0 -1 2206 1.5907000750303268e-02
+
+ -3.7576001137495041e-02 -1.0311100482940674e+00
+ <_>
+
+ 0 -1 2207 -9.2754997313022614e-02
+
+ -1.3530019521713257e+00 1.2141299992799759e-01
+ <_>
+
+ 0 -1 2208 7.1037001907825470e-02
+
+ -1.7684300243854523e-01 7.4485200643539429e-01
+ <_>
+
+ 0 -1 2209 5.7762000709772110e-02
+
+ 1.2835599482059479e-01 -4.4444200396537781e-01
+ <_>
+
+ 0 -1 2210 -1.6432000324130058e-02
+
+ 8.0152702331542969e-01 -1.7491699755191803e-01
+ <_>
+
+ 0 -1 2211 2.3939000442624092e-02
+
+ 1.6144999861717224e-01 -1.2364500015974045e-01
+ <_>
+
+ 0 -1 2212 1.2636000290513039e-02
+
+ 1.5411999821662903e-01 -3.3293798565864563e-01
+ <_>
+
+ 0 -1 2213 -5.4347999393939972e-02
+
+ -1.8400700092315674e+00 1.4835999906063080e-01
+ <_>
+
+ 0 -1 2214 -1.3261999934911728e-02
+
+ -8.0838799476623535e-01 -2.7726000174880028e-02
+ <_>
+
+ 0 -1 2215 6.1340001411736012e-03
+
+ -1.3785000145435333e-01 3.2858499884605408e-01
+ <_>
+
+ 0 -1 2216 2.8991000726819038e-02
+
+ -2.5516999885439873e-02 -8.3387202024459839e-01
+ <_>
+
+ 0 -1 2217 -2.1986000239849091e-02
+
+ -7.3739999532699585e-01 1.7887100577354431e-01
+ <_>
+
+ 0 -1 2218 5.3269998170435429e-03
+
+ -4.5449298620223999e-01 6.8791002035140991e-02
+ <_>
+
+ 0 -1 2219 8.6047999560832977e-02
+
+ 2.1008500456809998e-01 -3.7808901071548462e-01
+ <_>
+
+ 0 -1 2220 -8.5549997165799141e-03
+
+ 4.0134999155998230e-01 -2.1074099838733673e-01
+ <_>
+
+ 0 -1 2221 6.7790001630783081e-03
+
+ -2.1648999303579330e-02 4.5421499013900757e-01
+ <_>
+
+ 0 -1 2222 -6.3959998078644276e-03
+
+ -4.9818599224090576e-01 7.5907997786998749e-02
+ <_>
+
+ 0 -1 2223 8.9469999074935913e-03
+
+ 1.7857700586318970e-01 -2.8454899787902832e-01
+ <_>
+
+ 0 -1 2224 3.2589999027550220e-03
+
+ 4.6624999493360519e-02 -5.5206298828125000e-01
+ <_>
+
+ 0 -1 2225 4.1476998478174210e-02
+
+ 1.7550499737262726e-01 -2.0703999698162079e-01
+ <_>
+
+ 0 -1 2226 -6.7449999041855335e-03
+
+ -4.6392598748207092e-01 6.9303996860980988e-02
+ <_>
+
+ 0 -1 2227 3.0564999207854271e-02
+
+ 5.1734998822212219e-02 7.5550502538681030e-01
+ <_>
+
+ 0 -1 2228 -7.4780001305043697e-03
+
+ 1.4893899857997894e-01 -3.1906801462173462e-01
+ <_>
+
+ 0 -1 2229 8.9088998734951019e-02
+
+ 1.3738800585269928e-01 -1.1379710435867310e+00
+ <_>
+
+ 0 -1 2230 7.3230001144111156e-03
+
+ -2.8829199075698853e-01 1.9088600575923920e-01
+ <_>
+
+ 0 -1 2231 -1.8205000087618828e-02
+
+ -3.0178600549697876e-01 1.6795800626277924e-01
+ <_>
+
+ 0 -1 2232 -2.5828000158071518e-02
+
+ -9.8137998580932617e-01 -1.9860999658703804e-02
+ <_>
+
+ 0 -1 2233 1.0936199873685837e-01
+
+ 4.8790000379085541e-02 5.3118300437927246e-01
+ <_>
+
+ 0 -1 2234 -1.1424999684095383e-02
+
+ 2.3705999553203583e-01 -2.7925300598144531e-01
+ <_>
+
+ 0 -1 2235 -5.7565998286008835e-02
+
+ 4.7255399823188782e-01 6.5171003341674805e-02
+ <_>
+
+ 0 -1 2236 1.0278300195932388e-01
+
+ -2.0765100419521332e-01 5.0947701930999756e-01
+ <_>
+
+ 0 -1 2237 2.7041999623179436e-02
+
+ 1.6421200335025787e-01 -1.4508620500564575e+00
+ <_>
+
+ 0 -1 2238 -1.3635000213980675e-02
+
+ -5.6543898582458496e-01 2.3788999766111374e-02
+ <_>
+
+ 0 -1 2239 -3.2158198952674866e-01
+
+ -3.5602829456329346e+00 1.1801300197839737e-01
+ <_>
+
+ 0 -1 2240 2.0458100736141205e-01
+
+ -3.7016000598669052e-02 -1.0225499868392944e+00
+ <_>
+
+ 0 -1 2241 -7.0347003638744354e-02
+
+ -5.6491899490356445e-01 1.8525199592113495e-01
+ <_>
+
+ 0 -1 2242 3.7831000983715057e-02
+
+ -2.9901999980211258e-02 -8.2921499013900757e-01
+ <_>
+
+ 0 -1 2243 -7.0298001170158386e-02
+
+ -5.3172302246093750e-01 1.4430199563503265e-01
+ <_>
+
+ 0 -1 2244 6.3221000134944916e-02
+
+ -2.2041200101375580e-01 4.7952198982238770e-01
+ <_>
+
+ 0 -1 2245 3.6393001675605774e-02
+
+ 1.4222699403762817e-01 -6.1193901300430298e-01
+ <_>
+
+ 0 -1 2246 4.0099998004734516e-03
+
+ -3.4560799598693848e-01 1.1738699674606323e-01
+ <_>
+
+ 0 -1 2247 -4.9106001853942871e-02
+
+ 9.5984101295471191e-01 6.4934998750686646e-02
+ <_>
+
+ 0 -1 2248 -7.1583002805709839e-02
+
+ 1.7385669946670532e+00 -1.4252899587154388e-01
+ <_>
+
+ 0 -1 2249 -3.8008999079465866e-02
+
+ 1.3872820138931274e+00 6.6188000142574310e-02
+ <_>
+
+ 0 -1 2250 -3.1570000573992729e-03
+
+ 5.3677000105381012e-02 -5.4048001766204834e-01
+ <_>
+
+ 0 -1 2251 1.9458999857306480e-02
+
+ -9.3620002269744873e-02 3.9131000638008118e-01
+ <_>
+
+ 0 -1 2252 1.1293999850749969e-02
+
+ 3.7223998457193375e-02 -5.4251801967620850e-01
+ <_>
+
+ 0 -1 2253 -3.3495001494884491e-02
+
+ 9.5307898521423340e-01 3.7696998566389084e-02
+ <_>
+
+ 0 -1 2254 9.2035003006458282e-02
+
+ -1.3488399982452393e-01 2.2897069454193115e+00
+ <_>
+
+ 0 -1 2255 3.7529999390244484e-03
+
+ 2.2824199497699738e-01 -5.9983700513839722e-01
+ <_>
+
+ 0 -1 2256 1.2848000042140484e-02
+
+ -2.2005200386047363e-01 3.7221899628639221e-01
+ <_>
+
+ 0 -1 2257 -1.4316199719905853e-01
+
+ 1.2855789661407471e+00 4.7237001359462738e-02
+ <_>
+
+ 0 -1 2258 -9.6879996359348297e-02
+
+ -3.9550929069519043e+00 -7.2903998196125031e-02
+ <_>
+
+ 0 -1 2259 -8.8459998369216919e-03
+
+ 3.7674999237060547e-01 -4.6484000980854034e-02
+ <_>
+
+ 0 -1 2260 1.5900000929832458e-02
+
+ -2.4457000195980072e-02 -8.0034798383712769e-01
+ <_>
+
+ 0 -1 2261 7.0372000336647034e-02
+
+ 1.7019000649452209e-01 -6.3068997859954834e-01
+ <_>
+
+ 0 -1 2262 -3.7953998893499374e-02
+
+ -9.3667197227478027e-01 -4.1214000433683395e-02
+ <_>
+
+ 0 -1 2263 5.1597899198532104e-01
+
+ 1.3080599904060364e-01 -1.5802290439605713e+00
+ <_>
+
+ 0 -1 2264 -3.2843001186847687e-02
+
+ -1.1441620588302612e+00 -4.9173999577760696e-02
+ <_>
+
+ 0 -1 2265 -3.6357000470161438e-02
+
+ 4.9606400728225708e-01 -3.4458998590707779e-02
+ <_>
+
+ 0 -1 2266 6.8080001510679722e-03
+
+ -3.0997800827026367e-01 1.7054800689220428e-01
+ <_>
+
+ 0 -1 2267 -1.6114000231027603e-02
+
+ -3.7904599308967590e-01 1.6078999638557434e-01
+ <_>
+
+ 0 -1 2268 8.4530003368854523e-03
+
+ -1.8655499815940857e-01 5.6367701292037964e-01
+ <_>
+
+ 0 -1 2269 -1.3752399384975433e-01
+
+ -5.8989900350570679e-01 1.1749500036239624e-01
+ <_>
+
+ 0 -1 2270 1.7688000202178955e-01
+
+ -1.5424899756908417e-01 9.2911100387573242e-01
+ <_>
+
+ 0 -1 2271 7.9309996217489243e-03
+
+ 3.2190701365470886e-01 -1.6392600536346436e-01
+ <_>
+
+ 0 -1 2272 1.0971800237894058e-01
+
+ -1.5876500308513641e-01 1.0186259746551514e+00
+ <_>
+
+ 0 -1 2273 -3.0293000862002373e-02
+
+ 7.5587302446365356e-01 3.1794998794794083e-02
+ <_>
+
+ 0 -1 2274 -2.3118000477552414e-02
+
+ -8.8451498746871948e-01 -9.5039997249841690e-03
+ <_>
+
+ 0 -1 2275 -3.0900000128895044e-03
+
+ 2.3838299512863159e-01 -1.1606200039386749e-01
+ <_>
+
+ 0 -1 2276 -3.3392000943422318e-02
+
+ -1.8738139867782593e+00 -6.8502999842166901e-02
+ <_>
+
+ 0 -1 2277 1.3190000317990780e-02
+
+ 1.2919899821281433e-01 -6.7512202262878418e-01
+ <_>
+
+ 0 -1 2278 1.4661000110208988e-02
+
+ -2.4829000234603882e-02 -7.4396800994873047e-01
+ <_>
+
+ 0 -1 2279 -1.3248000293970108e-02
+
+ 4.6820199489593506e-01 -2.4165000766515732e-02
+ <_>
+
+ 0 -1 2280 -1.6218999400734901e-02
+
+ 4.0083798766136169e-01 -2.1255700290203094e-01
+ <_>
+
+ 0 -1 2281 -2.9052000492811203e-02
+
+ -1.5650019645690918e+00 1.4375899732112885e-01
+ <_>
+
+ 0 -1 2282 -1.0153199732303619e-01
+
+ -1.9220689535140991e+00 -6.9559998810291290e-02
+ <_>
+
+ 0 -1 2283 3.7753999233245850e-02
+
+ 1.3396799564361572e-01 -2.2639141082763672e+00
+ <_>
+
+ 0 -1 2284 -2.8555598855018616e-01
+
+ 1.0215270519256592e+00 -1.5232199430465698e-01
+ <_>
+
+ 0 -1 2285 1.5360699594020844e-01
+
+ -9.7409002482891083e-02 4.1662400960922241e-01
+ <_>
+
+ 0 -1 2286 -2.1199999901000410e-04
+
+ 1.1271899938583374e-01 -4.1653999686241150e-01
+ <_>
+
+ 0 -1 2287 -2.0597999915480614e-02
+
+ 6.0540497303009033e-01 6.2467999756336212e-02
+ <_>
+
+ 0 -1 2288 3.7353999912738800e-02
+
+ -1.8919000029563904e-01 4.6464699506759644e-01
+ <_>
+
+ 0 -1 2289 5.7275000959634781e-02
+
+ 1.1565300077199936e-01 -1.3213009834289551e+00
+ <_>
+
+ 0 -1 2290 5.1029999740421772e-03
+
+ -2.8061500191688538e-01 1.9313399493694305e-01
+ <_>
+
+ 0 -1 2291 -5.4644998162984848e-02
+
+ 7.2428500652313232e-01 7.5447998940944672e-02
+ <_>
+
+ 0 -1 2292 2.5349000468850136e-02
+
+ -1.9481800496578217e-01 4.6032801270484924e-01
+ <_>
+
+ 0 -1 2293 2.4311000481247902e-02
+
+ 1.5564100444316864e-01 -4.9913901090621948e-01
+ <_>
+
+ 0 -1 2294 3.5962000489234924e-02
+
+ -5.8573000133037567e-02 -1.5418399572372437e+00
+ <_>
+
+ 0 -1 2295 -1.0000699758529663e-01
+
+ -1.6100039482116699e+00 1.1450500041246414e-01
+ <_>
+
+ 0 -1 2296 8.4435999393463135e-02
+
+ -6.1406999826431274e-02 -1.4673349857330322e+00
+ <_>
+
+ 0 -1 2297 1.5947999432682991e-02
+
+ 1.6287900507450104e-01 -1.1026400327682495e-01
+ <_>
+
+ 0 -1 2298 3.3824000507593155e-02
+
+ -1.7932699620723724e-01 5.7218402624130249e-01
+ <_>
+
+ 0 -1 2299 -6.1996001750230789e-02
+
+ 4.6511812210083008e+00 9.4534002244472504e-02
+ <_>
+
+ 0 -1 2300 6.9876998662948608e-02
+
+ -1.6985900700092316e-01 8.7028998136520386e-01
+ <_>
+
+ 0 -1 2301 -2.7916999533772469e-02
+
+ 9.1042500734329224e-01 5.6827001273632050e-02
+ <_>
+
+ 0 -1 2302 -1.2764000333845615e-02
+
+ 2.2066700458526611e-01 -2.7769100666046143e-01
+ <_>
+ 199
+ -3.2573320865631104e+00
+
+ <_>
+
+ 0 -1 2303 2.1662000566720963e-02
+
+ -8.9868897199630737e-01 2.9436299204826355e-01
+ <_>
+
+ 0 -1 2304 1.0044500231742859e-01
+
+ -3.7659201025962830e-01 6.0891002416610718e-01
+ <_>
+
+ 0 -1 2305 2.6003999635577202e-02
+
+ -3.8128501176834106e-01 3.9217400550842285e-01
+ <_>
+
+ 0 -1 2306 2.8441000729799271e-02
+
+ -1.8182300031185150e-01 5.8927202224731445e-01
+ <_>
+
+ 0 -1 2307 3.8612000644207001e-02
+
+ -2.2399599850177765e-01 6.3779997825622559e-01
+ <_>
+
+ 0 -1 2308 -4.6594999730587006e-02
+
+ 7.0812201499938965e-01 -1.4666199684143066e-01
+ <_>
+
+ 0 -1 2309 -4.2791999876499176e-02
+
+ 4.7680398821830750e-01 -2.9233199357986450e-01
+ <_>
+
+ 0 -1 2310 3.7960000336170197e-03
+
+ -1.8510299921035767e-01 5.2626699209213257e-01
+ <_>
+
+ 0 -1 2311 4.2348999530076981e-02
+
+ 3.9244998246431351e-02 -8.9197701215744019e-01
+ <_>
+
+ 0 -1 2312 1.9598999992012978e-02
+
+ -2.3358400166034698e-01 4.4146499037742615e-01
+ <_>
+
+ 0 -1 2313 8.7400001939386129e-04
+
+ -4.6063598990440369e-01 1.7689600586891174e-01
+ <_>
+
+ 0 -1 2314 -4.3629999272525311e-03
+
+ 3.3493199944496155e-01 -2.9893401265144348e-01
+ <_>
+
+ 0 -1 2315 1.6973000019788742e-02
+
+ -1.6408699750900269e-01 1.5993679761886597e+00
+ <_>
+
+ 0 -1 2316 3.6063998937606812e-02
+
+ 2.2601699829101562e-01 -5.3186100721359253e-01
+ <_>
+
+ 0 -1 2317 -7.0864997804164886e-02
+
+ 1.5220500528812408e-01 -4.1914600133895874e-01
+ <_>
+
+ 0 -1 2318 -6.3075996935367584e-02
+
+ -1.4874019622802734e+00 1.2953700125217438e-01
+ <_>
+
+ 0 -1 2319 2.9670000076293945e-02
+
+ -1.9145900011062622e-01 9.8184901475906372e-01
+ <_>
+
+ 0 -1 2320 3.7873998284339905e-02
+
+ 1.3459500670433044e-01 -5.6316298246383667e-01
+ <_>
+
+ 0 -1 2321 -3.3289000391960144e-02
+
+ -1.0828030109405518e+00 -1.1504000052809715e-02
+ <_>
+
+ 0 -1 2322 -3.1608998775482178e-02
+
+ -5.9224498271942139e-01 1.3394799828529358e-01
+ <_>
+
+ 0 -1 2323 1.0740000288933516e-03
+
+ -4.9185800552368164e-01 9.4446003437042236e-02
+ <_>
+
+ 0 -1 2324 -7.1556001901626587e-02
+
+ 5.9710198640823364e-01 -3.9553001523017883e-02
+ <_>
+
+ 0 -1 2325 -8.1170000135898590e-02
+
+ -1.1817820072174072e+00 -2.8254000470042229e-02
+ <_>
+
+ 0 -1 2326 4.4860001653432846e-03
+
+ -6.1028099060058594e-01 2.2619099915027618e-01
+ <_>
+
+ 0 -1 2327 -4.2176000773906708e-02
+
+ -1.1435619592666626e+00 -2.9001999646425247e-02
+ <_>
+
+ 0 -1 2328 -6.5640002489089966e-02
+
+ -1.6470279693603516e+00 1.2810300290584564e-01
+ <_>
+
+ 0 -1 2329 1.8188999965786934e-02
+
+ -3.1149399280548096e-01 2.5739601254463196e-01
+ <_>
+
+ 0 -1 2330 -5.1520001143217087e-02
+
+ -6.9206899404525757e-01 1.5270799398422241e-01
+ <_>
+
+ 0 -1 2331 -4.7150999307632446e-02
+
+ -7.1868300437927246e-01 2.6879999786615372e-03
+ <_>
+
+ 0 -1 2332 1.7488999292254448e-02
+
+ 2.2371199727058411e-01 -5.5381798744201660e-01
+ <_>
+
+ 0 -1 2333 -2.5264000520110130e-02
+
+ 1.0319819450378418e+00 -1.7496499419212341e-01
+ <_>
+
+ 0 -1 2334 -4.0745001286268234e-02
+
+ 4.4961598515510559e-01 3.9349000900983810e-02
+ <_>
+
+ 0 -1 2335 -3.7666998803615570e-02
+
+ -8.5475701093673706e-01 -1.2463999912142754e-02
+ <_>
+
+ 0 -1 2336 -1.3411000370979309e-02
+
+ 5.7845598459243774e-01 -1.7467999830842018e-02
+ <_>
+
+ 0 -1 2337 -7.8999997640494257e-05
+
+ -3.7749201059341431e-01 1.3961799442768097e-01
+ <_>
+
+ 0 -1 2338 -1.1415000073611736e-02
+
+ -2.6186600327491760e-01 2.3712499439716339e-01
+ <_>
+
+ 0 -1 2339 3.7200000137090683e-02
+
+ -2.8626000508666039e-02 -1.2945239543914795e+00
+ <_>
+
+ 0 -1 2340 3.4050000831484795e-03
+
+ 2.0531399548053741e-01 -1.8747499585151672e-01
+ <_>
+
+ 0 -1 2341 -2.2483000531792641e-02
+
+ 6.7027199268341064e-01 -1.9594000279903412e-01
+ <_>
+
+ 0 -1 2342 2.3274999111890793e-02
+
+ 1.7405399680137634e-01 -3.2746300101280212e-01
+ <_>
+
+ 0 -1 2343 -1.3917000032961369e-02
+
+ -8.3954298496246338e-01 -6.3760001212358475e-03
+ <_>
+
+ 0 -1 2344 7.5429999269545078e-03
+
+ -3.4194998443126678e-02 5.8998197317123413e-01
+ <_>
+
+ 0 -1 2345 -1.1539000086486340e-02
+
+ 4.2142799496650696e-01 -2.3510499298572540e-01
+ <_>
+
+ 0 -1 2346 5.2501998841762543e-02
+
+ 6.9303996860980988e-02 7.3226499557495117e-01
+ <_>
+
+ 0 -1 2347 5.2715998142957687e-02
+
+ -1.5688100457191467e-01 1.0907289981842041e+00
+ <_>
+
+ 0 -1 2348 -1.1726000346243382e-02
+
+ -7.0934301614761353e-01 1.6828800737857819e-01
+ <_>
+
+ 0 -1 2349 9.5945999026298523e-02
+
+ -1.6192899644374847e-01 1.0072519779205322e+00
+ <_>
+
+ 0 -1 2350 -1.5871999785304070e-02
+
+ 3.9008399844169617e-01 -5.3777001798152924e-02
+ <_>
+
+ 0 -1 2351 3.4818001091480255e-02
+
+ 1.7179999500513077e-02 -9.3941801786422729e-01
+ <_>
+
+ 0 -1 2352 3.4791998565196991e-02
+
+ 5.0462998449802399e-02 5.4465699195861816e-01
+ <_>
+
+ 0 -1 2353 1.6284000128507614e-02
+
+ -2.6981300115585327e-01 4.0365299582481384e-01
+ <_>
+
+ 0 -1 2354 -4.4319000095129013e-02
+
+ 8.4399998188018799e-01 3.2882999628782272e-02
+ <_>
+
+ 0 -1 2355 -5.5689997971057892e-03
+
+ 1.5309399366378784e-01 -3.4959799051284790e-01
+ <_>
+
+ 0 -1 2356 -6.5842002630233765e-02
+
+ -9.2711198329925537e-01 1.6800999641418457e-01
+ <_>
+
+ 0 -1 2357 -7.3337003588676453e-02
+
+ 5.1614499092102051e-01 -2.0236000418663025e-01
+ <_>
+
+ 0 -1 2358 1.6450000926852226e-02
+
+ 1.3950599730014801e-01 -4.9301299452781677e-01
+ <_>
+
+ 0 -1 2359 -9.2630004510283470e-03
+
+ -9.0101999044418335e-01 -1.6116000711917877e-02
+ <_>
+
+ 0 -1 2360 5.9139998629689217e-03
+
+ 1.9858199357986450e-01 -1.6731299459934235e-01
+ <_>
+
+ 0 -1 2361 -8.4699998842552304e-04
+
+ 9.4005003571510315e-02 -4.1570898890495300e-01
+ <_>
+
+ 0 -1 2362 2.0532900094985962e-01
+
+ -6.0022000223398209e-02 7.0993602275848389e-01
+ <_>
+
+ 0 -1 2363 -1.6883000731468201e-02
+
+ 2.4392199516296387e-01 -3.0551800131797791e-01
+ <_>
+
+ 0 -1 2364 -1.9111000001430511e-02
+
+ 6.1229902505874634e-01 2.4252999573945999e-02
+ <_>
+
+ 0 -1 2365 -2.5962999090552330e-02
+
+ 9.0764999389648438e-01 -1.6722099483013153e-01
+ <_>
+
+ 0 -1 2366 -2.1762000396847725e-02
+
+ -3.1384700536727905e-01 2.0134599506855011e-01
+ <_>
+
+ 0 -1 2367 -2.4119999259710312e-02
+
+ -6.6588401794433594e-01 7.4559999629855156e-03
+ <_>
+
+ 0 -1 2368 4.7129999846220016e-02
+
+ 5.9533998370170593e-02 8.7804502248764038e-01
+ <_>
+
+ 0 -1 2369 -4.5984998345375061e-02
+
+ 8.0067998170852661e-01 -1.7252300679683685e-01
+ <_>
+
+ 0 -1 2370 2.6507999747991562e-02
+
+ 1.8774099647998810e-01 -6.0850602388381958e-01
+ <_>
+
+ 0 -1 2371 -4.8615001142024994e-02
+
+ 5.8644098043441772e-01 -1.9427700340747833e-01
+ <_>
+
+ 0 -1 2372 -1.8562000244855881e-02
+
+ -2.5587901473045349e-01 1.6326199471950531e-01
+ <_>
+
+ 0 -1 2373 1.2678000144660473e-02
+
+ -1.4228000305593014e-02 -7.6738101243972778e-01
+ <_>
+
+ 0 -1 2374 -1.1919999960809946e-03
+
+ 2.0495000481605530e-01 -1.1404299736022949e-01
+ <_>
+
+ 0 -1 2375 -4.9088999629020691e-02
+
+ -1.0740849971771240e+00 -3.8940999656915665e-02
+ <_>
+
+ 0 -1 2376 -1.7436999827623367e-02
+
+ -5.7973802089691162e-01 1.8584500253200531e-01
+ <_>
+
+ 0 -1 2377 -1.4770000241696835e-02
+
+ -6.6150301694869995e-01 5.3119999356567860e-03
+ <_>
+
+ 0 -1 2378 -2.2905200719833374e-01
+
+ -4.8305100202560425e-01 1.2326399981975555e-01
+ <_>
+
+ 0 -1 2379 -1.2707099318504333e-01
+
+ 5.7452601194381714e-01 -1.9420400261878967e-01
+ <_>
+
+ 0 -1 2380 1.0339000262320042e-02
+
+ -5.4641999304294586e-02 2.4501800537109375e-01
+ <_>
+
+ 0 -1 2381 6.9010001607239246e-03
+
+ 1.2180600315332413e-01 -3.8797399401664734e-01
+ <_>
+
+ 0 -1 2382 2.9025399684906006e-01
+
+ 1.0966199636459351e-01 -30.
+ <_>
+
+ 0 -1 2383 -2.3804999887943268e-01
+
+ -1.7352679967880249e+00 -6.3809998333454132e-02
+ <_>
+
+ 0 -1 2384 6.2481001019477844e-02
+
+ 1.3523000478744507e-01 -7.0301097631454468e-01
+ <_>
+
+ 0 -1 2385 4.7109997831285000e-03
+
+ -4.6984100341796875e-01 6.0341998934745789e-02
+ <_>
+
+ 0 -1 2386 -2.7815999463200569e-02
+
+ 6.9807600975036621e-01 1.3719999697059393e-03
+ <_>
+
+ 0 -1 2387 -1.7020000144839287e-02
+
+ 1.6870440244674683e+00 -1.4314800500869751e-01
+ <_>
+
+ 0 -1 2388 -4.9754999577999115e-02
+
+ 7.9497700929641724e-01 7.7199999941512942e-04
+ <_>
+
+ 0 -1 2389 -7.4732996523380280e-02
+
+ -1.0132360458374023e+00 -1.9388999789953232e-02
+ <_>
+
+ 0 -1 2390 3.2009001821279526e-02
+
+ 1.4412100613117218e-01 -4.2139101028442383e-01
+ <_>
+
+ 0 -1 2391 -9.4463996589183807e-02
+
+ 5.0682598352432251e-01 -2.0478899776935577e-01
+ <_>
+
+ 0 -1 2392 -1.5426999889314175e-02
+
+ -1.5811300277709961e-01 1.7806899547576904e-01
+ <_>
+
+ 0 -1 2393 -4.0540001355111599e-03
+
+ -5.4366701841354370e-01 3.1235000118613243e-02
+ <_>
+
+ 0 -1 2394 3.0080000869929790e-03
+
+ -1.7376799881458282e-01 3.0441701412200928e-01
+ <_>
+
+ 0 -1 2395 -1.0091999545693398e-02
+
+ 2.5103801488876343e-01 -2.6224100589752197e-01
+ <_>
+
+ 0 -1 2396 -3.8818001747131348e-02
+
+ 9.3226701021194458e-01 7.2659999132156372e-02
+ <_>
+
+ 0 -1 2397 3.4651998430490494e-02
+
+ -3.3934999257326126e-02 -8.5707902908325195e-01
+ <_>
+
+ 0 -1 2398 -4.6729999594390392e-03
+
+ 3.4969300031661987e-01 -4.8517998307943344e-02
+ <_>
+
+ 0 -1 2399 6.8499997723847628e-04
+
+ 6.6573001444339752e-02 -4.4973799586296082e-01
+ <_>
+
+ 0 -1 2400 3.5317000001668930e-02
+
+ 1.4275799691677094e-01 -4.6726399660110474e-01
+ <_>
+
+ 0 -1 2401 -2.3569999262690544e-02
+
+ -1.0286079645156860e+00 -4.5288000255823135e-02
+ <_>
+
+ 0 -1 2402 -1.9109999993816018e-03
+
+ -1.9652199745178223e-01 2.8661000728607178e-01
+ <_>
+
+ 0 -1 2403 -1.6659000888466835e-02
+
+ -7.7532202005386353e-01 -8.3280000835657120e-03
+ <_>
+
+ 0 -1 2404 6.6062200069427490e-01
+
+ 1.3232499361038208e-01 -3.5266680717468262e+00
+ <_>
+
+ 0 -1 2405 1.0970599949359894e-01
+
+ -1.5547199547290802e-01 1.4674140214920044e+00
+ <_>
+
+ 0 -1 2406 1.3500999659299850e-02
+
+ 1.5233400464057922e-01 -1.3020930290222168e+00
+ <_>
+
+ 0 -1 2407 -2.2871999070048332e-02
+
+ -7.1325999498367310e-01 -8.7040001526474953e-03
+ <_>
+
+ 0 -1 2408 -8.1821002066135406e-02
+
+ 1.1127580404281616e+00 8.3219997584819794e-02
+ <_>
+
+ 0 -1 2409 -5.2728001028299332e-02
+
+ 9.3165099620819092e-01 -1.7103999853134155e-01
+ <_>
+
+ 0 -1 2410 -2.5242000818252563e-02
+
+ -1.9733799993991852e-01 2.5359401106834412e-01
+ <_>
+
+ 0 -1 2411 -4.3818999081850052e-02
+
+ 4.1815200448036194e-01 -2.4585500359535217e-01
+ <_>
+
+ 0 -1 2412 -1.8188999965786934e-02
+
+ -5.1743197441101074e-01 2.0174199342727661e-01
+ <_>
+
+ 0 -1 2413 2.3466000333428383e-02
+
+ -4.3071001768112183e-02 -1.0636579990386963e+00
+ <_>
+
+ 0 -1 2414 3.4216001629829407e-02
+
+ 5.3780999034643173e-02 4.9707201123237610e-01
+ <_>
+
+ 0 -1 2415 2.5692999362945557e-02
+
+ -2.3800100386142731e-01 4.1651499271392822e-01
+ <_>
+
+ 0 -1 2416 -2.6565000414848328e-02
+
+ -8.8574802875518799e-01 1.3365900516510010e-01
+ <_>
+
+ 0 -1 2417 6.0942001640796661e-02
+
+ -2.0669700205326080e-01 5.8309000730514526e-01
+ <_>
+
+ 0 -1 2418 1.4474500715732574e-01
+
+ 1.3282300531864166e-01 -3.1449348926544189e+00
+ <_>
+
+ 0 -1 2419 5.3410999476909637e-02
+
+ -1.7325200140476227e-01 6.9190698862075806e-01
+ <_>
+
+ 0 -1 2420 1.1408000253140926e-02
+
+ 5.4822001606225967e-02 3.0240398645401001e-01
+ <_>
+
+ 0 -1 2421 -2.3179999552667141e-03
+
+ 1.5820899605751038e-01 -3.1973201036453247e-01
+ <_>
+
+ 0 -1 2422 -2.9695000499486923e-02
+
+ 7.1274799108505249e-01 5.8136001229286194e-02
+ <_>
+
+ 0 -1 2423 2.7249999344348907e-02
+
+ -1.5754100680351257e-01 9.2143797874450684e-01
+ <_>
+
+ 0 -1 2424 -3.6200000904500484e-03
+
+ -3.4548398852348328e-01 2.0220999419689178e-01
+ <_>
+
+ 0 -1 2425 -1.2578999623656273e-02
+
+ -5.5650299787521362e-01 2.0388999953866005e-02
+ <_>
+
+ 0 -1 2426 -8.8849000632762909e-02
+
+ -3.6100010871887207e+00 1.3164199888706207e-01
+ <_>
+
+ 0 -1 2427 -1.9256999716162682e-02
+
+ 5.1908999681472778e-01 -1.9284300506114960e-01
+ <_>
+
+ 0 -1 2428 -1.6666999086737633e-02
+
+ -8.7499998509883881e-02 1.5812499821186066e-01
+ <_>
+
+ 0 -1 2429 1.2931999750435352e-02
+
+ 2.7405999600887299e-02 -5.5123901367187500e-01
+ <_>
+
+ 0 -1 2430 -1.3431999832391739e-02
+
+ 2.3457799851894379e-01 -4.3235000222921371e-02
+ <_>
+
+ 0 -1 2431 1.8810000270605087e-02
+
+ -3.9680998772382736e-02 -9.4373297691345215e-01
+ <_>
+
+ 0 -1 2432 -6.4349998719990253e-03
+
+ 4.5703700184822083e-01 -4.0520001202821732e-03
+ <_>
+
+ 0 -1 2433 -2.4249000474810600e-02
+
+ -7.6248002052307129e-01 -1.9857000559568405e-02
+ <_>
+
+ 0 -1 2434 -2.9667999595403671e-02
+
+ -3.7412509918212891e+00 1.1250600218772888e-01
+ <_>
+
+ 0 -1 2435 5.1150000654160976e-03
+
+ -6.3781797885894775e-01 1.1223999783396721e-02
+ <_>
+
+ 0 -1 2436 -5.7819997891783714e-03
+
+ 1.9374400377273560e-01 -8.2042001187801361e-02
+ <_>
+
+ 0 -1 2437 1.6606999561190605e-02
+
+ -1.6192099452018738e-01 1.1334990262985229e+00
+ <_>
+
+ 0 -1 2438 3.8228001445531845e-02
+
+ 2.1105000749230385e-02 7.6264202594757080e-01
+ <_>
+
+ 0 -1 2439 -5.7094000279903412e-02
+
+ -1.6974929571151733e+00 -5.9762001037597656e-02
+ <_>
+
+ 0 -1 2440 -5.3883001208305359e-02
+
+ 1.1850190162658691e+00 9.0966999530792236e-02
+ <_>
+
+ 0 -1 2441 -2.6110000908374786e-03
+
+ -4.0941199660301208e-01 8.3820998668670654e-02
+ <_>
+
+ 0 -1 2442 2.9714399576187134e-01
+
+ 1.5529899299144745e-01 -1.0995409488677979e+00
+ <_>
+
+ 0 -1 2443 -8.9063003659248352e-02
+
+ 4.8947200179100037e-01 -2.0041200518608093e-01
+ <_>
+
+ 0 -1 2444 -5.6193001568317413e-02
+
+ -2.4581399559974670e-01 1.4365500211715698e-01
+ <_>
+
+ 0 -1 2445 3.7004999816417694e-02
+
+ -4.8168998211622238e-02 -1.2310709953308105e+00
+ <_>
+
+ 0 -1 2446 -8.4840003401041031e-03
+
+ 4.3372601270675659e-01 1.3779999688267708e-02
+ <_>
+
+ 0 -1 2447 -2.4379999376833439e-03
+
+ 1.8949699401855469e-01 -3.2294198870658875e-01
+ <_>
+
+ 0 -1 2448 -7.1639999747276306e-02
+
+ -4.3979001045227051e-01 2.2730199992656708e-01
+ <_>
+
+ 0 -1 2449 5.2260002121329308e-03
+
+ -2.0548400282859802e-01 5.0933301448822021e-01
+ <_>
+
+ 0 -1 2450 -6.1360001564025879e-03
+
+ 3.1157198548316956e-01 7.0680998265743256e-02
+ <_>
+
+ 0 -1 2451 1.5595000237226486e-02
+
+ -3.0934798717498779e-01 1.5627700090408325e-01
+ <_>
+
+ 0 -1 2452 2.5995999574661255e-02
+
+ 1.3821600377559662e-01 -1.7616599798202515e-01
+ <_>
+
+ 0 -1 2453 -1.2085000053048134e-02
+
+ -5.1070201396942139e-01 5.8440998196601868e-02
+ <_>
+
+ 0 -1 2454 -6.7836001515388489e-02
+
+ 4.7757101058959961e-01 -7.1446001529693604e-02
+ <_>
+
+ 0 -1 2455 -1.4715000055730343e-02
+
+ 4.5238900184631348e-01 -1.9861400127410889e-01
+ <_>
+
+ 0 -1 2456 2.5118999183177948e-02
+
+ 1.2954899668693542e-01 -8.6266398429870605e-01
+ <_>
+
+ 0 -1 2457 1.8826000392436981e-02
+
+ -4.1570000350475311e-02 -1.1354700326919556e+00
+ <_>
+
+ 0 -1 2458 -2.1263999864459038e-02
+
+ -3.4738001227378845e-01 1.5779499709606171e-01
+ <_>
+
+ 0 -1 2459 9.4609996303915977e-03
+
+ 4.8639997839927673e-03 -6.1654800176620483e-01
+ <_>
+
+ 0 -1 2460 2.2957700490951538e-01
+
+ 8.1372998654842377e-02 6.9841402769088745e-01
+ <_>
+
+ 0 -1 2461 -3.8061998784542084e-02
+
+ 1.1616369485855103e+00 -1.4976699650287628e-01
+ <_>
+
+ 0 -1 2462 -1.3484999537467957e-02
+
+ -3.2036399841308594e-01 1.7365099489688873e-01
+ <_>
+
+ 0 -1 2463 3.6238998174667358e-02
+
+ -1.8158499896526337e-01 6.1956697702407837e-01
+ <_>
+
+ 0 -1 2464 6.7210001870989799e-03
+
+ 7.9600000753998756e-04 4.2441400885581970e-01
+ <_>
+
+ 0 -1 2465 9.6525996923446655e-02
+
+ -1.4696800708770752e-01 1.2525680065155029e+00
+ <_>
+
+ 0 -1 2466 -3.5656999796628952e-02
+
+ -3.9781698584556580e-01 1.4191399514675140e-01
+ <_>
+
+ 0 -1 2467 1.0772000066936016e-02
+
+ -1.8194000422954559e-01 5.9762197732925415e-01
+ <_>
+
+ 0 -1 2468 7.9279996454715729e-02
+
+ 1.4642499387264252e-01 -7.8836899995803833e-01
+ <_>
+
+ 0 -1 2469 3.2841000705957413e-02
+
+ -6.2408000230789185e-02 -1.4227490425109863e+00
+ <_>
+
+ 0 -1 2470 -2.7781000360846519e-02
+
+ 3.4033098816871643e-01 3.0670000240206718e-02
+ <_>
+
+ 0 -1 2471 -4.0339999832212925e-03
+
+ 3.1084701418876648e-01 -2.2595700621604919e-01
+ <_>
+
+ 0 -1 2472 7.4260002002120018e-03
+
+ -3.8936998695135117e-02 3.1702101230621338e-01
+ <_>
+
+ 0 -1 2473 1.1213999986648560e-01
+
+ -1.7578299343585968e-01 6.5056598186492920e-01
+ <_>
+
+ 0 -1 2474 -1.1878100037574768e-01
+
+ -1.0092990398406982e+00 1.1069700121879578e-01
+ <_>
+
+ 0 -1 2475 -4.1584998369216919e-02
+
+ -5.3806400299072266e-01 1.9905000925064087e-02
+ <_>
+
+ 0 -1 2476 -2.7966000139713287e-02
+
+ 4.8143199086189270e-01 3.3590998500585556e-02
+ <_>
+
+ 0 -1 2477 -1.2506400048732758e-01
+
+ 2.6352199912071228e-01 -2.5737899541854858e-01
+ <_>
+
+ 0 -1 2478 2.3666900396347046e-01
+
+ 3.6508001387119293e-02 9.0655601024627686e-01
+ <_>
+
+ 0 -1 2479 -2.9475999996066093e-02
+
+ -6.0048800706863403e-01 9.5880003646016121e-03
+ <_>
+
+ 0 -1 2480 3.7792999297380447e-02
+
+ 1.5506200492382050e-01 -9.5733499526977539e-01
+ <_>
+
+ 0 -1 2481 7.2044000029563904e-02
+
+ -1.4525899291038513e-01 1.3676730394363403e+00
+ <_>
+
+ 0 -1 2482 9.7759999334812164e-03
+
+ 1.2915999628603458e-02 2.1640899777412415e-01
+ <_>
+
+ 0 -1 2483 5.2154000848531723e-02
+
+ -1.6359999775886536e-02 -8.8356298208236694e-01
+ <_>
+
+ 0 -1 2484 -4.3790999799966812e-02
+
+ 3.5829600691795349e-01 6.5131001174449921e-02
+ <_>
+
+ 0 -1 2485 -3.8378998637199402e-02
+
+ 1.1961040496826172e+00 -1.4971500635147095e-01
+ <_>
+
+ 0 -1 2486 -9.8838999867439270e-02
+
+ -6.1834001541137695e-01 1.2786200642585754e-01
+ <_>
+
+ 0 -1 2487 -1.2190700322389603e-01
+
+ -1.8276120424270630e+00 -6.4862996339797974e-02
+ <_>
+
+ 0 -1 2488 -1.1981700360774994e-01
+
+ -30. 1.1323300004005432e-01
+ <_>
+
+ 0 -1 2489 3.0910000205039978e-02
+
+ -2.3934000730514526e-01 3.6332899332046509e-01
+ <_>
+
+ 0 -1 2490 1.0800999589264393e-02
+
+ -3.5140000283718109e-02 2.7707898616790771e-01
+ <_>
+
+ 0 -1 2491 5.6844998151063919e-02
+
+ -1.5524299442768097e-01 1.0802700519561768e+00
+ <_>
+
+ 0 -1 2492 1.0280000278726220e-03
+
+ -6.1202999204397202e-02 2.0508000254631042e-01
+ <_>
+
+ 0 -1 2493 -2.8273999691009521e-02
+
+ -6.4778000116348267e-01 2.3917000740766525e-02
+ <_>
+
+ 0 -1 2494 -1.6013599932193756e-01
+
+ 1.0892050266265869e+00 5.8389000594615936e-02
+ <_>
+
+ 0 -1 2495 4.9629998393356800e-03
+
+ -2.5806298851966858e-01 2.0834599435329437e-01
+ <_>
+
+ 0 -1 2496 4.6937000006437302e-02
+
+ 1.3886299729347229e-01 -1.5662620067596436e+00
+ <_>
+
+ 0 -1 2497 2.4286000058054924e-02
+
+ -2.0728300511837006e-01 5.2430999279022217e-01
+ <_>
+
+ 0 -1 2498 7.0202000439167023e-02
+
+ 1.4796899259090424e-01 -1.3095090389251709e+00
+ <_>
+
+ 0 -1 2499 9.8120002076029778e-03
+
+ 2.7906000614166260e-02 -5.0864601135253906e-01
+ <_>
+
+ 0 -1 2500 -5.6200999766588211e-02
+
+ 1.2618130445480347e+00 6.3801996409893036e-02
+ <_>
+
+ 0 -1 2501 1.0982800275087357e-01
+
+ -1.2850099802017212e-01 3.0776169300079346e+00
+ <_>
+ 211
+ -3.3703000545501709e+00
+
+ <_>
+
+ 0 -1 2502 2.0910000428557396e-02
+
+ -6.8559402227401733e-01 3.8984298706054688e-01
+ <_>
+
+ 0 -1 2503 3.5032000392675400e-02
+
+ -4.7724398970603943e-01 4.5027199387550354e-01
+ <_>
+
+ 0 -1 2504 3.9799001067876816e-02
+
+ -4.7011101245880127e-01 4.2702499032020569e-01
+ <_>
+
+ 0 -1 2505 -4.8409998416900635e-03
+
+ 2.5614300370216370e-01 -6.6556298732757568e-01
+ <_>
+
+ 0 -1 2506 2.3439999204128981e-03
+
+ -4.8083499073982239e-01 2.8013798594474792e-01
+ <_>
+
+ 0 -1 2507 2.5312999263405800e-02
+
+ -2.3948200047016144e-01 4.4191798567771912e-01
+ <_>
+
+ 0 -1 2508 -3.2193001359701157e-02
+
+ 7.6086699962615967e-01 -2.5059100985527039e-01
+ <_>
+
+ 0 -1 2509 7.5409002602100372e-02
+
+ -3.4974598884582520e-01 3.4380298852920532e-01
+ <_>
+
+ 0 -1 2510 -1.8469000235199928e-02
+
+ -7.9085600376129150e-01 3.4788001328706741e-02
+ <_>
+
+ 0 -1 2511 -1.2802000157535076e-02
+
+ 4.7107800841331482e-01 -6.0006000101566315e-02
+ <_>
+
+ 0 -1 2512 -2.6598000898957253e-02
+
+ 6.7116099596023560e-01 -2.4257500469684601e-01
+ <_>
+
+ 0 -1 2513 2.1988999098539352e-02
+
+ 2.4717499315738678e-01 -4.8301699757575989e-01
+ <_>
+
+ 0 -1 2514 1.4654099941253662e-01
+
+ -2.1504099667072296e-01 7.2055900096893311e-01
+ <_>
+
+ 0 -1 2515 3.5310001112520695e-03
+
+ 2.7930998802185059e-01 -3.4339898824691772e-01
+ <_>
+
+ 0 -1 2516 9.4010001048445702e-03
+
+ 5.5861998349428177e-02 -8.2143598794937134e-01
+ <_>
+
+ 0 -1 2517 -8.6390003561973572e-03
+
+ -9.9620598554611206e-01 1.8874999880790710e-01
+ <_>
+
+ 0 -1 2518 -3.9193000644445419e-02
+
+ -1.1945559978485107e+00 -2.9198000207543373e-02
+ <_>
+
+ 0 -1 2519 2.4855000898241997e-02
+
+ 1.4987599849700928e-01 -5.4137802124023438e-01
+ <_>
+
+ 0 -1 2520 -3.4995000809431076e-02
+
+ -1.4210180044174194e+00 -4.2314000427722931e-02
+ <_>
+
+ 0 -1 2521 -1.8378999084234238e-02
+
+ -2.8242599964141846e-01 1.5581800043582916e-01
+ <_>
+
+ 0 -1 2522 -1.3592000119388103e-02
+
+ 4.7317099571228027e-01 -2.1937200427055359e-01
+ <_>
+
+ 0 -1 2523 6.2629999592900276e-03
+
+ -5.9714000672101974e-02 6.0625898838043213e-01
+ <_>
+
+ 0 -1 2524 -1.8478000536561012e-02
+
+ -8.5647201538085938e-01 -1.3783999718725681e-02
+ <_>
+
+ 0 -1 2525 1.4236000366508961e-02
+
+ 1.6654799878597260e-01 -2.7713999152183533e-01
+ <_>
+
+ 0 -1 2526 -3.2547000795602798e-02
+
+ -1.1728240251541138e+00 -4.0185000747442245e-02
+ <_>
+
+ 0 -1 2527 -2.6410000864416361e-03
+
+ 2.6514300704002380e-01 -5.6343000382184982e-02
+ <_>
+
+ 0 -1 2528 -8.7799999164417386e-04
+
+ 3.6556001752614975e-02 -5.5075198411941528e-01
+ <_>
+
+ 0 -1 2529 4.7371998429298401e-02
+
+ -4.2614001780748367e-02 4.8194900155067444e-01
+ <_>
+
+ 0 -1 2530 -7.0790001191198826e-03
+
+ 2.8698998689651489e-01 -3.2923001050949097e-01
+ <_>
+
+ 0 -1 2531 -4.3145999312400818e-02
+
+ -1.4065419435501099e+00 1.2836399674415588e-01
+ <_>
+
+ 0 -1 2532 2.0592000335454941e-02
+
+ -2.1435299515724182e-01 5.3981798887252808e-01
+ <_>
+
+ 0 -1 2533 -2.2367000579833984e-02
+
+ 3.3718299865722656e-01 4.5212000608444214e-02
+ <_>
+
+ 0 -1 2534 5.0039999186992645e-02
+
+ -2.5121700763702393e-01 4.1750499606132507e-01
+ <_>
+
+ 0 -1 2535 6.1794999986886978e-02
+
+ 4.0084999054670334e-02 6.8779802322387695e-01
+ <_>
+
+ 0 -1 2536 -4.1861999779939651e-02
+
+ 5.3027397394180298e-01 -2.2901999950408936e-01
+ <_>
+
+ 0 -1 2537 -3.1959998887032270e-03
+
+ 2.5161498785018921e-01 -2.1514600515365601e-01
+ <_>
+
+ 0 -1 2538 2.4255000054836273e-02
+
+ 7.2320001199841499e-03 -7.2519099712371826e-01
+ <_>
+
+ 0 -1 2539 -1.7303999513387680e-02
+
+ -4.9958199262619019e-01 1.8394500017166138e-01
+ <_>
+
+ 0 -1 2540 -4.1470001451671124e-03
+
+ 8.5211999714374542e-02 -4.6364700794219971e-01
+ <_>
+
+ 0 -1 2541 -1.4369999989867210e-02
+
+ -5.2258902788162231e-01 2.3892599344253540e-01
+ <_>
+
+ 0 -1 2542 -9.0399999171495438e-03
+
+ -6.3250398635864258e-01 3.2551001757383347e-02
+ <_>
+
+ 0 -1 2543 -1.2373100221157074e-01
+
+ 1.2856210470199585e+00 7.6545000076293945e-02
+ <_>
+
+ 0 -1 2544 -8.2221999764442444e-02
+
+ 8.3208197355270386e-01 -1.8590599298477173e-01
+ <_>
+
+ 0 -1 2545 6.5659001469612122e-02
+
+ 1.1298800259828568e-01 -30.
+ <_>
+
+ 0 -1 2546 -3.1582999974489212e-02
+
+ -1.3485900163650513e+00 -4.7097001224756241e-02
+ <_>
+
+ 0 -1 2547 -7.9636000096797943e-02
+
+ -1.3533639907836914e+00 1.5668800473213196e-01
+ <_>
+
+ 0 -1 2548 -1.8880000337958336e-02
+
+ 4.0300300717353821e-01 -2.5148901343345642e-01
+ <_>
+
+ 0 -1 2549 -5.0149997696280479e-03
+
+ -2.6287099719047546e-01 1.8582500517368317e-01
+ <_>
+
+ 0 -1 2550 -1.2218000367283821e-02
+
+ 5.8692401647567749e-01 -1.9427700340747833e-01
+ <_>
+
+ 0 -1 2551 1.2710000155493617e-03
+
+ -1.6688999533653259e-01 2.3006899654865265e-01
+ <_>
+
+ 0 -1 2552 2.9743999242782593e-02
+
+ 1.2520000338554382e-02 -6.6723597049713135e-01
+ <_>
+
+ 0 -1 2553 2.8175000101327896e-02
+
+ -1.7060000449419022e-02 6.4579397439956665e-01
+ <_>
+
+ 0 -1 2554 3.0345000326633453e-02
+
+ -2.4178700149059296e-01 3.4878900647163391e-01
+ <_>
+
+ 0 -1 2555 -1.7325999215245247e-02
+
+ -5.3599399328231812e-01 2.0995999872684479e-01
+ <_>
+
+ 0 -1 2556 -8.4178000688552856e-02
+
+ 7.5093299150466919e-01 -1.7593200504779816e-01
+ <_>
+
+ 0 -1 2557 7.4950000271201134e-03
+
+ -1.6188099980354309e-01 3.0657500028610229e-01
+ <_>
+
+ 0 -1 2558 5.6494999676942825e-02
+
+ -1.7318800091743469e-01 1.0016150474548340e+00
+ <_>
+
+ 0 -1 2559 -5.2939997985959053e-03
+
+ 2.3417599499225616e-01 -6.5347000956535339e-02
+ <_>
+
+ 0 -1 2560 -1.4945000410079956e-02
+
+ 2.5018900632858276e-01 -3.0591198801994324e-01
+ <_>
+
+ 0 -1 2561 5.4919000715017319e-02
+
+ 1.3121999800205231e-01 -9.3765097856521606e-01
+ <_>
+
+ 0 -1 2562 -1.9721999764442444e-02
+
+ -8.3978497982025146e-01 -2.3473000153899193e-02
+ <_>
+
+ 0 -1 2563 -6.7158997058868408e-02
+
+ 2.3586840629577637e+00 8.2970999181270599e-02
+ <_>
+
+ 0 -1 2564 -1.4325999654829502e-02
+
+ 1.8814499676227570e-01 -3.1221601366996765e-01
+ <_>
+
+ 0 -1 2565 2.9841000214219093e-02
+
+ 1.4825099706649780e-01 -8.4681701660156250e-01
+ <_>
+
+ 0 -1 2566 5.1883000880479813e-02
+
+ -4.3731000274419785e-02 -1.3366169929504395e+00
+ <_>
+
+ 0 -1 2567 4.1127000004053116e-02
+
+ 1.7660099267959595e-01 -6.0904097557067871e-01
+ <_>
+
+ 0 -1 2568 -1.2865099310874939e-01
+
+ -9.8701000213623047e-01 -3.7785001099109650e-02
+ <_>
+
+ 0 -1 2569 2.4170000106096268e-03
+
+ -1.6119599342346191e-01 3.2675701379776001e-01
+ <_>
+
+ 0 -1 2570 7.7030002139508724e-03
+
+ -2.3841500282287598e-01 2.9319399595260620e-01
+ <_>
+
+ 0 -1 2571 4.5520000159740448e-02
+
+ 1.4424599707126617e-01 -1.5010160207748413e+00
+ <_>
+
+ 0 -1 2572 -7.8700996935367584e-02
+
+ -1.0394560098648071e+00 -4.5375999063253403e-02
+ <_>
+
+ 0 -1 2573 7.8619997948408127e-03
+
+ 1.9633600115776062e-01 -1.4472399652004242e-01
+ <_>
+
+ 0 -1 2574 -1.3458999805152416e-02
+
+ -9.0634697675704956e-01 -3.8049001246690750e-02
+ <_>
+
+ 0 -1 2575 2.8827000409364700e-02
+
+ -2.9473999515175819e-02 6.0058397054672241e-01
+ <_>
+
+ 0 -1 2576 -2.7365999296307564e-02
+
+ -9.9804002046585083e-01 -3.8653001189231873e-02
+ <_>
+
+ 0 -1 2577 -7.2917997837066650e-02
+
+ 7.3361498117446899e-01 5.7440001517534256e-02
+ <_>
+
+ 0 -1 2578 -1.3988999649882317e-02
+
+ 2.7892601490020752e-01 -2.6516300439834595e-01
+ <_>
+
+ 0 -1 2579 4.3242998421192169e-02
+
+ 4.7760000452399254e-03 3.5925900936126709e-01
+ <_>
+
+ 0 -1 2580 2.9533000662922859e-02
+
+ -2.0083999633789062e-01 5.1202899217605591e-01
+ <_>
+
+ 0 -1 2581 -3.1897000968456268e-02
+
+ 6.4721697568893433e-01 -1.3760000001639128e-03
+ <_>
+
+ 0 -1 2582 3.7868998944759369e-02
+
+ -1.8363800644874573e-01 6.1343097686767578e-01
+ <_>
+
+ 0 -1 2583 -2.2417999804019928e-02
+
+ -2.9187899827957153e-01 1.8194800615310669e-01
+ <_>
+
+ 0 -1 2584 5.8958999812602997e-02
+
+ -6.6451996564865112e-02 -1.9290030002593994e+00
+ <_>
+
+ 0 -1 2585 3.1222999095916748e-02
+
+ -1.2732000090181828e-02 6.1560797691345215e-01
+ <_>
+
+ 0 -1 2586 3.7484999746084213e-02
+
+ -2.0856900513172150e-01 4.4363999366760254e-01
+ <_>
+
+ 0 -1 2587 -2.0966000854969025e-02
+
+ -3.5712799429893494e-01 2.4252200126647949e-01
+ <_>
+
+ 0 -1 2588 -2.5477999821305275e-02
+
+ 1.0846560001373291e+00 -1.5054400265216827e-01
+ <_>
+
+ 0 -1 2589 -7.2570000775158405e-03
+
+ 2.1302600204944611e-01 -1.8308199942111969e-01
+ <_>
+
+ 0 -1 2590 -5.0983000546693802e-02
+
+ 5.1736801862716675e-01 -1.8833099305629730e-01
+ <_>
+
+ 0 -1 2591 -2.0640000700950623e-02
+
+ -4.4030201435089111e-01 2.2745999693870544e-01
+ <_>
+
+ 0 -1 2592 1.0672999545931816e-02
+
+ 3.5059999674558640e-02 -5.1665002107620239e-01
+ <_>
+
+ 0 -1 2593 3.1895998865365982e-02
+
+ 1.3228000141680241e-02 3.4915199875831604e-01
+ <_>
+
+ 0 -1 2594 -2.3824999108910561e-02
+
+ 3.4118801355361938e-01 -2.1510200202465057e-01
+ <_>
+
+ 0 -1 2595 -6.0680001042783260e-03
+
+ 3.2937398552894592e-01 -2.8523799777030945e-01
+ <_>
+
+ 0 -1 2596 2.3881999775767326e-02
+
+ -2.5333800911903381e-01 2.6296100020408630e-01
+ <_>
+
+ 0 -1 2597 2.7966000139713287e-02
+
+ 1.4049099385738373e-01 -4.9887099862098694e-01
+ <_>
+
+ 0 -1 2598 1.4603000134229660e-02
+
+ -1.5395999886095524e-02 -7.6958000659942627e-01
+ <_>
+
+ 0 -1 2599 1.0872399806976318e-01
+
+ 1.9069600105285645e-01 -3.2393100857734680e-01
+ <_>
+
+ 0 -1 2600 -1.4038000255823135e-02
+
+ 3.4924700856208801e-01 -2.2358700633049011e-01
+ <_>
+
+ 0 -1 2601 4.0440000593662262e-03
+
+ -3.8329001516103745e-02 5.1177299022674561e-01
+ <_>
+
+ 0 -1 2602 -4.9769999459385872e-03
+
+ -4.2888298630714417e-01 4.9173999577760696e-02
+ <_>
+
+ 0 -1 2603 -8.5183002054691315e-02
+
+ 6.6624599695205688e-01 7.8079998493194580e-03
+ <_>
+
+ 0 -1 2604 2.1559998858720064e-03
+
+ -4.9135199189186096e-01 6.9555997848510742e-02
+ <_>
+
+ 0 -1 2605 3.6384499073028564e-01
+
+ 1.2997099757194519e-01 -1.8949509859085083e+00
+ <_>
+
+ 0 -1 2606 2.2082500159740448e-01
+
+ -5.7211998850107193e-02 -1.4281120300292969e+00
+ <_>
+
+ 0 -1 2607 -1.6140000894665718e-02
+
+ -5.7589399814605713e-01 1.8062500655651093e-01
+ <_>
+
+ 0 -1 2608 -4.8330001533031464e-02
+
+ 9.7308498620986938e-01 -1.6513000428676605e-01
+ <_>
+
+ 0 -1 2609 1.7529999837279320e-02
+
+ 1.7932699620723724e-01 -2.7948901057243347e-01
+ <_>
+
+ 0 -1 2610 -3.4309998154640198e-02
+
+ -8.1072497367858887e-01 -1.6596000641584396e-02
+ <_>
+
+ 0 -1 2611 -4.5830002054572105e-03
+
+ 2.7908998727798462e-01 -7.4519999325275421e-03
+ <_>
+
+ 0 -1 2612 1.2896400690078735e-01
+
+ -1.3508500158786774e-01 2.5411539077758789e+00
+ <_>
+
+ 0 -1 2613 3.0361000448465347e-02
+
+ -6.8419001996517181e-02 2.8734099864959717e-01
+ <_>
+
+ 0 -1 2614 4.4086001813411713e-02
+
+ -1.8135899305343628e-01 6.5413200855255127e-01
+ <_>
+
+ 0 -1 2615 3.0159999150782824e-03
+
+ -1.5690499544143677e-01 2.6963800191879272e-01
+ <_>
+
+ 0 -1 2616 -2.6336999610066414e-02
+
+ 2.9175600409507751e-01 -2.5274100899696350e-01
+ <_>
+
+ 0 -1 2617 -2.7866000309586525e-02
+
+ 4.4387501478195190e-01 5.5038001388311386e-02
+ <_>
+
+ 0 -1 2618 1.1725000105798244e-02
+
+ -1.9346499443054199e-01 4.6656700968742371e-01
+ <_>
+
+ 0 -1 2619 1.5689999563619494e-03
+
+ -8.2360003143548965e-03 2.5700899958610535e-01
+ <_>
+
+ 0 -1 2620 -3.5550000611692667e-03
+
+ -4.2430898547172546e-01 7.1174003183841705e-02
+ <_>
+
+ 0 -1 2621 -3.1695000827312469e-02
+
+ -8.5393500328063965e-01 1.6916200518608093e-01
+ <_>
+
+ 0 -1 2622 -3.2097000628709793e-02
+
+ 8.3784902095794678e-01 -1.7597299814224243e-01
+ <_>
+
+ 0 -1 2623 1.5544199943542480e-01
+
+ 9.9550001323223114e-02 2.3873300552368164e+00
+ <_>
+
+ 0 -1 2624 8.8045999407768250e-02
+
+ -1.8725299835205078e-01 6.2384301424026489e-01
+ <_>
+
+ 0 -1 2625 -1.6720000421628356e-03
+
+ 2.5008699297904968e-01 -6.5118998289108276e-02
+ <_>
+
+ 0 -1 2626 9.3409996479749680e-03
+
+ -3.5378900170326233e-01 1.0715000331401825e-01
+ <_>
+
+ 0 -1 2627 3.7138000130653381e-02
+
+ 1.6387000679969788e-01 -9.1718399524688721e-01
+ <_>
+
+ 0 -1 2628 8.0183997750282288e-02
+
+ -1.4812999963760376e-01 1.4895190000534058e+00
+ <_>
+
+ 0 -1 2629 -7.9100002767518163e-04
+
+ -2.1326899528503418e-01 1.9676400721073151e-01
+ <_>
+
+ 0 -1 2630 -5.0400001928210258e-03
+
+ -7.1318697929382324e-01 1.8240000354126096e-03
+ <_>
+
+ 0 -1 2631 1.1962399631738663e-01
+
+ 3.3098999410867691e-02 1.0441709756851196e+00
+ <_>
+
+ 0 -1 2632 -4.5280000194907188e-03
+
+ -2.7308499813079834e-01 2.7229800820350647e-01
+ <_>
+
+ 0 -1 2633 -2.9639000073075294e-02
+
+ 3.6225798726081848e-01 5.6795001029968262e-02
+ <_>
+
+ 0 -1 2634 2.6650000363588333e-02
+
+ -4.8041000962257385e-02 -9.6723502874374390e-01
+ <_>
+
+ 0 -1 2635 4.4422000646591187e-02
+
+ 1.3052900135517120e-01 -3.5077300667762756e-01
+ <_>
+
+ 0 -1 2636 -2.4359999224543571e-02
+
+ -1.0766899585723877e+00 -5.1222998648881912e-02
+ <_>
+
+ 0 -1 2637 1.9734999164938927e-02
+
+ 2.6238000020384789e-02 2.8070500493049622e-01
+ <_>
+
+ 0 -1 2638 5.4930001497268677e-03
+
+ -2.6111298799514771e-01 2.1011400222778320e-01
+ <_>
+
+ 0 -1 2639 -2.3200300335884094e-01
+
+ -1.7748440504074097e+00 1.1482600122690201e-01
+ <_>
+
+ 0 -1 2640 -2.5614000856876373e-02
+
+ 2.9900801181793213e-01 -2.2502499818801880e-01
+ <_>
+
+ 0 -1 2641 -6.4949998632073402e-03
+
+ 1.9563800096511841e-01 -9.9762998521327972e-02
+ <_>
+
+ 0 -1 2642 3.9840000681579113e-03
+
+ -4.3021500110626221e-01 8.1261001527309418e-02
+ <_>
+
+ 0 -1 2643 -3.5813000053167343e-02
+
+ -5.0987398624420166e-01 1.6345900297164917e-01
+ <_>
+
+ 0 -1 2644 -1.4169000089168549e-02
+
+ 7.7978098392486572e-01 -1.7476299405097961e-01
+ <_>
+
+ 0 -1 2645 -1.2642100453376770e-01
+
+ -6.3047897815704346e-01 1.2728300690650940e-01
+ <_>
+
+ 0 -1 2646 6.8677999079227448e-02
+
+ -4.6447999775409698e-02 -1.1128979921340942e+00
+ <_>
+
+ 0 -1 2647 8.5864998400211334e-02
+
+ 1.1835400015115738e-01 -4.8235158920288086e+00
+ <_>
+
+ 0 -1 2648 1.5511999838054180e-02
+
+ -1.7467999830842018e-02 -6.3693398237228394e-01
+ <_>
+
+ 0 -1 2649 8.1091001629829407e-02
+
+ 8.6133003234863281e-02 2.4559431076049805e+00
+ <_>
+
+ 0 -1 2650 1.8495000898838043e-02
+
+ 4.0229000151157379e-02 -5.0858199596405029e-01
+ <_>
+
+ 0 -1 2651 -8.6320996284484863e-02
+
+ -1.9006760120391846e+00 1.1019100248813629e-01
+ <_>
+
+ 0 -1 2652 7.2355002164840698e-02
+
+ -6.2111999839544296e-02 -1.4165179729461670e+00
+ <_>
+
+ 0 -1 2653 -7.8179001808166504e-02
+
+ 8.8849300146102905e-01 4.2369998991489410e-02
+ <_>
+
+ 0 -1 2654 9.6681997179985046e-02
+
+ -2.2094200551509857e-01 3.3575099706649780e-01
+ <_>
+
+ 0 -1 2655 -3.9875999093055725e-02
+
+ 5.7804799079895020e-01 4.5347999781370163e-02
+ <_>
+
+ 0 -1 2656 -9.5349997282028198e-03
+
+ -5.4175698757171631e-01 3.2399999909102917e-03
+ <_>
+
+ 0 -1 2657 4.0600000647827983e-04
+
+ -8.1549003720283508e-02 3.5837900638580322e-01
+ <_>
+
+ 0 -1 2658 1.2107999995350838e-02
+
+ -2.0280399918556213e-01 4.3768000602722168e-01
+ <_>
+
+ 0 -1 2659 -2.0873999223113060e-02
+
+ 4.1469898819923401e-01 -4.5568000525236130e-02
+ <_>
+
+ 0 -1 2660 5.7888001203536987e-02
+
+ -2.9009999707341194e-02 -9.1822302341461182e-01
+ <_>
+
+ 0 -1 2661 1.3200000103097409e-04
+
+ -1.1772400140762329e-01 2.0000000298023224e-01
+ <_>
+
+ 0 -1 2662 -1.7137000337243080e-02
+
+ 3.3004799485206604e-01 -2.3055200278759003e-01
+ <_>
+
+ 0 -1 2663 3.0655000358819962e-02
+
+ -2.1545000374317169e-02 2.6878198981285095e-01
+ <_>
+
+ 0 -1 2664 -7.8699999721720815e-04
+
+ -4.4100698828697205e-01 4.9157999455928802e-02
+ <_>
+
+ 0 -1 2665 8.8036999106407166e-02
+
+ 1.1782000213861465e-01 -2.8293309211730957e+00
+ <_>
+
+ 0 -1 2666 -3.9028998464345932e-02
+
+ 9.1777199506759644e-01 -1.5827399492263794e-01
+ <_>
+
+ 0 -1 2667 8.0105997622013092e-02
+
+ 1.1289200186729431e-01 -1.9937280416488647e+00
+ <_>
+
+ 0 -1 2668 3.9538998156785965e-02
+
+ -1.4357399940490723e-01 1.3085240125656128e+00
+ <_>
+
+ 0 -1 2669 2.0684000104665756e-02
+
+ 2.0048099756240845e-01 -4.4186998158693314e-02
+ <_>
+
+ 0 -1 2670 -6.7037999629974365e-02
+
+ 3.2618600130081177e-01 -2.0550400018692017e-01
+ <_>
+
+ 0 -1 2671 4.6815000474452972e-02
+
+ 1.5825299918651581e-01 -9.5535099506378174e-01
+ <_>
+
+ 0 -1 2672 7.8443996608257294e-02
+
+ -7.4651002883911133e-02 -2.1161499023437500e+00
+ <_>
+
+ 0 -1 2673 6.6380001604557037e-02
+
+ 1.1641900241374969e-01 -1.6113519668579102e+00
+ <_>
+
+ 0 -1 2674 3.0053999274969101e-02
+
+ -1.6562600433826447e-01 7.0025402307510376e-01
+ <_>
+
+ 0 -1 2675 1.7119999974966049e-02
+
+ 2.2627699375152588e-01 -4.0114998817443848e-01
+ <_>
+
+ 0 -1 2676 2.0073000341653824e-02
+
+ -1.9389699399471283e-01 4.4420298933982849e-01
+ <_>
+
+ 0 -1 2677 3.3101998269557953e-02
+
+ 1.1637499928474426e-01 -1.5771679878234863e+00
+ <_>
+
+ 0 -1 2678 -1.4882000163197517e-02
+
+ -8.9680302143096924e-01 -4.2010001838207245e-02
+ <_>
+
+ 0 -1 2679 -1.0281000286340714e-02
+
+ 3.5602998733520508e-01 -1.3124000281095505e-02
+ <_>
+
+ 0 -1 2680 -2.8695000335574150e-02
+
+ -4.6039599180221558e-01 2.6801999658346176e-02
+ <_>
+
+ 0 -1 2681 -4.7189998440444469e-03
+
+ 2.3788799345493317e-01 -6.5518997609615326e-02
+ <_>
+
+ 0 -1 2682 3.2201600074768066e-01
+
+ -2.8489999473094940e-02 -8.4234601259231567e-01
+ <_>
+
+ 0 -1 2683 -1.7045000568032265e-02
+
+ -5.0938802957534790e-01 1.6057600080966949e-01
+ <_>
+
+ 0 -1 2684 -7.3469998314976692e-03
+
+ -5.4154998064041138e-01 4.7320001758635044e-03
+ <_>
+
+ 0 -1 2685 -3.0001999810338020e-02
+
+ -8.8785797357559204e-01 1.3621799647808075e-01
+ <_>
+
+ 0 -1 2686 -1.1292999610304832e-02
+
+ 8.0615198612213135e-01 -1.6159500181674957e-01
+ <_>
+
+ 0 -1 2687 4.7749998047947884e-03
+
+ 1.2968000024557114e-02 5.5079901218414307e-01
+ <_>
+
+ 0 -1 2688 5.0710001960396767e-03
+
+ -4.5728001743555069e-02 -1.0766259431838989e+00
+ <_>
+
+ 0 -1 2689 1.9344100356101990e-01
+
+ 7.1262001991271973e-02 1.1694519519805908e+00
+ <_>
+
+ 0 -1 2690 5.3750001825392246e-03
+
+ -1.9736200571060181e-01 3.8206899166107178e-01
+ <_>
+
+ 0 -1 2691 -6.8276003003120422e-02
+
+ -5.4372339248657227e+00 1.1151900142431259e-01
+ <_>
+
+ 0 -1 2692 -3.4933000802993774e-02
+
+ 4.4793400168418884e-01 -1.8657900393009186e-01
+ <_>
+
+ 0 -1 2693 5.1219998858869076e-03
+
+ -1.4871999621391296e-02 1.8413899838924408e-01
+ <_>
+
+ 0 -1 2694 9.5311999320983887e-02
+
+ -1.5117099881172180e-01 9.4991499185562134e-01
+ <_>
+
+ 0 -1 2695 -6.2849000096321106e-02
+
+ 4.6473601460456848e-01 3.8405001163482666e-02
+ <_>
+
+ 0 -1 2696 -1.7040699720382690e-01
+
+ -1.6499999761581421e+00 -6.3236996531486511e-02
+ <_>
+
+ 0 -1 2697 1.0583999566733837e-02
+
+ -3.8348998874425888e-02 4.1913801431655884e-01
+ <_>
+
+ 0 -1 2698 -4.1579000651836395e-02
+
+ 3.4461900591850281e-01 -2.1187700331211090e-01
+ <_>
+
+ 0 -1 2699 1.2718600034713745e-01
+
+ 1.2398199737071991e-01 -2.1254889965057373e+00
+ <_>
+
+ 0 -1 2700 8.2557000219821930e-02
+
+ -6.2024001032114029e-02 -1.4875819683074951e+00
+ <_>
+
+ 0 -1 2701 8.5293002426624298e-02
+
+ 1.7087999731302261e-02 3.2076600193977356e-01
+ <_>
+
+ 0 -1 2702 5.5544000118970871e-02
+
+ -2.7414000034332275e-01 1.8976399302482605e-01
+ <_>
+
+ 0 -1 2703 4.5650000683963299e-03
+
+ -1.7920200526714325e-01 2.7967301011085510e-01
+ <_>
+
+ 0 -1 2704 1.2997999787330627e-02
+
+ -3.2297500967979431e-01 2.6941800117492676e-01
+ <_>
+
+ 0 -1 2705 5.7891998440027237e-02
+
+ 1.2644399702548981e-01 -6.0713499784469604e-01
+ <_>
+
+ 0 -1 2706 -2.2824000567197800e-02
+
+ -4.9682098627090454e-01 2.2376999258995056e-02
+ <_>
+
+ 0 -1 2707 4.8312000930309296e-02
+
+ 4.3607000261545181e-02 4.8537799715995789e-01
+ <_>
+
+ 0 -1 2708 2.5714000687003136e-02
+
+ -4.2950998991727829e-02 -9.3023502826690674e-01
+ <_>
+
+ 0 -1 2709 6.9269998930394650e-03
+
+ -2.9680000152438879e-03 3.4296301007270813e-01
+ <_>
+
+ 0 -1 2710 -3.4446999430656433e-02
+
+ -1.5299769639968872e+00 -6.1014998704195023e-02
+ <_>
+
+ 0 -1 2711 2.9387999325990677e-02
+
+ 3.7595998495817184e-02 6.4172399044036865e-01
+ <_>
+
+ 0 -1 2712 -2.4319998919963837e-03
+
+ 9.9088996648788452e-02 -3.9688101410865784e-01
+ <_>
+ 200
+ -2.9928278923034668e+00
+
+ <_>
+
+ 0 -1 2713 -9.5944002270698547e-02
+
+ 6.2419098615646362e-01 -4.5875200629234314e-01
+ <_>
+
+ 0 -1 2714 1.6834000125527382e-02
+
+ -9.3072801828384399e-01 2.1563600003719330e-01
+ <_>
+
+ 0 -1 2715 2.6049999520182610e-02
+
+ -4.0532299876213074e-01 4.2256599664688110e-01
+ <_>
+
+ 0 -1 2716 3.6500001442618668e-04
+
+ 9.5288001000881195e-02 -6.3298100233078003e-01
+ <_>
+
+ 0 -1 2717 -6.6940002143383026e-03
+
+ 3.7243801355361938e-01 -3.0332401394844055e-01
+ <_>
+
+ 0 -1 2718 1.8874000757932663e-02
+
+ -2.3357200622558594e-01 4.0330699086189270e-01
+ <_>
+
+ 0 -1 2719 -1.6300000424962491e-04
+
+ 4.2886998504400253e-02 -7.7796798944473267e-01
+ <_>
+
+ 0 -1 2720 -7.6259002089500427e-02
+
+ -4.9628499150276184e-01 1.6335399448871613e-01
+ <_>
+
+ 0 -1 2721 5.0149001181125641e-02
+
+ 3.2747000455856323e-02 -8.0047899484634399e-01
+ <_>
+
+ 0 -1 2722 -2.9239999130368233e-03
+
+ -5.0002801418304443e-01 2.5480601191520691e-01
+ <_>
+
+ 0 -1 2723 1.6243999823927879e-02
+
+ 3.8913000375032425e-02 -7.0724898576736450e-01
+ <_>
+
+ 0 -1 2724 3.7811998277902603e-02
+
+ -6.6267997026443481e-02 7.3868799209594727e-01
+ <_>
+
+ 0 -1 2725 -1.2319999746978283e-02
+
+ 4.8696398735046387e-01 -2.4485599994659424e-01
+ <_>
+
+ 0 -1 2726 5.8003999292850494e-02
+
+ 1.3459099829196930e-01 -1.3232100009918213e-01
+ <_>
+
+ 0 -1 2727 4.8630000092089176e-03
+
+ -4.4172900915145874e-01 1.4005599915981293e-01
+ <_>
+
+ 0 -1 2728 4.5690998435020447e-02
+
+ 3.1217999756336212e-02 8.9818298816680908e-01
+ <_>
+
+ 0 -1 2729 2.1321000531315804e-02
+
+ 1.2008000165224075e-02 -8.6066198348999023e-01
+ <_>
+
+ 0 -1 2730 1.5679100155830383e-01
+
+ 1.4055999927222729e-02 8.5332900285720825e-01
+ <_>
+
+ 0 -1 2731 -1.0328999720513821e-02
+
+ 2.9022800922393799e-01 -2.9478800296783447e-01
+ <_>
+
+ 0 -1 2732 2.4290001019835472e-03
+
+ -4.0439900755882263e-01 1.9400200247764587e-01
+ <_>
+
+ 0 -1 2733 -2.3338999599218369e-02
+
+ 3.2945200800895691e-01 -2.5712698698043823e-01
+ <_>
+
+ 0 -1 2734 -6.8970001302659512e-03
+
+ -5.3352999687194824e-01 2.1635200083255768e-01
+ <_>
+
+ 0 -1 2735 -3.4403000026941299e-02
+
+ -1.4425489902496338e+00 -4.4682998210191727e-02
+ <_>
+
+ 0 -1 2736 -2.1235000342130661e-02
+
+ -7.9017502069473267e-01 1.9084100425243378e-01
+ <_>
+
+ 0 -1 2737 2.0620001014322042e-03
+
+ -2.6931199431419373e-01 3.1488001346588135e-01
+ <_>
+
+ 0 -1 2738 -4.2190002277493477e-03
+
+ -5.4464399814605713e-01 1.6574600338935852e-01
+ <_>
+
+ 0 -1 2739 -1.4334999956190586e-02
+
+ 2.2105000913143158e-02 -6.2342500686645508e-01
+ <_>
+
+ 0 -1 2740 -8.2120001316070557e-03
+
+ -4.9884998798370361e-01 1.9237099587917328e-01
+ <_>
+
+ 0 -1 2741 -9.3350000679492950e-03
+
+ -7.9131197929382324e-01 -1.4143999665975571e-02
+ <_>
+
+ 0 -1 2742 -3.7937998771667480e-02
+
+ 7.9841297864913940e-01 -3.3799000084400177e-02
+ <_>
+
+ 0 -1 2743 4.7059999778866768e-03
+
+ -3.3163401484489441e-01 2.0726299285888672e-01
+ <_>
+
+ 0 -1 2744 -4.4499998912215233e-03
+
+ -2.7256301045417786e-01 1.8402199447154999e-01
+ <_>
+
+ 0 -1 2745 5.2189999260008335e-03
+
+ -5.3096002340316772e-01 5.2607998251914978e-02
+ <_>
+
+ 0 -1 2746 -9.5399999991059303e-03
+
+ -5.6485402584075928e-01 1.9269399344921112e-01
+ <_>
+
+ 0 -1 2747 4.4969998300075531e-02
+
+ -1.7411500215530396e-01 9.5382601022720337e-01
+ <_>
+
+ 0 -1 2748 1.4209000393748283e-02
+
+ -9.1949000954627991e-02 2.4836100637912750e-01
+ <_>
+
+ 0 -1 2749 1.6380199790000916e-01
+
+ -5.8497000485658646e-02 -1.6404409408569336e+00
+ <_>
+
+ 0 -1 2750 2.5579999200999737e-03
+
+ 2.3447999358177185e-01 -9.2734001576900482e-02
+ <_>
+
+ 0 -1 2751 -3.8499999791383743e-03
+
+ 1.7880700528621674e-01 -3.5844099521636963e-01
+ <_>
+
+ 0 -1 2752 -2.5221999734640121e-02
+
+ -4.2903000116348267e-01 2.0244500041007996e-01
+ <_>
+
+ 0 -1 2753 -1.9415000453591347e-02
+
+ 5.8016300201416016e-01 -1.8806399405002594e-01
+ <_>
+
+ 0 -1 2754 1.4419999904930592e-02
+
+ 3.2846998423337936e-02 8.1980502605438232e-01
+ <_>
+
+ 0 -1 2755 5.1582999527454376e-02
+
+ 6.9176003336906433e-02 -4.5866298675537109e-01
+ <_>
+
+ 0 -1 2756 -3.7960000336170197e-02
+
+ -1.2553000450134277e+00 1.4332899451255798e-01
+ <_>
+
+ 0 -1 2757 -2.9560999944806099e-02
+
+ 5.3151798248291016e-01 -2.0596499741077423e-01
+ <_>
+
+ 0 -1 2758 -3.9110999554395676e-02
+
+ 1.1658719778060913e+00 5.3897000849246979e-02
+ <_>
+
+ 0 -1 2759 -2.9159000143408775e-02
+
+ 3.9307600259780884e-01 -2.2184500098228455e-01
+ <_>
+
+ 0 -1 2760 -8.3617001771926880e-02
+
+ -7.3744499683380127e-01 1.4268200099468231e-01
+ <_>
+
+ 0 -1 2761 4.2004001140594482e-01
+
+ -1.4277400076389313e-01 1.7894840240478516e+00
+ <_>
+
+ 0 -1 2762 6.0005001723766327e-02
+
+ 1.1976700276136398e-01 -1.8886189460754395e+00
+ <_>
+
+ 0 -1 2763 -1.8981000408530235e-02
+
+ -1.4148449897766113e+00 -5.6522998958826065e-02
+ <_>
+
+ 0 -1 2764 -6.0049998573958874e-03
+
+ 4.4170799851417542e-01 -1.0200800001621246e-01
+ <_>
+
+ 0 -1 2765 -5.8214001357555389e-02
+
+ -1.3918470144271851e+00 -4.8268999904394150e-02
+ <_>
+
+ 0 -1 2766 -1.2271000072360039e-02
+
+ 5.1317697763442993e-01 -9.3696996569633484e-02
+ <_>
+
+ 0 -1 2767 4.6585999429225922e-02
+
+ -5.7484000921249390e-02 -1.4283169507980347e+00
+ <_>
+
+ 0 -1 2768 1.2110000243410468e-03
+
+ -8.0891996622085571e-02 3.2333201169967651e-01
+ <_>
+
+ 0 -1 2769 -8.8642001152038574e-02
+
+ -8.6449098587036133e-01 -3.3146999776363373e-02
+ <_>
+
+ 0 -1 2770 -2.3184999823570251e-02
+
+ 5.2162200212478638e-01 -1.6168000176548958e-02
+ <_>
+
+ 0 -1 2771 4.3090000748634338e-02
+
+ -1.6153800487518311e-01 1.0915000438690186e+00
+ <_>
+
+ 0 -1 2772 2.0599999697878957e-04
+
+ -1.7091499269008636e-01 3.1236699223518372e-01
+ <_>
+
+ 0 -1 2773 8.9159999042749405e-03
+
+ -6.7039998248219490e-03 -6.8810397386550903e-01
+ <_>
+
+ 0 -1 2774 -1.7752999439835548e-02
+
+ 6.3292801380157471e-01 -4.2360001243650913e-03
+ <_>
+
+ 0 -1 2775 6.2299999408423901e-03
+
+ -3.3637198805809021e-01 1.2790599465370178e-01
+ <_>
+
+ 0 -1 2776 2.2770000621676445e-02
+
+ -3.4703999757766724e-02 3.9141800999641418e-01
+ <_>
+
+ 0 -1 2777 -2.1534999832510948e-02
+
+ 6.4765101671218872e-01 -2.0097799599170685e-01
+ <_>
+
+ 0 -1 2778 6.1758998781442642e-02
+
+ 5.4297000169754028e-02 9.0700101852416992e-01
+ <_>
+
+ 0 -1 2779 -7.8069999814033508e-02
+
+ 6.5523397922515869e-01 -1.9754399359226227e-01
+ <_>
+
+ 0 -1 2780 1.1315000243484974e-02
+
+ 1.9385300576686859e-01 -5.1707297563552856e-01
+ <_>
+
+ 0 -1 2781 -2.5590000674128532e-02
+
+ -9.3096500635147095e-01 -3.1546998769044876e-02
+ <_>
+
+ 0 -1 2782 -3.8058999925851822e-02
+
+ -6.8326902389526367e-01 1.2709100544452667e-01
+ <_>
+
+ 0 -1 2783 9.7970003262162209e-03
+
+ 1.5523999929428101e-02 -6.3347899913787842e-01
+ <_>
+
+ 0 -1 2784 -1.3841999694705009e-02
+
+ 1.0060529708862305e+00 6.2812998890876770e-02
+ <_>
+
+ 0 -1 2785 8.3459997549653053e-03
+
+ -2.3383200168609619e-01 3.0982699990272522e-01
+ <_>
+
+ 0 -1 2786 -7.1439996361732483e-02
+
+ -7.2505402565002441e-01 1.7148299515247345e-01
+ <_>
+
+ 0 -1 2787 1.0006000287830830e-02
+
+ -2.2071999311447144e-01 3.5266199707984924e-01
+ <_>
+
+ 0 -1 2788 1.1005300283432007e-01
+
+ 1.6662000119686127e-01 -7.4318999052047729e-01
+ <_>
+
+ 0 -1 2789 3.5310998558998108e-02
+
+ -2.3982700705528259e-01 4.1435998678207397e-01
+ <_>
+
+ 0 -1 2790 -1.1174699664115906e-01
+
+ 5.1045399904251099e-01 2.2319999989122152e-03
+ <_>
+
+ 0 -1 2791 -1.1367800086736679e-01
+
+ 9.0475201606750488e-01 -1.6615299880504608e-01
+ <_>
+
+ 0 -1 2792 1.6667999327182770e-02
+
+ 1.4024500548839569e-01 -5.2178502082824707e-01
+ <_>
+
+ 0 -1 2793 -8.0340001732110977e-03
+
+ -6.6178399324417114e-01 3.7640000227838755e-03
+ <_>
+
+ 0 -1 2794 -3.3096998929977417e-02
+
+ 8.0185902118682861e-01 5.9385001659393311e-02
+ <_>
+
+ 0 -1 2795 1.2547999620437622e-02
+
+ -3.3545500040054321e-01 1.4578600227832794e-01
+ <_>
+
+ 0 -1 2796 -4.2073998600244522e-02
+
+ -5.5509102344512939e-01 1.3266600668430328e-01
+ <_>
+
+ 0 -1 2797 2.5221999734640121e-02
+
+ -6.1631999909877777e-02 -1.3678770065307617e+00
+ <_>
+
+ 0 -1 2798 -2.4268999695777893e-02
+
+ 3.4185099601745605e-01 -7.4160001240670681e-03
+ <_>
+
+ 0 -1 2799 -1.2280000373721123e-02
+
+ 2.7745801210403442e-01 -3.1033900380134583e-01
+ <_>
+
+ 0 -1 2800 -1.1377099901437759e-01
+
+ 1.1719540357589722e+00 8.3681002259254456e-02
+ <_>
+
+ 0 -1 2801 -8.4771998226642609e-02
+
+ 8.1694799661636353e-01 -1.7837500572204590e-01
+ <_>
+
+ 0 -1 2802 -2.4552000686526299e-02
+
+ -1.8627299368381500e-01 1.4340099692344666e-01
+ <_>
+
+ 0 -1 2803 -9.0269995853304863e-03
+
+ 3.2659199833869934e-01 -2.3541299998760223e-01
+ <_>
+
+ 0 -1 2804 1.1177999898791313e-02
+
+ 1.9761200249195099e-01 -2.1701000630855560e-02
+ <_>
+
+ 0 -1 2805 -2.9366999864578247e-02
+
+ -9.3414801359176636e-01 -2.1704999729990959e-02
+ <_>
+
+ 0 -1 2806 6.3640000298619270e-03
+
+ 2.5573000311851501e-02 4.6412798762321472e-01
+ <_>
+
+ 0 -1 2807 1.4026000164449215e-02
+
+ -2.1228599548339844e-01 4.0078800916671753e-01
+ <_>
+
+ 0 -1 2808 -1.3341999612748623e-02
+
+ 7.4202698469161987e-01 2.9001999646425247e-02
+ <_>
+
+ 0 -1 2809 2.8422799706459045e-01
+
+ -1.9243599474430084e-01 4.3631199002265930e-01
+ <_>
+
+ 0 -1 2810 -2.3724000155925751e-01
+
+ 6.9736397266387939e-01 6.9307997822761536e-02
+ <_>
+
+ 0 -1 2811 -1.1169700324535370e-01
+
+ 3.9147201180458069e-01 -2.0922000706195831e-01
+ <_>
+
+ 0 -1 2812 1.2787500023841858e-01
+
+ -7.2555996477603912e-02 3.6088201403617859e-01
+ <_>
+
+ 0 -1 2813 -6.2900997698307037e-02
+
+ 9.5424997806549072e-01 -1.5402799844741821e-01
+ <_>
+
+ 0 -1 2814 1.7439000308513641e-02
+
+ -5.1134999841451645e-02 2.7750301361083984e-01
+ <_>
+
+ 0 -1 2815 1.2319999514147639e-03
+
+ 7.5627997517585754e-02 -3.6456099152565002e-01
+ <_>
+
+ 0 -1 2816 2.7495000511407852e-02
+
+ 5.1844000816345215e-02 4.1562598943710327e-01
+ <_>
+
+ 0 -1 2817 -4.3543998152017593e-02
+
+ 7.1969997882843018e-01 -1.7132200300693512e-01
+ <_>
+
+ 0 -1 2818 1.1025999672710896e-02
+
+ 1.4354600012302399e-01 -6.5403002500534058e-01
+ <_>
+
+ 0 -1 2819 2.0865999162197113e-02
+
+ 4.0089000016450882e-02 -4.5743298530578613e-01
+ <_>
+
+ 0 -1 2820 -2.2304000332951546e-02
+
+ 5.3855001926422119e-01 7.1662999689579010e-02
+ <_>
+
+ 0 -1 2821 3.2492000609636307e-02
+
+ -4.5991998165845871e-02 -1.0047069787979126e+00
+ <_>
+
+ 0 -1 2822 1.2269999831914902e-02
+
+ 3.4334998577833176e-02 4.2431798577308655e-01
+ <_>
+
+ 0 -1 2823 8.3820000290870667e-03
+
+ -2.5850600004196167e-01 2.6263499259948730e-01
+ <_>
+
+ 0 -1 2824 3.7353999912738800e-02
+
+ 1.5692499279975891e-01 -1.0429090261459351e+00
+ <_>
+
+ 0 -1 2825 -1.4111000113189220e-02
+
+ -7.3177701234817505e-01 -2.0276999101042747e-02
+ <_>
+
+ 0 -1 2826 5.7066999375820160e-02
+
+ 8.3360001444816589e-02 1.5661499500274658e+00
+ <_>
+
+ 0 -1 2827 4.9680001102387905e-03
+
+ -3.5318198800086975e-01 1.4698399603366852e-01
+ <_>
+
+ 0 -1 2828 -2.4492999538779259e-02
+
+ 2.8325900435447693e-01 -3.4640000667423010e-03
+ <_>
+
+ 0 -1 2829 -1.1254999786615372e-02
+
+ -8.4017497301101685e-01 -3.6251999437808990e-02
+ <_>
+
+ 0 -1 2830 3.4533001482486725e-02
+
+ 1.4998500049114227e-01 -8.7367099523544312e-01
+ <_>
+
+ 0 -1 2831 2.4303000420331955e-02
+
+ -1.8787500262260437e-01 5.9483999013900757e-01
+ <_>
+
+ 0 -1 2832 -7.8790001571178436e-03
+
+ 4.4315698742866516e-01 -5.6570999324321747e-02
+ <_>
+
+ 0 -1 2833 3.5142000764608383e-02
+
+ -5.6494999676942825e-02 -1.3617190122604370e+00
+ <_>
+
+ 0 -1 2834 4.6259998343884945e-03
+
+ -3.1161698698997498e-01 2.5447699427604675e-01
+ <_>
+
+ 0 -1 2835 -8.3131000399589539e-02
+
+ 1.6424349546432495e+00 -1.4429399371147156e-01
+ <_>
+
+ 0 -1 2836 -1.4015999622642994e-02
+
+ -7.7819502353668213e-01 1.7173300683498383e-01
+ <_>
+
+ 0 -1 2837 1.2450000504031777e-03
+
+ -2.3191399872303009e-01 2.8527900576591492e-01
+ <_>
+
+ 0 -1 2838 -1.6803000122308731e-02
+
+ -3.5965099930763245e-01 2.0412999391555786e-01
+ <_>
+
+ 0 -1 2839 -7.6747998595237732e-02
+
+ 7.8050500154495239e-01 -1.5612800419330597e-01
+ <_>
+
+ 0 -1 2840 -2.3671999573707581e-01
+
+ 1.1813700199127197e+00 7.8111998736858368e-02
+ <_>
+
+ 0 -1 2841 -1.0057400166988373e-01
+
+ -4.7104099392890930e-01 7.9172998666763306e-02
+ <_>
+
+ 0 -1 2842 1.3239999534562230e-03
+
+ 2.2262699902057648e-01 -3.7099799513816833e-01
+ <_>
+
+ 0 -1 2843 2.2152999415993690e-02
+
+ -3.8649000227451324e-02 -9.2274999618530273e-01
+ <_>
+
+ 0 -1 2844 -1.1246199905872345e-01
+
+ 4.1899600625038147e-01 8.0411002039909363e-02
+ <_>
+
+ 0 -1 2845 1.6481000930070877e-02
+
+ -1.6756699979305267e-01 7.1842402219772339e-01
+ <_>
+
+ 0 -1 2846 6.8113997578620911e-02
+
+ 1.5719899535179138e-01 -8.7681102752685547e-01
+ <_>
+
+ 0 -1 2847 1.6011999920010567e-02
+
+ -4.1600000113248825e-03 -5.9327799081802368e-01
+ <_>
+
+ 0 -1 2848 4.6640001237392426e-03
+
+ -3.0153999105095863e-02 4.8345300555229187e-01
+ <_>
+
+ 0 -1 2849 6.7579997703433037e-03
+
+ -2.2667400538921356e-01 3.3662301301956177e-01
+ <_>
+
+ 0 -1 2850 4.7289999201893806e-03
+
+ -6.0373999178409576e-02 3.1458100676536560e-01
+ <_>
+
+ 0 -1 2851 2.5869999080896378e-03
+
+ -2.9872599244117737e-01 1.7787499725818634e-01
+ <_>
+
+ 0 -1 2852 2.8989999555051327e-03
+
+ 2.1890200674533844e-01 -2.9567098617553711e-01
+ <_>
+
+ 0 -1 2853 -3.0053999274969101e-02
+
+ 1.2150429487228394e+00 -1.4354999363422394e-01
+ <_>
+
+ 0 -1 2854 1.4181000180542469e-02
+
+ 1.2451999820768833e-02 5.5490100383758545e-01
+ <_>
+
+ 0 -1 2855 -6.0527000576257706e-02
+
+ -1.4933999776840210e+00 -6.5227001905441284e-02
+ <_>
+
+ 0 -1 2856 -1.9882999360561371e-02
+
+ -3.8526400923728943e-01 1.9761200249195099e-01
+ <_>
+
+ 0 -1 2857 3.1218999996781349e-02
+
+ -2.1281200647354126e-01 2.9446500539779663e-01
+ <_>
+
+ 0 -1 2858 1.8271999433636665e-02
+
+ 9.7200000891461968e-04 6.6814202070236206e-01
+ <_>
+
+ 0 -1 2859 1.1089999461546540e-03
+
+ -6.2467902898788452e-01 -1.6599999507889152e-03
+ <_>
+
+ 0 -1 2860 -3.6713998764753342e-02
+
+ -4.2333900928497314e-01 1.2084700167179108e-01
+ <_>
+
+ 0 -1 2861 1.2044000439345837e-02
+
+ 2.5882000103592873e-02 -5.0732398033142090e-01
+ <_>
+
+ 0 -1 2862 7.4749000370502472e-02
+
+ 1.3184699416160583e-01 -2.1739600598812103e-01
+ <_>
+
+ 0 -1 2863 -2.3473200201988220e-01
+
+ 1.1775610446929932e+00 -1.5114699304103851e-01
+ <_>
+
+ 0 -1 2864 1.4096499979496002e-01
+
+ 3.3991001546382904e-02 3.9923098683357239e-01
+ <_>
+
+ 0 -1 2865 6.1789997853338718e-03
+
+ -3.1806701421737671e-01 1.1681699752807617e-01
+ <_>
+
+ 0 -1 2866 -5.7216998189687729e-02
+
+ 8.4399098157882690e-01 8.3889000117778778e-02
+ <_>
+
+ 0 -1 2867 -5.5227000266313553e-02
+
+ 3.6888301372528076e-01 -1.8913400173187256e-01
+ <_>
+
+ 0 -1 2868 -2.1583000198006630e-02
+
+ -5.2161800861358643e-01 1.5772600471973419e-01
+ <_>
+
+ 0 -1 2869 2.5747999548912048e-02
+
+ -5.9921998530626297e-02 -1.0674990415573120e+00
+ <_>
+
+ 0 -1 2870 -1.3098999857902527e-02
+
+ 7.8958398103713989e-01 5.2099999040365219e-02
+ <_>
+
+ 0 -1 2871 2.2799998987466097e-03
+
+ -1.1704430580139160e+00 -5.9356998652219772e-02
+ <_>
+
+ 0 -1 2872 8.8060004636645317e-03
+
+ 4.1717998683452606e-02 6.6352599859237671e-01
+ <_>
+
+ 0 -1 2873 -8.9699998497962952e-03
+
+ -3.5862699151039124e-01 6.0458000749349594e-02
+ <_>
+
+ 0 -1 2874 4.0230001322925091e-03
+
+ 2.0979399979114532e-01 -2.4806000292301178e-01
+ <_>
+
+ 0 -1 2875 2.5017000734806061e-02
+
+ -1.8795900046825409e-01 3.9547100663185120e-01
+ <_>
+
+ 0 -1 2876 -5.9009999968111515e-03
+
+ 2.5663900375366211e-01 -9.4919003546237946e-02
+ <_>
+
+ 0 -1 2877 4.3850000947713852e-03
+
+ 3.3139001578092575e-02 -4.6075400710105896e-01
+ <_>
+
+ 0 -1 2878 -3.3771999180316925e-02
+
+ -9.8881602287292480e-01 1.4636899530887604e-01
+ <_>
+
+ 0 -1 2879 4.4523000717163086e-02
+
+ -1.3286699354648590e-01 1.5796790122985840e+00
+ <_>
+
+ 0 -1 2880 -4.0929000824689865e-02
+
+ 3.3877098560333252e-01 7.4970997869968414e-02
+ <_>
+
+ 0 -1 2881 3.9351999759674072e-02
+
+ -1.8327899277210236e-01 4.6980699896812439e-01
+ <_>
+
+ 0 -1 2882 -7.0322997868061066e-02
+
+ -9.8322701454162598e-01 1.1808100342750549e-01
+ <_>
+
+ 0 -1 2883 3.5743001848459244e-02
+
+ -3.3050999045372009e-02 -8.3610898256301880e-01
+ <_>
+
+ 0 -1 2884 -4.2961999773979187e-02
+
+ 1.1670809984207153e+00 8.0692000687122345e-02
+ <_>
+
+ 0 -1 2885 -2.1007999777793884e-02
+
+ 6.3869798183441162e-01 -1.7626300454139709e-01
+ <_>
+
+ 0 -1 2886 -1.5742200613021851e-01
+
+ -2.3302499949932098e-01 1.2517499923706055e-01
+ <_>
+
+ 0 -1 2887 7.8659998252987862e-03
+
+ -2.2037999331951141e-01 2.7196800708770752e-01
+ <_>
+
+ 0 -1 2888 2.3622000589966774e-02
+
+ 1.6127300262451172e-01 -4.3329000473022461e-01
+ <_>
+
+ 0 -1 2889 7.4692003428936005e-02
+
+ -1.6991999745368958e-01 5.8884900808334351e-01
+ <_>
+
+ 0 -1 2890 -6.4799998654052615e-04
+
+ 2.5842899084091187e-01 -3.5911999642848969e-02
+ <_>
+
+ 0 -1 2891 -1.6290999948978424e-02
+
+ -7.6764398813247681e-01 -2.0472999662160873e-02
+ <_>
+
+ 0 -1 2892 -3.3133998513221741e-02
+
+ -2.7180099487304688e-01 1.4325700700283051e-01
+ <_>
+
+ 0 -1 2893 4.8797998577356339e-02
+
+ 7.6408997178077698e-02 -4.1445198655128479e-01
+ <_>
+
+ 0 -1 2894 2.2869999520480633e-03
+
+ -3.8628999143838882e-02 2.0753799378871918e-01
+ <_>
+
+ 0 -1 2895 4.5304000377655029e-02
+
+ -1.7777900397777557e-01 6.3461399078369141e-01
+ <_>
+
+ 0 -1 2896 1.0705800354480743e-01
+
+ 1.8972299993038177e-01 -5.1236200332641602e-01
+ <_>
+
+ 0 -1 2897 -4.0525000542402267e-02
+
+ 7.0614999532699585e-01 -1.7803299427032471e-01
+ <_>
+
+ 0 -1 2898 3.1968999654054642e-02
+
+ 6.8149998784065247e-02 6.8733102083206177e-01
+ <_>
+
+ 0 -1 2899 -5.7617001235485077e-02
+
+ 7.5170499086380005e-01 -1.5764999389648438e-01
+ <_>
+
+ 0 -1 2900 1.3593999668955803e-02
+
+ 1.9411900639533997e-01 -2.4561899900436401e-01
+ <_>
+
+ 0 -1 2901 7.1396000683307648e-02
+
+ -4.6881001442670822e-02 -8.8198298215866089e-01
+ <_>
+
+ 0 -1 2902 -1.4895999804139137e-02
+
+ -4.4532400369644165e-01 1.7679899930953979e-01
+ <_>
+
+ 0 -1 2903 -1.0026000440120697e-02
+
+ 6.5122699737548828e-01 -1.6709999740123749e-01
+ <_>
+
+ 0 -1 2904 3.7589999847114086e-03
+
+ -5.8301001787185669e-02 3.4483298659324646e-01
+ <_>
+
+ 0 -1 2905 1.6263000667095184e-02
+
+ -1.5581500530242920e-01 8.6432701349258423e-01
+ <_>
+
+ 0 -1 2906 -4.0176000446081161e-02
+
+ -6.1028599739074707e-01 1.1796399950981140e-01
+ <_>
+
+ 0 -1 2907 2.7080999687314034e-02
+
+ -4.9601998180150986e-02 -8.9990001916885376e-01
+ <_>
+
+ 0 -1 2908 5.2420001477003098e-02
+
+ 1.1297199875116348e-01 -1.0833640098571777e+00
+ <_>
+
+ 0 -1 2909 -1.9160000607371330e-02
+
+ -7.9880100488662720e-01 -3.4079000353813171e-02
+ <_>
+
+ 0 -1 2910 -3.7730000913143158e-03
+
+ -1.9124099612236023e-01 2.1535199880599976e-01
+ <_>
+
+ 0 -1 2911 7.5762003660202026e-02
+
+ -1.3421699404716492e-01 1.6807060241699219e+00
+ <_>
+
+ 0 -1 2912 -2.2173000499606133e-02
+
+ 4.8600998520851135e-01 3.6160000599920750e-03
+
+ <_>
+
+ <_>
+ 6 4 12 9 -1.
+ <_>
+ 6 7 12 3 3.
+ <_>
+
+ <_>
+ 6 4 12 7 -1.
+ <_>
+ 10 4 4 7 3.
+ <_>
+
+ <_>
+ 3 9 18 9 -1.
+ <_>
+ 3 12 18 3 3.
+ <_>
+
+ <_>
+ 8 18 9 6 -1.
+ <_>
+ 8 20 9 2 3.
+ <_>
+
+ <_>
+ 3 5 4 19 -1.
+ <_>
+ 5 5 2 19 2.
+ <_>
+
+ <_>
+ 6 5 12 16 -1.
+ <_>
+ 6 13 12 8 2.
+ <_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community_board.py b/apps/api/services/hub_svc/community_board.py
new file mode 100644
index 0000000..0ec1a99
--- /dev/null
+++ b/apps/api/services/hub_svc/community_board.py
@@ -0,0 +1,442 @@
+"""Skill swap · meetup reviews · report/block · wrapped — PocketBase only."""
+from __future__ import annotations
+
+from typing import Any
+
+from nomadro_pb import get_pb, pb_quote
+from nomadro_pb.ensure import ensure_selected
+from hub_svc import pb_data
+from hub_svc.pb_data import _now, _uid
+
+C_SKILLS = "hub_skill_posts"
+C_REVIEWS = "hub_meetup_reviews"
+C_BLOCKS = "hub_blocks"
+C_REPORTS = "hub_reports"
+
+
+def ensure_community_tables() -> None:
+ from hub_svc.pb_data import HUB_COLLECTION_NAMES
+
+ ensure_selected(HUB_COLLECTION_NAMES)
+
+
+def create_skill_post(
+ guest_id: str,
+ *,
+ author: str,
+ city: str,
+ offer: str,
+ want: str,
+ note: str = "",
+) -> dict[str, Any]:
+ ensure_community_tables()
+ item = {
+ "id": _uid("sk"),
+ "guestId": guest_id,
+ "author": (author or "游民").strip()[:64] or "游民",
+ "city": (city or "").strip()[:64],
+ "offer": (offer or "").strip()[:200],
+ "want": (want or "").strip()[:200],
+ "note": (note or "").strip()[:800],
+ "status": "open",
+ "createdAt": _now(),
+ }
+ if not item["offer"] or not item["want"]:
+ raise ValueError("请填写能提供什么、想换什么")
+ rec = get_pb().create(
+ C_SKILLS,
+ {
+ "guest_id": guest_id,
+ "author": item["author"],
+ "city": item["city"],
+ "offer": item["offer"],
+ "want": item["want"],
+ "note": item["note"],
+ "status": "open",
+ "created_at": item["createdAt"],
+ },
+ )
+ item["id"] = rec.get("id") or item["id"]
+ return item
+
+
+def list_skill_posts(*, city: str = "", limit: int = 60) -> list[dict[str, Any]]:
+ ensure_community_tables()
+ limit = max(1, min(int(limit or 60), 120))
+ filt = 'status="open"'
+ rows = get_pb().list_all(C_SKILLS, filter=filt, sort="-created_at", hard_limit=200)
+ city_f = city.strip().lower()
+ out = []
+ for r in rows:
+ if city_f and city_f not in (r.get("city") or "").lower():
+ continue
+ out.append(
+ {
+ "id": r.get("id"),
+ "guestId": r.get("guest_id"),
+ "author": r.get("author"),
+ "city": r.get("city") or "",
+ "offer": r.get("offer"),
+ "want": r.get("want"),
+ "note": r.get("note") or "",
+ "status": r.get("status"),
+ "createdAt": r.get("created_at"),
+ }
+ )
+ if len(out) >= limit:
+ break
+ return out
+
+
+def close_skill_post(guest_id: str, post_id: str) -> dict[str, Any]:
+ ensure_community_tables()
+ r = get_pb().first(C_SKILLS, filter=f"id={pb_quote(post_id)}")
+ if not r:
+ # PB id filter uses record id field
+ try:
+ r = get_pb().request(
+ "GET", f"/api/collections/{C_SKILLS}/records/{post_id}", admin=True
+ )
+ except Exception:
+ r = None
+ if not r:
+ raise ValueError("帖子不存在")
+ if r.get("guest_id") != guest_id:
+ raise ValueError("只能关闭自己的帖子")
+ get_pb().update(C_SKILLS, r["id"], {"status": "closed"})
+ return {"ok": True, "id": post_id, "status": "closed"}
+
+
+def create_meetup_review(
+ from_guest: str,
+ *,
+ to_guest: str,
+ to_name: str = "",
+ booking_id: str = "",
+ punctuality: int,
+ chemistry: int,
+ professionalism: int,
+ text: str = "",
+) -> dict[str, Any]:
+ ensure_community_tables()
+ if from_guest == to_guest:
+ raise ValueError("不能评价自己")
+ for n in (punctuality, chemistry, professionalism):
+ if not 1 <= int(n) <= 5:
+ raise ValueError("评分须为 1–5")
+ if booking_id:
+ hit = get_pb().first(
+ C_REVIEWS,
+ filter=(
+ f"booking_id={pb_quote(booking_id)} && "
+ f"from_guest={pb_quote(from_guest)} && "
+ f"to_guest={pb_quote(to_guest)}"
+ ),
+ )
+ if hit:
+ raise ValueError("你已经评价过这次见面")
+ item = {
+ "id": _uid("rv"),
+ "bookingId": (booking_id or "").strip()[:80],
+ "fromGuest": from_guest,
+ "toGuest": to_guest,
+ "toName": (to_name or "").strip()[:64],
+ "punctuality": int(punctuality),
+ "chemistry": int(chemistry),
+ "professionalism": int(professionalism),
+ "text": (text or "").strip()[:800],
+ "createdAt": _now(),
+ }
+ rec = get_pb().create(
+ C_REVIEWS,
+ {
+ "booking_id": item["bookingId"],
+ "from_guest": from_guest,
+ "to_guest": to_guest,
+ "to_name": item["toName"],
+ "punctuality": item["punctuality"],
+ "chemistry": item["chemistry"],
+ "professionalism": item["professionalism"],
+ "text": item["text"],
+ "created_at": item["createdAt"],
+ },
+ )
+ item["id"] = rec.get("id") or item["id"]
+ return item
+
+
+def reviews_for_guest(guest_id: str, limit: int = 40) -> dict[str, Any]:
+ ensure_community_tables()
+ limit = max(1, min(int(limit or 40), 100))
+ rows = get_pb().list_all(
+ C_REVIEWS,
+ filter=f"to_guest={pb_quote(guest_id)}",
+ sort="-created_at",
+ hard_limit=limit,
+ )
+ items = [
+ {
+ "id": r.get("id"),
+ "bookingId": r.get("booking_id") or "",
+ "fromGuest": r.get("from_guest"),
+ "toGuest": r.get("to_guest"),
+ "toName": r.get("to_name") or "",
+ "punctuality": r.get("punctuality"),
+ "chemistry": r.get("chemistry"),
+ "professionalism": r.get("professionalism"),
+ "text": r.get("text") or "",
+ "createdAt": r.get("created_at"),
+ "avg": round(
+ (
+ float(r.get("punctuality") or 0)
+ + float(r.get("chemistry") or 0)
+ + float(r.get("professionalism") or 0)
+ )
+ / 3,
+ 2,
+ ),
+ }
+ for r in rows
+ ]
+ if not items:
+ return {"guestId": guest_id, "count": 0, "averages": None, "items": []}
+ n = len(items)
+ averages = {
+ "punctuality": round(sum(i["punctuality"] for i in items) / n, 2),
+ "chemistry": round(sum(i["chemistry"] for i in items) / n, 2),
+ "professionalism": round(sum(i["professionalism"] for i in items) / n, 2),
+ "overall": round(sum(i["avg"] for i in items) / n, 2),
+ }
+ return {"guestId": guest_id, "count": n, "averages": averages, "items": items}
+
+
+def block_user(guest_id: str, blocked_guest: str, reason: str = "") -> dict[str, Any]:
+ ensure_community_tables()
+ if guest_id == blocked_guest:
+ raise ValueError("不能屏蔽自己")
+ get_pb().upsert(
+ C_BLOCKS,
+ filter=(
+ f"guest_id={pb_quote(guest_id)} && blocked_guest={pb_quote(blocked_guest)}"
+ ),
+ payload={
+ "guest_id": guest_id,
+ "blocked_guest": blocked_guest,
+ "reason": (reason or "").strip()[:200],
+ "created_at": _now(),
+ },
+ )
+ return {"ok": True, "blockedGuest": blocked_guest}
+
+
+def unblock_user(guest_id: str, blocked_guest: str) -> dict[str, Any]:
+ ensure_community_tables()
+ r = get_pb().first(
+ C_BLOCKS,
+ filter=(
+ f"guest_id={pb_quote(guest_id)} && blocked_guest={pb_quote(blocked_guest)}"
+ ),
+ )
+ if r:
+ get_pb().delete(C_BLOCKS, r["id"])
+ return {"ok": True}
+
+
+def list_blocks(guest_id: str) -> list[dict[str, Any]]:
+ ensure_community_tables()
+ rows = get_pb().list_all(
+ C_BLOCKS, filter=f"guest_id={pb_quote(guest_id)}", sort="-created_at"
+ )
+ return [
+ {
+ "blockedGuest": r.get("blocked_guest"),
+ "reason": r.get("reason") or "",
+ "createdAt": r.get("created_at"),
+ }
+ for r in rows
+ ]
+
+
+def is_blocked(viewer: str, other: str) -> bool:
+ ensure_community_tables()
+ a = get_pb().first(
+ C_BLOCKS,
+ filter=f"guest_id={pb_quote(viewer)} && blocked_guest={pb_quote(other)}",
+ )
+ if a:
+ return True
+ b = get_pb().first(
+ C_BLOCKS,
+ filter=f"guest_id={pb_quote(other)} && blocked_guest={pb_quote(viewer)}",
+ )
+ return bool(b)
+
+
+def create_report(
+ guest_id: str,
+ *,
+ target_guest: str,
+ target_name: str = "",
+ reason: str,
+ detail: str = "",
+) -> dict[str, Any]:
+ ensure_community_tables()
+ if guest_id == target_guest:
+ raise ValueError("不能举报自己")
+ reason = (reason or "").strip()[:80]
+ if not reason:
+ raise ValueError("请选择举报原因")
+ item = {
+ "id": _uid("rp"),
+ "guestId": guest_id,
+ "targetGuest": target_guest,
+ "targetName": (target_name or "").strip()[:64],
+ "reason": reason,
+ "detail": (detail or "").strip()[:1000],
+ "status": "open",
+ "createdAt": _now(),
+ }
+ rec = get_pb().create(
+ C_REPORTS,
+ {
+ "guest_id": guest_id,
+ "target_guest": target_guest,
+ "target_name": item["targetName"],
+ "reason": reason,
+ "detail": item["detail"],
+ "status": "open",
+ "result_note": "",
+ "created_at": item["createdAt"],
+ "resolved_at": "",
+ },
+ )
+ item["id"] = rec.get("id") or item["id"]
+ return item
+
+
+def resolve_report(
+ report_id: str, *, status: str = "resolved", result_note: str = ""
+) -> dict[str, Any]:
+ ensure_community_tables()
+ try:
+ r = get_pb().request(
+ "GET", f"/api/collections/{C_REPORTS}/records/{report_id}", admin=True
+ )
+ except Exception as exc:
+ raise ValueError("举报不存在") from exc
+ now = _now()
+ get_pb().update(
+ C_REPORTS,
+ report_id,
+ {
+ "status": status,
+ "result_note": (result_note or "").strip()[:500],
+ "resolved_at": now if status != "open" else "",
+ },
+ )
+ return {
+ "id": report_id,
+ "guestId": r.get("guest_id"),
+ "targetGuest": r.get("target_guest"),
+ "status": status,
+ "resultNote": result_note,
+ "resolvedAt": now,
+ }
+
+
+def list_reports(*, status: str = "open", limit: int = 40) -> list[dict[str, Any]]:
+ ensure_community_tables()
+ limit = max(1, min(int(limit or 40), 100))
+ filt = f"status={pb_quote(status)}" if status else None
+ rows = get_pb().list_all(C_REPORTS, filter=filt, sort="-created_at", hard_limit=limit)
+ return [
+ {
+ "id": r.get("id"),
+ "guestId": r.get("guest_id"),
+ "targetGuest": r.get("target_guest"),
+ "targetName": r.get("target_name") or "",
+ "reason": r.get("reason"),
+ "detail": r.get("detail") or "",
+ "status": r.get("status"),
+ "resultNote": r.get("result_note") or "",
+ "createdAt": r.get("created_at"),
+ "resolvedAt": r.get("resolved_at") or "",
+ }
+ for r in rows
+ ]
+
+
+def wrapped_stats(guest_id: str, year: int | None = None) -> dict[str, Any]:
+ ensure_community_tables()
+ from datetime import datetime, timezone
+
+ y = year or datetime.now(timezone.utc).year
+ prefix = f"{y}-"
+ roster = pb_data.get_roster(guest_id) or {}
+ cities: list[str] = []
+ if roster.get("city"):
+ cities = [roster["city"]]
+ try:
+ from hub_svc import geo_pb
+
+ trips = geo_pb.list_trips_for_guest(guest_id) if hasattr(geo_pb, "list_trips_for_guest") else []
+ for t in trips or []:
+ c = t.get("city") or ""
+ if c and c not in cities:
+ cities.append(c)
+ except Exception:
+ pass
+ reviews = get_pb().list_all(
+ C_REVIEWS,
+ filter=f"(from_guest={pb_quote(guest_id)} || to_guest={pb_quote(guest_id)})",
+ hard_limit=500,
+ )
+ reviews = [r for r in reviews if str(r.get("created_at") or "").startswith(prefix)]
+ skills = get_pb().list_all(
+ C_SKILLS, filter=f"guest_id={pb_quote(guest_id)}", hard_limit=200
+ )
+ skills = [s for s in skills if str(s.get("created_at") or "").startswith(prefix)]
+ peers = set()
+ for r in reviews:
+ a, b = r.get("from_guest"), r.get("to_guest")
+ if a == guest_id and b:
+ peers.add(b)
+ elif b == guest_id and a:
+ peers.add(a)
+ return {
+ "year": y,
+ "name": roster.get("name") or "游民",
+ "homeCity": roster.get("city") or "",
+ "cities": cities[:24],
+ "cityCount": len(cities),
+ "peopleMet": len(peers),
+ "meetups": len(reviews),
+ "skillPosts": len(skills),
+ "livenessVerified": (roster.get("livenessStatus") or "") == "verified",
+ }
+
+
+def city_digest_payload(city: str, limit: int = 8) -> dict[str, Any]:
+ ensure_community_tables()
+ city = (city or "").strip()
+ people = (
+ pb_data.list_discovery_roster(city=city, limit=limit) if city else []
+ )
+ skills = list_skill_posts(city=city, limit=5) if city else list_skill_posts(limit=5)
+ lines = []
+ for p in people[:5]:
+ lines.append(
+ f"· {p.get('name')} · {p.get('city') or city} · {p.get('lookingFor') or p.get('title') or ''}"
+ )
+ for s in skills[:3]:
+ lines.append(
+ f"· 互换:{s['offer']} ↔ {s['want']}({s.get('city') or '全球'})"
+ )
+ return {
+ "city": city or "全球",
+ "peopleCount": len(people),
+ "skillCount": len(skills),
+ "digestText": "\n".join(lines)
+ if lines
+ else "这周同城还比较安静,去发一条技能互换吧。",
+ }
diff --git a/apps/api/services/hub_svc/config.py b/apps/api/services/hub_svc/config.py
new file mode 100644
index 0000000..efbce09
--- /dev/null
+++ b/apps/api/services/hub_svc/config.py
@@ -0,0 +1,86 @@
+from __future__ import annotations
+
+import os
+from pathlib import Path
+
+# 默认写在仓库 data/hub,与 PocketBase / community 目录分离
+_ROOT = Path(__file__).resolve().parents[4] # nomadro/
+_DEFAULT_DB = _ROOT / "data" / "hub" / "hub.db"
+
+HUB_DB_PATH = Path(os.getenv("HUB_DB_PATH", str(_DEFAULT_DB))).resolve()
+HUB_UPLOAD_DIR = Path(
+ os.getenv("HUB_UPLOAD_DIR", str(HUB_DB_PATH.parent / "uploads"))
+).resolve()
+HUB_UPLOAD_MAX_BYTES = int(os.getenv("HUB_UPLOAD_MAX_BYTES", str(25 * 1024 * 1024)))
+HUB_ENABLED = os.getenv("HUB_ENABLED", "true").lower() in {"1", "true", "yes", "on"}
+
+# Centrifugo(实时层;缺省关,部署后用环境变量打开)
+CENTRIFUGO_ENABLED = os.getenv("CENTRIFUGO_ENABLED", "false").lower() in {"1", "true", "yes", "on"}
+CENTRIFUGO_API_URL = os.getenv("CENTRIFUGO_API_URL", "http://127.0.0.1:8008/api").rstrip("/")
+CENTRIFUGO_API_KEY = os.getenv("CENTRIFUGO_API_KEY", "")
+CENTRIFUGO_TOKEN_SECRET = os.getenv("CENTRIFUGO_TOKEN_SECRET", "")
+# 浏览器 WebSocket(经 nginx 反代,与门户同域)
+CENTRIFUGO_WS_URL = os.getenv(
+ "CENTRIFUGO_WS_URL",
+ "wss://nomadro.cn/rt/connection/websocket",
+)
+
+# 原生音视频厅(SRS RTMP 推 / HTTP-FLV 拉)— 微信 LivePusher/LivePlayer
+LIVE_RTMP_PUSH_BASE = os.getenv(
+ "LIVE_RTMP_PUSH_BASE",
+ "rtmp://82.157.112.245/live",
+)
+LIVE_HTTP_PLAY_BASE = os.getenv(
+ "LIVE_HTTP_PLAY_BASE",
+ "https://nomadro.cn/live",
+)
+LIVE_STREAM_SECRET = os.getenv(
+ "LIVE_STREAM_SECRET",
+ os.getenv("CENTRIFUGO_TOKEN_SECRET", "nomadro-live-dev-secret"),
+)
+LIVE_MAX_PEERS = int(os.getenv("LIVE_MAX_PEERS", "6"))
+LIVE_PEER_TTL_SEC = int(os.getenv("LIVE_PEER_TTL_SEC", "45"))
+
+# Geo discovery (MapLibre / Photon / H3 + PocketBase trips)
+PHOTON_BASE_URL = os.getenv(
+ "PHOTON_BASE_URL",
+ "https://photon.komoot.io",
+).rstrip("/")
+PHOTON_TIMEOUT_SEC = float(os.getenv("PHOTON_TIMEOUT_SEC", "6"))
+H3_CITY_RES = int(os.getenv("H3_CITY_RES", "4"))
+H3_NEAR_RES = int(os.getenv("H3_NEAR_RES", "7"))
+# PocketBase — .com/US defaults to same-box 8090; never hardcode hackrobot.cn
+try:
+ from nomadro_pb.config import ( # type: ignore
+ PB_ADMIN_EMAIL as _PB_EMAIL,
+ PB_ADMIN_PASSWORD as _PB_PASS,
+ PB_URL as _PB_URL,
+ )
+
+ PB_URL = _PB_URL
+ PB_ADMIN_EMAIL = _PB_EMAIL
+ PB_ADMIN_PASSWORD = _PB_PASS
+except Exception:
+ _pb_internal = os.getenv("PB_INTERNAL_URL") or os.getenv(
+ "POCKETBASE_INTERNAL_URL"
+ )
+ _pb_explicit = os.getenv("PB_URL") or os.getenv("POCKETBASE_URL")
+ if _pb_internal:
+ PB_URL = _pb_internal.rstrip("/")
+ elif _pb_explicit:
+ PB_URL = _pb_explicit.rstrip("/")
+ else:
+ PB_URL = "http://127.0.0.1:8090"
+ PB_ADMIN_EMAIL = (
+ os.getenv("PB_ADMIN_EMAIL") or os.getenv("POCKETBASE_EMAIL") or ""
+ )
+ PB_ADMIN_PASSWORD = (
+ os.getenv("PB_ADMIN_PASSWORD") or os.getenv("POCKETBASE_PASSWORD") or ""
+ )
+HUB_TRIPS_COLLECTION = os.getenv("HUB_TRIPS_COLLECTION", "hub_trips")
+HUB_GEO_USE_PB = os.getenv("HUB_GEO_USE_PB", "true").lower() in {
+ "1",
+ "true",
+ "yes",
+ "on",
+}
diff --git a/apps/api/services/hub_svc/contract.py b/apps/api/services/hub_svc/contract.py
new file mode 100644
index 0000000..5381a40
--- /dev/null
+++ b/apps/api/services/hub_svc/contract.py
@@ -0,0 +1,67 @@
+"""Nomadro Social IM — server contract (UI-agnostic).
+
+Frontends (Web / 微信小程序 / future apps) MUST treat this as the only SoT.
+No UI assumptions: display names, layouts, emoji pickers live entirely in clients.
+
+Transport
+---------
+- REST: ``/api/hub/v1/*``
+- Realtime: Centrifugo channel ``hub:{channelId}``(与 social_svc ``social:`` 隔离)
+- Auth peer: header ``X-Hub-Guest-Id`` (or ``?guest=``)
+
+HTTP (chat core)
+----------------
+GET /health
+GET /realtime/token?channel_id=
+GET /channels/{id}/desc
+GET /channels/{id}/messages?since=&before=&limit=&q=
+POST /channels/{id}/messages body: {author, text?, clientId?, replyTo?, attachments?, mentions?}
+PATCH /channels/{id}/messages/{msgId} body: {text} # edit
+POST /channels/{id}/messages/{msgId}/recall
+POST /channels/{id}/messages/{msgId}/react body: {emoji}
+POST /channels/{id}/messages/{msgId}/pin body: {pinned?}
+POST /channels/{id}/messages/{msgId}/report body: {reason?}
+POST /channels/{id}/presence body: {nick?} # soft online heartbeat
+POST /channels/{id}/notes body: {what: recv|read|kp, seq?}
+POST /channels/{id}/upload multipart file → attachment descriptor
+GET /files/{fileId} stream uploaded bytes
+
+Centrifugo publications (JSON)
+------------------------------
+{"type":"chat.message","message":{…full message…}}
+{"type":"chat.note","what":"recv|read|kp","seq":N,"guestId":"...","at":"..."}
+
+Message fields
+--------------
+- ``seq``: monotonic int per channel (Tinode-inspired sync cursor)
+- ``clientId``: client idempotency key (optional but recommended)
+- ``replyTo``: {id, author, text, seq?}
+- ``attachments``: [{id, kind, url, name, mime, size}]
+- ``reactions``: {emoji: [guestId, …]}
+- ``mentions``: [name, …]
+- ``editedAt`` / ``recalled`` / ``pinned``
+"""
+from __future__ import annotations
+
+IM_PROTOCOL = "nomadro.im.v1"
+IM_FEATURES = (
+ "seq",
+ "clientId",
+ "since",
+ "before",
+ "note.recv",
+ "note.read",
+ "note.kp",
+ "centrifugo",
+ "replyTo",
+ "attachments",
+ "upload",
+ "recall",
+ "react",
+ "edit",
+ "pin",
+ "search",
+ "mentions",
+ "report",
+ "presence",
+)
diff --git a/apps/api/services/hub_svc/face_check.py b/apps/api/services/hub_svc/face_check.py
new file mode 100644
index 0000000..fd937d2
--- /dev/null
+++ b/apps/api/services/hub_svc/face_check.py
@@ -0,0 +1,492 @@
+"""Avatar face gate — detect + optional InsightFace RGB liveness.
+
+Env / remote-config:
+ flags.hubAvatarFaceCheck admin SSE/WS switch (preferred)
+ HUB_AVATAR_FACE_CHECK on|off env fallback (default off)
+ HUB_AVATAR_FACE_ENGINE auto|insightface|opencv (default auto)
+ HUB_AVATAR_FACE_STRICT fail closed when no engine (default off)
+ HUB_AVATAR_FACE_MIN min faces (default 1)
+ HUB_AVATAR_FACE_MAX max faces (default 1 — reject group photos)
+ HUB_AVATAR_LIVENESS on|off (default on; InsightFace addon)
+ HUB_AVATAR_LIVENESS_THRESHOLD 0..1 (default 0.5)
+ HUB_AVATAR_INSIGHTFACE_MODEL buffalo_l|buffalo_sc (default buffalo_l)
+"""
+from __future__ import annotations
+
+import logging
+import os
+import threading
+from dataclasses import dataclass
+
+import cv2
+import numpy as np
+
+log = logging.getLogger("hub_svc.face_check")
+
+_lock = threading.Lock()
+_insight_app = None
+_insight_failed = False
+_insight_liveness = False
+
+
+@dataclass
+class FaceCheckResult:
+ ok: bool
+ faces: int
+ engine: str
+ detail: str = ""
+ is_live: bool | None = None
+ live_score: float | None = None
+
+
+def _env_bool(name: str, default: bool) -> bool:
+ raw = (os.getenv(name) or "").strip().lower()
+ if not raw:
+ return default
+ return raw in {"1", "true", "yes", "on"}
+
+
+def face_check_enabled(purpose: str) -> bool:
+ if (purpose or "").strip().lower() not in {"avatar", "roster", "profile"}:
+ return False
+ # Remote-config (admin SSE/WS) wins when present; env is offline fallback.
+ try:
+ from hub_svc.remote_flags import hub_avatar_face_check_enabled
+
+ remote = hub_avatar_face_check_enabled()
+ if remote is not None:
+ return bool(remote)
+ except Exception:
+ pass
+ # Default OFF for test phase; set HUB_AVATAR_FACE_CHECK=on to force without admin.
+ return _env_bool("HUB_AVATAR_FACE_CHECK", False)
+
+
+def _engine_pref() -> str:
+ return (os.getenv("HUB_AVATAR_FACE_ENGINE") or "auto").strip().lower()
+
+
+def _min_faces() -> int:
+ try:
+ return max(1, int(os.getenv("HUB_AVATAR_FACE_MIN") or "1"))
+ except ValueError:
+ return 1
+
+
+def _max_faces() -> int:
+ try:
+ return max(_min_faces(), int(os.getenv("HUB_AVATAR_FACE_MAX") or "1"))
+ except ValueError:
+ return 1
+
+
+def _liveness_on() -> bool:
+ return _env_bool("HUB_AVATAR_LIVENESS", True)
+
+
+def _liveness_threshold() -> float:
+ try:
+ v = float(os.getenv("HUB_AVATAR_LIVENESS_THRESHOLD") or "0.5")
+ except ValueError:
+ v = 0.5
+ return min(0.99, max(0.05, v))
+
+
+def _decode_bgr(data: bytes):
+ arr = np.frombuffer(data, dtype=np.uint8)
+ img = cv2.imdecode(arr, cv2.IMREAD_COLOR)
+ return img
+
+
+def _providers() -> list[str]:
+ providers = ["CPUExecutionProvider"]
+ try:
+ from onnxruntime import get_available_providers
+
+ avail = set(get_available_providers())
+ if "CUDAExecutionProvider" in avail:
+ providers = ["CUDAExecutionProvider", "CPUExecutionProvider"]
+ except Exception:
+ pass
+ return providers
+
+
+def _get_insightface():
+ global _insight_app, _insight_failed, _insight_liveness
+ if _insight_failed:
+ return None
+ if _insight_app is not None:
+ return _insight_app
+ with _lock:
+ if _insight_failed:
+ return None
+ if _insight_app is not None:
+ return _insight_app
+ try:
+ from insightface.app import FaceAnalysis
+
+ name = (os.getenv("HUB_AVATAR_INSIGHTFACE_MODEL") or "buffalo_l").strip()
+ providers = _providers()
+ want_live = _liveness_on()
+ addons: tuple[str, ...] = ("liveness",) if want_live else ()
+ try:
+ app = FaceAnalysis(
+ name=name,
+ providers=providers,
+ addons=addons,
+ liveness_mode="normal",
+ liveness_threshold=_liveness_threshold(),
+ )
+ _insight_liveness = bool(addons) and "liveness" in app.addons
+ except Exception as live_exc:
+ # Model package without addon download — fall back to detection only
+ log.warning("insightface liveness init failed, detection-only: %s", live_exc)
+ app = FaceAnalysis(name=name, providers=providers)
+ _insight_liveness = False
+ ctx_id = 0 if providers[0].startswith("CUDA") else -1
+ app.prepare(ctx_id=ctx_id, det_size=(640, 640))
+ _insight_app = app
+ log.info(
+ "insightface ready model=%s providers=%s liveness=%s",
+ name,
+ providers,
+ _insight_liveness,
+ )
+ return _insight_app
+ except Exception as exc:
+ _insight_failed = True
+ log.warning("insightface unavailable: %s", exc)
+ return None
+
+
+def _analyze_insightface(img) -> FaceCheckResult:
+ app = _get_insightface()
+ if app is None:
+ raise RuntimeError("insightface not loaded")
+ faces = app.get(img) or []
+ n = len(faces)
+ need = _min_faces()
+ cap = _max_faces()
+ if n < need:
+ return FaceCheckResult(
+ ok=False,
+ faces=n,
+ engine="insightface",
+ detail="未检测到人脸,请上传本人清晰正脸照片",
+ )
+ if n > cap:
+ return FaceCheckResult(
+ ok=False,
+ faces=n,
+ engine="insightface",
+ detail="请只上传一张本人正脸(不要合影)",
+ )
+
+ face = faces[0]
+ is_live = None
+ live_score = None
+ live = getattr(face, "liveness", None)
+ if live is not None:
+ is_live = getattr(live, "is_live", None)
+ try:
+ live_score = float(getattr(live, "live_score", None) or getattr(live, "score", 0) or 0)
+ except (TypeError, ValueError):
+ live_score = None
+ status = getattr(live, "status", None)
+ reason = getattr(live, "reason", None) or ""
+ if is_live is False:
+ return FaceCheckResult(
+ ok=False,
+ faces=n,
+ engine="insightface+liveness",
+ detail="未通过真人检测,请用前置摄像头现场自拍(勿用网图/截图)",
+ is_live=False,
+ live_score=live_score,
+ )
+ if status == "input_rejected":
+ return FaceCheckResult(
+ ok=False,
+ faces=n,
+ engine="insightface+liveness",
+ detail=str(reason) or "人脸区域不足,请靠近镜头、露出完整正脸再拍",
+ is_live=False,
+ live_score=live_score,
+ )
+
+ if _liveness_on() and _insight_liveness and is_live is not True:
+ # Addon loaded but face missing live flag — treat as fail-closed
+ return FaceCheckResult(
+ ok=False,
+ faces=n,
+ engine="insightface+liveness",
+ detail="真人检测未完成,请重新自拍一张正脸",
+ is_live=False,
+ live_score=live_score,
+ )
+
+ engine = "insightface+liveness" if is_live is True else "insightface"
+ return FaceCheckResult(
+ ok=True,
+ faces=n,
+ engine=engine,
+ is_live=is_live,
+ live_score=live_score,
+ )
+
+
+def _haar_cascade_path() -> str:
+ from pathlib import Path
+
+ bundled = (
+ Path(__file__).resolve().parent
+ / "assets"
+ / "haarcascade_frontalface_default.xml"
+ )
+ if bundled.is_file():
+ return str(bundled)
+ data_dir = getattr(getattr(cv2, "data", None), "haarcascades", "") or ""
+ candidate = data_dir + "haarcascade_frontalface_default.xml"
+ if data_dir and Path(candidate).is_file():
+ return candidate
+ raise RuntimeError("haar cascade xml not found (bundle assets/)")
+
+
+def _count_opencv(img) -> int:
+ gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
+ gray = cv2.equalizeHist(gray)
+ cascade = cv2.CascadeClassifier(_haar_cascade_path())
+ if cascade.empty():
+ raise RuntimeError("opencv haar cascade missing")
+ h, w = gray.shape[:2]
+ max_side = 960
+ if max(h, w) > max_side:
+ scale = max_side / float(max(h, w))
+ gray = cv2.resize(gray, (int(w * scale), int(h * scale)))
+ faces = cascade.detectMultiScale(
+ gray,
+ scaleFactor=1.1,
+ minNeighbors=5,
+ minSize=(48, 48),
+ flags=cv2.CASCADE_SCALE_IMAGE,
+ )
+ return len(faces)
+
+
+def check_face(
+ data: bytes,
+ *,
+ require_liveness: bool | None = None,
+) -> FaceCheckResult:
+ """Return face / liveness result; does not raise for soft failures.
+
+ require_liveness=None → follow HUB_AVATAR_LIVENESS_REQUIRE (legacy).
+ Album upload should pass require_liveness=False (presence only).
+ Live challenge uses require_liveness=True.
+ """
+ img = _decode_bgr(data)
+ if img is None or img.size == 0:
+ return FaceCheckResult(ok=False, faces=0, engine="none", detail="无法解码图片")
+
+ want_live = (
+ _liveness_on() and _env_bool("HUB_AVATAR_LIVENESS_REQUIRE", True)
+ if require_liveness is None
+ else bool(require_liveness)
+ )
+
+ pref = _engine_pref()
+ engines: list[str] = []
+ if pref == "insightface":
+ engines = ["insightface"]
+ elif pref == "opencv":
+ engines = ["opencv"]
+ else:
+ engines = ["insightface", "opencv"]
+
+ last_err = ""
+ for eng in engines:
+ try:
+ if eng == "insightface":
+ result = _analyze_insightface(img)
+ if not want_live and result.faces >= _min_faces():
+ # Presence-only: keep face count even if RGB liveness failed
+ if not result.ok and result.faces > 0:
+ return FaceCheckResult(
+ ok=True,
+ faces=result.faces,
+ engine=result.engine or "insightface",
+ detail="人脸已识别,请继续现场实拍核验",
+ is_live=result.is_live,
+ live_score=result.live_score,
+ )
+ return result
+
+ n = _count_opencv(img)
+ need = _min_faces()
+ cap = _max_faces()
+ if n < need:
+ return FaceCheckResult(
+ ok=False,
+ faces=n,
+ engine="opencv",
+ detail="未检测到人脸,请上传本人清晰正脸照片",
+ )
+ if n > cap:
+ return FaceCheckResult(
+ ok=False,
+ faces=n,
+ engine="opencv",
+ detail="请只上传一张本人正脸(不要合影)",
+ )
+ if want_live and _liveness_on():
+ return FaceCheckResult(
+ ok=False,
+ faces=n,
+ engine="opencv",
+ detail="请用摄像头现场自拍以完成真人验证",
+ )
+ return FaceCheckResult(ok=True, faces=n, engine="opencv")
+ except Exception as exc:
+ last_err = str(exc)
+ log.warning("face engine %s failed: %s", eng, exc)
+ continue
+
+ # Fail closed: never stamp face_ok=true when no detector ran.
+ # Upload path still persists the file with face_ok=false when gate is off.
+ log.warning("face check unavailable (%s); marking no-face", last_err or "no engine")
+ return FaceCheckResult(
+ ok=False,
+ faces=0,
+ engine="none",
+ detail=f"人脸检测不可用: {last_err or 'no engine'}",
+ )
+
+
+def assert_avatar_has_face(
+ data: bytes,
+ *,
+ require_liveness: bool | None = None,
+) -> FaceCheckResult:
+ """Raise ValueError when check fails."""
+ result = check_face(data, require_liveness=require_liveness)
+ if not result.ok:
+ raise ValueError(result.detail or "未检测到人脸")
+ return result
+
+
+@dataclass
+class ChallengeResult:
+ ok: bool
+ detail: str = ""
+ similarity: float | None = None
+ yaw_delta: float | None = None
+ front: FaceCheckResult | None = None
+ turn: FaceCheckResult | None = None
+
+
+def _cosine(a, b) -> float:
+ a = np.asarray(a, dtype=np.float32).ravel()
+ b = np.asarray(b, dtype=np.float32).ravel()
+ denom = float(np.linalg.norm(a) * np.linalg.norm(b) + 1e-9)
+ return float(np.dot(a, b) / denom)
+
+
+def _yaw_proxy(kps) -> float:
+ """Nose offset vs eye midpoint, normalized by eye distance (≈ yaw proxy)."""
+ pts = np.asarray(kps, dtype=np.float32)
+ if pts.shape[0] < 3:
+ return 0.0
+ le, re, nose = pts[0], pts[1], pts[2]
+ mid_x = (float(le[0]) + float(re[0])) * 0.5
+ eye_w = abs(float(re[0]) - float(le[0])) + 1e-6
+ return (float(nose[0]) - mid_x) / eye_w
+
+
+def _extract_face_features(data: bytes):
+ """Return (FaceCheckResult, embedding|None, yaw|None)."""
+ img = _decode_bgr(data)
+ if img is None or img.size == 0:
+ return (
+ FaceCheckResult(ok=False, faces=0, engine="none", detail="无法解码图片"),
+ None,
+ None,
+ )
+ # Prefer insightface for embeddings; also runs liveness when enabled
+ try:
+ app = _get_insightface()
+ if app is None:
+ raise RuntimeError("insightface not loaded")
+ faces = app.get(img) or []
+ base = _analyze_insightface(img)
+ if not base.ok or not faces:
+ return base, None, None
+ face = faces[0]
+ emb = getattr(face, "normed_embedding", None)
+ if emb is None:
+ emb = getattr(face, "embedding", None)
+ yaw = _yaw_proxy(getattr(face, "kps", None)) if getattr(face, "kps", None) is not None else None
+ return base, emb, yaw
+ except Exception as exc:
+ log.warning("challenge feature extract failed: %s", exc)
+ # Fall back to presence-only (no identity match)
+ presence = check_face(data)
+ return presence, None, None
+
+
+def verify_pose_challenge(front_bytes: bytes, turn_bytes: bytes) -> ChallengeResult:
+ """Two-frame selfie: same person + measurable head turn + face/liveness gates."""
+ front, emb_a, yaw_a = _extract_face_features(front_bytes)
+ if not front.ok:
+ return ChallengeResult(ok=False, detail=front.detail or "正脸核验失败", front=front)
+
+ turn, emb_b, yaw_b = _extract_face_features(turn_bytes)
+ if not turn.ok:
+ return ChallengeResult(
+ ok=False,
+ detail=turn.detail or "转头照核验失败",
+ front=front,
+ turn=turn,
+ )
+
+ sim = None
+ if emb_a is not None and emb_b is not None:
+ sim = _cosine(emb_a, emb_b)
+ min_sim = 0.32
+ try:
+ min_sim = float(os.getenv("HUB_AVATAR_CHALLENGE_MIN_SIM") or "0.32")
+ except ValueError:
+ pass
+ if sim < min_sim:
+ return ChallengeResult(
+ ok=False,
+ detail="两张照片不是同一个人,请本人连续自拍完成核验",
+ similarity=sim,
+ front=front,
+ turn=turn,
+ )
+
+ yaw_delta = None
+ if yaw_a is not None and yaw_b is not None:
+ yaw_delta = abs(float(yaw_a) - float(yaw_b))
+ min_yaw = 0.06
+ try:
+ min_yaw = float(os.getenv("HUB_AVATAR_CHALLENGE_MIN_YAW") or "0.06")
+ except ValueError:
+ pass
+ if yaw_delta < min_yaw:
+ return ChallengeResult(
+ ok=False,
+ detail="转头幅度不够,请稍微左右转头后再拍第二张",
+ similarity=sim,
+ yaw_delta=yaw_delta,
+ front=front,
+ turn=turn,
+ )
+
+ return ChallengeResult(
+ ok=True,
+ detail="",
+ similarity=sim,
+ yaw_delta=yaw_delta,
+ front=front,
+ turn=turn,
+ )
diff --git a/apps/api/services/hub_svc/geo_cities.py b/apps/api/services/hub_svc/geo_cities.py
new file mode 100644
index 0000000..4828bb6
--- /dev/null
+++ b/apps/api/services/hub_svc/geo_cities.py
@@ -0,0 +1,233 @@
+"""Seed cities with approximate lat/lng for map aggregation (no personal GPS)."""
+from __future__ import annotations
+
+from typing import Any
+
+# Offline seed mirrored by src/modules/hub/lib/cities.ts
+SEED_CITIES: list[dict[str, Any]] = [
+ {
+ "id": "dali",
+ "name": "大理",
+ "country": "中国",
+ "emoji": "🏔️",
+ "vibe": "苍山洱海 · 慢生活",
+ "members": 520,
+ "meetupCount": 12,
+ "costHint": "¥3,000/月起",
+ "wifiMbps": 50,
+ "tags": ["热门", "便宜", "山城"],
+ "hot": True,
+ "lat": 25.6065,
+ "lng": 100.2679,
+ },
+ {
+ "id": "chengdu",
+ "name": "成都",
+ "country": "中国",
+ "emoji": "🌶️",
+ "vibe": "天府之国 · 美食慢节奏",
+ "members": 680,
+ "meetupCount": 18,
+ "costHint": "¥4,500/月起",
+ "wifiMbps": 80,
+ "tags": ["热门", "美食", "宜居"],
+ "hot": True,
+ "lat": 30.5728,
+ "lng": 104.0668,
+ },
+ {
+ "id": "hangzhou",
+ "name": "杭州",
+ "country": "中国",
+ "emoji": "🏞️",
+ "vibe": "西湖 · 互联网重镇",
+ "members": 560,
+ "meetupCount": 14,
+ "costHint": "¥6,000/月起",
+ "wifiMbps": 100,
+ "tags": ["热门", "高速网络"],
+ "hot": True,
+ "lat": 30.2741,
+ "lng": 120.1551,
+ },
+ {
+ "id": "kunming",
+ "name": "昆明",
+ "country": "中国",
+ "emoji": "🌸",
+ "vibe": "四季如春 · 通往东南亚",
+ "members": 380,
+ "meetupCount": 8,
+ "costHint": "¥3,500/月起",
+ "wifiMbps": 55,
+ "tags": ["温暖", "便宜"],
+ "hot": False,
+ "lat": 25.0389,
+ "lng": 102.7183,
+ },
+ {
+ "id": "shenzhen",
+ "name": "深圳",
+ "country": "中国",
+ "emoji": "🚀",
+ "vibe": "科技创新 · 创业友好",
+ "members": 850,
+ "meetupCount": 22,
+ "costHint": "¥8,000/月起",
+ "wifiMbps": 120,
+ "tags": ["热门", "高速网络", "一线城市"],
+ "hot": True,
+ "lat": 22.5431,
+ "lng": 114.0579,
+ },
+ {
+ "id": "xiamen",
+ "name": "厦门",
+ "country": "中国",
+ "emoji": "🏝️",
+ "vibe": "海滨花园 · 鼓浪屿",
+ "members": 320,
+ "meetupCount": 7,
+ "costHint": "¥5,500/月起",
+ "wifiMbps": 70,
+ "tags": ["海滨", "温暖"],
+ "hot": False,
+ "lat": 24.4798,
+ "lng": 118.0894,
+ },
+ {
+ "id": "shanghai",
+ "name": "上海",
+ "country": "中国",
+ "emoji": "🌆",
+ "vibe": "国际大都市 · 文化交汇",
+ "members": 1200,
+ "meetupCount": 28,
+ "costHint": "¥10,000/月起",
+ "wifiMbps": 110,
+ "tags": ["一线城市", "热门"],
+ "hot": True,
+ "lat": 31.2304,
+ "lng": 121.4737,
+ },
+ {
+ "id": "lijiang",
+ "name": "丽江",
+ "country": "中国",
+ "emoji": "🏯",
+ "vibe": "玉龙雪山 · 古城慢旅",
+ "members": 280,
+ "meetupCount": 5,
+ "costHint": "¥3,200/月起",
+ "wifiMbps": 45,
+ "tags": ["便宜", "山城"],
+ "hot": False,
+ "lat": 26.8721,
+ "lng": 100.2299,
+ },
+]
+
+# 国际城市(Hub 中文锁期间不进 SEED_CITIES)
+SEED_CITIES_INTL: list[dict[str, Any]] = [
+ {
+ "id": "chiangmai",
+ "name": "清迈",
+ "country": "泰国",
+ "emoji": "🌿",
+ "vibe": "Nimman · 游民大本营",
+ "members": 940,
+ "meetupCount": 36,
+ "costHint": "฿18,000/月起",
+ "wifiMbps": 90,
+ "tags": ["热门", "友好社区", "高速网络"],
+ "hot": True,
+ "lat": 18.7883,
+ "lng": 98.9853,
+ },
+ {
+ "id": "bali",
+ "name": "巴厘岛",
+ "country": "印尼",
+ "emoji": "🌴",
+ "vibe": "Canggu · 冲浪与 cowork",
+ "members": 720,
+ "meetupCount": 24,
+ "costHint": "Rp8jt/月起",
+ "wifiMbps": 60,
+ "tags": ["海滨", "温暖", "热门"],
+ "hot": True,
+ "lat": -8.6478,
+ "lng": 115.1385,
+ },
+ {
+ "id": "lisbon",
+ "name": "里斯本",
+ "country": "葡萄牙",
+ "emoji": "🌊",
+ "vibe": "阳光海岸 · 欧洲时区",
+ "members": 610,
+ "meetupCount": 16,
+ "costHint": "€1,200/月起",
+ "wifiMbps": 100,
+ "tags": ["海滨", "友好社区"],
+ "hot": False,
+ "lat": 38.7223,
+ "lng": -9.1393,
+ },
+ {
+ "id": "penang",
+ "name": "槟城",
+ "country": "马来西亚",
+ "emoji": "🍜",
+ "vibe": "美食 · 海风开放工位",
+ "members": 260,
+ "meetupCount": 6,
+ "costHint": "RM2,800/月起",
+ "wifiMbps": 100,
+ "tags": ["美食", "便宜"],
+ "hot": False,
+ "lat": 5.4141,
+ "lng": 100.3288,
+ },
+]
+
+_BY_ID = {c["id"]: c for c in SEED_CITIES}
+_BY_NAME = {c["name"]: c for c in SEED_CITIES}
+
+
+def list_seed_cities() -> list[dict[str, Any]]:
+ return [dict(c) for c in SEED_CITIES]
+
+
+def get_seed_city(city_id: str) -> dict[str, Any] | None:
+ c = _BY_ID.get((city_id or "").strip())
+ return dict(c) if c else None
+
+
+def resolve_city_id(city: str, city_id: str | None = None) -> str | None:
+ if city_id and city_id in _BY_ID:
+ return city_id
+ name = (city or "").split("·")[0].strip()
+ hit = _BY_NAME.get(name)
+ return hit["id"] if hit else None
+
+
+def city_public(c: dict[str, Any], *, extras: dict[str, Any] | None = None) -> dict[str, Any]:
+ out = {
+ "id": c["id"],
+ "name": c["name"],
+ "country": c["country"],
+ "emoji": c.get("emoji", ""),
+ "vibe": c.get("vibe", ""),
+ "lat": c["lat"],
+ "lng": c["lng"],
+ "memberCount": int(c.get("members") or 0),
+ "meetupCount": int(c.get("meetupCount") or 0),
+ "costHint": c.get("costHint", ""),
+ "wifiMbps": c.get("wifiMbps"),
+ "tags": list(c.get("tags") or []),
+ "hot": bool(c.get("hot")),
+ }
+ if extras:
+ out.update(extras)
+ return out
diff --git a/apps/api/services/hub_svc/geo_h3.py b/apps/api/services/hub_svc/geo_h3.py
new file mode 100644
index 0000000..35e0c9a
--- /dev/null
+++ b/apps/api/services/hub_svc/geo_h3.py
@@ -0,0 +1,25 @@
+"""H3 cell helpers — soft-dep on `h3` package; rounded fallback otherwise."""
+from __future__ import annotations
+
+from .config import H3_CITY_RES, H3_NEAR_RES
+
+try:
+ import h3 # type: ignore
+
+ def latlng_to_cell(lat: float, lng: float, res: int | None = None) -> str:
+ r = H3_CITY_RES if res is None else res
+ return str(h3.latlng_to_cell(float(lat), float(lng), int(r)))
+
+ def near_cell(lat: float, lng: float) -> str:
+ return latlng_to_cell(lat, lng, H3_NEAR_RES)
+
+except Exception: # pragma: no cover
+
+ def latlng_to_cell(lat: float, lng: float, res: int | None = None) -> str:
+ r = H3_CITY_RES if res is None else res
+ # Coarse grid fallback (~res 4–5 order of magnitude)
+ step = 0.5 if r <= 4 else 0.2 if r <= 5 else 0.05
+ return f"g{r}:{round(float(lat) / step) * step:.4f}:{round(float(lng) / step) * step:.4f}"
+
+ def near_cell(lat: float, lng: float) -> str:
+ return latlng_to_cell(lat, lng, H3_NEAR_RES)
diff --git a/apps/api/services/hub_svc/geo_pb.py b/apps/api/services/hub_svc/geo_pb.py
new file mode 100644
index 0000000..e528880
--- /dev/null
+++ b/apps/api/services/hub_svc/geo_pb.py
@@ -0,0 +1,330 @@
+"""PocketBase `hub_trips` — primary SoT when admin credentials work."""
+from __future__ import annotations
+
+import logging
+import time
+from typing import Any
+
+import httpx
+
+from .config import (
+ PB_ADMIN_EMAIL,
+ PB_ADMIN_PASSWORD,
+ PB_URL,
+ HUB_GEO_USE_PB,
+ HUB_TRIPS_COLLECTION,
+)
+
+log = logging.getLogger("hub_svc.geo_pb")
+
+_token: str | None = None
+_token_at = 0.0
+_ensured = False
+
+
+def pb_enabled() -> bool:
+ return bool(
+ HUB_GEO_USE_PB
+ and PB_URL
+ and PB_ADMIN_EMAIL
+ and PB_ADMIN_PASSWORD
+ )
+
+
+def _now() -> str:
+ return time.strftime("%Y-%m-%dT%H:%M:%S.000Z", time.gmtime())
+
+
+def _auth_token() -> str | None:
+ global _token, _token_at
+ if not pb_enabled():
+ return None
+ if _token and (time.time() - _token_at) < 300:
+ return _token
+ base = PB_URL.rstrip("/")
+ try:
+ with httpx.Client(timeout=8.0) as client:
+ # PB 0.22+ superusers; fall back to legacy admins
+ for path in (
+ "/api/collections/_superusers/auth-with-password",
+ "/api/admins/auth-with-password",
+ ):
+ r = client.post(
+ f"{base}{path}",
+ json={"identity": PB_ADMIN_EMAIL, "password": PB_ADMIN_PASSWORD},
+ )
+ if r.status_code < 400:
+ data = r.json()
+ tok = data.get("token")
+ if tok:
+ _token = str(tok)
+ _token_at = time.time()
+ return _token
+ except Exception as exc: # pragma: no cover
+ log.warning("pb auth failed: %s", exc)
+ return None
+
+
+def _headers() -> dict[str, str] | None:
+ tok = _auth_token()
+ if not tok:
+ return None
+ return {"Authorization": tok}
+
+
+def ensure_collection() -> bool:
+ """Best-effort create `hub_trips` collection if missing."""
+ global _ensured
+ if _ensured:
+ return True
+ headers = _headers()
+ if not headers:
+ return False
+ base = PB_URL.rstrip("/")
+ name = HUB_TRIPS_COLLECTION
+ try:
+ with httpx.Client(timeout=12.0) as client:
+ chk = client.get(f"{base}/api/collections/{name}", headers=headers)
+ if chk.status_code == 200:
+ _ensured = True
+ return True
+ body = {
+ "name": name,
+ "type": "base",
+ "listRule": "",
+ "viewRule": "",
+ "createRule": "",
+ "updateRule": "",
+ "deleteRule": "",
+ "fields": [
+ {"name": "guest_id", "type": "text", "required": True},
+ {"name": "city_id", "type": "text", "required": False},
+ {"name": "city", "type": "text", "required": True},
+ {"name": "country", "type": "text", "required": False},
+ {"name": "lat", "type": "number", "required": False},
+ {"name": "lng", "type": "number", "required": False},
+ {"name": "h3_cell", "type": "text", "required": False},
+ {"name": "arrival_date", "type": "text", "required": False},
+ {"name": "departure_date", "type": "text", "required": False},
+ {
+ "name": "visibility",
+ "type": "select",
+ "required": True,
+ "maxSelect": 1,
+ "values": ["public", "friends", "private"],
+ },
+ {
+ "name": "status",
+ "type": "select",
+ "required": True,
+ "maxSelect": 1,
+ "values": ["here", "planned", "past"],
+ },
+ {"name": "updated_at", "type": "text", "required": True},
+ ],
+ "indexes": [
+ "CREATE INDEX idx_social_trips_guest ON hub_trips (guest_id)",
+ "CREATE INDEX idx_social_trips_city ON hub_trips (city_id)",
+ ],
+ }
+ # PocketBase 0.22+ uses `fields`; older used `schema`
+ created = client.post(
+ f"{base}/api/collections",
+ headers=headers,
+ json=body,
+ )
+ if created.status_code >= 400:
+ body_legacy = {
+ "name": name,
+ "type": "base",
+ "listRule": None,
+ "viewRule": None,
+ "createRule": None,
+ "updateRule": None,
+ "deleteRule": None,
+ "schema": [
+ {"name": "guest_id", "type": "text", "required": True},
+ {"name": "city_id", "type": "text", "required": False},
+ {"name": "city", "type": "text", "required": True},
+ {"name": "country", "type": "text", "required": False},
+ {"name": "lat", "type": "number", "required": False},
+ {"name": "lng", "type": "number", "required": False},
+ {"name": "h3_cell", "type": "text", "required": False},
+ {"name": "arrival_date", "type": "text", "required": False},
+ {"name": "departure_date", "type": "text", "required": False},
+ {
+ "name": "visibility",
+ "type": "select",
+ "required": True,
+ "options": {"maxSelect": 1, "values": ["public", "friends", "private"]},
+ },
+ {
+ "name": "status",
+ "type": "select",
+ "required": True,
+ "options": {"maxSelect": 1, "values": ["here", "planned", "past"]},
+ },
+ {"name": "updated_at", "type": "text", "required": True},
+ ],
+ }
+ created = client.post(
+ f"{base}/api/collections",
+ headers=headers,
+ json=body_legacy,
+ )
+ if created.status_code < 400:
+ _ensured = True
+ log.info("created PocketBase collection %s", name)
+ return True
+ log.warning("pb create collection failed: %s %s", created.status_code, created.text[:200])
+ except Exception as exc: # pragma: no cover
+ log.warning("pb ensure_collection: %s", exc)
+ return False
+
+
+def _rec_to_trip(rec: dict[str, Any]) -> dict[str, Any]:
+ return {
+ "id": rec.get("id") or "",
+ "guest_id": rec.get("guest_id") or "",
+ "city_id": rec.get("city_id") or "",
+ "city": rec.get("city") or "",
+ "country": rec.get("country") or "",
+ "lat": rec.get("lat"),
+ "lng": rec.get("lng"),
+ "h3_cell": rec.get("h3_cell") or "",
+ "arrival_date": rec.get("arrival_date") or "",
+ "departure_date": rec.get("departure_date") or "",
+ "visibility": rec.get("visibility") or "public",
+ "status": rec.get("status") or "planned",
+ "updated_at": rec.get("updated_at") or "",
+ }
+
+
+def list_trips(
+ *,
+ guest_id: str | None = None,
+ city_id: str | None = None,
+ visibility: str | None = "public",
+ status: str | None = None,
+ limit: int = 200,
+) -> list[dict[str, Any]] | None:
+ """Return trips from PB, or None if PB unavailable (caller falls back to SQLite)."""
+ headers = _headers()
+ if not headers:
+ return None
+ ensure_collection()
+ filters: list[str] = []
+ if guest_id:
+ filters.append(f'guest_id="{guest_id}"')
+ if city_id:
+ filters.append(f'city_id="{city_id}"')
+ if visibility:
+ filters.append(f'visibility="{visibility}"')
+ if status:
+ filters.append(f'status="{status}"')
+ params: dict[str, Any] = {
+ "page": 1,
+ "perPage": max(1, min(limit, 500)),
+ "sort": "-updated_at",
+ }
+ if filters:
+ params["filter"] = " && ".join(filters)
+ base = PB_URL.rstrip("/")
+ col = HUB_TRIPS_COLLECTION
+ try:
+ with httpx.Client(timeout=10.0) as client:
+ r = client.get(
+ f"{base}/api/collections/{col}/records",
+ headers=headers,
+ params=params,
+ )
+ if r.status_code >= 400:
+ return None
+ items = r.json().get("items") or []
+ return [_rec_to_trip(x) for x in items if isinstance(x, dict)]
+ except Exception as exc: # pragma: no cover
+ log.warning("pb list_trips: %s", exc)
+ return None
+
+
+def upsert_trip(trip: dict[str, Any]) -> dict[str, Any] | None:
+ headers = _headers()
+ if not headers:
+ return None
+ ensure_collection()
+ base = PB_URL.rstrip("/")
+ col = HUB_TRIPS_COLLECTION
+ payload = {
+ "guest_id": trip["guest_id"],
+ "city_id": trip.get("city_id") or "",
+ "city": trip["city"],
+ "country": trip.get("country") or "",
+ "lat": trip.get("lat"),
+ "lng": trip.get("lng"),
+ "h3_cell": trip.get("h3_cell") or "",
+ "arrival_date": trip.get("arrival_date") or "",
+ "departure_date": trip.get("departure_date") or "",
+ "visibility": trip.get("visibility") or "public",
+ "status": trip.get("status") or "planned",
+ "updated_at": trip.get("updated_at") or _now(),
+ }
+ tid = trip.get("id") or ""
+ try:
+ with httpx.Client(timeout=10.0) as client:
+ if tid:
+ r = client.patch(
+ f"{base}/api/collections/{col}/records/{tid}",
+ headers=headers,
+ json=payload,
+ )
+ if r.status_code >= 400:
+ # maybe id is sqlite-local; create new
+ r = client.post(
+ f"{base}/api/collections/{col}/records",
+ headers=headers,
+ json=payload,
+ )
+ else:
+ r = client.post(
+ f"{base}/api/collections/{col}/records",
+ headers=headers,
+ json=payload,
+ )
+ if r.status_code >= 400:
+ log.warning("pb upsert_trip failed: %s", r.text[:200])
+ return None
+ return _rec_to_trip(r.json())
+ except Exception as exc: # pragma: no cover
+ log.warning("pb upsert_trip: %s", exc)
+ return None
+
+
+def delete_trip(trip_id: str, guest_id: str) -> bool | None:
+ """True deleted, False not found/forbidden, None PB down."""
+ headers = _headers()
+ if not headers:
+ return None
+ ensure_collection()
+ base = PB_URL.rstrip("/")
+ col = HUB_TRIPS_COLLECTION
+ try:
+ with httpx.Client(timeout=8.0) as client:
+ get = client.get(
+ f"{base}/api/collections/{col}/records/{trip_id}",
+ headers=headers,
+ )
+ if get.status_code == 404:
+ return False
+ if get.status_code >= 400:
+ return None
+ rec = get.json()
+ if (rec.get("guest_id") or "") != guest_id:
+ return False
+ d = client.delete(
+ f"{base}/api/collections/{col}/records/{trip_id}",
+ headers=headers,
+ )
+ return d.status_code < 400
+ except Exception as exc: # pragma: no cover
+ log.warning("pb delete_trip: %s", exc)
+ return None
diff --git a/apps/api/services/hub_svc/geo_store.py b/apps/api/services/hub_svc/geo_store.py
new file mode 100644
index 0000000..ccba3a3
--- /dev/null
+++ b/apps/api/services/hub_svc/geo_store.py
@@ -0,0 +1,382 @@
+"""Trips store: SQLite always; PocketBase preferred SoT when reachable."""
+from __future__ import annotations
+
+import time
+import uuid
+from datetime import date
+from typing import Any
+
+from . import geo_pb
+from .geo_cities import (
+ city_public,
+ get_seed_city,
+ list_seed_cities,
+ resolve_city_id,
+)
+from .geo_h3 import latlng_to_cell
+from .store import db
+
+
+def _uid() -> str:
+ return f"trip_{uuid.uuid4().hex[:12]}"
+
+
+def _now() -> str:
+ return time.strftime("%Y-%m-%dT%H:%M:%S.000Z", time.gmtime())
+
+
+def ensure_trips_schema() -> None:
+ with db() as conn:
+ conn.executescript(
+ """
+ CREATE TABLE IF NOT EXISTS trips (
+ id TEXT PRIMARY KEY,
+ guest_id TEXT NOT NULL,
+ city_id TEXT,
+ city TEXT NOT NULL,
+ country TEXT,
+ lat REAL,
+ lng REAL,
+ h3_cell TEXT,
+ arrival_date TEXT,
+ departure_date TEXT,
+ visibility TEXT NOT NULL DEFAULT 'public',
+ status TEXT NOT NULL DEFAULT 'planned',
+ updated_at TEXT NOT NULL
+ );
+ CREATE INDEX IF NOT EXISTS idx_trips_guest ON trips(guest_id);
+ CREATE INDEX IF NOT EXISTS idx_trips_city ON trips(city_id);
+ CREATE INDEX IF NOT EXISTS idx_trips_vis ON trips(visibility, status);
+ """
+ )
+
+
+def _row_trip(r: Any) -> dict[str, Any]:
+ return {
+ "id": r["id"],
+ "guest_id": r["guest_id"],
+ "city_id": r["city_id"] or "",
+ "city": r["city"],
+ "country": r["country"] or "",
+ "lat": r["lat"],
+ "lng": r["lng"],
+ "h3_cell": r["h3_cell"] or "",
+ "arrival_date": r["arrival_date"] or "",
+ "departure_date": r["departure_date"] or "",
+ "visibility": r["visibility"] or "public",
+ "status": r["status"] or "planned",
+ "updated_at": r["updated_at"],
+ }
+
+
+def list_trips_sqlite(
+ *,
+ guest_id: str | None = None,
+ city_id: str | None = None,
+ visibility: str | None = None,
+ status: str | None = None,
+ limit: int = 200,
+) -> list[dict[str, Any]]:
+ ensure_trips_schema()
+ clauses: list[str] = []
+ args: list[Any] = []
+ if guest_id:
+ clauses.append("guest_id = ?")
+ args.append(guest_id)
+ if city_id:
+ clauses.append("city_id = ?")
+ args.append(city_id)
+ if visibility:
+ clauses.append("visibility = ?")
+ args.append(visibility)
+ if status:
+ clauses.append("status = ?")
+ args.append(status)
+ where = (" WHERE " + " AND ".join(clauses)) if clauses else ""
+ sql = f"SELECT * FROM trips{where} ORDER BY updated_at DESC LIMIT ?"
+ args.append(max(1, min(limit, 500)))
+ with db() as conn:
+ rows = conn.execute(sql, args).fetchall()
+ return [_row_trip(r) for r in rows]
+
+
+def list_trips(**kwargs: Any) -> list[dict[str, Any]]:
+ pb = geo_pb.list_trips(**kwargs)
+ if pb is not None:
+ return pb
+ return list_trips_sqlite(**kwargs)
+
+
+def save_trip_sqlite(trip: dict[str, Any]) -> dict[str, Any]:
+ ensure_trips_schema()
+ with db() as conn:
+ conn.execute(
+ """
+ INSERT INTO trips (
+ id, guest_id, city_id, city, country, lat, lng, h3_cell,
+ arrival_date, departure_date, visibility, status, updated_at
+ ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)
+ ON CONFLICT(id) DO UPDATE SET
+ city_id=excluded.city_id,
+ city=excluded.city,
+ country=excluded.country,
+ lat=excluded.lat,
+ lng=excluded.lng,
+ h3_cell=excluded.h3_cell,
+ arrival_date=excluded.arrival_date,
+ departure_date=excluded.departure_date,
+ visibility=excluded.visibility,
+ status=excluded.status,
+ updated_at=excluded.updated_at
+ """,
+ (
+ trip["id"],
+ trip["guest_id"],
+ trip.get("city_id") or "",
+ trip["city"],
+ trip.get("country") or "",
+ trip.get("lat"),
+ trip.get("lng"),
+ trip.get("h3_cell") or "",
+ trip.get("arrival_date") or "",
+ trip.get("departure_date") or "",
+ trip.get("visibility") or "public",
+ trip.get("status") or "planned",
+ trip.get("updated_at") or _now(),
+ ),
+ )
+ return trip
+
+
+def create_trip(guest_id: str, payload: dict[str, Any]) -> dict[str, Any]:
+ city = (payload.get("city") or "").strip()
+ if not city:
+ raise ValueError("city required")
+ city_id = (payload.get("city_id") or "").strip() or resolve_city_id(city) or ""
+ seed = get_seed_city(city_id) if city_id else None
+ lat = payload.get("lat")
+ lng = payload.get("lng")
+ if lat is None and seed:
+ lat = seed["lat"]
+ if lng is None and seed:
+ lng = seed["lng"]
+ country = (payload.get("country") or "").strip() or (seed or {}).get("country") or ""
+ h3_cell = ""
+ if lat is not None and lng is not None:
+ h3_cell = latlng_to_cell(float(lat), float(lng))
+ trip = {
+ "id": _uid(),
+ "guest_id": guest_id,
+ "city_id": city_id,
+ "city": city,
+ "country": country,
+ "lat": float(lat) if lat is not None else None,
+ "lng": float(lng) if lng is not None else None,
+ "h3_cell": h3_cell,
+ "arrival_date": (payload.get("arrival_date") or "").strip()[:10],
+ "departure_date": (payload.get("departure_date") or "").strip()[:10],
+ "visibility": (payload.get("visibility") or "public").strip() or "public",
+ "status": (payload.get("status") or "planned").strip() or "planned",
+ "updated_at": _now(),
+ }
+ if trip["visibility"] not in {"public", "friends", "private"}:
+ trip["visibility"] = "public"
+ if trip["status"] not in {"here", "planned", "past"}:
+ trip["status"] = "planned"
+ pb = geo_pb.upsert_trip(trip)
+ if pb:
+ # keep local mirror with PB id
+ trip = pb
+ save_trip_sqlite(trip)
+ return trip
+
+
+def update_trip(guest_id: str, trip_id: str, payload: dict[str, Any]) -> dict[str, Any] | None:
+ existing = None
+ for t in list_trips(guest_id=guest_id, visibility=None, limit=500):
+ if t["id"] == trip_id:
+ existing = t
+ break
+ if not existing:
+ # try sqlite only
+ rows = list_trips_sqlite(guest_id=guest_id, visibility=None, limit=500)
+ existing = next((t for t in rows if t["id"] == trip_id), None)
+ if not existing:
+ return None
+ city = (payload.get("city") or existing["city"]).strip()
+ city_id = (payload.get("city_id") if "city_id" in payload else existing.get("city_id")) or ""
+ city_id = str(city_id).strip() or resolve_city_id(city) or ""
+ seed = get_seed_city(city_id) if city_id else None
+ lat = payload.get("lat", existing.get("lat"))
+ lng = payload.get("lng", existing.get("lng"))
+ if lat is None and seed:
+ lat = seed["lat"]
+ if lng is None and seed:
+ lng = seed["lng"]
+ trip = {
+ **existing,
+ "city": city,
+ "city_id": city_id,
+ "country": (payload.get("country") if "country" in payload else existing.get("country"))
+ or (seed or {}).get("country")
+ or "",
+ "lat": float(lat) if lat is not None else None,
+ "lng": float(lng) if lng is not None else None,
+ "arrival_date": (
+ payload.get("arrival_date")
+ if "arrival_date" in payload
+ else existing.get("arrival_date")
+ )
+ or "",
+ "departure_date": (
+ payload.get("departure_date")
+ if "departure_date" in payload
+ else existing.get("departure_date")
+ )
+ or "",
+ "visibility": (
+ payload.get("visibility")
+ if "visibility" in payload
+ else existing.get("visibility")
+ )
+ or "public",
+ "status": (payload.get("status") if "status" in payload else existing.get("status"))
+ or "planned",
+ "updated_at": _now(),
+ }
+ if trip["lat"] is not None and trip["lng"] is not None:
+ trip["h3_cell"] = latlng_to_cell(float(trip["lat"]), float(trip["lng"]))
+ pb = geo_pb.upsert_trip(trip)
+ if pb:
+ trip = pb
+ save_trip_sqlite(trip)
+ return trip
+
+
+def delete_trip(guest_id: str, trip_id: str) -> bool:
+ pb = geo_pb.delete_trip(trip_id, guest_id)
+ ensure_trips_schema()
+ with db() as conn:
+ cur = conn.execute(
+ "DELETE FROM trips WHERE id = ? AND guest_id = ?",
+ (trip_id, guest_id),
+ )
+ local = cur.rowcount > 0
+ if pb is True:
+ return True
+ if pb is False and not local:
+ return False
+ return local or pb is not False
+
+
+def map_cities() -> list[dict[str, Any]]:
+ """City aggregation for map — seed counts + live trip overlays (no personal coords)."""
+ trips = list_trips(visibility="public", limit=500)
+ live_by_city: dict[str, dict[str, int]] = {}
+ for t in trips:
+ cid = t.get("city_id") or resolve_city_id(t.get("city") or "") or ""
+ if not cid:
+ continue
+ bucket = live_by_city.setdefault(cid, {"here": 0, "planned": 0})
+ st = t.get("status") or "planned"
+ if st == "here":
+ bucket["here"] += 1
+ elif st == "planned":
+ bucket["planned"] += 1
+ out = []
+ for c in list_seed_cities():
+ live = live_by_city.get(c["id"], {})
+ extras = {
+ "arrivingSoon": int(live.get("planned") or 0),
+ "currentlyHere": int(live.get("here") or 0),
+ "h3": latlng_to_cell(c["lat"], c["lng"]),
+ # bump seed memberCount with live presence signal (display only)
+ "memberCount": int(c.get("members") or 0) + int(live.get("here") or 0),
+ }
+ out.append(city_public(c, extras=extras))
+ return out
+
+
+def city_detail(city_id: str) -> dict[str, Any] | None:
+ seed = get_seed_city(city_id)
+ if not seed:
+ return None
+ trips = list_trips(city_id=city_id, visibility="public", limit=200)
+ here = [t for t in trips if t.get("status") == "here"]
+ planned = [t for t in trips if t.get("status") == "planned"]
+ base = city_public(
+ seed,
+ extras={
+ "currentlyHere": len(here),
+ "arrivingSoon": len(planned),
+ "h3": latlng_to_cell(seed["lat"], seed["lng"]),
+ "memberCount": int(seed.get("members") or 0) + len(here),
+ },
+ )
+ base["recentArrivals"] = [
+ {
+ "guestId": t["guest_id"][:8] + "…",
+ "city": t["city"],
+ "status": t["status"],
+ "arrival_date": t.get("arrival_date") or "",
+ "departure_date": t.get("departure_date") or "",
+ }
+ for t in (here + planned)[:12]
+ ]
+ return base
+
+
+def _parse_ymd(s: str) -> date | None:
+ s = (s or "").strip()[:10]
+ if len(s) < 10:
+ return None
+ try:
+ return date.fromisoformat(s)
+ except ValueError:
+ return None
+
+
+def travel_overlaps(guest_id: str) -> list[dict[str, Any]]:
+ mine = list_trips(guest_id=guest_id, visibility=None, limit=100)
+ mine = [t for t in mine if t.get("visibility") != "private"]
+ others = [
+ t
+ for t in list_trips(visibility="public", limit=500)
+ if t.get("guest_id") != guest_id
+ ]
+ out: list[dict[str, Any]] = []
+ for a in mine:
+ a0, a1 = _parse_ymd(a.get("arrival_date") or ""), _parse_ymd(a.get("departure_date") or "")
+ if not a0 or not a1 or a1 < a0:
+ continue
+ for b in others:
+ if (a.get("city_id") and b.get("city_id") and a["city_id"] != b["city_id"]) or (
+ not a.get("city_id")
+ and (a.get("city") or "").split("·")[0].strip()
+ != (b.get("city") or "").split("·")[0].strip()
+ ):
+ continue
+ b0, b1 = _parse_ymd(b.get("arrival_date") or ""), _parse_ymd(
+ b.get("departure_date") or ""
+ )
+ if not b0 or not b1 or b1 < b0:
+ continue
+ start = max(a0, b0)
+ end = min(a1, b1)
+ if end < start:
+ continue
+ days = (end - start).days + 1
+ out.append(
+ {
+ "city": a.get("city") or b.get("city"),
+ "cityId": a.get("city_id") or b.get("city_id") or "",
+ "overlapDays": days,
+ "from": start.isoformat(),
+ "to": end.isoformat(),
+ "otherGuest": (b.get("guest_id") or "")[:8] + "…",
+ "myTripId": a["id"],
+ "theirStatus": b.get("status") or "",
+ }
+ )
+ out.sort(key=lambda x: (-int(x["overlapDays"]), x["from"]))
+ return out[:50]
diff --git a/apps/api/services/hub_svc/im.py b/apps/api/services/hub_svc/im.py
new file mode 100644
index 0000000..1c67c17
--- /dev/null
+++ b/apps/api/services/hub_svc/im.py
@@ -0,0 +1,45 @@
+"""Tinode-inspired IM primitives on Nomadro social stack.
+
+Borrowed ideas (not code) from tinode/chat:
+- per-topic monotonic ``seq`` for sync / unread / pagination
+- clientId idempotent publish
+- note.recv / note.read watermarks
+- lightweight rate limit before fan-out
+
+Transport stays Centrifugo; persistence stays SQLite (isolated social.db).
+"""
+from __future__ import annotations
+
+import time
+from collections import defaultdict, deque
+from threading import Lock
+from typing import Any
+
+# guest -> timestamps of recent posts (process-local; fine for single social worker)
+_RATE: dict[str, deque[float]] = defaultdict(deque)
+_RATE_LOCK = Lock()
+_RATE_WINDOW_SEC = 60.0
+_RATE_MAX = 30 # msgs / window / guest
+
+
+def check_rate(guest_id: str) -> None:
+ """Raise ValueError if guest exceeds send rate."""
+ now = time.time()
+ key = (guest_id or "").strip() or "_"
+ with _RATE_LOCK:
+ q = _RATE[key]
+ while q and now - q[0] > _RATE_WINDOW_SEC:
+ q.popleft()
+ if len(q) >= _RATE_MAX:
+ raise ValueError("发送过快,请稍后再试")
+ q.append(now)
+
+
+def note_event(what: str, seq: int, guest_id: str) -> dict[str, Any]:
+ return {
+ "type": "chat.note",
+ "what": what, # recv | read | kp
+ "seq": int(seq),
+ "guestId": guest_id,
+ "at": time.strftime("%Y-%m-%dT%H:%M:%S.000Z", time.gmtime()),
+ }
diff --git a/apps/api/services/hub_svc/live.py b/apps/api/services/hub_svc/live.py
new file mode 100644
index 0000000..906a409
--- /dev/null
+++ b/apps/api/services/hub_svc/live.py
@@ -0,0 +1,156 @@
+"""游民社区原生音视频厅 — SRS RTMP 推流 + HTTP-FLV 拉流 + 房间信令。
+
+微信小程序:LivePusher(pushUrl) + LivePlayer(playUrl)
+门户 H5:仍可用 MiroTalk;本模块给 weapp 原生厅发流地址。
+"""
+from __future__ import annotations
+
+import hashlib
+import hmac
+import os
+import re
+import threading
+import time
+from typing import Any
+
+from hub_svc.config import (
+ LIVE_HTTP_PLAY_BASE,
+ LIVE_MAX_PEERS,
+ LIVE_PEER_TTL_SEC,
+ LIVE_RTMP_PUSH_BASE,
+ LIVE_STREAM_SECRET,
+)
+
+_lock = threading.RLock()
+# room_id -> { peer_id: peer_dict }
+_rooms: dict[str, dict[str, dict[str, Any]]] = {}
+
+
+def _safe(s: str, n: int = 48) -> str:
+ t = re.sub(r"[^a-zA-Z0-9_-]+", "", (s or "").strip())[:n]
+ return t or "x"
+
+
+def _sig(stream: str, exp: int) -> str:
+ raw = f"{stream}:{exp}".encode("utf-8")
+ return hmac.new(LIVE_STREAM_SECRET.encode("utf-8"), raw, hashlib.sha256).hexdigest()[:16]
+
+
+def stream_name(room_id: str, peer_id: str) -> str:
+ return f"{_safe(room_id, 24)}_{_safe(peer_id, 24)}"
+
+
+def build_urls(room_id: str, peer_id: str) -> dict[str, str]:
+ stream = stream_name(room_id, peer_id)
+ exp = int(time.time()) + 3600 * 6
+ token = _sig(stream, exp)
+ # 微信 LivePusher:RTMP url 勿带 query,否则真机常推流失败→本地黑屏
+ push = f"{LIVE_RTMP_PUSH_BASE.rstrip('/')}/{stream}"
+ # HTTP-FLV 拉流可带 token(nginx/SRS 忽略未知参数)
+ play = f"{LIVE_HTTP_PLAY_BASE.rstrip('/')}/{stream}.flv?e={exp}&k={token}"
+ return {"stream": stream, "pushUrl": push, "playUrl": play}
+
+
+def _purge(room_id: str) -> None:
+ now = time.time()
+ room = _rooms.get(room_id) or {}
+ dead = [pid for pid, p in room.items() if now - float(p.get("seen", 0)) > LIVE_PEER_TTL_SEC]
+ for pid in dead:
+ room.pop(pid, None)
+ if not room:
+ _rooms.pop(room_id, None)
+
+
+def list_peers(room_id: str) -> list[dict[str, Any]]:
+ with _lock:
+ _purge(room_id)
+ room = _rooms.get(room_id) or {}
+ return [
+ {
+ "peerId": p["peerId"],
+ "nick": p["nick"],
+ "playUrl": p["playUrl"],
+ "stream": p["stream"],
+ "seen": p["seen"],
+ }
+ for p in room.values()
+ ]
+
+
+def join_room(room_id: str, guest_id: str, nick: str) -> dict[str, Any]:
+ rid = _safe(room_id, 40)
+ gid = _safe(guest_id, 40)
+ name = (nick or "游民").strip()[:32] or "游民"
+ with _lock:
+ _purge(rid)
+ room = _rooms.setdefault(rid, {})
+ if gid not in room and len(room) >= LIVE_MAX_PEERS:
+ raise ValueError(f"厅已满(最多 {LIVE_MAX_PEERS} 人)")
+ urls = build_urls(rid, gid)
+ peer = {
+ "peerId": gid,
+ "nick": name,
+ "stream": urls["stream"],
+ "pushUrl": urls["pushUrl"],
+ "playUrl": urls["playUrl"],
+ "seen": time.time(),
+ "joinedAt": time.time(),
+ }
+ room[gid] = peer
+ peers = [
+ {
+ "peerId": p["peerId"],
+ "nick": p["nick"],
+ "playUrl": p["playUrl"],
+ "stream": p["stream"],
+ }
+ for pid, p in room.items()
+ if pid != gid
+ ]
+ return {
+ "ok": True,
+ "roomId": rid,
+ "peerId": gid,
+ "nick": name,
+ "pushUrl": urls["pushUrl"],
+ "playUrl": urls["playUrl"],
+ "stream": urls["stream"],
+ "peers": peers,
+ "maxPeers": LIVE_MAX_PEERS,
+ "channelId": f"live-{rid}",
+ "engine": "srs-rtmp-flv",
+ }
+
+
+def heartbeat(room_id: str, guest_id: str) -> dict[str, Any]:
+ rid = _safe(room_id, 40)
+ gid = _safe(guest_id, 40)
+ with _lock:
+ _purge(rid)
+ room = _rooms.get(rid) or {}
+ me = room.get(gid)
+ if not me:
+ raise ValueError("未在厅内,请重新进入")
+ me["seen"] = time.time()
+ peers = [
+ {
+ "peerId": p["peerId"],
+ "nick": p["nick"],
+ "playUrl": p["playUrl"],
+ "stream": p["stream"],
+ }
+ for pid, p in room.items()
+ if pid != gid
+ ]
+ return {"ok": True, "roomId": rid, "peers": peers, "peerCount": len(peers) + 1}
+
+
+def leave_room(room_id: str, guest_id: str) -> dict[str, Any]:
+ rid = _safe(room_id, 40)
+ gid = _safe(guest_id, 40)
+ with _lock:
+ room = _rooms.get(rid) or {}
+ room.pop(gid, None)
+ if not room:
+ _rooms.pop(rid, None)
+ return {"ok": True, "roomId": rid}
diff --git a/apps/api/services/hub_svc/notify_bridge.py b/apps/api/services/hub_svc/notify_bridge.py
new file mode 100644
index 0000000..fe05840
--- /dev/null
+++ b/apps/api/services/hub_svc/notify_bridge.py
@@ -0,0 +1,201 @@
+"""Fire Novu-domain notify_svc events from social (likes, coffee, board, city, rooms)."""
+from __future__ import annotations
+
+import json
+import logging
+import os
+import urllib.error
+import urllib.parse
+import urllib.request
+from datetime import datetime
+from typing import Any
+from zoneinfo import ZoneInfo
+
+log = logging.getLogger("hub_svc.notify_bridge")
+
+NOTIFY_INTERNAL_URL = os.getenv(
+ "NOTIFY_INTERNAL_URL",
+ os.getenv("NOTIFY_API_URL", "http://127.0.0.1:8023"),
+).rstrip("/")
+
+
+def _request(
+ method: str,
+ path: str,
+ body: dict[str, Any] | None = None,
+ timeout: float = 4.0,
+) -> dict[str, Any] | None:
+ url = f"{NOTIFY_INTERNAL_URL}{path}"
+ data = json.dumps(body).encode("utf-8") if body is not None else None
+ headers = {"Accept": "application/json"}
+ token = os.getenv('NOTIFY_INTERNAL_TOKEN')
+ if token: headers['X-Notify-Internal-Token'] = token
+ if data is not None:
+ headers["Content-Type"] = "application/json"
+ req = urllib.request.Request(url, data=data, headers=headers, method=method)
+ try:
+ with urllib.request.urlopen(req, timeout=timeout) as res:
+ raw = res.read().decode("utf-8", errors="replace")
+ return json.loads(raw) if raw else {}
+ except (urllib.error.URLError, TimeoutError, json.JSONDecodeError, OSError) as exc:
+ log.warning("notify %s %s failed: %s", method, path, exc)
+ return None
+
+
+def ensure_subscriber(guest_id: str, name: str = "游民") -> None:
+ _request(
+ "POST",
+ "/api/notify/v1/subscribers",
+ {"subscriber_id": guest_id, "first_name": (name or "游民")[:40]},
+ )
+
+
+def in_quiet_hours(channels: dict[str, Any] | None, *, dnd: bool = False) -> bool:
+ if dnd:
+ return True
+ if not channels:
+ return False
+ start = str(channels.get("quiet_start") or "").strip()
+ end = str(channels.get("quiet_end") or "").strip()
+ if not start or not end:
+ return False
+ tz_name = str(channels.get("timezone") or "Asia/Shanghai").strip() or "Asia/Shanghai"
+ try:
+ tz = ZoneInfo(tz_name)
+ except Exception:
+ tz = ZoneInfo("Asia/Shanghai")
+ now = datetime.now(tz)
+ try:
+ sh, sm = [int(x) for x in start.split(":")[:2]]
+ eh, em = [int(x) for x in end.split(":")[:2]]
+ except Exception:
+ return False
+ minutes = now.hour * 60 + now.minute
+ a = sh * 60 + sm
+ b = eh * 60 + em
+ if a == b:
+ return False
+ if a < b:
+ return a <= minutes < b
+ return minutes >= a or minutes < b
+
+
+def _load_prefs(subscriber_id: str) -> tuple[dict[str, Any], bool]:
+ raw = _request(
+ "GET",
+ f"/api/notify/v1/subscribers/{urllib.parse.quote(subscriber_id)}/preferences",
+ )
+ if not raw:
+ return {}, False
+ prefs = raw.get("preferences") or raw
+ channels = prefs.get("channels") if isinstance(prefs.get("channels"), dict) else prefs
+ if not isinstance(channels, dict):
+ channels = {}
+ dnd = bool(prefs.get("dnd") or channels.get("dnd"))
+ return channels, dnd
+
+
+def trigger(
+ workflow_id: str,
+ subscriber_id: str,
+ payload: dict[str, Any] | None = None,
+ *,
+ name: str = "游民",
+ respect_quiet: bool = True,
+) -> dict[str, Any] | None:
+ ensure_subscriber(subscriber_id, name)
+ channels, dnd = _load_prefs(subscriber_id)
+ payload = dict(payload or {})
+ if respect_quiet and in_quiet_hours(channels, dnd=dnd):
+ payload["quietHours"] = True
+ return _request(
+ "POST",
+ "/api/notify/v1/events/trigger",
+ {
+ "workflow_id": workflow_id,
+ "subscriber_id": subscriber_id,
+ "payload": {**payload, "category": payload.get("category") or "social"},
+ },
+ )
+
+
+def notify_like(to_guest: str, from_name: str) -> None:
+ trigger(
+ "social-like",
+ to_guest,
+ {"actor": from_name, "firstName": from_name, "ctaUrl": "/hub/people"},
+ name=from_name,
+ )
+
+
+def notify_coffee_invite(to_guest: str, host_name: str, title: str) -> None:
+ trigger(
+ "coffee-invite",
+ to_guest,
+ {"firstName": host_name, "title": title, "ctaUrl": "/hub/coffeechat"},
+ name=host_name,
+ )
+
+
+def notify_board_join(owner_guest: str, actor_name: str, board_title: str) -> None:
+ trigger(
+ "board-join",
+ owner_guest,
+ {
+ "firstName": actor_name,
+ "title": board_title,
+ "category": "project",
+ "ctaUrl": "/hub/work/boards",
+ },
+ name=actor_name,
+ )
+
+
+def notify_city_online(to_guest: str, city: str, peer_name: str) -> None:
+ trigger(
+ "city-online",
+ to_guest,
+ {"firstName": peer_name, "city": city, "ctaUrl": "/hub/people"},
+ name=peer_name,
+ )
+
+
+def notify_room_live(to_guest: str, room_title: str) -> None:
+ trigger(
+ "room-live",
+ to_guest,
+ {"title": room_title, "ctaUrl": "/hub/meetup"},
+ )
+
+
+def notify_report_result(reporter_guest: str, note: str, status: str) -> None:
+ trigger(
+ "report-result",
+ reporter_guest,
+ {
+ "status": status,
+ "resultNote": note,
+ "category": "system",
+ "ctaUrl": "/hub/notifications",
+ },
+ respect_quiet=False,
+ )
+
+
+def fire_city_digest(
+ subscriber_id: str,
+ city: str,
+ digest_text: str,
+ *,
+ weekly: bool = False,
+) -> None:
+ trigger(
+ "city-digest-weekly" if weekly else "city-digest-daily",
+ subscriber_id,
+ {
+ "city": city,
+ "digestText": digest_text,
+ "firstName": "游民",
+ "ctaUrl": "/hub/people",
+ },
+ )
diff --git a/apps/api/services/hub_svc/onboarding.py b/apps/api/services/hub_svc/onboarding.py
new file mode 100644
index 0000000..786392a
--- /dev/null
+++ b/apps/api/services/hub_svc/onboarding.py
@@ -0,0 +1,132 @@
+"""Cold-start: welcome + same-city recommendations via notify_svc (Novu-domain)."""
+from __future__ import annotations
+
+import logging
+import os
+from typing import Any
+
+import urllib.error
+import urllib.request
+import json
+
+log = logging.getLogger("hub_svc.onboarding")
+
+NOTIFY_INTERNAL_URL = os.getenv(
+ "NOTIFY_INTERNAL_URL",
+ os.getenv("NOTIFY_API_URL", "http://127.0.0.1:8023"),
+).rstrip("/")
+NOTIFY_ONBOARDING_ENABLED = os.getenv("HUB_ONBOARDING_NOTIFY", "true").lower() in {
+ "1",
+ "true",
+ "yes",
+ "on",
+}
+
+
+def _post(path: str, body: dict[str, Any], timeout: float = 4.0) -> dict[str, Any] | None:
+ url = f"{NOTIFY_INTERNAL_URL}{path}"
+ data = json.dumps(body).encode("utf-8")
+ req = urllib.request.Request(
+ url,
+ data=data,
+ headers={"Content-Type": "application/json", "Accept": "application/json", "X-Notify-Internal-Token": os.getenv('NOTIFY_INTERNAL_TOKEN', '')},
+ method="POST",
+ )
+ try:
+ with urllib.request.urlopen(req, timeout=timeout) as res:
+ raw = res.read().decode("utf-8", errors="replace")
+ return json.loads(raw) if raw else {}
+ except (urllib.error.URLError, TimeoutError, json.JSONDecodeError, OSError) as exc:
+ log.warning("notify call failed %s: %s", path, exc)
+ return None
+
+
+def ensure_subscriber(guest_id: str, name: str) -> None:
+ first = (name or "游民").strip()[:40] or "游民"
+ _post(
+ "/api/notify/v1/subscribers",
+ {
+ "subscriber_id": guest_id,
+ "first_name": first,
+ "data": {"source": "social-join"},
+ },
+ )
+
+
+def fire_join_onboarding(
+ *,
+ guest_id: str,
+ name: str,
+ city: str,
+ recs: list[dict[str, Any]],
+) -> dict[str, Any]:
+ """First-profile hooks: welcome + up to 3 same-city cards into in-app inbox."""
+ if not NOTIFY_ONBOARDING_ENABLED:
+ return {"ok": False, "skipped": "disabled"}
+
+ ensure_subscriber(guest_id, name)
+ first = (name or "游民").strip()[:40] or "游民"
+ city_label = (city or "").strip() or "同城"
+
+ welcome = _post(
+ "/api/notify/v1/events/trigger",
+ {
+ "workflow_id": "welcome-onboarding",
+ "subscriber_id": guest_id,
+ "payload": {
+ "firstName": first,
+ "city": city_label,
+ "category": "social",
+ },
+ },
+ )
+
+ lines: list[str] = []
+ for i, r in enumerate(recs[:3], start=1):
+ n = str(r.get("name") or "游民").strip()
+ c = str(r.get("city") or city_label).strip()
+ t = str(r.get("title") or r.get("lookingFor") or "").strip()
+ bit = f"{i}. {n} · {c}"
+ if t:
+ bit += f" · {t[:40]}"
+ lines.append(bit)
+ recs_text = "\n".join(lines) if lines else "暂时还没有同城推荐,先去「想见的人」逛逛。"
+
+ # Reuse welcome workflow shape by posting a direct social tip via a second trigger
+ # with city-recs-onboarding if present; otherwise welcome payload is enough + inbox CTA.
+ recs_result = _post(
+ "/api/notify/v1/events/trigger",
+ {
+ "workflow_id": "city-recs-onboarding",
+ "subscriber_id": guest_id,
+ "payload": {
+ "firstName": first,
+ "city": city_label,
+ "recsText": recs_text,
+ "category": "social",
+ "count": len(recs[:3]),
+ },
+ },
+ )
+ # Fallback: if city-recs workflow missing, inject via welcome-style trigger body in activity only
+ if recs_result is None and lines:
+ _post(
+ "/api/notify/v1/events/trigger",
+ {
+ "workflow_id": "welcome-onboarding",
+ "subscriber_id": guest_id,
+ "payload": {
+ "firstName": first,
+ "city": city_label,
+ "category": "social",
+ "recsText": recs_text,
+ },
+ },
+ )
+
+ return {
+ "ok": True,
+ "welcome": bool(welcome),
+ "recs": len(recs[:3]),
+ "recsText": recs_text,
+ }
diff --git a/apps/api/services/hub_svc/pb_data.py b/apps/api/services/hub_svc/pb_data.py
new file mode 100644
index 0000000..036eec3
--- /dev/null
+++ b/apps/api/services/hub_svc/pb_data.py
@@ -0,0 +1,3854 @@
+"""Hub data access via online PocketBase (no SQLite)."""
+from __future__ import annotations
+
+import os
+import time
+import uuid
+import hashlib
+import json
+from pathlib import Path
+from typing import Any
+
+from nomadro_pb import ensure_once, get_pb, pb_quote
+
+C_ROSTER = "hub_roster"
+C_LIVENESS = "hub_liveness_audits"
+C_SKILLS = "hub_skill_posts"
+C_REVIEWS = "hub_meetup_reviews"
+C_BLOCKS = "hub_blocks"
+C_REPORTS = "hub_reports"
+C_MESSAGES = "hub_messages"
+C_CHMETA = "hub_channel_meta"
+C_CAFE = "hub_cafe_reviews"
+C_FEEDBACK = "hub_feedback"
+C_JOIN_LEADS = "hub_join_leads"
+C_GIGS = "hub_gig_apps"
+C_READS = "hub_channel_reads"
+C_FILES = "hub_files"
+C_ARCHIVES = "hub_archives"
+
+# Live collection names keyed by admin entity
+ENTITY_COLLECTIONS = {
+ "roster": C_ROSTER,
+ "messages": C_MESSAGES,
+ "reviews": C_CAFE,
+ "gigApps": C_GIGS,
+ "feedback": C_FEEDBACK,
+ "joinLeads": C_JOIN_LEADS,
+ "skills": C_SKILLS,
+ "liveness": C_LIVENESS,
+ "meetupReviews": C_REVIEWS,
+ "reports": C_REPORTS,
+ "blocks": C_BLOCKS,
+ "files": C_FILES,
+ "trips": "hub_trips",
+ "coffeeBookings": "coffee_bookings",
+}
+
+
+def _uid(prefix: str) -> str:
+ return f"{prefix}_{uuid.uuid4().hex[:12]}"
+
+
+def _now() -> str:
+ return time.strftime("%Y-%m-%dT%H:%M:%S.000Z", time.gmtime())
+
+
+HUB_COLLECTION_NAMES = {
+ C_ROSTER,
+ C_LIVENESS,
+ C_SKILLS,
+ C_REVIEWS,
+ C_BLOCKS,
+ C_REPORTS,
+ C_MESSAGES,
+ C_CHMETA,
+ C_CAFE,
+ C_FEEDBACK,
+ C_JOIN_LEADS,
+ C_GIGS,
+ C_READS,
+ C_FILES,
+ C_ARCHIVES,
+ "hub_trips",
+}
+
+
+def init_pb() -> None:
+ from nomadro_pb.ensure import ensure_selected
+
+ ensure_selected(HUB_COLLECTION_NAMES)
+
+
+def archive_snapshot(
+ *,
+ entity: str,
+ entity_id: str,
+ action: str,
+ payload: dict[str, Any] | None,
+ guest_id: str = "",
+ note: str = "",
+) -> dict[str, Any]:
+ """Append-only archive. Never overwrite; never hard-delete archives."""
+ init_pb()
+ body = {
+ "entity": (entity or "unknown")[:64],
+ "entity_id": str(entity_id or "")[:120],
+ "guest_id": str(guest_id or "")[:120],
+ "action": (action or "update")[:48],
+ "payload": payload if isinstance(payload, dict) else {"raw": payload},
+ "note": (note or "")[:500],
+ "created_at": _now(),
+ }
+ return get_pb().create(C_ARCHIVES, body)
+
+
+def _soft_deleted_ids(entity: str) -> set[str]:
+ """Entity ids with a soft_delete archive (latest wins conceptually)."""
+ try:
+ init_pb()
+ rows = get_pb().list_all(
+ C_ARCHIVES,
+ filter=f"entity={pb_quote(entity)} && action={pb_quote('soft_delete')}",
+ hard_limit=5000,
+ )
+ return {str(r.get("entity_id") or "") for r in rows if r.get("entity_id")}
+ except Exception:
+ return set()
+
+
+def soft_delete_record(
+ *,
+ entity: str,
+ entity_id: str,
+ live_collection: str,
+ record: dict[str, Any] | None = None,
+ guest_id: str = "",
+ note: str = "",
+) -> bool:
+ """Soft-delete: full snapshot → archive, then hide live row (never PB delete)."""
+ init_pb()
+ pb = get_pb()
+ rec = record
+ if rec is None:
+ try:
+ rec = pb.request(
+ "GET", f"/api/collections/{live_collection}/records/{entity_id}", admin=True
+ )
+ except Exception:
+ # roster keyed by guest_id
+ if entity == "roster":
+ rec = pb.first(live_collection, filter=f"guest_id={pb_quote(entity_id)}")
+ else:
+ rec = None
+ if not rec:
+ return False
+ rid = str(rec.get("id") or entity_id)
+ gid = guest_id or str(rec.get("guest_id") or "")
+ archive_snapshot(
+ entity=entity,
+ entity_id=str(entity_id or rid),
+ action="soft_delete",
+ payload=dict(rec),
+ guest_id=gid,
+ note=note or "admin soft delete",
+ )
+ # Hide without destroying bytes
+ patch: dict[str, Any] = {"updated_at": _now()}
+ if entity == "roster":
+ patch.update({"discoverable": False, "status": "deleted"})
+ elif entity == "messages":
+ patch.update({"recalled": True, "text": "", "reactions": {}})
+ elif entity in {"reviews", "gigApps", "feedback", "skills"}:
+ # status field exists on skills; others get note marker in archive only
+ if "status" in rec or entity == "skills":
+ patch["status"] = "deleted"
+ try:
+ pb.update(live_collection, rid, patch)
+ except Exception:
+ # Field may be missing on older PB schema — archive already persisted.
+ pass
+ return True
+
+
+def health() -> dict[str, Any]:
+ pb = get_pb()
+ ok = pb.health_ok()
+ return {
+ "ok": ok,
+ "backend": "pocketbase",
+ "pb": pb.base_url,
+ "db": pb.base_url,
+ "dbBytes": 0,
+ }
+
+
+# —— roster ——
+
+
+def _face_ok_raw(raw: Any) -> bool:
+ return raw is True or raw == 1 or str(raw).lower() in {"1", "true", "yes"}
+
+
+def _roster_from_rec(r: dict[str, Any], *, public: bool = False) -> dict[str, Any]:
+ status = (r.get("status") or "online").strip() or "online"
+ skills = r.get("skills") or ""
+ intents = r.get("intents") or ""
+ tags = [t.strip() for t in skills.replace(",", ",").replace("、", ",").split(",") if t.strip()][:8]
+ face_ok = _face_ok_raw(r.get("face_ok"))
+ avatar = str(r.get("avatar") or "").strip()
+ # Public surfaces never leak no-face album photos — placeholder only.
+ if public and not face_ok:
+ avatar = ""
+ item: dict[str, Any] = {
+ "guestId": r.get("guest_id") or "",
+ "email": r.get("email") or "",
+ "name": r.get("name") or "游民",
+ "title": r.get("title") or "",
+ "city": r.get("city") or "",
+ "skills": skills,
+ "bio": r.get("bio") or "",
+ "avatar": avatar,
+ "gender": r.get("gender") or "",
+ "intents": intents,
+ "availability": r.get("availability") or "",
+ "status": status,
+ "lookingFor": r.get("looking_for") or "",
+ "updatedAt": r.get("updated_at") or "",
+ "online": status in {"online", "here", "available"},
+ "tags": tags,
+ "faceOk": face_ok,
+ "livenessStatus": r.get("liveness_status") or "none",
+ "livenessAt": r.get("liveness_at") or "",
+ "livenessVideoUrl": r.get("liveness_video_url") or "",
+ "onboardedAt": r.get("onboarded_at") or "",
+ "_id": r.get("id") or "",
+ }
+ if not public:
+ item.update(
+ {
+ "phone": r.get("phone") or "",
+ "linktree": r.get("linktree") or "",
+ "relationship": r.get("relationship") or "",
+ "education": r.get("education") or "",
+ "graduation": r.get("graduation") or "",
+ "wechat": r.get("wechat") or "",
+ "discoverable": bool(r.get("discoverable", True)),
+ "livenessFrontUrl": r.get("liveness_front_url") or "",
+ "livenessTurnUrl": r.get("liveness_turn_url") or "",
+ }
+ )
+ return item
+
+
+def get_roster(guest_id: str) -> dict[str, Any] | None:
+ init_pb()
+ rec = get_pb().first(C_ROSTER, filter=f"guest_id={pb_quote(guest_id)}")
+ return _roster_from_rec(rec, public=False) if rec else None
+
+
+def upsert_roster(guest_id: str, payload: dict[str, Any]) -> dict[str, Any]:
+ init_pb()
+ try:
+ from hub_svc.security_denylist import assert_not_denied
+
+ assert_not_denied(
+ email=str(payload.get("email") or ""),
+ guest_id=guest_id,
+ )
+ except ValueError:
+ raise
+ except Exception:
+ pass
+ existing = get_roster(guest_id)
+ is_first = existing is None
+ updated = _now()
+ avatar = str(payload.get("avatar") or "").strip()[:500]
+ if avatar and not (
+ avatar.startswith("https://")
+ or avatar.startswith("http://")
+ or avatar.startswith("/api/hub/")
+ ):
+ avatar = ""
+ intents_raw = payload.get("intents")
+ if isinstance(intents_raw, list):
+ intents = ",".join(str(x).strip() for x in intents_raw if str(x).strip())[:240]
+ else:
+ intents = str(intents_raw or "").strip()[:240]
+ status = str(payload.get("status") or "online").strip()[:32] or "online"
+ if status not in {"online", "away", "offline", "here", "available"}:
+ status = "online"
+ looking = str(payload.get("lookingFor") or payload.get("looking_for") or "").strip()[:200]
+ if not looking and intents:
+ looking = intents.replace(",", " · ")[:200]
+ discoverable = payload.get("discoverable")
+ if discoverable is None:
+ discoverable = True
+ else:
+ discoverable = str(discoverable).lower() not in {"0", "false", "no", "off"}
+ onboarded_at = (existing or {}).get("onboardedAt") or (updated if is_first else "")
+
+ email_n = str(payload.get("email") or "").strip().lower()[:160]
+ body = {
+ "guest_id": guest_id,
+ "email": email_n or str((existing or {}).get("email") or "").strip().lower()[:160],
+ "name": str(payload.get("name") or "").strip()[:64] or "游民",
+ "title": str(payload.get("title") or "").strip()[:80],
+ "city": str(payload.get("city") or "").strip()[:64],
+ "phone": str(payload.get("phone") or "").strip()[:32],
+ "linktree": str(payload.get("linktree") or "").strip()[:240],
+ "skills": str(payload.get("skills") or "").strip()[:200],
+ "bio": str(payload.get("bio") or "").strip()[:2000],
+ "avatar": avatar,
+ "gender": str(payload.get("gender") or "").strip()[:16],
+ "intents": intents,
+ "availability": str(payload.get("availability") or "").strip()[:120],
+ "status": status,
+ "looking_for": looking,
+ "relationship": str(payload.get("relationship") or "").strip()[:32],
+ "education": str(payload.get("education") or "").strip()[:32],
+ "graduation": str(payload.get("graduation") or "").strip()[:32],
+ "wechat": str(payload.get("wechat") or "").strip()[:64],
+ "discoverable": discoverable,
+ "onboarded_at": onboarded_at,
+ "updated_at": updated,
+ }
+ # Preserve face/liveness unless caller overwrites avatar via mark_face
+ if existing:
+ body.setdefault("face_ok", existing.get("faceOk", False))
+ body.setdefault("liveness_status", existing.get("livenessStatus") or "none")
+ body.setdefault("liveness_at", existing.get("livenessAt") or "")
+ body.setdefault("liveness_video_url", existing.get("livenessVideoUrl") or "")
+ body.setdefault("liveness_front_url", existing.get("livenessFrontUrl") or "")
+ body.setdefault("liveness_turn_url", existing.get("livenessTurnUrl") or "")
+ if not avatar and existing.get("avatar"):
+ body["avatar"] = existing["avatar"]
+
+ if existing:
+ archive_snapshot(
+ entity="roster",
+ entity_id=guest_id,
+ action="update",
+ payload=dict(existing),
+ guest_id=guest_id,
+ note="roster upsert before-write",
+ )
+ try:
+ get_pb().upsert(C_ROSTER, filter=f"guest_id={pb_quote(guest_id)}", payload=body)
+ except Exception:
+ # PB 尚无 email 字段时降级
+ body.pop("email", None)
+ get_pb().upsert(C_ROSTER, filter=f"guest_id={pb_quote(guest_id)}", payload=body)
+ row = get_roster(guest_id) or {}
+ row["isFirstProfile"] = is_first
+ archive_snapshot(
+ entity="roster",
+ entity_id=guest_id,
+ action="create" if is_first else "update_after",
+ payload=dict(body),
+ guest_id=guest_id,
+ note="roster upsert after-write",
+ )
+ return row
+
+
+def mark_face_photo(
+ guest_id: str,
+ avatar_url: str,
+ *,
+ face_ok: bool = False,
+) -> None:
+ """Album/selfie → avatar. face_ok only when detector saw a real face."""
+ init_pb()
+ existing = get_pb().first(C_ROSTER, filter=f"guest_id={pb_quote(guest_id)}")
+ url = avatar_url[:500]
+ now = _now()
+ if not existing:
+ get_pb().create(
+ C_ROSTER,
+ {
+ "guest_id": guest_id,
+ "name": "游民",
+ "avatar": url,
+ "face_ok": bool(face_ok),
+ "liveness_status": "none",
+ "discoverable": True,
+ "status": "online",
+ "updated_at": now,
+ },
+ )
+ return
+ live = (existing.get("liveness_status") or "").strip()
+ get_pb().update(
+ C_ROSTER,
+ existing["id"],
+ {
+ "avatar": url,
+ "face_ok": bool(face_ok),
+ "liveness_status": live if live in {"verified", "pending"} else "none",
+ "updated_at": now,
+ },
+ )
+
+
+def save_liveness_audit(
+ guest_id: str,
+ *,
+ front_url: str,
+ turn_url: str,
+ video_url: str,
+ video_size: int,
+ similarity: float | None,
+ yaw_delta: float | None,
+ meta: dict[str, Any] | None = None,
+ email: str = "",
+) -> dict[str, Any]:
+ """Live capture audit only — never overwrites roster.avatar."""
+ init_pb()
+ now = _now()
+ email_n = (email or "").strip().lower()[:160]
+ meta_body = dict(meta or {})
+ if email_n:
+ meta_body["email"] = email_n
+ item = {
+ "id": _uid("live"),
+ "guestId": guest_id,
+ "email": email_n,
+ "frontUrl": front_url,
+ "turnUrl": turn_url,
+ "videoUrl": video_url,
+ "videoSize": int(video_size or 0),
+ "similarity": similarity,
+ "yawDelta": yaw_delta,
+ "status": "verified",
+ "createdAt": now,
+ }
+ body = {
+ "guest_id": guest_id,
+ "avatar_url": "", # not an avatar
+ "front_url": front_url[:500],
+ "turn_url": turn_url[:500],
+ "video_url": (video_url or "")[:500],
+ "video_size": item["videoSize"],
+ "similarity": similarity,
+ "yaw_delta": yaw_delta,
+ "status": "verified",
+ "meta": meta_body,
+ "created_at": now,
+ }
+ if email_n:
+ body["email"] = email_n
+ try:
+ rec = get_pb().create(C_LIVENESS, body)
+ except Exception:
+ body.pop("email", None)
+ rec = get_pb().create(C_LIVENESS, body)
+ item["id"] = rec.get("id") or item["id"]
+
+ existing = get_pb().first(C_ROSTER, filter=f"guest_id={pb_quote(guest_id)}")
+ patch = {
+ # face_ok stays album-avatar only — live frames are not an avatar
+ "liveness_status": "verified",
+ "liveness_at": now,
+ "liveness_video_url": (video_url or "")[:500],
+ "liveness_front_url": front_url[:500],
+ "liveness_turn_url": turn_url[:500],
+ "updated_at": now,
+ }
+ if email_n:
+ patch["email"] = email_n
+ if existing:
+ get_pb().update(C_ROSTER, existing["id"], patch)
+ else:
+ # Placeholder only — not discoverable until profile + avatar submitted
+ create_body = {
+ "guest_id": guest_id,
+ "name": "游民",
+ "avatar": "",
+ "discoverable": False,
+ "face_ok": False,
+ "status": "offline",
+ **patch,
+ }
+ if email_n:
+ create_body["email"] = email_n
+ try:
+ get_pb().create(C_ROSTER, create_body)
+ except Exception:
+ create_body.pop("email", None)
+ get_pb().create(C_ROSTER, create_body)
+ return item
+
+
+def list_liveness_audits(*, status: str = "", limit: int = 50) -> list[dict[str, Any]]:
+ init_pb()
+ filt = f"status={pb_quote(status)}" if status else None
+ rows = get_pb().list_all(C_LIVENESS, filter=filt, sort="-created_at", hard_limit=limit)
+ out: list[dict[str, Any]] = []
+ for r in rows:
+ meta = r.get("meta") if isinstance(r.get("meta"), dict) else {}
+ out.append(
+ {
+ "id": r.get("id"),
+ "guestId": r.get("guest_id"),
+ "email": r.get("email") or meta.get("email") or "",
+ "frontUrl": r.get("front_url") or "",
+ "turnUrl": r.get("turn_url") or "",
+ "videoUrl": r.get("video_url") or "",
+ "videoSize": r.get("video_size") or 0,
+ "status": r.get("status"),
+ "meta": meta,
+ "createdAt": r.get("created_at"),
+ }
+ )
+ return out
+
+
+def list_discovery_roster(
+ *,
+ viewer_guest_id: str | None = None,
+ city: str = "",
+ limit: int = 48,
+ exclude_self: bool = True,
+ require_face: bool = True,
+) -> list[dict[str, Any]]:
+ init_pb()
+ rows = get_pb().list_all(C_ROSTER, sort="-updated_at", hard_limit=400)
+ city_f = "".join((city or "").strip().lower().split())
+ viewer = get_roster(viewer_guest_id) if viewer_guest_id else None
+ items: list[dict[str, Any]] = []
+ denied_guests: set[str] = set()
+ denied_emails: set[str] = set()
+ try:
+ from hub_svc.security_denylist import snapshot as _denylist_snap
+
+ snap = _denylist_snap()
+ denied_guests = set(snap.get("guests") or [])
+ denied_emails = set(snap.get("emails") or [])
+ except Exception:
+ pass
+ for r in rows:
+ if exclude_self and viewer_guest_id and r.get("guest_id") == viewer_guest_id:
+ continue
+ if r.get("discoverable") is False:
+ continue
+ gid_r = str(r.get("guest_id") or "")
+ if gid_r and gid_r in denied_guests:
+ continue
+ email_r = str(r.get("email") or "").strip().lower()
+ if email_r and email_r in denied_emails:
+ continue
+ if not (r.get("name") or "").strip():
+ continue
+ # Dating / 约会: no face in avatar → never show the person
+ if require_face:
+ face_ok = _face_ok_raw(r.get("face_ok"))
+ avatar = str(r.get("avatar") or "").strip()
+ if not face_ok:
+ continue
+ if not avatar:
+ continue
+ # reject placeholder / broken relative junk
+ if "nomadro.webp" in avatar or avatar.startswith("data:"):
+ continue
+ if not (
+ avatar.startswith("https://")
+ or avatar.startswith("http://")
+ or avatar.startswith("/api/hub/")
+ ):
+ continue
+ item = _roster_from_rec(r, public=True)
+ if city_f and city_f not in "".join((item.get("city") or "").lower().split()):
+ # still allow if no city filter strict — filter when city provided
+ if city_f:
+ continue
+ items.append(item)
+
+ def score(it: dict[str, Any]) -> float:
+ s = 0.0
+ if viewer and viewer.get("city") and viewer["city"] and viewer["city"] in (it.get("city") or ""):
+ s += 100
+ if it.get("online"):
+ s += 20
+ return s
+
+ items.sort(key=score, reverse=True)
+ return items[: max(1, min(int(limit or 48), 100))]
+
+
+def city_recommendations(guest_id: str, *, limit: int = 3) -> list[dict[str, Any]]:
+ return list_discovery_roster(
+ viewer_guest_id=guest_id, limit=limit, exclude_self=True
+ )
+
+
+def clear_liveness_for_guest(guest_id: str) -> dict[str, Any]:
+ """Soft-clear live audits (archive each) and reset liveness fields; keep album avatar."""
+ init_pb()
+ pb = get_pb()
+ audits = pb.list_all(C_LIVENESS, filter=f"guest_id={pb_quote(guest_id)}")
+ for a in audits:
+ soft_delete_record(
+ entity="liveness",
+ entity_id=str(a.get("id")),
+ live_collection=C_LIVENESS,
+ record=a,
+ guest_id=guest_id,
+ note="clear_liveness_for_guest",
+ )
+ rec = pb.first(C_ROSTER, filter=f"guest_id={pb_quote(guest_id)}")
+ if rec:
+ archive_snapshot(
+ entity="roster",
+ entity_id=guest_id,
+ action="liveness_reset",
+ payload=dict(rec),
+ guest_id=guest_id,
+ )
+ pb.update(
+ C_ROSTER,
+ rec["id"],
+ {
+ "liveness_status": "none",
+ "liveness_at": "",
+ "liveness_video_url": "",
+ "liveness_front_url": "",
+ "liveness_turn_url": "",
+ "updated_at": _now(),
+ },
+ )
+ return {"ok": True, "deletedAudits": len(audits), "soft": True}
+
+
+# —— channel messages ——
+
+
+def _ch_meta(channel_id: str) -> dict[str, Any] | None:
+ return get_pb().first(C_CHMETA, filter=f"channel_id={pb_quote(channel_id)}")
+
+
+def channel_seq(channel_id: str) -> int:
+ init_pb()
+ meta = _ch_meta(channel_id)
+ if meta:
+ return max(0, int(meta.get("seq") or 0))
+ rows = get_pb().list_all(
+ C_MESSAGES,
+ filter=f"channel_id={pb_quote(channel_id)}",
+ sort="-seq",
+ hard_limit=1,
+ )
+ return int(rows[0].get("seq") or 0) if rows else 0
+
+
+def _avatars_for_guests(guest_ids: list[str]) -> dict[str, str]:
+ """Batch roster.avatar for chat bubbles (guest_id → url).
+
+ No-face album photos are blanked — chat never paints them.
+ """
+ ids = sorted({str(g or "").strip() for g in guest_ids if str(g or "").strip()})
+ if not ids:
+ return {}
+ init_pb()
+ out: dict[str, str] = {}
+ pb = get_pb()
+ for i in range(0, len(ids), 40):
+ chunk = ids[i : i + 40]
+ filt = " || ".join(f"guest_id={pb_quote(g)}" for g in chunk)
+ try:
+ rows = pb.list_all(C_ROSTER, filter=filt, hard_limit=len(chunk) + 8)
+ except Exception:
+ rows = []
+ for r in rows:
+ gid = str(r.get("guest_id") or "").strip()
+ if not gid or not _face_ok_raw(r.get("face_ok")):
+ continue
+ av = str(r.get("avatar") or "").strip()[:500]
+ if av:
+ out[gid] = av
+ return out
+
+
+def _public_message(item: dict[str, Any], *, avatar: str = "") -> dict[str, Any]:
+ """Flatten PB message for clients: at + avatar for chat UI."""
+ created = str(item.get("createdAt") or item.get("at") or "").strip()
+ out = dict(item)
+ out["at"] = created
+ out["createdAt"] = created
+ av = (avatar or str(item.get("avatar") or "")).strip()[:500]
+ if av:
+ out["avatar"] = av
+ else:
+ out.setdefault("avatar", "")
+ return out
+
+
+def list_messages(
+ channel_id: str,
+ limit: int = 100,
+ *,
+ since: int | None = None,
+ before: int | None = None,
+ q: str | None = None,
+) -> list[dict[str, Any]]:
+ init_pb()
+ lim = max(1, min(int(limit or 100), 500))
+ rows = get_pb().list_all(
+ C_MESSAGES,
+ filter=(f"channel_id={pb_quote(channel_id)}"
+ + (f" && seq>{int(since)}" if since is not None and since > 0 else '')
+ + (f" && seq<{int(before)}" if before is not None and before > 0 else '')),
+ sort="-seq,-created_at,-id",
+ hard_limit=2000,
+ )
+ needle = (q or "").strip().lower()
+ out: list[dict[str, Any]] = []
+ for r in rows:
+ seq = int(r.get("seq") or 0)
+ if since is not None and since > 0 and seq <= since:
+ continue
+ if before is not None and before > 0 and seq >= before:
+ continue
+ text = r.get("text") or ""
+ nick = r.get("nick") or ""
+ if needle and needle not in text.lower() and needle not in nick.lower():
+ continue
+ if r.get("recalled"):
+ continue
+ out.append(
+ {
+ "id": r.get("id"),
+ "channelId": channel_id,
+ "seq": seq,
+ "guestId": r.get("guest_id"),
+ "author": nick or "游民",
+ "text": text,
+ "kind": r.get("kind") or "text",
+ "meta": r.get("meta") or {},
+ "attachments": r.get("attachments") or [],
+ "replyTo": r.get("reply_to"),
+ "reactions": r.get("reactions") or {},
+ "pinned": bool(r.get("pinned")),
+ "createdAt": r.get("created_at"),
+ "editedAt": r.get("edited_at") or "",
+ }
+ )
+ out = list(reversed(out[:lim]))
+ avatars = _avatars_for_guests([str(m.get("guestId") or "") for m in out])
+ return [
+ _public_message(m, avatar=avatars.get(str(m.get("guestId") or ""), ""))
+ for m in out
+ ]
+
+
+def add_message(
+ channel_id: str,
+ author: str,
+ text: str,
+ guest_id: str,
+ *,
+ client_id: str | None = None,
+ kind: str = "text",
+ meta: dict[str, Any] | None = None,
+ attachments: list[Any] | None = None,
+ reply_to: dict[str, Any] | None = None,
+) -> dict[str, Any]:
+ init_pb()
+ pb = get_pb()
+ stable_id = None
+ request_meta = dict(meta or {})
+ fingerprint = hashlib.sha256(json.dumps(
+ [author, text, kind, meta or {}, attachments or [], reply_to],
+ sort_keys=True, ensure_ascii=False, separators=(',', ':'),
+ ).encode()).hexdigest()
+ if client_id:
+ stable_id = hashlib.sha256(json.dumps([channel_id, guest_id, client_id]).encode()).hexdigest()[:15]
+ request_meta.update({'clientId': client_id, 'requestFingerprint': fingerprint})
+ existing = pb.first(C_MESSAGES, filter=f'id={pb_quote(stable_id)}')
+ if existing:
+ if (existing.get('meta') or {}).get('requestFingerprint') != fingerprint:
+ raise ValueError('同一请求标识不能用于不同消息')
+ return get_message(stable_id) or {}
+ # Replays must not consume quota or fail after the original exhausted it.
+ from hub_svc.trial_gate import assert_chat_trial_ok
+ from hub_svc.im import check_rate
+ assert_chat_trial_ok(guest_id)
+ check_rate(guest_id)
+ seq = channel_seq(channel_id) + 1
+ now = _now()
+ body = {
+ "channel_id": channel_id,
+ "seq": seq,
+ "guest_id": guest_id,
+ "nick": (author or "游民")[:48],
+ "text": (text or "")[:4000],
+ "kind": kind or "text",
+ "meta": request_meta,
+ "attachments": attachments or [],
+ "reply_to": reply_to,
+ "reactions": {},
+ "pinned": False,
+ "recalled": False,
+ "created_at": now,
+ "edited_at": "",
+ }
+ if stable_id:
+ body['id'] = stable_id
+ try:
+ rec = pb.create(C_MESSAGES, body)
+ except Exception:
+ if not stable_id:
+ raise
+ existing = pb.first(C_MESSAGES, filter=f'id={pb_quote(stable_id)}')
+ if not existing:
+ raise
+ if (existing.get('meta') or {}).get('requestFingerprint') != fingerprint:
+ raise ValueError('同一请求标识不能用于不同消息')
+ return get_message(stable_id) or {}
+ meta_rec = _ch_meta(channel_id)
+ if meta_rec:
+ pb.update(C_CHMETA, meta_rec["id"], {"seq": seq, "updated_at": now})
+ else:
+ pb.create(
+ C_CHMETA,
+ {
+ "channel_id": channel_id,
+ "seq": seq,
+ "pins": [],
+ "presence": {},
+ "updated_at": now,
+ },
+ )
+ saved = get_message(str(rec.get('id') or ''))
+ if saved:
+ return saved
+ avatars = _avatars_for_guests([guest_id])
+ return _public_message(
+ {
+ "id": rec.get("id"),
+ "channelId": channel_id,
+ "seq": seq,
+ "guestId": guest_id,
+ "author": body["nick"],
+ "text": body["text"],
+ "kind": body["kind"],
+ "meta": body["meta"],
+ "attachments": body["attachments"],
+ "replyTo": reply_to,
+ "reactions": {},
+ "pinned": False,
+ "createdAt": now,
+ },
+ avatar=avatars.get(guest_id, ""),
+ )
+
+
+def get_message(msg_id: str) -> dict[str, Any] | None:
+ init_pb()
+ try:
+ r = get_pb().request(
+ "GET", f"/api/collections/{C_MESSAGES}/records/{msg_id}", admin=True
+ )
+ except Exception:
+ return None
+ gid = str(r.get("guest_id") or "")
+ avatars = _avatars_for_guests([gid]) if gid else {}
+ return _public_message(
+ {
+ "id": r.get("id"),
+ "channelId": r.get("channel_id"),
+ "seq": int(r.get("seq") or 0),
+ "guestId": r.get("guest_id"),
+ "author": r.get("nick") or "游民",
+ "text": r.get("text") or "",
+ "kind": r.get("kind") or "text",
+ "meta": r.get("meta") or {},
+ "attachments": r.get("attachments") or [],
+ "replyTo": r.get("reply_to"),
+ "reactions": r.get("reactions") or {},
+ "pinned": bool(r.get("pinned")),
+ "recalled": bool(r.get("recalled")),
+ "createdAt": r.get("created_at"),
+ "editedAt": r.get("edited_at") or "",
+ },
+ avatar=avatars.get(gid, ""),
+ )
+
+
+def edit_message(channel_id: str, msg_id: str, guest_id: str, text: str) -> dict[str, Any]:
+ m = get_message(msg_id)
+ if not m or m.get("channelId") != channel_id:
+ raise ValueError("message not found")
+ if m.get("guestId") != guest_id:
+ raise ValueError("not your message")
+ if m.get("recalled"):
+ raise ValueError("recalled")
+ now = _now()
+ get_pb().update(
+ C_MESSAGES,
+ msg_id,
+ {"text": (text or "").strip()[:2000], "edited_at": now},
+ )
+ out = get_message(msg_id)
+ if not out:
+ raise ValueError("message not found")
+ return out
+
+
+def recall_message(channel_id: str, msg_id: str, guest_id: str) -> dict[str, Any]:
+ m = get_message(msg_id)
+ if not m or m.get("channelId") != channel_id:
+ raise ValueError("message not found")
+ if m.get("guestId") != guest_id:
+ raise ValueError("not your message")
+ get_pb().update(
+ C_MESSAGES,
+ msg_id,
+ {"text": "", "recalled": True, "attachments": [], "reactions": {}},
+ )
+ out = get_message(msg_id)
+ if not out:
+ raise ValueError("message not found")
+ return out
+
+
+def react_message(
+ channel_id: str, msg_id: str, guest_id: str, emoji: str
+) -> dict[str, Any]:
+ key = (emoji or "").strip()[:16]
+ if not key:
+ raise ValueError("empty emoji")
+ m = get_message(msg_id)
+ if not m or m.get("channelId") != channel_id:
+ raise ValueError("message not found")
+ if m.get("recalled"):
+ raise ValueError("recalled")
+ reactions: dict[str, list[str]] = dict(m.get("reactions") or {})
+ holders = list(reactions.get(key) or [])
+ if guest_id in holders:
+ holders = [g for g in holders if g != guest_id]
+ else:
+ holders.append(guest_id)
+ if holders:
+ reactions[key] = holders[:64]
+ else:
+ reactions.pop(key, None)
+ get_pb().update(C_MESSAGES, msg_id, {"reactions": reactions})
+ out = get_message(msg_id)
+ if not out:
+ raise ValueError("message not found")
+ return out
+
+
+def pin_message(
+ channel_id: str, msg_id: str, guest_id: str, pinned: bool = True
+) -> dict[str, Any]:
+ m = get_message(msg_id)
+ if not m or m.get("channelId") != channel_id:
+ raise ValueError("message not found")
+ if m.get("recalled"):
+ raise ValueError("recalled")
+ meta = dict(m.get("meta") or {})
+ now = _now()
+ if pinned:
+ meta["pinned"] = True
+ meta["pinnedAt"] = now
+ meta["pinnedBy"] = guest_id
+ else:
+ meta.pop("pinned", None)
+ meta.pop("pinnedAt", None)
+ meta.pop("pinnedBy", None)
+ get_pb().update(C_MESSAGES, msg_id, {"pinned": bool(pinned), "meta": meta})
+ out = get_message(msg_id)
+ if not out:
+ raise ValueError("message not found")
+ return out
+
+
+def report_message(
+ channel_id: str, msg_id: str, guest_id: str, reason: str = ""
+) -> dict[str, Any]:
+ m = get_message(msg_id)
+ if not m or m.get("channelId") != channel_id:
+ raise ValueError("message not found")
+ meta = dict(m.get("meta") or {})
+ reporters = list(meta.get("reporters") or [])
+ if guest_id not in reporters:
+ reporters.append(guest_id)
+ meta["reported"] = True
+ meta["reporters"] = reporters[:64]
+ meta["reportReason"] = (reason or "").strip()[:240]
+ meta["reportedAt"] = _now()
+ get_pb().update(C_MESSAGES, msg_id, {"meta": meta})
+ out = get_message(msg_id)
+ if not out:
+ raise ValueError("message not found")
+ return out
+
+
+def set_note(channel_id: str, guest_id: str, what: str, seq: int) -> dict[str, Any]:
+ what = (what or "").strip().lower()
+ if what not in {"recv", "read"}:
+ raise ValueError("what must be recv or read")
+ seq = max(0, int(seq))
+ init_pb()
+ pb = get_pb()
+ filt = f"guest_id={pb_quote(guest_id)} && channel_id={pb_quote(channel_id)}"
+ existing = pb.first(C_READS, filter=filt)
+ recv = int((existing or {}).get("recv_seq") or 0)
+ read = int((existing or {}).get("read_seq") or 0)
+ if what == "recv":
+ recv = max(recv, seq)
+ else:
+ read = max(read, seq)
+ recv = max(recv, read)
+ now = _now()
+ pb.upsert(
+ C_READS,
+ filter=filt,
+ payload={
+ "guest_id": guest_id,
+ "channel_id": channel_id,
+ "recv_seq": recv,
+ "read_seq": read,
+ "updated_at": now,
+ },
+ )
+ return {"channelId": channel_id, "what": what, "seq": seq, "recv": recv, "read": read}
+
+
+def channel_desc(channel_id: str, guest_id: str | None = None) -> dict[str, Any]:
+ init_pb()
+ seq = channel_seq(channel_id)
+ recv = read = 0
+ if guest_id:
+ mark = get_pb().first(
+ C_READS,
+ filter=f"guest_id={pb_quote(guest_id)} && channel_id={pb_quote(channel_id)}",
+ )
+ if mark:
+ recv = int(mark.get("recv_seq") or 0)
+ read = int(mark.get("read_seq") or 0)
+ last = None
+ try:
+ rows = list_messages(channel_id, limit=1)
+ if rows:
+ m = rows[0]
+ text = str(m.get("text") or "").strip()
+ if m.get("recalled"):
+ text = ""
+ last = {
+ "id": str(m.get("id") or ""),
+ "author": str(m.get("author") or "游民")[:48],
+ "text": text[:120],
+ "at": str(m.get("at") or m.get("createdAt") or ""),
+ "seq": int(m.get("seq") or 0),
+ }
+ except Exception:
+ last = None
+ return {
+ "channelId": channel_id,
+ "seq": seq,
+ "recv": recv,
+ "read": read,
+ "unread": max(0, seq - read),
+ "last": last,
+ }
+
+
+def save_file_meta(
+ file_id: str,
+ channel_id: str,
+ guest_id: str,
+ *,
+ kind: str,
+ name: str,
+ mime: str,
+ size: int,
+ path: str,
+) -> dict[str, Any]:
+ init_pb()
+ now = _now()
+ get_pb().upsert(
+ C_FILES,
+ filter=f"file_id={pb_quote(file_id)}",
+ payload={
+ "file_id": file_id,
+ "channel_id": channel_id,
+ "guest_id": guest_id,
+ "kind": kind,
+ "name": name,
+ "mime": mime,
+ "size": size,
+ "path": path,
+ "created_at": now,
+ },
+ )
+ return {
+ "id": file_id,
+ "kind": kind,
+ "name": name,
+ "mime": mime,
+ "size": size,
+ "url": f"/api/hub/v1/files/{file_id}",
+ }
+
+
+def get_file(file_id: str) -> dict[str, Any] | None:
+ init_pb()
+ row = get_pb().first(C_FILES, filter=f"file_id={pb_quote(file_id)}")
+ if not row:
+ return None
+ return {
+ "id": row.get("file_id") or file_id,
+ "channelId": row.get("channel_id"),
+ "kind": row.get("kind"),
+ "name": row.get("name"),
+ "mime": row.get("mime"),
+ "size": int(row.get("size") or 0),
+ "path": row.get("path"),
+ }
+
+
+def list_cafe_reviews(cafe_id: str, limit: int = 50) -> list[dict[str, Any]]:
+ init_pb()
+ lim = max(1, min(int(limit or 50), 200))
+ rows = get_pb().list_all(
+ C_CAFE,
+ filter=f"cafe_id={pb_quote(cafe_id)}" if cafe_id else None,
+ sort="-created_at",
+ hard_limit=lim,
+ )
+ return [
+ {
+ "id": r.get("id"),
+ "cafeId": r.get("cafe_id"),
+ "author": r.get("author"),
+ "score": r.get("score"),
+ "text": r.get("text"),
+ "photoNote": r.get("photo_note") or "",
+ "guestId": r.get("guest_id"),
+ "at": r.get("created_at"),
+ }
+ for r in rows[:lim]
+ ]
+
+
+def add_cafe_review(
+ cafe_id: str,
+ author: str,
+ score: int,
+ text: str,
+ photo_note: str,
+ guest_id: str,
+) -> dict[str, Any]:
+ init_pb()
+ now = _now()
+ body = {
+ "cafe_id": cafe_id,
+ "guest_id": guest_id,
+ "author": (author or "游民").strip()[:48] or "游民",
+ "score": max(1, min(int(score or 5), 5)),
+ "text": (text or "").strip()[:2000],
+ "photo_note": (photo_note or "").strip()[:200],
+ "created_at": now,
+ }
+ rec = get_pb().create(C_CAFE, body)
+ return {
+ "id": rec.get("id"),
+ "cafeId": cafe_id,
+ "author": body["author"],
+ "score": body["score"],
+ "text": body["text"],
+ "photoNote": body["photo_note"],
+ "guestId": guest_id,
+ "at": now,
+ }
+
+
+def _feedback_local_path() -> Path:
+ from hub_svc.config import HUB_DB_PATH
+
+ return Path(HUB_DB_PATH).resolve().parent / "feedback.json"
+
+
+def _feedback_local_append(row: dict[str, Any]) -> None:
+ path = _feedback_local_path()
+ path.parent.mkdir(parents=True, exist_ok=True)
+ items: list[dict[str, Any]] = []
+ if path.is_file():
+ try:
+ raw = json.loads(path.read_text(encoding="utf-8"))
+ if isinstance(raw, dict) and isinstance(raw.get("items"), list):
+ items = list(raw["items"])
+ elif isinstance(raw, list):
+ items = list(raw)
+ except Exception:
+ items = []
+ items.insert(0, row)
+ path.write_text(
+ json.dumps({"items": items[:2000]}, ensure_ascii=False, indent=2) + "\n",
+ encoding="utf-8",
+ )
+
+
+def _feedback_local_list() -> list[dict[str, Any]]:
+ path = _feedback_local_path()
+ if not path.is_file():
+ return []
+ try:
+ raw = json.loads(path.read_text(encoding="utf-8"))
+ if isinstance(raw, dict) and isinstance(raw.get("items"), list):
+ return [x for x in raw["items"] if isinstance(x, dict)]
+ if isinstance(raw, list):
+ return [x for x in raw if isinstance(x, dict)]
+ except Exception:
+ return []
+ return []
+
+
+FEEDBACK_MAX_PER_USER = 10
+
+
+def feedback_user_key(
+ *,
+ guest_id: str = "",
+ contact: str = "",
+ meta: dict[str, Any] | None = None,
+) -> str:
+ meta_obj = meta if isinstance(meta, dict) else {}
+ email = str(meta_obj.get("email") or "").strip().lower()
+ if "@" in email:
+ return f"email:{email[:160]}"
+ contact_n = str(contact or "").strip().lower()[:120]
+ if "@" in contact_n:
+ return f"email:{contact_n}"
+ if contact_n:
+ return f"contact:{contact_n}"
+ gid = str(guest_id or meta_obj.get("guestId") or "").strip()[:120]
+ if gid:
+ return f"guest:{gid}"
+ ua = str(meta_obj.get("userAgent") or meta_obj.get("serverUserAgent") or "")[:96]
+ tz = str(meta_obj.get("timezone") or "")
+ weak = f"{ua}|{tz}|{meta_obj.get('platform') or ''}"
+ return f"weak:{hashlib.sha256(weak.encode()).hexdigest()[:16]}"
+
+
+def _feedback_count_for_user(user_key: str) -> int:
+ """Count existing feedback for the same person in PB + social local (id-deduped).
+
+ Do NOT scan portal data/feedback.json: portal writes locally then forwards here,
+ so counting that file would reject the same submission on the forward hop.
+ """
+ if not user_key:
+ return 0
+ seen: set[str] = set()
+
+ def _take(r: dict[str, Any]) -> None:
+ key = str(r.get("userKey") or r.get("user_key") or "")
+ if not key:
+ key = feedback_user_key(
+ guest_id=str(r.get("guestId") or r.get("guest_id") or ""),
+ contact=str(r.get("contact") or ""),
+ meta=r.get("meta") if isinstance(r.get("meta"), dict) else {},
+ )
+ if key != user_key:
+ return
+ rid = str(r.get("id") or "")
+ text = str(r.get("text") or "")[:80]
+ at = str(r.get("at") or r.get("created_at") or "")[:16]
+ seen.add(rid or f"{text}|{at}")
+
+ try:
+ init_pb()
+ rows = get_pb().list_all(
+ C_FEEDBACK,
+ filter=f"user_key={pb_quote(user_key)}",
+ hard_limit=50,
+ )
+ for r in rows:
+ if isinstance(r, dict):
+ _take(r)
+ except Exception:
+ pass
+ for r in _feedback_local_list():
+ if isinstance(r, dict):
+ _take(r)
+ return len(seen)
+
+
+def add_feedback(
+ kind: str,
+ text: str,
+ contact: str,
+ guest_id: str,
+ *,
+ images: list[str] | None = None,
+ meta: dict | None = None,
+) -> dict[str, Any]:
+ now = _now()
+ imgs = [
+ str(u).strip()[:500]
+ for u in (images or [])
+ if isinstance(u, str) and str(u).strip().startswith(("http://", "https://"))
+ ][:8]
+ meta_obj = meta if isinstance(meta, dict) else {}
+ user_key = feedback_user_key(guest_id=guest_id, contact=contact, meta=meta_obj)
+ if _feedback_count_for_user(user_key) >= FEEDBACK_MAX_PER_USER:
+ raise ValueError(f"每人最多提交 {FEEDBACK_MAX_PER_USER} 条反馈")
+ body = {
+ "guest_id": guest_id,
+ "user_key": user_key,
+ "kind": kind if kind in {"反馈", "建议"} else "建议",
+ "text": (text or "").strip()[:4000],
+ "contact": (contact or "").strip()[:120],
+ "images": imgs,
+ "meta": meta_obj,
+ "created_at": now,
+ }
+ if not body["text"]:
+ raise ValueError("请填写内容")
+ try:
+ init_pb()
+ rec = get_pb().create(C_FEEDBACK, body)
+ return {
+ "id": rec.get("id"),
+ "kind": body["kind"],
+ "text": body["text"],
+ "contact": body["contact"],
+ "images": imgs,
+ "meta": meta_obj,
+ "userKey": user_key,
+ "guestId": guest_id,
+ "at": now,
+ "stored": "pocketbase",
+ "remaining": max(0, FEEDBACK_MAX_PER_USER - _feedback_count_for_user(user_key)),
+ }
+ except ValueError:
+ raise
+ except Exception:
+ # PB 挂了仍要接住反馈(本地 / 离线)
+ fid = f"fb_local_{uuid.uuid4().hex[:12]}"
+ row = {
+ "id": fid,
+ "kind": body["kind"],
+ "text": body["text"],
+ "contact": body["contact"],
+ "images": imgs,
+ "meta": meta_obj,
+ "userKey": user_key,
+ "guestId": guest_id,
+ "at": now,
+ "source": "api-local",
+ }
+ _feedback_local_append(row)
+ return {
+ **row,
+ "stored": "local",
+ "remaining": max(0, FEEDBACK_MAX_PER_USER - _feedback_count_for_user(user_key)),
+ }
+
+
+_JOIN_FACE_STAGES = frozenset(
+ {
+ "profile_done",
+ "liveness_verified",
+ "liveness_failed",
+ "liveness_skipped",
+ "join_done",
+ }
+)
+_JOIN_EARLY_STAGES = frozenset({"email_submit", "pay_launched", "profile_started"})
+
+
+def _sanitize_join_lead_item(item: dict[str, Any]) -> dict[str, Any]:
+ """Strip false 已付 / 已过 / 假「加入完成」from dirty leftovers."""
+ stage = str(item.get("stage") or "")
+ payload = item.get("payload") if isinstance(item.get("payload"), dict) else {}
+ stages: set[str] = set()
+ raw_stages = payload.get("stages")
+ if isinstance(raw_stages, list):
+ stages.update(str(s) for s in raw_stages if s)
+ hist = item.get("history")
+ if isinstance(hist, list):
+ for h in hist:
+ if isinstance(h, dict) and h.get("stage"):
+ stages.add(str(h["stage"]))
+ stages.add(stage)
+ has_face = bool(stages & _JOIN_FACE_STAGES)
+ paid = str(item.get("paid") or "")
+ price = payload.get("priceFen")
+ is_free_intent = (
+ payload.get("intent") == "free"
+ or price == 0
+ or (isinstance(price, (int, float)) and price <= 0)
+ )
+ if paid == "1":
+ if is_free_intent and "pay_confirmed" not in stages:
+ paid = "free"
+ elif stage in _JOIN_EARLY_STAGES and "pay_confirmed" not in stages:
+ paid = ""
+ out = dict(item)
+ out["paid"] = paid
+ # 跳过自拍却写成 join_done → 纠正为 liveness_skipped(后台勿显示「加入完成」)
+ live = str(item.get("livenessStatus") or item.get("liveness_status") or "")
+ if stage == "join_done" and live != "verified" and payload.get("liveness") != "verified":
+ if "liveness_verified" not in stages:
+ out["stage"] = "liveness_skipped"
+ stage = "liveness_skipped"
+ # 当前停在只填邮箱 / 发起支付:绝不可能已核验(浏览器串号 faceOk 一律丢掉)
+ if stage in _JOIN_EARLY_STAGES:
+ out["faceOk"] = ""
+ out["livenessStatus"] = "none"
+ elif not has_face:
+ out["faceOk"] = ""
+ out["livenessStatus"] = "none"
+ return out
+
+
+def _join_leads_local_path() -> Path:
+ from hub_svc.config import HUB_DB_PATH
+
+ # Prefer portal data/join-leads.json next to repo root
+ root = Path(HUB_DB_PATH).resolve().parents[1]
+ candidates = [
+ root / "data" / "join-leads.json",
+ Path.cwd() / "data" / "join-leads.json",
+ ]
+ for p in candidates:
+ if p.is_file():
+ return p
+ return candidates[0]
+
+
+def _join_leads_local_list() -> list[dict[str, Any]]:
+ path = _join_leads_local_path()
+ if not path.is_file():
+ return []
+ try:
+ raw = json.loads(path.read_text(encoding="utf-8"))
+ items = raw.get("items") if isinstance(raw, dict) else raw
+ if not isinstance(items, list):
+ return []
+ out: list[dict[str, Any]] = []
+ for it in items:
+ if not isinstance(it, dict):
+ continue
+ out.append(
+ {
+ "id": it.get("id") or it.get("email") or "",
+ "email": it.get("email") or "",
+ "guestId": it.get("guestId") or it.get("guest_id") or "",
+ "stage": it.get("stage") or "",
+ "name": it.get("name") or "",
+ "paid": it.get("paid") or "",
+ "faceOk": it.get("faceOk") or it.get("face_ok") or "",
+ "livenessStatus": it.get("livenessStatus") or it.get("liveness_status") or "",
+ "ua": it.get("ua") or "",
+ "payload": it.get("payload") if isinstance(it.get("payload"), dict) else {},
+ "createdAt": it.get("createdAt") or it.get("created_at") or "",
+ "updatedAt": it.get("updatedAt") or it.get("updated_at") or "",
+ "history": it.get("history") if isinstance(it.get("history"), list) else [],
+ }
+ )
+ return out
+ except Exception:
+ return []
+
+
+def upsert_join_lead(
+ *,
+ email: str,
+ guest_id: str,
+ stage: str = "email_submit",
+ name: str = "",
+ payload: dict[str, Any] | None = None,
+ ua: str = "",
+ paid: str = "",
+ face_ok: str = "",
+ liveness_status: str = "",
+ client_ip: str = "",
+) -> dict[str, Any]:
+ """Archive every join funnel event; upsert live lead row for admin list."""
+ init_pb()
+ now = _now()
+ email_n = (email or "").strip().lower()[:160]
+ if not email_n or "@" not in email_n:
+ raise ValueError("invalid email")
+ gid = (guest_id or "")[:120]
+ try:
+ from hub_svc.security_denylist import assert_not_denied
+
+ assert_not_denied(email=email_n, guest_id=gid, ip=client_ip or "")
+ except ValueError:
+ raise
+ except Exception:
+ pass
+ stage_n = (stage or "email_submit")[:48]
+ body_payload = payload if isinstance(payload, dict) else {}
+ allow_face = stage_n in _JOIN_FACE_STAGES
+ # email_submit 等禁止写入浏览器残留核验,避免串号
+ face_in = (face_ok or "")[:8] if allow_face else ""
+ live_in = (liveness_status or "")[:24] if allow_face else ""
+ early = stage_n in {"email_submit", "pay_launched", "profile_started"}
+ paid_in = (paid or "")[:8]
+ intent = str(body_payload.get("intent") or "")
+ if early:
+ # 只填邮箱:最多记 free,绝不能记已付
+ if paid_in == "free" or intent == "free" or body_payload.get("priceFen") == 0:
+ paid_in = "free"
+ else:
+ paid_in = ""
+ snap = {
+ "email": email_n,
+ "guestId": gid,
+ "stage": stage_n,
+ "name": (name or "")[:64],
+ "paid": paid_in,
+ "faceOk": face_in,
+ "livenessStatus": live_in or ("none" if not allow_face else ""),
+ "ua": (ua or "")[:240],
+ "payload": body_payload,
+ "at": now,
+ }
+ try:
+ archive_snapshot(
+ entity="join_leads",
+ entity_id=email_n,
+ action=stage_n,
+ payload=snap,
+ guest_id=gid,
+ note=f"join:{stage_n}",
+ )
+ except Exception:
+ # PB 不可用时仍接受线索(门户 data/join-leads.json 已落盘)
+ pass
+ lead_id = email_n
+ try:
+ pb = get_pb()
+ # Collapse any historical duplicates for this email before upsert.
+ twins = pb.list_all(
+ C_JOIN_LEADS,
+ filter=f"email={pb_quote(email_n)}",
+ sort="-updated_at",
+ hard_limit=50,
+ )
+ existing = twins[0] if twins else pb.first(
+ C_JOIN_LEADS, filter=f"email={pb_quote(email_n)}"
+ )
+ for extra in twins[1:]:
+ rid = str(extra.get("id") or "")
+ if rid and rid != str((existing or {}).get("id") or ""):
+ try:
+ pb.delete(C_JOIN_LEADS, rid)
+ except Exception:
+ pass
+ if existing and existing.get("id"):
+ face_val = face_in or (existing.get("face_ok") or "") if allow_face else (existing.get("face_ok") or "")
+ live_val = (
+ live_in or (existing.get("liveness_status") or "none")
+ if allow_face
+ else (existing.get("liveness_status") or "none")
+ )
+ else:
+ face_val = face_in
+ live_val = live_in or "none"
+ prev_paid = str((existing or {}).get("paid") or "")
+ if stage_n == "pay_confirmed" and (paid_in == "1" or not paid_in):
+ paid_val = "1"
+ elif paid_in == "free" or prev_paid == "free":
+ # 临时免费贯穿全程;除非真回调 pay_confirmed
+ paid_val = "free"
+ elif early:
+ # 只填邮箱 / 发起支付:禁止写成已付
+ paid_val = ""
+ else:
+ paid_val = paid_in or prev_paid
+ row = {
+ "email": email_n,
+ "guest_id": gid or ((existing or {}).get("guest_id") or ""),
+ "stage": stage_n,
+ "name": (name or "")[:64] or ((existing or {}).get("name") or ""),
+ "payload": body_payload,
+ "ua": (ua or "")[:240],
+ "paid": paid_val,
+ "face_ok": face_val,
+ "liveness_status": live_val,
+ "updated_at": now,
+ }
+ if existing and existing.get("id"):
+ old_p = existing.get("payload") if isinstance(existing.get("payload"), dict) else {}
+ row["payload"] = {
+ **old_p,
+ **body_payload,
+ "stages": list({*list(old_p.get("stages") or []), stage_n}),
+ }
+ if not row.get("guest_id") and existing.get("guest_id"):
+ row["guest_id"] = existing.get("guest_id")
+ rec = pb.update(C_JOIN_LEADS, str(existing["id"]), row)
+ else:
+ row["created_at"] = now
+ row["payload"] = {**body_payload, "stages": [stage_n]}
+ rec = pb.create(C_JOIN_LEADS, row)
+ lead_id = str(rec.get("id") or email_n)
+ except Exception:
+ # Collection may not exist yet — archive is enough for admin list fallback
+ lead_id = email_n
+ return {
+ "ok": True,
+ "id": lead_id,
+ "email": email_n,
+ "guestId": gid,
+ "stage": stage_n,
+ "at": now,
+ }
+
+
+def _join_lead_newer(a: dict[str, Any], b: dict[str, Any]) -> dict[str, Any]:
+ """Keep the fresher lead; tie-break prefers guestId then smaller id."""
+ ta = str(a.get("updatedAt") or a.get("updated_at") or "")
+ tb = str(b.get("updatedAt") or b.get("updated_at") or "")
+ if tb > ta:
+ return b
+ if ta > tb:
+ return a
+ ga = str(a.get("guestId") or a.get("guest_id") or "")
+ gb = str(b.get("guestId") or b.get("guest_id") or "")
+ if gb and not ga:
+ return b
+ if ga and not gb:
+ return a
+ return a if str(a.get("id") or "") <= str(b.get("id") or "") else b
+
+
+def _dedupe_join_leads_by_email(rows: list[dict[str, Any]]) -> list[dict[str, Any]]:
+ """One row per email (case-insensitive). Empty email keeps distinct ids."""
+ by_email: dict[str, dict[str, Any]] = {}
+ no_email: list[dict[str, Any]] = []
+ for r in rows:
+ em = str(r.get("email") or "").strip().lower()
+ if not em:
+ no_email.append(r)
+ continue
+ prev = by_email.get(em)
+ by_email[em] = _join_lead_newer(prev, r) if prev else r
+ return list(by_email.values()) + no_email
+
+
+def dedupe_join_leads_collection(*, dry_run: bool = False) -> dict[str, Any]:
+ """Hard-delete duplicate hub_join_leads rows (keep newest per email)."""
+ init_pb()
+ pb = get_pb()
+ rows = pb.list_all(C_JOIN_LEADS, sort="-updated_at", hard_limit=5000)
+ by_email: dict[str, list[dict[str, Any]]] = {}
+ for r in rows:
+ em = str(r.get("email") or "").strip().lower()
+ if not em:
+ continue
+ by_email.setdefault(em, []).append(r)
+ deleted: list[str] = []
+ kept = 0
+ for em, group in by_email.items():
+ if len(group) < 2:
+ kept += 1 if group else 0
+ continue
+ kept += 1
+ for extra in group[1:]:
+ rid = str(extra.get("id") or "")
+ if not rid:
+ continue
+ if not dry_run:
+ try:
+ pb.delete(C_JOIN_LEADS, rid)
+ except Exception:
+ continue
+ deleted.append(rid)
+ return {
+ "ok": True,
+ "emails": len(by_email),
+ "kept": kept,
+ "deleted": len(deleted),
+ "deletedIds": deleted[:50],
+ "dryRun": dry_run,
+ }
+
+
+def _admin_abs_media(url: str) -> str:
+ u = (url or "").strip()
+ if not u:
+ return ""
+ if u.startswith("https://") or u.startswith("http://") or u.startswith("data:"):
+ return u
+ if u.startswith("/api/hub/"):
+ return f"https://api.nomadro.com{u}"
+ if u.startswith("/"):
+ return f"https://nomadro.com{u}"
+ return u
+
+
+def _enrich_join_leads_for_admin(items: list[dict[str, Any]]) -> list[dict[str, Any]]:
+ """Attach roster avatar + faceOk for ops list (always show album photo in admin)."""
+ if not items:
+ return items
+ by_gid: dict[str, dict[str, Any]] = {}
+ by_email: dict[str, dict[str, Any]] = {}
+ try:
+ init_pb()
+ rows = get_pb().list_all(C_ROSTER, sort="-updated_at", hard_limit=4000)
+ for r in rows:
+ gid = str(r.get("guest_id") or "").strip().lower()
+ em = str(r.get("email") or "").strip().lower()
+ if gid and gid not in by_gid:
+ by_gid[gid] = r
+ if em and em not in by_email:
+ by_email[em] = r
+ except Exception:
+ pass
+
+ out: list[dict[str, Any]] = []
+ for item in items:
+ row = dict(item)
+ stage = str(row.get("stage") or "")
+ payload = row.get("payload") if isinstance(row.get("payload"), dict) else {}
+ gid = str(row.get("guestId") or row.get("guest_id") or "").strip().lower()
+ email = str(row.get("email") or "").strip().lower()
+ roster = by_gid.get(gid) if gid else None
+ if roster is None and email:
+ roster = by_email.get(email)
+
+ # Admin ops: always surface album photo when we can match roster/payload.
+ # (Public surfaces still strip no-face; this list is behind admin auth.)
+ avatar = ""
+ for key in ("avatar", "avatarUrl"):
+ cand = payload.get(key)
+ if isinstance(cand, str) and cand.strip():
+ avatar = cand.strip()
+ break
+ nested = payload.get("payload") if isinstance(payload.get("payload"), dict) else {}
+ if not avatar and nested:
+ for key in ("avatar", "avatarUrl"):
+ cand = nested.get(key)
+ if isinstance(cand, str) and cand.strip():
+ avatar = cand.strip()
+ break
+ if not avatar and roster:
+ avatar = str(roster.get("avatar") or "").strip()
+
+ # Ops faceOk = roster detector only. Never trust client join-lead face_ok
+ # (payload often stamped "1" after liveness skip / browser residue).
+ # No avatar → never OK. Liveness verified ≠ album faceOk.
+ abs_avatar = _admin_abs_media(avatar)
+ face_ok = False
+ if abs_avatar and roster is not None:
+ face_ok = _face_ok_raw(roster.get("face_ok"))
+ if stage in {"email_submit", "pay_launched"}:
+ face_ok = False
+ # Placeholder / empty-looking URLs cannot be face-ok in the ops list.
+ low = abs_avatar.lower()
+ if (
+ not abs_avatar
+ or "nomadro.webp" in low
+ or low.endswith("/avatar.png")
+ or "/placeholder" in low
+ or low.startswith("data:")
+ ):
+ face_ok = False
+
+ row["avatar"] = abs_avatar
+ row["faceOk"] = face_ok
+ if roster and not row.get("name"):
+ row["name"] = roster.get("name") or row.get("name") or ""
+ out.append(row)
+ return out
+
+
+def admin_list_join_leads(
+ *, q: str = "", limit: int = 100, offset: int = 0
+) -> dict[str, Any]:
+ """Prefer live hub_join_leads; fall back to hub_archives entity=join_leads."""
+ lim = max(1, min(int(limit or 100), 500))
+ off = max(0, int(offset or 0))
+ needle = (q or "").strip().lower()
+ items: list[dict[str, Any]] = []
+
+ try:
+ init_pb()
+ rows = get_pb().list_all(C_JOIN_LEADS, sort="-updated_at", hard_limit=5000)
+ for r in rows:
+ items.append(
+ {
+ "id": r.get("id"),
+ "email": r.get("email") or "",
+ "guestId": r.get("guest_id") or "",
+ "stage": r.get("stage") or "",
+ "name": r.get("name") or "",
+ "paid": r.get("paid") or "",
+ "faceOk": r.get("face_ok") or "",
+ "livenessStatus": r.get("liveness_status") or "",
+ "ua": r.get("ua") or "",
+ "payload": r.get("payload") or {},
+ "createdAt": r.get("created_at") or "",
+ "updatedAt": r.get("updated_at") or "",
+ }
+ )
+ except Exception:
+ items = []
+
+ if not items:
+ # Aggregate latest archive snapshot per email
+ try:
+ arch = get_pb().list_all(
+ C_ARCHIVES,
+ filter=f"entity={pb_quote('join_leads')}",
+ sort="-created_at",
+ hard_limit=5000,
+ )
+ by_email: dict[str, dict[str, Any]] = {}
+ for a in arch:
+ payload = a.get("payload") if isinstance(a.get("payload"), dict) else {}
+ email = str(
+ payload.get("email") or a.get("entity_id") or ""
+ ).strip().lower()
+ if not email or email in by_email:
+ continue
+ by_email[email] = {
+ "id": a.get("id") or email,
+ "email": email,
+ "guestId": payload.get("guestId") or a.get("guest_id") or "",
+ "stage": payload.get("stage") or a.get("action") or "",
+ "name": payload.get("name") or "",
+ "paid": payload.get("paid") or "",
+ "faceOk": payload.get("faceOk") or "",
+ "livenessStatus": payload.get("livenessStatus") or "",
+ "ua": payload.get("ua") or "",
+ "payload": payload,
+ "createdAt": a.get("created_at") or "",
+ "updatedAt": a.get("created_at") or "",
+ }
+ items = list(by_email.values())
+ except Exception:
+ items = []
+
+ # Merge portal local file (dev / offline), then always collapse by email.
+ local_items = _join_leads_local_list()
+ if local_items:
+ items = items + local_items
+ items = _dedupe_join_leads_by_email(items)
+ items = [_sanitize_join_lead_item(r) for r in items]
+ items = _enrich_join_leads_for_admin(items)
+ items.sort(key=lambda r: str(r.get("updatedAt") or ""), reverse=True)
+
+ if needle:
+ items = [
+ r
+ for r in items
+ if needle in str(r.get("email") or "").lower()
+ or needle in str(r.get("guestId") or "").lower()
+ or needle in str(r.get("name") or "").lower()
+ or needle in str(r.get("stage") or "").lower()
+ ]
+ total = len(items)
+ page = items[off : off + lim]
+ return {"ok": True, "total": total, "items": page}
+
+
+def add_gig_app(
+ gig_id: str,
+ name: str,
+ contact: str,
+ note: str,
+ guest_id: str,
+ request_id: str | None = None,
+ *,
+ resume_url: str = "",
+ resume_name: str = "",
+) -> dict[str, Any]:
+ import hashlib
+ import json as _json
+
+ init_pb()
+ now = _now()
+ stable_id = None
+ if request_id:
+ stable_id = (
+ "app_"
+ + hashlib.sha256(
+ _json.dumps([guest_id, gig_id, request_id]).encode()
+ ).hexdigest()[:32]
+ )
+ resume_u = (resume_url or "").strip()[:800]
+ resume_n = (resume_name or "").strip()[:200]
+ body = {
+ "gig_id": gig_id,
+ "guest_id": guest_id,
+ "name": (name or "").strip()[:64],
+ "contact": (contact or "").strip()[:120],
+ "note": (note or "").strip()[:2000],
+ "resume_url": resume_u,
+ "resume_name": resume_n,
+ "request_id": request_id or "",
+ "created_at": now,
+ }
+ pb = get_pb()
+ if stable_id:
+ existing = pb.first(
+ C_GIGS,
+ filter=f"request_id={pb_quote(request_id or '')} && guest_id={pb_quote(guest_id)} && gig_id={pb_quote(gig_id)}",
+ )
+ if existing:
+ prev = (
+ existing.get("name"),
+ existing.get("contact"),
+ existing.get("note") or "",
+ existing.get("resume_url") or "",
+ existing.get("resume_name") or "",
+ )
+ cur = (
+ body["name"],
+ body["contact"],
+ body["note"],
+ body["resume_url"],
+ body["resume_name"],
+ )
+ if prev != cur:
+ raise ValueError("同一请求标识不能用于不同申请")
+ return {
+ "id": existing.get("id"),
+ "gigId": gig_id,
+ "name": existing.get("name"),
+ "contact": existing.get("contact"),
+ "note": existing.get("note") or "",
+ "resumeUrl": existing.get("resume_url") or "",
+ "resumeName": existing.get("resume_name") or "",
+ "guestId": guest_id,
+ "at": existing.get("created_at") or now,
+ }
+ rec = pb.create(C_GIGS, body)
+ return {
+ "id": rec.get("id") or stable_id,
+ "gigId": gig_id,
+ "name": body["name"],
+ "contact": body["contact"],
+ "note": body["note"],
+ "resumeUrl": body["resume_url"],
+ "resumeName": body["resume_name"],
+ "guestId": guest_id,
+ "at": now,
+ }
+
+
+# —— admin / ugc helpers ——
+
+
+def _safe_count(pb: Any, collection: str) -> int:
+ try:
+ return len(pb.list_all(collection, hard_limit=5000))
+ except Exception:
+ return 0
+
+
+def admin_overview() -> dict[str, Any]:
+ init_pb()
+ pb = get_pb()
+ counts = {
+ "messages": _safe_count(pb, C_MESSAGES),
+ "roster": _safe_count(pb, C_ROSTER),
+ "reviews": _safe_count(pb, C_CAFE),
+ "gigApps": _safe_count(pb, C_GIGS),
+ "feedback": _safe_count(pb, C_FEEDBACK),
+ "joinLeads": _safe_count(pb, C_JOIN_LEADS),
+ "skills": _safe_count(pb, C_SKILLS),
+ "liveness": _safe_count(pb, C_LIVENESS),
+ "meetupReviews": _safe_count(pb, C_REVIEWS),
+ "reports": _safe_count(pb, C_REPORTS),
+ "blocks": _safe_count(pb, C_BLOCKS),
+ "files": _safe_count(pb, C_FILES),
+ "trips": _safe_count(pb, "hub_trips"),
+ "coffeeBookings": _safe_count(pb, "coffee_bookings"),
+ "archives": _safe_count(pb, C_ARCHIVES),
+ }
+ return {
+ "ok": pb.health_ok(),
+ "backend": "pocketbase",
+ "path": pb.base_url,
+ "exists": True,
+ "bytes": 0,
+ "writable": True,
+ "counts": counts,
+ }
+
+
+def admin_list_messages(
+ *, channel_id: str = "", q: str = "", limit: int = 100, offset: int = 0
+) -> dict[str, Any]:
+ init_pb()
+ lim = max(1, min(int(limit or 100), 500))
+ off = max(0, int(offset or 0))
+ filt = f"channel_id={pb_quote(channel_id)}" if channel_id.strip() else None
+ rows = get_pb().list_all(C_MESSAGES, filter=filt, sort="-created_at", hard_limit=5000)
+ needle = q.strip().lower()
+ if needle:
+ rows = [
+ r
+ for r in rows
+ if needle in (r.get("nick") or "").lower()
+ or needle in (r.get("text") or "").lower()
+ or needle in (r.get("guest_id") or "").lower()
+ ]
+ total = len(rows)
+ page = rows[off : off + lim]
+ return {
+ "ok": True,
+ "total": total,
+ "items": [
+ {
+ "id": r.get("id"),
+ "channelId": r.get("channel_id"),
+ "author": r.get("nick") or "游民",
+ "text": r.get("text") or "",
+ "guestId": r.get("guest_id"),
+ "at": r.get("created_at"),
+ }
+ for r in page
+ ],
+ }
+
+
+def admin_delete_message(message_id: str) -> bool:
+ return soft_delete_record(
+ entity="messages",
+ entity_id=message_id,
+ live_collection=C_MESSAGES,
+ )
+
+
+def admin_list_roster(
+ *, q: str = "", limit: int = 100, offset: int = 0
+) -> dict[str, Any]:
+ init_pb()
+ lim = max(1, min(int(limit or 100), 500))
+ off = max(0, int(offset or 0))
+ rows = get_pb().list_all(C_ROSTER, sort="-updated_at", hard_limit=5000)
+ needle = q.strip().lower()
+ if needle:
+ rows = [
+ r
+ for r in rows
+ if needle in (r.get("name") or "").lower()
+ or needle in (r.get("city") or "").lower()
+ or needle in (r.get("title") or "").lower()
+ or needle in (r.get("guest_id") or "").lower()
+ or needle in (r.get("bio") or "").lower()
+ ]
+ total = len(rows)
+ page = rows[off : off + lim]
+ return {
+ "ok": True,
+ "total": total,
+ "items": [
+ {
+ "guestId": r.get("guest_id"),
+ "name": r.get("name"),
+ "title": r.get("title") or "",
+ "city": r.get("city") or "",
+ "phone": r.get("phone") or "",
+ "linktree": r.get("linktree") or "",
+ "skills": r.get("skills") or "",
+ "bio": r.get("bio") or "",
+ "updatedAt": r.get("updated_at"),
+ }
+ for r in page
+ ],
+ }
+
+
+def admin_update_roster(guest_id: str, patch: dict[str, Any]) -> dict[str, Any] | None:
+ init_pb()
+ existing = get_pb().first(C_ROSTER, filter=f"guest_id={pb_quote(guest_id)}")
+ if not existing:
+ return None
+ archive_snapshot(
+ entity="roster",
+ entity_id=guest_id,
+ action="admin_update",
+ payload=dict(existing),
+ guest_id=guest_id,
+ )
+ fields = {
+ "name": str(patch.get("name", existing.get("name") or ""))[:64] or "游民",
+ "title": str(patch.get("title", existing.get("title") or ""))[:80],
+ "city": str(patch.get("city", existing.get("city") or ""))[:64],
+ "phone": str(patch.get("phone", existing.get("phone") or ""))[:32],
+ "linktree": str(patch.get("linktree", existing.get("linktree") or ""))[:240],
+ "skills": str(patch.get("skills", existing.get("skills") or ""))[:200],
+ "bio": str(patch.get("bio", existing.get("bio") or ""))[:2000],
+ "updated_at": _now(),
+ }
+ # Admin restore from soft-delete
+ if patch.get("restore"):
+ fields["status"] = str(patch.get("status") or "online")[:32]
+ fields["discoverable"] = True
+ get_pb().update(C_ROSTER, existing["id"], fields)
+ out = {
+ **{k: fields[k] for k in ("name", "title", "city", "phone", "linktree", "skills", "bio")},
+ "guestId": guest_id,
+ "updatedAt": fields["updated_at"],
+ }
+ archive_snapshot(
+ entity="roster",
+ entity_id=guest_id,
+ action="admin_update_after",
+ payload=dict(fields),
+ guest_id=guest_id,
+ )
+ return out
+
+
+def admin_delete_roster(guest_id: str) -> bool:
+ return soft_delete_record(
+ entity="roster",
+ entity_id=guest_id,
+ live_collection=C_ROSTER,
+ guest_id=guest_id,
+ )
+
+
+def admin_list_cafe_reviews(
+ *, cafe_id: str = "", limit: int = 100, offset: int = 0
+) -> dict[str, Any]:
+ init_pb()
+ lim = max(1, min(int(limit or 100), 500))
+ off = max(0, int(offset or 0))
+ filt = f"cafe_id={pb_quote(cafe_id)}" if cafe_id.strip() else None
+ rows = get_pb().list_all(C_CAFE, filter=filt, sort="-created_at", hard_limit=5000)
+ total = len(rows)
+ page = rows[off : off + lim]
+ return {
+ "ok": True,
+ "total": total,
+ "items": [
+ {
+ "id": r.get("id"),
+ "cafeId": r.get("cafe_id"),
+ "author": r.get("author"),
+ "score": r.get("score"),
+ "text": r.get("text"),
+ "photoNote": r.get("photo_note") or "",
+ "guestId": r.get("guest_id"),
+ "at": r.get("created_at"),
+ }
+ for r in page
+ ],
+ }
+
+
+def admin_delete_cafe_review(review_id: str) -> bool:
+ return soft_delete_record(
+ entity="reviews",
+ entity_id=review_id,
+ live_collection=C_CAFE,
+ )
+
+
+def admin_list_gig_apps(
+ *, gig_id: str = "", limit: int = 100, offset: int = 0
+) -> dict[str, Any]:
+ init_pb()
+ lim = max(1, min(int(limit or 100), 500))
+ off = max(0, int(offset or 0))
+ filt = f"gig_id={pb_quote(gig_id)}" if gig_id.strip() else None
+ rows = get_pb().list_all(C_GIGS, filter=filt, sort="-created_at", hard_limit=5000)
+ total = len(rows)
+ page = rows[off : off + lim]
+ return {
+ "ok": True,
+ "total": total,
+ "items": [
+ {
+ "id": r.get("id"),
+ "gigId": r.get("gig_id"),
+ "name": r.get("name"),
+ "contact": r.get("contact"),
+ "note": r.get("note") or "",
+ "resumeUrl": r.get("resume_url") or "",
+ "resumeName": r.get("resume_name") or "",
+ "guestId": r.get("guest_id"),
+ "at": r.get("created_at"),
+ }
+ for r in page
+ ],
+ }
+
+
+def admin_delete_gig_app(app_id: str) -> bool:
+ return soft_delete_record(
+ entity="gigApps",
+ entity_id=app_id,
+ live_collection=C_GIGS,
+ )
+
+
+def admin_list_feedback(
+ *,
+ limit: int = 100,
+ offset: int = 0,
+ user_key: str = "",
+) -> dict[str, Any]:
+ lim = max(1, min(int(limit or 100), 500))
+ off = max(0, int(offset or 0))
+ want_key = (user_key or "").strip()[:200]
+ items: list[dict[str, Any]] = []
+
+ def _row(r: dict[str, Any]) -> dict[str, Any]:
+ meta = r.get("meta") if isinstance(r.get("meta"), dict) else {}
+ if isinstance(r.get("meta"), str):
+ try:
+ parsed_meta = json.loads(r.get("meta") or "")
+ if isinstance(parsed_meta, dict):
+ meta = parsed_meta
+ except Exception:
+ meta = {}
+ guest = r.get("guestId") or r.get("guest_id") or ""
+ contact = r.get("contact") or ""
+ user_key = str(r.get("userKey") or r.get("user_key") or "") or feedback_user_key(
+ guest_id=str(guest),
+ contact=str(contact),
+ meta=meta,
+ )
+ images = r.get("images")
+ if isinstance(images, str):
+ try:
+ images = json.loads(images)
+ except Exception:
+ images = []
+ if not isinstance(images, list):
+ images = []
+ images = [
+ str(u).strip()
+ for u in images
+ if isinstance(u, str) and str(u).strip().startswith(("http://", "https://"))
+ ]
+ return {
+ "id": r.get("id"),
+ "kind": r.get("kind"),
+ "text": r.get("text"),
+ "contact": contact,
+ "images": images,
+ "meta": meta,
+ "userKey": user_key,
+ "guestId": guest,
+ "at": r.get("at") or r.get("created_at") or "",
+ }
+
+ try:
+ init_pb()
+ rows = get_pb().list_all(C_FEEDBACK, sort="-created_at", hard_limit=5000)
+ items = [_row(r) for r in rows]
+ except Exception:
+ items = []
+ # Merge API-local + portal-local offline files
+ seen = {str(x.get("id") or "") for x in items}
+
+ def _append(r: dict[str, Any]) -> None:
+ rid = str(r.get("id") or "")
+ if rid and rid in seen:
+ return
+ if rid:
+ seen.add(rid)
+ items.append(_row(r))
+
+ for src in (_feedback_local_list(),):
+ for r in src:
+ if isinstance(r, dict):
+ _append(r)
+ # Also portal data/feedback.json (monorepo + production absolute paths)
+ try:
+ candidates = [
+ Path.cwd() / "data" / "feedback.json",
+ Path(__file__).resolve().parents[4] / "data" / "feedback.json",
+ Path("/var/www/nomadro.cn/data/feedback.json"),
+ Path(os.environ.get("PORTAL_FEEDBACK_JSON", "")),
+ ]
+ for p in candidates:
+ if not p or not str(p) or not p.is_file():
+ continue
+ raw = json.loads(p.read_text(encoding="utf-8"))
+ rows = raw.get("items") if isinstance(raw, dict) else raw
+ if not isinstance(rows, list):
+ continue
+ for r in rows:
+ if isinstance(r, dict):
+ _append(r)
+ except Exception:
+ pass
+ items.sort(key=lambda r: str(r.get("at") or ""), reverse=True)
+ # Collapse portal-local + PB copies of the same submit (different ids).
+ deduped: list[dict[str, Any]] = []
+ seen_fp: set[str] = set()
+ for it in items:
+ fp = "|".join(
+ [
+ str(it.get("userKey") or ""),
+ str(it.get("text") or "")[:120],
+ str(it.get("at") or "")[:16],
+ ]
+ )
+ if fp in seen_fp:
+ continue
+ seen_fp.add(fp)
+ deduped.append(it)
+ items = deduped
+ if want_key:
+ items = [it for it in items if str(it.get("userKey") or "") == want_key]
+ # Cluster same person for admin: newest first within each userKey group.
+ groups: dict[str, list[dict[str, Any]]] = {}
+ for it in items:
+ key = str(it.get("userKey") or "unknown")
+ groups.setdefault(key, []).append(it)
+ clustered: list[dict[str, Any]] = []
+ for key, rows in sorted(
+ groups.items(),
+ key=lambda kv: str(kv[1][0].get("at") or ""),
+ reverse=True,
+ ):
+ for i, row in enumerate(rows):
+ clustered.append(
+ {
+ **row,
+ "userCount": len(rows),
+ "userIndex": i + 1,
+ "userMax": FEEDBACK_MAX_PER_USER,
+ "isGroupHead": i == 0,
+ }
+ )
+ # Person dossier: return full timeline for one userKey (no pagination cut).
+ if want_key:
+ return {
+ "ok": True,
+ "total": len(clustered),
+ "maxPerUser": FEEDBACK_MAX_PER_USER,
+ "userKey": want_key,
+ "personView": True,
+ "items": clustered,
+ }
+ total = len(clustered)
+ return {
+ "ok": True,
+ "total": total,
+ "maxPerUser": FEEDBACK_MAX_PER_USER,
+ "items": clustered[off : off + lim],
+ }
+
+
+def admin_delete_feedback(fid: str) -> bool:
+ return soft_delete_record(
+ entity="feedback",
+ entity_id=fid,
+ live_collection=C_FEEDBACK,
+ )
+
+
+def _page_rows(rows: list[dict[str, Any]], *, limit: int, offset: int) -> dict[str, Any]:
+ lim = max(1, min(int(limit or 100), 500))
+ off = max(0, int(offset or 0))
+ total = len(rows)
+ return {"ok": True, "total": total, "items": rows[off : off + lim]}
+
+
+def admin_list_skills(*, q: str = "", limit: int = 100, offset: int = 0) -> dict[str, Any]:
+ init_pb()
+ rows = get_pb().list_all(C_SKILLS, sort="-created_at", hard_limit=5000)
+ needle = (q or "").strip().lower()
+ items = [
+ {
+ "id": r.get("id"),
+ "guestId": r.get("guest_id") or "",
+ "author": r.get("author") or "",
+ "city": r.get("city") or "",
+ "offer": r.get("offer") or "",
+ "want": r.get("want") or "",
+ "note": r.get("note") or "",
+ "status": r.get("status") or "",
+ "at": r.get("created_at") or "",
+ }
+ for r in rows
+ ]
+ if needle:
+ items = [
+ x
+ for x in items
+ if needle in str(x.get("author") or "").lower()
+ or needle in str(x.get("city") or "").lower()
+ or needle in str(x.get("offer") or "").lower()
+ or needle in str(x.get("want") or "").lower()
+ or needle in str(x.get("guestId") or "").lower()
+ ]
+ return _page_rows(items, limit=limit, offset=offset)
+
+
+def admin_list_liveness(*, q: str = "", limit: int = 100, offset: int = 0) -> dict[str, Any]:
+ init_pb()
+ rows = get_pb().list_all(C_LIVENESS, sort="-created_at", hard_limit=5000)
+ needle = (q or "").strip().lower()
+
+ def _abs(u: str) -> str:
+ s = (u or "").strip()
+ if not s:
+ return ""
+ if s.startswith(("http://", "https://", "data:")):
+ return s
+ if s.startswith("/api/hub/"):
+ return f"https://api.nomadro.com{s}"
+ if s.startswith("/"):
+ return f"https://nomadro.com{s}"
+ return s
+
+ items = [
+ {
+ "id": r.get("id"),
+ "guestId": r.get("guest_id") or "",
+ "status": r.get("status") or "",
+ "similarity": r.get("similarity"),
+ "yawDelta": r.get("yaw_delta"),
+ "frontUrl": _abs(str(r.get("front_url") or "")),
+ "turnUrl": _abs(str(r.get("turn_url") or "")),
+ "videoUrl": _abs(str(r.get("video_url") or "")),
+ "avatarUrl": _abs(str(r.get("avatar_url") or "")),
+ "videoSize": r.get("video_size") or 0,
+ "at": r.get("created_at") or "",
+ }
+ for r in rows
+ ]
+ if needle:
+ items = [
+ x
+ for x in items
+ if needle in str(x.get("guestId") or "").lower()
+ or needle in str(x.get("status") or "").lower()
+ ]
+ return _page_rows(items, limit=limit, offset=offset)
+
+
+def admin_list_meetup_reviews(
+ *, q: str = "", limit: int = 100, offset: int = 0
+) -> dict[str, Any]:
+ init_pb()
+ rows = get_pb().list_all(C_REVIEWS, sort="-created_at", hard_limit=5000)
+ needle = (q or "").strip().lower()
+ items = [
+ {
+ "id": r.get("id"),
+ "bookingId": r.get("booking_id") or "",
+ "fromGuest": r.get("from_guest") or "",
+ "toGuest": r.get("to_guest") or "",
+ "toName": r.get("to_name") or "",
+ "punctuality": r.get("punctuality"),
+ "chemistry": r.get("chemistry"),
+ "professionalism": r.get("professionalism"),
+ "text": r.get("text") or "",
+ "at": r.get("created_at") or "",
+ }
+ for r in rows
+ ]
+ if needle:
+ items = [
+ x
+ for x in items
+ if needle in str(x.get("toName") or "").lower()
+ or needle in str(x.get("text") or "").lower()
+ or needle in str(x.get("fromGuest") or "").lower()
+ or needle in str(x.get("toGuest") or "").lower()
+ ]
+ return _page_rows(items, limit=limit, offset=offset)
+
+
+def admin_list_reports(*, q: str = "", limit: int = 100, offset: int = 0) -> dict[str, Any]:
+ init_pb()
+ rows = get_pb().list_all(C_REPORTS, sort="-created_at", hard_limit=5000)
+ needle = (q or "").strip().lower()
+ items = [
+ {
+ "id": r.get("id"),
+ "guestId": r.get("guest_id") or "",
+ "targetGuest": r.get("target_guest") or "",
+ "targetName": r.get("target_name") or "",
+ "reason": r.get("reason") or "",
+ "detail": r.get("detail") or "",
+ "status": r.get("status") or "",
+ "resultNote": r.get("result_note") or "",
+ "at": r.get("created_at") or "",
+ "resolvedAt": r.get("resolved_at") or "",
+ }
+ for r in rows
+ ]
+ if needle:
+ items = [
+ x
+ for x in items
+ if needle in str(x.get("reason") or "").lower()
+ or needle in str(x.get("targetName") or "").lower()
+ or needle in str(x.get("status") or "").lower()
+ or needle in str(x.get("guestId") or "").lower()
+ ]
+ return _page_rows(items, limit=limit, offset=offset)
+
+
+def admin_list_blocks(*, q: str = "", limit: int = 100, offset: int = 0) -> dict[str, Any]:
+ init_pb()
+ rows = get_pb().list_all(C_BLOCKS, sort="-created_at", hard_limit=5000)
+ needle = (q or "").strip().lower()
+ items = [
+ {
+ "id": r.get("id"),
+ "guestId": r.get("guest_id") or "",
+ "blockedGuest": r.get("blocked_guest") or "",
+ "reason": r.get("reason") or "",
+ "at": r.get("created_at") or "",
+ }
+ for r in rows
+ ]
+ if needle:
+ items = [
+ x
+ for x in items
+ if needle in str(x.get("guestId") or "").lower()
+ or needle in str(x.get("blockedGuest") or "").lower()
+ or needle in str(x.get("reason") or "").lower()
+ ]
+ return _page_rows(items, limit=limit, offset=offset)
+
+
+def admin_list_trips(*, q: str = "", limit: int = 100, offset: int = 0) -> dict[str, Any]:
+ init_pb()
+ try:
+ rows = get_pb().list_all("hub_trips", sort="-updated_at", hard_limit=5000)
+ except Exception:
+ rows = []
+ needle = (q or "").strip().lower()
+ items = [
+ {
+ "id": r.get("id"),
+ "guestId": r.get("guest_id") or "",
+ "cityId": r.get("city_id") or "",
+ "city": r.get("city") or "",
+ "country": r.get("country") or "",
+ "lat": r.get("lat"),
+ "lng": r.get("lng"),
+ "arrivalDate": r.get("arrival_date") or "",
+ "departureDate": r.get("departure_date") or "",
+ "visibility": r.get("visibility") or "",
+ "status": r.get("status") or "",
+ "updatedAt": r.get("updated_at") or "",
+ }
+ for r in rows
+ ]
+ if needle:
+ items = [
+ x
+ for x in items
+ if needle in str(x.get("city") or "").lower()
+ or needle in str(x.get("country") or "").lower()
+ or needle in str(x.get("guestId") or "").lower()
+ or needle in str(x.get("status") or "").lower()
+ ]
+ return _page_rows(items, limit=limit, offset=offset)
+
+
+def _file_public_url(r: dict[str, Any]) -> str:
+ path = str(r.get("path") or "")
+ file_id = str(r.get("file_id") or r.get("id") or "")
+ # 身份烙在 #fragment,播放地址要剥掉
+ if "#" in path and (
+ path.startswith("http://") or path.startswith("https://") or path.startswith("/api/")
+ ):
+ path = path.split("#", 1)[0]
+ if path.startswith("http://") or path.startswith("https://"):
+ return path
+ if path.startswith("/api/"):
+ return path
+ # 状态埋点占位 path(pending:// / uploading:// …)不是可播地址
+ if "://" in path:
+ return ""
+ if path.startswith("/var/") or path.startswith("/www/"):
+ return f"/api/hub/v1/files/{file_id}" if file_id else ""
+ return f"/api/hub/v1/files/{file_id}" if file_id else ""
+
+
+_ROOM_ARCHIVE_STATUSES = {
+ "pending",
+ "recording",
+ "uploading",
+ "uploaded",
+ "failed",
+ "denied",
+}
+
+
+def _room_archive_status_from_row(r: dict[str, Any]) -> str:
+ path = str(r.get("path") or "")
+ low = path.lower()
+ for st in ("pending", "recording", "uploading", "failed", "denied"):
+ if low.startswith(f"{st}://"):
+ return st
+ if low.startswith("uploaded://"):
+ return "uploaded"
+ if path.startswith("http://") or path.startswith("https://") or path.startswith("/api/"):
+ return "uploaded"
+ if path.startswith("/var/") or path.startswith("/www/"):
+ return "uploaded"
+ if (r.get("size") or 0) and path:
+ return "uploaded"
+ return "pending"
+
+
+def _room_archive_meta_path(
+ status: str,
+ session_id: str,
+ *,
+ room_id: str = "",
+ error: str = "",
+ path: str = "",
+ duration_sec: int = 0,
+ started_at: str = "",
+ nick: str = "",
+ email: str = "",
+) -> str:
+ from urllib.parse import quote
+
+ st = (status or "pending").strip().lower()
+ nick_n = (nick or "").strip()[:64]
+ email_n = (email or "").strip().lower()[:120]
+ # 已上传 S3 URL:把身份烙进 fragment,列表仍可解析(不影响播放)
+ if st == "uploaded" and path and (
+ path.startswith("http://")
+ or path.startswith("https://")
+ or path.startswith("/api/")
+ or path.startswith("/var/")
+ or path.startswith("/www/")
+ ):
+ base = path.split("#", 1)[0]
+ frag = []
+ if nick_n:
+ frag.append(f"nick={quote(nick_n, safe='')}")
+ if email_n:
+ frag.append(f"email={quote(email_n, safe='')}")
+ if room_id:
+ frag.append(f"room={quote(str(room_id)[:80], safe='')}")
+ return f"{base}#{'&'.join(frag)}" if frag else base
+ q = []
+ if room_id:
+ q.append(f"room={room_id[:80]}")
+ if nick_n:
+ q.append(f"nick={quote(nick_n, safe='')}")
+ if email_n:
+ q.append(f"email={quote(email_n, safe='')}")
+ if error:
+ q.append(f"err={error[:120]}")
+ if duration_sec and int(duration_sec) > 0:
+ q.append(f"dur={int(duration_sec)}")
+ if started_at:
+ q.append(f"t0={started_at[:40]}")
+ tail = ("?" + "&".join(q)) if q else ""
+ return f"{st}://room-archive/{session_id}{tail}"
+
+
+def _parse_meta_fragment(path: str) -> dict[str, str]:
+ if "#" not in path:
+ return {}
+ try:
+ from urllib.parse import parse_qs, unquote
+
+ frag = path.split("#", 1)[1]
+ return {k: unquote(v[0] if v else "") for k, v in parse_qs(frag).items()}
+ except Exception:
+ return {}
+
+
+def _guest_identity_index() -> dict[str, dict[str, str]]:
+ """guest_id → {nick,email,name,label} from roster + join_leads + 最近聊天花名。"""
+ out: dict[str, dict[str, str]] = {}
+
+ def _put(gid: str, *, nick: str = "", email: str = "") -> None:
+ gid = (gid or "").strip()
+ if not gid:
+ return
+ prev = out.get(gid) or {}
+ n = (nick or str(prev.get("nick") or "")).strip()
+ em = (email or str(prev.get("email") or "")).strip().lower()
+ if n in {"游民", "游客", "guest", "Guest", "匿名", "用户"}:
+ n = str(prev.get("nick") or "")
+ out[gid] = {
+ "nick": n,
+ "name": n,
+ "email": em,
+ "label": n or (em.split("@")[0] if em else "") or gid[:16],
+ }
+
+ try:
+ for r in get_pb().list_all(C_ROSTER, sort="-updated_at", hard_limit=5000):
+ _put(
+ str(r.get("guest_id") or ""),
+ nick=str(r.get("name") or ""),
+ email=str(r.get("email") or ""),
+ )
+ except Exception:
+ pass
+ try:
+ for r in get_pb().list_all(C_JOIN_LEADS, sort="-updated_at", hard_limit=5000):
+ _put(
+ str(r.get("guest_id") or ""),
+ nick=str(r.get("name") or ""),
+ email=str(r.get("email") or ""),
+ )
+ except Exception:
+ pass
+ # 聊天 nick 兜底(test15 / test14 常只在消息 author 里)
+ try:
+ for r in get_pb().list_all(C_MESSAGES, sort="-created_at", hard_limit=2000):
+ gid = str(r.get("guest_id") or "").strip()
+ if not gid:
+ continue
+ if str((out.get(gid) or {}).get("nick") or "").strip():
+ continue
+ _put(gid, nick=str(r.get("nick") or ""))
+ except Exception:
+ pass
+ return out
+
+
+def _identity_from_archive_row(
+ r: dict[str, Any], id_index: dict[str, dict[str, str]] | None = None
+) -> dict[str, str]:
+ gid = str(r.get("guest_id") or "").strip()
+ path = str(r.get("path") or "")
+ qs = _parse_meta_qs(path)
+ frag = _parse_meta_fragment(path)
+ nick = (frag.get("nick") or qs.get("nick") or "").strip()
+ email = (frag.get("email") or qs.get("email") or "").strip().lower()
+ hit = (id_index or {}).get(gid) or {}
+ if not nick:
+ nick = str(hit.get("nick") or hit.get("name") or "").strip()
+ if not email:
+ email = str(hit.get("email") or "").strip().lower()
+ label = nick or (email.split("@")[0] if email else "") or (gid[:16] if gid else "—")
+ return {"nick": nick, "email": email, "label": label, "guestId": gid}
+
+
+def _parse_meta_qs(path: str) -> dict[str, str]:
+ if "://" not in path or "?" not in path:
+ # uploaded S3 URL may embed nothing; try name later
+ return {}
+ try:
+ from urllib.parse import parse_qs, urlparse
+
+ return {k: (v[0] if v else "") for k, v in parse_qs(urlparse(path).query).items()}
+ except Exception:
+ return {}
+
+
+def _fmt_duration(sec: int) -> str:
+ s = max(0, int(sec or 0))
+ if s < 60:
+ return f"{s}秒"
+ m, r = divmod(s, 60)
+ if m < 60:
+ return f"{m}分{r}秒" if r else f"{m}分钟"
+ h, m = divmod(m, 60)
+ return f"{h}小时{m}分"
+
+
+def _duration_from_row(r: dict[str, Any]) -> int:
+ path = str(r.get("path") or "")
+ qs = _parse_meta_qs(path)
+ if qs.get("dur"):
+ try:
+ return max(0, int(qs["dur"]))
+ except Exception:
+ pass
+ name = str(r.get("name") or "")
+ # room-xxx__45s.webm
+ import re
+
+ m = re.search(r"__(\d+)s(?:\.|$)", name)
+ if m:
+ try:
+ return max(0, int(m.group(1)))
+ except Exception:
+ pass
+ # live recording: estimate from t0 or created_at
+ t0 = qs.get("t0") or str(r.get("created_at") or "")
+ st = _room_archive_status_from_row(r)
+ if st in {"recording", "uploading", "pending"} and t0:
+ try:
+ from datetime import datetime, timezone
+
+ raw = t0.replace("Z", "+00:00")
+ if raw.isdigit():
+ start = datetime.fromtimestamp(int(raw) / (1000 if len(raw) > 10 else 1), tz=timezone.utc)
+ else:
+ start = datetime.fromisoformat(raw)
+ now = datetime.now(timezone.utc)
+ if start.tzinfo is None:
+ start = start.replace(tzinfo=timezone.utc)
+ return max(0, int((now - start).total_seconds()))
+ except Exception:
+ pass
+ return 0
+
+
+def _room_id_from_row(r: dict[str, Any]) -> str:
+ qs = _parse_meta_qs(str(r.get("path") or ""))
+ if qs.get("room"):
+ return qs["room"][:120]
+ name = str(r.get("name") or "")
+ if name.startswith("room-") and ".webm" in name:
+ core = name[5:].split(".webm")[0].split("__")[0]
+ if core.endswith("-pending"):
+ return core[: -len("-pending")][:120]
+ if core.endswith("-leave"):
+ return core[: -len("-leave")][:120]
+ # room---
+ parts = core.rsplit("-", 2)
+ if len(parts) >= 3 and parts[-1].isdigit() and parts[-2].isdigit():
+ return "-".join(parts[:-2])[:120]
+ return core[:120]
+ return ""
+
+
+def _is_room_archive_row(r: dict[str, Any]) -> bool:
+ name = str(r.get("name") or "").lower()
+ path = str(r.get("path") or "").lower()
+ kind = str(r.get("kind") or "").lower()
+ if kind in {"room-archive", "room-archive-session"}:
+ return True
+ if name.startswith("room-") or "room-archive" in name:
+ return True
+ if "room-archive" in path or "/room-archive/" in path:
+ return True
+ if kind == "video" and ("room-" in name or "meetup" in name):
+ return True
+ return False
+
+
+def find_open_room_archive_session(
+ *,
+ guest_id: str,
+ channel_id: str = "",
+ filename: str = "",
+) -> str:
+ """上传丢 session_id 时:挂到同 guest 最近一条未完成的 room-archive。"""
+ init_pb()
+ gid = (guest_id or "").strip()
+ if not gid:
+ return ""
+ ch = (channel_id or "").strip()
+ # filename 仅作弱提示:room--...
+ room_hint = ""
+ name = (filename or "").strip()
+ if name.startswith("room-"):
+ core = name[5:].split(".webm")[0].split("__")[0]
+ # 去掉末尾时间戳/序号:...-1730123456789-0
+ parts = core.rsplit("-", 2)
+ if len(parts) >= 3 and parts[-1].isdigit() and parts[-2].isdigit():
+ room_hint = "-".join(parts[:-2])[:120]
+ elif core.endswith("-pending"):
+ room_hint = core[: -len("-pending")][:120]
+ else:
+ room_hint = core[:120]
+ rows = get_pb().list_all(C_FILES, sort="-created_at", hard_limit=800)
+ open_sts = {"pending", "recording", "uploading"}
+ fallback = ""
+ for r in rows:
+ if not _is_room_archive_row(r):
+ continue
+ if str(r.get("guest_id") or "") != gid:
+ continue
+ st = _room_archive_status_from_row(r)
+ if st not in open_sts:
+ continue
+ rch = str(r.get("channel_id") or "")
+ if ch and rch and rch != ch:
+ continue
+ fid = str(r.get("file_id") or r.get("id") or "").strip()
+ if not fid:
+ continue
+ rid = _room_id_from_row(r)
+ if room_hint and rid and (room_hint in rid or rid in room_hint or room_hint == rid):
+ return fid[:80]
+ if not fallback:
+ fallback = fid[:80]
+ return fallback
+
+
+def _supersede_sibling_open_archives(
+ *,
+ keep_session_id: str,
+ guest_id: str,
+ channel_id: str,
+ room_id: str = "",
+) -> None:
+ """同 guest+厅 已有 uploaded 时,把其它卡死的 pending/recording 标 failed。"""
+ gid = (guest_id or "").strip()
+ keep = (keep_session_id or "").strip()
+ if not gid or not keep:
+ return
+ ch = (channel_id or "").strip()
+ room = (room_id or "").strip()
+ try:
+ rows = get_pb().list_all(C_FILES, sort="-created_at", hard_limit=800)
+ except Exception:
+ return
+ now = _now()
+ for r in rows:
+ if not _is_room_archive_row(r):
+ continue
+ fid = str(r.get("file_id") or "").strip()
+ if not fid or fid == keep:
+ continue
+ if str(r.get("guest_id") or "") != gid:
+ continue
+ if ch and str(r.get("channel_id") or "") not in {ch, "", "meetup-live"}:
+ if str(r.get("channel_id") or "") and str(r.get("channel_id") or "") != ch:
+ continue
+ rid = _room_id_from_row(r)
+ if room and rid and room not in rid and rid not in room:
+ continue
+ st = _room_archive_status_from_row(r)
+ if st not in {"pending", "recording"}:
+ continue
+ # 空壳未完成 → 被同场 uploaded 取代
+ try:
+ get_pb().upsert(
+ C_FILES,
+ filter=f"file_id={pb_quote(fid)}",
+ payload={
+ "path": _room_archive_meta_path(
+ "failed",
+ fid,
+ room_id=rid or room,
+ error="superseded by uploaded sibling",
+ duration_sec=_duration_from_row(r),
+ started_at=_parse_meta_qs(str(r.get("path") or "")).get("t0") or "",
+ ),
+ "kind": "room-archive",
+ "updated_at": now,
+ },
+ )
+ except Exception:
+ pass
+
+
+def upsert_room_archive_event(
+ *,
+ session_id: str,
+ channel_id: str,
+ guest_id: str,
+ room_id: str = "",
+ status: str = "pending",
+ name: str = "",
+ mime: str = "video/webm",
+ size: int = 0,
+ path: str = "",
+ error: str = "",
+ seq: int = 0,
+ duration_sec: int = 0,
+ started_at: str = "",
+ nick: str = "",
+ email: str = "",
+) -> dict[str, Any]:
+ """进厅埋点 → 后台立刻可见;状态:pending/recording/uploading/uploaded/failed/denied。"""
+ init_pb()
+ now = _now()
+ sid = (session_id or "").strip()[:80] or _uid("arc")
+ st = (status or "pending").strip().lower()
+ if st not in _ROOM_ARCHIVE_STATUSES:
+ st = "pending"
+ gid = (guest_id or "")[:120]
+ ch = (channel_id or "meetup-live")[:80]
+ room = (room_id or "")[:120]
+ dur = max(0, int(duration_sec or 0))
+ t0 = (started_at or "").strip()[:40]
+ nick_n = (nick or "").strip()[:64]
+ email_n = (email or "").strip().lower()[:120]
+ # 无显式身份时从花名册/报名补全,后台列表才能显示 test15 而非 guest_xxx
+ if gid and (not nick_n or not email_n):
+ try:
+ ident = _identity_from_archive_row({"guest_id": gid, "path": ""}, _guest_identity_index())
+ if not nick_n:
+ nick_n = str(ident.get("nick") or "")[:64]
+ if not email_n:
+ email_n = str(ident.get("email") or "")[:120]
+ except Exception:
+ pass
+ fname = (name or "").strip()[:160] or f"room-{room or ch}-{sid}.webm"
+ if dur > 0 and "__" not in fname and fname.endswith(".webm"):
+ fname = fname[:-5] + f"__{dur}s.webm"
+ existing = get_pb().first(C_FILES, filter=f"file_id={pb_quote(sid)}")
+ prev_qs = _parse_meta_qs(str((existing or {}).get("path") or ""))
+ prev_frag = _parse_meta_fragment(str((existing or {}).get("path") or ""))
+ if not t0:
+ t0 = prev_qs.get("t0") or ""
+ if not room:
+ room = (prev_qs.get("room") or prev_frag.get("room") or "")[:120]
+ if not nick_n:
+ nick_n = (prev_frag.get("nick") or prev_qs.get("nick") or "")[:64]
+ if not email_n:
+ email_n = (prev_frag.get("email") or prev_qs.get("email") or "")[:120]
+ if not dur:
+ try:
+ dur = max(0, int(prev_qs.get("dur") or 0))
+ except Exception:
+ dur = 0
+ if not t0 and st in {"pending", "recording"}:
+ t0 = now
+ final_path = _room_archive_meta_path(
+ st,
+ sid,
+ room_id=room,
+ error=error,
+ path=path,
+ duration_sec=dur,
+ started_at=t0,
+ nick=nick_n,
+ email=email_n,
+ )
+ snap = {
+ "sessionId": sid,
+ "channelId": ch,
+ "guestId": gid,
+ "roomId": room,
+ "nick": nick_n,
+ "email": email_n,
+ "status": st,
+ "name": fname,
+ "size": int(size or 0),
+ "path": final_path,
+ "error": (error or "")[:240],
+ "seq": int(seq or 0),
+ "durationSec": dur,
+ "startedAt": t0,
+ "at": now,
+ }
+ try:
+ archive_snapshot(
+ entity="room_archives",
+ entity_id=sid,
+ action=st,
+ payload=snap,
+ guest_id=gid,
+ note=f"room-archive:{st}",
+ )
+ except Exception:
+ pass
+
+ body: dict[str, Any] = {
+ "file_id": sid,
+ "channel_id": ch,
+ "guest_id": gid or str((existing or {}).get("guest_id") or ""),
+ "kind": "room-archive",
+ "name": fname or str((existing or {}).get("name") or ""),
+ "mime": (mime or "video/webm")[:120],
+ "size": int(size or 0) or int((existing or {}).get("size") or 0),
+ "path": final_path,
+ }
+ if not existing:
+ body["created_at"] = now
+ else:
+ body["created_at"] = str((existing or {}).get("created_at") or now)
+ prev_st = _room_archive_status_from_row(existing or {})
+ prev_path = str((existing or {}).get("path") or "")
+ if prev_st == "uploaded" and st != "uploaded":
+ keep = _room_archive_meta_path(
+ "uploaded",
+ sid,
+ room_id=room,
+ path=prev_path.split("#", 1)[0],
+ nick=nick_n,
+ email=email_n,
+ duration_sec=dur,
+ started_at=t0,
+ )
+ body["path"] = keep
+ body["name"] = str((existing or {}).get("name") or body["name"])
+ st = "uploaded"
+ final_path = keep
+ if st == "uploaded" and not (
+ final_path.startswith("http")
+ or final_path.startswith("/api/")
+ or final_path.startswith("/var")
+ or final_path.startswith("/www")
+ ):
+ keep_src = (prev_path or final_path).split("#", 1)[0]
+ body["path"] = _room_archive_meta_path(
+ "uploaded",
+ sid,
+ room_id=room,
+ path=keep_src,
+ nick=nick_n,
+ email=email_n,
+ duration_sec=dur,
+ started_at=t0,
+ )
+ final_path = body["path"]
+ # 已上传真文件时把时长烙进文件名,方便列表展示
+ if st == "uploaded" and dur > 0:
+ nm = str(body.get("name") or "")
+ if nm.endswith(".webm") and "__" not in nm:
+ body["name"] = nm[:-5] + f"__{dur}s.webm"
+
+ get_pb().upsert(C_FILES, filter=f"file_id={pb_quote(sid)}", payload=body)
+ if st == "uploaded":
+ try:
+ _supersede_sibling_open_archives(
+ keep_session_id=sid,
+ guest_id=body.get("guest_id") or gid,
+ channel_id=ch,
+ room_id=room or _room_id_from_row({**body, "path": final_path}),
+ )
+ except Exception:
+ pass
+ play = ""
+ if st == "uploaded":
+ play = _file_public_url({**body, "file_id": sid})
+ if "://" in play and not play.startswith("http") and not play.startswith("/api/"):
+ play = ""
+ label = nick_n or (email_n.split("@")[0] if email_n else "") or (gid[:16] if gid else "")
+ return {
+ "ok": True,
+ "sessionId": sid,
+ "status": st,
+ "channelId": ch,
+ "guestId": gid,
+ "guestNick": nick_n,
+ "guestEmail": email_n,
+ "guestLabel": label,
+ "roomId": room,
+ "name": body.get("name") or fname,
+ "size": body["size"],
+ "durationSec": dur,
+ "durationLabel": _fmt_duration(dur) if dur else "",
+ "startedAt": t0,
+ "url": play,
+ "videoUrl": play,
+ "at": body.get("created_at") or now,
+ }
+
+def admin_list_files(*, q: str = "", limit: int = 100, offset: int = 0) -> dict[str, Any]:
+ init_pb()
+ rows = get_pb().list_all(C_FILES, sort="-created_at", hard_limit=5000)
+ needle = (q or "").strip().lower()
+ items = [
+ {
+ "id": r.get("id"),
+ "fileId": r.get("file_id") or r.get("id") or "",
+ "channelId": r.get("channel_id") or "",
+ "guestId": r.get("guest_id") or "",
+ "kind": r.get("kind") or "",
+ "name": r.get("name") or "",
+ "mime": r.get("mime") or "",
+ "size": r.get("size") or 0,
+ "path": r.get("path") or "",
+ "url": _file_public_url(r),
+ "at": r.get("created_at") or "",
+ }
+ for r in rows
+ ]
+ if needle:
+ items = [
+ x
+ for x in items
+ if needle in str(x.get("name") or "").lower()
+ or needle in str(x.get("kind") or "").lower()
+ or needle in str(x.get("guestId") or "").lower()
+ or needle in str(x.get("channelId") or "").lower()
+ ]
+ return _page_rows(items, limit=limit, offset=offset)
+
+
+def admin_list_room_archives(
+ *, q: str = "", limit: int = 100, offset: int = 0
+) -> dict[str, Any]:
+ """语音厅静默录像:含待上传/上传中/已上传全状态。"""
+ init_pb()
+ rows = get_pb().list_all(C_FILES, sort="-created_at", hard_limit=5000)
+ rows = [r for r in rows if _is_room_archive_row(r)]
+ gone = _soft_deleted_ids("files") | _soft_deleted_ids("room_archives")
+ needle = (q or "").strip().lower()
+ items = []
+ from datetime import datetime, timezone
+
+ now_utc = datetime.now(timezone.utc)
+ id_index = _guest_identity_index()
+ for r in rows:
+ fid = str(r.get("file_id") or r.get("id") or "")
+ rid = str(r.get("id") or "")
+ if fid in gone or rid in gone:
+ continue
+ gid = str(r.get("guest_id") or "")
+ # 开发冒烟假数据不进运营列表
+ if gid.startswith(
+ ("guest_debug", "guest_funnel", "guest_cdp", "guest_browserlike")
+ ) or fid.startswith(("arc_smoke_", "arc_cdp_", "arc_live_")):
+ continue
+ st = _room_archive_status_from_row(r)
+ dur = _duration_from_row(r)
+ age = 0.0
+ try:
+ raw = str(r.get("created_at") or "").replace("Z", "+00:00")
+ start = datetime.fromisoformat(raw)
+ if start.tzinfo is None:
+ start = start.replace(tzinfo=timezone.utc)
+ age = (now_utc - start).total_seconds()
+ except Exception:
+ age = 0.0
+ # 空壳「上传中」超过 2 分钟视为失败(离厅未真正传完)
+ if st == "uploading" and int(r.get("size") or 0) <= 0 and age > 120:
+ st = "failed"
+ # 卡死「待上传/录制中」超过 30 分钟 → 失败(人已走、没录像)
+ if st in {"pending", "recording"} and age > 1800:
+ st = "failed"
+ play = ""
+ if st == "uploaded":
+ play = _file_public_url(r)
+ if play.startswith("pending://") or (
+ "://" in play and not play.startswith("http") and not play.startswith("/api/")
+ ):
+ play = ""
+ room = _room_id_from_row(r)
+ # 厅 id 也可能在 S3 URL fragment
+ if not room:
+ room = (_parse_meta_fragment(str(r.get("path") or "")).get("room") or "")[:120]
+ ident = _identity_from_archive_row(r, id_index)
+ items.append(
+ {
+ "id": r.get("id"),
+ "fileId": r.get("file_id") or r.get("id") or "",
+ "sessionId": r.get("file_id") or r.get("id") or "",
+ "channelId": r.get("channel_id") or "",
+ "guestId": r.get("guest_id") or "",
+ "guestNick": ident.get("nick") or "",
+ "guestEmail": ident.get("email") or "",
+ "guestLabel": ident.get("label") or "",
+ "nick": ident.get("nick") or "",
+ "email": ident.get("email") or "",
+ "roomId": room,
+ "kind": "room-archive",
+ "status": st,
+ "statusLabel": {
+ "pending": "待上传",
+ "recording": "录制中",
+ "uploading": "上传中",
+ "uploaded": "已上传",
+ "failed": "失败",
+ "denied": "未开摄像头",
+ }.get(st, st),
+ "name": r.get("name") or "",
+ "mime": r.get("mime") or "video/webm",
+ "size": r.get("size") or 0,
+ "durationSec": dur,
+ "durationLabel": _fmt_duration(dur) if dur else "",
+ "path": r.get("path") or "",
+ "url": play,
+ "videoUrl": play,
+ "at": r.get("created_at") or "",
+ }
+ )
+
+ # 同 guest + room/channel:已有「已上传」则隐藏被取代的空壳 pending/recording
+ uploaded_keys: set[str] = set()
+ for x in items:
+ if x.get("status") != "uploaded":
+ continue
+ g = str(x.get("guestId") or "")
+ room = str(x.get("roomId") or "")
+ ch = str(x.get("channelId") or "")
+ if g and room:
+ uploaded_keys.add(f"{g}|r|{room}")
+ if g and ch:
+ uploaded_keys.add(f"{g}|c|{ch}")
+ if uploaded_keys:
+ pruned = []
+ for x in items:
+ st = str(x.get("status") or "")
+ # 同场已有已上传:藏空壳 pending/recording,以及被 supersede 的空 failed
+ if st in {"pending", "recording", "failed"} and int(x.get("size") or 0) <= 0 and not x.get("url"):
+ g = str(x.get("guestId") or "")
+ room = str(x.get("roomId") or "")
+ ch = str(x.get("channelId") or "")
+ if (g and room and f"{g}|r|{room}" in uploaded_keys) or (
+ g and ch and f"{g}|c|{ch}" in uploaded_keys
+ ):
+ continue
+ pruned.append(x)
+ items = pruned
+
+ if needle:
+ items = [
+ x
+ for x in items
+ if needle in str(x.get("name") or "").lower()
+ or needle in str(x.get("guestId") or "").lower()
+ or needle in str(x.get("guestNick") or "").lower()
+ or needle in str(x.get("guestEmail") or "").lower()
+ or needle in str(x.get("guestLabel") or "").lower()
+ or needle in str(x.get("channelId") or "").lower()
+ or needle in str(x.get("status") or "").lower()
+ or needle in str(x.get("statusLabel") or "").lower()
+ or needle in str(x.get("url") or "").lower()
+ or needle in str(x.get("roomId") or "").lower()
+ ]
+ return _page_rows(items, limit=limit, offset=offset)
+
+
+def admin_list_coffee_bookings(
+ *, q: str = "", limit: int = 100, offset: int = 0
+) -> dict[str, Any]:
+ """Coffeechat bookings — PB coffee_bookings."""
+ init_pb()
+ try:
+ rows = get_pb().list_all("coffee_bookings", sort="-created_at", hard_limit=5000)
+ except Exception:
+ rows = []
+ needle = (q or "").strip().lower()
+ items = [
+ {
+ "id": r.get("id"),
+ "uid": r.get("uid") or "",
+ "hostId": r.get("host_id") or "",
+ "eventTypeId": r.get("event_type_id") or "",
+ "title": r.get("title") or "",
+ "status": r.get("status") or "",
+ "startUtc": r.get("start_utc") or "",
+ "endUtc": r.get("end_utc") or "",
+ "location": r.get("location") or "",
+ "notes": r.get("notes") or "",
+ "attendeeName": r.get("attendee_name") or "",
+ "attendeeEmail": r.get("attendee_email") or "",
+ "attendeeTimezone": r.get("attendee_timezone") or "",
+ "at": r.get("created_at") or "",
+ "cancelledAt": r.get("cancelled_at") or "",
+ }
+ for r in rows
+ ]
+ if needle:
+ items = [
+ x
+ for x in items
+ if needle in str(x.get("title") or "").lower()
+ or needle in str(x.get("attendeeName") or "").lower()
+ or needle in str(x.get("attendeeEmail") or "").lower()
+ or needle in str(x.get("status") or "").lower()
+ ]
+ return _page_rows(items, limit=limit, offset=offset)
+
+
+def admin_stats() -> dict[str, Any]:
+ """Dashboard aggregates for admin visualization."""
+ empty_counts = {
+ "messages": 0,
+ "roster": 0,
+ "reviews": 0,
+ "gigApps": 0,
+ "feedback": 0,
+ "joinLeads": 0,
+ "skills": 0,
+ "liveness": 0,
+ "meetupReviews": 0,
+ "reports": 0,
+ "blocks": 0,
+ "files": 0,
+ "trips": 0,
+ "coffeeBookings": 0,
+ "archives": 0,
+ }
+ try:
+ init_pb()
+ pb = get_pb()
+ counts = admin_overview().get("counts") or empty_counts
+ soft = {
+ "roster": len(_soft_deleted_ids("roster")),
+ "messages": len(_soft_deleted_ids("messages")),
+ "reviews": len(_soft_deleted_ids("reviews")),
+ "gigApps": len(_soft_deleted_ids("gigApps")),
+ "feedback": len(_soft_deleted_ids("feedback")),
+ "skills": len(_soft_deleted_ids("skills")),
+ }
+ # city breakdown from live roster (exclude soft-deleted)
+ gone = _soft_deleted_ids("roster")
+ roster = [
+ r
+ for r in pb.list_all(C_ROSTER, hard_limit=5000)
+ if str(r.get("guest_id") or "") not in gone and (r.get("status") or "") != "deleted"
+ ]
+ by_city: dict[str, int] = {}
+ by_day: dict[str, int] = {}
+ for r in roster:
+ city = (r.get("city") or "未填").strip() or "未填"
+ by_city[city] = by_city.get(city, 0) + 1
+ day = str(r.get("updated_at") or r.get("onboarded_at") or "")[:10]
+ if day:
+ by_day[day] = by_day.get(day, 0) + 1
+ city_top = sorted(by_city.items(), key=lambda x: -x[1])[:12]
+ day_series = sorted(by_day.items())[-30:]
+ return {
+ "ok": True,
+ "counts": counts,
+ "softDeleted": soft,
+ "activeRoster": len(roster),
+ "byCity": [{"name": k, "value": v} for k, v in city_top],
+ "rosterByDay": [{"date": d, "value": n} for d, n in day_series],
+ }
+ except Exception as e:
+ return {
+ "ok": False,
+ "counts": empty_counts,
+ "softDeleted": {},
+ "activeRoster": 0,
+ "byCity": [],
+ "rosterByDay": [],
+ "error": str(e)[:240],
+ }
+
+
+def _join_lead_public(r: dict[str, Any]) -> dict[str, Any]:
+ return _sanitize_join_lead_item(
+ {
+ "id": r.get("id"),
+ "email": r.get("email") or "",
+ "guestId": r.get("guest_id") or "",
+ "stage": r.get("stage") or "",
+ "name": r.get("name") or "",
+ "paid": r.get("paid") or "",
+ "faceOk": r.get("face_ok") or "",
+ "livenessStatus": r.get("liveness_status") or "",
+ "ua": r.get("ua") or "",
+ "payload": r.get("payload") or {},
+ "createdAt": r.get("created_at") or "",
+ "updatedAt": r.get("updated_at") or "",
+ }
+ )
+
+
+def admin_get_join_lead(lead_id: str) -> dict[str, Any] | None:
+ """Human join funnel detail: lead + stage timeline + roster media + liveness clips."""
+ init_pb()
+ pb = get_pb()
+ key = (lead_id or "").strip()
+ if not key:
+ return None
+ rec = None
+ try:
+ rec = pb.request(
+ "GET", f"/api/collections/{C_JOIN_LEADS}/records/{key}", admin=True
+ )
+ except Exception:
+ rec = None
+ if not rec:
+ email_n = key.lower()
+ rec = pb.first(C_JOIN_LEADS, filter=f"email={pb_quote(email_n)}")
+ if not rec:
+ # Archive-only fallback: latest snapshot for this email / id
+ arch = pb.list_all(
+ C_ARCHIVES,
+ filter=f"entity={pb_quote('join_leads')} && entity_id={pb_quote(key.lower())}",
+ sort="-created_at",
+ hard_limit=1,
+ )
+ if not arch:
+ return None
+ a0 = arch[0]
+ payload = a0.get("payload") if isinstance(a0.get("payload"), dict) else {}
+ item = _sanitize_join_lead_item(
+ {
+ "id": a0.get("id") or key,
+ "email": payload.get("email") or a0.get("entity_id") or key,
+ "guestId": payload.get("guestId") or a0.get("guest_id") or "",
+ "stage": payload.get("stage") or a0.get("action") or "",
+ "name": payload.get("name") or "",
+ "paid": payload.get("paid") or "",
+ "faceOk": payload.get("faceOk") or "",
+ "livenessStatus": payload.get("livenessStatus") or "",
+ "ua": payload.get("ua") or "",
+ "payload": payload.get("payload")
+ if isinstance(payload.get("payload"), dict)
+ else payload,
+ "createdAt": a0.get("created_at") or "",
+ "updatedAt": a0.get("created_at") or "",
+ }
+ )
+ else:
+ item = _join_lead_public(rec)
+
+ email = str(item.get("email") or "").strip().lower()
+ gid = str(item.get("guestId") or "").strip()
+ hist_rows = pb.list_all(
+ C_ARCHIVES,
+ filter=f"entity={pb_quote('join_leads')} && entity_id={pb_quote(email)}",
+ sort="-created_at",
+ hard_limit=100,
+ )
+ history = [
+ {
+ "id": h.get("id"),
+ "action": h.get("action"),
+ "at": h.get("created_at"),
+ "note": h.get("note") or "",
+ "payload": h.get("payload") or {},
+ }
+ for h in hist_rows
+ ]
+ own_face_stages = {
+ "profile_done",
+ "liveness_verified",
+ "liveness_failed",
+ "liveness_skipped",
+ "join_done",
+ }
+ hist_actions = {str(h.get("action") or "") for h in history}
+ hist_actions.add(str(item.get("stage") or ""))
+ # 只有本线索历史里真的做过核验,才允许挂自拍/视频;join_done 可能是「稍后再说」
+ own_liveness = "liveness_verified" in hist_actions
+ own_profile = bool(hist_actions & {"profile_done", "join_done"})
+
+ # 花名册:优先按 email;guest 串号且 email 对不上 → 丢弃,禁止显示别人头像/自拍
+ roster: dict[str, Any] | None = None
+ if email:
+ try:
+ rec_by_email = pb.first(C_ROSTER, filter=f"email={pb_quote(email)}")
+ if rec_by_email:
+ roster = _roster_from_rec(rec_by_email, public=False)
+ except Exception:
+ roster = None
+ if roster is None and gid:
+ cand = get_roster(gid)
+ if cand:
+ remail = str(cand.get("email") or "").strip().lower()
+ if remail and remail == email:
+ roster = cand
+ elif not remail and own_liveness:
+ roster = cand
+ else:
+ roster = None
+
+ audits: list[dict[str, Any]] = []
+ try:
+ for a in list_liveness_audits(limit=80):
+ meta = a.get("meta") if isinstance(a.get("meta"), dict) else {}
+ a_email = str(a.get("email") or meta.get("email") or "").strip().lower()
+ a_gid = str(a.get("guestId") or "")
+ if email and a_email and a_email == email:
+ audits.append(a)
+ elif own_liveness and gid and a_gid == gid and (not a_email or a_email == email):
+ audits.append(a)
+ if len(audits) >= 8:
+ break
+ except Exception:
+ audits = []
+
+ # 本线索从未核验:清空串来的 audit;roster 无本邮箱绑定也不挂媒体
+ stage_now = str(item.get("stage") or "")
+ if not own_liveness and stage_now not in own_face_stages:
+ audits = []
+ if roster and str(roster.get("email") or "").strip().lower() not in {"", email}:
+ roster = None
+ if roster and not own_liveness and stage_now in {"email_submit", "pay_launched"}:
+ # 只填邮箱阶段:绝不展示任何媒体
+ roster = None
+ audits = []
+
+ def _abs_media(url: str) -> str:
+ u = (url or "").strip()
+ if not u:
+ return ""
+ if u.startswith("https://") or u.startswith("http://") or u.startswith("data:"):
+ return u
+ if u.startswith("/api/hub/"):
+ return f"https://api.nomadro.com{u}"
+ if u.startswith("/"):
+ return f"https://nomadro.com{u}"
+ return u
+
+ def _pick_url(*vals: Any) -> str:
+ for v in vals:
+ if isinstance(v, str) and v.strip():
+ return _abs_media(v.strip())
+ return ""
+
+ # 只从「本邮箱」真正走过的资料/核验阶段收割媒体;email_submit 脏 payload 一律忽略
+ _MEDIA_STAGES = frozenset(
+ {"profile_done", "liveness_verified", "join_done"}
+ )
+ harvested: dict[str, str] = {
+ "avatar": "",
+ "livenessFrontUrl": "",
+ "livenessTurnUrl": "",
+ "livenessVideoUrl": "",
+ }
+ if own_profile or own_liveness:
+ harvest_blobs: list[dict[str, Any]] = []
+ if str(item.get("stage") or "") in _MEDIA_STAGES:
+ lead_payload = item.get("payload") if isinstance(item.get("payload"), dict) else {}
+ if lead_payload:
+ harvest_blobs.append(lead_payload)
+ for h in history:
+ if str(h.get("action") or "") not in _MEDIA_STAGES:
+ continue
+ blob = h.get("payload")
+ if isinstance(blob, dict):
+ harvest_blobs.append(blob)
+ for blob in harvest_blobs:
+ nested = blob.get("payload") if isinstance(blob.get("payload"), dict) else {}
+ sources = (blob, nested)
+ if not harvested["avatar"]:
+ harvested["avatar"] = _pick_url(
+ *(s.get("avatarUrl") or s.get("avatar") for s in sources)
+ )
+ if own_liveness and not harvested["livenessFrontUrl"]:
+ harvested["livenessFrontUrl"] = _pick_url(
+ *(s.get("frontUrl") or s.get("livenessFrontUrl") for s in sources)
+ )
+ if own_liveness and not harvested["livenessTurnUrl"]:
+ harvested["livenessTurnUrl"] = _pick_url(
+ *(s.get("turnUrl") or s.get("livenessTurnUrl") for s in sources)
+ )
+ if own_liveness and not harvested["livenessVideoUrl"]:
+ harvested["livenessVideoUrl"] = _pick_url(
+ *(s.get("videoUrl") or s.get("livenessVideoUrl") for s in sources)
+ )
+
+ if own_liveness and audits:
+ a0 = audits[0]
+ if not harvested["livenessFrontUrl"]:
+ harvested["livenessFrontUrl"] = _abs_media(str(a0.get("frontUrl") or ""))
+ if not harvested["livenessTurnUrl"]:
+ harvested["livenessTurnUrl"] = _abs_media(str(a0.get("turnUrl") or ""))
+ if not harvested["livenessVideoUrl"]:
+ harvested["livenessVideoUrl"] = _abs_media(str(a0.get("videoUrl") or ""))
+
+ roster_email_ok = bool(
+ roster
+ and email
+ and str(roster.get("email") or "").strip().lower() == email
+ )
+ # 只填邮箱 / 未填资料:媒体与 roster 全部清空,禁止串 Eric 等别人的脸
+ early_only = stage_now in {"email_submit", "pay_launched"} or (
+ not own_profile and not own_liveness
+ )
+ if early_only:
+ roster = None
+ audits = []
+ media = {
+ "avatar": "",
+ "livenessFrontUrl": "",
+ "livenessTurnUrl": "",
+ "livenessVideoUrl": "",
+ "audits": [],
+ }
+ else:
+ # 无本邮箱绑定的 roster:共用 guest 上的头像/自拍一律不信
+ if not roster_email_ok:
+ avatar_url = ""
+ live_front = ""
+ live_turn = ""
+ live_video = ""
+ audits = []
+ else:
+ avatar_url = harvested["avatar"] if own_profile else ""
+ if not avatar_url and own_profile:
+ avatar_url = _abs_media(str(roster.get("avatar") or ""))
+ live_front = harvested["livenessFrontUrl"] if own_liveness else ""
+ live_turn = harvested["livenessTurnUrl"] if own_liveness else ""
+ live_video = harvested["livenessVideoUrl"] if own_liveness else ""
+ if own_liveness:
+ live_front = live_front or _abs_media(str(roster.get("livenessFrontUrl") or ""))
+ live_turn = live_turn or _abs_media(str(roster.get("livenessTurnUrl") or ""))
+ live_video = live_video or _abs_media(str(roster.get("livenessVideoUrl") or ""))
+ media = {
+ "avatar": avatar_url,
+ "livenessFrontUrl": live_front,
+ "livenessTurnUrl": live_turn,
+ "livenessVideoUrl": live_video,
+ "audits": [
+ {
+ **a,
+ "frontUrl": _abs_media(str(a.get("frontUrl") or "")),
+ "turnUrl": _abs_media(str(a.get("turnUrl") or "")),
+ "videoUrl": _abs_media(str(a.get("videoUrl") or "")),
+ }
+ for a in (audits if own_liveness and roster_email_ok else [])
+ ],
+ }
+
+ # 时间线里早期阶段的脏 URL 也剥掉,避免详情页 timeline 再画出别人的脸
+ _MEDIA_KEYS = (
+ "avatar",
+ "avatarUrl",
+ "frontUrl",
+ "turnUrl",
+ "videoUrl",
+ "livenessFrontUrl",
+ "livenessTurnUrl",
+ "livenessVideoUrl",
+ )
+
+ def _strip_media_payload(payload: Any, *, keep: bool) -> Any:
+ if not isinstance(payload, dict):
+ return payload
+ out = dict(payload)
+ if not keep:
+ for k in _MEDIA_KEYS:
+ out.pop(k, None)
+ nested = out.get("payload")
+ if isinstance(nested, dict):
+ nest = dict(nested)
+ for k in _MEDIA_KEYS:
+ nest.pop(k, None)
+ out["payload"] = nest
+ return out
+
+ clean_history = []
+ for h in history:
+ act = str(h.get("action") or "")
+ keep = act in _MEDIA_STAGES and (own_profile or own_liveness)
+ if act in {"liveness_verified"} and not own_liveness:
+ keep = False
+ clean_history.append({**h, "payload": _strip_media_payload(h.get("payload"), keep=keep)})
+
+ clean_item = dict(item)
+ if early_only:
+ clean_item["payload"] = _strip_media_payload(clean_item.get("payload"), keep=False)
+ clean_item["faceOk"] = ""
+ clean_item["livenessStatus"] = "none"
+
+ return {
+ "ok": True,
+ "entity": "joinLeads",
+ "id": str(item.get("id") or email or key),
+ "item": {**clean_item, "media": media, "roster": roster or {}},
+ "softDeleted": False,
+ "history": clean_history,
+ "media": media,
+ "roster": roster or {},
+ }
+
+
+def admin_get_detail(entity: str, entity_id: str) -> dict[str, Any] | None:
+ if entity == "joinLeads":
+ return admin_get_join_lead(entity_id)
+ init_pb()
+ pb = get_pb()
+ coll = ENTITY_COLLECTIONS.get(entity)
+ if not coll:
+ return None
+ rec = None
+ if entity == "roster":
+ raw = pb.first(coll, filter=f"guest_id={pb_quote(entity_id)}")
+ rec = _roster_from_rec(raw, public=False) if raw else None
+ else:
+ try:
+ rec = pb.request(
+ "GET", f"/api/collections/{coll}/records/{entity_id}", admin=True
+ )
+ except Exception:
+ rec = None
+ # Feedback may only exist in portal/local offline files.
+ if not rec and entity == "feedback":
+ try:
+ listed = admin_list_feedback(limit=500, offset=0)
+ for it in listed.get("items") or []:
+ if str(it.get("id") or "") == str(entity_id):
+ rec = dict(it)
+ break
+ except Exception:
+ rec = None
+ if not rec:
+ return None
+ # files / 语音厅录像:补可播 URL(S3 直链优先)
+ if entity == "files" and isinstance(rec, dict):
+ pub = _file_public_url(rec)
+ if pub:
+ rec = {
+ **rec,
+ "url": pub,
+ "videoUrl": pub if str(rec.get("mime") or "").startswith("video")
+ or str(rec.get("name") or "").lower().endswith((".webm", ".mp4", ".mov"))
+ or _is_room_archive_row(rec)
+ else rec.get("videoUrl") or "",
+ }
+ if entity == "feedback" and isinstance(rec, dict):
+ meta = rec.get("meta") if isinstance(rec.get("meta"), dict) else {}
+ guest = rec.get("guestId") or rec.get("guest_id") or ""
+ contact = rec.get("contact") or ""
+ user_key = str(rec.get("userKey") or rec.get("user_key") or "") or feedback_user_key(
+ guest_id=str(guest),
+ contact=str(contact),
+ meta=meta,
+ )
+ rec = {
+ **rec,
+ "userKey": user_key,
+ "guestId": guest,
+ "contact": contact,
+ "images": rec.get("images") if isinstance(rec.get("images"), list) else [],
+ "meta": meta,
+ "at": rec.get("at") or rec.get("created_at") or "",
+ }
+ hist = pb.list_all(
+ C_ARCHIVES,
+ filter=f"entity={pb_quote(entity)} && entity_id={pb_quote(entity_id)}",
+ sort="-created_at",
+ hard_limit=50,
+ )
+ return {
+ "ok": True,
+ "entity": entity,
+ "id": entity_id,
+ "item": rec,
+ "softDeleted": entity_id in _soft_deleted_ids(entity)
+ or (rec.get("status") == "deleted"),
+ "history": [
+ {
+ "id": h.get("id"),
+ "action": h.get("action"),
+ "at": h.get("created_at"),
+ "note": h.get("note") or "",
+ "payload": h.get("payload") or {},
+ }
+ for h in hist
+ ],
+ }
+
+
+def admin_list_archives(
+ *, entity: str = "", limit: int = 100, offset: int = 0
+) -> dict[str, Any]:
+ """Default list excludes join_leads (those live under 加入线索 detail timeline)."""
+ init_pb()
+ lim = max(1, min(int(limit or 100), 500))
+ off = max(0, int(offset or 0))
+ entity_n = (entity or "").strip()
+ filt = f"entity={pb_quote(entity_n)}" if entity_n else None
+ rows = get_pb().list_all(
+ C_ARCHIVES, filter=filt, sort="-created_at", hard_limit=5000
+ )
+ if not entity_n:
+ rows = [r for r in rows if str(r.get("entity") or "") != "join_leads"]
+ total = len(rows)
+ page = rows[off : off + lim]
+ return {
+ "ok": True,
+ "total": total,
+ "items": [
+ {
+ "id": r.get("id"),
+ "entity": r.get("entity"),
+ "entityId": r.get("entity_id"),
+ "guestId": r.get("guest_id") or "",
+ "action": r.get("action"),
+ "note": r.get("note") or "",
+ "at": r.get("created_at"),
+ "payload": r.get("payload") or {},
+ }
+ for r in page
+ ],
+ }
diff --git a/apps/api/services/hub_svc/photon.py b/apps/api/services/hub_svc/photon.py
new file mode 100644
index 0000000..f891fc4
--- /dev/null
+++ b/apps/api/services/hub_svc/photon.py
@@ -0,0 +1,73 @@
+"""Server-side Photon geocoder proxy (no browser CORS / key leakage)."""
+from __future__ import annotations
+
+import logging
+from typing import Any
+
+import httpx
+
+from .config import PHOTON_BASE_URL, PHOTON_TIMEOUT_SEC
+
+log = logging.getLogger("hub_svc.photon")
+
+
+def _norm_feature(f: dict[str, Any]) -> dict[str, Any] | None:
+ props = f.get("properties") or {}
+ geom = f.get("geometry") or {}
+ coords = geom.get("coordinates") or []
+ if len(coords) < 2:
+ return None
+ lng, lat = float(coords[0]), float(coords[1])
+ name = (
+ props.get("name")
+ or props.get("city")
+ or props.get("town")
+ or props.get("village")
+ or props.get("county")
+ or ""
+ ).strip()
+ if not name:
+ return None
+ country = (props.get("country") or "").strip()
+ state = (props.get("state") or props.get("county") or "").strip()
+ osm_id = props.get("osm_id")
+ osm_type = props.get("osm_type") or ""
+ cid = f"photon:{osm_type}{osm_id}" if osm_id is not None else f"photon:{lat:.4f},{lng:.4f}"
+ return {
+ "id": cid,
+ "name": name,
+ "country": country,
+ "state": state,
+ "lat": lat,
+ "lng": lng,
+ "osmKey": props.get("osm_key"),
+ "osmValue": props.get("osm_value"),
+ "source": "photon",
+ }
+
+
+async def search_cities(q: str, *, limit: int = 8, lang: str = "zh") -> list[dict[str, Any]]:
+ query = (q or "").strip()
+ if len(query) < 2:
+ return []
+ base = (PHOTON_BASE_URL or "").rstrip("/")
+ if not base:
+ return []
+ url = f"{base}/api/"
+ params = {"q": query, "limit": max(1, min(limit, 20)), "lang": lang or "zh"}
+ try:
+ async with httpx.AsyncClient(timeout=PHOTON_TIMEOUT_SEC) as client:
+ res = await client.get(url, params=params)
+ res.raise_for_status()
+ data = res.json()
+ except Exception as exc: # pragma: no cover
+ log.warning("photon search failed: %s", exc)
+ return []
+ out: list[dict[str, Any]] = []
+ for f in data.get("features") or []:
+ if not isinstance(f, dict):
+ continue
+ n = _norm_feature(f)
+ if n:
+ out.append(n)
+ return out
diff --git a/apps/api/services/hub_svc/realtime.py b/apps/api/services/hub_svc/realtime.py
new file mode 100644
index 0000000..b0b400f
--- /dev/null
+++ b/apps/api/services/hub_svc/realtime.py
@@ -0,0 +1,108 @@
+"""Centrifugo publish + connection JWT for 游民社区聊天."""
+from __future__ import annotations
+
+import logging
+import time
+from typing import Any
+
+import httpx
+import jwt
+
+from hub_svc.config import (
+ CENTRIFUGO_API_KEY,
+ CENTRIFUGO_API_URL,
+ CENTRIFUGO_ENABLED,
+ CENTRIFUGO_TOKEN_SECRET,
+ CENTRIFUGO_WS_URL,
+)
+
+log = logging.getLogger("hub_svc.realtime")
+
+_http: httpx.AsyncClient | None = None
+
+
+def _client() -> httpx.AsyncClient:
+ global _http
+ if _http is None or _http.is_closed:
+ _http = httpx.AsyncClient(timeout=3.0)
+ return _http
+
+
+def channel_name(channel_id: str) -> str:
+ """Centrifugo channel — hub: 前缀与 social_svc 的 social: 隔离。"""
+ cid = (channel_id or "").strip() or "lobby"
+ if cid.startswith("hub:") or cid.startswith("social:"):
+ # 已带命名空间则原样(兼容旧客户端短暂双前缀)
+ if cid.startswith("social:"):
+ return "hub:" + cid[len("social:") :]
+ return cid
+ return f"hub:{cid}"
+
+
+def issue_connection_token(guest_id: str, channel_id: str | None = None) -> dict[str, Any]:
+ """Return client connection info. Disabled → ok=false (前端降级轮询)."""
+ if not CENTRIFUGO_ENABLED or not CENTRIFUGO_TOKEN_SECRET:
+ return {
+ "ok": False,
+ "enabled": False,
+ "wsUrl": CENTRIFUGO_WS_URL,
+ "token": "",
+ "channel": channel_name(channel_id or "lobby"),
+ }
+ now = int(time.time())
+ payload: dict[str, Any] = {
+ "sub": guest_id[:80],
+ "iat": now,
+ "exp": now + 60 * 60 * 12,
+ }
+ token = jwt.encode(payload, CENTRIFUGO_TOKEN_SECRET, algorithm="HS256")
+ if isinstance(token, bytes):
+ token = token.decode("utf-8")
+ return {
+ "ok": True,
+ "enabled": True,
+ "wsUrl": CENTRIFUGO_WS_URL,
+ "token": token,
+ "channel": channel_name(channel_id or "lobby"),
+ }
+
+
+async def _publish(channel_id: str, data: dict[str, Any]) -> bool:
+ if not CENTRIFUGO_ENABLED or not CENTRIFUGO_API_KEY:
+ return False
+ url = CENTRIFUGO_API_URL.rstrip("/") + "/publish"
+ body = {"channel": channel_name(channel_id), "data": data}
+ try:
+ res = await _client().post(
+ url,
+ headers={"X-API-Key": CENTRIFUGO_API_KEY, "Content-Type": "application/json"},
+ json=body,
+ )
+ if res.status_code >= 400:
+ log.warning("centrifugo publish %s: %s", res.status_code, res.text[:200])
+ return False
+ return True
+ except Exception as e: # pragma: no cover
+ log.warning("centrifugo publish failed: %s", e)
+ return False
+
+
+async def publish_chat_message(channel_id: str, message: dict[str, Any]) -> bool:
+ return await _publish(channel_id, {"type": "chat.message", "message": message})
+
+
+async def publish_chat_note(
+ channel_id: str,
+ *,
+ what: str,
+ seq: int,
+ guest_id: str,
+) -> bool:
+ """Tinode-like {note}: recv / read / kp (typing)."""
+ from hub_svc.im import note_event
+
+ return await _publish(channel_id, note_event(what, seq, guest_id))
+
+
+async def publish_live_event(channel_id: str, event: str, payload: dict[str, Any]) -> bool:
+ return await _publish(channel_id, {"type": f"live.{event}", **payload})
diff --git a/apps/api/services/hub_svc/remote_flags.py b/apps/api/services/hub_svc/remote_flags.py
new file mode 100644
index 0000000..042f8ba
--- /dev/null
+++ b/apps/api/services/hub_svc/remote_flags.py
@@ -0,0 +1,112 @@
+"""Read portal remote-config flags for hub_svc (avatar face gate, etc.)."""
+from __future__ import annotations
+
+import json
+import os
+import time
+from pathlib import Path
+from typing import Any
+
+_CACHE: dict[str, Any] = {"ts": 0.0, "flags": {}, "copy": {}, "raw": {}}
+_TTL_SEC = 2.0
+
+DEFAULT_HUB_TRIAL = {
+ "enabled": True,
+ "chatMessages": 1,
+ "dateViews": 5,
+ "coffeeBookings": 0,
+ "mapOpens": 3,
+}
+
+
+def _candidate_paths() -> list[Path]:
+ env = (os.getenv("NOMADR_REMOTE_CONFIG") or os.getenv("REMOTE_CONFIG_PATH") or "").strip()
+ out: list[Path] = []
+ if env:
+ out.append(Path(env))
+ # .com primary first, then .cn mirror
+ out.append(Path("/var/www/nomadro.com/data/remote-config.json"))
+ out.append(Path("/var/www/nomadro.cn/data/remote-config.json"))
+ here = Path(__file__).resolve()
+ # apps/api/services/hub_svc → repo root
+ for up in (4, 5, 3):
+ try:
+ root = here.parents[up]
+ except IndexError:
+ continue
+ out.append(root / "data" / "remote-config.json")
+ seen: set[str] = set()
+ uniq: list[Path] = []
+ for p in out:
+ k = str(p)
+ if k not in seen:
+ seen.add(k)
+ uniq.append(p)
+ return uniq
+
+
+def _load_remote() -> dict[str, Any]:
+ now = time.time()
+ if now - float(_CACHE.get("ts") or 0) < _TTL_SEC:
+ return {
+ "flags": dict(_CACHE.get("flags") or {}),
+ "copy": dict(_CACHE.get("copy") or {}),
+ }
+ for path in _candidate_paths():
+ try:
+ if not path.is_file():
+ continue
+ raw = json.loads(path.read_text(encoding="utf-8"))
+ if not isinstance(raw, dict):
+ continue
+ flags = raw.get("flags") if isinstance(raw.get("flags"), dict) else {}
+ copy = raw.get("copy") if isinstance(raw.get("copy"), dict) else {}
+ # Fallback: copy.hubFlags.features.avatarFaceCheck
+ if "hubAvatarFaceCheck" not in flags:
+ sf = copy.get("hubFlags") if isinstance(copy.get("hubFlags"), dict) else {}
+ feat = sf.get("features") if isinstance(sf.get("features"), dict) else {}
+ if "avatarFaceCheck" in feat:
+ flags = {**flags, "hubAvatarFaceCheck": bool(feat.get("avatarFaceCheck"))}
+ _CACHE["ts"] = now
+ _CACHE["flags"] = flags
+ _CACHE["copy"] = copy
+ _CACHE["raw"] = raw
+ return {"flags": dict(flags), "copy": dict(copy)}
+ except Exception:
+ continue
+ _CACHE["ts"] = now
+ _CACHE["flags"] = {}
+ _CACHE["copy"] = {}
+ return {"flags": {}, "copy": {}}
+
+
+def _load_flags() -> dict[str, Any]:
+ return _load_remote()["flags"]
+
+
+def hub_avatar_face_check_enabled() -> bool | None:
+ """Return True/False from remote-config, or None if unset (caller uses env)."""
+ flags = _load_flags()
+ if "hubAvatarFaceCheck" not in flags:
+ return None
+ return bool(flags.get("hubAvatarFaceCheck"))
+
+
+def hub_trial_limits() -> dict[str, Any]:
+ """Chat/date/coffee/map trial caps for unpaid guests."""
+ packed = _load_remote()
+ flags = packed["flags"]
+ copy = packed["copy"]
+ raw = copy.get("hubTrial") if isinstance(copy.get("hubTrial"), dict) else {}
+ out = dict(DEFAULT_HUB_TRIAL)
+ if "enabled" in raw:
+ out["enabled"] = bool(raw["enabled"])
+ if "hubTrialEnabled" in flags:
+ out["enabled"] = bool(flags.get("hubTrialEnabled"))
+ for k in ("chatMessages", "dateViews", "coffeeBookings", "mapOpens"):
+ if k in raw and raw[k] is not None:
+ try:
+ out[k] = max(0, int(raw[k]))
+ except (TypeError, ValueError):
+ pass
+ return out
diff --git a/apps/api/services/hub_svc/routers/__init__.py b/apps/api/services/hub_svc/routers/__init__.py
new file mode 100644
index 0000000..1ee3a07
--- /dev/null
+++ b/apps/api/services/hub_svc/routers/__init__.py
@@ -0,0 +1,10 @@
+from fastapi import APIRouter
+
+from .api import router as _api
+from .geo import router as _geo
+
+router = APIRouter()
+router.include_router(_api)
+router.include_router(_geo)
+
+__all__ = ["router"]
diff --git a/apps/api/services/hub_svc/routers/api.py b/apps/api/services/hub_svc/routers/api.py
new file mode 100644
index 0000000..edece05
--- /dev/null
+++ b/apps/api/services/hub_svc/routers/api.py
@@ -0,0 +1,1637 @@
+"""游民社区 API — 前缀 /api/hub/v1,与 /api/v1 社群隔离。"""
+from __future__ import annotations
+
+from pathlib import Path
+from typing import Any
+
+from fastapi import APIRouter, File, Form, Header, HTTPException, Query, Request, UploadFile
+from fastapi.responses import FileResponse
+from pydantic import BaseModel, Field
+from starlette.concurrency import run_in_threadpool
+
+from hub_svc import live, store
+from hub_svc.config import HUB_ENABLED, HUB_UPLOAD_MAX_BYTES
+from hub_svc.realtime import (
+ issue_connection_token,
+ publish_chat_message,
+ publish_chat_note,
+ publish_live_event,
+)
+
+router = APIRouter(tags=["social"])
+
+
+def _guest(
+ x_hub_guest_id: str | None,
+ guest_q: str | None = None,
+) -> str:
+ gid = (x_hub_guest_id or guest_q or "").strip()
+ if not gid or len(gid) > 80:
+ raise HTTPException(status_code=400, detail="missing X-Hub-Guest-Id")
+ return gid
+
+
+class ReplyToIn(BaseModel):
+ id: str = Field(min_length=1, max_length=80)
+ author: str = Field(default="游民", max_length=48)
+ text: str = Field(default="", max_length=240)
+ seq: int | None = Field(default=None, ge=0)
+
+
+class AttachmentIn(BaseModel):
+ id: str = Field(default="", max_length=80)
+ kind: str = Field(default="file", max_length=16)
+ url: str = Field(min_length=1, max_length=800)
+ name: str = Field(default="file", max_length=160)
+ mime: str = Field(default="application/octet-stream", max_length=120)
+ size: int = Field(default=0, ge=0, le=50 * 1024 * 1024)
+
+
+class MessageIn(BaseModel):
+ author: str = Field(default="游民", max_length=48)
+ text: str = Field(default="", max_length=2000)
+ clientId: str | None = Field(default=None, min_length=1, max_length=80)
+ replyTo: ReplyToIn | None = None
+ attachments: list[AttachmentIn] = Field(default_factory=list)
+ mentions: list[str] = Field(default_factory=list)
+
+
+class EditMessageIn(BaseModel):
+ text: str = Field(min_length=1, max_length=2000)
+
+
+class ReactIn(BaseModel):
+ emoji: str = Field(min_length=1, max_length=16)
+
+
+class PinIn(BaseModel):
+ pinned: bool = True
+
+
+class ReportIn(BaseModel):
+ reason: str = Field(default="", max_length=240)
+
+
+class PresenceIn(BaseModel):
+ nick: str = Field(default="游民", max_length=48)
+ city: str = Field(default="", max_length=64)
+ avatar: str = Field(default="", max_length=500)
+ softStatusSync: bool = False
+
+
+class HubPresenceIn(BaseModel):
+ """Global / city who's-online heartbeat (not tied to a chat channel)."""
+ nick: str = Field(default="游民", max_length=48)
+ city: str = Field(default="", max_length=64)
+ avatar: str = Field(default="", max_length=500)
+ softStatusSync: bool = True
+
+
+class NoteIn(BaseModel):
+ """Tinode {note}: recv / read / kp (typing keepalive)."""
+ what: str = Field(min_length=2, max_length=8)
+ seq: int = Field(default=0, ge=0)
+
+
+class ReviewIn(BaseModel):
+ author: str = Field(default="游民", max_length=48)
+ score: int = Field(default=5, ge=1, le=5)
+ text: str = Field(min_length=1, max_length=2000)
+ photoNote: str = Field(default="", max_length=200)
+
+
+class RosterIn(BaseModel):
+ name: str = Field(default="", max_length=64)
+ title: str = Field(default="", max_length=80)
+ city: str = Field(default="", max_length=64)
+ phone: str = Field(default="", max_length=32)
+ linktree: str = Field(default="", max_length=240)
+ skills: str = Field(default="", max_length=200)
+ bio: str = Field(default="", max_length=2000)
+ avatar: str = Field(default="", max_length=500)
+ gender: str = Field(default="", max_length=16)
+ relationship: str = Field(default="", max_length=32)
+ education: str = Field(default="", max_length=32)
+ graduation: str = Field(default="", max_length=32)
+ wechat: str = Field(default="", max_length=64)
+ intents: str = Field(default="", max_length=240)
+ availability: str = Field(default="", max_length=120)
+ status: str = Field(default="online", max_length=32)
+ lookingFor: str = Field(default="", max_length=200)
+ discoverable: bool | int | str = True
+ updatedAt: str = Field(default="", max_length=40)
+
+
+class FeedbackIn(BaseModel):
+ kind: str = Field(default="建议", max_length=8)
+ text: str = Field(min_length=1, max_length=4000)
+ contact: str = Field(default="", max_length=120)
+ images: list[str] = Field(default_factory=list)
+ meta: dict | None = None
+
+
+class JoinLeadIn(BaseModel):
+ email: str = Field(min_length=3, max_length=160)
+ stage: str = Field(default="email_submit", max_length=48)
+ name: str = Field(default="", max_length=64)
+ paid: str = Field(default="", max_length=8)
+ faceOk: str = Field(default="", max_length=8)
+ livenessStatus: str = Field(default="", max_length=24)
+ payload: dict | None = None
+ ua: str = Field(default="", max_length=240)
+
+
+class GigAppIn(BaseModel):
+ name: str = Field(min_length=1, max_length=64)
+ contact: str = Field(min_length=1, max_length=120)
+ note: str = Field(default="", max_length=2000)
+ resumeUrl: str = Field(default="", max_length=800)
+ resumeName: str = Field(default="", max_length=200)
+ requestId: str | None = Field(default=None, min_length=1, max_length=80)
+
+
+@router.get("/health")
+async def hub_health():
+ if not HUB_ENABLED:
+ return {"ok": False, "module": "hub", "enabled": False}
+ h = store.health()
+ from hub_svc.config import CENTRIFUGO_ENABLED
+ from hub_svc.contract import IM_FEATURES, IM_PROTOCOL
+
+ h["centrifugo"] = bool(CENTRIFUGO_ENABLED)
+ h["imProtocol"] = IM_PROTOCOL
+ h["imFeatures"] = list(IM_FEATURES)
+ h["uiAgnostic"] = True
+ return h
+
+
+@router.get("/features")
+async def hub_features_catalog():
+ """门户/后台可读的 Hub 超级能力目录(离线客户端也可硬编码兜底)。"""
+ return {
+ "ok": True,
+ "module": "hub",
+ "features": [
+ {"id": "commandPalette", "title": "⌘K 快速跳转", "surface": "shell"},
+ {"id": "shortcutsHelp", "title": "快捷键说明", "surface": "shell"},
+ {"id": "offlineBanner", "title": "离线提示条", "surface": "shell"},
+ {"id": "announceDismiss", "title": "公告可关闭", "surface": "shell"},
+ {"id": "todayActions", "title": "今日行动清单", "surface": "home"},
+ {"id": "intentQuiz", "title": "三秒意图选择", "surface": "home"},
+ {"id": "livePulse", "title": "在线心跳条", "surface": "home"},
+ {"id": "newJoiners", "title": "刚刚在线", "surface": "home"},
+ {"id": "tonightBookmark", "title": "语音厅收藏", "surface": "home"},
+ {"id": "jumpRail", "title": "快捷芯片", "surface": "home"},
+ {"id": "momentum", "title": "社区温度", "surface": "home"},
+ {"id": "featuredCity", "title": "本周城市", "surface": "home"},
+ {"id": "recentRail", "title": "最近去过", "surface": "home"},
+ {"id": "welcomeBack", "title": "回访连续天数", "surface": "home"},
+ {"id": "tagCloud", "title": "热门标签云", "surface": "home"},
+ {"id": "shareInvite", "title": "复制邀请链接", "surface": "home"},
+ {"id": "digest", "title": "本周摘要偏好", "surface": "home"},
+ {"id": "focusMode", "title": "专注模式", "surface": "home"},
+ {"id": "pulseSound", "title": "在线提示音", "surface": "home"},
+ {"id": "muteSections", "title": "本机隐藏模块", "surface": "home"},
+ {"id": "belowWays", "title": "连接方式以下模块总开关", "surface": "home"},
+ {"id": "waysLiveBadge", "title": "入口卡实时角标", "surface": "home"},
+ {"id": "wayDestChrome", "title": "五入口落地页共用顶栏", "surface": "ways"},
+ {"id": "meetupNextCard", "title": "语音厅下一场置顶", "surface": "meetup"},
+ {"id": "meetupSoonFilter", "title": "语音厅即将筛选", "surface": "meetup"},
+ {"id": "createHubRail", "title": "共创页招聘/技能跳转", "surface": "ebook"},
+ {"id": "placesWayChrome", "title": "城市页入口导航", "surface": "places"},
+ {"id": "dateWayChrome", "title": "约会页入口导航", "surface": "date"},
+ {"id": "chatWayChrome", "title": "聊天页入口导航", "surface": "chat"},
+ {"id": "navFlags", "title": "远程导航开关", "surface": "shell"},
+ {"id": "hubLive", "title": "hubLive 实时开关", "surface": "flags"},
+ {"id": "hubCnOnly", "title": "中文受众锁(屏蔽多语言/全球化 UI)", "surface": "flags"},
+ ],
+ }
+
+
+@router.get("/ways-meta")
+async def hub_ways_meta():
+ """首页五入口角标摘要;门户以本地 catalog 为主,此接口作在线增强。"""
+ meetups: list = []
+ gigs: list = []
+ try:
+ from hub_svc import store as hub_store
+
+ if hasattr(hub_store, "list_meetups"):
+ meetups = list(hub_store.list_meetups() or [])
+ if hasattr(hub_store, "list_gigs"):
+ gigs = list(hub_store.list_gigs() or [])
+ except Exception:
+ meetups, gigs = [], []
+ next_meetup = meetups[0] if meetups else None
+ return {
+ "ok": True,
+ "meetupCount": len(meetups),
+ "gigCount": len(gigs),
+ "nextMeetup": next_meetup,
+ "offlineFallback": not bool(meetups or gigs),
+ }
+
+
+@router.get("/realtime/token")
+async def realtime_token(
+ channel_id: str = Query(default="lobby"),
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ peer = _guest(x_hub_guest_id, guest)
+ return issue_connection_token(peer, channel_id)
+
+
+@router.get("/channels/{channel_id}/desc")
+def get_channel_desc(
+ channel_id: str,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ """Tinode-like topic desc: seq + recv/read/unread for current peer."""
+ peer = None
+ try:
+ peer = _guest(x_hub_guest_id, guest)
+ except HTTPException:
+ peer = None
+ return store.channel_desc(channel_id, peer)
+
+
+@router.get("/channels/{channel_id}/messages")
+def get_messages(
+ channel_id: str,
+ limit: int = 100,
+ since: int | None = Query(default=None, ge=0),
+ before: int | None = Query(default=None, ge=0),
+ q: str | None = Query(default=None, max_length=80),
+):
+ store.init_db()
+ items = store.list_messages(
+ channel_id, limit, since=since, before=before, q=q
+ )
+ return {"items": items, "seq": store.channel_seq(channel_id)}
+
+
+async def _publish_msg(channel_id: str, saved: dict[str, Any]) -> None:
+ try:
+ await publish_chat_message(channel_id, saved)
+ except Exception:
+ pass
+
+
+@router.post("/channels/{channel_id}/messages")
+async def post_message(
+ channel_id: str,
+ body: MessageIn,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ peer = _guest(x_hub_guest_id, guest)
+ if not body.text.strip() and not body.attachments:
+ raise HTTPException(status_code=400, detail="empty message")
+
+ def persist():
+ store.init_db()
+ return store.add_message(
+ channel_id,
+ body.author,
+ body.text,
+ peer,
+ body.clientId,
+ reply_to=body.replyTo.model_dump() if body.replyTo else None,
+ attachments=[a.model_dump() for a in body.attachments],
+ mentions=body.mentions,
+ )
+
+ try:
+ saved = await run_in_threadpool(persist)
+ except ValueError as exc:
+ detail = str(exc)
+ if "过快" in detail:
+ code = 429
+ elif "trial exhausted" in detail:
+ code = 402
+ elif "empty" in detail:
+ code = 400
+ else:
+ code = 409
+ raise HTTPException(status_code=code, detail=detail) from exc
+ await _publish_msg(channel_id, saved)
+ return saved
+
+
+@router.patch("/channels/{channel_id}/messages/{msg_id}")
+async def patch_message(
+ channel_id: str,
+ msg_id: str,
+ body: EditMessageIn,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ peer = _guest(x_hub_guest_id, guest)
+
+ def persist():
+ store.init_db()
+ return store.edit_message(channel_id, msg_id, peer, body.text)
+
+ try:
+ saved = await run_in_threadpool(persist)
+ except ValueError as exc:
+ detail = str(exc)
+ code = 403 if "not your" in detail else 404 if "not found" in detail else 400
+ raise HTTPException(status_code=code, detail=detail) from exc
+ await _publish_msg(channel_id, saved)
+ return saved
+
+
+@router.post("/channels/{channel_id}/messages/{msg_id}/recall")
+async def recall_message(
+ channel_id: str,
+ msg_id: str,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ peer = _guest(x_hub_guest_id, guest)
+
+ def persist():
+ store.init_db()
+ return store.recall_message(channel_id, msg_id, peer)
+
+ try:
+ saved = await run_in_threadpool(persist)
+ except ValueError as exc:
+ detail = str(exc)
+ code = 403 if "not your" in detail else 404 if "not found" in detail else 400
+ raise HTTPException(status_code=code, detail=detail) from exc
+ await _publish_msg(channel_id, saved)
+ return saved
+
+
+@router.post("/channels/{channel_id}/messages/{msg_id}/react")
+async def react_message(
+ channel_id: str,
+ msg_id: str,
+ body: ReactIn,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ peer = _guest(x_hub_guest_id, guest)
+
+ def persist():
+ store.init_db()
+ return store.react_message(channel_id, msg_id, peer, body.emoji)
+
+ try:
+ saved = await run_in_threadpool(persist)
+ except ValueError as exc:
+ detail = str(exc)
+ code = 404 if "not found" in detail else 400
+ raise HTTPException(status_code=code, detail=detail) from exc
+ await _publish_msg(channel_id, saved)
+ return saved
+
+
+@router.post("/channels/{channel_id}/messages/{msg_id}/pin")
+async def pin_message(
+ channel_id: str,
+ msg_id: str,
+ body: PinIn,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ peer = _guest(x_hub_guest_id, guest)
+
+ def persist():
+ store.init_db()
+ return store.pin_message(channel_id, msg_id, peer, body.pinned)
+
+ try:
+ saved = await run_in_threadpool(persist)
+ except ValueError as exc:
+ detail = str(exc)
+ code = 404 if "not found" in detail else 400
+ raise HTTPException(status_code=code, detail=detail) from exc
+ await _publish_msg(channel_id, saved)
+ return saved
+
+
+@router.post("/channels/{channel_id}/messages/{msg_id}/report")
+async def report_message(
+ channel_id: str,
+ msg_id: str,
+ body: ReportIn,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ peer = _guest(x_hub_guest_id, guest)
+
+ def persist():
+ store.init_db()
+ return store.report_message(channel_id, msg_id, peer, body.reason)
+
+ try:
+ return await run_in_threadpool(persist)
+ except ValueError as exc:
+ detail = str(exc)
+ code = 404 if "not found" in detail else 400
+ raise HTTPException(status_code=code, detail=detail) from exc
+
+
+@router.post("/channels/{channel_id}/presence")
+async def post_presence(
+ channel_id: str,
+ body: PresenceIn,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ peer = _guest(x_hub_guest_id, guest)
+ return store.touch_presence(
+ channel_id,
+ peer,
+ body.nick,
+ city=body.city,
+ avatar=body.avatar,
+ soft_status_sync=bool(body.softStatusSync),
+ )
+
+
+@router.post("/roster/presence")
+async def post_roster_presence(
+ body: HubPresenceIn,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ """Global social presence heartbeat — powers「谁在线」strip + city count."""
+ peer = _guest(x_hub_guest_id, guest)
+ return store.touch_presence(
+ store.HUB_GLOBAL_ROOM,
+ peer,
+ body.nick,
+ city=body.city,
+ avatar=body.avatar,
+ soft_status_sync=bool(body.softStatusSync),
+ )
+
+
+@router.get("/roster/online")
+def get_roster_online(
+ city: str = Query(default=""),
+ limit: int = Query(default=48, ge=1, le=64),
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ """Who's online now (TTL presence). Offline clients get empty + UI fallback."""
+ _ = _guest(x_hub_guest_id, guest)
+ return store.list_social_online(city=(city or "").strip(), limit=limit)
+
+
+@router.post("/upload")
+async def upload_media(
+ file: UploadFile = File(...),
+ purpose: str = Form(default="avatar"),
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ """Guest-friendly upload → SeaweedFS S3 (fallback local).
+
+ - purpose=avatar|roster|profile: image + optional face gate
+ - purpose=resume|cv|gig-resume: PDF/DOC/DOCX/图片简历,跳过人脸检测
+ """
+ peer = _guest(x_hub_guest_id, guest)
+ purpose_norm = (purpose or "avatar")[:40]
+ is_resume = purpose_norm.lower() in {"resume", "cv", "gig-resume"}
+ ctype = (file.content_type or "").lower()
+ raw = await file.read()
+ if not raw:
+ raise HTTPException(status_code=400, detail="空文件")
+
+ if is_resume:
+ name = (file.filename or "resume.pdf").strip() or "resume.pdf"
+ suffix = ("." + name.rsplit(".", 1)[-1].lower()) if "." in name else ""
+ ok_suffix = {".pdf", ".doc", ".docx", ".txt", ".rtf", ".png", ".jpg", ".jpeg", ".webp"}
+ if suffix and suffix not in ok_suffix and not ctype.startswith("image/"):
+ raise HTTPException(
+ status_code=400,
+ detail="简历仅支持 PDF / Word / 图片",
+ )
+ max_bytes = min(HUB_UPLOAD_MAX_BYTES, 10 * 1024 * 1024)
+
+ def persist_resume():
+ from hub_svc.s3_upload import upload_bytes
+
+ return upload_bytes(
+ raw,
+ filename=name,
+ content_type=file.content_type or "application/octet-stream",
+ purpose="resume",
+ guest_id=peer,
+ max_size=max_bytes,
+ )
+
+ try:
+ result = await run_in_threadpool(persist_resume)
+ except ValueError as exc:
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+ except Exception as exc:
+ raise HTTPException(status_code=503, detail=f"上传失败: {exc}") from exc
+ return {
+ "ok": True,
+ "success": True,
+ "url": result.url,
+ "object_key": result.object_key,
+ "size": result.size,
+ "content_type": result.content_type,
+ "storage": result.storage,
+ "name": name[:200],
+ "faceOk": False,
+ "faceCheckEnabled": False,
+ "livenessRequired": False,
+ }
+
+ if not ctype.startswith("image/"):
+ raise HTTPException(status_code=400, detail="仅支持图片")
+ max_avatar = min(HUB_UPLOAD_MAX_BYTES, 8 * 1024 * 1024)
+
+ def persist():
+ from hub_svc.face_check import (
+ assert_avatar_has_face,
+ check_face,
+ face_check_enabled,
+ )
+ from hub_svc.s3_upload import upload_bytes
+
+ gate_on = face_check_enabled(purpose_norm)
+ # Always soft-detect so dating can hide no-face avatars.
+ # Gate on → hard reject; gate off → still upload but face_ok=false.
+ if gate_on:
+ face_meta = assert_avatar_has_face(raw, require_liveness=False)
+ else:
+ face_meta = check_face(raw, require_liveness=False)
+
+ uploaded = upload_bytes(
+ raw,
+ filename=file.filename or "avatar.jpg",
+ content_type=file.content_type or "image/jpeg",
+ purpose=purpose_norm,
+ guest_id=peer,
+ max_size=max_avatar,
+ )
+ has_face = bool(face_meta and face_meta.ok)
+ # Only avatar/roster/profile photos belong on the face roster.
+ if purpose_norm in {"avatar", "roster", "profile"}:
+ try:
+ store.mark_face_photo(peer, uploaded.url, face_ok=has_face)
+ except Exception as roster_exc: # pragma: no cover
+ import logging
+
+ logging.getLogger("hub_svc.upload").warning(
+ "mark_face_photo failed for %s: %s", peer, roster_exc
+ )
+ return uploaded, face_meta, gate_on, has_face
+
+ try:
+ result, face_meta, face_gate_on, has_face = await run_in_threadpool(persist)
+ except ValueError as exc:
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+ except Exception as exc:
+ raise HTTPException(status_code=503, detail=f"上传失败: {exc}") from exc
+
+ payload = {
+ "ok": True,
+ "success": True,
+ "url": result.url,
+ "object_key": result.object_key,
+ "size": result.size,
+ "content_type": result.content_type,
+ "storage": result.storage,
+ # Dating feed uses this — only true when detector saw a face.
+ "faceOk": has_face,
+ "faceCheckEnabled": face_gate_on,
+ "livenessRequired": True,
+ }
+ if face_meta is not None:
+ face_payload = {
+ "ok": face_meta.ok,
+ "faces": face_meta.faces,
+ "engine": face_meta.engine,
+ "require_liveness": True,
+ }
+ if face_meta.is_live is not None:
+ face_payload["is_live"] = face_meta.is_live
+ if face_meta.live_score is not None:
+ face_payload["live_score"] = face_meta.live_score
+ payload["face"] = face_payload
+ return payload
+
+
+@router.post("/avatar/challenge")
+async def avatar_pose_challenge(
+ front: UploadFile = File(...),
+ turn: UploadFile = File(...),
+ video: UploadFile | None = File(default=None),
+ email: str | None = Form(default=None),
+ x_hub_guest_id: str | None = Header(default=None),
+ x_social_email: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ """Live selfie: front + turn frames + optional full camera recording for audit."""
+ peer = _guest(x_hub_guest_id, guest)
+ email_n = (email or x_social_email or "").strip().lower()[:160]
+ front_raw = await front.read()
+ turn_raw = await turn.read()
+ video_raw = await video.read() if video is not None else b""
+ if not front_raw or not turn_raw:
+ raise HTTPException(status_code=400, detail="空文件")
+ max_avatar = min(HUB_UPLOAD_MAX_BYTES, 8 * 1024 * 1024)
+ max_video = min(HUB_UPLOAD_MAX_BYTES, 40 * 1024 * 1024)
+ if len(front_raw) > max_avatar or len(turn_raw) > max_avatar:
+ raise HTTPException(status_code=400, detail="图片过大")
+ if video_raw and len(video_raw) > max_video:
+ raise HTTPException(status_code=400, detail="录制视频过大")
+
+ def work():
+ from hub_svc.face_check import verify_pose_challenge
+ from hub_svc.s3_upload import upload_bytes
+
+ challenge = verify_pose_challenge(front_raw, turn_raw)
+ if not challenge.ok:
+ raise ValueError(challenge.detail or "真人核验失败")
+ # Live frames are audit-only — never purpose=avatar
+ front_up = upload_bytes(
+ front_raw,
+ filename=front.filename or "liveness-front.jpg",
+ content_type=front.content_type or "image/jpeg",
+ purpose="liveness-front",
+ guest_id=peer,
+ max_size=max_avatar,
+ )
+ turn_up = upload_bytes(
+ turn_raw,
+ filename=turn.filename or "liveness-turn.jpg",
+ content_type=turn.content_type or "image/jpeg",
+ purpose="liveness-turn",
+ guest_id=peer,
+ max_size=max_avatar,
+ )
+ video_url = ""
+ video_size = 0
+ if video_raw:
+ vname = (video.filename if video else None) or "liveness.webm"
+ vctype = (video.content_type if video else None) or "video/webm"
+ video_up = upload_bytes(
+ video_raw,
+ filename=vname,
+ content_type=vctype,
+ purpose="liveness-video",
+ guest_id=peer,
+ max_size=max_video,
+ )
+ video_url = video_up.url
+ video_size = video_up.size
+ audit = store.save_liveness_audit(
+ peer,
+ front_url=front_up.url,
+ turn_url=turn_up.url,
+ video_url=video_url,
+ video_size=video_size,
+ similarity=challenge.similarity,
+ yaw_delta=challenge.yaw_delta,
+ email=email_n,
+ meta={
+ "front_engine": challenge.front.engine if challenge.front else "",
+ "turn_engine": challenge.turn.engine if challenge.turn else "",
+ "has_video": bool(video_url),
+ "email": email_n,
+ },
+ )
+ roster = store.get_roster(peer) or {}
+ return front_up, turn_up, video_url, video_size, challenge, audit, roster
+
+ try:
+ front_up, turn_up, video_url, video_size, challenge, audit, roster = (
+ await run_in_threadpool(work)
+ )
+ except ValueError as exc:
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+ except Exception as exc:
+ raise HTTPException(status_code=503, detail=f"核验失败: {exc}") from exc
+
+ # Do not return live frame as avatar url — keep existing album/selfie avatar
+ avatar_url = (roster.get("avatar") or "").strip()
+ return {
+ "ok": True,
+ "success": True,
+ "url": avatar_url,
+ "avatarUrl": avatar_url,
+ "livenessStatus": "verified",
+ "faceOk": True,
+ "videoUrl": video_url,
+ "videoSize": video_size,
+ "frontUrl": front_up.url,
+ "turnUrl": turn_up.url,
+ "auditId": audit.get("id"),
+ "challenge": {
+ "similarity": challenge.similarity,
+ "yaw_delta": challenge.yaw_delta,
+ "front": {
+ "faces": challenge.front.faces if challenge.front else 0,
+ "engine": challenge.front.engine if challenge.front else "",
+ "is_live": challenge.front.is_live if challenge.front else None,
+ },
+ "turn": {
+ "faces": challenge.turn.faces if challenge.turn else 0,
+ "engine": challenge.turn.engine if challenge.turn else "",
+ "is_live": challenge.turn.is_live if challenge.turn else None,
+ },
+ },
+ }
+
+
+@router.get("/files/avatar/{name}")
+def get_local_avatar(name: str):
+ """Serve locally-fallback avatar files when S3 is unavailable."""
+ from hub_svc.config import HUB_UPLOAD_DIR
+
+ safe = Path(name).name
+ if safe != name or ".." in name:
+ raise HTTPException(status_code=400, detail="非法文件名")
+ path = HUB_UPLOAD_DIR / "avatars" / safe
+ if not path.is_file():
+ raise HTTPException(status_code=404, detail="not found")
+ return FileResponse(path)
+
+
+@router.get("/files/liveness/{name}")
+def get_local_liveness(name: str):
+ """Serve locally-stored liveness audit videos / frames."""
+ from hub_svc.config import HUB_UPLOAD_DIR
+
+ safe = Path(name).name
+ if safe != name or ".." in name:
+ raise HTTPException(status_code=400, detail="非法文件名")
+ path = HUB_UPLOAD_DIR / "liveness" / safe
+ if not path.is_file():
+ raise HTTPException(status_code=404, detail="not found")
+ return FileResponse(path)
+
+
+@router.get("/files/resume/{name}")
+def get_local_resume(name: str):
+ """Serve locally-fallback resume attachments when S3 is unavailable."""
+ from hub_svc.config import HUB_UPLOAD_DIR
+
+ safe = Path(name).name
+ if safe != name or ".." in name:
+ raise HTTPException(status_code=400, detail="非法文件名")
+ path = HUB_UPLOAD_DIR / "resumes" / safe
+ if not path.is_file():
+ raise HTTPException(status_code=404, detail="not found")
+ return FileResponse(path)
+
+
+@router.get("/liveness/audits")
+def liveness_audits(
+ status: str = Query(default=""),
+ limit: int = Query(default=40, ge=1, le=200),
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ """Admin-oriented list of liveness recordings (guest header still required)."""
+ _guest(x_hub_guest_id)
+ store.init_db()
+ return {
+ "ok": True,
+ "items": store.list_liveness_audits(status=(status or "").strip(), limit=limit),
+ }
+
+
+class RoomArchiveEventIn(BaseModel):
+ sessionId: str = Field(min_length=4, max_length=80)
+ channelId: str = Field(default="meetup-live", max_length=80)
+ roomId: str = Field(default="", max_length=120)
+ status: str = Field(default="pending", max_length=24)
+ name: str = Field(default="", max_length=160)
+ mime: str = Field(default="video/webm", max_length=120)
+ size: int = Field(default=0, ge=0)
+ path: str = Field(default="", max_length=800)
+ error: str = Field(default="", max_length=240)
+ seq: int = Field(default=0, ge=0)
+ durationSec: int = Field(default=0, ge=0)
+ startedAt: str = Field(default="", max_length=40)
+ nick: str = Field(default="", max_length=64)
+ email: str = Field(default="", max_length=120)
+
+
+@router.post("/room-archives/events")
+async def room_archive_event(
+ body: RoomArchiveEventIn,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ """语音厅埋点:进厅即落库,后台立刻出「待上传/上传中/已上传」。"""
+ peer = _guest(x_hub_guest_id, guest)
+
+ def persist():
+ store.init_db()
+ return store.upsert_room_archive_event(
+ session_id=body.sessionId,
+ channel_id=body.channelId or "meetup-live",
+ guest_id=peer,
+ room_id=body.roomId,
+ status=body.status,
+ name=body.name,
+ mime=body.mime,
+ size=body.size,
+ path=body.path,
+ error=body.error,
+ seq=body.seq,
+ duration_sec=body.durationSec,
+ started_at=body.startedAt,
+ nick=body.nick,
+ email=body.email,
+ )
+
+ try:
+ return await run_in_threadpool(persist)
+ except ValueError as exc:
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+ except Exception as exc:
+ raise HTTPException(status_code=503, detail=f"room archive event failed: {exc}") from exc
+
+
+@router.post("/channels/{channel_id}/upload")
+async def upload_file(
+ channel_id: str,
+ file: UploadFile = File(...),
+ kind: str = Form(default="file"),
+ session_id: str = Form(default=""),
+ session_id_q: str | None = Query(default=None, alias="session_id"),
+ kind_q: str | None = Query(default=None, alias="kind"),
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ peer = _guest(x_hub_guest_id, guest)
+ raw = await file.read()
+ if not raw:
+ raise HTTPException(status_code=400, detail="empty file")
+ if len(raw) > HUB_UPLOAD_MAX_BYTES:
+ raise HTTPException(status_code=413, detail="file too large")
+ mime = file.content_type or "application/octet-stream"
+ # Form 丢字段时用 query 兜底(本地 Next rewrite → 线上 API 曾丢 session_id)
+ kind = (kind or kind_q or "file").strip() or "file"
+ guessed = kind
+ if guessed in {"room-archive", "meetup-archive"}:
+ guessed = "video"
+ if guessed == "file":
+ if mime.startswith("image/"):
+ guessed = "image"
+ elif mime.startswith("video/"):
+ guessed = "video"
+ elif mime.startswith("audio/"):
+ guessed = "audio"
+
+ sid = ((session_id or session_id_q or "").strip())[:80]
+
+ # 语音/视频厅静默存档 → SeaweedFS S3;元数据 path 写公网 URL
+ if kind in {"room-archive", "meetup-archive"} or (
+ guessed == "video" and (file.filename or "").startswith("room-")
+ ):
+ # 无 session 时:挂到该 guest 最近一条未完成的 room-archive,避免孤儿「已上传」
+ if not sid:
+ try:
+ store.init_db()
+ sid = store.find_open_room_archive_session(
+ guest_id=peer, channel_id=channel_id, filename=file.filename or ""
+ ) or ""
+ except Exception:
+ sid = ""
+
+ if sid:
+ try:
+ store.init_db()
+ store.upsert_room_archive_event(
+ session_id=sid,
+ channel_id=channel_id,
+ guest_id=peer,
+ status="uploading",
+ name=file.filename or "room-archive.webm",
+ mime=mime if mime.startswith("video/") else "video/webm",
+ size=len(raw),
+ )
+ except Exception:
+ pass
+
+ def persist_s3():
+ from hub_svc.s3_upload import upload_bytes
+
+ up = upload_bytes(
+ raw,
+ filename=file.filename or f"room-{channel_id}.webm",
+ content_type=mime if mime.startswith("video/") else "video/webm",
+ purpose="room-archive",
+ guest_id=peer,
+ max_size=HUB_UPLOAD_MAX_BYTES,
+ )
+ store.init_db()
+ file_id = sid or f"file_{int(__import__('time').time() * 1000)}_{peer[:8]}"
+ return store.upsert_room_archive_event(
+ session_id=file_id,
+ channel_id=channel_id,
+ guest_id=peer,
+ status="uploaded",
+ name=file.filename or "room-archive.webm",
+ mime=up.content_type,
+ size=up.size,
+ path=up.url,
+ ) | {
+ "id": file_id,
+ "kind": "room-archive",
+ "mime": up.content_type,
+ "size": up.size,
+ "url": up.url,
+ "storage": up.storage,
+ "object_key": up.object_key,
+ }
+
+ try:
+ return await run_in_threadpool(persist_s3)
+ except ValueError as exc:
+ if sid:
+ try:
+ store.upsert_room_archive_event(
+ session_id=sid,
+ channel_id=channel_id,
+ guest_id=peer,
+ status="failed",
+ error=str(exc)[:240],
+ )
+ except Exception:
+ pass
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+ except Exception:
+ pass # fall through to local persist
+
+ def persist():
+ store.init_db()
+ saved = store.save_upload(
+ channel_id,
+ peer,
+ kind=guessed,
+ name=file.filename or "file",
+ mime=mime,
+ data=raw,
+ )
+ if sid or kind in {"room-archive", "meetup-archive"} or (
+ file.filename or ""
+ ).startswith("room-"):
+ file_id = sid or str(saved.get("id") or "")
+ if file_id:
+ return store.upsert_room_archive_event(
+ session_id=file_id,
+ channel_id=channel_id,
+ guest_id=peer,
+ status="uploaded",
+ name=file.filename or "room-archive.webm",
+ mime=mime,
+ size=len(raw),
+ path=str(saved.get("url") or saved.get("path") or ""),
+ ) | saved
+ return saved
+
+ try:
+ return await run_in_threadpool(persist)
+ except ValueError as exc:
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+
+
+@router.get("/files/{file_id}")
+def get_file(file_id: str):
+ store.init_db()
+ meta = store.get_file(file_id)
+ if not meta:
+ raise HTTPException(status_code=404, detail="file not found")
+ stored = str(meta.get("path") or "")
+ if stored.startswith("http://") or stored.startswith("https://"):
+ from fastapi.responses import RedirectResponse
+
+ return RedirectResponse(stored, status_code=302)
+ path = Path(stored)
+ if not path.is_file():
+ raise HTTPException(status_code=404, detail="file missing")
+ return FileResponse(
+ path,
+ media_type=meta["mime"],
+ filename=meta["name"],
+ )
+
+
+@router.post("/channels/{channel_id}/notes")
+async def post_note(
+ channel_id: str,
+ body: NoteIn,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ """Tinode {note}: recv/read persist; kp (typing) is fan-out only."""
+ peer = _guest(x_hub_guest_id, guest)
+ what = body.what.strip().lower()
+ if what == "kp":
+ try:
+ await publish_chat_note(channel_id, what="kp", seq=0, guest_id=peer)
+ except Exception:
+ pass
+ return {"ok": True, "what": "kp"}
+ if what not in {"recv", "read"}:
+ raise HTTPException(status_code=400, detail="what must be recv|read|kp")
+ try:
+ saved = await run_in_threadpool(
+ lambda: store.set_note(channel_id, peer, what, body.seq)
+ )
+ except ValueError as exc:
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+ try:
+ await publish_chat_note(
+ channel_id, what=what, seq=saved["seq"], guest_id=peer
+ )
+ except Exception:
+ pass
+ return saved
+
+
+@router.get("/cafes/{cafe_id}/reviews")
+def get_reviews(cafe_id: str, limit: int = 50):
+ store.init_db()
+ return {"items": store.list_reviews(cafe_id, limit)}
+
+
+@router.post("/cafes/{cafe_id}/reviews")
+def post_review(
+ cafe_id: str,
+ body: ReviewIn,
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ return store.add_review(
+ cafe_id,
+ body.author,
+ body.score,
+ body.text,
+ body.photoNote,
+ guest,
+ )
+
+
+@router.get("/roster/me")
+def get_my_roster(x_hub_guest_id: str | None = Header(default=None)):
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ return {"item": store.get_roster(guest)}
+
+
+@router.get("/roster/discovery")
+def roster_discovery(
+ city: str = Query(default=""),
+ limit: int = Query(default=48, ge=1, le=100),
+ require_face: bool = Query(default=True, alias="requireFace"),
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ """Public discovery feed: same-city → online → tag match (no phone/wechat).
+
+ requireFace=1 for 约会/dating — hide profiles whose avatar has no face.
+ """
+ peer = _guest(x_hub_guest_id, guest)
+ store.init_db()
+ items = store.list_discovery_roster(
+ viewer_guest_id=peer,
+ city=(city or "").strip(),
+ limit=limit,
+ exclude_self=True,
+ require_face=bool(require_face),
+ )
+ viewer = store.get_roster(peer)
+ return {
+ "ok": True,
+ "viewerCity": (viewer or {}).get("city") or "",
+ "items": items,
+ "count": len(items),
+ "requireFace": bool(require_face),
+ }
+
+
+@router.put("/roster/me")
+def put_my_roster(
+ body: RosterIn,
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ row = store.upsert_roster(guest, body.model_dump())
+ onboarding = None
+ if row.get("isFirstProfile"):
+ try:
+ from hub_svc.onboarding import fire_join_onboarding
+
+ recs = store.city_recommendations(guest, limit=3)
+ onboarding = fire_join_onboarding(
+ guest_id=guest,
+ name=str(row.get("name") or ""),
+ city=str(row.get("city") or ""),
+ recs=recs,
+ )
+ except Exception as exc: # noqa: BLE001 — never block profile save
+ onboarding = {"ok": False, "error": str(exc)[:160]}
+ # Same-city online ping (best-effort, capped)
+ try:
+ status = str(row.get("status") or "")
+ city = str(row.get("city") or "").strip()
+ if city and status in {"online", "here", "available"}:
+ from hub_svc.notify_bridge import notify_city_online
+
+ peers = store.city_recommendations(guest, limit=3)
+ for p in peers:
+ pid = str(p.get("guestId") or p.get("id") or "")
+ if pid and pid != guest:
+ notify_city_online(pid, city, str(row.get("name") or "游民"))
+ except Exception:
+ pass
+ out = {k: v for k, v in row.items() if k != "isFirstProfile"}
+ if onboarding is not None:
+ out["onboarding"] = onboarding
+ return out
+
+
+@router.post("/feedback")
+def post_feedback(
+ body: FeedbackIn,
+ x_hub_guest_id: str | None = Header(default=None),
+ x_social_email: str | None = Header(default=None),
+ user_agent: str | None = Header(default=None, alias="User-Agent"),
+):
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ meta = dict(body.meta) if isinstance(body.meta, dict) else {}
+ email = (x_social_email or "").strip()[:160]
+ if email and not meta.get("email"):
+ meta["email"] = email
+ if user_agent and "serverUserAgent" not in meta:
+ meta["serverUserAgent"] = (user_agent or "")[:400]
+ try:
+ return store.add_feedback(
+ body.kind,
+ body.text,
+ body.contact,
+ guest,
+ images=list(body.images or []),
+ meta=meta,
+ )
+ except ValueError as exc:
+ detail = str(exc)
+ code = 429 if "最多" in detail else 400
+ raise HTTPException(status_code=code, detail=detail) from exc
+
+
+@router.post("/join/leads")
+def post_join_lead(
+ request: Request,
+ body: JoinLeadIn,
+ x_hub_guest_id: str | None = Header(default=None),
+ user_agent: str | None = Header(default=None, alias="User-Agent"),
+ x_forwarded_for: str | None = Header(default=None, alias="X-Forwarded-For"),
+):
+ """Test-phase: archive email+click (and later funnel stages) for admin."""
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ client_ip = ""
+ if x_forwarded_for:
+ client_ip = x_forwarded_for.split(",")[0].strip()
+ elif request.client:
+ client_ip = request.client.host or ""
+ try:
+ return store.upsert_join_lead(
+ email=body.email,
+ guest_id=guest,
+ stage=body.stage or "email_submit",
+ name=body.name,
+ payload=body.payload if isinstance(body.payload, dict) else {},
+ ua=(body.ua or user_agent or "")[:240],
+ paid=body.paid,
+ face_ok=body.faceOk,
+ liveness_status=body.livenessStatus,
+ client_ip=client_ip,
+ )
+ except ValueError as exc:
+ detail = str(exc)
+ code = 403 if "封禁" in detail else 400
+ raise HTTPException(status_code=code, detail=detail) from exc
+ except Exception as exc:
+ raise HTTPException(status_code=503, detail=f"存档失败: {exc}") from exc
+
+
+@router.post("/gigs/{gig_id}/apply")
+def post_gig_apply(
+ gig_id: str,
+ body: GigAppIn,
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ guest = _guest(x_hub_guest_id)
+ if not body.name.strip() or not body.contact.strip():
+ raise HTTPException(status_code=400, detail="请填写称呼和联系方式")
+ store.init_db()
+ try:
+ return store.add_gig_app(
+ gig_id,
+ body.name,
+ body.contact,
+ body.note,
+ guest,
+ body.requestId,
+ resume_url=body.resumeUrl,
+ resume_name=body.resumeName,
+ )
+ except ValueError as exc:
+ raise HTTPException(status_code=409, detail=str(exc)) from exc
+
+
+class LiveJoinIn(BaseModel):
+ nick: str = Field(default="游民", max_length=32)
+
+
+@router.post("/live/rooms/{room_id}/join")
+async def live_join(
+ room_id: str,
+ body: LiveJoinIn,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None, alias="guest"),
+):
+ """微信原生 LivePusher/LivePlayer 进厅:下发 RTMP 推流 + FLV 拉流。"""
+ peer = _guest(x_hub_guest_id, guest)
+ try:
+ payload = live.join_room(room_id, peer, body.nick)
+ except ValueError as e:
+ raise HTTPException(status_code=400, detail=str(e)) from e
+ try:
+ await publish_live_event(
+ payload["channelId"],
+ "peer_join",
+ {
+ "roomId": payload["roomId"],
+ "peer": {
+ "peerId": payload["peerId"],
+ "nick": payload["nick"],
+ "playUrl": payload["playUrl"],
+ "stream": payload["stream"],
+ },
+ },
+ )
+ except Exception:
+ pass
+ # 附带实时通道 token,前端可订 live 频道
+ payload["realtime"] = issue_connection_token(peer, payload["channelId"])
+ # Best-effort: tell other peers a room went live
+ try:
+ from hub_svc.notify_bridge import notify_room_live
+
+ for other in live.list_peers(payload.get("roomId") or room_id):
+ oid = str(other.get("peerId") or other.get("guestId") or "")
+ if oid and oid != peer:
+ notify_room_live(oid, f"视频厅 {payload.get('roomId') or room_id}")
+ except Exception:
+ pass
+ return payload
+
+
+@router.post("/live/rooms/{room_id}/heartbeat")
+async def live_heartbeat(
+ room_id: str,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ peer = _guest(x_hub_guest_id, guest)
+ try:
+ return live.heartbeat(room_id, peer)
+ except ValueError as e:
+ raise HTTPException(status_code=400, detail=str(e)) from e
+
+
+@router.get("/live/rooms/{room_id}/peers")
+async def live_peers(room_id: str):
+ return {"ok": True, "roomId": room_id, "peers": live.list_peers(room_id)}
+
+
+@router.post("/live/rooms/{room_id}/leave")
+async def live_leave(
+ room_id: str,
+ x_hub_guest_id: str | None = Header(default=None),
+ guest: str | None = Query(default=None),
+):
+ peer = _guest(x_hub_guest_id, guest)
+ out = live.leave_room(room_id, peer)
+ try:
+ await publish_live_event(
+ f"live-{out['roomId']}",
+ "peer_leave",
+ {"roomId": out["roomId"], "peerId": peer},
+ )
+ except Exception:
+ pass
+ return out
+
+
+# —— Skill swap · reviews · moderation · wrapped · digests ——
+
+
+class SkillPostIn(BaseModel):
+ author: str = Field(default="游民", max_length=64)
+ city: str = Field(default="", max_length=64)
+ offer: str = Field(min_length=1, max_length=200)
+ want: str = Field(min_length=1, max_length=200)
+ note: str = Field(default="", max_length=800)
+
+
+class MeetupReviewIn(BaseModel):
+ toGuest: str = Field(min_length=1, max_length=80)
+ toName: str = Field(default="", max_length=64)
+ bookingId: str = Field(default="", max_length=80)
+ punctuality: int = Field(ge=1, le=5)
+ chemistry: int = Field(ge=1, le=5)
+ professionalism: int = Field(ge=1, le=5)
+ text: str = Field(default="", max_length=800)
+
+
+class BlockIn(BaseModel):
+ blockedGuest: str = Field(min_length=1, max_length=80)
+ reason: str = Field(default="", max_length=200)
+
+
+class ReportIn(BaseModel):
+ targetGuest: str = Field(min_length=1, max_length=80)
+ targetName: str = Field(default="", max_length=64)
+ reason: str = Field(min_length=1, max_length=80)
+ detail: str = Field(default="", max_length=1000)
+
+
+class ReportResolveIn(BaseModel):
+ status: str = Field(default="resolved", max_length=20)
+ resultNote: str = Field(default="", max_length=500)
+
+
+class HubLikeIn(BaseModel):
+ toGuest: str = Field(min_length=1, max_length=80)
+ fromName: str = Field(default="游民", max_length=64)
+
+
+class DigestIn(BaseModel):
+ city: str = Field(default="", max_length=64)
+ weekly: bool = False
+
+
+@router.get("/skills")
+def list_skills(
+ city: str = Query(default=""),
+ limit: int = Query(default=60, ge=1, le=120),
+):
+ from hub_svc import community_board as board
+
+ store.init_db()
+ return {"ok": True, "items": board.list_skill_posts(city=city, limit=limit)}
+
+
+@router.post("/skills")
+def create_skill(
+ body: SkillPostIn,
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ from hub_svc import community_board as board
+
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ try:
+ item = board.create_skill_post(
+ guest,
+ author=body.author,
+ city=body.city,
+ offer=body.offer,
+ want=body.want,
+ note=body.note,
+ )
+ except ValueError as exc:
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+ return item
+
+
+@router.post("/skills/{post_id}/close")
+def close_skill(
+ post_id: str,
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ from hub_svc import community_board as board
+
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ try:
+ return board.close_skill_post(guest, post_id)
+ except ValueError as exc:
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+
+
+@router.post("/meetup-reviews")
+@router.post("/reviews")
+def post_meetup_review(
+ body: MeetupReviewIn,
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ from hub_svc import community_board as board
+
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ try:
+ return board.create_meetup_review(
+ guest,
+ to_guest=body.toGuest,
+ to_name=body.toName,
+ booking_id=body.bookingId,
+ punctuality=body.punctuality,
+ chemistry=body.chemistry,
+ professionalism=body.professionalism,
+ text=body.text,
+ )
+ except ValueError as exc:
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+
+
+@router.get("/meetup-reviews/{guest_id}")
+@router.get("/reviews/{guest_id}")
+def get_meetup_reviews(
+ guest_id: str, limit: int = Query(default=40, ge=1, le=100)
+):
+ from hub_svc import community_board as board
+
+ store.init_db()
+ return {"ok": True, **board.reviews_for_guest(guest_id, limit=limit)}
+
+
+@router.post("/blocks")
+def post_block(
+ body: BlockIn,
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ from hub_svc import community_board as board
+
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ try:
+ return board.block_user(guest, body.blockedGuest, body.reason)
+ except ValueError as exc:
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+
+
+@router.delete("/blocks/{blocked_guest}")
+def delete_block(
+ blocked_guest: str,
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ from hub_svc import community_board as board
+
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ return board.unblock_user(guest, blocked_guest)
+
+
+@router.get("/blocks")
+def get_blocks(x_hub_guest_id: str | None = Header(default=None)):
+ from hub_svc import community_board as board
+
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ return {"ok": True, "items": board.list_blocks(guest)}
+
+
+@router.post("/reports")
+def post_report(
+ body: ReportIn,
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ from hub_svc import community_board as board
+
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ try:
+ return board.create_report(
+ guest,
+ target_guest=body.targetGuest,
+ target_name=body.targetName,
+ reason=body.reason,
+ detail=body.detail,
+ )
+ except ValueError as exc:
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+
+
+@router.post("/reports/{report_id}/resolve")
+def resolve_report(
+ report_id: str,
+ body: ReportResolveIn,
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ from hub_svc import community_board as board
+ from hub_svc.notify_bridge import notify_report_result
+
+ _guest(x_hub_guest_id)
+ store.init_db()
+ try:
+ item = board.resolve_report(
+ report_id, status=body.status, result_note=body.resultNote
+ )
+ except ValueError as exc:
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+ try:
+ notify_report_result(
+ item["guestId"],
+ body.resultNote or f"举报已处理:{body.status}",
+ body.status,
+ )
+ except Exception:
+ pass
+ return item
+
+
+@router.get("/reports")
+def get_reports(
+ status: str = Query(default="open"),
+ limit: int = Query(default=40, ge=1, le=100),
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ from hub_svc import community_board as board
+
+ _guest(x_hub_guest_id)
+ store.init_db()
+ return {"ok": True, "items": board.list_reports(status=status, limit=limit)}
+
+
+@router.post("/social-events/like")
+def hub_like_event(
+ body: HubLikeIn,
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ from hub_svc.notify_bridge import notify_like
+
+ _guest(x_hub_guest_id)
+ try:
+ notify_like(body.toGuest, body.fromName)
+ except Exception as exc:
+ raise HTTPException(status_code=503, detail=str(exc)[:160]) from exc
+ return {"ok": True}
+
+
+class BoardJoinEventIn(BaseModel):
+ ownerGuest: str = Field(min_length=1, max_length=80)
+ actorName: str = Field(default="游民", max_length=64)
+ boardTitle: str = Field(default="看板", max_length=120)
+
+
+@router.post("/social-events/board-join")
+def hub_board_join_event(
+ body: BoardJoinEventIn,
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ from hub_svc.notify_bridge import notify_board_join
+
+ _guest(x_hub_guest_id)
+ try:
+ notify_board_join(body.ownerGuest, body.actorName, body.boardTitle)
+ except Exception as exc:
+ raise HTTPException(status_code=503, detail=str(exc)[:160]) from exc
+ return {"ok": True}
+
+
+@router.get("/wrapped")
+def get_wrapped(
+ year: int | None = Query(default=None),
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ from hub_svc import community_board as board
+
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ return {"ok": True, **board.wrapped_stats(guest, year=year)}
+
+
+@router.post("/digests/city")
+def post_city_digest(
+ body: DigestIn,
+ x_hub_guest_id: str | None = Header(default=None),
+):
+ from hub_svc import community_board as board
+ from hub_svc.notify_bridge import fire_city_digest
+
+ guest = _guest(x_hub_guest_id)
+ store.init_db()
+ payload = board.city_digest_payload(body.city)
+ fire_city_digest(
+ guest,
+ payload["city"],
+ payload["digestText"],
+ weekly=body.weekly,
+ )
+ return {"ok": True, **payload}
diff --git a/apps/api/services/hub_svc/routers/geo.py b/apps/api/services/hub_svc/routers/geo.py
new file mode 100644
index 0000000..0d8d8ad
--- /dev/null
+++ b/apps/api/services/hub_svc/routers/geo.py
@@ -0,0 +1,230 @@
+"""Geo discovery API — map cities, Photon search, trips, overlaps."""
+from __future__ import annotations
+
+from typing import Any
+
+from fastapi import APIRouter, Header, HTTPException, Query
+from pydantic import BaseModel, Field
+from starlette.concurrency import run_in_threadpool
+
+from hub_svc import geo_store, photon
+from hub_svc.config import HUB_ENABLED
+from hub_svc.geo_cities import list_seed_cities, city_public
+
+router = APIRouter(tags=["social-geo"])
+
+
+def _guest(
+ x_social_guest_id: str | None,
+ guest_q: str | None = None,
+) -> str:
+ gid = (x_social_guest_id or guest_q or "").strip()
+ if not gid or len(gid) > 80:
+ raise HTTPException(status_code=400, detail="missing X-Hub-Guest-Id")
+ return gid
+
+
+class TripIn(BaseModel):
+ city: str = Field(min_length=1, max_length=80)
+ city_id: str = Field(default="", max_length=64)
+ country: str = Field(default="", max_length=64)
+ lat: float | None = None
+ lng: float | None = None
+ arrival_date: str = Field(default="", max_length=10)
+ departure_date: str = Field(default="", max_length=10)
+ visibility: str = Field(default="public", max_length=16)
+ status: str = Field(default="planned", max_length=16)
+
+
+class TripPatch(BaseModel):
+ city: str | None = Field(default=None, max_length=80)
+ city_id: str | None = Field(default=None, max_length=64)
+ country: str | None = Field(default=None, max_length=64)
+ lat: float | None = None
+ lng: float | None = None
+ arrival_date: str | None = Field(default=None, max_length=10)
+ departure_date: str | None = Field(default=None, max_length=10)
+ visibility: str | None = Field(default=None, max_length=16)
+ status: str | None = Field(default=None, max_length=16)
+
+
+@router.get("/map/cities")
+async def map_cities(
+ west: float | None = None,
+ south: float | None = None,
+ east: float | None = None,
+ north: float | None = None,
+):
+ if not HUB_ENABLED:
+ raise HTTPException(status_code=503, detail="social disabled")
+ items = await run_in_threadpool(geo_store.map_cities)
+ if None not in (west, south, east, north):
+ items = [
+ c
+ for c in items
+ if west <= float(c["lng"]) <= east and south <= float(c["lat"]) <= north # type: ignore[operator]
+ ]
+ return {"items": items, "source": "seed+trips"}
+
+
+@router.get("/cities/search")
+async def cities_search(
+ q: str = Query(default="", max_length=80),
+ limit: int = Query(default=8, ge=1, le=20),
+ lang: str = Query(default="zh", max_length=8),
+):
+ if not HUB_ENABLED:
+ raise HTTPException(status_code=503, detail="social disabled")
+ query = (q or "").strip().lower()
+ seed_hits = []
+ if query:
+ for c in list_seed_cities():
+ hay = f"{c['name']} {c['country']} {' '.join(c.get('tags') or [])}".lower()
+ if query in hay:
+ seed_hits.append(city_public(c, extras={"source": "seed"}))
+ photon_hits = await photon.search_cities(q, limit=limit, lang=lang)
+ # Prefer seed ids when names collide
+ seed_names = {c["name"] for c in seed_hits}
+ merged = list(seed_hits)
+ for p in photon_hits:
+ if p["name"] in seed_names:
+ continue
+ merged.append(p)
+ return {"items": merged[:limit], "q": q}
+
+
+@router.get("/cities/{city_id}")
+async def city_detail(city_id: str):
+ if not HUB_ENABLED:
+ raise HTTPException(status_code=503, detail="social disabled")
+ item = await run_in_threadpool(geo_store.city_detail, city_id)
+ if not item:
+ raise HTTPException(status_code=404, detail="city not found")
+ return {"item": item}
+
+
+@router.get("/people")
+async def people_geo(
+ city: str = Query(default="", max_length=80),
+ cityId: str = Query(default="", max_length=64),
+ status: str = Query(default="", max_length=16),
+ profession: str = Query(default="", max_length=80),
+ interest: str = Query(default="", max_length=80),
+ language: str = Query(default="", max_length=40),
+ currentlyHere: bool = Query(default=False),
+ arrivingSoon: bool = Query(default=False),
+ limit: int = Query(default=40, ge=1, le=100),
+):
+ """Public trip-backed presence filter (no lat/lng). Seed roster still lives client-side."""
+ if not HUB_ENABLED:
+ raise HTTPException(status_code=503, detail="social disabled")
+
+ def _run() -> list[dict[str, Any]]:
+ vis = "public"
+ st = None
+ if currentlyHere:
+ st = "here"
+ elif arrivingSoon:
+ st = "planned"
+ elif status in {"here", "planned", "past"}:
+ st = status
+ trips = geo_store.list_trips(
+ city_id=cityId or None,
+ visibility=vis,
+ status=st,
+ limit=limit * 3,
+ )
+ out: list[dict[str, Any]] = []
+ for t in trips:
+ if city and city.lower() not in (t.get("city") or "").lower():
+ continue
+ # profession/interest/language reserved for roster join later
+ _ = (profession, interest, language)
+ out.append(
+ {
+ "guestId": (t.get("guest_id") or "")[:10],
+ "city": t.get("city"),
+ "cityId": t.get("city_id") or "",
+ "status": t.get("status"),
+ "arrival_date": t.get("arrival_date") or "",
+ "departure_date": t.get("departure_date") or "",
+ "h3Res": t.get("h3_cell") or "",
+ }
+ )
+ if len(out) >= limit:
+ break
+ return out
+
+ items = await run_in_threadpool(_run)
+ return {"items": items}
+
+
+@router.get("/travel-overlaps")
+async def travel_overlaps(
+ x_social_guest_id: str | None = Header(default=None, alias="X-Hub-Guest-Id"),
+ guest_id: str | None = Query(default=None),
+):
+ if not HUB_ENABLED:
+ raise HTTPException(status_code=503, detail="social disabled")
+ gid = _guest(x_social_guest_id, guest_id)
+ items = await run_in_threadpool(geo_store.travel_overlaps, gid)
+ return {"items": items}
+
+
+@router.get("/trips")
+async def list_my_trips(
+ x_social_guest_id: str | None = Header(default=None, alias="X-Hub-Guest-Id"),
+ guest_id: str | None = Query(default=None),
+):
+ if not HUB_ENABLED:
+ raise HTTPException(status_code=503, detail="social disabled")
+ gid = _guest(x_social_guest_id, guest_id)
+ items = await run_in_threadpool(
+ lambda: geo_store.list_trips(guest_id=gid, visibility=None, limit=100)
+ )
+ return {"items": items}
+
+
+@router.post("/trips")
+async def create_trip(
+ body: TripIn,
+ x_social_guest_id: str | None = Header(default=None, alias="X-Hub-Guest-Id"),
+):
+ if not HUB_ENABLED:
+ raise HTTPException(status_code=503, detail="social disabled")
+ gid = _guest(x_social_guest_id)
+ try:
+ item = await run_in_threadpool(geo_store.create_trip, gid, body.model_dump())
+ except ValueError as exc:
+ raise HTTPException(status_code=400, detail=str(exc)) from exc
+ return {"item": item}
+
+
+@router.patch("/trips/{trip_id}")
+async def patch_trip(
+ trip_id: str,
+ body: TripPatch,
+ x_social_guest_id: str | None = Header(default=None, alias="X-Hub-Guest-Id"),
+):
+ if not HUB_ENABLED:
+ raise HTTPException(status_code=503, detail="social disabled")
+ gid = _guest(x_social_guest_id)
+ payload = {k: v for k, v in body.model_dump().items() if v is not None}
+ item = await run_in_threadpool(geo_store.update_trip, gid, trip_id, payload)
+ if not item:
+ raise HTTPException(status_code=404, detail="trip not found")
+ return {"item": item}
+
+
+@router.delete("/trips/{trip_id}")
+async def remove_trip(
+ trip_id: str,
+ x_social_guest_id: str | None = Header(default=None, alias="X-Hub-Guest-Id"),
+):
+ if not HUB_ENABLED:
+ raise HTTPException(status_code=503, detail="social disabled")
+ gid = _guest(x_social_guest_id)
+ ok = await run_in_threadpool(geo_store.delete_trip, gid, trip_id)
+ if not ok:
+ raise HTTPException(status_code=404, detail="trip not found")
+ return {"ok": True}
diff --git a/apps/api/services/hub_svc/s3_upload.py b/apps/api/services/hub_svc/s3_upload.py
new file mode 100644
index 0000000..14634f9
--- /dev/null
+++ b/apps/api/services/hub_svc/s3_upload.py
@@ -0,0 +1,235 @@
+"""Avatar / media upload via SeaweedFS S3 (s3.nomadro.com), with local fallback."""
+from __future__ import annotations
+
+import mimetypes
+import os
+import uuid
+from dataclasses import dataclass
+from datetime import datetime, timezone
+from pathlib import Path
+from urllib.parse import quote
+
+from hub_svc.config import HUB_UPLOAD_DIR
+
+
+@dataclass
+class UploadResult:
+ url: str
+ object_key: str
+ size: int
+ content_type: str
+ storage: str # "s3" | "local"
+
+
+def _env(name: str, *alts: str, default: str = "") -> str:
+ for key in (name, *alts):
+ val = (os.getenv(key) or "").strip()
+ if val:
+ return val
+ return default
+
+
+def s3_enabled() -> bool:
+ """Same SeaweedFS defaults as community_svc (s3.nomadro.com → :8333)."""
+ if _env("S3_ENABLED", default="true").lower() not in {"1", "true", "yes", "on"}:
+ return False
+ # Access key defaults to nomadweb (US SeaweedFS); secret must come from env on prod.
+ return bool(
+ _env("S3_ACCESS_KEY", "S3_ACCESS_KEY_ID", default="nomadweb")
+ and _env("S3_SECRET_KEY", "S3_SECRET_ACCESS_KEY")
+ )
+
+
+_boto = None
+
+
+def _client():
+ global _boto
+ if _boto is not None:
+ return _boto
+ import boto3
+ from botocore.client import Config
+
+ _boto = boto3.client(
+ "s3",
+ endpoint_url=_env("S3_ENDPOINT", default="http://127.0.0.1:8333").rstrip("/"),
+ aws_access_key_id=_env(
+ "S3_ACCESS_KEY", "S3_ACCESS_KEY_ID", default="nomadweb"
+ ),
+ aws_secret_access_key=_env("S3_SECRET_KEY", "S3_SECRET_ACCESS_KEY"),
+ region_name=_env("S3_REGION", default="us-east-1"),
+ config=Config(signature_version="s3v4", s3={"addressing_style": "path"}),
+ )
+ return _boto
+
+
+_RESUME_SUFFIX = {".pdf", ".doc", ".docx", ".txt", ".rtf", ".png", ".jpg", ".jpeg", ".webp"}
+_RESUME_MIME = {
+ ".pdf": "application/pdf",
+ ".doc": "application/msword",
+ ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
+ ".txt": "text/plain",
+ ".rtf": "application/rtf",
+ ".png": "image/png",
+ ".jpg": "image/jpeg",
+ ".jpeg": "image/jpeg",
+ ".webp": "image/webp",
+}
+
+
+def _allow_resume(purpose: str) -> bool:
+ return (purpose or "").strip().lower() in {"resume", "cv", "gig-resume"}
+
+
+def _object_key(filename: str, purpose: str, guest_id: str) -> str:
+ suffix = Path(filename or "upload.bin").suffix.lower() or ".jpg"
+ img_ok = {".jpg", ".jpeg", ".png", ".webp", ".gif"}
+ vid_ok = {".webm", ".mp4", ".mov", ".m4v", ".mkv", ".ogg"}
+ allow_video = (purpose or "").startswith("liveness") or purpose in {
+ "liveness-video",
+ "audit-video",
+ "room-archive",
+ "meetup-archive",
+ }
+ allow_resume = _allow_resume(purpose)
+ if suffix in img_ok:
+ pass
+ elif allow_resume and suffix in _RESUME_SUFFIX:
+ pass
+ elif allow_video and suffix in vid_ok:
+ pass
+ elif allow_video:
+ suffix = ".webm"
+ elif allow_resume:
+ suffix = ".pdf"
+ else:
+ suffix = ".jpg"
+ day = datetime.now(timezone.utc).strftime("%Y/%m/%d")
+ prefix = (os.getenv("S3_UPLOAD_PREFIX") or "social").strip("/")
+ purpose_part = (purpose or "avatar").replace("/", "-")[:40]
+ guest = "".join(c for c in guest_id if c.isalnum() or c in "_-")[:32] or "guest"
+ return f"{prefix}/{purpose_part}/{day}/{guest}_{uuid.uuid4().hex}{suffix}"
+
+
+def public_url_for_key(key: str) -> str:
+ base = _env(
+ "S3_PUBLIC_URL", default="https://s3.nomadro.com"
+ ).rstrip("/")
+ bucket = _env("S3_BUCKET", default="nomadweb").strip("/")
+ return f"{base}/{bucket}/{quote(key, safe='/')}"
+
+
+def upload_bytes(
+ data: bytes,
+ *,
+ filename: str,
+ content_type: str,
+ purpose: str,
+ guest_id: str,
+ max_size: int,
+) -> UploadResult:
+ if not data:
+ raise ValueError("empty file")
+ if len(data) > max_size:
+ raise ValueError(f"file too large (max {max_size // 1024 // 1024}MB)")
+
+ guessed = mimetypes.guess_type(filename or "")[0] or ""
+ ctype = (content_type or "").strip().lower() or guessed or "image/jpeg"
+ suffix = Path(filename or "").suffix.lower()
+ allow_video = (purpose or "").startswith("liveness") or purpose in {
+ "liveness-video",
+ "audit-video",
+ "room-archive",
+ "meetup-archive",
+ }
+ allow_resume = _allow_resume(purpose)
+ # Browser FormData Blob parts often arrive as application/octet-stream
+ if ctype.startswith("image/"):
+ pass
+ elif allow_resume and (
+ suffix in _RESUME_SUFFIX
+ or ctype in {
+ "application/pdf",
+ "application/msword",
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
+ "application/rtf",
+ "text/plain",
+ "application/octet-stream",
+ }
+ ):
+ if suffix not in _RESUME_SUFFIX:
+ # octet-stream without extension → treat as pdf
+ suffix = ".pdf"
+ ctype = _RESUME_MIME.get(suffix) or guessed or "application/pdf"
+ elif allow_video and (
+ ctype.startswith("video/")
+ or suffix in {".webm", ".mp4", ".mov", ".mkv"}
+ or guessed.startswith("video/")
+ ):
+ if not ctype.startswith("video/"):
+ ctype = guessed if guessed.startswith("video/") else (
+ "video/webm" if suffix in {".webm", ""} else f"video/{suffix[1:] or 'mp4'}"
+ )
+ elif not ctype.startswith("image/"):
+ if suffix in {".jpg", ".jpeg", ".png", ".webp", ".gif"} or guessed.startswith(
+ "image/"
+ ):
+ ctype = guessed if guessed.startswith("image/") else (
+ "image/jpeg" if suffix in {".jpg", ".jpeg", ""} else f"image/{suffix[1:]}"
+ )
+ else:
+ raise ValueError(
+ "only resume files allowed"
+ if allow_resume
+ else ("only images allowed" if not allow_video else "only images/videos allowed")
+ )
+
+ key = _object_key(filename, purpose, guest_id)
+
+ if s3_enabled():
+ bucket = _env("S3_BUCKET", default="nomadweb")
+ client = _client()
+ try:
+ # SeaweedFS often rejects canned ACL — skip ACL for lower latency
+ client.put_object(Bucket=bucket, Key=key, Body=data, ContentType=ctype)
+ return UploadResult(
+ url=public_url_for_key(key),
+ object_key=key,
+ size=len(data),
+ content_type=ctype,
+ storage="s3",
+ )
+ except Exception:
+ # Fall through to local if SeaweedFS is briefly unreachable
+ pass
+
+ # Local fallback (dev / S3 off / S3 error)
+ # Live audit assets never land in avatars/
+ if (purpose or "") in {"room-archive", "meetup-archive"}:
+ sub = "room-archive"
+ elif allow_resume:
+ sub = "resumes"
+ elif (
+ allow_video
+ or ctype.startswith("video/")
+ or (purpose or "").startswith("liveness")
+ ):
+ sub = "liveness"
+ else:
+ sub = "avatars"
+ path = HUB_UPLOAD_DIR / sub / Path(key).name
+ path.parent.mkdir(parents=True, exist_ok=True)
+ path.write_bytes(data)
+ if sub == "liveness":
+ route = "liveness"
+ elif sub == "resumes":
+ route = "resume"
+ else:
+ route = "avatar"
+ return UploadResult(
+ url=f"/api/hub/v1/files/{route}/{path.name}",
+ object_key=str(path),
+ size=len(data),
+ content_type=ctype,
+ storage="local",
+ )
diff --git a/apps/api/services/hub_svc/security_denylist.py b/apps/api/services/hub_svc/security_denylist.py
new file mode 100644
index 0000000..8d72af1
--- /dev/null
+++ b/apps/api/services/hub_svc/security_denylist.py
@@ -0,0 +1,300 @@
+# -*- coding: utf-8 -*-
+"""Admin security denylist — email / guest / IP bans (PB hub_archives SoT).
+
+Entity: hub_archives where entity="security_denylist"
+entity_id: primary key (usually email lowercase)
+payload: { email, qq, guestIds[], ips[], reason, active, at }
+"""
+from __future__ import annotations
+
+import time
+from typing import Any
+
+from nomadro_pb.client import pb_quote
+
+ENTITY = "security_denylist"
+C_ARCHIVES = "hub_archives"
+
+# Process cache — refresh every 30s (fail-open on PB outage after seed)
+_CACHE: dict[str, Any] = {"at": 0.0, "emails": set(), "guests": set(), "ips": set(), "rows": []}
+_TTL = 30.0
+
+
+def _now() -> str:
+ return time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime())
+
+
+def _pb():
+ from hub_svc.pb_data import get_pb, init_pb
+
+ init_pb()
+ return get_pb()
+
+
+def _norm_email(email: str) -> str:
+ return (email or "").strip().lower()[:160]
+
+
+def _norm_ip(ip: str) -> str:
+ return (ip or "").strip().split("%")[0][:64]
+
+
+def _seed_from_rows(rows: list[dict[str, Any]]) -> None:
+ emails: set[str] = set()
+ guests: set[str] = set()
+ ips: set[str] = set()
+ active_rows: list[dict[str, Any]] = []
+ for r in rows:
+ payload = r.get("payload") if isinstance(r.get("payload"), dict) else {}
+ if payload.get("active") is False:
+ continue
+ email = _norm_email(str(payload.get("email") or r.get("entity_id") or ""))
+ if email:
+ emails.add(email)
+ qq = str(payload.get("qq") or "").strip()
+ if qq and "@" not in qq:
+ emails.add(f"{qq}@qq.com")
+ for g in payload.get("guestIds") or []:
+ g = str(g or "").strip()
+ if g:
+ guests.add(g)
+ gid = str(r.get("guest_id") or "").strip()
+ if gid and gid.startswith("guest_"):
+ guests.add(gid)
+ for ip in payload.get("ips") or payload.get("ips_suspected") or []:
+ ip_n = _norm_ip(str(ip))
+ if ip_n:
+ ips.add(ip_n)
+ active_rows.append(r)
+ _CACHE["emails"] = emails
+ _CACHE["guests"] = guests
+ _CACHE["ips"] = ips
+ _CACHE["rows"] = active_rows
+ _CACHE["at"] = time.monotonic()
+
+
+def refresh_denylist(*, force: bool = False) -> dict[str, Any]:
+ now = time.monotonic()
+ if not force and _CACHE["at"] and (now - float(_CACHE["at"])) < _TTL:
+ return {
+ "emails": set(_CACHE["emails"]),
+ "guests": set(_CACHE["guests"]),
+ "ips": set(_CACHE["ips"]),
+ "count": len(_CACHE["rows"]),
+ }
+ try:
+ rows = _pb().list_all(
+ C_ARCHIVES,
+ filter=f'entity="{ENTITY}"',
+ sort="-created_at",
+ hard_limit=2000,
+ )
+ _seed_from_rows(rows)
+ except Exception:
+ # Keep last good cache; empty only if never loaded
+ if not _CACHE["at"]:
+ _CACHE["at"] = now
+ return {
+ "emails": set(_CACHE["emails"]),
+ "guests": set(_CACHE["guests"]),
+ "ips": set(_CACHE["ips"]),
+ "count": len(_CACHE["rows"]),
+ }
+
+
+def snapshot() -> dict[str, Any]:
+ return refresh_denylist(force=False)
+
+
+def is_denied(
+ *,
+ email: str = "",
+ guest_id: str = "",
+ ip: str = "",
+) -> dict[str, Any] | None:
+ """Return hit detail if denied, else None."""
+ snap = snapshot()
+ email_n = _norm_email(email)
+ guest_n = (guest_id or "").strip()
+ ip_n = _norm_ip(ip)
+ reasons: list[str] = []
+ if email_n and email_n in snap["emails"]:
+ reasons.append(f"email:{email_n}")
+ # qq@x without full email — also match local-part@qq.com pattern already seeded
+ if email_n and "@" in email_n:
+ local = email_n.split("@", 1)[0]
+ if local.isdigit() and f"{local}@qq.com" in snap["emails"] and email_n != f"{local}@qq.com":
+ # only exact email match for non-qq aliases
+ pass
+ if guest_n and guest_n in snap["guests"]:
+ reasons.append(f"guest:{guest_n}")
+ if ip_n and ip_n in snap["ips"]:
+ reasons.append(f"ip:{ip_n}")
+ if not reasons:
+ return None
+ return {"denied": True, "reasons": reasons}
+
+
+def assert_not_denied(*, email: str = "", guest_id: str = "", ip: str = "") -> None:
+ hit = is_denied(email=email, guest_id=guest_id, ip=ip)
+ if hit:
+ raise ValueError("账号已被封禁,无法继续操作")
+
+
+def list_denylist(*, limit: int = 200) -> dict[str, Any]:
+ refresh_denylist(force=True)
+ items = []
+ for r in _CACHE["rows"][: max(1, min(int(limit or 200), 500))]:
+ payload = r.get("payload") if isinstance(r.get("payload"), dict) else {}
+ items.append(
+ {
+ "id": r.get("id"),
+ "email": payload.get("email") or r.get("entity_id") or "",
+ "qq": payload.get("qq") or "",
+ "guestIds": list(payload.get("guestIds") or []),
+ "ips": list(payload.get("ips") or payload.get("ips_suspected") or []),
+ "reason": payload.get("reason") or "",
+ "active": payload.get("active") is not False,
+ "at": payload.get("at") or r.get("created_at") or "",
+ }
+ )
+ return {"ok": True, "items": items, "total": len(items)}
+
+
+def ban(
+ *,
+ email: str,
+ reason: str = "",
+ guest_ids: list[str] | None = None,
+ ips: list[str] | None = None,
+ qq: str = "",
+) -> dict[str, Any]:
+ email_n = _norm_email(email)
+ if not email_n or "@" not in email_n:
+ raise ValueError("invalid email")
+ now = _now()
+ guests = [str(g).strip() for g in (guest_ids or []) if str(g).strip()]
+ ip_list = [_norm_ip(i) for i in (ips or []) if _norm_ip(i)]
+ qq_n = (qq or "").strip() or (email_n.split("@", 1)[0] if email_n.endswith("@qq.com") else "")
+ reason_n = (reason or f"admin ban {email_n}").strip()[:500]
+ payload = {
+ "email": email_n,
+ "qq": qq_n,
+ "guestIds": guests,
+ "ips": ip_list,
+ "ips_suspected": ip_list,
+ "reason": reason_n,
+ "active": True,
+ "at": now,
+ }
+ pb = _pb()
+ existing = pb.first(
+ C_ARCHIVES,
+ filter=f'entity="{ENTITY}" && entity_id={pb_quote(email_n)}',
+ )
+ if existing:
+ old = existing.get("payload") if isinstance(existing.get("payload"), dict) else {}
+ merged_guests = list({*list(old.get("guestIds") or []), *guests})
+ merged_ips = list(
+ {
+ *[_norm_ip(x) for x in (old.get("ips") or old.get("ips_suspected") or []) if x],
+ *ip_list,
+ }
+ )
+ payload["guestIds"] = merged_guests
+ payload["ips"] = merged_ips
+ payload["ips_suspected"] = merged_ips
+ if not payload.get("reason") and old.get("reason"):
+ payload["reason"] = old.get("reason")
+ primary_guest = qq_n or (guests[0] if guests else "")
+ rec = pb.update(
+ C_ARCHIVES,
+ str(existing["id"]),
+ {"action": "ban", "guest_id": primary_guest, "payload": payload},
+ )
+ else:
+ primary_guest = qq_n or (guests[0] if guests else "")
+ rec = pb.create(
+ C_ARCHIVES,
+ {
+ "entity": ENTITY,
+ "entity_id": email_n,
+ "action": "ban",
+ "guest_id": primary_guest,
+ "payload": payload,
+ "created_at": now,
+ },
+ )
+ # also mark join lead + hide roster guests
+ try:
+ from hub_svc import pb_data
+
+ lead = pb.first("hub_join_leads", filter=f"email={pb_quote(email_n)}")
+ if lead:
+ old_p = lead.get("payload") if isinstance(lead.get("payload"), dict) else {}
+ pb.update(
+ "hub_join_leads",
+ str(lead["id"]),
+ {
+ "stage": "blocked",
+ "payload": {**old_p, "blocked": True, "blockedReason": reason_n, "blockedAt": now},
+ "updated_at": now,
+ },
+ )
+ gid = str(lead.get("guest_id") or "").strip()
+ if gid and gid not in guests:
+ guests.append(gid)
+ for gid in guests:
+ row = pb_data.get_roster(gid)
+ if row and row.get("id"):
+ pb.update(
+ "hub_roster",
+ str(row["id"]),
+ {"status": "offline", "discoverable": False, "updated_at": now},
+ )
+ else:
+ # get_roster returns public shape without id — fetch raw
+ raw = pb.first("hub_roster", filter=f"guest_id={pb_quote(gid)}")
+ if raw:
+ pb.update(
+ "hub_roster",
+ str(raw["id"]),
+ {"status": "offline", "discoverable": False, "updated_at": now},
+ )
+ try:
+ pb.upsert(
+ "hub_blocks",
+ filter=f'guest_id="admin_system" && blocked_guest={pb_quote(gid)}',
+ payload={
+ "guest_id": "admin_system",
+ "blocked_guest": gid,
+ "reason": reason_n,
+ "created_at": now,
+ },
+ )
+ except Exception:
+ pass
+ except Exception:
+ pass
+ refresh_denylist(force=True)
+ return {"ok": True, "id": rec.get("id"), "email": email_n, "payload": payload}
+
+
+def unban(*, email: str) -> dict[str, Any]:
+ email_n = _norm_email(email)
+ if not email_n:
+ raise ValueError("invalid email")
+ pb = _pb()
+ existing = pb.first(
+ C_ARCHIVES,
+ filter=f'entity="{ENTITY}" && entity_id={pb_quote(email_n)}',
+ )
+ if not existing:
+ return {"ok": True, "email": email_n, "active": False, "note": "not_found"}
+ payload = existing.get("payload") if isinstance(existing.get("payload"), dict) else {}
+ payload = dict(payload)
+ payload["active"] = False
+ payload["unbannedAt"] = _now()
+ pb.update(C_ARCHIVES, str(existing["id"]), {"action": "unban", "payload": payload})
+ refresh_denylist(force=True)
+ return {"ok": True, "email": email_n, "active": False}
diff --git a/apps/api/services/hub_svc/store.py b/apps/api/services/hub_svc/store.py
new file mode 100644
index 0000000..3adb643
--- /dev/null
+++ b/apps/api/services/hub_svc/store.py
@@ -0,0 +1,1090 @@
+"""Isolated SQLite store for 游民社区 — never touches community/PB tables."""
+from __future__ import annotations
+
+import json
+import hashlib
+import sqlite3
+import time
+import uuid
+from contextlib import contextmanager
+from pathlib import Path
+from typing import Any, Iterator
+
+from .config import HUB_DB_PATH, HUB_UPLOAD_DIR, HUB_UPLOAD_MAX_BYTES
+
+try:
+ from ebook_svc.core.sqlite_util import connect as _connect
+except Exception: # pragma: no cover
+ def _connect(path: str | Path, *, timeout: float = 30.0) -> sqlite3.Connection:
+ p = Path(path)
+ p.parent.mkdir(parents=True, exist_ok=True)
+ c = sqlite3.connect(str(p), timeout=timeout)
+ c.row_factory = sqlite3.Row
+ c.execute("PRAGMA journal_mode=WAL")
+ return c
+
+
+def _uid(prefix: str) -> str:
+ return f"{prefix}_{uuid.uuid4().hex[:12]}"
+
+
+def _now() -> str:
+ return time.strftime("%Y-%m-%dT%H:%M:%S.000Z", time.gmtime())
+
+
+@contextmanager
+def db(*, commit: bool = True) -> Iterator[sqlite3.Connection]:
+ """SQLite removed — use PocketBase via hub_svc.pb_data / nomadro_pb."""
+ raise RuntimeError(
+ "hub_svc SQLite disabled; use PocketBase via hub_svc.pb_data / nomadro_pb"
+ )
+ yield # pragma: no cover
+
+
+_DB_READY = False
+
+
+def init_db() -> None:
+ """PocketBase online SoT — no SQLite. Only ensure hub_* collections."""
+ try:
+ from hub_svc.pb_data import HUB_COLLECTION_NAMES
+ from nomadro_pb.ensure import ensure_selected
+
+ ensure_selected(HUB_COLLECTION_NAMES)
+ except Exception:
+ pass
+ return
+ # legacy sqlite bootstrap kept below for reference but unreachable
+ _legacy_init_db()
+
+
+def _legacy_init_db() -> None:
+ global _DB_READY
+ if _DB_READY:
+ return
+ with db() as conn:
+ conn.executescript(
+ """
+ CREATE TABLE IF NOT EXISTS messages (
+ id TEXT PRIMARY KEY,
+ channel_id TEXT NOT NULL,
+ author TEXT NOT NULL,
+ text TEXT NOT NULL,
+ guest_id TEXT NOT NULL,
+ created_at TEXT NOT NULL
+ );
+ CREATE INDEX IF NOT EXISTS idx_messages_channel ON messages(channel_id, created_at);
+
+ CREATE TABLE IF NOT EXISTS channel_meta (
+ channel_id TEXT PRIMARY KEY,
+ next_seq INTEGER NOT NULL DEFAULT 1
+ );
+
+ CREATE TABLE IF NOT EXISTS channel_read (
+ guest_id TEXT NOT NULL,
+ channel_id TEXT NOT NULL,
+ recv_seq INTEGER NOT NULL DEFAULT 0,
+ read_seq INTEGER NOT NULL DEFAULT 0,
+ updated_at TEXT NOT NULL,
+ PRIMARY KEY (guest_id, channel_id)
+ );
+
+ CREATE TABLE IF NOT EXISTS cafe_reviews (
+ id TEXT PRIMARY KEY,
+ cafe_id TEXT NOT NULL,
+ author TEXT NOT NULL,
+ score INTEGER NOT NULL,
+ text TEXT NOT NULL,
+ photo_note TEXT,
+ guest_id TEXT NOT NULL,
+ created_at TEXT NOT NULL
+ );
+ CREATE INDEX IF NOT EXISTS idx_reviews_cafe ON cafe_reviews(cafe_id, created_at);
+
+ CREATE TABLE IF NOT EXISTS roster (
+ guest_id TEXT PRIMARY KEY,
+ name TEXT NOT NULL,
+ title TEXT,
+ city TEXT,
+ phone TEXT,
+ linktree TEXT,
+ skills TEXT,
+ bio TEXT,
+ avatar TEXT,
+ updated_at TEXT NOT NULL
+ );
+
+ CREATE TABLE IF NOT EXISTS feedback (
+ id TEXT PRIMARY KEY,
+ kind TEXT NOT NULL,
+ text TEXT NOT NULL,
+ contact TEXT,
+ guest_id TEXT NOT NULL,
+ created_at TEXT NOT NULL
+ );
+
+ CREATE TABLE IF NOT EXISTS gig_apps (
+ id TEXT PRIMARY KEY,
+ gig_id TEXT NOT NULL,
+ name TEXT NOT NULL,
+ contact TEXT NOT NULL,
+ note TEXT,
+ guest_id TEXT NOT NULL,
+ created_at TEXT NOT NULL
+ );
+
+ CREATE TABLE IF NOT EXISTS trips (
+ id TEXT PRIMARY KEY,
+ guest_id TEXT NOT NULL,
+ city_id TEXT,
+ city TEXT NOT NULL,
+ country TEXT,
+ lat REAL,
+ lng REAL,
+ h3_cell TEXT,
+ arrival_date TEXT,
+ departure_date TEXT,
+ visibility TEXT NOT NULL DEFAULT 'public',
+ status TEXT NOT NULL DEFAULT 'planned',
+ updated_at TEXT NOT NULL
+ );
+ CREATE INDEX IF NOT EXISTS idx_trips_guest ON trips(guest_id);
+ CREATE INDEX IF NOT EXISTS idx_trips_city ON trips(city_id);
+ CREATE INDEX IF NOT EXISTS idx_trips_vis ON trips(visibility, status);
+ """
+ )
+ # migrate older DBs missing seq / client_id / meta
+ cols = {r[1] for r in conn.execute("PRAGMA table_info(messages)").fetchall()}
+ if "seq" not in cols:
+ conn.execute("ALTER TABLE messages ADD COLUMN seq INTEGER")
+ if "client_id" not in cols:
+ conn.execute("ALTER TABLE messages ADD COLUMN client_id TEXT")
+ if "meta" not in cols:
+ conn.execute("ALTER TABLE messages ADD COLUMN meta TEXT")
+ conn.execute(
+ "CREATE INDEX IF NOT EXISTS idx_messages_channel_seq ON messages(channel_id, seq)"
+ )
+ roster_cols = {r[1] for r in conn.execute("PRAGMA table_info(roster)").fetchall()}
+ if "avatar" not in roster_cols:
+ conn.execute("ALTER TABLE roster ADD COLUMN avatar TEXT")
+ try:
+ from hub_svc.community_board import ensure_community_tables
+
+ ensure_community_tables()
+ except Exception:
+ pass
+ # P0 cold-start profile fields (join → discovery ranking)
+ for col, decl in (
+ ("gender", "TEXT"),
+ ("intents", "TEXT"),
+ ("availability", "TEXT"),
+ ("status", "TEXT"),
+ ("looking_for", "TEXT"),
+ ("relationship", "TEXT"),
+ ("education", "TEXT"),
+ ("graduation", "TEXT"),
+ ("wechat", "TEXT"),
+ ("discoverable", "INTEGER DEFAULT 1"),
+ ("onboarded_at", "TEXT"),
+ ("face_ok", "INTEGER DEFAULT 0"),
+ ("liveness_status", "TEXT"),
+ ("liveness_at", "TEXT"),
+ ("liveness_video_url", "TEXT"),
+ ("liveness_front_url", "TEXT"),
+ ("liveness_turn_url", "TEXT"),
+ ):
+ if col not in roster_cols:
+ conn.execute(f"ALTER TABLE roster ADD COLUMN {col} {decl}")
+ conn.execute(
+ "CREATE INDEX IF NOT EXISTS idx_roster_city ON roster(city)"
+ )
+ conn.executescript(
+ """
+ CREATE TABLE IF NOT EXISTS liveness_audits (
+ id TEXT PRIMARY KEY,
+ guest_id TEXT NOT NULL,
+ avatar_url TEXT,
+ front_url TEXT,
+ turn_url TEXT,
+ video_url TEXT,
+ video_size INTEGER,
+ similarity REAL,
+ yaw_delta REAL,
+ status TEXT NOT NULL DEFAULT 'pending',
+ meta_json TEXT,
+ created_at TEXT NOT NULL
+ );
+ CREATE INDEX IF NOT EXISTS idx_liveness_guest ON liveness_audits(guest_id, created_at);
+ CREATE INDEX IF NOT EXISTS idx_liveness_status ON liveness_audits(status, created_at);
+ """
+ )
+ conn.executescript(
+ """
+ CREATE TABLE IF NOT EXISTS files (
+ id TEXT PRIMARY KEY,
+ channel_id TEXT NOT NULL,
+ guest_id TEXT NOT NULL,
+ kind TEXT NOT NULL,
+ name TEXT NOT NULL,
+ mime TEXT NOT NULL,
+ size INTEGER NOT NULL,
+ path TEXT NOT NULL,
+ created_at TEXT NOT NULL
+ );
+ CREATE INDEX IF NOT EXISTS idx_files_channel ON files(channel_id, created_at);
+ """
+ )
+ _backfill_seq(conn)
+ _DB_READY = True
+ try:
+ from . import geo_pb
+
+ geo_pb.ensure_collection()
+ except Exception:
+ pass
+
+
+def _parse_meta(raw: str | None) -> dict[str, Any]:
+ if not raw:
+ return {}
+ try:
+ data = json.loads(raw)
+ return data if isinstance(data, dict) else {}
+ except Exception:
+ return {}
+
+
+def _dump_meta(meta: dict[str, Any] | None) -> str:
+ return json.dumps(meta or {}, ensure_ascii=False, separators=(",", ":"))
+
+
+_MSG_COLS = "id, channel_id, author, text, guest_id, created_at, seq, client_id, meta"
+
+
+def _backfill_seq(conn: sqlite3.Connection) -> None:
+ """Assign monotonic seq to legacy rows (Tinode-style topic seq)."""
+ channels = conn.execute(
+ "SELECT DISTINCT channel_id FROM messages WHERE seq IS NULL OR seq = 0"
+ ).fetchall()
+ for ch in channels:
+ cid = ch["channel_id"]
+ rows = conn.execute(
+ """
+ SELECT id FROM messages
+ WHERE channel_id = ? AND (seq IS NULL OR seq = 0)
+ ORDER BY created_at ASC, rowid ASC
+ """,
+ (cid,),
+ ).fetchall()
+ if not rows:
+ continue
+ meta = conn.execute(
+ "SELECT next_seq FROM channel_meta WHERE channel_id = ?", (cid,)
+ ).fetchone()
+ start = int(meta["next_seq"]) if meta else 1
+ for i, r in enumerate(rows):
+ conn.execute("UPDATE messages SET seq = ? WHERE id = ?", (start + i, r["id"]))
+ nxt = start + len(rows)
+ if meta:
+ cur = int(meta["next_seq"] or 1)
+ if nxt > cur:
+ conn.execute(
+ "UPDATE channel_meta SET next_seq = ? WHERE channel_id = ?",
+ (nxt, cid),
+ )
+ else:
+ conn.execute(
+ "INSERT INTO channel_meta(channel_id, next_seq) VALUES (?, ?)",
+ (cid, nxt),
+ )
+
+
+def _row_message(r: sqlite3.Row) -> dict[str, Any]:
+ item: dict[str, Any] = {
+ "id": r["id"],
+ "channelId": r["channel_id"],
+ "author": r["author"],
+ "text": r["text"],
+ "guestId": r["guest_id"],
+ "at": r["created_at"],
+ "seq": int(r["seq"] or 0),
+ }
+ try:
+ cid = r["client_id"]
+ except (IndexError, KeyError):
+ cid = None
+ if cid:
+ item["clientId"] = cid
+ try:
+ meta_raw = r["meta"]
+ except (IndexError, KeyError):
+ meta_raw = None
+ meta = _parse_meta(meta_raw)
+ # Element-like fields flattened for clients
+ if meta.get("replyTo"):
+ item["replyTo"] = meta["replyTo"]
+ if meta.get("attachments"):
+ item["attachments"] = meta["attachments"]
+ if meta.get("reactions"):
+ item["reactions"] = meta["reactions"]
+ if meta.get("mentions"):
+ item["mentions"] = meta["mentions"]
+ if meta.get("editedAt"):
+ item["editedAt"] = meta["editedAt"]
+ if meta.get("recalled"):
+ item["recalled"] = True
+ item["text"] = ""
+ if meta.get("pinned"):
+ item["pinned"] = True
+ if meta.get("pinnedAt"):
+ item["pinnedAt"] = meta["pinnedAt"]
+ if meta.get("reported"):
+ item["reported"] = True
+ return item
+
+
+def _get_message(conn: sqlite3.Connection, msg_id: str) -> sqlite3.Row | None:
+ return conn.execute(
+ f"SELECT {_MSG_COLS} FROM messages WHERE id = ?", (msg_id,)
+ ).fetchone()
+
+
+def _get_message_row(conn: sqlite3.Connection, msg_id: str) -> sqlite3.Row | None:
+ return _get_message(conn, msg_id)
+
+
+def channel_seq(channel_id: str) -> int:
+ """Latest message seq for a channel (cheap; no presence / read marks)."""
+ from hub_svc import pb_data
+
+ return pb_data.channel_seq(channel_id)
+
+
+def channel_desc(channel_id: str, guest_id: str | None = None) -> dict[str, Any]:
+ """Tinode-like topic desc: latest seq + caller's recv/read watermarks."""
+ from hub_svc import pb_data
+
+ base = pb_data.channel_desc(channel_id, guest_id)
+ peers = online_peers(channel_id)
+ return {
+ **base,
+ "online": len(peers),
+ "peers": peers,
+ }
+
+
+def list_messages(
+ channel_id: str,
+ limit: int = 100,
+ *,
+ since: int | None = None,
+ before: int | None = None,
+ q: str | None = None,
+) -> list[dict[str, Any]]:
+ """History with Tinode-style seq cursors (since exclusive, before exclusive)."""
+ from hub_svc import pb_data
+
+ return pb_data.list_messages(
+ channel_id, limit, since=since, before=before, q=q
+ )
+
+
+def _normalize_reply(reply_to: dict[str, Any] | None) -> dict[str, Any] | None:
+ if not reply_to or not isinstance(reply_to, dict):
+ return None
+ rid = str(reply_to.get("id") or "").strip()
+ if not rid:
+ return None
+ return {
+ "id": rid[:80],
+ "author": str(reply_to.get("author") or "游民").strip()[:48] or "游民",
+ "text": str(reply_to.get("text") or "").strip()[:240],
+ "seq": int(reply_to.get("seq") or 0) or None,
+ }
+
+
+def _normalize_attachments(items: list[Any] | None) -> list[dict[str, Any]]:
+ out: list[dict[str, Any]] = []
+ for raw in (items or [])[:8]:
+ if not isinstance(raw, dict):
+ continue
+ url = str(raw.get("url") or "").strip()
+ kind = str(raw.get("kind") or "file").strip().lower()
+ if kind not in {"image", "video", "file", "audio"}:
+ kind = "file"
+ if not url or len(url) > 800:
+ continue
+ out.append(
+ {
+ "id": str(raw.get("id") or _uid("att"))[:80],
+ "kind": kind,
+ "url": url,
+ "name": str(raw.get("name") or "file").strip()[:160] or "file",
+ "mime": str(raw.get("mime") or "application/octet-stream").strip()[:120],
+ "size": max(0, min(int(raw.get("size") or 0), 50 * 1024 * 1024)),
+ }
+ )
+ return out
+
+
+def add_message(
+ channel_id: str,
+ author: str,
+ text: str,
+ guest_id: str,
+ client_id: str | None = None,
+ *,
+ reply_to: dict[str, Any] | None = None,
+ attachments: list[Any] | None = None,
+ mentions: list[Any] | None = None,
+) -> dict[str, Any]:
+ body = (text or "").strip()[:2000]
+ atts = _normalize_attachments(attachments)
+ if not body and not atts:
+ raise ValueError("empty message")
+ reply = _normalize_reply(reply_to)
+ mention_list = [
+ str(m).strip()[:48]
+ for m in (mentions or [])[:12]
+ if str(m).strip()
+ ]
+ meta: dict[str, Any] = {}
+ if reply:
+ meta["replyTo"] = reply
+ if atts:
+ meta["attachments"] = atts
+ if mention_list:
+ meta["mentions"] = mention_list
+
+ from hub_svc import pb_data
+
+ out = pb_data.add_message(
+ channel_id,
+ author,
+ body,
+ guest_id,
+ client_id=client_id,
+ kind="text",
+ meta=meta,
+ attachments=atts,
+ reply_to=reply,
+ )
+ if client_id:
+ out["clientId"] = client_id
+ if mention_list:
+ out["mentions"] = mention_list
+ out["at"] = out.get("createdAt") or _now()
+ return out
+
+
+def edit_message(channel_id: str, msg_id: str, guest_id: str, text: str) -> dict[str, Any]:
+ from hub_svc import pb_data
+
+ body = (text or "").strip()[:2000]
+ if not body:
+ raise ValueError("empty text")
+ return pb_data.edit_message(channel_id, msg_id, guest_id, body)
+
+
+def recall_message(channel_id: str, msg_id: str, guest_id: str) -> dict[str, Any]:
+ """Element-style redact: clear body, keep shell for timeline continuity."""
+ from hub_svc import pb_data
+
+ return pb_data.recall_message(channel_id, msg_id, guest_id)
+
+
+def react_message(
+ channel_id: str, msg_id: str, guest_id: str, emoji: str
+) -> dict[str, Any]:
+ """Toggle annotation reaction (Element / Matrix m.annotation pattern)."""
+ from hub_svc import pb_data
+
+ return pb_data.react_message(channel_id, msg_id, guest_id, emoji)
+
+
+def pin_message(
+ channel_id: str, msg_id: str, guest_id: str, pinned: bool = True
+) -> dict[str, Any]:
+ from hub_svc import pb_data
+
+ return pb_data.pin_message(channel_id, msg_id, guest_id, pinned)
+
+
+def save_upload(
+ channel_id: str,
+ guest_id: str,
+ *,
+ kind: str,
+ name: str,
+ mime: str,
+ data: bytes,
+) -> dict[str, Any]:
+ from hub_svc.config import HUB_UPLOAD_DIR, HUB_UPLOAD_MAX_BYTES
+ from hub_svc import pb_data
+
+ if len(data) > HUB_UPLOAD_MAX_BYTES:
+ raise ValueError("file too large")
+ if kind not in {"image", "video", "file", "audio"}:
+ kind = "file"
+ file_id = _uid("file")
+ safe_name = "".join(c for c in (name or "file") if c.isalnum() or c in "._- ")[:120] or "file"
+ root = HUB_UPLOAD_DIR / channel_id
+ root.mkdir(parents=True, exist_ok=True)
+ path = root / f"{file_id}_{safe_name}"
+ path.write_bytes(data)
+ return pb_data.save_file_meta(
+ file_id,
+ channel_id,
+ guest_id,
+ kind=kind,
+ name=safe_name,
+ mime=(mime or "application/octet-stream")[:120],
+ size=len(data),
+ path=str(path),
+ )
+
+
+def get_file(file_id: str) -> dict[str, Any] | None:
+ from hub_svc import pb_data
+
+ return pb_data.get_file(file_id)
+
+
+# Element-like soft presence (TTL heartbeat; UI-agnostic)
+# Rooms: chat channel ids + global "hub:global" + optional "hub:city:"
+# (与 social_svc 的 social:* 隔离)
+_PRESENCE: dict[str, dict[str, dict[str, Any]]] = {}
+_PRESENCE_TTL_SEC = 45
+HUB_GLOBAL_ROOM = "hub:global"
+
+
+def _city_room(city: str) -> str:
+ slug = "".join((city or "").strip().lower().split())[:48]
+ return f"hub:city:{slug}" if slug else HUB_GLOBAL_ROOM
+
+
+def touch_presence(
+ channel_id: str,
+ guest_id: str,
+ nick: str = "",
+ *,
+ city: str = "",
+ avatar: str = "",
+ soft_status_sync: bool = False,
+) -> dict[str, Any]:
+ """Soft presence: process-local TTL map (fast path). PB ch_meta.presence is best-effort mirror."""
+ now = time.time()
+ rooms = [channel_id or HUB_GLOBAL_ROOM]
+ if channel_id != HUB_GLOBAL_ROOM:
+ rooms.append(HUB_GLOBAL_ROOM)
+ city_slug = "".join((city or "").strip().lower().split())
+ if city_slug:
+ rooms.append(_city_room(city))
+
+ for room_id in rooms:
+ room = _PRESENCE.setdefault(room_id, {})
+ room[guest_id] = {
+ "guestId": guest_id,
+ "nick": (nick or "游民").strip()[:48] or "游民",
+ "city": (city or "").strip()[:64],
+ "avatar": (avatar or "").strip()[:500],
+ "at": now,
+ }
+ dead = [
+ gid
+ for gid, meta in room.items()
+ if now - float(meta["at"]) > _PRESENCE_TTL_SEC
+ ]
+ for gid in dead:
+ room.pop(gid, None)
+
+ peers = online_peers(channel_id or HUB_GLOBAL_ROOM)
+ city_peers = online_peers(_city_room(city)) if city_slug else peers
+
+ if soft_status_sync:
+ try:
+ from hub_svc import pb_data
+
+ row = pb_data.get_roster(guest_id)
+ cur = str((row or {}).get("status") or "")
+ if row and cur in {"", "offline", "away"}:
+ # Full merge — upsert_roster replaces fields; never send a partial stub.
+ pb_data.upsert_roster(
+ guest_id,
+ {
+ **{
+ k: row.get(k)
+ for k in (
+ "name",
+ "title",
+ "city",
+ "phone",
+ "linktree",
+ "skills",
+ "bio",
+ "avatar",
+ "gender",
+ "intents",
+ "availability",
+ "lookingFor",
+ "relationship",
+ "education",
+ "graduation",
+ "wechat",
+ "email",
+ "discoverable",
+ )
+ if row.get(k) is not None
+ },
+ "status": "online",
+ "city": city or row.get("city") or "",
+ "avatar": avatar or row.get("avatar") or "",
+ "name": row.get("name") or nick or "游民",
+ },
+ )
+ except Exception:
+ pass
+
+ try:
+ from hub_svc import pb_data
+ from nomadro_pb import get_pb, pb_quote
+
+ pb_data.init_pb()
+ meta = get_pb().first(
+ pb_data.C_CHMETA, filter=f"channel_id={pb_quote(channel_id or HUB_GLOBAL_ROOM)}"
+ )
+ presence = {
+ p["guestId"]: {"nick": p["nick"], "at": now, "city": p.get("city") or ""}
+ for p in peers
+ }
+ cid = channel_id or HUB_GLOBAL_ROOM
+ if meta:
+ get_pb().update(
+ pb_data.C_CHMETA, meta["id"], {"presence": presence, "updated_at": _now()}
+ )
+ else:
+ get_pb().create(
+ pb_data.C_CHMETA,
+ {
+ "channel_id": cid,
+ "seq": 0,
+ "pins": [],
+ "presence": presence,
+ "updated_at": _now(),
+ },
+ )
+ except Exception:
+ pass
+ return {
+ "channelId": channel_id or HUB_GLOBAL_ROOM,
+ "online": len(peers),
+ "peers": peers,
+ "cityOnline": len(city_peers),
+ "cityPeers": city_peers[:24],
+ }
+
+
+def online_peers(channel_id: str) -> list[dict[str, Any]]:
+ now = time.time()
+ room = _PRESENCE.get(channel_id) or {}
+ out: list[dict[str, Any]] = []
+ for gid, meta in list(room.items()):
+ if now - float(meta["at"]) > _PRESENCE_TTL_SEC:
+ room.pop(gid, None)
+ continue
+ out.append(
+ {
+ "guestId": gid,
+ "nick": meta.get("nick") or "游民",
+ "city": meta.get("city") or "",
+ "avatar": meta.get("avatar") or "",
+ }
+ )
+ out.sort(key=lambda p: p["nick"])
+ return out[:64]
+
+
+def list_social_online(*, city: str = "", limit: int = 48) -> dict[str, Any]:
+ """Public who's-online for social shell (global + optional city)."""
+ city_slug = "".join((city or "").strip().lower().split())
+ global_peers = online_peers(HUB_GLOBAL_ROOM)
+ city_peers = online_peers(_city_room(city)) if city_slug else []
+ lim = max(1, min(int(limit or 48), 64))
+ return {
+ "ok": True,
+ "online": len(global_peers),
+ "peers": global_peers[:lim],
+ "city": (city or "").strip()[:64],
+ "cityOnline": len(city_peers),
+ "cityPeers": city_peers[:lim],
+ }
+
+
+def report_message(
+ channel_id: str, msg_id: str, guest_id: str, reason: str = ""
+) -> dict[str, Any]:
+ from hub_svc import pb_data
+
+ return pb_data.report_message(channel_id, msg_id, guest_id, reason)
+
+
+def set_note(channel_id: str, guest_id: str, what: str, seq: int) -> dict[str, Any]:
+ """Persist recv/read watermark (Tinode {note})."""
+ from hub_svc import pb_data
+
+ return pb_data.set_note(channel_id, guest_id, what, seq)
+
+
+def list_reviews(cafe_id: str, limit: int = 50) -> list[dict[str, Any]]:
+ from hub_svc import pb_data
+
+ return pb_data.list_cafe_reviews(cafe_id, limit)
+
+
+def add_review(
+ cafe_id: str,
+ author: str,
+ score: int,
+ text: str,
+ photo_note: str,
+ guest_id: str,
+) -> dict[str, Any]:
+ from hub_svc import pb_data
+
+ return pb_data.add_cafe_review(
+ cafe_id, author, score, text, photo_note, guest_id
+ )
+
+
+def _norm_city(city: str) -> str:
+ return "".join(str(city or "").strip().lower().split())
+
+
+def _split_tags(raw: str) -> list[str]:
+ return [
+ t.strip()
+ for t in str(raw or "").replace(",", ",").replace("、", ",").split(",")
+ if t.strip()
+ ]
+
+
+def _roster_row_to_dict(r: Any, *, public: bool = False) -> dict[str, Any]:
+ keys = set(r.keys())
+ intents = (r["intents"] if "intents" in keys else "") or ""
+ skills = r["skills"] or ""
+ status = ((r["status"] if "status" in keys else "") or "online").strip() or "online"
+ face_ok = bool(int(r["face_ok"] if "face_ok" in keys and r["face_ok"] is not None else 0))
+ avatar = (r["avatar"] if "avatar" in keys else "") or ""
+ if public and not face_ok:
+ avatar = ""
+ item: dict[str, Any] = {
+ "guestId": r["guest_id"],
+ "name": r["name"],
+ "title": r["title"] or "",
+ "city": r["city"] or "",
+ "skills": skills,
+ "bio": r["bio"] or "",
+ "avatar": avatar,
+ "gender": (r["gender"] if "gender" in keys else "") or "",
+ "intents": intents,
+ "availability": (r["availability"] if "availability" in keys else "") or "",
+ "status": status,
+ "lookingFor": (r["looking_for"] if "looking_for" in keys else "") or "",
+ "updatedAt": r["updated_at"],
+ "online": status in {"online", "here", "available"},
+ "tags": _split_tags(skills)[:8],
+ }
+ if not public:
+ item.update(
+ {
+ "phone": r["phone"] or "",
+ "linktree": r["linktree"] or "",
+ "relationship": (r["relationship"] if "relationship" in keys else "") or "",
+ "education": (r["education"] if "education" in keys else "") or "",
+ "graduation": (r["graduation"] if "graduation" in keys else "") or "",
+ "wechat": (r["wechat"] if "wechat" in keys else "") or "",
+ "discoverable": int(r["discoverable"] if "discoverable" in keys and r["discoverable"] is not None else 1),
+ "onboardedAt": (r["onboarded_at"] if "onboarded_at" in keys else "") or "",
+ "faceOk": face_ok,
+ "livenessStatus": (r["liveness_status"] if "liveness_status" in keys else "") or "none",
+ "livenessAt": (r["liveness_at"] if "liveness_at" in keys else "") or "",
+ "livenessVideoUrl": (r["liveness_video_url"] if "liveness_video_url" in keys else "") or "",
+ }
+ )
+ else:
+ item["linktree"] = r["linktree"] or ""
+ item["faceOk"] = face_ok
+ item["livenessStatus"] = (r["liveness_status"] if "liveness_status" in keys else "") or "none"
+ return item
+
+
+def get_roster(guest_id: str) -> dict[str, Any] | None:
+ from hub_svc import pb_data
+
+ return pb_data.get_roster(guest_id)
+
+
+def upsert_roster(guest_id: str, payload: dict[str, Any]) -> dict[str, Any]:
+ """Insert/update roster on PocketBase."""
+ from hub_svc import pb_data
+
+ return pb_data.upsert_roster(guest_id, payload)
+
+
+def score_discovery(
+ viewer: dict[str, Any] | None,
+ item: dict[str, Any],
+) -> int:
+ """Higher = better: same city >> online >> tag/intent overlap."""
+ score = 0
+ v_city = _norm_city((viewer or {}).get("city") or "")
+ i_city = _norm_city(item.get("city") or "")
+ if v_city and i_city and v_city == i_city:
+ score += 1000
+ elif v_city and i_city and (v_city in i_city or i_city in v_city):
+ score += 600
+ if item.get("online"):
+ score += 200
+ v_tags = set(
+ t.lower()
+ for t in (
+ _split_tags((viewer or {}).get("skills") or "")
+ + _split_tags((viewer or {}).get("intents") or "")
+ )
+ )
+ i_tags = set(
+ t.lower()
+ for t in (
+ list(item.get("tags") or [])
+ + _split_tags(item.get("intents") or "")
+ + _split_tags(item.get("lookingFor") or "")
+ )
+ )
+ score += min(120, 40 * len(v_tags & i_tags))
+ # fresher profiles float a bit
+ updated = str(item.get("updatedAt") or "")
+ if updated:
+ score += min(50, max(0, len(updated)))
+ return score
+
+
+def list_discovery_roster(
+ *,
+ viewer_guest_id: str | None = None,
+ city: str = "",
+ limit: int = 48,
+ exclude_self: bool = True,
+ require_face: bool = False,
+) -> list[dict[str, Any]]:
+ """Public discovery cards ranked for viewer (same-city + online + tags)."""
+ from hub_svc import pb_data
+
+ return pb_data.list_discovery_roster(
+ viewer_guest_id=viewer_guest_id,
+ city=city,
+ limit=limit,
+ exclude_self=exclude_self,
+ require_face=require_face,
+ )
+
+
+def city_recommendations(
+ guest_id: str,
+ *,
+ limit: int = 3,
+) -> list[dict[str, Any]]:
+ """Top same-city (then tag-matched) people for onboarding push."""
+ from hub_svc import pb_data
+
+ return pb_data.city_recommendations(guest_id, limit=limit)
+
+
+def mark_face_photo(
+ guest_id: str,
+ avatar_url: str,
+ *,
+ face_ok: bool = False,
+) -> None:
+ """Album/selfie → avatar. face_ok only when a real face was detected."""
+ from hub_svc import pb_data
+
+ pb_data.mark_face_photo(guest_id, avatar_url, face_ok=face_ok)
+
+
+def save_liveness_audit(
+ guest_id: str,
+ *,
+ avatar_url: str = "",
+ front_url: str,
+ turn_url: str,
+ video_url: str,
+ video_size: int,
+ similarity: float | None,
+ yaw_delta: float | None,
+ meta: dict[str, Any] | None = None,
+ email: str = "",
+) -> dict[str, Any]:
+ """Live capture audit only — never overwrites roster.avatar."""
+ from hub_svc import pb_data
+
+ return pb_data.save_liveness_audit(
+ guest_id,
+ front_url=front_url,
+ turn_url=turn_url,
+ video_url=video_url,
+ video_size=video_size,
+ similarity=similarity,
+ yaw_delta=yaw_delta,
+ meta=meta,
+ email=email,
+ )
+
+
+def list_liveness_audits(*, status: str = "", limit: int = 50) -> list[dict[str, Any]]:
+ from hub_svc import pb_data
+
+ return pb_data.list_liveness_audits(status=status, limit=limit)
+
+
+def add_feedback(
+ kind: str,
+ text: str,
+ contact: str,
+ guest_id: str,
+ *,
+ images: list[str] | None = None,
+ meta: dict | None = None,
+) -> dict[str, Any]:
+ from hub_svc import pb_data
+
+ return pb_data.add_feedback(
+ kind,
+ text,
+ contact,
+ guest_id,
+ images=images,
+ meta=meta,
+ )
+
+
+def upsert_join_lead(
+ *,
+ email: str,
+ guest_id: str,
+ stage: str = "email_submit",
+ name: str = "",
+ payload: dict | None = None,
+ ua: str = "",
+ paid: str = "",
+ face_ok: str = "",
+ liveness_status: str = "",
+ client_ip: str = "",
+) -> dict:
+ from hub_svc import pb_data
+
+ return pb_data.upsert_join_lead(
+ email=email,
+ guest_id=guest_id,
+ stage=stage,
+ name=name,
+ payload=payload,
+ ua=ua,
+ paid=paid,
+ face_ok=face_ok,
+ liveness_status=liveness_status,
+ client_ip=client_ip,
+ )
+
+
+def find_open_room_archive_session(
+ *,
+ guest_id: str,
+ channel_id: str = "",
+ filename: str = "",
+) -> str:
+ from hub_svc import pb_data
+
+ return pb_data.find_open_room_archive_session(
+ guest_id=guest_id,
+ channel_id=channel_id,
+ filename=filename,
+ )
+
+
+def upsert_room_archive_event(
+ *,
+ session_id: str,
+ channel_id: str,
+ guest_id: str,
+ room_id: str = "",
+ status: str = "pending",
+ name: str = "",
+ mime: str = "video/webm",
+ size: int = 0,
+ path: str = "",
+ error: str = "",
+ seq: int = 0,
+ duration_sec: int = 0,
+ started_at: str = "",
+ nick: str = "",
+ email: str = "",
+) -> dict:
+ from hub_svc import pb_data
+
+ return pb_data.upsert_room_archive_event(
+ session_id=session_id,
+ channel_id=channel_id,
+ guest_id=guest_id,
+ room_id=room_id,
+ status=status,
+ name=name,
+ mime=mime,
+ size=size,
+ path=path,
+ error=error,
+ seq=seq,
+ duration_sec=duration_sec,
+ started_at=started_at,
+ nick=nick,
+ email=email,
+ )
+
+
+def add_gig_app(
+ gig_id: str,
+ name: str,
+ contact: str,
+ note: str,
+ guest_id: str,
+ request_id: str | None = None,
+ *,
+ resume_url: str = "",
+ resume_name: str = "",
+) -> dict[str, Any]:
+ from hub_svc import pb_data
+
+ return pb_data.add_gig_app(
+ gig_id,
+ name,
+ contact,
+ note,
+ guest_id,
+ request_id,
+ resume_url=resume_url,
+ resume_name=resume_name,
+ )
+
+
+def health() -> dict[str, Any]:
+ init_db()
+ from hub_svc import pb_data
+
+ h = pb_data.health()
+ return {
+ "ok": bool(h.get("ok")),
+ "module": "hub",
+ "backend": "pocketbase",
+ "db": h.get("pb") or h.get("db") or "",
+ "dbBytes": 0,
+ "isolated": True,
+ }
diff --git a/apps/api/services/hub_svc/trial_gate.py b/apps/api/services/hub_svc/trial_gate.py
new file mode 100644
index 0000000..2a8f3db
--- /dev/null
+++ b/apps/api/services/hub_svc/trial_gate.py
@@ -0,0 +1,76 @@
+"""Server-side social trial gates — unpaid guests cannot bypass client caps."""
+from __future__ import annotations
+
+from hub_svc.remote_flags import hub_trial_limits
+
+
+def _paid_ok(raw: object) -> bool:
+ return str(raw or "").strip().lower() in {"1", "true", "yes", "paid"}
+
+
+def _guest_is_full_member(guest_id: str) -> bool:
+ """Paid join + verified liveness + roster avatar → unlimited."""
+ gid = (guest_id or "").strip()
+ if not gid:
+ return False
+ try:
+ from hub_svc.pb_data import (
+ C_JOIN_LEADS,
+ get_pb,
+ get_roster,
+ init_pb,
+ pb_quote,
+ )
+
+ init_pb()
+ roster = get_roster(gid) or {}
+ avatar = str(roster.get("avatar") or "").strip()
+ live = str(
+ roster.get("livenessStatus") or roster.get("liveness_status") or ""
+ ).strip()
+ if not avatar or live != "verified":
+ return False
+ rows = get_pb().list_all(
+ C_JOIN_LEADS,
+ filter=f"guest_id={pb_quote(gid)}",
+ hard_limit=40,
+ )
+ for row in rows or []:
+ if _paid_ok(row.get("paid")):
+ return True
+ return False
+ except Exception:
+ return False
+
+
+def count_guest_messages(guest_id: str, *, hard_limit: int = 50) -> int:
+ gid = (guest_id or "").strip()
+ if not gid:
+ return 0
+ try:
+ from hub_svc.pb_data import C_MESSAGES, get_pb, init_pb, pb_quote
+
+ init_pb()
+ rows = get_pb().list_all(
+ C_MESSAGES,
+ filter=f"guest_id={pb_quote(gid)}",
+ hard_limit=hard_limit,
+ )
+ return len(rows or [])
+ except Exception:
+ return 0
+
+
+def assert_chat_trial_ok(guest_id: str) -> None:
+ """Raise ValueError if unpaid guest already used chat trial quota."""
+ limits = hub_trial_limits()
+ if not limits.get("enabled", True):
+ return
+ if _guest_is_full_member(guest_id):
+ return
+ cap = int(limits.get("chatMessages") or 0)
+ if cap <= 0:
+ raise ValueError("trial exhausted: chat requires membership")
+ used = count_guest_messages(guest_id, hard_limit=cap + 5)
+ if used >= cap:
+ raise ValueError("trial exhausted: chat message limit reached")
diff --git a/src/app/hub/blog/[slug]/page.tsx b/src/app/hub/blog/[slug]/page.tsx
new file mode 100644
index 0000000..a688bce
--- /dev/null
+++ b/src/app/hub/blog/[slug]/page.tsx
@@ -0,0 +1,67 @@
+import type { Metadata } from "next";
+import { notFound } from "next/navigation";
+import BlogPostClient from "@hub/components/blog/BlogPostClient";
+import { getBlogPost, listBlogPosts, listBlogSlugs } from "@hub/lib/blog/catalog";
+import { resolveBlogAdSense } from "@hub/lib/blog/adsense";
+import { blogPostingJsonLd } from "@hub/lib/blog/jsonld";
+import { readRemoteConfigFile } from "~/lib/remote-config-store";
+
+type Props = { params: Promise<{ slug: string }> };
+
+export async function generateStaticParams() {
+ return listBlogSlugs().map((slug) => ({ slug }));
+}
+
+export async function generateMetadata({ params }: Props): Promise {
+ const { slug } = await params;
+ const post = getBlogPost(slug);
+ if (!post) return { title: "Not found" };
+ const url = `https://nomadro.com/hub/blog/${post.slug}`;
+ return {
+ title: `${post.title} | Nomadro Blog`,
+ description: post.description,
+ alternates: { canonical: url },
+ openGraph: {
+ title: post.title,
+ description: post.description,
+ url,
+ type: "article",
+ publishedTime: post.date,
+ modifiedTime: post.updated || post.date,
+ authors: [post.author || "Nomadro"],
+ tags: post.tags,
+ siteName: "Nomadro",
+ },
+ twitter: {
+ card: "summary_large_image",
+ title: post.title,
+ description: post.description,
+ },
+ robots: { index: true, follow: true },
+ };
+}
+
+export default async function HubBlogPostPage({ params }: Props) {
+ const { slug } = await params;
+ const post = getBlogPost(slug);
+ if (!post) notFound();
+
+ const related = listBlogPosts({ locale: post.locale })
+ .filter((p) => p.slug !== post.slug)
+ .filter((p) => p.tags.some((t) => post.tags.includes(t)))
+ .slice(0, 3);
+
+ const config = await readRemoteConfigFile().catch(() => null);
+ const adsense = resolveBlogAdSense(config);
+ const jsonLd = blogPostingJsonLd(post);
+
+ return (
+ <>
+
+
+ >
+ );
+}
diff --git a/src/app/hub/blog/about/page.tsx b/src/app/hub/blog/about/page.tsx
new file mode 100644
index 0000000..7002026
--- /dev/null
+++ b/src/app/hub/blog/about/page.tsx
@@ -0,0 +1,58 @@
+import type { Metadata } from "next";
+import Link from "next/link";
+import SiteShell from "@hub/components/SiteShell";
+import { HubFooter } from "@hub/components/HubNavigation";
+import { hubPath } from "@hub/lib/hubPath";
+
+export const metadata: Metadata = {
+ title: "About the Nomad Blog | Nomadro",
+ description:
+ "Who publishes Nomadro’s nomad blog, what we write about, and how advertising may appear after approval.",
+ alternates: { canonical: "https://nomadro.com/hub/blog/about" },
+ robots: { index: true, follow: true },
+};
+
+export default function HubBlogAboutPage() {
+ return (
+
+
+
+
+
What we write
+
+ Field notes on housing, coworking, budgets, time zones, privacy, and
+ making friends in a new city. Articles are original, edited for clarity,
+ and meant to be useful offline as well as online.
+
+
Advertising
+
+ We may show Google AdSense units on long English articles after the
+ publisher account is approved. Until then, ads stay disabled via remote
+ configuration. Content always comes first; ads never replace the article.
+
+
Contact
+
+ Questions or corrections: use{" "}
+ Feedback. Privacy details
+ live on the Privacy page.
+
+
+
+ Blog
+ Privacy
+ Contact
+
+
+
+
+ );
+}
diff --git a/src/app/hub/blog/loading.tsx b/src/app/hub/blog/loading.tsx
new file mode 100644
index 0000000..29cd453
--- /dev/null
+++ b/src/app/hub/blog/loading.tsx
@@ -0,0 +1,8 @@
+/** Blog suspense — spinner only, no intermediate page. */
+export default function BlogLoading() {
+ return (
+
+
+
+ );
+}
diff --git a/src/app/hub/blog/page.tsx b/src/app/hub/blog/page.tsx
new file mode 100644
index 0000000..76c317e
--- /dev/null
+++ b/src/app/hub/blog/page.tsx
@@ -0,0 +1,35 @@
+import type { Metadata } from "next";
+import BlogListClient from "@hub/components/blog/BlogListClient";
+import { listBlogPosts } from "@hub/lib/blog/catalog";
+import { blogListJsonLd } from "@hub/lib/blog/jsonld";
+
+export const metadata: Metadata = {
+ title: "Nomad Blog | Nomadro",
+ description:
+ "English field notes for digital nomads: cities, cafés, remote work, budgets, and meeting people on the road.",
+ alternates: { canonical: "https://nomadro.com/hub/blog" },
+ openGraph: {
+ title: "Nomad Blog | Nomadro",
+ description:
+ "Practical guides for remote work and slow travel. Content-first — ads off until AdSense approval.",
+ url: "https://nomadro.com/hub/blog",
+ type: "website",
+ siteName: "Nomadro",
+ },
+ robots: { index: true, follow: true },
+};
+
+export default function HubBlogPage() {
+ const posts = listBlogPosts({ locale: "en", adsenseReadyOnly: false });
+ const jsonLd = blogListJsonLd(posts);
+
+ return (
+ <>
+
+
+ >
+ );
+}
diff --git a/src/app/hub/blog/rss.xml/route.ts b/src/app/hub/blog/rss.xml/route.ts
new file mode 100644
index 0000000..ab7f3d0
--- /dev/null
+++ b/src/app/hub/blog/rss.xml/route.ts
@@ -0,0 +1,37 @@
+import { listBlogPosts } from "@hub/lib/blog/catalog";
+
+const SITE = "https://nomadro.com";
+
+export async function GET() {
+ const posts = listBlogPosts({ locale: "en" });
+ const items = posts
+ .map(
+ (p) => `
+ -
+
+ ${SITE}/hub/blog/${p.slug}
+ ${SITE}/hub/blog/${p.slug}
+ ${new Date(p.date).toUTCString()}
+
+ `,
+ )
+ .join("");
+
+ const xml = `
+
+
+ Nomadro Nomad Blog
+ ${SITE}/hub/blog
+ English field notes for digital nomads
+ en-us
+ ${items}
+
+ `;
+
+ return new Response(xml, {
+ headers: {
+ "Content-Type": "application/rss+xml; charset=utf-8",
+ "Cache-Control": "public, max-age=3600",
+ },
+ });
+}
diff --git a/src/app/hub/chat/[id]/page.tsx b/src/app/hub/chat/[id]/page.tsx
new file mode 100644
index 0000000..b4c9c5b
--- /dev/null
+++ b/src/app/hub/chat/[id]/page.tsx
@@ -0,0 +1,24 @@
+import { redirect } from "next/navigation";
+
+/** 旧路径 /hub/chat/:id → /hub/chat?channel=id */
+export default async function Page({
+ params,
+ searchParams,
+}: {
+ params: Promise<{ id: string }>;
+ searchParams: Promise>;
+}) {
+ const { id } = await params;
+ const sp = await searchParams;
+ const next = new URLSearchParams();
+ const channel = String(id || "").trim();
+ if (channel && channel !== "general") next.set("channel", channel);
+ const introRaw = sp.intro;
+ const intro = Array.isArray(introRaw) ? introRaw[0] : introRaw;
+ if (intro) next.set("intro", intro);
+ const mRaw = sp.m;
+ const m = Array.isArray(mRaw) ? mRaw[0] : mRaw;
+ if (m) next.set("m", m);
+ const q = next.toString();
+ redirect(q ? `/hub/chat?${q}` : "/hub/chat");
+}
diff --git a/src/app/hub/chat/page.tsx b/src/app/hub/chat/page.tsx
new file mode 100644
index 0000000..4f40663
--- /dev/null
+++ b/src/app/hub/chat/page.tsx
@@ -0,0 +1,5 @@
+import ChatListClient from "@hub/components/ChatListClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/coffeechat/[username]/[slug]/page.tsx b/src/app/hub/coffeechat/[username]/[slug]/page.tsx
new file mode 100644
index 0000000..03d1f33
--- /dev/null
+++ b/src/app/hub/coffeechat/[username]/[slug]/page.tsx
@@ -0,0 +1,10 @@
+import CoffeeBookPage from "@coffee/components/CoffeeBookPage";
+
+export default async function Page({
+ params,
+}: {
+ params: Promise<{ username: string; slug: string }>;
+}) {
+ const { username, slug } = await params;
+ return ;
+}
diff --git a/src/app/hub/coffeechat/[username]/page.tsx b/src/app/hub/coffeechat/[username]/page.tsx
new file mode 100644
index 0000000..b048213
--- /dev/null
+++ b/src/app/hub/coffeechat/[username]/page.tsx
@@ -0,0 +1,10 @@
+import CoffeeHostPage from "@coffee/components/CoffeeHostPage";
+
+export default async function Page({
+ params,
+}: {
+ params: Promise<{ username: string }>;
+}) {
+ const { username } = await params;
+ return ;
+}
diff --git a/src/app/hub/coffeechat/bookings/[id]/page.tsx b/src/app/hub/coffeechat/bookings/[id]/page.tsx
new file mode 100644
index 0000000..79f12d0
--- /dev/null
+++ b/src/app/hub/coffeechat/bookings/[id]/page.tsx
@@ -0,0 +1,10 @@
+import CoffeeBookingDetail from "@coffee/components/CoffeeBookingDetail";
+
+export default async function Page({
+ params,
+}: {
+ params: Promise<{ id: string }>;
+}) {
+ const { id } = await params;
+ return ;
+}
diff --git a/src/app/hub/coffeechat/manage/page.tsx b/src/app/hub/coffeechat/manage/page.tsx
new file mode 100644
index 0000000..78e21c5
--- /dev/null
+++ b/src/app/hub/coffeechat/manage/page.tsx
@@ -0,0 +1,5 @@
+import CoffeeManagePage from "@coffee/components/CoffeeManagePage";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/coffeechat/page.tsx b/src/app/hub/coffeechat/page.tsx
new file mode 100644
index 0000000..b7f2a82
--- /dev/null
+++ b/src/app/hub/coffeechat/page.tsx
@@ -0,0 +1,5 @@
+import CoffeeLanding from "@coffee/components/CoffeeLanding";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/date/page.tsx b/src/app/hub/date/page.tsx
new file mode 100644
index 0000000..72520bf
--- /dev/null
+++ b/src/app/hub/date/page.tsx
@@ -0,0 +1,5 @@
+import DateClient from "@hub/components/DateClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/ebook/page.tsx b/src/app/hub/ebook/page.tsx
new file mode 100644
index 0000000..6ee00d5
--- /dev/null
+++ b/src/app/hub/ebook/page.tsx
@@ -0,0 +1,5 @@
+import EbookClient from "@hub/components/EbookClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/error.tsx b/src/app/hub/error.tsx
new file mode 100644
index 0000000..1a1cb34
--- /dev/null
+++ b/src/app/hub/error.tsx
@@ -0,0 +1,25 @@
+"use client";
+
+import Link from "next/link";
+import { RefreshCw } from "lucide-react";
+
+export default function HubError({ reset }: { reset: () => void }) {
+ return (
+
+
+ 🧭
+
+ 出了点小状况
+ 再试一次就好。
+
+
+
+ 再试一次
+
+
+ 回首页
+
+
+
+ );
+}
diff --git a/src/app/hub/feedback/page.tsx b/src/app/hub/feedback/page.tsx
new file mode 100644
index 0000000..cca170c
--- /dev/null
+++ b/src/app/hub/feedback/page.tsx
@@ -0,0 +1,5 @@
+import FeedbackClient from "@hub/components/FeedbackClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/gigs/page.tsx b/src/app/hub/gigs/page.tsx
new file mode 100644
index 0000000..ce263a3
--- /dev/null
+++ b/src/app/hub/gigs/page.tsx
@@ -0,0 +1,6 @@
+import TeamClient from "@hub/components/TeamClient";
+
+/** 兼容旧路径 /hub/gigs → 远程团队 · 兼职 */
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/home/page.tsx b/src/app/hub/home/page.tsx
new file mode 100644
index 0000000..846c43f
--- /dev/null
+++ b/src/app/hub/home/page.tsx
@@ -0,0 +1,6 @@
+import HomeClient from "@hub/components/HomeClient";
+
+/** Hub 首页:/hub → /hub/home */
+export default function HubHomeAliasPage() {
+ return ;
+}
diff --git a/src/app/hub/join/page.tsx b/src/app/hub/join/page.tsx
new file mode 100644
index 0000000..22a368f
--- /dev/null
+++ b/src/app/hub/join/page.tsx
@@ -0,0 +1,10 @@
+import { Suspense } from "react";
+import JoinClient from "@hub/components/JoinClient";
+
+export default function Page() {
+ return (
+ 加载加入页…}>
+
+
+ );
+}
diff --git a/src/app/hub/layout.tsx b/src/app/hub/layout.tsx
new file mode 100644
index 0000000..a9ed5c3
--- /dev/null
+++ b/src/app/hub/layout.tsx
@@ -0,0 +1,45 @@
+import { ModuleBoundary } from "~/components/module-boundary";
+/* 主题1=旅居社群(默认)· 主题2=琥珀信号 · 主题3/4=预留;后台 remote skin 可切换 */
+import "@community/app/globals.css";
+import "@hub/app/globals.css";
+import "@hub/app/fx.css";
+import "@hub/app/theme2.css";
+import "@hub/app/theme3.css";
+import "@hub/app/theme4.css";
+import "@hub/app/home.css";
+import "@hub/app/experience.css";
+import "@hub/app/interaction.css";
+import "@hub/app/studio.css";
+import "@hub/app/motion.css";
+import "@hub/app/depth.css";
+import "@hub/app/vivid.css";
+import "@hub/app/h5.css";
+import "@hub/app/blog.css";
+import "@hub/app/discovery.css";
+import "@hub/app/live.css";
+import HubExperience from "@hub/components/HubExperience";
+
+export const metadata = {
+ title: "Nomadro Hub · 游民社区",
+ description: "游民社区:聊天群、约会、语音厅、同城见面、招聘共创",
+};
+
+export default function HubLayout({
+ children,
+}: {
+ children: React.ReactNode;
+}) {
+ return (
+
+
+ {/* 首屏防闪:优先缓存主题,否则主题1;远程配置拉取后由 SiteShell 覆盖 */}
+
+ {children}
+
+
+ );
+}
diff --git a/src/app/hub/loading.tsx b/src/app/hub/loading.tsx
new file mode 100644
index 0000000..4c87101
--- /dev/null
+++ b/src/app/hub/loading.tsx
@@ -0,0 +1,8 @@
+/** Route suspense — spinner only, no intermediate page. */
+export default function HubLoading() {
+ return (
+
+
+
+ );
+}
diff --git a/src/app/hub/map/page.tsx b/src/app/hub/map/page.tsx
new file mode 100644
index 0000000..acb3873
--- /dev/null
+++ b/src/app/hub/map/page.tsx
@@ -0,0 +1,5 @@
+import MapClient from "@hub/components/MapClient";
+
+export default function HubMapPage() {
+ return ;
+}
diff --git a/src/app/hub/meetup/[id]/page.tsx b/src/app/hub/meetup/[id]/page.tsx
new file mode 100644
index 0000000..43a42ba
--- /dev/null
+++ b/src/app/hub/meetup/[id]/page.tsx
@@ -0,0 +1,6 @@
+import MeetupLiveClient from "@hub/components/MeetupLiveClient";
+
+export default async function Page({ params }: { params: Promise<{ id: string }> }) {
+ const { id } = await params;
+ return ;
+}
diff --git a/src/app/hub/meetup/page.tsx b/src/app/hub/meetup/page.tsx
new file mode 100644
index 0000000..a41678b
--- /dev/null
+++ b/src/app/hub/meetup/page.tsx
@@ -0,0 +1,5 @@
+import MeetupClient from "@hub/components/MeetupClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/notifications/page.tsx b/src/app/hub/notifications/page.tsx
new file mode 100644
index 0000000..b7f18c3
--- /dev/null
+++ b/src/app/hub/notifications/page.tsx
@@ -0,0 +1,5 @@
+import NotificationsClient from "@notify/components/NotificationsClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/notifications/settings/page.tsx b/src/app/hub/notifications/settings/page.tsx
new file mode 100644
index 0000000..839a26a
--- /dev/null
+++ b/src/app/hub/notifications/settings/page.tsx
@@ -0,0 +1,5 @@
+import NotificationSettingsClient from "@notify/components/NotificationSettingsClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/notify/activity/page.tsx b/src/app/hub/notify/activity/page.tsx
new file mode 100644
index 0000000..8f8e206
--- /dev/null
+++ b/src/app/hub/notify/activity/page.tsx
@@ -0,0 +1,5 @@
+import ActivityClient from "@notify/components/ActivityClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/notify/inbox/page.tsx b/src/app/hub/notify/inbox/page.tsx
new file mode 100644
index 0000000..e4f1cca
--- /dev/null
+++ b/src/app/hub/notify/inbox/page.tsx
@@ -0,0 +1,5 @@
+import InboxClient from "@notify/components/InboxClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/notify/page.tsx b/src/app/hub/notify/page.tsx
new file mode 100644
index 0000000..1beddb7
--- /dev/null
+++ b/src/app/hub/notify/page.tsx
@@ -0,0 +1,5 @@
+import NotifyClient from "@notify/components/NotifyClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/notify/subscribers/page.tsx b/src/app/hub/notify/subscribers/page.tsx
new file mode 100644
index 0000000..c515113
--- /dev/null
+++ b/src/app/hub/notify/subscribers/page.tsx
@@ -0,0 +1,5 @@
+import SubscribersClient from "@notify/components/SubscribersClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/notify/topics/page.tsx b/src/app/hub/notify/topics/page.tsx
new file mode 100644
index 0000000..8c8f70b
--- /dev/null
+++ b/src/app/hub/notify/topics/page.tsx
@@ -0,0 +1,5 @@
+import TopicsClient from "@notify/components/TopicsClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/notify/workflows/[id]/page.tsx b/src/app/hub/notify/workflows/[id]/page.tsx
new file mode 100644
index 0000000..ec57f5d
--- /dev/null
+++ b/src/app/hub/notify/workflows/[id]/page.tsx
@@ -0,0 +1,10 @@
+import WorkflowDetailClient from "@notify/components/WorkflowDetailClient";
+
+export default async function Page({
+ params,
+}: {
+ params: Promise<{ id: string }>;
+}) {
+ const { id } = await params;
+ return ;
+}
diff --git a/src/app/hub/notify/workflows/page.tsx b/src/app/hub/notify/workflows/page.tsx
new file mode 100644
index 0000000..442f23c
--- /dev/null
+++ b/src/app/hub/notify/workflows/page.tsx
@@ -0,0 +1,5 @@
+import WorkflowsClient from "@notify/components/WorkflowsClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/page.tsx b/src/app/hub/page.tsx
new file mode 100644
index 0000000..363b04c
--- /dev/null
+++ b/src/app/hub/page.tsx
@@ -0,0 +1,5 @@
+import HomeClient from "@hub/components/HomeClient";
+
+export default function HubHomePage() {
+ return ;
+}
diff --git a/src/app/hub/people/[id]/page.tsx b/src/app/hub/people/[id]/page.tsx
new file mode 100644
index 0000000..b2e3075
--- /dev/null
+++ b/src/app/hub/people/[id]/page.tsx
@@ -0,0 +1,15 @@
+import { Suspense } from "react";
+import PeopleProfileClient from "@hub/components/PeopleProfileClient";
+
+export default async function PeopleProfilePage({
+ params,
+}: {
+ params: Promise<{ id: string }>;
+}) {
+ const { id } = await params;
+ return (
+ 加载游民名片…}>
+
+
+ );
+}
diff --git a/src/app/hub/people/page.tsx b/src/app/hub/people/page.tsx
new file mode 100644
index 0000000..c9254f2
--- /dev/null
+++ b/src/app/hub/people/page.tsx
@@ -0,0 +1,6 @@
+import { Suspense } from "react";
+import PeopleClient from "@hub/components/PeopleClient";
+
+export default function PeoplePage() {
+ return 正在发现同类…}> ;
+}
diff --git a/src/app/hub/places/[id]/page.tsx b/src/app/hub/places/[id]/page.tsx
new file mode 100644
index 0000000..18a2a1c
--- /dev/null
+++ b/src/app/hub/places/[id]/page.tsx
@@ -0,0 +1,10 @@
+import PlaceDetailClient from "@hub/components/PlaceDetailClient";
+
+export default async function HubPlaceDetailPage({
+ params,
+}: {
+ params: Promise<{ id: string }>;
+}) {
+ const { id } = await params;
+ return ;
+}
diff --git a/src/app/hub/places/page.tsx b/src/app/hub/places/page.tsx
new file mode 100644
index 0000000..cc62a52
--- /dev/null
+++ b/src/app/hub/places/page.tsx
@@ -0,0 +1,5 @@
+import PlacesClient from "@hub/components/PlacesClient";
+
+export default function HubPlacesPage() {
+ return ;
+}
diff --git a/src/app/hub/privacy/page.tsx b/src/app/hub/privacy/page.tsx
new file mode 100644
index 0000000..f6c23ad
--- /dev/null
+++ b/src/app/hub/privacy/page.tsx
@@ -0,0 +1,78 @@
+import type { Metadata } from "next";
+import Link from "next/link";
+import SiteShell from "@hub/components/SiteShell";
+import { HubFooter } from "@hub/components/HubNavigation";
+import { hubPath } from "@hub/lib/hubPath";
+
+export const metadata: Metadata = {
+ title: "Privacy | Nomadro Social",
+ description:
+ "How Nomadro handles data on /hub, cookies, analytics, and advertising (including Google AdSense when enabled).",
+ alternates: { canonical: "https://nomadro.com/hub/privacy" },
+ robots: { index: true, follow: true },
+};
+
+/** AdSense reviewers look for a clear Privacy Policy with ads/cookies disclosure */
+export default function HubPrivacyPage() {
+ return (
+
+
+
+
+
Who we are
+
+ Nomadro operates nomadro.com. Contact us via{" "}
+ Feedback for privacy
+ requests.
+
+
Data we process
+
+ Account or profile details you submit (for example display name, city,
+ or join flow fields), messages you post in community tools, technical
+ logs needed to keep the service running, and optional analytics events.
+
+
Cookies, analytics, and advertising
+
+ We may use cookies or similar technologies for session continuity,
+ preference storage, and traffic analytics. After Google AdSense
+ approval, advertising cookies may be used by Google and partners to
+ serve and measure ads on eligible pages. You can control cookies through
+ your browser settings. Where required by law, we will present a consent
+ mechanism before non‑essential advertising cookies.
+
+
+ Third‑party ad partners may collect data subject to their own policies
+ (for example Google’s advertising policies). See also our{" "}
+ About page for how ads
+ relate to editorial content.
+
+
Your choices
+
+ You may request access or deletion of account‑linked data via Feedback.
+ You may refuse non‑essential cookies where a banner is shown. Blocking
+ ads does not remove your ability to read blog articles.
+
+
International visitors
+
+ nomadro.com primarily serves an international audience. Data may be
+ processed on servers outside your country. We take reasonable measures
+ to protect information in transit (HTTPS) and at rest.
+
+
+
+ Blog
+ About
+ Contact
+
+
+
+
+ );
+}
diff --git a/src/app/hub/roster/page.tsx b/src/app/hub/roster/page.tsx
new file mode 100644
index 0000000..2685153
--- /dev/null
+++ b/src/app/hub/roster/page.tsx
@@ -0,0 +1,5 @@
+import RosterClient from "@hub/components/RosterClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/sitemap.ts b/src/app/hub/sitemap.ts
new file mode 100644
index 0000000..0bb1efe
--- /dev/null
+++ b/src/app/hub/sitemap.ts
@@ -0,0 +1,36 @@
+import type { MetadataRoute } from "next";
+import { listBlogPosts } from "@hub/lib/blog/catalog";
+import { getPublicSiteUrl } from "~/lib/google/site";
+
+const SITE = getPublicSiteUrl();
+
+export default function sitemap(): MetadataRoute.Sitemap {
+ const posts = listBlogPosts({ locale: "all" });
+ const staticRoutes: MetadataRoute.Sitemap = [
+ {
+ url: `${SITE}/hub/blog`,
+ lastModified: new Date(),
+ changeFrequency: "weekly",
+ priority: 0.8,
+ },
+ {
+ url: `${SITE}/hub/blog/about`,
+ lastModified: new Date(),
+ changeFrequency: "monthly",
+ priority: 0.6,
+ },
+ {
+ url: `${SITE}/hub/privacy`,
+ lastModified: new Date(),
+ changeFrequency: "monthly",
+ priority: 0.7,
+ },
+ ];
+ const postRoutes = posts.map((p) => ({
+ url: `${SITE}/hub/blog/${p.slug}`,
+ lastModified: new Date(p.updated || p.date),
+ changeFrequency: "monthly" as const,
+ priority: 0.7,
+ }));
+ return [...staticRoutes, ...postRoutes];
+}
diff --git a/src/app/hub/skills/page.tsx b/src/app/hub/skills/page.tsx
new file mode 100644
index 0000000..22d79aa
--- /dev/null
+++ b/src/app/hub/skills/page.tsx
@@ -0,0 +1,5 @@
+import SkillsBoardClient from "@hub/components/SkillsBoardClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/team/page.tsx b/src/app/hub/team/page.tsx
new file mode 100644
index 0000000..8beb917
--- /dev/null
+++ b/src/app/hub/team/page.tsx
@@ -0,0 +1,5 @@
+import TeamClient from "@hub/components/TeamClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/videos/page.tsx b/src/app/hub/videos/page.tsx
new file mode 100644
index 0000000..a54739d
--- /dev/null
+++ b/src/app/hub/videos/page.tsx
@@ -0,0 +1,5 @@
+import VideosClient from "@hub/components/VideosClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/vip/page.tsx b/src/app/hub/vip/page.tsx
new file mode 100644
index 0000000..91a2a73
--- /dev/null
+++ b/src/app/hub/vip/page.tsx
@@ -0,0 +1,6 @@
+import { redirect } from "next/navigation";
+
+/** 会员入口已隐藏,直达统一加入社区。 */
+export default function Page() {
+ redirect("/hub/join");
+}
diff --git a/src/app/hub/work/app/[[...slug]]/page.tsx b/src/app/hub/work/app/[[...slug]]/page.tsx
new file mode 100644
index 0000000..aa80c64
--- /dev/null
+++ b/src/app/hub/work/app/[[...slug]]/page.tsx
@@ -0,0 +1,6 @@
+import { redirect } from "next/navigation";
+
+/** Legacy Planka-vendor mount retired — native Next boards. */
+export default function WorkAppRedirect() {
+ redirect("/hub/work/boards");
+}
diff --git a/src/app/hub/work/boards/[id]/page.tsx b/src/app/hub/work/boards/[id]/page.tsx
new file mode 100644
index 0000000..99c241c
--- /dev/null
+++ b/src/app/hub/work/boards/[id]/page.tsx
@@ -0,0 +1,8 @@
+import BoardClient from "@work/components/BoardClient";
+
+type Props = { params: Promise<{ id: string }> };
+
+export default async function WorkBoardPage({ params }: Props) {
+ const { id } = await params;
+ return ;
+}
diff --git a/src/app/hub/work/boards/page.tsx b/src/app/hub/work/boards/page.tsx
new file mode 100644
index 0000000..ed095cc
--- /dev/null
+++ b/src/app/hub/work/boards/page.tsx
@@ -0,0 +1,5 @@
+import BoardsClient from "@work/components/BoardsClient";
+
+export default function WorkBoardsPage() {
+ return ;
+}
diff --git a/src/app/hub/work/layout.tsx b/src/app/hub/work/layout.tsx
new file mode 100644
index 0000000..99d1868
--- /dev/null
+++ b/src/app/hub/work/layout.tsx
@@ -0,0 +1,6 @@
+import type { ReactNode } from "react";
+import WorkAccessGate from "@work/components/WorkAccessGate";
+
+export default function WorkLayout({ children }: { children: ReactNode }) {
+ return {children} ;
+}
diff --git a/src/app/hub/work/pads/[id]/page.tsx b/src/app/hub/work/pads/[id]/page.tsx
new file mode 100644
index 0000000..4bb9802
--- /dev/null
+++ b/src/app/hub/work/pads/[id]/page.tsx
@@ -0,0 +1,8 @@
+import PadClient from "@work/components/PadClient";
+
+type Props = { params: Promise<{ id: string }> };
+
+export default async function WorkPadPage({ params }: Props) {
+ const { id } = await params;
+ return ;
+}
diff --git a/src/app/hub/work/pads/page.tsx b/src/app/hub/work/pads/page.tsx
new file mode 100644
index 0000000..565b95a
--- /dev/null
+++ b/src/app/hub/work/pads/page.tsx
@@ -0,0 +1,5 @@
+import PadsClient from "@work/components/PadsClient";
+
+export default function WorkPadsPage() {
+ return ;
+}
diff --git a/src/app/hub/work/page.tsx b/src/app/hub/work/page.tsx
new file mode 100644
index 0000000..fedeb6f
--- /dev/null
+++ b/src/app/hub/work/page.tsx
@@ -0,0 +1,5 @@
+import WorkClient from "@work/components/WorkClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/app/hub/wrapped/page.tsx b/src/app/hub/wrapped/page.tsx
new file mode 100644
index 0000000..8a71b56
--- /dev/null
+++ b/src/app/hub/wrapped/page.tsx
@@ -0,0 +1,5 @@
+import WrappedClient from "@hub/components/WrappedClient";
+
+export default function Page() {
+ return ;
+}
diff --git a/src/lib/remote-config.ts b/src/lib/remote-config.ts
index 2ca5391..fc8f0cc 100644
--- a/src/lib/remote-config.ts
+++ b/src/lib/remote-config.ts
@@ -181,6 +181,10 @@ export type NomadroRemoteConfig = {
social: ModuleToggle;
/** /social/blog — AdSense 友好英文长文;关则隐藏入口 */
socialBlog?: ModuleToggle;
+ /** /hub — social 独立副本,前后端/后台可独立演进 */
+ hub?: ModuleToggle;
+ /** /hub/blog */
+ hubBlog?: ModuleToggle;
vip: ModuleToggle;
meetups: ModuleToggle;
destinations: ModuleToggle;
@@ -243,11 +247,15 @@ export type NomadroRemoteConfig = {
* false 则关闭限额(仍建议保留加入漏斗)。
*/
socialTrialEnabled?: boolean;
+ /** /hub 尝鲜开关;缺省跟随 socialTrialEnabled */
+ hubTrialEnabled?: boolean;
/**
* 游民社区实时 UX 超级兜底(谁在线 / 热更新 / 离线壳 / 埋点…)。
* 不限于下列键;后台 Switches「实时社区」可改。
*/
socialLive?: SocialLiveFlags;
+ /** /hub 实时 UX;缺省跟随 socialLive */
+ hubLive?: SocialLiveFlags;
};
/**
* 受众分轨(.com 国际优先;中文用户特殊对待)。
@@ -369,6 +377,107 @@ export type NomadroRemoteConfig = {
};
featuredCityIds?: string[];
};
+ /**
+ * /hub 独立副本配置(fork of social*)。
+ * 未设置时客户端可用 social* 作离线种子;后台 /hub 写入走 hub* 键。
+ */
+ hubTrial?: {
+ enabled?: boolean;
+ chatMessages?: number;
+ dateViews?: number;
+ coffeeBookings?: number;
+ mapOpens?: number;
+ };
+ hubEyebrow?: string;
+ hubHeroLine1?: string;
+ hubHeroAccent?: string;
+ hubHeroLead?: string;
+ hubJoinCta?: string;
+ hubInviteTitle?: string;
+ hubInviteLead?: string;
+ hubPromoUrl?: string;
+ hubOnlineTitle?: string;
+ hubOfflineTitle?: string;
+ hubTeamTitle?: string;
+ hubPages?: Record<
+ string,
+ {
+ eyebrow?: string;
+ title?: string;
+ accent?: string;
+ description?: string;
+ }
+ >;
+ hubVideoSources?: Record;
+ hubHiddenSections?: string[];
+ hubCatalogs?: {
+ cafes?: Array>;
+ meetups?: Array>;
+ gigs?: Array>;
+ roster?: Array>;
+ videos?: Array>;
+ ebooks?: Array>;
+ };
+ hubWayGroup?: string;
+ hubWayChat?: string;
+ hubWayDate?: string;
+ hubWayCafe?: string;
+ hubWayTeam?: string;
+ hubPayJoinLabel?: string;
+ hubOaJoinLabel?: string;
+ hubLocale?: {
+ enabled?: string[];
+ mtEnabled?: boolean;
+ fallback?: string;
+ };
+ hubGeo?: {
+ enabledCountries?: string[];
+ featuredCityIds?: string[];
+ };
+ hubSkin?: "1" | "2" | "3" | "4";
+ hubExperience?: {
+ skin?: "1" | "2" | "3" | "4";
+ navigation?: Record;
+ sections?: Record;
+ pages?: Record<
+ string,
+ Record<
+ string,
+ {
+ eyebrow?: string;
+ title?: string;
+ accent?: string;
+ description?: string;
+ }
+ >
+ >;
+ announcement?: {
+ enabled?: boolean;
+ zh?: string;
+ en?: string;
+ href?: string;
+ };
+ featuredCityIds?: string[];
+ };
+ hubFlags?: {
+ pages?: Record;
+ sections?: Record;
+ features?: {
+ joinPay?: boolean;
+ cafeReviews?: boolean;
+ creationSheet?: boolean;
+ chatRealtime?: boolean;
+ livePusher?: boolean;
+ dateSwipe?: boolean;
+ rosterEdit?: boolean;
+ teamApply?: boolean;
+ dock?: boolean;
+ homeEntry?: boolean;
+ avatarFaceCheck?: boolean;
+ [key: string]: boolean | undefined;
+ };
+ buttons?: Record;
+ };
/** AdSense 文案位兜底(优先 flags) */
adsenseClientId?: string;
adsensePublisherId?: string;
@@ -559,16 +668,16 @@ export const DEFAULT_REMOTE_CONFIG: NomadroRemoteConfig = {
note: "ebook reader + pay",
},
community: {
- enabled: true,
+ enabled: false,
title: "旅居社群",
tabLabel: "社群",
- note: "nomadweb",
+ note: "默认隐藏;后台可开(中文公开三大=导航/小册/Hub)",
},
social: {
enabled: true,
title: "游民社区",
tabLabel: "社区",
- note: "门户 /social · 可拆独立域",
+ note: "国际 /social · 勿与中文 Hub 混用",
},
socialBlog: {
enabled: true,
@@ -576,8 +685,20 @@ export const DEFAULT_REMOTE_CONFIG: NomadroRemoteConfig = {
tabLabel: "Blog",
note: "/social/blog · EN long-form · AdSense",
},
- destinations: { enabled: true, title: "目的地" },
- meetups: { enabled: true, title: "活动" },
+ hub: {
+ enabled: true,
+ title: "游民社区",
+ tabLabel: "社区",
+ note: "中文门户 /portal → /hub/home · 独立于 /social",
+ },
+ hubBlog: {
+ enabled: false,
+ title: "Hub Blog",
+ tabLabel: "Hub Blog",
+ note: "/hub/blog · 默认关,后台可开",
+ },
+ destinations: { enabled: false, title: "目的地", note: "默认隐藏" },
+ meetups: { enabled: false, title: "活动", note: "默认隐藏" },
vip: { enabled: false, title: "会员中心", note: "deep link only" },
game: { enabled: false, title: "数字游民", note: "冻结隐藏 · 勿开入口" },
},
@@ -593,6 +714,7 @@ export const DEFAULT_REMOTE_CONFIG: NomadroRemoteConfig = {
socialAvatarFaceCheck: false,
socialTrialEnabled: true,
socialLive: { ...DEFAULT_SOCIAL_LIVE },
+ hubLive: { ...DEFAULT_SOCIAL_LIVE },
/** Site ownership / ads.txt seed — units stay off until adsenseEnabled */
adsenseClientId: "ca-pub-8461145959530971",
adsensePublisherId: "pub-8461145959530971",
@@ -662,13 +784,19 @@ export const DEFAULT_REMOTE_CONFIG: NomadroRemoteConfig = {
socialOfflineTitle: "同城,见一面",
socialTeamTitle: "一起,做点事",
socialLocale: {
- enabled: [],
- mtEnabled: true,
- fallback: "en",
+ enabled: ["zh"],
+ mtEnabled: false,
+ fallback: "zh",
},
socialGeo: {
- enabledCountries: [],
- featuredCityIds: ["chiangmai", "bali", "dali", "lisbon", "chengdu"],
+ enabledCountries: ["CN"],
+ featuredCityIds: [
+ "chengdu",
+ "dali",
+ "shanghai",
+ "shenzhen",
+ "hangzhou",
+ ],
},
socialSkin: "1",
socialExperience: {
@@ -681,6 +809,27 @@ export const DEFAULT_REMOTE_CONFIG: NomadroRemoteConfig = {
socialWayTeam: "招聘 · 共创",
socialPayJoinLabel: "加入社区",
socialOaJoinLabel: "先看看公众号",
+ /** 首页默认只留 Hero + 连接方式卡片,其下模块全部隐藏 */
+ hubHiddenSections: ["belowWays"],
+ /** /hub 中文受众锁:屏蔽多语言 UI(features.hubCnOnly=false 可解除) */
+ hubLocale: {
+ enabled: ["zh"],
+ mtEnabled: false,
+ fallback: "zh",
+ },
+ hubFlags: {
+ features: {
+ hubCnOnly: true,
+ },
+ },
+ hubSkin: "1",
+ hubExperience: {
+ skin: "1",
+ navigation: {},
+ sections: {},
+ announcement: { enabled: false },
+ },
+ hubPages: {},
socialPages: {
people: {
eyebrow: "先逛逛大家",
@@ -922,6 +1071,21 @@ export function resolveSocialLive(
}
}
+/** /hub 优先 flags.hubLive,缺省回落 socialLive(离线种子兜底)。 */
+export function resolveHubLive(
+ config: NomadroRemoteConfig | null | undefined,
+): SocialLiveFlags {
+ try {
+ const base = mergeSocialLive(
+ DEFAULT_SOCIAL_LIVE,
+ config?.flags?.socialLive || undefined,
+ );
+ return mergeSocialLive(base, config?.flags?.hubLive || undefined);
+ } catch {
+ return { ...DEFAULT_SOCIAL_LIVE };
+ }
+}
+
export function mergeRemoteConfig(
partial: Partial | null | undefined,
): NomadroRemoteConfig {
@@ -1020,6 +1184,15 @@ export function mergeRemoteConfig(
base.flags.socialLive || DEFAULT_SOCIAL_LIVE,
(pf.socialLive || undefined) as Partial | undefined,
),
+ hubLive: mergeSocialLive(
+ mergeSocialLive(
+ base.flags.hubLive ||
+ base.flags.socialLive ||
+ DEFAULT_SOCIAL_LIVE,
+ (pf.socialLive || undefined) as Partial | undefined,
+ ),
+ (pf.hubLive || undefined) as Partial | undefined,
+ ),
},
audience: mergeAudienceConfig(base.audience, partial.audience),
copy: mergeCopy(base.copy, partial.copy),
diff --git a/src/modules/coffee/components/CoffeeLanding.tsx b/src/modules/coffee/components/CoffeeLanding.tsx
index 2ffbb1d..4651f28 100644
--- a/src/modules/coffee/components/CoffeeLanding.tsx
+++ b/src/modules/coffee/components/CoffeeLanding.tsx
@@ -2,12 +2,13 @@
import { useEffect, useMemo, useState } from "react";
import Link from "next/link";
-import SiteShell from "@social/components/SiteShell";
-import { socialPath } from "@social/lib/socialPath";
-import { socialTx } from "@social/lib/socialTx";
-import { useSocialI18n } from "@social/lib/useSocialI18n";
-import { SOCIAL_CITIES, type SocialCity } from "@social/lib/cities";
-import { prefetchCityCopy, txCity, txCityField } from "@social/lib/localizeEntity";
+import SiteShell from "@hub/components/SiteShell";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { HUB_CITIES, type HubCity } from "@hub/lib/cities";
+import { resolveSocialCities } from "@hub/geo";
+import { prefetchCityCopy, txCity, txCityField } from "@hub/lib/localizeEntity";
import { coffeeApi } from "../lib/api";
import { LOCAL_COFFEE_HOSTS } from "../lib/localHosts";
import type { CoffeeHost } from "../lib/types";
@@ -16,51 +17,69 @@ import "./coffee.css";
const FEATURED_CITY_IDS = [
"chengdu",
"dali",
- "chiangmai",
- "bali",
- "lisbon",
+ "shanghai",
+ "shenzhen",
"hangzhou",
- "penang",
"xiamen",
];
-function cityMatch(hostCity: string, city: SocialCity) {
+function cityMatch(hostCity: string, city: HubCity) {
const raw = (hostCity || "").toLowerCase();
if (!raw) return false;
return (
raw.includes(city.name.toLowerCase()) ||
raw.includes(city.id.toLowerCase()) ||
- (city.name === "清迈" && raw.includes("chiang")) ||
- (city.name === "巴厘岛" && (raw.includes("bali") || raw.includes("巴厘"))) ||
- (city.name === "里斯本" && raw.includes("lisbon")) ||
- (city.name === "槟城" && (raw.includes("penang") || raw.includes("槟"))) ||
(city.name === "大理" && raw.includes("dali")) ||
(city.name === "杭州" && raw.includes("hangzhou")) ||
(city.name === "厦门" && raw.includes("xiamen")) ||
- (city.name === "成都" && raw.includes("chengdu"))
+ (city.name === "成都" && raw.includes("chengdu")) ||
+ (city.name === "上海" && raw.includes("shanghai")) ||
+ (city.name === "深圳" && (raw.includes("shenzhen") || raw.includes("sz"))) ||
+ (city.name === "昆明" && raw.includes("kunming")) ||
+ (city.name === "丽江" && raw.includes("lijiang"))
);
}
+function isChinaHost(host: CoffeeHost): boolean {
+ const city = (host.city || "").trim();
+ if (!city) return true;
+ const hit = HUB_CITIES.find(
+ (c) =>
+ city === c.name ||
+ city.toLowerCase() === c.id ||
+ city.toLowerCase().includes(c.id) ||
+ c.name.includes(city) ||
+ city.includes(c.name),
+ );
+ if (hit) return hit.country === "中国";
+ // 英文别名兜底:只要能对上国内种子城
+ return HUB_CITIES.some((c) => cityMatch(city, c));
+}
+
export default function CoffeeLanding() {
- useSocialI18n();
- const [hosts, setHosts] = useState(LOCAL_COFFEE_HOSTS);
+ useHubI18n();
+ const [hosts, setHosts] = useState(
+ LOCAL_COFFEE_HOSTS.filter(isChinaHost),
+ );
const [offline, setOffline] = useState(false);
const [loading, setLoading] = useState(true);
const [retry, setRetry] = useState(0);
const [cityId, setCityId] = useState("all");
const cities = useMemo(() => {
- const hot = SOCIAL_CITIES.filter((c) => FEATURED_CITY_IDS.includes(c.id));
- const rest = SOCIAL_CITIES.filter((c) => !FEATURED_CITY_IDS.includes(c.id));
- return [...hot, ...rest].slice(0, 12);
+ const pool = resolveSocialCities({ cnOnly: true });
+ const hot = pool.filter((c) => FEATURED_CITY_IDS.includes(c.id));
+ const rest = pool.filter((c) => !FEATURED_CITY_IDS.includes(c.id));
+ return [...hot, ...rest];
}, []);
const activeCity = cities.find((c) => c.id === cityId) || null;
const activeDisplay = activeCity ? txCity(activeCity) : null;
const filtered = useMemo(() => {
- if (cityId === "all" || !activeCity) return hosts;
- return hosts.filter((h) => cityMatch(h.city, activeCity));
+ const chinaHosts = hosts.filter(isChinaHost);
+ if (cityId === "all" || !activeCity) return chinaHosts;
+ return chinaHosts.filter((h) => cityMatch(h.city, activeCity));
}, [hosts, cityId, activeCity]);
useEffect(() => {
@@ -74,13 +93,13 @@ export default function CoffeeLanding() {
.hosts()
.then((r) => {
if (!active) return;
- // Online API is source of truth — never merge packaged seeds into a live response.
- setHosts(r.hosts || []);
+ const live = (r.hosts || []).filter(isChinaHost);
+ setHosts(live.length ? live : LOCAL_COFFEE_HOSTS.filter(isChinaHost));
setOffline(false);
})
.catch(() => {
if (!active) return;
- setHosts(LOCAL_COFFEE_HOSTS);
+ setHosts(LOCAL_COFFEE_HOSTS.filter(isChinaHost));
setOffline(true);
})
.finally(() => {
@@ -92,39 +111,37 @@ export default function CoffeeLanding() {
}, [retry]);
return (
-
+
-
OFFLINE · CITY
+
{hubTx("同城 · 线下")}
- Nomadro {socialTx("线下 Coffee")}
+ {hubTx("同城")} {hubTx("线下咖啡")}
-
- {socialTx("挑一座城,约一杯线下咖啡")}
-
+
{hubTx("挑一座城,约一杯线下咖啡")}
- {socialTx(
- "不是线上会议。同城咖啡馆见面,破冰、换签证经验、找搭子——城市就是你的会场。",
+ {hubTx(
+ "不是线上会议。同城咖啡馆见面,破冰、换旅居经验、找搭子——城市就是你的会场。",
)}
-
+
{cities.slice(0, 6).map((c) => {
const d = txCity(c);
return (
@@ -144,12 +161,10 @@ export default function CoffeeLanding() {
-
+
-
{socialTx("城市就是会场")}
-
- {socialTx("先选城,再约人。线下咖啡聊绑定同城,不搞远程空聊。")}
-
+
{hubTx("城市就是会场")}
+
{hubTx("先选城,再约人。线下咖啡聊绑定同城,不搞远程空聊。")}
setCityId("all")}
>
- {socialTx("全部城市")}
+ {hubTx("全部城市")}
{cities.map((c) => {
const d = txCity(c);
@@ -198,27 +213,29 @@ export default function CoffeeLanding() {
{activeDisplay.blurb ||
- socialTx("同城咖啡馆约见,见面比聊天软件快。")}
+ hubTx("同城咖啡馆约见,见面比聊天软件快。")}
- {socialTx("看这座城")}
+ {hubTx("看这座城")}
- {socialTx("同城咖啡馆")}
+ {hubTx("同城咖啡馆")}
) : (
- {cities.slice(0, 8).map((c) => {
+ {cities.map((c) => {
const d = txCity(c);
return (
{activeDisplay
- ? `${activeDisplay.name} · ${socialTx("可约线下")}`
- : socialTx("线下可约的人")}
+ ? `${activeDisplay.name} · ${hubTx("可约线下")}`
+ : hubTx("线下可约的人")}
- {socialTx(
- "约的是咖啡馆见面,不是视频会议。点进主页选时段即可。",
- )}
+ {hubTx("约的是咖啡馆见面,不是视频会议。点进主页选时段即可。")}
@@ -264,13 +279,13 @@ export default function CoffeeLanding() {
type="button"
onClick={() => setRetry((value) => value + 1)}
>
- {socialTx("重新加载")}
+ {hubTx("重新加载")}
) : null}
{loading && (
- {socialTx("正在寻找可约的人…")}
+ {hubTx("正在寻找可约的人…")}
)}
@@ -278,23 +293,23 @@ export default function CoffeeLanding() {
{filtered.map((h) => (
- {h.city ? txCityField(h.city) : socialTx("同城待定")}
+ {h.city ? txCityField(h.city) : hubTx("同城待定")}
- {socialTx("线下")}
+ {hubTx("线下")}
{h.name}
{h.bio
- ? socialTx(h.bio)
- : socialTx("咖啡馆轻聊,帮你破冰同城。")}
+ ? hubTx(h.bio)
+ : hubTx("咖啡馆轻聊,帮你破冰同城。")}
- @{h.username} · {h.event_count || 0} {socialTx("种见面")}
+ @{h.username} · {h.event_count || 0} {hubTx("种见面")}
))}
@@ -302,21 +317,19 @@ export default function CoffeeLanding() {
{!filtered.length && !loading ? (
- {socialTx(
- "这城暂时没人开放预约,先逛咖啡馆地图,或换一座城。",
- )}
+ {hubTx("这城暂时没人开放预约,先逛咖啡馆,或换一座城。")}
) : null}
- {socialTx("开放我的线下档期")}
+ {hubTx("开放我的线下档期")}
-
- {socialTx("找同城的人")}
+
+ {hubTx("找同城的人")}
diff --git a/src/modules/coffee/lib/localHosts.ts b/src/modules/coffee/lib/localHosts.ts
index aed79e3..fc84ecf 100644
--- a/src/modules/coffee/lib/localHosts.ts
+++ b/src/modules/coffee/lib/localHosts.ts
@@ -1,79 +1,61 @@
import type { CoffeeHost } from "./types";
/**
- * Packaged offline seed for `/social/coffeechat` when coffee_svc is unreachable.
- * Online PocketBase / API response always wins once connected.
+ * Packaged offline seed for coffeechat when coffee_svc is unreachable.
+ * Hub 中文锁:只国内主持人。
*/
export const LOCAL_COFFEE_HOSTS: CoffeeHost[] = [
{
id: "local_host_chengdu",
username: "alice",
- name: "Alice Chen",
- bio: "成都远程 · 爱咖啡闲聊产品与出海",
- city: "Chengdu",
+ name: "小雨",
+ bio: "成都远程 · 爱咖啡闲聊产品与同城局",
+ city: "成都",
timezone: "Asia/Shanghai",
event_count: 1,
},
{
id: "local_host_dali",
username: "maya",
- name: "Maya · 大理",
+ name: "小满 · 大理",
bio: "苍山脚下咖啡馆见面,聊慢节奏与远程工作",
- city: "Dali",
+ city: "大理",
timezone: "Asia/Shanghai",
event_count: 1,
},
- {
- id: "local_host_cm",
- username: "bob",
- name: "Bob Rivera",
- bio: "EN/ZH · Nimman 咖啡馆线下聊聊",
- city: "Chiang Mai",
- timezone: "Asia/Bangkok",
- event_count: 1,
- },
- {
- id: "local_host_bali",
- username: "rina",
- name: "Rina · Canggu",
- bio: "冲浪后 cowork,咖啡馆见一面就好",
- city: "Bali",
- timezone: "Asia/Makassar",
- event_count: 1,
- },
- {
- id: "local_host_lisbon",
- username: "leo",
- name: "Leo Santos",
- bio: "阳光海岸 · 欧洲时区线下 coffee",
- city: "Lisbon",
- timezone: "Europe/Lisbon",
- event_count: 1,
- },
{
id: "local_host_hz",
username: "qing",
name: "青禾 · 杭州",
bio: "西湖边咖啡馆,聊互联网与副业",
- city: "Hangzhou",
+ city: "杭州",
timezone: "Asia/Shanghai",
event_count: 1,
},
- {
- id: "local_host_penang",
- username: "mei",
- name: "Mei · 槟城",
- bio: "美食 + 海风开放工位,同城约一杯",
- city: "Penang",
- timezone: "Asia/Kuala_Lumpur",
- event_count: 1,
- },
{
id: "local_host_xiamen",
username: "kai",
name: "Kai · 厦门",
bio: "鼓浪屿附近咖啡馆轻聊,破冰同城",
- city: "Xiamen",
+ city: "厦门",
+ timezone: "Asia/Shanghai",
+ event_count: 1,
+ },
+ {
+ id: "local_host_sh",
+ username: "lin",
+ name: "林悦 · 上海",
+ bio: "安福路咖啡馆见面,聊设计与远程",
+ city: "上海",
+ timezone: "Asia/Shanghai",
+ event_count: 1,
+ },
+ {
+ id: "local_host_sz",
+ username: "mia",
+ name: "Mia · 深圳",
+ bio: "南山咖啡馆,聊增长与创业",
+ city: "深圳",
timezone: "Asia/Shanghai",
event_count: 1,
},
diff --git a/src/modules/hub/README.md b/src/modules/hub/README.md
new file mode 100644
index 0000000..7f37ed4
--- /dev/null
+++ b/src/modules/hub/README.md
@@ -0,0 +1,91 @@
+# Nomadro Hub(/hub)
+
+从 `/social` **只读复制**出的独立模块:门户 `src/modules/hub` + `src/app/hub` · API `/api/hub/v1` · 后台 **仅** `admin.nomadro.com` **`/cn/hub/*`**(国际轨走 `/intl/social/*`,互不混挂)。
+中文门户「游民社区」→ `/hub/home`。**不要改 `src/modules/social` / `social_svc` 业务代码**;在本树演进。
+
+## 中文受众锁(当前写死)
+
+- `lib/hubCnLock.ts`:`isHubCnOnly()` **恒 true**(远程 `hubCnOnly=false` 暂不放开)。
+- UI:强制中文、隐藏语言切换;聊天只要「游民大厅」。
+- 地理:`geo/cnDefaults.ts` → `HUB_CN_GEO_CODES = ["CN"]`;`resolveSocialCities` 默认只中国;`HUB_CITIES` 不含清迈/巴厘岛/里斯本/槟城(国际种子在 `HUB_CITIES_INTL`)。
+- 咖啡聊:`CoffeeLanding` 走 Hub 城市池 + `hubPath`;主持人离线种子仅国内。
+- 后端镜像:`hub_svc/geo_cities.py` 默认 `SEED_CITIES` 仅中国。
+
+## 隔离
+
+- 后端:`apps/api/services/hub_svc` → `data/hub/hub.db` · PB collections `hub_*`
+- 前缀:`/api/hub/v1`(不占用 `/api/v1` 或 `/api/social`)
+- 挂载失败 / `HUB_ENABLED=false` → 不影响 ebook / community / pay / social
+- 前端失败自动降级 localStorage
+- 实时:Centrifugo(`/realtime/token` + publish);不可用则聊天室轮询
+
+## 视觉
+
+- **T1**(默认):社区对齐;`lib/skin.ts` · `HUB_SKIN_DEFAULT = "1"`
+- **T2**:`app/theme2.css`(琥珀信号);切换器默认隐藏
+- **首页视觉**:`ConnectionHero` 的 SVG 连接轨道、成员浮层、鼠标视差、柔光粒子;`home.css` 隔离首页样式,保留珊瑚红 / 薄荷绿 / 暖黄配色。
+- **动效与可访问性**:区块滚动显现、卡片聚光、悬停声波、阅读进度;尊重 `prefers-reduced-motion`,视频按需加载,离开页面时清理监听。
+- **交互**:粘性区块导航与当前位置、方向键筛选成员、关注本地保存;原生 `dialog` 管理视频与加群弹窗的焦点、Escape、背景锁定。
+- **全站布局**:桌面为宽幅内容 + 顶部分组导航;移动端为顶部菜单 + 底部快捷入口。没有侧栏,聊天室频道也使用横向切换。
+- **全站动效**:`HubExperience` / `experience.css` 提供星点连线、鼠标柔光、漂移光晕、卡片聚光和页面入场;`interaction.css` / `studio.css` 提供声波、会前雷达、名片透视与书封动效。动效可切为轻量,系统减少动态效果设置优先;离开页面或标签页隐藏时清理/暂停动画。
+- **视觉终态层**:`depth.css` + `vivid.css` 统一玻璃导航、快捷轨、约会进度、聊天跳转最新、咖啡馆主从、Meetup 雷达、触控 ≥44px;子页 `HubQuickRail` 横向跳转。
+- **H5(≤900px)**:`app/h5.css` **最后加载**;Ways 竖列表(群组聊天优先)、底栏「聊天」在「认识」左侧、滑卡/composer/加入 sheet 避开 dock + safe-area。
+- **聊天性能**(不影响视觉):WS 连通后停 since 轮询;消息内存态 + 防抖写本地末 80 条;空 poll 不刷 read note。
+
+## 子页面与交互边界
+
+- `/people`:按城市 / 技能 / 兴趣搜索展示成员,收藏与名片弹窗;成员和在线状态为演示资料,可选显示本机已发布名片;交流入口通向真实公开频道,没有虚构私信或匹配结果。
+- `/chat`、`/chat/[id]`:中文锁下 **仅游民大厅**(多国频道代码保留不露出);破冰话题、引用回复、表情、IME 友好 Enter、草稿、附件。Centrifugo 优先,失败降级轮询。**气泡双语**在中文锁下关闭机器翻译。`/chat/[id]` 重定向到公开厅。
+- `/meetup`、`/meetup/[id]`:活动收藏表示本机参与计划,不是预约成功;导出日历按活动 IANA 时区转换为 UTC,种子默认 `Asia/Shanghai`。视频房间在明确点击进入后才加载,麦克风 / 摄像头默认关闭,支持布局切换、重连、新窗口和离开。音视频能力依赖现有 MiroTalk 服务及用户授权。
+- `/coffeechat`:城市 / 关键词 / 网络 / 评分筛选,地点收藏、可分享选中地点、真实评价提交与离线重试。目录中的地点、带宽、评分仅作种子参考;邀约进入公开频道,不伪造订位或即时到场人数。
+- `/roster`:编辑时实时预览名片与完成度,本机草稿优先;慢返回的服务端资料不会覆盖正在编辑的内容。保存调用现有资料 API,明确区别同步成功与尚未同步。
+- `/team`、`/gigs`:搜索技能与角色、类型筛选、收藏、参与申请弹窗,校验必填项、保留本机草稿、失败重试和重复提交保护。目录机会是否开放需另行确认。
+- `/videos`、`/date`、`/ebook`:统一搜索、收藏、内容详情和话题讨论入口。视频没有片源时明确展示目录预览,不显示假播放器;小册入口通向门户书库,不承诺目录主题已有对应完整正文。
+- `/join`、`/vip`、`/feedback`:加群双路径(付费入群 + 关注公众号)、会员中心入口、反馈草稿与离线重试、「再提一条」;购买遵循 `payEnabled`,不承诺未实现的优先席位等权益。
+ - **支付 → 资料**:成功后进 `?step=profile`(`lib/joinFlow.ts`);PC 双栏 + 右侧实时名片,H5 全宽;开发本机可跳过支付。
+ - **头像**:`hubApi.uploadAvatar` → `POST /api/hub/v1/upload` → SeaweedFS(`s3.nomadro.com`,`S3_*` 与 community 对齐);无密钥 / 失败则本地 `GET /files/avatar/{name}`。草稿与昵称 **mount 后再读** localStorage,避免 hydration 错误。
+- **子页面运营**:`/admin/config` 的 `copy.hubPages` 支持按路由键覆盖 `{ eyebrow, title, accent, description }`;`copy.hubVideoSources` 按目录 ID 配置片源;`copy.hubCatalogs` 可覆盖 cafes/meetups/gigs(空/非法回退包内 seed)。编辑器校验 JSON;空配置使用内置默认文案。
+- **存储**:`useLocalState` 统一草稿、偏好和收藏,兼容服务端渲染和跨标签页更新。本机保存不会冒充服务器发布、真实关注关系或账号登录。
+
+## 首页(数字游民社交)
+
+- 右侧:同频引力轨道与演示成员;「看看社区故事」打开宣传片,首屏不加载视频。
+- **后台文案**:`/admin/config` 可编辑 `copy.hubEyebrow` / `hubHeroLine1` / `hubHeroAccent` / `hubHeroLead` / `hubJoinCta` / `hubInviteTitle` / `hubInviteLead` / `hubOnlineTitle` / `hubOfflineTitle` / `hubTeamTitle`。空值或异常字段使用客户端默认值。
+- **宣传片**:`copy.hubPromoUrl` 优先,其次兼容 `modules.social.promoVideoUrl`,最后使用默认源。
+- CTA:仅「加群」→ 邮箱弹窗 → PC/H5 `zpay`、微信内 H5 `xpay`、小程序引导虚拟支付(`JoinPayModal` + `triggerPay`)
+- 下方:三种连接入口 → 成员花名册 → Meetup → Coffeechat → **远程团队**(`/hub/team`:志愿者 / 兼职 / 全职)→ 加入邀请。
+- 首页成员 / 活动预览沿用种子数据,演示在线状态明确标注,非实时成员统计。
+## 本地验收
+
+- TypeScript 全量检查与改动范围 ESLint。
+- Chrome / Playwright 覆盖 17 个路由的 320 / 390 / 768 / 1440 宽度;首页补充 700 / 900 / 1024 宽度。
+- 检查明暗主题、减少动态效果、菜单 / 原生弹窗、搜索收藏、公开话题草稿、聊天与表单提交成功 / 离线 / 重试、日历时区与视频会前确认。
+- 自动化写接口使用拦截响应,不向实际社区发布消息、评价或申请,不触发真实支付。视频房间仅验证加载与控制流程,不代表外部音视频连通性已验收。
+
+## 多语言(保底)
+
+壳层字典支持中 / 英等(`lib/i18n.ts` + `useHubI18n` + `phrases`)。**中文锁开启时**:强制 `zh`、隐藏语言切换、关闭 Argos MT。锁关闭后顶栏语言写入 `nomadro-locale`。子页运营文案(`copy.hubPages`)仍以中文远程配置为主。
+
+## 本地
+
+```bash
+pnpm dev:api
+pnpm dev
+# 浏览器打开 http://127.0.0.1:3000/hub
+curl http://127.0.0.1:8080/api/hub/v1/health
+```
+
+部署说明见 [`deploy/hub/README.md`](../../../deploy/hub/README.md)。前端先本地验收,未经允许不上线。
+
+## 社区发现体验(2026-11-04)
+
+- 首页 `ConnectionWays`:群组聊天 / 认识一下 / 开视频聊聊 / 找个地方见面 / 找搭子·共创 五卡入口。
+- `/hub/people` 使用独立城市与现有搜索、动态职业/兴趣/语言选项、可移除条件、排序和卡片直接关注。关注沿用本设备存储,与详情页及滑卡共用。
+- 行程仅依据明确的 `status`:`here` 表示当前在此,`arriving` / `soon` 表示即将到达;不再通过在线状态推测行程。没有该字段的示例不参与行程匹配。
+- 运营文案继续走 `copy.hubPages`:`discovery` 配置首页引导标题;`discovery-people`、`discovery-coffee`、`discovery-city`、`discovery-create` 配置对应说明;`peopleConnections` 配置找人页引导。使用已有 `eyebrow/title/description` 字段。
+- `hubHiddenSections` 可隐藏首页区块:`discovery`、`jumpRail`、`livePulse`、`tonight`、`path`、`people`、`date`、`meetup`、`cities`、`coffee`、`team`、`skills`、`hire`、`ways`、`promo`、`invite`。体验台与 `hub_ops`/`hub_experience` 共用键;写 ops 时保留体验台专有隐藏键,避免互相覆盖。旧键 `discover`/`collaborate`/`faq` 自动映射。
+- `flags.hubLive` 控制 /hub 实时 UX(cn 轨 Switches);缺省回落 `socialLive`。Centrifugo 频道前缀 `hub:`(与 social_svc `social:` 隔离)。
+- `hubExperience.navigation` 控制顶栏 / 快捷栏 / 底栏 dock 入口;`announcement` 在壳层展示(可关闭)。
+- **超级能力包(≥20)**:⌘K 跳转、快捷键 `?`、离线条、今日行动、意图测验、在线条、刚刚在线、语音厅收藏、快捷芯片、社区温度、本周城市、最近去过、回访连续天、标签云、邀请复制、摘要偏好、专注模式、提示音、本机静音模块、导航远程开关、`GET /api/hub/v1/features`、admin 首页编排预设。本机偏好存 `nomadro-hub:superPrefs`。
+- 社区语言首次渲染与服务器保持一致,待受众识别完成后更新,避免英文浏览器水合失败。
+- 验证:启动门户后运行 `python scripts/check-social-discovery.py`;覆盖关注持久化、组合筛选、真实行程语义、首页意图入口、中英文和 320/390/768/1440px 布局。截图与报告位于 `artifacts/social-discovery/`。
diff --git a/src/modules/hub/app/blog.css b/src/modules/hub/app/blog.css
new file mode 100644
index 0000000..62090ca
--- /dev/null
+++ b/src/modules/hub/app/blog.css
@@ -0,0 +1,603 @@
+/* /hub/blog — editorial reading plane (AdSense: content first, clear hierarchy) */
+
+.social-editorial {
+ --nav-height: 88px;
+ --sblog-index-max: 58rem;
+ --sblog-article-max: 42rem;
+ position: relative;
+ min-height: 100dvh;
+}
+
+.social-experience:has(.social-editorial) .social-fx-control {
+ display: none;
+}
+
+.social-editorial::before {
+ content: "";
+ position: fixed;
+ inset: 0;
+ pointer-events: none;
+ z-index: 0;
+ background:
+ radial-gradient(ellipse 70% 45% at 50% -10%, rgba(78, 205, 196, 0.1), transparent 55%),
+ radial-gradient(ellipse 40% 30% at 90% 20%, rgba(255, 107, 107, 0.06), transparent 50%);
+}
+
+.social-editorial-frame {
+ position: relative;
+ z-index: 1;
+ width: 100%;
+ max-width: none;
+ margin: 0;
+ padding: calc(var(--nav-height) + 20px) clamp(1rem, 3vw, 2rem) 5.5rem;
+ box-sizing: border-box;
+ min-height: 100dvh;
+}
+
+.social-editorial .social-main--editorial {
+ width: 100%;
+ max-width: none;
+ margin: 0 auto;
+ padding: 0;
+}
+
+.sblog-page {
+ width: 100%;
+ max-width: var(--sblog-article-max);
+ margin: 0 auto;
+ padding: 0 0 1.5rem;
+}
+
+.sblog-page.sblog-index {
+ max-width: var(--sblog-index-max);
+}
+
+.sblog-hero {
+ margin-bottom: 1.35rem;
+}
+
+.sblog-eyebrow {
+ margin: 0 0 0.55rem;
+ font-size: 0.72rem;
+ font-weight: 600;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: color-mix(in srgb, var(--muted, #94a3b8) 92%, #fff);
+}
+
+.sblog-eyebrow a {
+ color: inherit;
+ text-decoration: underline;
+ text-underline-offset: 2px;
+}
+
+.sblog-hero h1 {
+ margin: 0 0 0.7rem;
+ font-size: clamp(1.85rem, 5vw, 2.45rem);
+ line-height: 1.15;
+ letter-spacing: -0.03em;
+ font-weight: 720;
+}
+
+.sblog-lead {
+ margin: 0;
+ font-size: 1.08rem;
+ line-height: 1.55;
+ color: var(--muted, #94a3b8);
+ max-width: 36rem;
+}
+
+.sblog-count {
+ margin: 0.85rem 0 0;
+ font-size: 0.82rem;
+ color: var(--muted, #64748b);
+}
+
+.sblog-meta {
+ margin: 0.85rem 0 0;
+ font-size: 0.88rem;
+ color: var(--muted, #94a3b8);
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.35rem 0.45rem;
+ align-items: center;
+}
+
+.sblog-inline-tag {
+ display: inline-block;
+ padding: 0.12rem 0.45rem;
+ border-radius: 999px;
+ font-size: 0.75rem;
+ background: color-mix(in srgb, currentColor 9%, transparent);
+}
+
+.sblog-tags {
+ display: flex;
+ flex-wrap: nowrap;
+ gap: 0.45rem;
+ margin: 0 0 1.35rem;
+ overflow-x: auto;
+ padding-bottom: 0.25rem;
+ -webkit-overflow-scrolling: touch;
+ scrollbar-width: none;
+}
+.sblog-tags::-webkit-scrollbar {
+ display: none;
+}
+
+.sblog-tag {
+ appearance: none;
+ flex: 0 0 auto;
+ border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
+ background: transparent;
+ color: inherit;
+ font: inherit;
+ font-size: 0.78rem;
+ line-height: 1.2;
+ padding: 0.45rem 0.85rem;
+ border-radius: 999px;
+ min-height: 40px;
+ cursor: pointer;
+ white-space: nowrap;
+}
+
+.sblog-tag.is-on {
+ background: color-mix(in srgb, #2dd4bf 22%, transparent);
+ border-color: color-mix(in srgb, #2dd4bf 45%, transparent);
+ color: #ecfeff;
+}
+
+.sblog-featured {
+ display: flex;
+ flex-direction: column;
+ gap: 0.45rem;
+ margin: 0 0 1.75rem;
+ padding: 1.25rem 0 1.45rem;
+ border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
+ text-decoration: none;
+ color: inherit;
+ transition: opacity 0.18s ease;
+}
+
+.sblog-featured:hover {
+ opacity: 0.92;
+}
+
+.sblog-featured-kicker {
+ font-size: 0.7rem;
+ font-weight: 700;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: #2dd4bf;
+}
+
+.sblog-featured time,
+.sblog-featured em {
+ font-size: 0.82rem;
+ font-style: normal;
+ color: var(--muted, #94a3b8);
+}
+
+.sblog-featured strong {
+ font-size: clamp(1.25rem, 3.5vw, 1.55rem);
+ line-height: 1.3;
+ letter-spacing: -0.02em;
+}
+
+.sblog-featured-desc {
+ font-size: 1rem;
+ line-height: 1.5;
+ color: var(--muted, #94a3b8);
+}
+
+.sblog-featured:hover strong {
+ text-decoration: underline;
+ text-underline-offset: 3px;
+}
+
+.sblog-list {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: flex;
+ flex-direction: column;
+}
+
+.sblog-card-link {
+ display: flex;
+ flex-direction: column;
+ gap: 0.35rem;
+ height: 100%;
+ padding: 1.05rem 0;
+ border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
+ text-decoration: none;
+ color: inherit;
+}
+
+.sblog-card-link time,
+.sblog-card-link em {
+ font-size: 0.8rem;
+ font-style: normal;
+ color: var(--muted, #94a3b8);
+}
+
+.sblog-card-link strong {
+ font-size: 1.08rem;
+ line-height: 1.35;
+ letter-spacing: -0.01em;
+}
+
+.sblog-card-link span {
+ font-size: 0.94rem;
+ line-height: 1.45;
+ color: var(--muted, #94a3b8);
+}
+
+.sblog-card-link:hover strong {
+ text-decoration: underline;
+ text-underline-offset: 3px;
+}
+
+.sblog-article .sblog-hero {
+ padding-bottom: 1.15rem;
+ margin-bottom: 1.5rem;
+ border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
+}
+
+.sblog-prose {
+ font-size: 1.08rem;
+ line-height: 1.75;
+}
+
+.sblog-prose h2 {
+ margin: 2rem 0 0.7rem;
+ font-size: 1.38rem;
+ line-height: 1.28;
+ letter-spacing: -0.02em;
+}
+
+.sblog-prose h3 {
+ margin: 1.45rem 0 0.5rem;
+ font-size: 1.12rem;
+}
+
+.sblog-prose p,
+.sblog-prose ul,
+.sblog-prose ol {
+ margin: 0 0 1.05rem;
+}
+
+.sblog-prose li {
+ margin: 0.28rem 0;
+}
+
+.sblog-prose a {
+ text-decoration: underline;
+ text-underline-offset: 2px;
+ color: #5eead4;
+}
+
+.sblog-prose code {
+ font-size: 0.9em;
+ padding: 0.1em 0.35em;
+ border-radius: 4px;
+ background: color-mix(in srgb, currentColor 8%, transparent);
+}
+
+.sblog-table-wrap {
+ overflow-x: auto;
+ margin: 0 0 1rem;
+}
+
+.sblog-table {
+ width: 100%;
+ border-collapse: collapse;
+ font-size: 0.92rem;
+}
+
+.sblog-table th,
+.sblog-table td {
+ border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
+ padding: 0.45rem 0.6rem;
+ text-align: left;
+}
+
+.sblog-ad {
+ margin: 1.85rem 0;
+ padding: 0.85rem 0.25rem;
+ border-top: 1px dashed color-mix(in srgb, currentColor 16%, transparent);
+ border-bottom: 1px dashed color-mix(in srgb, currentColor 16%, transparent);
+ min-height: 100px;
+ background: color-mix(in srgb, #fff 3%, transparent);
+}
+
+.sblog-ad-label {
+ margin: 0 0 0.45rem;
+ font-size: 0.68rem;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--muted, #94a3b8);
+}
+
+.sblog-related {
+ margin: 2.75rem 0 1rem;
+ padding-top: 1.35rem;
+ border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
+}
+
+.sblog-related h2 {
+ margin: 0 0 0.75rem;
+ font-size: 1.05rem;
+}
+
+.sblog-related ul {
+ margin: 0;
+ padding-left: 1.1rem;
+}
+
+.sblog-related li {
+ margin: 0.4rem 0;
+}
+
+.sblog-policy-row {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.85rem 1.15rem;
+ margin: 2.25rem 0 1rem;
+ padding-top: 1.15rem;
+ border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent);
+ font-size: 0.9rem;
+}
+
+.sblog-policy-row a {
+ color: var(--muted, #94a3b8);
+ text-decoration: underline;
+ text-underline-offset: 2px;
+}
+
+.sblog-empty {
+ color: var(--muted, #94a3b8);
+}
+
+.social-editorial .social-workspace-footer {
+ max-width: none;
+ width: 100%;
+ margin: 0;
+ padding: 0 0 0.5rem;
+}
+
+@media (max-width: 900px) {
+ .social-editorial {
+ --nav-height: 80px;
+ }
+
+ .social-editorial-frame {
+ padding: calc(var(--nav-height) + 12px) 1rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
+ }
+
+ .sblog-hero h1 {
+ font-size: clamp(1.65rem, 7vw, 2.1rem);
+ }
+
+ .sblog-lead {
+ font-size: 1rem;
+ }
+}
+
+@media (min-width: 901px) {
+ .social-editorial .social-mobile-dock {
+ display: none !important;
+ }
+
+ .social-editorial-frame {
+ padding-top: calc(var(--nav-height) + 28px);
+ padding-bottom: 4rem;
+ }
+
+ .sblog-featured {
+ padding: 1.5rem 1.35rem 1.65rem;
+ margin-inline: -1.35rem;
+ border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
+ border-radius: 18px;
+ background: color-mix(in srgb, #fff 3.5%, transparent);
+ }
+
+ .sblog-featured strong {
+ font-size: clamp(1.4rem, 2.2vw, 1.75rem);
+ }
+
+ .sblog-featured:hover strong {
+ text-decoration: none;
+ }
+
+ .sblog-featured:hover {
+ border-color: color-mix(in srgb, #4ecdc4 28%, transparent);
+ }
+
+ .sblog-list {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ column-gap: 2rem;
+ row-gap: 0;
+ }
+
+ .sblog-list > li {
+ min-width: 0;
+ }
+
+ .sblog-card-link {
+ padding: 1.15rem 0 1.25rem;
+ }
+
+ .sblog-tag {
+ min-height: 40px;
+ }
+
+ .sblog-related-grid {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 0.75rem 1.5rem;
+ }
+
+ .sblog-hero--index {
+ margin-bottom: 1.75rem;
+ }
+
+ .sblog-toolbar {
+ max-width: 28rem;
+ }
+}
+
+.sblog-progress {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 3px;
+ z-index: 1200;
+ pointer-events: none;
+ background: transparent;
+}
+.sblog-progress > span {
+ display: block;
+ height: 100%;
+ background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
+ transition: width 0.12s linear;
+}
+.sblog-toolbar { margin: 0 0 0.85rem; }
+.sblog-search input {
+ width: 100%;
+ min-height: 44px;
+ border-radius: 12px;
+ border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
+ background: color-mix(in srgb, #fff 4%, transparent);
+ color: inherit;
+ padding: 0.7rem 0.95rem;
+ font: inherit;
+}
+.sblog-search input:focus {
+ outline: 2px solid color-mix(in srgb, #4ecdc4 45%, transparent);
+ outline-offset: 1px;
+}
+.sblog-dot {
+ display: inline-block;
+ width: 3px;
+ height: 3px;
+ border-radius: 50%;
+ background: currentColor;
+ opacity: 0.45;
+ margin: 0 0.35rem;
+ vertical-align: middle;
+}
+.sblog-hero-glow {
+ position: absolute;
+ inset: -20% -10% auto;
+ height: 180px;
+ background: radial-gradient(ellipse at top, rgba(78, 205, 196, 0.14), transparent 70%);
+ pointer-events: none;
+ z-index: -1;
+}
+.sblog-hero--index, .sblog-hero--article { position: relative; }
+.sblog-featured-top, .sblog-card-top, .sblog-featured-foot, .sblog-card-foot, .sblog-meta-row, .sblog-actions, .sblog-cta-row {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 0.45rem 0.75rem;
+}
+.sblog-featured-foot, .sblog-card-foot, .sblog-meta-row { justify-content: space-between; }
+.sblog-go {
+ font-size: 0.82rem;
+ font-weight: 650;
+ color: #4ecdc4;
+}
+.sblog-pill {
+ font-size: 0.72rem;
+ padding: 0.15rem 0.5rem;
+ border-radius: 999px;
+ background: color-mix(in srgb, #4ecdc4 16%, transparent);
+ color: #99f6e4;
+}
+.sblog-empty-box {
+ padding: 1.5rem 0;
+ color: var(--muted, #94a3b8);
+}
+.sblog-text-btn, .sblog-ghost-btn {
+ appearance: none;
+ border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
+ background: transparent;
+ color: inherit;
+ font: inherit;
+ font-size: 0.85rem;
+ min-height: 36px;
+ padding: 0.35rem 0.75rem;
+ border-radius: 999px;
+ cursor: pointer;
+}
+.sblog-toc {
+ margin: 0 0 1.5rem;
+ padding: 0.9rem 1rem;
+ border-radius: 14px;
+ border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
+ background: color-mix(in srgb, #fff 3%, transparent);
+}
+.sblog-toc p {
+ margin: 0 0 0.45rem;
+ font-size: 0.75rem;
+ letter-spacing: 0.06em;
+ text-transform: uppercase;
+ color: var(--muted, #94a3b8);
+}
+.sblog-toc ol {
+ margin: 0;
+ padding-left: 1.1rem;
+}
+.sblog-toc li { margin: 0.3rem 0; }
+.sblog-cta {
+ margin: 2.5rem 0 1rem;
+ padding: 1.25rem 0 0;
+ border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
+}
+.sblog-cta h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
+.sblog-cta p { margin: 0 0 0.9rem; color: var(--muted, #94a3b8); }
+.sblog-cta-primary, .sblog-cta-secondary {
+ display: inline-flex;
+ align-items: center;
+ min-height: 44px;
+ padding: 0 1rem;
+ border-radius: 999px;
+ text-decoration: none;
+ font-weight: 650;
+}
+.sblog-cta-primary {
+ background: #ff7b75;
+ color: #0a0e17;
+}
+.sblog-cta-secondary {
+ border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
+ color: inherit;
+}
+.sblog-related-grid {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: grid;
+ gap: 0.75rem;
+}
+.sblog-related-grid a {
+ display: flex;
+ flex-direction: column;
+ gap: 0.25rem;
+ padding: 0.85rem 0;
+ border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
+ text-decoration: none;
+ color: inherit;
+}
+.sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0,0,0,0);
+ border: 0;
+}
diff --git a/src/modules/hub/app/depth.css b/src/modules/hub/app/depth.css
new file mode 100644
index 0000000..c3cbde2
--- /dev/null
+++ b/src/modules/hub/app/depth.css
@@ -0,0 +1,1733 @@
+/* =========================================================
+ Social DEPTH pass — immersive UI overrides (loads last)
+ Palette: mint / coral / gold on deep night (no purple AI sludge)
+ ========================================================= */
+
+.social-experience {
+ --sx-mint: #5ce1d6;
+ --sx-coral: #ff7a72;
+ --sx-gold: #ffd978;
+ --sx-ink: #070b12;
+ --sx-fog: rgba(186, 214, 230, 0.14);
+ --sx-glass: color-mix(in srgb, #0d1520 72%, transparent);
+ --sx-lift: 0 18px 50px rgba(0, 0, 0, 0.35);
+ --sx-pop: cubic-bezier(0.16, 1, 0.3, 1);
+ --sx-touch: 44px;
+}
+
+/* —— Atmosphere —— */
+.social-ambient {
+ background:
+ radial-gradient(900px 520px at 12% -10%, #4ecdc418, transparent 55%),
+ radial-gradient(700px 480px at 92% 8%, #ff6b6b14, transparent 50%),
+ radial-gradient(600px 420px at 50% 110%, #ffe66d10, transparent 45%),
+ var(--bg-primary);
+}
+.social-ambient i {
+ opacity: 0.11;
+ filter: blur(90px);
+}
+.social-pointer-glow {
+ background: radial-gradient(
+ 420px circle at var(--pointer-x, -1000px) var(--pointer-y, -1000px),
+ #5ce1d612,
+ transparent 70%
+ );
+}
+
+html.light .social-experience,
+html[data-theme="light"] .social-experience {
+ --sx-fog: rgba(20, 40, 55, 0.1);
+ --sx-glass: color-mix(in srgb, #ffffff 78%, transparent);
+ --sx-lift: 0 16px 40px rgba(15, 35, 55, 0.12);
+}
+html.light .social-ambient,
+html[data-theme="light"] .social-ambient {
+ background:
+ radial-gradient(900px 520px at 12% -10%, #4ecdc422, transparent 55%),
+ radial-gradient(700px 480px at 92% 8%, #ff6b6b14, transparent 50%),
+ linear-gradient(180deg, #f4f8fb, #eef3f7);
+}
+
+/* —— Workspace shell —— */
+.social-workspace-grid {
+ padding: calc(var(--nav-height) + 18px) clamp(16px, 3vw, 36px) 108px;
+}
+.social-workspace .social-main {
+ max-width: 1180px;
+}
+.social-workspace .nav-container,
+.social-home .nav-container {
+ border-color: var(--sx-fog);
+ background: var(--sx-glass);
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
+}
+.social-workspace .nav-logo .logo-icon,
+.social-home .nav-logo .logo-icon {
+ background: linear-gradient(145deg, #5ce1d628, #ff7a7220);
+ box-shadow: inset 0 0 0 1px #5ce1d633;
+}
+
+/* —— Page head as statement —— */
+.social-page-head {
+ position: relative;
+ align-items: flex-end;
+ gap: 16px 24px;
+ padding: 10px 0 22px;
+ margin-bottom: 18px;
+ border-bottom: 0;
+}
+.social-page-head::after {
+ content: "";
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ height: 1px;
+ background: linear-gradient(
+ 90deg,
+ var(--sx-mint),
+ var(--sx-gold) 42%,
+ transparent 88%
+ );
+ opacity: 0.55;
+}
+.social-page-head-eyebrow {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ padding: 5px 10px;
+ border-radius: 999px;
+ background: #5ce1d614;
+ border: 1px solid #5ce1d633;
+ font-size: 11px;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ width: fit-content;
+}
+.social-page-head h1 {
+ font-size: clamp(28px, 4.2vw, 40px);
+ letter-spacing: -0.055em;
+ font-weight: 800;
+ line-height: 1.12;
+}
+.social-page-head-mark {
+ font-size: 0.78em;
+ filter: saturate(1.2);
+}
+.social-page-head-desc {
+ max-width: 48rem;
+ font-size: 14.5px;
+ line-height: 1.65;
+ color: color-mix(in srgb, var(--text-primary) 62%, transparent);
+}
+.social-demo-badge {
+ padding: 8px 12px;
+ min-height: var(--sx-touch);
+ border-radius: 999px;
+ background: linear-gradient(120deg, #5ce1d618, #ff7a7214);
+ border-color: #5ce1d644;
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
+}
+
+/* —— Buttons —— */
+.social-experience .social-btn {
+ min-height: var(--sx-touch);
+ padding: 0 16px;
+ border-radius: 14px;
+ border: 1px solid var(--sx-fog);
+ background: color-mix(in srgb, var(--bg-glass, #ffffff08) 90%, transparent);
+ font-weight: 650;
+ letter-spacing: -0.01em;
+ transition:
+ transform 0.25s var(--sx-pop),
+ border-color 0.2s,
+ background 0.2s,
+ box-shadow 0.25s;
+}
+.social-experience .social-btn:hover {
+ transform: translateY(-2px);
+ border-color: #5ce1d655;
+ box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
+}
+.social-experience .social-btn.primary {
+ color: #062525;
+ border-color: transparent;
+ background: linear-gradient(125deg, #7aefe4, #4ecdc4 55%, #3bb8b0);
+ box-shadow:
+ 0 10px 28px #4ecdc433,
+ inset 0 1px 0 rgba(255, 255, 255, 0.35);
+}
+.social-experience .social-btn.primary:hover {
+ box-shadow:
+ 0 14px 34px #4ecdc44a,
+ inset 0 1px 0 rgba(255, 255, 255, 0.4);
+}
+.social-experience .social-btn.coral,
+.social-nav-join.primary {
+ color: #2a1210;
+ border-color: transparent;
+ background: linear-gradient(125deg, #ff9a90, #ff6b6b 60%, #f25555);
+ box-shadow: 0 10px 28px #ff6b6b33;
+}
+.social-home .connection-join {
+ min-height: 54px;
+ padding: 0 28px;
+ border-radius: 16px;
+ font-size: 14px;
+ letter-spacing: -0.02em;
+ gap: 14px;
+ background: linear-gradient(125deg, #ff9a8a, #ff6b6b 55%, #ef5555);
+ box-shadow:
+ 0 14px 40px #ff6b6b40,
+ inset 0 1px 0 rgba(255, 255, 255, 0.35);
+}
+
+/* —— Cards / panels —— */
+.social-workspace .social-card,
+.social-workspace .social-panel {
+ position: relative;
+ overflow: hidden;
+ border: 1px solid var(--sx-fog);
+ border-radius: 22px;
+ background:
+ linear-gradient(165deg, rgba(255, 255, 255, 0.035), transparent 42%),
+ var(--sx-glass);
+ box-shadow: var(--sx-lift);
+ transition:
+ transform 0.35s var(--sx-pop),
+ border-color 0.25s,
+ box-shadow 0.35s;
+}
+.social-workspace .social-card:hover,
+.social-workspace .social-panel:hover {
+ transform: translateY(-4px);
+ border-color: #5ce1d644;
+ box-shadow:
+ 0 22px 55px rgba(0, 0, 0, 0.38),
+ 0 0 0 1px #5ce1d622;
+}
+.social-workspace .social-card > strong,
+.social-workspace .social-panel h2,
+.social-workspace .social-panel h3 {
+ letter-spacing: -0.03em;
+}
+.social-workspace .social-card-ico {
+ width: 48px;
+ height: 48px;
+ border-radius: 16px;
+ background: linear-gradient(145deg, #5ce1d622, #ff7a7218);
+ box-shadow: inset 0 0 0 1px #5ce1d633;
+}
+
+/* —— Toolbar / filters —— */
+.social-toolbar {
+ gap: 12px;
+ margin-bottom: 16px;
+ padding: 12px;
+ border-radius: 18px;
+ border: 1px solid var(--sx-fog);
+ background: color-mix(in srgb, var(--sx-glass) 88%, transparent);
+ backdrop-filter: blur(16px);
+}
+.social-search {
+ min-height: var(--sx-touch);
+ border-radius: 14px;
+ border-color: var(--sx-fog);
+ background: color-mix(in srgb, var(--bg-primary) 55%, transparent);
+}
+.social-filters button,
+.social-filters [role="tab"] {
+ min-height: var(--sx-touch);
+ padding: 0 14px;
+ border-radius: 999px;
+ font-weight: 650;
+}
+.social-filters button.active,
+.social-filters [aria-selected="true"],
+.social-filters [aria-pressed="true"].active {
+ color: #062525;
+ background: linear-gradient(120deg, #7aefe4, #4ecdc4);
+ border-color: transparent;
+}
+
+/* —— Empty —— */
+.social-empty {
+ padding: 48px 28px;
+ border-radius: 24px;
+ border: 1px dashed #5ce1d644;
+ background:
+ radial-gradient(circle at 50% 0%, #5ce1d614, transparent 55%),
+ var(--sx-glass);
+}
+.social-empty > span {
+ font-size: 28px;
+ filter: drop-shadow(0 8px 18px #5ce1d633);
+}
+.social-empty h3 {
+ font-size: 20px;
+ letter-spacing: -0.03em;
+}
+.social-empty-actions {
+ margin-top: 8px;
+}
+
+/* —— Join dual paths —— */
+.social-join-paths {
+ gap: 18px;
+ margin: 4px 0 28px;
+}
+.social-join-path {
+ position: relative;
+ padding: 22px 22px 20px;
+ gap: 12px;
+ min-height: 220px;
+ overflow: hidden;
+}
+.social-join-path::before {
+ content: "";
+ position: absolute;
+ inset: auto -20% -40% auto;
+ width: 180px;
+ height: 180px;
+ border-radius: 50%;
+ background: radial-gradient(circle, #5ce1d628, transparent 70%);
+ pointer-events: none;
+}
+.social-join-path:nth-child(2)::before {
+ background: radial-gradient(circle, #ff7a7228, transparent 70%);
+}
+.social-join-path-ico {
+ width: 52px;
+ height: 52px;
+ border-radius: 18px;
+ background: linear-gradient(145deg, #5ce1d628, transparent);
+ box-shadow: inset 0 0 0 1px #5ce1d644;
+}
+.social-join-path h2 {
+ font-size: clamp(1.25rem, 2.4vw, 1.55rem);
+ letter-spacing: -0.04em;
+}
+.social-join-path .social-btn {
+ margin-top: auto;
+ width: fit-content;
+}
+.social-onboarding-grid {
+ gap: 14px;
+}
+.social-onboarding-card {
+ min-height: 150px;
+ padding: 18px;
+ display: grid;
+ align-content: space-between;
+ gap: 12px;
+}
+.social-onboarding-card h2 {
+ margin: 0;
+ font-size: 1.05rem;
+ letter-spacing: -0.03em;
+}
+
+/* —— People discovery —— */
+.social-people-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
+ gap: 12px;
+ margin-bottom: 18px;
+}
+.social-people-chip {
+ position: relative;
+ display: grid;
+ justify-items: center;
+ gap: 8px;
+ min-height: 168px;
+ padding: 16px 12px 14px;
+ border-radius: 22px;
+ border: 1px solid var(--sx-fog);
+ background: var(--sx-glass);
+ color: inherit;
+ text-align: center;
+ transition:
+ transform 0.3s var(--sx-pop),
+ border-color 0.2s,
+ box-shadow 0.3s;
+}
+.social-people-chip:hover,
+.social-people-chip.is-active {
+ transform: translateY(-5px) scale(1.01);
+ border-color: #5ce1d655;
+ box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
+}
+.social-people-chip.is-online .social-people-chip-ava i {
+ box-shadow: 0 0 0 4px #5ce1d622;
+}
+.social-people-chip-ava {
+ position: relative;
+}
+.social-people-chip-ava i {
+ position: absolute;
+ right: 2px;
+ bottom: 2px;
+ width: 11px;
+ height: 11px;
+ border-radius: 50%;
+ background: #3ddc97;
+ border: 2px solid var(--bg-primary);
+}
+.social-people-chip strong {
+ font-size: 14px;
+ letter-spacing: -0.02em;
+}
+.social-people-chip .connection-member-role,
+.social-people-chip em {
+ font-size: 11px;
+ color: var(--text-muted);
+ font-style: normal;
+}
+
+/* —— Date immersive —— */
+.social-date-root {
+ min-height: 100dvh;
+ background:
+ radial-gradient(680px 420px at 50% -5%, #ff6b6b22, transparent 55%),
+ radial-gradient(520px 360px at 80% 90%, #5ce1d618, transparent 50%),
+ var(--bg-primary);
+}
+.social-date-bar {
+ backdrop-filter: blur(18px);
+ background: color-mix(in srgb, var(--bg-primary) 78%, transparent) !important;
+ border-bottom: 1px solid var(--sx-fog);
+}
+.social-date-stage {
+ padding: 12px 16px 24px;
+}
+.social-date-deck {
+ width: min(100%, 420px);
+ /* 高度由 interaction.css 用剩余视口计算;勿再强制 aspect-ratio */
+ aspect-ratio: auto;
+ max-height: min(68dvh, 640px);
+}
+.social-date-card {
+ border-radius: 28px;
+ overflow: hidden;
+ box-shadow:
+ 0 30px 70px rgba(0, 0, 0, 0.45),
+ inset 0 0 0 1px rgba(255, 255, 255, 0.08);
+}
+.social-date-photo {
+ transform: scale(1.02);
+ filter: saturate(1.08) contrast(1.04);
+}
+.social-date-gradient {
+ background: linear-gradient(
+ 180deg,
+ transparent 28%,
+ rgba(7, 11, 18, 0.35) 55%,
+ rgba(7, 11, 18, 0.92) 100%
+ ) !important;
+}
+.social-date-meta {
+ padding: 0 22px 22px;
+}
+.social-date-name h2 {
+ font-size: clamp(26px, 5vw, 34px);
+ letter-spacing: -0.045em;
+}
+.social-date-stamp {
+ border-width: 3px;
+ font-weight: 850;
+ letter-spacing: 0.08em;
+ text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
+}
+.social-date-actions {
+ gap: 18px;
+ margin-top: 4px;
+}
+.social-date-act {
+ width: 64px;
+ height: 64px;
+ border-radius: 50%;
+ border: 1px solid var(--sx-fog);
+ background: var(--sx-glass);
+ box-shadow: var(--sx-lift);
+ transition:
+ transform 0.25s var(--sx-pop),
+ box-shadow 0.25s;
+}
+.social-date-act:hover:not(:disabled) {
+ transform: translateY(-3px) scale(1.04);
+}
+.social-date-act.like {
+ width: 72px;
+ height: 72px;
+ color: #fff;
+ border: 0;
+ background: linear-gradient(145deg, #4ade80, #16a34a);
+ box-shadow: 0 14px 36px #22c55e55;
+}
+.social-date-act.pass {
+ color: #ff8e86;
+ background: color-mix(in srgb, #ff6b6b18 70%, var(--sx-glass));
+}
+.social-date-act.reset {
+ width: 52px;
+ height: 52px;
+ color: var(--sx-gold);
+}
+.social-date-likes {
+ margin-top: 16px;
+ padding: 10px 14px;
+ border-radius: 999px;
+ border: 1px solid var(--sx-fog);
+ background: var(--sx-glass);
+ backdrop-filter: blur(12px);
+}
+.social-date-empty {
+ display: grid;
+ place-items: center;
+ gap: 14px;
+ text-align: center;
+ padding: 40px 24px;
+ border-radius: 28px;
+ border: 1px dashed #5ce1d644;
+ background: var(--sx-glass);
+}
+.social-date-toast {
+ border-radius: 999px;
+ backdrop-filter: blur(12px);
+ background: color-mix(in srgb, #0d1520 86%, transparent);
+ border: 1px solid #5ce1d644;
+ box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
+}
+
+/* —— Chat immersive —— */
+.social-chat-live {
+ background:
+ radial-gradient(700px 380px at 15% -10%, #5ce1d616, transparent 50%),
+ radial-gradient(560px 360px at 100% 100%, #ff7a7212, transparent 45%),
+ var(--bg-primary);
+}
+.social-chat-live-bar {
+ backdrop-filter: blur(18px);
+ background: color-mix(in srgb, var(--bg-primary) 80%, transparent);
+ border-bottom: 1px solid var(--sx-fog);
+}
+.social-chat-live .social-connection-status {
+ justify-content: flex-start;
+ gap: 8px;
+ padding: 6px 12px;
+ font-size: 11px;
+ font-weight: 600;
+ letter-spacing: 0.02em;
+ background: transparent;
+ border-bottom: 1px solid var(--sx-fog);
+}
+.social-chat-live .social-chat-thread {
+ gap: 10px;
+ padding: 12px 14px 16px;
+ height: auto !important;
+ min-height: 0 !important;
+ max-height: none !important;
+}
+.social-message {
+ max-width: min(92%, 520px);
+}
+.social-message-avatar {
+ width: 36px;
+ height: 36px;
+ border-radius: 14px;
+}
+.social-message-body > p,
+.social-message-body > .social-msg-bubble {
+ padding: 12px 15px;
+ border-radius: 4px 18px 18px 18px;
+ background: color-mix(in srgb, var(--sx-glass) 92%, #fff);
+ box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
+ line-height: 1.65;
+}
+.social-message.mine .social-message-body > p,
+.social-message.mine .social-message-body > .social-msg-bubble {
+ border-radius: 18px 4px 18px 18px;
+ background: linear-gradient(160deg, #5ce1d628, #4ecdc418);
+ border-color: #5ce1d644;
+}
+.social-chat-live .social-chat-composer {
+ padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
+ border-top: 1px solid var(--sx-fog);
+ background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
+ backdrop-filter: blur(16px);
+}
+.social-chat-live .social-chat-composer textarea {
+ min-height: 52px;
+ padding: 10px 12px;
+ border-radius: 16px;
+ border: 1px solid var(--sx-fog);
+ background: var(--sx-glass);
+ font-size: 15px;
+}
+.social-composer-toolbar {
+ margin-top: 10px;
+ flex-wrap: wrap;
+ gap: 8px;
+}
+.social-composer-emoji {
+ width: var(--sx-touch);
+ height: var(--sx-touch);
+ border-radius: 14px;
+}
+.social-nick-label {
+ min-height: var(--sx-touch);
+ padding: 0 10px;
+ border-radius: 12px;
+ border: 1px solid var(--sx-fog);
+ background: var(--sx-glass);
+}
+.social-chat-starters .social-btn {
+ border-radius: 999px;
+ background: #5ce1d612;
+ border-color: #5ce1d644;
+}
+
+/* —— Cafe / role / meetup cards —— */
+.social-cafe-grid .social-card,
+.social-role-grid .social-card,
+.social-channel-grid .social-card {
+ padding: 0 0 16px;
+}
+.social-cafe-art,
+.social-role-art {
+ height: 110px;
+ border-radius: 22px 22px 0 0;
+ background:
+ radial-gradient(circle at 20% 30%, #5ce1d633, transparent 45%),
+ radial-gradient(circle at 80% 70%, #ff7a7228, transparent 40%),
+ linear-gradient(160deg, #101925, #0a1018);
+}
+.social-cafe-grid .social-card > :not(.social-cafe-art),
+.social-role-grid .social-card > :not(.social-role-art) {
+ padding-inline: 16px;
+}
+.social-cafe-detail,
+.social-profile-studio .social-panel {
+ padding: 22px;
+}
+.social-profile-passport {
+ border-radius: 26px;
+ border: 1px solid #5ce1d644;
+ background:
+ radial-gradient(circle at 85% 10%, #5ce1d622, transparent 40%),
+ linear-gradient(165deg, #121b28, #0a111a 70%);
+ box-shadow: var(--sx-lift);
+}
+.social-profile-monogram {
+ background: linear-gradient(145deg, #7aefe4, #4ecdc4);
+ color: #062525;
+ box-shadow: 0 12px 30px #4ecdc444;
+}
+
+/* —— Membership / VIP —— */
+.social-membership-banner {
+ padding: 22px;
+ border-radius: 24px;
+ border: 1px solid #ffd97844;
+ background:
+ radial-gradient(circle at 0% 0%, #ffd97822, transparent 45%),
+ var(--sx-glass);
+ margin-bottom: 18px;
+}
+.social-benefit-list li {
+ min-height: 36px;
+ padding: 8px 12px;
+ border-radius: 12px;
+ background: #ffffff06;
+}
+
+/* —— Dialogs —— */
+.social-dialog {
+ border: 0;
+ background: transparent;
+ padding: 0;
+ max-width: min(92vw, 460px);
+}
+.social-dialog::backdrop {
+ background: rgba(4, 8, 14, 0.72);
+ backdrop-filter: blur(8px);
+}
+.social-dialog-sheet {
+ border-radius: 24px 24px 20px 20px;
+ border: 1px solid var(--sx-fog);
+ background: color-mix(in srgb, #0d1520 94%, transparent);
+ box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
+ overflow: hidden;
+}
+.social-dialog-sheet header {
+ padding: 16px 18px;
+ border-bottom: 1px solid var(--sx-fog);
+}
+.social-dialog-body {
+ padding: 18px;
+}
+@media (max-width: 720px) {
+ .social-dialog {
+ max-width: 100vw;
+ width: 100%;
+ margin: 0;
+ align-self: end;
+ }
+ .social-dialog-sheet {
+ border-radius: 22px 22px 0 0;
+ max-height: min(88dvh, 720px);
+ }
+}
+
+/* —— Mobile dock(底栏细节以 h5.css 为准) —— */
+@media (max-width: 900px) {
+ .social-mobile-dock {
+ display: grid;
+ grid-template-columns: repeat(5, 1fr);
+ gap: 0;
+ position: fixed;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ z-index: 60;
+ padding: 6px 8px max(8px, env(safe-area-inset-bottom, 0px));
+ border-radius: 0;
+ border: none;
+ border-top: 1px solid var(--sx-fog);
+ background: color-mix(in srgb, var(--bg-primary, #0c0c0f) 92%, transparent);
+ backdrop-filter: blur(18px) saturate(1.15);
+ box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.14);
+ }
+ .social-mobile-dock a {
+ min-height: 52px;
+ border-radius: 12px;
+ color: var(--text-muted);
+ font-size: 10px;
+ font-weight: 650;
+ gap: 3px;
+ }
+ .social-mobile-dock a[aria-current="page"] {
+ color: #f59e0b;
+ background: color-mix(in srgb, #f59e0b 12%, transparent);
+ box-shadow: none;
+ }
+ .social-fx-control {
+ bottom: calc(68px + env(safe-area-inset-bottom, 0px));
+ right: 14px;
+ }
+ .social-workspace-grid,
+ .social-workspace-dense .social-workspace-grid {
+ padding-bottom: 118px;
+ }
+}
+
+/* —— Home depth —— */
+.social-home .connection-hero {
+ padding-top: 128px;
+ min-height: min(92dvh, 820px);
+}
+.social-home .connection-copy h1 {
+ font-size: clamp(44px, 6.2vw, 72px);
+ line-height: 1.05;
+ letter-spacing: -0.06em;
+}
+.social-home .connection-description {
+ font-size: 15px;
+ max-width: 36rem;
+ line-height: 1.85;
+}
+.social-home .connection-ways {
+ display: grid;
+ grid-template-columns: repeat(5, minmax(0, 1fr));
+ gap: 12px;
+ margin-top: -8px;
+ margin-bottom: 28px;
+}
+.social-home .connection-way {
+ min-height: 108px;
+ padding: 18px 16px;
+ border-radius: 20px;
+ border: 1px solid var(--connection-border, var(--sx-fog));
+ background: var(--sx-glass);
+ backdrop-filter: blur(14px);
+ transition:
+ transform 0.3s var(--sx-pop),
+ border-color 0.2s,
+ box-shadow 0.3s;
+}
+.social-home .connection-way:hover {
+ transform: translateY(-5px);
+ box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
+}
+.social-home .connection-way.mint:hover {
+ border-color: #5ce1d666;
+}
+.social-home .connection-way.coral:hover {
+ border-color: #ff7a7266;
+}
+.social-home .connection-way.yellow:hover {
+ border-color: #ffd97866;
+}
+.social-home .social-panel {
+ border-radius: 24px;
+ border-color: var(--sx-fog);
+ background: var(--sx-glass);
+ box-shadow: var(--sx-lift);
+}
+.social-home .connection-invite {
+ position: relative;
+ margin: 28px auto 40px;
+ padding: 36px 28px;
+ border-radius: 28px;
+ overflow: hidden;
+ border: 1px solid #ff7a7244;
+ background:
+ radial-gradient(circle at 85% 20%, #ff7a7228, transparent 40%),
+ radial-gradient(circle at 10% 80%, #5ce1d61f, transparent 35%),
+ var(--sx-glass);
+}
+.social-home .social-path {
+ position: relative;
+ z-index: 1;
+ backdrop-filter: none;
+}
+.social-home .social-path-track {
+ gap: 8px;
+ padding: 10px;
+ border-radius: 18px;
+ border: 1px solid var(--sx-fog);
+ background: var(--sx-glass);
+}
+.social-home .social-path-link {
+ min-height: 40px;
+ padding: 0 14px;
+ border-radius: 999px;
+}
+.social-home .social-path-link[aria-current="location"] {
+ color: var(--connection-mint, #4ecdc4);
+ border-color: color-mix(in srgb, var(--connection-mint, #4ecdc4) 45%, transparent);
+ background: color-mix(in srgb, var(--connection-mint, #4ecdc4) 14%, transparent);
+ box-shadow: none;
+}
+
+@media (max-width: 1200px) and (min-width: 901px) {
+ .social-home .connection-ways {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ }
+}
+
+@media (max-width: 900px) {
+ .social-home .connection-hero {
+ padding-top: 108px;
+ min-height: auto;
+ }
+ .social-people-grid {
+ grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
+ }
+}
+
+@media (max-width: 560px) {
+ .social-composer-toolbar .social-nick-label {
+ order: 3;
+ width: 100%;
+ }
+ .social-date-act {
+ width: 58px;
+ height: 58px;
+ }
+ .social-date-act.like {
+ width: 66px;
+ height: 66px;
+ }
+}
+
+/* —— Join pay sheet —— */
+.social-join-dialog {
+ border: 0;
+ padding: 0;
+ background: transparent;
+ max-width: min(92vw, 420px);
+}
+.social-join-dialog::backdrop {
+ background: rgba(4, 8, 14, 0.75);
+ backdrop-filter: blur(10px);
+}
+.social-join-sheet {
+ padding: 22px 22px 20px;
+ border-radius: 24px;
+ border: 1px solid var(--sx-fog);
+ background:
+ radial-gradient(circle at 100% 0%, #ff7a7228, transparent 40%),
+ color-mix(in srgb, #0d1520 94%, transparent);
+ box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
+}
+.social-join-title {
+ margin: 10px 0 8px;
+ font-size: 28px;
+ letter-spacing: -0.045em;
+ font-weight: 800;
+}
+.social-join-field {
+ display: grid;
+ gap: 8px;
+ margin: 18px 0 12px;
+ font-size: 13px;
+}
+.social-join-field input {
+ min-height: var(--sx-touch);
+ padding: 0 14px;
+ border-radius: 14px;
+ border: 1px solid var(--sx-fog);
+ background: var(--sx-glass);
+ color: var(--text-primary);
+ font: inherit;
+}
+.social-join-submit {
+ width: 100%;
+ min-height: 52px;
+ border-radius: 14px !important;
+ font-weight: 750 !important;
+ background: linear-gradient(125deg, #ff9a8a, #ff6b6b) !important;
+ border: 0 !important;
+ color: #2a1210 !important;
+}
+.social-join-privacy {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ margin-top: 12px;
+ font-size: 11px;
+ color: var(--text-muted);
+}
+@media (max-width: 720px) {
+ .social-join-dialog {
+ max-width: 100vw;
+ width: 100%;
+ margin: 0;
+ align-self: end;
+ }
+ .social-join-sheet {
+ border-radius: 22px 22px 0 0;
+ }
+}
+
+/* —— Home people detail strip —— */
+.social-home .social-people-detail {
+ display: grid;
+ grid-template-columns: auto 1fr auto;
+ gap: 14px;
+ align-items: center;
+ margin-top: 16px;
+ padding: 16px 18px;
+ border-radius: 22px;
+ border: 1px solid var(--sx-fog);
+ background: var(--sx-glass);
+ box-shadow: var(--sx-lift);
+}
+.social-home .social-people-detail strong {
+ display: grid;
+ gap: 4px;
+ letter-spacing: -0.02em;
+}
+.social-home .social-people-detail strong span {
+ font-size: 12px;
+ font-weight: 500;
+ color: var(--text-muted);
+}
+.social-home .social-people-detail-acts {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ justify-content: flex-end;
+}
+.social-home .social-people-hint {
+ margin-top: 14px;
+ color: var(--text-muted);
+ font-size: 13px;
+}
+@media (max-width: 720px) {
+ .social-home .social-people-detail {
+ grid-template-columns: auto 1fr;
+ }
+ .social-home .social-people-detail-acts {
+ grid-column: 1 / -1;
+ justify-content: stretch;
+ }
+ .social-home .social-people-detail-acts .btn {
+ flex: 1;
+ min-height: var(--sx-touch);
+ }
+}
+
+/* —— Meetup events —— */
+.social-event-banner {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ margin: 0 0 16px;
+ padding: 10px 14px;
+ border-radius: 999px;
+ border: 1px solid var(--sx-fog);
+ background: var(--sx-glass);
+ color: var(--text-secondary);
+ font-size: 12px;
+}
+.social-event-grid {
+ gap: 18px;
+}
+.social-event-card {
+ padding: 0 0 18px !important;
+ display: grid;
+ gap: 0;
+}
+.social-event-art {
+ margin: 0 !important;
+ min-height: 148px !important;
+ border-radius: 22px 22px 0 0;
+ border-bottom: 1px solid var(--sx-fog) !important;
+ background:
+ radial-gradient(ellipse at 20% 80%, #5ce1d622, transparent 60%),
+ linear-gradient(160deg, #101925, #0a1018) !important;
+}
+.social-event-card.event-1 .social-event-art {
+ background:
+ radial-gradient(ellipse at 20% 80%, #ff7a7228, transparent 60%),
+ linear-gradient(160deg, #1a1216, #0a1018) !important;
+}
+.social-event-card.event-2 .social-event-art {
+ background:
+ radial-gradient(ellipse at 20% 80%, #ffd97822, transparent 60%),
+ linear-gradient(160deg, #16140f, #0a1018) !important;
+ color: var(--sx-gold);
+}
+.social-event-body {
+ display: grid;
+ gap: 10px;
+ padding: 16px 18px 0;
+}
+.social-event-cta {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+ margin-top: 4px;
+}
+.social-event-tools {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ padding-top: 4px;
+ border-top: 1px solid var(--sx-fog);
+ margin-top: 4px;
+ padding-bottom: 2px;
+}
+
+/* —— Meetup live room —— */
+.social-meetup-live {
+ background:
+ radial-gradient(700px 380px at 10% -10%, #5ce1d618, transparent 50%),
+ radial-gradient(560px 360px at 100% 100%, #ff7a7214, transparent 45%),
+ var(--bg-primary);
+}
+.social-live-bar {
+ backdrop-filter: blur(18px);
+ background: color-mix(in srgb, var(--bg-primary) 82%, transparent) !important;
+ border-bottom: 1px solid var(--sx-fog) !important;
+}
+.social-live-conn {
+ display: inline-flex;
+ align-items: center;
+ min-height: 28px;
+ padding: 0 10px;
+ border-radius: 999px;
+ border: 1px solid var(--sx-fog);
+ font-size: 11px;
+ font-weight: 650;
+ color: var(--text-muted);
+ white-space: nowrap;
+}
+.social-live-conn.is-on {
+ color: #062525;
+ background: linear-gradient(120deg, #7aefe4, #4ecdc4);
+ border-color: transparent;
+}
+.social-live-conn.is-off {
+ color: var(--sx-gold);
+ border-color: #ffd97855;
+ background: #ffd97814;
+}
+.social-live-gate {
+ display: grid;
+ place-items: center;
+ gap: 12px;
+ text-align: center;
+ min-height: min(58dvh, 520px);
+ padding: 36px 24px;
+ border-radius: 24px;
+ border: 1px solid var(--sx-fog);
+ background:
+ radial-gradient(circle at 50% 20%, #5ce1d61f, transparent 50%),
+ var(--sx-glass);
+}
+.social-live-gate h2 {
+ margin: 0;
+ font-size: clamp(22px, 3vw, 30px);
+ letter-spacing: -0.04em;
+}
+.social-live-radar {
+ position: relative;
+ width: 120px;
+ height: 120px;
+ display: grid;
+ place-items: center;
+ margin-bottom: 8px;
+}
+.social-live-radar i {
+ position: absolute;
+ inset: 0;
+ border-radius: 50%;
+ border: 1px solid #5ce1d655;
+ animation: social-radar 2.8s ease-out infinite;
+}
+.social-live-radar i:nth-child(2) {
+ animation-delay: 0.7s;
+}
+.social-live-radar i:nth-child(3) {
+ animation-delay: 1.4s;
+}
+.social-live-radar span {
+ position: relative;
+ z-index: 1;
+ font-size: 12px;
+ font-weight: 800;
+ letter-spacing: 0.16em;
+ color: var(--sx-mint);
+}
+@keyframes social-radar {
+ 0% {
+ transform: scale(0.35);
+ opacity: 0.85;
+ }
+ 100% {
+ transform: scale(1.15);
+ opacity: 0;
+ }
+}
+.social-live-empty {
+ display: grid;
+ gap: 6px;
+ place-items: center;
+ text-align: center;
+ padding: 36px 16px;
+ color: var(--text-secondary);
+}
+.social-live-empty strong {
+ color: var(--text-primary);
+ letter-spacing: -0.02em;
+}
+.social-live-chat {
+ border-left: 1px solid var(--sx-fog);
+ background: color-mix(in srgb, var(--bg-primary) 70%, transparent);
+}
+.social-live-chat-head {
+ padding: 12px 14px;
+ border-bottom: 1px solid var(--sx-fog);
+}
+.social-compose {
+ display: flex;
+ gap: 8px;
+ padding: 12px;
+ border-top: 1px solid var(--sx-fog);
+ background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
+}
+.social-compose input {
+ flex: 1;
+ min-height: var(--sx-touch);
+ padding: 0 14px;
+ border-radius: 14px;
+ border: 1px solid var(--sx-fog);
+ background: var(--sx-glass);
+ color: var(--text-primary);
+ font: inherit;
+}
+.social-bubble {
+ border-radius: 16px;
+ border: 1px solid var(--sx-fog);
+ background: var(--sx-glass);
+ padding: 10px 12px;
+ margin: 8px 12px;
+}
+.social-bubble.mine {
+ border-color: #5ce1d644;
+ background: linear-gradient(160deg, #5ce1d622, #4ecdc414);
+}
+.social-bubble header {
+ display: flex;
+ gap: 8px;
+ align-items: center;
+ font-size: 11px;
+ margin-bottom: 4px;
+}
+.social-bubble header span {
+ font-size: 9px;
+ padding: 1px 5px;
+ border-radius: 4px;
+ border: 1px solid var(--sx-fog);
+ color: var(--text-muted);
+}
+
+/* —— Cafe master-detail —— */
+.social-cafe-layout {
+ display: grid;
+ grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.9fr);
+ gap: 18px;
+ align-items: start;
+}
+.social-cafe-aside {
+ position: sticky;
+ top: calc(var(--nav-height) + 12px);
+}
+.social-cafe-detail {
+ padding: 0 0 18px !important;
+ overflow: hidden;
+}
+.social-cafe-detail-hero {
+ display: flex;
+ align-items: flex-end;
+ justify-content: space-between;
+ min-height: 120px;
+ padding: 20px;
+ margin-bottom: 8px;
+ color: var(--sx-mint);
+ background:
+ radial-gradient(circle at 20% 30%, #5ce1d633, transparent 45%),
+ radial-gradient(circle at 85% 70%, #ffd97822, transparent 40%),
+ linear-gradient(160deg, #101925, #0a1018);
+}
+.social-cafe-detail-hero span {
+ font-size: 12px;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--text-muted);
+}
+.social-cafe-detail > :not(.social-cafe-detail-hero) {
+ padding-inline: 18px;
+}
+.social-cafe-facts {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin: 10px 0 14px;
+}
+.social-cafe-facts span {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ min-height: 34px;
+ padding: 0 10px;
+ border-radius: 999px;
+ border: 1px solid var(--sx-fog);
+ background: #ffffff06;
+ font-size: 12px;
+}
+.social-cafe-grid .social-card.active {
+ border-color: #5ce1d666;
+ box-shadow:
+ 0 18px 40px rgba(0, 0, 0, 0.3),
+ 0 0 0 1px #5ce1d633;
+}
+.social-review-layout {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 16px;
+ margin-top: 18px;
+}
+.social-review-list article {
+ padding: 12px;
+ border-radius: 14px;
+ border: 1px solid var(--sx-fog);
+ background: #ffffff05;
+ margin-bottom: 8px;
+}
+
+/* —— Roles / library / feedback / forms —— */
+.social-role-brief {
+ margin: 0 0 8px;
+ color: var(--text-secondary);
+ line-height: 1.65;
+}
+.social-role-card .social-role-art {
+ margin-bottom: 8px;
+}
+.social-library-grid,
+.social-grid.social-library-grid {
+ gap: 16px;
+}
+.social-resource-player {
+ width: 100%;
+ border-radius: 16px;
+ background: #000;
+ margin-bottom: 12px;
+}
+.social-feedback-panel {
+ max-width: 640px;
+ padding: 22px !important;
+ display: grid;
+ gap: 12px;
+}
+.social-feedback-title {
+ margin: 0;
+ font-size: clamp(22px, 3vw, 28px);
+ letter-spacing: -0.04em;
+}
+.social-library-card {
+ padding: 0 0 16px !important;
+ overflow: hidden;
+}
+.social-library-art {
+ position: relative;
+ display: grid;
+ place-items: center;
+ min-height: 160px;
+ width: 100%;
+ border: 0;
+ border-radius: 22px 22px 0 0;
+ color: inherit;
+ cursor: pointer;
+ background:
+ radial-gradient(circle at 30% 20%, #5ce1d633, transparent 45%),
+ linear-gradient(160deg, #121b28, #0a1018);
+}
+.social-library-art.library-tone-1 {
+ background:
+ radial-gradient(circle at 30% 20%, #ff7a7228, transparent 45%),
+ linear-gradient(160deg, #1a1216, #0a1018);
+}
+.social-library-art.library-tone-2 {
+ background:
+ radial-gradient(circle at 30% 20%, #ffd97822, transparent 45%),
+ linear-gradient(160deg, #16140f, #0a1018);
+}
+.social-library-card > :not(.social-library-art) {
+ padding-inline: 16px;
+}
+.social-library-card h2 {
+ margin: 8px 0 6px;
+ font-size: 1.05rem;
+ letter-spacing: -0.03em;
+}
+.social-feedback-panel textarea,
+.social-form textarea,
+.social-form input:not([type="checkbox"]),
+.social-select {
+ min-height: var(--sx-touch);
+ border-radius: 14px;
+ border: 1px solid var(--sx-fog);
+ background: color-mix(in srgb, var(--bg-primary) 55%, transparent);
+ color: var(--text-primary);
+ font: inherit;
+ padding: 10px 12px;
+}
+.social-form textarea {
+ min-height: 120px;
+ resize: vertical;
+}
+.social-form label {
+ display: grid;
+ gap: 8px;
+ font-size: 13px;
+}
+.social-badge {
+ display: inline-flex;
+ align-items: center;
+ min-height: 26px;
+ padding: 0 9px;
+ border-radius: 999px;
+ border: 1px solid var(--sx-fog);
+ font-size: 11px;
+ font-weight: 650;
+ color: var(--text-secondary);
+ background: #ffffff06;
+}
+.social-badge.live {
+ color: #062525;
+ border-color: transparent;
+ background: linear-gradient(120deg, #7aefe4, #4ecdc4);
+}
+.social-save {
+ min-height: 40px;
+ padding: 0 12px;
+ border-radius: 12px;
+ border: 1px solid var(--sx-fog);
+ background: transparent;
+ color: var(--text-secondary);
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ font: inherit;
+ font-size: 12px;
+ font-weight: 650;
+ text-decoration: none;
+}
+.social-save.selected,
+.social-save:hover {
+ color: var(--sx-mint);
+ border-color: #5ce1d655;
+}
+
+@media (max-width: 980px) {
+ .social-cafe-layout {
+ grid-template-columns: 1fr;
+ }
+ .social-cafe-aside {
+ position: static;
+ }
+ .social-review-layout {
+ grid-template-columns: 1fr;
+ }
+ .social-live-bar-main {
+ flex-wrap: wrap;
+ }
+}
+
+@media (max-width: 720px) {
+ .social-event-grid {
+ grid-template-columns: 1fr !important;
+ }
+ .social-live-stage.layout-split {
+ grid-template-columns: 1fr !important;
+ }
+ .social-meetup-live {
+ padding-bottom: 88px;
+ }
+}
+
+/* —— Apply / contribute forms —— */
+.social-apply {
+ display: grid;
+ gap: 16px;
+}
+.social-apply-hero {
+ display: grid;
+ gap: 8px;
+ padding: 14px 16px;
+ border-radius: 16px;
+ border: 1px solid color-mix(in srgb, var(--sx-mint, #5ce1d6) 28%, transparent);
+ background:
+ radial-gradient(circle at 12% 0%, #5ce1d61a, transparent 55%),
+ color-mix(in srgb, var(--bg-primary) 70%, transparent);
+}
+.social-apply-hero strong {
+ font-size: 1.15rem;
+ letter-spacing: -0.03em;
+}
+.social-apply-kind {
+ display: inline-flex;
+ width: fit-content;
+ min-height: 26px;
+ align-items: center;
+ padding: 0 10px;
+ border-radius: 999px;
+ background: #5ce1d61a;
+ color: var(--sx-mint, #5ce1d6);
+ font-size: 11px;
+ font-weight: 650;
+}
+.social-apply-progress {
+ display: grid;
+ gap: 8px;
+}
+.social-apply-progress-track {
+ display: block;
+ height: 8px;
+ border-radius: 999px;
+ background: #ffffff10;
+ overflow: hidden;
+}
+.social-apply-progress-track > i {
+ display: block;
+ height: 100%;
+ border-radius: inherit;
+ background: linear-gradient(90deg, #5ce1d6, #ffe66d);
+ transition: width 0.35s ease;
+}
+.social-apply-progress > small {
+ font-size: 12px;
+ color: var(--text-muted);
+}
+.social-apply-prompts {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-top: 8px;
+}
+.social-apply-chip {
+ border: 1px solid #ffffff18;
+ background: #ffffff08;
+ color: var(--text-secondary);
+ border-radius: 999px;
+ min-height: 32px;
+ padding: 0 12px;
+ font: inherit;
+ font-size: 12px;
+ cursor: pointer;
+}
+.social-apply-chip:hover {
+ border-color: #5ce1d644;
+ color: #5ce1d6;
+}
+.social-apply-done {
+ display: grid;
+ gap: 12px;
+ justify-items: start;
+ padding: 8px 2px 4px;
+}
+.social-apply-done-mark {
+ display: grid;
+ place-items: center;
+ width: 48px;
+ height: 48px;
+ border-radius: 16px;
+ background: #5ce1d622;
+ color: #5ce1d6;
+}
+.social-apply-done strong {
+ font-size: 1.2rem;
+ letter-spacing: -0.03em;
+}
+.social-apply-summary {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ align-items: center;
+ padding: 10px 12px;
+ border-radius: 12px;
+ background: #ffffff08;
+ border: 1px solid #ffffff12;
+}
+.social-apply-summary em {
+ font-style: normal;
+ font-weight: 650;
+}
+.social-apply-resume-tag {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ font-size: 12px;
+ color: var(--text-secondary, #94a3b8);
+}
+.social-apply-resume {
+ display: grid;
+ gap: 8px;
+ padding: 12px;
+ border-radius: 14px;
+ border: 1px dashed color-mix(in srgb, #fff 16%, transparent);
+ background: color-mix(in srgb, #fff 4%, transparent);
+}
+.social-apply-resume-label {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ font-size: 13px;
+ font-weight: 650;
+}
+.social-apply-resume-input {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ opacity: 0;
+ pointer-events: none;
+}
+.social-apply-resume-file {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ flex-wrap: wrap;
+}
+.social-apply-resume-file a {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ min-height: 40px;
+ color: #5ce1d6;
+ text-decoration: none;
+ font-size: 13px;
+ font-weight: 600;
+ word-break: break-all;
+}
+.social-apply-resume-file a:hover {
+ text-decoration: underline;
+}
+.social-contribute-btn {
+ margin-left: auto;
+}
+.social-event-bars {
+ gap: 4px !important;
+ height: 64px !important;
+}
+.social-event-bars i {
+ display: block;
+ width: 3px;
+ border-radius: 2px;
+ opacity: 1 !important;
+ background: linear-gradient(to top, #4ecdc41f, #4ecdc4a3) !important;
+ animation: connection-audio 1.55s ease-in-out infinite !important;
+}
+.social-event-card.event-1 .social-event-bars i {
+ background: linear-gradient(to top, #ff6b6b1f, #ff6b6ba3) !important;
+}
+.social-event-art.is-live {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 12px;
+}
+.social-event-art.is-live .social-video-grid {
+ margin-left: auto;
+}
+.social-event-body .social-meetup-faces {
+ margin: 0 0 10px;
+}
+.social-event-body .social-meetup-faces > * {
+ border-color: #0c0c0f;
+}
+.social-live-faces {
+ justify-content: center;
+ margin: 14px 0 18px;
+}
+.social-live-faces > em {
+ color: #7aefe4;
+}
+.social-date-hint.is-alive {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 14px;
+ flex-wrap: wrap;
+}
+.social-date-hint-side {
+ font-weight: 650;
+ font-size: 12px;
+}
+.social-date-hint-side.pass {
+ color: #94a3b8;
+ animation: social-date-hint-nudge 2.4s ease-in-out infinite;
+}
+.social-date-hint-side.like {
+ color: #ff8f8f;
+ animation: social-date-hint-nudge 2.4s ease-in-out infinite 0.35s;
+}
+.social-date-actions.is-alive .social-date-act.like:not(:disabled) {
+ animation: social-date-act-glow 2.6s ease-in-out infinite;
+}
+@keyframes social-date-hint-nudge {
+ 0%,
+ 100% {
+ opacity: 0.55;
+ transform: translateX(0);
+ }
+ 50% {
+ opacity: 1;
+ transform: translateX(3px);
+ }
+}
+@keyframes social-date-act-glow {
+ 0%,
+ 100% {
+ box-shadow: 0 0 0 0 #ff6b6b00;
+ }
+ 50% {
+ box-shadow: 0 0 0 8px #ff6b6b18;
+ }
+}
+
+.social-profile-meter {
+ margin-left: auto;
+ font-size: 12px;
+ font-weight: 700;
+ color: #7aefe4;
+}
+.social-chat-bar-tools {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 8px;
+}
+.social-chat-presence {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 12px;
+ margin: 0 16px 10px;
+ padding: 10px 14px;
+ border-radius: 16px;
+ border: 1px solid #5ce1d628;
+ background:
+ radial-gradient(circle at 0% 50%, #5ce1d618, transparent 45%),
+ color-mix(in srgb, var(--sx-glass, #12141a) 88%, transparent);
+}
+.social-chat-presence-avs {
+ display: flex;
+}
+.social-chat-presence-avs > * {
+ margin-left: -8px;
+ border: 2px solid #0c0c0f;
+ border-radius: 999px;
+}
+.social-chat-presence-avs > *:first-child {
+ margin-left: 0;
+}
+.social-chat-presence > p {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ margin: 0;
+ font-size: 12px;
+ color: var(--text-muted);
+}
+.social-chat-presence > p strong {
+ color: #7aefe4;
+}
+.social-chat-presence-link {
+ margin-left: auto;
+ font-size: 12px;
+ font-weight: 650;
+ color: #7aefe4;
+ text-decoration: none;
+}
+.social-chat-presence-link:hover {
+ text-decoration: underline;
+}
+@media (max-width: 720px) {
+ .social-chat-presence {
+ margin: 0 10px 8px;
+ }
+ .social-chat-presence-link {
+ margin-left: 0;
+ }
+ .social-chat-bar-tools {
+ width: 100%;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .social-workspace .social-card,
+ .social-workspace .social-panel,
+ .social-experience .social-btn,
+ .social-home .connection-way,
+ .social-people-chip,
+ .social-date-act {
+ transition: none !important;
+ }
+ .social-workspace .social-card:hover,
+ .social-workspace .social-panel:hover,
+ .social-home .connection-way:hover,
+ .social-people-chip:hover {
+ transform: none;
+ }
+ .social-live-radar i,
+ .social-date-hint-side,
+ .social-date-actions.is-alive .social-date-act.like {
+ animation: none !important;
+ }
+}
diff --git a/src/modules/hub/app/discovery.css b/src/modules/hub/app/discovery.css
new file mode 100644
index 0000000..c7e1dbc
--- /dev/null
+++ b/src/modules/hub/app/discovery.css
@@ -0,0 +1,87 @@
+/* Intent-led discovery and connection cards. Scoped to the social shell. */
+.hub-skin .social-page-head .social-actions { min-width: 0; max-width: 100%; }
+.hub-skin .social-page-head .social-demo-badge { white-space: normal; overflow-wrap: anywhere; line-height: 1.6; max-width: 100%; }
+.hub-skin .social-intent-guide { margin-top: 26px; margin-bottom: 40px; }
+.hub-skin .intent-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
+.hub-skin .people-eyebrow { font-size: 10px; letter-spacing: .14em; font-weight: 700; color: var(--accent-3, #4ecdc4); }
+.hub-skin .intent-heading h2 { margin: 0; font-size: clamp(19px, 2.4vw, 26px); letter-spacing: -.035em; }
+.hub-skin .intent-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
+.hub-skin .intent-options button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px; border: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent); border-radius: 14px; background: var(--bg-glass); color: var(--text-secondary); font: inherit; font-size: 13px; cursor: pointer; transition: background .2s, border-color .2s; }
+.hub-skin .intent-options button[aria-pressed="true"] { color: var(--text-primary); border-color: var(--accent-3, #4ecdc4); background: color-mix(in srgb, var(--accent-3, #4ecdc4) 12%, var(--bg-primary)); }
+.hub-skin .intent-panel { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 30px; border: 1px solid color-mix(in srgb, var(--accent-3, #4ecdc4) 25%, transparent); border-radius: 22px; background: linear-gradient(115deg, color-mix(in srgb, var(--accent-3, #4ecdc4) 8%, transparent), transparent 65%), var(--bg-card); }
+.hub-skin .intent-art { position: relative; display: grid; place-items: center; width: 100px; height: 100px; border: 1px dashed color-mix(in srgb, var(--accent-3, #4ecdc4) 40%, transparent); border-radius: 50%; color: var(--accent-3, #4ecdc4); }
+.hub-skin .intent-art span { position: absolute; inset: 12px; border: 1px solid color-mix(in srgb, var(--accent-3, #4ecdc4) 20%, transparent); border-radius: 50%; }
+.hub-skin .intent-art i { position: absolute; width: 9px; height: 9px; right: 7px; top: 13px; border-radius: 50%; background: var(--accent-3, #4ecdc4); box-shadow: 0 0 18px color-mix(in srgb, var(--accent-3, #4ecdc4) 45%, transparent); }
+.hub-skin .intent-step { margin: 0 0 9px; color: var(--accent-3, #4ecdc4); font-size: 11px; }
+.hub-skin .intent-panel-copy h3 { margin: 0 0 10px; font-size: clamp(18px, 2vw, 24px); letter-spacing: -.03em; line-height: 1.35; }
+.hub-skin .intent-panel-copy > p:last-child { margin: 0; max-width: 540px; color: var(--text-secondary); font-size: 13px; line-height: 1.8; }
+.hub-skin .intent-panel-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
+.hub-skin .intent-panel-actions > a:last-child { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 12px; min-height: 44px; }
+.hub-skin .people-discovery-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 20px 0; padding: 28px; border: 1px solid color-mix(in srgb, var(--accent-3, #4ecdc4) 25%, transparent); border-radius: 20px; background: linear-gradient(110deg, color-mix(in srgb, var(--accent-3, #4ecdc4) 9%, transparent), transparent), var(--bg-card); }
+.hub-skin .people-discovery-banner h2 { margin: 8px 0; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; letter-spacing: -.035em; }
+.hub-skin .people-discovery-banner p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
+.hub-skin .people-discovery-banner > a { flex-shrink: 0; }
+.hub-skin .people-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; border-radius: 18px; }
+.hub-skin .people-toolbar-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 200px) auto; align-items: end; gap: 12px; }
+.hub-skin .people-toolbar .social-search { width: 100%; min-width: 0; min-height: 46px; margin: 0; }
+.hub-skin .people-select { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--text-secondary); font-size: 11px; }
+.hub-skin .people-select select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 30px 9px 12px; color: var(--text-primary); border: 1px solid color-mix(in srgb, var(--text-primary) 14%, transparent); border-radius: 10px; background: var(--bg-secondary); font: inherit; font-size: 12px; text-overflow: ellipsis; }
+.hub-skin .people-refine { min-height: 46px; justify-content: center; }
+.hub-skin .people-refinements { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent); }
+.hub-skin .people-refinements[hidden] { display: none; }
+.hub-skin .people-refinements > p { grid-column: 1 / -1; margin: 0; font-size: 11px; color: var(--text-secondary); line-height: 1.6; }
+.hub-skin .people-filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
+.hub-skin .people-filter-chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px; color: var(--accent-3, #4ecdc4); background: color-mix(in srgb, var(--accent-3, #4ecdc4) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent-3, #4ecdc4) 25%, transparent); border-radius: 8px; font: inherit; font-size: 12px; cursor: pointer; }
+.hub-skin .people-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0; }
+.hub-skin .people-results-bar .social-result-summary { margin: 0; flex: 1; }
+.hub-skin .people-live-notice { color: var(--accent-3, #4ecdc4); font-size: 12px; }
+.hub-skin .people-live-notice:empty { margin: 0; }
+.hub-skin .people-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 24px; }
+.hub-skin .people-connection-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent); border-radius: 20px; background: var(--bg-card); transition: transform .2s, border-color .2s; }
+@media (hover: hover) { .hub-skin .people-connection-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent-3, #4ecdc4) 50%, transparent); } }
+.hub-skin .people-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
+.hub-skin .people-card-heading img { border-radius: 18px; object-fit: cover; flex-shrink: 0; }
+.hub-skin .people-presence { font-size: 10px; color: var(--text-secondary); display: flex; gap: 6px; align-items: center; }
+.hub-skin .people-presence.is-online { color: var(--accent-3, #4ecdc4); }
+.hub-skin .people-presence.is-online::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
+.hub-skin .people-profile-link { color: inherit; text-decoration: none; }
+.hub-skin .people-profile-link h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 21px; margin: 0 0 6px; overflow-wrap: anywhere; }
+.hub-skin .people-profile-link h2 svg { color: var(--text-secondary); flex-shrink: 0; }
+.hub-skin .people-card-role { font-size: 13px; color: var(--text-secondary); margin: 0 0 10px; }
+.hub-skin .people-card-city { display: flex; align-items: center; gap: 5px; margin: 0 0 16px; font-size: 11px; color: var(--text-secondary); }
+.hub-skin .people-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
+.hub-skin .people-card-tags button { min-height: 36px; max-width: 100%; padding: 6px 9px; border-radius: 8px; border: 1px solid transparent; background: var(--bg-glass); color: var(--text-secondary); font: inherit; font-size: 11px; cursor: pointer; overflow-wrap: anywhere; }
+.hub-skin .people-card-tags button[aria-pressed="true"] { border-color: var(--accent-3, #4ecdc4); color: var(--accent-3, #4ecdc4); }
+.hub-skin .people-card-looking { flex: 1; margin: 16px 0 20px; font-size: 13px; line-height: 1.8; color: var(--text-primary); overflow-wrap: anywhere; }
+.hub-skin .people-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent); padding-top: 14px; }
+.hub-skin .people-card-footer > a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--text-secondary); font-size: 11px; }
+.hub-skin .people-follow { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--text-primary) 16%, transparent); background: transparent; color: var(--text-primary); font: inherit; font-size: 12px; border-radius: 10px; cursor: pointer; }
+.hub-skin .people-follow.is-following { color: var(--accent-1, #ff6b6b); border-color: color-mix(in srgb, var(--accent-1, #ff6b6b) 40%, transparent); background: color-mix(in srgb, var(--accent-1, #ff6b6b) 8%, transparent); }
+.hub-skin :is(.intent-options, .intent-panel-actions, .people-toolbar, .people-card-grid, .people-results-bar) :is(a, button, select, input):focus-visible { outline: 2px solid var(--accent-3, #4ecdc4); outline-offset: 4px; }
+@media (max-width: 1050px) {
+ .hub-skin .people-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+ .hub-skin .intent-panel { grid-template-columns: 80px minmax(0, 1fr); gap: 20px; }
+ .hub-skin .intent-art { width: 76px; height: 76px; }
+ .hub-skin .intent-panel-actions { grid-column: 2; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
+}
+@media (max-width: 600px) {
+ .hub-skin .intent-heading { display: block; }
+ .hub-skin .intent-heading h2 { margin-top: 9px; }
+ .hub-skin .intent-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+ .hub-skin .intent-options button { min-height: 48px; font-size: 12px; }
+ .hub-skin .intent-panel { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
+ .hub-skin .intent-art { display: none; }
+ .hub-skin .intent-panel-actions { grid-column: 1; align-items: flex-start; gap: 8px 16px; }
+ .hub-skin .people-discovery-banner { align-items: flex-start; flex-direction: column; padding: 22px; gap: 16px; }
+ .hub-skin .people-toolbar { padding: 16px; }
+ .hub-skin .people-toolbar-top { grid-template-columns: minmax(0, 1fr) auto; }
+ .hub-skin .people-toolbar-top .social-search { grid-column: 1 / -1; }
+ .hub-skin .people-refinements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+ .hub-skin .people-card-grid { grid-template-columns: 1fr; gap: 12px; }
+ .hub-skin .people-connection-card { padding: 20px; }
+ .hub-skin .people-filter-chips button, .hub-skin .people-card-tags button { min-height: 44px; }
+ .hub-skin .people-results-bar { flex-wrap: wrap; }
+}
+@media (prefers-reduced-motion: reduce) {
+ .hub-skin :is(.people-connection-card, .intent-options button) { transition: none; transform: none; }
+}
diff --git a/src/modules/hub/app/experience.css b/src/modules/hub/app/experience.css
new file mode 100644
index 0000000..ee0d9fd
--- /dev/null
+++ b/src/modules/hub/app/experience.css
@@ -0,0 +1,3981 @@
+/* The social product: one palette, a connected world, every screen. */
+.social-experience {
+ --sx-mint: #4ecdc4;
+ --sx-coral: #ff7b75;
+ --sx-gold: #ffe195;
+ --sx-line: rgba(165, 195, 210, 0.13);
+ --sx-surface: rgba(17, 26, 37, 0.84);
+ --sx-ease: cubic-bezier(0.22, 1, 0.36, 1);
+ position: relative;
+ isolation: isolate;
+ min-height: 100dvh;
+}
+.social-experience :is(button, a, input, textarea, select):focus-visible {
+ outline: 2px solid var(--sx-mint);
+ outline-offset: 4px;
+}
+.social-experience button {
+ font-family: inherit;
+ cursor: pointer;
+}
+.social-experience button:disabled {
+ cursor: not-allowed;
+ opacity: 0.5;
+}
+.social-experience :is(a, button, input, textarea, select) {
+ -webkit-tap-highlight-color: transparent;
+}
+.social-experience .social-root {
+ background: transparent;
+}
+.social-experience .social-flow {
+ background: transparent;
+}
+.social-ambient {
+ position: fixed;
+ inset: 0;
+ z-index: -3;
+ overflow: hidden;
+ pointer-events: none;
+ background: var(--bg-primary);
+}
+.social-ambient i {
+ position: absolute;
+ width: 55vw;
+ height: 55vw;
+ border-radius: 50%;
+ filter: blur(110px);
+ opacity: 0.07;
+ animation: sx-aurora 22s ease-in-out infinite alternate;
+ background: var(--sx-mint);
+ top: 5%;
+ right: -25%;
+}
+.social-ambient i:nth-child(2) {
+ background: var(--sx-coral);
+ width: 40vw;
+ height: 40vw;
+ left: -20%;
+ top: 48%;
+ animation-delay: -8s;
+}
+.social-ambient i:nth-child(3) {
+ background: var(--sx-gold);
+ width: 25vw;
+ height: 25vw;
+ left: 35%;
+ top: -15%;
+ animation-delay: -14s;
+ opacity: 0.03;
+}
+.social-constellation {
+ position: fixed;
+ inset: 0;
+ width: 100%;
+ height: 100dvh;
+ pointer-events: none;
+ z-index: -1;
+}
+.social-pointer-glow {
+ position: fixed;
+ inset: 0;
+ z-index: -1;
+ pointer-events: none;
+ background: radial-gradient(
+ 360px circle at var(--pointer-x, -1000px) var(--pointer-y, -1000px),
+ #4ecdc409,
+ transparent 75%
+ );
+}
+.social-fx-control {
+ position: fixed;
+ bottom: 18px;
+ right: 20px;
+ z-index: 1100;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 8px 12px 8px 9px;
+ min-height: 36px;
+ border: 1px solid var(--sx-line);
+ border-radius: 999px;
+ background: color-mix(in srgb, var(--bg-primary) 85%, transparent);
+ backdrop-filter: blur(18px);
+ color: var(--text-secondary);
+ font-size: 10px;
+}
+.social-fx-control > span:first-child {
+ display: grid;
+ place-items: center;
+ color: var(--sx-mint);
+}
+.social-fx-control:hover {
+ border-color: #4ecdc455;
+}
+.social-workspace {
+ --nav-height: 88px;
+ min-height: 100dvh;
+}
+.social-workspace-dense {
+ --nav-height: 88px;
+}
+.social-page-head {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: flex-start;
+ justify-content: space-between;
+ gap: 12px 18px;
+ padding: 4px 0 14px;
+ margin-bottom: 6px;
+ border-bottom: 1px solid var(--sx-line);
+}
+.social-page-head-copy {
+ display: grid;
+ gap: 6px;
+ min-width: min(100%, 28rem);
+}
+.social-page-head h1 {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ margin: 0;
+ font-size: clamp(22px, 2.4vw, 28px);
+ letter-spacing: -0.04em;
+ font-weight: 750;
+ line-height: 1.2;
+}
+.social-page-head-eyebrow {
+ margin: 0;
+ font-size: 12px;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--sx-mint);
+ opacity: 0.9;
+}
+.social-page-head-desc {
+ margin: 0;
+ max-width: 42rem;
+ color: var(--text-secondary, rgba(255, 255, 255, 0.62));
+ font-size: 14px;
+ line-height: 1.55;
+}
+.social-page-head-mark {
+ font-size: 0.92em;
+ line-height: 1;
+ opacity: 0.72;
+}
+.social-page-head-title {
+ display: inline-flex;
+ flex-wrap: wrap;
+ align-items: baseline;
+ gap: 0.35em;
+}
+.social-page-head-accent {
+ color: var(--sx-mint);
+ font-weight: 650;
+ font-size: 0.72em;
+ letter-spacing: 0.02em;
+}
+.social-demo-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ padding: 6px 10px;
+ border-radius: 999px;
+ border: 1px solid color-mix(in srgb, var(--sx-mint) 35%, transparent);
+ background: color-mix(in srgb, var(--sx-mint) 12%, transparent);
+ color: var(--sx-mint);
+ font-size: 12px;
+ font-weight: 600;
+ letter-spacing: 0.02em;
+ white-space: nowrap;
+}
+.social-nav-join {
+ min-height: 36px;
+ padding-inline: 14px;
+}
+/* Registered → circular avatar replaces join CTA */
+.social-nav-account {
+ position: relative;
+ display: inline-flex;
+ align-items: center;
+}
+.social-nav-avatar-btn {
+ display: grid;
+ place-items: center;
+ width: 40px;
+ height: 40px;
+ min-width: 40px;
+ min-height: 40px;
+ padding: 0;
+ border: 2px solid rgba(245, 158, 11, 0.55);
+ border-radius: 999px;
+ background: #141418;
+ overflow: hidden;
+ cursor: pointer;
+ box-shadow: 0 0 0 2px rgba(12, 12, 15, 0.9);
+}
+.social-nav-avatar-btn img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ border-radius: 999px;
+}
+.social-nav-avatar-fallback {
+ display: grid;
+ place-items: center;
+ width: 100%;
+ height: 100%;
+ background: linear-gradient(145deg, #f59e0b, #b45309);
+ color: #0c0c0f;
+ font-size: 0.92rem;
+ font-weight: 800;
+ letter-spacing: -0.02em;
+}
+.social-nav-avatar-fallback.is-lg {
+ width: 56px;
+ height: 56px;
+ border-radius: 999px;
+ font-size: 1.25rem;
+ flex-shrink: 0;
+}
+.social-nav-account-panel {
+ position: absolute;
+ top: calc(100% + 10px);
+ right: 0;
+ z-index: 80;
+ width: min(300px, calc(100vw - 24px));
+ border-radius: 16px;
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ background: #0c0c0f;
+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
+ overflow: hidden;
+}
+.social-nav-account-tabs {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 0;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.08);
+ background: rgba(255, 255, 255, 0.03);
+}
+.social-nav-account-tabs button {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 6px;
+ min-height: 44px;
+ border: 0;
+ background: transparent;
+ color: rgba(255, 255, 255, 0.55);
+ font: inherit;
+ font-size: 0.82rem;
+ font-weight: 650;
+ cursor: pointer;
+}
+.social-nav-account-tabs button.is-on {
+ color: #fbbf24;
+ box-shadow: inset 0 -2px 0 #f59e0b;
+}
+.social-nav-account-body {
+ display: grid;
+ gap: 8px;
+ padding: 12px;
+}
+.social-nav-account-hero {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ padding: 4px 2px 8px;
+}
+.social-nav-account-hero img,
+.social-nav-account-hero .social-nav-avatar-fallback.is-lg {
+ border-radius: 999px;
+ flex-shrink: 0;
+}
+.social-nav-account-hero strong {
+ display: block;
+ font-size: 0.95rem;
+ letter-spacing: -0.02em;
+}
+.social-nav-account-hero p {
+ margin: 2px 0 0;
+ color: rgba(255, 255, 255, 0.55);
+ font-size: 0.78rem;
+ word-break: break-all;
+}
+.social-nav-account-hero small {
+ display: block;
+ margin-top: 4px;
+ color: rgba(255, 255, 255, 0.4);
+ font-size: 0.72rem;
+}
+.social-nav-account-link,
+.social-nav-account-logout {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ min-height: 44px;
+ padding: 0 12px;
+ border-radius: 12px;
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ background: rgba(255, 255, 255, 0.04);
+ color: inherit;
+ font: inherit;
+ font-size: 0.86rem;
+ font-weight: 650;
+ text-decoration: none;
+ cursor: pointer;
+ text-align: left;
+}
+.social-nav-account-link:hover,
+.social-nav-account-logout:hover {
+ background: rgba(245, 158, 11, 0.12);
+ border-color: rgba(245, 158, 11, 0.35);
+}
+.social-nav-account-logout {
+ color: #fb7185;
+ border-color: rgba(251, 113, 133, 0.25);
+ background: rgba(251, 113, 133, 0.08);
+}
+/* —— Join profile sheet: H5 stack / PC split —— */
+.social-join-desk {
+ width: min(1120px, 100%);
+ margin: 0 auto;
+ padding: 20px 16px calc(96px + env(safe-area-inset-bottom, 0px));
+ display: grid;
+ gap: 18px;
+}
+.social-main--immersive .social-join-desk {
+ padding-top: calc(72px + env(safe-area-inset-top, 0px));
+ padding-inline: max(16px, env(safe-area-inset-left, 0px))
+ max(16px, env(safe-area-inset-right, 0px));
+}
+.social-join-desk-aside {
+ display: grid;
+ gap: 14px;
+ align-content: start;
+}
+.social-join-stepmark {
+ display: flex;
+ align-items: baseline;
+ gap: 6px;
+ margin: 0;
+ color: rgba(255, 255, 255, 0.38);
+ font-size: 0.78rem;
+ font-weight: 600;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+}
+.social-join-stepmark span {
+ color: var(--sx-mint, #4ecdc4);
+ font-variant-numeric: tabular-nums;
+}
+.social-join-stepmark em {
+ font-style: normal;
+ opacity: 0.55;
+}
+.social-join-stepmark b {
+ margin-left: 8px;
+ color: rgba(255, 255, 255, 0.72);
+ font-weight: 650;
+ letter-spacing: 0.04em;
+}
+.social-join-desk-intro {
+ display: grid;
+ gap: 8px;
+}
+.social-join-desk-intro h1 {
+ margin: 0;
+ font-family: var(--font-display, inherit);
+ font-size: clamp(1.5rem, 3.2vw, 2.15rem);
+ line-height: 1.2;
+ letter-spacing: -0.025em;
+ font-weight: 700;
+}
+.social-join-desk-intro p {
+ margin: 0;
+ max-width: 36ch;
+ color: rgba(255, 255, 255, 0.55);
+ font-size: 0.95rem;
+ line-height: 1.55;
+}
+.social-join-live-card {
+ position: relative;
+ isolation: isolate;
+ display: grid;
+ gap: 8px;
+ overflow: hidden;
+ min-height: 280px;
+ padding: 22px 20px 18px;
+ border-radius: 22px;
+ border: 1px solid color-mix(in srgb, var(--sx-mint, #4ecdc4) 28%, transparent);
+ background:
+ linear-gradient(
+ 145deg,
+ color-mix(in srgb, #12202c 88%, var(--sx-mint, #4ecdc4)),
+ #0b1018 58%
+ );
+ box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
+}
+.social-join-live-glow {
+ pointer-events: none;
+ position: absolute;
+ inset: auto -30% -40% auto;
+ width: 220px;
+ height: 220px;
+ border-radius: 50%;
+ background: radial-gradient(circle, rgba(78, 205, 196, 0.28), transparent 68%);
+ filter: blur(2px);
+ z-index: 0;
+}
+.social-join-live-pattern {
+ pointer-events: none;
+ position: absolute;
+ top: 8px;
+ right: -28px;
+ color: color-mix(in srgb, var(--sx-mint, #4ecdc4) 22%, transparent);
+ z-index: 0;
+}
+.social-join-live-top,
+.social-join-live-kicker,
+.social-join-live-name,
+.social-join-live-title,
+.social-join-live-city,
+.social-join-live-meta,
+.social-join-live-tags,
+.social-join-live-hint,
+.social-join-live-bio,
+.social-join-live-card > footer {
+ position: relative;
+ z-index: 1;
+}
+.social-join-live-top {
+ display: flex;
+ align-items: flex-start;
+ justify-content: space-between;
+ gap: 12px;
+ margin-bottom: 4px;
+}
+.social-join-file-input {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border: 0;
+}
+.social-join-live-mono {
+ position: relative;
+ display: grid;
+ place-items: center;
+ width: 64px;
+ height: 64px;
+ padding: 0;
+ border-radius: 20px;
+ border: 1px solid color-mix(in srgb, var(--sx-mint, #4ecdc4) 35%, transparent);
+ background: color-mix(in srgb, var(--sx-mint, #4ecdc4) 10%, transparent);
+ color: var(--sx-mint, #4ecdc4);
+ font-family: var(--font-display, inherit);
+ font-size: 1.45rem;
+ font-weight: 700;
+ cursor: pointer;
+ overflow: hidden;
+ box-shadow: 0 0 28px color-mix(in srgb, var(--sx-mint, #4ecdc4) 18%, transparent);
+}
+.social-join-live-mono img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+}
+.social-join-live-mono[data-empty="true"] {
+ color: rgba(255, 255, 255, 0.35);
+ border-color: rgba(255, 255, 255, 0.12);
+ background: rgba(255, 255, 255, 0.04);
+ box-shadow: none;
+}
+.social-join-live-mono[data-busy="true"] {
+ opacity: 0.7;
+}
+.social-join-live-cam {
+ position: absolute;
+ right: 4px;
+ bottom: 4px;
+ display: grid;
+ place-items: center;
+ width: 22px;
+ height: 22px;
+ border-radius: 8px;
+ background: rgba(8, 12, 18, 0.78);
+ color: #fff;
+}
+.social-join-avatar-row {
+ display: flex;
+ align-items: center;
+ gap: 14px;
+}
+.social-join-avatar-btn {
+ position: relative;
+ flex: none;
+ display: grid;
+ place-items: center;
+ width: 72px;
+ height: 72px;
+ min-width: 72px;
+ min-height: 72px;
+ padding: 0;
+ border-radius: 22px;
+ border: 1px dashed rgba(255, 255, 255, 0.22);
+ background: rgba(255, 255, 255, 0.04);
+ color: rgba(255, 255, 255, 0.55);
+ cursor: pointer;
+ overflow: hidden;
+}
+.social-join-avatar-btn img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+}
+.social-join-avatar-btn:disabled,
+.social-join-avatar-btn.is-busy {
+ opacity: 0.85;
+ cursor: wait;
+}
+.social-join-avatar-btn.is-error {
+ border-color: rgba(251, 113, 133, 0.85);
+ border-style: solid;
+ box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.18);
+}
+.social-join-avatar-spin {
+ position: absolute;
+ inset: 0;
+ margin: auto;
+ width: 22px;
+ height: 22px;
+ border-radius: 50%;
+ border: 2px solid rgba(255, 255, 255, 0.25);
+ border-top-color: #f59e0b;
+ animation: social-join-spin 0.7s linear infinite;
+ background: rgba(8, 12, 18, 0.35);
+}
+@keyframes social-join-spin {
+ to {
+ transform: rotate(360deg);
+ }
+}
+.social-join-avatar-row strong {
+ display: block;
+ margin-bottom: 4px;
+ color: rgba(255, 255, 255, 0.88);
+ font-size: 0.95rem;
+}
+.social-join-avatar-row p {
+ margin: 0;
+ color: rgba(255, 255, 255, 0.45);
+ font-size: 0.82rem;
+ line-height: 1.4;
+}
+.social-join-avatar-err {
+ margin: 6px 0 0 !important;
+ color: #fb7185 !important;
+ font-size: 0.82rem !important;
+ font-weight: 650;
+ line-height: 1.35 !important;
+}
+.social-join-avatar-actions {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 8px 10px;
+ margin-top: 8px;
+}
+.social-join-avatar-action {
+ appearance: none;
+ min-height: 36px;
+ padding: 0 0.75rem;
+ border-radius: 999px;
+ border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent);
+ background: color-mix(in srgb, #f59e0b 14%, transparent);
+ color: #fbbf24;
+ font: inherit;
+ font-size: 0.78rem;
+ font-weight: 650;
+ cursor: pointer;
+}
+.social-join-avatar-action.is-ghost {
+ border-color: rgba(255, 255, 255, 0.16);
+ background: transparent;
+ color: rgba(255, 255, 255, 0.72);
+}
+.social-join-avatar-action:disabled {
+ opacity: 0.5;
+ cursor: wait;
+}
+.social-join-avatar-clear {
+ margin-top: 0;
+ padding: 0;
+ border: 0;
+ background: none;
+ color: var(--sx-coral, #ff7b75);
+ font: inherit;
+ font-size: 0.8rem;
+ font-weight: 650;
+ cursor: pointer;
+ min-height: 36px;
+}
+
+/* Live selfie challenge modal */
+/* Portaled to document.body — escape join-desk transform/overflow clipping */
+.social-selfie-root {
+ position: fixed;
+ inset: 0;
+ z-index: 10050;
+ display: grid;
+ place-items: center;
+ padding: 16px;
+ isolation: isolate;
+}
+.social-selfie-backdrop {
+ position: absolute;
+ inset: 0;
+ border: 0;
+ background: rgba(0, 0, 0, 0.72);
+ cursor: pointer;
+}
+.social-selfie-card {
+ position: relative;
+ z-index: 1;
+ width: min(420px, 100%);
+ max-height: min(92vh, 720px);
+ overflow: auto;
+ border-radius: 20px;
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ background: #0c0c0f;
+ box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
+ padding: 14px 14px 16px;
+}
+.social-selfie-loading {
+ position: absolute;
+ inset: 0;
+ z-index: 2;
+ display: grid;
+ place-items: center;
+ margin: 0;
+ background: rgba(0, 0, 0, 0.45);
+ color: rgba(255, 255, 255, 0.8);
+ font-size: 0.88rem;
+ font-weight: 650;
+ pointer-events: none;
+}
+/* REC badge removed — silent full-session archive for admin review only */
+.social-join-liveness-banner {
+ margin: 10px 0 0;
+ padding: 12px 14px;
+ border-radius: 14px;
+ border: 1px solid rgba(245, 158, 11, 0.45);
+ background: rgba(245, 158, 11, 0.1);
+ display: grid;
+ gap: 10px;
+}
+.social-join-liveness-banner p {
+ margin: 0 !important;
+ color: rgba(255, 244, 220, 0.92) !important;
+ font-size: 0.84rem !important;
+ line-height: 1.45 !important;
+}
+.social-join-liveness-ok {
+ margin: 8px 0 0 !important;
+ color: #34d399 !important;
+ font-size: 0.84rem !important;
+ font-weight: 650;
+}
+.social-liveness-gate {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ margin: 0 0 16px;
+ padding: 14px 16px;
+ border-radius: 16px;
+ border: 1px solid rgba(245, 158, 11, 0.4);
+ background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(12, 12, 15, 0.6));
+}
+.social-liveness-gate strong {
+ display: block;
+ margin-bottom: 4px;
+ color: #fbbf24;
+}
+.social-liveness-gate p {
+ margin: 0;
+ max-width: 52ch;
+ color: rgba(255, 255, 255, 0.72);
+ font-size: 0.86rem;
+ line-height: 1.45;
+}
+.social-join-avatar-row[data-capture-ready="false"] .social-join-avatar-actions {
+ opacity: 0.55;
+}
+.social-join-avatar-row[data-device="mobile"] .social-join-avatar-btn {
+ width: 72px;
+ height: 72px;
+}
+@media (max-width: 720px) {
+ .social-selfie-root {
+ padding: 0;
+ place-items: end stretch;
+ }
+ .social-selfie-card {
+ width: 100%;
+ max-height: 92vh;
+ border-radius: 20px 20px 0 0;
+ padding-bottom: max(16px, env(safe-area-inset-bottom));
+ }
+}
+.social-selfie-head {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 10px;
+ margin-bottom: 10px;
+}
+.social-selfie-head strong {
+ font-size: 0.98rem;
+ letter-spacing: -0.02em;
+}
+.social-selfie-rec {
+ margin-left: auto;
+ margin-right: 6px;
+ font-size: 0.72rem;
+ font-weight: 700;
+ letter-spacing: 0.02em;
+ color: #f87171;
+ animation: social-selfie-rec-pulse 1.2s ease-in-out infinite;
+}
+@keyframes social-selfie-rec-pulse {
+ 0%,
+ 100% {
+ opacity: 1;
+ }
+ 50% {
+ opacity: 0.45;
+ }
+}
+.social-selfie-close {
+ display: grid;
+ place-items: center;
+ width: 40px;
+ height: 40px;
+ border: 0;
+ border-radius: 12px;
+ background: rgba(255, 255, 255, 0.06);
+ color: inherit;
+ cursor: pointer;
+}
+.social-selfie-stage {
+ position: relative;
+ overflow: hidden;
+ border-radius: 16px;
+ aspect-ratio: 1;
+ background: #000;
+}
+.social-selfie-video {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ transform: scaleX(-1);
+}
+/* Solid black outside the face oval — hide body / room */
+.social-selfie-guide {
+ position: absolute;
+ inset: 0;
+ z-index: 1;
+ pointer-events: none;
+}
+.social-selfie-oval {
+ position: absolute;
+ inset: 12% 16%;
+ border: 2px dashed rgba(245, 158, 11, 0.85);
+ border-radius: 50%;
+ box-shadow: 0 0 0 9999px #000;
+ pointer-events: none;
+}
+.social-selfie-count {
+ position: absolute;
+ inset: 0;
+ z-index: 3;
+ display: grid;
+ place-items: center;
+ font-size: 4rem;
+ font-weight: 800;
+ color: #fff;
+ text-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
+ pointer-events: none;
+}
+.social-selfie-tip {
+ margin: 12px 0 6px;
+ color: rgba(255, 255, 255, 0.72);
+ font-size: 0.88rem;
+ text-align: center;
+}
+.social-selfie-err {
+ margin: 0 0 10px;
+ color: #fb7185;
+ font-size: 0.84rem;
+ font-weight: 650;
+ text-align: center;
+}
+.social-selfie-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ justify-content: center;
+}
+.social-selfie-cta,
+.social-selfie-cancel {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 6px;
+ min-height: 44px;
+ padding: 0 1rem;
+ border-radius: 999px;
+ font: inherit;
+ font-size: 0.88rem;
+ font-weight: 700;
+ cursor: pointer;
+}
+.social-selfie-cta {
+ border: 0;
+ background: #f59e0b;
+ color: #0c0c0f;
+}
+.social-selfie-cta:disabled {
+ opacity: 0.5;
+ cursor: wait;
+}
+.social-selfie-cancel {
+ border: 1px solid rgba(255, 255, 255, 0.14);
+ background: transparent;
+ color: rgba(255, 255, 255, 0.75);
+}
+.social-join-live-meter {
+ display: grid;
+ gap: 6px;
+ min-width: 108px;
+ color: rgba(255, 255, 255, 0.45);
+ font-size: 0.72rem;
+ font-weight: 650;
+ text-align: right;
+}
+.social-join-live-meter i {
+ display: block;
+ height: 4px;
+ overflow: hidden;
+ border-radius: 999px;
+ background: rgba(255, 255, 255, 0.08);
+ font-style: normal;
+}
+.social-join-live-meter b {
+ display: block;
+ height: 100%;
+ border-radius: inherit;
+ background: linear-gradient(90deg, #f59e0b, var(--sx-mint, #4ecdc4));
+ transition: width 0.3s ease;
+}
+.social-join-live-kicker {
+ margin: 2px 0 0;
+ color: var(--sx-mint, #4ecdc4);
+ font-size: 0.68rem;
+ font-weight: 700;
+ letter-spacing: 0.16em;
+ text-transform: uppercase;
+}
+.social-join-live-name {
+ margin: 0;
+ font-family: var(--font-display, inherit);
+ font-size: clamp(1.35rem, 2.4vw, 1.7rem);
+ letter-spacing: -0.03em;
+ line-height: 1.15;
+ overflow-wrap: anywhere;
+}
+.social-join-live-title {
+ margin: 0;
+ color: rgba(255, 255, 255, 0.68);
+ font-size: 0.92rem;
+ line-height: 1.4;
+}
+.social-join-live-city {
+ display: inline-flex;
+ align-items: center;
+ gap: 5px;
+ margin: 2px 0 0;
+ color: var(--sx-mint, #4ecdc4);
+ font-size: 0.84rem;
+ font-weight: 650;
+}
+.social-join-live-meta {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin-top: 4px;
+}
+.social-join-live-meta span {
+ padding: 4px 10px;
+ border-radius: 999px;
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ color: rgba(255, 255, 255, 0.7);
+ font-size: 0.74rem;
+ font-weight: 650;
+}
+.social-join-live-tags {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin-top: 4px;
+}
+.social-join-live-tags span {
+ padding: 4px 10px;
+ border-radius: 999px;
+ background: rgba(255, 255, 255, 0.06);
+ color: rgba(255, 255, 255, 0.78);
+ font-size: 0.74rem;
+ font-weight: 650;
+}
+.social-join-live-tags.is-intent span {
+ background: color-mix(in srgb, var(--sx-mint, #4ecdc4) 18%, transparent);
+ color: var(--sx-mint, #4ecdc4);
+}
+.social-join-live-hint {
+ margin: 4px 0 0;
+ color: rgba(255, 255, 255, 0.35);
+ font-size: 0.8rem;
+ line-height: 1.45;
+}
+.social-join-live-bio {
+ margin: 8px 0 0;
+ color: rgba(255, 255, 255, 0.55);
+ font-size: 0.88rem;
+ line-height: 1.55;
+ white-space: pre-wrap;
+ overflow-wrap: anywhere;
+}
+.social-join-live-card > footer {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 12px;
+ margin-top: 14px;
+ padding-top: 14px;
+ border-top: 1px dashed rgba(255, 255, 255, 0.12);
+ color: rgba(255, 255, 255, 0.35);
+ font-size: 0.68rem;
+ font-weight: 700;
+ letter-spacing: 0.14em;
+ text-transform: uppercase;
+}
+.social-join-live-card > footer span:last-child {
+ color: var(--sx-coral, #ff7b75);
+ font-size: 1rem;
+ letter-spacing: 0;
+}
+.social-join-desk-form {
+ display: grid;
+ gap: 16px;
+ margin: 0;
+ min-width: 0;
+}
+.social-join-fields {
+ display: grid;
+ grid-template-columns: 1fr;
+ gap: 14px;
+ margin: 0;
+ padding: 0;
+ border: 0;
+ min-width: 0;
+}
+.social-join-section {
+ grid-column: 1 / -1;
+ margin: 8px 0 0;
+ padding-top: 10px;
+ border-top: 1px solid rgba(255, 255, 255, 0.08);
+ color: var(--sx-mint, #4ecdc4);
+ font-size: 0.76rem;
+ font-weight: 700;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+}
+.social-join-section:first-child {
+ margin-top: 0;
+ padding-top: 0;
+ border-top: 0;
+}
+.social-join-req {
+ margin-left: 4px;
+ color: #f59e0b;
+ font-weight: 800;
+ text-transform: none;
+ letter-spacing: 0;
+}
+.social-join-span-2 {
+ grid-column: 1 / -1;
+}
+.social-join-intent-grid {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+}
+.social-join-intent {
+ min-height: 40px;
+ padding: 0 14px;
+ border-radius: 999px;
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ background: rgba(255, 255, 255, 0.03);
+ color: rgba(255, 255, 255, 0.72);
+ font: inherit;
+ font-size: 0.84rem;
+ font-weight: 600;
+ cursor: pointer;
+ transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
+}
+.social-join-intent:hover {
+ border-color: rgba(255, 255, 255, 0.28);
+ color: #fff;
+}
+.social-join-intent.is-on {
+ border-color: transparent;
+ background: color-mix(in srgb, var(--sx-mint, #4ecdc4) 28%, transparent);
+ color: #fff;
+}
+.social-join-desk-form label {
+ display: grid;
+ gap: 7px;
+ color: rgba(255, 255, 255, 0.58);
+ font-size: 0.86rem;
+ font-weight: 600;
+ min-width: 0;
+}
+.social-join-desk-form input,
+.social-join-desk-form textarea,
+.social-join-desk-form select {
+ width: 100%;
+ min-height: 48px;
+ padding: 12px 14px;
+ border-radius: 12px;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: rgba(255, 255, 255, 0.03);
+ color: #fff;
+ font: inherit;
+ font-weight: 500;
+ color-scheme: dark;
+}
+.social-join-desk-form select {
+ appearance: none;
+ background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.55) 50%),
+ linear-gradient(135deg, rgba(255, 255, 255, 0.55) 50%, transparent 50%);
+ background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
+ background-size: 6px 6px, 6px 6px;
+ background-repeat: no-repeat;
+ padding-right: 36px;
+}
+.social-join-desk-form select option,
+.social-join-desk-form select optgroup {
+ background-color: #12141c;
+ color: #f8fafc;
+}
+.social-join-desk-form textarea {
+ min-height: 120px;
+ resize: vertical;
+ line-height: 1.5;
+}
+.social-join-desk-form input:focus,
+.social-join-desk-form textarea:focus,
+.social-join-desk-form select:focus {
+ outline: none;
+ border-color: color-mix(in srgb, var(--sx-mint, #4ecdc4) 55%, transparent);
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--sx-mint, #4ecdc4) 16%, transparent);
+}
+.social-join-gender {
+ display: grid;
+ gap: 8px;
+}
+.social-join-gender-label {
+ color: rgba(255, 255, 255, 0.58);
+ font-size: 0.86rem;
+ font-weight: 600;
+}
+.social-join-gender-pills {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 10px;
+}
+.social-join-gender-pill {
+ min-height: 48px;
+ border-radius: 12px;
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ background: rgba(255, 255, 255, 0.03);
+ color: rgba(255, 255, 255, 0.78);
+ font: inherit;
+ font-weight: 650;
+ cursor: pointer;
+ transition: border-color 0.15s, background 0.15s, color 0.15s;
+}
+.social-join-gender-pill:hover {
+ border-color: rgba(255, 255, 255, 0.22);
+ color: #fff;
+}
+.social-join-gender-pill.is-on {
+ border-color: transparent;
+ background: color-mix(in srgb, var(--sx-mint, #4ecdc4) 28%, transparent);
+ color: #fff;
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sx-mint, #4ecdc4) 45%, transparent);
+}
+.social-join-gender-pill:focus-visible {
+ outline: 2px solid var(--sx-mint, #4ecdc4);
+ outline-offset: 2px;
+}
+.social-join-desk-form input::placeholder,
+.social-join-desk-form textarea::placeholder {
+ color: rgba(255, 255, 255, 0.28);
+}
+.social-join-desk-form small {
+ justify-self: end;
+ color: rgba(255, 255, 255, 0.32);
+ font-size: 0.72rem;
+}
+.social-join-desk-foot {
+ display: grid;
+ gap: 8px;
+}
+.social-join-desk-submit {
+ width: 100%;
+ min-height: 48px;
+ justify-content: center;
+}
+.social-join-desk-hint {
+ margin: 0;
+ text-align: center;
+ color: rgba(255, 255, 255, 0.38);
+ font-size: 0.8rem;
+}
+.social-join-done-panel .social-actions {
+ margin: 0;
+}
+.social-join-done-panel .social-btn {
+ min-height: 48px;
+}
+
+/* PC / wide tablet */
+@media (min-width: 900px) {
+ .social-main--immersive .social-join-desk {
+ padding: calc(88px + env(safe-area-inset-top, 0px)) 32px 64px;
+ }
+ .social-join-desk {
+ grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
+ gap: 36px 48px;
+ align-items: start;
+ padding-bottom: 64px;
+ }
+ .social-join-desk-aside {
+ position: sticky;
+ top: 96px;
+ gap: 18px;
+ }
+ .social-join-live-card {
+ transform: perspective(1000px) rotateY(-3deg) rotateX(1.5deg);
+ transition: transform 0.45s var(--sx-ease, cubic-bezier(0.22, 1, 0.36, 1));
+ }
+ .social-join-live-card:hover {
+ transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-3px);
+ }
+ .social-join-desk-form {
+ padding: 28px 28px 24px;
+ border-radius: 20px;
+ border: 1px solid rgba(255, 255, 255, 0.09);
+ background:
+ linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
+ box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
+ }
+ .social-join-fields {
+ grid-template-columns: 1fr 1fr;
+ gap: 16px 18px;
+ }
+ .social-join-desk-foot {
+ grid-template-columns: 1fr auto;
+ align-items: center;
+ gap: 14px;
+ margin-top: 4px;
+ }
+ .social-join-desk-submit {
+ width: auto;
+ min-width: 240px;
+ justify-self: start;
+ }
+ .social-join-desk-hint {
+ text-align: right;
+ }
+ .social-join-done-panel {
+ min-height: 220px;
+ align-content: center;
+ }
+ .social-join-done-panel .social-actions {
+ gap: 12px;
+ }
+}
+
+@media (max-width: 899px) {
+ .social-join-live-card {
+ min-height: 0;
+ padding: 18px 16px 14px;
+ }
+ .social-join-live-bio {
+ display: -webkit-box;
+ -webkit-line-clamp: 3;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ }
+}
+
+.social-join-paths {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 16px;
+ margin: 8px 0 22px;
+}
+.social-join-path {
+ display: grid;
+ gap: 10px;
+ align-content: start;
+}
+.social-join-path h2 {
+ margin: 0;
+ font-size: 1.15rem;
+}
+.social-join-path p {
+ margin: 0;
+ color: var(--text-secondary, rgba(255, 255, 255, 0.62));
+ line-height: 1.5;
+}
+.social-join-path-ico {
+ width: 44px;
+ height: 44px;
+ display: grid;
+ place-items: center;
+ border-radius: 14px;
+ background: color-mix(in srgb, var(--sx-mint) 14%, transparent);
+ color: var(--sx-mint);
+}
+.social-benefit-list {
+ list-style: none;
+ margin: 0 0 12px;
+ padding: 0;
+ display: grid;
+ gap: 8px;
+}
+.social-benefit-list li {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ font-size: 14px;
+}
+.social-publish-toggle {
+ display: flex;
+ align-items: flex-start;
+ gap: 10px;
+ margin: 4px 0 12px;
+ font-size: 14px;
+ line-height: 1.45;
+}
+.social-publish-toggle input {
+ margin-top: 3px;
+ width: 18px;
+ height: 18px;
+}
+.social-join-success {
+ display: grid;
+ gap: 14px;
+ justify-items: start;
+}
+.social-channel-solo {
+ max-width: 32rem;
+}
+@media (max-width: 720px) {
+ .social-join-paths {
+ grid-template-columns: 1fr;
+ }
+}
+/* 沉浸聊天:整页锁死视口,禁止页面上下滑;只有消息区滚动 */
+.social-experience:has(.social-chat-live) {
+ height: 100dvh;
+ max-height: 100dvh;
+ overflow: hidden;
+}
+.social-chat-live {
+ background: var(--sc-bg, var(--bg-primary));
+ height: 100dvh !important;
+ max-height: 100dvh !important;
+ min-height: 0 !important;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden !important;
+ padding-bottom: 0 !important;
+}
+.social-chat-live-bar {
+ flex-shrink: 0;
+ padding: 10px 14px;
+}
+.social-chat-live .social-live-stage {
+ flex: 1 1 auto;
+ min-height: 0;
+ height: auto;
+ overflow: hidden;
+ display: flex;
+ flex-direction: column;
+}
+.social-chat-live .layout-chat-countries {
+ flex-direction: row;
+ align-items: stretch;
+}
+/* 中文受众:单大厅,无左侧国家栏 */
+.social-chat-live .layout-chat-single {
+ flex-direction: column;
+ align-items: stretch;
+}
+.social-chat-live .layout-chat-single > .social-conversation,
+.social-chat-live .layout-chat-single > section {
+ flex: 1 1 auto;
+ min-width: 0;
+ width: 100%;
+}
+.social-chat-countries .social-chat-live-bar {
+ border-bottom: 1px solid color-mix(in srgb, var(--sx-line) 70%, transparent);
+ background:
+ linear-gradient(
+ 180deg,
+ color-mix(in srgb, #122033 55%, transparent),
+ transparent
+ );
+ backdrop-filter: blur(10px);
+}
+.social-chat-live-title strong {
+ display: block;
+ font-size: 16px;
+ letter-spacing: 0.01em;
+}
+.social-chat-live-title-row {
+ display: inline-flex !important;
+ align-items: center;
+ gap: 8px;
+}
+.social-chat-live-title-badge {
+ --item-tint: 210;
+ display: inline-grid;
+ place-items: center;
+ min-width: 28px;
+ height: 22px;
+ padding: 0 6px;
+ border-radius: 7px;
+ font-size: 10px;
+ font-weight: 750;
+ letter-spacing: 0.04em;
+ color: #eef6ff;
+ background:
+ linear-gradient(
+ 145deg,
+ color-mix(in srgb, hsl(var(--item-tint), 55%, 42%) 48%, #1b2535),
+ #101722
+ );
+ border: 1px solid color-mix(in srgb, #c5d7ea 16%, transparent);
+}
+.social-chat-live-title-badge[data-cc="CN"] { --item-tint: 0; }
+.social-chat-live-title-badge[data-cc="TH"] { --item-tint: 330; }
+.social-chat-live-title-badge[data-cc="ID"] { --item-tint: 355; }
+.social-chat-live-title-badge[data-cc="MY"] { --item-tint: 145; }
+.social-chat-live-title-badge[data-cc="PT"] { --item-tint: 145; }
+.social-chat-live-title-badge[data-cc="JP"] { --item-tint: 350; }
+.social-chat-live-title-badge[data-cc="KR"] { --item-tint: 215; }
+.social-chat-live-title-badge[data-cc="DE"] { --item-tint: 45; }
+.social-chat-live-title-badge[data-cc="ES"] { --item-tint: 25; }
+.social-chat-live-title-badge[data-cc="VN"] { --item-tint: 50; }
+.social-chat-live-title .social-muted {
+ margin: 2px 0 0;
+ font-size: 12px;
+}
+.social-chat-country-rail {
+ --rail-accent: #f59e0b;
+ --rail-mint: var(--sx-mint, #4ecdc4);
+ position: relative;
+ flex: 0 0 248px;
+ width: 248px;
+ min-width: 220px;
+ max-width: 280px;
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ padding: 14px 12px 14px;
+ border-right: 1px solid color-mix(in srgb, var(--sx-line) 80%, transparent);
+ background:
+ linear-gradient(
+ 165deg,
+ color-mix(in srgb, #152033 72%, transparent) 0%,
+ color-mix(in srgb, #0b1018 92%, transparent) 48%,
+ color-mix(in srgb, #0a0e14 96%, transparent) 100%
+ );
+ overflow: hidden;
+ isolation: isolate;
+}
+.social-chat-country-rail-glow {
+ pointer-events: none;
+ position: absolute;
+ inset: -20% -30% auto auto;
+ width: 180px;
+ height: 180px;
+ border-radius: 50%;
+ background: radial-gradient(
+ circle,
+ color-mix(in srgb, var(--rail-accent) 28%, transparent),
+ transparent 68%
+ );
+ filter: blur(8px);
+ opacity: 0.55;
+ z-index: 0;
+}
+.social-chat-country-rail > *:not(.social-chat-country-rail-glow) {
+ position: relative;
+ z-index: 1;
+}
+.social-chat-country-rail-head {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 4px 2px;
+}
+.social-chat-country-rail-head > span {
+ font-size: 12px;
+ font-weight: 650;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: color-mix(in srgb, #d7e6f5 78%, #8b9bb4);
+}
+.social-chat-country-rail-head > em {
+ font-style: normal;
+ min-width: 22px;
+ height: 22px;
+ padding: 0 7px;
+ border-radius: 999px;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 11px;
+ font-variant-numeric: tabular-nums;
+ color: var(--rail-mint);
+ background: color-mix(in srgb, var(--rail-mint) 14%, transparent);
+ border: 1px solid color-mix(in srgb, var(--rail-mint) 28%, transparent);
+}
+.social-chat-country-rail-label {
+ margin: 6px 4px 0;
+ font-size: 10px;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ color: color-mix(in srgb, #8b9bb4 88%, #fff);
+ opacity: 0.85;
+}
+.social-chat-country-list {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: flex;
+ flex-direction: column;
+ gap: 5px;
+}
+.social-chat-country-list--scroll {
+ flex: 1 1 auto;
+ min-height: 0;
+ overflow-y: auto;
+ overscroll-behavior: contain;
+ padding-right: 2px;
+ scrollbar-width: thin;
+ scrollbar-color: color-mix(in srgb, var(--rail-accent) 35%, transparent) transparent;
+}
+.social-chat-country-list--scroll::-webkit-scrollbar {
+ width: 4px;
+}
+.social-chat-country-list--scroll::-webkit-scrollbar-thumb {
+ border-radius: 999px;
+ background: color-mix(in srgb, var(--rail-accent) 40%, transparent);
+}
+.social-chat-country-item {
+ --item-tint: 210;
+ position: relative;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ gap: 11px;
+ min-height: 48px;
+ padding: 9px 10px 9px 12px;
+ border: 1px solid color-mix(in srgb, #9eb6cc 10%, transparent);
+ border-radius: 14px;
+ background: color-mix(in srgb, #121926 55%, transparent);
+ color: inherit;
+ text-align: left;
+ text-decoration: none;
+ cursor: pointer;
+ overflow: hidden;
+ transition:
+ background 0.2s var(--sx-ease, ease),
+ border-color 0.2s var(--sx-ease, ease),
+ transform 0.2s var(--sx-ease, ease),
+ box-shadow 0.2s var(--sx-ease, ease);
+}
+.social-chat-country-item::before {
+ content: "";
+ position: absolute;
+ left: 0;
+ top: 12px;
+ bottom: 12px;
+ width: 3px;
+ border-radius: 0 3px 3px 0;
+ background: transparent;
+ transition: background 0.2s var(--sx-ease, ease), top 0.2s, bottom 0.2s;
+}
+.social-chat-country-item:hover {
+ background: color-mix(in srgb, #1a2435 78%, transparent);
+ border-color: color-mix(in srgb, var(--rail-accent) 28%, transparent);
+ transform: translateX(1px);
+}
+.social-chat-country-item.is-active {
+ background:
+ linear-gradient(
+ 105deg,
+ color-mix(in srgb, var(--rail-accent) 16%, transparent),
+ color-mix(in srgb, #152033 70%, transparent) 55%
+ );
+ border-color: color-mix(in srgb, var(--rail-accent) 48%, transparent);
+ box-shadow:
+ 0 0 0 1px color-mix(in srgb, var(--rail-accent) 12%, transparent),
+ 0 10px 28px -18px color-mix(in srgb, var(--rail-accent) 55%, transparent);
+}
+.social-chat-country-item.is-active::before {
+ top: 8px;
+ bottom: 8px;
+ background: linear-gradient(180deg, var(--rail-accent), #fbbf24);
+}
+.social-chat-country-item.is-lobby.is-active {
+ border-color: color-mix(in srgb, var(--rail-mint) 45%, transparent);
+ background:
+ linear-gradient(
+ 105deg,
+ color-mix(in srgb, var(--rail-mint) 16%, transparent),
+ color-mix(in srgb, #152033 70%, transparent) 55%
+ );
+ box-shadow:
+ 0 0 0 1px color-mix(in srgb, var(--rail-mint) 12%, transparent),
+ 0 10px 28px -18px color-mix(in srgb, var(--rail-mint) 50%, transparent);
+}
+.social-chat-country-item.is-lobby.is-active::before {
+ background: linear-gradient(180deg, var(--rail-mint), #7ee8df);
+}
+.social-chat-country-flag {
+ flex: 0 0 auto;
+ width: 36px;
+ height: 36px;
+ border-radius: 11px;
+ display: grid;
+ place-items: center;
+ position: relative;
+ background:
+ linear-gradient(
+ 145deg,
+ color-mix(in srgb, hsl(var(--item-tint), 42%, 42%) 35%, #1b2535),
+ #101722
+ );
+ border: 1px solid color-mix(in srgb, #c5d7ea 14%, transparent);
+ box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
+ overflow: hidden;
+}
+.social-chat-country-flag.is-lobby {
+ background:
+ linear-gradient(
+ 145deg,
+ color-mix(in srgb, var(--rail-mint) 28%, #1b2535),
+ #101722
+ );
+ border-color: color-mix(in srgb, var(--rail-mint) 30%, transparent);
+}
+.social-chat-country-flag-code {
+ font-size: 11px;
+ font-weight: 750;
+ letter-spacing: 0.04em;
+ color: #e8f1fb;
+ text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
+}
+.social-chat-country-flag-emoji {
+ display: none;
+}
+.social-chat-country-flag.is-lobby .social-chat-country-flag-emoji {
+ display: grid;
+ place-items: center;
+ position: static;
+ font-size: 18px;
+ line-height: 1;
+ filter: none;
+}
+.social-chat-country-item[data-cc="CN"] { --item-tint: 0; }
+.social-chat-country-item[data-cc="TH"] { --item-tint: 330; }
+.social-chat-country-item[data-cc="ID"] { --item-tint: 355; }
+.social-chat-country-item[data-cc="MY"] { --item-tint: 145; }
+.social-chat-country-item[data-cc="PT"] { --item-tint: 145; }
+.social-chat-country-item[data-cc="JP"] { --item-tint: 350; }
+.social-chat-country-item[data-cc="KR"] { --item-tint: 215; }
+.social-chat-country-item[data-cc="DE"] { --item-tint: 45; }
+.social-chat-country-item[data-cc="ES"] { --item-tint: 25; }
+.social-chat-country-item[data-cc="VN"] { --item-tint: 50; }
+.social-chat-country-item[data-cc] .social-chat-country-flag {
+ background:
+ linear-gradient(
+ 145deg,
+ color-mix(in srgb, hsl(var(--item-tint), 55%, 42%) 42%, #1b2535),
+ #101722
+ );
+}
+.social-chat-country-meta {
+ flex: 1 1 auto;
+ min-width: 0;
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+}
+.social-chat-country-meta strong {
+ font-size: 13.5px;
+ font-weight: 650;
+ letter-spacing: 0.01em;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.social-chat-country-meta em {
+ font-style: normal;
+ font-size: 11px;
+ color: color-mix(in srgb, #8b9bb4 92%, #fff);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.social-chat-country-count {
+ flex: 0 0 auto;
+ display: inline-flex;
+ align-items: center;
+ gap: 5px;
+ min-height: 22px;
+ padding: 0 8px;
+ border-radius: 999px;
+ font-size: 11px;
+ font-variant-numeric: tabular-nums;
+ color: color-mix(in srgb, #c5d3e4 88%, #fff);
+ background: color-mix(in srgb, #0a0f16 55%, transparent);
+ border: 1px solid color-mix(in srgb, #9eb6cc 12%, transparent);
+}
+.social-chat-country-count > i {
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: var(--rail-mint);
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--rail-mint) 18%, transparent);
+}
+.social-chat-unread-dot {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-width: 16px;
+ height: 16px;
+ padding: 0 4px;
+ margin-left: 2px;
+ border-radius: 999px;
+ font-size: 10px;
+ font-weight: 700;
+ font-style: normal;
+ line-height: 1;
+ color: #0c0c0f;
+ background: #f59e0b;
+ box-shadow: 0 0 0 1px color-mix(in srgb, #f59e0b 35%, transparent);
+}
+.social-chat-country-item.has-unread .social-chat-country-meta strong {
+ color: #fff;
+}
+.social-msg-pending,
+.social-msg-pending-tick {
+ color: color-mix(in srgb, #8b9bb4 90%, #fff);
+ font-size: 11px;
+ letter-spacing: 0.04em;
+}
+.social-msg-mention {
+ color: #fbbf24;
+ font-weight: 650;
+ background: color-mix(in srgb, #f59e0b 16%, transparent);
+ border-radius: 4px;
+ padding: 0 3px;
+}
+.social-msg-bilingual {
+ display: flex;
+ flex-direction: column;
+ gap: 0;
+}
+.social-msg-original {
+ margin: 0;
+}
+.social-msg-translated {
+ margin: 5px 0 0;
+ padding: 5px 0 0;
+ border: 0;
+ border-radius: 0;
+ border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
+ background: transparent;
+ font-size: 12px;
+ line-height: 1.5;
+ font-weight: 450;
+ color: color-mix(in srgb, var(--text-muted, #8b9bb4) 82%, #fff);
+}
+.social-message.mine .social-msg-translated {
+ border-top-color: color-mix(in srgb, #5ce1d6 18%, transparent);
+ color: color-mix(in srgb, #a7f3d0 55%, #8b9bb4);
+}
+.social-msg-translated-lang {
+ display: inline;
+ margin-right: 5px;
+ padding: 0;
+ border-radius: 0;
+ font-size: 10px;
+ font-weight: 650;
+ letter-spacing: 0.06em;
+ text-transform: uppercase;
+ color: color-mix(in srgb, currentColor 70%, transparent);
+ background: transparent;
+ opacity: 0.72;
+ vertical-align: baseline;
+}
+.social-message.mine .social-msg-translated-lang {
+ background: transparent;
+ color: color-mix(in srgb, #6ee7b7 65%, transparent);
+}
+.social-msg-translated.is-pending {
+ opacity: 0.55;
+}
+.social-msg-translated-wait {
+ font-style: italic;
+ opacity: 0.75;
+}
+.social-mention-suggest {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin: 0 0 8px;
+ padding: 0 2px;
+}
+.social-mention-suggest button {
+ min-height: 32px;
+ padding: 0 10px;
+ border-radius: 999px;
+ border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent);
+ background: color-mix(in srgb, #1a1408 88%, transparent);
+ color: #fde68a;
+ font: inherit;
+ font-size: 12px;
+ font-weight: 600;
+ cursor: pointer;
+}
+.social-mention-suggest button:hover,
+.social-mention-suggest button:focus-visible {
+ border-color: #f59e0b;
+ background: color-mix(in srgb, #f59e0b 18%, transparent);
+}
+.social-chat-events {
+ flex: 0 0 auto;
+ padding: 8px 12px 6px;
+ border-bottom: 1px solid color-mix(in srgb, var(--sx-line, #2a3544) 80%, transparent);
+ background: color-mix(in srgb, #101820 88%, transparent);
+}
+.social-chat-events-head {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ margin-bottom: 6px;
+ font-size: 11px;
+ font-weight: 650;
+ color: var(--text-muted, #8b9bb4);
+}
+.social-chat-events-all {
+ margin-left: auto;
+ color: var(--sx-mint, #34d399);
+ text-decoration: none;
+ font-weight: 600;
+}
+.social-chat-events-list {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: grid;
+ gap: 6px;
+}
+.social-chat-events-list li {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+.social-chat-events-item {
+ flex: 1 1 auto;
+ min-width: 0;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ min-height: 40px;
+ padding: 6px 10px;
+ border-radius: 12px;
+ border: 1px solid color-mix(in srgb, #9eb6cc 12%, transparent);
+ background: color-mix(in srgb, #0a1018 70%, transparent);
+ color: inherit;
+ text-decoration: none;
+}
+.social-chat-events-meta {
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+ min-width: 0;
+}
+.social-chat-events-meta strong {
+ font-size: 12px;
+ font-weight: 650;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.social-chat-events-meta em {
+ font-style: normal;
+ font-size: 10px;
+ color: var(--text-muted, #8b9bb4);
+}
+.social-chat-events-chat {
+ flex: 0 0 auto;
+ min-height: 36px;
+ padding: 0 10px;
+ border-radius: 999px;
+ border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent);
+ color: #fde68a;
+ text-decoration: none;
+ font-size: 11px;
+ font-weight: 650;
+ display: inline-flex;
+ align-items: center;
+}
+.social-chat-live .social-day-sep {
+ position: sticky;
+ top: 0;
+ z-index: 3;
+ margin: 8px 0;
+ pointer-events: none;
+}
+.social-chat-live .social-day-sep span {
+ backdrop-filter: blur(10px);
+ background: color-mix(in srgb, #0c121c 78%, transparent);
+}
+.social-msg-sent.is-read {
+ color: var(--sx-mint, #34d399);
+}
+.social-forward-sheet {
+ position: fixed;
+ inset: 0;
+ z-index: 80;
+ display: flex;
+ align-items: flex-end;
+ justify-content: center;
+}
+.social-forward-sheet-backdrop {
+ position: absolute;
+ inset: 0;
+ border: 0;
+ background: rgba(0, 0, 0, 0.55);
+ cursor: pointer;
+}
+.social-forward-sheet-panel {
+ position: relative;
+ z-index: 1;
+ width: min(520px, 100%);
+ max-height: min(72vh, 560px);
+ overflow: auto;
+ padding: 14px 14px 18px;
+ border-radius: 18px 18px 0 0;
+ background: #101822;
+ border: 1px solid color-mix(in srgb, #9eb6cc 16%, transparent);
+ box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.45);
+}
+.social-forward-sheet-panel header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+ margin-bottom: 8px;
+}
+.social-forward-sheet-panel header strong {
+ font-size: 15px;
+}
+.social-forward-sheet-panel header button {
+ border: 0;
+ background: transparent;
+ color: inherit;
+ min-width: 44px;
+ min-height: 44px;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ cursor: pointer;
+}
+.social-forward-sheet-preview {
+ margin: 0 0 12px;
+ font-size: 13px;
+}
+.social-forward-sheet-panel ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: grid;
+ gap: 8px;
+}
+.social-forward-sheet-panel li button {
+ width: 100%;
+ display: grid;
+ grid-template-columns: 28px 1fr;
+ grid-template-rows: auto auto;
+ column-gap: 10px;
+ align-items: center;
+ min-height: 52px;
+ padding: 10px 12px;
+ border-radius: 14px;
+ border: 1px solid color-mix(in srgb, #9eb6cc 14%, transparent);
+ background: color-mix(in srgb, #0a1018 88%, transparent);
+ color: inherit;
+ text-align: left;
+ font: inherit;
+ cursor: pointer;
+}
+.social-forward-sheet-panel li button > span {
+ grid-row: 1 / span 2;
+ font-size: 18px;
+}
+.social-forward-sheet-panel li button strong {
+ font-size: 14px;
+}
+.social-forward-sheet-panel li button em {
+ grid-column: 2;
+ font-style: normal;
+ font-size: 11px;
+ color: var(--text-muted, #8b9bb4);
+}
+.social-forward-sheet-panel li button:disabled {
+ opacity: 0.55;
+ cursor: wait;
+}
+@media (min-width: 861px) {
+ .social-forward-sheet {
+ align-items: center;
+ }
+ .social-forward-sheet-panel {
+ border-radius: 18px;
+ max-height: min(70vh, 520px);
+ }
+}
+.social-chat-country-item.is-active .social-chat-country-count {
+ color: #fff8e8;
+ border-color: color-mix(in srgb, var(--rail-accent) 35%, transparent);
+ background: color-mix(in srgb, var(--rail-accent) 18%, transparent);
+}
+.social-chat-country-item.is-lobby.is-active .social-chat-country-count {
+ color: #e8fffc;
+ border-color: color-mix(in srgb, var(--rail-mint) 35%, transparent);
+ background: color-mix(in srgb, var(--rail-mint) 16%, transparent);
+}
+.social-chat-countries .social-conversation {
+ flex: 1 1 auto;
+ min-width: 0;
+ background:
+ radial-gradient(
+ 120% 80% at 100% 0%,
+ color-mix(in srgb, #152033 35%, transparent),
+ transparent 55%
+ );
+}
+@media (max-width: 860px) {
+ .social-chat-live .layout-chat-countries {
+ flex-direction: column;
+ }
+ .social-chat-country-rail {
+ flex: 0 0 auto;
+ width: 100%;
+ max-width: none;
+ min-width: 0;
+ flex-direction: row;
+ align-items: center;
+ gap: 8px;
+ padding: 10px 12px;
+ border-right: 0;
+ border-bottom: 1px solid color-mix(in srgb, var(--sx-line) 80%, transparent);
+ overflow-x: auto;
+ overflow-y: hidden;
+ -webkit-overflow-scrolling: touch;
+ scrollbar-width: none;
+ background:
+ linear-gradient(
+ 90deg,
+ color-mix(in srgb, #121a28 90%, transparent),
+ color-mix(in srgb, #0b1018 96%, transparent)
+ );
+ }
+ .social-chat-country-rail::-webkit-scrollbar {
+ display: none;
+ }
+ .social-chat-country-rail-glow,
+ .social-chat-country-rail-head,
+ .social-chat-country-rail-label {
+ display: none;
+ }
+ .social-chat-country-list,
+ .social-chat-country-list--scroll {
+ flex: 0 0 auto;
+ flex-direction: row;
+ overflow: visible;
+ min-height: 0;
+ gap: 8px;
+ }
+ .social-chat-country-item {
+ width: auto;
+ min-width: 0;
+ min-height: 44px;
+ padding: 8px 12px 8px 10px;
+ border-radius: 999px;
+ transform: none !important;
+ }
+ .social-chat-country-item::before {
+ display: none;
+ }
+ .social-chat-country-flag {
+ width: 28px;
+ height: 28px;
+ border-radius: 999px;
+ }
+ .social-chat-country-flag-code {
+ font-size: 9px;
+ }
+ .social-chat-country-flag-emoji {
+ display: none;
+ }
+ .social-chat-country-flag.is-lobby .social-chat-country-flag-emoji {
+ display: inline;
+ font-size: 14px;
+ }
+ .social-chat-country-meta em {
+ display: none;
+ }
+ .social-chat-country-count {
+ display: inline-flex;
+ padding: 0;
+ min-height: 0;
+ border: 0;
+ background: transparent;
+ gap: 0;
+ }
+ .social-chat-country-count > i,
+ .social-chat-country-count {
+ font-size: 0;
+ color: transparent;
+ }
+ .social-chat-country-count > i {
+ display: none;
+ }
+ .social-chat-unread-dot {
+ font-size: 10px;
+ color: #0c0c0f;
+ }
+ .social-chat-country-meta strong {
+ font-size: 13px;
+ }
+}
+.social-chat-live .social-conversation {
+ flex: 1;
+ height: 100%;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ margin: 0;
+ padding: 0;
+ border: 0 !important;
+ border-radius: 0 !important;
+ box-shadow: none !important;
+ background: transparent !important;
+ overflow: hidden;
+}
+/* 一条细工具条,别再堆第二标题 */
+.social-chat-live .social-conversation-top.social-chat-chrome {
+ display: flex !important;
+ align-items: center;
+ justify-content: flex-end;
+ padding: 6px 10px;
+ border-bottom: 1px solid var(--sx-line, rgba(171, 195, 213, 0.1));
+ background: transparent;
+ min-height: 40px;
+}
+.social-chat-live .social-chat-top-tools {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ gap: 6px;
+}
+.social-chat-live .social-chat-presence-pill {
+ margin-left: auto;
+ font-size: 11px;
+ color: var(--text-muted);
+ white-space: nowrap;
+}
+.social-chat-live .social-chat-presence-pill.is-live {
+ color: var(--sx-mint, #34d399);
+ font-weight: 600;
+}
+.social-chat-live .social-chat-presence-pill.is-live::before {
+ content: "";
+ display: inline-block;
+ width: 6px;
+ height: 6px;
+ margin-right: 6px;
+ border-radius: 50%;
+ background: currentColor;
+ box-shadow: 0 0 0 0 currentColor;
+ animation: social-rt-pulse 1.6s ease-out infinite;
+ vertical-align: 1px;
+}
+@keyframes social-rt-pulse {
+ 0% {
+ box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
+ }
+ 70% {
+ box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
+ }
+ 100% {
+ box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
+ }
+}
+.social-chat-live .social-chat-top-tools .social-btn {
+ min-height: 34px;
+ min-width: 34px;
+ padding: 0 10px;
+ border-radius: 10px;
+}
+.social-chat-live .social-chat-top-tools .social-btn.is-on {
+ border-color: var(--sx-mint);
+ color: var(--sx-mint);
+}
+.social-chat-live .social-connection-status {
+ margin: 0;
+ border-radius: 0;
+ padding: 6px 12px;
+ flex-shrink: 0;
+}
+.social-chat-live .social-thread-wrap {
+ flex: 1 1 auto;
+ min-height: 0;
+ margin: 0;
+ padding: 0;
+ border: 0;
+ border-radius: 0;
+ background: transparent;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+}
+.social-chat-live .social-chat-thread {
+ flex: 1 1 auto !important;
+ height: auto !important;
+ min-height: 0 !important;
+ max-height: none !important;
+ margin: 0;
+ padding: 12px 14px 16px;
+ border: 0;
+ border-radius: 0;
+ background: transparent;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-start;
+ overflow-x: hidden;
+ overflow-y: auto;
+ overscroll-behavior: contain;
+ scrollbar-width: none;
+ -ms-overflow-style: none;
+}
+.social-chat-live .social-chat-thread::-webkit-scrollbar {
+ width: 0;
+ height: 0;
+ display: none;
+}
+/* 消息少时贴底,避免漂在屏幕中间 */
+.social-chat-live .social-chat-thread::before {
+ content: "";
+ flex: 1 1 auto;
+ min-height: 0;
+ pointer-events: none;
+}
+.social-chat-live .social-msg-block,
+.social-chat-live .social-message,
+.social-chat-live .social-load-older,
+.social-chat-live .social-day-sep,
+.social-chat-live .social-unread-sep {
+ flex: 0 0 auto;
+}
+.social-chat-live .social-msg-block {
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+}
+.social-chat-live .social-message.mine {
+ margin-left: auto;
+ margin-right: 0;
+ align-self: flex-end;
+}
+.social-chat-live .social-chat-composer {
+ flex-shrink: 0;
+ margin: 0;
+ border-radius: 0 !important;
+ border-left: 0;
+ border-right: 0;
+ border-bottom: 0;
+}
+.social-chat-live .social-chat-search,
+.social-chat-live .social-search-hits,
+.social-chat-live .social-pinned-strip {
+ flex-shrink: 0;
+}
+.social-chat-live .social-chat-typing-label {
+ flex-shrink: 0;
+ margin: 0 12px 4px;
+ font-size: 11px;
+ opacity: 0.7;
+}
+.social-chat-live .social-chat-composer textarea {
+ min-height: 44px;
+ max-height: 120px;
+}
+.social-chat-live .social-composer-toolbar {
+ align-items: center;
+}
+.social-chat-live .social-composer-spacer {
+ flex: 1 1 auto;
+ min-width: 8px;
+}
+.social-chat-live .social-composer-count {
+ font-size: 11px;
+ color: var(--text-muted);
+ margin-right: 4px;
+}
+.social-chat-live .social-composer-count.is-warn {
+ color: var(--sx-coral, #ff7b75);
+}
+.social-chat-live .social-composer-send {
+ min-height: 40px;
+ min-width: 72px;
+ padding-inline: 14px;
+ border-radius: 12px;
+ font-weight: 650;
+}
+.social-live-root .social-mobile-dock {
+ z-index: 40;
+}
+/* 唯一聊天室:隐藏旧频道分类条 */
+.social-chat-solo .social-chat-live-tabs,
+.social-chat-live-tabs {
+ display: none !important;
+}
+.social-chat-live-tabs-legacy {
+ display: flex;
+ flex-wrap: nowrap;
+ flex-shrink: 0;
+ overflow-x: auto;
+ gap: 6px;
+ padding: 8px 12px;
+ border-bottom: var(--sc-border, 1px solid rgba(171, 195, 213, 0.12));
+ background: color-mix(in srgb, var(--sc-bg, #0a0e17) 92%, transparent);
+ -webkit-overflow-scrolling: touch;
+}
+.social-chat-live-tabs .social-live-tab {
+ display: inline-flex;
+ align-items: center;
+ flex: 0 0 auto;
+ min-height: 36px;
+ padding: 0 12px;
+ border-radius: 999px;
+ border: 0;
+ text-decoration: none;
+ white-space: nowrap;
+ color: var(--sc-muted, var(--text-muted));
+ background: transparent;
+ font: inherit;
+ font-weight: 600;
+ font-size: 12px;
+}
+.social-chat-live-tabs .social-live-tab.active,
+.social-chat-live-tabs .social-live-tab[aria-current="page"] {
+ color: #0a0e17;
+ background: var(--sc-gradient, linear-gradient(90deg, #ff6b6b, #4ecdc4));
+}
+/* Match homepage glass pill nav — one chrome across social */
+.social-workspace .navbar {
+ position: fixed;
+ inset: 0 0 auto;
+ height: 88px;
+ padding: 14px 28px;
+ border: 0;
+ background: transparent;
+ box-shadow: none;
+}
+.social-workspace .navbar.scrolled {
+ background: transparent;
+ border-bottom: 0;
+ box-shadow: none;
+ backdrop-filter: none;
+}
+.social-workspace .nav-container {
+ height: auto;
+ min-height: 56px;
+ max-width: 1184px;
+ padding: 0 20px;
+ border: 1px solid var(--connection-border, var(--sx-line));
+ border-radius: 18px;
+ background: color-mix(in srgb, var(--bg-primary) 84%, transparent);
+ backdrop-filter: blur(24px);
+ gap: 24px;
+ transition: box-shadow 0.3s;
+}
+.social-workspace .navbar.scrolled .nav-container {
+ box-shadow: 0 8px 32px #0002;
+}
+.social-workspace .nav-logo {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ font-size: 16px;
+ font-weight: 750;
+ letter-spacing: -0.03em;
+ white-space: nowrap;
+}
+.social-workspace .nav-logo .logo-icon {
+ display: grid;
+ place-items: center;
+ width: 30px;
+ height: 30px;
+ border-radius: 9px;
+ background: #4ecdc412;
+ color: var(--sx-mint, var(--connection-mint));
+ font-size: 25px;
+ animation: none;
+}
+.social-workspace .nav-actions,
+.social-immersive .nav-actions,
+.social-home .nav-actions {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ margin-left: auto; /* 汉堡/操作永远顶到最右边 */
+ flex-shrink: 0;
+}
+.social-immersive .nav-container,
+.social-home .nav-container {
+ width: 100%;
+ justify-content: flex-start;
+}
+.social-lang-switch {
+ display: inline-flex;
+ align-items: center;
+ position: relative;
+ z-index: 40;
+ flex-shrink: 0;
+}
+.social-lang-switch--mobile {
+ width: 100%;
+ margin-bottom: 0.5rem;
+ display: block;
+}
+.social-lang-switch-trigger {
+ appearance: none;
+ min-height: 36px;
+ max-width: 9.5rem;
+ padding: 0 1.75rem 0 0.65rem;
+ border-radius: 9px;
+ border: 1px solid color-mix(in srgb, var(--text-secondary) 28%, transparent);
+ background-color: #14141a;
+ color: #f3f4f6;
+ font-size: 12px;
+ font-weight: 600;
+ cursor: pointer;
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
+ background-repeat: no-repeat;
+ background-position: right 0.5rem center;
+ line-height: 1.2;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.social-lang-switch--mobile .social-lang-switch-trigger {
+ width: 100%;
+ max-width: none;
+ min-height: 44px;
+ text-align: left;
+}
+.social-lang-switch-trigger:focus {
+ outline: none;
+ border-color: color-mix(in srgb, var(--sx-mint, #5eead4) 55%, transparent);
+}
+.social-lang-switch-trigger:disabled {
+ opacity: 0.55;
+ cursor: wait;
+}
+.social-lang-switch-menu {
+ position: absolute;
+ top: calc(100% + 6px);
+ left: 0;
+ right: auto;
+ z-index: 60;
+ margin: 0;
+ padding: 0.35rem;
+ list-style: none;
+ width: max-content;
+ min-width: 100%;
+ max-width: min(14rem, calc(100vw - 1.25rem));
+ max-height: min(70vh, 22rem);
+ overflow: auto;
+ overscroll-behavior: contain;
+ border-radius: 12px;
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ background: #121218;
+ box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
+ -webkit-overflow-scrolling: touch;
+ scrollbar-width: thin;
+ scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
+}
+.social-lang-switch--mobile .social-lang-switch-menu {
+ left: 0;
+ right: 0;
+ width: auto;
+ max-width: none;
+}
+.social-lang-switch-menu button {
+ display: block;
+ width: 100%;
+ min-height: 40px;
+ padding: 0.55rem 0.75rem;
+ border: 0;
+ border-radius: 8px;
+ background: transparent;
+ color: #f3f4f6;
+ font-size: 13px;
+ font-weight: 500;
+ text-align: left;
+ cursor: pointer;
+}
+.social-lang-switch-menu button:hover,
+.social-lang-switch-menu button:focus-visible {
+ background: rgba(94, 234, 212, 0.14);
+ outline: none;
+}
+.social-lang-switch-menu button.is-selected {
+ background: rgba(94, 234, 212, 0.22);
+ color: #5eead4;
+ font-weight: 700;
+}
+.social-workspace .nav-icon-btn {
+ display: grid;
+ place-items: center;
+ width: 38px;
+ height: 38px;
+ background: transparent;
+ color: var(--text-secondary);
+ border: 0;
+ border-radius: 10px;
+}
+.social-workspace .nav-actions .btn {
+ padding: 0 17px;
+ min-height: 36px;
+ border-radius: 10px;
+ font-size: 12px;
+}
+.social-workspace .nav-actions .btn-primary {
+ background: var(--text-primary);
+ color: var(--bg-primary);
+ box-shadow: none;
+}
+.social-workspace .nav-actions .btn-ghost {
+ color: var(--text-secondary);
+ background: var(--bg-glass);
+}
+.social-workspace .nav-group-btn {
+ min-height: 42px;
+ font-size: 12px;
+}
+.social-workspace .nav-group-panel::before {
+ content: "";
+ position: absolute;
+ top: -12px;
+ height: 12px;
+ left: 0;
+ right: 0;
+}
+.social-workspace .nav-mobile-extras {
+ display: none;
+}
+.social-workspace-grid {
+ display: block;
+ max-width: none;
+ width: 100%;
+ margin: 0;
+ padding: calc(var(--nav-height) + 12px) 20px 88px;
+ min-height: 100dvh;
+ box-sizing: border-box;
+}
+.social-workspace-dense .social-workspace-grid {
+ padding: calc(var(--nav-height) + 8px) 16px 80px;
+}
+.social-workspace-tools .social-workspace-grid--tools {
+ padding: calc(var(--nav-height) + 10px) 16px 80px;
+}
+.social-main--tools {
+ max-width: 1200px;
+}
+.social-workspace .social-main {
+ width: 100%;
+ min-width: 0;
+ max-width: 1400px;
+ padding: 0;
+ margin: 0 auto;
+}
+.social-mobile-dock {
+ display: none;
+}
+.social-breadcrumb {
+ display: flex;
+ gap: 8px;
+ align-items: center;
+ color: var(--text-muted);
+ font-size: 10px;
+ padding: 10px 0 0;
+}
+.social-breadcrumb a:hover {
+ color: var(--sx-mint);
+}
+.social-page-intro {
+ position: relative;
+ padding: 36px 0 34px;
+ overflow: hidden;
+}
+.social-page-intro .social-emoji-field {
+ z-index: 0;
+ opacity: 0.85;
+}
+.social-page-intro > :not(.social-emoji-field) {
+ position: relative;
+ z-index: 1;
+}
+.social-workspace .social-fx-orbs {
+ opacity: 0.35;
+}
+.social-workspace .social-fx-orb.o3 {
+ display: block;
+}
+.social-room-hero {
+ position: relative;
+ margin: 8px 0 22px;
+ padding: 22px 22px 20px;
+ border: 1px solid var(--sx-line);
+ border-radius: 20px;
+ background: color-mix(in srgb, var(--sx-surface) 88%, transparent);
+ backdrop-filter: blur(14px);
+ overflow: hidden;
+}
+.social-room-hero h1 {
+ font-size: clamp(26px, 3vw, 36px);
+ letter-spacing: -0.04em;
+ margin: 12px 0 8px;
+ line-height: 1.25;
+}
+.social-room-hero > p {
+ color: var(--text-secondary);
+ font-size: 13px;
+ max-width: 54ch;
+ line-height: 1.7;
+}
+.social-room-hero-emoji {
+ position: absolute;
+ inset: auto 16px 14px auto;
+ display: flex;
+ gap: 8px;
+ pointer-events: none;
+}
+.social-room-hero-emoji i {
+ font-style: normal;
+ font-size: 0.95rem;
+ opacity: 0.28;
+ filter: none;
+ animation: social-emoji-fly 10s ease-in-out infinite;
+}
+.social-room-hero-emoji i:nth-child(2) {
+ animation-delay: 0.4s;
+}
+.social-room-hero-emoji i:nth-child(3) {
+ animation-delay: 0.8s;
+}
+.social-room-hero-emoji i:nth-child(4) {
+ animation-delay: 1.2s;
+}
+.social-workspace .reveal {
+ opacity: 0;
+ transform: translateY(18px);
+ transition:
+ opacity 0.55s var(--sx-ease),
+ transform 0.55s var(--sx-ease);
+}
+.social-workspace .reveal.visible {
+ opacity: 1;
+ transform: none;
+}
+.social-page-kicker {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ color: var(--sx-mint);
+ font-size: 9px;
+ letter-spacing: 0.18em;
+}
+.social-page-kicker > span {
+ height: 5px;
+ width: 5px;
+ background: var(--sx-mint);
+ box-shadow: 0 0 0 4px #4ecdc40c;
+ border-radius: 50%;
+ animation: sx-beacon 3s ease-in-out infinite;
+}
+.social-page-intro h1 {
+ position: relative;
+ font-size: clamp(31px, 3vw, 43px);
+ line-height: 1.4;
+ letter-spacing: -0.05em;
+ font-weight: 750;
+ margin: 18px 0 16px;
+ animation: sx-arrive 0.7s var(--sx-ease) both;
+}
+.social-page-intro h1 > span {
+ color: var(--sx-mint);
+}
+.social-page-intro > p {
+ position: relative;
+ color: var(--text-secondary);
+ max-width: 620px;
+ font-size: 13px;
+ line-height: 1.9;
+ animation: sx-arrive 0.8s 0.1s var(--sx-ease) backwards;
+}
+.social-page-orbit {
+ position: absolute;
+ width: 240px;
+ height: 240px;
+ right: 10px;
+ top: 8px;
+ pointer-events: none;
+ opacity: 0.25;
+ display: grid;
+ place-items: center;
+}
+.social-page-orbit i {
+ position: absolute;
+ width: 170px;
+ height: 170px;
+ border: 1px solid var(--sx-mint);
+ border-radius: 50%;
+ transform: rotateX(60deg) rotate(-25deg);
+ animation: sx-orbit 24s linear infinite;
+}
+.social-page-orbit i:nth-child(2) {
+ width: 220px;
+ height: 220px;
+ border-color: var(--sx-coral);
+ animation-delay: -8s;
+ animation-direction: reverse;
+ transform: rotateY(60deg) rotate(25deg);
+}
+.social-page-orbit i:nth-child(3) {
+ border-style: dashed;
+ width: 110px;
+ height: 110px;
+ animation-duration: 38s;
+}
+.social-page-orbit span {
+ font-size: 54px;
+ color: var(--sx-mint);
+ animation: sx-breathe 5s ease-in-out infinite;
+}
+.social-workspace
+ :is(.social-card, .social-list-item, .social-panel, .social-member-card) {
+ position: relative;
+ border: 1px solid var(--sx-line);
+ border-radius: 17px;
+ background: var(--sx-surface);
+ backdrop-filter: blur(10px);
+ box-shadow: inset 0 1px 0 #ffffff03;
+ transition:
+ transform 0.35s var(--sx-ease),
+ border-color 0.3s,
+ box-shadow 0.3s;
+}
+.social-workspace
+ :is(.social-card, .social-list-item, .social-member-card)::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ border-radius: inherit;
+ background: radial-gradient(
+ 360px circle at var(--spot-x, 50%) var(--spot-y, 0%),
+ #4ecdc40b,
+ transparent 70%
+ );
+ pointer-events: none;
+ opacity: 0;
+ transition: opacity 0.3s;
+}
+.social-workspace
+ :is(.social-card, .social-list-item, .social-member-card):hover {
+ border-color: #4ecdc44a;
+ transform: translateY(-4px);
+ box-shadow: 0 16px 35px #0002;
+}
+.social-workspace
+ :is(.social-card, .social-list-item, .social-member-card):hover::before {
+ opacity: 1;
+}
+.social-workspace .social-grid {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 16px;
+}
+.social-workspace .social-card {
+ padding: 24px;
+ display: flex;
+ flex-direction: column;
+ gap: 13px;
+ min-width: 0;
+}
+.social-workspace .social-card > strong {
+ font-size: 17px;
+ line-height: 1.5;
+ letter-spacing: -0.025em;
+}
+.social-workspace .social-card > p {
+ flex: 1;
+ font-size: 12px;
+ line-height: 1.9;
+ color: var(--text-secondary);
+}
+.social-workspace .social-card-top {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+.social-workspace .social-card-ico {
+ display: grid;
+ place-items: center;
+ width: 48px;
+ height: 48px;
+ border-radius: 15px;
+ background: #4ecdc40b;
+ border: 1px solid #4ecdc426;
+ color: var(--sx-mint);
+ font-size: 25px;
+}
+.social-workspace .social-badge {
+ border: 1px solid var(--sx-line);
+ background: transparent;
+ padding: 4px 8px;
+ color: var(--text-secondary);
+ border-radius: 6px;
+ font-size: 9px;
+}
+.social-workspace .social-badge.live {
+ color: var(--sx-mint);
+ border-color: #4ecdc42b;
+}
+.social-workspace .social-list {
+ display: grid;
+ gap: 12px;
+}
+.social-workspace .social-list-item {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 20px;
+ padding: 23px;
+ text-align: left;
+ color: inherit;
+ font: inherit;
+ width: 100%;
+}
+.social-workspace .social-list-item strong {
+ font-size: 15px;
+}
+.social-workspace .social-list-item p {
+ font-size: 12px;
+ color: var(--text-secondary);
+ line-height: 1.8;
+ margin-top: 8px;
+}
+.social-workspace .social-list-item > em {
+ font-size: 12px;
+ color: var(--sx-mint);
+ font-style: normal;
+}
+.social-workspace .social-list-stack {
+ flex-direction: column;
+ align-items: stretch;
+}
+.social-workspace .social-panel {
+ padding: 26px;
+ margin-top: 24px;
+}
+.social-workspace .social-panel h2 {
+ font-size: 20px;
+ letter-spacing: -0.03em;
+}
+.social-workspace .social-muted {
+ color: var(--text-secondary);
+ font-size: 12px;
+ line-height: 1.85;
+}
+.social-workspace .social-actions {
+ display: flex;
+ gap: 10px;
+ flex-wrap: wrap;
+ align-items: center;
+}
+.social-experience .social-btn {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 9px;
+ border: 1px solid var(--sx-line);
+ background: var(--bg-glass);
+ color: var(--text-primary);
+ padding: 10px 16px;
+ min-height: 43px;
+ font-size: 12px;
+ font-weight: 600;
+ border-radius: 10px;
+ text-decoration: none;
+ transition:
+ transform 0.25s var(--sx-ease),
+ background 0.25s,
+ border-color 0.25s;
+}
+.social-experience .social-btn:hover {
+ transform: translateY(-2px);
+ border-color: #4ecdc46b;
+}
+.social-experience .social-btn.primary {
+ background: var(--sx-mint);
+ border-color: var(--sx-mint);
+ color: #092b2a;
+ box-shadow: 0 6px 25px #4ecdc410;
+}
+.social-experience .social-btn.coral {
+ background: linear-gradient(120deg, #ff9781, #ff7778);
+ color: #321b1c;
+ border-color: #ff9781;
+}
+.social-experience .social-card-btn {
+ cursor: pointer;
+ font: inherit;
+ color: inherit;
+ text-align: left;
+}
+.social-workspace .social-card-btn.active {
+ border-color: #4ecdc47a;
+ background:
+ linear-gradient(135deg, #4ecdc410, transparent), var(--sx-surface);
+}
+.social-form {
+ display: grid;
+ gap: 18px;
+}
+.social-workspace .social-form label {
+ display: grid;
+ gap: 9px;
+ font-size: 12px;
+ color: var(--text-secondary);
+}
+.social-workspace
+ :is(.social-form, .social-compose, .social-chat-nick)
+ :is(input, textarea, select) {
+ min-height: 46px;
+ width: 100%;
+ border: 1px solid var(--sx-line);
+ border-radius: 10px;
+ padding: 12px 14px;
+ color: var(--text-primary);
+ background: color-mix(in srgb, var(--bg-primary) 80%, transparent);
+ font: inherit;
+ font-size: 14px;
+ line-height: 1.65;
+ transition:
+ border-color 0.2s,
+ box-shadow 0.2s;
+}
+.social-workspace textarea {
+ resize: vertical;
+}
+.social-workspace :is(input, textarea, select):focus {
+ border-color: #4ecdc46b;
+ box-shadow: 0 0 0 3px #4ecdc40b;
+ outline: none;
+}
+.social-workspace input[type="range"] {
+ padding: 0;
+ accent-color: var(--sx-mint);
+}
+.social-form-grid {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 18px;
+}
+.social-form-grid .full {
+ grid-column: 1/-1;
+}
+.social-toolbar {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 14px;
+ margin: 0 0 24px;
+ flex-wrap: wrap;
+}
+.social-search {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ min-height: 45px;
+ padding: 0 13px;
+ border: 1px solid var(--sx-line);
+ border-radius: 11px;
+ background: var(--bg-glass);
+ color: var(--text-muted);
+ min-width: 220px;
+ flex: 1;
+ max-width: 420px;
+}
+.social-search input {
+ width: 100%;
+ min-width: 0;
+ padding: 11px 0;
+ font: inherit;
+ font-size: 12px;
+ outline: none !important;
+ border: 0 !important;
+ box-shadow: none !important;
+ background: none;
+ color: var(--text-primary);
+}
+.social-search input::-webkit-search-cancel-button {
+ display: none;
+}
+.social-search button {
+ display: grid;
+ place-items: center;
+ border: 0;
+ padding: 6px;
+ color: var(--text-secondary);
+ background: none;
+}
+.social-filters {
+ display: flex;
+ align-items: center;
+ gap: 7px;
+ flex-wrap: wrap;
+}
+.social-filters button,
+.social-team-tab {
+ min-height: 39px;
+ padding: 8px 13px;
+ border: 1px solid var(--sx-line);
+ border-radius: 9px;
+ color: var(--text-secondary);
+ background: transparent;
+ font: inherit;
+ font-size: 11px;
+}
+.social-filters button.active,
+.social-team-tab.active {
+ color: var(--sx-mint);
+ background: #4ecdc410;
+ border-color: #4ecdc43b;
+}
+.social-team-tabs {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+}
+.social-save {
+ display: inline-flex;
+ gap: 7px;
+ align-items: center;
+ justify-content: center;
+ min-height: 38px;
+ padding: 6px 11px;
+ background: transparent;
+ color: var(--text-secondary);
+ border: 1px solid var(--sx-line);
+ border-radius: 9px;
+ font: inherit;
+ font-size: 11px;
+}
+.social-save.selected {
+ color: var(--sx-mint);
+ border-color: #4ecdc43b;
+ background: #4ecdc408;
+}
+.social-card-actions {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ flex-wrap: wrap;
+ margin-top: auto;
+}
+.social-section-label {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ margin: 26px 0 18px;
+ font-size: 12px;
+ font-weight: 600;
+}
+.social-section-label span {
+ color: var(--text-muted);
+ font-weight: 400;
+ font-size: 10px;
+}
+.social-empty {
+ grid-column: 1/-1;
+ text-align: center;
+ padding: 50px 20px;
+ border: 1px dashed var(--sx-line);
+ border-radius: 16px;
+}
+.social-empty > span {
+ display: block;
+ font-size: 30px;
+ color: var(--sx-mint);
+ margin-bottom: 15px;
+}
+.social-empty h3 {
+ font-size: 16px;
+}
+.social-empty p {
+ color: var(--text-muted);
+ margin-top: 8px;
+ font-size: 12px;
+ line-height: 1.9;
+}
+.social-empty-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ justify-content: center;
+ margin-top: 4px;
+}
+.social-empty .social-btn {
+ margin-top: 18px;
+}
+.social-status {
+ display: flex;
+ gap: 8px;
+ align-items: center;
+ padding: 12px 15px;
+ border: 1px solid var(--sx-line);
+ border-radius: 10px;
+ background: #4ecdc407;
+ color: var(--text-secondary);
+ font-size: 11px;
+ line-height: 1.8;
+ margin: 16px 0;
+}
+.social-status.warn {
+ background: #ffe19508;
+ color: var(--sx-gold);
+ border-color: #ffe19526;
+}
+.social-status.error {
+ background: #ff7b7508;
+ color: var(--sx-coral);
+ border-color: #ff7b7533;
+}
+.social-tags {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+}
+.social-tags span {
+ background: var(--bg-glass);
+ border: 1px solid var(--sx-line);
+ border-radius: 6px;
+ padding: 3px 7px;
+ font-size: 10px;
+ color: var(--text-secondary);
+}
+.social-detail-dialog {
+ width: min(590px, calc(100vw - 32px));
+ max-height: 88dvh;
+ overflow: auto;
+ margin: auto;
+ padding: 0;
+ border: 1px solid var(--sx-line);
+ border-radius: 22px;
+ background: var(--bg-secondary);
+ color: var(--text-primary);
+ box-shadow: 0 30px 100px #0007;
+}
+.social-detail-dialog::backdrop {
+ background: #03090ed9;
+ backdrop-filter: blur(14px);
+}
+.social-detail-dialog > div {
+ padding: 26px;
+ animation: sx-arrive 0.35s var(--sx-ease);
+}
+.social-detail-dialog header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 17px;
+}
+.social-detail-dialog header > span {
+ display: flex;
+ gap: 12px;
+ color: var(--sx-mint);
+ font-size: 9px;
+ letter-spacing: 0.12em;
+}
+.social-detail-dialog header button {
+ display: grid;
+ place-items: center;
+ width: 42px;
+ height: 42px;
+ border: 0;
+ border-radius: 10px;
+ color: inherit;
+ background: var(--bg-glass);
+}
+.social-detail-dialog h2 {
+ font-size: 25px;
+ letter-spacing: -0.03em;
+ margin-bottom: 16px;
+}
+.social-detail-dialog p {
+ font-size: 13px;
+ line-height: 1.9;
+ color: var(--text-secondary);
+ margin-bottom: 18px;
+}
+.social-detail-dialog .social-actions {
+ display: flex;
+ gap: 10px;
+ flex-wrap: wrap;
+ margin-top: 24px;
+}
+.social-detail-dialog .social-tags {
+ margin-bottom: 16px;
+}
+.social-member-grid {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 16px;
+}
+.social-member-card {
+ padding: 23px;
+ display: flex;
+ flex-direction: column;
+ gap: 13px;
+}
+.social-member-head {
+ display: flex;
+ gap: 13px;
+ align-items: center;
+}
+.social-member-head img {
+ width: 51px;
+ height: 51px;
+ border-radius: 50%;
+ object-fit: cover;
+ background: var(--bg-glass);
+}
+.social-member-head h2 {
+ font-size: 16px;
+ margin-bottom: 4px;
+}
+.social-member-head p {
+ font-size: 11px;
+ color: var(--text-secondary);
+}
+.social-member-city {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ color: var(--sx-mint);
+ font-size: 11px;
+}
+.social-member-card > p {
+ font-size: 12px;
+ color: var(--text-secondary);
+ line-height: 1.9;
+ flex: 1;
+}
+.social-member-card .social-btn {
+ width: 100%;
+}
+.social-member-profile {
+ display: flex;
+ align-items: center;
+ gap: 17px;
+ margin: 10px 0 24px;
+}
+.social-member-profile img {
+ width: 74px;
+ height: 74px;
+ border-radius: 50%;
+}
+.social-member-profile strong {
+ font-size: 21px;
+}
+.social-member-profile p {
+ margin: 6px 0 0;
+ font-size: 12px;
+}
+.social-member-profile .social-member-city {
+ margin-top: 9px;
+}
+.social-world-strip {
+ position: relative;
+ display: grid;
+ grid-template-columns: 1.2fr repeat(4, 1fr);
+ gap: 12px;
+ padding-block: 24px;
+ margin: 18px auto 36px;
+ border-block: 1px solid var(--sx-line);
+ z-index: 1;
+}
+.social-world-strip > div:first-child {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ gap: 6px;
+}
+.social-world-strip strong {
+ font-size: 13px;
+}
+.social-world-strip p {
+ color: var(--text-muted);
+ font-size: 10px;
+}
+.social-world-city {
+ position: relative;
+ padding: 12px 14px;
+ border-left: 1px solid var(--sx-line);
+}
+.social-world-city strong {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ font-size: 12px;
+}
+.social-world-city time {
+ display: block;
+ color: var(--text-secondary);
+ font-size: 22px;
+ font-variant-numeric: tabular-nums;
+ font-weight: 500;
+ margin: 6px 0 3px;
+}
+.social-world-city small {
+ color: var(--text-muted);
+ font-size: 9px;
+}
+.social-world-city a {
+ position: absolute;
+ inset: 0;
+ border-radius: 10px;
+}
+.social-world-city:hover {
+ background: #4ecdc407;
+}
+.social-workspace-footer {
+ margin-top: 50px;
+ padding: 24px 0 5px;
+ border-top: 1px solid var(--sx-line);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 14px;
+ flex-wrap: wrap;
+ font-size: 10px;
+ color: var(--text-muted);
+}
+.social-workspace-footer > div {
+ display: flex;
+ gap: 16px;
+}
+.social-workspace-footer a:hover {
+ color: var(--sx-mint);
+}
+.social-experience[data-immersive="true"] .social-workspace .social-card {
+ animation: sx-arrive 0.65s var(--sx-ease) backwards;
+}
+.social-experience[data-immersive="true"]
+ .social-workspace
+ .social-card:nth-child(2) {
+ animation-delay: 0.07s;
+}
+.social-experience[data-immersive="true"]
+ .social-workspace
+ .social-card:nth-child(3) {
+ animation-delay: 0.14s;
+}
+.social-experience[data-immersive="true"]
+ .social-workspace
+ .social-card:nth-child(4) {
+ animation-delay: 0.21s;
+}
+.social-experience[data-immersive="false"] *,
+.social-experience[data-immersive="false"] *::before,
+.social-experience[data-immersive="false"] *::after {
+ animation: none !important;
+ transition-duration: 0.12s !important;
+}
+.social-experience[data-immersive="false"]
+ :is(.social-ambient i, .social-pointer-glow, .social-constellation) {
+ display: none;
+}
+.social-experience[data-immersive="false"] .social-home .reveal {
+ opacity: 1 !important;
+ transform: none !important;
+}
+[data-theme="light"] .social-experience {
+ --sx-mint: #137f78;
+ --sx-coral: #d85451;
+ --sx-gold: #936919;
+ --sx-line: rgba(29, 62, 78, 0.13);
+ --sx-surface: rgba(255, 255, 255, 0.86);
+}
+.social-experience [aria-busy="true"] {
+ cursor: progress;
+}
+@keyframes sx-arrive {
+ from {
+ opacity: 0;
+ transform: translateY(16px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+@keyframes sx-aurora {
+ from {
+ transform: translate(0, 0) scale(1);
+ }
+ to {
+ transform: translate(-10vw, 12vh) scale(1.2);
+ }
+}
+@keyframes sx-orbit {
+ from {
+ rotate: 0deg;
+ }
+ to {
+ rotate: 360deg;
+ }
+}
+@keyframes sx-beacon {
+ 0%,
+ 100% {
+ box-shadow: 0 0 0 4px #4ecdc40c;
+ }
+ 50% {
+ box-shadow: 0 0 0 7px #4ecdc405;
+ }
+}
+@keyframes sx-breathe {
+ 0%,
+ 100% {
+ opacity: 0.45;
+ scale: 0.9;
+ }
+ 50% {
+ opacity: 1;
+ scale: 1.1;
+ }
+}
+@media (min-width: 901px) {
+ .social-workspace .mobile-menu-btn {
+ display: none;
+ }
+}
+@media (max-width: 1150px) {
+ .social-workspace-grid {
+ padding-inline: 24px;
+ }
+ .social-workspace .social-grid,
+ .social-member-grid {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+ .social-workspace .nav-container {
+ gap: 12px;
+ }
+ .social-page-orbit {
+ right: -45px;
+ }
+}
+@media (max-width: 900px) {
+ .social-workspace-grid {
+ display: block;
+ padding: 98px 24px 90px;
+ }
+ .social-workspace .navbar {
+ padding: 12px 20px;
+ height: 80px;
+ }
+ .social-workspace .nav-container {
+ gap: 10px;
+ padding-inline: 14px;
+ }
+ .social-workspace .nav-links:not(.open) {
+ display: none;
+ }
+ .social-workspace .nav-links.open {
+ display: flex;
+ position: fixed;
+ inset: 70px 0 auto;
+ width: 100%;
+ max-height: calc(100dvh - 100px);
+ overflow: auto;
+ padding: 20px;
+ border: 1px solid var(--connection-border, var(--sx-line));
+ border-radius: 16px;
+ background: var(--bg-primary);
+ gap: 8px;
+ transform: none;
+ flex-direction: column;
+ }
+ .social-workspace .nav-group-btn {
+ width: 100%;
+ justify-content: space-between;
+ }
+ .social-workspace .nav-group-panel {
+ position: static;
+ background: transparent;
+ box-shadow: none;
+ border: 0;
+ }
+ .social-workspace .nav-group-panel::before {
+ display: none;
+ }
+ .social-workspace .nav-mobile-extras {
+ display: flex;
+ gap: 10px;
+ padding-top: 12px;
+ border-top: 1px solid var(--sx-line);
+ }
+ .social-workspace .social-nav-desktop-cta {
+ display: none;
+ }
+ /* 登录/加入只放汉堡菜单里;顶栏右侧再露「登录」会叠在汉堡上像浮层 */
+ .social-workspace .nav-actions > .social-nav-login,
+ .social-immersive .nav-actions > .social-nav-login,
+ .social-home .nav-actions > .social-nav-login,
+ .social-immersive .social-nav-desktop-cta {
+ display: none !important;
+ }
+ .social-immersive .nav-links:not(.open) {
+ display: none;
+ }
+ .social-immersive .nav-links.open {
+ display: flex;
+ position: fixed;
+ inset: 70px 0 auto;
+ width: 100%;
+ max-height: calc(100dvh - 100px);
+ overflow: auto;
+ padding: 20px;
+ border: 1px solid var(--connection-border, var(--sx-line));
+ border-radius: 16px;
+ background: var(--bg-primary);
+ gap: 8px;
+ transform: none;
+ flex-direction: column;
+ z-index: 1200;
+ }
+ .social-immersive .nav-mobile-extras {
+ display: flex;
+ gap: 10px;
+ padding-top: 12px;
+ border-top: 1px solid var(--sx-line);
+ }
+ .social-workspace .mobile-menu-btn,
+ .social-immersive .mobile-menu-btn {
+ display: flex;
+ width: 44px;
+ height: 44px;
+ padding: 10px;
+ justify-content: center;
+ align-items: center;
+ }
+ .social-workspace .nav-icon-btn {
+ width: 42px;
+ height: 42px;
+ }
+ .social-mobile-dock {
+ position: fixed;
+ display: grid;
+ grid-template-columns: repeat(5, 1fr);
+ z-index: 1000;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ border: none;
+ border-top: 1px solid var(--sx-line);
+ border-radius: 0;
+ background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
+ backdrop-filter: blur(18px);
+ padding: 6px 8px max(8px, env(safe-area-inset-bottom));
+ box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
+ }
+ .social-chat-live .social-chat-composer {
+ padding-bottom: calc(12px + 64px + env(safe-area-inset-bottom, 0px));
+ }
+ .social-chat-live[data-keyboard-open="true"] .social-chat-composer,
+ html[data-keyboard-open="true"] .social-chat-live .social-chat-composer {
+ padding-bottom: 12px;
+ }
+ .social-date-root .social-date-stage {
+ padding-bottom: calc(12px + 72px + env(safe-area-inset-bottom, 0px));
+ }
+ .social-date-root .social-date-deck {
+ height: auto;
+ max-height: min(520px, calc(100dvh - 300px));
+ aspect-ratio: auto;
+ }
+ .social-mobile-dock a {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 4px;
+ min-height: 44px;
+ color: var(--text-muted);
+ font-size: 9px;
+ border-radius: 10px;
+ }
+ .social-mobile-dock a[aria-current="page"] {
+ color: #f59e0b;
+ background: color-mix(in srgb, #f59e0b 12%, transparent);
+ }
+ .social-fx-control {
+ bottom: 80px;
+ right: 14px;
+ }
+ .social-world-strip {
+ grid-template-columns: repeat(4, 1fr);
+ }
+ .social-world-strip > div:first-child {
+ grid-column: 1/-1;
+ padding-bottom: 6px;
+ }
+ .social-world-strip > div:first-child p {
+ display: none;
+ }
+ .social-world-city {
+ padding: 10px;
+ }
+ .social-world-city time {
+ font-size: 18px;
+ }
+}
+@media (max-width: 600px) {
+ .social-workspace-grid {
+ padding: 93px 20px 90px;
+ }
+ .social-page-intro {
+ padding: 26px 0 27px;
+ }
+ .social-page-intro h1 {
+ font-size: 32px;
+ }
+ .social-page-intro > p {
+ font-size: 12px;
+ max-width: 90%;
+ }
+ .social-page-orbit {
+ opacity: 0.14;
+ width: 190px;
+ height: 190px;
+ right: -70px;
+ top: 30px;
+ }
+ .social-workspace .social-grid,
+ .social-member-grid {
+ grid-template-columns: 1fr;
+ gap: 13px;
+ }
+ .social-workspace .social-card {
+ padding: 22px;
+ }
+ .social-workspace .social-panel {
+ padding: 20px;
+ }
+ .social-form-grid {
+ grid-template-columns: 1fr;
+ }
+ .social-form-grid .full {
+ grid-column: auto;
+ }
+ .social-toolbar {
+ gap: 12px;
+ }
+ .social-search {
+ max-width: none;
+ width: 100%;
+ }
+ .social-workspace .social-list-item {
+ padding: 18px;
+ gap: 14px;
+ }
+ .social-workspace .social-list-item strong {
+ font-size: 14px;
+ }
+ .social-workspace .social-list-item p {
+ font-size: 11px;
+ }
+ .social-workspace :is(input, textarea, select) {
+ font-size: 16px !important;
+ }
+ .social-world-strip {
+ gap: 0;
+ }
+ .social-world-city {
+ padding: 10px 7px;
+ }
+ .social-world-city strong {
+ font-size: 10px;
+ gap: 4px;
+ }
+ .social-world-city time {
+ font-size: 17px;
+ }
+ .social-world-city small {
+ font-size: 8px;
+ }
+ .social-detail-dialog > div {
+ padding: 22px;
+ }
+ .social-detail-dialog h2 {
+ font-size: 22px;
+ }
+ .social-member-card {
+ padding: 22px;
+ }
+ .social-fx-control > span:last-child {
+ display: none;
+ }
+ .social-fx-control {
+ width: 34px;
+ height: 34px;
+ min-height: 34px;
+ padding: 0;
+ justify-content: center;
+ bottom: 82px;
+ }
+ .social-workspace .social-actions .social-btn {
+ min-height: 44px;
+ }
+ .social-workspace-footer {
+ margin-top: 35px;
+ font-size: 9px;
+ }
+ .social-workspace .nav-actions {
+ gap: 1px;
+ }
+ .social-workspace .nav-logo {
+ font-size: 14px;
+ }
+ .social-workspace .nav-container {
+ gap: 5px;
+ }
+ .social-workspace .nav-icon-btn {
+ width: 38px;
+ }
+}
+/* —— Skill swap · Wrapped · moderation · reviews —— */
+.social-skills-compose {
+ display: grid;
+ gap: 0.75rem;
+ margin: 1rem 0 1.25rem;
+ padding: 1rem 1.05rem;
+ border-radius: 18px;
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ background: rgba(255, 255, 255, 0.03);
+}
+.social-skills-compose h2 {
+ display: flex;
+ align-items: center;
+ gap: 0.4rem;
+ margin: 0;
+ font-size: 1rem;
+}
+.social-skills-compose label,
+.social-moderation-sheet label,
+.social-skills-filter {
+ display: grid;
+ gap: 0.3rem;
+ font-size: 0.85rem;
+ color: rgba(244, 244, 245, 0.68);
+}
+.social-skills-compose input,
+.social-skills-compose textarea,
+.social-skills-filter input,
+.social-moderation-sheet input,
+.social-moderation-sheet select,
+.social-moderation-sheet textarea {
+ min-height: 44px;
+ border-radius: 12px;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: rgba(0, 0, 0, 0.28);
+ color: inherit;
+ padding: 0.5rem 0.75rem;
+ font: inherit;
+}
+.social-skills-compose textarea,
+.social-moderation-sheet textarea {
+ min-height: 72px;
+ resize: vertical;
+}
+.social-skills-filter {
+ grid-template-columns: auto 1fr auto;
+ align-items: center;
+ gap: 0.5rem;
+ margin-bottom: 1rem;
+}
+.social-skills-grid {
+ display: grid;
+ gap: 0.75rem;
+ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
+}
+.social-skills-card {
+ padding: 0.95rem 1rem;
+ border-radius: 16px;
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ background: rgba(255, 255, 255, 0.025);
+}
+.social-skills-card header {
+ display: flex;
+ justify-content: space-between;
+ gap: 0.5rem;
+ font-size: 0.82rem;
+ color: rgba(244, 244, 245, 0.65);
+ margin-bottom: 0.55rem;
+}
+.social-skills-card header span {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.25rem;
+}
+.social-skills-swap {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 0.45rem;
+ margin: 0 0 0.4rem;
+ font-size: 0.95rem;
+}
+.social-skills-swap em {
+ font-style: normal;
+ color: #f59e0b;
+ font-weight: 650;
+}
+.social-skills-note {
+ margin: 0;
+ font-size: 0.82rem;
+ color: rgba(244, 244, 245, 0.62);
+ line-height: 1.45;
+}
+
+.social-wrapped {
+ max-width: 720px;
+ margin: 0 auto;
+ padding: 0.5rem 0 2.5rem;
+}
+.social-wrapped-kicker {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.35rem;
+ color: #f59e0b;
+ font-size: 0.82rem;
+ font-weight: 650;
+ margin: 0 0 0.5rem;
+}
+.social-wrapped h1 {
+ font-family: Syne, sans-serif;
+ font-size: clamp(1.6rem, 4vw, 2.2rem);
+ letter-spacing: -0.03em;
+ margin: 0 0 1rem;
+}
+.social-wrapped h1 span {
+ display: block;
+ font-size: 0.55em;
+ color: rgba(244, 244, 245, 0.55);
+ font-weight: 600;
+}
+.social-wrapped-hero {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.75rem 1.25rem;
+ align-items: center;
+ margin-bottom: 1.25rem;
+ color: rgba(244, 244, 245, 0.72);
+}
+.social-wrapped-hero em {
+ font-style: normal;
+ color: #34d399;
+ font-weight: 650;
+}
+.social-wrapped-stats {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 0.75rem;
+ margin-bottom: 1.5rem;
+}
+@media (min-width: 640px) {
+ .social-wrapped-stats {
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ }
+}
+.social-wrapped-stats > div {
+ display: grid;
+ gap: 0.25rem;
+ padding: 1rem 0.9rem;
+ border-radius: 16px;
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ background: linear-gradient(
+ 160deg,
+ rgba(245, 158, 11, 0.08),
+ rgba(255, 255, 255, 0.02)
+ );
+}
+.social-wrapped-stats strong {
+ font-family: Syne, sans-serif;
+ font-size: 1.65rem;
+ letter-spacing: -0.03em;
+}
+.social-wrapped-stats span {
+ font-size: 0.78rem;
+ color: rgba(244, 244, 245, 0.6);
+}
+.social-wrapped-cities {
+ margin-bottom: 1.5rem;
+}
+.social-wrapped-cta {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.55rem;
+}
+
+.social-moderation {
+ margin: 1.25rem 0;
+ padding: 0.9rem 1rem;
+ border-radius: 16px;
+ border: 1px dashed rgba(255, 255, 255, 0.12);
+}
+.social-moderation-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.45rem;
+ margin-bottom: 0.55rem;
+}
+.social-moderation-sheet {
+ display: grid;
+ gap: 0.65rem;
+ margin-top: 0.65rem;
+}
+
+.social-profile-reviews h2 {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 0.4rem;
+}
+.social-profile-reviews h2 em {
+ font-style: normal;
+ font-size: 0.85rem;
+ color: #f59e0b;
+ font-weight: 650;
+}
+.social-review-avgs {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.55rem;
+ list-style: none;
+ padding: 0;
+ margin: 0.5rem 0 0.75rem;
+ font-size: 0.85rem;
+ color: rgba(244, 244, 245, 0.7);
+}
+.social-review-list {
+ display: grid;
+ gap: 0.55rem;
+}
+.social-review-list blockquote {
+ margin: 0;
+ padding: 0.65rem 0.8rem;
+ border-radius: 12px;
+ background: rgba(0, 0, 0, 0.22);
+ border: 1px solid rgba(255, 255, 255, 0.06);
+ display: grid;
+ grid-template-columns: auto 1fr;
+ gap: 0.55rem;
+}
+.social-review-list blockquote strong {
+ color: #f59e0b;
+}
+.social-review-list blockquote p {
+ margin: 0;
+ font-size: 0.88rem;
+ color: rgba(244, 244, 245, 0.72);
+}
+
+@media (prefers-reduced-motion: reduce) {
+ html:has(.social-experience) {
+ scroll-behavior: auto;
+ }
+ /* Light mode only — immersive opt-in keeps motion (see motion.css). */
+ .social-experience[data-immersive="false"] *,
+ .social-experience[data-immersive="false"] *::before,
+ .social-experience[data-immersive="false"] *::after {
+ animation: none !important;
+ transition: none !important;
+ scroll-behavior: auto !important;
+ }
+ .social-experience[data-immersive="false"] .social-constellation,
+ .social-experience[data-immersive="false"] .social-pointer-glow {
+ display: none;
+ }
+ .social-experience[data-immersive="false"] .reveal {
+ opacity: 1 !important;
+ transform: none !important;
+ }
+}
diff --git a/src/modules/hub/app/fx.css b/src/modules/hub/app/fx.css
new file mode 100644
index 0000000..ffcfbb0
--- /dev/null
+++ b/src/modules/hub/app/fx.css
@@ -0,0 +1,579 @@
+/* —— 动效强化(玻璃面板风格;禁止大图卡) —— */
+
+.social-fx {
+ position: relative;
+ isolation: isolate;
+ overflow-x: clip;
+}
+
+.social-fx #particle-canvas {
+ z-index: 0;
+ pointer-events: none;
+ opacity: 0.95;
+}
+
+.social-fx-orbs {
+ position: fixed;
+ inset: 0;
+ z-index: 0;
+ pointer-events: none;
+ overflow: hidden;
+}
+
+.social-fx-orb {
+ position: absolute;
+ border-radius: 50%;
+ filter: blur(70px);
+ opacity: 0.35;
+ animation: social-orb-drift 12s ease-in-out infinite;
+}
+
+.social-fx-orb.o1 {
+ width: 340px;
+ height: 340px;
+ left: -80px;
+ top: 18%;
+ background: #ff6b6b;
+}
+
+.social-fx-orb.o2 {
+ width: 280px;
+ height: 280px;
+ right: -60px;
+ top: 48%;
+ background: #4ecdc4;
+ animation-delay: -4s;
+ animation-duration: 14s;
+}
+
+.social-fx-orb.o3 {
+ width: 260px;
+ height: 260px;
+ left: 40%;
+ bottom: 8%;
+ background: #ffe66d;
+ animation-delay: -7s;
+ animation-duration: 16s;
+}
+
+@keyframes social-orb-drift {
+ 0%,
+ 100% {
+ transform: translate(0, 0) scale(1);
+ }
+ 33% {
+ transform: translate(40px, -50px) scale(1.12);
+ }
+ 66% {
+ transform: translate(-30px, 30px) scale(0.92);
+ }
+}
+
+/* Hero emoji rain */
+.social-hero-fx {
+ position: relative;
+}
+
+.social-emoji-field {
+ position: absolute;
+ inset: 0;
+ pointer-events: none;
+ overflow: hidden;
+ z-index: 2;
+}
+
+.social-emoji-float {
+ position: absolute;
+ line-height: 1;
+ filter: none;
+ animation-name: social-emoji-fly;
+ animation-timing-function: ease-in-out;
+ animation-iteration-count: infinite;
+ will-change: transform, opacity;
+ opacity: 0.22;
+}
+
+.social-emoji-field-soft {
+ z-index: 0;
+ opacity: 0.55;
+}
+
+@keyframes social-emoji-fly {
+ 0%,
+ 100% {
+ transform: translate3d(0, 4px, 0) rotate(-2deg) scale(1);
+ opacity: 0.14;
+ }
+ 50% {
+ transform: translate3d(4px, -8px, 0) rotate(2deg) scale(1.04);
+ opacity: 0.28;
+ }
+}
+
+/* Emoji marquee belt — quiet divider */
+.social-fx-belt {
+ overflow: hidden;
+ padding: 6px 0 10px;
+ opacity: 0.35;
+ mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
+}
+
+.social-fx-belt-track {
+ display: flex;
+ width: max-content;
+ gap: 0;
+ animation: social-belt-run 48s linear infinite;
+}
+
+.social-fx-belt-track span {
+ padding-right: 56px;
+ font-size: 0.95rem;
+ letter-spacing: 0.45em;
+ white-space: nowrap;
+ opacity: 0.4;
+}
+
+@keyframes social-belt-run {
+ from {
+ transform: translateX(0);
+ }
+ to {
+ transform: translateX(-33.333%);
+ }
+}
+
+/* Section spark */
+.social-section-spark {
+ display: flex;
+ justify-content: center;
+ margin-bottom: 8px;
+ min-height: 28px;
+}
+
+.social-section-spark-svg {
+ width: min(240px, 72%);
+ height: 28px;
+}
+
+.social-spark-path {
+ stroke-dasharray: 280;
+ stroke-dashoffset: 280;
+}
+
+.reveal.visible .social-spark-path {
+ animation: social-spark-draw 1.1s ease forwards;
+}
+
+@keyframes social-spark-draw {
+ to {
+ stroke-dashoffset: 0;
+ }
+}
+
+.social-spark-dot {
+ animation: social-spark-blink 1.4s ease-in-out infinite;
+}
+
+@keyframes social-spark-blink {
+ 0%,
+ 100% {
+ opacity: 0.35;
+ r: 3;
+ }
+ 50% {
+ opacity: 1;
+ r: 6;
+ }
+}
+
+.social-title-emoji {
+ display: inline-block;
+ margin-right: 0.28em;
+ opacity: 0.82;
+ animation: none;
+ transform: none;
+}
+
+@keyframes social-emoji-wiggle {
+ 0%,
+ 100% {
+ transform: rotate(0deg) scale(1);
+ }
+ 50% {
+ transform: rotate(2deg) scale(1.02);
+ }
+}
+
+/* Path pills bounce in */
+.social-path-track.reveal.visible .social-path-link {
+ animation: social-path-pop 0.55s cubic-bezier(0.2, 0.9, 0.2, 1.2) both;
+}
+
+.social-path-track.reveal.visible .social-path-link:nth-child(1) {
+ animation-delay: 0.05s;
+}
+.social-path-track.reveal.visible .social-path-link:nth-child(2) {
+ animation-delay: 0.12s;
+}
+.social-path-track.reveal.visible .social-path-link:nth-child(3) {
+ animation-delay: 0.19s;
+}
+.social-path-track.reveal.visible .social-path-link:nth-child(4) {
+ animation-delay: 0.26s;
+}
+
+@keyframes social-path-pop {
+ from {
+ opacity: 0;
+ transform: translateY(16px) scale(0.86);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+}
+
+.social-path-link {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+}
+
+.social-path-emoji {
+ display: inline-block;
+ font-size: 1.05rem;
+ transition: transform 0.25s;
+}
+
+.social-path-link:hover .social-path-emoji {
+ animation: social-emoji-wiggle 0.55s ease;
+}
+
+/* CTA pulse */
+.social-btn-pulse {
+ position: relative;
+ overflow: visible;
+}
+
+.social-btn-pulse::before,
+.social-btn-pulse::after {
+ content: "";
+ position: absolute;
+ inset: -4px;
+ border-radius: inherit;
+ border: 2px solid rgba(78, 205, 196, 0.55);
+ pointer-events: none;
+ animation: social-btn-ring 1.6s ease-out infinite;
+}
+
+.social-btn-pulse::before {
+ animation-delay: 0.8s;
+}
+
+@keyframes social-btn-ring {
+ 0% {
+ transform: scale(1);
+ opacity: 0.75;
+ }
+ 100% {
+ transform: scale(1.28);
+ opacity: 0;
+ }
+}
+
+.social-promo-glow {
+ animation: social-promo-breathe 3.2s ease-in-out infinite;
+}
+
+@keyframes social-promo-breathe {
+ 0%,
+ 100% {
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(78, 205, 196, 0);
+ transform: translateY(0);
+ }
+ 50% {
+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), 0 0 48px 4px rgba(78, 205, 196, 0.28);
+ transform: translateY(-4px);
+ }
+}
+
+.social-promo-live {
+ display: inline-block;
+ width: 8px;
+ height: 8px;
+ margin-right: 6px;
+ border-radius: 999px;
+ background: #22c55e;
+ vertical-align: middle;
+ animation: social-live-ping 1.2s ease-out infinite;
+}
+
+@keyframes social-live-ping {
+ 0% {
+ box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
+ }
+ 70% {
+ box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
+ }
+ 100% {
+ box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
+ }
+}
+
+/* Panels: animate when revealed */
+.social-panel-fx {
+ --stagger: 0ms;
+}
+
+.reveal.visible .social-panel-fx,
+.social-panel-fx.reveal.visible {
+ animation: social-panel-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
+ animation-delay: var(--stagger, 0ms);
+}
+
+@keyframes social-panel-in {
+ from {
+ opacity: 0;
+ transform: translateY(28px) scale(0.96) rotateX(6deg);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+}
+
+.social-panel-fx:hover {
+ transform: translateY(-6px) scale(1.01);
+ box-shadow: var(--shadow-glow), 0 0 0 1px rgba(78, 205, 196, 0.28);
+ transition: transform 0.25s, box-shadow 0.25s;
+}
+
+.social-panel-ico {
+ width: 52px;
+ height: 52px;
+ display: grid;
+ place-items: center;
+ border-radius: 16px;
+ border: var(--border-glass);
+ background: color-mix(in srgb, var(--accent-3, #4ecdc4) 14%, transparent);
+ font-size: 1.45rem;
+ color: var(--accent-3, #4ecdc4);
+ animation: social-ico-bounce 2s ease-in-out infinite;
+}
+
+.social-panel-ico-bounce {
+ animation-duration: 1.6s;
+}
+
+@keyframes social-ico-bounce {
+ 0%,
+ 100% {
+ transform: translateY(0) rotate(0deg);
+ }
+ 50% {
+ transform: translateY(-8px) rotate(-6deg);
+ }
+}
+
+.social-ring-spin {
+ transform-origin: 24px 24px;
+ animation: social-ring-spin 3.5s linear infinite;
+}
+
+@keyframes social-ring-spin {
+ to {
+ transform: rotate(360deg);
+ }
+}
+
+/* People chips */
+.social-chip-pop {
+ animation: social-chip-in 0.5s cubic-bezier(0.2, 0.9, 0.2, 1.15) both;
+ animation-delay: var(--stagger, 0ms);
+}
+
+@keyframes social-chip-in {
+ from {
+ opacity: 0;
+ transform: scale(0.5) translateY(12px);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+}
+
+.social-people-chip:hover {
+ transform: translateY(-6px) scale(1.05) !important;
+}
+
+.social-people-chip.is-online .social-people-chip-ava::before {
+ content: "";
+ position: absolute;
+ inset: -4px;
+ border-radius: 999px;
+ border: 2px solid rgba(78, 205, 196, 0.65);
+ animation: social-btn-ring 1.4s ease-out infinite;
+}
+
+.social-people-bar-avs img {
+ animation: social-ava-bob 2.4s ease-in-out infinite;
+}
+
+.social-people-bar-avs img:nth-child(2) {
+ animation-delay: 0.15s;
+}
+.social-people-bar-avs img:nth-child(3) {
+ animation-delay: 0.3s;
+}
+.social-people-bar-avs img:nth-child(4) {
+ animation-delay: 0.45s;
+}
+.social-people-bar-avs img:nth-child(5) {
+ animation-delay: 0.6s;
+}
+.social-people-bar-avs img:nth-child(6) {
+ animation-delay: 0.75s;
+}
+
+@keyframes social-ava-bob {
+ 0%,
+ 100% {
+ transform: translateY(0);
+ }
+ 50% {
+ transform: translateY(-5px);
+ }
+}
+
+.social-chip-heart {
+ position: absolute;
+ top: -4px;
+ right: -6px;
+ font-style: normal;
+ font-size: 0.8rem;
+ color: #ff6b6b;
+ animation: social-heart-pop 0.45s ease;
+}
+
+@keyframes social-heart-pop {
+ from {
+ transform: scale(0);
+ }
+ 70% {
+ transform: scale(1.35);
+ }
+ to {
+ transform: scale(1);
+ }
+}
+
+.social-count-pulse {
+ display: inline-block;
+ color: var(--accent-3, #4ecdc4);
+ animation: social-count-glow 1.4s ease-in-out infinite;
+}
+
+@keyframes social-count-glow {
+ 0%,
+ 100% {
+ text-shadow: 0 0 0 transparent;
+ transform: scale(1);
+ }
+ 50% {
+ text-shadow: 0 0 16px rgba(78, 205, 196, 0.9);
+ transform: scale(1.08);
+ }
+}
+
+.social-detail-in {
+ animation: social-detail-slide 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
+ position: relative;
+ overflow: hidden;
+}
+
+@keyframes social-detail-slide {
+ from {
+ opacity: 0;
+ transform: translateY(16px) scale(0.98);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+}
+
+.social-burst {
+ position: absolute;
+ inset: 0;
+ display: grid;
+ place-items: center;
+ font-size: 1rem;
+ letter-spacing: 0.2em;
+ pointer-events: none;
+ opacity: 0.55;
+ animation: social-burst-up 0.55s ease forwards;
+ z-index: 2;
+}
+
+@keyframes social-burst-up {
+ from {
+ opacity: 0;
+ transform: translateY(6px) scale(0.9);
+ }
+ 40% {
+ opacity: 0.55;
+ }
+ to {
+ opacity: 0;
+ transform: translateY(-18px) scale(1.05);
+ }
+}
+
+.social-logo-spin {
+ display: inline-block;
+ animation: social-logo-spin 6s linear infinite;
+}
+
+@keyframes social-logo-spin {
+ to {
+ transform: rotate(360deg);
+ }
+}
+
+.social-panel .btn-sm {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+}
+
+.social-hero-fx .shape {
+ animation-duration: 5.5s !important;
+ opacity: 0.55 !important;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .social-experience[data-immersive="false"] .social-emoji-float,
+ .social-experience[data-immersive="false"] .social-fx-orb,
+ .social-experience[data-immersive="false"] .social-fx-belt-track,
+ .social-experience[data-immersive="false"] .social-btn-pulse::before,
+ .social-experience[data-immersive="false"] .social-btn-pulse::after,
+ .social-experience[data-immersive="false"] .social-promo-glow,
+ .social-experience[data-immersive="false"] .social-promo-live,
+ .social-experience[data-immersive="false"] .social-panel-fx,
+ .social-experience[data-immersive="false"] .social-chip-pop,
+ .social-experience[data-immersive="false"] .social-title-emoji,
+ .social-experience[data-immersive="false"] .social-panel-ico,
+ .social-experience[data-immersive="false"] .social-ring-spin,
+ .social-experience[data-immersive="false"] .social-logo-spin,
+ .social-experience[data-immersive="false"]
+ .social-people-chip.is-online
+ .social-people-chip-ava::before,
+ .social-experience[data-immersive="false"] .social-people-bar-avs img,
+ .social-experience[data-immersive="false"] .social-count-pulse,
+ .social-experience[data-immersive="false"] .social-spark-path,
+ .social-experience[data-immersive="false"] .social-spark-dot,
+ .social-experience[data-immersive="false"] .social-hero-fx .shape {
+ animation: none !important;
+ }
+}
diff --git a/src/modules/hub/app/globals.css b/src/modules/hub/app/globals.css
new file mode 100644
index 0000000..8c30772
--- /dev/null
+++ b/src/modules/hub/app/globals.css
@@ -0,0 +1,1787 @@
+/* 游民社区首页 / 壳层 — 对齐旅居社群视觉语言 */
+.social-flow {
+ position: relative;
+ min-height: 100dvh;
+ background: var(--bg-primary, #0a0e17);
+ color: var(--text-primary, #f1f5f9);
+}
+
+.social-hub-block {
+ margin-bottom: 40px;
+}
+
+.social-hub-block-head {
+ margin-bottom: 16px;
+}
+
+.social-hub-block-head h3 {
+ margin: 0 0 4px;
+ font-family: var(--font-display);
+ font-size: 1.25rem;
+ letter-spacing: -0.02em;
+}
+
+.social-hub-block-head p {
+ margin: 0;
+ color: var(--text-secondary, #94a3b8);
+ font-size: 0.92rem;
+}
+
+.social-hub-grid {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 14px;
+}
+
+.social-hub-card {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ min-height: 168px;
+ padding: 20px 18px;
+ border-radius: var(--radius-xl, 24px);
+ border: var(--border-glass);
+ background: var(--bg-card);
+ backdrop-filter: blur(14px);
+ transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
+}
+
+.social-hub-card:hover {
+ transform: translateY(-3px);
+ border-color: rgba(78, 205, 196, 0.35);
+ box-shadow: var(--shadow-glow);
+}
+
+.social-hub-card-top {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+
+.social-hub-emoji {
+ width: 44px;
+ height: 44px;
+ display: grid;
+ place-items: center;
+ border-radius: 14px;
+ background: var(--bg-glass);
+ border: var(--border-glass);
+ font-size: 1.25rem;
+}
+
+.social-pill {
+ font-size: 0.72rem;
+ padding: 4px 10px;
+ border-radius: 999px;
+ border: var(--border-glass);
+ color: var(--text-muted, #64748b);
+}
+
+.social-pill.live {
+ color: #4ecdc4;
+ border-color: rgba(78, 205, 196, 0.35);
+}
+
+.social-hub-card h4 {
+ margin: 0;
+ font-family: var(--font-display);
+ font-size: 1.05rem;
+}
+
+.social-hub-card p {
+ margin: 0;
+ flex: 1;
+ color: var(--text-secondary, #94a3b8);
+ font-size: 0.88rem;
+ line-height: 1.5;
+}
+
+.social-hub-go {
+ color: var(--accent-3, #4ecdc4);
+ font-size: 0.85rem;
+ font-weight: 600;
+}
+
+.social-next-grid {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 14px;
+}
+
+.social-next-card {
+ display: grid;
+ grid-template-columns: auto 1fr auto;
+ gap: 14px;
+ align-items: center;
+ padding: 18px 16px;
+ border-radius: var(--radius-xl, 24px);
+ border: var(--border-glass);
+ background: var(--bg-card);
+ transition: transform 0.2s, border-color 0.2s;
+}
+
+.social-next-card:hover {
+ transform: translateY(-2px);
+ border-color: rgba(255, 230, 109, 0.35);
+}
+
+.social-next-card span {
+ font-size: 1.5rem;
+}
+
+.social-next-card strong {
+ display: block;
+ font-family: var(--font-display);
+ margin-bottom: 4px;
+}
+
+.social-next-card p {
+ margin: 0;
+ color: var(--text-secondary, #94a3b8);
+ font-size: 0.85rem;
+}
+
+.social-next-card em {
+ font-style: normal;
+ color: var(--accent-2, #ffe66d);
+ font-size: 1.2rem;
+}
+
+.social-flow .footer-inner {
+ display: grid;
+ grid-template-columns: 1.4fr 2fr;
+ gap: 32px;
+ padding: 48px 0 24px;
+}
+
+.social-flow .footer-cols {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 20px;
+}
+
+.social-flow .footer-cols h4 {
+ margin: 0 0 12px;
+ font-size: 0.9rem;
+}
+
+.social-flow .footer-cols a {
+ display: block;
+ color: var(--text-secondary, #94a3b8);
+ font-size: 0.88rem;
+ margin-bottom: 8px;
+}
+
+.social-flow .footer-cols a:hover {
+ color: var(--text-primary, #f1f5f9);
+}
+
+.social-flow .footer-brand p {
+ margin-top: 12px;
+ color: var(--text-secondary, #94a3b8);
+ max-width: 28rem;
+}
+
+.social-flow .footer-bottom {
+ display: flex;
+ justify-content: space-between;
+ gap: 12px;
+ padding: 16px 0 40px;
+ border-top: var(--border-glass);
+ color: var(--text-muted, #64748b);
+ font-size: 0.82rem;
+}
+
+.social-page-pad {
+ padding-top: calc(var(--nav-height, 72px) + 24px);
+ padding-bottom: 64px;
+}
+
+@media (max-width: 960px) {
+ .social-hub-grid,
+ .social-next-grid {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+
+ .social-flow .footer-inner {
+ grid-template-columns: 1fr;
+ }
+}
+
+@media (max-width: 640px) {
+ .social-hub-grid,
+ .social-next-grid,
+ .social-flow .footer-cols {
+ grid-template-columns: 1fr;
+ }
+
+ .social-flow .nav-links:not(.open) {
+ display: none;
+ }
+
+ .social-nav-desktop-cta {
+ display: none;
+ }
+}
+
+.social-nav-desktop-cta {
+ display: inline-flex;
+}
+
+.social-root,
+.social-flow {
+ --sc-bg: #0a0e17;
+ --sc-bg-card: rgba(17, 24, 39, 0.78);
+ --sc-bg-glass: rgba(255, 255, 255, 0.05);
+ --sc-text: #f1f5f9;
+ --sc-muted: #94a3b8;
+ --sc-accent-1: #ff6b6b;
+ --sc-accent-2: #ffe66d;
+ --sc-accent-3: #4ecdc4;
+ --sc-gradient: linear-gradient(135deg, #ff6b6b 0%, #ffe66d 50%, #4ecdc4 100%);
+ --sc-border: 1px solid rgba(255, 255, 255, 0.08);
+ --sc-radius: 14px;
+ --sc-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
+ --sc-font-display: var(--font-outfit), var(--font-noto-sc), system-ui, sans-serif;
+ --sc-font-body: var(--font-noto-sc), var(--font-outfit), system-ui, sans-serif;
+ --sc-nav-h: 56px;
+ --sc-ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
+}
+
+.social-root {
+ min-height: 100dvh;
+ font-family: var(--sc-font-body);
+ background:
+ radial-gradient(ellipse 70% 45% at 50% -10%, rgba(78, 205, 196, 0.12), transparent),
+ radial-gradient(ellipse 50% 35% at 90% 20%, rgba(255, 107, 107, 0.08), transparent),
+ var(--sc-bg);
+ color: var(--sc-text);
+ line-height: 1.55;
+}
+
+html.light .social-root,
+html.light .social-flow,
+[data-theme="light"] .social-root,
+[data-theme="light"] .social-flow {
+ --sc-bg: #f8fafc;
+ --sc-bg-card: rgba(255, 255, 255, 0.9);
+ --sc-bg-glass: rgba(15, 23, 42, 0.04);
+ --sc-text: #0f172a;
+ --sc-muted: #64748b;
+ --sc-accent-1: #e11d48;
+ --sc-accent-2: #d97706;
+ --sc-accent-3: #0d9488;
+ --sc-gradient: linear-gradient(135deg, #e11d48 0%, #d97706 50%, #0d9488 100%);
+ --sc-border: 1px solid rgba(15, 23, 42, 0.08);
+ --sc-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
+ background:
+ radial-gradient(ellipse 70% 45% at 50% -10%, rgba(13, 148, 136, 0.08), transparent),
+ radial-gradient(ellipse 50% 35% at 90% 20%, rgba(225, 29, 72, 0.05), transparent),
+ var(--sc-bg);
+}
+
+.social-root a {
+ color: inherit;
+ text-decoration: none;
+}
+
+.social-nav {
+ position: sticky;
+ top: 0;
+ z-index: 40;
+ height: var(--sc-nav-h);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 20px;
+ border-bottom: var(--sc-border);
+ background: color-mix(in srgb, var(--sc-bg) 82%, transparent);
+ backdrop-filter: blur(16px);
+}
+
+.social-brand {
+ display: inline-flex;
+ align-items: center;
+ gap: 10px;
+ font-family: var(--sc-font-display);
+ font-weight: 800;
+ letter-spacing: -0.02em;
+}
+
+.social-brand-mark {
+ width: 36px;
+ height: 36px;
+ border-radius: 12px;
+ display: grid;
+ place-items: center;
+ background: var(--sc-bg-glass);
+ border: var(--sc-border);
+ font-size: 1.1rem;
+}
+
+.social-nav-back {
+ min-height: 44px;
+ padding: 0 14px;
+ border-radius: 999px;
+ border: var(--sc-border);
+ background: var(--sc-bg-glass);
+ color: var(--sc-muted);
+ font-size: 0.9rem;
+ display: inline-flex;
+ align-items: center;
+}
+
+.social-nav-back:hover {
+ color: var(--sc-text);
+ border-color: rgba(78, 205, 196, 0.35);
+}
+
+.social-main {
+ width: min(1080px, calc(100% - 32px));
+ margin: 0 auto;
+ padding: 40px 0 80px;
+}
+
+.social-hero {
+ margin-bottom: 28px;
+}
+
+.social-hero-tag {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ padding: 6px 14px;
+ border-radius: 100px;
+ border: var(--border-glass);
+ background: var(--bg-glass);
+ color: var(--text-secondary);
+ font-size: 0.78rem;
+ margin-bottom: 12px;
+}
+
+.social-hero h1 {
+ margin: 0 0 10px;
+ font-family: var(--font-display);
+ font-size: clamp(1.7rem, 3.8vw, 2.4rem);
+ font-weight: 800;
+ letter-spacing: -0.03em;
+ line-height: 1.15;
+}
+
+.social-hero h1 span {
+ background: var(--gradient-text);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ background-clip: text;
+}
+
+.social-hero p {
+ margin: 0;
+ max-width: 36rem;
+ color: var(--text-secondary);
+ font-size: 0.95rem;
+}
+
+.social-section {
+ margin-bottom: 40px;
+}
+
+.social-section-head {
+ margin-bottom: 16px;
+}
+
+.social-section-head h2 {
+ margin: 0 0 4px;
+ font-family: var(--sc-font-display);
+ font-size: 1.25rem;
+ font-weight: 800;
+ letter-spacing: -0.02em;
+}
+
+.social-section-head p {
+ margin: 0;
+ color: var(--sc-muted);
+ font-size: 0.92rem;
+}
+
+.social-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
+ gap: 12px;
+}
+
+.social-card {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ min-height: 120px;
+ padding: 14px 14px;
+ border-radius: var(--sc-radius);
+ border: var(--sc-border);
+ background: var(--sc-bg-card);
+ box-shadow: var(--sc-shadow);
+ backdrop-filter: blur(14px);
+ transition: transform var(--sc-ease), border-color var(--sc-ease), box-shadow var(--sc-ease);
+}
+
+.social-card:hover {
+ transform: translateY(-3px);
+ border-color: rgba(78, 205, 196, 0.35);
+ box-shadow: 0 0 28px rgba(78, 205, 196, 0.12), var(--sc-shadow);
+}
+
+.social-card-top {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+}
+
+.social-card-ico {
+ width: 40px;
+ height: 40px;
+ border-radius: 12px;
+ display: grid;
+ place-items: center;
+ background: var(--sc-bg-glass);
+ border: var(--sc-border);
+ font-size: 1.15rem;
+}
+
+.social-badge {
+ font-size: 0.72rem;
+ padding: 4px 8px;
+ border-radius: 999px;
+ border: var(--sc-border);
+ color: var(--sc-muted);
+}
+
+.social-badge.live {
+ color: #4ecdc4;
+ border-color: rgba(78, 205, 196, 0.35);
+}
+
+.social-card strong {
+ font-family: var(--sc-font-display);
+ font-size: 1.02rem;
+ letter-spacing: -0.02em;
+}
+
+.social-card p {
+ margin: 0;
+ color: var(--sc-muted);
+ font-size: 0.88rem;
+}
+
+.social-footer {
+ margin-top: 56px;
+ padding-top: 20px;
+ border-top: var(--sc-border);
+ color: var(--sc-muted);
+ font-size: 0.85rem;
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px 16px;
+ justify-content: space-between;
+}
+
+.social-nav-links {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 6px;
+ justify-content: flex-end;
+}
+
+.social-nav-link {
+ min-height: 44px;
+ padding: 0 10px;
+ display: inline-flex;
+ align-items: center;
+ color: var(--sc-muted);
+ font-size: 0.88rem;
+ border-radius: 999px;
+}
+
+.social-nav-link:hover {
+ color: var(--sc-text);
+ background: var(--sc-bg-glass);
+}
+
+.social-muted {
+ color: var(--text-secondary);
+ font-size: 0.9rem;
+}
+
+.social-list {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+
+.social-list-item {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ padding: 12px 14px;
+ border-radius: var(--sc-radius);
+ border: var(--sc-border);
+ background: var(--sc-bg-card);
+ text-align: left;
+ width: 100%;
+ transition: border-color var(--sc-ease), box-shadow var(--sc-ease);
+}
+
+.social-list-item:hover {
+ border-color: rgba(78, 205, 196, 0.28);
+ box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
+}
+
+.social-list-item strong {
+ display: block;
+ font-family: var(--sc-font-display);
+}
+
+.social-list-item p {
+ margin: 4px 0 0;
+ color: var(--sc-muted);
+ font-size: 0.88rem;
+}
+
+.social-list-item em {
+ font-style: normal;
+ color: var(--sc-accent-3);
+ font-size: 0.85rem;
+ white-space: nowrap;
+}
+
+.social-list-stack {
+ flex-direction: column;
+ align-items: stretch;
+}
+
+.social-card-btn {
+ cursor: pointer;
+ font: inherit;
+ color: inherit;
+ text-align: left;
+}
+
+.social-card.active,
+.social-list-item.active {
+ border-color: rgba(78, 205, 196, 0.45);
+ box-shadow: 0 0 0 1px rgba(78, 205, 196, 0.2);
+}
+
+.social-panel {
+ margin-top: 28px;
+ padding: 20px;
+ border-radius: var(--sc-radius);
+ border: var(--sc-border);
+ background: var(--sc-bg-card);
+}
+
+.social-panel h2 {
+ margin: 0 0 8px;
+ font-family: var(--sc-font-display);
+ font-size: 1.15rem;
+}
+
+.social-form {
+ display: grid;
+ gap: 12px;
+ margin-top: 12px;
+}
+
+.social-form label {
+ display: grid;
+ gap: 6px;
+ font-size: 0.9rem;
+ color: var(--sc-muted);
+}
+
+.social-form input,
+.social-form textarea,
+.social-form select {
+ width: 100%;
+ min-height: 44px;
+ padding: 10px 12px;
+ border-radius: 12px;
+ border: var(--sc-border);
+ background: var(--sc-bg-glass);
+ color: var(--sc-text);
+ font: inherit;
+}
+
+.social-form textarea {
+ min-height: 96px;
+ resize: vertical;
+}
+
+.social-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+}
+
+.social-btn {
+ min-height: 44px;
+ padding: 0 16px;
+ border-radius: var(--radius-md, 12px);
+ border: var(--border-glass);
+ background: var(--bg-glass);
+ color: var(--text-primary);
+ font: inherit;
+ font-weight: 600;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ cursor: pointer;
+}
+
+.social-btn.primary {
+ border: none;
+ color: #0a0e17;
+ background: var(--gradient-main, linear-gradient(135deg, #ff6b6b, #ffe66d 50%, #4ecdc4));
+}
+
+.social-chat-head {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 12px 16px;
+ margin-bottom: 16px;
+}
+
+.social-chat-nick {
+ margin-bottom: 12px;
+}
+
+.social-chat-nick label {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ color: var(--sc-muted);
+ font-size: 0.9rem;
+}
+
+.social-chat-nick input {
+ min-height: 40px;
+ padding: 0 12px;
+ border-radius: 10px;
+ border: var(--sc-border);
+ background: var(--sc-bg-glass);
+ color: var(--sc-text);
+}
+
+.social-chat-thread {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ max-height: min(55vh, 520px);
+ overflow: auto;
+ padding: 12px;
+ border-radius: var(--sc-radius);
+ border: var(--sc-border);
+ background: rgba(0, 0, 0, 0.15);
+ margin-bottom: 12px;
+}
+
+.social-bubble {
+ max-width: min(92%, 520px);
+ padding: 10px 12px;
+ border-radius: 14px;
+ border: var(--sc-border);
+ background: var(--sc-bg-card);
+ align-self: flex-start;
+}
+
+.social-bubble.mine {
+ align-self: flex-end;
+ background: linear-gradient(160deg, rgba(255, 107, 107, 0.16), rgba(78, 205, 196, 0.1));
+}
+
+.social-bubble header {
+ display: flex;
+ justify-content: space-between;
+ gap: 12px;
+ font-size: 0.78rem;
+ color: var(--sc-muted);
+ margin-bottom: 4px;
+}
+
+.social-bubble p {
+ margin: 0;
+ white-space: pre-wrap;
+ word-break: break-word;
+}
+
+.social-compose {
+ display: grid;
+ grid-template-columns: 1fr auto;
+ gap: 8px;
+}
+
+.social-compose input {
+ min-height: 48px;
+ padding: 0 14px;
+ border-radius: 14px;
+ border: var(--sc-border);
+ background: var(--sc-bg-card);
+ color: var(--sc-text);
+ font: inherit;
+}
+
+.social-compose button {
+ min-height: 48px;
+ min-width: 88px;
+ border: none;
+ border-radius: 14px;
+ font-weight: 700;
+ cursor: pointer;
+ color: #0a0e17;
+ background: var(--sc-gradient);
+}
+
+/* Immersive Meetup live room — stay in-app, no new tab */
+.social-live-root {
+ position: relative;
+ z-index: 2;
+ min-height: 100dvh;
+ height: 100dvh;
+ max-height: 100dvh;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ background: var(--sc-bg, #0a0e17);
+}
+
+.social-live-bar {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ padding: 12px 16px;
+ border-bottom: var(--sc-border);
+ background: color-mix(in srgb, var(--sc-bg) 88%, transparent);
+ backdrop-filter: blur(14px);
+}
+
+.social-live-bar-main {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 12px;
+}
+
+.social-live-bar-main p {
+ margin: 2px 0 0;
+}
+
+.social-live-bar-tools {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 10px;
+}
+
+.social-live-nick {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ font-size: 0.85rem;
+}
+
+.social-live-nick input {
+ min-height: 40px;
+ width: min(140px, 28vw);
+ padding: 0 10px;
+ border-radius: 10px;
+ border: var(--sc-border);
+ background: var(--sc-bg-glass);
+ color: var(--sc-text);
+ font: inherit;
+}
+
+.social-live-iframe-overlay--thin {
+ background: rgba(5, 7, 12, 0.72);
+ gap: 8px;
+}
+
+.social-live-iframe-overlay--thin .social-live-iframe-mark {
+ width: 48px;
+ height: 48px;
+ font-size: 22px;
+ border-radius: 12px;
+ animation: none;
+}
+
+.social-live-iframe-overlay--thin p {
+ margin: 0;
+ color: var(--sc-muted);
+ font-size: 0.88rem;
+}
+
+.social-live-tabs {
+ display: inline-flex;
+ gap: 6px;
+ padding: 4px;
+ border-radius: 999px;
+ border: var(--sc-border);
+ background: var(--sc-bg-glass);
+}
+
+.social-live-tab {
+ min-height: 40px;
+ padding: 0 14px;
+ border: none;
+ border-radius: 999px;
+ background: transparent;
+ color: var(--sc-muted);
+ font: inherit;
+ font-weight: 600;
+ cursor: pointer;
+}
+
+.social-live-tab.active {
+ color: #0a0e17;
+ background: var(--sc-gradient);
+}
+
+.social-live-stage {
+ flex: 1 1 auto;
+ min-height: 0;
+ height: 100%;
+ display: grid;
+ gap: 0;
+}
+
+.social-live-stage.layout-split {
+ grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
+}
+
+.social-live-stage.layout-video,
+.social-live-stage.layout-chat {
+ grid-template-columns: 1fr;
+}
+
+.social-live-video,
+.social-live-chat {
+ min-height: 0;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ border-left: var(--sc-border);
+}
+
+.social-live-video {
+ border-left: none;
+ background: #05070c;
+}
+
+.social-live-frame-wrap {
+ position: relative;
+ flex: 1 1 auto;
+ display: flex;
+ min-height: 0;
+ height: 100%;
+ background: #05070c;
+}
+
+.social-live-iframe {
+ flex: 1 1 auto;
+ width: 100%;
+ height: 100%;
+ min-height: 0;
+ border: 0;
+ background: #000;
+}
+
+.social-live-iframe-overlay {
+ position: absolute;
+ inset: 0;
+ z-index: 2;
+ display: grid;
+ place-content: center;
+ justify-items: center;
+ gap: 10px;
+ padding: 24px;
+ text-align: center;
+ background:
+ radial-gradient(ellipse 70% 50% at 50% 20%, rgba(78, 205, 196, 0.14), transparent),
+ rgba(5, 7, 12, 0.96);
+ pointer-events: none;
+}
+
+.social-live-iframe-mark {
+ width: 64px;
+ height: 64px;
+ border-radius: 16px;
+ display: grid;
+ place-items: center;
+ font-size: 28px;
+ font-weight: 800;
+ color: #0a0e17;
+ background: var(--sc-gradient);
+ animation: social-live-pulse 1.4s ease-in-out infinite;
+}
+
+.social-live-iframe-overlay h2 {
+ margin: 0;
+ font-family: var(--sc-font-display);
+ font-size: 1.35rem;
+ background: var(--sc-gradient);
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+}
+
+.social-live-iframe-overlay p {
+ margin: 0;
+ color: var(--sc-muted);
+ font-size: 0.92rem;
+}
+
+@keyframes social-live-pulse {
+ 0%,
+ 100% {
+ transform: scale(1);
+ opacity: 1;
+ }
+ 50% {
+ transform: scale(1.05);
+ opacity: 0.88;
+ }
+}
+
+.social-live-gate {
+ flex: 1;
+ display: grid;
+ place-content: center;
+ gap: 12px;
+ padding: 24px;
+ text-align: center;
+}
+
+.social-live-gate h2 {
+ margin: 0;
+ font-family: var(--sc-font-display);
+}
+
+.social-live-gate p {
+ margin: 0;
+ color: var(--sc-muted);
+}
+
+.social-live-gate label {
+ display: grid;
+ gap: 6px;
+ justify-items: center;
+ color: var(--sc-muted);
+ font-size: 0.9rem;
+}
+
+.social-live-gate input {
+ min-height: 44px;
+ width: min(280px, 100%);
+ padding: 0 12px;
+ border-radius: 12px;
+ border: var(--sc-border);
+ background: var(--sc-bg-glass);
+ color: var(--sc-text);
+}
+
+.social-live-chat {
+ padding: 12px;
+ background: var(--sc-bg);
+}
+
+.social-live-chat-head {
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+ margin-bottom: 10px;
+}
+
+.social-live-thread {
+ flex: 1;
+ max-height: none;
+ min-height: 220px;
+}
+
+@media (max-width: 900px) {
+ .social-live-stage.layout-split {
+ grid-template-columns: 1fr;
+ grid-template-rows: minmax(48dvh, 1.2fr) minmax(34dvh, 0.9fr);
+ }
+
+ .social-live-chat {
+ border-left: none;
+ border-top: var(--sc-border);
+ }
+}
+
+/* Live / full-bleed rooms: hide floating FX chrome that steals viewport */
+.social-experience:has(.social-live-root) .social-fx-control,
+.social-experience:has(.social-live-root) .social-ambient,
+.social-experience:has(.social-live-root) .social-pointer-glow,
+.social-experience:has(.social-workspace-dense) .social-fx-control {
+ display: none !important;
+}
+.social-experience:has(.social-live-root) .social-ambient,
+.social-experience:has(.social-live-root) .social-pointer-glow {
+ display: none !important;
+}
+.social-experience:has(.social-live-root) .social-constellation {
+ opacity: 0.18;
+}
+/* 聊天页:禁止整页上下滑与偶发滚动条 */
+html:has(.social-chat-live),
+body:has(.social-chat-live) {
+ height: 100%;
+ overflow: hidden !important;
+ overscroll-behavior: none;
+}
+.social-experience:has(.social-chat-live) {
+ height: 100dvh;
+ max-height: 100dvh;
+ overflow: hidden;
+}
+
+@media (max-width: 640px) {
+ .social-main {
+ width: min(100%, calc(100% - 24px));
+ padding-top: 28px;
+ }
+
+ .social-hero {
+ margin-bottom: 32px;
+ }
+
+ .social-nav-link {
+ display: none;
+ }
+
+ .social-nav-link:nth-child(-n + 2),
+ .social-nav-back {
+ display: inline-flex;
+ }
+}
+
+/* —— 首页宣传片(对齐社区玻璃边) —— */
+.social-promo {
+ position: relative;
+ width: min(100%, 380px);
+ margin-left: auto;
+ border-radius: var(--radius-xl, 24px);
+ overflow: hidden;
+ border: var(--border-glass);
+ background: #000;
+ box-shadow: var(--shadow-card, 0 8px 32px rgba(0, 0, 0, 0.3));
+ aspect-ratio: 16 / 10;
+}
+
+.social-promo-video {
+ display: block;
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ background: #000;
+}
+
+.social-promo-badge {
+ position: absolute;
+ top: 12px;
+ left: 12px;
+ z-index: 2;
+ padding: 6px 12px;
+ border-radius: 100px;
+ border: var(--border-glass);
+ background: var(--bg-glass);
+ backdrop-filter: blur(10px);
+ font-size: 0.78rem;
+ font-weight: 600;
+}
+
+/* —— 加群支付弹窗(Web:桌面居中;窄屏底栏 sheet) —— */
+.social-join-overlay {
+ position: fixed;
+ inset: 0;
+ z-index: 80;
+ display: flex;
+ align-items: flex-end;
+ justify-content: center;
+ padding: 0;
+ background: rgba(5, 7, 12, 0.62);
+ backdrop-filter: blur(8px);
+}
+
+.social-join-sheet {
+ width: 100%;
+ max-width: 420px;
+ padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
+ border-radius: 20px 20px 0 0;
+ border: var(--border-glass);
+ border-bottom: none;
+ background: var(--bg-card, #111827);
+ box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
+}
+
+.social-join-sheet-head {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ margin-bottom: 8px;
+}
+
+.social-join-sheet-head h2 {
+ margin: 0;
+ font-family: var(--font-display);
+ font-size: 1.25rem;
+}
+
+.social-join-close {
+ width: 44px;
+ height: 44px;
+ border: none;
+ border-radius: 12px;
+ background: var(--bg-glass);
+ color: var(--text-secondary);
+ font-size: 1.4rem;
+ line-height: 1;
+ cursor: pointer;
+}
+
+.social-join-field {
+ display: grid;
+ gap: 8px;
+ margin: 16px 0 12px;
+ color: var(--text-secondary);
+ font-size: 0.9rem;
+}
+
+.social-join-field input {
+ min-height: 48px;
+ padding: 0 14px;
+ border-radius: 12px;
+ border: var(--border-glass);
+ background: var(--bg-glass);
+ color: var(--text-primary);
+ font: inherit;
+}
+
+.social-join-err {
+ margin: 0 0 10px;
+ color: #fb7185;
+ font-size: 0.88rem;
+}
+
+.social-join-submit {
+ width: 100%;
+ min-height: 48px;
+}
+
+.social-join-skip-pay {
+ width: 100%;
+ min-height: 44px;
+ margin-top: 10px;
+ border: 1px dashed rgba(245, 158, 11, 0.55);
+ border-radius: 12px;
+ background: transparent;
+ color: #f59e0b;
+ font: inherit;
+ font-size: 0.88rem;
+ font-weight: 600;
+ cursor: pointer;
+}
+
+.social-join-skip-pay:disabled {
+ opacity: 0.55;
+ cursor: not-allowed;
+}
+
+.social-join-skip-pay:hover:not(:disabled) {
+ background: rgba(245, 158, 11, 0.1);
+}
+
+.social-footer-link {
+ display: block;
+ width: 100%;
+ margin-bottom: 8px;
+ padding: 0;
+ border: none;
+ background: none;
+ color: var(--text-secondary, #94a3b8);
+ font: inherit;
+ font-size: 0.88rem;
+ text-align: left;
+ cursor: pointer;
+}
+
+.social-footer-link:hover {
+ color: var(--text-primary, #f1f5f9);
+}
+
+/* —— 成员花名册 —— */
+.social-roster-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
+ gap: 12px;
+}
+
+.social-roster-card {
+ display: grid;
+ grid-template-columns: 72px 1fr;
+ gap: 12px;
+ align-items: center;
+ padding: 14px;
+ border-radius: var(--sc-radius);
+ border: var(--sc-border);
+ background: var(--sc-bg-card);
+ min-height: 96px;
+}
+
+.social-roster-card img {
+ width: 72px;
+ height: 72px;
+ border-radius: 16px;
+ object-fit: cover;
+ background: var(--sc-bg-glass);
+}
+
+.social-roster-card strong {
+ display: block;
+ font-family: var(--sc-font-display);
+ font-size: 1.02rem;
+ letter-spacing: -0.02em;
+}
+
+.social-roster-card p {
+ margin: 4px 0 8px;
+ color: var(--sc-muted);
+ font-size: 0.85rem;
+}
+
+.social-roster-tags {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+}
+
+.social-roster-tags span {
+ font-size: 0.72rem;
+ padding: 3px 8px;
+ border-radius: 999px;
+ border: var(--sc-border);
+ color: var(--sc-muted);
+}
+
+@media (min-width: 720px) {
+ .social-join-overlay {
+ align-items: center;
+ padding: 24px;
+ }
+
+ .social-join-sheet {
+ border-radius: 16px;
+ border-bottom: var(--sc-border);
+ }
+}
+
+/* —— 远程团队 Tab —— */
+.social-team-tabs {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ padding: 4px;
+ border-radius: 14px;
+ border: var(--sc-border);
+ background: var(--sc-bg-glass);
+}
+
+.social-team-tab {
+ min-height: 44px;
+ padding: 0 16px;
+ border: none;
+ border-radius: 10px;
+ background: transparent;
+ color: var(--sc-muted);
+ font: inherit;
+ font-weight: 600;
+ cursor: pointer;
+}
+
+.social-team-tab.active {
+ color: #0a0e17;
+ background: var(--sc-gradient);
+}
+
+
+/* —— 首页:路径条 + 统一面板 + 紧凑花名册 —— */
+.social-path {
+ position: relative;
+ z-index: 1;
+ padding: 10px 0;
+ border-bottom: var(--border-glass);
+ background: transparent;
+ backdrop-filter: none;
+}
+
+.social-path-track {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ justify-content: center;
+}
+
+.social-path-track a {
+ min-height: 36px;
+ padding: 0 14px;
+ display: inline-flex;
+ align-items: center;
+ border-radius: 999px;
+ border: var(--border-glass);
+ background: var(--bg-glass);
+ color: var(--text-secondary);
+ font-size: 0.82rem;
+ font-weight: 600;
+ text-decoration: none;
+ transition: color 0.2s, border-color 0.2s, background 0.2s;
+}
+
+.social-path-track a:hover {
+ color: var(--text-primary);
+ border-color: rgba(78, 205, 196, 0.4);
+}
+
+.social-section-alt {
+ background: color-mix(in srgb, var(--bg-card) 55%, transparent);
+}
+
+.social-section-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 12px;
+ justify-content: center;
+ margin-top: 28px;
+}
+
+.social-panel-grid {
+ display: grid;
+ gap: 14px;
+}
+
+.social-panel-grid-2 {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+}
+
+.social-panel-grid-3 {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+}
+
+.social-panel-grid-4 {
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+}
+
+.social-panel {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ min-height: 196px;
+ padding: 18px;
+ border-radius: 20px;
+ border: var(--border-glass);
+ background: var(--bg-card);
+ backdrop-filter: blur(14px);
+ transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
+}
+
+.social-panel.is-accent {
+ background:
+ linear-gradient(145deg, rgba(78, 205, 196, 0.1), transparent 55%),
+ var(--bg-card);
+}
+
+.social-panel:hover {
+ transform: translateY(-3px);
+ border-color: rgba(78, 205, 196, 0.38);
+ box-shadow: var(--shadow-glow);
+}
+
+.social-panel-meta {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ align-items: center;
+}
+
+.social-panel-meta > span,
+.social-panel-meta > time {
+ padding: 3px 9px;
+ border-radius: 999px;
+ border: var(--border-glass);
+ color: var(--text-secondary);
+ font-size: 0.72rem;
+ font-weight: 600;
+}
+
+.social-panel-meta > span.is-warm {
+ border-color: transparent;
+ background: rgba(245, 158, 11, 0.16);
+ color: #f59e0b;
+}
+
+.social-panel h3 {
+ margin: 0;
+ font-family: var(--font-display);
+ font-size: 1.08rem;
+ letter-spacing: -0.02em;
+ line-height: 1.3;
+}
+
+.social-panel > p {
+ margin: 0;
+ color: var(--text-secondary);
+ font-size: 0.88rem;
+ line-height: 1.45;
+ flex: 1;
+}
+
+.social-panel-foot {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+}
+
+.social-panel-foot span {
+ padding: 3px 8px;
+ border-radius: 999px;
+ border: var(--border-glass);
+ color: var(--text-muted, #64748b);
+ font-size: 0.7rem;
+ font-weight: 600;
+}
+
+.social-panel .btn-sm {
+ min-height: 40px;
+ align-self: flex-start;
+ justify-content: center;
+}
+
+/* PEOPLE:紧凑头像格 + 底部详情条(禁止大卡片) */
+.social-people-bar {
+ display: grid;
+ grid-template-columns: auto 1fr auto;
+ gap: 12px 16px;
+ align-items: center;
+ margin-bottom: 16px;
+ padding: 12px 16px;
+ border-radius: 16px;
+ border: var(--border-glass);
+ background: var(--bg-card);
+}
+
+.social-people-bar-avs {
+ display: flex;
+ align-items: center;
+}
+
+.social-people-bar-avs img {
+ width: 28px;
+ height: 28px;
+ border-radius: 999px;
+ object-fit: cover;
+ border: 2px solid var(--bg-primary, #0a0e17);
+ margin-left: -8px;
+ background: #333;
+}
+
+.social-people-bar-avs img:first-child {
+ margin-left: 0;
+}
+
+.social-people-bar p {
+ margin: 0;
+ color: var(--text-secondary);
+ font-size: 0.88rem;
+}
+
+.social-people-bar strong {
+ color: var(--text-primary);
+ font-weight: 700;
+}
+
+.social-people-filters {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ justify-content: center;
+ margin: 0 0 16px;
+}
+
+.social-people-filter {
+ min-height: 36px;
+ padding: 0 14px;
+ border-radius: 999px;
+ border: var(--border-glass);
+ background: var(--bg-glass);
+ color: var(--text-secondary);
+ font: inherit;
+ font-size: 0.8rem;
+ font-weight: 600;
+ cursor: pointer;
+ transition: color 0.2s, border-color 0.2s, background 0.2s;
+}
+
+.social-people-filter:hover {
+ color: var(--text-primary);
+ border-color: rgba(78, 205, 196, 0.35);
+}
+
+.social-people-filter.active {
+ color: #0a0e17;
+ border-color: transparent;
+ background: var(--gradient-main, linear-gradient(135deg, #ff6b6b, #ffe66d 50%, #4ecdc4));
+}
+
+.social-people-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
+ gap: 10px;
+}
+
+.social-people-chip {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 5px;
+ min-height: 44px;
+ padding: 10px 6px 8px;
+ border-radius: 14px;
+ border: var(--border-glass);
+ background: var(--bg-card);
+ color: inherit;
+ font: inherit;
+ cursor: pointer;
+ transition: border-color 0.2s, transform 0.2s, background 0.2s;
+}
+
+.social-people-chip:hover {
+ transform: translateY(-2px);
+ border-color: rgba(78, 205, 196, 0.4);
+}
+
+.social-people-chip.is-online {
+ border-color: rgba(78, 205, 196, 0.28);
+}
+
+.social-people-chip.is-liked {
+ border-color: rgba(255, 107, 107, 0.4);
+}
+
+.social-people-chip.is-active {
+ border-color: rgba(78, 205, 196, 0.55);
+ background: color-mix(in srgb, var(--accent-3, #4ecdc4) 12%, var(--bg-card));
+}
+
+.social-people-chip-ava {
+ position: relative;
+ width: 52px;
+ height: 52px;
+}
+
+.social-people-chip-ava img {
+ width: 52px;
+ height: 52px;
+ border-radius: 999px;
+ object-fit: cover;
+ display: block;
+}
+
+.social-people-chip-ava i {
+ position: absolute;
+ right: 1px;
+ bottom: 1px;
+ width: 10px;
+ height: 10px;
+ border-radius: 999px;
+ background: #22c55e;
+ border: 2px solid var(--bg-primary, #0a0e17);
+}
+
+.social-people-chip strong {
+ font-size: 0.8rem;
+ letter-spacing: -0.01em;
+ max-width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.social-people-chip > em {
+ font-style: normal;
+ color: var(--text-secondary);
+ font-size: 0.68rem;
+ max-width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.social-people-hint {
+ margin: 14px 0 0;
+ text-align: center;
+ color: var(--text-muted, #64748b);
+ font-size: 0.85rem;
+}
+
+.social-people-detail {
+ display: grid;
+ grid-template-columns: 44px 1fr auto;
+ gap: 12px 14px;
+ align-items: center;
+ margin-top: 14px;
+ padding: 14px;
+ border-radius: 16px;
+ border: var(--border-glass);
+ background: var(--bg-card);
+}
+
+.social-people-detail > img {
+ width: 44px;
+ height: 44px;
+ border-radius: 12px;
+ object-fit: cover;
+}
+
+.social-people-detail strong {
+ display: block;
+ font-size: 0.95rem;
+}
+
+.social-people-detail strong span {
+ display: block;
+ margin-top: 2px;
+ color: var(--text-secondary);
+ font-size: 0.78rem;
+ font-weight: 500;
+}
+
+.social-people-detail > div > p {
+ margin: 6px 0 0;
+ color: var(--accent-3, #4ecdc4);
+ font-size: 0.85rem;
+ line-height: 1.4;
+}
+
+.social-people-detail-tags {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin-top: 8px;
+}
+
+.social-people-detail-tags span {
+ padding: 2px 8px;
+ border-radius: 999px;
+ border: var(--border-glass);
+ color: var(--text-muted, #64748b);
+ font-size: 0.7rem;
+}
+
+.social-people-detail-acts {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ justify-content: flex-end;
+}
+
+.social-people-detail-acts .btn-sm {
+ min-height: 40px;
+}
+
+.home-flow .social-hero h1 {
+ font-size: clamp(1.7rem, 3.8vw, 2.4rem);
+}
+
+.home-flow .hero-content .hero-actions {
+ margin-top: 22px;
+}
+
+.social-nav-desktop-cta {
+ display: inline-flex;
+}
+
+@media (max-width: 960px) {
+ .social-panel-grid-2,
+ .social-panel-grid-3,
+ .social-panel-grid-4 {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+}
+
+@media (min-width: 720px) {
+ .social-join-overlay {
+ align-items: center;
+ padding: 24px;
+ }
+
+ .social-join-sheet {
+ border-radius: var(--radius-xl, 24px);
+ border: var(--border-glass);
+ }
+}
+
+@media (max-width: 640px) {
+ .social-promo {
+ width: 100%;
+ margin: 0 auto;
+ }
+
+ .social-roster-grid {
+ grid-template-columns: 1fr;
+ }
+
+ .social-people-bar {
+ grid-template-columns: 1fr;
+ }
+
+ .social-people-bar .btn {
+ width: 100%;
+ }
+
+ .social-people-grid {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ }
+
+ .social-people-detail {
+ grid-template-columns: 44px 1fr;
+ }
+
+ .social-people-detail-acts {
+ grid-column: 1 / -1;
+ }
+
+ .social-people-detail-acts .btn-sm {
+ flex: 1;
+ min-height: 44px;
+ }
+
+ .social-panel-grid-2,
+ .social-panel-grid-3,
+ .social-panel-grid-4 {
+ grid-template-columns: 1fr;
+ }
+
+ .social-panel .btn-sm {
+ align-self: stretch;
+ min-height: 44px;
+ }
+
+ .social-nav-desktop-cta {
+ display: none;
+ }
+}
diff --git a/src/modules/hub/app/h5.css b/src/modules/hub/app/h5.css
new file mode 100644
index 0000000..dfb3f10
--- /dev/null
+++ b/src/modules/hub/app/h5.css
@@ -0,0 +1,3363 @@
+/* Social H5 — clean mobile adaptation (load last). ≤900px */
+
+@media (max-width: 900px) {
+ /* —— Basics —— */
+ .social-home,
+ .social-workspace,
+ .social-live-root,
+ .social-date-root {
+ -webkit-tap-highlight-color: transparent;
+ }
+ .social-home {
+ padding-bottom: 0 !important;
+ }
+
+ /* iOS: avoid input zoom */
+ .social-form input,
+ .social-form textarea,
+ .social-form select,
+ .social-select,
+ .social-nick-label input,
+ .social-live-nick input,
+ .social-chat-composer textarea,
+ .social-join-field input,
+ .social-search input,
+ input[type="search"],
+ input[type="text"],
+ input[type="email"],
+ textarea {
+ font-size: 16px;
+ }
+
+ /* —— Ways: clear full-width list (not carousel) —— */
+ .social-home .connection-ways,
+ .connection-ways {
+ display: grid !important;
+ grid-template-columns: 1fr !important;
+ gap: 8px !important;
+ overflow: visible !important;
+ margin: 4px 0 16px !important;
+ padding: 0 14px !important;
+ scroll-snap-type: none !important;
+ }
+ .social-home .connection-ways::before {
+ content: "选一种方式开始";
+ display: block;
+ grid-column: 1 / -1;
+ margin: 0 2px 2px;
+ font-size: 11px;
+ font-weight: 600;
+ letter-spacing: 0.04em;
+ color: color-mix(in srgb, var(--text-primary, #111) 48%, transparent);
+ }
+ .social-home .connection-way,
+ .connection-way {
+ flex: none !important;
+ width: 100%;
+ min-height: 64px;
+ padding: 14px 14px;
+ border-radius: 16px;
+ gap: 12px;
+ background: color-mix(in srgb, var(--bg-card, #fff) 92%, transparent);
+ border: 1px solid color-mix(in srgb, var(--text-primary, #111) 10%, transparent);
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
+ }
+ html[data-theme="dark"] .social-home .connection-way,
+ html[data-theme="dark"] .connection-way {
+ background: color-mix(in srgb, var(--sx-glass, #12141a) 92%, transparent);
+ border-color: var(--connection-border, #ffffff18);
+ box-shadow: none;
+ }
+ .connection-way-icon {
+ width: 40px;
+ height: 40px;
+ }
+ .connection-way-index {
+ font-size: 48px;
+ top: -4px;
+ right: 40px;
+ opacity: 0.05;
+ }
+ .connection-way-copy {
+ flex: 1;
+ min-width: 0;
+ }
+ .connection-way-copy strong {
+ font-size: 15px;
+ letter-spacing: -0.02em;
+ }
+ .connection-way-copy small {
+ margin-top: 2px;
+ font-size: 12px;
+ line-height: 1.4;
+ }
+ .connection-way-copy em {
+ display: none; /* keep mobile row compact; arrow is enough */
+ }
+ .connection-way-arrow {
+ flex-shrink: 0;
+ }
+
+ /* —— Hero —— */
+ .social-home .connection-hero {
+ padding-top: calc(68px + env(safe-area-inset-top, 0px));
+ padding-bottom: 8px;
+ min-height: auto;
+ }
+ .social-home .social-emoji-field {
+ display: none; /* quieter fold on phone */
+ }
+ .social-home .connection-eyebrow {
+ font-size: 11px;
+ margin-bottom: 10px;
+ }
+ .social-home .connection-copy h1 {
+ font-size: clamp(26px, 7.2vw, 34px);
+ line-height: 1.18;
+ margin-bottom: 10px;
+ }
+ .social-home .connection-description {
+ font-size: 13px;
+ line-height: 1.55;
+ max-width: none;
+ display: -webkit-box;
+ -webkit-line-clamp: 3;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ margin-bottom: 14px;
+ }
+ .social-home .connection-actions {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 8px;
+ align-items: stretch;
+ }
+ .social-home .connection-actions .connection-join,
+ .social-home .connection-actions .btn {
+ grid-column: 1 / -1;
+ width: 100%;
+ min-height: 48px;
+ justify-content: center;
+ gap: 10px;
+ padding-inline: 16px;
+ font-size: 15px;
+ }
+ .social-home .connection-actions .connection-film {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ width: 100%;
+ min-height: 44px;
+ padding: 0 10px;
+ border-radius: 12px;
+ border: 1px solid color-mix(in srgb, var(--text-primary, #111) 12%, transparent);
+ background: color-mix(in srgb, var(--bg-card, #fff) 80%, transparent);
+ color: var(--text-primary, #1a1a1a);
+ font-size: 13px;
+ font-weight: 600;
+ }
+ /* 群组聊天 | 认识一下 side-by-side; story demoted */
+ .social-home .connection-actions .connection-film-story {
+ grid-column: 1 / -1;
+ min-height: 40px;
+ border: 0;
+ background: transparent;
+ color: color-mix(in srgb, var(--text-primary, #111) 62%, transparent);
+ font-weight: 500;
+ font-size: 12px;
+ justify-content: flex-start;
+ padding-inline: 4px;
+ box-shadow: none;
+ }
+
+ /* —— Hero universe: compact, don’t eat the fold —— */
+ .social-home .connection-universe {
+ max-width: 100%;
+ max-height: 220px;
+ margin: 2px auto 0;
+ transform: none !important;
+ overflow: hidden;
+ }
+ .social-home .connection-orbit-scene {
+ aspect-ratio: 1.35 / 1;
+ max-height: 180px;
+ margin-inline: auto;
+ }
+ .social-home .connection-person {
+ min-width: 88px;
+ transform: scale(0.78);
+ }
+ .social-home .connection-person strong {
+ font-size: 11px;
+ }
+ .social-home .connection-person span,
+ .social-home .connection-person small {
+ font-size: 9px;
+ }
+ .social-home .connection-universe-label,
+ .social-home .connection-universe-footer {
+ font-size: 10px;
+ }
+ .social-home .connection-scroll-hint {
+ margin-top: 4px;
+ font-size: 11px;
+ }
+ .social-home .connection-proof {
+ margin-top: 12px;
+ gap: 8px;
+ }
+ .social-home .connection-proof strong {
+ font-size: 12px;
+ }
+ .social-home .connection-proof span {
+ font-size: 11px;
+ }
+ .social-home .connection-hero-bottom {
+ margin-top: 4px;
+ }
+
+ /* —— Path chips —— */
+ .social-home .social-path {
+ position: relative;
+ z-index: 1;
+ margin: 0 0 10px;
+ padding: 6px 0;
+ background: transparent;
+ backdrop-filter: none;
+ -webkit-backdrop-filter: none;
+ }
+ html[data-theme="dark"] .social-home .social-path {
+ background: transparent;
+ }
+ .social-home .social-path .container {
+ padding-inline: 12px;
+ }
+ .social-home .social-path-track {
+ gap: 6px;
+ padding: 4px;
+ overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
+ scrollbar-width: none;
+ }
+ .social-home .social-path-track::-webkit-scrollbar {
+ display: none;
+ }
+ .social-home .social-path-link {
+ flex: 0 0 auto;
+ min-height: 36px;
+ padding: 0 11px;
+ font-size: 12px;
+ }
+
+ /* —— Sections —— */
+ .social-home .section.section-compact {
+ padding-block: 28px;
+ }
+ .social-home .container {
+ padding-inline: 14px;
+ }
+ .social-home .section-header h2 {
+ font-size: clamp(22px, 6vw, 28px);
+ }
+ .social-home .section-header > p {
+ font-size: 13px;
+ line-height: 1.6;
+ }
+
+ /* —— Date hero —— */
+ .social-home .social-date-hero {
+ display: grid;
+ grid-template-columns: 1fr;
+ gap: 16px;
+ padding: 18px 14px 20px;
+ border-radius: 20px;
+ }
+ .social-home .social-date-hero-copy h2 {
+ font-size: clamp(22px, 6vw, 28px);
+ margin: 8px 0 10px;
+ }
+ .social-home .social-date-hero-copy > p {
+ font-size: 13px;
+ margin-bottom: 12px;
+ }
+ .social-home .social-date-hero-steps {
+ gap: 8px;
+ margin-bottom: 14px;
+ }
+ .social-home .social-date-hero-steps li {
+ min-height: 36px;
+ font-size: 12px;
+ padding: 0 10px;
+ }
+ .social-date-stage-acts {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ }
+ .social-date-stage-acts .btn {
+ min-height: 44px;
+ flex: 1 1 auto;
+ justify-content: center;
+ }
+ .social-home .social-date-hero-deck {
+ min-height: 320px;
+ margin: 0 auto;
+ width: 100%;
+ }
+ .social-home .social-date-hero-card {
+ width: min(230px, 72%);
+ }
+ .social-home .social-date-hero-cta {
+ right: 50%;
+ bottom: 8px;
+ transform: translateX(50%);
+ min-height: 36px;
+ }
+ .social-home .social-date-hero-deck::before,
+ .social-home .social-date-hero-deck::after {
+ width: 32px;
+ height: 32px;
+ font-size: 12px;
+ }
+
+ /* —— Meetup / team panels —— */
+ .social-panel-grid,
+ .social-panel-grid-2,
+ .social-panel-grid-3 {
+ grid-template-columns: 1fr !important;
+ gap: 12px;
+ }
+ .social-home .social-panel {
+ padding: 18px 16px;
+ border-radius: 18px;
+ }
+ .connection-meetup-art {
+ min-height: 72px;
+ padding-bottom: 12px;
+ }
+ .connection-meetup-number {
+ font-size: 48px;
+ }
+ .connection-audio-bars,
+ .social-event-bars {
+ height: 48px;
+ gap: 3px;
+ opacity: 1;
+ visibility: visible;
+ }
+ .social-event-art .connection-audio-bars i,
+ .social-event-bars i {
+ min-width: 3px;
+ border-radius: 2px;
+ }
+ .social-event-art {
+ min-height: 120px;
+ }
+ .social-event-cta {
+ margin-top: 8px;
+ }
+ .social-event-cta .social-btn {
+ min-height: 44px;
+ }
+ .social-video-grid {
+ grid-template-columns: repeat(2, 32px);
+ gap: 4px;
+ }
+ .social-video-tile {
+ width: 32px;
+ height: 32px;
+ border-radius: 8px;
+ }
+ .social-meetup-faces {
+ margin: 4px 0 10px;
+ }
+ .social-home .social-panel .btn {
+ width: 100%;
+ min-height: 44px;
+ justify-content: center;
+ margin-top: 10px;
+ }
+ .social-home .social-section-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-top: 14px;
+ }
+ .social-home .social-section-actions .btn {
+ flex: 1 1 calc(50% - 8px);
+ min-height: 44px;
+ justify-content: center;
+ }
+
+ /* —— People —— */
+ .social-people-bar {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 10px;
+ padding: 12px;
+ border-radius: 16px;
+ }
+ .social-people-bar .btn {
+ margin-left: auto;
+ min-height: 40px;
+ }
+ .social-people-filters {
+ display: flex;
+ gap: 8px;
+ overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
+ scrollbar-width: none;
+ margin-bottom: 12px;
+ }
+ .social-people-filters::-webkit-scrollbar {
+ display: none;
+ }
+ .social-people-filter {
+ flex: 0 0 auto;
+ min-height: 40px;
+ padding: 0 14px;
+ }
+ .social-people-grid {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 10px;
+ }
+ .social-people-chip {
+ min-height: 96px;
+ padding: 12px 10px 14px;
+ border-radius: 16px;
+ }
+ .social-people-chip-ava {
+ width: 44px;
+ height: 44px;
+ }
+ .social-people-chip-want {
+ font-size: 11px;
+ line-height: 1.35;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ }
+ .social-people-chip-like {
+ width: 40px;
+ height: 40px;
+ }
+ .social-people-hint {
+ margin: 12px 0 8px;
+ font-size: 12px;
+ }
+
+ /* —— UGC / cities —— */
+ .social-ugc-row {
+ grid-template-columns: 1fr !important;
+ gap: 10px;
+ }
+ .social-ugc-card {
+ padding: 14px;
+ border-radius: 16px;
+ min-height: 72px;
+ }
+ .social-city-grid,
+ .social-city-dir.is-compact .social-city-grid {
+ grid-template-columns: 1fr 1fr;
+ gap: 10px;
+ }
+ .social-city-card {
+ padding: 12px;
+ border-radius: 14px;
+ }
+ .social-together-tabs {
+ margin-bottom: 12px;
+ }
+
+ /* —— Invite:单卡 CTA,勿桌面横排 —— */
+ .social-home .connection-invite {
+ margin: 12px 14px 8px !important;
+ padding: 22px 18px 20px !important;
+ border-radius: 22px !important;
+ display: flex !important;
+ flex-direction: column;
+ align-items: stretch;
+ gap: 14px !important;
+ border: 1px solid color-mix(in srgb, var(--text-primary, #111) 8%, transparent);
+ background:
+ radial-gradient(120% 80% at 100% 0%, #f59e0b18, transparent 45%),
+ color-mix(in srgb, var(--bg-card, #12141a) 94%, transparent);
+ box-shadow: none;
+ }
+ .social-home .connection-invite::before {
+ display: none !important;
+ }
+ .social-home .connection-invite-orbit {
+ display: none !important;
+ }
+ .social-home .connection-invite .connection-eyebrow {
+ font-size: 11px;
+ letter-spacing: 0.06em;
+ opacity: 0.65;
+ }
+ .social-home .connection-invite h2 {
+ font-size: clamp(20px, 5.6vw, 24px) !important;
+ line-height: 1.25;
+ letter-spacing: -0.03em;
+ margin: 4px 0 0 !important;
+ }
+ .social-home .connection-invite p {
+ font-size: 13px !important;
+ line-height: 1.55 !important;
+ margin: 0;
+ color: color-mix(in srgb, var(--text-primary, #111) 62%, transparent);
+ }
+ .social-home .connection-invite .btn,
+ .social-home .connection-invite .connection-join {
+ width: 100% !important;
+ margin: 4px 0 0 !important;
+ min-height: 48px;
+ justify-content: center;
+ border-radius: 14px;
+ font-size: 15px;
+ font-weight: 650;
+ }
+
+ /* —— Footer:取消三栏密链接,改成居中品牌 + 胶囊入口 —— */
+ .social-home .footer {
+ padding: 8px 0 calc(92px + env(safe-area-inset-bottom, 0px)) !important;
+ border-top: none !important;
+ background: transparent !important;
+ }
+ .social-home .footer > .container {
+ padding-inline: 16px;
+ }
+ .social-home .footer-grid,
+ .social-home .footer-grid-rings,
+ .footer-grid-rings {
+ display: flex !important;
+ flex-direction: column;
+ align-items: center;
+ gap: 14px !important;
+ grid-template-columns: none !important;
+ }
+ .social-home .footer-brand {
+ grid-column: auto !important;
+ margin: 0 !important;
+ text-align: center;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ }
+ .social-home .footer-brand p {
+ max-width: 16rem !important;
+ margin: 10px auto 0 !important;
+ font-size: 12px !important;
+ line-height: 1.5 !important;
+ color: color-mix(in srgb, var(--text-primary, #111) 48%, transparent);
+ }
+ .social-home .footer-links {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ gap: 8px;
+ width: 100%;
+ margin: 0;
+ }
+ .social-home .footer-links h4 {
+ display: none !important;
+ }
+ /* H5 只留主入口,去掉密密麻麻第二/第三栏 */
+ .social-home .footer-links-secondary,
+ .social-home .footer-links-more {
+ display: none !important;
+ }
+ .social-home .footer-links a,
+ .social-home .social-footer-link {
+ min-height: 40px !important;
+ padding: 0 16px !important;
+ display: inline-flex !important;
+ align-items: center;
+ justify-content: center;
+ border-radius: 999px;
+ border: 1px solid color-mix(in srgb, var(--text-primary, #111) 10%, transparent);
+ background: color-mix(in srgb, var(--bg-card, #fff) 72%, transparent);
+ font-size: 13px !important;
+ font-weight: 600;
+ color: color-mix(in srgb, var(--text-primary, #111) 78%, transparent);
+ text-decoration: none;
+ }
+ .social-home .footer-links-primary a[href*="/chat"],
+ .social-home .footer-links-primary a[href*="/meetup"] {
+ display: none !important;
+ }
+ .social-home .footer-links a:active,
+ .social-home .social-footer-link:active {
+ background: color-mix(in srgb, #f59e0b 16%, transparent);
+ border-color: #f59e0b55;
+ }
+ .social-home .footer-bottom {
+ margin-top: 6px !important;
+ padding-block: 10px 4px !important;
+ border-top: none !important;
+ text-align: center;
+ }
+ .social-home .footer-bottom p {
+ font-size: 11px !important;
+ letter-spacing: 0.02em;
+ color: color-mix(in srgb, var(--text-primary, #111) 38%, transparent);
+ }
+
+ /* —— Workspace pages —— */
+ .social-workspace {
+ padding: 0;
+ }
+ .social-toolbar {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ }
+ .social-filters {
+ display: flex;
+ gap: 8px;
+ overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
+ scrollbar-width: none;
+ }
+ .social-filters::-webkit-scrollbar {
+ display: none;
+ }
+ .social-filters button,
+ .social-filters .social-btn {
+ flex: 0 0 auto;
+ min-height: 40px;
+ }
+ .social-grid,
+ .social-role-grid,
+ .social-library-grid,
+ .social-event-grid,
+ .social-onboarding-grid {
+ grid-template-columns: 1fr !important;
+ gap: 12px;
+ }
+ .social-event-cta,
+ .social-card-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ }
+ .social-event-cta .social-btn,
+ .social-card-actions .social-btn {
+ flex: 1 1 auto;
+ min-height: 44px;
+ justify-content: center;
+ }
+ .social-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ }
+ .social-actions .social-btn {
+ min-height: 44px;
+ }
+ .social-role-card > .social-btn,
+ .social-library-card .social-btn {
+ width: 100%;
+ min-height: 48px;
+ justify-content: center;
+ }
+ .social-apply-form .social-btn.primary,
+ .social-form .social-btn.primary {
+ width: 100%;
+ min-height: 48px;
+ justify-content: center;
+ }
+ .social-apply-progress {
+ margin-bottom: 4px;
+ }
+ .social-page-intro .social-actions {
+ width: 100%;
+ }
+ .social-page-intro .social-actions .social-btn {
+ flex: 1 1 auto;
+ justify-content: center;
+ }
+ .social-people-cta-bar {
+ position: static;
+ display: grid !important;
+ grid-template-columns: 1fr 1fr;
+ gap: 8px;
+ margin: 20px 0 0;
+ padding: 10px;
+ border-radius: 16px;
+ background: color-mix(in srgb, var(--bg-card, #fff) 92%, transparent);
+ border: 1px solid color-mix(in srgb, var(--text-primary, #111) 10%, transparent);
+ box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
+ }
+ .social-people-cta-bar .social-btn {
+ width: 100%;
+ min-height: 44px;
+ justify-content: center;
+ margin: 0;
+ font-size: 13px;
+ }
+ .social-profile-studio {
+ grid-template-columns: 1fr !important;
+ }
+ .social-profile-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ }
+ .social-profile-actions .social-btn {
+ flex: 1 1 calc(50% - 8px);
+ min-height: 44px;
+ justify-content: center;
+ }
+
+ /* —— Dialogs: bottom sheet —— */
+ .social-dialog {
+ width: 100%;
+ max-width: 100vw;
+ margin: 0;
+ padding: 0;
+ border: 0;
+ background: transparent;
+ }
+ .social-dialog[open] {
+ display: flex;
+ align-items: flex-end;
+ height: 100dvh;
+ max-height: 100dvh;
+ }
+ .social-dialog-sheet {
+ width: 100%;
+ max-height: min(86dvh, 720px);
+ border-radius: 20px 20px 0 0;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ }
+ .social-dialog-sheet header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ min-height: 52px;
+ padding: 12px 16px;
+ flex-shrink: 0;
+ }
+ .social-dialog-sheet header h2 {
+ font-size: 1rem;
+ margin: 0;
+ }
+ .social-dialog-sheet header button {
+ width: 40px;
+ height: 40px;
+ border: 0;
+ border-radius: 10px;
+ background: #ffffff12;
+ color: inherit;
+ display: grid;
+ place-items: center;
+ }
+ .social-dialog-body {
+ overflow: auto;
+ -webkit-overflow-scrolling: touch;
+ padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
+ }
+ .social-join-sheet {
+ width: 100%;
+ max-width: none;
+ border-radius: 20px 20px 0 0;
+ padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
+ }
+ .social-join-title {
+ font-size: 1.25rem;
+ margin: 4px 0 8px;
+ }
+ .social-join-field {
+ margin-top: 14px;
+ }
+ .social-join-field input {
+ min-height: 48px;
+ font-size: 16px;
+ }
+ .social-join-submit {
+ width: 100%;
+ min-height: 52px;
+ justify-content: center;
+ gap: 8px;
+ }
+ .social-join-privacy {
+ margin-top: 10px;
+ font-size: 11px;
+ }
+ .social-join-paths {
+ display: grid;
+ grid-template-columns: 1fr;
+ gap: 12px;
+ }
+ .social-join-path .social-btn,
+ .social-join-path .btn {
+ width: 100%;
+ min-height: 48px;
+ justify-content: center;
+ }
+
+ /* —— Date swipe —— */
+ .social-date-root {
+ min-height: 100dvh;
+ padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
+ }
+ .social-date-root .social-date-bar {
+ padding: 10px 12px;
+ gap: 8px;
+ }
+ .social-date-root .social-date-bar .social-demo-badge,
+ .social-date-root .DemoBadge {
+ display: none;
+ }
+ .social-date-root .social-live-bar-main > div > p {
+ font-size: 11px;
+ }
+ .social-date-root .social-date-bar-tools {
+ flex: 0 0 auto;
+ gap: 8px;
+ }
+ .social-date-root .social-date-filters {
+ width: 100%;
+ }
+ .social-date-root .social-date-stage {
+ padding: 4px 12px 0;
+ }
+ .social-date-root .social-date-progress {
+ margin: 0 12px 8px;
+ height: 4px;
+ border-radius: 999px;
+ }
+ .social-date-root .social-date-deck {
+ width: 100%;
+ max-width: 420px;
+ margin-inline: auto;
+ height: auto;
+ max-height: min(52dvh, 480px);
+ min-height: 260px;
+ aspect-ratio: auto;
+ }
+ .social-date-card.is-top {
+ touch-action: none;
+ }
+ .social-date-root .social-date-hint,
+ .social-date-hint.is-alive {
+ display: none !important;
+ }
+ .social-date-root .social-date-actions {
+ gap: 18px;
+ padding: 10px 16px 4px;
+ margin-bottom: 0;
+ justify-content: center;
+ }
+ .social-date-root .social-fx-control {
+ display: none;
+ }
+ .social-date-root .social-date-act {
+ width: 56px;
+ height: 56px;
+ box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
+ }
+ .social-date-root .social-date-act.like {
+ width: 66px;
+ height: 66px;
+ }
+ .social-date-root .social-date-bar-tools .social-btn {
+ flex: 0 0 auto;
+ min-height: 36px;
+ padding-inline: 12px;
+ }
+ .social-date-root .social-date-likes {
+ margin: 8px 12px 0;
+ min-height: 48px;
+ border-radius: 14px;
+ font-size: 12px;
+ }
+ .social-date-toast {
+ left: 50%;
+ right: auto;
+ bottom: calc(92px + env(safe-area-inset-bottom, 0px));
+ transform: translateX(-50%);
+ max-width: calc(100% - 32px);
+ padding: 10px 14px;
+ border-radius: 999px;
+ font-size: 13px;
+ }
+ .social-date-empty {
+ padding: 28px 16px;
+ text-align: center;
+ }
+ .social-date-empty .social-btn {
+ width: min(100%, 280px);
+ min-height: 44px;
+ justify-content: center;
+ }
+ .social-date-match-list {
+ display: grid;
+ gap: 10px;
+ }
+ .social-date-match-row {
+ display: grid;
+ grid-template-columns: auto 1fr;
+ gap: 8px 10px;
+ align-items: center;
+ padding: 10px;
+ border-radius: 14px;
+ background: #ffffff08;
+ }
+ .social-date-match-row .social-btn {
+ min-height: 40px;
+ }
+
+ /* —— Chat —— */
+ /* 锁 visualViewport:键盘顶起时整页缩高,消息区跟着上移,不挡最新气泡 */
+ .social-chat-live {
+ position: fixed;
+ inset: auto 0 0 0;
+ top: var(--vv-top, 0px);
+ height: var(--vv-height, 100dvh);
+ max-height: var(--vv-height, 100dvh);
+ width: 100%;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ padding-bottom: 0;
+ z-index: 40;
+ }
+ .social-chat-live-bar {
+ padding: 8px 12px;
+ gap: 6px;
+ }
+ .social-chat-live-bar .social-live-bar-main > div > strong {
+ font-size: 16px;
+ }
+ .social-chat-live-bar .social-muted {
+ font-size: 11px;
+ }
+ .social-chat-bar-tools {
+ display: flex;
+ flex-wrap: nowrap;
+ gap: 6px;
+ width: 100%;
+ overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
+ scrollbar-width: none;
+ }
+ .social-chat-bar-tools::-webkit-scrollbar {
+ display: none;
+ }
+ .social-chat-bar-tools .social-btn {
+ flex: 0 0 auto;
+ min-height: 34px;
+ padding-inline: 10px;
+ font-size: 12px;
+ }
+ .social-chat-live-bar .social-demo-badge {
+ display: none;
+ }
+ .social-chat-presence {
+ margin: 0 12px 6px;
+ padding: 6px 10px;
+ border-radius: 12px;
+ gap: 8px;
+ }
+ .social-chat-presence > p {
+ font-size: 11px;
+ }
+ .social-chat-live .social-connection-status {
+ margin: 0 12px 6px;
+ min-height: 28px;
+ font-size: 11px;
+ }
+ .social-chat-live .social-live-stage {
+ flex: 1;
+ min-height: 0;
+ }
+ .social-chat-live .layout-chat-countries {
+ flex-direction: column;
+ }
+ .social-chat-country-rail {
+ flex: 0 0 auto;
+ width: 100%;
+ max-width: none;
+ min-width: 0;
+ flex-direction: row;
+ align-items: center;
+ gap: 8px;
+ padding: 10px 12px;
+ border-right: 0;
+ border-bottom: 1px solid rgba(171, 195, 213, 0.12);
+ overflow-x: auto;
+ overflow-y: hidden;
+ -webkit-overflow-scrolling: touch;
+ scrollbar-width: none;
+ }
+ .social-chat-country-rail::-webkit-scrollbar {
+ display: none;
+ }
+ .social-chat-country-rail-glow,
+ .social-chat-country-rail-head,
+ .social-chat-country-rail-label {
+ display: none;
+ }
+ .social-chat-country-list,
+ .social-chat-country-list--scroll {
+ flex-direction: row;
+ overflow: visible;
+ min-height: 0;
+ gap: 8px;
+ }
+ .social-chat-country-item {
+ width: auto;
+ min-width: 0;
+ min-height: 44px;
+ border-radius: 999px;
+ }
+ .social-chat-country-flag {
+ width: 28px;
+ height: 28px;
+ border-radius: 999px;
+ }
+ .social-chat-country-flag-emoji {
+ display: none;
+ }
+ .social-chat-country-flag.is-lobby .social-chat-country-flag-emoji {
+ display: inline;
+ font-size: 14px;
+ }
+ .social-chat-country-meta em,
+ .social-chat-country-count {
+ display: none;
+ }
+ .social-chat-live .social-conversation {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ border-radius: 0;
+ border-left: 0;
+ border-right: 0;
+ }
+ .social-chat-live .social-conversation-top {
+ display: flex;
+ padding: 8px 12px;
+ }
+ .social-chat-live .social-thread-wrap,
+ .social-chat-live .social-chat-thread {
+ flex: 1 1 auto;
+ min-height: 0;
+ height: auto !important;
+ max-height: none !important;
+ }
+ .social-chat-live .social-chat-thread {
+ scrollbar-width: none;
+ }
+ .social-chat-live .social-chat-thread::-webkit-scrollbar {
+ display: none;
+ }
+ .social-chat-live .social-chat-composer {
+ flex-shrink: 0;
+ /* 默认给底栏留位;键盘打开时 dock 隐藏,收掉这段 padding */
+ padding: 8px 12px calc(10px + 64px + env(safe-area-inset-bottom, 0px));
+ border-top: 1px solid color-mix(in srgb, var(--text-primary, #111) 10%, transparent);
+ background: color-mix(in srgb, var(--bg-card, #fff) 94%, transparent);
+ margin-bottom: 0;
+ position: relative;
+ z-index: 20;
+ }
+ .social-chat-live[data-keyboard-open="true"] .social-chat-composer,
+ html[data-keyboard-open="true"] .social-chat-live .social-chat-composer {
+ padding-bottom: 10px;
+ }
+ html[data-theme="dark"] .social-chat-live .social-chat-composer {
+ background: #0b121c;
+ border-top-color: #ffffff14;
+ }
+ .social-chat-composer textarea {
+ min-height: 44px;
+ max-height: 100px;
+ }
+ .social-composer-toolbar {
+ gap: 8px;
+ align-items: center;
+ }
+ .social-composer-toolbar .social-nick-label {
+ display: none; /* keep composer clean on H5; nick stays in storage */
+ }
+ .social-composer-toolbar small {
+ display: none;
+ }
+ .social-composer-toolbar .social-btn.primary {
+ min-height: 44px;
+ min-width: 88px;
+ margin-left: auto;
+ }
+ .social-composer-emoji {
+ width: 44px;
+ height: 44px;
+ flex: 0 0 auto;
+ }
+ .social-emoji-picker {
+ display: grid;
+ grid-template-columns: repeat(8, 1fr);
+ gap: 4px;
+ max-height: 140px;
+ overflow-y: auto;
+ -webkit-overflow-scrolling: touch;
+ padding: 8px;
+ margin-bottom: 6px;
+ border-radius: 12px;
+ }
+ .social-emoji-picker button {
+ min-width: 36px;
+ min-height: 36px;
+ font-size: 20px;
+ }
+ .social-reply-chip {
+ margin-bottom: 6px;
+ font-size: 12px;
+ }
+ .social-jump-latest {
+ bottom: calc(120px + env(safe-area-inset-bottom, 0px));
+ min-height: 36px;
+ padding-inline: 12px;
+ }
+ .social-chat-starters {
+ display: grid;
+ gap: 8px;
+ }
+ .social-chat-starters .social-btn {
+ width: 100%;
+ min-height: 44px;
+ justify-content: flex-start;
+ text-align: left;
+ white-space: normal;
+ }
+ .social-message {
+ max-width: 92%;
+ gap: 8px;
+ }
+ .social-chat-thread {
+ gap: 10px;
+ padding: 8px 12px 12px;
+ }
+ .social-message-avatar {
+ width: 28px;
+ height: 28px;
+ border-radius: 9px;
+ font-size: 12px;
+ }
+ .social-message-body header {
+ margin-bottom: 4px;
+ gap: 6px;
+ }
+ .social-message-body > p,
+ .social-message-body > .social-msg-bubble {
+ padding: 10px 12px;
+ font-size: 14px;
+ line-height: 1.55;
+ }
+ .social-message-tools {
+ gap: 6px;
+ margin-top: 4px;
+ }
+ .social-message-tools button {
+ min-height: 32px;
+ padding-inline: 8px;
+ font-size: 11px;
+ }
+
+ /* —— Meetup live —— */
+ .social-meetup-live {
+ padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
+ }
+ .social-live-bar {
+ padding: 10px 12px;
+ }
+ .social-live-bar-tools {
+ width: 100%;
+ }
+ .social-live-tabs {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ width: 100%;
+ }
+ .social-live-tab {
+ min-height: 40px;
+ }
+ .social-live-gate {
+ padding: 28px 16px;
+ text-align: center;
+ }
+ .social-live-gate .social-btn.primary {
+ width: min(100%, 280px);
+ min-height: 48px;
+ justify-content: center;
+ }
+
+ /* —— Dock:贴底轻栏,去掉浮岛高光 —— */
+ .social-mobile-dock {
+ left: 0 !important;
+ right: 0 !important;
+ bottom: 0 !important;
+ padding: 6px 8px max(8px, env(safe-area-inset-bottom, 0px)) !important;
+ border-radius: 0 !important;
+ border: none !important;
+ border-top: 1px solid color-mix(in srgb, var(--text-primary, #111) 8%, transparent) !important;
+ background: color-mix(in srgb, var(--bg-primary, #0c0c0f) 92%, transparent) !important;
+ backdrop-filter: blur(18px) saturate(1.15) !important;
+ -webkit-backdrop-filter: blur(18px) saturate(1.15);
+ box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12) !important;
+ z-index: 60;
+ gap: 0;
+ }
+ .social-mobile-dock a {
+ min-height: 52px;
+ gap: 3px;
+ font-size: 10px;
+ font-weight: 600;
+ letter-spacing: 0.01em;
+ border-radius: 12px;
+ color: color-mix(in srgb, var(--text-primary, #111) 42%, transparent);
+ }
+ .social-mobile-dock a svg {
+ width: 22px;
+ height: 22px;
+ stroke-width: 1.85;
+ }
+ .social-mobile-dock a[aria-current="page"] {
+ color: #f59e0b !important;
+ background: color-mix(in srgb, #f59e0b 12%, transparent) !important;
+ box-shadow: none !important;
+ }
+
+ /* —— Profile / forms —— */
+ .social-profile-studio {
+ display: grid;
+ gap: 12px;
+ padding-bottom: 12px;
+ }
+ .social-profile-studio .social-form-grid {
+ grid-template-columns: 1fr;
+ gap: 12px;
+ }
+ .social-profile-studio .social-btn.primary {
+ width: 100%;
+ min-height: 48px;
+ justify-content: center;
+ }
+ .social-publish-toggle {
+ display: flex;
+ align-items: flex-start;
+ gap: 10px;
+ padding: 12px;
+ border-radius: 14px;
+ background: color-mix(in srgb, var(--bg-card, #fff) 80%, transparent);
+ border: 1px solid color-mix(in srgb, var(--text-primary, #111) 8%, transparent);
+ font-size: 13px;
+ line-height: 1.45;
+ }
+ .social-publish-toggle input {
+ width: 20px;
+ height: 20px;
+ margin-top: 2px;
+ flex-shrink: 0;
+ }
+ .social-profile-preview {
+ order: 0;
+ }
+ .social-member-grid {
+ grid-template-columns: 1fr;
+ gap: 10px;
+ }
+ .social-member-card {
+ padding: 12px;
+ border-radius: 16px;
+ }
+ .social-member-card .social-btn {
+ min-height: 40px;
+ }
+ .social-workspace {
+ padding-bottom: 0;
+ }
+ .social-page-intro {
+ padding: 12px 14px 8px;
+ }
+ .social-page-intro h1 {
+ font-size: clamp(22px, 6vw, 28px);
+ }
+ .social-home .social-fx-control,
+ .social-workspace .social-fx-control {
+ bottom: calc(78px + env(safe-area-inset-bottom, 0px));
+ right: 12px;
+ width: 44px;
+ height: 44px;
+ }
+ .social-home .navbar,
+ .social-workspace .navbar,
+ .social-immersive .navbar {
+ padding-top: env(safe-area-inset-top, 0px);
+ }
+ .social-home .nav-container,
+ .social-workspace .nav-container,
+ .social-immersive .nav-container {
+ min-height: 52px;
+ }
+ .social-immersive .navbar {
+ height: 80px;
+ padding: 12px 20px;
+ padding-top: max(12px, env(safe-area-inset-top, 0px));
+ }
+ .nav-group-btn {
+ min-height: 48px;
+ }
+ .nav-group-panel a {
+ min-height: 44px;
+ display: flex;
+ align-items: center;
+ }
+ .social-nav-join {
+ min-height: 48px;
+ width: 100%;
+ justify-content: center;
+ }
+
+ /* —— Quick rail —— */
+ .social-quick-rail-track {
+ overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
+ scrollbar-width: none;
+ gap: 6px;
+ padding: 6px;
+ }
+ .social-quick-rail-track::-webkit-scrollbar {
+ display: none;
+ }
+ .social-quick-chip {
+ flex: 0 0 auto;
+ min-height: 40px;
+ }
+}
+
+@media (max-width: 420px) {
+ .social-city-grid,
+ .social-city-dir.is-compact .social-city-grid {
+ grid-template-columns: 1fr;
+ }
+ .social-home .social-date-hero-card {
+ width: min(210px, 78%);
+ }
+ .social-people-bar .btn {
+ width: 100%;
+ margin-left: 0;
+ }
+ /* Phone: drop heavy orbit so Ways enters first viewport */
+ .social-home .connection-universe {
+ max-height: none;
+ overflow: visible;
+ margin-top: 2px;
+ }
+ .social-home .connection-orbit-scene,
+ .social-home .connection-universe-label,
+ .social-home .connection-universe-footer,
+ .social-home .connection-hero-bottom .connection-scroll-hint {
+ display: none !important;
+ }
+ .social-home .connection-proof {
+ margin-top: 8px;
+ margin-bottom: 4px;
+ }
+}
+
+/* Shared page system: readable cards, resilient grids and keyboard access. */
+.social-experience :is(a, button, input, textarea, select, summary):focus-visible {
+ outline: 2px solid var(--sx-mint, #4ecdc4);
+ outline-offset: 4px;
+}
+.social-workspace .social-main > :is(section, article, div),
+.social-workspace :is(.social-card, .social-panel, .social-profile-grid > *, .social-cafe-layout > *) {
+ min-width: 0;
+}
+.social-workspace :is(.social-card, .social-panel, .social-profile-card) {
+ overflow-wrap: anywhere;
+}
+.social-workspace :is(.social-grid, .social-event-grid) > .social-empty,
+.social-people-grid > .social-empty {
+ grid-column: 1 / -1;
+ width: 100%;
+}
+.social-result-summary {
+ min-height: 44px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 12px;
+ margin: 10px 0;
+ color: var(--text-secondary);
+ font-size: 13px;
+}
+.social-result-summary p { margin: 0; }
+.social-result-summary button { min-height: 44px; }
+.social-route-state {
+ display: grid;
+ justify-items: center;
+ align-content: center;
+ gap: 20px;
+ padding: 80px 24px;
+ min-height: 70dvh;
+ text-align: center;
+ color: var(--text-primary);
+}
+.social-route-state p { margin: 0; color: var(--text-secondary); }
+.social-route-state h1 { font-size: clamp(24px, 4vw, 32px); margin: 0; }
+.social-route-state-mark { font-size: 40px; }
+.social-route-skeleton { width: min(100%, 600px); display: grid; gap: 16px; }
+.social-route-skeleton span { min-height: 96px; border-radius: 20px; background: var(--bg-glass); border: 1px solid var(--sx-fog); }
+
+/* —— Route loader: spinner only, no transit page —— */
+.social-loader {
+ min-height: 52dvh;
+ display: grid;
+ place-items: center;
+ padding: 48px 16px;
+}
+.social-loader-ring {
+ width: 36px;
+ height: 36px;
+ border-radius: 50%;
+ border: 2.5px solid rgba(245, 158, 11, 0.18);
+ border-top-color: #f59e0b;
+ animation: social-loader-spin 0.7s linear infinite;
+}
+@keyframes social-loader-spin {
+ to { transform: rotate(360deg); }
+}
+html[data-theme="light"] .social-experience {
+ --text-muted: #596b80;
+ --sx-mint: #087f78;
+}
+html[data-theme="light"] .social-mobile-dock {
+ background: color-mix(in srgb, #ffffff 94%, transparent) !important;
+ border-top-color: #24364b18 !important;
+ box-shadow: 0 -6px 24px #1428370f !important;
+}
+html[data-theme="light"] .social-mobile-dock a {
+ color: #6b7c8f;
+}
+html[data-theme="light"] .social-mobile-dock a[aria-current="page"] {
+ color: #b45309 !important;
+ background: #f59e0b14 !important;
+}
+.social-discovery-grid {
+ grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
+ gap: 16px;
+}
+.social-discovery-grid .social-people-chip.is-rich {
+ grid-template-columns: 52px minmax(0, 1fr);
+ grid-template-rows: auto auto auto auto;
+ align-content: start;
+ justify-items: start;
+ align-items: center;
+ gap: 6px 14px;
+ padding: 20px;
+ min-height: 174px;
+ text-align: left;
+}
+.social-discovery-grid .social-people-chip-ava { grid-row: 1 / 3; }
+.social-discovery-grid .social-people-chip strong {
+ grid-column: 2;
+ font-size: 16px;
+ white-space: normal;
+ overflow-wrap: anywhere;
+}
+.social-discovery-grid .connection-member-role {
+ grid-column: 2;
+ font-size: 12px;
+ line-height: 1.5;
+}
+.social-discovery-grid .social-people-chip > em {
+ grid-column: 1 / -1;
+ margin-top: 8px;
+ white-space: normal;
+ font-size: 12px;
+ color: var(--text-secondary);
+}
+.social-discovery-grid .social-people-chip-want {
+ grid-column: 1 / -1;
+ font-size: 13px;
+ line-height: 1.6;
+ -webkit-line-clamp: 2;
+ color: var(--text-secondary);
+}
+.social-dialog {
+ color: var(--text-primary);
+ width: min(560px, calc(100% - 40px));
+ max-width: 560px;
+ max-height: min(90dvh, 900px);
+ margin: auto;
+ overflow: hidden;
+}
+.social-dialog-sheet {
+ display: flex;
+ flex-direction: column;
+ max-height: min(90dvh, 900px);
+ background: var(--bg-secondary, #101925);
+}
+.social-dialog-sheet > header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ flex-shrink: 0;
+ gap: 16px;
+}
+.social-dialog-sheet > header h2 { margin: 0; font-size: 20px; }
+.social-dialog-sheet > header button {
+ display: grid;
+ place-items: center;
+ flex: 0 0 44px;
+ width: 44px;
+ height: 44px;
+ border: 1px solid var(--sx-fog);
+ border-radius: 12px;
+ background: var(--bg-glass);
+ color: inherit;
+ cursor: pointer;
+}
+.social-dialog-body {
+ overflow-y: auto;
+ overscroll-behavior: contain;
+ min-height: 0;
+}
+.social-experience :is(.social-form, .social-dialog-body) :is(input, textarea, select) {
+ max-width: 100%;
+}
+.social-workspace :is(.social-profile, .social-cafe-detail, .social-library-card, .social-role-card) {
+ scroll-margin-top: calc(var(--nav-height, 72px) + 24px);
+}
+.social-chat-live .social-thread-wrap {
+ display: flex;
+ flex-direction: column;
+ min-height: 0;
+ overflow: hidden;
+ padding: 0;
+}
+.social-chat-live .social-chat-thread {
+ min-height: 0;
+ max-height: none;
+ height: 100%;
+ overflow-y: auto;
+ display: flex;
+ flex-direction: column;
+}
+.social-chat-live .social-chat-thread::before {
+ content: "";
+ flex: 1 1 auto;
+ min-height: 0;
+ pointer-events: none;
+}
+.social-chat-live .social-msg-block {
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+}
+.social-chat-live .social-message {
+ margin-right: auto;
+}
+.social-chat-live .social-message.mine {
+ margin-left: auto;
+ margin-right: 0;
+ align-self: flex-end;
+}
+.social-chat-live .social-composer-toolbar { flex-wrap: nowrap; }
+.social-chat-live .social-chat-composer textarea {
+ display: block;
+ width: 100%;
+ box-sizing: border-box;
+ color: var(--text-primary);
+ font-family: inherit;
+ line-height: 1.6;
+ resize: vertical;
+}
+.social-experience .social-form label.social-publish-toggle {
+ display: flex;
+ align-items: center;
+ min-height: 44px;
+ cursor: pointer;
+}
+.social-experience .social-form .social-publish-toggle input[type="checkbox"] {
+ appearance: auto;
+ flex: 0 0 20px;
+ width: 20px;
+ height: 20px;
+ min-height: 20px;
+ padding: 0;
+ margin: 0;
+ accent-color: var(--sx-mint);
+}
+.social-chat-live .social-composer-emoji { order: 0; }
+.social-chat-live .social-nick-label { order: 1; white-space: nowrap; }
+.social-chat-live .social-nick-label input {
+ border: 1px solid var(--sx-fog);
+ border-radius: 10px;
+ background: var(--sx-glass);
+ color: var(--text-primary);
+ padding: 8px;
+}
+.social-chat-live .social-composer-toolbar button[type="submit"] { order: 2; margin-left: auto; }
+.social-date-root {
+ height: 100dvh;
+ max-height: 100dvh;
+ overflow: hidden;
+}
+.social-meetup-live .social-live-video { overflow-y: auto; overscroll-behavior: contain; }
+.social-meetup-live .social-live-gate { flex: 1 0 auto; min-height: min-content; }
+.social-live-iframe-overlay button { pointer-events: auto; }
+
+@media (min-width: 601px) and (max-width: 900px) {
+ .social-workspace :is(.social-role-grid, .social-library-grid, .social-event-grid) {
+ grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
+ gap: 16px;
+ }
+}
+@media (max-width: 900px) {
+ .social-workspace.social-workspace-dense .social-workspace-grid {
+ min-height: 100dvh;
+ padding: calc(80px + env(safe-area-inset-top, 0px)) 16px calc(100px + env(safe-area-inset-bottom, 0px));
+ }
+ .social-workspace .nav-container, .social-home .nav-container {
+ gap: 8px;
+ padding-inline: 10px;
+ min-width: 0;
+ }
+ .social-experience .social-brand-logo { min-width: 0; gap: 6px; }
+ .social-experience .nav-actions { flex-shrink: 0; gap: 4px; }
+ .social-experience :is(.nav-icon-btn, .mobile-menu-btn) { min-width: 44px; min-height: 44px; }
+ .social-workspace .nav-links.open, .social-home .nav-links.open {
+ top: calc(72px + env(safe-area-inset-top, 0px));
+ max-height: calc(100dvh - 170px - env(safe-area-inset-top, 0px));
+ overscroll-behavior: contain;
+ }
+ .social-experience .nav-group-panel a { min-height: 44px; }
+ .social-workspace .social-toolbar { align-items: stretch; }
+ .social-workspace .social-toolbar .social-search { width: 100%; max-width: none; }
+ .social-workspace .social-filters { max-width: 100%; padding: 4px 2px; }
+ .social-workspace .social-filters button { min-height: 44px; }
+ .social-workspace .social-grid .social-save { min-height: 44px; }
+ .social-composer-toolbar .social-nick-label { display: flex; flex: 0 1 130px; min-width: 0; }
+ .social-chat-live .social-chat-composer textarea { font-size: 16px; }
+ .social-composer-toolbar .social-nick-label input { min-width: 0; width: 100%; min-height: 44px; font-size: 16px; }
+ .social-mobile-dock[data-keyboard-open="true"],
+ html[data-keyboard-open="true"] .social-mobile-dock {
+ display: none !important;
+ }
+ .social-discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
+ .social-discovery-grid .social-people-chip.is-rich {
+ grid-template-columns: minmax(0, 1fr);
+ justify-items: center;
+ text-align: center;
+ padding: 16px 12px;
+ gap: 7px;
+ min-height: 220px;
+ }
+ .social-discovery-grid .social-people-chip.is-rich > * { grid-column: 1; grid-row: auto; }
+ .social-discovery-grid .social-people-chip-ava { width: 52px; height: 52px; }
+ .social-discovery-grid .social-people-chip > em { margin-top: 2px; }
+ .social-discovery-grid .social-people-chip-want { font-size: 12px; }
+ .social-workspace .social-profile-studio { gap: 20px; }
+ .social-profile-preview { order: 0; }
+ .social-dialog { width: 100%; max-width: 100%; max-height: 100dvh; margin: 0; }
+ .social-dialog[open] { height: 100dvh; display: flex; align-items: flex-end; }
+ .social-dialog-sheet { max-height: 88dvh; border-bottom: 0; }
+ .social-workspace .social-people-cta-bar { position: static; }
+}
+@media (max-width: 380px) {
+ .social-experience .social-brand-section,
+ .social-experience .social-brand-sep { display: none; }
+ .social-experience .social-brand-name { font-size: 15px; }
+ .social-discovery-grid { grid-template-columns: minmax(0, 1fr); }
+ .social-discovery-grid .social-people-chip.is-rich {
+ grid-template-columns: 52px minmax(0, 1fr);
+ justify-items: start;
+ text-align: left;
+ min-height: 156px;
+ gap: 6px 12px;
+ }
+ .social-discovery-grid .social-people-chip-ava { grid-row: 1 / 3; }
+ .social-discovery-grid .social-people-chip :is(strong, .connection-member-role) { grid-column: 2; }
+ .social-discovery-grid .social-people-chip :is(em, .social-people-chip-want) { grid-column: 1 / -1; }
+}
+@media (max-height: 500px) {
+ .social-meetup-live {
+ height: auto;
+ max-height: none;
+ overflow: visible;
+ }
+ .social-meetup-live .social-live-stage { flex: none; height: 480px; }
+ /* chat 仍锁 visualViewport,勿再拆成页面滚动 */
+ .social-chat-live {
+ height: var(--vv-height, 100dvh);
+ max-height: var(--vv-height, 100dvh);
+ overflow: hidden;
+ }
+ .social-chat-live .social-live-stage {
+ flex: 1 1 auto;
+ height: auto;
+ min-height: 0;
+ }
+}
+/* —— Geo map / places / globe —— */
+.social-main--immersive {
+ padding: 0 !important;
+ max-width: none !important;
+}
+.social-immersive .navbar {
+ height: 88px;
+ padding: 14px 28px;
+ background: transparent;
+ border: 0;
+ box-shadow: none;
+ backdrop-filter: none;
+}
+.social-immersive .navbar.scrolled {
+ background: transparent;
+ border-bottom: 0;
+ box-shadow: none;
+ backdrop-filter: none;
+}
+.social-immersive .nav-container {
+ max-width: 1184px;
+ min-height: 56px;
+ padding: 0 20px;
+ border: 1px solid var(--connection-border, rgba(171, 195, 213, 0.12));
+ border-radius: 18px;
+ background: color-mix(in srgb, var(--bg-primary, #0a0e17) 84%, transparent);
+ backdrop-filter: blur(24px);
+ gap: 24px;
+}
+@media (max-width: 900px) {
+ .social-immersive .nav-container {
+ padding: 0 6px 0 12px; /* 汉堡贴右 */
+ gap: 8px;
+ }
+ .social-immersive .nav-actions {
+ margin-left: auto !important;
+ }
+ .social-immersive .mobile-menu-btn {
+ margin-left: auto;
+ }
+}
+.social-immersive .navbar.scrolled .nav-container {
+ box-shadow: 0 8px 32px #0002;
+}
+.sm-discover {
+ display: grid;
+ grid-template-columns: 1fr;
+ min-height: calc(100dvh - 64px);
+ background: #05060a;
+}
+.sm-discover.is-globe .sm-discover-stage {
+ min-height: 72dvh;
+ background:
+ radial-gradient(ellipse at 50% 45%, rgba(14, 165, 233, 0.22), transparent 52%),
+ #02040a;
+}
+.sm-discover-stage {
+ position: relative;
+ min-height: 58vh;
+ overflow: hidden;
+ isolation: isolate;
+ background:
+ radial-gradient(ellipse at 50% 40%, rgba(14, 165, 233, 0.12), transparent 55%),
+ radial-gradient(ellipse at 80% 10%, rgba(245, 158, 11, 0.08), transparent 40%),
+ #05060a;
+}
+.sm-globe-title {
+ margin: 0;
+ padding: 0.45rem 0.85rem;
+ border-radius: 999px;
+ background: rgba(8, 10, 16, 0.72);
+ border: 1px solid rgba(255,255,255,0.12);
+ font: 800 0.95rem/1.2 ui-sans-serif, system-ui, sans-serif;
+ color: #f8fafc;
+ backdrop-filter: blur(10px);
+}
+.sm-globe-title span {
+ background: linear-gradient(120deg, #f59e0b, #38bdf8);
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+}
+.sm-globe--immersive {
+ touch-action: none;
+}
+.sm-discover.is-globe .sm-globe,
+.sm-discover.is-globe .sm-globe--skeleton {
+ height: 72dvh;
+ min-height: 420px;
+}
+.sm-discover-stage > .social-map-canvas-wrap,
+.sm-discover-stage > .sm-globe {
+ position: relative;
+ z-index: 1;
+}
+.sm-discover-ui {
+ position: absolute;
+ inset: 0;
+ z-index: 20;
+ pointer-events: none;
+}
+.sm-discover-ui .sm-mode-switch,
+.sm-discover-ui .sm-discover-search,
+.sm-discover-ui .sm-discover-topbar {
+ pointer-events: auto;
+}
+.sm-discover-topbar {
+ position: absolute;
+ left: 1.1rem;
+ right: 1.1rem;
+ top: 6.2rem;
+ z-index: 30;
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 0.55rem;
+}
+.social-map-canvas-wrap {
+ position: relative;
+ width: 100%;
+ height: calc(100dvh - 64px);
+ min-height: 420px;
+}
+.social-map-canvas {
+ width: 100%;
+ height: 100%;
+ min-height: 420px;
+ background: #0b1020;
+}
+.sm-map-status {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translate(-50%, -50%);
+ z-index: 3;
+ padding: 0.55rem 0.9rem;
+ border-radius: 999px;
+ background: rgba(8, 10, 16, 0.78);
+ border: 1px solid rgba(255,255,255,0.12);
+ color: #e2e8f0;
+ font-size: 0.85rem;
+ pointer-events: none;
+}
+.social-map-canvas--skeleton,
+.sm-globe--skeleton {
+ width: 100%;
+ height: calc(100dvh - 64px);
+ min-height: 420px;
+ background:
+ radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.18), transparent 42%),
+ #05060a;
+}
+.sm-globe {
+ position: relative;
+ width: 100%;
+ height: calc(100dvh - 64px);
+ min-height: 420px;
+ cursor: grab;
+ touch-action: none;
+}
+.sm-globe:active { cursor: grabbing; }
+.sm-globe-canvas {
+ display: block;
+ width: 100%;
+ height: 100%;
+}
+.sm-globe-vignette {
+ pointer-events: none;
+ position: absolute;
+ inset: 0;
+ background:
+ radial-gradient(ellipse at center, transparent 40%, rgba(5, 6, 10, 0.55) 100%);
+}
+.sm-globe-overlays {
+ position: absolute;
+ inset: 0;
+ pointer-events: none;
+}
+.sm-globe-pin {
+ pointer-events: auto;
+ position: absolute;
+ left: 0;
+ top: 0;
+ will-change: transform;
+ border: 0;
+ background: transparent;
+ padding: 0;
+ cursor: pointer;
+ display: grid;
+ justify-items: center;
+ gap: 0.2rem;
+ filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
+ z-index: 2;
+}
+.sm-globe-pin:hover,
+.sm-globe-pin.is-selected {
+ z-index: 5;
+ filter: drop-shadow(0 10px 22px rgba(245,158,11,0.45));
+}
+.sm-globe-pin.is-selected img,
+.sm-globe-pin.is-selected .sm-globe-emoji {
+ box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.75);
+}
+.sm-globe-pin img,
+.sm-globe-emoji {
+ width: 44px;
+ height: 44px;
+ border-radius: 999px;
+ border: 2px solid rgba(255,255,255,0.85);
+ object-fit: cover;
+ background: #0f172a;
+ display: grid;
+ place-items: center;
+ font-size: 1.2rem;
+}
+.sm-globe-count {
+ position: absolute;
+ top: -6px;
+ right: -2px;
+ min-width: 1.25rem;
+ height: 1.15rem;
+ padding: 0 0.35rem;
+ border-radius: 999px;
+ background: #fb7185;
+ color: #fff;
+ font: 700 10px/1.15rem ui-sans-serif, system-ui, sans-serif;
+ z-index: 2;
+}
+.sm-globe-pin em {
+ font-style: normal;
+ font-size: 0.7rem;
+ color: rgba(255,255,255,0.82);
+ text-shadow: 0 1px 4px rgba(0,0,0,0.8);
+ white-space: nowrap;
+}
+.sm-globe-hint {
+ position: absolute;
+ left: 50%;
+ bottom: 1.1rem;
+ transform: translateX(-50%);
+ margin: 0;
+ padding: 0.35rem 0.75rem;
+ border-radius: 999px;
+ font-size: 0.75rem;
+ color: rgba(255,255,255,0.7);
+ background: rgba(0,0,0,0.35);
+ backdrop-filter: blur(8px);
+ pointer-events: none;
+}
+.sm-discover-hero {
+ position: absolute;
+ left: 1.1rem;
+ top: 1rem;
+ z-index: 4;
+ max-width: min(420px, 86vw);
+ pointer-events: none;
+}
+.sm-discover-kicker {
+ margin: 0 0 0.35rem;
+ font-size: 0.78rem;
+ letter-spacing: 0.06em;
+ text-transform: uppercase;
+ color: #38bdf8;
+}
+.sm-discover-hero h1 {
+ margin: 0;
+ font-size: clamp(1.75rem, 4vw, 2.6rem);
+ font-weight: 800;
+ letter-spacing: -0.03em;
+ color: #f8fafc;
+ text-shadow: 0 8px 40px rgba(0,0,0,0.55);
+}
+.sm-discover-hero h1 span {
+ background: linear-gradient(120deg, #f59e0b, #38bdf8);
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+}
+.sm-discover-lead {
+ margin: 0.4rem 0 0;
+ color: rgba(248,250,252,0.72);
+ font-size: 0.92rem;
+ max-width: 28ch;
+}
+.sm-mode-switch {
+ position: relative;
+ z-index: 30;
+ display: inline-flex;
+ flex-shrink: 0;
+ gap: 0.25rem;
+ padding: 0.3rem;
+ border-radius: 999px;
+ background: rgba(8, 10, 16, 0.88);
+ border: 1px solid rgba(245, 158, 11, 0.45);
+ box-shadow: 0 8px 28px rgba(0,0,0,0.45);
+ backdrop-filter: blur(12px);
+}
+.sm-mode-switch button {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.35rem;
+ min-height: 44px;
+ padding: 0.4rem 1rem;
+ border: 0;
+ border-radius: 999px;
+ background: transparent;
+ color: rgba(255,255,255,0.78);
+ font: 700 0.9rem/1 ui-sans-serif, system-ui, sans-serif;
+ cursor: pointer;
+}
+.sm-mode-switch button.is-on {
+ background: linear-gradient(120deg, rgba(245,158,11,0.98), rgba(56,189,248,0.9));
+ color: #0b1020;
+}
+.sm-discover-search {
+ position: relative;
+ z-index: 30;
+ display: flex;
+ align-items: center;
+ gap: 0.45rem;
+ flex: 1 1 180px;
+ max-width: 280px;
+ min-height: 44px;
+ padding: 0 0.85rem;
+ border-radius: 999px;
+ background: rgba(8, 10, 16, 0.88);
+ border: 1px solid rgba(255,255,255,0.14);
+ backdrop-filter: blur(12px);
+ color: #e2e8f0;
+}
+.sm-rail-mode {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 0.4rem;
+ padding: 0.35rem;
+ border-radius: 1rem;
+ background: rgba(255,255,255,0.04);
+ border: 1px solid rgba(245, 158, 11, 0.35);
+}
+.sm-rail-mode button {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 0.35rem;
+ min-height: 48px;
+ border: 0;
+ border-radius: 0.75rem;
+ background: transparent;
+ color: rgba(255,255,255,0.75);
+ font: 700 0.92rem/1 ui-sans-serif, system-ui, sans-serif;
+ cursor: pointer;
+}
+.sm-rail-mode button.is-on {
+ background: linear-gradient(120deg, #f59e0b, #38bdf8);
+ color: #0b1020;
+}
+.sm-discover-search input {
+ flex: 1;
+ border: 0;
+ background: transparent;
+ color: inherit;
+ font: inherit;
+ outline: none;
+ min-width: 0;
+}
+.sm-discover-legend {
+ position: absolute;
+ left: 1.1rem;
+ bottom: 1.1rem;
+ z-index: 4;
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.45rem;
+ pointer-events: none;
+}
+.sm-discover-legend span {
+ padding: 0.3rem 0.65rem;
+ border-radius: 999px;
+ font-size: 0.72rem;
+ color: rgba(255,255,255,0.75);
+ background: rgba(0,0,0,0.4);
+ backdrop-filter: blur(8px);
+}
+.sm-discover-rail {
+ display: flex;
+ flex-direction: column;
+ gap: 0.75rem;
+ padding: 0.85rem 1rem 1.25rem;
+ background: linear-gradient(180deg, #0a0c12, #07080c);
+ border-top: 1px solid rgba(255,255,255,0.06);
+}
+.sm-rail-card {
+ position: relative;
+ padding: 1rem 1.05rem;
+ border-radius: 1.1rem;
+ background: color-mix(in oklab, #141822 88%, #f59e0b 4%);
+ border: 1px solid rgba(255,255,255,0.08);
+}
+.sm-rail-close {
+ position: absolute;
+ top: 0.65rem;
+ right: 0.65rem;
+ width: 36px;
+ height: 36px;
+ border-radius: 999px;
+ border: 0;
+ background: rgba(255,255,255,0.06);
+ color: inherit;
+ display: grid;
+ place-items: center;
+ cursor: pointer;
+}
+.sm-rail-emoji { font-size: 1.6rem; margin: 0 0 0.25rem; }
+.sm-rail-card h2 {
+ margin: 0;
+ font-size: 1.2rem;
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.4rem;
+ align-items: baseline;
+}
+.sm-rail-card h2 span,
+.sm-rail-card h2 em {
+ font-size: 0.85rem;
+ font-weight: 500;
+ font-style: normal;
+ opacity: 0.65;
+}
+.sm-rail-vibe { margin: 0.4rem 0 0.75rem; opacity: 0.72; font-size: 0.9rem; }
+.sm-rail-stats {
+ list-style: none;
+ margin: 0 0 0.85rem;
+ padding: 0;
+ display: flex;
+ gap: 0.85rem;
+}
+.sm-rail-stats li {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.3rem;
+ font-size: 0.9rem;
+}
+.sm-rail-faces {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.4rem;
+ margin-bottom: 0.85rem;
+}
+.sm-rail-faces button {
+ border: 2px solid transparent;
+ border-radius: 999px;
+ padding: 0;
+ background: transparent;
+ cursor: pointer;
+}
+.sm-rail-faces button.is-on { border-color: #f59e0b; }
+.sm-rail-empty { font-size: 0.85rem; opacity: 0.65; }
+.sm-rail-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.5rem;
+}
+.sm-rail-person-head {
+ display: flex;
+ gap: 0.85rem;
+ align-items: center;
+ margin-bottom: 0.65rem;
+ padding-right: 2rem;
+}
+.sm-rail-route {
+ display: inline-block;
+ margin-top: 0.25rem;
+ padding: 0.15rem 0.5rem;
+ border-radius: 0.4rem;
+ font-size: 0.75rem;
+ font-weight: 700;
+ background: rgba(255,255,255,0.08);
+}
+.sm-rail-meta {
+ display: flex;
+ align-items: center;
+ gap: 0.35rem;
+ margin: 0 0 0.85rem;
+ font-size: 0.88rem;
+ opacity: 0.75;
+}
+.sm-rail-hot {
+ list-style: none;
+ margin: 0 0 0.85rem;
+ padding: 0;
+ display: grid;
+ gap: 0.35rem;
+}
+.sm-rail-hot button {
+ width: 100%;
+ min-height: 44px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 0.75rem;
+ padding: 0.5rem 0.7rem;
+ border-radius: 0.75rem;
+ border: 1px solid transparent;
+ background: rgba(255,255,255,0.04);
+ color: inherit;
+ font: inherit;
+ cursor: pointer;
+}
+.sm-rail-hot button:hover { border-color: rgba(245,158,11,0.45); }
+.sm-rail-hot em { font-style: normal; opacity: 0.65; }
+.sm-rail-privacy {
+ margin: 0;
+ font-size: 0.75rem;
+ opacity: 0.5;
+ text-align: center;
+}
+
+/* Flat map markers */
+.sm-pulse {
+ --pulse: 36px;
+ position: relative;
+ width: var(--pulse);
+ height: var(--pulse);
+ border: 0;
+ background: transparent;
+ cursor: pointer;
+ padding: 0;
+}
+.sm-pulse-ring {
+ position: absolute;
+ inset: 0;
+ border-radius: 999px;
+ border: 2px solid rgba(56, 189, 248, 0.55);
+ box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
+ animation: smPulse 2.4s ease-out infinite;
+}
+.sm-pulse-ring--delay { animation-delay: 0.8s; opacity: 0.6; }
+.sm-pulse-core {
+ position: absolute;
+ inset: 28%;
+ border-radius: 999px;
+ display: grid;
+ place-items: center;
+ background: radial-gradient(circle, #f59e0b, #0ea5e9);
+ color: #0b1020;
+ font-size: 0.7rem;
+ box-shadow: 0 0 16px rgba(245, 158, 11, 0.55);
+}
+.sm-pulse-label {
+ position: absolute;
+ left: 50%;
+ top: calc(100% + 4px);
+ transform: translateX(-50%);
+ white-space: nowrap;
+ font-style: normal;
+ font-size: 0.7rem;
+ font-weight: 700;
+ color: #f8fafc;
+ text-shadow: 0 1px 4px #000;
+ display: inline-flex;
+ gap: 0.3rem;
+ align-items: center;
+}
+.sm-pulse-label b { font-weight: 600; opacity: 0.75; }
+.sm-pulse.is-selected .sm-pulse-core,
+.sm-pulse.is-hot .sm-pulse-core {
+ background: radial-gradient(circle, #fbbf24, #f59e0b);
+}
+.sm-pulse.is-underlay {
+ opacity: 0.35;
+ pointer-events: none;
+ transform: scale(1.6);
+}
+@keyframes smPulse {
+ 0% { transform: scale(0.55); opacity: 0.9; }
+ 100% { transform: scale(1.85); opacity: 0; }
+}
+.sm-person {
+ position: relative;
+ border: 0;
+ background: transparent;
+ padding: 0 0 6px;
+ cursor: pointer;
+ display: grid;
+ justify-items: center;
+ filter: drop-shadow(0 10px 18px rgba(0,0,0,0.4));
+}
+.sm-route {
+ display: grid;
+ justify-items: center;
+ gap: 2px;
+ margin-bottom: 4px;
+ padding: 3px 7px 4px;
+ border-radius: 8px;
+ background: rgba(255,255,255,0.95);
+ color: #0f172a;
+ font: 700 10px/1.1 ui-sans-serif, system-ui, sans-serif;
+ box-shadow: 0 4px 12px rgba(0,0,0,0.18);
+}
+.sm-route b { letter-spacing: 0.02em; }
+.sm-route i { font-style: normal; opacity: 0.45; margin: 0 2px; }
+.sm-route-bars {
+ display: flex;
+ gap: 3px;
+ width: 100%;
+ height: 3px;
+}
+.sm-route-bars i:first-child {
+ flex: 1;
+ border-radius: 99px;
+ background: #22c55e;
+}
+.sm-route-bars i:last-child {
+ flex: 1;
+ border-radius: 99px;
+ background: #f97316;
+}
+.sm-approx-tag {
+ position: absolute;
+ top: -1.35rem;
+ left: 50%;
+ transform: translateX(-50%);
+ white-space: nowrap;
+ padding: 0.2rem 0.5rem;
+ border-radius: 0.45rem;
+ background: #ef4444;
+ color: #fff;
+ font: 700 10px/1 ui-sans-serif, system-ui, sans-serif;
+ z-index: 3;
+}
+.sm-approx-halo {
+ position: absolute;
+ left: 50%;
+ top: 58%;
+ width: 88px;
+ height: 88px;
+ transform: translate(-50%, -50%);
+ border-radius: 999px;
+ border: 2px dashed rgba(56, 189, 248, 0.65);
+ background: rgba(56, 189, 248, 0.12);
+ animation: smHalo 2.8s ease-in-out infinite;
+ z-index: 0;
+}
+@keyframes smHalo {
+ 0%, 100% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.75; }
+ 50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
+}
+.sm-ava-wrap {
+ position: relative;
+ z-index: 1;
+ width: 48px;
+ height: 48px;
+}
+.sm-ava {
+ width: 48px;
+ height: 48px;
+ border-radius: 999px;
+ object-fit: cover;
+ border: 2.5px solid #fff;
+ background: #1e293b;
+}
+.sm-badge {
+ position: absolute;
+ width: 16px;
+ height: 16px;
+ border-radius: 999px;
+ display: grid;
+ place-items: center;
+ font-size: 9px;
+ font-weight: 800;
+ z-index: 2;
+ border: 1.5px solid #fff;
+}
+.sm-badge--vip {
+ top: -2px;
+ left: -2px;
+ background: #f59e0b;
+ color: #111;
+}
+.sm-badge--ok {
+ top: -2px;
+ right: -2px;
+ background: #3b82f6;
+ color: #fff;
+}
+.sm-gender {
+ position: absolute;
+ right: -2px;
+ bottom: -2px;
+ width: 18px;
+ height: 18px;
+ border-radius: 999px;
+ display: grid;
+ place-items: center;
+ font-size: 11px;
+ border: 1.5px solid #fff;
+ z-index: 2;
+}
+.sm-gender--f { background: #fb7185; color: #fff; }
+.sm-gender--m { background: #38bdf8; color: #0b1020; }
+.sm-pin-tip {
+ width: 10px;
+ height: 10px;
+ margin-top: -3px;
+ background: #111827;
+ transform: rotate(45deg);
+ border-radius: 2px;
+}
+.sm-person.is-active .sm-ava {
+ box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.55);
+}
+.sm-person.is-online .sm-ava {
+ box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.7);
+}
+
+.social-places-tabs {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 0.4rem;
+ margin: 0 0 1.1rem;
+ padding: 0.3rem;
+ border-radius: 1rem;
+ background: color-mix(in oklab, var(--social-surface, #141418) 92%, transparent);
+ border: 1px solid color-mix(in oklab, var(--social-border, #2a2a32) 70%, transparent);
+}
+.social-places-tabs button {
+ min-height: 44px;
+ border: 0;
+ border-radius: 0.75rem;
+ background: transparent;
+ color: inherit;
+ font: 700 0.92rem/1 ui-sans-serif, system-ui, sans-serif;
+ cursor: pointer;
+}
+.social-places-tabs button.active {
+ background: linear-gradient(120deg, rgba(245,158,11,0.95), rgba(56,189,248,0.85));
+ color: #0b1020;
+}
+
+/* Places hub — simple city-first */
+.sp-hub {
+ --sp-amber: #f59e0b;
+ --sp-ink: #f4f4f5;
+ --sp-muted: rgba(244, 244, 245, 0.65);
+ --sp-line: rgba(255, 255, 255, 0.1);
+ max-width: 960px;
+ margin: 0 auto;
+ padding: 0.5rem 1rem 3rem;
+ color: var(--sp-ink);
+}
+.sp-hub .sr-only,
+.sp-cafes .sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ border: 0;
+}
+.sp-hero {
+ margin: 0 0 1.25rem;
+ padding: 1.5rem 1.15rem 1.35rem;
+ border-radius: 22px;
+ border: 1px solid var(--sp-line);
+ background:
+ radial-gradient(520px 220px at 12% -30%, rgba(245, 158, 11, 0.22), transparent 55%),
+ linear-gradient(165deg, #16120e 0%, #0c0c0f 70%);
+}
+.sp-eyebrow {
+ margin: 0 0 0.4rem;
+ font-size: 0.72rem;
+ font-weight: 700;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ color: var(--sp-amber);
+}
+.sp-hero h1 {
+ margin: 0 0 0.45rem;
+ font-size: clamp(1.55rem, 4vw, 2rem);
+ font-weight: 800;
+ letter-spacing: -0.03em;
+ line-height: 1.1;
+}
+.sp-hero h1 span { color: var(--sp-amber); }
+.sp-lead {
+ margin: 0 0 1rem;
+ max-width: 28rem;
+ color: var(--sp-muted);
+ line-height: 1.5;
+ font-size: 0.95rem;
+}
+.sp-hero-acts {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.5rem;
+}
+.sp-btn {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-height: 44px;
+ padding: 0.5rem 1rem;
+ border-radius: 999px;
+ border: 1px solid var(--sp-line);
+ background: transparent;
+ color: inherit;
+ font: inherit;
+ font-weight: 600;
+ font-size: 0.9rem;
+ text-decoration: none;
+ cursor: pointer;
+}
+.sp-btn-primary {
+ background: var(--sp-amber);
+ border-color: var(--sp-amber);
+ color: #0c0c0f;
+}
+.sp-seg {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 0.35rem;
+ margin: 0 0 1rem;
+ padding: 0.3rem;
+ border-radius: 14px;
+ border: 1px solid var(--sp-line);
+ background: rgba(255, 255, 255, 0.03);
+}
+.sp-seg button {
+ min-height: 44px;
+ border: 0;
+ border-radius: 10px;
+ background: transparent;
+ color: var(--sp-muted);
+ font: inherit;
+ font-weight: 700;
+ cursor: pointer;
+}
+.sp-seg button.is-on {
+ background: var(--sp-amber);
+ color: #0c0c0f;
+}
+.sp-toolbar {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.55rem;
+ margin: 0 0 0.75rem;
+ align-items: center;
+}
+.sp-search {
+ flex: 1 1 200px;
+}
+.sp-search input {
+ width: 100%;
+ min-height: 44px;
+ padding: 0.5rem 0.9rem;
+ border-radius: 12px;
+ border: 1px solid var(--sp-line);
+ background: rgba(0, 0, 0, 0.28);
+ color: var(--sp-ink);
+ font: inherit;
+}
+.sp-hot {
+ min-height: 44px;
+ padding: 0 0.95rem;
+ border-radius: 999px;
+ border: 1px solid var(--sp-line);
+ background: transparent;
+ color: var(--sp-muted);
+ font: inherit;
+ font-weight: 600;
+ cursor: pointer;
+}
+.sp-hot.is-on {
+ border-color: rgba(245, 158, 11, 0.55);
+ color: var(--sp-amber);
+ background: rgba(245, 158, 11, 0.1);
+}
+.sp-count {
+ margin: 0 0 0.75rem;
+ font-size: 0.82rem;
+ color: var(--sp-muted);
+}
+.sp-muted {
+ color: var(--sp-muted);
+ font-size: 0.9rem;
+}
+.sp-grid {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 0.65rem;
+}
+@media (min-width: 720px) {
+ .sp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
+}
+@media (min-width: 980px) {
+ .sp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
+}
+.sp-card {
+ position: relative;
+ display: block;
+ min-height: 150px;
+ border-radius: 16px;
+ overflow: hidden;
+ text-decoration: none;
+ color: #fff;
+ background: #1a1612 center / cover no-repeat;
+ border: 1px solid var(--sp-line);
+ transition: transform 0.15s ease, border-color 0.15s ease;
+}
+.sp-card:hover {
+ transform: translateY(-2px);
+ border-color: rgba(245, 158, 11, 0.45);
+}
+.sp-card-veil {
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, 0.78));
+}
+.sp-card-body {
+ position: relative;
+ z-index: 1;
+ display: grid;
+ gap: 0.2rem;
+ align-content: end;
+ min-height: 150px;
+ padding: 0.85rem 0.9rem;
+}
+.sp-card-body em {
+ font-style: normal;
+ font-size: 0.7rem;
+ color: rgba(255, 255, 255, 0.7);
+}
+.sp-card-body strong {
+ font-size: 1.1rem;
+ letter-spacing: -0.02em;
+}
+.sp-card-body p {
+ margin: 0;
+ font-size: 0.78rem;
+ color: rgba(255, 255, 255, 0.72);
+ line-height: 1.35;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+
+/* Cafes tab — city-first list + expand sheet */
+.sp-cafe-head {
+ display: flex;
+ align-items: flex-end;
+ justify-content: space-between;
+ gap: 0.75rem;
+ margin: 0 0 0.85rem;
+ padding: 0.25rem 0 0.15rem;
+}
+.sp-cafe-head h1 {
+ margin: 0;
+ font-size: clamp(1.35rem, 3.6vw, 1.7rem);
+ font-weight: 800;
+ letter-spacing: -0.03em;
+ line-height: 1.15;
+}
+.sp-cafe-head h1 span { color: var(--sp-amber, #f59e0b); }
+.sp-cafe-head .sp-btn {
+ flex-shrink: 0;
+ min-height: 40px;
+ padding: 0 0.9rem;
+ font-size: 0.84rem;
+}
+.sp-lead--tight {
+ margin: -0.35rem 0 0.9rem;
+ font-size: 0.9rem;
+}
+.sp-card {
+ width: 100%;
+ cursor: pointer;
+ font: inherit;
+ text-align: left;
+ appearance: none;
+}
+.sp-places-cafes {
+ margin-top: 1.35rem;
+ padding-top: 1.1rem;
+ border-top: 1px solid var(--sp-line, rgba(255, 255, 255, 0.1));
+}
+.sp-places-cafes-head {
+ display: flex;
+ align-items: baseline;
+ justify-content: space-between;
+ gap: 0.75rem;
+ margin: 0 0 0.85rem;
+}
+.sp-places-cafes-head h2 {
+ margin: 0;
+ font-size: 1.05rem;
+ font-weight: 800;
+ letter-spacing: -0.02em;
+}
+.sp-link {
+ color: var(--sp-amber, #f59e0b);
+ font-size: 0.82rem;
+ font-weight: 600;
+ text-decoration: none;
+}
+.sp-cafe-city-banner-acts {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.45rem;
+ margin-top: 0.45rem;
+}
+.sp-cafe-city-banner-acts .sp-btn {
+ min-height: 36px;
+ padding: 0 0.85rem;
+ font-size: 0.82rem;
+}
+.sp-cafes {
+ display: grid;
+ gap: 0.85rem;
+}
+.sp-cafe-sheet-acts .social-save {
+ min-height: 44px;
+ padding: 0 0.85rem;
+ border-radius: 999px;
+ border: 1px solid var(--sp-line, rgba(255, 255, 255, 0.1));
+ background: transparent;
+ color: inherit;
+ font: inherit;
+ font-size: 0.86rem;
+ font-weight: 600;
+ cursor: pointer;
+}
+.sp-cafe-page-head {
+ margin: 0 0 0.25rem;
+}
+.sp-cafe-page-head h1 {
+ margin: 0 0 0.4rem;
+ font-size: clamp(1.45rem, 4vw, 1.85rem);
+ font-weight: 800;
+ letter-spacing: -0.03em;
+}
+.sp-cafe-page-head h1 span { color: var(--sp-amber, #f59e0b); }
+.sp-cafe-city-rail {
+ display: flex;
+ gap: 0.45rem;
+ overflow-x: auto;
+ padding: 0.15rem 0 0.25rem;
+ scrollbar-width: none;
+ -webkit-overflow-scrolling: touch;
+}
+.sp-cafe-city-rail::-webkit-scrollbar { display: none; }
+.sp-cafe-city-rail button {
+ flex: 0 0 auto;
+ display: inline-flex;
+ align-items: center;
+ gap: 0.35rem;
+ min-height: 40px;
+ padding: 0 0.9rem;
+ border-radius: 999px;
+ border: 1px solid var(--sp-line, rgba(255, 255, 255, 0.1));
+ background: transparent;
+ color: var(--sp-muted, rgba(244, 244, 245, 0.65));
+ font: inherit;
+ font-size: 0.86rem;
+ font-weight: 600;
+ cursor: pointer;
+ white-space: nowrap;
+}
+.sp-cafe-city-rail button.is-on {
+ color: #0c0c0f;
+ background: var(--sp-amber, #f59e0b);
+ border-color: var(--sp-amber, #f59e0b);
+}
+.sp-cafe-city-banner {
+ position: relative;
+ overflow: hidden;
+ min-height: 112px;
+ border-radius: 16px;
+ border: 1px solid var(--sp-line, rgba(255, 255, 255, 0.1));
+ background: #16120e center / cover no-repeat;
+}
+.sp-cafe-city-banner-veil {
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(
+ 105deg,
+ rgba(12, 12, 15, 0.9) 8%,
+ rgba(12, 12, 15, 0.35) 70%,
+ rgba(12, 12, 15, 0.55)
+ );
+}
+.sp-cafe-city-banner-copy {
+ position: relative;
+ z-index: 1;
+ display: grid;
+ gap: 0.2rem;
+ padding: 1rem 1.05rem;
+ color: #f4f4f5;
+}
+.sp-cafe-city-banner-copy p {
+ margin: 0;
+ display: inline-flex;
+ align-items: center;
+ gap: 0.35rem;
+ font-size: 0.72rem;
+ color: rgba(244, 244, 245, 0.7);
+}
+.sp-cafe-city-banner-copy strong {
+ font-size: 1.2rem;
+ letter-spacing: -0.02em;
+}
+.sp-cafe-city-banner-copy em {
+ font-style: normal;
+ font-size: 0.8rem;
+ color: var(--sp-amber, #f59e0b);
+}
+.sp-cafe-toolbar {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.55rem;
+ align-items: center;
+}
+.sp-cafe-sort-select {
+ min-height: 44px;
+ padding: 0 0.85rem;
+ border-radius: 12px;
+ border: 1px solid var(--sp-line, rgba(255, 255, 255, 0.1));
+ background: rgba(0, 0, 0, 0.28);
+ color: var(--sp-ink, #f4f4f5);
+ font: inherit;
+ font-size: 0.86rem;
+}
+.sp-cafe-search {
+ flex: 1 1 180px;
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ min-height: 44px;
+ padding: 0 0.85rem;
+ border-radius: 12px;
+ border: 1px solid var(--sp-line, rgba(255, 255, 255, 0.1));
+ background: rgba(0, 0, 0, 0.28);
+ color: var(--sp-muted, rgba(244, 244, 245, 0.65));
+}
+.sp-cafe-search input {
+ flex: 1;
+ min-width: 0;
+ border: 0;
+ background: transparent;
+ color: var(--sp-ink, #f4f4f5);
+ font: inherit;
+ outline: none;
+}
+.sp-cafe-sort {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.35rem;
+}
+.sp-cafe-sort button {
+ min-height: 34px;
+ padding: 0 0.75rem;
+ border-radius: 999px;
+ border: 1px solid transparent;
+ background: rgba(255, 255, 255, 0.04);
+ color: var(--sp-muted, rgba(244, 244, 245, 0.65));
+ font: inherit;
+ font-size: 0.78rem;
+ font-weight: 600;
+ cursor: pointer;
+}
+.sp-cafe-sort button.is-on {
+ border-color: rgba(245, 158, 11, 0.45);
+ color: var(--sp-amber, #f59e0b);
+ background: rgba(245, 158, 11, 0.1);
+}
+.sp-cafe-list {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: grid;
+ gap: 0.55rem;
+}
+.sp-cafe-row {
+ width: 100%;
+ display: grid;
+ grid-template-columns: auto 1fr auto;
+ gap: 0.75rem;
+ align-items: center;
+ min-height: 72px;
+ padding: 0.85rem 0.9rem;
+ border-radius: 16px;
+ border: 1px solid var(--sp-line, rgba(255, 255, 255, 0.1));
+ background: rgba(255, 255, 255, 0.03);
+ color: inherit;
+ text-align: left;
+ font: inherit;
+ cursor: pointer;
+ transition: border-color 0.15s ease, background 0.15s ease;
+}
+.sp-cafe-row:hover,
+.sp-cafe-row.is-open {
+ border-color: rgba(245, 158, 11, 0.45);
+ background: rgba(245, 158, 11, 0.06);
+}
+.sp-cafe-row.is-partner .sp-cafe-row-mark {
+ background: rgba(245, 158, 11, 0.16);
+ color: var(--sp-amber, #f59e0b);
+}
+.sp-cafe-row-mark {
+ display: grid;
+ place-items: center;
+ width: 40px;
+ height: 40px;
+ border-radius: 12px;
+ background: rgba(255, 255, 255, 0.06);
+ color: rgba(244, 244, 245, 0.75);
+}
+.sp-cafe-row-main {
+ display: grid;
+ gap: 0.18rem;
+ min-width: 0;
+}
+.sp-cafe-row-main strong {
+ font-size: 1rem;
+ letter-spacing: -0.02em;
+ line-height: 1.25;
+}
+.sp-cafe-row-main em {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.25rem;
+ font-style: normal;
+ font-size: 0.78rem;
+ color: var(--sp-muted, rgba(244, 244, 245, 0.65));
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.sp-cafe-row-meta {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.35rem;
+ margin-top: 0.1rem;
+}
+.sp-cafe-row-meta > span {
+ font-size: 0.7rem;
+ padding: 0.12rem 0.45rem;
+ border-radius: 999px;
+ background: rgba(255, 255, 255, 0.06);
+ color: rgba(244, 244, 245, 0.72);
+}
+.sp-cafe-row-meta .is-tag {
+ color: var(--sp-amber, #f59e0b);
+ background: rgba(245, 158, 11, 0.12);
+}
+.sp-cafe-row-go {
+ color: rgba(244, 244, 245, 0.45);
+ flex-shrink: 0;
+}
+.sp-cafe-row.is-open .sp-cafe-row-go {
+ color: var(--sp-amber, #f59e0b);
+ transform: rotate(90deg);
+}
+.sp-cafe-sheet {
+ margin-top: 0.45rem;
+ border-radius: 18px;
+ border: 1px solid rgba(245, 158, 11, 0.28);
+ overflow: hidden;
+ background: #0f0e0c;
+ animation: sp-cafe-in 0.22s ease;
+}
+@keyframes sp-cafe-in {
+ from { opacity: 0; transform: translateY(6px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+@media (prefers-reduced-motion: reduce) {
+ .sp-cafe-sheet { animation: none; }
+}
+.sp-cafe-sheet-hero {
+ position: relative;
+ min-height: 132px;
+ background: #1a1612 center / cover no-repeat;
+}
+.sp-cafe-sheet-veil {
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(12, 12, 15, 0.92));
+}
+.sp-cafe-sheet-close {
+ position: absolute;
+ top: 0.65rem;
+ right: 0.65rem;
+ z-index: 2;
+ display: grid;
+ place-items: center;
+ width: 36px;
+ height: 36px;
+ border-radius: 999px;
+ border: 1px solid rgba(255, 255, 255, 0.18);
+ background: rgba(0, 0, 0, 0.45);
+ color: #fff;
+ cursor: pointer;
+}
+.sp-cafe-sheet-hero-copy {
+ position: relative;
+ z-index: 1;
+ display: grid;
+ gap: 0.25rem;
+ padding: 1.35rem 1.05rem 1rem;
+ color: #f4f4f5;
+}
+.sp-cafe-sheet-hero-copy p {
+ margin: 0;
+ font-size: 0.75rem;
+ color: rgba(244, 244, 245, 0.75);
+}
+.sp-cafe-sheet-hero-copy h2 {
+ margin: 0;
+ font-size: 1.35rem;
+ letter-spacing: -0.03em;
+ line-height: 1.15;
+}
+.sp-cafe-sheet-hero-copy em {
+ font-style: normal;
+ font-size: 0.86rem;
+ color: var(--sp-amber, #f59e0b);
+}
+.sp-cafe-sheet-body {
+ display: grid;
+ gap: 0.85rem;
+ padding: 0.95rem 1.05rem 1.15rem;
+}
+.sp-cafe-facts {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.4rem;
+}
+.sp-cafe-facts li {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.35rem;
+ min-height: 34px;
+ padding: 0 0.7rem;
+ border-radius: 999px;
+ background: rgba(255, 255, 255, 0.05);
+ font-size: 0.78rem;
+ color: rgba(244, 244, 245, 0.82);
+}
+.sp-cafe-sheet-acts {
+ display: grid;
+ gap: 0.5rem;
+}
+.sp-cafe-sheet-cta {
+ width: 100%;
+ gap: 0.4rem;
+}
+.sp-cafe-sheet-sec {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.4rem;
+ align-items: center;
+}
+.sp-cafe-sheet-sec .sp-btn {
+ flex: 1 1 auto;
+ min-width: 8.5rem;
+}
+.sp-cafe-soft {
+ margin: 0;
+ font-size: 0.82rem;
+ line-height: 1.45;
+ color: var(--sp-muted, rgba(244, 244, 245, 0.65));
+}
+.sp-cafe-reviews {
+ border-top: 1px solid var(--sp-line, rgba(255, 255, 255, 0.1));
+ padding-top: 0.35rem;
+}
+.sp-cafe-reviews-toggle {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ min-height: 44px;
+ padding: 0 0.15rem;
+ border: 0;
+ background: transparent;
+ color: inherit;
+ font: inherit;
+ font-weight: 700;
+ cursor: pointer;
+}
+.sp-cafe-reviews-toggle svg {
+ transition: transform 0.15s ease;
+ color: var(--sp-muted, rgba(244, 244, 245, 0.65));
+}
+.sp-cafe-reviews-toggle.is-open svg {
+ transform: rotate(180deg);
+}
+.sp-cafe-reviews-body {
+ display: grid;
+ gap: 0.75rem;
+ padding-bottom: 0.35rem;
+}
+.sp-cafe-review-list {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: grid;
+ gap: 0.55rem;
+}
+.sp-cafe-review-list li {
+ padding: 0.7rem 0.8rem;
+ border-radius: 12px;
+ background: rgba(255, 255, 255, 0.04);
+}
+.sp-cafe-review-list header {
+ display: flex;
+ justify-content: space-between;
+ gap: 0.5rem;
+ margin-bottom: 0.25rem;
+ font-size: 0.82rem;
+}
+.sp-cafe-review-list p {
+ margin: 0;
+ font-size: 0.86rem;
+ line-height: 1.45;
+ color: rgba(244, 244, 245, 0.85);
+}
+.sp-cafe-review-form {
+ display: grid;
+ gap: 0.55rem;
+}
+.sp-cafe-review-form label {
+ display: grid;
+ gap: 0.3rem;
+ font-size: 0.78rem;
+ color: var(--sp-muted, rgba(244, 244, 245, 0.65));
+}
+.sp-cafe-review-form input,
+.sp-cafe-review-form textarea {
+ min-height: 42px;
+ padding: 0.55rem 0.75rem;
+ border-radius: 10px;
+ border: 1px solid var(--sp-line, rgba(255, 255, 255, 0.1));
+ background: rgba(0, 0, 0, 0.28);
+ color: var(--sp-ink, #f4f4f5);
+ font: inherit;
+}
+.sp-cafe-review-form textarea { min-height: 84px; resize: vertical; }
+.sp-cafe-stars {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 0.25rem;
+}
+.sp-cafe-stars legend {
+ width: 100%;
+ margin-bottom: 0.25rem;
+ font-size: 0.78rem;
+ color: var(--sp-muted, rgba(244, 244, 245, 0.65));
+}
+.sp-cafe-stars button {
+ display: grid;
+ place-items: center;
+ width: 36px;
+ height: 36px;
+ border: 0;
+ border-radius: 8px;
+ background: transparent;
+ color: rgba(244, 244, 245, 0.35);
+ cursor: pointer;
+}
+.sp-cafe-stars button.is-on { color: var(--sp-amber, #f59e0b); }
+
+.social-places-remote { margin: 0 0 1.25rem; }
+.social-places-remote h2 { font-size: 1rem; margin: 0 0 0.6rem; }
+.social-places-remote-list {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: grid;
+ gap: 0.45rem;
+}
+.social-places-remote-list a,
+.social-places-remote-row {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 0.75rem;
+ min-height: 48px;
+ padding: 0.55rem 0.8rem;
+ border-radius: 0.75rem;
+ background: color-mix(in oklab, var(--social-surface, #141418) 92%, transparent);
+ text-decoration: none;
+ color: inherit;
+}
+.social-place-hero {
+ margin: 0 0 1.5rem;
+ padding: 1.1rem 1.2rem;
+ border-radius: 1rem;
+ background: color-mix(in oklab, var(--social-surface, #141418) 92%, transparent);
+}
+.social-people-geo-filters {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.5rem;
+ width: 100%;
+ margin-top: 0.35rem;
+}
+.social-people-geo-filters label {
+ display: grid;
+ gap: 0.2rem;
+ font-size: 0.75rem;
+ opacity: 0.9;
+}
+.social-people-geo-filters select,
+.social-people-geo-filters button {
+ min-height: 40px;
+ padding: 0.35rem 0.65rem;
+ border-radius: 0.65rem;
+ border: 1px solid color-mix(in oklab, var(--social-border, #2a2a32) 80%, transparent);
+ background: color-mix(in oklab, var(--social-surface, #141418) 90%, transparent);
+ color: inherit;
+ font: inherit;
+}
+.social-people-geo-filters button.active {
+ border-color: #f59e0b;
+ color: #f59e0b;
+}
+.social-trip-editor { margin-bottom: 1rem; }
+.social-trip-list {
+ list-style: none;
+ margin: 1rem 0 0;
+ padding: 0;
+ display: grid;
+ gap: 0.45rem;
+}
+.social-trip-list li {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 0.5rem 0.75rem;
+ padding: 0.55rem 0.7rem;
+ border-radius: 0.65rem;
+ background: color-mix(in oklab, #fff 3%, transparent);
+}
+.social-map-teaser {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: 1rem;
+ margin: 0 0 1.25rem;
+ padding: 1rem 1.15rem;
+ border-radius: 1rem;
+ background:
+ radial-gradient(ellipse at 10% 0%, rgba(245, 158, 11, 0.18), transparent 55%),
+ color-mix(in oklab, var(--social-surface, #141418) 95%, transparent);
+ border: 1px solid color-mix(in oklab, #f59e0b 28%, transparent);
+}
+.social-map-teaser-chips {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.35rem;
+}
+.social-map-teaser-chips span {
+ padding: 0.2rem 0.55rem;
+ border-radius: 999px;
+ font-size: 0.78rem;
+ background: color-mix(in oklab, #f59e0b 18%, transparent);
+}
+@media (min-width: 960px) {
+ .sm-discover {
+ grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
+ min-height: calc(100dvh - 72px);
+ }
+ .sm-discover-stage,
+ .social-map-canvas-wrap,
+ .social-map-canvas,
+ .sm-globe,
+ .social-map-canvas--skeleton,
+ .sm-globe--skeleton {
+ height: calc(100dvh - 72px);
+ min-height: 520px;
+ }
+ .sm-discover-rail {
+ border-top: 0;
+ border-left: 1px solid rgba(255,255,255,0.06);
+ padding: 1.1rem;
+ overflow: auto;
+ }
+ .sm-discover-topbar { top: 7.2rem; }
+ .sm-globe-hint { bottom: 1.4rem; }
+}
+@media (max-width: 959px) {
+ .sm-discover-hero,
+ .sm-discover-legend,
+ .sm-mode-switch,
+ .sm-discover.is-h5 .sm-discover-rail {
+ display: none !important;
+ }
+ .sm-discover.is-h5 {
+ min-height: calc(100dvh - 56px);
+ }
+ .sm-discover.is-h5 .sm-discover-stage,
+ .sm-discover.is-h5 .sm-globe,
+ .sm-discover.is-h5 .sm-globe--skeleton,
+ .sm-discover.is-h5 .social-map-canvas-wrap {
+ height: calc(100dvh - 56px);
+ min-height: calc(100dvh - 56px);
+ }
+ .sm-discover-topbar {
+ top: 0.65rem;
+ left: 0.65rem;
+ right: 0.65rem;
+ justify-content: flex-end;
+ }
+ .sm-discover.is-h5 .sm-discover-topbar {
+ display: none;
+ }
+ .sm-h5-sheet {
+ position: absolute;
+ left: 0.75rem;
+ right: 0.75rem;
+ bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
+ z-index: 40;
+ pointer-events: auto;
+ }
+ .sm-h5-sheet .sm-rail-card {
+ margin: 0;
+ box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .social-experience *, .social-experience *::before, .social-experience *::after {
+ animation-duration: 0.01ms !important;
+ animation-iteration-count: 1 !important;
+ transition-duration: 0.01ms !important;
+ scroll-behavior: auto !important;
+ }
+ .social-experience .reveal { opacity: 1 !important; transform: none !important; }
+}
diff --git a/src/modules/hub/app/home.css b/src/modules/hub/app/home.css
new file mode 100644
index 0000000..af1d39a
--- /dev/null
+++ b/src/modules/hub/app/home.css
@@ -0,0 +1,3498 @@
+/* Social landing: keep the community palette, give each connection room to breathe. */
+.social-home {
+ --connection-border: rgba(171, 195, 213, 0.12);
+ --connection-surface: #101923;
+ --connection-mint: #4ecdc4;
+ --connection-coral: #ff6b6b;
+ --connection-yellow: #ffe66d;
+ --connection-ease: cubic-bezier(0.22, 1, 0.36, 1);
+}
+.social-home .container {
+ max-width: 1248px;
+ padding-inline: 32px;
+}
+.social-home :is(a, button, input):focus-visible {
+ outline: 2px solid var(--connection-mint);
+ outline-offset: 5px;
+}
+.social-home button {
+ cursor: pointer;
+ font-family: inherit;
+}
+.social-home .social-fx-orbs {
+ opacity: 0.2;
+}
+.social-home #particle-canvas {
+ opacity: 0.28;
+}
+.social-home .social-fx-orb.o1 {
+ top: 5%;
+ left: -180px;
+}
+.social-home .social-fx-orb.o2 {
+ top: 15%;
+}
+.social-home .social-fx-orb.o3 {
+ display: none;
+}
+
+/* A quieter, floating navigation keeps the whole composition anchored. */
+.social-home .navbar {
+ height: 88px;
+ padding: 14px 28px;
+ background: transparent;
+ border: 0;
+ box-shadow: none;
+}
+.social-home .navbar.scrolled {
+ background: transparent;
+ border-bottom: 0;
+ box-shadow: none;
+ backdrop-filter: none;
+}
+.social-home .nav-container {
+ max-width: 1184px;
+ padding: 0 20px;
+ border: 1px solid var(--connection-border);
+ border-radius: 18px;
+ background: color-mix(in srgb, var(--bg-primary) 84%, transparent);
+ backdrop-filter: blur(24px);
+ gap: 24px;
+ transition: box-shadow 0.3s;
+}
+.social-home .navbar.scrolled .nav-container {
+ box-shadow: 0 8px 32px #0002;
+}
+.social-home .nav-logo {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ white-space: nowrap;
+ font-size: 16px;
+ font-weight: 750;
+ letter-spacing: -0.03em;
+}
+.social-home .nav-logo .logo-icon {
+ display: grid;
+ place-items: center;
+ width: 30px;
+ height: 30px;
+ border-radius: 9px;
+ background: #4ecdc412;
+ color: var(--connection-mint);
+ font-size: 25px;
+ animation: none;
+}
+.social-home .nav-group-btn {
+ font-size: 13px;
+ min-height: 42px;
+}
+.social-home .nav-actions {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ margin-left: auto;
+}
+.social-home .nav-icon-btn {
+ display: grid;
+ place-items: center;
+ width: 38px;
+ height: 38px;
+ border: 0;
+ border-radius: 10px;
+ color: var(--text-secondary);
+ background: transparent;
+}
+.social-home .nav-actions .btn {
+ min-height: 36px;
+ padding: 0 17px;
+ font-size: 12px;
+ border-radius: 10px;
+}
+.social-home .btn-primary {
+ background: var(--connection-mint);
+ color: #082b2b;
+ box-shadow: none;
+}
+.social-home .nav-actions .btn-primary {
+ background: var(--text-primary);
+ color: var(--bg-primary);
+}
+.social-home .nav-group-panel::before {
+ content: "";
+ position: absolute;
+ height: 12px;
+ top: -12px;
+ left: 0;
+ right: 0;
+}
+.social-home .nav-mobile-extras {
+ display: none;
+}
+
+.connection-hero {
+ position: relative;
+ padding-top: 142px;
+ overflow: hidden;
+}
+.connection-hero-grid {
+ position: absolute;
+ inset: 0 0 0 35%;
+ pointer-events: none;
+ opacity: 0.22;
+ background-image:
+ linear-gradient(var(--connection-border) 1px, transparent 1px),
+ linear-gradient(90deg, var(--connection-border) 1px, transparent 1px);
+ background-size: 52px 52px;
+ mask-image: radial-gradient(ellipse at 65% 42%, #000, transparent 68%);
+}
+.connection-hero-layout {
+ position: relative;
+ display: grid;
+ grid-template-columns: 1fr 1.02fr;
+ gap: 24px;
+ align-items: center;
+ min-height: 505px;
+}
+.connection-copy {
+ padding-bottom: 24px;
+ position: relative;
+ z-index: 2;
+ animation: connection-rise 0.9s var(--connection-ease) both;
+}
+.connection-eyebrow {
+ display: flex;
+ gap: 9px;
+ align-items: center;
+ color: var(--text-secondary);
+ font-size: 10px;
+ letter-spacing: 0.13em;
+ font-weight: 500;
+}
+.connection-status-dot {
+ display: inline-block;
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: var(--connection-mint);
+ box-shadow: 0 0 0 4px #4ecdc412;
+ flex-shrink: 0;
+}
+.connection-eyebrow-divider {
+ width: 1px;
+ height: 10px;
+ margin-inline: 3px;
+ background: var(--connection-border);
+}
+.connection-copy h1 {
+ margin: 25px 0 22px;
+ font-size: clamp(40px, 4.15vw, 62px);
+ font-weight: 800;
+ letter-spacing: -0.055em;
+ line-height: 1.3;
+ color: var(--text-primary);
+}
+.connection-title-accent {
+ position: relative;
+ display: inline-block;
+ color: var(--connection-mint);
+}
+.connection-title-accent::after {
+ content: "";
+ position: absolute;
+ bottom: -3px;
+ left: 0;
+ right: 0;
+ height: 8px;
+ border: 2px solid var(--connection-mint);
+ border-color: var(--connection-mint) transparent transparent;
+ border-radius: 50%;
+ transform: rotate(-4deg);
+ opacity: 0.7;
+}
+.connection-title-period {
+ color: var(--connection-coral);
+}
+.connection-description {
+ color: var(--text-secondary);
+ font-size: 14px;
+ line-height: 1.95;
+ letter-spacing: 0.02em;
+}
+.connection-description {
+ white-space: pre-line;
+}
+.connection-actions {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 14px 22px;
+ margin-top: 30px;
+}
+.connection-actions .connection-film {
+ text-decoration: none;
+}
+.social-home .connection-join {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 22px;
+ padding: 0 24px;
+ min-height: 51px;
+ border: 1px solid #ff8b7c;
+ border-radius: 12px;
+ color: #251414;
+ font-size: 13px;
+ font-weight: 750;
+ background: linear-gradient(120deg, #ff8c78, #ff6b6b);
+ box-shadow:
+ 0 6px 30px #ff6b6b1c,
+ inset 0 1px 0 #ffffff35;
+ transition:
+ transform 0.3s var(--connection-ease),
+ box-shadow 0.3s;
+}
+.social-home .connection-join:hover {
+ transform: translateY(-3px);
+ box-shadow: 0 10px 35px #ff6b6b38;
+}
+.connection-join svg {
+ transition: transform 0.3s;
+}
+.connection-join:hover svg {
+ transform: translate(2px, -2px);
+}
+.connection-film {
+ display: inline-flex;
+ align-items: center;
+ gap: 9px;
+ min-height: 44px;
+ border: 0;
+ color: var(--text-secondary);
+ background: none;
+ font-size: 12px;
+ transition: color 0.2s;
+}
+.connection-film > span {
+ display: grid;
+ place-items: center;
+ width: 31px;
+ height: 31px;
+ border: 1px solid var(--connection-border);
+ border-radius: 50%;
+ transition:
+ border-color 0.2s,
+ background 0.2s;
+}
+.connection-film:hover {
+ color: var(--text-primary);
+}
+.connection-film:hover > span {
+ border-color: var(--connection-mint);
+ background: #4ecdc412;
+}
+.connection-proof {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ margin-top: 35px;
+}
+.connection-avatar-stack {
+ display: flex;
+ padding-left: 7px;
+}
+.connection-avatar-stack img {
+ width: 34px;
+ height: 34px;
+ border: 3px solid var(--bg-primary);
+ border-radius: 50%;
+ margin-left: -7px;
+ object-fit: cover;
+ background: var(--bg-secondary);
+}
+.connection-proof strong {
+ display: block;
+ color: var(--text-secondary);
+ font-size: 11px;
+ font-weight: 500;
+}
+.connection-proof div > span {
+ display: block;
+ margin-top: 3px;
+ color: var(--text-muted);
+ font-size: 9px;
+}
+.connection-universe {
+ position: relative;
+ min-width: 0;
+ animation: connection-rise 1.1s 0.12s var(--connection-ease) both;
+ perspective: 900px;
+}
+.connection-universe-label,
+.connection-universe-footer {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ margin: 0 23px;
+ color: var(--text-muted);
+ font-size: 10px;
+ letter-spacing: 0.03em;
+}
+.connection-universe-label {
+ padding: 0 0 15px;
+ border-bottom: 1px solid var(--connection-border);
+}
+.connection-universe-label svg {
+ color: var(--connection-mint);
+}
+.connection-signal {
+ display: flex;
+ gap: 3px;
+ align-items: end;
+ margin-left: auto;
+ height: 12px;
+}
+.connection-signal i {
+ width: 2px;
+ background: var(--connection-mint);
+ height: 4px;
+}
+.connection-signal i:nth-child(2) {
+ height: 7px;
+}
+.connection-signal i:nth-child(3) {
+ height: 10px;
+}
+.connection-signal i:nth-child(4) {
+ height: 12px;
+ opacity: 0.4;
+}
+.connection-orbit-scene {
+ position: relative;
+ aspect-ratio: 560 / 440;
+ transform: rotateX(var(--orbit-y, 0deg)) rotateY(var(--orbit-x, 0deg));
+ transition: transform 0.65s var(--connection-ease);
+}
+.connection-orbits {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ inset: 0;
+ overflow: visible;
+}
+.connection-globe-lines {
+ color: var(--connection-mint);
+ opacity: 0.16;
+}
+.connection-orbit-traveler {
+ transform-origin: 280px 240px;
+ animation: connection-orbit 25s linear infinite;
+}
+.connection-orbit-traveler-second {
+ animation-duration: 37s;
+ animation-direction: reverse;
+}
+.connection-flight-path {
+ animation: connection-flight 28s linear infinite;
+}
+.connection-center {
+ position: absolute;
+ inset: 0;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding-bottom: 0;
+ pointer-events: none;
+}
+.connection-center-icon {
+ display: grid;
+ place-items: center;
+ width: 60px;
+ height: 60px;
+ margin-bottom: 13px;
+ color: var(--connection-mint);
+ border: 1px solid #4ecdc440;
+ border-radius: 19px;
+ background: linear-gradient(135deg, #4ecdc41f, #4ecdc405);
+ box-shadow:
+ 0 0 55px #4ecdc414,
+ inset 0 1px 0 #ffffff12;
+ transform: rotate(-8deg);
+}
+.connection-center-icon svg {
+ animation: connection-breathe 5s ease-in-out infinite;
+}
+.connection-center strong {
+ font-size: 17px;
+ font-weight: 600;
+ letter-spacing: 0.07em;
+}
+.connection-center > span {
+ margin-top: 7px;
+ font-size: 7px;
+ letter-spacing: 0.24em;
+ color: var(--text-muted);
+}
+.connection-person {
+ position: absolute;
+ left: var(--node-x);
+ top: var(--node-y);
+ translate: -50% -50%;
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ padding: 12px 16px 12px 11px;
+ min-width: 144px;
+ border: 1px solid var(--connection-border);
+ border-radius: 14px;
+ background: color-mix(in srgb, var(--connection-surface) 90%, transparent);
+ box-shadow:
+ 0 12px 32px #0003,
+ inset 0 1px 0 #ffffff06;
+ backdrop-filter: blur(12px);
+ animation: connection-person-float 7s ease-in-out var(--node-delay) infinite;
+ transition:
+ border-color 0.25s,
+ box-shadow 0.25s;
+}
+.connection-person:hover {
+ border-color: #4ecdc47a;
+ box-shadow: 0 14px 42px #4ecdc418;
+ z-index: 3;
+ animation-play-state: paused;
+}
+.connection-universe:hover .connection-person,
+.connection-universe:focus-within .connection-person {
+ animation-play-state: paused;
+}
+.connection-person-avatar {
+ position: relative;
+ flex-shrink: 0;
+}
+.connection-person img {
+ width: 42px;
+ height: 42px;
+ object-fit: cover;
+ border-radius: 50%;
+ background: var(--bg-secondary);
+}
+.connection-person-avatar i {
+ position: absolute;
+ width: 8px;
+ height: 8px;
+ right: 0;
+ bottom: 0;
+ border-radius: 50%;
+ border: 2px solid var(--connection-surface);
+ background: var(--connection-mint);
+}
+.connection-person strong {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 18px;
+ font-size: 12px;
+ font-weight: 600;
+}
+.connection-person strong svg {
+ opacity: 0.4;
+}
+.connection-person small {
+ display: block;
+ color: var(--text-secondary);
+ font-size: 9px;
+ margin-top: 3px;
+}
+.connection-person em {
+ display: block;
+ font-size: 8px;
+ color: var(--connection-mint);
+ font-style: normal;
+ margin-top: 4px;
+}
+.connection-person-1 em,
+.connection-person-1 .connection-person-avatar i {
+ color: var(--connection-coral);
+}
+.connection-person-1 .connection-person-avatar i {
+ background: var(--connection-coral);
+}
+.connection-coordinate {
+ position: absolute;
+ color: var(--text-muted);
+ opacity: 0.65;
+ font-family: monospace;
+ font-size: 8px;
+}
+.connection-coordinate-one {
+ top: 7%;
+ left: 48%;
+}
+.connection-coordinate-two {
+ bottom: 18%;
+ left: 24%;
+}
+.connection-wave {
+ position: absolute;
+ bottom: 3%;
+ left: 43%;
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ padding: 12px 15px;
+ border: 1px solid #ffe66d26;
+ border-radius: 11px;
+ background: color-mix(in srgb, var(--connection-surface) 90%, transparent);
+ box-shadow: 0 10px 24px #0002;
+ transform: rotate(-3deg);
+ white-space: nowrap;
+ color: var(--text-secondary);
+ font-size: 10px;
+}
+.connection-wave svg {
+ color: var(--connection-yellow);
+}
+.connection-wave > span:last-child {
+ margin-left: 12px;
+ color: var(--connection-yellow);
+}
+.connection-universe-footer {
+ padding-top: 14px;
+ border-top: 1px solid var(--connection-border);
+ justify-content: space-between;
+ font-size: 8px;
+}
+.connection-universe-footer > span:first-child {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+.connection-universe-footer .connection-status-dot {
+ width: 4px;
+ height: 4px;
+}
+.connection-hero-bottom {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-top: 38px;
+ padding-bottom: 25px;
+ color: var(--text-muted);
+ font-size: 9px;
+}
+.connection-hero-bottom a {
+ display: flex;
+ align-items: center;
+ gap: 9px;
+ min-height: 30px;
+}
+.connection-hero-bottom a svg {
+ animation: connection-nudge 2.5s ease-in-out infinite;
+}
+.connection-hero-bottom > span {
+ letter-spacing: 0.18em;
+ font-size: 8px;
+}
+
+/* Entry doors into the product. */
+.connection-ways {
+ position: relative;
+ z-index: 1;
+ display: grid;
+ grid-template-columns: repeat(5, minmax(0, 1fr));
+ gap: 12px;
+ margin-bottom: 40px;
+}
+.connection-way {
+ --way-accent: var(--connection-mint);
+ position: relative;
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ padding: 18px 16px;
+ border: 1px solid var(--connection-border);
+ border-radius: 15px;
+ background: linear-gradient(
+ 120deg,
+ color-mix(in srgb, var(--way-accent) 5%, transparent),
+ transparent
+ );
+ overflow: hidden;
+ transition:
+ transform 0.35s var(--connection-ease),
+ border-color 0.35s,
+ background 0.35s;
+}
+.connection-way.coral {
+ --way-accent: var(--connection-coral);
+}
+.connection-way.yellow {
+ --way-accent: var(--connection-yellow);
+}
+.connection-way:hover {
+ transform: translateY(-5px);
+ border-color: color-mix(in srgb, var(--way-accent) 45%, transparent);
+ background-color: color-mix(in srgb, var(--way-accent) 4%, transparent);
+}
+.connection-way-index {
+ position: absolute;
+ top: -9px;
+ right: 48px;
+ font-size: 82px;
+ font-weight: 800;
+ color: var(--way-accent);
+ opacity: 0.035;
+ line-height: 1.5;
+ letter-spacing: -0.1em;
+ pointer-events: none;
+}
+.connection-way-icon {
+ display: grid;
+ place-items: center;
+ width: 43px;
+ height: 43px;
+ border: 1px solid color-mix(in srgb, var(--way-accent) 20%, transparent);
+ border-radius: 12px;
+ color: var(--way-accent);
+ background: color-mix(in srgb, var(--way-accent) 5%, transparent);
+ flex-shrink: 0;
+}
+.connection-way > strong,
+.connection-way-copy strong {
+ display: block;
+ font-size: 14px;
+ font-weight: 600;
+}
+.connection-way-copy small {
+ display: block;
+ margin-top: 5px;
+ font-size: 10px;
+ color: var(--text-muted);
+}
+.connection-way-copy em {
+ display: inline-block;
+ margin-top: 8px;
+ font-size: 11px;
+ font-style: normal;
+ color: var(--way-accent);
+ font-weight: 600;
+}
+.connection-way-badge {
+ display: inline-block;
+ margin-top: 6px;
+ max-width: 100%;
+ padding: 2px 7px;
+ border-radius: 999px;
+ border: 1px solid color-mix(in srgb, var(--way-accent) 35%, transparent);
+ background: color-mix(in srgb, var(--way-accent) 10%, transparent);
+ color: var(--way-accent);
+ font-size: 10px;
+ line-height: 1.3;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.connection-way-arrow {
+ margin-left: auto;
+ color: var(--text-muted);
+ transition:
+ color 0.25s,
+ transform 0.25s;
+}
+.connection-way:hover .connection-way-arrow {
+ transform: translate(2px, -2px);
+ color: var(--way-accent);
+}
+
+.social-home .social-path {
+ position: relative;
+ top: auto;
+ padding: 0;
+ z-index: 1;
+ border-block: 1px solid var(--connection-border);
+ background: transparent;
+}
+.social-home .social-path-track {
+ justify-content: flex-start;
+ gap: 28px;
+ flex-wrap: nowrap;
+}
+.social-home .social-path-track a {
+ position: relative;
+ min-height: 58px;
+ border: 0;
+ border-radius: 0;
+ padding: 0 5px;
+ font-size: 11px;
+ background: none;
+ gap: 8px;
+ white-space: nowrap;
+ animation: none !important;
+}
+.social-home .social-path-track a::after {
+ content: "";
+ position: absolute;
+ height: 2px;
+ bottom: -1px;
+ inset-inline: 0;
+ background: var(--connection-mint);
+ transform: scaleX(0);
+ transition: transform 0.3s;
+}
+.social-home .social-path-track a:hover::after,
+.social-home .social-path-track a[aria-current="location"]::after {
+ transform: scaleX(1);
+}
+.social-home .social-path-track a[aria-current="location"] {
+ color: var(--connection-mint);
+}
+.social-home .social-path-emoji {
+ font-size: 13px;
+}
+.social-home .section {
+ position: relative;
+ z-index: 1;
+ padding: 76px 0;
+ scroll-margin-top: 155px;
+}
+.social-home .section-header {
+ text-align: left;
+ margin-bottom: 30px;
+}
+.social-home .section-header .section-tag {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ width: 100%;
+ margin-bottom: 18px;
+ background: none;
+ padding: 0;
+ border: 0;
+ color: var(--connection-mint);
+ font-family: monospace;
+ font-size: 9px;
+ letter-spacing: 0.13em;
+}
+.social-home .section-tag > span:last-child {
+ color: var(--text-muted);
+ font-family: var(--font-body);
+ font-size: 10px;
+ letter-spacing: 0.04em;
+}
+.social-home .section-header h2 {
+ font-size: clamp(23px, 2.1vw, 30px);
+ font-weight: 700;
+ letter-spacing: -0.04em;
+ line-height: 1.4;
+}
+.social-home .section-header p {
+ font-size: 12px;
+ margin-top: 10px;
+ color: var(--text-muted);
+}
+.social-home .section {
+ content-visibility: visible;
+ contain-intrinsic-size: none;
+ scroll-margin-top: 70px;
+}
+.social-home .social-title-emoji {
+ display: none;
+}
+.social-home .social-section-alt {
+ background: linear-gradient(180deg, #4ecdc403, transparent);
+ border-block: 1px solid var(--connection-border);
+}
+.social-home .social-section-actions {
+ justify-content: flex-start;
+ margin-top: 24px;
+ gap: 10px;
+}
+.social-home .social-section-actions .btn {
+ min-height: 42px;
+ padding: 0 17px;
+ border-radius: 10px;
+ font-size: 11px;
+}
+.social-home .social-section-actions .btn-ghost {
+ background: transparent;
+ border-color: var(--connection-border);
+}
+.social-home .social-btn-pulse {
+ animation: none;
+}
+.social-home .social-btn-pulse::before,
+.social-home .social-btn-pulse::after {
+ display: none;
+}
+
+/* Compact people cards keep profiles, interests and actions in one scan. */
+.social-home .social-people-bar {
+ border: 0;
+ border-radius: 0;
+ padding: 0 0 20px;
+ margin-bottom: 22px;
+ background: none;
+ border-bottom: 1px solid var(--connection-border);
+}
+.social-home .social-people-bar-avs img {
+ width: 30px;
+ height: 30px;
+ animation: none;
+}
+.social-home .social-people-bar p {
+ font-size: 11px;
+}
+.social-home .social-people-bar p span {
+ color: var(--text-muted);
+}
+.social-home .social-people-bar .btn {
+ min-height: 40px;
+ border-radius: 10px;
+ font-size: 11px;
+}
+.social-home .social-count-pulse {
+ animation: none;
+}
+.social-home .social-people-filters {
+ gap: 6px;
+ margin-bottom: 24px;
+}
+.social-home .social-people-filter {
+ min-height: 40px;
+ border-radius: 9px;
+ border-color: transparent;
+ background: transparent;
+ padding-inline: 16px;
+ font-size: 11px;
+}
+.social-home .social-people-filter.active {
+ border-color: #4ecdc42e;
+ background: #4ecdc40e;
+ color: var(--connection-mint);
+}
+.social-home .social-people-filter > span {
+ font-size: 11px;
+}
+.social-home .social-people-grid {
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 12px;
+}
+.social-home .social-people-chip {
+ position: relative;
+ display: grid;
+ grid-template-columns: 46px 1fr;
+ align-items: center;
+ column-gap: 13px;
+ row-gap: 2px;
+ text-align: left;
+ padding: 18px 16px;
+ border: 1px solid var(--connection-border);
+ border-radius: 13px;
+ background: color-mix(in srgb, var(--connection-surface) 64%, transparent);
+ transition:
+ transform 0.3s var(--connection-ease),
+ border-color 0.3s,
+ background 0.3s;
+ animation: connection-rise 0.5s var(--connection-ease) backwards;
+ animation-delay: var(--stagger);
+}
+.social-home .social-people-chip:hover,
+.social-home .social-people-chip.is-active {
+ transform: translateY(-4px);
+ border-color: #4ecdc45c;
+ background: #4ecdc40b;
+}
+.social-home .social-people-chip-ava {
+ grid-row: 1 / 4;
+ width: 46px;
+ height: 46px;
+ margin: 0;
+}
+.social-home .social-people-chip-ava img {
+ width: 46px;
+ height: 46px;
+ border: 0;
+}
+.social-home .social-people-chip.is-online .social-people-chip-ava::before {
+ display: none;
+}
+.social-home .social-people-chip strong {
+ font-size: 12px;
+}
+.social-home .social-people-chip > em {
+ font-size: 10px;
+}
+.social-home .connection-member-role {
+ font-size: 9px;
+ color: var(--text-muted);
+}
+.social-home .social-chip-heart {
+ font-size: 11px;
+}
+.social-home .social-people-hint {
+ text-align: left;
+ font-size: 10px;
+ margin-top: 17px;
+ color: var(--text-muted);
+}
+.social-home .social-people-detail {
+ border-color: #4ecdc433;
+ border-radius: 14px;
+ background: #4ecdc408;
+ margin-top: 16px;
+}
+.social-home .social-people-detail strong span {
+ font-size: 11px;
+}
+.social-home .social-people-detail > div > p {
+ font-size: 12px;
+}
+
+.social-home .social-panel-grid {
+ gap: 16px;
+}
+.social-home .social-panel {
+ --panel-accent: var(--connection-mint);
+ position: relative;
+ padding: 24px;
+ border: 1px solid var(--connection-border);
+ border-radius: 16px;
+ background:
+ linear-gradient(
+ 140deg,
+ color-mix(in srgb, var(--panel-accent) 3%, transparent),
+ transparent 55%
+ ),
+ color-mix(in srgb, var(--connection-surface) 74%, transparent);
+ box-shadow: inset 0 1px 0 #ffffff03;
+ backdrop-filter: none;
+ overflow: hidden;
+ transition:
+ border-color 0.35s,
+ transform 0.35s var(--connection-ease),
+ box-shadow 0.35s;
+ animation: none;
+}
+.social-home .social-panel::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ pointer-events: none;
+ background: radial-gradient(
+ 400px circle at var(--spot-x, 50%) var(--spot-y, 0%),
+ color-mix(in srgb, var(--panel-accent) 8%, transparent),
+ transparent 70%
+ );
+ opacity: 0;
+ transition: opacity 0.3s;
+}
+.social-home .social-panel:hover::before {
+ opacity: 1;
+}
+.social-home .social-panel::after {
+ display: none;
+}
+.social-home .social-panel:hover {
+ transform: translateY(-5px);
+ border-color: color-mix(in srgb, var(--panel-accent) 38%, transparent);
+ box-shadow: 0 16px 35px #0001;
+}
+.social-home .social-panel h3 {
+ font-size: 17px;
+ line-height: 1.5;
+ margin-top: 5px;
+ letter-spacing: -0.02em;
+}
+.social-home .social-panel > p {
+ font-size: 11px;
+ line-height: 1.8;
+}
+.social-home .social-panel-meta {
+ gap: 8px;
+}
+.social-home .social-panel-meta > :is(span, time) {
+ border: 0;
+ border-radius: 5px;
+ padding: 3px 7px;
+ background: var(--bg-glass);
+ font-size: 9px;
+ font-weight: 500;
+}
+.social-home .social-panel-meta > span:first-child {
+ color: var(--panel-accent);
+}
+.social-home .social-panel-foot {
+ margin: 5px 0 12px;
+}
+.social-home .social-panel-foot span {
+ border: 0;
+ padding: 3px 7px;
+ background: var(--bg-glass);
+ border-radius: 5px;
+ font-size: 9px;
+ color: var(--text-secondary);
+}
+.social-home .social-panel .btn {
+ margin-top: 8px;
+ border: 1px solid var(--connection-border);
+ border-radius: 9px;
+ background: transparent;
+ color: var(--text-primary);
+ min-height: 40px;
+ font-size: 11px;
+ padding-inline: 17px;
+ box-shadow: none;
+}
+.social-home .social-panel .btn:hover {
+ color: var(--panel-accent);
+ border-color: var(--panel-accent);
+}
+.connection-meetup-art {
+ position: relative;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 10px;
+ min-height: 88px;
+ padding-bottom: 18px;
+ margin-bottom: 10px;
+ color: var(--connection-mint);
+}
+.connection-meetup-art.is-live {
+ flex-wrap: wrap;
+ min-height: 108px;
+}
+.connection-meetup-art.is-live .social-video-grid {
+ margin-left: auto;
+}
+.social-meetup-faces {
+ display: flex;
+ align-items: center;
+ gap: 0;
+ margin: 2px 0 8px;
+}
+.social-meetup-faces > * {
+ margin-left: -6px;
+ border: 2px solid color-mix(in srgb, var(--connection-surface, #12141a) 90%, #000);
+ border-radius: 999px;
+}
+.social-meetup-faces > *:first-child {
+ margin-left: 0;
+}
+.social-meetup-faces > em {
+ margin-left: 8px;
+ font-style: normal;
+ font-size: 11px;
+ font-weight: 600;
+ color: var(--panel-accent, var(--connection-mint));
+}
+.connection-meetup-number {
+ font-family: var(--font-display);
+ font-size: 62px;
+ font-weight: 600;
+ line-height: 1;
+ color: var(--connection-mint);
+ opacity: 0.18;
+ letter-spacing: -0.07em;
+}
+.connection-audio-bars {
+ display: flex;
+ align-items: center;
+ gap: 5px;
+ height: 65px;
+}
+.connection-audio-bars i {
+ display: block;
+ width: 3px;
+ border-radius: 2px;
+ background: linear-gradient(to top, #4ecdc41f, #4ecdc4a3);
+ transform-origin: center;
+ animation: connection-audio 1.55s ease-in-out infinite;
+ animation-play-state: running;
+}
+.social-panel:hover .connection-audio-bars i {
+ animation-duration: 1.05s;
+}
+.social-home #meetup .social-panel:nth-child(2) {
+ --panel-accent: var(--connection-coral);
+}
+.social-home #meetup .social-panel:nth-child(2) .connection-meetup-art {
+ color: var(--connection-coral);
+}
+.social-home #meetup .social-panel:nth-child(2) .connection-meetup-number {
+ color: var(--connection-coral);
+}
+.social-home #meetup .social-panel:nth-child(2) .connection-audio-bars i {
+ background: linear-gradient(to top, #ff6b6b1f, #ff6b6ba3);
+}
+.social-home .connection-cafe {
+ --panel-accent: var(--connection-yellow);
+}
+.social-home .connection-cafe-1 {
+ --panel-accent: var(--connection-mint);
+}
+.social-home .connection-cafe-2 {
+ --panel-accent: #7fb8e6;
+}
+.social-home .connection-cafe-3 {
+ --panel-accent: var(--connection-coral);
+}
+.social-home .connection-cafe .social-panel-ico {
+ position: relative;
+ display: grid;
+ place-items: center;
+ width: 60px;
+ height: 60px;
+ margin: 3px 0 15px;
+ border-radius: 18px;
+ background: color-mix(in srgb, var(--panel-accent) 7%, transparent);
+ color: var(--panel-accent);
+ border: 1px solid color-mix(in srgb, var(--panel-accent) 18%, transparent);
+ animation: none;
+}
+.social-home .connection-cafe .social-panel-ico::after {
+ content: "";
+ position: absolute;
+ height: 10px;
+ width: 20px;
+ border-left: 1px solid var(--panel-accent);
+ border-radius: 50%;
+ top: 4px;
+ left: 20px;
+ opacity: 0;
+ transition:
+ transform 0.4s,
+ opacity 0.4s;
+}
+.social-home .connection-cafe:hover .social-panel-ico::after {
+ opacity: 0.5;
+ transform: translateY(-7px);
+}
+.social-home .connection-cafe h3 {
+ font-size: 15px;
+}
+.social-home .connection-team {
+ padding: 21px;
+}
+.social-home .connection-team .social-panel-ico {
+ display: grid;
+ place-items: center;
+ width: 36px;
+ height: 36px;
+ border: 1px solid var(--connection-border);
+ border-radius: 10px;
+ font-size: 18px;
+ margin-bottom: 6px;
+}
+.social-home .connection-team h3 {
+ font-size: 14px;
+}
+
+.connection-invite {
+ position: relative;
+ z-index: 1;
+ display: flex;
+ align-items: center;
+ gap: 30px;
+ margin-block: 76px;
+ padding-block: 34px;
+}
+.connection-invite::before {
+ content: "";
+ position: absolute;
+ inset: 0 32px;
+ z-index: -1;
+ border: 1px solid var(--connection-border);
+ border-radius: 20px;
+ background: radial-gradient(ellipse at 0 100%, #4ecdc410, transparent 60%);
+}
+.connection-invite-orbit {
+ position: relative;
+ display: grid;
+ place-items: center;
+ width: 130px;
+ height: 130px;
+ margin-left: 22px;
+ color: var(--connection-mint);
+ flex-shrink: 0;
+}
+.connection-invite-orbit span {
+ position: absolute;
+ width: 105px;
+ height: 105px;
+ border: 1px solid #4ecdc430;
+ border-radius: 50%;
+ transform: rotateX(60deg) rotate(-30deg);
+}
+.connection-invite-orbit span:nth-child(2) {
+ transform: rotateY(60deg) rotate(30deg);
+ width: 90px;
+ height: 90px;
+}
+.connection-invite h2 {
+ font-size: 27px;
+ letter-spacing: -0.04em;
+ margin: 12px 0 10px;
+}
+.connection-invite p {
+ font-size: 11px;
+ color: var(--text-secondary);
+}
+.connection-invite .connection-join {
+ margin-left: auto;
+ margin-right: 36px;
+ flex-shrink: 0;
+}
+.social-home .footer {
+ position: relative;
+ z-index: 1;
+ background: transparent;
+ border-top: 1px solid var(--connection-border);
+ padding-top: 42px;
+}
+.social-home .footer-grid {
+ grid-template-columns: 2fr repeat(3, 1fr);
+ gap: 40px;
+}
+.social-home .footer-brand p {
+ font-size: 11px;
+ max-width: 240px;
+ line-height: 1.9;
+ margin-top: 15px;
+}
+.social-home .footer-links h4 {
+ font-size: 11px;
+}
+.social-home .footer-links a,
+.social-home .social-footer-link {
+ font-size: 10px;
+ min-height: 30px;
+}
+.social-home .footer-bottom {
+ padding-block: 20px;
+ margin-top: 30px;
+ font-size: 9px;
+}
+.social-home-footer-bottom {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px 20px;
+}
+.social-home-follow-row {
+ display: inline-flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 10px 14px;
+}
+.social-home-follow-row a {
+ font-size: 12px;
+ font-weight: 650;
+ color: var(--text-muted, #94a3b8);
+ text-decoration: none;
+ min-height: 36px;
+ display: inline-flex;
+ align-items: center;
+}
+.social-home-follow-row a:hover {
+ color: var(--text-primary, #f4f4f5);
+}
+.social-home-follow-x {
+ padding: 0 12px;
+ border-radius: 999px;
+ border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent);
+ color: #f59e0b !important;
+ background: color-mix(in srgb, #f59e0b 10%, transparent);
+ gap: 6px;
+}
+.social-home-follow-x:hover {
+ background: color-mix(in srgb, #f59e0b 18%, transparent);
+ color: #fbbf24 !important;
+}
+
+.connection-video-dialog {
+ position: fixed;
+ inset: 0;
+ width: min(900px, calc(100vw - 40px));
+ max-height: 90dvh;
+ margin: auto;
+ padding: 0;
+ border: 1px solid var(--connection-border);
+ border-radius: 20px;
+ background: var(--bg-secondary);
+ color: var(--text-primary);
+ box-shadow: 0 24px 100px #0008;
+}
+.connection-video-dialog::backdrop {
+ background: #03090edb;
+ backdrop-filter: blur(14px);
+}
+.connection-video-content {
+ padding: 18px;
+}
+.connection-video-content header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: 14px;
+}
+.connection-video-content h2 {
+ font-size: 14px;
+}
+.connection-video-content button {
+ width: 44px;
+ height: 44px;
+ display: grid;
+ place-items: center;
+ border: 0;
+ border-radius: 10px;
+ background: var(--bg-glass);
+ color: var(--text-primary);
+}
+.connection-video-content video {
+ display: block;
+ width: 100%;
+ max-height: 72dvh;
+ border-radius: 10px;
+ background: #000;
+}
+
+/* Light mode uses the exact same hierarchy with more contrast in fine details. */
+[data-theme="light"] .social-home {
+ --connection-surface: #fff;
+ --connection-border: rgba(21, 55, 67, 0.13);
+ --connection-mint: #137f78;
+ --connection-yellow: #9a7211;
+ --connection-coral: #d94e4e;
+ --text-muted: #64748b;
+}
+[data-theme="light"] .social-home .social-fx-orbs {
+ opacity: 0.08;
+}
+[data-theme="light"] .social-home #particle-canvas {
+ opacity: 0.15;
+}
+[data-theme="light"] .connection-person {
+ box-shadow: 0 12px 35px #1b454b0c;
+}
+[data-theme="light"] .connection-globe-lines {
+ opacity: 0.32;
+}
+[data-theme="light"] .connection-way-index {
+ opacity: 0.06;
+}
+
+@keyframes connection-rise {
+ from {
+ opacity: 0;
+ transform: translateY(20px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+@keyframes connection-orbit {
+ to {
+ transform: rotate(360deg);
+ }
+}
+@keyframes connection-flight {
+ to {
+ stroke-dashoffset: -260;
+ }
+}
+@keyframes connection-person-float {
+ 0%,
+ 100% {
+ transform: translateY(0) rotate(var(--node-rotate));
+ }
+ 50% {
+ transform: translateY(-9px) rotate(calc(var(--node-rotate) + 2deg));
+ }
+}
+@keyframes connection-breathe {
+ 0%,
+ 100% {
+ opacity: 0.65;
+ transform: scale(0.95);
+ }
+ 50% {
+ opacity: 1;
+ transform: scale(1.05);
+ }
+}
+@keyframes connection-nudge {
+ 0%,
+ 100% {
+ transform: translateY(0);
+ }
+ 50% {
+ transform: translateY(4px);
+ }
+}
+@keyframes connection-audio {
+ 0%,
+ 100% {
+ transform: scaleY(0.5);
+ }
+ 50% {
+ transform: scaleY(1);
+ }
+}
+
+@media (min-width: 901px) {
+ .social-home .mobile-menu-btn {
+ display: none;
+ }
+}
+@media (max-width: 1100px) {
+ .connection-hero-layout {
+ gap: 12px;
+ }
+ .connection-copy h1 {
+ font-size: 48px;
+ }
+ .connection-person {
+ min-width: 128px;
+ padding: 10px;
+ gap: 7px;
+ }
+ .connection-person img {
+ width: 35px;
+ height: 35px;
+ }
+ .connection-person strong {
+ gap: 7px;
+ }
+ .connection-way {
+ padding: 23px 17px;
+ gap: 12px;
+ }
+ .social-home .social-people-grid {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ }
+ .social-home .social-panel-grid-4 {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+ .connection-invite-orbit {
+ width: 100px;
+ }
+ .connection-invite h2 {
+ font-size: 24px;
+ }
+ .connection-invite .connection-join {
+ margin-right: 25px;
+ padding-inline: 17px;
+ gap: 12px;
+ }
+}
+@media (max-width: 900px) {
+ .social-home .navbar {
+ padding: 12px 20px;
+ height: 80px;
+ }
+ .social-home .nav-container {
+ gap: 10px;
+ padding-inline: 14px;
+ }
+ .social-home .nav-links:not(.open) {
+ display: none;
+ }
+ .social-home .nav-links.open {
+ display: flex;
+ position: fixed;
+ inset: 70px 0 auto;
+ width: 100%;
+ max-height: calc(100dvh - 100px);
+ overflow-y: auto;
+ padding: 20px;
+ border: 1px solid var(--connection-border);
+ border-radius: 16px;
+ background: var(--bg-primary);
+ gap: 8px;
+ transform: none;
+ flex-direction: column;
+ }
+ .social-home .nav-group-btn {
+ width: 100%;
+ justify-content: space-between;
+ }
+ .social-home .nav-group-panel {
+ position: static;
+ background: transparent;
+ box-shadow: none;
+ border: 0;
+ }
+ .social-home .nav-group-panel::before {
+ display: none;
+ }
+ .social-home .nav-group-panel a {
+ min-height: 44px;
+ }
+ .social-home .nav-mobile-extras {
+ display: flex;
+ gap: 10px;
+ padding-top: 12px;
+ border-top: 1px solid var(--connection-border);
+ }
+ .social-home .social-nav-desktop-cta {
+ display: none;
+ }
+ .social-home .mobile-menu-btn {
+ display: flex;
+ width: 44px;
+ height: 44px;
+ align-items: center;
+ justify-content: center;
+ padding: 10px;
+ }
+ .social-home .nav-actions {
+ gap: 3px;
+ }
+ .social-home .social-path {
+ top: auto;
+ }
+ .connection-copy h1 {
+ font-size: 40px;
+ }
+ .connection-hero-layout {
+ min-height: 440px;
+ }
+ .connection-description {
+ font-size: 12px;
+ }
+ .connection-actions {
+ gap: 15px;
+ }
+ .social-home .connection-join {
+ padding-inline: 17px;
+ gap: 12px;
+ font-size: 12px;
+ }
+ .connection-film {
+ font-size: 10px;
+ }
+ .connection-person {
+ min-width: 114px;
+ padding: 8px;
+ }
+ .connection-person strong {
+ font-size: 10px;
+ }
+ .connection-person small {
+ font-size: 8px;
+ }
+ .connection-person em {
+ font-size: 7px;
+ }
+ .connection-person img {
+ width: 30px;
+ height: 30px;
+ }
+ .connection-center strong {
+ font-size: 14px;
+ }
+ .connection-center-icon {
+ width: 44px;
+ height: 44px;
+ border-radius: 14px;
+ }
+ .connection-center-icon svg {
+ width: 22px;
+ }
+ .connection-wave {
+ font-size: 8px;
+ padding: 10px;
+ left: 38%;
+ }
+ .connection-coordinate {
+ display: none;
+ }
+ .connection-way {
+ gap: 10px;
+ padding: 20px 15px;
+ }
+ .connection-way-icon {
+ width: 35px;
+ height: 35px;
+ }
+ .connection-way-copy strong {
+ font-size: 12px;
+ }
+ .connection-way-copy small {
+ font-size: 8px;
+ }
+ .connection-way-arrow {
+ width: 15px;
+ }
+ .connection-invite {
+ flex-wrap: wrap;
+ gap: 15px;
+ padding: 26px 55px;
+ }
+ .connection-invite-orbit {
+ width: 85px;
+ height: 100px;
+ margin-left: 0;
+ }
+ .connection-invite .connection-join {
+ margin: 0 0 0 100px;
+ }
+ .social-home .footer-grid {
+ gap: 25px;
+ }
+}
+@media (max-width: 700px) {
+ .social-home .container {
+ padding-inline: 22px;
+ }
+ .connection-hero {
+ padding-top: 122px;
+ }
+ .connection-hero-layout {
+ grid-template-columns: 1fr;
+ gap: 35px;
+ }
+ .connection-copy {
+ padding-bottom: 0;
+ }
+ .connection-copy h1 {
+ font-size: clamp(39px, 8.7vw, 58px);
+ margin-top: 22px;
+ }
+ .connection-description {
+ font-size: 13px;
+ }
+ .connection-actions {
+ margin-top: 25px;
+ gap: 22px;
+ }
+ .social-home .connection-join {
+ min-height: 50px;
+ padding-inline: 21px;
+ gap: 18px;
+ }
+ .connection-film {
+ font-size: 11px;
+ }
+ .connection-proof {
+ margin-top: 27px;
+ }
+ .connection-universe {
+ max-width: 500px;
+ width: 100%;
+ margin: 0 auto;
+ }
+ .connection-orbit-scene {
+ aspect-ratio: 560 / 410;
+ }
+ .connection-universe-label,
+ .connection-universe-footer {
+ margin-inline: 6px;
+ }
+ .connection-person {
+ min-width: 124px;
+ padding: 9px 10px;
+ }
+ .connection-person img {
+ width: 34px;
+ height: 34px;
+ }
+ .connection-person strong {
+ font-size: 11px;
+ }
+ .connection-person small {
+ font-size: 8px;
+ }
+ .connection-center strong {
+ font-size: 15px;
+ }
+ .connection-center-icon {
+ width: 48px;
+ height: 48px;
+ }
+ .connection-wave {
+ bottom: 0;
+ left: 40%;
+ font-size: 9px;
+ }
+ .connection-universe-footer {
+ margin-top: 20px;
+ }
+ .connection-hero-bottom {
+ margin-top: 22px;
+ padding-bottom: 18px;
+ }
+ .connection-hero-bottom > span {
+ display: none;
+ }
+ .connection-ways {
+ margin-bottom: 24px;
+ }
+ .connection-way {
+ min-height: 64px;
+ padding: 14px;
+ gap: 12px;
+ }
+ .connection-way-icon {
+ width: 40px;
+ height: 40px;
+ }
+ .connection-way-copy strong {
+ font-size: 13px;
+ }
+ .connection-way-copy small {
+ font-size: 10px;
+ }
+ .connection-way-index {
+ top: -9px;
+ right: 45px;
+ }
+ .connection-way-arrow {
+ width: 19px;
+ }
+ .social-home .social-path-track {
+ gap: 0;
+ justify-content: space-between;
+ }
+ .social-home .social-path-track a {
+ font-size: 10px;
+ gap: 5px;
+ min-height: 52px;
+ padding-inline: 3px;
+ }
+ .social-home .social-path-emoji {
+ font-size: 11px;
+ }
+ .social-home .section {
+ padding-block: 48px;
+ scroll-margin-top: 142px;
+ }
+ .social-home .section-header {
+ margin-bottom: 24px;
+ }
+ .social-home .section-header .section-tag {
+ font-size: 8px;
+ margin-bottom: 14px;
+ }
+ .social-home .section-tag > span:last-child {
+ font-size: 8px;
+ letter-spacing: 0;
+ }
+ .social-home .section-header h2 {
+ font-size: 24px;
+ }
+ .social-home .section-header p {
+ font-size: 11px;
+ line-height: 1.8;
+ }
+ .social-home .social-people-grid {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 9px;
+ }
+ .social-home .social-people-chip {
+ padding: 14px 11px;
+ grid-template-columns: 38px 1fr;
+ gap: 1px 9px;
+ }
+ .social-home .social-people-chip-ava,
+ .social-home .social-people-chip-ava img {
+ width: 38px;
+ height: 38px;
+ }
+ .social-home .social-people-chip strong {
+ font-size: 11px;
+ }
+ .social-home .connection-member-role {
+ font-size: 8px;
+ }
+ .social-home .social-people-chip > em {
+ font-size: 9px;
+ }
+ .social-home .social-people-bar {
+ grid-template-columns: auto 1fr;
+ gap: 8px;
+ }
+ .social-home .social-people-bar .btn {
+ grid-column: 1 / -1;
+ justify-self: start;
+ margin-top: 4px;
+ }
+ .social-home .social-people-bar p {
+ font-size: 10px;
+ }
+ .social-home .social-people-bar-avs img {
+ width: 26px;
+ height: 26px;
+ }
+ .social-home .social-people-filter {
+ padding-inline: 12px;
+ font-size: 10px;
+ min-height: 44px;
+ }
+ .social-home .social-people-detail {
+ grid-template-columns: auto 1fr;
+ padding: 16px;
+ }
+ .social-home .social-people-detail-acts {
+ grid-column: 1 / -1;
+ }
+ .social-home .social-panel-grid-2,
+ .social-home .social-panel-grid-3 {
+ grid-template-columns: 1fr;
+ }
+ .social-home .social-panel-grid-4 {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 10px;
+ }
+ .social-home .social-panel {
+ padding: 20px;
+ }
+ .social-home .connection-cafe {
+ padding: 16px;
+ }
+ .social-home .connection-cafe h3 {
+ font-size: 13px;
+ }
+ .social-home .connection-cafe .social-panel-ico {
+ width: 48px;
+ height: 48px;
+ border-radius: 14px;
+ }
+ .social-home .social-panel-meta > :is(span, time) {
+ font-size: 8px;
+ padding: 3px 5px;
+ }
+ .social-home .social-panel .btn {
+ min-height: 44px;
+ }
+ .social-home .social-panel-foot {
+ gap: 4px;
+ }
+ .social-home .social-panel-foot span {
+ font-size: 8px;
+ padding: 3px 5px;
+ }
+ .connection-meetup-art {
+ min-height: 75px;
+ }
+ .connection-invite {
+ display: flex;
+ padding: 25px 44px;
+ margin-block: 40px;
+ gap: 15px;
+ }
+ .connection-invite::before {
+ inset-inline: 22px;
+ }
+ .connection-invite-orbit {
+ display: none;
+ }
+ .connection-invite h2 {
+ font-size: 24px;
+ }
+ .connection-invite p {
+ font-size: 11px;
+ line-height: 1.9;
+ }
+ .connection-invite .connection-join {
+ margin: 5px 0 0;
+ }
+ .social-home .footer-grid {
+ grid-template-columns: repeat(3, 1fr);
+ gap: 22px 16px;
+ }
+ .social-home .footer-brand {
+ grid-column: 1 / -1;
+ margin-bottom: 12px;
+ }
+ .social-home .footer-brand p {
+ max-width: none;
+ }
+ .social-home .footer-links a,
+ .social-home .social-footer-link {
+ min-height: 40px;
+ display: flex;
+ align-items: center;
+ }
+ .social-home .footer-bottom {
+ padding-block: 18px;
+ }
+ .connection-video-content {
+ padding: 12px;
+ }
+}
+@media (max-width: 360px) {
+ .social-home .container {
+ padding-inline: 16px;
+ }
+ .connection-copy h1 {
+ font-size: 37px;
+ }
+ .connection-actions {
+ gap: 12px;
+ }
+ .social-home .connection-join {
+ padding-inline: 16px;
+ gap: 10px;
+ }
+ .connection-person {
+ min-width: 110px;
+ padding: 8px;
+ gap: 5px;
+ }
+ .connection-person img {
+ width: 28px;
+ height: 28px;
+ }
+ .connection-person strong {
+ font-size: 10px;
+ }
+ .connection-wave {
+ left: 32%;
+ }
+ .connection-member-role {
+ display: none;
+ }
+ .social-home .social-people-chip-ava {
+ grid-row: 1 / 3;
+ }
+}
+@media (prefers-reduced-motion: reduce) {
+ html:has(.social-home) {
+ scroll-behavior: auto;
+ }
+ /* Only when immersive is off — otherwise motion.css owns FX. */
+ .social-experience[data-immersive="false"] .social-home *,
+ .social-experience[data-immersive="false"] .social-home *::before,
+ .social-experience[data-immersive="false"] .social-home *::after {
+ animation: none !important;
+ transition: none !important;
+ }
+ .social-experience[data-immersive="false"] .social-home .reveal {
+ opacity: 1;
+ transform: none;
+ }
+ .social-experience[data-immersive="false"] .connection-orbit-scene {
+ transform: none;
+ }
+ .social-experience[data-immersive="false"] .connection-person {
+ transform: rotate(var(--node-rotate));
+ }
+ .social-experience[data-immersive="false"] .social-home #particle-canvas {
+ display: none;
+ }
+}
+
+/* Readable supporting text and a clear keyboard path through the page. */
+.social-home .connection-description {
+ font-size: 15px;
+}
+.social-home .section-header p {
+ margin-inline: 0;
+ text-align: left;
+ font-size: 13px;
+}
+.social-home .social-people-filters {
+ justify-content: flex-start;
+}
+.social-home .social-people-chip strong {
+ font-size: 14px;
+}
+.social-home .connection-member-role {
+ font-size: 11px;
+}
+.social-home .social-people-chip > em {
+ font-size: 11px;
+}
+.social-home .social-panel > p {
+ font-size: 13px;
+}
+.social-home .social-panel-meta > :is(span, time),
+.social-home .social-panel-foot span {
+ font-size: 11px;
+}
+.social-home .social-panel .btn,
+.social-home .social-section-actions .btn {
+ font-size: 12px;
+}
+.social-home .social-people-filter {
+ font-size: 12px;
+}
+.social-home .connection-proof strong {
+ font-size: 12px;
+}
+.social-home .connection-proof div > span {
+ font-size: 10px;
+}
+.connection-skip-link {
+ position: fixed;
+ z-index: 1100;
+ left: 24px;
+ top: -80px;
+ padding: 12px 18px;
+ border-radius: 10px;
+ background: var(--connection-mint);
+ color: var(--bg-primary);
+ font-size: 14px;
+}
+.connection-skip-link:focus {
+ top: 20px;
+}
+.connection-scroll-progress {
+ position: fixed;
+ top: 0;
+ left: 0;
+ z-index: 1100;
+ height: 2px;
+ width: 100%;
+ transform: scaleX(0);
+ transform-origin: left;
+ background: linear-gradient(
+ 90deg,
+ var(--connection-coral),
+ var(--connection-yellow),
+ var(--connection-mint)
+ );
+ pointer-events: none;
+}
+@supports (animation-timeline: scroll()) {
+ .connection-scroll-progress {
+ animation: connection-reading linear;
+ animation-timeline: scroll(root);
+ }
+}
+@keyframes connection-reading {
+ to {
+ transform: scaleX(1);
+ }
+}
+
+/* Activate reveals only after the observer is attached; content stays visible without JS. */
+@media (prefers-reduced-motion: no-preference) {
+ .social-home[data-home-motion="ready"] .reveal {
+ transition:
+ opacity 0.65s var(--connection-ease),
+ transform 0.65s var(--connection-ease);
+ }
+ .social-home[data-home-motion="ready"] .reveal:not(.visible) {
+ opacity: 0;
+ transform: translateY(18px);
+ }
+ .social-home[data-home-motion="ready"] .reveal.visible {
+ opacity: 1;
+ transform: none;
+ }
+ .social-home .social-panel-fx.reveal.visible {
+ animation: connection-rise 0.65s var(--connection-ease) var(--stagger, 0ms)
+ backwards;
+ }
+ .social-home[data-home-motion="ready"] .social-panel.reveal.visible:hover {
+ transform: translateY(-5px);
+ }
+}
+
+/* Native dialog supplies focus trapping, Escape and an inert background. */
+.social-join-dialog.social-join-overlay {
+ width: 100%;
+ max-width: none;
+ height: 100dvh;
+ max-height: none;
+ margin: 0;
+ padding: 24px;
+ border: 0;
+ color: var(--text-primary);
+ background: transparent;
+ backdrop-filter: none;
+ align-items: center;
+}
+.social-join-dialog::backdrop {
+ background: #03090ecc;
+ backdrop-filter: blur(12px);
+}
+.social-join-dialog .social-join-sheet {
+ padding: 28px;
+ max-width: 440px;
+ border: 1px solid var(--connection-border, #8394a926);
+ border-radius: 22px;
+ background: var(--bg-secondary);
+ box-shadow: 0 25px 100px #0004;
+ animation: connection-rise 0.35s var(--connection-ease, ease) both;
+}
+.social-join-brand {
+ display: flex;
+ align-items: center;
+ gap: 9px;
+ color: var(--connection-mint, #4ecdc4);
+ font-size: 10px;
+ letter-spacing: 0.13em;
+}
+.social-join-dialog .social-join-close {
+ display: grid;
+ place-items: center;
+}
+.social-join-title {
+ font-size: 25px;
+ line-height: 1.5;
+ letter-spacing: -0.04em;
+ margin: 14px 0 12px;
+ font-weight: 700;
+}
+.social-join-dialog .social-muted {
+ font-size: 13px;
+ line-height: 1.9;
+}
+.social-join-dialog .social-join-field {
+ font-size: 12px;
+ margin-block: 24px 18px;
+}
+.social-join-dialog .social-join-field input {
+ min-height: 52px;
+ font-size: 16px;
+ background: var(--bg-primary);
+ border-color: var(--connection-border, #8394a926);
+}
+.social-join-dialog .social-join-field input[aria-invalid="true"] {
+ border-color: #ff6b6b;
+}
+.social-join-dialog .social-join-submit {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 18px;
+ min-height: 50px;
+ font-size: 13px;
+ border: 1px solid #ff8b7c;
+ border-radius: 11px;
+ color: #251414;
+ background: linear-gradient(120deg, #ff8c78, #ff6b6b);
+}
+.social-join-dialog .social-join-submit:disabled {
+ cursor: wait;
+ opacity: 0.65;
+}
+.social-join-privacy {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 6px;
+ margin-top: 16px;
+ font-size: 10px;
+ color: var(--text-muted);
+}
+@media (max-width: 700px) {
+ .social-home .connection-description {
+ font-size: 14px;
+ }
+ .social-home .section {
+ scroll-margin-top: 60px;
+ }
+ .social-home .social-people-chip strong {
+ font-size: 12px;
+ }
+ .social-home .connection-member-role {
+ font-size: 10px;
+ }
+ .social-home .social-people-chip > em {
+ font-size: 10px;
+ }
+ .social-home .social-panel > p {
+ font-size: 12px;
+ }
+ .social-home .social-panel-meta > :is(span, time),
+ .social-home .social-panel-foot span {
+ font-size: 10px;
+ }
+ .social-join-dialog.social-join-overlay {
+ align-items: flex-end;
+ padding: 0;
+ }
+ .social-join-dialog .social-join-sheet {
+ max-width: 100%;
+ border-radius: 24px 24px 0 0;
+ border-bottom: 0;
+ padding: 24px 24px max(26px, env(safe-area-inset-bottom));
+ }
+}
+@media (prefers-reduced-motion: reduce) {
+ .social-join-dialog .social-join-sheet {
+ animation: none;
+ }
+ .social-home .connection-scroll-progress {
+ animation: none;
+ }
+}
+@media (max-width: 900px) {
+ .social-home .nav-icon-btn {
+ width: 44px;
+ height: 44px;
+ }
+}
+@media (max-width: 360px) {
+ .social-home .nav-actions a.nav-icon-btn {
+ display: none;
+ }
+}
+
+/* —— Home UX boost: status / actions / skills / coffee —— */
+.connection-hero.is-tight .connection-brand-mark {
+ margin: 0 0 10px;
+ font-size: clamp(28px, 4vw, 40px);
+ font-weight: 800;
+ letter-spacing: -0.04em;
+ line-height: 1.1;
+ color: var(--text-primary);
+}
+.connection-hero.is-tight .connection-copy h1 {
+ margin-top: 12px;
+ font-size: clamp(28px, 3.4vw, 48px);
+}
+.connection-actions-tight {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+ align-items: center;
+}
+.connection-actions-tight .connection-join,
+.connection-actions-tight .connection-secondary,
+.connection-actions-tight .connection-film {
+ min-height: 44px;
+}
+.connection-actions-tight .connection-secondary {
+ border: 1px solid var(--connection-border);
+ border-radius: 999px;
+ padding-inline: 18px;
+}
+
+.hub-announce {
+ margin: 8px auto 0;
+ padding: 10px 14px;
+ border-radius: 12px;
+ border: 1px solid color-mix(in srgb, #f59e0b 34%, var(--connection-border));
+ background: color-mix(in srgb, #f59e0b 10%, transparent);
+ font-size: 13px;
+ color: var(--text-primary);
+}
+.hub-announce-link {
+ color: inherit;
+ text-decoration: none;
+ font-weight: 600;
+}
+.hub-announce-link:hover {
+ color: #f59e0b;
+}
+.hub-announce {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ justify-content: space-between;
+}
+.hub-announce-dismiss {
+ border: 0;
+ background: transparent;
+ color: var(--text-secondary);
+ font-size: 18px;
+ line-height: 1;
+ min-width: 32px;
+ min-height: 32px;
+ cursor: pointer;
+}
+
+.hub-offline-banner {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ padding: 8px 12px;
+ background: color-mix(in srgb, #f59e0b 16%, #0c0c0f);
+ color: #fbbf24;
+ font-size: 12px;
+}
+
+.hub-cmd-overlay {
+ position: fixed;
+ inset: 0;
+ z-index: 80;
+ display: grid;
+ place-items: start center;
+ padding: 12vh 16px 16px;
+ background: rgba(0, 0, 0, 0.55);
+ backdrop-filter: blur(4px);
+}
+.hub-cmd-panel,
+.hub-shortcuts-panel {
+ width: min(520px, 100%);
+ border-radius: 16px;
+ border: 1px solid var(--connection-border);
+ background: #121214;
+ padding: 12px;
+ box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
+}
+.hub-cmd-search {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 10px 12px;
+ border-radius: 12px;
+ border: 1px solid var(--connection-border);
+}
+.hub-cmd-search input {
+ flex: 1;
+ border: 0;
+ background: transparent;
+ color: var(--text-primary);
+ font: inherit;
+ outline: none;
+}
+.hub-cmd-search kbd,
+.hub-shortcuts-panel kbd {
+ font-size: 11px;
+ padding: 2px 6px;
+ border-radius: 6px;
+ border: 1px solid var(--connection-border);
+ color: var(--text-secondary);
+}
+.hub-cmd-list {
+ list-style: none;
+ margin: 8px 0 0;
+ padding: 0;
+ max-height: 50vh;
+ overflow: auto;
+}
+.hub-cmd-list button {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 2px;
+ padding: 10px 12px;
+ border: 0;
+ border-radius: 10px;
+ background: transparent;
+ color: inherit;
+ text-align: left;
+ cursor: pointer;
+}
+.hub-cmd-list button:hover {
+ background: color-mix(in srgb, #f59e0b 10%, transparent);
+}
+.hub-cmd-list span,
+.hub-cmd-empty {
+ font-size: 12px;
+ color: var(--text-secondary);
+}
+.hub-shortcuts-panel h2 {
+ margin: 4px 8px 12px;
+ font-size: 16px;
+}
+.hub-shortcuts-panel ul {
+ list-style: none;
+ margin: 0 0 12px;
+ padding: 0;
+}
+.hub-shortcuts-panel li {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ padding: 8px;
+ font-size: 13px;
+}
+
+.home-super-toolbar {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ justify-content: flex-end;
+ margin: 4px auto 10px;
+}
+.home-focus-toggle,
+.home-pulse-sound,
+.home-mute-trigger,
+.home-shortcuts-btn {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ min-height: 36px;
+ padding: 0 10px;
+ border-radius: 999px;
+ border: 1px solid var(--connection-border);
+ background: transparent;
+ color: var(--text-secondary);
+ font: inherit;
+ font-size: 12px;
+ cursor: pointer;
+}
+.home-mute-menu {
+ position: relative;
+}
+.home-mute-panel {
+ position: absolute;
+ right: 0;
+ top: calc(100% + 6px);
+ z-index: 20;
+ display: grid;
+ gap: 6px;
+ min-width: 160px;
+ padding: 10px;
+ border-radius: 12px;
+ border: 1px solid var(--connection-border);
+ background: #121214;
+ box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
+}
+.home-mute-panel label {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ font-size: 12px;
+ color: var(--text-secondary);
+}
+
+.home-today,
+.home-intent-quiz,
+.home-tag-cloud,
+.home-featured-city,
+.home-recent,
+.home-welcome-back,
+.home-new-joiners,
+.home-momentum,
+.home-share-invite,
+.home-digest {
+ margin: 0 auto 14px;
+}
+.home-today-card,
+.home-intent-quiz-card,
+.home-tag-cloud-card,
+.home-recent-card,
+.home-welcome-back-card,
+.home-new-joiners-card,
+.home-momentum-card,
+.home-share-invite-card,
+.home-digest-card,
+.home-featured-city-card {
+ padding: 14px 16px;
+ border-radius: 16px;
+ border: 1px solid var(--connection-border);
+ background: color-mix(in srgb, #4ecdc4 5%, transparent);
+}
+.home-today-card header,
+.home-momentum-meta,
+.home-share-invite-card,
+.home-digest-card {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+}
+.home-today-card ul {
+ list-style: none;
+ margin: 10px 0 0;
+ padding: 0;
+ display: grid;
+ gap: 8px;
+}
+.home-today-card li {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ font-size: 13px;
+}
+.home-today-card li.is-done {
+ color: #4ecdc4;
+}
+.home-intent-quiz-opts {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin: 10px 0;
+}
+.home-intent-quiz-opts button {
+ min-height: 40px;
+ padding: 0 12px;
+ border-radius: 999px;
+ border: 1px solid var(--connection-border);
+ background: transparent;
+ color: var(--text-secondary);
+ font: inherit;
+ cursor: pointer;
+}
+.home-intent-quiz-opts button.is-on {
+ background: #f59e0b;
+ border-color: #f59e0b;
+ color: #0c0c0f;
+}
+.home-tag-cloud-list,
+.home-recent-list,
+.home-new-joiners-list {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-top: 10px;
+}
+.home-tag-chip,
+.home-recent-chip {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ min-height: 34px;
+ padding: 0 10px;
+ border-radius: 999px;
+ border: 1px solid var(--connection-border);
+ text-decoration: none;
+ color: inherit;
+ font-size: calc(12px * var(--w, 1));
+}
+.home-tag-chip em {
+ font-style: normal;
+ color: #f59e0b;
+ font-size: 11px;
+}
+.home-featured-city-card {
+ display: grid;
+ gap: 6px;
+ text-decoration: none;
+ color: inherit;
+ background: linear-gradient(
+ 110deg,
+ color-mix(in srgb, #f59e0b 14%, transparent),
+ transparent 70%
+ );
+}
+.home-featured-city-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ color: #f59e0b;
+ font-size: 12px;
+ font-weight: 600;
+}
+.home-new-joiner {
+ display: inline-flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 4px;
+ width: 56px;
+}
+.home-new-joiner em {
+ font-style: normal;
+ font-size: 11px;
+ color: var(--text-secondary);
+ max-width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+.home-momentum-bar {
+ height: 8px;
+ margin: 10px 0 8px;
+ border-radius: 999px;
+ background: color-mix(in srgb, #4ecdc4 12%, transparent);
+ overflow: hidden;
+}
+.home-momentum-bar i {
+ display: block;
+ height: 100%;
+ background: linear-gradient(90deg, #4ecdc4, #f59e0b);
+}
+.home-momentum-meta span {
+ font-size: 20px;
+ font-weight: 700;
+ color: #f59e0b;
+}
+.home-tonight-card {
+ display: grid;
+ gap: 8px;
+}
+.home-tonight-main {
+ display: flex;
+ align-items: center;
+ gap: 14px;
+ text-decoration: none;
+ color: inherit;
+}
+.home-tonight-bookmark {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ align-self: flex-end;
+ min-height: 36px;
+ padding: 0 12px;
+ border-radius: 999px;
+ border: 1px solid var(--connection-border);
+ background: transparent;
+ color: var(--text-secondary);
+ font: inherit;
+ font-size: 12px;
+ cursor: pointer;
+}
+.home-tonight-bookmark.is-on {
+ color: #f59e0b;
+ border-color: color-mix(in srgb, #f59e0b 45%, transparent);
+}
+
+html[data-hub-focus="1"] .social-fx-orbs,
+html[data-hub-focus="1"] .social-fx-belt {
+ opacity: 0.25;
+}
+html[data-hub-focus="1"] .reveal {
+ animation: none !important;
+}
+
+.home-live-pulse {
+ margin: 6px auto 16px;
+}
+.home-live-card {
+ display: grid;
+ grid-template-columns: 1fr auto;
+ grid-template-areas:
+ "head acts"
+ "stack acts";
+ gap: 10px 16px;
+ align-items: center;
+ padding: 14px 16px;
+ border-radius: 16px;
+ border: 1px solid color-mix(in srgb, #4ecdc4 28%, var(--connection-border));
+ background: linear-gradient(
+ 120deg,
+ color-mix(in srgb, #4ecdc4 10%, transparent),
+ color-mix(in srgb, #0c0c0f 82%, transparent)
+ );
+}
+.home-live-card.is-soft {
+ border-color: color-mix(in srgb, #f59e0b 24%, var(--connection-border));
+ background: linear-gradient(
+ 120deg,
+ color-mix(in srgb, #f59e0b 8%, transparent),
+ color-mix(in srgb, #0c0c0f 82%, transparent)
+ );
+}
+.home-live-head {
+ grid-area: head;
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 8px 10px;
+ min-width: 0;
+}
+.home-live-head strong {
+ font-size: 14px;
+ color: var(--text-primary);
+}
+.home-live-head em {
+ font-style: normal;
+ font-size: 12px;
+ color: #4ecdc4;
+}
+.home-live-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: #4ecdc4;
+ box-shadow: 0 0 0 0 color-mix(in srgb, #4ecdc4 55%, transparent);
+ animation: home-live-pulse 1.8s ease-out infinite;
+}
+.home-live-card.is-soft .home-live-dot {
+ background: #f59e0b;
+ animation: none;
+ opacity: 0.85;
+}
+@keyframes home-live-pulse {
+ 0% {
+ box-shadow: 0 0 0 0 color-mix(in srgb, #4ecdc4 55%, transparent);
+ }
+ 70% {
+ box-shadow: 0 0 0 10px transparent;
+ }
+ 100% {
+ box-shadow: 0 0 0 0 transparent;
+ }
+}
+.home-live-stack {
+ grid-area: stack;
+ display: flex;
+ align-items: center;
+ min-height: 32px;
+}
+.home-live-stack > * {
+ margin-inline-end: -8px;
+ border: 2px solid #0c0c0f;
+ border-radius: 50%;
+}
+.home-live-empty {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ margin: 0;
+ font-size: 12px;
+ color: var(--text-secondary);
+}
+.home-live-acts {
+ grid-area: acts;
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ justify-content: flex-end;
+}
+.home-live-acts .btn {
+ min-height: 40px;
+}
+
+.home-tonight {
+ margin: 0 auto 18px;
+}
+.home-tonight-card {
+ display: flex;
+ align-items: center;
+ gap: 14px;
+ min-height: 64px;
+ padding: 14px 16px;
+ border-radius: 16px;
+ border: 1px solid color-mix(in srgb, #f59e0b 32%, var(--connection-border));
+ background: linear-gradient(
+ 105deg,
+ color-mix(in srgb, #f59e0b 14%, transparent),
+ transparent 72%
+ );
+ text-decoration: none;
+ color: inherit;
+ transition:
+ transform 0.25s ease,
+ border-color 0.25s ease;
+}
+.home-tonight-card:hover {
+ transform: translateY(-2px);
+ border-color: color-mix(in srgb, #f59e0b 55%, transparent);
+}
+.home-tonight-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ flex-shrink: 0;
+ min-height: 32px;
+ padding: 0 10px;
+ border-radius: 999px;
+ background: color-mix(in srgb, #f59e0b 18%, transparent);
+ color: #f59e0b;
+ font-size: 12px;
+ font-weight: 600;
+}
+.home-tonight-copy {
+ flex: 1;
+ min-width: 0;
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+}
+.home-tonight-copy strong {
+ font-size: 15px;
+ color: var(--text-primary);
+}
+.home-tonight-copy p {
+ margin: 0;
+ font-size: 12px;
+ color: var(--text-secondary);
+}
+.home-tonight-cta {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ flex-shrink: 0;
+ font-size: 13px;
+ font-weight: 600;
+ color: #f59e0b;
+}
+
+.social-date-hero-empty {
+ display: grid;
+ place-items: center;
+ gap: 8px;
+ min-height: 220px;
+ padding: 24px 18px;
+ border-radius: 18px;
+ border: 1px dashed color-mix(in srgb, #ff6b6b 40%, transparent);
+ background: color-mix(in srgb, #ff6b6b 6%, transparent);
+ text-align: center;
+ color: var(--text-secondary);
+}
+.social-date-hero-empty strong {
+ color: var(--text-primary);
+ font-size: 15px;
+}
+.social-date-hero-empty p {
+ margin: 0;
+ max-width: 18rem;
+ font-size: 13px;
+ line-height: 1.45;
+}
+
+.home-status-strip {
+ margin: 8px auto 18px;
+}
+.home-status-card {
+ display: grid;
+ grid-template-columns: auto 1fr auto;
+ grid-template-areas:
+ "ava meta steps"
+ "hint hint hint"
+ "acts acts acts";
+ gap: 10px 14px;
+ align-items: center;
+ padding: 14px 16px;
+ border: 1px solid color-mix(in srgb, #f59e0b 28%, var(--connection-border));
+ border-radius: 16px;
+ background: linear-gradient(
+ 120deg,
+ color-mix(in srgb, #f59e0b 8%, transparent),
+ color-mix(in srgb, #0c0c0f 80%, transparent)
+ );
+}
+.home-status-ava {
+ grid-area: ava;
+ display: grid;
+ place-items: center;
+ border-radius: 50%;
+ overflow: hidden;
+}
+.home-status-meta {
+ grid-area: meta;
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+ min-width: 0;
+}
+.home-status-meta strong {
+ font-size: 15px;
+ color: var(--text-primary);
+}
+.home-status-meta span {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ font-size: 12px;
+ color: var(--text-secondary);
+}
+.home-status-steps {
+ grid-area: steps;
+ display: flex;
+ gap: 8px;
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+.home-status-steps li {
+ display: inline-flex;
+ align-items: center;
+ gap: 5px;
+ min-height: 36px;
+ padding: 0 10px;
+ border-radius: 999px;
+ border: 1px solid var(--connection-border);
+ font-size: 12px;
+ color: var(--text-secondary);
+}
+.home-status-steps li.is-done {
+ border-color: color-mix(in srgb, #4ecdc4 50%, transparent);
+ color: #4ecdc4;
+}
+.home-status-steps li.is-pending {
+ border-color: color-mix(in srgb, #f59e0b 50%, transparent);
+ color: #f59e0b;
+}
+.home-status-steps li.is-todo {
+ opacity: 0.75;
+}
+.home-status-hint {
+ grid-area: hint;
+ margin: 0;
+ font-size: 13px;
+ color: var(--text-secondary);
+}
+.home-status-acts {
+ grid-area: acts;
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+}
+.home-status-acts .btn {
+ min-height: 44px;
+}
+
+.home-action-rail {
+ display: grid;
+ grid-template-columns: repeat(5, minmax(0, 1fr));
+ gap: 10px;
+ margin-bottom: 28px;
+}
+.home-action-chip {
+ --chip-accent: var(--connection-mint);
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ min-height: 52px;
+ padding: 10px 12px;
+ border-radius: 14px;
+ border: 1px solid var(--connection-border);
+ background: color-mix(in srgb, var(--chip-accent) 6%, transparent);
+ color: inherit;
+ text-decoration: none;
+ font-size: 13px;
+ font-weight: 600;
+ transition:
+ transform 0.25s ease,
+ border-color 0.25s ease;
+}
+.home-discover-more {
+ margin: 8px auto 20px;
+}
+.home-discover-more-toggle {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ min-height: 40px;
+ padding: 0 12px;
+ border-radius: 999px;
+ border: 1px solid var(--connection-border);
+ background: transparent;
+ color: var(--text-secondary);
+ font: inherit;
+ font-size: 13px;
+ cursor: pointer;
+}
+.home-discover-more-toggle.is-open svg {
+ transform: rotate(180deg);
+}
+.home-discover-more-body {
+ margin-top: 12px;
+}
+.home-today-card.is-mini,
+.home-intent-quiz-card.is-mini,
+.home-welcome-back-card.is-mini,
+.home-share-invite-card.is-mini,
+.home-digest-card.is-mini,
+.home-featured-city-card.is-mini,
+.home-new-joiners-card.is-mini {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ padding: 10px 12px;
+}
+.home-today-card header {
+ display: none;
+}
+.home-action-chip.coral {
+ --chip-accent: var(--connection-coral);
+}
+.home-action-chip.yellow {
+ --chip-accent: var(--connection-yellow);
+}
+.home-action-chip.amber {
+ --chip-accent: #f59e0b;
+}
+.home-action-chip:hover {
+ transform: translateY(-2px);
+ border-color: color-mix(in srgb, var(--chip-accent) 45%, transparent);
+}
+.home-action-chip.is-soft-locked {
+ opacity: 0.88;
+}
+.home-action-ico {
+ display: grid;
+ place-items: center;
+ width: 40px;
+ height: 40px;
+ border-radius: 12px;
+ background: color-mix(in srgb, var(--chip-accent) 16%, transparent);
+ color: var(--chip-accent);
+ flex-shrink: 0;
+}
+.home-action-copy {
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+ min-width: 0;
+}
+.home-action-copy strong {
+ font-size: 13px;
+ color: var(--text-primary);
+}
+.home-action-copy small {
+ font-size: 11px;
+ color: var(--text-secondary);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.home-skills-grid {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 12px;
+}
+.home-skill-card {
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+ min-height: 120px;
+ padding: 14px;
+ border-radius: 14px;
+ border: 1px solid var(--connection-border);
+ background: color-mix(in srgb, #f59e0b 5%, transparent);
+ color: inherit;
+ text-decoration: none;
+}
+.home-skill-card:hover {
+ border-color: color-mix(in srgb, #f59e0b 40%, transparent);
+}
+.home-skill-city {
+ font-size: 11px;
+ color: #f59e0b;
+ letter-spacing: 0.04em;
+}
+.home-skill-card strong {
+ font-size: 14px;
+}
+.home-skill-card p {
+ margin: 0;
+ font-size: 12px;
+ color: var(--text-secondary);
+ line-height: 1.45;
+}
+.home-skill-card em {
+ font-style: normal;
+ color: var(--text-primary);
+ opacity: 0.7;
+}
+
+.home-coffee-on-page {
+ padding-top: 28px;
+ padding-bottom: 4px;
+}
+.home-coffee-city-rail {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ align-items: center;
+ margin: 0 0 14px;
+}
+.home-coffee-city-chip {
+ min-height: 40px;
+ padding: 0 14px;
+ border-radius: 999px;
+ border: 1px solid var(--connection-border);
+ background: transparent;
+ color: var(--text-secondary);
+ font: inherit;
+ font-size: 13px;
+ font-weight: 600;
+ cursor: pointer;
+}
+.home-coffee-city-chip.is-on {
+ color: #0c0c0f;
+ background: #f59e0b;
+ border-color: #f59e0b;
+}
+.home-coffee-city-more {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ min-height: 40px;
+ padding: 0 8px;
+ color: #f59e0b;
+ font-size: 13px;
+ font-weight: 600;
+ text-decoration: none;
+}
+.home-coffee-city-stage {
+ position: relative;
+ overflow: hidden;
+ min-height: 180px;
+ margin-bottom: 14px;
+ border-radius: 18px;
+ border: 1px solid var(--connection-border);
+ background: #121214 center / cover no-repeat;
+}
+.home-coffee-city-stage-veil {
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(
+ 100deg,
+ rgba(12, 12, 15, 0.88) 12%,
+ rgba(12, 12, 15, 0.35) 70%,
+ rgba(12, 12, 15, 0.55)
+ );
+}
+.home-coffee-city-stage-copy {
+ position: relative;
+ z-index: 1;
+ display: grid;
+ gap: 6px;
+ padding: 18px 16px;
+ color: #f4f4f5;
+ max-width: 28rem;
+}
+.home-coffee-city-stage-copy p {
+ margin: 0;
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ font-size: 12px;
+ color: rgba(244, 244, 245, 0.7);
+}
+.home-coffee-city-stage-copy strong {
+ font-family: inherit;
+ font-size: clamp(1.25rem, 3vw, 1.6rem);
+ letter-spacing: -0.03em;
+}
+.home-coffee-city-stage-copy em {
+ font-style: normal;
+ font-size: 13px;
+ color: #f59e0b;
+}
+.home-coffee-city-blurb {
+ font-size: 14px !important;
+ line-height: 1.45;
+ color: rgba(244, 244, 245, 0.78) !important;
+}
+.home-coffee-city-acts {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-top: 6px;
+}
+.home-coffee-card {
+ display: flex;
+ align-items: center;
+ gap: 16px;
+ padding: 18px;
+ border-radius: 16px;
+ border: 1px solid color-mix(in srgb, #f59e0b 35%, var(--connection-border));
+ background: linear-gradient(
+ 110deg,
+ color-mix(in srgb, #f59e0b 12%, transparent),
+ transparent 70%
+ );
+ text-decoration: none;
+ color: inherit;
+}
+.home-coffee-copy {
+ flex: 1;
+ min-width: 0;
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+}
+.home-coffee-copy em {
+ font-style: normal;
+ font-size: 11px;
+ color: #f59e0b;
+ letter-spacing: 0.06em;
+}
+.home-coffee-copy strong {
+ font-size: 16px;
+}
+.home-coffee-copy p {
+ margin: 0;
+ font-size: 13px;
+ color: var(--text-secondary);
+}
+.home-coffee-lock {
+ font-size: 12px;
+ color: #f59e0b;
+}
+.home-coffee-card .btn {
+ min-height: 44px;
+ flex-shrink: 0;
+}
+
+.home-wrapped-strip {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ margin: 18px 0 8px;
+ padding: 12px 14px;
+ border-radius: 12px;
+ border: 1px dashed color-mix(in srgb, #f59e0b 35%, transparent);
+ color: var(--text-secondary);
+ font-size: 13px;
+}
+.home-wrapped-strip .btn {
+ min-height: 40px;
+}
+
+.social-people-empty {
+ padding: 28px 16px;
+ text-align: center;
+ border: 1px dashed var(--connection-border);
+ border-radius: 14px;
+ margin-bottom: 12px;
+}
+.social-people-empty p {
+ margin: 0 0 14px;
+ color: var(--text-secondary);
+}
+.social-people-empty .social-section-actions {
+ justify-content: center;
+}
+
+.home-section-empty {
+ display: grid;
+ place-items: center;
+ gap: 8px;
+ padding: 28px 18px;
+ margin-bottom: 8px;
+ border-radius: 16px;
+ border: 1px dashed color-mix(in srgb, #4ecdc4 35%, var(--connection-border));
+ background: color-mix(in srgb, #4ecdc4 5%, transparent);
+ text-align: center;
+ color: var(--text-secondary);
+}
+.home-section-empty strong {
+ color: var(--text-primary);
+ font-size: 15px;
+}
+.home-section-empty p {
+ margin: 0;
+ max-width: 22rem;
+ font-size: 13px;
+ line-height: 1.45;
+}
+.home-section-empty .social-section-actions {
+ justify-content: center;
+ margin-top: 6px;
+}
+
+@media (max-width: 980px) {
+ .home-action-rail {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ }
+ .home-skills-grid {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+ .home-status-card {
+ grid-template-columns: auto 1fr;
+ grid-template-areas:
+ "ava meta"
+ "steps steps"
+ "hint hint"
+ "acts acts";
+ }
+ .home-live-card {
+ grid-template-columns: 1fr;
+ grid-template-areas:
+ "head"
+ "stack"
+ "acts";
+ }
+ .home-live-acts {
+ justify-content: flex-start;
+ }
+}
+@media (max-width: 640px) {
+ .home-action-rail {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+ .home-action-chip {
+ min-height: 56px;
+ }
+ .home-skills-grid {
+ grid-template-columns: 1fr;
+ }
+ .home-coffee-card {
+ flex-direction: column;
+ align-items: flex-start;
+ }
+ .home-coffee-card .btn {
+ width: 100%;
+ justify-content: center;
+ }
+ .home-wrapped-strip {
+ flex-direction: column;
+ align-items: stretch;
+ }
+ .home-tonight-card {
+ flex-wrap: wrap;
+ }
+ .home-tonight-cta {
+ width: 100%;
+ justify-content: flex-end;
+ }
+ .home-live-acts .btn {
+ flex: 1;
+ justify-content: center;
+ min-height: 44px;
+ }
+}
+
+/* —— 五入口落地页共用顶栏 —— */
+.social-date-way-chrome,
+.social-chat-way-chrome {
+ margin-top: 10px;
+}
+.social-date-way-chrome .way-dest-chrome,
+.social-chat-way-chrome .way-dest-chrome {
+ margin-bottom: 0;
+}
+.way-dest-chrome {
+ display: grid;
+ gap: 10px;
+ margin: 0 0 16px;
+ padding: 12px 14px;
+ border: 1px solid var(--connection-border, rgba(255, 255, 255, 0.1));
+ border-radius: 16px;
+ background: color-mix(in srgb, #4ecdc4 4%, transparent);
+}
+.way-dest-presence {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 8px 10px;
+}
+.way-dest-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: #4ecdc4;
+ box-shadow: 0 0 0 4px color-mix(in srgb, #4ecdc4 18%, transparent);
+}
+.way-dest-dot.is-soft {
+ background: #94a3b8;
+ box-shadow: none;
+}
+.way-dest-presence strong {
+ font-size: 13px;
+ font-weight: 650;
+}
+.way-dest-presence em {
+ font-size: 11px;
+ font-style: normal;
+ color: var(--text-muted);
+}
+.way-dest-stack {
+ display: flex;
+ margin-left: 4px;
+}
+.way-dest-stack > * {
+ margin-left: -8px;
+ border: 1.5px solid #0c0c0f;
+ border-radius: 50%;
+}
+.way-dest-stack > *:first-child {
+ margin-left: 0;
+}
+.way-dest-meta {
+ margin-left: auto;
+ font-size: 12px;
+ color: var(--text-muted);
+}
+.way-dest-rail {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+}
+.way-dest-chip {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ min-height: 36px;
+ padding: 6px 12px;
+ border-radius: 999px;
+ border: 1px solid var(--connection-border, rgba(255, 255, 255, 0.12));
+ font-size: 12px;
+ color: var(--text-muted);
+ background: transparent;
+ transition:
+ border-color 0.2s,
+ color 0.2s,
+ background 0.2s;
+}
+.way-dest-chip:hover,
+.way-dest-chip.is-on {
+ color: #4ecdc4;
+ border-color: color-mix(in srgb, #4ecdc4 40%, transparent);
+ background: color-mix(in srgb, #4ecdc4 8%, transparent);
+}
+.way-dest-chip.is-soft {
+ color: #f59e0b;
+ border-color: color-mix(in srgb, #f59e0b 35%, transparent);
+}
+.way-create-hub {
+ display: grid;
+ gap: 10px;
+ margin: 0 0 18px;
+}
+.way-create-hub-grid {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 10px;
+}
+.way-create-card {
+ display: grid;
+ gap: 6px;
+ padding: 14px 14px 12px;
+ border-radius: 14px;
+ border: 1px solid var(--connection-border, rgba(255, 255, 255, 0.1));
+ background: linear-gradient(
+ 140deg,
+ color-mix(in srgb, #f59e0b 8%, transparent),
+ transparent 70%
+ );
+ min-height: 88px;
+}
+.way-create-card strong {
+ font-size: 14px;
+}
+.way-create-card span {
+ font-size: 11px;
+ color: var(--text-muted);
+}
+.way-create-card em {
+ font-style: normal;
+ font-size: 12px;
+ color: #f59e0b;
+}
+.meetup-next-card {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 12px 16px;
+ margin: 0 0 16px;
+ padding: 14px 16px;
+ border-radius: 16px;
+ border: 1px solid color-mix(in srgb, #4ecdc4 35%, transparent);
+ background: linear-gradient(
+ 120deg,
+ color-mix(in srgb, #4ecdc4 10%, transparent),
+ transparent 65%
+ );
+}
+.meetup-next-card strong {
+ display: block;
+ font-size: 15px;
+}
+.meetup-next-card p {
+ margin: 4px 0 0;
+ font-size: 12px;
+ color: var(--text-muted);
+}
+.meetup-next-card .social-btn {
+ margin-left: auto;
+}
+@media (max-width: 720px) {
+ .way-create-hub-grid {
+ grid-template-columns: 1fr;
+ }
+ .way-dest-meta {
+ margin-left: 0;
+ width: 100%;
+ }
+ .meetup-next-card .social-btn {
+ margin-left: 0;
+ width: 100%;
+ justify-content: center;
+ min-height: 44px;
+ }
+}
diff --git a/src/modules/hub/app/interaction.css b/src/modules/hub/app/interaction.css
new file mode 100644
index 0000000..1b65273
--- /dev/null
+++ b/src/modules/hub/app/interaction.css
@@ -0,0 +1,2104 @@
+/* Social interaction surfaces — conversations, shared plans and invitations. */
+.social-room-heading {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 15px;
+ padding: 26px 0;
+ color: var(--text-muted);
+ font-size: 10px;
+}
+.social-room-heading > a {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ font-size: 12px;
+ color: var(--text-secondary);
+}
+.social-room-heading > span {
+ font-size: 9px;
+ letter-spacing: 0.1em;
+}
+.social-room-heading a:hover {
+ color: var(--sx-mint);
+}
+.social-room-channels {
+ display: flex;
+ gap: 8px;
+ overflow-x: auto;
+ padding: 0 0 18px;
+ scrollbar-width: none;
+}
+.social-room-channels > span {
+ display: none;
+}
+.social-room-channels a {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ min-height: 38px;
+ white-space: nowrap;
+ padding: 8px 14px;
+ border: 1px solid var(--sx-line);
+ border-radius: 9px;
+ color: var(--text-secondary);
+ font-size: 11px;
+}
+.social-room-channels a[aria-current="page"] {
+ color: var(--sx-mint);
+ background: #4ecdc40e;
+ border-color: #4ecdc43b;
+}
+.social-chat-layout {
+ min-width: 0;
+}
+.social-conversation {
+ position: relative;
+ overflow: hidden;
+ border: 1px solid var(--sx-line);
+ border-radius: 19px;
+ background: var(--sx-surface);
+}
+.social-conversation-top {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ padding: 18px 23px;
+ border-bottom: 1px solid var(--sx-line);
+}
+.social-conversation-top > div {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+}
+.social-conversation-top > div > svg {
+ color: var(--sx-mint);
+}
+.social-conversation-top strong {
+ font-size: 16px;
+ font-weight: 650;
+}
+.social-conversation-top p {
+ font-size: 11px;
+ color: var(--text-muted);
+ margin-top: 4px;
+}
+.social-connection-status {
+ display: flex;
+ align-items: center;
+ gap: 7px;
+ padding: 9px 23px;
+ color: var(--sx-mint);
+ font-size: 10px;
+ background: #4ecdc405;
+}
+.social-connection-status > span {
+ margin-left: auto;
+ color: var(--text-muted);
+}
+.social-connection-status.offline {
+ color: var(--sx-gold);
+ background: #ffe19505;
+}
+.social-thread-wrap {
+ position: relative;
+}
+.social-workspace .social-chat-thread {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ height: clamp(300px, 43dvh, 550px);
+ min-height: 280px;
+ max-height: none;
+ overflow-y: auto;
+ overscroll-behavior: contain;
+ scrollbar-width: none;
+ padding: 16px 18px;
+ margin: 0;
+ background: radial-gradient(ellipse at 85% 0%, #4ecdc405, transparent 60%);
+}
+.social-workspace .social-chat-thread::-webkit-scrollbar {
+ width: 0;
+ height: 0;
+ display: none;
+}
+.social-chat-live .social-chat-thread,
+.social-chat-immersive .social-chat-thread {
+ height: auto !important;
+ min-height: 0 !important;
+ max-height: none !important;
+ flex: 1 1 auto;
+}
+.social-workspace .social-chat-thread::before {
+ content: "";
+ flex: 1 1 auto;
+ min-height: 0;
+ pointer-events: none;
+}
+.social-msg-block {
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ align-items: stretch;
+}
+.social-msg-block .social-day-sep,
+.social-msg-block .social-unread-sep {
+ align-self: stretch;
+}
+.social-message {
+ display: flex;
+ align-items: flex-start;
+ gap: 11px;
+ max-width: min(85%, 520px);
+ width: fit-content;
+ margin-right: auto;
+ animation: sx-arrive 0.3s var(--sx-ease) backwards;
+}
+.social-message-avatar {
+ display: grid;
+ place-items: center;
+ width: 33px;
+ height: 33px;
+ flex-shrink: 0;
+ overflow: hidden;
+ border: 1px solid #4ecdc42b;
+ border-radius: 11px;
+ color: var(--sx-mint);
+ background: #4ecdc40b;
+ font-size: 13px;
+}
+.social-message-avatar img {
+ width: 100% !important;
+ height: 100% !important;
+ object-fit: cover;
+ border-radius: inherit;
+}
+.social-message-body {
+ min-width: 0;
+}
+.social-message-body header {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ margin-bottom: 7px;
+}
+.social-message-body header strong {
+ font-size: 11px;
+ font-weight: 600;
+}
+.social-message-body header time {
+ font-size: 9px;
+ color: var(--text-muted);
+}
+.social-message-body header > span {
+ font-size: 8px;
+ color: var(--text-muted);
+ border: 1px solid var(--sx-line);
+ border-radius: 4px;
+ padding: 1px 4px;
+}
+.social-message-body > p,
+.social-message-body > .social-msg-bubble {
+ white-space: pre-wrap;
+ overflow-wrap: anywhere;
+ padding: 12px 16px;
+ background: var(--bg-glass);
+ border: 1px solid var(--sx-line);
+ border-radius: 0 13px 13px 13px;
+ font-size: 13px;
+ line-height: 1.8;
+}
+/* 自己的发言贴最右 */
+.social-message.mine {
+ margin-left: auto;
+ margin-right: 0;
+ flex-direction: row-reverse;
+ align-self: flex-end;
+}
+.social-message.mine .social-message-avatar {
+ color: var(--sx-coral);
+ border-color: #ff7b753b;
+ background: #ff7b750b;
+}
+.social-message.mine header {
+ justify-content: flex-end;
+ flex-direction: row-reverse;
+}
+.social-message.mine .social-message-body {
+ text-align: right;
+}
+.social-message.mine .social-message-body > p,
+.social-message.mine .social-message-body > .social-msg-bubble {
+ border-color: #4ecdc42b;
+ background: #4ecdc40b;
+ border-radius: 13px 0 13px 13px;
+ text-align: left;
+}
+.social-message.is-stacked {
+ margin-top: 2px;
+}
+.social-message.is-stacked .social-message-avatar {
+ visibility: hidden;
+}
+.social-message.is-stacked .social-message-body > header {
+ display: none;
+}
+.social-message-tools {
+ display: flex;
+ gap: 10px;
+ align-items: center;
+ margin-top: 6px;
+}
+.social-message-tools button {
+ display: flex;
+ align-items: center;
+ gap: 4px;
+ border: 0;
+ background: none;
+ padding: 4px 0;
+ color: var(--text-muted);
+ font-size: 9px;
+ min-height: 26px;
+}
+.social-message-tools button:hover {
+ color: var(--sx-mint);
+}
+.social-message-tools .liked {
+ color: var(--sx-coral);
+}
+.social-message-tools > span {
+ display: flex;
+ align-items: center;
+ gap: 3px;
+ font-size: 8px;
+ color: var(--text-muted);
+}
+.social-message-tools .social-local-message {
+ color: var(--sx-gold);
+ font-weight: 600;
+}
+.social-message.is-fail .social-message-body > p,
+.social-message.is-fail .social-message-body > .social-msg-bubble {
+ opacity: 0.72;
+}
+.social-msg-fail {
+ color: var(--text-muted);
+ font-size: 10px;
+}
+.social-chat-typing-label {
+ margin: 0 12px 6px;
+ font-size: 12px;
+ color: var(--text-muted);
+}
+.social-chat-search {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ margin: 0 12px 8px;
+ padding: 8px 10px;
+ border: 1px solid var(--sx-line);
+ border-radius: 12px;
+ background: #ffffff06;
+}
+.social-chat-search input {
+ flex: 1;
+ border: 0;
+ background: transparent;
+ color: var(--text-primary);
+ outline: none;
+ font-size: 13px;
+}
+.social-search-hits {
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+ max-height: 140px;
+ overflow: auto;
+ margin: 0 12px 8px;
+}
+.social-search-hits button {
+ text-align: left;
+ border: 0;
+ background: #ffffff08;
+ color: var(--text-primary);
+ padding: 8px 10px;
+ border-radius: 10px;
+ font-size: 12px;
+}
+.social-pinned-strip {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin: 0 12px 8px;
+}
+.social-pinned-strip button {
+ border: 1px solid var(--sx-line);
+ background: #ffffff08;
+ color: var(--text-primary);
+ border-radius: 999px;
+ padding: 6px 10px;
+ font-size: 11px;
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+}
+.social-message.is-flash {
+ animation: sx-flash 1.1s ease;
+}
+@keyframes sx-flash {
+ 0%,
+ 100% {
+ background: transparent;
+ }
+ 40% {
+ background: color-mix(in srgb, var(--sx-mint) 18%, transparent);
+ }
+}
+.social-msg-quote {
+ display: block;
+ width: 100%;
+ text-align: left;
+ border: 0;
+ border-left: 2px solid var(--sx-mint);
+ background: #ffffff08;
+ color: var(--text-muted);
+ padding: 6px 8px;
+ margin: 0 0 6px;
+ border-radius: 0 8px 8px 0;
+ font-size: 11px;
+}
+.social-msg-quote strong {
+ display: block;
+ color: var(--sx-mint);
+ margin-bottom: 2px;
+}
+.social-msg-recalled {
+ font-style: italic;
+ color: var(--text-muted) !important;
+ opacity: 0.75;
+}
+.social-msg-atts {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ margin-top: 6px;
+}
+.social-msg-att-image img,
+.social-msg-att-video {
+ max-width: min(280px, 70vw);
+ max-height: 220px;
+ border-radius: 12px;
+ display: block;
+}
+.social-msg-att-file {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ padding: 8px 10px;
+ border-radius: 10px;
+ background: #ffffff0c;
+ color: var(--sx-mint);
+ font-size: 12px;
+}
+.social-msg-reactions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 4px;
+ margin-top: 6px;
+}
+.social-message.mine .social-msg-reactions {
+ justify-content: flex-end;
+}
+.social-message.mine .social-msg-reactions {
+ justify-content: flex-end;
+}
+.social-msg-reactions button {
+ border: 1px solid var(--sx-line);
+ background: #ffffff08;
+ border-radius: 999px;
+ padding: 2px 8px;
+ font-size: 12px;
+ min-height: 28px;
+}
+.social-msg-reactions button.is-mine {
+ border-color: var(--sx-mint);
+}
+/* Element 风格:悬停浮出操作条,不占文档流(避免空白大框) */
+.social-message {
+ position: relative;
+}
+.social-msg-actionbar {
+ position: absolute;
+ top: -6px;
+ right: 8px;
+ z-index: 4;
+ display: inline-flex;
+ gap: 2px;
+ margin: 0;
+ padding: 3px;
+ border: 1px solid var(--sx-line);
+ border-radius: 10px;
+ background: color-mix(in srgb, var(--bg-secondary) 94%, #000);
+ box-shadow: 0 8px 24px #0006;
+ opacity: 0;
+ pointer-events: none;
+ transform: translateY(4px);
+ transition: opacity 0.12s ease, transform 0.12s ease;
+}
+.social-message.mine .social-msg-actionbar {
+ right: auto;
+ left: 8px;
+ left: 8px;
+}
+.social-message:hover .social-msg-actionbar,
+.social-message:focus-within .social-msg-actionbar,
+.social-message.is-active .social-msg-actionbar,
+.social-msg-actionbar.is-open,
+.social-msg-actionbar:focus-within {
+ opacity: 1;
+ pointer-events: auto;
+ transform: translateY(0);
+}
+@media (hover: none) {
+ /* 触屏:默认隐藏,点消息再出操作条,避免刷屏噪音 */
+ .social-msg-actionbar {
+ position: absolute;
+ opacity: 0;
+ pointer-events: none;
+ transform: translateY(4px);
+ margin-top: 0;
+ }
+ .social-message.is-active .social-msg-actionbar,
+ .social-msg-actionbar.is-open,
+ .social-msg-actionbar:focus-within {
+ opacity: 1;
+ pointer-events: auto;
+ transform: translateY(0);
+ }
+}
+.social-msg-actionbar > button {
+ border: 0;
+ background: transparent;
+ color: var(--text-muted);
+ width: 34px;
+ height: 34px;
+ min-width: 34px;
+ min-height: 34px;
+ display: grid;
+ place-items: center;
+ border-radius: 8px;
+}
+.social-msg-actionbar > button:hover {
+ color: var(--sx-mint);
+ background: #ffffff0a;
+}
+.social-hide-local {
+ display: none !important;
+}
+.social-chat-search {
+ flex: 0 0 auto;
+}
+.social-react-picker,
+.social-msg-overflow {
+ position: absolute;
+ z-index: 5;
+ top: calc(100% + 4px);
+ left: 0;
+ display: flex;
+ flex-wrap: wrap;
+ gap: 4px;
+ padding: 6px;
+ border-radius: 12px;
+ border: 1px solid var(--sx-line);
+ background: var(--bg-secondary);
+ box-shadow: 0 10px 30px #0006;
+ min-width: 160px;
+}
+.social-msg-overflow {
+ flex-direction: column;
+}
+.social-msg-overflow button,
+.social-react-picker button {
+ border: 0;
+ background: transparent;
+ color: var(--text-primary);
+ text-align: left;
+ padding: 6px 8px;
+ border-radius: 8px;
+ font-size: 12px;
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ min-height: 32px;
+}
+.social-msg-overflow button.danger {
+ color: #f87171;
+}
+.social-pending-atts {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin-bottom: 8px;
+}
+.social-pending-atts span {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ padding: 4px 8px;
+ border-radius: 999px;
+ background: #ffffff0c;
+ font-size: 11px;
+}
+.social-pending-atts button {
+ border: 0;
+ background: transparent;
+ color: var(--text-muted);
+}
+.social-hide-local {
+ opacity: 0.55;
+ font-size: 10px !important;
+}
+.social-chat-top-tools {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+}
+.social-reply-chip.edit {
+ border-color: var(--sx-line);
+}
+.social-conversation.is-drop {
+ outline: 2px dashed var(--sx-mint);
+ outline-offset: -6px;
+}
+.social-drop-hint {
+ position: absolute;
+ inset: 0;
+ z-index: 20;
+ display: grid;
+ place-items: center;
+ pointer-events: none;
+ background: color-mix(in srgb, var(--bg-secondary) 72%, transparent);
+ color: var(--sx-mint);
+ font-size: 15px;
+ font-weight: 650;
+}
+.social-load-older {
+ display: block;
+ margin: 8px auto 14px;
+ border: 1px solid var(--sx-line);
+ background: #ffffff08;
+ color: var(--text-muted);
+ border-radius: 999px;
+ padding: 8px 14px;
+ font-size: 12px;
+ min-height: 36px;
+}
+.social-day-sep,
+.social-unread-sep {
+ display: flex;
+ justify-content: center;
+ margin: 12px 0;
+}
+.social-day-sep span,
+.social-unread-sep span {
+ font-size: 11px;
+ color: var(--text-muted);
+ background: #ffffff0c;
+ border: 1px solid var(--sx-line);
+ border-radius: 999px;
+ padding: 4px 10px;
+}
+.social-unread-sep span {
+ color: var(--sx-mint);
+ border-color: color-mix(in srgb, var(--sx-mint) 40%, transparent);
+}
+.social-msg-more {
+ border: 0;
+ background: none;
+ color: var(--sx-mint);
+ font-size: 11px;
+ padding: 0;
+ margin-top: 2px;
+}
+.social-msg-att-image {
+ border: 0;
+ background: none;
+ padding: 0;
+ cursor: zoom-in;
+ display: block;
+}
+.social-lightbox {
+ position: fixed;
+ inset: 0;
+ z-index: 80;
+ border: 0;
+ background: #000c;
+ display: grid;
+ place-items: center;
+ padding: 24px;
+ cursor: zoom-out;
+}
+.social-lightbox img {
+ max-width: min(920px, 92vw);
+ max-height: 88vh;
+ border-radius: 12px;
+ object-fit: contain;
+}
+.social-conversation {
+ position: relative;
+}
+.social-message.mine .social-message-tools {
+ justify-content: flex-end;
+}
+.social-new-messages {
+ position: absolute;
+ bottom: 15px;
+ left: 50%;
+ translate: -50% 0;
+ display: none;
+ align-items: center;
+ gap: 7px;
+ background: var(--bg-secondary);
+ border: 1px solid var(--sx-line);
+ color: var(--sx-mint);
+ padding: 8px 13px;
+ border-radius: 999px;
+ font-size: 11px;
+ box-shadow: 0 6px 30px #0003;
+}
+.social-thread-wrap:has([data-unread="true"]) .social-new-messages {
+ display: flex;
+}
+.social-chat-typing {
+ display: flex;
+ gap: 4px;
+ align-items: center;
+ color: var(--text-muted);
+ font-size: 10px;
+}
+.social-chat-typing i {
+ width: 4px;
+ height: 4px;
+ border-radius: 50%;
+ background: var(--sx-mint);
+ animation: sx-typing 1s ease-in-out infinite;
+}
+.social-chat-typing i:nth-child(2) {
+ animation-delay: 0.15s;
+}
+.social-chat-typing i:nth-child(3) {
+ animation-delay: 0.3s;
+}
+.social-chat-typing span {
+ margin-left: 7px;
+}
+.social-chat-composer {
+ position: relative;
+ padding: 18px 23px 12px;
+ border-top: 1px solid var(--sx-line);
+ background: #ffffff02;
+}
+.social-workspace .social-chat-composer textarea {
+ width: 100%;
+ min-height: 66px;
+ max-height: 150px;
+ resize: vertical;
+ border: 0;
+ outline: none;
+ box-shadow: none;
+ padding: 0;
+ background: transparent;
+ color: var(--text-primary);
+ font-family: inherit;
+ font-size: 13px;
+ line-height: 1.8;
+}
+.social-composer-toolbar {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+}
+.social-chat-starters {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ justify-content: center;
+ max-width: 420px;
+}
+.social-chat-starters .social-btn {
+ font-size: 12px;
+ min-height: 40px;
+}
+.social-composer-emoji {
+ display: grid;
+ place-items: center;
+ width: 35px;
+ height: 35px;
+ flex-shrink: 0;
+ border: 0;
+ border-radius: 9px;
+ color: var(--text-secondary);
+ background: var(--bg-glass);
+}
+.social-nick-label {
+ display: none; /* 未注册随机昵称,不再露出游客输入框 */
+}
+.social-workspace .social-nick-label input {
+ width: 90px;
+ min-height: 30px;
+ background: transparent;
+ color: var(--text-secondary);
+ padding: 5px 7px;
+ border: 1px solid var(--sx-line);
+ border-radius: 6px;
+ font-size: 11px;
+}
+.social-composer-toolbar small {
+ margin-left: auto;
+ color: var(--text-muted);
+ font-size: 9px;
+}
+.social-composer-toolbar .social-btn {
+ padding: 8px 16px;
+ min-height: 38px;
+}
+.social-composer-note {
+ font-size: 9px;
+ color: var(--text-muted);
+ margin-top: 12px;
+}
+.social-emoji-picker {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 5px;
+ margin-bottom: 12px;
+ padding: 8px;
+ background: var(--bg-primary);
+ border: 1px solid var(--sx-line);
+ border-radius: 10px;
+}
+.social-emoji-picker button {
+ width: 35px;
+ height: 35px;
+ background: transparent;
+ border: 0;
+ border-radius: 7px;
+ font-size: 20px;
+}
+.social-emoji-picker button:hover {
+ background: var(--bg-glass);
+ transform: scale(1.15);
+}
+.social-reply-preview {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ background: #4ecdc409;
+ border-left: 2px solid var(--sx-mint);
+ border-radius: 5px;
+ padding: 9px 11px;
+ margin-bottom: 13px;
+ font-size: 10px;
+ color: var(--text-secondary);
+}
+.social-reply-preview > span {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+.social-reply-preview > button {
+ display: grid;
+ place-items: center;
+ margin-left: auto;
+ border: 0;
+ background: none;
+ color: var(--text-secondary);
+ padding: 5px;
+}
+.social-channel-preview {
+ display: flex;
+ align-items: flex-start;
+ gap: 6px;
+ padding: 12px;
+ border: 1px solid var(--sx-line);
+ border-radius: 9px;
+ color: var(--text-muted);
+ font-size: 10px;
+ line-height: 1.8;
+}
+.social-channel-preview > svg {
+ flex-shrink: 0;
+ margin-top: 3px;
+}
+.social-workspace .social-channel-grid {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+}
+.social-workspace .social-channel-card.channel-1 .social-card-ico {
+ color: var(--sx-gold);
+ background: #ffe1950a;
+ border-color: #ffe19526;
+}
+.social-workspace .social-channel-card.channel-2 .social-card-ico {
+ color: var(--sx-coral);
+ background: #ff7b750a;
+ border-color: #ff7b7526;
+}
+.social-icebreakers {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ gap: 13px;
+}
+.social-icebreakers > a {
+ display: flex;
+ align-items: flex-start;
+ gap: 13px;
+ padding: 18px;
+ border: 1px solid var(--sx-line);
+ border-radius: 13px;
+ transition:
+ border-color 0.3s,
+ transform 0.3s;
+}
+.social-icebreakers > a:hover {
+ border-color: #4ecdc44b;
+ transform: translateY(-4px);
+}
+.social-icebreakers > a > span {
+ font-size: 10px;
+ color: var(--sx-mint);
+}
+.social-icebreakers p {
+ flex: 1;
+ font-size: 12px;
+ color: var(--text-secondary);
+ line-height: 1.9;
+}
+.social-icebreakers svg {
+ color: var(--text-muted);
+ flex-shrink: 0;
+}
+.social-event-grid {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 20px;
+}
+.social-event-card h2 {
+ font-size: 22px;
+ letter-spacing: -0.04em;
+}
+.social-event-art {
+ position: relative;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 20px;
+ min-height: 140px;
+ margin: -24px -24px 8px;
+ padding: 30px;
+ background: radial-gradient(ellipse at 30% 80%, #4ecdc412, transparent 70%);
+ border-bottom: 1px solid var(--sx-line);
+ color: var(--sx-mint);
+}
+.social-event-art > span {
+ font-size: 72px;
+ font-weight: 700;
+ color: #4ecdc42b;
+ letter-spacing: -0.08em;
+}
+.social-event-art > div {
+ display: flex;
+ gap: 5px;
+ align-items: center;
+ height: 75px;
+}
+.social-event-art i {
+ width: 3px;
+ background: var(--sx-mint);
+ border-radius: 5px;
+ opacity: 0.5;
+ animation: sx-equalizer 2s ease-in-out infinite;
+ transform-origin: center;
+}
+.social-event-card.event-1 .social-event-art {
+ color: var(--sx-coral);
+ background: radial-gradient(ellipse at 30% 80%, #ff7b7512, transparent 70%);
+}
+.social-event-card.event-1 .social-event-art > span {
+ color: #ff7b752b;
+}
+.social-event-card.event-1 .social-event-art i {
+ background: var(--sx-coral);
+}
+.social-event-time {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ font-size: 12px;
+}
+.social-event-guide > div {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ gap: 25px;
+ margin-top: 24px;
+}
+.social-event-guide p {
+ font-size: 12px;
+ color: var(--text-secondary);
+ line-height: 1.9;
+}
+.social-event-guide p span {
+ display: block;
+ color: var(--sx-mint);
+ font-size: 10px;
+ letter-spacing: 0.1em;
+ margin-bottom: 9px;
+}
+.social-event-guide strong {
+ display: block;
+ color: var(--text-primary);
+ font-size: 13px;
+ margin-bottom: 7px;
+}
+.social-meetup-heading {
+ margin: 5px 0 24px;
+}
+.social-meetup-heading h1 {
+ font-size: 31px;
+ font-weight: 700;
+ letter-spacing: -0.04em;
+ margin: 13px 0 10px;
+}
+.social-meetup-heading p {
+ font-size: 12px;
+ color: var(--text-muted);
+}
+.social-live-toolbar {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 12px;
+ margin-bottom: 16px;
+}
+.social-live-toolbar .social-filters button {
+ display: flex;
+ gap: 7px;
+ align-items: center;
+}
+.social-meetup-room {
+ display: grid;
+ grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
+ gap: 15px;
+ background: var(--bg-primary);
+ min-width: 0;
+}
+.social-meetup-room.layout-video,
+.social-meetup-room.layout-chat {
+ grid-template-columns: 1fr;
+}
+.social-meetup-room:fullscreen {
+ padding: 20px;
+ overflow: auto;
+}
+.social-meetup-room [hidden] {
+ display: none !important;
+}
+.social-meetup-video {
+ border: 1px solid var(--sx-line);
+ border-radius: 18px;
+ overflow: hidden;
+ min-width: 0;
+}
+.social-prejoin {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ text-align: center;
+ gap: 15px;
+ padding: 30px;
+ min-height: 100%;
+ background: radial-gradient(ellipse at 50% 30%, #4ecdc409, transparent 65%);
+}
+.social-prejoin-radar {
+ width: 150px;
+ height: 150px;
+ position: relative;
+ display: grid;
+ place-items: center;
+ color: var(--sx-mint);
+}
+.social-prejoin-radar i {
+ position: absolute;
+ border: 1px solid #4ecdc42b;
+ border-radius: 50%;
+ width: 100%;
+ height: 100%;
+ animation: sx-radar 4s ease-in-out infinite;
+}
+.social-prejoin-radar i:nth-child(2) {
+ width: 70%;
+ height: 70%;
+ animation-delay: -1.3s;
+}
+.social-prejoin-radar i:nth-child(3) {
+ width: 45%;
+ height: 45%;
+ animation-delay: -2.6s;
+}
+.social-prejoin h2 {
+ font-size: 22px;
+ font-weight: 650;
+}
+.social-prejoin > p {
+ max-width: 350px;
+ color: var(--text-secondary);
+ font-size: 12px;
+ line-height: 1.9;
+}
+.social-prejoin > label {
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ max-width: 300px;
+ gap: 8px;
+ color: var(--text-muted);
+ font-size: 11px;
+ text-align: left;
+}
+.social-prejoin label input {
+ background: var(--bg-glass);
+ border: 1px solid var(--sx-line);
+ border-radius: 9px;
+ padding: 10px 13px;
+ color: var(--text-primary);
+ width: 100%;
+ font-size: 14px;
+}
+.social-prejoin-devices {
+ display: flex;
+ gap: 10px;
+ margin: 5px 0;
+}
+.social-prejoin-devices button {
+ display: flex;
+ flex-direction: column;
+ gap: 7px;
+ align-items: center;
+ padding: 13px 19px;
+ color: var(--text-secondary);
+ background: var(--bg-glass);
+ border: 1px solid var(--sx-line);
+ border-radius: 11px;
+ font-size: 10px;
+}
+.social-prejoin-devices button[aria-pressed="true"] {
+ color: var(--sx-mint);
+ background: #4ecdc409;
+ border-color: #4ecdc43b;
+}
+.social-prejoin .social-prejoin-note {
+ font-size: 9px;
+ color: var(--text-muted);
+}
+.social-meetup-chat {
+ min-width: 0;
+}
+.social-meetup-chat .social-conversation-top {
+ padding: 16px;
+}
+.social-meetup-chat .social-chat-thread {
+ padding: 18px;
+ height: 380px;
+}
+.social-meetup-chat .social-chat-composer {
+ padding: 15px;
+}
+.social-meetup-chat .social-composer-note {
+ font-size: 8px;
+}
+.social-meetup-chat .social-conversation {
+ min-height: 100%;
+}
+.social-meetup-chat .social-composer-toolbar {
+ gap: 6px;
+}
+.social-meetup-chat .social-nick-label input {
+ width: 65px;
+}
+.social-video-frame {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ min-height: 650px;
+ height: 100%;
+ background: #070b10;
+}
+.social-video-frame iframe {
+ flex: 1;
+ width: 100%;
+ min-height: 560px;
+ border: 0;
+}
+.social-video-actions {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ gap: 8px;
+ padding: 12px;
+}
+.social-video-loading {
+ position: absolute;
+ inset: 0 0 60px;
+ z-index: 1;
+ display: flex;
+ align-items: center;
+ flex-direction: column;
+ justify-content: center;
+ gap: 18px;
+ background: #070b10;
+ color: #b7c8d5;
+ font-size: 13px;
+ padding: 25px;
+ text-align: center;
+}
+.social-video-loading p {
+ font-size: 11px;
+ line-height: 1.9;
+}
+.social-loading-orbit {
+ width: 35px;
+ height: 35px;
+ border: 1px solid #4ecdc433;
+ border-top-color: #4ecdc4;
+ border-radius: 50%;
+ animation: sx-spin 1s linear infinite;
+}
+.social-select {
+ min-height: 44px;
+ padding: 9px 14px;
+ border: 1px solid var(--sx-line);
+ border-radius: 10px;
+ background: var(--bg-secondary);
+ color: var(--text-secondary);
+ font: inherit;
+ font-size: 12px;
+}
+.social-city-filters {
+ margin-bottom: 20px;
+}
+.social-workspace .social-cafe-grid {
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+}
+.social-cafe-art {
+ position: relative;
+ display: grid;
+ place-items: center;
+ height: 130px;
+ margin: -24px -24px 4px;
+ background: radial-gradient(ellipse at 40% 100%, #4ecdc41b, transparent 75%);
+ color: var(--sx-mint);
+ overflow: hidden;
+ border-bottom: 1px solid var(--sx-line);
+}
+.social-cafe-art > svg {
+ position: relative;
+ z-index: 1;
+ transition: transform 0.5s var(--sx-ease);
+}
+.social-card:hover .social-cafe-art > svg {
+ transform: rotate(-8deg) scale(1.1);
+}
+.social-cafe-art i {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ border-radius: 50%;
+ border: 1px solid currentColor;
+ opacity: 0.1;
+ scale: 1.4;
+}
+.social-cafe-art > span {
+ position: absolute;
+ bottom: 12px;
+ right: 15px;
+ font-size: 9px;
+ letter-spacing: 0.1em;
+ opacity: 0.5;
+}
+.cafe-color-1 .social-cafe-art {
+ color: var(--sx-coral);
+ background: radial-gradient(ellipse at 40% 100%, #ff7b751b, transparent 75%);
+}
+.cafe-color-2 .social-cafe-art {
+ color: #86b8d6;
+ background: radial-gradient(ellipse at 40% 100%, #86b8d61b, transparent 75%);
+}
+.cafe-color-3 .social-cafe-art {
+ color: var(--sx-gold);
+ background: radial-gradient(ellipse at 40% 100%, #ffe1951b, transparent 75%);
+}
+.social-cafe-grid .social-card.active {
+ border-color: #4ecdc455;
+}
+.social-cafe-grid .social-card > strong {
+ font-size: 16px;
+}
+.social-cafe-grid .social-card {
+ overflow: hidden;
+}
+.social-cafe-detail {
+ scroll-margin-top: 90px;
+}
+.social-cafe-facts {
+ display: flex;
+ gap: 18px;
+ flex-wrap: wrap;
+ margin: 20px 0;
+}
+.social-cafe-facts span {
+ display: flex;
+ gap: 7px;
+ align-items: center;
+ color: var(--text-secondary);
+ font-size: 11px;
+}
+.social-cafe-facts svg {
+ color: var(--sx-mint);
+}
+.social-cafe-invite-note {
+ margin: 12px 0 28px;
+ font-size: 10px !important;
+}
+.social-review-layout {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 40px;
+ border-top: 1px solid var(--sx-line);
+ padding-top: 25px;
+}
+.social-review-layout h3 {
+ font-size: 15px;
+ margin-bottom: 23px;
+}
+.social-review-layout .social-section-label {
+ margin-top: 0;
+}
+.social-star-rating {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 0;
+ border: 0;
+}
+.social-star-rating legend {
+ margin-bottom: 10px;
+ font-size: 12px;
+ color: var(--text-secondary);
+}
+.social-star-rating button {
+ width: 35px;
+ height: 35px;
+ display: grid;
+ place-items: center;
+ color: var(--text-muted);
+ border: 0;
+ background: none;
+}
+.social-star-rating button.selected {
+ color: var(--sx-gold);
+}
+.social-review-list {
+ display: grid;
+ gap: 14px;
+}
+.social-review-list article {
+ padding: 17px;
+ border: 1px solid var(--sx-line);
+ border-radius: 11px;
+}
+.social-review-list header {
+ display: flex;
+ justify-content: space-between;
+ gap: 10px;
+ margin-bottom: 12px;
+ font-size: 12px;
+}
+.social-review-list header > span {
+ color: var(--sx-gold);
+ letter-spacing: 2px;
+ font-size: 10px;
+}
+.social-review-list article p {
+ font-size: 12px;
+ line-height: 1.8;
+ white-space: pre-wrap;
+ overflow-wrap: anywhere;
+}
+.social-review-list small {
+ display: block;
+ margin-top: 12px;
+ color: var(--text-muted);
+ font-size: 9px;
+}
+.social-review-list article button {
+ display: block;
+ margin-top: 12px;
+ padding: 6px 0;
+ border: 0;
+ color: var(--sx-gold);
+ background: none;
+ font-size: 10px;
+}
+.social-workspace .social-discover-cta {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ gap: 20px;
+ text-align: left;
+}
+.social-discover-cta > svg {
+ flex-shrink: 0;
+ color: var(--sx-mint);
+}
+.social-discover-cta > .social-btn {
+ margin-left: auto;
+}
+.social-discover-cta h2 {
+ font-size: 18px !important;
+ margin-bottom: 8px;
+}
+@keyframes sx-equalizer {
+ 0%,
+ 100% {
+ transform: scaleY(0.45);
+ }
+ 50% {
+ transform: scaleY(1);
+ }
+}
+@keyframes sx-typing {
+ 0%,
+ 80%,
+ 100% {
+ transform: translateY(0);
+ opacity: 0.3;
+ }
+ 40% {
+ transform: translateY(-4px);
+ opacity: 1;
+ }
+}
+@keyframes sx-radar {
+ 0%,
+ 100% {
+ opacity: 0.15;
+ scale: 0.9;
+ }
+ 50% {
+ opacity: 0.5;
+ scale: 1.05;
+ }
+}
+@keyframes sx-spin {
+ to {
+ transform: rotate(360deg);
+ }
+}
+@media (max-width: 1100px) {
+ .social-workspace .social-cafe-grid {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+ .social-meetup-room {
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
+ }
+ .social-meetup-chat .social-nick-label {
+ display: none;
+ }
+}
+@media (max-width: 760px) {
+ .social-meetup-room {
+ grid-template-columns: 1fr;
+ }
+ .social-prejoin {
+ min-height: 490px;
+ padding: 25px;
+ }
+ .social-event-art > div {
+ gap: 4px;
+ }
+ .social-event-art {
+ padding: 23px;
+ }
+ .social-event-art > span {
+ font-size: 60px;
+ }
+ .social-event-art i {
+ width: 2px;
+ }
+ .social-workspace .social-event-card {
+ padding: 22px;
+ }
+ .social-event-grid {
+ gap: 14px;
+ }
+ .social-event-card h2 {
+ font-size: 19px;
+ }
+ .social-event-guide > div {
+ gap: 20px;
+ }
+ .social-icebreakers {
+ grid-template-columns: 1fr;
+ }
+ .social-meetup-chat .social-nick-label {
+ display: flex;
+ }
+ .social-room-heading > span {
+ display: none;
+ }
+}
+@media (max-width: 600px) {
+ .social-workspace .social-channel-grid,
+ .social-event-grid {
+ grid-template-columns: 1fr;
+ }
+ .social-workspace .social-chat-thread {
+ padding: 18px 14px;
+ height: clamp(280px, 43dvh, 450px);
+ }
+ .social-chat-live .social-chat-thread,
+ .social-chat-immersive .social-chat-thread {
+ height: auto !important;
+ min-height: 0 !important;
+ padding: 12px 12px 14px;
+ }
+ .social-conversation-top {
+ padding: 15px;
+ }
+ .social-conversation-top strong {
+ font-size: 14px;
+ }
+ .social-conversation-top p {
+ font-size: 10px;
+ }
+ .social-conversation-top .social-save {
+ font-size: 10px;
+ padding: 6px 8px;
+ }
+ .social-connection-status {
+ padding: 9px 15px;
+ font-size: 9px;
+ gap: 5px;
+ }
+ .social-connection-status > span {
+ display: none;
+ }
+ .social-chat-composer {
+ padding: 14px 15px 10px;
+ }
+ .social-message {
+ max-width: 94%;
+ gap: 8px;
+ }
+ .social-message-avatar {
+ width: 28px;
+ height: 28px;
+ border-radius: 9px;
+ font-size: 11px;
+ }
+ .social-message-body > p,
+ .social-message-body > .social-msg-bubble {
+ font-size: 12px;
+ padding: 10px 13px;
+ }
+ .social-message-tools button {
+ min-height: 30px;
+ }
+ .social-composer-toolbar {
+ gap: 7px;
+ }
+ .social-composer-toolbar .social-btn {
+ padding: 9px 12px;
+ min-height: 40px;
+ }
+ .social-workspace .social-nick-label input {
+ width: 65px;
+ font-size: 12px !important;
+ }
+ .social-nick-label {
+ font-size: 9px;
+ gap: 5px;
+ }
+ .social-composer-note {
+ font-size: 8px;
+ }
+ .social-composer-toolbar small {
+ font-size: 8px;
+ }
+ .social-event-art {
+ margin: -22px -22px 8px;
+ }
+ .social-event-guide > div {
+ grid-template-columns: 1fr;
+ }
+ .social-event-guide p {
+ padding-bottom: 15px;
+ border-bottom: 1px solid var(--sx-line);
+ }
+ .social-event-guide p:last-child {
+ border-bottom: 0;
+ }
+ .social-event-guide strong {
+ display: inline;
+ margin-right: 10px;
+ }
+ .social-review-layout {
+ grid-template-columns: 1fr;
+ gap: 28px;
+ }
+ .social-cafe-grid .social-card {
+ padding: 18px;
+ }
+ .social-cafe-art {
+ margin: -18px -18px 4px;
+ height: 115px;
+ }
+ .social-cafe-grid .social-card .social-card-top {
+ flex-wrap: wrap;
+ gap: 8px;
+ }
+ .social-workspace .social-cafe-grid {
+ gap: 10px;
+ }
+ .social-cafe-grid .social-card > strong {
+ font-size: 14px;
+ }
+ .social-cafe-grid .social-card p {
+ font-size: 11px;
+ }
+ .social-workspace .social-discover-cta {
+ align-items: flex-start;
+ flex-wrap: wrap;
+ gap: 14px;
+ }
+ .social-discover-cta > div {
+ flex: 1;
+ min-width: 220px;
+ }
+ .social-discover-cta > .social-btn {
+ margin-left: 0;
+ }
+ .social-workspace .social-chat-composer textarea {
+ font-size: 16px;
+ }
+ .social-meetup-heading h1 {
+ font-size: 27px;
+ }
+ .social-prejoin-devices button {
+ min-width: 105px;
+ }
+ .social-video-frame {
+ min-height: 480px;
+ }
+ .social-video-frame iframe {
+ min-height: 440px;
+ }
+}
+@media (prefers-reduced-motion: reduce) {
+ .social-experience
+ :is(
+ .social-event-art i,
+ .social-prejoin-radar i,
+ .social-chat-typing i,
+ .social-loading-orbit
+ ) {
+ animation: none;
+ }
+}
+
+@media (max-width: 640px) {
+ .social-home .social-date-hero {
+ text-align: left;
+ justify-items: stretch;
+ }
+}
+
+/* —— Date / 约会 swipe deck —— */
+.social-date-root {
+ display: flex;
+ flex-direction: column;
+ height: 100dvh;
+ max-height: 100dvh;
+ overflow: hidden;
+ background:
+ radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 107, 107, 0.16), transparent 60%),
+ var(--sc-bg, #0a0e17);
+}
+.social-date-bar {
+ flex-shrink: 0;
+ display: flex;
+ flex-direction: column;
+ align-items: stretch;
+ gap: 10px;
+ padding-bottom: 10px;
+}
+.social-date-bar-top {
+ display: flex;
+ flex-wrap: nowrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ min-width: 0;
+}
+.social-date-bar-top .social-live-bar-main {
+ flex: 1 1 auto;
+ min-width: 0;
+ flex-wrap: nowrap;
+}
+.social-date-bar-tools {
+ display: flex;
+ flex-wrap: nowrap;
+ align-items: center;
+ gap: 8px;
+ flex: 0 0 auto;
+}
+.social-date-filters {
+ display: flex;
+ flex-wrap: nowrap;
+ align-items: center;
+ gap: 8px;
+ width: 100%;
+ overflow-x: auto;
+ scrollbar-width: none;
+ -webkit-overflow-scrolling: touch;
+}
+.social-date-filters::-webkit-scrollbar {
+ display: none;
+}
+.social-date-filters button {
+ flex: 0 0 auto;
+ min-height: 36px;
+ padding: 0 14px;
+}
+.social-date-stage {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: flex-start;
+ gap: 12px;
+ padding: 8px 16px 16px;
+ overflow: hidden;
+}
+.social-date-deck {
+ position: relative;
+ /* 绝对定位卡片不撑高;靠 flex 吃满舞台剩余高度 */
+ flex: 1 1 0;
+ align-self: center;
+ width: min(420px, 100%);
+ min-height: 280px;
+ max-height: min(620px, calc(100dvh - 210px));
+ aspect-ratio: auto;
+ /* 裁掉飞出残留,避免 PC 左侧鬼影 */
+ overflow: hidden;
+ isolation: isolate;
+}
+.social-date-card {
+ position: absolute;
+ inset: 0;
+ border-radius: 24px;
+ overflow: hidden;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: #12141c;
+ box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
+ touch-action: none;
+ user-select: none;
+ will-change: transform;
+ backface-visibility: hidden;
+}
+.social-date-card.is-next {
+ z-index: 1;
+ transform: scale(0.96) translateY(10px);
+ opacity: 0.72;
+ pointer-events: none;
+}
+.social-date-card.is-top {
+ cursor: grab;
+ z-index: 2;
+ transition: transform 0.18s ease;
+}
+.social-date-card.is-dragging {
+ cursor: grabbing;
+ transition: none;
+}
+.social-date-card.is-leaving {
+ z-index: 4;
+ pointer-events: none;
+ transition: none;
+}
+.social-date-card.is-fly-like {
+ animation: social-date-fly-like 0.3s ease-in forwards;
+}
+.social-date-card.is-fly-pass {
+ animation: social-date-fly-pass 0.3s ease-in forwards;
+}
+@keyframes social-date-fly-like {
+ from {
+ opacity: 1;
+ }
+ to {
+ transform: translate3d(120%, 40px, 0) rotate(18deg);
+ opacity: 0;
+ }
+}
+@keyframes social-date-fly-pass {
+ from {
+ opacity: 1;
+ }
+ to {
+ transform: translate3d(-120%, 40px, 0) rotate(-18deg);
+ opacity: 0;
+ }
+}
+.social-date-photo {
+ position: absolute;
+ inset: 0;
+ background-position: center top;
+ background-size: cover;
+}
+.social-date-gradient {
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(
+ 180deg,
+ transparent 38%,
+ rgba(8, 10, 16, 0.55) 62%,
+ rgba(8, 10, 16, 0.92) 100%
+ );
+}
+.social-date-meta {
+ position: absolute;
+ inset: auto 0 0;
+ padding: 20px 18px 22px;
+ color: #fff;
+ display: grid;
+ gap: 8px;
+}
+.social-date-name h2 {
+ margin: 0;
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ font-size: clamp(26px, 5vw, 34px);
+ letter-spacing: -0.03em;
+}
+.social-date-name h2 > i {
+ width: 10px;
+ height: 10px;
+ border-radius: 999px;
+ background: #22c55e;
+ box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
+}
+.social-date-name p,
+.social-date-city,
+.social-date-bio,
+.social-date-want {
+ margin: 0;
+ color: rgba(255, 255, 255, 0.82);
+ font-size: 13px;
+ line-height: 1.55;
+}
+.social-date-city {
+ display: inline-flex;
+ align-items: center;
+ gap: 5px;
+ color: #4ecdc4;
+}
+.social-date-want {
+ color: rgba(255, 230, 109, 0.92);
+}
+.social-date-meta .social-tags {
+ margin-top: 2px;
+}
+.social-date-meta .social-tags span {
+ background: rgba(255, 255, 255, 0.1);
+ border-color: rgba(255, 255, 255, 0.14);
+ color: #fff;
+}
+.social-date-stamp {
+ position: absolute;
+ top: 22px;
+ z-index: 3;
+ padding: 8px 14px;
+ border: 3px solid;
+ border-radius: 12px;
+ font-weight: 850;
+ letter-spacing: 0.08em;
+ font-size: 20px;
+ pointer-events: none;
+ opacity: 0;
+ backdrop-filter: blur(4px);
+}
+.social-date-stamp.like {
+ left: 18px;
+ color: #4ade80;
+ border-color: #4ade80;
+ background: rgba(34, 197, 94, 0.12);
+ transform: rotate(-12deg);
+}
+.social-date-stamp.pass {
+ display: none; /* 去掉卡片右上「划走」水印 */
+}
+.social-date-gender {
+ display: inline-block;
+ margin-right: 0.15em;
+ font-size: 0.92em;
+ vertical-align: -0.05em;
+}
+.social-chat-join-hint {
+ width: 100%;
+ text-align: left;
+ cursor: pointer;
+ border: 0;
+ appearance: none;
+}
+.social-date-photo-dots {
+ position: absolute;
+ top: 10px;
+ left: 50%;
+ z-index: 4;
+ display: flex;
+ gap: 5px;
+ transform: translateX(-50%);
+ pointer-events: none;
+}
+.social-date-photo-dots i {
+ width: 28px;
+ height: 3px;
+ border-radius: 999px;
+ background: #ffffff44;
+}
+.social-date-photo-dots i.is-on {
+ background: #fff;
+}
+.social-date-photo-hit {
+ position: absolute;
+ top: 0;
+ z-index: 5;
+ width: 28%;
+ height: 42%;
+ border: 0;
+ padding: 0;
+ background: transparent;
+ cursor: pointer;
+}
+.social-date-photo-hit.is-prev {
+ left: 0;
+}
+.social-date-photo-hit.is-next {
+ right: 0;
+}
+.social-date-photo-hit:disabled {
+ cursor: default;
+}
+.social-date-online-pill {
+ position: absolute;
+ top: 14px;
+ left: 14px;
+ right: auto;
+ transform: none;
+ z-index: 2;
+ padding: 5px 12px;
+ border-radius: 999px;
+ background: rgba(34, 197, 94, 0.92);
+ color: #fff;
+ font-size: 12px;
+ font-weight: 650;
+ letter-spacing: 0.02em;
+ box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
+}
+.social-date-photo-dots ~ .social-date-online-pill,
+.social-date-card:has(.social-date-photo-dots) .social-date-online-pill {
+ top: 28px;
+}
+.social-date-bio {
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+.social-date-want {
+ font-weight: 600;
+}
+.social-date-actions {
+ display: flex;
+ flex-shrink: 0;
+ align-items: center;
+ justify-content: center;
+ gap: 18px;
+ margin-top: 0;
+}
+.social-date-act {
+ display: grid;
+ place-items: center;
+ width: 64px;
+ height: 64px;
+ border-radius: 999px;
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ background: rgba(18, 20, 28, 0.92);
+ color: #fff;
+ cursor: pointer;
+ transition:
+ transform 0.15s ease,
+ box-shadow 0.15s ease;
+}
+.social-date-act:disabled {
+ opacity: 0.35;
+ cursor: not-allowed;
+}
+.social-date-act:not(:disabled):hover {
+ transform: translateY(-2px) scale(1.04);
+}
+.social-date-act.pass {
+ color: #ff6b6b;
+ box-shadow: 0 10px 28px rgba(255, 107, 107, 0.18);
+}
+.social-date-act.like {
+ width: 72px;
+ height: 72px;
+ color: #22c55e;
+ box-shadow: 0 12px 32px rgba(34, 197, 94, 0.22);
+}
+.social-date-act.reset {
+ width: 48px;
+ height: 48px;
+ color: #ffe66d;
+}
+.social-date-empty {
+ position: absolute;
+ inset: 0;
+ display: grid;
+ place-content: center;
+ justify-items: center;
+ gap: 12px;
+ text-align: center;
+ border-radius: 24px;
+ border: 1px dashed rgba(255, 255, 255, 0.16);
+ background: rgba(18, 20, 28, 0.7);
+}
+.social-date-empty p {
+ margin: 0;
+ font-size: 18px;
+ font-weight: 700;
+}
+.social-date-likes {
+ display: flex;
+ flex-wrap: nowrap;
+ align-items: center;
+ justify-content: center;
+ gap: 10px;
+ flex-shrink: 0;
+ width: min(420px, 100%);
+ max-width: 100%;
+ padding: 8px 14px;
+ border-radius: 999px;
+ border: 1px solid rgba(255, 107, 107, 0.28);
+ background: rgba(255, 107, 107, 0.08);
+ font-size: 12px;
+ color: #ffc4c0;
+ cursor: pointer;
+ font: inherit;
+}
+.social-date-likes > div {
+ display: flex;
+}
+.social-date-likes > div > * {
+ margin-left: -8px;
+ border: 2px solid #0a0e17;
+ border-radius: 999px;
+}
+.social-date-likes > div > *:first-child {
+ margin-left: 0;
+}
+.social-date-likes > em {
+ margin-left: auto;
+ font-style: normal;
+ color: #4ecdc4;
+ font-weight: 650;
+}
+.social-date-match-list {
+ display: grid;
+ gap: 10px;
+ margin-bottom: 14px;
+}
+.social-date-match-row {
+ display: grid;
+ grid-template-columns: auto 1fr auto auto;
+ gap: 10px;
+ align-items: center;
+ padding: 10px 12px;
+ border-radius: 14px;
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ background: rgba(255, 255, 255, 0.04);
+}
+.social-date-match-row strong {
+ display: block;
+ font-size: 14px;
+}
+.social-date-match-row p {
+ margin: 2px 0 0;
+ font-size: 12px;
+ color: var(--sc-muted, #9fb0bf);
+}
+.social-date-toast {
+ position: fixed;
+ left: 50%;
+ bottom: 28px;
+ z-index: 30;
+ translate: -50% 0;
+ padding: 10px 16px;
+ border-radius: 999px;
+ background: rgba(12, 14, 20, 0.92);
+ border: 1px solid rgba(78, 205, 196, 0.35);
+ color: #fff;
+ font-size: 13px;
+ font-weight: 650;
+ pointer-events: none;
+}
+@media (max-width: 640px) {
+ .social-date-root {
+ padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
+ }
+ .social-date-deck {
+ max-height: min(520px, calc(100dvh - 280px));
+ min-height: 260px;
+ }
+ .social-date-act {
+ width: 58px;
+ height: 58px;
+ }
+ .social-date-act.like {
+ width: 66px;
+ height: 66px;
+ }
+ .social-date-hint {
+ display: none;
+ }
+}
+@media (prefers-reduced-motion: reduce) {
+ .social-date-card.is-top {
+ transition: none;
+ }
+ /* 离场仍瞬时消失,靠 JS timeout / onAnimationEnd 清掉,禁止卡在半空 */
+ .social-date-card.is-fly-like,
+ .social-date-card.is-fly-pass {
+ animation: social-date-fly-instant 1ms linear forwards;
+ }
+}
+@keyframes social-date-fly-instant {
+ to {
+ opacity: 0;
+ }
+}
diff --git a/src/modules/hub/app/live.css b/src/modules/hub/app/live.css
new file mode 100644
index 0000000..716a798
--- /dev/null
+++ b/src/modules/hub/app/live.css
@@ -0,0 +1,195 @@
+/* Social Live — silent by default; float chip only when someone is online */
+
+.social-live-shell {
+ z-index: 40;
+ display: flex;
+ flex-direction: column;
+ gap: 0;
+ pointer-events: none;
+}
+
+.social-live-shell > * {
+ pointer-events: auto;
+}
+
+/* Home: never steal sticky space under nav / hero brand */
+.social-live-shell.is-home {
+ position: fixed;
+ left: 12px;
+ bottom: calc(76px + env(safe-area-inset-bottom, 0px));
+ right: auto;
+ top: auto;
+ width: auto;
+ max-width: min(72vw, 280px);
+}
+
+.social-live-shell:not(.is-home) {
+ position: sticky;
+ top: 0;
+}
+
+.social-live-offline {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 8px 12px;
+ background: rgba(26, 18, 8, 0.92);
+ border: 1px solid rgba(245, 158, 11, 0.28);
+ border-radius: 12px;
+ color: #f8fafc;
+ margin: 8px 12px 0;
+}
+
+.social-live-shell.is-home .social-live-offline {
+ margin: 0 0 8px;
+}
+
+.social-live-offline strong {
+ display: block;
+ font-size: 0.8rem;
+ font-weight: 650;
+}
+
+.social-live-offline p {
+ margin: 1px 0 0;
+ font-size: 0.72rem;
+ color: #94a3b8;
+ line-height: 1.3;
+}
+
+.social-live-strip {
+ display: inline-flex;
+ align-items: center;
+ gap: 7px;
+ padding: 5px 10px 5px 8px;
+ background: rgba(12, 12, 15, 0.72);
+ backdrop-filter: blur(12px);
+ border: 1px solid rgba(148, 163, 184, 0.14);
+ border-radius: 999px;
+ color: #e2e8f0;
+ font-size: 0.75rem;
+ width: fit-content;
+ margin: 8px 12px 0;
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
+}
+
+.social-live-strip.is-float,
+.social-live-shell.is-home .social-live-strip {
+ margin: 0;
+}
+
+.social-live-strip strong {
+ font-weight: 600;
+ display: inline-flex;
+ align-items: center;
+ gap: 3px;
+ letter-spacing: 0.01em;
+}
+
+.social-live-count {
+ font-style: normal;
+ font-variant-numeric: tabular-nums;
+ color: #34d399;
+ font-weight: 700;
+ min-width: 0.9em;
+}
+
+.social-live-dot {
+ width: 7px;
+ height: 7px;
+ border-radius: 999px;
+ background: #64748b;
+ flex-shrink: 0;
+}
+
+.social-live-dot.is-ok {
+ background: #22c55e;
+ box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
+ animation: social-live-pulse 2.2s ease-in-out infinite;
+}
+
+.social-live-dot.is-warn {
+ background: #f59e0b;
+ box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
+}
+
+@keyframes social-live-pulse {
+ 0%,
+ 100% {
+ transform: scale(1);
+ opacity: 1;
+ }
+ 50% {
+ transform: scale(1.12);
+ opacity: 0.78;
+ }
+}
+
+.social-live-avs {
+ display: flex;
+ align-items: center;
+ margin-left: 2px;
+}
+
+.social-live-avs > * {
+ margin-left: -5px;
+ border-radius: 999px;
+ border: 1.5px solid #0c0c0f;
+ overflow: hidden;
+}
+
+.social-live-avs > *:first-child {
+ margin-left: 0;
+}
+
+.social-live-ver {
+ margin-left: 4px;
+ font-size: 0.65rem;
+ color: #64748b;
+ font-variant-numeric: tabular-nums;
+}
+
+.social-live-toast {
+ position: fixed;
+ left: 50%;
+ bottom: calc(72px + env(safe-area-inset-bottom, 0px));
+ transform: translateX(-50%);
+ z-index: 80;
+ max-width: min(92vw, 360px);
+ padding: 10px 16px;
+ border-radius: 12px;
+ background: #111827;
+ border: 1px solid rgba(52, 211, 153, 0.35);
+ color: #ecfdf5;
+ font-size: 0.85rem;
+ box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
+ animation: social-live-toast-in 0.28s ease-out;
+}
+
+@keyframes social-live-toast-in {
+ from {
+ opacity: 0;
+ transform: translateX(-50%) translateY(8px);
+ }
+ to {
+ opacity: 1;
+ transform: translateX(-50%) translateY(0);
+ }
+}
+
+@media (min-width: 901px) {
+ .social-live-shell.is-home {
+ bottom: 28px;
+ left: 24px;
+ }
+ .social-live-toast {
+ bottom: 28px;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .social-live-dot.is-ok,
+ .social-live-toast {
+ animation: none;
+ }
+}
diff --git a/src/modules/hub/app/motion.css b/src/modules/hub/app/motion.css
new file mode 100644
index 0000000..42f4567
--- /dev/null
+++ b/src/modules/hub/app/motion.css
@@ -0,0 +1,542 @@
+/* Immersive motion — beat Codex home.css mutes (loaded last). */
+
+.social-experience[data-immersive="true"] .social-ambient i {
+ opacity: 0.22 !important;
+ filter: blur(80px);
+ animation: sx-aurora 18s ease-in-out infinite alternate !important;
+}
+
+.social-experience[data-immersive="true"] .social-ambient i:nth-child(2) {
+ opacity: 0.16 !important;
+ animation-duration: 22s !important;
+ animation-direction: alternate-reverse !important;
+}
+
+.social-experience[data-immersive="true"] .social-ambient i:nth-child(3) {
+ opacity: 0.12 !important;
+ animation-duration: 26s !important;
+}
+
+.social-experience[data-immersive="true"] .social-home .social-fx-orbs {
+ opacity: 0.72 !important;
+}
+
+.social-experience[data-immersive="true"] .social-home .social-fx-orb.o3 {
+ display: block !important;
+}
+
+.social-experience[data-immersive="true"] .social-home .social-fx-orb {
+ animation: social-orb-drift 8s ease-in-out infinite !important;
+ filter: blur(48px) !important;
+ opacity: 0.62 !important;
+}
+
+.social-experience[data-immersive="true"] .social-home .social-fx-orb.o2 {
+ animation-duration: 10s !important;
+ animation-delay: -3s !important;
+}
+
+.social-experience[data-immersive="true"] .social-home .social-fx-orb.o3 {
+ animation-duration: 12s !important;
+ animation-delay: -6s !important;
+}
+
+.social-experience[data-immersive="true"] .social-constellation {
+ opacity: 1 !important;
+}
+
+.social-experience[data-immersive="true"] .social-pointer-glow {
+ background: radial-gradient(
+ 480px circle at var(--pointer-x, -1000px) var(--pointer-y, -1000px),
+ rgba(78, 205, 196, 0.18),
+ rgba(255, 107, 107, 0.06) 42%,
+ transparent 72%
+ ) !important;
+}
+
+/* Hero floating emoji */
+.connection-hero {
+ position: relative;
+ overflow: clip;
+}
+
+.connection-hero .social-emoji-field {
+ z-index: 0;
+ opacity: 0.5;
+}
+
+.connection-hero-layout {
+ position: relative;
+ z-index: 2;
+}
+
+.social-experience[data-immersive="true"] .social-emoji-float {
+ opacity: 0.22 !important;
+ filter: none !important;
+ animation-name: social-emoji-fly !important;
+ animation-timing-function: ease-in-out !important;
+ animation-iteration-count: infinite !important;
+ will-change: transform, opacity;
+}
+
+.social-experience[data-immersive="false"] .social-emoji-field,
+.social-experience[data-immersive="false"] .social-fx-belt {
+ display: none !important;
+}
+
+/* Signal bars */
+.social-experience[data-immersive="true"] .connection-signal i {
+ animation: social-signal-bars 1s ease-in-out infinite !important;
+ transform-origin: bottom !important;
+}
+
+.social-experience[data-immersive="true"] .connection-signal i:nth-child(2) {
+ animation-delay: 0.1s !important;
+}
+
+.social-experience[data-immersive="true"] .connection-signal i:nth-child(3) {
+ animation-delay: 0.2s !important;
+}
+
+.social-experience[data-immersive="true"] .connection-signal i:nth-child(4) {
+ animation-delay: 0.3s !important;
+}
+
+@keyframes social-signal-bars {
+ 0%,
+ 100% {
+ transform: scaleY(0.4);
+ opacity: 0.4;
+ }
+ 50% {
+ transform: scaleY(1);
+ opacity: 1;
+ }
+}
+
+.social-experience[data-immersive="true"] .connection-status-dot {
+ box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.6) !important;
+ animation: social-live-ping 1.25s ease-out infinite !important;
+}
+
+.social-experience[data-immersive="true"] .connection-orbit-traveler {
+ animation-duration: 12s !important;
+}
+
+.social-experience[data-immersive="true"] .connection-orbit-traveler-second {
+ animation-duration: 16s !important;
+}
+
+.social-experience[data-immersive="true"] .connection-flight-path {
+ animation-duration: 10s !important;
+ opacity: 0.95 !important;
+ stroke-width: 2.2 !important;
+}
+
+.social-experience[data-immersive="true"] .connection-center-icon {
+ animation: social-center-glow 2.4s ease-in-out infinite !important;
+}
+
+.social-experience[data-immersive="true"] .connection-center-icon svg {
+ animation: connection-breathe 2s ease-in-out infinite !important;
+}
+
+@keyframes social-center-glow {
+ 0%,
+ 100% {
+ box-shadow:
+ 0 0 36px rgba(78, 205, 196, 0.14),
+ inset 0 1px 0 rgba(255, 255, 255, 0.08);
+ }
+ 50% {
+ box-shadow:
+ 0 0 80px rgba(78, 205, 196, 0.42),
+ 0 0 120px rgba(255, 107, 107, 0.12),
+ inset 0 1px 0 rgba(255, 255, 255, 0.16);
+ }
+}
+
+.social-experience[data-immersive="true"] .connection-person {
+ animation-duration: 4s !important;
+}
+
+.social-experience[data-immersive="true"] .connection-universe:hover .connection-person,
+.social-experience[data-immersive="true"]
+ .connection-universe:focus-within
+ .connection-person {
+ animation-play-state: running !important;
+}
+
+.social-experience[data-immersive="true"] .connection-person-avatar > i {
+ animation: social-live-ping 1.35s ease-out infinite !important;
+}
+
+/* Title emoji: visible but calm (no infinite wiggle) */
+.social-experience[data-immersive="true"] .social-home .social-title-emoji {
+ display: inline-block !important;
+ margin-right: 0.28em !important;
+ animation: none !important;
+ opacity: 0.85 !important;
+}
+
+.social-experience[data-immersive="true"] .social-home .social-btn-pulse {
+ position: relative !important;
+ overflow: visible !important;
+}
+
+.social-experience[data-immersive="true"] .social-home .social-btn-pulse::before,
+.social-experience[data-immersive="true"] .social-home .social-btn-pulse::after {
+ content: "" !important;
+ display: block !important;
+ position: absolute !important;
+ inset: -5px !important;
+ border-radius: inherit !important;
+ border: 2px solid rgba(78, 205, 196, 0.55) !important;
+ pointer-events: none !important;
+ animation: social-btn-ring 1.4s ease-out infinite !important;
+}
+
+.social-experience[data-immersive="true"] .social-home .social-btn-pulse::before {
+ animation-delay: 0.7s !important;
+}
+
+.social-experience[data-immersive="true"] .social-home .social-people-bar-avs img {
+ animation: social-ava-bob 1.8s ease-in-out infinite !important;
+}
+
+.social-experience[data-immersive="true"]
+ .social-home
+ .social-people-bar-avs
+ img:nth-child(2) {
+ animation-delay: 0.1s !important;
+}
+
+.social-experience[data-immersive="true"]
+ .social-home
+ .social-people-bar-avs
+ img:nth-child(3) {
+ animation-delay: 0.2s !important;
+}
+
+.social-experience[data-immersive="true"]
+ .social-home
+ .social-people-bar-avs
+ img:nth-child(4) {
+ animation-delay: 0.3s !important;
+}
+
+.social-experience[data-immersive="true"] .social-home .social-count-pulse {
+ animation: social-count-glow 1.15s ease-in-out infinite !important;
+}
+
+.social-experience[data-immersive="true"] .social-home .nav-logo .logo-icon {
+ animation: social-logo-spin 6s linear infinite !important;
+}
+
+.social-experience[data-immersive="true"] .social-home .social-path-track a,
+.social-experience[data-immersive="true"]
+ .social-home
+ .social-path-track.reveal.visible
+ .social-path-link {
+ animation: social-path-pop 0.55s cubic-bezier(0.2, 0.9, 0.2, 1.15) both !important;
+}
+
+.social-experience[data-immersive="true"]
+ .social-home
+ .social-path-track.reveal.visible
+ a:nth-child(1) {
+ animation-delay: 0.04s !important;
+}
+
+.social-experience[data-immersive="true"]
+ .social-home
+ .social-path-track.reveal.visible
+ a:nth-child(2) {
+ animation-delay: 0.1s !important;
+}
+
+.social-experience[data-immersive="true"]
+ .social-home
+ .social-path-track.reveal.visible
+ a:nth-child(3) {
+ animation-delay: 0.16s !important;
+}
+
+.social-experience[data-immersive="true"]
+ .social-home
+ .social-path-track.reveal.visible
+ a:nth-child(4) {
+ animation-delay: 0.22s !important;
+}
+
+.social-experience[data-immersive="true"] .social-home .social-path-emoji {
+ display: inline-block !important;
+ transition: transform 0.25s !important;
+}
+
+.social-experience[data-immersive="true"]
+ .social-home
+ .social-path-link:hover
+ .social-path-emoji {
+ animation: social-emoji-wiggle 0.5s ease !important;
+}
+
+/* Meetup equalizer always on in immersive */
+.social-experience[data-immersive="true"] .connection-audio-bars i {
+ animation: connection-audio 1.05s ease-in-out infinite !important;
+ animation-play-state: running !important;
+}
+
+.social-experience[data-immersive="true"]
+ .social-home
+ .connection-cafe
+ .social-panel-ico {
+ animation: none !important;
+}
+
+.social-experience[data-immersive="true"]
+ .social-home
+ .connection-cafe:hover
+ .social-panel-ico {
+ animation: social-ico-bounce 1.55s ease-in-out 1 !important;
+}
+
+.social-experience[data-immersive="true"] .social-chip-pop {
+ animation: social-chip-in 0.5s cubic-bezier(0.2, 0.9, 0.2, 1.15) both !important;
+ animation-delay: var(--stagger, 0ms) !important;
+}
+
+.social-experience[data-immersive="true"]
+ .social-people-chip.is-online
+ .social-people-chip-ava {
+ position: relative;
+}
+
+.social-experience[data-immersive="true"]
+ .social-people-chip.is-online
+ .social-people-chip-ava::before {
+ content: "" !important;
+ position: absolute !important;
+ inset: -5px !important;
+ border-radius: 999px !important;
+ border: 2px solid rgba(78, 205, 196, 0.7) !important;
+ animation: social-btn-ring 1.25s ease-out infinite !important;
+ pointer-events: none !important;
+}
+
+/* Emoji belt */
+.social-experience[data-immersive="true"] .social-fx-belt {
+ opacity: 1 !important;
+ padding: 14px 0 22px !important;
+}
+
+.social-experience[data-immersive="true"] .social-fx-belt-track {
+ animation: social-belt-run 14s linear infinite !important;
+}
+
+.social-experience[data-immersive="true"] .social-fx-belt-track span {
+ font-size: 1.65rem !important;
+ opacity: 0.82 !important;
+ letter-spacing: 0.45em !important;
+}
+
+/* Join CTA ring */
+.social-experience[data-immersive="true"] .connection-join {
+ position: relative !important;
+ overflow: visible !important;
+}
+
+.social-experience[data-immersive="true"] .connection-join::after {
+ content: "" !important;
+ position: absolute !important;
+ inset: -6px !important;
+ border-radius: inherit !important;
+ border: 2px solid rgba(255, 107, 107, 0.5) !important;
+ animation: social-btn-ring 1.45s ease-out infinite !important;
+ pointer-events: none !important;
+}
+
+/* Section spark always draws when visible */
+.social-experience[data-immersive="true"] .reveal.visible .social-spark-path {
+ animation: social-spark-draw 1s ease forwards !important;
+}
+
+.social-experience[data-immersive="true"] .social-spark-dot {
+ animation: social-spark-blink 1.2s ease-in-out infinite !important;
+}
+
+/* Panel lift */
+.social-experience[data-immersive="true"] .reveal.visible .social-panel-fx,
+.social-experience[data-immersive="true"] .social-panel-fx.reveal.visible {
+ animation: social-panel-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both !important;
+ animation-delay: var(--stagger, 0ms) !important;
+}
+
+/* Workspace subpages share immersive FX with home */
+.social-experience[data-immersive="true"] .social-workspace .social-fx-orbs {
+ opacity: 0.58 !important;
+}
+
+.social-experience[data-immersive="true"] .social-workspace .social-fx-orb {
+ animation: social-orb-drift 9s ease-in-out infinite !important;
+ filter: blur(52px) !important;
+ opacity: 0.55 !important;
+}
+
+.social-experience[data-immersive="true"] .social-workspace .social-title-emoji {
+ display: inline-block !important;
+ margin-right: 0.28em;
+ animation: none !important;
+ opacity: 0.85 !important;
+}
+
+.social-experience[data-immersive="true"] .social-workspace .social-btn-pulse {
+ position: relative !important;
+ overflow: visible !important;
+}
+
+.social-experience[data-immersive="true"] .social-workspace .social-btn-pulse::before,
+.social-experience[data-immersive="true"] .social-workspace .social-btn-pulse::after {
+ content: "" !important;
+ display: block !important;
+ position: absolute !important;
+ inset: -5px !important;
+ border-radius: inherit !important;
+ border: 2px solid rgba(78, 205, 196, 0.5) !important;
+ pointer-events: none !important;
+ animation: social-btn-ring 1.45s ease-out infinite !important;
+}
+
+.social-experience[data-immersive="true"] .social-workspace .social-btn-pulse::before {
+ animation-delay: 0.7s !important;
+}
+
+.social-experience[data-immersive="true"] .social-room-hero-emoji i {
+ animation-name: social-emoji-fly !important;
+ animation-timing-function: ease-in-out !important;
+ animation-iteration-count: infinite !important;
+ opacity: 0.25 !important;
+ filter: none !important;
+}
+
+.social-experience[data-immersive="true"] .social-role-art > i {
+ animation: sx-orbit 18s linear infinite !important;
+}
+
+.social-experience[data-immersive="true"] .social-page-intro .social-emoji-float {
+ opacity: 0.2 !important;
+}
+
+/*
+ * Immersive is an explicit opt-in. It must beat OS prefers-reduced-motion
+ * (Windows “显示动画” off, automation browsers, etc.). Light mode still respects reduce.
+ */
+@media (prefers-reduced-motion: reduce) {
+ .social-experience[data-immersive="true"] .social-constellation,
+ .social-experience[data-immersive="true"] .social-pointer-glow {
+ display: block !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-emoji-float {
+ animation-name: social-emoji-fly !important;
+ animation-timing-function: ease-in-out !important;
+ animation-iteration-count: infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-home .social-fx-orb,
+ .social-experience[data-immersive="true"] .social-workspace .social-fx-orb {
+ animation: social-orb-drift 8s ease-in-out infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-workspace .social-title-emoji {
+ animation: none !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-room-hero-emoji i {
+ animation-name: social-emoji-fly !important;
+ animation-iteration-count: infinite !important;
+ opacity: 0.22 !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-workspace .social-btn-pulse::before,
+ .social-experience[data-immersive="true"] .social-workspace .social-btn-pulse::after {
+ animation: social-btn-ring 1.45s ease-out infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-fx-belt-track {
+ animation: social-belt-run 48s linear infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .connection-signal i {
+ animation: social-signal-bars 1s ease-in-out infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .connection-status-dot,
+ .social-experience[data-immersive="true"] .connection-person-avatar > i {
+ animation: social-live-ping 1.25s ease-out infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .connection-orbit-traveler {
+ animation-duration: 12s !important;
+ animation-play-state: running !important;
+ }
+
+ .social-experience[data-immersive="true"] .connection-flight-path {
+ animation-play-state: running !important;
+ }
+
+ .social-experience[data-immersive="true"] .connection-center-icon {
+ animation: social-center-glow 2.4s ease-in-out infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .connection-center-icon svg {
+ animation: connection-breathe 2s ease-in-out infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-home .social-title-emoji {
+ display: inline-block !important;
+ animation: none !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-home .social-btn-pulse::before,
+ .social-experience[data-immersive="true"] .social-home .social-btn-pulse::after,
+ .social-experience[data-immersive="true"] .connection-join::after,
+ .social-experience[data-immersive="true"]
+ .social-people-chip.is-online
+ .social-people-chip-ava::before {
+ animation: social-btn-ring 1.4s ease-out infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .connection-audio-bars i {
+ animation: connection-audio 1.05s ease-in-out infinite !important;
+ animation-play-state: running !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-home .connection-cafe .social-panel-ico {
+ animation: social-ico-bounce 1.55s ease-in-out infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-home .social-people-bar-avs img {
+ animation: social-ava-bob 1.8s ease-in-out infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-home .social-count-pulse {
+ animation: social-count-glow 1.15s ease-in-out infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-home .nav-logo .logo-icon {
+ animation: social-logo-spin 6s linear infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-ambient i {
+ animation: sx-aurora 18s ease-in-out infinite alternate !important;
+ }
+
+ .social-experience[data-immersive="true"] .social-spark-dot {
+ animation: social-spark-blink 1.2s ease-in-out infinite !important;
+ }
+
+ .social-experience[data-immersive="true"] .reveal.visible .social-spark-path {
+ animation: social-spark-draw 1s ease forwards !important;
+ }
+}
diff --git a/src/modules/hub/app/shell-tokens.css b/src/modules/hub/app/shell-tokens.css
new file mode 100644
index 0000000..66297cf
--- /dev/null
+++ b/src/modules/hub/app/shell-tokens.css
@@ -0,0 +1,166 @@
+/* Slim shell tokens + nav base — replaces @community/app/globals.css on /hub */
+:root {
+ --bg-primary: #0a0e17;
+ --bg-secondary: #111827;
+ --bg-card: rgba(17, 24, 39, 0.7);
+ --bg-glass: rgba(255, 255, 255, 0.05);
+ --text-primary: #f1f5f9;
+ --text-secondary: #94a3b8;
+ --text-muted: #64748b;
+ --accent-1: #ff6b6b;
+ --accent-2: #ffe66d;
+ --accent-3: #4ecdc4;
+ --accent-4: #4ecdc4;
+ --gradient-main: linear-gradient(135deg, #ff6b6b, #ffe66d, #4ecdc4);
+ --gradient-text: linear-gradient(135deg, #ff6b6b 0%, #ffe66d 50%, #4ecdc4 100%);
+ --shadow-glow: 0 0 40px rgba(78, 205, 196, 0.15);
+ --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
+ --border-glass: 1px solid rgba(255, 255, 255, 0.08);
+ --radius-sm: 8px;
+ --radius-md: 16px;
+ --radius-lg: 24px;
+ --radius-xl: 32px;
+ --font-display: var(--font-outfit), "PingFang SC", "Hiragino Sans GB",
+ "Microsoft YaHei", "Noto Sans SC", sans-serif;
+ --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
+ "Noto Sans SC", var(--font-outfit), sans-serif;
+ --nav-height: 72px;
+ --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
+}
+
+[data-theme="light"] {
+ --bg-primary: #f8fafc;
+ --bg-secondary: #ffffff;
+ --bg-card: rgba(255, 255, 255, 0.85);
+ --bg-glass: rgba(0, 0, 0, 0.03);
+ --text-primary: #0f172a;
+ --text-secondary: #475569;
+ --text-muted: #94a3b8;
+ --shadow-glow: 0 0 40px rgba(78, 205, 196, 0.1);
+ --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
+ --border-glass: 1px solid rgba(0, 0, 0, 0.06);
+}
+
+.community-root.hub-skin {
+ min-height: 100dvh;
+ background: var(--bg-primary);
+ color: var(--text-primary);
+ font-family: var(--font-body);
+}
+
+.navbar {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: var(--nav-height);
+ z-index: 1000;
+ transition: all var(--transition);
+ background: transparent;
+}
+
+.navbar.scrolled {
+ background: rgba(10, 14, 23, 0.85);
+ backdrop-filter: blur(20px);
+ border-bottom: var(--border-glass);
+ box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
+}
+
+[data-theme="light"] .navbar.scrolled {
+ background: rgba(248, 250, 252, 0.9);
+}
+
+.nav-container {
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 0 24px;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ gap: 16px;
+}
+
+.nav-container > .logo {
+ flex-shrink: 0;
+}
+
+.nav-container > .nav-links {
+ flex: 1;
+ justify-content: center;
+ min-width: 0;
+}
+
+.logo {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ font-family: var(--font-display);
+ font-weight: 800;
+ font-size: 1.35rem;
+ letter-spacing: -0.02em;
+}
+
+.logo span {
+ background: linear-gradient(135deg, #ff6b6b, #ffe66d, #4ecdc4);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ background-clip: text;
+}
+
+.logo-icon {
+ width: 36px;
+ height: 36px;
+ flex-shrink: 0;
+}
+
+.nav-links {
+ display: flex;
+ gap: 8px;
+}
+
+.nav-links a {
+ padding: 8px 16px;
+ border-radius: var(--radius-sm);
+ font-size: 0.9rem;
+ font-weight: 500;
+ color: var(--text-secondary);
+ transition: all var(--transition);
+}
+
+.nav-links a:hover {
+ color: var(--text-primary);
+ background: var(--bg-glass);
+}
+
+.mobile-menu-btn {
+ display: none;
+ flex-direction: column;
+ gap: 5px;
+ background: none;
+ border: none;
+ cursor: pointer;
+ padding: 8px;
+}
+
+.mobile-menu-btn span {
+ display: block;
+ width: 24px;
+ height: 2px;
+ background: var(--text-primary);
+ border-radius: 2px;
+ transition: all 0.3s ease;
+ transform-origin: center;
+}
+
+.mobile-menu-btn.open span:nth-child(1) {
+ transform: translateY(7px) rotate(45deg);
+}
+
+.mobile-menu-btn.open span:nth-child(2) {
+ opacity: 0;
+ transform: scaleX(0);
+}
+
+.mobile-menu-btn.open span:nth-child(3) {
+ transform: translateY(-7px) rotate(-45deg);
+}
diff --git a/src/modules/hub/app/studio.css b/src/modules/hub/app/studio.css
new file mode 100644
index 0000000..94279ec
--- /dev/null
+++ b/src/modules/hub/app/studio.css
@@ -0,0 +1,1077 @@
+.social-fieldset {
+ display: grid;
+ gap: 18px;
+ border: 0;
+ margin: 0;
+ padding: 0;
+ min-width: 0;
+}
+.social-fieldset:disabled {
+ opacity: 0.7;
+}
+.social-profile-studio {
+ display: grid;
+ grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
+ gap: 28px;
+ align-items: start;
+}
+.social-profile-studio .social-form-grid {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+}
+.social-profile-studio .social-section-label {
+ margin-top: 0;
+}
+.social-profile-studio .social-form small {
+ text-align: right;
+ color: var(--text-muted);
+ font-size: 10px;
+}
+.social-profile-preview {
+ min-width: 0;
+ padding: 12px 8px;
+}
+.social-profile-passport {
+ position: relative;
+ isolation: isolate;
+ overflow: hidden;
+ min-height: 415px;
+ border: 1px solid #4ecdc43b;
+ border-radius: 22px;
+ padding: 31px;
+ background: linear-gradient(
+ 135deg,
+ color-mix(in srgb, var(--bg-secondary) 85%, #4ecdc4),
+ var(--bg-secondary) 62%
+ );
+ box-shadow: 0 20px 55px #0002;
+ transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
+ transition:
+ transform 0.6s var(--sx-ease),
+ box-shadow 0.6s;
+}
+.social-profile-passport:hover {
+ transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-5px);
+ box-shadow: 0 26px 65px #4ecdc415;
+}
+.social-passport-pattern {
+ position: absolute;
+ z-index: -1;
+ color: #4ecdc430;
+ top: 13px;
+ right: -35px;
+ animation: sx-orbit 90s linear infinite;
+}
+.social-profile-monogram {
+ width: 60px;
+ height: 60px;
+ display: grid;
+ place-items: center;
+ border: 1px solid #4ecdc443;
+ border-radius: 18px;
+ color: var(--sx-mint);
+ font-size: 28px;
+ background: #4ecdc40c;
+ margin-bottom: 24px;
+ box-shadow: 0 0 35px #4ecdc411;
+}
+.social-profile-face {
+ width: 88px;
+ height: 88px;
+ margin-bottom: 24px;
+ border-radius: 22px;
+ overflow: hidden;
+ border: 1px solid #4ecdc443;
+ box-shadow: 0 0 35px #4ecdc411;
+ background: #0c0c0f;
+}
+.social-profile-face img {
+ display: block;
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+}
+.social-profile-passport .social-page-kicker {
+ font-size: 8px;
+ letter-spacing: 0.18em;
+}
+.social-profile-passport h2 {
+ font-size: 30px;
+ margin: 11px 0 6px;
+ overflow-wrap: anywhere;
+}
+.social-profile-passport > p {
+ font-size: 12px;
+ color: var(--text-secondary);
+ line-height: 1.9;
+ overflow-wrap: anywhere;
+}
+.social-profile-passport .social-member-city {
+ margin: 15px 0;
+}
+.social-profile-passport .social-tags {
+ margin: 16px 0;
+}
+.social-profile-passport .social-profile-bio {
+ min-height: 55px;
+ white-space: pre-wrap;
+}
+.social-profile-passport footer {
+ margin-top: 25px;
+ border-top: 1px dashed var(--sx-line);
+ padding-top: 17px;
+ display: flex;
+ justify-content: space-between;
+ gap: 14px;
+ font-size: 8px;
+ letter-spacing: 0.15em;
+ color: var(--text-muted);
+}
+.social-profile-passport footer span {
+ font-size: 18px;
+ color: var(--sx-coral);
+}
+.social-profile-progress {
+ margin: 27px 0;
+}
+.social-profile-progress > div {
+ display: flex;
+ justify-content: space-between;
+ font-size: 11px;
+ margin-bottom: 9px;
+ color: var(--text-secondary);
+}
+.social-profile-progress strong {
+ color: var(--sx-mint);
+}
+.social-profile-progress progress {
+ width: 100%;
+ height: 4px;
+ appearance: none;
+ border: none;
+ border-radius: 5px;
+ overflow: hidden;
+}
+.social-profile-progress progress::-webkit-progress-bar {
+ background: var(--bg-glass);
+}
+.social-profile-progress progress::-webkit-progress-value {
+ background: var(--sx-mint);
+ transition: width 0.6s var(--sx-ease);
+}
+.social-profile-progress p {
+ font-size: 10px;
+ color: var(--text-muted);
+ margin-top: 9px;
+}
+.social-role-card {
+ gap: 15px;
+ overflow: hidden;
+}
+.social-role-art {
+ position: relative;
+ display: grid;
+ place-items: center;
+ min-height: 88px;
+ margin: -4px -4px 4px;
+ border-radius: 14px;
+ background:
+ radial-gradient(circle at 20% 30%, #4ecdc433, transparent 55%),
+ radial-gradient(circle at 80% 70%, #ff6b6b28, transparent 50%),
+ linear-gradient(135deg, #4ecdc40f, #ffe66d0a);
+ color: var(--sx-mint);
+ overflow: hidden;
+}
+.social-role-art > span {
+ position: absolute;
+ left: 14px;
+ top: 10px;
+ font-family: var(--font-display, inherit);
+ font-size: 28px;
+ font-weight: 650;
+ letter-spacing: -0.06em;
+ opacity: 0.22;
+}
+.social-role-art > i {
+ position: absolute;
+ width: 120px;
+ height: 120px;
+ border: 1px solid #4ecdc433;
+ border-radius: 50%;
+ animation: sx-orbit 22s linear infinite;
+}
+.social-role-art > i:nth-of-type(2) {
+ width: 70px;
+ height: 70px;
+ border-color: #ff6b6b33;
+ animation-direction: reverse;
+ animation-duration: 16s;
+}
+.social-role-art > svg {
+ position: relative;
+ z-index: 1;
+}
+.social-role-symbol {
+ display: grid;
+ place-items: center;
+ width: 54px;
+ height: 54px;
+ border-radius: 16px;
+ border: 1px solid #4ecdc42b;
+ color: var(--sx-mint);
+ background: #4ecdc40c;
+ transition:
+ rotate 0.5s var(--sx-ease),
+ scale 0.5s;
+}
+.social-role-symbol.tone-1 {
+ color: var(--sx-coral);
+ background: #ff6b6b0c;
+ border-color: #ff6b6b2b;
+}
+.social-role-symbol.tone-2 {
+ color: var(--sx-gold);
+ background: #ffe1950c;
+ border-color: #ffe1952b;
+}
+.social-role-card:hover .social-role-symbol {
+ rotate: -7deg;
+ scale: 1.08;
+}
+.social-role-type {
+ font-size: 9px;
+ letter-spacing: 0.1em;
+ color: var(--sx-mint);
+}
+.social-role-card h2 {
+ font-size: 19px;
+}
+.social-role-card > p {
+ margin: 0;
+}
+.social-role-meta {
+ display: flex;
+ justify-content: space-between;
+ gap: 10px;
+ flex-wrap: wrap;
+ padding-block: 13px;
+ border-block: 1px solid var(--sx-line);
+ font-size: 10px;
+ color: var(--text-secondary);
+}
+.social-role-meta > span:first-child {
+ display: flex;
+ gap: 6px;
+ align-items: center;
+}
+.social-role-card .social-tags {
+ margin-bottom: 8px;
+}
+.social-role-card > .social-btn {
+ margin-top: auto;
+}
+.social-library-card {
+ padding: 16px !important;
+ gap: 16px;
+ overflow: hidden;
+}
+.social-library-art {
+ position: relative;
+ display: grid;
+ place-items: center;
+ width: 100%;
+ height: 205px;
+ padding: 0;
+ border: 1px solid var(--sx-line);
+ border-radius: 13px;
+ background:
+ radial-gradient(ellipse at 80% 0%, #4ecdc42a, transparent 70%),
+ linear-gradient(160deg, #15302e, #142231 70%);
+ color: #e4f1ee;
+ overflow: hidden;
+ isolation: isolate;
+ cursor: pointer;
+}
+.social-library-art.library-tone-1 {
+ background:
+ radial-gradient(ellipse at 80% 0%, #ff6b6b3b, transparent 70%),
+ linear-gradient(160deg, #3c262a, #192534 70%);
+}
+.social-library-art.library-tone-2 {
+ background:
+ radial-gradient(ellipse at 80% 0%, #ffe19527, transparent 70%),
+ linear-gradient(160deg, #333427, #172835 70%);
+}
+.social-library-number {
+ position: absolute;
+ top: 17px;
+ left: 18px;
+ font-size: 10px;
+ font-family: monospace;
+ letter-spacing: 0.15em;
+ color: #fff7;
+}
+.social-film-scene {
+ font-size: 63px;
+ filter: drop-shadow(0 12px 18px #0004);
+ transition: transform 0.65s var(--sx-ease);
+ transform: rotate(-8deg);
+}
+.social-library-art:hover .social-film-scene {
+ transform: rotate(6deg) scale(1.15) translateY(-7px);
+}
+.social-film-orbit {
+ position: absolute;
+ width: 230px;
+ height: 230px;
+ border: 1px solid #4ecdc42b;
+ border-radius: 50%;
+ transform: rotateX(58deg) rotate(-25deg);
+ animation: social-film-drift 9s ease-in-out infinite alternate;
+}
+.social-film-orbit::after {
+ content: "";
+ position: absolute;
+ inset: 25px;
+ border: 1px dashed #ffffff20;
+ border-radius: 50%;
+}
+.social-film-grain {
+ position: absolute;
+ inset: 0;
+ opacity: 0.4;
+ background-image: radial-gradient(#fff4 0.6px, transparent 0.6px);
+ background-size: 5px 5px;
+ pointer-events: none;
+ mask-image: linear-gradient(transparent, #000);
+}
+.social-film-play {
+ position: absolute;
+ right: 17px;
+ bottom: 16px;
+ width: 41px;
+ height: 41px;
+ border: 1px solid #ffffff40;
+ border-radius: 50%;
+ background: #ffffff0b;
+ backdrop-filter: blur(7px);
+ display: grid;
+ place-items: center;
+ transition:
+ background 0.25s,
+ scale 0.25s;
+}
+.social-library-art:hover .social-film-play {
+ background: #4ecdc42a;
+ scale: 1.1;
+}
+.social-library-art > small {
+ position: absolute;
+ left: 18px;
+ bottom: 21px;
+ font-size: 10px;
+ color: #ffffffa8;
+}
+.social-library-meta {
+ font-size: 10px;
+ color: var(--text-muted);
+}
+.social-library-card h2 {
+ font-size: 18px;
+ letter-spacing: -0.02em;
+ padding-inline: 3px;
+}
+.social-library-card > p {
+ padding-inline: 3px;
+ min-height: 43px;
+}
+.social-library-card .social-card-actions {
+ margin-top: auto;
+ padding-bottom: 4px;
+}
+.social-library-grid.is-books {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+}
+.is-books .social-library-art {
+ height: 265px;
+}
+.social-book-cover {
+ width: 155px;
+ height: 212px;
+ border-radius: 2px 9px 9px 2px;
+ background: linear-gradient(
+ 90deg,
+ #4ecdc438 0 4px,
+ #0d302c 4px,
+ #134a43 10px,
+ #173b35 11px,
+ #173b35 100%
+ );
+ box-shadow:
+ -14px 15px 30px #0004,
+ inset -4px 0 0 #ffffff12;
+ padding: 20px;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 16px;
+ color: #b7e0d2;
+ transform: perspective(600px) rotateY(-14deg) rotateZ(-8deg);
+ transition: transform 0.6s var(--sx-ease);
+}
+.library-tone-1 .social-book-cover {
+ background: linear-gradient(
+ 90deg,
+ #ff6b6b38 0 4px,
+ #4a2327 4px,
+ #612d34 10px,
+ #4b2930 11px,
+ #4b2930 100%
+ );
+ color: #eec3b4;
+}
+.social-library-art:hover .social-book-cover {
+ transform: perspective(600px) rotateY(-2deg) rotateZ(0) translateY(-5px);
+}
+.social-book-cover small {
+ font-size: 6px;
+ letter-spacing: 0.15em;
+}
+.social-book-cover strong {
+ font-size: 20px;
+ font-weight: 500;
+ line-height: 1.5;
+ text-align: left;
+}
+.social-book-cover > span {
+ font-size: 5px;
+ margin-top: auto;
+ letter-spacing: 0.12em;
+}
+.social-resource-player {
+ width: 100%;
+ border-radius: 12px;
+ margin-bottom: 20px;
+ background: #000;
+ max-height: 360px;
+}
+.social-library-prompt {
+ padding: 20px;
+ border: 1px solid var(--sx-line);
+ border-radius: 12px;
+ background: #4ecdc406;
+}
+.social-library-prompt span {
+ display: block;
+ font-size: 10px;
+ color: var(--sx-mint);
+ margin-bottom: 10px;
+}
+.social-library-prompt strong {
+ font-size: 14px;
+ font-weight: 500;
+ line-height: 1.8;
+}
+.social-feedback-panel {
+ max-width: 800px;
+ margin: auto;
+}
+.social-feedback-heading {
+ display: flex;
+ gap: 19px;
+ align-items: center;
+ margin-bottom: 30px;
+}
+.social-feedback-heart {
+ color: var(--sx-coral);
+ width: 65px;
+ height: 65px;
+ display: grid;
+ place-items: center;
+ border: 1px solid #ff6b6b30;
+ border-radius: 19px;
+ background: #ff6b6b07;
+ flex-shrink: 0;
+ animation: sx-breathe 4s ease-in-out infinite;
+}
+.social-feedback-heading h2 {
+ font-size: 21px;
+ margin-bottom: 9px;
+}
+.social-feedback-heading p {
+ color: var(--text-muted);
+ font-size: 12px;
+ line-height: 1.8;
+}
+.social-welcome-banner {
+ display: flex;
+ align-items: center;
+ gap: 24px;
+ padding: 30px;
+ margin-bottom: 25px;
+ border: 1px solid #4ecdc432;
+ border-radius: 18px;
+ background: linear-gradient(110deg, #4ecdc40c, transparent);
+}
+.social-welcome-banner h2 {
+ font-size: 21px;
+ margin-bottom: 8px;
+}
+.social-welcome-banner p {
+ font-size: 12px;
+ color: var(--text-muted);
+ line-height: 1.8;
+}
+.social-welcome-banner .social-btn {
+ margin-left: auto;
+ flex-shrink: 0;
+}
+.social-welcome-faces {
+ display: flex;
+ flex-wrap: wrap;
+ width: 85px;
+ flex-shrink: 0;
+}
+.social-welcome-faces span {
+ display: grid;
+ place-items: center;
+ width: 39px;
+ height: 39px;
+ border-radius: 50%;
+ border: 1px solid var(--sx-line);
+ background: var(--bg-secondary);
+ font-size: 19px;
+ margin: -2px;
+ animation: social-welcome-bob 4s ease-in-out infinite alternate;
+}
+.social-welcome-faces span:nth-child(2n) {
+ animation-delay: -2s;
+}
+.social-onboarding-card {
+ gap: 18px;
+}
+.social-onboarding-card .social-card-top {
+ color: var(--sx-mint);
+}
+.social-onboarding-card .social-card-top > span {
+ font-family: monospace;
+ font-size: 27px;
+ color: var(--text-muted);
+ opacity: 0.4;
+}
+.social-onboarding-card h2 {
+ font-size: 19px;
+}
+.social-onboarding-card .social-btn {
+ margin-top: auto;
+}
+.social-membership-banner {
+ display: flex;
+ gap: 45px;
+ align-items: center;
+ border: 1px solid #ffe19533;
+ border-radius: 21px;
+ padding: 50px;
+ background:
+ radial-gradient(ellipse at 0% 20%, #ffe1950d, transparent 65%),
+ var(--sx-surface);
+}
+.social-membership-emblem {
+ width: 155px;
+ height: 155px;
+ flex-shrink: 0;
+ position: relative;
+ display: grid;
+ place-items: center;
+ color: var(--sx-gold);
+ border: 1px solid #ffe19525;
+ border-radius: 50%;
+}
+.social-membership-emblem i {
+ position: absolute;
+ inset: 10px;
+ border: 1px dashed #ffe19535;
+ border-radius: 50%;
+ animation: sx-orbit 25s linear infinite;
+}
+.social-membership-emblem i:last-child {
+ inset: 28px;
+ animation-direction: reverse;
+}
+.social-membership-emblem::after {
+ content: "";
+ position: absolute;
+ inset: 36px;
+ border-radius: 50%;
+ box-shadow: 0 0 60px #ffe19515;
+}
+.social-membership-banner h2 {
+ font-size: 30px;
+ margin: 15px 0;
+ letter-spacing: -0.03em;
+}
+.social-membership-banner p {
+ font-size: 13px;
+ line-height: 1.9;
+ color: var(--text-secondary);
+ margin-bottom: 25px;
+}
+.social-membership-banner .social-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+}
+.social-membership-card {
+ gap: 18px;
+}
+.social-membership-card > svg {
+ color: var(--sx-gold);
+}
+.social-membership-card h2 {
+ font-size: 17px;
+}
+.social-membership-card > span {
+ margin-top: auto;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ font-size: 12px;
+ color: var(--sx-mint);
+}
+@keyframes social-film-drift {
+ to {
+ transform: rotateX(45deg) rotate(10deg);
+ scale: 1.1;
+ }
+}
+@keyframes social-welcome-bob {
+ to {
+ translate: 0 -6px;
+ rotate: 7deg;
+ }
+}
+@media (max-width: 900px) {
+ .social-profile-studio {
+ gap: 20px;
+ grid-template-columns: 1fr;
+ }
+ .social-profile-preview {
+ max-width: 550px;
+ width: 100%;
+ margin: auto;
+ }
+ .social-welcome-banner {
+ flex-wrap: wrap;
+ }
+ .social-welcome-banner .social-btn {
+ margin-left: 0;
+ }
+ .social-membership-banner {
+ padding: 30px;
+ gap: 26px;
+ }
+ .social-membership-emblem {
+ width: 115px;
+ height: 115px;
+ }
+}
+@media (max-width: 600px) {
+ .social-profile-studio .social-form-grid {
+ grid-template-columns: 1fr;
+ }
+ .social-profile-passport {
+ transform: none;
+ padding: 25px;
+ }
+ .social-library-grid.is-books {
+ grid-template-columns: 1fr;
+ }
+ .social-feedback-heading {
+ align-items: flex-start;
+ gap: 13px;
+ }
+ .social-feedback-heading h2 {
+ font-size: 18px;
+ line-height: 1.6;
+ }
+ .social-feedback-heart {
+ width: 45px;
+ height: 45px;
+ border-radius: 12px;
+ }
+ .social-feedback-heart svg {
+ width: 24px;
+ }
+ .social-welcome-banner {
+ padding: 22px;
+ gap: 20px;
+ }
+ .social-welcome-banner h2 {
+ font-size: 19px;
+ }
+ .social-membership-banner {
+ flex-direction: column;
+ align-items: flex-start;
+ padding: 25px;
+ }
+ .social-membership-banner h2 {
+ font-size: 25px;
+ }
+ .social-membership-emblem {
+ width: 95px;
+ height: 95px;
+ }
+ .social-membership-emblem svg {
+ width: 36px;
+ }
+ .social-library-art {
+ height: 210px;
+ }
+ .social-profile-preview > .social-btn {
+ width: 100%;
+ }
+ .social-filters button,
+ .social-save,
+ .social-room-channels a {
+ min-height: 44px;
+ }
+ .social-message-tools button {
+ min-height: 40px;
+ font-size: 11px;
+ }
+ .social-fx-control {
+ width: 44px;
+ height: 44px;
+ min-height: 44px;
+ }
+ .social-search button {
+ min-width: 32px;
+ min-height: 42px;
+ }
+}
+
+/* —— 招聘看板(/hub/team)—— */
+.social-hire {
+ display: flex;
+ flex-direction: column;
+ gap: 18px;
+}
+.social-hire-hero {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ padding: 8px 0 4px;
+}
+.social-hire-eyebrow {
+ margin: 0;
+ font-size: 12px;
+ letter-spacing: 0.12em;
+ color: var(--sx-mint, #4ecdc4);
+}
+.social-hire-hero h1 {
+ margin: 0;
+ display: flex;
+ flex-wrap: wrap;
+ align-items: baseline;
+ gap: 10px 14px;
+ font-family: var(--font-display, inherit);
+ line-height: 1.1;
+}
+.social-hire-title {
+ font-size: clamp(34px, 7vw, 56px);
+ font-weight: 700;
+ letter-spacing: -0.05em;
+ color: var(--text-primary);
+}
+.social-hire-accent {
+ font-size: clamp(14px, 2.2vw, 18px);
+ font-weight: 550;
+ color: var(--text-secondary);
+}
+.social-hire-desc {
+ margin: 0;
+ max-width: 36rem;
+ color: var(--text-secondary);
+ font-size: 14px;
+ line-height: 1.6;
+}
+.social-hire-switch {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ padding: 4px;
+ border-radius: 999px;
+ border: 1px solid var(--sx-line, rgba(255, 255, 255, 0.1));
+ background: rgba(255, 255, 255, 0.03);
+}
+.social-hire-switch-on,
+.social-hire-switch-off {
+ display: inline-flex;
+ align-items: center;
+ gap: 7px;
+ min-height: 40px;
+ padding: 0 14px;
+ border-radius: 999px;
+ font-size: 13px;
+ font-weight: 600;
+ text-decoration: none;
+ color: var(--text-secondary);
+ transition:
+ background 0.25s ease,
+ color 0.25s ease,
+ transform 0.25s ease;
+}
+.social-hire-switch-on {
+ color: #0a0e17;
+ background: var(--sx-mint, #4ecdc4);
+}
+.social-hire-switch-off:hover {
+ color: var(--text-primary);
+ background: rgba(255, 255, 255, 0.06);
+}
+.social-hire-rail {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ padding: 14px;
+ border-radius: 18px;
+ border: 1px solid var(--sx-line, rgba(255, 255, 255, 0.08));
+ background:
+ linear-gradient(180deg, rgba(78, 205, 196, 0.06), transparent 60%),
+ rgba(17, 24, 39, 0.55);
+}
+.social-hire-kinds {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+}
+.social-hire-kinds > button {
+ min-height: 40px;
+ padding: 0 14px;
+ border-radius: 999px;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: transparent;
+ color: var(--text-secondary);
+ font-size: 12px;
+ font-weight: 550;
+ cursor: pointer;
+ transition:
+ background 0.2s ease,
+ border-color 0.2s ease,
+ color 0.2s ease,
+ transform 0.2s ease;
+}
+.social-hire-kinds > button.is-on,
+.social-hire-saved.is-on {
+ color: #0a0e17;
+ background: var(--sx-mint, #4ecdc4);
+ border-color: transparent;
+}
+.social-hire-kinds > button:hover:not(.is-on) {
+ color: var(--text-primary);
+ border-color: rgba(78, 205, 196, 0.35);
+}
+.social-hire-saved {
+ margin-left: auto;
+}
+.social-hire-count {
+ display: flex;
+ align-items: baseline;
+ gap: 8px;
+ flex-wrap: wrap;
+ font-size: 13px;
+ color: var(--text-secondary);
+}
+.social-hire-count strong {
+ font-family: var(--font-display, inherit);
+ font-size: 28px;
+ font-weight: 650;
+ letter-spacing: -0.04em;
+ color: var(--text-primary);
+ line-height: 1;
+}
+.social-hire-reset {
+ margin-left: auto;
+ border: 0;
+ background: transparent;
+ color: var(--sx-mint, #4ecdc4);
+ font-size: 12px;
+ cursor: pointer;
+ min-height: 36px;
+ padding: 0 4px;
+}
+.social-hire-board {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+}
+.social-hire-row {
+ display: grid;
+ grid-template-columns: 48px minmax(0, 1fr) auto;
+ gap: 12px 14px;
+ align-items: start;
+ padding: 14px 16px;
+ border-radius: 16px;
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ background: rgba(17, 24, 39, 0.72);
+ position: relative;
+ overflow: hidden;
+ transition:
+ border-color 0.25s ease,
+ transform 0.25s ease,
+ background 0.25s ease,
+ box-shadow 0.25s ease;
+}
+.social-hire-row::before {
+ content: "";
+ position: absolute;
+ inset: 0 auto 0 0;
+ width: 3px;
+ background: var(--sx-mint, #4ecdc4);
+ opacity: 0.85;
+}
+.social-hire-row.tone-volunteer::before {
+ background: var(--sx-coral, #ff6b6b);
+}
+.social-hire-row.tone-fulltime::before {
+ background: var(--sx-gold, #ffe66d);
+}
+.social-hire-row:hover {
+ border-color: rgba(78, 205, 196, 0.28);
+ background: rgba(22, 32, 48, 0.92);
+ transform: translateY(-2px);
+ box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
+}
+.social-hire-row-mark {
+ display: grid;
+ place-items: center;
+ width: 52px;
+ height: 52px;
+ border-radius: 16px;
+ border: 1px solid rgba(78, 205, 196, 0.22);
+ color: var(--sx-mint, #4ecdc4);
+ background: rgba(78, 205, 196, 0.08);
+}
+.social-hire-row.tone-volunteer .social-hire-row-mark {
+ color: var(--sx-coral, #ff6b6b);
+ border-color: rgba(255, 107, 107, 0.25);
+ background: rgba(255, 107, 107, 0.08);
+}
+.social-hire-row.tone-fulltime .social-hire-row-mark {
+ color: var(--sx-gold, #ffe66d);
+ border-color: rgba(255, 230, 109, 0.28);
+ background: rgba(255, 230, 109, 0.08);
+}
+.social-hire-row-body {
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+ min-width: 0;
+}
+.social-hire-row-top {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 10px;
+}
+.social-hire-kind {
+ font-size: 11px;
+ letter-spacing: 0.06em;
+ color: var(--sx-mint, #4ecdc4);
+ text-transform: none;
+}
+.social-hire-row.tone-volunteer .social-hire-kind {
+ color: var(--sx-coral, #ff6b6b);
+}
+.social-hire-row.tone-fulltime .social-hire-kind {
+ color: var(--sx-gold, #ffe66d);
+}
+.social-hire-row-body h2 {
+ margin: 0;
+ font-family: var(--font-display, inherit);
+ font-size: clamp(17px, 2.4vw, 22px);
+ font-weight: 650;
+ letter-spacing: -0.03em;
+ line-height: 1.25;
+}
+.social-hire-row-body > p {
+ margin: 0;
+ color: var(--text-secondary);
+ font-size: 13px;
+ line-height: 1.55;
+}
+.social-hire-meta {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px 16px;
+ align-items: center;
+ font-size: 12px;
+ color: var(--text-muted);
+}
+.social-hire-meta > span {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+}
+.social-hire-pay {
+ color: var(--text-primary);
+ font-weight: 600;
+}
+.social-hire-tags {
+ margin: 2px 0 0;
+}
+.social-hire-row-cta {
+ display: flex;
+ align-items: center;
+ align-self: center;
+}
+.social-hire-row-cta .social-btn {
+ white-space: nowrap;
+}
+.social-apply-hero.tone-volunteer {
+ border-color: rgba(255, 107, 107, 0.28);
+}
+.social-apply-hero.tone-fulltime {
+ border-color: rgba(255, 230, 109, 0.28);
+}
+
+@media (max-width: 720px) {
+ .social-hire-row {
+ grid-template-columns: 44px minmax(0, 1fr);
+ }
+ .social-hire-row-mark {
+ width: 44px;
+ height: 44px;
+ border-radius: 14px;
+ }
+ .social-hire-row-cta {
+ grid-column: 1 / -1;
+ width: 100%;
+ }
+ .social-hire-row-cta .social-btn {
+ width: 100%;
+ justify-content: center;
+ min-height: 44px;
+ }
+ .social-hire-saved {
+ margin-left: 0;
+ }
+ .social-hire-rail {
+ padding: 12px;
+ }
+}
+
+@media (min-width: 960px) {
+ .social-hire-rail {
+ flex-direction: row;
+ align-items: center;
+ }
+ .social-hire-rail .social-search {
+ flex: 1;
+ min-width: 220px;
+ }
+ .social-hire-kinds {
+ flex: 1.2;
+ justify-content: flex-end;
+ }
+}
diff --git a/src/modules/hub/app/theme2.css b/src/modules/hub/app/theme2.css
new file mode 100644
index 0000000..9e8b1bd
--- /dev/null
+++ b/src/modules/hub/app/theme2.css
@@ -0,0 +1,494 @@
+/**
+ * 游民社区 · 主题 2「琥珀信号」
+ * 与主题 1(旅居社群对齐)完全独立;html[data-hub-skin="2"] 启用。
+ */
+
+html[data-hub-skin="2"] .hub-skin {
+ --t2-ink: #07070a;
+ --t2-panel: #101016;
+ --t2-line: rgba(245, 158, 11, 0.22);
+ --t2-amber: #f59e0b;
+ --t2-amber-dim: rgba(245, 158, 11, 0.14);
+ --t2-cyan: #22d3ee;
+ --t2-text: #f4f1ea;
+ --t2-muted: #9a958c;
+ --t2-danger: #fb7185;
+ --t2-radius: 4px;
+ --t2-font-display: "Segoe UI Variable Display", "Bahnschrift", "DIN Alternate",
+ var(--font-outfit), system-ui, sans-serif;
+ --t2-font-body: var(--font-noto-sc), "Segoe UI", system-ui, sans-serif;
+ --sc-bg: var(--t2-ink);
+ --sc-bg-card: color-mix(in srgb, var(--t2-panel) 92%, transparent);
+ --sc-bg-glass: var(--t2-amber-dim);
+ --sc-text: var(--t2-text);
+ --sc-muted: var(--t2-muted);
+ --sc-accent-1: var(--t2-amber);
+ --sc-accent-2: #fbbf24;
+ --sc-accent-3: var(--t2-cyan);
+ --sc-gradient: linear-gradient(120deg, #f59e0b 0%, #fbbf24 45%, #22d3ee 100%);
+ --sc-border: 1px solid var(--t2-line);
+ --sc-radius: var(--t2-radius);
+ --sc-shadow: 0 0 0 1px rgba(245, 158, 11, 0.08), 0 24px 60px rgba(0, 0, 0, 0.45);
+ --sc-font-display: var(--t2-font-display);
+ --sc-font-body: var(--t2-font-body);
+}
+
+html.light[data-hub-skin="2"] .hub-skin,
+html[data-theme="light"][data-hub-skin="2"] .hub-skin {
+ --t2-ink: #f6f3eb;
+ --t2-panel: #ffffff;
+ --t2-line: rgba(120, 80, 10, 0.18);
+ --t2-amber: #b45309;
+ --t2-amber-dim: rgba(180, 83, 9, 0.08);
+ --t2-cyan: #0e7490;
+ --t2-text: #1c1917;
+ --t2-muted: #78716c;
+ --sc-shadow: 0 0 0 1px rgba(180, 83, 9, 0.08), 0 18px 40px rgba(28, 25, 23, 0.08);
+}
+
+/* —— 壳 / 背景 —— */
+html[data-hub-skin="2"] .social-flow,
+html[data-hub-skin="2"] .social-root,
+html[data-hub-skin="2"] .home-flow.social-flow {
+ background:
+ linear-gradient(180deg, rgba(245, 158, 11, 0.07), transparent 28%),
+ repeating-linear-gradient(
+ 0deg,
+ transparent,
+ transparent 47px,
+ rgba(245, 158, 11, 0.035) 48px
+ ),
+ radial-gradient(ellipse 80% 50% at 100% 0%, rgba(34, 211, 238, 0.08), transparent 55%),
+ var(--t2-ink, #07070a);
+ color: var(--t2-text, #f4f1ea);
+ font-family: var(--t2-font-body);
+}
+
+html[data-hub-skin="2"] .social-flow::before {
+ content: "";
+ pointer-events: none;
+ position: fixed;
+ inset: 0;
+ z-index: 0;
+ background: radial-gradient(circle at 12% 88%, rgba(245, 158, 11, 0.08), transparent 32%);
+}
+
+html[data-hub-skin="2"] .navbar {
+ border-bottom: 1px solid var(--t2-line);
+ background: color-mix(in srgb, var(--t2-ink) 78%, transparent);
+ backdrop-filter: blur(18px) saturate(1.2);
+}
+
+html[data-hub-skin="2"] .navbar.scrolled {
+ box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
+}
+
+html[data-hub-skin="2"] .logo-icon {
+ border-radius: var(--t2-radius);
+ background: var(--t2-amber);
+ color: #111;
+ box-shadow: 0 0 24px rgba(245, 158, 11, 0.45);
+}
+
+html[data-hub-skin="2"] .logo-text {
+ font-family: var(--t2-font-display);
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ font-size: 0.92rem;
+}
+
+html[data-hub-skin="2"] .btn-primary,
+html[data-hub-skin="2"] .social-btn.primary,
+html[data-hub-skin="2"] .social-compose button {
+ border-radius: var(--t2-radius);
+ background: var(--t2-amber) !important;
+ color: #111 !important;
+ border: none !important;
+ box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 28px rgba(245, 158, 11, 0.35);
+ font-weight: 700;
+ letter-spacing: 0.02em;
+}
+
+html[data-hub-skin="2"] .btn-primary:hover,
+html[data-hub-skin="2"] .social-btn.primary:hover {
+ filter: brightness(1.06);
+ transform: translateY(-1px);
+}
+
+html[data-hub-skin="2"] .btn-ghost,
+html[data-hub-skin="2"] .social-btn,
+html[data-hub-skin="2"] .social-nav-back {
+ border-radius: var(--t2-radius);
+ border: 1px solid var(--t2-line);
+ background: transparent;
+}
+
+html[data-hub-skin="2"] .nav-group-btn,
+html[data-hub-skin="2"] .nav-dropdown-link,
+html[data-hub-skin="2"] .nav-icon-btn {
+ border-radius: var(--t2-radius);
+}
+
+html[data-hub-skin="2"] .nav-dropdown {
+ border-radius: var(--t2-radius);
+ border: 1px solid var(--t2-line);
+ background: var(--t2-panel);
+ box-shadow: var(--sc-shadow);
+}
+
+/* 皮肤切换器 */
+html[data-hub-skin="2"] .hub-skin-switch,
+.hub-skin-switch {
+ display: inline-flex;
+ align-items: center;
+ gap: 2px;
+ padding: 3px;
+ border-radius: 6px;
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ background: rgba(0, 0, 0, 0.25);
+}
+
+.hub-skin-switch button {
+ min-height: 36px;
+ min-width: 44px;
+ padding: 0 10px;
+ border: none;
+ border-radius: 4px;
+ background: transparent;
+ color: var(--sc-muted, #94a3b8);
+ font: inherit;
+ font-size: 0.78rem;
+ font-weight: 700;
+ letter-spacing: 0.04em;
+ cursor: pointer;
+}
+
+.hub-skin-switch button[aria-pressed="true"] {
+ background: var(--t2-amber, #f59e0b);
+ color: #111;
+}
+
+html[data-hub-skin="1"] .hub-skin-switch button[aria-pressed="true"] {
+ background: #4ecdc4;
+ color: #0a0e17;
+}
+
+/* —— Hero:品牌优先、少卡片 —— */
+html[data-hub-skin="2"] .hero {
+ min-height: 100dvh;
+ display: flex;
+ align-items: stretch;
+ border-bottom: 1px solid var(--t2-line);
+}
+
+html[data-hub-skin="2"] .hero-bg-shapes .shape {
+ opacity: 0.28;
+ filter: saturate(0.55) hue-rotate(18deg);
+}
+
+html[data-hub-skin="2"] #particles-canvas,
+html[data-hub-skin="2"] .particle-canvas {
+ opacity: 0.45;
+ mix-blend-mode: screen;
+}
+
+html[data-hub-skin="2"] .hero-badge {
+ border-radius: var(--t2-radius);
+ border: 1px solid var(--t2-line);
+ background: var(--t2-amber-dim);
+ color: var(--t2-amber);
+ letter-spacing: 0.14em;
+ text-transform: uppercase;
+ font-size: 0.72rem;
+ font-weight: 700;
+}
+
+html[data-hub-skin="2"] .hero-badge .badge-dot {
+ background: var(--t2-amber);
+ box-shadow: 0 0 12px var(--t2-amber);
+}
+
+html[data-hub-skin="2"] .hero-title {
+ font-family: var(--t2-font-display);
+ font-weight: 800;
+ letter-spacing: -0.04em;
+ text-transform: none;
+}
+
+html[data-hub-skin="2"] .gradient-text {
+ background: linear-gradient(100deg, #f59e0b, #fde68a 55%, #22d3ee) !important;
+ -webkit-background-clip: text !important;
+ background-clip: text !important;
+ color: transparent !important;
+}
+
+html[data-hub-skin="2"] .hero-subtitle {
+ color: var(--t2-muted);
+ font-size: 1.05rem;
+ max-width: 28rem;
+ border-left: 2px solid var(--t2-amber);
+ padding-left: 14px;
+}
+
+html[data-hub-skin="2"] .float-card {
+ border-radius: var(--t2-radius);
+ border: 1px solid var(--t2-line);
+ background: color-mix(in srgb, var(--t2-panel) 88%, transparent);
+ backdrop-filter: blur(10px);
+ font-family: var(--t2-font-display);
+ letter-spacing: 0.04em;
+}
+
+html[data-hub-skin="2"] .float-card small {
+ color: var(--t2-muted);
+ letter-spacing: 0;
+}
+
+html[data-hub-skin="2"] .globe-svg circle[fill="url(#hubGlobeGlow)"] {
+ opacity: 0.7;
+}
+
+/* PATH:竖轨信号条 */
+html[data-hub-skin="2"] .journey-strip {
+ background: transparent;
+}
+
+html[data-hub-skin="2"] .section-tag {
+ color: var(--t2-amber);
+ letter-spacing: 0.2em;
+ border: 1px solid var(--t2-line);
+ border-radius: var(--t2-radius);
+ padding: 4px 8px;
+ background: var(--t2-amber-dim);
+}
+
+html[data-hub-skin="2"] .section-header h2,
+html[data-hub-skin="2"] .social-hub-block-head h3,
+html[data-hub-skin="2"] .social-hero h1,
+html[data-hub-skin="2"] .social-section-head h2 {
+ font-family: var(--t2-font-display);
+ letter-spacing: -0.03em;
+}
+
+html[data-hub-skin="2"] .journey-card,
+html[data-hub-skin="2"] .social-hub-card,
+html[data-hub-skin="2"] .social-next-card,
+html[data-hub-skin="2"] .social-card,
+html[data-hub-skin="2"] .social-list-item,
+html[data-hub-skin="2"] .social-panel {
+ border-radius: var(--t2-radius);
+ border: 1px solid var(--t2-line);
+ background:
+ linear-gradient(135deg, var(--t2-amber-dim), transparent 42%),
+ var(--t2-panel);
+ box-shadow: none;
+ backdrop-filter: none;
+}
+
+html[data-hub-skin="2"] .social-hub-card:hover,
+html[data-hub-skin="2"] .social-next-card:hover,
+html[data-hub-skin="2"] .social-card:hover,
+html[data-hub-skin="2"] .journey-card:hover {
+ transform: translateY(-2px);
+ border-color: rgba(245, 158, 11, 0.55);
+ box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2), 0 16px 40px rgba(0, 0, 0, 0.35);
+}
+
+html[data-hub-skin="2"] .social-hub-emoji,
+html[data-hub-skin="2"] .social-card-ico {
+ border-radius: var(--t2-radius);
+ background: #000;
+ border: 1px solid var(--t2-line);
+}
+
+html[data-hub-skin="2"] .social-pill,
+html[data-hub-skin="2"] .social-badge {
+ border-radius: var(--t2-radius);
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ font-size: 0.68rem;
+}
+
+html[data-hub-skin="2"] .social-pill.live,
+html[data-hub-skin="2"] .social-badge.live {
+ color: var(--t2-amber);
+ border-color: rgba(245, 158, 11, 0.45);
+ background: var(--t2-amber-dim);
+}
+
+html[data-hub-skin="2"] .social-hub-go,
+html[data-hub-skin="2"] .social-next-card em,
+html[data-hub-skin="2"] .social-list-item em {
+ color: var(--t2-amber);
+ font-style: normal;
+}
+
+html[data-hub-skin="2"] .journey-n {
+ color: var(--t2-amber);
+ font-family: var(--t2-font-display);
+}
+
+/* HUB:改成通栏带状,减弱「卡片堆」感 */
+html[data-hub-skin="2"] .social-hub-grid {
+ grid-template-columns: 1fr;
+ gap: 10px;
+}
+
+html[data-hub-skin="2"] .social-hub-card {
+ min-height: 0;
+ display: grid;
+ grid-template-columns: auto 1fr auto;
+ grid-template-rows: auto auto;
+ gap: 6px 16px;
+ align-items: center;
+ padding: 16px 18px;
+}
+
+html[data-hub-skin="2"] .social-hub-card-top {
+ grid-column: 1;
+ grid-row: 1 / span 2;
+}
+
+html[data-hub-skin="2"] .social-hub-card h4 {
+ grid-column: 2;
+ grid-row: 1;
+ margin: 0;
+}
+
+html[data-hub-skin="2"] .social-hub-card p {
+ grid-column: 2;
+ grid-row: 2;
+}
+
+html[data-hub-skin="2"] .social-hub-card .social-pill {
+ display: none;
+}
+
+html[data-hub-skin="2"] .social-hub-go {
+ grid-column: 3;
+ grid-row: 1 / span 2;
+ align-self: center;
+ font-family: var(--t2-font-display);
+ letter-spacing: 0.06em;
+}
+
+html[data-hub-skin="2"] .social-next-grid {
+ grid-template-columns: 1fr;
+ gap: 10px;
+}
+
+@media (min-width: 900px) {
+ html[data-hub-skin="2"] .social-next-grid {
+ grid-template-columns: repeat(3, 1fr);
+ }
+}
+
+/* Chat */
+html[data-hub-skin="2"] .social-chat-thread {
+ border-radius: var(--t2-radius);
+ border: 1px solid var(--t2-line);
+ background:
+ linear-gradient(180deg, rgba(245, 158, 11, 0.05), transparent 20%),
+ #0a0a0e;
+ max-height: min(62vh, 560px);
+}
+
+html[data-hub-skin="2"] .social-bubble {
+ border-radius: var(--t2-radius);
+ border: 1px solid var(--t2-line);
+ background: var(--t2-panel);
+}
+
+html[data-hub-skin="2"] .social-bubble.mine {
+ background: linear-gradient(160deg, rgba(245, 158, 11, 0.22), rgba(34, 211, 238, 0.08));
+ border-color: rgba(245, 158, 11, 0.4);
+}
+
+html[data-hub-skin="2"] .social-compose input,
+html[data-hub-skin="2"] .social-form input,
+html[data-hub-skin="2"] .social-form textarea,
+html[data-hub-skin="2"] .social-chat-nick input {
+ border-radius: var(--t2-radius);
+ border: 1px solid var(--t2-line);
+ background: #0a0a0e;
+}
+
+html[data-hub-skin="2"] .social-compose {
+ position: sticky;
+ bottom: 12px;
+ padding: 10px;
+ border-radius: var(--t2-radius);
+ border: 1px solid var(--t2-line);
+ background: color-mix(in srgb, var(--t2-panel) 90%, transparent);
+ backdrop-filter: blur(12px);
+}
+
+html[data-hub-skin="2"] .social-compose button {
+ border-radius: var(--t2-radius) !important;
+ min-width: 96px;
+}
+
+html[data-hub-skin="2"] .social-hero-tag {
+ border-radius: var(--t2-radius);
+ color: var(--t2-amber);
+ border-color: var(--t2-line);
+ background: var(--t2-amber-dim);
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ font-size: 0.72rem;
+ font-weight: 700;
+}
+
+html[data-hub-skin="2"] .social-hero h1 span {
+ background: linear-gradient(100deg, #f59e0b, #22d3ee);
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+}
+
+html[data-hub-skin="2"] .footer {
+ border-top: 1px solid var(--t2-line);
+ background: #050508;
+}
+
+html[data-hub-skin="2"] .footer-cols h4 {
+ color: var(--t2-amber);
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ font-size: 0.75rem;
+}
+
+html[data-hub-skin="2"] .social-live-tab.active {
+ background: var(--t2-amber) !important;
+ color: #111 !important;
+}
+
+html[data-hub-skin="2"] .social-live-iframe-mark {
+ background: var(--t2-amber) !important;
+ color: #111 !important;
+ border-radius: var(--t2-radius);
+}
+
+html[data-hub-skin="2"] .social-live-iframe-overlay h2 {
+ background: linear-gradient(100deg, #f59e0b, #22d3ee);
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+}
+
+@media (max-width: 640px) {
+ html[data-hub-skin="2"] .social-hub-card {
+ grid-template-columns: auto 1fr;
+ }
+
+ html[data-hub-skin="2"] .social-hub-go {
+ grid-column: 2;
+ grid-row: 3;
+ justify-self: start;
+ }
+
+ html[data-hub-skin="2"] .hub-skin-switch button {
+ min-width: 40px;
+ font-size: 0.72rem;
+ }
+}
diff --git a/src/modules/hub/app/theme3.css b/src/modules/hub/app/theme3.css
new file mode 100644
index 0000000..2910165
--- /dev/null
+++ b/src/modules/hub/app/theme3.css
@@ -0,0 +1,8 @@
+/**
+ * 游民社区 · 主题 3「预留」
+ * html[data-hub-skin="3"] 启用。当前继承主题1变量,后续可独立换肤。
+ */
+
+html[data-hub-skin="3"] .hub-skin {
+ /* 预留钩子:后续覆盖 --sc-* 即可 */
+}
diff --git a/src/modules/hub/app/theme4.css b/src/modules/hub/app/theme4.css
new file mode 100644
index 0000000..c77da1f
--- /dev/null
+++ b/src/modules/hub/app/theme4.css
@@ -0,0 +1,8 @@
+/**
+ * 游民社区 · 主题 4「预留」
+ * html[data-hub-skin="4"] 启用。当前继承主题1变量,后续可独立换肤。
+ */
+
+html[data-hub-skin="4"] .hub-skin {
+ /* 预留钩子:后续覆盖 --sc-* 即可 */
+}
diff --git a/src/modules/hub/app/vivid.css b/src/modules/hub/app/vivid.css
new file mode 100644
index 0000000..ee08bf4
--- /dev/null
+++ b/src/modules/hub/app/vivid.css
@@ -0,0 +1,2020 @@
+/* =========================================================
+ Social VIVID — final visual authority (loads after depth)
+ Goal: best-looking, best-feeling /hub across all pages
+ ========================================================= */
+
+.social-experience,
+.social-home,
+.social-workspace,
+.social-live-root {
+ font-family: var(--font-body, inherit);
+ -webkit-font-smoothing: antialiased;
+ text-rendering: optimizeLegibility;
+}
+
+.social-experience :is(h1, h2, h3, .logo-text, .social-page-head-title),
+.social-home :is(h1, h2, h3, .logo-text) {
+ font-family: var(--font-display, inherit);
+}
+
+/* —— Quick rail (workspace IA) —— */
+.social-quick-rail {
+ margin: 0 0 18px;
+}
+.social-quick-rail-track {
+ display: flex;
+ gap: 8px;
+ overflow-x: auto;
+ padding: 6px;
+ border-radius: 18px;
+ border: 1px solid var(--sx-fog, rgba(186, 214, 230, 0.14));
+ background: color-mix(in srgb, var(--sx-glass, #0d1520b8) 92%, transparent);
+ backdrop-filter: blur(14px);
+ scrollbar-width: none;
+}
+.social-quick-rail-track::-webkit-scrollbar {
+ display: none;
+}
+.social-quick-chip {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ flex: 0 0 auto;
+ min-height: 40px;
+ padding: 0 14px;
+ border-radius: 999px;
+ border: 1px solid transparent;
+ color: var(--text-secondary);
+ text-decoration: none;
+ font-size: 13px;
+ font-weight: 650;
+ letter-spacing: -0.01em;
+ transition:
+ background 0.2s,
+ color 0.2s,
+ transform 0.2s,
+ border-color 0.2s;
+}
+.social-quick-chip:hover {
+ color: var(--text-primary);
+ border-color: #5ce1d644;
+ background: #5ce1d612;
+}
+.social-quick-chip.is-active {
+ color: #062525;
+ background: linear-gradient(125deg, #7aefe4, #4ecdc4);
+ box-shadow: 0 8px 20px #4ecdc433;
+}
+
+/* —— Connection ways (post-hero chooser) —— */
+.social-home .connection-ways {
+ margin-top: 8px;
+ margin-bottom: 36px;
+}
+.social-home .connection-ways.is-alive .connection-way {
+ animation: social-way-in 0.55s ease both;
+ animation-delay: var(--stagger, 0ms);
+}
+@keyframes social-way-in {
+ from {
+ opacity: 0;
+ transform: translateY(12px);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+}
+.social-home .connection-way {
+ position: relative;
+ min-height: 128px;
+ padding: 20px 18px;
+ overflow: hidden;
+}
+.social-home .connection-way::after {
+ content: "";
+ position: absolute;
+ inset: auto -30% -55% auto;
+ width: 140px;
+ height: 140px;
+ border-radius: 50%;
+ pointer-events: none;
+ opacity: 0.55;
+}
+.social-home .connection-way.mint::after {
+ background: radial-gradient(circle, #5ce1d633, transparent 70%);
+}
+.social-home .connection-way.coral::after {
+ background: radial-gradient(circle, #ff7a7233, transparent 70%);
+}
+.social-home .connection-way.yellow::after {
+ background: radial-gradient(circle, #ffd97833, transparent 70%);
+}
+.social-home .connection-way-copy {
+ display: grid;
+ gap: 4px;
+ min-width: 0;
+}
+.social-home .connection-way-copy em {
+ margin-top: 6px;
+ font-style: normal;
+ font-size: 12px;
+ font-weight: 700;
+ letter-spacing: -0.01em;
+ color: var(--sx-mint, #5ce1d6);
+}
+.social-home .connection-way.coral .connection-way-copy em {
+ color: var(--sx-coral, #ff7a72);
+}
+.social-home .connection-way.yellow .connection-way-copy em {
+ color: #e6c35a;
+}
+.social-date-hint {
+ margin: 4px auto 10px;
+ text-align: center;
+ color: var(--text-muted);
+ font-size: 12px;
+ letter-spacing: 0.01em;
+}
+.social-people-cta-bar {
+ position: sticky;
+ bottom: calc(78px + env(safe-area-inset-bottom, 0px));
+ z-index: 20;
+ margin-top: 18px !important;
+ box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
+}
+@media (min-width: 901px) {
+ .social-people-cta-bar {
+ position: static;
+ box-shadow: none;
+ }
+}
+@media (max-width: 720px) {
+ .social-date-hint {
+ display: none;
+ }
+}
+
+/* —— Stronger home hero —— */
+.social-home .connection-hero {
+ isolation: isolate;
+}
+.social-home .connection-hero::before {
+ content: "";
+ position: absolute;
+ inset: 0 0 auto;
+ height: min(78vh, 720px);
+ pointer-events: none;
+ z-index: 0;
+ background:
+ radial-gradient(ellipse 70% 55% at 18% 20%, #5ce1d61f, transparent 60%),
+ radial-gradient(ellipse 55% 45% at 88% 18%, #ff7a7218, transparent 55%),
+ radial-gradient(ellipse 40% 35% at 60% 70%, #ffd97810, transparent 50%);
+}
+.social-home .connection-copy,
+.social-home .connection-universe {
+ position: relative;
+ z-index: 1;
+}
+.social-home .connection-copy h1 {
+ text-wrap: balance;
+}
+.social-home .section-header h2 {
+ font-size: clamp(28px, 3.6vw, 40px);
+ letter-spacing: -0.05em;
+ font-weight: 800;
+}
+.social-home .section-tag {
+ display: inline-flex;
+ gap: 8px;
+ align-items: center;
+ padding: 6px 10px;
+ border-radius: 999px;
+ border: 1px solid var(--sx-fog, rgba(186, 214, 230, 0.14));
+ background: #ffffff06;
+ font-size: 11px;
+ letter-spacing: 0.04em;
+}
+
+/* —— Workspace polish —— */
+.social-workspace .social-main {
+ animation: social-page-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
+}
+@keyframes social-page-in {
+ from {
+ opacity: 0;
+ transform: translateY(10px);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+}
+.social-workspace .nav-group-panel {
+ border-radius: 16px !important;
+ border: 1px solid var(--sx-fog, rgba(186, 214, 230, 0.14)) !important;
+ background: color-mix(in srgb, #0d1520 94%, transparent) !important;
+ backdrop-filter: blur(18px);
+ box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
+ padding: 8px !important;
+}
+.social-workspace .nav-group-panel a,
+.social-home .nav-group-panel a {
+ border-radius: 12px;
+ min-height: 40px;
+ padding: 0 12px !important;
+ display: flex !important;
+ align-items: center;
+ gap: 6px;
+}
+.social-workspace .nav-group-panel a.is-locked,
+.social-home .nav-group-panel a.is-locked {
+ opacity: 0.55;
+ color: #fbbf24;
+}
+.social-nav-session {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ max-width: 140px;
+}
+.social-nav-session em {
+ font-style: normal;
+ font-size: 12px;
+ opacity: 0.75;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+.social-nav-login,
+.social-nav-logout {
+ min-height: 36px;
+ padding: 0 12px;
+ font-size: 13px;
+}
+.nav-icon-btn.is-locked {
+ color: #fbbf24;
+}
+.social-workspace .nav-group-panel a:hover,
+.social-home .nav-group-panel a:hover,
+.social-workspace .nav-group-panel a[aria-current="page"],
+.social-home .nav-group-panel a[aria-current="page"] {
+ background: #5ce1d614;
+ color: var(--sx-mint, #5ce1d6);
+}
+
+/* —— Date remaining progress —— */
+.social-date-progress {
+ width: min(100%, 420px);
+ height: 4px;
+ margin: 0 auto 14px;
+ border-radius: 999px;
+ background: #ffffff10;
+ overflow: hidden;
+}
+.social-date-progress > i {
+ display: block;
+ height: 100%;
+ border-radius: inherit;
+ background: linear-gradient(90deg, #ff9a90, #5ce1d6);
+ transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
+}
+
+/* —— Chat jump —— */
+.social-jump-latest {
+ position: absolute;
+ left: 50%;
+ bottom: 12px;
+ translate: -50% 0;
+ z-index: 5;
+ display: none;
+ min-height: 36px;
+ padding: 0 14px;
+ border-radius: 999px;
+ border: 1px solid #5ce1d655;
+ background: color-mix(in srgb, #0d1520 88%, transparent);
+ color: var(--sx-mint, #5ce1d6);
+ font: inherit;
+ font-size: 12px;
+ font-weight: 700;
+ box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
+ backdrop-filter: blur(12px);
+}
+.social-thread-wrap:has([data-unread="true"]) .social-jump-latest {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+}
+
+/* —— Membership cards —— */
+.social-onboarding-heading {
+ margin: 8px 0 14px;
+ font-size: 15px;
+ letter-spacing: -0.02em;
+ color: var(--text-secondary);
+ font-weight: 650;
+}
+.social-onboarding-card p {
+ margin: 0 0 8px;
+ font-size: 13px;
+ line-height: 1.5;
+}
+.social-membership-card {
+ min-height: 120px;
+ padding: 18px !important;
+ display: grid;
+ gap: 8px;
+ align-content: space-between;
+ text-decoration: none;
+ color: inherit;
+}
+.social-membership-card h2 {
+ margin: 0;
+ font-size: 1.1rem;
+}
+.social-membership-card span {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ color: var(--sx-mint, #5ce1d6);
+ font-size: 13px;
+ font-weight: 650;
+}
+
+/* —— Form focus glow —— */
+.social-experience :is(input, textarea, select):focus-visible,
+.social-join-field input:focus-visible,
+.social-compose input:focus-visible,
+.social-chat-live .social-chat-composer textarea:focus-visible {
+ border-color: #5ce1d688 !important;
+ box-shadow: 0 0 0 4px #5ce1d622;
+ outline: none;
+}
+
+/* —— Skeleton-ish status —— */
+.social-status {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ min-height: 36px;
+ padding: 0 12px;
+ border-radius: 12px;
+ font-size: 13px;
+}
+.social-status.warn {
+ color: var(--sx-gold, #ffd978);
+ background: #ffd97814;
+ border: 1px solid #ffd97844;
+}
+
+html.light .social-quick-rail-track,
+html[data-theme="light"] .social-quick-rail-track {
+ background: color-mix(in srgb, #ffffff 82%, transparent);
+}
+html.light .social-workspace .nav-group-panel,
+html[data-theme="light"] .social-workspace .nav-group-panel {
+ background: color-mix(in srgb, #ffffff 94%, transparent) !important;
+}
+
+@media (max-width: 900px) {
+ .social-quick-rail {
+ margin-bottom: 14px;
+ }
+}
+
+@media (max-width: 560px) {
+ .social-quick-chip {
+ min-height: 38px;
+ padding: 0 12px;
+ font-size: 12px;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .social-workspace .social-main,
+ .social-quick-chip {
+ animation: none !important;
+ transition: none !important;
+ }
+}
+
+/* -- product pass: brand / people / date / city / ugc -- */
+.social-brand-logo {
+ display: inline-flex;
+ align-items: center;
+ gap: 10px;
+ text-decoration: none;
+ color: inherit;
+}
+.social-brand-mark {
+ flex-shrink: 0;
+ filter: drop-shadow(0 0 10px #4ecdc433);
+}
+.social-brand-name {
+ font-weight: 700;
+ letter-spacing: -0.04em;
+ font-size: 17px;
+ background: linear-gradient(120deg, #ff8f8f, #ffe66d 45%, #4ecdc4);
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+}
+.social-brand-sep {
+ opacity: 0.45;
+ margin: 0 2px;
+}
+.social-brand-section {
+ font-weight: 600;
+ font-size: 14px;
+ opacity: 0.82;
+}
+.social-home .nav-logo .logo-icon,
+.social-workspace .nav-logo .logo-icon {
+ display: none;
+}
+
+.social-people-chip.is-rich {
+ position: relative;
+ grid-template-columns: minmax(0, 1fr);
+ grid-template-rows: auto auto auto auto;
+}
+.social-people-chip-want {
+ grid-column: 1 / -1;
+ display: -webkit-box;
+ -webkit-line-clamp: 1;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ font-size: 10px;
+ line-height: 1.3;
+ color: color-mix(in srgb, var(--text-muted, #9aa3af) 92%, #4ecdc4);
+ opacity: 0.92;
+}
+.social-people-chip-like {
+ position: absolute;
+ top: 8px;
+ right: 8px;
+ width: 28px;
+ height: 28px;
+ border: 0;
+ border-radius: 999px;
+ background: #ff6b6b18;
+ color: #ff8f8f;
+ cursor: pointer;
+ font-size: 13px;
+ line-height: 1;
+}
+.social-people-chip-like:hover {
+ background: #ff6b6b33;
+}
+.social-burst-float {
+ position: fixed;
+ left: 50%;
+ top: 42%;
+ transform: translate(-50%, -50%);
+ font-size: 48px;
+ color: #ff6b6b;
+ pointer-events: none;
+ animation: social-burst-pop 0.7s ease forwards;
+ z-index: 80;
+}
+@keyframes social-burst-pop {
+ from { opacity: 0; transform: translate(-50%, -40%) scale(0.6); }
+ 40% { opacity: 1; transform: translate(-50%, -55%) scale(1.15); }
+ to { opacity: 0; transform: translate(-50%, -70%) scale(0.9); }
+}
+
+/* Home date teaser — keep selectors away from swipe page (.social-date-root) */
+.social-home .social-date-hero {
+ display: grid;
+ grid-template-columns: 1fr 1.05fr;
+ gap: 28px;
+ align-items: center;
+ padding: 28px;
+ border-radius: 28px;
+ border: 1px solid #ff7a7233;
+ background:
+ radial-gradient(circle at 8% 12%, #ff7a722e, transparent 42%),
+ radial-gradient(circle at 92% 78%, #ffe66d1a, transparent 42%),
+ color-mix(in srgb, var(--sx-glass, #12141a) 88%, transparent);
+ box-shadow: var(--sx-lift, 0 18px 40px #00000033);
+ overflow: hidden;
+}
+.social-home .social-date-hero-copy h2 {
+ margin: 10px 0 12px;
+ font-size: clamp(24px, 3.2vw, 36px);
+ letter-spacing: -0.045em;
+}
+.social-home .social-date-hero-copy > p {
+ margin: 0 0 16px;
+ color: var(--text-muted, #9aa3af);
+ max-width: 38ch;
+ line-height: 1.65;
+}
+.social-home .social-date-hero-steps {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+ list-style: none;
+ margin: 0 0 18px;
+ padding: 0;
+}
+.social-home .social-date-hero-steps li {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ min-height: 36px;
+ padding: 0 12px;
+ border-radius: 999px;
+ border: 1px solid #ff7a7233;
+ background: #ff7a7212;
+ font-size: 13px;
+ color: #ffc4c0;
+}
+.social-home .social-date-hero-steps em {
+ font-style: normal;
+ font-weight: 700;
+ color: #ff8f8f;
+}
+.social-date-stage-acts {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+}
+.social-home .social-date-hero-deck {
+ position: relative;
+ display: block;
+ min-height: 360px;
+ text-decoration: none;
+ color: inherit;
+}
+.social-home .social-date-hero-card {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ width: min(280px, 78%);
+ aspect-ratio: 3 / 4.1;
+ margin: 0;
+ border-radius: 26px;
+ border: 1px solid #ffffff22;
+ background-size: cover;
+ background-position: center top;
+ box-shadow: 0 22px 50px #00000066;
+ overflow: hidden;
+ transform:
+ translate(-50%, -50%)
+ translateX(calc((var(--i, 0) - 1) * 34px))
+ rotate(calc((var(--i, 0) - 1) * 6deg));
+ transition: transform 0.35s ease, box-shadow 0.35s ease;
+}
+.social-home .social-date-hero-card-0 { z-index: 3; }
+.social-home .social-date-hero-card-1 { z-index: 2; opacity: 0.94; }
+.social-home .social-date-hero-card-2 { z-index: 1; opacity: 0.8; }
+.social-home .social-date-hero-deck:hover .social-date-hero-card-0 {
+ transform: translate(-50%, calc(-50% - 8px)) rotate(-2deg) scale(1.03);
+ box-shadow: 0 28px 60px #ff6b6b33;
+}
+.social-home .social-date-hero.is-alive .social-date-hero-card-0 {
+ animation: social-date-hero-float 4.2s ease-in-out infinite;
+}
+.social-home .social-date-hero.is-alive .social-date-hero-card-1 {
+ animation: social-date-hero-sway-l 5s ease-in-out infinite;
+}
+.social-home .social-date-hero.is-alive .social-date-hero-card-2 {
+ animation: social-date-hero-sway-r 5.4s ease-in-out infinite;
+}
+.social-home .social-date-hero.is-alive .social-date-hero-cta {
+ animation: social-date-hero-cta-pulse 2.2s ease-in-out infinite;
+}
+.social-home .social-date-hero.is-alive .social-date-hero-steps li {
+ animation: social-date-hero-chip 3.6s ease-in-out infinite;
+}
+.social-home .social-date-hero.is-alive .social-date-hero-steps li:nth-child(2) {
+ animation-delay: 0.35s;
+}
+.social-home .social-date-hero.is-alive .social-date-hero-steps li:nth-child(3) {
+ animation-delay: 0.7s;
+}
+.social-home .social-date-hero-deck::before,
+.social-home .social-date-hero-deck::after {
+ content: "←";
+ position: absolute;
+ top: 46%;
+ z-index: 4;
+ width: 36px;
+ height: 36px;
+ display: grid;
+ place-items: center;
+ border-radius: 999px;
+ border: 1px solid #ff7a7244;
+ background: #ff7a7222;
+ color: #ffb4b0;
+ font-size: 14px;
+ font-weight: 700;
+ pointer-events: none;
+ opacity: 0.55;
+ animation: social-date-hero-hint 2.8s ease-in-out infinite;
+}
+.social-home .social-date-hero-deck::before {
+ left: 4%;
+ content: "←";
+}
+.social-home .social-date-hero-deck::after {
+ right: 4%;
+ content: "→";
+ animation-delay: 0.4s;
+ border-color: #4ecdc444;
+ background: #4ecdc422;
+ color: #7aefe4;
+}
+@keyframes social-date-hero-float {
+ 0%,
+ 100% {
+ transform: translate(-50%, -50%) translateX(calc((0 - 1) * 34px))
+ rotate(-6deg) translateY(0);
+ }
+ 50% {
+ transform: translate(-50%, -50%) translateX(calc((0 - 1) * 34px))
+ rotate(-3deg) translateY(-10px);
+ }
+}
+@keyframes social-date-hero-sway-l {
+ 0%,
+ 100% {
+ transform: translate(-50%, -50%) translateX(0) rotate(0deg);
+ }
+ 50% {
+ transform: translate(-50%, -50%) translateX(-6px) rotate(-2deg);
+ }
+}
+@keyframes social-date-hero-sway-r {
+ 0%,
+ 100% {
+ transform: translate(-50%, -50%) translateX(34px) rotate(6deg);
+ }
+ 50% {
+ transform: translate(-50%, -50%) translateX(40px) rotate(8deg);
+ }
+}
+@keyframes social-date-hero-cta-pulse {
+ 0%,
+ 100% {
+ transform: scale(1);
+ box-shadow: 0 10px 24px #ff6b6b44;
+ }
+ 50% {
+ transform: scale(1.06);
+ box-shadow: 0 14px 32px #ff6b6b66;
+ }
+}
+@keyframes social-date-hero-chip {
+ 0%,
+ 100% {
+ transform: translateY(0);
+ border-color: #ff7a7233;
+ }
+ 50% {
+ transform: translateY(-2px);
+ border-color: #ff7a7266;
+ }
+}
+@keyframes social-date-hero-hint {
+ 0%,
+ 100% {
+ opacity: 0.35;
+ transform: translateY(-50%) scale(0.95);
+ }
+ 50% {
+ opacity: 0.85;
+ transform: translateY(-50%) scale(1.05);
+ }
+}
+@media (prefers-reduced-motion: reduce) {
+ .social-home .social-date-hero.is-alive .social-date-hero-card-0,
+ .social-home .social-date-hero.is-alive .social-date-hero-card-1,
+ .social-home .social-date-hero.is-alive .social-date-hero-card-2,
+ .social-home .social-date-hero.is-alive .social-date-hero-cta,
+ .social-home .social-date-hero.is-alive .social-date-hero-steps li,
+ .social-home .social-date-hero-deck::before,
+ .social-home .social-date-hero-deck::after {
+ animation: none !important;
+ }
+}
+.social-home .social-date-hero-online {
+ position: absolute;
+ top: 14px;
+ left: 14px;
+ padding: 4px 10px;
+ border-radius: 999px;
+ background: #22c55ecc;
+ color: #fff;
+ font-size: 11px;
+ font-weight: 650;
+}
+.social-home .social-date-hero-meta {
+ position: absolute;
+ inset: auto 0 0;
+ padding: 18px 16px 16px;
+ display: grid;
+ gap: 4px;
+ color: #fff;
+}
+.social-home .social-date-hero-meta strong {
+ display: grid;
+ gap: 2px;
+ font-size: 20px;
+ letter-spacing: -0.03em;
+}
+.social-home .social-date-hero-meta strong small {
+ font-size: 12px;
+ font-weight: 500;
+ color: rgba(255, 255, 255, 0.72);
+}
+.social-home .social-date-hero-meta > em {
+ font-style: normal;
+ font-size: 12px;
+ color: #7aefe4;
+}
+.social-home .social-date-hero-meta > p {
+ margin: 2px 0 0;
+ font-size: 12px;
+ color: #ffc4c0;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+.social-date-card-tags {
+ display: flex;
+ gap: 6px;
+ margin-top: 8px;
+}
+.social-date-card-tags span {
+ font-size: 10px;
+ padding: 3px 8px;
+ border-radius: 999px;
+ background: #ff6b6b22;
+ color: #ffb4b0;
+}
+.social-home .social-date-hero-cta {
+ position: absolute;
+ right: 8%;
+ bottom: 6%;
+ z-index: 5;
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ min-height: 36px;
+ padding: 0 12px;
+ border-radius: 999px;
+ background: #ff6b6bcc;
+ color: #fff;
+ font-size: 12px;
+ font-weight: 600;
+ box-shadow: 0 10px 24px #ff6b6b44;
+}
+.social-home .connection-team.is-clickable {
+ text-decoration: none;
+ color: inherit;
+ display: grid;
+ transition: transform 0.25s ease, border-color 0.25s;
+}
+.social-home .connection-team.is-clickable:hover {
+ transform: translateY(-3px);
+ border-color: #4ecdc455;
+}
+.social-city-card {
+ text-decoration: none;
+ color: inherit;
+}
+
+.connection-meetup-art.is-video,
+.social-event-art.is-video {
+ display: grid;
+ grid-template-columns: auto 1fr auto;
+ align-items: center;
+ gap: 12px;
+}
+.social-video-grid {
+ display: grid;
+ grid-template-columns: repeat(2, 36px);
+ gap: 6px;
+}
+.social-video-grid-sm {
+ grid-template-columns: repeat(2, 28px);
+}
+.social-video-tile {
+ width: 36px;
+ height: 36px;
+ border-radius: 10px;
+ overflow: hidden;
+ border: 1px solid #4ecdc455;
+ background: #4ecdc418;
+ display: grid;
+ place-items: center;
+}
+.social-video-grid-sm .social-video-tile {
+ width: 28px;
+ height: 28px;
+}
+.social-video-tile.is-ghost {
+ background:
+ linear-gradient(135deg, #4ecdc433, #ffe66d22),
+ #0f1218;
+ animation: social-video-pulse 2.4s ease-in-out infinite;
+}
+.social-video-tile.is-ghost:nth-child(2) { animation-delay: 0.3s; }
+.social-video-tile.is-ghost:nth-child(3) { animation-delay: 0.6s; }
+.social-video-tile.is-ghost:nth-child(4) { animation-delay: 0.9s; }
+@keyframes social-video-pulse {
+ 0%, 100% { opacity: 0.55; }
+ 50% { opacity: 1; }
+}
+
+.social-city-filters {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-bottom: 16px;
+}
+.social-city-filter {
+ min-height: 36px;
+ padding: 0 12px;
+ border-radius: 999px;
+ border: 1px solid var(--sx-fog, #ffffff18);
+ background: transparent;
+ color: inherit;
+ font-size: 12px;
+ cursor: pointer;
+}
+.social-city-filter.is-active {
+ border-color: #4ecdc466;
+ background: #4ecdc41a;
+ color: #7aefe4;
+}
+.social-city-grid {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 12px;
+}
+.social-city-card {
+ padding: 16px;
+ border-radius: 18px;
+ border: 1px solid var(--sx-fog, #ffffff18);
+ background: var(--sx-glass, #12141acc);
+ display: grid;
+ gap: 10px;
+ transition: transform 0.25s ease, border-color 0.25s;
+}
+.social-city-card:hover {
+ transform: translateY(-3px);
+ border-color: #4ecdc455;
+}
+.social-city-card.is-hot {
+ border-color: #ffe66d44;
+ background:
+ radial-gradient(circle at 100% 0%, #ffe66d18, transparent 45%),
+ var(--sx-glass, #12141acc);
+}
+.social-city-card-top {
+ display: flex;
+ gap: 10px;
+ align-items: center;
+}
+.social-city-emoji {
+ font-size: 28px;
+ line-height: 1;
+}
+.social-city-card h3 {
+ margin: 0;
+ font-size: 16px;
+ display: flex;
+ align-items: center;
+ gap: 6px;
+}
+.social-city-card h3 em {
+ font-style: normal;
+ font-size: 9px;
+ padding: 2px 6px;
+ border-radius: 999px;
+ background: #ffe66d33;
+ color: #ffe66d;
+ letter-spacing: 0.04em;
+}
+.social-city-card-top p,
+.social-city-vibe {
+ margin: 0;
+ font-size: 12px;
+ color: var(--text-muted, #9aa3af);
+}
+.social-city-stats {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ font-size: 11px;
+ color: var(--text-muted, #9aa3af);
+}
+.social-city-stats span {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+}
+.social-city-tags {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+}
+.social-city-tags span {
+ font-size: 10px;
+ padding: 3px 8px;
+ border-radius: 999px;
+ background: #ffffff0d;
+}
+.social-city-acts {
+ display: flex;
+ gap: 8px;
+ flex-wrap: wrap;
+}
+.social-city-dir.is-compact .social-city-grid {
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+}
+.social-cafe-cities {
+ margin-bottom: 8px;
+}
+
+.social-together-tabs {
+ display: inline-flex;
+ gap: 6px;
+ margin-bottom: 14px;
+ padding: 4px;
+ border-radius: 999px;
+ border: 1px solid var(--sx-fog, #ffffff18);
+ background: #ffffff08;
+}
+.social-together-tabs :is(span, a) {
+ min-height: 32px;
+ padding: 0 12px;
+ display: inline-grid;
+ place-items: center;
+ border-radius: 999px;
+ font-size: 12px;
+ color: var(--text-muted, #9aa3af);
+ text-decoration: none;
+}
+.social-together-tabs :is(span, a).is-on {
+ background: linear-gradient(120deg, #4ecdc4, #7aefe4);
+ color: #062525;
+ font-weight: 600;
+}
+.social-ugc-row {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 12px;
+ margin-top: 16px;
+}
+.social-ugc-card {
+ display: grid;
+ grid-template-columns: auto 1fr auto;
+ gap: 12px;
+ align-items: center;
+ padding: 16px;
+ border-radius: 18px;
+ border: 1px solid var(--sx-fog, #ffffff18);
+ background: var(--sx-glass, #12141acc);
+ text-decoration: none;
+ color: inherit;
+ transition: border-color 0.25s, transform 0.25s;
+}
+.social-ugc-card:hover {
+ border-color: #4ecdc455;
+ transform: translateY(-2px);
+}
+.social-ugc-card.is-video:hover {
+ border-color: #ffe66d55;
+}
+.social-ugc-ico {
+ width: 42px;
+ height: 42px;
+ border-radius: 12px;
+ display: grid;
+ place-items: center;
+ background: #4ecdc41a;
+ font-size: 20px;
+}
+.social-ugc-card em {
+ display: block;
+ font-style: normal;
+ font-size: 10px;
+ letter-spacing: 0.06em;
+ color: #7aefe4;
+ margin-bottom: 2px;
+}
+.social-ugc-card strong {
+ display: block;
+ font-size: 14px;
+}
+.social-ugc-card p {
+ margin: 4px 0 0;
+ font-size: 12px;
+ color: var(--text-muted, #9aa3af);
+}
+
+.social-profile {
+ max-width: 920px;
+ margin: 0 auto 40px;
+}
+.social-profile-nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 12px;
+ margin-bottom: 16px;
+}
+.social-profile-hero {
+ position: relative;
+ border-radius: 24px;
+ overflow: hidden;
+ border: 1px solid var(--sx-fog, #ffffff18);
+ margin-bottom: 16px;
+}
+.social-profile-cover {
+ height: 160px;
+ background:
+ radial-gradient(circle at 20% 30%, #ff6b6b44, transparent 45%),
+ radial-gradient(circle at 80% 20%, #4ecdc444, transparent 40%),
+ linear-gradient(135deg, #1a1d27, #0c0c0f);
+ background-size: cover;
+ background-position: center;
+}
+.social-profile-identity {
+ display: flex;
+ gap: 16px;
+ align-items: flex-end;
+ padding: 0 20px 20px;
+ margin-top: -48px;
+ position: relative;
+}
+.social-profile-identity h1 {
+ margin: 4px 0;
+ font-size: clamp(24px, 3vw, 34px);
+ letter-spacing: -0.04em;
+}
+.social-profile-kicker {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin: 0;
+ font-size: 12px;
+ color: var(--text-muted, #9aa3af);
+}
+.social-profile-kicker .is-online {
+ color: #4ecdc4;
+}
+.social-profile-title {
+ margin: 0;
+ font-size: 14px;
+ color: var(--text-muted, #9aa3af);
+}
+.social-profile-city {
+ margin: 6px 0 0;
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ font-size: 13px;
+}
+.social-profile-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-bottom: 18px;
+}
+.social-profile-grid {
+ display: grid;
+ grid-template-columns: 1.2fr 0.8fr;
+ gap: 12px;
+ margin-bottom: 18px;
+}
+.social-profile-card {
+ padding: 18px;
+ border-radius: 18px;
+ border: 1px solid var(--sx-fog, #ffffff18);
+ background: var(--sx-glass, #12141acc);
+}
+.social-profile-card h2 {
+ margin: 0 0 10px;
+ font-size: 14px;
+ letter-spacing: 0.04em;
+ text-transform: uppercase;
+ opacity: 0.7;
+}
+.social-profile-looking {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 6px;
+ margin-top: 12px;
+ color: #ffc4c0;
+}
+.social-tags.is-soft span {
+ background: #4ecdc414;
+}
+.social-profile-gallery h2,
+.social-profile-similar h2 {
+ font-size: 16px;
+ margin: 0 0 12px;
+}
+.social-profile-gallery-grid {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 10px;
+ margin-bottom: 22px;
+}
+.social-profile-gallery-grid img,
+.social-profile-gallery-ava {
+ width: 100%;
+ aspect-ratio: 4 / 3;
+ object-fit: cover;
+ border-radius: 16px;
+ border: 1px solid var(--sx-fog, #ffffff18);
+}
+.social-profile-gallery-ava {
+ display: grid;
+ place-items: center;
+ background: #4ecdc412;
+}
+.social-profile-similar-grid {
+ margin-bottom: 20px;
+}
+.social-profile-footer-cta {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+}
+.social-event-lead {
+ margin: -4px 0 14px;
+}
+
+@media (max-width: 1000px) {
+ .social-city-grid,
+ .social-city-dir.is-compact .social-city-grid {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+ .social-home .social-date-hero,
+ .social-profile-grid,
+ .social-ugc-row {
+ grid-template-columns: 1fr;
+ }
+ .social-home .social-date-hero-deck {
+ min-height: 340px;
+ margin-top: 4px;
+ }
+}
+@media (max-width: 640px) {
+ .social-city-grid,
+ .social-city-dir.is-compact .social-city-grid {
+ grid-template-columns: 1fr;
+ }
+ .social-profile-gallery-grid {
+ grid-template-columns: 1fr 1fr;
+ }
+ .social-home .social-date-hero {
+ padding: 20px;
+ }
+ .social-home .social-date-hero-card {
+ width: min(240px, 82%);
+ }
+}
+@media (prefers-reduced-motion: reduce) {
+ .social-burst-float,
+ .social-video-tile.is-ghost,
+ .social-home .social-date-hero-card {
+ animation: none !important;
+ transition: none !important;
+ }
+ /* 约会离场动画由 interaction.css 接管,勿全局杀掉导致鬼影卡死 */
+ .social-date-root .social-date-card.is-top {
+ transition: none !important;
+ }
+}
+
+/* —— H5 / mobile first polish —— */
+.social-cocreate-switch {
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 8px;
+}
+
+@media (max-width: 760px) {
+ .social-home .social-path {
+ top: auto;
+ margin-bottom: 8px;
+ }
+ .social-home .social-path-track {
+ overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
+ scrollbar-width: none;
+ flex-wrap: nowrap;
+ justify-content: flex-start;
+ gap: 6px;
+ padding: 8px;
+ }
+ .social-home .social-path-track::-webkit-scrollbar {
+ display: none;
+ }
+ .social-home .social-path-link {
+ flex: 0 0 auto;
+ min-height: 44px;
+ padding: 0 14px;
+ white-space: nowrap;
+ }
+
+ .social-home .social-date-hero {
+ padding: 18px 16px 22px;
+ gap: 16px;
+ border-radius: 22px;
+ }
+ .social-home .social-date-hero-copy h2 {
+ font-size: clamp(22px, 6.4vw, 28px);
+ }
+ .social-home .social-date-hero-steps {
+ gap: 8px;
+ }
+ .social-home .social-date-hero-steps li {
+ min-height: 40px;
+ font-size: 12px;
+ }
+ .social-home .social-date-hero-deck {
+ min-height: 300px;
+ }
+ .social-home .social-date-hero-card {
+ width: min(220px, 76%);
+ }
+ .social-home .social-date-hero-cta {
+ right: 50%;
+ bottom: 2%;
+ transform: translateX(50%);
+ min-height: 40px;
+ }
+
+ .social-home .social-ugc-row {
+ grid-template-columns: 1fr;
+ gap: 10px;
+ }
+ .social-home .social-ugc-card {
+ min-height: 72px;
+ padding: 14px;
+ }
+
+ .social-city-filters,
+ .social-people-filters {
+ overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
+ flex-wrap: nowrap;
+ scrollbar-width: none;
+ padding-bottom: 2px;
+ }
+ .social-city-filters::-webkit-scrollbar,
+ .social-people-filters::-webkit-scrollbar {
+ display: none;
+ }
+ .social-city-filter,
+ .social-people-filter {
+ flex: 0 0 auto;
+ min-height: 44px;
+ }
+
+ .social-city-grid,
+ .social-city-dir.is-compact .social-city-grid {
+ grid-template-columns: 1fr 1fr;
+ gap: 10px;
+ }
+ .social-city-card {
+ padding: 14px;
+ border-radius: 16px;
+ }
+ .social-city-emoji {
+ font-size: 22px;
+ }
+ .social-city-card h3 {
+ font-size: 14px;
+ }
+ .social-city-stats {
+ gap: 6px;
+ font-size: 10px;
+ }
+
+ .social-quick-rail {
+ margin: 0 0 12px;
+ }
+ .social-quick-rail-track {
+ overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
+ flex-wrap: nowrap;
+ scrollbar-width: none;
+ padding: 6px;
+ gap: 6px;
+ }
+ .social-quick-rail-track::-webkit-scrollbar {
+ display: none;
+ }
+ .social-quick-chip {
+ flex: 0 0 auto;
+ min-height: 44px;
+ padding: 0 14px;
+ }
+
+ .social-workspace {
+ padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
+ }
+ .social-home {
+ /* 底栏贴底后由 footer 自身留白,避免双层空档 */
+ padding-bottom: 0;
+ }
+ .social-mobile-dock a {
+ min-height: 52px;
+ gap: 2px;
+ }
+
+ .social-date-root .social-date-bar {
+ gap: 8px;
+ padding: 10px 12px;
+ }
+ .social-date-root .social-date-bar-top {
+ gap: 8px;
+ }
+ .social-date-root .social-date-deck {
+ width: min(100%, 420px);
+ height: auto;
+ max-height: min(58dvh, 560px);
+ min-height: 280px;
+ aspect-ratio: auto;
+ }
+ .social-date-root .social-date-actions {
+ gap: 14px;
+ padding-bottom: env(safe-area-inset-bottom, 0px);
+ }
+ .social-date-root .social-date-act {
+ width: 58px;
+ height: 58px;
+ }
+ .social-date-root .social-date-act.like {
+ width: 68px;
+ height: 68px;
+ }
+ .social-date-root .social-date-meta {
+ padding: 16px 16px 18px;
+ }
+ .social-date-root .social-date-name h2 {
+ font-size: clamp(22px, 6vw, 28px);
+ }
+
+ .social-profile-nav,
+ .social-profile-actions,
+ .social-profile-footer-cta {
+ gap: 8px;
+ }
+ .social-profile-actions .social-btn,
+ .social-profile-footer-cta .social-btn {
+ min-height: 44px;
+ }
+ .social-profile-cover {
+ height: 120px;
+ }
+ .social-profile-identity {
+ flex-direction: column;
+ align-items: flex-start;
+ margin-top: -36px;
+ }
+
+ .social-live-bar {
+ flex-wrap: wrap;
+ gap: 8px;
+ }
+ .social-live-bar-tools {
+ width: 100%;
+ }
+ .social-panel-grid-2,
+ .social-panel-grid-3 {
+ grid-template-columns: 1fr;
+ }
+
+ .footer-grid-rings {
+ grid-template-columns: 1fr 1fr;
+ gap: 18px;
+ }
+}
+
+@media (max-width: 420px) {
+ .social-city-grid,
+ .social-city-dir.is-compact .social-city-grid {
+ grid-template-columns: 1fr;
+ }
+ .footer-grid-rings {
+ grid-template-columns: 1fr;
+ }
+ .social-home .social-people-chip-want {
+ display: none;
+ }
+ .social-home .social-date-hero-steps li:last-child {
+ display: none;
+ }
+}
+
+/* —— Place detail /hub/places/[id] · cinematic —— */
+.spd {
+ --spd-amber: #f59e0b;
+ --spd-mint: #4ecdc4;
+ color: #f4f4f5;
+ background: #07080c;
+ padding-bottom: 3rem;
+}
+.spd-stage {
+ position: relative;
+ min-height: min(78dvh, 720px);
+ display: grid;
+ align-items: end;
+ overflow: hidden;
+ isolation: isolate;
+}
+.spd-stage-photo {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ object-position: center 35%;
+ z-index: 0;
+ transform: scale(1.04);
+ animation: spd-ken 28s ease-in-out infinite alternate;
+}
+@keyframes spd-ken {
+ from { transform: scale(1.04) translate3d(0, 0, 0); }
+ to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
+}
+.spd-stage-veil {
+ position: absolute;
+ inset: 0;
+ z-index: 1;
+ background:
+ linear-gradient(180deg, rgba(7, 8, 12, 0.22) 0%, rgba(7, 8, 12, 0.08) 32%, rgba(7, 8, 12, 0.45) 62%, #07080c 100%),
+ linear-gradient(90deg, rgba(7, 8, 12, 0.4) 0%, transparent 48%),
+ radial-gradient(ellipse 70% 50% at 18% 78%, rgba(245, 158, 11, 0.28), transparent 60%);
+ pointer-events: none;
+}
+.spd-stage-grain {
+ position: absolute;
+ inset: 0;
+ z-index: 2;
+ opacity: 0.18;
+ pointer-events: none;
+ mix-blend-mode: overlay;
+ background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
+}
+.spd-stage-inner {
+ position: relative;
+ z-index: 3;
+ width: min(1120px, calc(100% - 2rem));
+ margin: 0 auto;
+ padding: 5.5rem 0 2.25rem;
+ display: grid;
+ gap: 1.25rem;
+}
+.spd-back {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.4rem;
+ width: fit-content;
+ min-height: 44px;
+ padding: 0 0.85rem;
+ border-radius: 999px;
+ border: 1px solid rgba(255, 255, 255, 0.14);
+ background: rgba(0, 0, 0, 0.35);
+ backdrop-filter: blur(12px);
+ color: rgba(255, 255, 255, 0.85);
+ text-decoration: none;
+ font-size: 0.84rem;
+ transition: border-color 0.2s, color 0.2s;
+}
+.spd-back:hover {
+ border-color: rgba(78, 205, 196, 0.55);
+ color: #7aefe4;
+}
+.spd-stage-copy {
+ display: grid;
+ gap: 0.75rem;
+ max-width: 40rem;
+ animation: spd-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
+}
+@keyframes spd-rise {
+ from { opacity: 0; transform: translateY(18px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+.spd-kicker {
+ margin: 0;
+ display: inline-flex;
+ align-items: center;
+ gap: 0.45rem;
+ font-size: 0.78rem;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ color: #fbbf24;
+ text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
+}
+.spd-kicker em {
+ font-style: normal;
+ font-size: 0.62rem;
+ letter-spacing: 0.08em;
+ padding: 0.18rem 0.5rem;
+ border-radius: 999px;
+ background: rgba(251, 191, 36, 0.22);
+ border: 1px solid rgba(251, 191, 36, 0.35);
+}
+.spd-brand {
+ margin: 0;
+ font-size: clamp(3.2rem, 12vw, 5.6rem);
+ font-weight: 800;
+ letter-spacing: -0.045em;
+ line-height: 0.92;
+ text-wrap: balance;
+ background: linear-gradient(180deg, #fff 20%, #fde68a 100%);
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+ filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
+}
+.spd-vibe {
+ margin: 0;
+ font-size: clamp(1.05rem, 2.4vw, 1.35rem);
+ color: #9ff5ef;
+ text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
+}
+.spd-blurb {
+ margin: 0;
+ max-width: 36rem;
+ font-size: 0.98rem;
+ line-height: 1.6;
+ color: rgba(255, 255, 255, 0.78);
+}
+.spd-tags {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.4rem;
+}
+.spd-tags span {
+ padding: 0.28rem 0.7rem;
+ border-radius: 999px;
+ font-size: 0.74rem;
+ border: 1px solid rgba(255, 255, 255, 0.16);
+ background: rgba(0, 0, 0, 0.28);
+ backdrop-filter: blur(8px);
+}
+.spd-cta {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.55rem;
+ margin-top: 0.35rem;
+}
+.spd-btn {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 0.4rem;
+ min-height: 46px;
+ padding: 0 1.05rem;
+ border-radius: 999px;
+ border: 1px solid rgba(255, 255, 255, 0.18);
+ background: rgba(8, 10, 14, 0.55);
+ backdrop-filter: blur(14px);
+ color: #fff;
+ text-decoration: none;
+ font-size: 0.9rem;
+ font-weight: 600;
+ transition: transform 0.2s, border-color 0.2s, background 0.2s;
+}
+.spd-btn:hover {
+ transform: translateY(-2px);
+ border-color: rgba(78, 205, 196, 0.55);
+}
+.spd-btn-primary {
+ border-color: transparent;
+ background: linear-gradient(135deg, #f59e0b, #ea580c);
+ box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35);
+ color: #111;
+}
+.spd-btn-primary:hover {
+ border-color: transparent;
+ filter: brightness(1.05);
+}
+.spd-stats {
+ position: relative;
+ z-index: 4;
+ width: min(1120px, calc(100% - 2rem));
+ margin: -1.6rem auto 0;
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 0.65rem;
+ padding: 0.85rem;
+ border-radius: 1.25rem;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: rgba(14, 16, 22, 0.72);
+ backdrop-filter: blur(18px);
+ box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
+ animation: spd-rise 1s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
+}
+.spd-stat {
+ display: flex;
+ align-items: center;
+ gap: 0.65rem;
+ padding: 0.7rem 0.75rem;
+ border-radius: 0.9rem;
+ background: rgba(255, 255, 255, 0.03);
+ min-width: 0;
+}
+.spd-stat svg {
+ flex: 0 0 auto;
+ color: var(--spd-amber);
+}
+.spd-stat > span.spd-stat-text {
+ display: grid;
+ gap: 0.12rem;
+ min-width: 0;
+}
+.spd-stat b {
+ font-size: 1.1rem;
+ font-weight: 750;
+ letter-spacing: -0.02em;
+ line-height: 1.15;
+ word-break: break-word;
+}
+.spd-stat-cost {
+ font-size: 0.88rem !important;
+}
+.spd-stat small {
+ font-size: 0.7rem;
+ color: rgba(255, 255, 255, 0.5);
+}
+.spd-body {
+ width: min(1120px, calc(100% - 2rem));
+ margin: 1.5rem auto 0;
+ display: grid;
+ gap: 1rem;
+}
+.spd-sec-head {
+ display: grid;
+ gap: 0.2rem;
+ margin-bottom: 0.85rem;
+}
+.spd-sec-head p {
+ margin: 0;
+ font-size: 0.72rem;
+ letter-spacing: 0.14em;
+ text-transform: uppercase;
+ color: var(--spd-amber);
+}
+.spd-sec-head h2 {
+ margin: 0;
+ font-size: 1.35rem;
+ letter-spacing: -0.02em;
+}
+.spd-panel,
+.spd-map,
+.spd-nearby,
+.spd-why {
+ padding: 1.2rem 1.25rem;
+ border-radius: 1.25rem;
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ background:
+ linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 40%),
+ rgba(16, 18, 24, 0.9);
+}
+.spd-panel h2,
+.spd-map h2 {
+ margin: 0;
+ font-size: 1.05rem;
+ display: inline-flex;
+ align-items: center;
+ gap: 0.4rem;
+}
+.spd-panel-head {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 0.75rem;
+ margin-bottom: 0.9rem;
+}
+.spd-panel-head a {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.2rem;
+ font-size: 0.8rem;
+ color: #7aefe4;
+ text-decoration: none;
+}
+.spd-highlights {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 0.65rem;
+}
+.spd-highlights li {
+ display: flex;
+ gap: 0.75rem;
+ align-items: flex-start;
+ padding: 0.9rem 1rem;
+ border-radius: 1rem;
+ border: 1px solid rgba(245, 158, 11, 0.18);
+ background:
+ radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.12), transparent 55%),
+ rgba(0, 0, 0, 0.22);
+}
+.spd-highlights em {
+ font-style: normal;
+ font-size: 0.78rem;
+ font-weight: 700;
+ color: var(--spd-amber);
+ letter-spacing: 0.06em;
+ padding-top: 0.15rem;
+}
+.spd-highlights span {
+ font-size: 0.92rem;
+ line-height: 1.45;
+ color: rgba(255, 255, 255, 0.86);
+}
+.spd-split {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 0.9rem;
+}
+.spd-cards {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: grid;
+ gap: 0.5rem;
+}
+.spd-card {
+ display: grid;
+ grid-template-columns: auto 1fr auto;
+ gap: 0.75rem;
+ align-items: center;
+ min-height: 64px;
+ padding: 0.7rem 0.85rem;
+ border-radius: 1rem;
+ text-decoration: none;
+ color: inherit;
+ border: 1px solid rgba(255, 255, 255, 0.06);
+ background: rgba(255, 255, 255, 0.03);
+ transition: transform 0.2s, border-color 0.2s, background 0.2s;
+}
+.spd-card:hover {
+ transform: translateY(-2px);
+ border-color: rgba(78, 205, 196, 0.4);
+ background: rgba(78, 205, 196, 0.07);
+}
+.spd-card-ico {
+ width: 42px;
+ height: 42px;
+ border-radius: 12px;
+ display: grid;
+ place-items: center;
+ background: rgba(245, 158, 11, 0.14);
+ font-size: 1.15rem;
+}
+.spd-card-ico.is-radio {
+ background: rgba(78, 205, 196, 0.14);
+}
+.spd-card-copy {
+ display: grid;
+ gap: 0.15rem;
+ min-width: 0;
+}
+.spd-card-copy strong {
+ font-size: 0.92rem;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.spd-card-copy small {
+ font-size: 0.74rem;
+ color: rgba(255, 255, 255, 0.5);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.spd-muted {
+ margin: 0;
+ font-size: 0.88rem;
+ color: rgba(255, 255, 255, 0.55);
+ line-height: 1.5;
+}
+.spd-people {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
+ gap: 0.6rem;
+}
+.spd-person {
+ display: flex;
+ align-items: center;
+ gap: 0.65rem;
+ padding: 0.65rem 0.75rem;
+ border-radius: 1rem;
+ text-decoration: none;
+ color: inherit;
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ background: rgba(0, 0, 0, 0.25);
+ min-height: 44px;
+ transition: border-color 0.2s, transform 0.2s;
+}
+.spd-person:hover {
+ border-color: rgba(245, 158, 11, 0.45);
+ transform: translateY(-2px);
+}
+.spd-person img {
+ border-radius: 50%;
+ object-fit: cover;
+ box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
+}
+.spd-person span {
+ display: grid;
+ gap: 0.1rem;
+ min-width: 0;
+}
+.spd-person strong {
+ font-size: 0.9rem;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.spd-person em {
+ font-style: normal;
+ font-size: 0.72rem;
+ color: rgba(255, 255, 255, 0.5);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.spd-map-frame {
+ position: relative;
+ border-radius: 1rem;
+ overflow: hidden;
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ aspect-ratio: 16 / 9;
+ background: #0a0a0e;
+}
+.spd-map-frame--loading {
+ background:
+ linear-gradient(110deg, #0a0a0e 30%, #151820 50%, #0a0a0e 70%);
+ background-size: 200% 100%;
+ animation: spd-map-shimmer 1.4s ease-in-out infinite;
+}
+@keyframes spd-map-shimmer {
+ 0% { background-position: 100% 0; }
+ 100% { background-position: -100% 0; }
+}
+.spd-map-canvas {
+ width: 100%;
+ height: 100%;
+ min-height: 180px;
+}
+.spd-map-canvas .maplibregl-map,
+.spd-map-canvas .maplibregl-canvas {
+ width: 100% !important;
+ height: 100% !important;
+}
+.spd-map-status {
+ position: absolute;
+ inset: 0;
+ display: grid;
+ place-items: center;
+ pointer-events: none;
+ font-size: 0.82rem;
+ color: rgba(255, 255, 255, 0.55);
+ background: rgba(10, 10, 14, 0.55);
+}
+.spd-map-pin {
+ font-size: 1.35rem;
+ line-height: 1;
+ filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
+ user-select: none;
+ pointer-events: none;
+}
+.spd-arrivals {
+ list-style: none;
+ margin: 0.75rem 0 0;
+ padding: 0;
+ display: grid;
+ gap: 0.4rem;
+}
+.spd-arrivals li {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.5rem 0.85rem;
+ padding: 0.55rem 0.7rem;
+ border-radius: 0.75rem;
+ background: rgba(255, 255, 255, 0.03);
+ font-size: 0.85rem;
+}
+.spd-nearby-grid {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 0.75rem;
+}
+.spd-nearby-card {
+ position: relative;
+ overflow: hidden;
+ display: grid;
+ align-content: end;
+ min-height: 160px;
+ border-radius: 1.1rem;
+ text-decoration: none;
+ color: #fff;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: #12141a;
+ transition: transform 0.25s ease, border-color 0.2s;
+}
+.spd-nearby-card:hover {
+ transform: translateY(-3px);
+ border-color: rgba(78, 205, 196, 0.45);
+}
+.spd-nearby-card img {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ opacity: 0.7;
+}
+.spd-nearby-emoji {
+ position: absolute;
+ inset: 0;
+ display: grid;
+ place-items: center;
+ font-size: 2.5rem;
+ background:
+ radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.25), transparent 50%),
+ #151821;
+}
+.spd-nearby-card > div {
+ position: relative;
+ z-index: 1;
+ display: grid;
+ gap: 0.2rem;
+ padding: 0.85rem;
+ background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
+}
+.spd-nearby-card strong {
+ font-size: 0.95rem;
+}
+.spd-nearby-card em {
+ font-style: normal;
+ font-size: 0.72rem;
+ color: rgba(255, 255, 255, 0.7);
+ line-height: 1.35;
+}
+.spd-empty {
+ padding: 3rem 1rem;
+ text-align: center;
+ display: grid;
+ gap: 0.75rem;
+ justify-items: center;
+}
+@media (prefers-reduced-motion: reduce) {
+ .spd-stage-photo,
+ .spd-stage-copy,
+ .spd-stats {
+ animation: none !important;
+ }
+}
+@media (max-width: 900px) {
+ .spd-stats {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+ .spd-split,
+ .spd-highlights,
+ .spd-nearby-grid {
+ grid-template-columns: 1fr 1fr;
+ }
+ .spd-stage {
+ min-height: min(70dvh, 620px);
+ }
+}
+@media (max-width: 560px) {
+ .spd-split,
+ .spd-highlights,
+ .spd-nearby-grid {
+ grid-template-columns: 1fr;
+ }
+ .spd-map-frame {
+ aspect-ratio: 4 / 3;
+ }
+ .spd-cta .spd-btn {
+ flex: 1 1 auto;
+ }
+ .spd-stage-inner {
+ padding-top: 4.5rem;
+ }
+ .spd-brand {
+ font-size: clamp(2.8rem, 16vw, 3.6rem);
+ }
+}
diff --git a/src/modules/hub/components/AttractiveRoster.tsx b/src/modules/hub/components/AttractiveRoster.tsx
new file mode 100644
index 0000000..c202879
--- /dev/null
+++ b/src/modules/hub/components/AttractiveRoster.tsx
@@ -0,0 +1,331 @@
+"use client";
+
+import {
+ useEffect,
+ useId,
+ useMemo,
+ useRef,
+ useState,
+ useSyncExternalStore,
+} from "react";
+import Link from "next/link";
+import type { HubRosterMember } from "@hub/lib/rosterMock";
+import {
+ SELF_MEMBER_ID,
+ useDiscoveryRoster,
+} from "@hub/lib/discoveryRoster";
+import { useRosterLikes, setRosterLike } from "@hub/lib/useRosterLikes";
+import { loadJson } from "@hub/lib/storage";
+import { hubPath } from "@hub/lib/hubPath";
+import HubAvatar from "./HubAvatar";
+import SectionSpark from "./SectionSpark";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { txCityShort, txMember } from "@hub/lib/localizeEntity";
+
+const STORAGE_CHANGE = "nomadro-hub-storage";
+
+function subscribeRosterCity(cb: () => void) {
+ window.addEventListener("storage", cb);
+ window.addEventListener(STORAGE_CHANGE, cb);
+ return () => {
+ window.removeEventListener("storage", cb);
+ window.removeEventListener(STORAGE_CHANGE, cb);
+ };
+}
+
+type FilterId = "all" | "online" | "city" | "liked" | "f" | "m";
+
+const FILTERS: { id: FilterId; label: string; emoji: string }[] = [
+ { id: "all", label: "全部", emoji: "✨" },
+ { id: "online", label: "在线", emoji: "🟢" },
+ { id: "city", label: "同城", emoji: "📍" },
+ { id: "liked", label: "已关注", emoji: "♥" },
+ { id: "f", label: "女生", emoji: "👩" },
+ { id: "m", label: "男生", emoji: "👨" },
+];
+
+function cityKey(city: string) {
+ return city.split(/[·,,]/)[0]?.trim().toLowerCase() || "";
+}
+
+export default function AttractiveRoster({ onJoin }: { onJoin: () => void }) {
+ useHubI18n();
+ // 想见的人:无人脸检测通过的头像一律不进列表(含无 faceOk / 空头像)
+ const roster = useDiscoveryRoster({ requireFace: true });
+ const likes = useRosterLikes();
+ const [filter, setFilter] = useState("all");
+ const [highlightId, setHighlightId] = useState(null);
+ const [burst, setBurst] = useState(false);
+ const burstTimer = useRef | null>(null);
+ const filterId = useId();
+ const profileCity = useSyncExternalStore(
+ subscribeRosterCity,
+ () => loadJson<{ city?: string }>("roster", {}).city || "",
+ () => "",
+ );
+ const myCity = useMemo(() => {
+ const self = roster.find((m) => m.id === SELF_MEMBER_ID);
+ return cityKey(self?.city || profileCity);
+ }, [roster, profileCity]);
+
+ useEffect(() => {
+ const selectMember = (event: Event) => {
+ const id: unknown = (event as CustomEvent).detail;
+ if (
+ typeof id !== "string" ||
+ !roster.some((member) => member.id === id)
+ )
+ return;
+ setFilter("all");
+ setHighlightId(id);
+ };
+ window.addEventListener("nomadro-hub-select-member", selectMember);
+ return () =>
+ window.removeEventListener("nomadro-hub-select-member", selectMember);
+ }, [roster]);
+
+ useEffect(
+ () => () => {
+ if (burstTimer.current) clearTimeout(burstTimer.current);
+ },
+ [],
+ );
+
+ const list = useMemo(() => {
+ return roster.filter((m) => {
+ if (filter === "online") return m.online;
+ if (filter === "f" || filter === "m") return m.gender === filter;
+ if (filter === "liked") return Boolean(likes[m.id]);
+ if (filter === "city") {
+ if (!myCity) return false;
+ return cityKey(m.city) === myCity;
+ }
+ return true;
+ });
+ }, [filter, roster, likes, myCity]);
+
+ const online = useMemo(() => roster.filter((m) => m.online), [roster]);
+
+ const toggleLike = (
+ event: { preventDefault(): void; stopPropagation(): void },
+ m: HubRosterMember,
+ ) => {
+ event.preventDefault();
+ event.stopPropagation();
+ setRosterLike(m.id, !likes[m.id]);
+ setBurst(true);
+ setHighlightId(m.id);
+ if (burstTimer.current) clearTimeout(burstTimer.current);
+ burstTimer.current = setTimeout(() => setBurst(false), 700);
+ };
+
+ const emptyCopy =
+ filter === "city" && !myCity
+ ? hubTx("先填城市")
+ : filter === "city"
+ ? hubTx("暂无同城")
+ : filter === "liked"
+ ? hubTx("暂无关注")
+ : hubTx("暂无人");
+
+ return (
+
+
+
+
+
+ {hubTx("找搭子")}
+
+
+
+ 👋
+
+ {hubTx("找搭子")}
+
+
+
+
+
+ {online.slice(0, 6).map((m) => (
+
+ ))}
+
+
+ {online.length} {" "}
+ {hubTx("位现在在线")}
+
+
+ {hubTx("加入社区认识")}
+
+
+
+
+ {FILTERS.map((f, index) => (
+ {
+ setFilter(f.id);
+ setHighlightId(null);
+ }}
+ onKeyDown={(event) => {
+ const key = event.key;
+ if (!["ArrowLeft", "ArrowRight", "Home", "End"].includes(key))
+ return;
+ event.preventDefault();
+ const nextIndex =
+ key === "Home"
+ ? 0
+ : key === "End"
+ ? FILTERS.length - 1
+ : (index +
+ (key === "ArrowRight" ? 1 : -1) +
+ FILTERS.length) %
+ FILTERS.length;
+ const next = FILTERS[nextIndex];
+ setFilter(next.id);
+ setHighlightId(null);
+ document.getElementById(`${filterId}-${next.id}`)?.focus();
+ }}
+ >
+ {f.emoji} {hubTx(f.label)}
+
+ ))}
+
+
+ {list.length === 0 ? (
+
+
{emptyCopy}
+
+ {(filter === "city" && !myCity) || filter === "all" ? (
+
+ {hubTx("去完善介绍")}
+
+ ) : null}
+
+ {hubTx("加入社区")}
+
+ setFilter("all")}
+ >
+ {hubTx("看全部")}
+
+
+
+ ) : (
+
+ {list.map((m, i) => {
+ const d = txMember(m);
+ return (
+ setHighlightId(m.id)}
+ >
+
+
+ {m.online ? : null}
+ {likes[m.id] ? (
+
+ ♥
+
+ ) : null}
+
+
+ {m.name}
+ {m.id === SELF_MEMBER_ID ? ` · ${hubTx("我")}` : ""}
+
+
+ {d.title}
+ {d.vibe ? ` · ${d.vibe.split("·")[0].trim()}` : ""}
+
+
+ {txCityShort(m.city)}
+ {d.tags[0] ? ` · ${d.tags[0]}` : ""}
+
+
+ {d.lookingFor}
+
+ toggleLike(e, m)}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" || e.key === " ") toggleLike(e, m);
+ }}
+ >
+ {likes[m.id] ? "♥" : "♡"}
+
+
+ );
+ })}
+
+ )}
+
+ {burst ? (
+
+ ♥
+
+ ) : null}
+
+
+
+ {hubTx("更多")}
+
+
+ {hubTx("去左右滑认识")}
+
+
+ {hubTx("进群组聊天")}
+
+
+ {hubTx("加入社区")}
+
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/AvatarSelfieModal.tsx b/src/modules/hub/components/AvatarSelfieModal.tsx
new file mode 100644
index 0000000..5da9855
--- /dev/null
+++ b/src/modules/hub/components/AvatarSelfieModal.tsx
@@ -0,0 +1,488 @@
+"use client";
+
+import { useEffect, useRef, useState } from "react";
+import { createPortal } from "react-dom";
+import { X } from "lucide-react";
+import { hubTx } from "@hub/lib/hubTx";
+
+type Step = "arm" | "turn" | "done";
+
+export type SelfieCapturePayload = {
+ front: Blob;
+ turn: Blob;
+ /** Full stream from camera open → challenge done (for human audit). */
+ video: Blob | null;
+ videoMime: string;
+};
+
+function pickRecorderMime(): string {
+ if (typeof MediaRecorder === "undefined") return "";
+ const candidates = [
+ "video/webm;codecs=vp9,opus",
+ "video/webm;codecs=vp8,opus",
+ "video/webm",
+ "video/mp4",
+ ];
+ for (const c of candidates) {
+ try {
+ if (MediaRecorder.isTypeSupported(c)) return c;
+ } catch {
+ /* ignore */
+ }
+ }
+ return "";
+}
+
+export default function AvatarSelfieModal({
+ open,
+ onClose,
+ onCaptured,
+}: {
+ open: boolean;
+ onClose: () => void;
+ onCaptured: (payload: SelfieCapturePayload) => void | Promise;
+}) {
+ const videoRef = useRef(null);
+ const streamRef = useRef(null);
+ const recorderRef = useRef(null);
+ const chunksRef = useRef([]);
+ const autoStartedRef = useRef(false);
+ const frontBlobRef = useRef(null);
+ const [mounted, setMounted] = useState(false);
+ const [step, setStep] = useState("arm");
+ const [err, setErr] = useState("");
+ const [countdown, setCountdown] = useState(null);
+ const [busy, setBusy] = useState(false);
+ const [previewReady, setPreviewReady] = useState(false);
+ const [recording, setRecording] = useState(false);
+
+ useEffect(() => {
+ setMounted(true);
+ }, []);
+
+ useEffect(() => {
+ if (!open) return;
+ let cancelled = false;
+ setStep("arm");
+ setErr("");
+ setCountdown(null);
+ setBusy(false);
+ setPreviewReady(false);
+ setRecording(false);
+ autoStartedRef.current = false;
+ frontBlobRef.current = null;
+ chunksRef.current = [];
+ recorderRef.current = null;
+
+ /** 拿到流立刻开录——不要等倒计时 / 预览,后台要全程存档 */
+ const startRecorder = (stream: MediaStream): boolean => {
+ const mime = pickRecorderMime();
+ if (!mime || typeof MediaRecorder === "undefined") {
+ setRecording(false);
+ return false;
+ }
+ try {
+ if (recorderRef.current && recorderRef.current.state !== "inactive") {
+ try {
+ recorderRef.current.stop();
+ } catch {
+ /* ignore */
+ }
+ }
+ const rec = new MediaRecorder(stream, {
+ mimeType: mime,
+ videoBitsPerSecond: 2_500_000,
+ });
+ chunksRef.current = [];
+ rec.ondataavailable = (ev) => {
+ if (ev.data && ev.data.size > 0) chunksRef.current.push(ev.data);
+ };
+ rec.onerror = () => {
+ if (!cancelled) setRecording(false);
+ };
+ // 100ms 切片,开摄像头起的每一帧都进存档
+ rec.start(100);
+ recorderRef.current = rec;
+ if (!cancelled) setRecording(true);
+ return true;
+ } catch {
+ recorderRef.current = null;
+ if (!cancelled) setRecording(false);
+ return false;
+ }
+ };
+
+ const attachPreview = async (stream: MediaStream) => {
+ const video = videoRef.current;
+ if (!video) return;
+ video.srcObject = stream;
+ video.muted = true;
+ video.playsInline = true;
+ const onReady = () => {
+ if (!cancelled) setPreviewReady(true);
+ };
+ video.addEventListener("loadedmetadata", onReady, { once: true });
+ video.addEventListener("playing", onReady, { once: true });
+ try {
+ await video.play();
+ onReady();
+ } catch {
+ /* autoplay may need metadata first */
+ }
+ };
+
+ void (async () => {
+ try {
+ let stream: MediaStream;
+ try {
+ stream = await navigator.mediaDevices.getUserMedia({
+ audio: false,
+ video: {
+ facingMode: { ideal: "user" },
+ width: { ideal: 1280 },
+ height: { ideal: 720 },
+ },
+ });
+ } catch {
+ stream = await navigator.mediaDevices.getUserMedia({
+ audio: false,
+ video: true,
+ });
+ }
+ if (cancelled) {
+ stream.getTracks().forEach((t) => t.stop());
+ return;
+ }
+ streamRef.current = stream;
+ // 先录再贴预览:保证「进入摄像头」即开始存档
+ if (!startRecorder(stream)) {
+ // 再试一次(部分浏览器要等 track live)
+ await new Promise((r) => setTimeout(r, 120));
+ if (!cancelled) startRecorder(stream);
+ }
+ await attachPreview(stream);
+ if (!cancelled && videoRef.current && videoRef.current.srcObject !== stream) {
+ await attachPreview(stream);
+ }
+ // 若仍未录上,预览就绪后再补开一次
+ if (
+ !cancelled &&
+ (!recorderRef.current || recorderRef.current.state === "inactive")
+ ) {
+ startRecorder(stream);
+ }
+ } catch {
+ if (!cancelled) {
+ setErr(hubTx("打不开摄像头,请允许使用或改用相册"));
+ }
+ }
+ })();
+
+ return () => {
+ cancelled = true;
+ const rec = recorderRef.current;
+ if (rec && rec.state !== "inactive") {
+ try {
+ rec.stop();
+ } catch {
+ /* ignore */
+ }
+ }
+ recorderRef.current = null;
+ const video = videoRef.current;
+ if (video) video.srcObject = null;
+ streamRef.current?.getTracks().forEach((t) => t.stop());
+ streamRef.current = null;
+ setRecording(false);
+ };
+ }, [open]);
+
+ async function snap(): Promise {
+ const video = videoRef.current;
+ if (!video || video.readyState < 2) return null;
+ const w = video.videoWidth || 640;
+ const h = video.videoHeight || 640;
+ const canvas = document.createElement("canvas");
+ canvas.width = w;
+ canvas.height = h;
+ const ctx = canvas.getContext("2d");
+ if (!ctx) return null;
+ ctx.translate(w, 0);
+ ctx.scale(-1, 1);
+ ctx.drawImage(video, 0, 0, w, h);
+ return await new Promise((resolve) => {
+ canvas.toBlob((b) => resolve(b), "image/jpeg", 0.92);
+ });
+ }
+
+ function stopRecorder(): Promise<{ blob: Blob | null; mime: string }> {
+ return new Promise((resolve) => {
+ const rec = recorderRef.current;
+ if (!rec || rec.state === "inactive") {
+ const mime = pickRecorderMime() || "video/webm";
+ const parts = chunksRef.current;
+ resolve({
+ blob: parts.length > 0 ? new Blob(parts, { type: mime }) : null,
+ mime,
+ });
+ return;
+ }
+ const mime = rec.mimeType || pickRecorderMime() || "video/webm";
+ let settled = false;
+ const finish = () => {
+ if (settled) return;
+ settled = true;
+ setRecording(false);
+ const parts = chunksRef.current;
+ const blob = parts.length > 0 ? new Blob(parts, { type: mime }) : null;
+ recorderRef.current = null;
+ resolve({ blob, mime });
+ };
+ rec.onstop = finish;
+ try {
+ rec.requestData?.();
+ rec.stop();
+ } catch {
+ finish();
+ return;
+ }
+ // 兜底:部分环境 onstop 不触发
+ window.setTimeout(finish, 800);
+ });
+ }
+
+ function runCountdown(seconds: number, next: () => void) {
+ let n = seconds;
+ setCountdown(n);
+ const timer = window.setInterval(() => {
+ n -= 1;
+ if (n <= 0) {
+ window.clearInterval(timer);
+ setCountdown(null);
+ next();
+ } else {
+ setCountdown(n);
+ }
+ }, 700);
+ }
+
+ async function finishWithTurn(turnBlob: Blob) {
+ const front = frontBlobRef.current;
+ if (!front) {
+ setErr(hubTx("拍照失败,请重试"));
+ setStep("arm");
+ autoStartedRef.current = false;
+ return;
+ }
+ setStep("done");
+ setBusy(true);
+ try {
+ const { blob: videoBlob, mime } = await stopRecorder();
+ if (!videoBlob || videoBlob.size < 1024) {
+ throw new Error(
+ hubTx("录屏失败,请重开摄像头再试一次") || "录屏失败,请重开摄像头再试一次",
+ );
+ }
+ await onCaptured({
+ front,
+ turn: turnBlob,
+ video: videoBlob,
+ videoMime: mime || "video/webm",
+ });
+ onClose();
+ } catch (e) {
+ setStep("arm");
+ autoStartedRef.current = false;
+ frontBlobRef.current = null;
+ setErr(
+ e instanceof Error && e.message
+ ? hubTx(e.message) || e.message
+ : hubTx("自拍没通过,请再试一次"),
+ );
+ // 失败后尽量重新开录,方便立刻重试
+ if (streamRef.current) {
+ try {
+ const mime = pickRecorderMime();
+ if (mime && typeof MediaRecorder !== "undefined") {
+ const rec = new MediaRecorder(streamRef.current, {
+ mimeType: mime,
+ videoBitsPerSecond: 2_500_000,
+ });
+ chunksRef.current = [];
+ rec.ondataavailable = (ev) => {
+ if (ev.data && ev.data.size > 0) chunksRef.current.push(ev.data);
+ };
+ rec.start(100);
+ recorderRef.current = rec;
+ setRecording(true);
+ }
+ } catch {
+ setRecording(false);
+ }
+ }
+ } finally {
+ setBusy(false);
+ }
+ }
+
+ /** Silent reference frame → turn prompt → turn shot. */
+ async function beginChallenge() {
+ setBusy(true);
+ setErr("");
+ try {
+ if (!recording && streamRef.current) {
+ // 挑战开始前再兜底开录一次
+ const mime = pickRecorderMime();
+ if (mime && typeof MediaRecorder !== "undefined") {
+ try {
+ const rec = new MediaRecorder(streamRef.current, {
+ mimeType: mime,
+ videoBitsPerSecond: 2_500_000,
+ });
+ chunksRef.current = [];
+ rec.ondataavailable = (ev) => {
+ if (ev.data && ev.data.size > 0) chunksRef.current.push(ev.data);
+ };
+ rec.start(100);
+ recorderRef.current = rec;
+ setRecording(true);
+ } catch {
+ /* ignore */
+ }
+ }
+ }
+ const front = await snap();
+ if (!front) {
+ setErr(hubTx("拍照失败,请重试"));
+ autoStartedRef.current = false;
+ return;
+ }
+ frontBlobRef.current = front;
+ setStep("turn");
+ await new Promise((r) => window.setTimeout(r, 900));
+ runCountdown(3, () => {
+ void (async () => {
+ const turn = await snap();
+ if (!turn) {
+ setErr(hubTx("拍照失败,请重试"));
+ setStep("arm");
+ autoStartedRef.current = false;
+ frontBlobRef.current = null;
+ return;
+ }
+ await finishWithTurn(turn);
+ })();
+ });
+ } finally {
+ setBusy(false);
+ }
+ }
+
+ // Camera ready → auto countdown → turn
+ useEffect(() => {
+ if (!open || !previewReady || err || autoStartedRef.current) return;
+ if (step !== "arm" || countdown !== null || busy) return;
+ autoStartedRef.current = true;
+ runCountdown(3, () => {
+ void beginChallenge();
+ });
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- start once per open
+ }, [open, previewReady, err, step, countdown, busy]);
+
+ if (!open || !mounted) return null;
+
+ const tip =
+ step === "arm"
+ ? hubTx("脸放进圈内,倒计时后请转头")
+ : step === "turn"
+ ? hubTx("请稍微转头(左右任一方向)")
+ : hubTx("确认中…");
+
+ const node = (
+
+
+
+
+ {hubTx("现场自拍")}
+ {recording ? (
+
+ ● {hubTx("录制中 · 全程存档")}
+
+ ) : null}
+
+
+
+
+
+
+
+
+
+ {!previewReady && !err ? (
+
{hubTx("正在打开摄像头…")}
+ ) : null}
+ {countdown !== null ? (
+
{countdown}
+ ) : null}
+
+
{tip}
+ {err ? (
+
+ {err}
+
+ ) : null}
+
+ {err ? (
+ {
+ setErr("");
+ autoStartedRef.current = false;
+ frontBlobRef.current = null;
+ setStep("arm");
+ }}
+ >
+ {hubTx("重试")}
+
+ ) : null}
+
+ {hubTx("取消")}
+
+
+
+
+ );
+
+ return createPortal(node, document.body);
+}
diff --git a/src/modules/hub/components/CafeDirectory.tsx b/src/modules/hub/components/CafeDirectory.tsx
new file mode 100644
index 0000000..bd9b317
--- /dev/null
+++ b/src/modules/hub/components/CafeDirectory.tsx
@@ -0,0 +1,679 @@
+"use client";
+
+import {
+ useEffect,
+ useMemo,
+ useRef,
+ useState,
+ useSyncExternalStore,
+ type FormEvent,
+} from "react";
+import Link from "next/link";
+import { useSearchParams } from "next/navigation";
+import {
+ ArrowUpRight,
+ ChevronDown,
+ Coffee,
+ MapPin,
+ MessageCircle,
+ Plug,
+ Search,
+ Star,
+ Wifi,
+ X,
+} from "lucide-react";
+import SiteShell from "./SiteShell";
+import WayDestChrome from "./WayDestChrome";
+import { BookmarkButton, EmptyState, ShareButton } from "./HubUI";
+import { useWaysMeta } from "@hub/lib/waysMeta";
+import { hubApi } from "@hub/lib/api";
+import { useLocalState } from "@hub/lib/useLocalState";
+import { uid } from "@hub/lib/storage";
+import { resolveSocialCatalog } from "@hub/lib/resolveCatalog";
+import { hubPath } from "@hub/lib/hubPath";
+import type { HubCafe, HubCafeReview } from "@hub/lib/types";
+import { HUB_CITIES } from "@hub/lib/cities";
+import { resolveSocialCities } from "@hub/geo";
+import { useSocialConfig } from "./HubExperience";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { useHubAudienceLane } from "@hub/lib/useHubAudience";
+import { isHubCnOnly } from "@hub/lib/hubCnLock";
+
+type Review = HubCafeReview & { local?: boolean };
+
+function subscribeHash(callback: () => void) {
+ window.addEventListener("hashchange", callback);
+ window.addEventListener("popstate", callback);
+ return () => {
+ window.removeEventListener("hashchange", callback);
+ window.removeEventListener("popstate", callback);
+ };
+}
+
+function cityCover(cityName: string): string | undefined {
+ return HUB_CITIES.find(
+ (c) => c.name === cityName || cityName.includes(c.name) || c.name.includes(cityName),
+ )?.cover;
+}
+
+function cityEmoji(cityName: string): string {
+ return (
+ HUB_CITIES.find(
+ (c) =>
+ c.name === cityName || cityName.includes(c.name) || c.name.includes(cityName),
+ )?.emoji || "☕"
+ );
+}
+
+function CafeReviewForm({ cafe }: { cafe: HubCafe }) {
+ const [reviews, setReviews] = useLocalState(
+ `cafe-reviews:${cafe.id}`,
+ [],
+ );
+ const [author, setAuthor] = useLocalState("nick", "游民");
+ const [score, setScore] = useState(5);
+ const [text, setText] = useLocalState(`cafe-review-draft:${cafe.id}`, "");
+ const [photoNote, setPhotoNote] = useLocalState(
+ `cafe-review-note:${cafe.id}`,
+ "",
+ );
+ const [status, setStatus] = useState("");
+ const [busy, setBusy] = useState(false);
+ const [open, setOpen] = useState(false);
+ const lock = useRef(false);
+ const textRef = useRef(text);
+ textRef.current = text;
+
+ useEffect(() => {
+ let active = true;
+ void hubApi
+ .listReviews(cafe.id)
+ .then((response) => {
+ if (!active) return;
+ setReviews((current) => [
+ ...(response.items || []),
+ ...current.filter((review) => review.local),
+ ]);
+ })
+ .catch(() => {
+ /* offline seed ok */
+ });
+ return () => {
+ active = false;
+ };
+ }, [cafe.id, setReviews]);
+
+ const submit = async (event?: FormEvent, retry?: Review) => {
+ event?.preventDefault();
+ const payload = retry
+ ? {
+ author: retry.author,
+ score: retry.score,
+ text: retry.text,
+ photoNote: retry.photoNote,
+ }
+ : {
+ author: author.trim() || "游民",
+ score,
+ text: text.trim(),
+ photoNote: photoNote.trim() || undefined,
+ };
+ if (!payload.text || lock.current) return;
+ lock.current = true;
+ setBusy(true);
+ try {
+ await hubApi.postReview(cafe.id, payload);
+ if (retry)
+ setReviews((current) =>
+ current.filter((review) => review.id !== retry.id),
+ );
+ void hubApi
+ .listReviews(cafe.id)
+ .then((response) => {
+ setReviews((current) => [
+ ...(response.items || []),
+ ...current.filter((review) => review.local),
+ ]);
+ })
+ .catch(() => undefined);
+ setStatus(hubTx("评价已发布"));
+ if (!retry && textRef.current.trim() === payload.text) {
+ setText("");
+ setPhotoNote("");
+ }
+ } catch {
+ if (!retry)
+ setReviews((current) => [
+ {
+ id: uid("local_review"),
+ cafeId: cafe.id,
+ ...payload,
+ at: new Date().toISOString(),
+ local: true,
+ },
+ ...current,
+ ]);
+ setStatus(hubTx("先留在你这边了。有网后点评价下面的「再发一次」就行。"));
+ if (!retry && textRef.current.trim() === payload.text) {
+ setText("");
+ setPhotoNote("");
+ }
+ } finally {
+ lock.current = false;
+ setBusy(false);
+ }
+ };
+
+ return (
+
+
setOpen((v) => !v)}
+ >
+
+ {hubTx("评价")}
+ {reviews.length ? ` · ${reviews.length}` : ""}
+
+
+
+ {open ? (
+
+ {!reviews.length ? (
+
{hubTx("还没有评价")} · {hubTx("写一条帮后来的人。")}
+ ) : (
+
+ {reviews.map((review) => (
+
+
+ {review.author}
+ {"★".repeat(Math.max(1, Math.min(5, review.score)))}
+
+ {review.text}
+ {review.local ? (
+ void submit(undefined, review)}
+ >
+ {hubTx("还没发出 · 再发一次")}
+
+ ) : null}
+
+ ))}
+
+ )}
+
+ {status ? (
+
+ {status}
+
+ ) : null}
+
+ ) : null}
+
+ );
+}
+
+function CafeSheet({
+ cafe,
+ onClose,
+}: {
+ cafe: HubCafe;
+ onClose: () => void;
+}) {
+ const invitation = `${hubTx("有人约在")} ${hubTx(cafe.city)} · ${hubTx(cafe.name)} ${hubTx("喝咖啡,一起聊聊?")}`;
+ const cover = cityCover(cafe.city);
+
+ return (
+
+
+
+
+
+
+
+
+ {cityEmoji(cafe.city)} {hubTx(cafe.city)}
+ {cafe.partners ? ` · ${hubTx("推荐见面点")}` : ""}
+
+
{hubTx(cafe.name)}
+
{hubTx(cafe.vibe)}
+
+
+
+
+
+
+ {cafe.wifiMbps} Mbps
+
+
+ {hubTx(cafe.power)}
+
+
+ {cafe.rating}
+
+
+
+
+
+
+ {hubTx("线下咖啡聊")}
+
+
+
+
+ {hubTx("去聊天室约人")}
+
+
+
+
+
+
+
+ {hubTx(
+ "先在聊天室约好时间,再出来见面。评分供参考,你也可以留下自己的体验。",
+ )}
+
+
+
+
+
+ );
+}
+
+export default function CafeDirectory({
+ embedded = false,
+ hideCityRail = false,
+}: {
+ /** When true, render cafe list only (used inside /places hub). */
+ embedded?: boolean;
+ /** Parent already shows city chips / banner. */
+ hideCityRail?: boolean;
+} = {}) {
+ const { cnOnly } = useHubI18n();
+ const audience = useHubAudienceLane();
+ const config = useSocialConfig();
+ const cnMode = cnOnly || isHubCnOnly(config) || audience === "cn";
+ const searchParams = useSearchParams();
+ const catalog = useMemo(
+ () => resolveSocialCatalog(config.copy.hubCatalogs),
+ [config.copy.hubCatalogs],
+ );
+ const allowedCityNames = useMemo(() => {
+ if (!cnMode) return null;
+ const names = new Set(
+ resolveSocialCities({
+ geo: config.copy.hubGeo,
+ audience,
+ cnOnly: true,
+ }).map((c) => c.name),
+ );
+ return names;
+ }, [cnMode, config.copy.hubGeo, audience]);
+ const seedCafes = useMemo(() => {
+ if (!allowedCityNames) return catalog.cafes;
+ // 中文锁:只留国内咖啡馆,禁止回退成全球目录
+ return catalog.cafes.filter((cafe) =>
+ [...allowedCityNames].some(
+ (name) =>
+ cafe.city === name ||
+ cafe.city.includes(name) ||
+ name.includes(cafe.city),
+ ),
+ );
+ }, [catalog.cafes, allowedCityNames]);
+ const cityParam = (searchParams.get("city") || "").trim();
+ const initialCity = useMemo(() => {
+ if (!cityParam) return "all";
+ const exact = seedCafes.find((c) => c.city === cityParam)?.city;
+ if (exact) return exact;
+ const fuzzy = seedCafes.find(
+ (c) => c.city.includes(cityParam) || cityParam.includes(c.city),
+ )?.city;
+ return fuzzy || "all";
+ }, [cityParam, seedCafes]);
+
+ const [queryChoice, setQueryChoice] = useState<{
+ source: string;
+ value: string;
+ } | null>(null);
+ const [cityChoice, setCityChoice] = useState<{
+ source: string;
+ value: string;
+ } | null>(null);
+ const query =
+ queryChoice?.source === cityParam
+ ? queryChoice.value
+ : cityParam && initialCity === "all"
+ ? cityParam
+ : "";
+ const city =
+ cityChoice?.source === cityParam ? cityChoice.value : initialCity;
+ const setQuery = (value: string) =>
+ setQueryChoice({ source: cityParam, value });
+ const setCity = (value: string) =>
+ setCityChoice({ source: cityParam, value });
+ const [sort, setSort] = useState<"recommended" | "wifi" | "rating" | "saved">(
+ "recommended",
+ );
+ const hashId = useSyncExternalStore(
+ subscribeHash,
+ () => location.hash.slice(1),
+ () => "",
+ );
+ const [pickedId, setPickedId] = useState(null);
+ const [saved] = useLocalState("saved-cafes", []);
+
+ const cities = useMemo(
+ () => [...new Set(seedCafes.map((cafe) => cafe.city))],
+ [seedCafes],
+ );
+
+ const cafes = useMemo(
+ () =>
+ seedCafes
+ .filter(
+ (cafe) =>
+ (city === "all" || cafe.city === city) &&
+ (sort !== "saved" || saved.includes(cafe.id)) &&
+ `${cafe.name} ${cafe.city} ${cafe.vibe}`
+ .toLowerCase()
+ .includes(query.toLowerCase().trim()),
+ )
+ .sort((a, b) =>
+ sort === "wifi"
+ ? b.wifiMbps - a.wifiMbps
+ : sort === "rating"
+ ? b.rating - a.rating
+ : Number(b.partners) - Number(a.partners) || b.rating - a.rating,
+ ),
+ [query, city, sort, saved, seedCafes],
+ );
+
+ const selectedId = pickedId || hashId || "";
+ const active = cafes.find((c) => c.id === selectedId) || null;
+
+ const selectCafe = (id: string) => {
+ setPickedId(id);
+ try {
+ history.replaceState(history.state, "", `#${id}`);
+ window.dispatchEvent(new Event("hashchange"));
+ } catch {
+ /* ignore */
+ }
+ };
+
+ const clearCafe = () => {
+ setPickedId(null);
+ try {
+ const url = `${location.pathname}${location.search}`;
+ history.replaceState(history.state, "", url);
+ window.dispatchEvent(new Event("hashchange"));
+ } catch {
+ /* ignore */
+ }
+ };
+
+ const body = (
+
+ {!embedded ? (
+
+ ) : null}
+
+ {!hideCityRail ? (
+ <>
+
+ setCity("all")}
+ >
+ {hubTx("全部")}
+
+ {cities.map((name) => (
+ setCity(name)}
+ >
+ {cityEmoji(name)}
+ {name}
+
+ ))}
+
+
+ {city !== "all" ? (
+
+
+
+
+ {city} · {hubTx("线下会场")}
+
+
+ {cityEmoji(city)} {city}
+
+
+ {cafes.length} {hubTx("家咖啡馆")}
+
+
+
+ ) : null}
+ >
+ ) : null}
+
+
+
+
+ {hubTx("搜索咖啡馆")}
+ setQuery(e.target.value)}
+ placeholder={hubTx("店名 / 氛围")}
+ autoComplete="off"
+ />
+
+
+ setSort(
+ e.target.value as "recommended" | "wifi" | "rating" | "saved",
+ )
+ }
+ >
+ {hubTx("推荐")}
+ {hubTx("评分")}
+ {hubTx("网速")}
+ {hubTx("收藏")}
+
+
+
+
+ {cafes.length} {hubTx("家咖啡馆")}
+ {city !== "all" ? ` · ${city}` : ""}
+
+
+
+ {cafes.map((cafe) => {
+ const open = active?.id === cafe.id;
+ return (
+
+ (open ? clearCafe() : selectCafe(cafe.id))}
+ >
+
+
+
+
+ {hubTx(cafe.name)}
+
+ {hubTx(cafe.city)} ·{" "}
+ {hubTx(cafe.vibe)}
+
+
+ ★ {cafe.rating}
+ WiFi {cafe.wifiMbps}M
+ {cafe.partners ? (
+ {hubTx("推荐见面点")}
+ ) : null}
+
+
+
+
+ {open ? : null}
+
+ );
+ })}
+
+
+ {!cafes.length ? (
+
+ {
+ setQuery("");
+ setCity("all");
+ setSort("recommended");
+ }}
+ >
+ {hubTx("重置筛选")}
+
+
+ ) : null}
+
+ );
+
+ if (embedded) return body;
+ return (
+
+
+ {body}
+
+ );
+}
+
+function CafeWayChrome() {
+ const meta = useWaysMeta();
+ return (
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/ChannelDirectory.tsx b/src/modules/hub/components/ChannelDirectory.tsx
new file mode 100644
index 0000000..bda55c8
--- /dev/null
+++ b/src/modules/hub/components/ChannelDirectory.tsx
@@ -0,0 +1,54 @@
+"use client";
+
+import Link from "next/link";
+import { ArrowUpRight, Hash, MessageCircle, Radio, Users } from "lucide-react";
+import SiteShell from "./SiteShell";
+import { DemoBadge, PageIntro } from "./HubUI";
+import { hubPath } from "@hub/lib/hubPath";
+import { HUB_CHAT_ID } from "./ChatWorkspace";
+import { SEED_CHANNELS } from "@hub/lib/seed";
+import { hubTx } from "@hub/lib/hubTx";
+
+/** Entry card → full chat with lobby + country channels. */
+export default function ChannelDirectory() {
+ const channel =
+ SEED_CHANNELS.find((item) => item.id === HUB_CHAT_ID) ||
+ SEED_CHANNELS[0];
+ return (
+
+
+ {hubTx("游民大厅")}
+
+
+ {hubTx("进大厅打招呼;想开麦,再去语音厅。")}
+
+
+
+
+
+
+ {hubTx("随时可进")}
+
+ {hubTx("游民大厅")}
+ {hubTx(channel?.topic || "报到 · 找人 · 下一站")}
+
+
+ {hubTx("一个大厅,大家一起聊。")}
+
+
+
+ {hubTx("进入群聊")}
+
+
+
+ {hubTx("语音 / 视频场")}
+
+
+
+ {hubTx("招聘")}
+
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/ChatListClient.tsx b/src/modules/hub/components/ChatListClient.tsx
new file mode 100644
index 0000000..4469b62
--- /dev/null
+++ b/src/modules/hub/components/ChatListClient.tsx
@@ -0,0 +1,8 @@
+"use client";
+
+import ChatWorkspace from "./ChatWorkspace";
+
+/** 聊天室:大厅 + 按国家分频道。 */
+export default function ChatListClient() {
+ return ;
+}
diff --git a/src/modules/hub/components/ChatRoomClient.tsx b/src/modules/hub/components/ChatRoomClient.tsx
new file mode 100644
index 0000000..edd9c3c
--- /dev/null
+++ b/src/modules/hub/components/ChatRoomClient.tsx
@@ -0,0 +1,3 @@
+"use client";
+
+export { default } from "./ChatWorkspace";
diff --git a/src/modules/hub/components/ChatWorkspace.tsx b/src/modules/hub/components/ChatWorkspace.tsx
new file mode 100644
index 0000000..5d0c103
--- /dev/null
+++ b/src/modules/hub/components/ChatWorkspace.tsx
@@ -0,0 +1,1734 @@
+"use client";
+
+import {
+ Suspense,
+ useEffect,
+ useMemo,
+ useRef,
+ useState,
+ type FormEvent,
+} from "react";
+import Link from "next/link";
+import { useSearchParams } from "next/navigation";
+import {
+ ArrowLeft,
+ Check,
+ CheckCheck,
+ Copy,
+ CornerUpLeft,
+ FileIcon,
+ ImageIcon,
+ Link2,
+ MoreHorizontal,
+ Paperclip,
+ Pencil,
+ Pin,
+ Search,
+ Send,
+ Share2,
+ Smile,
+ Trash2,
+ Video,
+ WifiOff,
+ X,
+} from "lucide-react";
+import { EmptyState, ShareButton } from "./HubUI";
+import HubAvatar from "./HubAvatar";
+import { SEED_CHANNELS } from "@hub/lib/seed";
+import { resolveChatChannels } from "@hub/lib/chatChannels";
+import { hubPath } from "@hub/lib/hubPath";
+import { useHubChat } from "@hub/lib/useHubChat";
+import { useChatChannelMeta } from "@hub/lib/useChatChannelMeta";
+import { flashDocumentTitle, softPing, stopTitleFlash } from "@hub/lib/chatNotify";
+import { loadJson, uid } from "@hub/lib/storage";
+import { useLocalState } from "@hub/lib/useLocalState";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import {
+ countryLabel,
+ formatChatDayLabel,
+ formatChatTime,
+} from "@hub/lib/chatLocale";
+import { getGuestId, hubApi } from "@hub/lib/api";
+import MessageBilingual from "./MessageBilingual";
+import {
+ IM_EMOJI_BANK,
+ IM_QUICK_REACTIONS,
+ type ChatAttachment,
+ type ChatReplyTo,
+} from "@hub/lib/imActions";
+import type { HubChatMessage } from "@hub/lib/types";
+import {
+ canUseTrial,
+ consumeTrial,
+ resolveTrialLimits,
+ trialPaywallHint,
+} from "@hub/lib/hubTrial";
+import { ensureGuestNick } from "@hub/lib/guestNick";
+import { getSocialLive } from "@hub/lib/hubLive";
+import { useSocialConfig } from "./HubExperience";
+import JoinPayModal from "./JoinPayModal";
+import WayDestChrome from "./WayDestChrome";
+import { useSocialPresence } from "@hub/lib/useSocialPresence";
+import { useHubAudienceLane } from "@hub/lib/useHubAudience";
+import { isHubCnOnly } from "@hub/lib/hubCnLock";
+
+/** 默认大厅频道 */
+export const HUB_CHAT_ID = "general";
+
+const STARTERS = [
+ "大家好,第一次来,我在…",
+ "有人一起找工位吗?",
+ "下一站想去哪座城?",
+ "刚滑卡认识了几位,来打个招呼~",
+ "有人晚上开麦闲聊吗?",
+];
+
+const STATUS = {
+ connecting: "正在连上…",
+ online: "已连上,可以聊天",
+ offline: "网络不太好 · 消息先留在你这边,有网再发",
+ preview: "先看看示例 · 连上后会变成实时聊天",
+ live: "实时通道已连上",
+};
+
+function dayKey(iso: string) {
+ const d = new Date(iso);
+ if (Number.isNaN(d.getTime())) return "";
+ return `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`;
+}
+
+function CollapsibleText({ text }: { text: string }) {
+ const [open, setOpen] = useState(false);
+ const long = text.length > 280;
+ const shown = !long || open ? text : `${text.slice(0, 280)}…`;
+ return (
+ <>
+
+ {long ? (
+ setOpen((v) => !v)}
+ >
+ {open ? hubTx("收起") : hubTx("展开全文")}
+
+ ) : null}
+ >
+ );
+}
+
+function AttachmentBlock({
+ items,
+ onImage,
+}: {
+ items: ChatAttachment[];
+ onImage?: (url: string) => void;
+}) {
+ return (
+
+ {items.map((att) => {
+ if (att.kind === "image") {
+ return (
+
onImage?.(att.url)}
+ >
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+
+
+ );
+ }
+ if (att.kind === "video") {
+ return (
+
+ );
+ }
+ if (att.kind === "audio") {
+ return (
+
+ );
+ }
+ return (
+
+
+ {att.name}
+
+ );
+ })}
+
+ );
+}
+
+function MessageActionBar({
+ message,
+ onReply,
+ onEdit,
+ onReact,
+ onPin,
+ onRecall,
+ onForward,
+ onCopy,
+ onShare,
+ onJump,
+ onReport,
+ onHide,
+}: {
+ message: HubChatMessage;
+ onReply: () => void;
+ onEdit: () => void;
+ onReact: (emoji: string) => void;
+ onPin: () => void;
+ onRecall: () => void;
+ onForward: () => void;
+ onCopy: () => void;
+ onShare: () => void;
+ onJump: () => void;
+ onReport: () => void;
+ onHide: () => void;
+}) {
+ const [more, setMore] = useState(false);
+ const [reactOpen, setReactOpen] = useState(false);
+ if (
+ message.recalled ||
+ message.delivery === "local" ||
+ message.delivery === "pending"
+ )
+ return null;
+ return (
+
+
setReactOpen((v) => !v)} title={hubTx("反应")}>
+
+
+
+
+
+ {message.mine ? (
+
+
+
+ ) : null}
+
+
+
+
setMore((v) => !v)} title={hubTx("更多")}>
+
+
+ {reactOpen ? (
+
+ {IM_QUICK_REACTIONS.map((emoji) => (
+ {
+ onReact(emoji);
+ setReactOpen(false);
+ }}
+ >
+ {emoji}
+
+ ))}
+
+ ) : null}
+ {more ? (
+
+
+ {hubTx("复制")}
+
+
+ {hubTx("转发")}
+
+
+ {hubTx("分享链接")}
+
+ {message.replyTo ? (
+
+ {hubTx("跳到引用")}
+
+ ) : null}
+
+ {hubTx("对本机隐藏")}
+
+ {message.mine ? (
+
+ {hubTx("撤回")}
+
+ ) : (
+
+ {hubTx("举报")}
+
+ )}
+
+ ) : null}
+
+ );
+}
+
+export function Conversation({
+ channelId,
+ compact = false,
+}: {
+ channelId: string;
+ compact?: boolean;
+}) {
+ const config = useSocialConfig();
+ const audience = useHubAudienceLane();
+ const { portalLocale, cnOnly } = useHubI18n();
+ const cnMode = cnOnly || isHubCnOnly(config) || audience === "cn";
+ const labelLocale = cnMode ? "zh" : portalLocale;
+ const channelViews = useMemo(
+ () =>
+ resolveChatChannels({
+ geo: config.copy.hubGeo,
+ audience,
+ cnOnly: cnMode,
+ // 中文受众仍只要大厅;国际轨才拉 legacy 主题房做转发目标
+ includeLegacy: !cnMode,
+ }),
+ [config.copy.hubGeo, audience, cnMode],
+ );
+ const channel =
+ channelViews.find((item) => item.id === channelId) ||
+ channelViews.find((item) => item.id === HUB_CHAT_ID) ||
+ channelViews[0] ||
+ ({
+ ...(SEED_CHANNELS.find((item) => item.id === HUB_CHAT_ID) || SEED_CHANNELS[0]),
+ emoji: "💬",
+ countryNameZh: "大家聊",
+ countryNameEn: "Lobby",
+ titleZh: "游民大厅",
+ group: "lobby" as const,
+ });
+ const activeChannelId = channel.id;
+ const chat = useHubChat(activeChannelId);
+ const setDraft = chat.setDraft;
+ const [emojiOpen, setEmojiOpen] = useState(false);
+ const [composerError, setComposerError] = useState("");
+ const [joinOpen, setJoinOpen] = useState(false);
+ const [reply, setReply] = useState(null);
+ const [editingId, setEditingId] = useState(null);
+ const [pendingAtts, setPendingAtts] = useState([]);
+ const [searchQ, setSearchQ] = useState("");
+ const [searchHits, setSearchHits] = useState(null);
+ const [menuMsg, setMenuMsg] = useState(null);
+ const [hiddenIds, setHiddenIds] = useLocalState>(
+ `chat-hidden:${activeChannelId}`,
+ {},
+ );
+ const [muted, setMuted] = useLocalState(`chat-muted:${activeChannelId}`, false);
+ const [searchOpen, setSearchOpen] = useState(false);
+ const [lightbox, setLightbox] = useState(null);
+ const [dragOver, setDragOver] = useState(false);
+ const [unreadMarkId, setUnreadMarkId] = useState(null);
+ const [missed, setMissed] = useState(0);
+ const [mentionQ, setMentionQ] = useState(null);
+ const [forwardMsg, setForwardMsg] = useState(null);
+ const [forwarding, setForwarding] = useState(false);
+ const [hydrated, setHydrated] = useState(false);
+ const threadRef = useRef(null);
+ const composerRef = useRef(null);
+ const fileRef = useRef(null);
+ const atBottom = useRef(true);
+ const prevMsgLen = useRef(0);
+ const introUsed = useRef(false);
+ const deepLinked = useRef(false);
+ const typingBeat = useRef(0);
+
+ useEffect(() => {
+ setHydrated(true);
+ }, []);
+
+ useEffect(() => {
+ const intro = new URLSearchParams(location.search).get("intro");
+ if (!intro || introUsed.current) return;
+ introUsed.current = true;
+ if (!loadJson(`chat-draft:${activeChannelId}`, ""))
+ setDraft(intro.slice(0, 2000));
+ }, [activeChannelId, setDraft]);
+
+ // 残留的开场白草稿别一直占着输入框
+ useEffect(() => {
+ const draft = loadJson(`chat-draft:${activeChannelId}`, "");
+ if (
+ draft &&
+ (STARTERS.includes(draft) ||
+ (draft.length < 48 && /^大家好[,,]/.test(draft)))
+ ) {
+ setDraft("");
+ }
+ }, [activeChannelId, setDraft]);
+
+ useEffect(() => {
+ const vv = window.visualViewport;
+ if (!vv) return;
+ let wasOpen = false;
+ const root = () =>
+ document.querySelector(".social-chat-live") as HTMLElement | null;
+ const sync = () => {
+ const top = Math.max(0, vv.offsetTop || 0);
+ const height = Math.max(240, Math.round(vv.height));
+ const inset = Math.max(0, window.innerHeight - vv.height - top);
+ const open = inset > 80;
+ const html = document.documentElement;
+ html.style.setProperty("--vv-height", `${height}px`);
+ html.style.setProperty("--vv-top", `${top}px`);
+ html.style.setProperty("--vv-offset", `${inset}px`);
+ html.dataset.keyboardOpen = String(open);
+ const el = root();
+ if (el) el.dataset.keyboardOpen = String(open);
+ // 键盘升起/落下时:若本来贴底,消息跟着贴底,避免被挡
+ if (open !== wasOpen || open) {
+ wasOpen = open;
+ if (atBottom.current) {
+ requestAnimationFrame(() => {
+ const thread = threadRef.current;
+ if (!thread) return;
+ thread.scrollTop = thread.scrollHeight;
+ requestAnimationFrame(() => {
+ thread.scrollTop = thread.scrollHeight;
+ });
+ });
+ }
+ }
+ };
+ sync();
+ vv.addEventListener("resize", sync);
+ vv.addEventListener("scroll", sync);
+ window.addEventListener("focusin", sync);
+ window.addEventListener("focusout", sync);
+ return () => {
+ vv.removeEventListener("resize", sync);
+ vv.removeEventListener("scroll", sync);
+ window.removeEventListener("focusin", sync);
+ window.removeEventListener("focusout", sync);
+ const html = document.documentElement;
+ html.style.removeProperty("--vv-height");
+ html.style.removeProperty("--vv-top");
+ html.style.removeProperty("--vv-offset");
+ delete html.dataset.keyboardOpen;
+ const el = root();
+ if (el) delete el.dataset.keyboardOpen;
+ };
+ }, []);
+
+ useEffect(() => {
+ const thread = threadRef.current;
+ if (!thread || !hydrated) return;
+ const len = chat.messages.length;
+ const prev = prevMsgLen.current;
+ prevMsgLen.current = len;
+ if (len > prev) {
+ const added = chat.messages
+ .slice(prev)
+ .filter((m) => !m.mine && m.delivery !== "demo");
+ if (added.length) {
+ if (!atBottom.current) setMissed((n) => n + added.length);
+ if (document.hidden && !muted) {
+ softPing();
+ flashDocumentTitle(
+ `(${added.length}) ${hubTx("新消息")} · nomadro`,
+ );
+ try {
+ navigator.vibrate?.(12);
+ } catch {
+ /* ignore */
+ }
+ }
+ }
+ }
+ if (atBottom.current) {
+ setMissed(0);
+ stopTitleFlash();
+ // 双帧:等图片/日期分隔撑开高度后再贴底
+ requestAnimationFrame(() => {
+ thread.scrollTop = thread.scrollHeight;
+ requestAnimationFrame(() => {
+ thread.scrollTop = thread.scrollHeight;
+ });
+ });
+ } else thread.dataset.unread = "true";
+ }, [chat.messages, hydrated, chat.typingPeers?.length, muted]);
+
+ useEffect(() => {
+ const onVis = () => {
+ if (!document.hidden) stopTitleFlash();
+ };
+ document.addEventListener("visibilitychange", onVis);
+ return () => {
+ document.removeEventListener("visibilitychange", onVis);
+ stopTitleFlash();
+ };
+ }, []);
+
+ const visible = chat.messages.filter((m) => !hiddenIds[m.id]);
+ const mentionCandidates = useMemo(() => {
+ const mine = (chat.nick || "").trim();
+ const names = new Set();
+ for (const m of visible) {
+ const a = (m.author || "").trim();
+ if (!a || a === mine) continue;
+ names.add(a.slice(0, 24));
+ if (names.size >= 24) break;
+ }
+ const q = (mentionQ || "").toLowerCase();
+ return Array.from(names)
+ .filter((n) => !q || n.toLowerCase().includes(q))
+ .slice(0, 6);
+ }, [visible, mentionQ, chat.nick]);
+
+ const insertMention = (name: string) => {
+ const el = composerRef.current;
+ const val = chat.draft;
+ const caret = el?.selectionStart ?? val.length;
+ const head = val.slice(0, caret);
+ const tail = val.slice(caret);
+ const nextHead = head.replace(/@([\w\u4e00-\u9fff-]{0,24})$/, `@${name} `);
+ const next = `${nextHead}${tail}`.slice(0, 2000);
+ chat.setDraft(next);
+ setMentionQ(null);
+ requestAnimationFrame(() => {
+ const node = composerRef.current;
+ if (!node) return;
+ const pos = nextHead.length;
+ node.focus();
+ node.setSelectionRange(pos, pos);
+ });
+ };
+
+ const trialLimits = resolveTrialLimits(config);
+
+ const submit = async (event?: FormEvent) => {
+ event?.preventDefault();
+ if (chat.sending) return;
+ if (editingId) {
+ const ok = await chat.editMessage(editingId, chat.draft.trim());
+ if (ok) {
+ setEditingId(null);
+ chat.setDraft("");
+ } else setComposerError("编辑失败,请重试");
+ return;
+ }
+ if (!chat.draft.trim() && !pendingAtts.length) return;
+ if (!canUseTrial("chatMessages", trialLimits)) {
+ const hint = hubTx(trialPaywallHint("chatMessages"));
+ setComposerError(hint);
+ setJoinOpen(true);
+ return;
+ }
+ ensureGuestNick();
+ const submittedDraft = chat.draft;
+ const mentions = Array.from(
+ chat.draft.matchAll(/@([\w\u4e00-\u9fff-]{1,24})/g),
+ ).map((m) => m[1]);
+ if (chat.draft.length > 2000) {
+ setComposerError("消息过长,请缩短后重试。");
+ return;
+ }
+ setComposerError("");
+ const ok = await chat.send(chat.draft, {
+ replyTo: reply,
+ attachments: pendingAtts,
+ mentions,
+ });
+ if (ok) {
+ consumeTrial("chatMessages", trialLimits);
+ if (loadJson(`chat-draft:${activeChannelId}`, "") === submittedDraft)
+ chat.setDraft("");
+ setReply(null);
+ setPendingAtts([]);
+ setMentionQ(null);
+ }
+ atBottom.current = true;
+ try {
+ if (!muted) navigator.vibrate?.(10);
+ } catch {
+ /* ignore */
+ }
+ requestAnimationFrame(() => {
+ threadRef.current?.scrollTo({
+ top: threadRef.current.scrollHeight,
+ behavior: matchMedia("(prefers-reduced-motion: reduce)").matches
+ ? "instant"
+ : "smooth",
+ });
+ });
+ composerRef.current?.focus();
+ };
+
+ const onPickFiles = async (files: FileList | null, kindHint?: string) => {
+ if (!files?.length) return;
+ setComposerError("");
+ for (const file of Array.from(files).slice(0, 4)) {
+ try {
+ const kind =
+ kindHint ||
+ (file.type.startsWith("image/")
+ ? "image"
+ : file.type.startsWith("video/")
+ ? "video"
+ : file.type.startsWith("audio/")
+ ? "audio"
+ : "file");
+ const att = await chat.upload(file, kind);
+ setPendingAtts((prev) => [...prev, att].slice(-8));
+ } catch {
+ setComposerError(`上传失败:${file.name}`);
+ }
+ }
+ };
+
+ const jumpTo = (id: string) => {
+ const el = threadRef.current?.querySelector(`[data-msg-id="${id}"]`);
+ el?.scrollIntoView({ behavior: "smooth", block: "center" });
+ el?.classList.add("is-flash");
+ setTimeout(() => el?.classList.remove("is-flash"), 1200);
+ };
+
+ useEffect(() => {
+ if (deepLinked.current || !chat.messages.length) return;
+ const mid = new URLSearchParams(location.search).get("m");
+ if (!mid) return;
+ deepLinked.current = true;
+ requestAnimationFrame(() => jumpTo(mid));
+ }, [chat.messages]);
+
+ return (
+ {
+ e.preventDefault();
+ setDragOver(true);
+ }}
+ onDragLeave={() => setDragOver(false)}
+ onDrop={(e) => {
+ e.preventDefault();
+ setDragOver(false);
+ void onPickFiles(e.dataTransfer.files);
+ }}
+ >
+
+
+ {
+ setSearchOpen((v) => !v);
+ if (searchOpen) {
+ setSearchHits(null);
+ setSearchQ("");
+ }
+ }}
+ title={hubTx("搜索")}
+ aria-pressed={searchOpen}
+ >
+
+
+ setMuted((v) => !v)}
+ title={muted ? hubTx("取消静音") : hubTx("静音")}
+ aria-pressed={muted}
+ >
+ {muted ? "🔕" : "🔔"}
+
+
+ {getSocialLive(config).chatPresencePill ? (
+
+ {hydrated && chat.realtimeLive
+ ? hubTx(STATUS.live)
+ : hydrated && chat.online > 0
+ ? `${chat.online} ${hubTx("在线")}`
+ : chat.status === "online"
+ ? hubTx("在线")
+ : hubTx(STATUS[chat.status])}
+
+ ) : null}
+
+
+
+ {searchOpen ? (
+
+
+ setSearchQ(e.target.value)}
+ onKeyDown={(e) => {
+ if (e.key === "Enter") {
+ e.preventDefault();
+ void (async () => {
+ if (!searchQ.trim()) {
+ setSearchHits(null);
+ return;
+ }
+ setSearchHits(await chat.search(searchQ.trim()));
+ })();
+ }
+ }}
+ />
+ {
+ setSearchOpen(false);
+ setSearchHits(null);
+ setSearchQ("");
+ }}
+ >
+
+
+
+ ) : null}
+ {searchHits ? (
+
+ {searchHits.length === 0 ? (
+
{hubTx("没有匹配")}
+ ) : (
+ searchHits.map((hit) => (
+
{
+ jumpTo(hit.id);
+ setSearchHits(null);
+ setSearchOpen(false);
+ }}
+ >
+ {hit.author} {hit.text.slice(0, 80)}
+
+ ))
+ )}
+
+ ) : null}
+
+ {hydrated && chat.status === "offline" ? (
+
+
+ {STATUS.offline}
+ window.location.reload()}
+ >
+ {hubTx("刷新重连")}
+
+
+ ) : null}
+ {hydrated && chat.typingPeers?.length ? (
+
+ {hubTx("有人正在输入…")}
+
+ ) : null}
+
+
+
{
+ const thread = threadRef.current!;
+ const wasBottom = atBottom.current;
+ atBottom.current =
+ thread.scrollHeight - thread.scrollTop - thread.clientHeight < 85;
+ if (atBottom.current) {
+ thread.dataset.unread = "false";
+ setUnreadMarkId(null);
+ setMissed(0);
+ } else if (wasBottom && visible.length) {
+ const last = visible[visible.length - 1];
+ if (last && !last.mine) setUnreadMarkId(last.id);
+ }
+ if (thread.scrollTop < 48 && chat.hasOlder && !chat.loadingOlder) {
+ const prevHeight = thread.scrollHeight;
+ void chat.loadOlder().then(() => {
+ requestAnimationFrame(() => {
+ const t = threadRef.current;
+ if (!t) return;
+ t.scrollTop = t.scrollHeight - prevHeight;
+ });
+ });
+ }
+ }}
+ >
+ {visible.length && chat.hasOlder ? (
+
void chat.loadOlder()}
+ >
+ {chat.loadingOlder
+ ? hubTx("加载中…")
+ : hubTx("加载更早消息")}
+
+ ) : null}
+ {!visible.length && (
+
+
+ {
+ chat.setDraft(
+ channel.kind === "country"
+ ? hubTx("有人在这边吗?刚到,打个招呼~")
+ : hubTx("大家好,第一次来,打个招呼~"),
+ );
+ composerRef.current?.focus();
+ }}
+ >
+ {hubTx("写一句招呼")}
+
+
+
+ )}
+ {visible.map((message, index) => {
+ const label = hydrated
+ ? formatChatDayLabel(message.at, labelLocale)
+ : "";
+ const showDay =
+ Boolean(label) &&
+ (index === 0 ||
+ dayKey(message.at) !== dayKey(visible[index - 1]?.at || ""));
+ return (
+
+ {showDay ? (
+
+ {label}
+
+ ) : null}
+ {unreadMarkId &&
+ visible[index - 1]?.id === unreadMarkId &&
+ !message.mine ? (
+
+ {hubTx("新消息")}
+
+ ) : null}
+
0 &&
+ visible[index - 1]?.author === message.author &&
+ visible[index - 1]?.mine === message.mine &&
+ Math.abs(
+ new Date(message.at).getTime() -
+ new Date(visible[index - 1]?.at || 0).getTime(),
+ ) < 3 * 60 * 1000
+ ? " is-stacked"
+ : ""
+ }`}
+ onMouseEnter={() => setMenuMsg(message.id)}
+ onMouseLeave={() =>
+ setMenuMsg((cur) => (cur === message.id ? null : cur))
+ }
+ onClick={(e) => {
+ // 触屏:点气泡展开操作;点链接/按钮不抢
+ if ((e.target as HTMLElement).closest("button,a,input,textarea"))
+ return;
+ setMenuMsg((cur) => (cur === message.id ? null : message.id));
+ }}
+ >
+
+ {message.avatar?.trim().startsWith("/api/hub/") ? (
+
+ ) : (
+ message.author.slice(0, 1).toUpperCase()
+ )}
+
+
+
+ {message.author}
+
+ {hydrated
+ ? formatChatTime(message.at, labelLocale)
+ : ""}
+
+ {message.editedAt ? {hubTx("已编辑")} : null}
+ {message.pinned ? 📌 : null}
+ {message.delivery === "demo" && {hubTx("示例")} }
+ {message.delivery === "pending" && (
+ {hubTx("发送中…")}
+ )}
+ {message.delivery === "local" && (
+ {hubTx("未送达")}
+ )}
+
+ {message.replyTo ? (
+
jumpTo(message.replyTo!.id)}
+ >
+ {message.replyTo.author}
+ {message.replyTo.text.slice(0, 100)}
+
+ ) : null}
+ {message.recalled ? (
+
{hubTx("消息已撤回")}
+ ) : (
+ <>
+ {message.text ? (
+
+ ) : null}
+ {message.attachments?.length ? (
+
setLightbox(url)}
+ />
+ ) : null}
+ >
+ )}
+ {message.reactions && Object.keys(message.reactions).length ? (
+
+ {Object.entries(message.reactions).map(([emoji, guests]) => (
+ void chat.reactMessage(message.id, emoji)}
+ >
+ {emoji} {guests.length}
+
+ ))}
+
+ ) : null}
+ {menuMsg === message.id ? (
+ {
+ setReply({
+ id: message.id,
+ author: message.author,
+ text:
+ message.text || message.attachments?.[0]?.name || "",
+ seq: message.seq,
+ });
+ setEditingId(null);
+ composerRef.current?.focus();
+ }}
+ onEdit={() => {
+ setEditingId(message.id);
+ chat.setDraft(message.text);
+ setReply(null);
+ composerRef.current?.focus();
+ }}
+ onReact={(emoji) =>
+ void chat.reactMessage(message.id, emoji)
+ }
+ onPin={() =>
+ void chat.pinMessage(message.id, !message.pinned)
+ }
+ onRecall={() => void chat.recallMessage(message.id)}
+ onForward={() => setForwardMsg(message)}
+ onCopy={() =>
+ void navigator.clipboard?.writeText(message.text)
+ }
+ onShare={() => {
+ const url = `${location.origin}${hubPath("/chat")}?m=${message.id}`;
+ void navigator.clipboard?.writeText(url);
+ }}
+ onJump={() =>
+ message.replyTo && jumpTo(message.replyTo.id)
+ }
+ onReport={() => {
+ void chat
+ .reportMessage(message.id, "spam")
+ .then((ok) => {
+ setComposerError(
+ ok
+ ? hubTx("已提交举报")
+ : hubTx("举报失败"),
+ );
+ });
+ }}
+ onHide={() =>
+ setHiddenIds((h) => ({ ...h, [message.id]: true }))
+ }
+ />
+ ) : null}
+
+ {message.delivery === "local" ? (
+
+ void chat.send(message.text, {
+ retryId: message.clientId || message.id,
+ replyTo: message.replyTo,
+ attachments: message.attachments,
+ })
+ }
+ >
+ {hubTx("未送达 · 点重试")}
+
+ ) : message.mine && message.delivery === "pending" ? (
+
+ …
+
+ ) : message.mine && message.delivery === "sent" ? (
+ = Number(message.seq)
+ ? " is-read"
+ : ""
+ }`}
+ title={
+ message.seq &&
+ chat.peerReadSeq >= Number(message.seq)
+ ? hubTx("对方已读")
+ : hubTx("已送达")
+ }
+ >
+ {message.seq &&
+ chat.peerReadSeq >= Number(message.seq) ? (
+
+ ) : (
+
+ )}
+
+ ) : null}
+
+
+
+
+ );
+ })}
+
+
{
+ const thread = threadRef.current;
+ if (!thread) return;
+ atBottom.current = true;
+ setMissed(0);
+ thread.dataset.unread = "false";
+ thread.scrollTo({
+ top: thread.scrollHeight,
+ behavior: matchMedia("(prefers-reduced-motion: reduce)").matches
+ ? "instant"
+ : "smooth",
+ });
+ }}
+ >
+ {missed > 0
+ ? hubTx("{n} 条新消息 ↓").replace("{n}", String(missed))
+ : hubTx("最新消息 ↓")}
+
+
+
+ void submit(event)}
+ >
+ {composerError && (
+ setJoinOpen(true)}
+ >
+ {composerError}
+
+ )}
+ {editingId && (
+
+ {hubTx("编辑消息")}
+ {
+ setEditingId(null);
+ chat.setDraft("");
+ }}
+ aria-label={hubTx("取消")}
+ >
+
+
+
+ )}
+ {reply && !editingId && (
+
+
+ {hubTx("回复")} {reply.author}:{reply.text.slice(0, 48)}
+
+ setReply(null)}
+ aria-label={hubTx("取消回复")}
+ >
+
+
+
+ )}
+ {pendingAtts.length ? (
+
+ {pendingAtts.map((att) => (
+
+ {att.kind === "image" ? "🖼" : att.kind === "video" ? "🎬" : att.kind === "audio" ? "🎙" : "📎"}{" "}
+ {att.name}
+
+ setPendingAtts((p) => p.filter((x) => x.id !== att.id))
+ }
+ >
+ ×
+
+
+ ))}
+
+ ) : null}
+ {
+ const val = event.target.value;
+ chat.setDraft(val);
+ const caret = event.target.selectionStart ?? val.length;
+ const head = val.slice(0, caret);
+ const m = head.match(/@([\w\u4e00-\u9fff-]{0,24})$/);
+ setMentionQ(m ? m[1] : null);
+ const now = Date.now();
+ if (now - typingBeat.current > 1800) {
+ typingBeat.current = now;
+ chat.notifyTyping?.();
+ }
+ }}
+ onPaste={(event) => {
+ const bag = event.clipboardData;
+ if (!bag?.files?.length && !bag?.items?.length) return;
+ const dt = new DataTransfer();
+ if (bag.files?.length) {
+ Array.from(bag.files).forEach((f) => dt.items.add(f));
+ } else {
+ for (const item of Array.from(bag.items)) {
+ if (item.kind !== "file") continue;
+ const f = item.getAsFile();
+ if (f) dt.items.add(f);
+ }
+ }
+ if (!dt.files.length) return;
+ event.preventDefault();
+ void onPickFiles(dt.files);
+ }}
+ onKeyDown={(event) => {
+ if (event.key === "Escape") {
+ if (mentionQ !== null) {
+ setMentionQ(null);
+ event.preventDefault();
+ return;
+ }
+ if (reply || editingId) {
+ setReply(null);
+ setEditingId(null);
+ event.preventDefault();
+ }
+ return;
+ }
+ if (
+ mentionQ !== null &&
+ mentionCandidates.length &&
+ (event.key === "Tab" ||
+ (event.key === "Enter" && !event.shiftKey))
+ ) {
+ event.preventDefault();
+ insertMention(mentionCandidates[0]);
+ return;
+ }
+ if (
+ event.key === "ArrowUp" &&
+ !chat.draft &&
+ composerRef.current?.selectionStart === 0
+ ) {
+ const lastMine = [...visible]
+ .reverse()
+ .find((m) => m.mine && !m.recalled && m.delivery === "sent");
+ if (lastMine) {
+ setEditingId(lastMine.id);
+ chat.setDraft(lastMine.text);
+ event.preventDefault();
+ }
+ return;
+ }
+ if (
+ event.key === "Enter" &&
+ !event.shiftKey &&
+ !event.nativeEvent.isComposing
+ ) {
+ event.preventDefault();
+ void submit();
+ }
+ }}
+ />
+ {mentionQ !== null && mentionCandidates.length ? (
+
+ {mentionCandidates.map((name) => (
+ {
+ e.preventDefault();
+ insertMention(name);
+ }}
+ >
+ @{name}
+
+ ))}
+
+ ) : null}
+ {emojiOpen && (
+
+ {IM_EMOJI_BANK.map((emoji) => (
+ {
+ chat.setDraft((chat.draft + emoji).slice(0, 2000));
+ setEmojiOpen(false);
+ composerRef.current?.focus();
+ }}
+ >
+ {emoji}
+
+ ))}
+
+ )}
+
+
setEmojiOpen(!emojiOpen)}
+ >
+
+
+
{
+ if (fileRef.current) {
+ fileRef.current.accept = "image/*";
+ fileRef.current.dataset.kind = "image";
+ fileRef.current.click();
+ }
+ }}
+ >
+
+
+
{
+ if (fileRef.current) {
+ fileRef.current.accept = "video/*";
+ fileRef.current.dataset.kind = "video";
+ fileRef.current.click();
+ }
+ }}
+ >
+
+
+
{
+ if (fileRef.current) {
+ fileRef.current.accept = "*/*";
+ fileRef.current.dataset.kind = "file";
+ fileRef.current.click();
+ }
+ }}
+ >
+
+
+
{
+ void onPickFiles(e.target.files, e.target.dataset.kind);
+ e.target.value = "";
+ }}
+ />
+ {chat.draft.length > 1600 ? (
+
1900 ? "social-composer-count is-warn" : "social-composer-count"
+ }
+ >
+ {chat.draft.length}/2000
+
+ ) : (
+
+ )}
+
+
+ {editingId ? hubTx("保存") : hubTx("发送")}
+
+
+
+ {lightbox ? (
+ setLightbox(null)}
+ >
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+
+
+ ) : null}
+ {dragOver ? (
+
+ {hubTx("放开以上传")}
+
+ ) : null}
+ {forwardMsg ? (
+
+
!forwarding && setForwardMsg(null)}
+ />
+
+
+ {hubTx("转发到频道")}
+ !forwarding && setForwardMsg(null)}
+ aria-label={hubTx("关闭")}
+ >
+
+
+
+
+ {forwardMsg.author}:{(forwardMsg.text || "附件").slice(0, 80)}
+
+
+ {channelViews
+ .filter((ch) => ch.id !== activeChannelId)
+ .map((ch) => (
+
+ {
+ void (async () => {
+ setForwarding(true);
+ const body =
+ `↪ ${forwardMsg.author}:\n${forwardMsg.text || "[附件]"}`.slice(
+ 0,
+ 2000,
+ );
+ const ok = await hubApi
+ .sendMessage(
+ ch.id,
+ (chat.nick || ensureGuestNick()).slice(0, 24),
+ body,
+ uid("fwd"),
+ )
+ .then(() => true)
+ .catch(() => false);
+ setForwarding(false);
+ if (ok) {
+ setForwardMsg(null);
+ setComposerError("");
+ } else {
+ setComposerError(hubTx("转发失败,请重试"));
+ }
+ })();
+ }}
+ >
+ {ch.emoji}
+ {ch.titleZh}
+ {hubTx(ch.topic)}
+
+
+ ))}
+
+
+
+ ) : null}
+ setJoinOpen(false)} />
+
+ );
+}
+
+function chatChannelHref(id: string) {
+ if (id === HUB_CHAT_ID) return hubPath("/chat");
+ return `${hubPath("/chat")}?channel=${encodeURIComponent(id)}`;
+}
+
+function ChatWorkspaceInner() {
+ const searchParams = useSearchParams();
+ const config = useSocialConfig();
+ const presence = useSocialPresence(config);
+ const audience = useHubAudienceLane();
+ const { portalLocale, cnOnly } = useHubI18n();
+ const cnMode = cnOnly || isHubCnOnly(config) || audience === "cn";
+ const labelLocale = cnMode ? "zh" : portalLocale;
+
+ const channels = useMemo(
+ () =>
+ resolveChatChannels({
+ geo: config.copy.hubGeo,
+ audience,
+ cnOnly: cnMode,
+ }),
+ [config.copy.hubGeo, audience, cnMode],
+ );
+
+ const requested = (searchParams.get("channel") || "").trim().toLowerCase();
+ // 中文受众:强制唯一大厅,忽略 ?channel= 国家房深链
+ const active = cnMode
+ ? channels.find((c) => c.id === HUB_CHAT_ID) || channels[0]
+ : channels.find((c) => c.id === requested) ||
+ channels.find((c) => c.id === HUB_CHAT_ID) ||
+ channels[0];
+ const activeId = active?.id || HUB_CHAT_ID;
+
+ const lobby = channels.filter((c) => c.group === "lobby");
+ const hotDest = channels.filter((c) => c.group === "hot");
+ const moreDest = channels.filter((c) => c.group === "more");
+ const channelIds = useMemo(() => channels.map((c) => c.id), [channels]);
+ const { meta: channelMeta } = useChatChannelMeta(channelIds, activeId);
+
+ const subtitle =
+ active?.kind === "country"
+ ? hubTx(active.topic)
+ : active?.id === "coffee"
+ ? hubTx("约咖啡馆见面")
+ : active?.id === "meetup-live"
+ ? hubTx("开麦前后继续聊")
+ : hubTx("报到 · 找人 · 下一站");
+
+ const railBadge = (id: string, fallback: number, fallbackEm: string) => {
+ const m = channelMeta[id];
+ const unread = id === activeId ? 0 : m?.unread || 0;
+ const online = m?.online || 0;
+ const last = m?.last;
+ const preview =
+ last && (last.text || last.author)
+ ? `${last.author}${last.text ? `:${last.text}` : ""}`.slice(0, 36)
+ : fallbackEm;
+ return { unread, label: online > 0 ? online : fallback, preview };
+ };
+
+ const onlineN = Math.max(presence.online, presence.peers.length);
+
+ return (
+
+
+
+ {!cnMode ? (
+
+ ) : null}
+
+
+
+ );
+}
+
+export default function ChatWorkspace() {
+ return (
+
+
+ {hubTx("加载中…")}
+
+
+ }
+ >
+
+
+ );
+}
diff --git a/src/modules/hub/components/CityDirectory.tsx b/src/modules/hub/components/CityDirectory.tsx
new file mode 100644
index 0000000..61816fd
--- /dev/null
+++ b/src/modules/hub/components/CityDirectory.tsx
@@ -0,0 +1,158 @@
+"use client";
+
+import { useEffect, useMemo, useState } from "react";
+import Link from "next/link";
+import { MapPin, Users, Wifi } from "lucide-react";
+import { CITY_FILTER_TAGS, type HubCity } from "@hub/lib/cities";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { useHubAudienceLane } from "@hub/lib/useHubAudience";
+import { isHubCnOnly } from "@hub/lib/hubCnLock";
+import { prefetchCityCopy, txCity } from "@hub/lib/localizeEntity";
+import {
+ countryKeysForFilter,
+ resolveSocialCities,
+} from "@hub/geo";
+import { useSocialConfig } from "./HubExperience";
+
+export default function CityDirectory({
+ compact = false,
+ limit,
+}: {
+ compact?: boolean;
+ limit?: number;
+}) {
+ const { portalLocale, cnOnly } = useHubI18n();
+ const audience = useHubAudienceLane();
+ const hubConfig = useSocialConfig();
+ const geoCfg = hubConfig.copy.hubGeo;
+ const cnMode = cnOnly || isHubCnOnly(hubConfig) || audience === "cn";
+ const [tag, setTag] = useState<(typeof CITY_FILTER_TAGS)[number]>("全部");
+ const [country, setCountry] = useState(cnMode ? "中国" : "全部");
+
+ useEffect(() => {
+ prefetchCityCopy();
+ }, [portalLocale]);
+
+ const countries = useMemo(
+ () => countryKeysForFilter(geoCfg, { cnOnly: cnMode }),
+ [geoCfg, cnMode],
+ );
+
+ const list = useMemo(
+ () =>
+ resolveSocialCities({
+ geo: geoCfg,
+ audience,
+ cnOnly: cnMode,
+ tag,
+ countryZh: country,
+ limit,
+ }),
+ [geoCfg, audience, cnMode, tag, country, limit],
+ );
+
+ return (
+
+ {!cnMode || countries.length > 1 ? (
+
+ setCountry("全部")}
+ >
+ {hubTx("全部")}
+
+ {countries.map((c) => (
+ setCountry(c)}
+ >
+ {hubTx(c)}
+
+ ))}
+
+ ) : null}
+
+ {CITY_FILTER_TAGS.map((t) => (
+ setTag(t)}
+ >
+ {hubTx(t)}
+
+ ))}
+
+
+ {list.map((city, i) => (
+
+ ))}
+
+ {!list.length ? (
+
+ {hubTx("该标签暂无城市 · 换一个试试")}
+
+ ) : null}
+
+ );
+}
+
+function CityCard({ city, index }: { city: HubCity; index: number }) {
+ const d = txCity(city);
+ return (
+
+
+
+ {city.emoji}
+
+
+
+ {d.name}
+ {city.hot ? HOT : null}
+
+
{d.country}
+
+
+ {d.vibe}
+
+
+
+ {city.members}+
+
+
+
+ {city.wifiMbps}M
+
+
+
+ {d.costHint}
+
+
+
+ {d.tags.slice(0, 3).map((t) => (
+ {t}
+ ))}
+
+
+ );
+}
diff --git a/src/modules/hub/components/CoffeechatClient.tsx b/src/modules/hub/components/CoffeechatClient.tsx
new file mode 100644
index 0000000..619f2a0
--- /dev/null
+++ b/src/modules/hub/components/CoffeechatClient.tsx
@@ -0,0 +1,3 @@
+"use client";
+
+export { default } from "./CafeDirectory";
diff --git a/src/modules/hub/components/CommunityWelcome.tsx b/src/modules/hub/components/CommunityWelcome.tsx
new file mode 100644
index 0000000..782fd84
--- /dev/null
+++ b/src/modules/hub/components/CommunityWelcome.tsx
@@ -0,0 +1,1305 @@
+"use client";
+
+import {
+ useEffect,
+ useRef,
+ useState,
+ useSyncExternalStore,
+ type FormEvent,
+} from "react";
+import Link from "next/link";
+import { useRouter, useSearchParams } from "next/navigation";
+import {
+ ArrowUpRight,
+ Camera,
+ Check,
+ Globe2,
+ Send,
+} from "lucide-react";
+import SiteShell from "./SiteShell";
+import AvatarSelfieModal, {
+ type SelfieCapturePayload,
+} from "./AvatarSelfieModal";
+import { PageIntro } from "./HubUI";
+import { useSocialConfig } from "./HubExperience";
+import { hubApi } from "@hub/lib/api";
+import { isSocialAvatarFaceCheckEnabled } from "@hub/lib/avatarFaceCheck";
+import { getSocialLive } from "@hub/lib/hubLive";
+import { useCaptureCapability } from "@hub/lib/useCaptureCapability";
+import {
+ getLivenessState,
+ isFaceOk,
+ isLivenessVerified,
+ clearFaceOk,
+ getLivenessServerSnapshot,
+ getLivenessSnapshot,
+ markFaceOk,
+ markLivenessVerified,
+ subscribeLivenessState,
+} from "@hub/lib/livenessGate";
+import {
+ JOIN_AVAILABILITY_OPTIONS,
+ JOIN_GENDER_OPTIONS,
+ JOIN_INTENT_OPTIONS,
+ JOIN_LIVENESS_RETURN,
+ JOIN_PROFILE_RETURN,
+ isJoinPaid,
+ clearJoinProfileDone,
+ isJoinProfileDone,
+ markJoinProfileDone,
+ type JoinProfileDraft,
+} from "@hub/lib/joinFlow";
+import { archiveJoinLead } from "@hub/lib/joinArchive";
+import { flagOpenJoinModalSoon, openSocialJoinModal } from "@hub/lib/joinModal";
+import { setRosterPublished } from "@hub/lib/discoveryRoster";
+import { loadJson, saveJson } from "@hub/lib/storage";
+import { useLocalState } from "@hub/lib/useLocalState";
+import { hubPath } from "@hub/lib/hubPath";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { hubTx } from "@hub/lib/hubTx";
+import type { HubRosterProfile } from "@hub/lib/types";
+
+export function CommunityFeedback() {
+ const [draft, setDraft] = useLocalState<{
+ kind: "反馈" | "建议";
+ text: string;
+ contact: string;
+ }>("feedback-draft", { kind: "建议", text: "", contact: "" });
+ const [delivery, setDelivery] = useLocalState("feedback-delivery", "draft");
+ const [status, setStatus] = useState("");
+ const [busy, setBusy] = useState(false);
+ const lock = useRef(false);
+ const update = (key: keyof typeof draft, value: string) => {
+ setDraft((current) => ({ ...current, [key]: value }));
+ setDelivery("draft");
+ setStatus("");
+ };
+ const reset = () => {
+ setDraft({ kind: "建议", text: "", contact: "" });
+ setDelivery("draft");
+ setStatus("");
+ };
+ const submit = async (event: FormEvent) => {
+ event.preventDefault();
+ if (!draft.text.trim() || lock.current || delivery === "sent") return;
+ lock.current = true;
+ setBusy(true);
+ try {
+ const { collectFeedbackClientMeta } = await import(
+ "@hub/lib/feedbackMeta"
+ );
+ await hubApi.postFeedback({
+ ...draft,
+ text: draft.text.trim(),
+ contact: draft.contact.trim(),
+ meta: collectFeedbackClientMeta({ ui: "feedback-page" }),
+ });
+ setDelivery("sent");
+ setStatus(hubTx("已提交,感谢反馈。"));
+ } catch (e) {
+ // 草稿仍在本机表单里;不要再装成「没网」——多数是服务端挂了
+ setDelivery("local");
+ const msg = e instanceof Error ? e.message : "";
+ setStatus(
+ msg && msg.length < 120
+ ? hubTx(`提交失败:${msg}。内容还在表单里,修好后点重试。`)
+ : hubTx("提交失败。内容还在表单里,请稍后点重试。"),
+ );
+ } finally {
+ lock.current = false;
+ setBusy(false);
+ }
+ };
+ return (
+
+
+
+
+
+ {hubTx("说说你的想法")}
+
+
+ {hubTx("哪里用得不顺手?告诉我们")}
+
+
+ {hubTx("我们会看,但不保证马上回复。提交成功后会清空表单。")}
+
+ {delivery === "sent" ? (
+
+
+ {status || hubTx("已提交")}
+
+
+
+ {hubTx("再提一条")}
+
+
+ {hubTx("回社区首页")}
+
+
+
+ ) : (
+ void submit(event)}>
+
+
+ {hubTx("内容")}
+ update("text", event.target.value)}
+ placeholder={hubTx("具体页面 / 操作 / 期望…")}
+ />
+ {draft.text.length}/3000
+
+
+ {hubTx("联系方式(选填)")}
+ update("contact", event.target.value)}
+ placeholder={hubTx("邮箱 / 微信")}
+ />
+
+
+
+
+ {busy
+ ? hubTx("提交中…")
+ : delivery === "local"
+ ? hubTx("重试")
+ : hubTx("提交")}
+
+ {status && (
+
+ {status}
+
+ )}
+
+ )}
+
+
+ );
+}
+
+const EMPTY_JOIN_PROFILE: JoinProfileDraft = {
+ name: "",
+ avatar: "",
+ gender: "",
+ phone: "",
+ wechat: "",
+ city: "",
+ title: "",
+ skills: "",
+ education: "",
+ graduation: "",
+ relationship: "",
+ intents: [],
+ availability: "",
+ status: "online",
+ linktree: "",
+ bio: "",
+};
+
+type JoinStep = "pay" | "profile" | "liveness" | "done";
+
+/** URL-only — must match SSR; localStorage flags applied after mount. */
+function stepFromParam(param: string | null): JoinStep {
+ if (param === "profile") return "profile";
+ if (param === "liveness") return "liveness";
+ if (param === "done") return "done";
+ return "pay";
+}
+
+function resolveJoinStep(param: string | null): JoinStep {
+ // Unpaid users cannot skip into profile / liveness / done via URL.
+ if (!isJoinPaid()) {
+ if (param === "profile" || param === "liveness" || param === "done") {
+ return "pay";
+ }
+ }
+ // Explicit URL steps win only after paid (re-fill / QA).
+ if (param === "profile") return "profile";
+ if (param === "liveness") return isJoinProfileDone() ? "liveness" : "profile";
+ if (param === "done") {
+ if (isLivenessVerified() && isJoinProfileDone()) return "done";
+ if (isJoinProfileDone()) return "liveness";
+ return "profile";
+ }
+ if (isLivenessVerified() && isJoinProfileDone() && isJoinPaid()) return "done";
+ if (isJoinProfileDone() && isJoinPaid()) return "liveness";
+ if (isJoinPaid()) return "profile";
+ return "pay";
+}
+
+function JoinStepMark({ active }: { active: 2 | 3 | 4 }) {
+ const label =
+ active === 2
+ ? hubTx("资料")
+ : active === 3
+ ? hubTx("确认本人")
+ : hubTx("完成");
+ return (
+
+ {String(active).padStart(2, "0")}
+ /
+ 04
+ {label}
+
+ );
+}
+
+function JoinProfileForm({ onDone }: { onDone: () => void }) {
+ const { locale } = useHubI18n();
+ const config = useSocialConfig();
+ const faceCheckOn = isSocialAvatarFaceCheckEnabled(config);
+ const liveUx = getSocialLive(config);
+ const livenessOn = liveUx.livenessGate;
+ const capture = useCaptureCapability();
+ const nameRef = useRef(null);
+ const avatarInputRef = useRef(null);
+ const captureInputRef = useRef(null);
+ // Empty seed for SSR — hydrate from localStorage after mount (avoids mismatch).
+ const [draft, setDraft] = useState(EMPTY_JOIN_PROFILE);
+ const [busy, setBusy] = useState(false);
+ const [avatarBusy, setAvatarBusy] = useState(false);
+ const [avatarErr, setAvatarErr] = useState("");
+ const [selfieOpen, setSelfieOpen] = useState(false);
+ const [faceOk, setFaceOk] = useState(false);
+ const [liveOk, setLiveOk] = useState(false);
+ const [err, setErr] = useState("");
+ const lock = useRef(false);
+
+ useEffect(() => {
+ const s = getLivenessState();
+ setFaceOk(s.faceOk);
+ setLiveOk(s.livenessStatus === "verified");
+ }, []);
+
+ /** Step 1: always prefer album / clear face photo */
+ const openPrimaryCapture = () => {
+ avatarInputRef.current?.click();
+ };
+
+ const avatarHint = (() => {
+ if (avatarBusy) return hubTx("上传中…");
+ if (!capture.ready) return hubTx("准备中…");
+ if (liveOk && (draft.avatar || "").trim()) {
+ return hubTx("头像和自拍都好了,可以去认识朋友");
+ }
+ if (liveOk) return hubTx("请上传一张头像");
+ // Face-copy only when admin switch is on — otherwise never mention 人脸/正面.
+ if (faceCheckOn && faceOk) {
+ return hubTx("照片看起来不错。再拍张自拍,确认是你本人");
+ }
+ if (faceCheckOn) {
+ return hubTx("请先上传一张清晰的正面照片,再拍张自拍确认本人");
+ }
+ return hubTx("上传一张头像就可以");
+ })();
+
+ useEffect(() => {
+ const saved = loadJson>(
+ "join-profile",
+ EMPTY_JOIN_PROFILE,
+ );
+ const nickLs =
+ typeof window !== "undefined"
+ ? localStorage.getItem("userName") || ""
+ : "";
+ const nick =
+ (nickLs && !nickLs.includes("@") ? nickLs : "") ||
+ loadJson("nick", "") ||
+ saved.name ||
+ "";
+ const genderRaw =
+ typeof saved.gender === "string" ? saved.gender.trim() : "";
+ setDraft({
+ ...EMPTY_JOIN_PROFILE,
+ ...saved,
+ intents: Array.isArray(saved.intents) ? saved.intents : [],
+ availability:
+ typeof saved.availability === "string" ? saved.availability : "",
+ status:
+ typeof saved.status === "string" && saved.status
+ ? saved.status
+ : "online",
+ // Only 男/女 — drop legacy nb / empty placeholders
+ gender: genderRaw === "m" || genderRaw === "f" ? genderRaw : "",
+ relationship: "",
+ name: typeof nick === "string" ? nick : "",
+ avatar:
+ typeof saved.avatar === "string" && !saved.avatar.startsWith("blob:")
+ ? saved.avatar
+ : "",
+ });
+ nameRef.current?.focus();
+ }, []);
+
+ const update = (
+ key: K,
+ value: JoinProfileDraft[K],
+ ) => {
+ setDraft((current) => ({ ...current, [key]: value }));
+ setErr("");
+ };
+
+ const onAvatarPick = async (file: File | null) => {
+ if (!file || avatarBusy) return;
+ const mime = (file.type || "").toLowerCase();
+ const okMime =
+ !mime ||
+ mime.startsWith("image/") ||
+ /\.(jpe?g|png|webp|gif)$/i.test(file.name);
+ if (!okMime) {
+ setAvatarErr(hubTx("请选择图片文件"));
+ return;
+ }
+ if (file.size > 8 * 1024 * 1024) {
+ setAvatarErr(hubTx("头像不能超过 8MB"));
+ return;
+ }
+ setAvatarBusy(true);
+ setAvatarErr("");
+ setErr("");
+ // Instant local preview while uploading / face-checking
+ const localUrl = URL.createObjectURL(file);
+ setDraft((current) => ({ ...current, avatar: localUrl }));
+ try {
+ const uploaded = await hubApi.uploadAvatar(file, "avatar");
+ const url = (uploaded?.url || "").trim();
+ if (!url) throw new Error(hubTx("头像上传失败"));
+ setDraft((current) => {
+ const next = { ...current, avatar: url };
+ saveJson("join-profile", next);
+ const roster = loadJson("roster", {
+ name: "",
+ title: "",
+ city: "",
+ phone: "",
+ linktree: "",
+ skills: "",
+ bio: "",
+ avatar: "",
+ });
+ saveJson("roster", { ...roster, avatar: url });
+ return next;
+ });
+ // faceOk is server-side only for display gates; never lecture the user unless switch on.
+ if (uploaded.faceOk) {
+ markFaceOk();
+ setFaceOk(true);
+ setAvatarErr("");
+ } else {
+ clearFaceOk();
+ setFaceOk(false);
+ if (faceCheckOn) {
+ setAvatarErr(hubTx("没看清脸,请上传一张清晰的正面照"));
+ } else {
+ setAvatarErr("");
+ }
+ }
+ requestAnimationFrame(() => URL.revokeObjectURL(localUrl));
+ if (
+ faceCheckOn &&
+ uploaded.faceOk &&
+ !isLivenessVerified() &&
+ capture.mode === "live-modal"
+ ) {
+ setErr("");
+ }
+ } catch (e) {
+ setDraft((current) => ({ ...current, avatar: "" }));
+ URL.revokeObjectURL(localUrl);
+ const raw =
+ e instanceof Error ? e.message.slice(0, 160).trim() : "";
+ // Soft-upload never throws face errors; hard gate (switch on) may.
+ const facey =
+ /脸|人脸|正面|face|liveness|selfie/i.test(raw);
+ if (facey && !faceCheckOn) {
+ setAvatarErr(hubTx("头像上传失败"));
+ } else {
+ const msg =
+ raw && !/^upload failed|^no url|^上传失败 HTTP/i.test(raw)
+ ? hubTx(raw)
+ : hubTx("头像上传失败");
+ setAvatarErr(msg || hubTx("头像上传失败"));
+ }
+ } finally {
+ setAvatarBusy(false);
+ }
+ };
+
+ const onSelfieChallenge = async (payload: SelfieCapturePayload) => {
+ // Live capture = liveness gate only — never replace album/selfie avatar
+ setAvatarBusy(true);
+ setAvatarErr("");
+ setErr("");
+ try {
+ const uploaded = await hubApi.uploadAvatarChallenge(
+ payload.front,
+ payload.turn,
+ payload.video,
+ payload.videoMime,
+ );
+ // Live audit ≠ album avatar / faceOk
+ markLivenessVerified({ videoUrl: uploaded.videoUrl || "" });
+ setLiveOk(true);
+ setAvatarErr("");
+ if (!(draft.avatar || "").trim()) {
+ setAvatarErr(
+ faceCheckOn
+ ? hubTx("自拍已通过。请再选一张正面照片当头像。")
+ : hubTx("自拍已通过。请再上传一张头像。"),
+ );
+ }
+ } catch (e) {
+ const raw =
+ e instanceof Error ? e.message.slice(0, 160).trim() : "";
+ setAvatarErr(
+ raw ? hubTx(raw) || raw : hubTx("自拍没通过,请再试一次"),
+ );
+ throw e instanceof Error ? e : new Error(hubTx("自拍没通过,请再试一次"));
+ } finally {
+ setAvatarBusy(false);
+ }
+ };
+
+ const toggleIntent = (value: string) => {
+ setDraft((current) => {
+ const has = current.intents.includes(value);
+ return {
+ ...current,
+ intents: has
+ ? current.intents.filter((item) => item !== value)
+ : [...current.intents, value],
+ };
+ });
+ };
+
+ const submit = async (event: FormEvent) => {
+ event.preventDefault();
+ if (lock.current) return;
+ const name = draft.name.trim();
+ if (!name) {
+ setErr(hubTx("请填写怎么称呼你"));
+ nameRef.current?.focus();
+ return;
+ }
+ if (draft.gender !== "m" && draft.gender !== "f") {
+ setErr(hubTx("请选择性别"));
+ return;
+ }
+ if (!draft.intents.length) {
+ setErr(hubTx("请至少选一个「想认识 / 想做什么」"));
+ return;
+ }
+ const avatarUrl =
+ draft.avatar.startsWith("blob:") ? "" : draft.avatar.trim();
+ if (!avatarUrl) {
+ setErr(hubTx("请先上传头像"));
+ return;
+ }
+ if (faceCheckOn && !faceOk && !isFaceOk()) {
+ setErr(hubTx("请先上传一张清楚的正面头像"));
+ return;
+ }
+ if (draft.linktree.trim() && !/^https?:\/\//i.test(draft.linktree.trim())) {
+ setErr(hubTx("作品链接请以 https:// 或 http:// 开头。"));
+ return;
+ }
+ lock.current = true;
+ setBusy(true);
+ setErr("");
+
+ const intentLabels = draft.intents
+ .map(
+ (id) =>
+ JOIN_INTENT_OPTIONS.find((opt) => opt.value === id)?.[
+ locale === "en" ? "labelEn" : "labelZh"
+ ] || id,
+ )
+ .filter(Boolean);
+ const availLabel =
+ JOIN_AVAILABILITY_OPTIONS.find((o) => o.value === draft.availability)?.[
+ locale === "en" ? "labelEn" : "labelZh"
+ ] || draft.availability;
+ const lookingFor = intentLabels.join(" · ");
+
+ const avatar = avatarUrl;
+ const roster: HubRosterProfile = {
+ name,
+ title: draft.title.trim(),
+ city: draft.city.trim(),
+ phone: draft.phone.trim(),
+ linktree: draft.linktree.trim(),
+ skills: draft.skills.trim(),
+ bio: draft.bio.trim(),
+ avatar,
+ intents: draft.intents.join(","),
+ availability: availLabel || draft.availability,
+ status: draft.status || "online",
+ lookingFor,
+ gender: draft.gender,
+ updatedAt: new Date().toISOString(),
+ };
+
+ try {
+ saveJson("roster", roster);
+ saveJson("nick", name);
+ saveJson("join-profile", draft);
+ setRosterPublished(true);
+ await hubApi.saveRoster({
+ name: roster.name,
+ title: roster.title,
+ city: roster.city,
+ phone: roster.phone,
+ linktree: roster.linktree,
+ skills: roster.skills,
+ bio: roster.bio,
+ avatar: roster.avatar || "",
+ gender: draft.gender,
+ relationship: draft.relationship,
+ education: draft.education,
+ graduation: draft.graduation.trim(),
+ wechat: draft.wechat.trim(),
+ intents: draft.intents.join(","),
+ availability: roster.availability || "",
+ status: roster.status || "online",
+ lookingFor,
+ discoverable: "1",
+ updatedAt: roster.updatedAt || "",
+ email:
+ (typeof localStorage !== "undefined"
+ ? localStorage.getItem("userEmail") || ""
+ : "") || "",
+ });
+ } catch {
+ // Offline / API fail: keep local draft; still mark profile done so UX continues
+ }
+
+ markJoinProfileDone();
+ void archiveJoinLead("profile_done", {
+ name: roster.name,
+ city: roster.city,
+ avatar: roster.avatar || "",
+ intents: draft.intents,
+ });
+ lock.current = false;
+ setBusy(false);
+ onDone();
+ };
+
+ const summaryName = draft.name.trim() || hubTx("你的名字");
+ const summaryTitle = draft.title.trim() || hubTx("职业待写");
+ const summaryBio =
+ draft.bio.trim() || hubTx("自我介绍会出现在这里");
+ const summaryInitial = (draft.name.trim()[0] || "N").toUpperCase();
+ const summaryGender =
+ JOIN_GENDER_OPTIONS.find((opt) => opt.value === draft.gender)?.[
+ locale === "en" ? "labelEn" : "labelZh"
+ ] || "";
+ const summaryIntents = draft.intents
+ .map(
+ (id) =>
+ JOIN_INTENT_OPTIONS.find((opt) => opt.value === id)?.[
+ locale === "en" ? "labelEn" : "labelZh"
+ ] || id,
+ )
+ .slice(0, 6);
+ const filled = [
+ draft.name,
+ draft.avatar && !draft.avatar.startsWith("blob:") ? draft.avatar : "",
+ draft.title,
+ draft.bio,
+ draft.intents.length ? "1" : "",
+ ].filter((v) => v.trim()).length;
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
avatarInputRef.current?.click()}
+ >
+ {draft.avatar ? (
+ // eslint-disable-next-line @next/next/no-img-element
+
+ ) : (
+ summaryInitial
+ )}
+
+
+
+
+
+
+ {hubTx("名片完整度")} {filled}/5
+
+
+
+
+
+
+ {hubTx("实时预览")}
+ {summaryName}
+ {summaryTitle}
+ {summaryGender ? (
+
+ {summaryGender}
+
+ ) : null}
+ {summaryIntents.length ? (
+
+ {summaryIntents.map((item) => (
+ {item}
+ ))}
+
+ ) : (
+
+ {hubTx("勾选你想在社区做的事,会出现在这里")}
+
+ )}
+ {summaryBio}
+
+
+
+
+ void submit(event)}
+ aria-busy={busy}
+ >
+ {
+ const file = e.target.files?.[0] || null;
+ e.target.value = "";
+ void onAvatarPick(file);
+ }}
+ />
+ {/* Mobile native camera — capture=user opens front camera sheet */}
+ {
+ const file = e.target.files?.[0] || null;
+ e.target.value = "";
+ void onAvatarPick(file);
+ }}
+ />
+
+ {hubTx("基本信息")}
+
+
+ {draft.avatar ? (
+ // eslint-disable-next-line @next/next/no-img-element
+
+ ) : (
+
+ )}
+ {avatarBusy ? (
+
+ ) : null}
+
+
+
{hubTx("头像")}
+
{avatarHint}
+ {avatarErr ? (
+
+ {avatarErr}
+
+ ) : null}
+ {livenessOn && faceOk && !liveOk ? (
+
+
+ {hubTx(
+ "头像可以了。再拍张自拍确认本人,就能畅聊、约会。",
+ )}
+
+
setSelfieOpen(true)}
+ >
+ {hubTx("开始自拍")}
+
+
+ ) : null}
+ {liveOk ? (
+
+ {hubTx("自拍已通过")}
+
+ ) : null}
+
+ avatarInputRef.current?.click()}
+ >
+ {faceCheckOn
+ ? hubTx("上传正面照片")
+ : hubTx("上传头像")}
+
+ {capture.isMobile ? (
+ captureInputRef.current?.click()}
+ >
+ {hubTx("手机拍照上传")}
+
+ ) : null}
+ {livenessOn &&
+ faceOk &&
+ !liveOk &&
+ capture.mode === "live-modal" ? (
+ setSelfieOpen(true)}
+ >
+ {hubTx("拍张自拍")}
+
+ ) : null}
+ {draft.avatar && !draft.avatar.startsWith("blob:") ? (
+ {
+ setAvatarErr("");
+ update("avatar", "");
+ }}
+ >
+ {hubTx("移除头像")}
+
+ ) : null}
+
+
+
+
+ {hubTx("怎么称呼你")}
+ update("name", e.target.value)}
+ />
+
+
+
+ {hubTx("性别")}
+ *
+
+
+ {JOIN_GENDER_OPTIONS.map((opt) => {
+ const on = draft.gender === opt.value;
+ return (
+ update("gender", opt.value)}
+ >
+ {locale === "en" ? opt.labelEn : opt.labelZh}
+
+ );
+ })}
+
+
+
+ {hubTx("工作与背景")}
+
+ {hubTx("你的职业或专业")}
+ update("title", e.target.value)}
+ />
+
+
+
+ {hubTx("你想在社区做什么")}
+ *
+
+
+ {JOIN_INTENT_OPTIONS.map((opt) => {
+ const on = draft.intents.includes(opt.value);
+ return (
+ toggleIntent(opt.value)}
+ >
+ {locale === "en" ? opt.labelEn : opt.labelZh}
+
+ );
+ })}
+
+
+
+ {hubTx("自我介绍")}
+ update("bio", e.target.value)}
+ />
+ {draft.bio.length}/600
+
+
+ {hubTx("联系方式(选填)")}
+
+ {hubTx("手机号")}
+ update("phone", e.target.value)}
+ />
+
+
+ {hubTx("微信号")}
+ update("wechat", e.target.value)}
+ />
+
+
+ {hubTx("作品 / 主页链接(选填)")}
+ update("linktree", e.target.value)}
+ />
+
+
+
+ {err ? (
+
+ {err}
+
+ ) : null}
+
+
+
+ {busy ? hubTx("保存中…") : hubTx("提交资料,下一步自拍")}
+
+
+
+ {hubTx("先保存在这里,联网后会自动同步。")}
+
+
+
+ {capture.mode === "live-modal" ? (
+ setSelfieOpen(false)}
+ onCaptured={onSelfieChallenge}
+ />
+ ) : null}
+
+ );
+}
+
+function JoinLivenessForm({ onDone }: { onDone: () => void }) {
+ const capture = useCaptureCapability();
+ const [selfieOpen, setSelfieOpen] = useState(false);
+ const [busy, setBusy] = useState(false);
+ const [err, setErr] = useState("");
+ const liveSnap = useSyncExternalStore(
+ subscribeLivenessState,
+ getLivenessSnapshot,
+ getLivenessServerSnapshot,
+ );
+ const liveOk =
+ (JSON.parse(liveSnap) as { livenessStatus?: string }).livenessStatus ===
+ "verified";
+
+ const onSelfieChallenge = async (payload: SelfieCapturePayload) => {
+ setBusy(true);
+ setErr("");
+ try {
+ const uploaded = await hubApi.uploadAvatarChallenge(
+ payload.front,
+ payload.turn,
+ payload.video,
+ payload.videoMime,
+ );
+ // Do not markFaceOk — album avatar is separate from live audit frames
+ markLivenessVerified({ videoUrl: uploaded.videoUrl || "" });
+ void archiveJoinLead("liveness_verified", {
+ videoUrl: uploaded.videoUrl || "",
+ frontUrl: uploaded.frontUrl || "",
+ turnUrl: uploaded.turnUrl || "",
+ avatarUrl: uploaded.avatarUrl || uploaded.url || "",
+ storage: uploaded.storage || "",
+ auditId: uploaded.auditId || "",
+ });
+ onDone();
+ } catch (e) {
+ const raw =
+ e instanceof Error ? e.message.slice(0, 160).trim() : "";
+ setErr(raw ? hubTx(raw) || raw : hubTx("自拍没通过,请再试一次"));
+ void archiveJoinLead("liveness_failed", { error: raw });
+ throw e instanceof Error ? e : new Error(hubTx("自拍没通过,请再试一次"));
+ } finally {
+ setBusy(false);
+ }
+ };
+
+ return (
+
+
+
+ {liveOk ? (
+
+ {hubTx("自拍已通过")}
+
+ ) : (
+
+
+ {hubTx(
+ "请拍张自拍。拍完就能畅聊、开视频、一起做事。",
+ )}
+
+
setSelfieOpen(true)}
+ >
+ {hubTx("开始自拍")}
+
+
+ )}
+ {err ? (
+
+ {err}
+
+ ) : null}
+
+ {liveOk ? (
+
+ {hubTx("进入社区")}
+
+
+ ) : (
+
{
+ // 只记「稍后再自拍」,绝不能写成 join_done / 加入完成
+ void archiveJoinLead("liveness_skipped");
+ onDone();
+ }}
+ >
+ {hubTx("稍后再说")}
+
+ )}
+
+
+ {capture.mode === "live-modal" ? (
+ setSelfieOpen(false)}
+ onCaptured={onSelfieChallenge}
+ />
+ ) : null}
+
+ );
+}
+
+export function CommunityJoin() {
+ const searchParams = useSearchParams();
+ const router = useRouter();
+ const stepParam = searchParams.get("step");
+ const [step, setStep] = useState(() => stepFromParam(stepParam));
+ useEffect(() => {
+ const next = resolveJoinStep(stepParam);
+ // Bare /join or pay step: no dedicated page — bounce home + open modal.
+ if (next === "pay") {
+ flagOpenJoinModalSoon();
+ router.replace(hubPath("/"));
+ return;
+ }
+ setStep(next);
+ if (next === "profile") {
+ void archiveJoinLead("profile_started");
+ }
+ // Never invent "paid" here — only /paid (or localhost skip) may markJoinPaid.
+ if (next === "profile") {
+ if (stepParam === "profile" && isJoinPaid()) {
+ // Explicit re-fill — clear done so form is writable
+ clearJoinProfileDone();
+ }
+ if (stepParam !== "profile") {
+ router.replace(JOIN_PROFILE_RETURN);
+ }
+ }
+ if (next === "liveness" && stepParam !== "liveness") {
+ router.replace(JOIN_LIVENESS_RETURN);
+ }
+ }, [stepParam, router]);
+
+ const goLiveness = () => {
+ setStep("liveness");
+ router.replace(JOIN_LIVENESS_RETURN);
+ };
+
+ const goDone = () => {
+ setStep("done");
+ // 只有真人核验通过才算「加入完成」;跳过自拍停在 liveness_skipped
+ if (isLivenessVerified()) {
+ void archiveJoinLead("join_done", { liveness: "verified" });
+ }
+ router.replace(`${hubPath("/join")}?step=done`);
+ };
+
+ const focusMode =
+ step === "profile" || step === "liveness" || step === "done";
+ const liveSnap = useSyncExternalStore(
+ subscribeLivenessState,
+ getLivenessSnapshot,
+ getLivenessServerSnapshot,
+ );
+ const liveOk =
+ (JSON.parse(liveSnap) as { livenessStatus?: string }).livenessStatus ===
+ "verified";
+
+ // Pay landing removed — redirect handles it; avoid flash of page UI.
+ if (step === "pay") {
+ return (
+
+ {hubTx("正在打开加入…")}
+
+ );
+ }
+
+ return (
+
+ {step === "profile" ? (
+
+ ) : null}
+
+ {step === "liveness" ? (
+
+ ) : null}
+
+ {step === "done" ? (
+
+
+
+
+ {liveOk ? (
+
+ {hubTx("进群聊")}
+
+
+ ) : (
+
+ {hubTx("去拍自拍")}
+
+
+ )}
+
+ {hubTx("完善介绍")}
+
+
+
+
+
+ ) : null}
+
+ );
+}
+
+export function CommunityMembership() {
+ const config = useSocialConfig();
+ const rawMemFen = Number(config.copy.vipPriceFen);
+ const memFen =
+ Number.isFinite(rawMemFen) && rawMemFen >= 0 ? Math.round(rawMemFen) : 0;
+ const price = (memFen / 100).toLocaleString("zh-CN", {
+ maximumFractionDigits: 2,
+ });
+ const benefits = [
+ "更好地展示自己的介绍",
+ "更方便认识想见的人",
+ "视频见面与同城活动更新提醒",
+ "找搭子做事时优先沟通",
+ ];
+ return (
+
+
+
+
+
+ {hubTx("会员通行证")}
+
+ {hubTx("游民会员")}
+
+ {hubTx("开通后能更方便参与社区。具体权益以支付页说明为准。")}
+
+
+ {benefits.map((item) => (
+
+
+ {item}
+
+ ))}
+
+
+ {config.flags.payEnabled ? (
+
+ {config.copy.vipCta || "开通会员"}
+
+
+ ) : (
+
{hubTx("暂时还不能购买")}
+ )}
+
openSocialJoinModal({ reason: "cta" })}
+ >
+ {hubTx("去加入社区")}
+
+
+
+
+ {[
+ { title: "我的介绍", href: hubPath("/roster") },
+ { title: "认识一下", href: hubPath("/date") },
+ { title: "城市 / 咖啡馆", href: hubPath("/places") },
+ { title: "大家聊天", href: hubPath("/chat") },
+ ].map((item) => (
+
+
+
{item.title}
+
+ {hubTx("打开")}
+
+
+ ))}
+
+
+ );
+}
diff --git a/src/modules/hub/components/ConnectionHero.tsx b/src/modules/hub/components/ConnectionHero.tsx
new file mode 100644
index 0000000..c17c01d
--- /dev/null
+++ b/src/modules/hub/components/ConnectionHero.tsx
@@ -0,0 +1,479 @@
+"use client";
+
+import { useEffect, useRef, useState, type CSSProperties } from "react";
+import Link from "next/link";
+import {
+ ArrowDown,
+ ArrowUpRight,
+ Coffee,
+ Globe2,
+ Heart,
+ MessageCircle,
+ MoveUpRight,
+ Play,
+ Radio,
+ Sparkles,
+ Users,
+ X,
+} from "lucide-react";
+import { hubPath } from "@hub/lib/hubPath";
+import { useAudienceRoster } from "@hub/lib/useAudienceRoster";
+import { useSocialPresence } from "@hub/lib/useSocialPresence";
+import { useWaysMeta } from "@hub/lib/waysMeta";
+import HubAvatar from "./HubAvatar";
+import { useSocialConfig } from "./HubExperience";
+import type { HubLandingCopy } from "@hub/lib/landing";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { hubTx } from "@hub/lib/hubTx";
+
+const NODES = [
+ { member: 0, x: 22, y: 22, rotate: -8 },
+ { member: 1, x: 79, y: 26, rotate: 7 },
+ { member: 4, x: 85, y: 65, rotate: -6 },
+ { member: 3, x: 18, y: 69, rotate: 6 },
+];
+
+export default function ConnectionHero({
+ onJoin,
+ promoUrl,
+ copy,
+ hidePromo = false,
+}: {
+ onJoin: () => void;
+ promoUrl: string;
+ copy: HubLandingCopy;
+ /** hubHiddenSections includes "promo" */
+ hidePromo?: boolean;
+}) {
+ const { t, portalLocale, cnOnly } = useHubI18n();
+ const roster = useAudienceRoster();
+ const [videoOpen, setVideoOpen] = useState(false);
+ const dialogRef = useRef(null);
+ const stageRef = useRef(null);
+ const triggerRef = useRef(null);
+
+ useEffect(() => {
+ const dialog = dialogRef.current;
+ if (!dialog) return;
+ if (videoOpen) dialog.showModal();
+ else if (dialog.open) dialog.close();
+ if (!videoOpen) return;
+ const previousOverflow = document.body.style.overflow;
+ document.body.style.overflow = "hidden";
+ return () => {
+ document.body.style.overflow = previousOverflow;
+ };
+ }, [videoOpen]);
+
+ const closeVideo = () => {
+ setVideoOpen(false);
+ triggerRef.current?.focus();
+ };
+
+ return (
+
+
+
+
+
{t.brand}
+
+ {copy.hubEyebrow}
+
+
+ {copy.hubHeroLine1}
+
+ {portalLocale === "en" && !cnOnly ? (
+
+ {copy.hubHeroAccent}
+
+ ) : (
+ <>
+ {hubTx("还好")}
+
+ {copy.hubHeroAccent}
+
+ {hubTx("不远")}
+ 。
+ >
+ )}
+
+
{copy.hubHeroLead}
+
+
+ {hubTx("找人")}
+
+
+ {hubTx("加入")}
+
+ {!hidePromo ? (
+
setVideoOpen(true)}
+ >
+
+
+
+ {t.watchStory}
+
+ ) : null}
+
+
+
+ {roster.slice(0, 5).map((m) => (
+
+ ))}
+
+
+ {t.proofTitle}
+
+
+
+
+
{
+ if (
+ event.pointerType !== "mouse" ||
+ window.matchMedia("(prefers-reduced-motion: reduce)").matches
+ )
+ return;
+ const rect = event.currentTarget.getBoundingClientRect();
+ event.currentTarget.style.setProperty(
+ "--orbit-x",
+ `${(event.clientX - rect.left - rect.width / 2) / 45}deg`,
+ );
+ event.currentTarget.style.setProperty(
+ "--orbit-y",
+ `${-(event.clientY - rect.top - rect.height / 2) / 60}deg`,
+ );
+ }}
+ onPointerLeave={() => {
+ stageRef.current?.style.setProperty("--orbit-x", "0deg");
+ stageRef.current?.style.setProperty("--orbit-y", "0deg");
+ }}
+ >
+
+
+ {hubTx("在线 · 同城")}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{hubTx("同频")}
+
{hubTx("找搭子")}
+
+ {NODES.map(({ member, x, y, rotate }, i) => {
+ const m = roster[member];
+ if (!m) return null;
+ return (
+
+ window.dispatchEvent(
+ new CustomEvent("nomadro-hub-select-member", {
+ detail: m.id,
+ }),
+ )
+ }
+ className={`connection-person connection-person-${i}`}
+ key={m.id}
+ style={
+ {
+ "--node-x": `${x}%`,
+ "--node-y": `${y}%`,
+ "--node-rotate": `${rotate}deg`,
+ "--node-delay": `${i * -1.4}s`,
+ } as CSSProperties
+ }
+ aria-label={`${hubTx("认识")}${m.name},${hubTx(m.title)}`}
+ >
+
+
+
+
+
+
+ {m.name}
+
+
+ {hubTx(m.title)}
+ {hubTx(m.city.split("·")[0].trim())}
+
+
+ );
+ })}
+
+ 30.57° N · {hubTx("成都")}
+
+
+ 25.60° N · {hubTx("大理")}
+
+
+
+ {hubTx("咖啡聊")}
+ ↗
+
+
+
+
+ {hubTx("示例")}
+
+
+
+
+
+
+ {
+ event.preventDefault();
+ closeVideo();
+ }}
+ onClose={() => setVideoOpen(false)}
+ onClick={(event) => {
+ if (event.target === event.currentTarget) closeVideo();
+ }}
+ aria-labelledby="connection-film-title"
+ >
+ {videoOpen && (
+
+
+ {t.brand} · {t.watchStory}
+
+
+
+
+
+
+ )}
+
+
+ );
+}
+
+export function ConnectionWays({ copy }: { copy: HubLandingCopy }) {
+ const config = useSocialConfig();
+ const presence = useSocialPresence(config);
+ const meta = useWaysMeta();
+ const online = Math.max(presence.online, presence.peers.length);
+ const nextTitle = meta.nextMeetup?.title
+ ? hubTx(meta.nextMeetup.title)
+ : "";
+
+ const ways = [
+ {
+ id: "01",
+ href: "/chat",
+ icon: MessageCircle,
+ title: copy.hubWayGroup,
+ sub: "大家一起聊 · 先打个招呼",
+ cta: "进群聊",
+ className: "mint",
+ badge:
+ online > 0
+ ? hubTx("{n} 在线").replace("{n}", String(online))
+ : undefined,
+ },
+ {
+ id: "02",
+ href: "/date",
+ icon: Heart,
+ title: copy.hubWayDate,
+ sub: "左右滑,慢慢认识",
+ cta: "开始看看",
+ className: "coral",
+ badge: undefined as string | undefined,
+ },
+ {
+ id: "03",
+ href: "/meetup",
+ icon: Radio,
+ title: copy.hubWayChat,
+ sub: "语音厅",
+ cta: "去聊聊",
+ className: "mint",
+ badge: nextTitle
+ ? `${hubTx("下一场")} · ${nextTitle}`
+ : meta.meetupCount
+ ? hubTx("{n} 场").replace("{n}", String(meta.meetupCount))
+ : undefined,
+ },
+ {
+ id: "04",
+ href: "/places",
+ icon: Coffee,
+ title: copy.hubWayCafe,
+ sub: copy.hubOfflineTitle || "同城,见一面",
+ cta: "逛城市",
+ className: "yellow",
+ badge: meta.cityCount
+ ? hubTx("{n} 城").replace("{n}", String(meta.cityCount))
+ : undefined,
+ },
+ {
+ id: "05",
+ href: "/ebook",
+ icon: Users,
+ title: copy.hubWayTeam,
+ sub: copy.hubTeamTitle || "一起,做点事",
+ cta: "逛共创",
+ className: "mint",
+ badge: meta.gigCount
+ ? hubTx("{n} 招聘").replace("{n}", String(meta.gigCount))
+ : undefined,
+ },
+ ];
+ return (
+
+ {ways.map((way, index) => (
+
+
{way.id}
+
+
+
+
+ {way.title}
+ {hubTx(way.sub)}
+ {hubTx(way.cta)}
+ {way.badge ? (
+ {way.badge}
+ ) : null}
+
+
+
+ ))}
+
+ );
+}
+
diff --git a/src/modules/hub/components/DateClient.tsx b/src/modules/hub/components/DateClient.tsx
new file mode 100644
index 0000000..1a92fd1
--- /dev/null
+++ b/src/modules/hub/components/DateClient.tsx
@@ -0,0 +1,812 @@
+"use client";
+
+import {
+ useCallback,
+ useEffect,
+ useMemo,
+ useRef,
+ useState,
+ type PointerEvent as ReactPointerEvent,
+} from "react";
+import Link from "next/link";
+import {
+ ArrowLeft,
+ Heart,
+ MapPin,
+ MessageCircle,
+ RotateCcw,
+ Undo2,
+ X,
+} from "lucide-react";
+import HubAvatar from "./HubAvatar";
+import { ShareButton, HubDialog } from "./HubUI";
+import { HubMobileDock } from "./HubNavigation";
+import JoinPayModal from "./JoinPayModal";
+import WayDestChrome from "./WayDestChrome";
+import type { HubRosterMember } from "@hub/lib/rosterMock";
+import { useDiscoveryRoster, SELF_MEMBER_ID } from "@hub/lib/discoveryRoster";
+import { hubPath } from "@hub/lib/hubPath";
+import { setRosterLike, useRosterLikes } from "@hub/lib/useRosterLikes";
+import { useLocalState } from "@hub/lib/useLocalState";
+import { hubApi } from "@hub/lib/api";
+import { loadJson } from "@hub/lib/storage";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { txCityField, txCityShort, txMember } from "@hub/lib/localizeEntity";
+import { openSocialJoinModal } from "@hub/lib/joinModal";
+import { resolveJoinAccessGate } from "@hub/lib/joinFlow";
+import {
+ canUseTrial,
+ consumeTrial,
+ resolveTrialLimits,
+ trialPaywallHint,
+} from "@hub/lib/hubTrial";
+import { useSocialConfig } from "./HubExperience";
+import { useRouter } from "next/navigation";
+
+type Filter = "all" | "f" | "m";
+type Decision = "like" | "pass";
+
+const SWIPE_KEY = "social-date-swipes";
+const HISTORY_KEY = "social-date-history";
+const THRESHOLD_DESKTOP = 110;
+const THRESHOLD_MOBILE = 78;
+
+type SwipeStore = Record;
+type HistoryEntry = { id: string; decision: Decision; previouslyLiked?: boolean };
+
+function shuffle(list: T[]) {
+ const next = [...list];
+ for (let i = next.length - 1; i > 0; i -= 1) {
+ const j = Math.floor(Math.random() * (i + 1));
+ [next[i], next[j]] = [next[j], next[i]];
+ }
+ return next;
+}
+
+export default function DateClient() {
+ useHubI18n();
+ const router = useRouter();
+ const config = useSocialConfig();
+ const trialLimits = resolveTrialLimits(config);
+ // Dating: never show profiles whose avatar has no detected face
+ const discovery = useDiscoveryRoster({ requireFace: true });
+ const roster = useMemo(
+ () =>
+ discovery.filter((member) => {
+ if (member.id === SELF_MEMBER_ID) return false;
+ if (member.faceOk !== true) return false;
+ const av = (member.avatar || "").trim();
+ if (!av || av.includes("nomadro.webp") || av.startsWith("data:"))
+ return false;
+ return (
+ av.startsWith("https://") ||
+ av.startsWith("http://") ||
+ av.startsWith("/api/hub/")
+ );
+ }),
+ [discovery],
+ );
+ const likes = useRosterLikes();
+ const [filter, setFilter] = useState("all");
+ const [swipes, setSwipes] = useLocalState(SWIPE_KEY, {});
+ const [storedHistory, setHistory] = useLocalState(HISTORY_KEY, []);
+ const history = useMemo(() => storedHistory.length ? storedHistory : Object.entries(swipes).map(([id, decision]) => ({ id, decision })), [storedHistory, swipes]);
+ const [order, setOrder] = useState([]);
+ const [drag, setDrag] = useState({ x: 0, y: 0, active: false });
+ /** 已切走、正在飞出的卡(与 current 分离,避免叠层鬼影) */
+ const [leaving, setLeaving] = useState(null);
+ const [toast, setToast] = useState("");
+ const [matchId, setMatchId] = useState(null);
+ const [likesOpen, setLikesOpen] = useState(false);
+ const [joinOpen, setJoinOpen] = useState(false);
+ const [joinHint, setJoinHint] = useState(() =>
+ hubTx(trialPaywallHint("dateViews")),
+ );
+ const start = useRef({ x: 0, y: 0 });
+ const dragging = useRef(false);
+ const dragRef = useRef({ x: 0, y: 0 });
+ const pointerIdRef = useRef(null);
+ const topCardRef = useRef(null);
+ const busy = useRef(false);
+ const toastTimer = useRef | null>(null);
+ const leaveTimer = useRef | null>(null);
+
+ useEffect(
+ () => () => {
+ if (toastTimer.current) clearTimeout(toastTimer.current);
+ if (leaveTimer.current) clearTimeout(leaveTimer.current);
+ },
+ [],
+ );
+
+ // HMR / 异常中断后 busy 可能卡死;leaving 清空时强制解锁
+ useEffect(() => {
+ if (!leaving) busy.current = false;
+ }, [leaving]);
+
+ useEffect(() => {
+ busy.current = false;
+ }, []);
+
+ const releasePointer = useCallback(() => {
+ const el = topCardRef.current;
+ const pid = pointerIdRef.current;
+ if (el && pid != null) {
+ try {
+ if (el.hasPointerCapture?.(pid)) el.releasePointerCapture(pid);
+ } catch {
+ /* ignore */
+ }
+ }
+ pointerIdRef.current = null;
+ dragging.current = false;
+ }, []);
+
+ const deck = useMemo(() => {
+ const ids = [...order, ...roster.map((member) => member.id).filter((id) => !order.includes(id))];
+ return ids
+ .map((id) => roster.find((m) => m.id === id)!)
+ .filter((m) => m && !swipes[m.id])
+ .filter((m) => filter === "all" || m.gender === filter);
+ }, [order, swipes, filter, roster]);
+
+ const current = deck[0] || null;
+ const next = deck[1] || null;
+ const remaining = deck.length;
+ const totalForFilter = roster.filter(
+ (m) => filter === "all" || m.gender === filter,
+ ).length;
+ const liked = useMemo(
+ () =>
+ roster
+ .filter((m) => likes[m.id])
+ .slice()
+ .reverse(),
+ [likes, roster],
+ );
+ const matchMember = matchId
+ ? roster.find((m) => m.id === matchId) || null
+ : null;
+
+ const flash = useCallback((text: string) => {
+ setToast(text);
+ if (toastTimer.current) clearTimeout(toastTimer.current);
+ toastTimer.current = setTimeout(() => setToast(""), 1600);
+ }, []);
+
+ const finishLeaving = useCallback(() => {
+ if (leaveTimer.current) {
+ clearTimeout(leaveTimer.current);
+ leaveTimer.current = null;
+ }
+ setLeaving((prev) => (prev ? null : prev));
+ busy.current = false;
+ }, []);
+
+ const commit = useCallback(
+ (member: HubRosterMember, decision: Decision) => {
+ if (leaving || busy.current) return;
+ if (!canUseTrial("dateViews", trialLimits)) {
+ releasePointer();
+ setDrag({ x: 0, y: 0, active: false });
+ dragRef.current = { x: 0, y: 0 };
+ const gate = resolveJoinAccessGate("date");
+ if (gate.kind === "continue") {
+ router.push(gate.href);
+ return;
+ }
+ const hint = hubTx(
+ gate.kind === "join-modal" ? gate.hint : trialPaywallHint("dateViews"),
+ );
+ setJoinHint(hint);
+ setJoinOpen(true);
+ openSocialJoinModal({ reason: "gate", hint });
+ return;
+ }
+ busy.current = true;
+ releasePointer();
+ dragRef.current = { x: 0, y: 0 };
+ setDrag({ x: 0, y: 0, active: false });
+
+ // 立刻从牌堆移除,顶卡换成下一位;离场卡单独飞出
+ consumeTrial("dateViews", trialLimits);
+ setSwipes((prev) => ({ ...prev, [member.id]: decision }));
+ setHistory((prev) => [
+ ...prev,
+ { id: member.id, decision, previouslyLiked: Boolean(likes[member.id]) },
+ ]);
+ setLeaving({ member, dir: decision });
+
+ try {
+ navigator.vibrate?.(decision === "like" ? [12, 30, 12] : 8);
+ } catch {
+ /* ignore */
+ }
+
+ if (decision === "like") {
+ setRosterLike(member.id, true);
+ setMatchId(member.id);
+ flash(`想认识 ${member.name}`);
+ const me = loadJson<{ name?: string }>("roster", {});
+ void hubApi
+ .notifyLike(member.id, me.name || "游民")
+ .catch(() => undefined);
+ } else {
+ flash("已跳过");
+ }
+
+ if (leaveTimer.current) clearTimeout(leaveTimer.current);
+ leaveTimer.current = setTimeout(finishLeaving, 320);
+ },
+ [
+ leaving,
+ setSwipes,
+ setHistory,
+ flash,
+ likes,
+ trialLimits,
+ releasePointer,
+ finishLeaving,
+ router,
+ ],
+ );
+
+ const undo = useCallback(() => {
+ if (busy.current || leaving || !history.length) return;
+ const last = history[history.length - 1];
+ setHistory(history.slice(0, -1));
+ setSwipes((prev) => {
+ const nextStore = { ...prev };
+ delete nextStore[last.id];
+ return nextStore;
+ });
+ if (last.decision === "like") setRosterLike(last.id, Boolean(last.previouslyLiked));
+ setMatchId(null);
+ setLeaving(null);
+ setDrag({ x: 0, y: 0, active: false });
+ dragRef.current = { x: 0, y: 0 };
+ flash("已撤销");
+ }, [history, leaving, setSwipes, setHistory, flash]);
+
+ const onPointerDown = (event: ReactPointerEvent) => {
+ if ((event.target as HTMLElement).closest("button, a, input") || event.button !== 0) return;
+ if (!current || leaving || busy.current) return;
+ dragging.current = true;
+ topCardRef.current = event.currentTarget;
+ pointerIdRef.current = event.pointerId;
+ start.current = { x: event.clientX, y: event.clientY };
+ try {
+ event.currentTarget.setPointerCapture(event.pointerId);
+ } catch {
+ /* ignore */
+ }
+ setDrag({ x: 0, y: 0, active: true });
+ };
+
+ const onPointerMove = (event: ReactPointerEvent) => {
+ if (!dragging.current || !current || leaving || busy.current) return;
+ const nextDrag = {
+ x: event.clientX - start.current.x,
+ y: (event.clientY - start.current.y) * 0.35,
+ };
+ dragRef.current = nextDrag;
+ setDrag({ ...nextDrag, active: true });
+ };
+
+ const onPointerUp = () => {
+ if (!dragging.current || !current || leaving || busy.current) {
+ releasePointer();
+ return;
+ }
+ const x = dragRef.current.x;
+ const threshold =
+ typeof window !== "undefined" && window.matchMedia("(max-width: 900px)").matches
+ ? THRESHOLD_MOBILE
+ : THRESHOLD_DESKTOP;
+ releasePointer();
+ if (x > threshold) commit(current, "like");
+ else if (x < -threshold) commit(current, "pass");
+ else {
+ setDrag({ x: 0, y: 0, active: false });
+ dragRef.current = { x: 0, y: 0 };
+ }
+ };
+
+ const resetDeck = () => {
+ if (leaveTimer.current) clearTimeout(leaveTimer.current);
+ releasePointer();
+ setSwipes({});
+ setHistory([]);
+ setOrder(shuffle(roster.map((m) => m.id)));
+ setDrag({ x: 0, y: 0, active: false });
+ dragRef.current = { x: 0, y: 0 };
+ setLeaving(null);
+ setMatchId(null);
+ setLikesOpen(false);
+ busy.current = false;
+ flash("已重新洗牌");
+ };
+
+ useEffect(() => {
+ const onKey = (event: KeyboardEvent) => {
+ if (likesOpen || matchId || document.querySelector("dialog[open]")) return;
+ if ((event.target as HTMLElement | null)?.isContentEditable) return;
+ const tag = (event.target as HTMLElement | null)?.tagName;
+ if (tag === "INPUT" || tag === "TEXTAREA" || tag === "SELECT") return;
+ if (event.key === "ArrowRight") {
+ event.preventDefault();
+ if (current) commit(current, "like");
+ } else if (event.key === "ArrowLeft") {
+ event.preventDefault();
+ if (current) commit(current, "pass");
+ } else if (
+ (event.key === "z" || event.key === "Z") &&
+ (event.metaKey || event.ctrlKey)
+ ) {
+ event.preventDefault();
+ undo();
+ } else if (event.key === "Backspace") {
+ event.preventDefault();
+ undo();
+ }
+ };
+ window.addEventListener("keydown", onKey);
+ return () => window.removeEventListener("keydown", onKey);
+ }, [current, commit, undo, likesOpen, matchId]);
+
+ const locked = Boolean(leaving) || busy.current;
+ const rotate = drag.x / 18;
+ const stampThreshold =
+ typeof window !== "undefined" &&
+ window.matchMedia("(max-width: 900px)").matches
+ ? THRESHOLD_MOBILE
+ : THRESHOLD_DESKTOP;
+ const likeOpacity = Math.min(1, Math.max(0, drag.x / stampThreshold));
+
+ return (
+
+
+
+
+
+
+ {hubTx("首页")}
+
+
+
{hubTx("约会")}
+
+ {totalForFilter
+ ? `${hubTx("还剩")} ${remaining}/${totalForFilter}`
+ : hubTx("左滑跳过 · 右滑想认识")}
+
+
+
+
+ {liked.length > 0 ? (
+ setLikesOpen(true)}
+ >
+
+ {hubTx("想认识")} {liked.length}
+
+ ) : null}
+
+
+
+
+ {(
+ [
+ ["all", "全部"],
+ ["f", "女生"],
+ ["m", "男生"],
+ ] as const
+ ).map(([id, label]) => (
+ setFilter(id)}
+ >
+ {hubTx(label)}
+
+ ))}
+
+
+
+
+
+
+
+ {totalForFilter > 0 ? (
+
+
+
+ ) : null}
+
+ {!current && (
+
+
+ ✨
+
+
{hubTx("这批看完了")}
+
+ {hubTx("想认识的人会先记在你这边。可以再看一轮,或去聊天室打个招呼。")}
+
+
+
+ {hubTx("再来一轮")}
+
+
+
+ {hubTx("先去群组聊聊")}
+
+ {liked.length > 0 && (
+
setLikesOpen(true)}
+ >
+
+ {hubTx("查看想认识")} ({liked.length})
+
+ )}
+
+ )}
+
+ {next && (
+
+
+
+ )}
+
+ {current && (
+
{
+ topCardRef.current = el;
+ }}
+ className={`social-date-card is-top${drag.active ? " is-dragging" : ""}`}
+ style={{
+ transform: `translate3d(${drag.x}px, ${drag.y}px, 0) rotate(${rotate}deg)`,
+ }}
+ onPointerDown={onPointerDown}
+ onPointerMove={onPointerMove}
+ onPointerUp={onPointerUp}
+ onPointerCancel={() => {
+ releasePointer();
+ dragRef.current = { x: 0, y: 0 };
+ setDrag({ x: 0, y: 0, active: false });
+ }}
+ >
+
+ {hubTx("想认识")}
+
+
+
+ )}
+
+ {leaving && (
+
+
+ {hubTx("想认识")}
+
+
+
+ )}
+
+
+
+ {hubTx("拖卡片左右滑 · 或点下面按钮")}
+ {hubTx("想认识 →")}
+
+
+ current && commit(current, "pass")}
+ >
+
+
+
+
+
+ current && commit(current, "like")}
+ >
+
+
+
+
+ {liked.length > 0 && (
+
setLikesOpen(true)}
+ >
+
+ {hubTx("想认识 · ")}
+ {liked.length}
+
+
+ {liked.slice(0, 8).map((m) => (
+
+ ))}
+
+ {hubTx("查看")}
+
+ )}
+
+
+ {toast ? (
+
+ {toast}
+
+ ) : null}
+
+ {matchMember ? (
+
setMatchId(null)}
+ >
+
+
+
+
{matchMember.name}
+
{hubTx(matchMember.title)}
+
+
+ {txCityField(matchMember.city)}
+
+
+
+ {hubTx(matchMember.lookingFor)}
+
+ {hubTx(
+ "「想认识」会先记在你这边。去群组打个招呼吧——是大家一起聊,不是一对一私信。",
+ )}
+
+
+
+
+ {hubTx("进群组打招呼")}
+
+
+ {hubTx("看看 TA")}
+
+ setMatchId(null)}
+ >
+ {hubTx("继续看看")}
+
+
+
+ ) : null}
+
+ {likesOpen ? (
+
setLikesOpen(false)}>
+
+ {liked.map((m) => (
+
+
+
+
{m.name}
+
+ {hubTx(m.title)} · {txCityShort(m.city)}
+
+
+
+ {hubTx("看看 TA")}
+
+
+ {hubTx("打招呼")}
+
+
+ ))}
+
+
+
+
+ {hubTx("进群组聊天")}
+
+
+ {hubTx("回去看看大家")}
+
+
+
+ {hubTx("再看一轮")}
+
+
+
+ ) : null}
+
setJoinOpen(false)}
+ hint={joinHint}
+ />
+
+
+ );
+}
+
+function DateCardFace({ member }: { member: HubRosterMember }) {
+ const photos = useMemo(() => {
+ const list = [member.avatar, ...(member.gallery || [])].filter(Boolean);
+ return Array.from(new Set(list));
+ }, [member.avatar, member.gallery]);
+ const [photoIndex, setPhotoIndex] = useState(0);
+ const cover = photos[Math.min(photoIndex, photos.length - 1)] || member.avatar;
+
+ return (
+ <>
+
+
+ {photos.length > 1 ? (
+ <>
+
+ {photos.map((src, i) => (
+
+ ))}
+
+ e.stopPropagation()}
+ onClick={(e) => {
+ e.stopPropagation();
+ setPhotoIndex((i) => Math.max(0, i - 1));
+ }}
+ />
+ = photos.length - 1}
+ onPointerDown={(e) => e.stopPropagation()}
+ onClick={(e) => {
+ e.stopPropagation();
+ setPhotoIndex((i) => Math.min(photos.length - 1, i + 1));
+ }}
+ />
+ >
+ ) : null}
+ {member.online ? (
+ {hubTx("现在在线")}
+ ) : null}
+
+
+
+
+ {member.gender === "f" ? "👩" : member.gender === "m" ? "👨" : "🙂"}
+ {" "}
+ {member.name}
+
+
+ {member.gender === "f"
+ ? hubTx("女生")
+ : member.gender === "m"
+ ? hubTx("男生")
+ : ""}
+ {member.gender === "f" || member.gender === "m" ? " · " : ""}
+ {hubTx(member.title)}
+ {member.vibe ? ` · ${hubTx(member.vibe)}` : ""}
+
+
+
+
+ {txCityField(member.city)}
+
+
{hubTx(member.lookingFor)}
+
{hubTx(member.bio)}
+
+ {member.tags.slice(0, 4).map((tag) => (
+ {hubTx(tag)}
+ ))}
+
+
+ >
+ );
+}
diff --git a/src/modules/hub/components/EbookClient.tsx b/src/modules/hub/components/EbookClient.tsx
new file mode 100644
index 0000000..22abf22
--- /dev/null
+++ b/src/modules/hub/components/EbookClient.tsx
@@ -0,0 +1,3 @@
+"use client";
+
+export { BooksLibrary as default } from "./ResourceLibrary";
diff --git a/src/modules/hub/components/EventDirectory.tsx b/src/modules/hub/components/EventDirectory.tsx
new file mode 100644
index 0000000..65b1241
--- /dev/null
+++ b/src/modules/hub/components/EventDirectory.tsx
@@ -0,0 +1,287 @@
+"use client";
+
+import { useEffect, useMemo, useState } from "react";
+import Link from "next/link";
+import {
+ ArrowUpRight,
+ CalendarPlus,
+ Clock3,
+ MessageCircle,
+ Radio,
+} from "lucide-react";
+import SiteShell from "./SiteShell";
+import HubAvatar from "./HubAvatar";
+import WayDestChrome from "./WayDestChrome";
+import {
+ BookmarkButton,
+ DemoBadge,
+ EmptyState,
+ PageIntro,
+ SearchField,
+ ResultSummary,
+ ShareButton,
+} from "./HubUI";
+import { eventDate, saveEventCalendar } from "@hub/lib/calendar";
+import { useLocalState } from "@hub/lib/useLocalState";
+import { hubPath } from "@hub/lib/hubPath";
+import { resolveSocialCatalog } from "@hub/lib/resolveCatalog";
+import { useSocialConfig } from "./HubExperience";
+import { useAudienceRoster } from "@hub/lib/useAudienceRoster";
+import { useWaysMeta } from "@hub/lib/waysMeta";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { prefetchCityCopy, txMeetup } from "@hub/lib/localizeEntity";
+
+export default function EventDirectory() {
+ const config = useSocialConfig();
+ const { portalLocale } = useHubI18n();
+ const roster = useAudienceRoster();
+ const waysMeta = useWaysMeta();
+ const catalog = useMemo(
+ () => resolveSocialCatalog(config.copy.hubCatalogs),
+ [config.copy.hubCatalogs, portalLocale],
+ );
+ const [query, setQuery] = useState("");
+ const [filter, setFilter] = useState("all");
+ const [saved] = useLocalState("saved-events", []);
+
+ useEffect(() => {
+ prefetchCityCopy();
+ }, [portalLocale]);
+
+ const events = catalog.meetups.filter((item) => {
+ const d = txMeetup(item);
+ const hay = `${item.title} ${item.city} ${d.title} ${d.city}`.toLowerCase();
+ const qOk = hay.includes(query.toLowerCase().trim());
+ if (!qOk) return false;
+ if (filter === "saved") return saved.includes(item.id);
+ if (filter === "soon") {
+ const t = eventDate(item).getTime();
+ return Number.isFinite(t) && t >= Date.now() - 30 * 60_000;
+ }
+ return true;
+ });
+ const next = waysMeta.nextMeetup;
+ const nextDisplay = next ? txMeetup(next) : null;
+
+ return (
+
+
+
+
+ {catalog.source === "remote"
+ ? hubTx("最新场次")
+ : hubTx("场次")}
+
+
+ {next && nextDisplay ? (
+
+
+
{hubTx("下一场")}
+
{nextDisplay.title}
+
+ {next.date} · {next.time}
+ {next.city && next.city !== "Online"
+ ? ` · ${nextDisplay.city}`
+ : ` · ${hubTx("语音厅")}`}
+
+
+
+ {hubTx("进入")}
+
+
+ ) : null}
+
+
+
+ setFilter("all")}
+ >
+ {hubTx("全部")}
+
+ setFilter("soon")}
+ >
+ {hubTx("即将")}
+
+ setFilter("saved")}
+ >
+ {hubTx("已收藏")}
+
+
+
+ {
+ setQuery("");
+ setFilter("all");
+ }}
+ />
+
+ {events.map((event, index) => {
+ const start = eventDate(event);
+ const scheduled = Number.isFinite(start.getTime());
+ const zone = event.timeZone || "Asia/Shanghai";
+ const d = txMeetup(event);
+ return (
+
+
+
{String(index + 1).padStart(2, "0")}
+
+ {Array.from({ length: 12 }, (_, n) => (
+
+ ))}
+
+
+ {roster.slice(index, index + 4).map((p) => (
+
+
+
+ ))}
+
+
+
+
+
+
+ {event.mode === "hybrid"
+ ? hubTx("可线下")
+ : hubTx("语音厅")}
+
+
+
+ {roster.slice(index + 2, index + 6).map((p) => (
+
+ ))}
+
+
{d.title}
+
+
+ {scheduled
+ ? `${event.date} · ${event.time} ${
+ zone === "Asia/Shanghai"
+ ? hubTx("北京时间")
+ : zone
+ }`
+ : hubTx("时间待确认")}
+
+
+ {scheduled
+ ? `${hubTx("你那边大约是:")}${start.toLocaleString(
+ portalLocale === "zh" ? "zh-CN" : portalLocale === "en" ? "en-US" : portalLocale,
+ {
+ month: "short",
+ day: "numeric",
+ hour: "2-digit",
+ minute: "2-digit",
+ timeZoneName: "short",
+ },
+ )}`
+ : hubTx("排期待更新")}
+
+ {event.city && event.city !== "Online" ? (
+
{d.city}
+ ) : null}
+
+
+ saveEventCalendar(event)}
+ >
+
+ {hubTx("加到日历")}
+
+
+
+
+ {hubTx("去聊天")}
+
+
+
+
+ );
+ })}
+ {!events.length && (
+
+ {
+ setQuery("");
+ setFilter("all");
+ }}
+ >
+ {hubTx("重新看看")}
+
+
+ )}
+
+
+ );
+}
diff --git a/src/modules/hub/components/FeedbackClient.tsx b/src/modules/hub/components/FeedbackClient.tsx
new file mode 100644
index 0000000..77fe53b
--- /dev/null
+++ b/src/modules/hub/components/FeedbackClient.tsx
@@ -0,0 +1,3 @@
+"use client";
+
+export { CommunityFeedback as default } from "./CommunityWelcome";
diff --git a/src/modules/hub/components/FloatingEmojiField.tsx b/src/modules/hub/components/FloatingEmojiField.tsx
new file mode 100644
index 0000000..782df9d
--- /dev/null
+++ b/src/modules/hub/components/FloatingEmojiField.tsx
@@ -0,0 +1,32 @@
+"use client";
+
+/** Soft ambient accents — few, small, low opacity; never steal focus. */
+const EMOJIS = [
+ { e: "☕", x: "8%", y: "22%", delay: "0s", dur: "9s", size: "1.1rem" },
+ { e: "🌏", x: "88%", y: "20%", delay: "1.2s", dur: "11s", size: "1.15rem" },
+ { e: "✨", x: "78%", y: "62%", delay: "2.4s", dur: "10s", size: "0.95rem" },
+ { e: "💬", x: "14%", y: "68%", delay: "0.8s", dur: "12s", size: "1rem" },
+ { e: "🚀", x: "52%", y: "12%", delay: "3s", dur: "10.5s", size: "0.9rem" },
+];
+
+export default function FloatingEmojiField() {
+ return (
+
+ {EMOJIS.map((item) => (
+
+ {item.e}
+
+ ))}
+
+ );
+}
diff --git a/src/modules/hub/components/FxBelt.tsx b/src/modules/hub/components/FxBelt.tsx
new file mode 100644
index 0000000..489aec9
--- /dev/null
+++ b/src/modules/hub/components/FxBelt.tsx
@@ -0,0 +1,16 @@
+"use client";
+
+/** Quiet section divider — sparse glyphs, low visual weight. */
+const ROW = ["☕", "🌏", "💬", "✨", "📡", "🚀"];
+
+export default function FxBelt() {
+ const line = [...ROW, ...ROW, ...ROW].join(" ");
+ return (
+
+ );
+}
diff --git a/src/modules/hub/components/GigsClient.tsx b/src/modules/hub/components/GigsClient.tsx
new file mode 100644
index 0000000..2b9fee5
--- /dev/null
+++ b/src/modules/hub/components/GigsClient.tsx
@@ -0,0 +1,4 @@
+"use client";
+
+/** @deprecated 请用 TeamClient;保留 re-export 避免旧 import 断裂 */
+export { default } from "./TeamClient";
diff --git a/src/modules/hub/components/HomeActionRail.tsx b/src/modules/hub/components/HomeActionRail.tsx
new file mode 100644
index 0000000..9c32d8b
--- /dev/null
+++ b/src/modules/hub/components/HomeActionRail.tsx
@@ -0,0 +1,82 @@
+"use client";
+
+import { useState } from "react";
+import Link from "next/link";
+import { ArrowUpRight, Coffee, Compass, Heart, Users } from "lucide-react";
+import { hubPath } from "@hub/lib/hubPath";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { useSocialConfig } from "./HubExperience";
+
+export default function HomeActionRail() {
+ const { tx } = useHubI18n();
+ const config = useSocialConfig();
+ const [intent, setIntent] = useState("people");
+ if (config.copy.hubHiddenSections?.includes("discovery")) return null;
+
+ const journeys = [
+ {
+ id: "people",
+ icon: Users,
+ label: tx("找人", "People"),
+ href: "/people",
+ },
+ {
+ id: "coffee",
+ icon: Coffee,
+ label: tx("咖啡", "Coffee"),
+ href: "/coffeechat",
+ },
+ {
+ id: "city",
+ icon: Compass,
+ label: tx("城市", "City"),
+ href: "/places",
+ },
+ {
+ id: "create",
+ icon: Heart,
+ label: tx("共创", "Create"),
+ href: "/ebook",
+ },
+ ];
+ const selected = journeys.find((j) => j.id === intent) || journeys[0];
+ const Icon = selected.icon;
+
+ return (
+
+
+
{tx("入口", "Start")}
+
+
+ {journeys.map((journey) => {
+ const Mark = journey.icon;
+ return (
+ setIntent(journey.id)}
+ >
+
+ {journey.label}
+
+ );
+ })}
+
+
+
+
+
+
+
+
+
+ {selected.label}
+
+
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeClient.tsx b/src/modules/hub/components/HomeClient.tsx
new file mode 100644
index 0000000..1094307
--- /dev/null
+++ b/src/modules/hub/components/HomeClient.tsx
@@ -0,0 +1,798 @@
+"use client";
+
+import {
+ useEffect,
+ useMemo,
+ useState,
+ useSyncExternalStore,
+ type PointerEvent,
+} from "react";
+import Link from "next/link";
+import SiteShell from "./SiteShell";
+import AttractiveRoster from "./AttractiveRoster";
+import ConnectionHero, { ConnectionWays } from "./ConnectionHero";
+import HomeStatusStrip, { useHomeLivenessGate } from "./HomeStatusStrip";
+import HomeActionRail from "./HomeActionRail";
+import HomeSkillsPreview from "./HomeSkillsPreview";
+import HomeLivePulse from "./HomeLivePulse";
+import HomeTonightCard from "./HomeTonightCard";
+import HomeJumpRail from "./HomeJumpRail";
+import HomeTodayActions from "./HomeTodayActions";
+import HomeIntentQuiz from "./HomeIntentQuiz";
+import HomeWelcomeBack from "./HomeWelcomeBack";
+import HomeSuperToolbar from "./HomeSuperToolbar";
+import HomeDiscoverMore from "./HomeDiscoverMore";
+import { openSocialJoinModal } from "@hub/lib/joinModal";
+import { useHubHidden } from "@hub/lib/useHubHidden";
+import { pushRecentPath } from "@hub/lib/hubSuperPrefs";
+import FxBelt from "./FxBelt";
+import SectionSpark from "./SectionSpark";
+import CityDirectory from "./CityDirectory";
+import HomeCoffeeEntry from "./HomeCoffeeEntry";
+import HubBrandLogo from "./HubBrandLogo";
+import HubAvatar from "./HubAvatar";
+import {
+ ArrowUpRight,
+ BookOpen,
+ Heart,
+ Radio,
+ Sparkles,
+} from "lucide-react";
+import { TEAM_KIND_LABEL, SEED_EBOOKS, SEED_VIDEOS } from "@hub/lib/seed";
+import { resolveSocialCatalog } from "@hub/lib/resolveCatalog";
+import { hubPath } from "@hub/lib/hubPath";
+import { resolveSocialLandingCopy } from "@hub/lib/landing";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { useDiscoveryRoster } from "@hub/lib/discoveryRoster";
+import { useSocialConfig } from "./HubExperience";
+import { hubTx } from "@hub/lib/hubTx";
+import {
+ getSocialSession,
+ subscribeSocialSession,
+} from "@hub/lib/hubSession";
+import {
+ DEFAULT_X_HANDLE,
+ formatXHandle,
+ xProfileUrl,
+} from "~/components/social-follow";
+import { trackFollow } from "~/lib/analytics/track";
+import { useHubAudienceModule } from "@hub/lib/useHubAudience";
+
+const DEFAULT_PROMO =
+ "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4";
+
+const ROLE_EMOJI: Record = {
+ volunteer: "🙋",
+ parttime: "📝",
+ fulltime: "💼",
+};
+
+export default function HomeClient() {
+ const config = useSocialConfig();
+ const { portalLocale, t } = useHubI18n();
+ const { followChannel, cnOnly } = useHubAudienceModule();
+ // 中文受众:公众号;解除锁后才可能跟 X
+ const showXFollow = !cnOnly && followChannel === "x";
+ const roster = useDiscoveryRoster();
+ // Dating strip: same face gate as /date — no face → never preview
+ const datingRoster = useDiscoveryRoster({ requireFace: true });
+ const { liveOk } = useHomeLivenessGate();
+ const [activeSection, setActiveSection] = useState("people");
+ const openJoin = () => openSocialJoinModal({ reason: "cta" });
+ const sessionSnap = useSyncExternalStore(
+ subscribeSocialSession,
+ () => JSON.stringify(getSocialSession()),
+ () => "null",
+ );
+ const loggedIn = Boolean(
+ (JSON.parse(sessionSnap) as ReturnType)?.email,
+ );
+ const promoUrl =
+ config.copy.hubPromoUrl?.trim() ||
+ (
+ config.modules?.social as { promoVideoUrl?: string } | undefined
+ )?.promoVideoUrl?.trim() ||
+ DEFAULT_PROMO;
+ const landingCopy = resolveSocialLandingCopy(config.copy, portalLocale);
+ const PATH = t.homePath;
+ const catalog = useMemo(
+ () => resolveSocialCatalog(config.copy.hubCatalogs),
+ [config.copy.hubCatalogs, portalLocale],
+ );
+ /** 「随时,聊得来」首页只展示 2 个厅 */
+ const meetups = catalog.meetups.slice(0, 2);
+ const gigs = catalog.gigs;
+ // Face-ok only; soft bias women for cover strip
+ const datePreview = useMemo(() => {
+ const pool = datingRoster.filter(
+ (m) => m.faceOk === true && Boolean((m.avatar || "").trim()),
+ );
+ const women = pool.filter((m) => m.gender === "f");
+ const rest = pool.filter((m) => m.gender !== "f");
+ return [...women, ...rest].slice(0, 3);
+ }, [datingRoster]);
+
+ const hidden = useHubHidden();
+
+ useEffect(() => {
+ pushRecentPath(hubPath("/"), hubTx("首页"));
+ }, []);
+
+ useEffect(() => {
+ const root = document.querySelector(".social-home");
+ if (!root) return;
+ const reveal = new IntersectionObserver(
+ (entries) =>
+ entries.forEach((e) => {
+ if (e.isIntersecting) {
+ e.target.classList.add("visible");
+ reveal.unobserve(e.target);
+ }
+ }),
+ { threshold: 0.06, rootMargin: "0px 0px -24px 0px" },
+ );
+ const sectionObserver = new IntersectionObserver(
+ (entries) => {
+ entries.forEach((entry) => {
+ if (entry.isIntersecting) setActiveSection(entry.target.id);
+ });
+ },
+ { rootMargin: "-25% 0px -55% 0px", threshold: 0 },
+ );
+ let scanTimer = 0;
+ const scan = () => {
+ root
+ .querySelectorAll(".reveal:not(.visible)")
+ .forEach((el) => reveal.observe(el));
+ root
+ .querySelectorAll("section[id]:not(#hero)")
+ .forEach((section) => sectionObserver.observe(section));
+ };
+ const scheduleScan = () => {
+ if (scanTimer) window.clearTimeout(scanTimer);
+ scanTimer = window.setTimeout(scan, 80);
+ };
+ scan();
+ root.setAttribute("data-home-motion", "ready");
+ const t = window.setTimeout(scan, 400);
+ const mo = new MutationObserver(scheduleScan);
+ mo.observe(root, { childList: true, subtree: true });
+ return () => {
+ window.clearTimeout(t);
+ if (scanTimer) window.clearTimeout(scanTimer);
+ scanTimer = 0;
+ mo.disconnect();
+ reveal.disconnect();
+ sectionObserver.disconnect();
+ root.removeAttribute("data-home-motion");
+ };
+ }, [loggedIn]);
+
+ const onPanelPointerMove = (event: PointerEvent) => {
+ if (event.pointerType !== "mouse") return;
+ const panel = (event.target as Element).closest(
+ ".social-panel",
+ );
+ if (!panel) return;
+ const rect = panel.getBoundingClientRect();
+ panel.style.setProperty("--spot-x", `${event.clientX - rect.left}px`);
+ panel.style.setProperty("--spot-y", `${event.clientY - rect.top}px`);
+ };
+
+ return (
+
+
+
+
+
+
+
+
+
+
+ {!hidden.includes("ways") ? (
+
+ ) : null}
+
+ {!hidden.includes("belowWays") ? (
+ <>
+
+
+
+
+
+
+ {loggedIn ? : null}
+
+
+
+
+ {!hidden.includes("path") ? (
+
+
+
+ {PATH.map((p) => {
+ const external = "external" in p && p.external;
+ const href = external ? hubPath(p.href) : p.href;
+ if (external) {
+ return (
+
+
+ {p.emoji}
+
+ {p.label}
+
+ );
+ }
+ return (
+
+
+ {p.emoji}
+
+ {p.label}
+
+ );
+ })}
+
+
+
+ ) : null}
+
+ {!hidden.includes("people") ? (
+
+ ) : null}
+
+ {!hidden.includes("date") ? (
+
+
+
+
+
+ {hubTx("约会")}
+ {hubTx("左右滑")}
+
+
+
+ 💕
+
+ {hubTx("滑卡认识")}
+
+
+
+ ← {hubTx("跳过")}
+
+
+ → {hubTx("想认识")}
+
+
+
+
+ {hubTx("开始")}
+
+
+
+ {hubTx("看人")}
+
+
+
+
+ {datePreview.length ? (
+ datePreview.map((m, i) => (
+
+ {m.online ? (
+
+ {hubTx("在线")}
+
+ ) : null}
+
+
+ {m.name}
+ {hubTx(m.title)}
+
+
{hubTx(m.city.split("·")[0].trim())}
+
{hubTx(m.lookingFor)}
+
+ {m.tags.slice(0, 2).map((tag) => (
+ {hubTx(tag)}
+ ))}
+
+
+
+ ))
+ ) : (
+
+
+ {hubTx("暂无预览")}
+
+ )}
+
+ {hubTx("滑卡")}
+
+
+
+
+
+ ) : null}
+
+ {!hidden.includes("meetup") ? (
+
+
+
+
+
+ {hubTx("语音厅")}
+
+
+
+ 📡
+
+ {landingCopy.hubOnlineTitle}
+
+
+ {meetups.length ? (
+
+ {meetups.map((m, i) => (
+
+
+
+ 0{i + 1}
+
+
+ {Array.from({ length: 14 }, (_, n) => (
+
+ ))}
+
+
+ {roster.slice(i, i + 4).map((p) => (
+
+
+
+ ))}
+
+
+
+
+
+ {m.city === "Online"
+ ? hubTx("语音厅")
+ : hubTx(m.city)}
+
+
+ {m.date} · {m.time}
+
+
+
+ {roster.slice(i + 1, i + 5).map((p) => (
+
+ ))}
+
+ {hubTx(m.title)}
+
+ {hubTx("进入")}
+
+
+
+ ))}
+
+ ) : (
+
+
+
{hubTx("暂无语音厅")}
+
+
+ {hubTx("群聊")}
+
+
+ {t.joinCommunity}
+
+
+
+ )}
+ {meetups.length ? (
+
+
+ {hubTx("全部")}
+
+
+ {hubTx("群聊")}
+
+
+ {t.joinCommunity}
+
+
+ ) : null}
+
+
+ ) : null}
+
+
+
+ {!hidden.includes("coffee") ? (
+
+
+
+ ) : null}
+
+ {!hidden.includes("cities") ? (
+
+
+
+
+
{hubTx("地图")}
+
+ {[
+ hubTx("成都"),
+ hubTx("大理"),
+ hubTx("杭州"),
+ hubTx("上海"),
+ hubTx("深圳"),
+ ].map((name) => (
+ {name}
+ ))}
+
+
+ {liveOk ? (
+
+ {hubTx("打开")}
+
+
+ ) : (
+
+ {hubTx("完善")}
+
+
+ )}
+
+
+
+
+ {hubTx("咖啡聊")}
+
+
+ {hubTx("城市")}
+
+
+
+
+ ) : null}
+
+ {!hidden.includes("team") ? (
+
+
+
+
+
+ {hubTx("共创")}
+
+
+
+ 🚀
+
+ {landingCopy.hubTeamTitle}
+
+
+
+
+ {SEED_EBOOKS.slice(0, 2).map((book) => (
+
+
+
+
+
+ {hubTx("小册")}
+ {hubTx(book.title)}
+
+
+
+ ))}
+ {SEED_VIDEOS.slice(0, 2).map((vid) => (
+
+
+ {vid.coverEmoji}
+
+
+
{hubTx("视频")}
+
{hubTx(vid.title)}
+
+ {hubTx(vid.city)} · {vid.minutes}′
+
+
+
+
+ ))}
+
+
+
+
+ {hubTx("全部")}
+
+
+ {t.joinCommunity}
+
+
+
+
+ ) : null}
+
+
+
+ {!hidden.includes("hire") ? (
+
+
+
+
+
+ {hubTx("招聘")}
+
+
+
+ 💼
+
+ {hubTx("招聘")}
+
+
+
+ {gigs.length ? (
+
+ {gigs.slice(0, 3).map((g, i) => (
+
+
+ {ROLE_EMOJI[g.kind || "parttime"] || "📝"}
+
+
+
+ {hubTx(TEAM_KIND_LABEL[g.kind || "parttime"])}
+
+
+ {g.remote ? hubTx("远程") : hubTx("线下")}
+
+
+
{hubTx(g.title)}
+
{hubTx(g.pay)}
+
+ {(g.tags || []).slice(0, 3).map((tag) => (
+ {hubTx(tag)}
+ ))}
+
+
+ ))}
+
+ ) : (
+
+
{hubTx("暂无招聘")}
+
+
+ {hubTx("找搭子")}
+
+
+ {hubTx("共创")}
+
+
+
+ )}
+
+ {gigs.length ? (
+
+
+ {hubTx("全部")}
+
+
+ ) : null}
+
+
+ ) : null}
+
+ {!loggedIn && !hidden.includes("invite") ? (
+
+
+
+
+
+
+
+
{t.joinCommunity}
+
{landingCopy.hubInviteTitle}
+
{landingCopy.hubInviteLead}
+
+
+ {hubTx("加入")}
+
+
+ ) : null}
+ >
+ ) : null}
+
+
+
+
+
+
+
+
{hubTx("同频 · 见面 · 共创")}
+
+
+
{hubTx("认识人")}
+
+ {t.joinCommunity}
+
+ {hubTx("约会")}
+ {hubTx("语音厅")}
+ {hubTx("大家聊天")}
+
+
+
{hubTx("见面")}
+ {hubTx("城市")}
+ {hubTx("找搭子")}
+ {hubTx("共创")}
+ {hubTx("招聘")}
+
+
+
{hubTx("更多")}
+ {hubTx("咖啡聊")}
+ {hubTx("年度")}
+ {hubTx("门户")}
+ {hubTx("导航")}
+ {hubTx("小册")}
+ {hubTx("博客")}
+
+
+
+
+
+ © {new Date().getFullYear()} nomadro · {hubTx("游民社区")}
+
+
+
+
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeCoffeeEntry.tsx b/src/modules/hub/components/HomeCoffeeEntry.tsx
new file mode 100644
index 0000000..952625a
--- /dev/null
+++ b/src/modules/hub/components/HomeCoffeeEntry.tsx
@@ -0,0 +1,175 @@
+"use client";
+
+import { useEffect, useMemo, useState } from "react";
+import Link from "next/link";
+import { ArrowUpRight, Coffee, MapPin } from "lucide-react";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { HUB_CITIES } from "@hub/lib/cities";
+import { HUB_CN_FEATURED_CITY_IDS, resolveSocialCities } from "@hub/geo";
+import { prefetchCityCopy, txCity } from "@hub/lib/localizeEntity";
+import { useHubAudienceLane } from "@hub/lib/useHubAudience";
+import { isHubCnOnly } from "@hub/lib/hubCnLock";
+import { useSocialConfig } from "./HubExperience";
+import SectionSpark from "./SectionSpark";
+import HubAvatar from "./HubAvatar";
+
+const HOST = {
+ name: "小雨",
+ city: "成都",
+ cityId: "chengdu",
+ // Real face crop — never dicebear/initials on home modules
+ avatar:
+ "https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=400&h=400&q=80&crop=faces",
+};
+
+const INTL_RAIL_IDS = [
+ "chengdu",
+ "dali",
+ "shanghai",
+ "shenzhen",
+ "hangzhou",
+];
+
+export default function HomeCoffeeEntry({
+ inPage = false,
+}: {
+ inPage?: boolean;
+}) {
+ const { cnOnly } = useHubI18n();
+ const audience = useHubAudienceLane();
+ const hubConfig = useSocialConfig();
+ const cnMode = cnOnly || isHubCnOnly(hubConfig) || audience === "cn";
+
+ const cities = useMemo(() => {
+ if (cnMode) {
+ const pool = resolveSocialCities({
+ geo: hubConfig.copy.hubGeo,
+ audience,
+ cnOnly: true,
+ });
+ const featured = [...HUB_CN_FEATURED_CITY_IDS]
+ .map((id) => pool.find((c) => c.id === id))
+ .filter(Boolean) as typeof HUB_CITIES;
+ if (featured.length) return featured.slice(0, 6);
+ return pool.slice(0, 6);
+ }
+ return INTL_RAIL_IDS.map((id) => HUB_CITIES.find((c) => c.id === id)).filter(
+ Boolean,
+ ) as typeof HUB_CITIES;
+ }, [cnMode, hubConfig.copy.hubGeo, audience]);
+ const [cityId, setCityId] = useState(cities[0]?.id || "chengdu");
+ const active = cities.find((c) => c.id === cityId) || cities[0];
+ const activeDisplay = active ? txCity(active) : null;
+
+ useEffect(() => {
+ if (!cities.some((c) => c.id === cityId) && cities[0]) {
+ setCityId(cities[0].id);
+ }
+ }, [cities, cityId]);
+
+ useEffect(() => {
+ prefetchCityCopy();
+ }, []);
+
+ const bookHref = inPage
+ ? hubPath("/coffeechat/guest")
+ : hubPath("/coffeechat");
+
+ return (
+
+
+
+
+
+ {hubTx("咖啡聊")}
+
+
+
+ ☕
+
+ {hubTx("线下咖啡")}
+
+
+
+
+ {cities.map((c) => {
+ const d = txCity(c);
+ return (
+
setCityId(c.id)}
+ >
+ {c.emoji}
+ {d.name}
+
+ );
+ })}
+
+ {hubTx("更多城市")}
+
+
+
+ {active && activeDisplay ? (
+
+
+
+
+ {activeDisplay.country}
+
+
+ {active.emoji} {activeDisplay.name}
+
+
{activeDisplay.vibe}
+
+
+ {hubTx("城市")}
+
+
+ {hubTx("咖啡馆")}
+
+
+
+
+ ) : null}
+
+
+
+
+
+ {hubTx("主持人")} ·{" "}
+ {activeDisplay?.name || hubTx(HOST.city)}
+
+ {HOST.name}
+
+
+ {hubTx("预约")}
+
+
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeDigestOptIn.tsx b/src/modules/hub/components/HomeDigestOptIn.tsx
new file mode 100644
index 0000000..d50a8ba
--- /dev/null
+++ b/src/modules/hub/components/HomeDigestOptIn.tsx
@@ -0,0 +1,33 @@
+"use client";
+
+import { useState } from "react";
+import { Bell } from "lucide-react";
+import { hubTx } from "@hub/lib/hubTx";
+import { readHubSuperPrefs, writeHubSuperPrefs } from "@hub/lib/hubSuperPrefs";
+import { useHubHidden } from "@hub/lib/useHubHidden";
+
+export default function HomeDigestOptIn() {
+ const hidden = useHubHidden();
+ const [on, setOn] = useState(() => Boolean(readHubSuperPrefs().digestOptIn));
+ if (hidden.includes("digest")) return null;
+
+ return (
+
+
+
+ {
+ const next = !on;
+ setOn(next);
+ writeHubSuperPrefs({ digestOptIn: next });
+ }}
+ >
+ {on ? hubTx("摘要开") : hubTx("要摘要")}
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeDiscoverMore.tsx b/src/modules/hub/components/HomeDiscoverMore.tsx
new file mode 100644
index 0000000..2e070d4
--- /dev/null
+++ b/src/modules/hub/components/HomeDiscoverMore.tsx
@@ -0,0 +1,41 @@
+"use client";
+
+import { useState } from "react";
+import { ChevronDown } from "lucide-react";
+import { hubTx } from "@hub/lib/hubTx";
+import HomeMomentumMeter from "./HomeMomentumMeter";
+import HomeFeaturedCity from "./HomeFeaturedCity";
+import HomeRecentRail from "./HomeRecentRail";
+import HomeTagCloud from "./HomeTagCloud";
+import HomeShareInvite from "./HomeShareInvite";
+import HomeDigestOptIn from "./HomeDigestOptIn";
+import HomeNewJoiners from "./HomeNewJoiners";
+
+export default function HomeDiscoverMore() {
+ const [open, setOpen] = useState(false);
+
+ return (
+
+ setOpen((v) => !v)}
+ >
+ {open ? hubTx("收起") : hubTx("更多")}
+
+
+ {open ? (
+
+
+
+
+
+
+
+
+
+ ) : null}
+
+ );
+}
diff --git a/src/modules/hub/components/HomeFeaturedCity.tsx b/src/modules/hub/components/HomeFeaturedCity.tsx
new file mode 100644
index 0000000..d65cfd8
--- /dev/null
+++ b/src/modules/hub/components/HomeFeaturedCity.tsx
@@ -0,0 +1,43 @@
+"use client";
+
+import Link from "next/link";
+import { MapPin } from "lucide-react";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { useHubAudienceLane } from "@hub/lib/useHubAudience";
+import { isHubCnOnly } from "@hub/lib/hubCnLock";
+import { resolveSocialCities } from "@hub/geo";
+import { useSocialConfig } from "./HubExperience";
+
+export default function HomeFeaturedCity() {
+ const { cnOnly } = useHubI18n();
+ const audience = useHubAudienceLane();
+ const config = useSocialConfig();
+ if (config.copy.hubHiddenSections?.includes("featuredCity")) return null;
+
+ const cnMode = cnOnly || isHubCnOnly(config) || audience === "cn";
+ const ids =
+ config.copy.hubExperience?.featuredCityIds ||
+ config.copy.hubGeo?.featuredCityIds ||
+ [];
+ const pool = resolveSocialCities({
+ geo: config.copy.hubGeo,
+ audience,
+ cnOnly: cnMode,
+ });
+ const city =
+ pool.find((c) => ids.includes(c.id)) ||
+ pool.find((c) => c.country === "中国" && c.hot) ||
+ pool[0];
+ if (!city) return null;
+
+ return (
+
+
+
+ {hubTx(city.name)}
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeFocusToggle.tsx b/src/modules/hub/components/HomeFocusToggle.tsx
new file mode 100644
index 0000000..4a91150
--- /dev/null
+++ b/src/modules/hub/components/HomeFocusToggle.tsx
@@ -0,0 +1,33 @@
+"use client";
+
+import { useEffect, useState } from "react";
+import { Eye, EyeOff } from "lucide-react";
+import { hubTx } from "@hub/lib/hubTx";
+import { readHubSuperPrefs, writeHubSuperPrefs } from "@hub/lib/hubSuperPrefs";
+
+export default function HomeFocusToggle() {
+ const [on, setOn] = useState(false);
+ useEffect(() => {
+ const prefs = readHubSuperPrefs();
+ setOn(Boolean(prefs.focusMode));
+ document.documentElement.dataset.hubFocus = prefs.focusMode ? "1" : "0";
+ }, []);
+
+ return (
+ {
+ const next = !on;
+ setOn(next);
+ writeHubSuperPrefs({ focusMode: next });
+ document.documentElement.dataset.hubFocus = next ? "1" : "0";
+ }}
+ >
+ {on ? : }
+
+ );
+}
diff --git a/src/modules/hub/components/HomeIntentQuiz.tsx b/src/modules/hub/components/HomeIntentQuiz.tsx
new file mode 100644
index 0000000..06b2e63
--- /dev/null
+++ b/src/modules/hub/components/HomeIntentQuiz.tsx
@@ -0,0 +1,64 @@
+"use client";
+
+import { useState } from "react";
+import Link from "next/link";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { readHubSuperPrefs, writeHubSuperPrefs } from "@hub/lib/hubSuperPrefs";
+import { useHubHidden } from "@hub/lib/useHubHidden";
+
+const OPTIONS = [
+ { id: "people", label: "找人", href: "/people" },
+ { id: "date", label: "滑卡", href: "/date" },
+ { id: "coffee", label: "咖啡", href: "/coffeechat" },
+ { id: "create", label: "共创", href: "/ebook" },
+] as const;
+
+export default function HomeIntentQuiz() {
+ const hidden = useHubHidden();
+ const [picked, setPicked] = useState(
+ () => readHubSuperPrefs().intentAnswer || "",
+ );
+ const [editing, setEditing] = useState(!picked);
+ if (hidden.includes("intentQuiz")) return null;
+ const selected = OPTIONS.find((o) => o.id === picked);
+
+ if (selected && !editing) {
+ return (
+
+
+
+ {hubTx(selected.label)}
+
+ setEditing(true)}>
+ {hubTx("换")}
+
+
+
+ );
+ }
+
+ return (
+
+
+
+ {OPTIONS.map((o) => (
+ {
+ setPicked(o.id);
+ writeHubSuperPrefs({ intentAnswer: o.id });
+ setEditing(false);
+ }}
+ >
+ {hubTx(o.label)}
+
+ ))}
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeJumpRail.tsx b/src/modules/hub/components/HomeJumpRail.tsx
new file mode 100644
index 0000000..170d4dc
--- /dev/null
+++ b/src/modules/hub/components/HomeJumpRail.tsx
@@ -0,0 +1,49 @@
+"use client";
+
+import Link from "next/link";
+import {
+ ArrowLeftRight,
+ Coffee,
+ Heart,
+ Radio,
+ Users,
+} from "lucide-react";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useSocialConfig } from "./HubExperience";
+
+const JUMPS = [
+ { href: "/people", label: "找搭子", icon: Users, tone: "", hide: "people" },
+ { href: "/date", label: "滑卡", icon: Heart, tone: "coral", hide: "date" },
+ { href: "/meetup", label: "语音厅", icon: Radio, tone: "yellow", hide: "meetup" },
+ { href: "/coffeechat", label: "咖啡", icon: Coffee, tone: "amber", hide: "coffee" },
+ { href: "/skills", label: "技能", icon: ArrowLeftRight, tone: "", hide: "skills" },
+] as const;
+
+export default function HomeJumpRail() {
+ const config = useSocialConfig();
+ const hidden = config.copy.hubHiddenSections || [];
+ if (hidden.includes("jumpRail")) return null;
+ const items = JUMPS.filter((j) => !hidden.includes(j.hide));
+ if (!items.length) return null;
+
+ return (
+
+ {items.map((item) => {
+ const Icon = item.icon;
+ return (
+
+
+
+
+ {hubTx(item.label)}
+
+ );
+ })}
+
+ );
+}
diff --git a/src/modules/hub/components/HomeLivePulse.tsx b/src/modules/hub/components/HomeLivePulse.tsx
new file mode 100644
index 0000000..3346387
--- /dev/null
+++ b/src/modules/hub/components/HomeLivePulse.tsx
@@ -0,0 +1,58 @@
+"use client";
+
+import Link from "next/link";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useSocialPresence } from "@hub/lib/useSocialPresence";
+import { useSocialConfig } from "./HubExperience";
+import HubAvatar from "./HubAvatar";
+
+export default function HomeLivePulse() {
+ const config = useSocialConfig();
+ const snap = useSocialPresence(config);
+ const peers = snap.peers.slice(0, 6);
+ const online = Math.max(snap.online, peers.length);
+ const soft = snap.fromOffline;
+ if (config.copy.hubHiddenSections?.includes("livePulse")) return null;
+
+ return (
+
+
+
+
+
+ {online > 0
+ ? hubTx("{n} 在线").replace("{n}", String(online))
+ : soft
+ ? hubTx("连接中")
+ : hubTx("暂无人")}
+
+ {snap.cityOnline > 0 ? (
+
+ {hubTx("同城")} {snap.cityOnline}
+
+ ) : null}
+
+
+ {peers.map((p) => (
+
+ ))}
+
+
+
+ {hubTx("大家")}
+
+
+ {hubTx("群聊")}
+
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeMomentumMeter.tsx b/src/modules/hub/components/HomeMomentumMeter.tsx
new file mode 100644
index 0000000..f51f104
--- /dev/null
+++ b/src/modules/hub/components/HomeMomentumMeter.tsx
@@ -0,0 +1,54 @@
+"use client";
+
+import { useMemo, useSyncExternalStore } from "react";
+import { hubTx } from "@hub/lib/hubTx";
+import { calcStreak, readHubSuperPrefs } from "@hub/lib/hubSuperPrefs";
+import { useSocialPresence } from "@hub/lib/useSocialPresence";
+import { useSocialConfig } from "./HubExperience";
+import { useDiscoveryRoster } from "@hub/lib/discoveryRoster";
+import { useHubHidden } from "@hub/lib/useHubHidden";
+
+const CHANGE = "nomadro-hub-storage";
+
+function subscribe(cb: () => void) {
+ window.addEventListener(CHANGE, cb);
+ return () => window.removeEventListener(CHANGE, cb);
+}
+
+export default function HomeMomentumMeter() {
+ const config = useSocialConfig();
+ const hidden = useHubHidden();
+ const presence = useSocialPresence(config);
+ const roster = useDiscoveryRoster({ requireFace: true });
+ const prefsSnap = useSyncExternalStore(
+ subscribe,
+ () => JSON.stringify(readHubSuperPrefs()),
+ () => "{}",
+ );
+ const score = useMemo(() => {
+ const prefs = JSON.parse(prefsSnap) as ReturnType;
+ const streak = calcStreak(prefs.visitDays || []);
+ return Math.min(
+ 100,
+ Math.min(40, (presence.online || 0) * 2) +
+ Math.min(30, roster.length) +
+ Math.min(30, streak * 6),
+ );
+ }, [prefsSnap, presence.online, roster.length]);
+
+ if (hidden.includes("momentum")) return null;
+
+ return (
+
+
+
+ {hubTx("温度")}
+ {score}
+
+
+
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeMuteMenu.tsx b/src/modules/hub/components/HomeMuteMenu.tsx
new file mode 100644
index 0000000..4cb86af
--- /dev/null
+++ b/src/modules/hub/components/HomeMuteMenu.tsx
@@ -0,0 +1,58 @@
+"use client";
+
+import { useState, useSyncExternalStore } from "react";
+import { SlidersHorizontal } from "lucide-react";
+import { hubTx } from "@hub/lib/hubTx";
+import { readHubSuperPrefs, toggleMutedSection } from "@hub/lib/hubSuperPrefs";
+
+const CHANGE = "nomadro-hub-storage";
+const MUTEABLE = [
+ { id: "tagCloud", label: "标签" },
+ { id: "momentum", label: "温度" },
+ { id: "newJoiners", label: "在线" },
+ { id: "intentQuiz", label: "去向" },
+ { id: "digest", label: "摘要" },
+] as const;
+
+function subscribe(cb: () => void) {
+ window.addEventListener(CHANGE, cb);
+ return () => window.removeEventListener(CHANGE, cb);
+}
+
+export default function HomeMuteMenu() {
+ const [open, setOpen] = useState(false);
+ const mutedSnap = useSyncExternalStore(
+ subscribe,
+ () => JSON.stringify(readHubSuperPrefs().mutedSections || []),
+ () => "[]",
+ );
+ const muted = new Set(JSON.parse(mutedSnap) as string[]);
+
+ return (
+
+
setOpen((v) => !v)}
+ >
+
+
+ {open ? (
+
+ {MUTEABLE.map((m) => (
+
+ toggleMutedSection(m.id)}
+ />
+ {hubTx(m.label)}
+
+ ))}
+
+ ) : null}
+
+ );
+}
diff --git a/src/modules/hub/components/HomeNewJoiners.tsx b/src/modules/hub/components/HomeNewJoiners.tsx
new file mode 100644
index 0000000..9687c51
--- /dev/null
+++ b/src/modules/hub/components/HomeNewJoiners.tsx
@@ -0,0 +1,39 @@
+"use client";
+
+import Link from "next/link";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useSocialPresence } from "@hub/lib/useSocialPresence";
+import { useSocialConfig } from "./HubExperience";
+import { useHubHidden } from "@hub/lib/useHubHidden";
+import HubAvatar from "./HubAvatar";
+
+export default function HomeNewJoiners() {
+ const config = useSocialConfig();
+ const hidden = useHubHidden();
+ const snap = useSocialPresence(config);
+ if (hidden.includes("newJoiners")) return null;
+ const peers = snap.peers.slice(0, 5);
+ if (!peers.length) return null;
+
+ return (
+
+
+
+ {peers.map((p) => (
+
+ ))}
+
+
+ {hubTx("看人")}
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomePulseSound.tsx b/src/modules/hub/components/HomePulseSound.tsx
new file mode 100644
index 0000000..801326a
--- /dev/null
+++ b/src/modules/hub/components/HomePulseSound.tsx
@@ -0,0 +1,64 @@
+"use client";
+
+import { useEffect, useRef, useState } from "react";
+import { Volume2, VolumeX } from "lucide-react";
+import { hubTx } from "@hub/lib/hubTx";
+import { readHubSuperPrefs, writeHubSuperPrefs } from "@hub/lib/hubSuperPrefs";
+import { useSocialPresence } from "@hub/lib/useSocialPresence";
+import { useSocialConfig } from "./HubExperience";
+
+export default function HomePulseSound() {
+ const config = useSocialConfig();
+ const snap = useSocialPresence(config);
+ const [on, setOn] = useState(false);
+ const prev = useRef(0);
+
+ useEffect(() => {
+ setOn(Boolean(readHubSuperPrefs().pulseSound));
+ }, []);
+
+ useEffect(() => {
+ if (!on) {
+ prev.current = snap.online;
+ return;
+ }
+ if (prev.current && snap.online > prev.current) {
+ try {
+ const Ctx =
+ window.AudioContext ||
+ (window as unknown as { webkitAudioContext: typeof AudioContext })
+ .webkitAudioContext;
+ const ctx = new Ctx();
+ const o = ctx.createOscillator();
+ const g = ctx.createGain();
+ o.type = "sine";
+ o.frequency.value = 880;
+ g.gain.value = 0.03;
+ o.connect(g);
+ g.connect(ctx.destination);
+ o.start();
+ o.stop(ctx.currentTime + 0.08);
+ window.setTimeout(() => void ctx.close(), 200);
+ } catch {
+ /* ignore */
+ }
+ }
+ prev.current = snap.online;
+ }, [snap.online, on]);
+
+ return (
+ {
+ const next = !on;
+ setOn(next);
+ writeHubSuperPrefs({ pulseSound: next });
+ }}
+ >
+ {on ? : }
+
+ );
+}
diff --git a/src/modules/hub/components/HomeRecentRail.tsx b/src/modules/hub/components/HomeRecentRail.tsx
new file mode 100644
index 0000000..e227317
--- /dev/null
+++ b/src/modules/hub/components/HomeRecentRail.tsx
@@ -0,0 +1,38 @@
+"use client";
+
+import Link from "next/link";
+import { useSyncExternalStore } from "react";
+import { hubTx } from "@hub/lib/hubTx";
+import { readHubSuperPrefs } from "@hub/lib/hubSuperPrefs";
+import { useSocialConfig } from "./HubExperience";
+
+const CHANGE = "nomadro-hub-storage";
+
+function subscribe(cb: () => void) {
+ window.addEventListener(CHANGE, cb);
+ return () => window.removeEventListener(CHANGE, cb);
+}
+
+export default function HomeRecentRail() {
+ const config = useSocialConfig();
+ const snap = useSyncExternalStore(
+ subscribe,
+ () => JSON.stringify(readHubSuperPrefs().recentPaths || []),
+ () => "[]",
+ );
+ if (config.copy.hubHiddenSections?.includes("recentRail")) return null;
+ const items = JSON.parse(snap) as Array<{ path: string; label?: string }>;
+ if (!items.length) return null;
+
+ return (
+
+
+ {items.slice(0, 6).map((r) => (
+
+ {hubTx(r.label || r.path)}
+
+ ))}
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeShareInvite.tsx b/src/modules/hub/components/HomeShareInvite.tsx
new file mode 100644
index 0000000..29385bc
--- /dev/null
+++ b/src/modules/hub/components/HomeShareInvite.tsx
@@ -0,0 +1,36 @@
+"use client";
+
+import { useState } from "react";
+import { Link2 } from "lucide-react";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useSocialConfig } from "./HubExperience";
+
+export default function HomeShareInvite() {
+ const config = useSocialConfig();
+ const [ok, setOk] = useState(false);
+ if (config.copy.hubHiddenSections?.includes("shareInvite")) return null;
+
+ return (
+
+
+ {
+ const url = `${window.location.origin}${hubPath("/")}`;
+ try {
+ await navigator.clipboard.writeText(url);
+ setOk(true);
+ window.setTimeout(() => setOk(false), 1200);
+ } catch {
+ /* ignore */
+ }
+ }}
+ >
+ {ok ? hubTx("已复制") : hubTx("复制链接")}
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeSkillsPreview.tsx b/src/modules/hub/components/HomeSkillsPreview.tsx
new file mode 100644
index 0000000..f4b51cd
--- /dev/null
+++ b/src/modules/hub/components/HomeSkillsPreview.tsx
@@ -0,0 +1,139 @@
+"use client";
+
+import { useEffect, useState } from "react";
+import Link from "next/link";
+import { ArrowLeftRight, ArrowUpRight } from "lucide-react";
+import { hubApi } from "@hub/lib/api";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import SectionSpark from "./SectionSpark";
+
+type SkillItem = {
+ id: string;
+ author: string;
+ city: string;
+ offer: string;
+ want: string;
+};
+
+const SEED: SkillItem[] = [
+ {
+ id: "seed-1",
+ author: "小雨",
+ city: "成都",
+ offer: "产品文档梳理",
+ want: "帮拍短视频 / 剪辑",
+ },
+ {
+ id: "seed-2",
+ author: "阿Ken",
+ city: "大理",
+ offer: "帮看代码 / 架构 review",
+ want: "旅居签证经验咨询",
+ },
+ {
+ id: "seed-3",
+ author: "Lin",
+ city: "杭州",
+ offer: "小红书运营陪跑",
+ want: "摄影设备借用一天",
+ },
+ {
+ id: "seed-4",
+ author: "阿杰",
+ city: "线上",
+ offer: "简历点评",
+ want: "短视频脚本交换",
+ },
+];
+
+export default function HomeSkillsPreview({
+ /** When true, render on /team (找搭子) instead of the homepage. */
+ inPage = false,
+}: {
+ inPage?: boolean;
+}) {
+ useHubI18n();
+ const [items, setItems] = useState(SEED);
+
+ useEffect(() => {
+ let cancelled = false;
+ void hubApi
+ .listSkills({ limit: 4 })
+ .then((res) => {
+ if (cancelled) return;
+ const live = res?.items || [];
+ if (live.length) {
+ setItems(
+ live.slice(0, 4).map((s) => ({
+ id: s.id,
+ author: s.author,
+ city: s.city,
+ offer: s.offer,
+ want: s.want,
+ })),
+ );
+ }
+ })
+ .catch(() => {
+ /* keep SEED */
+ });
+ return () => {
+ cancelled = true;
+ };
+ }, []);
+
+ return (
+
+
+
+
+
+ {hubTx("技能板")}
+ {hubTx("互换互助")}
+
+
+
+ 🔄
+
+ {hubTx("技能交换")}
+
+
+ {hubTx("写清楚你能给什么、想换什么——同城咖啡馆或线上都行。")}
+
+
+
+
+ {items.map((item) => (
+
+
{hubTx(item.city)}
+
{item.author}
+
+ {hubTx("能提供")} {hubTx(item.offer)}
+
+
+ {hubTx("想换到")} {hubTx(item.want)}
+
+
+ ))}
+
+
+
+
+
{hubTx("去发互换")}
+
+
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeStatusStrip.tsx b/src/modules/hub/components/HomeStatusStrip.tsx
new file mode 100644
index 0000000..40fb56f
--- /dev/null
+++ b/src/modules/hub/components/HomeStatusStrip.tsx
@@ -0,0 +1,178 @@
+"use client";
+
+import Link from "next/link";
+import { useMemo, useSyncExternalStore } from "react";
+import { ArrowUpRight, Camera, Check, MapPin, UserRound } from "lucide-react";
+import {
+ getCommunityUnlockServerSnapshot,
+ getCommunityUnlockSnapshot,
+ getLivenessServerSnapshot,
+ getLivenessSnapshot,
+ subscribeLivenessState,
+ type LivenessState,
+} from "@hub/lib/livenessGate";
+import { loadJson } from "@hub/lib/storage";
+import type { HubRosterProfile } from "@hub/lib/types";
+import { openSocialJoinModal } from "@hub/lib/joinModal";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import HubAvatar from "./HubAvatar";
+
+const CHANGE = "nomadro-hub-storage";
+
+function subscribeProfile(cb: () => void) {
+ window.addEventListener(CHANGE, cb);
+ window.addEventListener("storage", cb);
+ return () => {
+ window.removeEventListener(CHANGE, cb);
+ window.removeEventListener("storage", cb);
+ };
+}
+
+const EMPTY_PROFILE: HubRosterProfile = {
+ name: "",
+ title: "",
+ city: "",
+ phone: "",
+ linktree: "",
+ skills: "",
+ bio: "",
+ avatar: "",
+ intents: "",
+ availability: "",
+ status: "",
+ lookingFor: "",
+ gender: "",
+};
+
+export default function HomeStatusStrip() {
+ const liveSnap = useSyncExternalStore(
+ subscribeLivenessState,
+ getLivenessSnapshot,
+ getLivenessServerSnapshot,
+ );
+ const profileSnap = useSyncExternalStore(
+ subscribeProfile,
+ () => JSON.stringify(loadJson("roster", EMPTY_PROFILE)),
+ () => JSON.stringify(EMPTY_PROFILE),
+ );
+
+ const state = useMemo(
+ () => JSON.parse(liveSnap) as LivenessState,
+ [liveSnap],
+ );
+ const profile = useMemo(() => {
+ const raw = JSON.parse(profileSnap) as Partial;
+ return { ...EMPTY_PROFILE, ...raw };
+ }, [profileSnap]);
+
+ const name = profile.name.trim() || hubTx("游民");
+ const city = profile.city.trim() || hubTx("城市待填");
+ const avatar = (profile.avatar || "").trim();
+ const faceOk = state.faceOk;
+ const liveOk = state.livenessStatus === "verified";
+ const livePending = state.livenessStatus === "pending";
+
+ let nextHref: string | null = null;
+ let nextLabel = hubTx("完善");
+ let nextHint = hubTx("上传头像");
+ let nextOpensJoin = true;
+
+ if (!faceOk) {
+ nextHint = hubTx("上传头像");
+ } else if (!liveOk) {
+ nextHint = livePending ? hubTx("审核中") : hubTx("拍自拍");
+ } else {
+ nextHref = hubPath("/coffeechat");
+ nextLabel = hubTx("咖啡聊");
+ nextHint = hubTx("资料齐全");
+ nextOpensJoin = false;
+ }
+
+ const secondaryHref = liveOk
+ ? hubPath("/date")
+ : hubPath("/roster");
+ const secondaryLabel = liveOk
+ ? hubTx("滑卡")
+ : hubTx("介绍");
+
+ const avatarSrc =
+ avatar ||
+ `https://api.dicebear.com/7.x/initials/svg?seed=${encodeURIComponent(name)}`;
+
+ return (
+
+
+
+
+
+
+ {name}
+
+ {city}
+
+
+
+
+ {faceOk ? : }
+ {hubTx("头像")}
+
+
+ {liveOk ? : }
+ {hubTx("自拍")}
+
+
+
{nextHint}
+
+ {nextOpensJoin || !nextHref ? (
+
openSocialJoinModal({ reason: "gate" })}
+ >
+ {nextLabel}
+
+ ) : (
+
+ {nextLabel}
+
+ )}
+
+ {secondaryLabel}
+
+
+
+
+ );
+}
+
+/** Soft-gate helper for home CTAs (date / coffee / map). */
+export function useHomeLivenessGate(): {
+ faceOk: boolean;
+ liveOk: boolean;
+ openVerify: () => void;
+} {
+ const liveSnap = useSyncExternalStore(
+ subscribeLivenessState,
+ getLivenessSnapshot,
+ getLivenessServerSnapshot,
+ );
+ const unlockSnap = useSyncExternalStore(
+ subscribeLivenessState,
+ getCommunityUnlockSnapshot,
+ getCommunityUnlockServerSnapshot,
+ );
+ const state = JSON.parse(liveSnap) as LivenessState;
+ return {
+ faceOk: state.faceOk,
+ liveOk: unlockSnap === "1",
+ openVerify: () => openSocialJoinModal({ reason: "gate" }),
+ };
+}
diff --git a/src/modules/hub/components/HomeSuperToolbar.tsx b/src/modules/hub/components/HomeSuperToolbar.tsx
new file mode 100644
index 0000000..5b11465
--- /dev/null
+++ b/src/modules/hub/components/HomeSuperToolbar.tsx
@@ -0,0 +1,26 @@
+"use client";
+
+import HomeFocusToggle from "./HomeFocusToggle";
+import HomeMuteMenu from "./HomeMuteMenu";
+import HomePulseSound from "./HomePulseSound";
+import { hubTx } from "@hub/lib/hubTx";
+
+/** 首页右上工具条:专注 / 提示音 / 本机偏好 */
+export default function HomeSuperToolbar() {
+ return (
+
+
+
+
+
+ window.dispatchEvent(new CustomEvent("nomadro-hub-shortcuts"))
+ }
+ >
+ ?
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeTagCloud.tsx b/src/modules/hub/components/HomeTagCloud.tsx
new file mode 100644
index 0000000..8330280
--- /dev/null
+++ b/src/modules/hub/components/HomeTagCloud.tsx
@@ -0,0 +1,43 @@
+"use client";
+
+import Link from "next/link";
+import { useMemo } from "react";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useDiscoveryRoster } from "@hub/lib/discoveryRoster";
+import { useHubHidden } from "@hub/lib/useHubHidden";
+
+export default function HomeTagCloud() {
+ const hidden = useHubHidden();
+ const roster = useDiscoveryRoster({ requireFace: true });
+ const tags = useMemo(() => {
+ const counts = new Map();
+ for (const m of roster) {
+ for (const t of m.tags || []) {
+ const key = String(t || "").trim();
+ if (!key) continue;
+ counts.set(key, (counts.get(key) || 0) + 1);
+ }
+ }
+ return [...counts.entries()].sort((a, b) => b[1] - a[1]).slice(0, 10);
+ }, [roster]);
+
+ if (hidden.includes("tagCloud") || !tags.length) return null;
+
+ return (
+
+
+ {tags.map(([tag, n]) => (
+
+ {hubTx(tag)}
+ {n}
+
+ ))}
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeTodayActions.tsx b/src/modules/hub/components/HomeTodayActions.tsx
new file mode 100644
index 0000000..2126b8c
--- /dev/null
+++ b/src/modules/hub/components/HomeTodayActions.tsx
@@ -0,0 +1,56 @@
+"use client";
+
+import Link from "next/link";
+import { CheckCircle2, Circle } from "lucide-react";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHomeLivenessGate } from "./HomeStatusStrip";
+import {
+ getSocialSession,
+ subscribeSocialSession,
+} from "@hub/lib/hubSession";
+import { useSyncExternalStore } from "react";
+
+export default function HomeTodayActions() {
+ const { liveOk, faceOk } = useHomeLivenessGate();
+ const sessionSnap = useSyncExternalStore(
+ subscribeSocialSession,
+ () => JSON.stringify(getSocialSession()),
+ () => "null",
+ );
+ const loggedIn = Boolean(
+ (JSON.parse(sessionSnap) as ReturnType)?.email,
+ );
+
+ const core = [
+ { done: loggedIn, label: hubTx("登录"), href: hubPath("/join") },
+ { done: faceOk, label: hubTx("头像"), href: hubPath("/roster") },
+ { done: liveOk, label: hubTx("自拍"), href: hubPath("/roster") },
+ ];
+ if (core.every((s) => s.done)) {
+ return (
+
+
+
+ {hubTx("去滑卡")}
+
+
+
+ );
+ }
+
+ return (
+
+
+
+ {core.map((s) => (
+
+ {s.done ? : }
+ {s.label}
+
+ ))}
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeTonightCard.tsx b/src/modules/hub/components/HomeTonightCard.tsx
new file mode 100644
index 0000000..a626d47
--- /dev/null
+++ b/src/modules/hub/components/HomeTonightCard.tsx
@@ -0,0 +1,73 @@
+"use client";
+
+import Link from "next/link";
+import { useMemo, useSyncExternalStore } from "react";
+import { ArrowUpRight, Bookmark, Radio } from "lucide-react";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { resolveSocialCatalog } from "@hub/lib/resolveCatalog";
+import {
+ readHubSuperPrefs,
+ toggleMeetupBookmark,
+} from "@hub/lib/hubSuperPrefs";
+import { useSocialConfig } from "./HubExperience";
+
+const CHANGE = "nomadro-hub-storage";
+
+function subscribe(cb: () => void) {
+ window.addEventListener(CHANGE, cb);
+ return () => window.removeEventListener(CHANGE, cb);
+}
+
+/** 下一场语音厅高亮 + 本机收藏 */
+export default function HomeTonightCard() {
+ const config = useSocialConfig();
+ const meetup = useMemo(() => {
+ const catalog = resolveSocialCatalog(config.copy.hubCatalogs);
+ return catalog.meetups[0] || null;
+ }, [config.copy.hubCatalogs]);
+ const bookmarksSnap = useSyncExternalStore(
+ subscribe,
+ () => JSON.stringify(readHubSuperPrefs().bookmarkedMeetupIds || []),
+ () => "[]",
+ );
+ if (!meetup) return null;
+ if (config.copy.hubHiddenSections?.includes("tonight")) return null;
+ const bookmarked = (JSON.parse(bookmarksSnap) as string[]).includes(
+ meetup.id,
+ );
+
+ return (
+
+
+
+
+ {hubTx("下一场")}
+
+
+
{hubTx(meetup.title)}
+
+ {meetup.city === "Online" ? hubTx("语音厅") : hubTx(meetup.city)} ·{" "}
+ {meetup.date} · {meetup.time}
+
+
+
+
+
+
+
toggleMeetupBookmark(meetup.id)}
+ >
+
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HomeWelcomeBack.tsx b/src/modules/hub/components/HomeWelcomeBack.tsx
new file mode 100644
index 0000000..0545090
--- /dev/null
+++ b/src/modules/hub/components/HomeWelcomeBack.tsx
@@ -0,0 +1,45 @@
+"use client";
+
+import { useEffect, useState } from "react";
+import {
+ calcStreak,
+ readHubSuperPrefs,
+ touchVisitStreak,
+ writeHubSuperPrefs,
+} from "@hub/lib/hubSuperPrefs";
+import { hubTx } from "@hub/lib/hubTx";
+import { useSocialConfig } from "./HubExperience";
+
+export default function HomeWelcomeBack() {
+ const config = useSocialConfig();
+ const [streak, setStreak] = useState(0);
+ const [show, setShow] = useState(false);
+
+ useEffect(() => {
+ if (config.copy.hubHiddenSections?.includes("welcomeBack")) return;
+ const prefs = readHubSuperPrefs();
+ const n = touchVisitStreak();
+ setStreak(n || calcStreak(prefs.visitDays || []));
+ const last = prefs.welcomeSeenAt || 0;
+ if (Date.now() - last > 6 * 60 * 60 * 1000) {
+ setShow(true);
+ writeHubSuperPrefs({ welcomeSeenAt: Date.now() });
+ }
+ }, [config.copy.hubHiddenSections]);
+
+ if (!show || streak < 2) return null;
+ if (config.copy.hubHiddenSections?.includes("welcomeBack")) return null;
+
+ return (
+
+
+
+ {hubTx("连续 {n} 天").replace("{n}", String(streak))}
+
+ setShow(false)}>
+ ×
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HubAutoTranslate.tsx b/src/modules/hub/components/HubAutoTranslate.tsx
new file mode 100644
index 0000000..f5619ba
--- /dev/null
+++ b/src/modules/hub/components/HubAutoTranslate.tsx
@@ -0,0 +1,10 @@
+"use client";
+
+/**
+ * DOM auto-translate disabled — it raced React i18n and corrupted the
+ * language (overlapping labels) + mixed EN/JA chrome.
+ * Translation now goes through hubTx / hubTxDeep only.
+ */
+export default function HubAutoTranslate() {
+ return null;
+}
diff --git a/src/modules/hub/components/HubAvatar.tsx b/src/modules/hub/components/HubAvatar.tsx
new file mode 100644
index 0000000..d78e7b1
--- /dev/null
+++ b/src/modules/hub/components/HubAvatar.tsx
@@ -0,0 +1,84 @@
+"use client";
+
+import Image from "next/image";
+
+const PLACEHOLDER = "/icons/nomadro.webp";
+
+/**
+ * Public faces: only render when faceOk === true.
+ * Self/account/studio: pass allowPlaceholder (may show empty → brand mark).
+ * Never paint no-face album shots or nomadro.webp as a "person" on public surfaces.
+ */
+export default function HubAvatar({
+ src,
+ size,
+ lazy = false,
+ faceOk,
+ allowPlaceholder = false,
+}: {
+ src: string;
+ size: number;
+ lazy?: boolean;
+ /** Public: must be true. Omitted/false → nothing (unless allowPlaceholder). */
+ faceOk?: boolean;
+ /** Account / studio / own chrome only. */
+ allowPlaceholder?: boolean;
+}) {
+ if (!allowPlaceholder && faceOk !== true) return null;
+
+ const url = (src || "").trim();
+ if (!url && !allowPlaceholder) return null;
+ // Public: never treat brand logo / data URI as a face
+ if (
+ !allowPlaceholder &&
+ (url.includes("nomadro.webp") || url.startsWith("data:"))
+ ) {
+ return null;
+ }
+
+ if (
+ !url ||
+ url.startsWith("/api/") ||
+ url.startsWith("blob:") ||
+ url.startsWith("data:")
+ ) {
+ return (
+ // eslint-disable-next-line @next/next/no-img-element
+ {
+ const img = event.currentTarget;
+ if (!allowPlaceholder) {
+ img.style.display = "none";
+ return;
+ }
+ if (!img.src.endsWith(PLACEHOLDER)) img.src = PLACEHOLDER;
+ }}
+ />
+ );
+ }
+ return (
+ {
+ const img = event.currentTarget;
+ if (!allowPlaceholder) {
+ img.style.display = "none";
+ return;
+ }
+ if (!img.src.endsWith(PLACEHOLDER)) img.src = PLACEHOLDER;
+ }}
+ />
+ );
+}
diff --git a/src/modules/hub/components/HubBrandLogo.tsx b/src/modules/hub/components/HubBrandLogo.tsx
new file mode 100644
index 0000000..e1b6ad2
--- /dev/null
+++ b/src/modules/hub/components/HubBrandLogo.tsx
@@ -0,0 +1,74 @@
+"use client";
+
+import Link from "next/link";
+import { useId } from "react";
+
+/** Align with portal topbar mark on nomadro.cn */
+export function NomadroMark({ className = "" }: { className?: string }) {
+ const gid = useId().replace(/:/g, "");
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
+
+export default function HubBrandLogo({
+ /** 与门户 / 导航 / VIP 一致:点 logo 回站点首页 */
+ href = "/",
+ section,
+ onClick,
+}: {
+ href?: string;
+ section?: string;
+ onClick?: () => void;
+}) {
+ return (
+
+
+
+ nomadro
+ {section ? (
+ <>
+
+ ·
+
+ {section}
+ >
+ ) : null}
+
+
+ );
+}
diff --git a/src/modules/hub/components/HubCommandPalette.tsx b/src/modules/hub/components/HubCommandPalette.tsx
new file mode 100644
index 0000000..7bd526f
--- /dev/null
+++ b/src/modules/hub/components/HubCommandPalette.tsx
@@ -0,0 +1,86 @@
+"use client";
+
+import { useEffect, useMemo, useState } from "react";
+import { useRouter } from "next/navigation";
+import { Search } from "lucide-react";
+import { filterHubCommands } from "@hub/lib/hubCommandItems";
+import { pushRecentPath } from "@hub/lib/hubSuperPrefs";
+import { hubTx } from "@hub/lib/hubTx";
+
+/** ⌘K / Ctrl+K 全局跳转 */
+export default function HubCommandPalette() {
+ const router = useRouter();
+ const [open, setOpen] = useState(false);
+ const [q, setQ] = useState("");
+ const items = useMemo(() => filterHubCommands(q).slice(0, 10), [q]);
+
+ useEffect(() => {
+ const onKey = (e: KeyboardEvent) => {
+ if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k") {
+ e.preventDefault();
+ setOpen((v) => !v);
+ setQ("");
+ }
+ if (e.key === "Escape") setOpen(false);
+ if (e.key === "?" && !e.metaKey && !e.ctrlKey && !e.altKey) {
+ const tag = (e.target as HTMLElement)?.tagName;
+ if (tag === "INPUT" || tag === "TEXTAREA") return;
+ window.dispatchEvent(new CustomEvent("nomadro-hub-shortcuts"));
+ }
+ };
+ window.addEventListener("keydown", onKey);
+ return () => window.removeEventListener("keydown", onKey);
+ }, []);
+
+ if (!open) return null;
+
+ return (
+ setOpen(false)}
+ >
+
e.stopPropagation()}>
+
+
+ setQ(e.target.value)}
+ placeholder={hubTx("搜索页面、功能…")}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" && items[0]) {
+ pushRecentPath(items[0].href, items[0].label);
+ router.push(items[0].href);
+ setOpen(false);
+ }
+ }}
+ />
+ ⌘K
+
+
+ {items.map((item) => (
+
+ {
+ pushRecentPath(item.href, item.label);
+ router.push(item.href);
+ setOpen(false);
+ }}
+ >
+ {hubTx(item.label)}
+ {hubTx(item.hint)}
+
+
+ ))}
+ {!items.length ? (
+ {hubTx("没有匹配的入口")}
+ ) : null}
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HubExperience.tsx b/src/modules/hub/components/HubExperience.tsx
new file mode 100644
index 0000000..0cb58f2
--- /dev/null
+++ b/src/modules/hub/components/HubExperience.tsx
@@ -0,0 +1,199 @@
+"use client";
+
+import {
+ createContext,
+ useContext,
+ useEffect,
+ useMemo,
+ useRef,
+ type ReactNode,
+} from "react";
+import { useLocalState } from "@hub/lib/useLocalState";
+import { useRemoteConfig } from "~/lib/use-remote-config";
+import { DEFAULT_REMOTE_CONFIG } from "~/lib/remote-config";
+import { aliasHubCopy } from "@hub/lib/aliasHubCopy";
+import { localizeSocialConfig } from "@hub/lib/localizeConfig";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { warmTranslationCache } from "@hub/lib/translateBus";
+import { HUB_PHRASES_EN } from "@hub/lib/phrases";
+import HubSkinDebugBall from "./HubSkinDebugBall";
+
+const HubConfigContext = createContext(DEFAULT_REMOTE_CONFIG);
+export const useSocialConfig = () => useContext(HubConfigContext);
+
+function Constellation({ active }: { active: boolean }) {
+ const canvasRef = useRef(null);
+ useEffect(() => {
+ const canvas = canvasRef.current;
+ const context = canvas?.getContext("2d");
+ if (!canvas || !context || !active) return;
+ const media = matchMedia("(prefers-reduced-motion: reduce)");
+ let frame = 0,
+ width = 0,
+ height = 0,
+ last = 0;
+ let pointer = { x: -1000, y: -1000 };
+ let points: {
+ x: number;
+ y: number;
+ vx: number;
+ vy: number;
+ r: number;
+ color: string;
+ }[] = [];
+ const resize = () => {
+ width = innerWidth;
+ height = innerHeight;
+ const ratio = Math.min(devicePixelRatio || 1, 1.5);
+ canvas.width = width * ratio;
+ canvas.height = height * ratio;
+ context.setTransform(ratio, 0, 0, ratio, 0, 0);
+ points = Array.from({ length: width < 700 ? 28 : 52 }, (_, i) => ({
+ x: Math.random() * width,
+ y: Math.random() * height,
+ vx: (Math.random() - 0.5) * 0.28,
+ vy: (Math.random() - 0.5) * 0.28,
+ r: 0.9 + Math.random() * 1.4,
+ color: ["78,205,196", "255,107,107", "255,230,109"][i % 3],
+ }));
+ };
+ const draw = (time: number) => {
+ if (document.hidden || media.matches) return;
+ const delta = Math.min((time - last) / 16.67 || 1, 2);
+ last = time;
+ context.clearRect(0, 0, width, height);
+ points.forEach((p, index) => {
+ p.x = (p.x + p.vx * delta + width) % width;
+ p.y = (p.y + p.vy * delta + height) % height;
+ const near = Math.hypot(pointer.x - p.x, pointer.y - p.y) < 240;
+ context.beginPath();
+ context.arc(p.x, p.y, p.r, 0, Math.PI * 2);
+ context.fillStyle = `rgba(${p.color},${near ? 0.55 : 0.28})`;
+ context.fill();
+ if (near) {
+ context.beginPath();
+ context.arc(p.x, p.y, p.r + 4, 0, Math.PI * 2);
+ context.fillStyle = `rgba(${p.color},0.1)`;
+ context.fill();
+ }
+ if (width > 700)
+ points.slice(index + 1).forEach((q) => {
+ const distance = Math.hypot(q.x - p.x, q.y - p.y);
+ if (distance > 140) return;
+ context.beginPath();
+ context.moveTo(p.x, p.y);
+ context.lineTo(q.x, q.y);
+ context.strokeStyle = `rgba(78,205,196,${(1 - distance / 140) * 0.16})`;
+ context.lineWidth = 1.05;
+ context.stroke();
+ });
+ });
+ frame = requestAnimationFrame(draw);
+ };
+ const restart = () => {
+ cancelAnimationFrame(frame);
+ last = 0;
+ context.clearRect(0, 0, width, height);
+ if (!document.hidden && !media.matches)
+ frame = requestAnimationFrame(draw);
+ };
+ const move = (event: PointerEvent) => {
+ if (event.pointerType === "mouse")
+ pointer = { x: event.clientX, y: event.clientY };
+ };
+ resize();
+ restart();
+ addEventListener("resize", resize);
+ addEventListener("pointermove", move, { passive: true });
+ document.addEventListener("visibilitychange", restart);
+ media.addEventListener("change", restart);
+ return () => {
+ cancelAnimationFrame(frame);
+ removeEventListener("resize", resize);
+ removeEventListener("pointermove", move);
+ document.removeEventListener("visibilitychange", restart);
+ media.removeEventListener("change", restart);
+ context.clearRect(0, 0, width, height);
+ };
+ }, [active]);
+ return (
+
+ );
+}
+
+export default function HubExperience({
+ children,
+}: {
+ children: ReactNode;
+}) {
+ const { config } = useRemoteConfig();
+ const { portalLocale, cnOnly } = useHubI18n();
+ const localized = useMemo(
+ () => localizeSocialConfig(aliasHubCopy(config), portalLocale),
+ [config, portalLocale],
+ );
+ useEffect(() => {
+ // 中文锁开启时不预热英译缓存(多语言能力暂时屏蔽,代码保留)
+ if (cnOnly) return;
+ warmTranslationCache(HUB_PHRASES_EN, "en");
+ }, [cnOnly]);
+ useEffect(() => {
+ // Prefetch city seed strings whenever UI language changes.
+ void import("@hub/lib/localizeEntity").then((m) => m.prefetchCityCopy());
+ }, [portalLocale]);
+ const [immersive] = useLocalState("immersive-fx-v3", true);
+ const rootRef = useRef(null);
+ useEffect(() => {
+ const root = rootRef.current;
+ if (!root || !immersive) return;
+ let frame = 0;
+ const move = (event: PointerEvent) => {
+ if (
+ event.pointerType !== "mouse" ||
+ matchMedia("(prefers-reduced-motion: reduce)").matches
+ )
+ return;
+ cancelAnimationFrame(frame);
+ frame = requestAnimationFrame(() => {
+ root.style.setProperty("--pointer-x", `${event.clientX}px`);
+ root.style.setProperty("--pointer-y", `${event.clientY}px`);
+ const card = (event.target as Element).closest(
+ ".social-card, .social-list-item, .social-panel, .social-member-card",
+ );
+ if (card) {
+ const rect = card.getBoundingClientRect();
+ card.style.setProperty("--spot-x", `${event.clientX - rect.left}px`);
+ card.style.setProperty("--spot-y", `${event.clientY - rect.top}px`);
+ }
+ });
+ };
+ root.addEventListener("pointermove", move, { passive: true });
+ return () => {
+ cancelAnimationFrame(frame);
+ root.removeEventListener("pointermove", move);
+ };
+ }, [immersive]);
+ return (
+
+
+
+
+
+
+
+
+
{children}
+
+
+ );
+}
diff --git a/src/modules/hub/components/HubFeedbackMate.css b/src/modules/hub/components/HubFeedbackMate.css
new file mode 100644
index 0000000..1dbf7ee
--- /dev/null
+++ b/src/modules/hub/components/HubFeedbackMate.css
@@ -0,0 +1,478 @@
+.sfm-root {
+ position: fixed;
+ right: max(16px, env(safe-area-inset-right, 0px));
+ bottom: max(20px, env(safe-area-inset-bottom, 0px));
+ z-index: 9200;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-end;
+ gap: 10px;
+ pointer-events: none;
+}
+
+.sfm-root > * {
+ pointer-events: auto;
+}
+
+.sfm-hint {
+ margin: 0;
+ padding: 8px 12px;
+ border-radius: 999px;
+ border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent);
+ background: color-mix(in srgb, #0c0c0f 82%, #f59e0b 8%);
+ color: #fde68a;
+ font-size: 12px;
+ font-weight: 600;
+ letter-spacing: 0.02em;
+ box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
+ animation: sfm-hint-in 0.45s ease both, sfm-hint-float 2.8s ease-in-out infinite;
+ white-space: nowrap;
+}
+
+.sfm-orb {
+ position: relative;
+ width: 64px;
+ height: 64px;
+ border-radius: 50%;
+ border: 1px solid color-mix(in srgb, #f59e0b 42%, rgba(255, 255, 255, 0.12));
+ background:
+ radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.35), transparent 42%),
+ linear-gradient(145deg, #1a1612 0%, #0c0c0f 55%, #17120e 100%);
+ box-shadow:
+ 0 14px 34px rgba(0, 0, 0, 0.42),
+ 0 0 0 1px rgba(245, 158, 11, 0.12),
+ inset 0 1px 0 rgba(255, 255, 255, 0.12);
+ cursor: pointer;
+ display: grid;
+ place-items: center;
+ overflow: visible;
+ animation: sfm-bob 3.4s ease-in-out infinite;
+ transition: transform 0.22s ease, box-shadow 0.22s ease;
+}
+
+.sfm-orb:hover,
+.sfm-orb:focus-visible {
+ transform: translateY(-3px) scale(1.06);
+ box-shadow:
+ 0 18px 40px rgba(0, 0, 0, 0.48),
+ 0 0 0 1px rgba(245, 158, 11, 0.28),
+ 0 0 28px rgba(245, 158, 11, 0.22);
+ outline: none;
+}
+
+.sfm-orb:active {
+ transform: scale(0.96);
+}
+
+.sfm-ring {
+ position: absolute;
+ inset: -6px;
+ border-radius: 50%;
+ border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent);
+ animation: sfm-pulse 2.6s ease-out infinite;
+ pointer-events: none;
+}
+
+.sfm-glow {
+ position: absolute;
+ inset: 8px;
+ border-radius: 50%;
+ background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 70%);
+ filter: blur(6px);
+ pointer-events: none;
+}
+
+.sfm-face {
+ position: relative;
+ z-index: 1;
+ filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
+}
+
+.sfm-dot {
+ position: absolute;
+ top: 4px;
+ right: 6px;
+ width: 18px;
+ height: 18px;
+ border-radius: 50%;
+ display: grid;
+ place-items: center;
+ font-size: 10px;
+ color: #0c0c0f;
+ background: linear-gradient(135deg, #fbbf24, #f59e0b);
+ box-shadow: 0 4px 10px rgba(245, 158, 11, 0.45);
+ animation: sfm-spark 1.8s ease-in-out infinite;
+}
+
+.sfm-panel {
+ position: absolute;
+ right: 0;
+ bottom: 76px;
+ z-index: 2;
+ width: min(360px, calc(100vw - 28px));
+ max-height: min(72vh, 560px);
+ overflow: auto;
+ border-radius: 22px;
+ border: 1px solid color-mix(in srgb, #f59e0b 28%, rgba(255, 255, 255, 0.08));
+ background:
+ linear-gradient(165deg, color-mix(in srgb, #1a1612 88%, #f59e0b 6%), #0c0c0f 70%);
+ box-shadow:
+ 0 24px 60px rgba(0, 0, 0, 0.5),
+ inset 0 1px 0 rgba(255, 255, 255, 0.06);
+ padding: 16px 16px 18px;
+ color: #f5f0e8;
+ transform-origin: bottom right;
+ animation: sfm-panel-in 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) both;
+}
+
+.sfm-panel[hidden] {
+ display: none !important;
+}
+
+.sfm-head {
+ display: flex;
+ align-items: flex-start;
+ justify-content: space-between;
+ gap: 12px;
+ margin-bottom: 6px;
+}
+
+.sfm-kicker {
+ margin: 0 0 4px;
+ font-size: 11px;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: #fbbf24;
+ font-weight: 700;
+}
+
+.sfm-head h2 {
+ margin: 0;
+ font-size: 1.15rem;
+ font-weight: 760;
+ letter-spacing: -0.02em;
+}
+
+.sfm-close {
+ width: 36px;
+ height: 36px;
+ min-width: 36px;
+ border-radius: 12px;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: rgba(255, 255, 255, 0.04);
+ color: #f5f0e8;
+ display: grid;
+ place-items: center;
+ cursor: pointer;
+}
+
+.sfm-close:hover {
+ background: rgba(255, 255, 255, 0.08);
+}
+
+.sfm-lead {
+ margin: 0 0 14px;
+ color: color-mix(in srgb, #f5f0e8 68%, transparent);
+ font-size: 0.9rem;
+ line-height: 1.45;
+}
+
+.sfm-kinds {
+ display: flex;
+ gap: 8px;
+ margin-bottom: 12px;
+}
+
+.sfm-kinds button {
+ flex: 1;
+ min-height: 40px;
+ border-radius: 12px;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: rgba(255, 255, 255, 0.03);
+ color: color-mix(in srgb, #f5f0e8 75%, transparent);
+ font-weight: 650;
+ cursor: pointer;
+}
+
+.sfm-kinds button.is-on {
+ color: #0c0c0f;
+ border-color: transparent;
+ background: linear-gradient(135deg, #fbbf24, #f59e0b);
+ box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28);
+}
+
+.sfm-field {
+ display: grid;
+ gap: 6px;
+ margin-bottom: 12px;
+ font-size: 0.82rem;
+ color: color-mix(in srgb, #f5f0e8 70%, transparent);
+}
+
+.sfm-field textarea,
+.sfm-field input {
+ width: 100%;
+ border-radius: 14px;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: rgba(0, 0, 0, 0.28);
+ color: #f5f0e8;
+ padding: 12px 14px;
+ font: inherit;
+ resize: vertical;
+ min-height: 44px;
+}
+
+.sfm-field textarea:focus,
+.sfm-field input:focus {
+ outline: none;
+ border-color: color-mix(in srgb, #f59e0b 55%, transparent);
+ box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
+}
+
+.sfm-images {
+ margin-bottom: 14px;
+}
+
+.sfm-images-head {
+ display: flex;
+ justify-content: space-between;
+ margin-bottom: 8px;
+ font-size: 0.82rem;
+ color: color-mix(in srgb, #f5f0e8 70%, transparent);
+}
+
+.sfm-thumbs {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+}
+
+.sfm-thumb {
+ position: relative;
+ width: 72px;
+ height: 72px;
+ border-radius: 12px;
+ overflow: hidden;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: rgba(0, 0, 0, 0.28);
+}
+
+.sfm-thumb img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ display: block;
+}
+
+.sfm-thumb button {
+ position: absolute;
+ top: 4px;
+ right: 4px;
+ width: 22px;
+ height: 22px;
+ border: 0;
+ border-radius: 999px;
+ display: grid;
+ place-items: center;
+ cursor: pointer;
+ color: #0c0c0f;
+ background: rgba(255, 255, 255, 0.9);
+}
+
+.sfm-add-image {
+ width: 72px;
+ height: 72px;
+ border-radius: 12px;
+ border: 1px dashed color-mix(in srgb, #f59e0b 45%, rgba(255, 255, 255, 0.2));
+ background: rgba(245, 158, 11, 0.06);
+ color: #fbbf24;
+ display: grid;
+ place-content: center;
+ gap: 2px;
+ font-size: 11px;
+ font-weight: 650;
+ cursor: pointer;
+}
+
+.sfm-add-image:disabled {
+ opacity: 0.55;
+ cursor: not-allowed;
+}
+
+.sfm-submit {
+ width: 100%;
+ min-height: 46px;
+ border: 0;
+ border-radius: 14px;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ font-weight: 720;
+ cursor: pointer;
+ color: #0c0c0f;
+ background: linear-gradient(135deg, #fbbf24, #f59e0b 70%, #d97706);
+ box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
+}
+
+.sfm-submit:disabled {
+ opacity: 0.55;
+ cursor: not-allowed;
+ box-shadow: none;
+}
+
+.sfm-status {
+ margin: 10px 0 0;
+ font-size: 0.85rem;
+ color: #86efac;
+}
+
+.sfm-status.is-warn {
+ color: #fcd34d;
+}
+
+.sfm-success {
+ display: grid;
+ gap: 12px;
+ padding: 8px 0 2px;
+}
+
+.sfm-success p {
+ margin: 0;
+ color: #86efac;
+}
+
+@keyframes sfm-bob {
+ 0%,
+ 100% {
+ transform: translateY(0);
+ }
+ 50% {
+ transform: translateY(-5px);
+ }
+}
+
+@keyframes sfm-pulse {
+ 0% {
+ transform: scale(0.92);
+ opacity: 0.55;
+ }
+ 70% {
+ transform: scale(1.18);
+ opacity: 0;
+ }
+ 100% {
+ opacity: 0;
+ }
+}
+
+@keyframes sfm-spark {
+ 0%,
+ 100% {
+ transform: scale(1) rotate(0deg);
+ }
+ 50% {
+ transform: scale(1.12) rotate(12deg);
+ }
+}
+
+@keyframes sfm-hint-in {
+ from {
+ opacity: 0;
+ transform: translateY(8px) scale(0.96);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+}
+
+@keyframes sfm-hint-float {
+ 0%,
+ 100% {
+ transform: translateY(0);
+ }
+ 50% {
+ transform: translateY(-3px);
+ }
+}
+
+@keyframes sfm-panel-in {
+ from {
+ opacity: 0;
+ transform: translateY(12px) scale(0.96);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+}
+
+@media (max-width: 768px) {
+ .sfm-root {
+ bottom: calc(64px + max(10px, env(safe-area-inset-bottom, 0px)));
+ right: max(12px, env(safe-area-inset-right, 0px));
+ }
+
+ .sfm-orb {
+ width: 58px;
+ height: 58px;
+ }
+
+ .sfm-panel {
+ width: min(100vw - 24px, 360px);
+ bottom: 70px;
+ max-height: min(68vh, 520px);
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .sfm-orb,
+ .sfm-ring,
+ .sfm-dot,
+ .sfm-hint,
+ .sfm-panel {
+ animation: none !important;
+ }
+}
+
+html[data-theme="light"] .sfm-orb {
+ background:
+ radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.7), transparent 42%),
+ linear-gradient(145deg, #fff7ed, #ffedd5 60%, #fed7aa);
+ border-color: color-mix(in srgb, #f59e0b 40%, #fff);
+}
+
+html[data-theme="light"] .sfm-panel {
+ background: linear-gradient(165deg, #fffaf3, #fff7ed 70%);
+ color: #1c1410;
+ border-color: color-mix(in srgb, #f59e0b 30%, #e7e5e4);
+}
+
+html[data-theme="light"] .sfm-lead,
+html[data-theme="light"] .sfm-field {
+ color: color-mix(in srgb, #1c1410 70%, transparent);
+}
+
+html[data-theme="light"] .sfm-field textarea,
+html[data-theme="light"] .sfm-field input {
+ background: #fff;
+ color: #1c1410;
+ border-color: #e7e5e4;
+}
+
+html[data-theme="light"] .sfm-close {
+ color: #1c1410;
+ background: #fff;
+}
+
+html[data-theme="light"] .sfm-kinds button {
+ color: #1c1410;
+ background: #fff;
+ border-color: #e7e5e4;
+}
+
+html[data-theme="light"] .sfm-hint {
+ background: #fffbeb;
+ color: #92400e;
+}
diff --git a/src/modules/hub/components/HubFeedbackMate.tsx b/src/modules/hub/components/HubFeedbackMate.tsx
new file mode 100644
index 0000000..18ebf9a
--- /dev/null
+++ b/src/modules/hub/components/HubFeedbackMate.tsx
@@ -0,0 +1,374 @@
+"use client";
+
+import { FormEvent, useEffect, useId, useRef, useState } from "react";
+import { usePathname } from "next/navigation";
+import { ImagePlus, Send, X } from "lucide-react";
+import { hubApi } from "@hub/lib/api";
+import { collectFeedbackClientMeta } from "@hub/lib/feedbackMeta";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useLocalState } from "@hub/lib/useLocalState";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import "./HubFeedbackMate.css";
+
+export const HUB_FEEDBACK_OPEN = "social-feedback-open";
+
+export function openSocialFeedbackMate() {
+ if (typeof window === "undefined") return;
+ window.dispatchEvent(new CustomEvent(HUB_FEEDBACK_OPEN));
+}
+
+type DraftImage = { url: string; preview?: string };
+
+export default function HubFeedbackMate() {
+ const { locale } = useHubI18n();
+ const zh = locale === "zh";
+ const pathname = usePathname() || "";
+ const panelId = useId();
+ const panelRef = useRef(null);
+ const fileRef = useRef(null);
+ const [open, setOpen] = useState(false);
+ const [hint, setHint] = useState(true);
+ const [busy, setBusy] = useState(false);
+ const [uploading, setUploading] = useState(false);
+ const [status, setStatus] = useState("");
+ const [images, setImages] = useState([]);
+ const [delivery, setDelivery] = useLocalState<"draft" | "sent" | "local">(
+ "feedback-mate-delivery",
+ "draft",
+ );
+ const [draft, setDraft] = useLocalState<{
+ kind: "反馈" | "建议";
+ text: string;
+ contact: string;
+ }>("feedback-mate-draft", { kind: "建议", text: "", contact: "" });
+ const lock = useRef(false);
+
+ const onFeedbackPage =
+ pathname === hubPath("/feedback") ||
+ pathname.endsWith("/feedback") ||
+ pathname.includes("/hub/feedback");
+
+ useEffect(() => {
+ const onOpen = () => setOpen(true);
+ window.addEventListener(HUB_FEEDBACK_OPEN, onOpen);
+ return () => window.removeEventListener(HUB_FEEDBACK_OPEN, onOpen);
+ }, []);
+
+ useEffect(() => {
+ if (!open) return;
+ const onKey = (e: KeyboardEvent) => {
+ if (e.key === "Escape") setOpen(false);
+ };
+ window.addEventListener("keydown", onKey);
+ const t = window.setTimeout(() => {
+ panelRef.current
+ ?.querySelector("textarea")
+ ?.focus();
+ }, 180);
+ return () => {
+ window.removeEventListener("keydown", onKey);
+ window.clearTimeout(t);
+ };
+ }, [open]);
+
+ useEffect(() => {
+ if (!hint) return;
+ const t = window.setTimeout(() => setHint(false), 5200);
+ return () => window.clearTimeout(t);
+ }, [hint]);
+
+ if (onFeedbackPage) return null;
+
+ const update = (key: keyof typeof draft, value: string) => {
+ setDraft((cur) => ({ ...cur, [key]: value }));
+ setDelivery("draft");
+ setStatus("");
+ };
+
+ const reset = () => {
+ setDraft({ kind: "建议", text: "", contact: "" });
+ setImages([]);
+ setDelivery("draft");
+ setStatus("");
+ };
+
+ const onPickImages = async (files: FileList | null) => {
+ if (!files?.length || uploading) return;
+ const room = Math.max(0, 4 - images.length);
+ const batch = Array.from(files)
+ .filter((f) => f.type.startsWith("image/"))
+ .slice(0, room);
+ if (!batch.length) return;
+ setUploading(true);
+ setStatus("");
+ try {
+ for (const file of batch) {
+ if (file.size > 8 * 1024 * 1024) {
+ throw new Error(zh ? "单张图片请小于 8MB" : "Each image must be under 8MB");
+ }
+ const uploaded = await hubApi.uploadAvatar(file, "feedback");
+ if (!uploaded?.url) throw new Error(zh ? "上传失败" : "Upload failed");
+ setImages((cur) => [...cur, { url: uploaded.url }].slice(0, 4));
+ }
+ } catch (e) {
+ const msg = e instanceof Error ? e.message : String(e);
+ setStatus(
+ msg && msg.length < 120
+ ? hubTx(`图片上传失败:${msg}`)
+ : hubTx("图片上传失败,请重试"),
+ );
+ } finally {
+ setUploading(false);
+ if (fileRef.current) fileRef.current.value = "";
+ }
+ };
+
+ const submit = async (event: FormEvent) => {
+ event.preventDefault();
+ if (!draft.text.trim() || lock.current || delivery === "sent" || uploading)
+ return;
+ lock.current = true;
+ setBusy(true);
+ try {
+ // meta is silent admin telemetry — never rendered to the user.
+ await hubApi.postFeedback({
+ kind: draft.kind || "建议",
+ text: draft.text.trim(),
+ contact: draft.contact.trim(),
+ images: images.map((i) => i.url),
+ meta: collectFeedbackClientMeta({
+ imageCount: images.length,
+ ui: "feedback-mate",
+ }),
+ });
+ setDelivery("sent");
+ setStatus(hubTx("已提交,感谢反馈。"));
+ setImages([]);
+ } catch (e) {
+ const msg = e instanceof Error ? e.message : "";
+ if (/最多提交|429/.test(msg)) {
+ setDelivery("draft");
+ setStatus(
+ hubTx(
+ msg.includes("最多")
+ ? msg
+ : "每人最多提交 10 条反馈,已达上限。",
+ ),
+ );
+ } else {
+ setDelivery("local");
+ setStatus(
+ msg && msg.length < 120
+ ? hubTx(`提交失败:${msg}。内容还在表单里,修好后点重试。`)
+ : hubTx("提交失败。内容还在表单里,请稍后点重试。"),
+ );
+ }
+ } finally {
+ lock.current = false;
+ setBusy(false);
+ }
+ };
+
+ return (
+
+ {hint && !open ? (
+
+ {zh ? "有想法?点我说说" : "Ideas? Tap me"}
+
+ ) : null}
+
+
{
+ setHint(false);
+ setOpen((v) => !v);
+ }}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ✦
+
+
+
+
e.stopPropagation()}
+ onClick={(e) => e.stopPropagation()}
+ >
+
+
+
{hubTx("说说想法")}
+
+ setOpen(false)}
+ >
+
+
+
+
+ {hubTx("哪里用得不顺手?告诉我们")}
+
+
+ {delivery === "sent" ? (
+
+
{status || hubTx("已提交")}
+
+ {hubTx("再提一条")}
+
+
+ ) : (
+
void submit(e)}>
+
+ {hubTx("内容")}
+ update("text", e.target.value)}
+ placeholder={hubTx("具体页面 / 操作 / 期望…")}
+ />
+
+
+ {hubTx("联系方式(选填)")}
+ update("contact", e.target.value)}
+ placeholder={hubTx("邮箱 / 微信")}
+ />
+
+
+
+
+ {zh ? "截图(选填)" : "Screenshots (optional)"}
+ {images.length}/4
+
+
+ {images.map((img) => (
+
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+
+
+ setImages((cur) => cur.filter((x) => x.url !== img.url))
+ }
+ >
+
+
+
+ ))}
+ {images.length < 4 ? (
+
fileRef.current?.click()}
+ >
+
+ {uploading ? (zh ? "上传中…" : "Uploading…") : zh ? "加图" : "Add"}
+
+ ) : null}
+
+
void onPickImages(e.target.files)}
+ />
+
+
+
+
+ {busy
+ ? hubTx("提交中…")
+ : delivery === "local"
+ ? hubTx("重试")
+ : hubTx("提交")}
+
+ {status ? (
+
+ {status}
+
+ ) : null}
+
+ )}
+
+
+ );
+}
diff --git a/src/modules/hub/components/HubGlobe3D.tsx b/src/modules/hub/components/HubGlobe3D.tsx
new file mode 100644
index 0000000..f5a5700
--- /dev/null
+++ b/src/modules/hub/components/HubGlobe3D.tsx
@@ -0,0 +1,521 @@
+"use client";
+
+/**
+ * Immersive 3D Earth for H5/desktop.
+ * Filled land texture painted from GeoJSON onto an equirectangular canvas
+ * (no CDN earth-jpg dependency), then mapped onto a real sphere.
+ */
+import { useEffect, useMemo, useRef, useState } from "react";
+import * as THREE from "three";
+import type { HubMapCity } from "@hub/lib/geoTypes";
+import type { MapPersonPin } from "@hub/lib/mapPins";
+
+type Props = {
+ cities: HubMapCity[];
+ people: MapPersonPin[];
+ selectedId?: string | null;
+ onSelectCity?: (city: HubMapCity) => void;
+ onSelectPerson?: (pin: MapPersonPin) => void;
+};
+
+type OverlayPin = {
+ id: string;
+ city: HubMapCity;
+ person?: MapPersonPin;
+ count: number;
+};
+
+const LAND_GEOJSON =
+ "https://cdn.jsdelivr.net/gh/nvkelso/natural-earth-vector@master/geojson/ne_110m_land.geojson";
+
+function latLngToVec3(lat: number, lng: number, radius: number): THREE.Vector3 {
+ const phi = (90 - lat) * (Math.PI / 180);
+ const theta = (lng + 180) * (Math.PI / 180);
+ return new THREE.Vector3(
+ -radius * Math.sin(phi) * Math.cos(theta),
+ radius * Math.cos(phi),
+ radius * Math.sin(phi) * Math.sin(theta),
+ );
+}
+
+function lngLatToXy(lng: number, lat: number, w: number, h: number): [number, number] {
+ const x = ((lng + 180) / 360) * w;
+ const y = ((90 - lat) / 180) * h;
+ return [x, y];
+}
+
+function drawRing(
+ ctx: CanvasRenderingContext2D,
+ ring: number[][],
+ w: number,
+ h: number,
+): void {
+ if (!ring.length) return;
+ ctx.beginPath();
+ for (let i = 0; i < ring.length; i++) {
+ const [lng, lat] = ring[i];
+ if (!Number.isFinite(lng) || !Number.isFinite(lat)) continue;
+ const [x, y] = lngLatToXy(lng, lat, w, h);
+ if (i === 0) ctx.moveTo(x, y);
+ else ctx.lineTo(x, y);
+ }
+ ctx.closePath();
+}
+
+function paintGeometry(
+ ctx: CanvasRenderingContext2D,
+ geometry: GeoJSON.Geometry,
+ w: number,
+ h: number,
+ mode: "fill" | "stroke",
+): void {
+ const paint = () => {
+ if (mode === "fill") ctx.fill();
+ else ctx.stroke();
+ };
+ if (geometry.type === "Polygon") {
+ for (const ring of geometry.coordinates) {
+ drawRing(ctx, ring, w, h);
+ paint();
+ }
+ } else if (geometry.type === "MultiPolygon") {
+ for (const poly of geometry.coordinates) {
+ for (const ring of poly) {
+ drawRing(ctx, ring, w, h);
+ paint();
+ }
+ }
+ }
+}
+
+/** Offline-capable dark earth: filled continents on equirectangular canvas */
+async function buildEarthTexture(): Promise {
+ const w = 2048;
+ const h = 1024;
+ const canvas = document.createElement("canvas");
+ canvas.width = w;
+ canvas.height = h;
+ const ctx = canvas.getContext("2d")!;
+
+ // Ocean
+ const ocean = ctx.createLinearGradient(0, 0, 0, h);
+ ocean.addColorStop(0, "#061018");
+ ocean.addColorStop(0.5, "#0a1a2e");
+ ocean.addColorStop(1, "#061018");
+ ctx.fillStyle = ocean;
+ ctx.fillRect(0, 0, w, h);
+
+ // Soft latitude glow
+ ctx.fillStyle = "rgba(56,189,248,0.04)";
+ ctx.fillRect(0, h * 0.35, w, h * 0.3);
+
+ try {
+ const res = await fetch(LAND_GEOJSON, { cache: "force-cache" });
+ if (res.ok) {
+ const fc = (await res.json()) as GeoJSON.FeatureCollection;
+ ctx.fillStyle = "#1b3d52";
+ ctx.strokeStyle = "rgba(148, 203, 230, 0.35)";
+ ctx.lineWidth = 1.25;
+ for (const f of fc.features || []) {
+ if (!f.geometry) continue;
+ paintGeometry(ctx, f.geometry, w, h, "fill");
+ paintGeometry(ctx, f.geometry, w, h, "stroke");
+ }
+ } else {
+ throw new Error("geojson");
+ }
+ } catch {
+ // Minimal continent blobs if GeoJSON blocked
+ ctx.fillStyle = "#1b3d52";
+ const blobs = [
+ [0.18, 0.38, 0.12, 0.18],
+ [0.48, 0.32, 0.22, 0.2],
+ [0.72, 0.42, 0.1, 0.14],
+ [0.55, 0.62, 0.08, 0.16],
+ [0.82, 0.68, 0.09, 0.1],
+ ];
+ for (const [x, y, rw, rh] of blobs) {
+ ctx.beginPath();
+ ctx.ellipse(x * w, y * h, rw * w, rh * h, 0, 0, Math.PI * 2);
+ ctx.fill();
+ }
+ }
+
+ // Grid faint
+ ctx.strokeStyle = "rgba(125, 211, 252, 0.08)";
+ ctx.lineWidth = 1;
+ for (let i = 1; i < 12; i++) {
+ const y = (i / 12) * h;
+ ctx.beginPath();
+ ctx.moveTo(0, y);
+ ctx.lineTo(w, y);
+ ctx.stroke();
+ }
+ for (let i = 1; i < 24; i++) {
+ const x = (i / 24) * w;
+ ctx.beginPath();
+ ctx.moveTo(x, 0);
+ ctx.lineTo(x, h);
+ ctx.stroke();
+ }
+
+ const tex = new THREE.CanvasTexture(canvas);
+ tex.colorSpace = THREE.SRGBColorSpace;
+ tex.anisotropy = 8;
+ tex.needsUpdate = true;
+ return tex;
+}
+
+export default function HubGlobe3D({
+ cities,
+ people,
+ selectedId,
+ onSelectCity,
+ onSelectPerson,
+}: Props) {
+ const wrapRef = useRef(null);
+ const canvasRef = useRef(null);
+ const groupRef = useRef(null);
+ const cameraRef = useRef(null);
+ const rendererRef = useRef(null);
+ const [overlays, setOverlays] = useState([]);
+ const [ready, setReady] = useState(false);
+ const drag = useRef({ active: false, lx: 0, ly: 0, rotY: 0.55, rotX: 0.08 });
+ const autoSpin = useRef(true);
+ const fitDistanceRef = useRef<(aspect: number) => number>(() => 4.2);
+ const pinEls = useRef>(new Map());
+
+ const cityById = useMemo(() => {
+ const m = new Map();
+ cities.forEach((c) => m.set(c.id, c));
+ return m;
+ }, [cities]);
+
+ useEffect(() => {
+ setOverlays(
+ cities.map((city) => {
+ const face = people.find((p) => p.cityId === city.id);
+ return {
+ id: city.id,
+ city,
+ person: face,
+ count: Math.max(1, Math.min(9, Math.round((city.memberCount || 40) / 120))),
+ };
+ }),
+ );
+ }, [cities, people]);
+
+ useEffect(() => {
+ const canvas = canvasRef.current;
+ const wrap = wrapRef.current;
+ if (!canvas || !wrap) return;
+ let disposed = false;
+ let raf = 0;
+
+ const w = Math.max(wrap.clientWidth, 320);
+ const h = Math.max(wrap.clientHeight, 320);
+ const renderer = new THREE.WebGLRenderer({
+ canvas,
+ antialias: true,
+ alpha: true,
+ powerPreference: "high-performance",
+ });
+ renderer.setClearColor(0x000000, 0);
+ renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 2.5));
+ renderer.setSize(w, h, false);
+ renderer.toneMapping = THREE.ACESFilmicToneMapping;
+ renderer.toneMappingExposure = 1.15;
+ rendererRef.current = renderer;
+
+ const scene = new THREE.Scene();
+ const R = 1.0;
+ // 默认地球约占视口短边 ~58%,不贴脸、也不缩成小点
+ const FOV = 45;
+ const fitDistance = (aspect: number) => {
+ const vFov = (FOV * Math.PI) / 180;
+ // 球体直径约占视口短边 55–60%,接近常见地球仪构图
+ if (aspect < 1) {
+ const half = Math.tan(vFov / 2);
+ return (R * 1.08) / (half * 0.56);
+ }
+ const hFov = 2 * Math.atan(Math.tan(vFov / 2) * aspect);
+ const halfH = Math.tan(hFov / 2);
+ return (R * 1.08) / (halfH * 0.5);
+ };
+ const camera = new THREE.PerspectiveCamera(FOV, w / h, 0.1, 200);
+ camera.position.set(0, 0.02, fitDistance(w / h));
+ camera.lookAt(0, 0, 0);
+ cameraRef.current = camera;
+
+ const root = new THREE.Group();
+ groupRef.current = root;
+ scene.add(root);
+
+ const hemi = new THREE.HemisphereLight(0xb8e0ff, 0x0a1020, 1.05);
+ const key = new THREE.DirectionalLight(0xffffff, 1.35);
+ key.position.set(5, 2.2, 3.5);
+ const fill = new THREE.DirectionalLight(0x38bdf8, 0.35);
+ fill.position.set(-3, -1, -2);
+ scene.add(hemi, key, fill);
+
+ const globeMat = new THREE.MeshStandardMaterial({
+ color: "#0a1628",
+ roughness: 0.78,
+ metalness: 0.08,
+ });
+ const globe = new THREE.Mesh(new THREE.SphereGeometry(R, 96, 96), globeMat);
+ root.add(globe);
+
+ // Atmosphere shells — make sphere read as 3D immediately
+ fitDistanceRef.current = fitDistance;
+
+ const atmos = new THREE.Mesh(
+ new THREE.SphereGeometry(R * 1.03, 64, 64),
+ new THREE.MeshBasicMaterial({
+ color: "#38bdf8",
+ transparent: true,
+ opacity: 0.12,
+ side: THREE.BackSide,
+ depthWrite: false,
+ }),
+ );
+ root.add(atmos);
+ const atmos2 = new THREE.Mesh(
+ new THREE.SphereGeometry(R * 1.06, 48, 48),
+ new THREE.MeshBasicMaterial({
+ color: "#0ea5e9",
+ transparent: true,
+ opacity: 0.05,
+ side: THREE.BackSide,
+ depthWrite: false,
+ }),
+ );
+ root.add(atmos2);
+
+ // City hotspots
+ const hotPos: number[] = [];
+ cities.forEach((c) => {
+ const v = latLngToVec3(c.lat, c.lng, R * 1.006);
+ hotPos.push(v.x, v.y, v.z);
+ });
+ if (hotPos.length) {
+ const hotGeo = new THREE.BufferGeometry();
+ hotGeo.setAttribute("position", new THREE.Float32BufferAttribute(hotPos, 3));
+ root.add(
+ new THREE.Points(
+ hotGeo,
+ new THREE.PointsMaterial({
+ color: "#f59e0b",
+ size: 5,
+ sizeAttenuation: false,
+ transparent: true,
+ opacity: 0.95,
+ depthWrite: false,
+ }),
+ ),
+ );
+ }
+
+ // Stars
+ const starPos = new Float32Array(1400 * 3);
+ for (let i = 0; i < starPos.length; i++) starPos[i] = (Math.random() - 0.5) * 60;
+ const stars = new THREE.Points(
+ new THREE.BufferGeometry().setAttribute(
+ "position",
+ new THREE.BufferAttribute(starPos, 3),
+ ),
+ new THREE.PointsMaterial({
+ color: "#e2e8f0",
+ size: 1.15,
+ sizeAttenuation: false,
+ transparent: true,
+ opacity: 0.55,
+ depthWrite: false,
+ }),
+ );
+ scene.add(stars);
+
+ void buildEarthTexture().then((tex) => {
+ if (disposed) {
+ tex.dispose();
+ return;
+ }
+ globeMat.map = tex;
+ globeMat.color.set("#ffffff");
+ globeMat.needsUpdate = true;
+ setReady(true);
+ });
+
+ const tmp = new THREE.Vector3();
+ const camPos = new THREE.Vector3();
+ const projectOverlays = () => {
+ if (!groupRef.current || !cameraRef.current || !wrapRef.current) return;
+ const rect = wrapRef.current.getBoundingClientRect();
+ camera.getWorldPosition(camPos);
+ for (const city of cities) {
+ const el = pinEls.current.get(city.id);
+ if (!el) continue;
+ tmp.copy(latLngToVec3(city.lat, city.lng, R * 1.04));
+ groupRef.current.localToWorld(tmp);
+ const facing = tmp.clone().normalize().dot(camPos.clone().normalize()) > 0.22;
+ const p = tmp.clone().project(camera);
+ const onScreen =
+ p.z < 1 && p.x > -1.15 && p.x < 1.15 && p.y > -1.2 && p.y < 1.2;
+ if (!facing || !onScreen) {
+ el.style.visibility = "hidden";
+ el.style.pointerEvents = "none";
+ continue;
+ }
+ const x = (p.x * 0.5 + 0.5) * rect.width;
+ const y = (-p.y * 0.5 + 0.5) * rect.height;
+ el.style.visibility = "visible";
+ el.style.pointerEvents = "auto";
+ const scale = el.classList.contains("is-selected") ? 1.1 : 1;
+ el.style.transform = `translate(${x}px, ${y}px) translate(-50%, -118%) scale(${scale})`;
+ }
+ };
+
+ const tick = () => {
+ raf = requestAnimationFrame(tick);
+ if (autoSpin.current && !drag.current.active) drag.current.rotY += 0.0035;
+ root.rotation.y = drag.current.rotY;
+ root.rotation.x = drag.current.rotX;
+ stars.rotation.y -= 0.00025;
+ renderer.render(scene, camera);
+ projectOverlays();
+ };
+ tick();
+
+ const onResize = () => {
+ if (!wrapRef.current || !cameraRef.current || !rendererRef.current) return;
+ const nw = Math.max(wrapRef.current.clientWidth, 1);
+ const nh = Math.max(wrapRef.current.clientHeight, 1);
+ const aspect = nw / nh;
+ cameraRef.current.aspect = aspect;
+ cameraRef.current.position.z = fitDistanceRef.current(aspect);
+ cameraRef.current.position.y = 0.02;
+ cameraRef.current.lookAt(0, 0, 0);
+ cameraRef.current.updateProjectionMatrix();
+ rendererRef.current.setSize(nw, nh, false);
+ };
+ const ro = new ResizeObserver(onResize);
+ ro.observe(wrap);
+
+ const onDown = (e: PointerEvent) => {
+ if ((e.target as HTMLElement)?.closest?.(".sm-globe-pin")) return;
+ drag.current.active = true;
+ autoSpin.current = false;
+ drag.current.lx = e.clientX;
+ drag.current.ly = e.clientY;
+ wrap.setPointerCapture(e.pointerId);
+ };
+ const onMove = (e: PointerEvent) => {
+ if (!drag.current.active) return;
+ drag.current.rotY += (e.clientX - drag.current.lx) * 0.005;
+ drag.current.rotX = Math.max(
+ -0.45,
+ Math.min(0.45, drag.current.rotX + (e.clientY - drag.current.ly) * 0.0035),
+ );
+ drag.current.lx = e.clientX;
+ drag.current.ly = e.clientY;
+ };
+ const onUp = (e: PointerEvent) => {
+ drag.current.active = false;
+ try {
+ wrap.releasePointerCapture(e.pointerId);
+ } catch {
+ /* ignore */
+ }
+ window.setTimeout(() => {
+ autoSpin.current = true;
+ }, 1600);
+ };
+ wrap.addEventListener("pointerdown", onDown);
+ wrap.addEventListener("pointermove", onMove);
+ wrap.addEventListener("pointerup", onUp);
+ wrap.addEventListener("pointercancel", onUp);
+
+ return () => {
+ disposed = true;
+ cancelAnimationFrame(raf);
+ ro.disconnect();
+ wrap.removeEventListener("pointerdown", onDown);
+ wrap.removeEventListener("pointermove", onMove);
+ wrap.removeEventListener("pointerup", onUp);
+ wrap.removeEventListener("pointercancel", onUp);
+ renderer.dispose();
+ scene.traverse((obj) => {
+ if (
+ obj instanceof THREE.Mesh ||
+ obj instanceof THREE.Points ||
+ obj instanceof THREE.LineSegments
+ ) {
+ obj.geometry.dispose();
+ const mats = Array.isArray(obj.material) ? obj.material : [obj.material];
+ mats.forEach((m) => {
+ if ("map" in m && m.map) m.map.dispose();
+ m.dispose();
+ });
+ }
+ });
+ };
+ }, [cities]);
+
+ useEffect(() => {
+ if (!selectedId || !cityById.has(selectedId)) return;
+ const city = cityById.get(selectedId)!;
+ drag.current.rotY = (-city.lng * Math.PI) / 180 + Math.PI;
+ // 选城只轻抬倾角,避免球被拉得畸形
+ drag.current.rotX = Math.max(-0.35, Math.min(0.35, ((city.lat * Math.PI) / 180) * 0.22));
+ autoSpin.current = false;
+ const t = window.setTimeout(() => {
+ autoSpin.current = true;
+ }, 2600);
+ return () => window.clearTimeout(t);
+ }, [selectedId, cityById]);
+
+ return (
+
+
+
+ {!ready ? (
+
+ 生成立体地球…
+
+ ) : null}
+
+ {overlays.map((o) => {
+ const selected = selectedId === o.city.id;
+ return (
+
{
+ if (el) pinEls.current.set(o.id, el);
+ else pinEls.current.delete(o.id);
+ }}
+ className={`sm-globe-pin${selected ? " is-selected" : ""}`}
+ style={{ left: 0, top: 0, visibility: "hidden" }}
+ onClick={(e) => {
+ e.stopPropagation();
+ if (o.person) onSelectPerson?.(o.person);
+ onSelectCity?.(o.city);
+ }}
+ aria-label={`${o.city.name} ${o.city.memberCount}`}
+ >
+ {o.count}
+ {o.person ? (
+ // eslint-disable-next-line @next/next/no-img-element
+
+ ) : (
+ {o.city.emoji || "📍"}
+ )}
+ {o.city.name}
+
+ );
+ })}
+
+
拖动旋转地球 · 点击头像
+
+ );
+}
diff --git a/src/modules/hub/components/HubLangSwitch.tsx b/src/modules/hub/components/HubLangSwitch.tsx
new file mode 100644
index 0000000..de8125b
--- /dev/null
+++ b/src/modules/hub/components/HubLangSwitch.tsx
@@ -0,0 +1,6 @@
+"use client";
+
+/** 多语言切换已隐藏;跟随门户自动检测的语言。 */
+export default function HubLangSwitch() {
+ return null;
+}
diff --git a/src/modules/hub/components/HubLiveShell.tsx b/src/modules/hub/components/HubLiveShell.tsx
new file mode 100644
index 0000000..61b80c7
--- /dev/null
+++ b/src/modules/hub/components/HubLiveShell.tsx
@@ -0,0 +1,48 @@
+"use client";
+
+/**
+ * Social Live UX — heartbeat only; no「N 人在线」strip chrome.
+ */
+import { useEffect, useRef } from "react";
+import { useRemoteConfig } from "~/lib/use-remote-config";
+import {
+ getSocialLive,
+ type HubLiveFlags,
+} from "@hub/lib/hubLive";
+import { hubTrack } from "@hub/lib/hubTrack";
+import { useSocialPresence } from "@hub/lib/useSocialPresence";
+
+export default function HubLiveShell({
+ home = false,
+}: {
+ home?: boolean;
+}) {
+ const { config } = useRemoteConfig();
+ const live = getSocialLive(config);
+ // Keep presence effect mounted (silent heartbeat).
+ useSocialPresence(config);
+ const lastVersion = useRef(Number(config.version) || 0);
+ const booted = useRef(false);
+ void home;
+
+ useEffect(() => {
+ const v = Number(config.version) || 0;
+ if (!booted.current) {
+ booted.current = true;
+ lastVersion.current = v;
+ return;
+ }
+ if (v && v !== lastVersion.current) {
+ lastVersion.current = v;
+ hubTrack(live, "hub_config_hot", { version: v });
+ }
+ }, [config.version, live]);
+
+ return
;
+}
+
+export function readLiveFlags(
+ config: { flags?: { hubLive?: Partial; socialLive?: Partial } } | null,
+): HubLiveFlags {
+ return getSocialLive(config as never);
+}
diff --git a/src/modules/hub/components/HubMapCanvas.tsx b/src/modules/hub/components/HubMapCanvas.tsx
new file mode 100644
index 0000000..c4cb8f4
--- /dev/null
+++ b/src/modules/hub/components/HubMapCanvas.tsx
@@ -0,0 +1,273 @@
+"use client";
+
+import { useEffect, useRef, useState } from "react";
+import {
+ LngLatBounds,
+ Map as MapLibreMap,
+ Marker,
+ NavigationControl,
+ getVersion,
+ setWorkerUrl,
+} from "maplibre-gl";
+import "maplibre-gl/dist/maplibre-gl.css";
+import type { HubMapCity } from "@hub/lib/geoTypes";
+import {
+ DEFAULT_MAP_STYLE,
+ FALLBACK_MAP_STYLES,
+} from "@hub/lib/geoTypes";
+import type { MapPersonPin } from "@hub/lib/mapPins";
+
+function ensureMapWorker() {
+ if (typeof window === "undefined") return;
+ const w = window as Window & { __nomadroMapWorker?: boolean };
+ if (w.__nomadroMapWorker) return;
+ // Prefer same-origin worker (copied to public/); CDN as absolute fallback
+ const local = "/maplibre/maplibre-gl-worker.mjs";
+ setWorkerUrl(local);
+ w.__nomadroMapWorker = true;
+ void fetch(local, { method: "HEAD" }).then((r) => {
+ if (!r.ok) {
+ setWorkerUrl(
+ `https://cdn.jsdelivr.net/npm/maplibre-gl@${getVersion()}/dist/maplibre-gl-worker.mjs`,
+ );
+ }
+ });
+}
+
+function makePulseEl(city: HubMapCity, selected: boolean): HTMLButtonElement {
+ const el = document.createElement("button");
+ el.type = "button";
+ el.className = `sm-pulse${selected ? " is-selected" : ""}${city.hot ? " is-hot" : ""}`;
+ el.setAttribute("aria-label", `${city.name} ${city.memberCount}`);
+ const size = 28 + Math.min(36, Math.round((city.memberCount || 0) / 35));
+ el.style.setProperty("--pulse", `${size}px`);
+ el.innerHTML = `
+
+
+ ${city.emoji || "·"}
+ ${city.name}${city.memberCount}
+ `;
+ return el;
+}
+
+function makePersonEl(
+ pin: MapPersonPin,
+ opts: { active: boolean; showApprox: boolean },
+): HTMLButtonElement {
+ const el = document.createElement("button");
+ el.type = "button";
+ el.className = `sm-person${opts.active ? " is-active" : ""}${pin.online ? " is-online" : ""}`;
+ el.setAttribute("aria-label", `${pin.name}, ${pin.cityName}`);
+ el.innerHTML = `
+ ${opts.showApprox ? `approximate location ` : ""}
+
+ ${pin.fromCode} › ${pin.toCode}
+
+
+ ${opts.showApprox ? ` ` : ""}
+
+ ${pin.vip ? `♛ ` : ""}
+ ${pin.verified ? `✓ ` : ""}
+
+ ${pin.gender === "f" ? "♀" : "♂"}
+
+
+ `;
+ return el;
+}
+
+type Props = {
+ cities: HubMapCity[];
+ people: MapPersonPin[];
+ selectedId?: string | null;
+ selectedPersonId?: string | null;
+ onSelectCity?: (city: HubMapCity) => void;
+ onSelectPerson?: (pin: MapPersonPin) => void;
+ className?: string;
+};
+
+export default function HubMapCanvas({
+ cities,
+ people,
+ selectedId,
+ selectedPersonId,
+ onSelectCity,
+ onSelectPerson,
+ className,
+}: Props) {
+ const containerRef = useRef(null);
+ const mapRef = useRef(null);
+ const markersRef = useRef([]);
+ const readyRef = useRef(false);
+ const styleIdx = useRef(0);
+ const cityCb = useRef(onSelectCity);
+ const personCb = useRef(onSelectPerson);
+ const [status, setStatus] = useState("加载底图…");
+ cityCb.current = onSelectCity;
+ personCb.current = onSelectPerson;
+
+ const styles = [DEFAULT_MAP_STYLE, ...FALLBACK_MAP_STYLES];
+
+ useEffect(() => {
+ if (!containerRef.current || mapRef.current) return;
+ ensureMapWorker();
+
+ const tryStyle = (index: number) => {
+ const styleUrl = styles[Math.min(index, styles.length - 1)];
+ styleIdx.current = index;
+ const map = new MapLibreMap({
+ container: containerRef.current!,
+ style: styleUrl,
+ center: [105, 25],
+ zoom: 2.8,
+ attributionControl: { compact: true },
+ });
+ map.addControl(new NavigationControl({ showCompass: false }), "bottom-right");
+ mapRef.current = map;
+
+ const onLoad = () => {
+ readyRef.current = true;
+ setStatus("");
+ map.resize();
+ // Fit seed cities so basemap + markers are obvious
+ if (cities.length) {
+ const bounds = new LngLatBounds();
+ cities.forEach((c) => bounds.extend([c.lng, c.lat]));
+ if (!bounds.isEmpty()) {
+ map.fitBounds(bounds, { padding: 64, maxZoom: 3.8, duration: 0 });
+ }
+ }
+ };
+
+ const onError = (e: { error?: { message: string } }) => {
+ const msg = String(e?.error?.message || e || "");
+ // Style fetch failed → try next basemap
+ if (
+ index < styles.length - 1 &&
+ (/style|fetch|network|Failed to fetch|AJAXError/i.test(msg) ||
+ !readyRef.current)
+ ) {
+ map.remove();
+ mapRef.current = null;
+ setStatus(`切换备用底图 ${index + 2}/${styles.length}…`);
+ tryStyle(index + 1);
+ }
+ };
+
+ map.once("load", onLoad);
+ map.on("error", onError);
+ };
+
+ tryStyle(0);
+
+ const onWinResize = () => mapRef.current?.resize();
+ window.addEventListener("resize", onWinResize);
+
+ return () => {
+ window.removeEventListener("resize", onWinResize);
+ markersRef.current.forEach((m) => m.remove());
+ markersRef.current = [];
+ mapRef.current?.remove();
+ mapRef.current = null;
+ };
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- mount once
+ }, []);
+
+ useEffect(() => {
+ const map = mapRef.current;
+ if (!map) return;
+
+ const paint = () => {
+ markersRef.current.forEach((m) => m.remove());
+ markersRef.current = [];
+ const z = map.getZoom();
+ const showPeople = z >= 4.5;
+
+ // Always draw city pulses on basemap
+ cities.forEach((city) => {
+ if (showPeople && selectedId && city.id !== selectedId) return;
+ const el = makePulseEl(city, selectedId === city.id);
+ if (showPeople) el.classList.add("is-underlay");
+ el.addEventListener("click", (e) => {
+ e.stopPropagation();
+ cityCb.current?.(city);
+ map.flyTo({
+ center: [city.lng, city.lat],
+ zoom: Math.max(5.4, z),
+ essential: true,
+ duration: 800,
+ });
+ });
+ markersRef.current.push(
+ new Marker({ element: el, anchor: "center" })
+ .setLngLat([city.lng, city.lat])
+ .addTo(map),
+ );
+ });
+
+ if (showPeople) {
+ const list = selectedId
+ ? people.filter((p) => p.cityId === selectedId)
+ : people;
+ list.forEach((pin, i) => {
+ const active =
+ selectedPersonId === pin.id ||
+ (!selectedPersonId && i === 0 && !!selectedId);
+ const el = makePersonEl(pin, { active, showApprox: active });
+ el.addEventListener("click", (e) => {
+ e.stopPropagation();
+ personCb.current?.(pin);
+ map.flyTo({
+ center: [pin.lng, pin.lat],
+ zoom: Math.max(map.getZoom(), 10.2),
+ essential: true,
+ duration: 650,
+ });
+ });
+ markersRef.current.push(
+ new Marker({ element: el, anchor: "bottom" })
+ .setLngLat([pin.lng, pin.lat])
+ .addTo(map),
+ );
+ });
+ }
+ };
+
+ const run = () => {
+ paint();
+ map.resize();
+ };
+
+ if (map.isStyleLoaded()) run();
+ else map.once("load", run);
+
+ const onZoomEnd = () => paint();
+ map.on("zoomend", onZoomEnd);
+
+ if (selectedId) {
+ const city = cities.find((c) => c.id === selectedId);
+ if (city) {
+ map.flyTo({
+ center: [city.lng, city.lat],
+ zoom: Math.max(map.getZoom(), 5.2),
+ essential: true,
+ });
+ }
+ }
+
+ return () => {
+ map.off("zoomend", onZoomEnd);
+ };
+ }, [cities, people, selectedId, selectedPersonId]);
+
+ return (
+
+
+ {status ? (
+
+ {status}
+
+ ) : null}
+
+ );
+}
diff --git a/src/modules/hub/components/HubNavigation.tsx b/src/modules/hub/components/HubNavigation.tsx
new file mode 100644
index 0000000..820b437
--- /dev/null
+++ b/src/modules/hub/components/HubNavigation.tsx
@@ -0,0 +1,123 @@
+"use client";
+
+import Link from "next/link";
+import { usePathname } from "next/navigation";
+import { useEffect, useRef } from "react";
+import {
+ CircleUserRound,
+ Compass,
+ Heart,
+ House,
+ MessageCircle,
+} from "lucide-react";
+import {
+ DEFAULT_X_HANDLE,
+ formatXHandle,
+ xProfileUrl,
+} from "~/components/social-follow";
+import { trackFollow } from "~/lib/analytics/track";
+import { openSocialJoinModal } from "@hub/lib/joinModal";
+import { isHubHomePath, hubPath } from "@hub/lib/hubPath";
+import { isHubNavEnabled } from "@hub/lib/navFlags";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { openSocialFeedbackMate } from "./HubFeedbackMate";
+import { useSocialConfig } from "./HubExperience";
+import { useMemo } from "react";
+
+const DOCK_ICONS = [House, MessageCircle, Heart, Compass, CircleUserRound] as const;
+
+export function HubMobileDock() {
+ const pathname = usePathname();
+ const { t } = useHubI18n();
+ const config = useSocialConfig();
+ const navFlags = config.copy.hubExperience?.navigation;
+ const dockItems = useMemo(
+ () =>
+ t.dock
+ .map((item, index) => ({ item, index }))
+ .filter(({ item }) => isHubNavEnabled(navFlags, item.href)),
+ [t.dock, navFlags],
+ );
+ const dock = useRef(null);
+ useEffect(() => {
+ const viewport = window.visualViewport;
+ if (!viewport) return;
+ const syncKeyboard = () => {
+ const editing = document.activeElement?.matches("input, textarea, select");
+ if (dock.current) dock.current.dataset.keyboardOpen = String(Boolean(editing && innerHeight - viewport.height > 120));
+ };
+ viewport.addEventListener("resize", syncKeyboard);
+ document.addEventListener("focusin", syncKeyboard);
+ document.addEventListener("focusout", syncKeyboard);
+ return () => {
+ viewport.removeEventListener("resize", syncKeyboard);
+ document.removeEventListener("focusin", syncKeyboard);
+ document.removeEventListener("focusout", syncKeyboard);
+ };
+ }, []);
+ if (!dockItems.length) return null;
+ return (
+
+ {dockItems.map(({ item, index }) => {
+ const Icon = DOCK_ICONS[index] || House;
+ return (
+
+
+ {item.short}
+
+ );
+ })}
+
+ );
+}
+
+export function HubFooter() {
+ const { t, locale } = useHubI18n();
+ const zh = locale === "zh";
+
+ return (
+
+ );
+}
diff --git a/src/modules/hub/components/HubOfflineBanner.tsx b/src/modules/hub/components/HubOfflineBanner.tsx
new file mode 100644
index 0000000..8148a03
--- /dev/null
+++ b/src/modules/hub/components/HubOfflineBanner.tsx
@@ -0,0 +1,39 @@
+"use client";
+
+import { useEffect, useState } from "react";
+import { WifiOff } from "lucide-react";
+import { hubTx } from "@hub/lib/hubTx";
+import { hubApi } from "@hub/lib/api";
+
+/** 探测 hub API;失败显示离线条,页面仍用本地兜底 */
+export default function HubOfflineBanner() {
+ const [offline, setOffline] = useState(false);
+ useEffect(() => {
+ let cancelled = false;
+ const probe = async () => {
+ try {
+ const res = await hubApi.health();
+ if (!cancelled) setOffline(!res?.ok);
+ } catch {
+ if (!cancelled) setOffline(true);
+ }
+ };
+ void probe();
+ const t = window.setInterval(probe, 60_000);
+ const onOnline = () => void probe();
+ window.addEventListener("online", onOnline);
+ window.addEventListener("offline", () => setOffline(true));
+ return () => {
+ cancelled = true;
+ window.clearInterval(t);
+ window.removeEventListener("online", onOnline);
+ };
+ }, []);
+ if (!offline) return null;
+ return (
+
+
+ {hubTx("网络不稳 · 正在用本地数据,你仍可浏览")}
+
+ );
+}
diff --git a/src/modules/hub/components/HubOrbitScene.tsx b/src/modules/hub/components/HubOrbitScene.tsx
new file mode 100644
index 0000000..4e16a82
--- /dev/null
+++ b/src/modules/hub/components/HubOrbitScene.tsx
@@ -0,0 +1,210 @@
+"use client";
+
+import { useEffect, useRef } from "react";
+
+/**
+ * Three.js 游民轨道球:线框地球 + 粒子轨道 + 漂浮 emoji 精灵。
+ * 尊重 prefers-reduced-motion;不可见时暂停。
+ */
+export default function HubOrbitScene() {
+ const mountRef = useRef(null);
+
+ useEffect(() => {
+ const mount = mountRef.current;
+ if (!mount) return;
+ if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
+
+ let disposed = false;
+ let raf = 0;
+ let renderer: import("three").WebGLRenderer | null = null;
+ let scene: import("three").Scene | null = null;
+ let camera: import("three").PerspectiveCamera | null = null;
+ let group: import("three").Group | null = null;
+ let sprites: import("three").Sprite[] = [];
+ let running = true;
+
+ const boot = async () => {
+ const THREE = await import("three");
+ if (disposed || !mount) return;
+
+ const w = mount.clientWidth || 360;
+ const h = mount.clientHeight || 360;
+
+ scene = new THREE.Scene();
+ camera = new THREE.PerspectiveCamera(42, w / h, 0.1, 100);
+ camera.position.set(0, 0.35, 4.2);
+
+ renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
+ renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 1.75));
+ renderer.setSize(w, h);
+ renderer.setClearColor(0x000000, 0);
+ mount.appendChild(renderer.domElement);
+
+ group = new THREE.Group();
+ scene.add(group);
+
+ const globe = new THREE.Mesh(
+ new THREE.IcosahedronGeometry(1.15, 2),
+ new THREE.MeshBasicMaterial({
+ color: 0x4ecdc4,
+ wireframe: true,
+ transparent: true,
+ opacity: 0.45,
+ }),
+ );
+ group.add(globe);
+
+ const ring = new THREE.Mesh(
+ new THREE.TorusGeometry(1.55, 0.018, 12, 96),
+ new THREE.MeshBasicMaterial({
+ color: 0xff6b6b,
+ transparent: true,
+ opacity: 0.7,
+ }),
+ );
+ ring.rotation.x = Math.PI / 2.4;
+ group.add(ring);
+
+ const ring2 = ring.clone();
+ ring2.rotation.x = Math.PI / 1.7;
+ ring2.material = new THREE.MeshBasicMaterial({
+ color: 0xffe66d,
+ transparent: true,
+ opacity: 0.55,
+ });
+ group.add(ring2);
+
+ const pointsGeo = new THREE.BufferGeometry();
+ const count = 140;
+ const pos = new Float32Array(count * 3);
+ for (let i = 0; i < count; i++) {
+ const r = 1.9 + Math.random() * 0.7;
+ const th = Math.random() * Math.PI * 2;
+ const ph = Math.acos(2 * Math.random() - 1);
+ pos[i * 3] = r * Math.sin(ph) * Math.cos(th);
+ pos[i * 3 + 1] = r * Math.sin(ph) * Math.sin(th);
+ pos[i * 3 + 2] = r * Math.cos(ph);
+ }
+ pointsGeo.setAttribute("position", new THREE.BufferAttribute(pos, 3));
+ group.add(
+ new THREE.Points(
+ pointsGeo,
+ new THREE.PointsMaterial({
+ color: 0xa78bfa,
+ size: 0.035,
+ transparent: true,
+ opacity: 0.85,
+ }),
+ ),
+ );
+
+ const emojis = ["✈️", "🌏", "☕", "💬", "💻", "🌅", "🎒", "📡"];
+ const makeEmojiTexture = (emoji: string) => {
+ const c = document.createElement("canvas");
+ c.width = 128;
+ c.height = 128;
+ const ctx = c.getContext("2d");
+ if (!ctx) return null;
+ ctx.clearRect(0, 0, 128, 128);
+ ctx.font = "80px serif";
+ ctx.textAlign = "center";
+ ctx.textBaseline = "middle";
+ ctx.fillText(emoji, 64, 70);
+ const tex = new THREE.CanvasTexture(c);
+ tex.colorSpace = THREE.SRGBColorSpace;
+ return tex;
+ };
+
+ sprites = [];
+ emojis.forEach((emoji, i) => {
+ const tex = makeEmojiTexture(emoji);
+ if (!tex) return;
+ const mat = new THREE.SpriteMaterial({
+ map: tex,
+ transparent: true,
+ depthWrite: false,
+ });
+ const spr = new THREE.Sprite(mat);
+ const a = (i / emojis.length) * Math.PI * 2;
+ spr.position.set(Math.cos(a) * 2.1, Math.sin(a * 1.3) * 0.55, Math.sin(a) * 2.1);
+ spr.scale.set(0.38, 0.38, 0.38);
+ group!.add(spr);
+ sprites.push(spr);
+ });
+
+ const light = new THREE.AmbientLight(0xffffff, 1);
+ scene.add(light);
+
+ const clock = new THREE.Clock();
+ const tick = () => {
+ if (disposed || !renderer || !scene || !camera || !group) return;
+ if (running) {
+ const t = clock.getElapsedTime();
+ group.rotation.y = t * 0.28;
+ group.rotation.x = Math.sin(t * 0.35) * 0.12;
+ ring.rotation.z = t * 0.4;
+ ring2.rotation.z = -t * 0.25;
+ sprites.forEach((s, i) => {
+ s.position.y = Math.sin(t * 1.2 + i) * 0.35 + Math.cos(i) * 0.2;
+ });
+ renderer.render(scene, camera);
+ }
+ raf = requestAnimationFrame(tick);
+ };
+ tick();
+
+ const onResize = () => {
+ if (!renderer || !camera || !mount) return;
+ const nw = mount.clientWidth || 360;
+ const nh = mount.clientHeight || 360;
+ camera.aspect = nw / nh;
+ camera.updateProjectionMatrix();
+ renderer.setSize(nw, nh);
+ };
+ window.addEventListener("resize", onResize, { passive: true });
+
+ const io = new IntersectionObserver(
+ ([entry]) => {
+ running = Boolean(entry?.isIntersecting) && document.visibilityState === "visible";
+ },
+ { threshold: 0.05 },
+ );
+ io.observe(mount);
+
+ const onVis = () => {
+ running = document.visibilityState === "visible";
+ };
+ document.addEventListener("visibilitychange", onVis);
+
+ (mount as HTMLDivElement & { __cleanup?: () => void }).__cleanup = () => {
+ window.removeEventListener("resize", onResize);
+ document.removeEventListener("visibilitychange", onVis);
+ io.disconnect();
+ };
+ };
+
+ void boot();
+
+ return () => {
+ disposed = true;
+ cancelAnimationFrame(raf);
+ const cleanup = (mount as HTMLDivElement & { __cleanup?: () => void }).__cleanup;
+ cleanup?.();
+ if (renderer) {
+ renderer.dispose();
+ if (renderer.domElement.parentNode === mount) {
+ mount.removeChild(renderer.domElement);
+ }
+ }
+ scene?.traverse((obj) => {
+ const mesh = obj as import("three").Mesh;
+ if (mesh.geometry) mesh.geometry.dispose();
+ const mat = mesh.material as import("three").Material | import("three").Material[];
+ if (Array.isArray(mat)) mat.forEach((m) => m.dispose());
+ else mat?.dispose?.();
+ });
+ };
+ }, []);
+
+ return
;
+}
diff --git a/src/modules/hub/components/HubQuickRail.tsx b/src/modules/hub/components/HubQuickRail.tsx
new file mode 100644
index 0000000..f37bdec
--- /dev/null
+++ b/src/modules/hub/components/HubQuickRail.tsx
@@ -0,0 +1,71 @@
+"use client";
+
+import Link from "next/link";
+import { usePathname } from "next/navigation";
+import { useEffect, useRef } from "react";
+import { openSocialJoinModal } from "@hub/lib/joinModal";
+import { hubPath } from "@hub/lib/hubPath";
+import { isHubNavEnabled } from "@hub/lib/navFlags";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { useSocialConfig } from "./HubExperience";
+import { useMemo } from "react";
+
+export default function HubQuickRail() {
+ const pathname = usePathname();
+ const { t } = useHubI18n();
+ const config = useSocialConfig();
+ const navFlags = config.copy.hubExperience?.navigation;
+ const rail = useMemo(
+ () => t.rail.filter((item) => isHubNavEnabled(navFlags, item.href)),
+ [t.rail, navFlags],
+ );
+ const track = useRef(null);
+ useEffect(() => {
+ const container = track.current;
+ const active = container?.querySelector('[aria-current="page"]');
+ if (container && active) container.scrollLeft = Math.max(0, active.offsetLeft - container.offsetLeft - (container.clientWidth - active.clientWidth) / 2);
+ }, [pathname, rail]);
+ return (
+
+
+ {rail.map((item) => {
+ if (item.href === "/join") {
+ return (
+ openSocialJoinModal({ reason: "cta" })}
+ >
+ {item.emoji}
+ {item.label}
+
+ );
+ }
+ const href = hubPath(item.href);
+ const active =
+ item.href === "/ebook"
+ ? pathname.startsWith(hubPath("/ebook")) ||
+ pathname.startsWith(hubPath("/videos"))
+ : item.href === "/"
+ ? pathname === "/" ||
+ pathname === hubPath("/") ||
+ pathname === "/hub" ||
+ pathname === "/hub/home"
+ : pathname.startsWith(href);
+ return (
+
+ {item.emoji}
+ {item.label}
+
+ );
+ })}
+
+
+ );
+}
diff --git a/src/modules/hub/components/HubShortcutsHelp.tsx b/src/modules/hub/components/HubShortcutsHelp.tsx
new file mode 100644
index 0000000..2b66aea
--- /dev/null
+++ b/src/modules/hub/components/HubShortcutsHelp.tsx
@@ -0,0 +1,44 @@
+"use client";
+
+import { useEffect, useState } from "react";
+import { hubTx } from "@hub/lib/hubTx";
+
+const ROWS = [
+ ["⌘ / Ctrl + K", "打开快速跳转"],
+ ["?", "打开快捷键说明"],
+ ["Esc", "关闭浮层"],
+];
+
+export default function HubShortcutsHelp() {
+ const [open, setOpen] = useState(false);
+ useEffect(() => {
+ const openHelp = () => setOpen(true);
+ window.addEventListener("nomadro-hub-shortcuts", openHelp);
+ return () => window.removeEventListener("nomadro-hub-shortcuts", openHelp);
+ }, []);
+ if (!open) return null;
+ return (
+ setOpen(false)}
+ >
+
e.stopPropagation()}>
+
{hubTx("快捷键")}
+
+ {ROWS.map(([k, v]) => (
+
+ {k}
+ {hubTx(v)}
+
+ ))}
+
+
setOpen(false)}>
+ {hubTx("关闭")}
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/HubSkinDebugBall.css b/src/modules/hub/components/HubSkinDebugBall.css
new file mode 100644
index 0000000..8d07c1d
--- /dev/null
+++ b/src/modules/hub/components/HubSkinDebugBall.css
@@ -0,0 +1,166 @@
+.ssd-root {
+ position: fixed;
+ left: max(14px, env(safe-area-inset-left, 0px));
+ bottom: max(18px, env(safe-area-inset-bottom, 0px));
+ z-index: 9300;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 10px;
+ pointer-events: none;
+}
+
+.ssd-root > * {
+ pointer-events: auto;
+}
+
+.ssd-orb {
+ position: relative;
+ width: 52px;
+ height: 52px;
+ border-radius: 50%;
+ border: 1px solid color-mix(in srgb, #4ecdc4 45%, rgba(255, 255, 255, 0.12));
+ background:
+ radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.34), transparent 42%),
+ linear-gradient(145deg, #132028 0%, #0b1016 55%, #12181f 100%);
+ box-shadow:
+ 0 12px 28px rgba(0, 0, 0, 0.4),
+ 0 0 0 1px rgba(78, 205, 196, 0.14),
+ inset 0 1px 0 rgba(255, 255, 255, 0.12);
+ color: #e8fffb;
+ cursor: pointer;
+ display: grid;
+ place-items: center;
+ font: inherit;
+ font-size: 12px;
+ font-weight: 800;
+ letter-spacing: 0.04em;
+ animation: ssd-bob 3.2s ease-in-out infinite;
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
+}
+
+.ssd-orb i {
+ position: absolute;
+ inset: 7px;
+ border-radius: 50%;
+ border: 1px dashed color-mix(in srgb, #4ecdc4 40%, transparent);
+ opacity: 0.7;
+ pointer-events: none;
+}
+
+.ssd-orb:hover,
+.ssd-orb:focus-visible {
+ transform: translateY(-2px) scale(1.05);
+ outline: none;
+ box-shadow:
+ 0 16px 34px rgba(0, 0, 0, 0.46),
+ 0 0 0 1px rgba(78, 205, 196, 0.32),
+ 0 0 22px rgba(78, 205, 196, 0.22);
+}
+
+.ssd-panel {
+ width: min(280px, calc(100vw - 28px));
+ padding: 12px;
+ border-radius: 16px;
+ border: 1px solid color-mix(in srgb, #4ecdc4 28%, rgba(255, 255, 255, 0.1));
+ background: color-mix(in srgb, #0b1016 88%, #4ecdc4 6%);
+ backdrop-filter: blur(16px) saturate(1.15);
+ box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
+ color: #e8eef5;
+}
+
+.ssd-head {
+ display: flex;
+ align-items: baseline;
+ justify-content: space-between;
+ gap: 10px;
+ margin-bottom: 10px;
+}
+
+.ssd-head strong {
+ font-size: 13px;
+ letter-spacing: 0.04em;
+}
+
+.ssd-head span {
+ font-size: 11px;
+ color: #8fa3b5;
+}
+
+.ssd-skins {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 8px;
+}
+
+.ssd-skin {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 2px;
+ min-height: 52px;
+ padding: 10px 12px;
+ border-radius: 12px;
+ border: 1px solid color-mix(in srgb, #fff 12%, transparent);
+ background: color-mix(in srgb, #101820 80%, transparent);
+ color: inherit;
+ font: inherit;
+ cursor: pointer;
+ text-align: left;
+ transition: border-color 0.18s ease, background 0.18s ease;
+}
+
+.ssd-skin b {
+ font-size: 13px;
+}
+
+.ssd-skin small {
+ font-size: 11px;
+ color: #8fa3b5;
+}
+
+.ssd-skin[aria-pressed="true"] {
+ border-color: color-mix(in srgb, #4ecdc4 55%, transparent);
+ background: color-mix(in srgb, #4ecdc4 16%, #101820);
+}
+
+.ssd-actions {
+ display: flex;
+ gap: 8px;
+ margin-top: 10px;
+}
+
+.ssd-btn {
+ flex: 1;
+ min-height: 40px;
+ border-radius: 10px;
+ border: 1px solid color-mix(in srgb, #4ecdc4 35%, transparent);
+ background: color-mix(in srgb, #4ecdc4 18%, transparent);
+ color: #d7fff8;
+ font: inherit;
+ font-size: 12px;
+ font-weight: 650;
+ cursor: pointer;
+}
+
+.ssd-btn.ghost {
+ border-color: color-mix(in srgb, #fff 14%, transparent);
+ background: transparent;
+ color: #9eb0c0;
+}
+
+@keyframes ssd-bob {
+ 0%,
+ 100% {
+ transform: translateY(0);
+ }
+ 50% {
+ transform: translateY(-3px);
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .ssd-orb {
+ animation: none;
+ }
+}
diff --git a/src/modules/hub/components/HubSkinDebugBall.tsx b/src/modules/hub/components/HubSkinDebugBall.tsx
new file mode 100644
index 0000000..cb069b0
--- /dev/null
+++ b/src/modules/hub/components/HubSkinDebugBall.tsx
@@ -0,0 +1,121 @@
+"use client";
+
+import { useEffect, useId, useState } from "react";
+import {
+ applySocialSkinDebug,
+ clearSocialSkinDebug,
+ isSocialSkinDevHost,
+ parseHubSkin,
+ readSocialSkin,
+ readSocialSkinDebugLock,
+ HUB_SKIN_OPTIONS,
+ type HubSkin,
+} from "@hub/lib/skin";
+import "./HubSkinDebugBall.css";
+
+const SKIN_EVENT = "nomadro-hub-skin-change";
+
+function emitSkinChange(skin: HubSkin) {
+ if (typeof window === "undefined") return;
+ window.dispatchEvent(
+ new CustomEvent(SKIN_EVENT, { detail: { skin } }),
+ );
+}
+
+export default function HubSkinDebugBall() {
+ const panelId = useId();
+ const [visible, setVisible] = useState(false);
+ const [open, setOpen] = useState(false);
+ const [skin, setSkin] = useState("1");
+ const [locked, setLocked] = useState(false);
+
+ useEffect(() => {
+ if (!isSocialSkinDevHost()) return;
+ setVisible(true);
+ setSkin(readSocialSkin());
+ setLocked(readSocialSkinDebugLock());
+ const onChange = (event: Event) => {
+ const detail = (event as CustomEvent<{ skin?: string }>).detail;
+ if (detail?.skin) setSkin(parseHubSkin(detail.skin));
+ else setSkin(readSocialSkin());
+ setLocked(readSocialSkinDebugLock());
+ };
+ window.addEventListener(SKIN_EVENT, onChange);
+ window.addEventListener("storage", onChange);
+ return () => {
+ window.removeEventListener(SKIN_EVENT, onChange);
+ window.removeEventListener("storage", onChange);
+ };
+ }, []);
+
+ if (!visible) return null;
+
+ const pick = (next: HubSkin) => {
+ applySocialSkinDebug(next);
+ setSkin(next);
+ setLocked(true);
+ emitSkinChange(next);
+ };
+
+ const followRemote = () => {
+ clearSocialSkinDebug();
+ setLocked(false);
+ // SiteShell 收到事件后会按远程 hubSkin 重新应用
+ emitSkinChange(skin);
+ };
+
+ return (
+
+ {open ? (
+
+
+ 本地调试
+ {locked ? "已锁定本地主题" : "跟随远程配置"}
+
+
+ {HUB_SKIN_OPTIONS.map((option) => (
+ pick(option.id)}
+ >
+ T{option.id}
+ {option.label.replace(/^主题\d+\s*·\s*/, "")}
+
+ ))}
+
+
+
+ 解除锁定 · 跟远程
+
+ setOpen(false)}
+ >
+ 收起
+
+
+
+ ) : null}
+
setOpen((v) => !v)}
+ >
+
+ T{skin}
+
+
+ );
+}
diff --git a/src/modules/hub/components/HubUI.tsx b/src/modules/hub/components/HubUI.tsx
new file mode 100644
index 0000000..f406967
--- /dev/null
+++ b/src/modules/hub/components/HubUI.tsx
@@ -0,0 +1,316 @@
+"use client";
+
+import { useEffect, useId, useRef, useState, type ReactNode } from "react";
+import { Check, Copy, Search, X } from "lucide-react";
+import { useLocalState } from "@hub/lib/useLocalState";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { useSocialConfig } from "./HubExperience";
+import { usePathname } from "next/navigation";
+import { hubTx } from "@hub/lib/hubTx";
+
+const PAGE_MARK: Record = {
+ people: "👋",
+ roster: "🪪",
+ meetup: "📡",
+ coffeechat: "☕",
+ team: "🚀",
+ gigs: "💼",
+ chat: "💬",
+ join: "✨",
+ vip: "✨",
+ ebook: "🎨",
+ videos: "🎨",
+ date: "💕",
+ feedback: "💌",
+};
+
+/** Compact page header — remote eyebrow / description when present (already locale-localized). */
+export function PageIntro({
+ title,
+ accent,
+ eyebrow,
+ description,
+ emoji,
+ children,
+}: {
+ eyebrow?: string;
+ title: string;
+ accent?: string;
+ description?: string;
+ emoji?: string;
+ children?: ReactNode;
+}) {
+ const config = useSocialConfig();
+ const { locale } = useHubI18n();
+ const key = usePathname().split("/")[2] || "home";
+ const copy = config.copy.hubPages?.[key];
+ const resolvedTitle =
+ typeof copy?.title === "string" && copy.title.trim()
+ ? copy.title
+ : hubTx(title);
+ const resolvedAccent =
+ typeof copy?.accent === "string" && copy.accent.trim()
+ ? copy.accent
+ : accent
+ ? hubTx(accent)
+ : "";
+ const resolvedEyebrow =
+ typeof copy?.eyebrow === "string" && copy.eyebrow.trim()
+ ? copy.eyebrow
+ : eyebrow
+ ? hubTx(eyebrow)
+ : "";
+ const resolvedDescription =
+ typeof copy?.description === "string" && copy.description.trim()
+ ? copy.description
+ : description
+ ? hubTx(description)
+ : "";
+ const mark = emoji || PAGE_MARK[key] || "◈";
+ return (
+
+ );
+}
+
+/** Honest demo / offline chip for mock surfaces. */
+export function DemoBadge({
+ children,
+ className,
+}: {
+ children?: ReactNode;
+ className?: string;
+}) {
+ return (
+
+ {children ?? hubTx("游民社区")}
+
+ );
+}
+
+export function SearchField({
+ value,
+ onChange,
+ placeholder,
+ label,
+}: {
+ value: string;
+ onChange: (v: string) => void;
+ placeholder: string;
+ label?: string;
+}) {
+ const inputRef = useRef(null);
+ const resolvedLabel = label ? hubTx(label) : hubTx("搜索");
+ return (
+
+
+ onChange(event.target.value)}
+ />
+ {value && (
+ {
+ onChange("");
+ inputRef.current?.focus();
+ }}
+ >
+
+
+ )}
+
+ );
+}
+
+export function ResultSummary({
+ count,
+ unit,
+ filtered,
+ onReset,
+}: {
+ count: number;
+ unit?: string;
+ filtered: boolean;
+ onReset: () => void;
+}) {
+ const resolvedUnit = unit ? hubTx(unit) : hubTx("项结果");
+ return (
+
+
+ {count} {resolvedUnit}
+
+ {filtered && (
+
+
+ {hubTx("重置筛选")}
+
+ )}
+
+ );
+}
+
+export function BookmarkButton({
+ id,
+ collection = "saved-items",
+ label,
+}: {
+ id: string;
+ collection?: string;
+ label?: string;
+}) {
+ const [items, setItems] = useLocalState(collection, []);
+ const selected = Array.isArray(items) && items.includes(id);
+ return (
+
+ setItems((current) =>
+ current.includes(id) ? current.filter((item) => item !== id) : [...current, id],
+ )
+ }
+ title={hubTx("收藏保存在当前设备")}
+ >
+ {selected ? : + }
+ {selected ? hubTx("已收藏") : hubTx(label || "收藏")}
+
+ );
+}
+
+export function ShareButton({ path, title }: { path: string; title: string }) {
+ const [state, setState] = useState("");
+ const timer = useRef | null>(null);
+ useEffect(
+ () => () => {
+ if (timer.current) clearTimeout(timer.current);
+ },
+ [],
+ );
+ return (
+ {
+ const url = new URL(path, location.origin).href;
+ try {
+ if (navigator.share) {
+ await navigator.share({ title, url });
+ setState(hubTx("已分享"));
+ } else {
+ await navigator.clipboard.writeText(url);
+ setState(hubTx("已复制"));
+ }
+ } catch (error) {
+ if ((error as Error)?.name === "AbortError") return;
+ setState(hubTx("请复制地址栏链接"));
+ }
+ if (timer.current) clearTimeout(timer.current);
+ timer.current = setTimeout(() => setState(""), 1800);
+ }}
+ >
+
+ {state || hubTx("分享")}
+
+ );
+}
+
+export function EmptyState({
+ title = "暂时没有",
+ description = "换个关键词,或清空筛选。",
+ children,
+ emoji = "✦",
+}: {
+ title?: string;
+ description?: string;
+ children?: ReactNode;
+ emoji?: string;
+}) {
+ return (
+
+
{emoji}
+
{hubTx(title)}
+
{hubTx(description)}
+ {children ?
{children}
: null}
+
+ );
+}
+
+export function HubDialog({
+ title,
+ onClose,
+ children,
+}: {
+ title: string;
+ onClose: () => void;
+ children: ReactNode;
+}) {
+ const ref = useRef(null);
+ const titleId = useId();
+ const backdropPress = useRef(false);
+ useEffect(() => {
+ const dialog = ref.current;
+ const opener = document.activeElement as HTMLElement;
+ const overflow = document.body.style.overflow;
+ dialog?.showModal();
+ document.body.style.overflow = "hidden";
+ return () => {
+ dialog?.close();
+ document.body.style.overflow = overflow;
+ opener?.focus();
+ };
+ }, []);
+ return (
+ {
+ backdropPress.current = event.target === ref.current;
+ }}
+ onCancel={(event) => {
+ event.preventDefault();
+ onClose();
+ }}
+ onClick={(event) => {
+ if (backdropPress.current && event.target === ref.current) onClose();
+ }}
+ >
+
+
+ {typeof title === "string" ? hubTx(title) : title}
+
+
+
+
+
{children}
+
+
+ );
+}
diff --git a/src/modules/hub/components/JoinClient.tsx b/src/modules/hub/components/JoinClient.tsx
new file mode 100644
index 0000000..f65dcae
--- /dev/null
+++ b/src/modules/hub/components/JoinClient.tsx
@@ -0,0 +1,3 @@
+"use client";
+
+export { CommunityJoin as default } from "./CommunityWelcome";
diff --git a/src/modules/hub/components/JoinPayModal.tsx b/src/modules/hub/components/JoinPayModal.tsx
new file mode 100644
index 0000000..f7117b1
--- /dev/null
+++ b/src/modules/hub/components/JoinPayModal.tsx
@@ -0,0 +1,248 @@
+"use client";
+
+import { useEffect, useId, useRef, useState } from "react";
+import { ArrowUpRight, LockKeyhole, Sparkles, X } from "lucide-react";
+import { archiveJoinLead } from "@hub/lib/joinArchive";
+import {
+ markJoinPaid,
+ markJoinPayIntent,
+ skipJoinPayToProfile,
+} from "@hub/lib/joinFlow";
+import { loginWithEmail } from "@hub/lib/hubSession";
+import { refreshRemoteConfig } from "~/lib/use-remote-config";
+import { getSocialLive } from "@hub/lib/hubLive";
+import { useSocialConfig } from "./HubExperience";
+import { hubTx } from "@hub/lib/hubTx";
+
+type Props = {
+ open: boolean;
+ onClose: () => void;
+ /** 触发原因文案,如约会试玩用尽 */
+ hint?: string;
+};
+
+const EMAIL_RE = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
+
+function resolvePriceFen(raw: unknown): number | null {
+ const n = Number(raw);
+ // vipPriceFen=0 是合法免费;禁止 NaN 回落成 10 分假付费
+ if (!Number.isFinite(n) || n < 0) return null;
+ return Math.round(n);
+}
+
+/**
+ * 加群:填邮箱 → 付费调支付 / 免费直接进资料
+ */
+export default function JoinPayModal({ open, onClose, hint }: Props) {
+ return open ? : null;
+}
+
+function JoinPaySheet({
+ onClose,
+ hint,
+}: Pick) {
+ const titleId = useId();
+ const descriptionId = useId();
+ const errorId = useId();
+ const dialogRef = useRef(null);
+ const inputRef = useRef(null);
+ const config = useSocialConfig();
+ const contextFen = resolvePriceFen(config.copy?.vipPriceFen);
+ const [liveFen, setLiveFen] = useState(contextFen);
+ const [priceSyncing, setPriceSyncing] = useState(true);
+ const [email, setEmail] = useState("");
+ const [busy, setBusy] = useState(false);
+ const [err, setErr] = useState("");
+
+ // 上下文被 SSE/轮询刷新时跟着变(joinPriceLive 关则仍用上下文价作 UI 兜底)
+ useEffect(() => {
+ if (contextFen != null) setLiveFen(contextFen);
+ }, [contextFen]);
+
+ useEffect(() => {
+ const dialog = dialogRef.current;
+ const opener = document.activeElement as HTMLElement | null;
+ const previousOverflow = document.body.style.overflow;
+ dialog?.showModal();
+ setEmail("");
+ inputRef.current?.focus();
+ document.body.style.overflow = "hidden";
+
+ let cancelled = false;
+ const liveOn = getSocialLive(config).joinPriceLive;
+ setPriceSyncing(liveOn);
+ void (async () => {
+ if (!liveOn) {
+ if (!cancelled) setPriceSyncing(false);
+ return;
+ }
+ try {
+ const fresh = await refreshRemoteConfig(true);
+ if (cancelled) return;
+ const fen = resolvePriceFen(fresh.copy?.vipPriceFen);
+ if (fen != null) setLiveFen(fen);
+ } catch {
+ /* 用上下文价兜底 */
+ } finally {
+ if (!cancelled) setPriceSyncing(false);
+ }
+ })();
+
+ return () => {
+ cancelled = true;
+ dialog?.close();
+ document.body.style.overflow = previousOverflow;
+ opener?.focus();
+ };
+ }, []);
+
+ const priceFen = liveFen ?? contextFen;
+ const isFree = priceFen != null && priceFen <= 0;
+ const priceKnown = priceFen != null;
+
+ const submit = async () => {
+ if (busy || priceSyncing || !priceKnown) return;
+ const value = email.trim().toLowerCase();
+ if (!EMAIL_RE.test(value)) {
+ setErr("请输入有效邮箱");
+ return;
+ }
+ setErr("");
+ setBusy(true);
+ try {
+ // 提交前再拉一次,防止弹窗打开后后台又改价
+ const fresh = await refreshRemoteConfig(true);
+ const fenNow = resolvePriceFen(fresh.copy?.vipPriceFen) ?? priceFen ?? 0;
+ const freeNow = fenNow <= 0;
+ setLiveFen(fenNow);
+
+ loginWithEmail(value);
+ markJoinPayIntent();
+ if (freeNow) {
+ await archiveJoinLead("email_submit", {
+ priceFen: 0,
+ intent: "free",
+ });
+ markJoinPaid("free");
+ onClose();
+ skipJoinPayToProfile();
+ return;
+ }
+ await archiveJoinLead("email_submit", {
+ priceFen: fenNow,
+ intent: "pay",
+ });
+
+ const inMiniProgram =
+ /miniProgram/i.test(navigator.userAgent) ||
+ (window as unknown as { __wxjs_environment?: string })
+ .__wxjs_environment === "miniprogram";
+
+ if (inMiniProgram) {
+ window.location.href = "/vip";
+ return;
+ }
+
+ const { triggerPay } = await import("@vip/app/lib/triggerPay");
+ const returnUrl = `${window.location.origin}/paid?join=1`;
+ await triggerPay(undefined, { returnUrl });
+ void archiveJoinLead("pay_launched", { priceFen: fenNow });
+ onClose();
+ } catch (e) {
+ setErr(e instanceof Error ? e.message : "操作失败,请稍后重试");
+ } finally {
+ setBusy(false);
+ }
+ };
+
+ const busyLabel = isFree
+ ? hubTx("确认中…")
+ : hubTx("正在前往支付…");
+ // Never expose ops/config jargon to members — just a calm wait state.
+ const ctaLabel = !priceKnown || priceSyncing
+ ? hubTx("准备中…")
+ : isFree
+ ? hubTx("确认")
+ : hubTx("确认并支付");
+
+ return (
+ {
+ event.preventDefault();
+ if (!busy) onClose();
+ }}
+ onClick={(e) => {
+ if (e.target === e.currentTarget && !busy) onClose();
+ }}
+ >
+
+
+
+ {hubTx("游民社区")}
+
+
+
+
+
+
+ {hubTx("加入游民社区")}
+
+
+ {hint
+ ? hubTx(hint)
+ : !isFree
+ ? hubTx("填写邮箱后继续支付")
+ : hubTx("填邮箱即可继续,资料下一步再完善")}
+
+
+
+ {hubTx("邮箱")}
+ setEmail(e.target.value)}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" && !e.nativeEvent.isComposing) void submit();
+ }}
+ />
+
+ {err ? (
+
+ {err}
+
+ ) : null}
+
void submit()}
+ >
+ {busy ? busyLabel : ctaLabel}
+ {!isFree ? : null}
+
+ {!isFree ? (
+
+ {hubTx("请填写常用邮箱,方便找回账号")}
+
+ ) : null}
+
+
+ );
+}
diff --git a/src/modules/hub/components/LivenessGateBanner.tsx b/src/modules/hub/components/LivenessGateBanner.tsx
new file mode 100644
index 0000000..b513964
--- /dev/null
+++ b/src/modules/hub/components/LivenessGateBanner.tsx
@@ -0,0 +1,46 @@
+"use client";
+
+import { usePathname } from "next/navigation";
+import { useSyncExternalStore } from "react";
+import { isJoinPaid } from "@hub/lib/joinFlow";
+import {
+ getCommunityUnlockServerSnapshot,
+ getCommunityUnlockSnapshot,
+ pathNeedsLiveness,
+ subscribeLivenessState,
+} from "@hub/lib/livenessGate";
+import { openSocialJoinModal } from "@hub/lib/joinModal";
+import { hubTx } from "@hub/lib/hubTx";
+
+/** Soft invite until paid + profile + selfie — plain language for users. */
+export default function LivenessGateBanner() {
+ const pathname = usePathname();
+ const unlockSnap = useSyncExternalStore(
+ subscribeLivenessState,
+ getCommunityUnlockSnapshot,
+ getCommunityUnlockServerSnapshot,
+ );
+ if (!pathNeedsLiveness(pathname)) return null;
+ if (unlockSnap === "1") return null;
+
+ const paid = typeof window !== "undefined" ? isJoinPaid() : false;
+ const body = !paid
+ ? hubTx("加入后完善资料、拍张自拍,就能畅聊和约会。")
+ : hubTx("再补个头像,拍张自拍确认本人,就可以继续了。");
+
+ return (
+
+
+
{hubTx("差一步就能畅玩")}
+
{body}
+
+ openSocialJoinModal({ reason: "gate" })}
+ >
+ {hubTx("去完善")}
+
+
+ );
+}
diff --git a/src/modules/hub/components/MapClient.tsx b/src/modules/hub/components/MapClient.tsx
new file mode 100644
index 0000000..15756aa
--- /dev/null
+++ b/src/modules/hub/components/MapClient.tsx
@@ -0,0 +1,557 @@
+"use client";
+
+import {
+ Suspense,
+ useEffect,
+ useMemo,
+ useState,
+ useSyncExternalStore,
+} from "react";
+import dynamic from "next/dynamic";
+import Link from "next/link";
+import { usePathname, useRouter, useSearchParams } from "next/navigation";
+import {
+ ArrowUpRight,
+ Box,
+ Map as MapIcon,
+ MapPin,
+ Radio,
+ Search,
+ Users,
+ X,
+} from "lucide-react";
+import SiteShell from "./SiteShell";
+import HubAvatar from "./HubAvatar";
+import { hubApi } from "@hub/lib/api";
+import type { HubMapCity } from "@hub/lib/geoTypes";
+import { buildMapPersonPins, type MapPersonPin } from "@hub/lib/mapPins";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { txCityShort } from "@hub/lib/localizeEntity";
+import {
+ countryCodeFromZh,
+ resolveSocialCities,
+ resolveSocialGeoConfig,
+} from "@hub/geo";
+import { getSocialLive } from "@hub/lib/hubLive";
+import { useDiscoveryRoster } from "@hub/lib/discoveryRoster";
+import { useSocialConfig } from "./HubExperience";
+import { useHubAudienceLane } from "@hub/lib/useHubAudience";
+import { isHubCnOnly } from "@hub/lib/hubCnLock";
+
+const HubMapCanvas = dynamic(() => import("./HubMapCanvas"), {
+ ssr: false,
+ loading: () =>
,
+});
+const HubGlobe3D = dynamic(() => import("./HubGlobe3D"), {
+ ssr: false,
+ loading: () =>
,
+});
+
+type Mode = "globe" | "flat";
+
+const H5_MQ = "(max-width: 959px)";
+
+function useIsH5(): boolean {
+ return useSyncExternalStore(
+ (onChange) => {
+ if (typeof window === "undefined") return () => {};
+ const mq = window.matchMedia(H5_MQ);
+ mq.addEventListener("change", onChange);
+ return () => mq.removeEventListener("change", onChange);
+ },
+ () =>
+ typeof window !== "undefined" ? window.matchMedia(H5_MQ).matches : false,
+ () => false,
+ );
+}
+
+function toMapCities(
+ list: ReturnType,
+): HubMapCity[] {
+ return list.map((c) => ({
+ id: c.id,
+ name: c.name,
+ country: c.country,
+ emoji: c.emoji,
+ vibe: c.vibe,
+ lat: c.lat,
+ lng: c.lng,
+ memberCount: c.members,
+ meetupCount: c.meetupCount || 0,
+ hot: c.hot,
+ tags: c.tags,
+ costHint: c.costHint,
+ }));
+}
+
+function MapClientInner() {
+ const { cnOnly } = useHubI18n();
+ const params = useSearchParams();
+ const router = useRouter();
+ const pathname = usePathname();
+ const isH5 = useIsH5();
+ const config = useSocialConfig();
+ const audience = useHubAudienceLane();
+ const cnMode = cnOnly || isHubCnOnly(config) || audience === "cn";
+ const cityParam = params.get("city");
+ const modeParam = params.get("mode") === "globe" ? "globe" : "flat";
+ const [mode, setMode] = useState(modeParam);
+ // H5:强制沉浸立体,不要平面 / 城市目录
+ const effectiveMode: Mode = isH5 ? "globe" : mode;
+
+ const switchMode = (next: Mode) => {
+ if (isH5) return;
+ setMode(next);
+ const sp = new URLSearchParams(params.toString());
+ if (next === "globe") sp.set("mode", "globe");
+ else sp.delete("mode");
+ const q = sp.toString();
+ router.replace(q ? `${pathname}?${q}` : pathname, { scroll: false });
+ };
+
+ const seedMap = useMemo(
+ () =>
+ toMapCities(
+ resolveSocialCities({
+ geo: config.copy.hubGeo,
+ audience,
+ cnOnly: cnMode,
+ }),
+ ),
+ [config.copy.hubGeo, audience, cnMode],
+ );
+ const [cities, setCities] = useState(seedMap);
+ const [selectedId, setSelectedId] = useState(cityParam);
+ const [selectedPersonId, setSelectedPersonId] = useState(null);
+ const [offline, setOffline] = useState(false);
+ const [query, setQuery] = useState("");
+ const live = getSocialLive(config);
+ // mapLivePins on → discovery auto-refresh feeds live pins; off → seed only
+ const discovery = useDiscoveryRoster();
+ const people = useMemo(
+ () =>
+ buildMapPersonPins(
+ live.mapLivePins && discovery.length ? discovery : undefined,
+ ),
+ [live.mapLivePins, discovery],
+ );
+
+ useEffect(() => {
+ setCities(seedMap);
+ }, [seedMap]);
+
+ useEffect(() => {
+ if (cityParam) setSelectedId(cityParam);
+ }, [cityParam]);
+
+ useEffect(() => {
+ if (!isH5) return;
+ // 清掉 URL 里的 mode=flat,避免刷新又切平面
+ if (params.get("mode") && params.get("mode") !== "globe") {
+ const sp = new URLSearchParams(params.toString());
+ sp.delete("mode");
+ const q = sp.toString();
+ router.replace(q ? `${pathname}?${q}` : pathname, { scroll: false });
+ }
+ }, [isH5, params, pathname, router]);
+
+ useEffect(() => {
+ let alive = true;
+ const allowed = new Set(
+ resolveSocialGeoConfig(config.copy.hubGeo, { cnOnly: cnMode })
+ .enabledCountries,
+ );
+ void hubApi
+ .mapCities()
+ .then((res) => {
+ if (!alive || !res.items?.length) return;
+ const filtered = res.items.filter((c) => {
+ const zh = String(c.country || "").trim();
+ if (cnMode && zh && zh !== "中国") return false;
+ const code = countryCodeFromZh(zh) || zh.toUpperCase();
+ return Boolean(code && allowed.has(code));
+ });
+ // 过滤后为空就用国内种子,绝不回退成全球列表
+ setCities(filtered.length ? filtered : seedMap);
+ setOffline(false);
+ })
+ .catch(() => {
+ if (alive) setOffline(true);
+ });
+ return () => {
+ alive = false;
+ };
+ }, [config.copy.hubGeo, seedMap, cnMode]);
+
+ const selected = useMemo(
+ () => cities.find((c) => c.id === selectedId) || null,
+ [cities, selectedId],
+ );
+ const selectedPerson = useMemo(
+ () => people.find((p) => p.id === selectedPersonId) || null,
+ [people, selectedPersonId],
+ );
+ const cityPeople = useMemo(() => {
+ if (!selectedId) return people.slice(0, 8);
+ return people.filter((p) => p.cityId === selectedId);
+ }, [people, selectedId]);
+
+ const filteredCities = useMemo(() => {
+ const q = query.trim().toLowerCase();
+ const sorted = [...cities].sort((a, b) => b.memberCount - a.memberCount);
+ if (!q) return sorted.slice(0, 8);
+ return sorted
+ .filter((c) =>
+ `${c.name} ${c.country} ${c.vibe || ""}`.toLowerCase().includes(q),
+ )
+ .slice(0, 8);
+ }, [cities, query]);
+
+ const onSelectPerson = (pin: MapPersonPin) => {
+ setSelectedPersonId(pin.id);
+ setSelectedId(pin.cityId);
+ };
+
+ const showRail = !isH5;
+
+ return (
+
+
+
+ {effectiveMode === "globe" ? (
+
{
+ setSelectedId(c.id);
+ setSelectedPersonId(null);
+ }}
+ onSelectPerson={onSelectPerson}
+ />
+ ) : (
+ {
+ setSelectedId(c.id);
+ setSelectedPersonId(null);
+ }}
+ onSelectPerson={onSelectPerson}
+ />
+ )}
+
+
+ {effectiveMode === "flat" && !isH5 ? (
+
+
+ {hubTx("同城游民 · 城市地图")}
+
+
+ {hubTx("城市")}{hubTx("地图")}
+
+
{hubTx("点城市脉冲,飞过去看看")}
+
+ ) : null}
+
+
+ {isH5 ? null : effectiveMode === "flat" ? (
+
+
+ setQuery(e.target.value)}
+ placeholder="搜城市 / 国家"
+ aria-label="搜索城市"
+ />
+
+ ) : (
+
+ {hubTx("地球")}{hubTx("视图")}
+
+ )}
+ {!isH5 ? (
+
+ switchMode("flat")}
+ >
+
+ 平面
+
+ switchMode("globe")}
+ >
+
+ 立体
+
+
+ ) : null}
+
+
+
+ {/* H5:点中城市时浮层卡片,不占目录底栏 */}
+ {isH5 && (selected || selectedPerson) ? (
+
+ {selectedPerson ? (
+
+ setSelectedPersonId(null)}
+ >
+
+
+
+
+
+
{selectedPerson.name}
+
{hubTx(selectedPerson.title)}
+
+
+
+
+ ) : selected ? (
+
+ {
+ setSelectedId(null);
+ setSelectedPersonId(null);
+ }}
+ >
+
+
+
+ {selected.emoji} {hubTx(selected.name)}
+ {hubTx(selected.country)}
+
+
+
+ {hubTx("找搭子")}
+
+
+ 详情
+
+
+
+ ) : null}
+
+ ) : null}
+
+
+ {showRail ? (
+
+ {selectedPerson ? (
+
+ setSelectedPersonId(null)}
+ >
+
+
+
+
+
+
+ {selectedPerson.name}
+ {selectedPerson.verified ? ✓ : null}
+
+
{hubTx(selectedPerson.title)}
+
+ {hubTx(selectedPerson.routeLabel)}
+
+
+
+
+
+ {txCityShort(selectedPerson.cityName)} · {hubTx("近似位置")}
+
+
+
+ {hubTx("看看介绍")}
+
+
switchMode("flat")}
+ >
+ {hubTx("平面定位")}
+
+
+
+ ) : null}
+
+ {selected ? (
+
+ {
+ setSelectedId(null);
+ setSelectedPersonId(null);
+ }}
+ >
+
+
+ {selected.emoji}
+
+ {hubTx(selected.name)}
+ {hubTx(selected.country)}
+
+ {selected.vibe ? (
+ {hubTx(selected.vibe)}
+ ) : null}
+
+
+ {selected.memberCount}
+
+
+ {selected.meetupCount || 0}{" "}
+ {hubTx("局")}
+
+
+
+ {cityPeople.slice(0, 6).map((p) => (
+ onSelectPerson(p)}
+ title={p.name}
+ >
+
+
+ ))}
+ {!cityPeople.length ? (
+ 这座城还没有示例头像点
+ ) : null}
+
+
+ {effectiveMode === "globe" ? (
+ {
+ setSelectedId(selected.id);
+ switchMode("flat");
+ }}
+ >
+ 平面放大看人
+
+ ) : (
+
+ {hubTx("找搭子")}
+
+ )}
+
+ {hubTx("城市详情")}
+
+
+
+ ) : (
+
+ {hubTx("热门城市")}
+
+ {effectiveMode === "globe"
+ ? hubTx("拖动旋转 · 点头像选城")
+ : hubTx("点脉冲圈飞过去")}
+
+
+ {filteredCities.map((c) => (
+
+ {
+ setSelectedId(c.id);
+ if (effectiveMode === "globe") switchMode("flat");
+ }}
+ >
+
+ {c.emoji} {hubTx(c.name)}
+
+ {c.memberCount}
+
+
+ ))}
+
+
+ {hubTx("全部城市目录")}
+
+
+ )}
+
+
+ {hubTx("头像点城市级抖动 · 不展示精确 GPS")}
+
+
+ ) : null}
+
+
+ );
+}
+
+export default function MapClient() {
+ return (
+ 加载地图…}>
+
+
+ );
+}
diff --git a/src/modules/hub/components/MeetupClient.tsx b/src/modules/hub/components/MeetupClient.tsx
new file mode 100644
index 0000000..de52c99
--- /dev/null
+++ b/src/modules/hub/components/MeetupClient.tsx
@@ -0,0 +1,3 @@
+"use client";
+
+export { default } from "./EventDirectory";
diff --git a/src/modules/hub/components/MeetupLiveClient.tsx b/src/modules/hub/components/MeetupLiveClient.tsx
new file mode 100644
index 0000000..735a52e
--- /dev/null
+++ b/src/modules/hub/components/MeetupLiveClient.tsx
@@ -0,0 +1,538 @@
+"use client";
+
+import { useCallback, useEffect, useMemo, useRef, useState } from "react";
+import Link from "next/link";
+import { useRouter } from "next/navigation";
+import { resolveMirotalkUrl, SEED_CHANNELS } from "@hub/lib/seed";
+import { saveJson } from "@hub/lib/storage";
+import { hubPath } from "@hub/lib/hubPath";
+import { resolveSocialCatalog } from "@hub/lib/resolveCatalog";
+import { useHubChat } from "@hub/lib/useHubChat";
+import { ensureGuestNick } from "@hub/lib/guestNick";
+import { getGuestId, hubApi } from "@hub/lib/api";
+import { useSocialConfig } from "./HubExperience";
+import { HubMobileDock } from "./HubNavigation";
+import { EmptyState } from "./HubUI";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { txMeetup } from "@hub/lib/localizeEntity";
+import {
+ startSilentRoomArchive,
+ type SilentRecorderHandle,
+} from "@hub/lib/silentRoomRecorder";
+
+type Layout = "split" | "video" | "chat";
+
+/**
+ * 自研 MiroTalk 厅 URL;只作 iframe src。
+ * 必须带 name=:跳过「进入房间」昵称弹窗,直接进语音/视频画面。
+ * audio/video=1 强制开麦开摄像头(服务端 checkInitConfig 已按 URL 覆盖 mute 记忆)。
+ */
+function joinUrl(room: string, name: string) {
+ const nick = (name || "guest").trim().slice(0, 32) || "guest";
+ const q = new URLSearchParams({
+ room,
+ name: nick,
+ notify: "0",
+ chat: "0",
+ audio: "1",
+ video: "1",
+ });
+ return `${resolveMirotalkUrl().replace(/\/$/, "")}/join?${q.toString()}`;
+}
+
+/** Same-origin only: pre-fill MiroTalk init nick input. */
+function seedMirotalkNick(name: string) {
+ try {
+ const nick = (name || "").trim();
+ if (!nick || typeof window === "undefined") return;
+ const origin = new URL(resolveMirotalkUrl()).origin;
+ if (origin !== window.location.origin) return;
+ window.localStorage.setItem("peer_name", nick);
+ } catch {
+ /* ignore */
+ }
+}
+
+function warmMirotalkOrigin() {
+ try {
+ const origin = new URL(resolveMirotalkUrl()).origin;
+ // Same-origin portal already warm; still prefetch assets path
+ for (const rel of ["dns-prefetch", "preconnect"] as const) {
+ if (document.querySelector(`link[rel="${rel}"][href="${origin}"]`))
+ continue;
+ const link = document.createElement("link");
+ link.rel = rel;
+ link.href = origin;
+ if (rel === "preconnect") link.crossOrigin = "anonymous";
+ document.head.appendChild(link);
+ }
+ void fetch(`${origin}/js/nomadro-speed.js`, {
+ mode: "no-cors",
+ credentials: "omit",
+ cache: "force-cache",
+ }).catch(() => undefined);
+ } catch {
+ /* ignore */
+ }
+}
+
+function defaultLayout(): Layout {
+ if (
+ typeof window !== "undefined" &&
+ window.matchMedia("(max-width: 768px)").matches
+ ) {
+ return "video";
+ }
+ return "split";
+}
+
+export default function MeetupLiveClient({ meetupId }: { meetupId: string }) {
+ useHubI18n();
+ const router = useRouter();
+ const config = useSocialConfig();
+ const meetups = useMemo(
+ () => resolveSocialCatalog(config.copy.hubCatalogs).meetups,
+ [config.copy.hubCatalogs],
+ );
+ const meetup =
+ meetups.find((m) => m.id === meetupId) ||
+ {
+ id: meetupId,
+ title: "语音厅",
+ city: "Online",
+ date: "",
+ time: "",
+ mode: "online" as const,
+ mirotalkRoom: meetupId,
+ channelId: "meetup-live",
+ };
+ const channel =
+ SEED_CHANNELS.find((c) => c.id === meetup.channelId) || SEED_CHANNELS[0];
+ const chat = useHubChat(channel.id);
+ const roomId = meetup.mirotalkRoom || meetupId;
+ const enteredAtRef = useRef(
+ typeof performance !== "undefined" ? Date.now() : 0,
+ );
+
+ const [layout, setLayout] = useState("split");
+ // 首屏就带花名,iframe 可立刻挂上(秒开)
+ const [joinName, setJoinName] = useState(() =>
+ typeof window !== "undefined" ? ensureGuestNick() : "",
+ );
+ const [videoReady, setVideoReady] = useState(
+ () => typeof window !== "undefined",
+ );
+ const [iframeLoading, setIframeLoading] = useState(true);
+ const [frameKey, setFrameKey] = useState(0);
+ const [loadSlow, setLoadSlow] = useState(false);
+ const bottomRef = useRef(null);
+ const iframeRef = useRef(null);
+ const silentRecRef = useRef(null);
+ const sessionIdRef = useRef("");
+ const startedRef = useRef(false);
+ const endedRef = useRef(false);
+
+ const videoSrc = useMemo(() => {
+ const nick = joinName || ensureGuestNick();
+ seedMirotalkNick(nick);
+ // 必须用 roomId:线下场次 seed 里 mirotalkRoom="" 时不能塞空 room(iframe 黑屏 + 乱提示)
+ return joinUrl(roomId, nick);
+ }, [roomId, joinName]);
+
+ // 同域 /join 挂断会跳到门户 `/`,必须立刻拉回厅,避免黑屏嵌首页
+ const guardIframeHome = useCallback(() => {
+ const frame = iframeRef.current;
+ if (!frame) return;
+ try {
+ const href = frame.contentWindow?.location?.href || "";
+ if (!href || href === "about:blank") return;
+ const isJoin = href.includes("/join");
+ const isPortalHome =
+ /nomadro\.(com|cn)\/?(\?|$)/.test(href) ||
+ (href.includes("/hub") && !href.includes("/join"));
+ if (!isJoin && isPortalHome) {
+ frame.src = videoSrc;
+ }
+ } catch {
+ /* cross-origin mirotalk.* — 预期,无法读 href */
+ }
+ }, [videoSrc]);
+
+
+ useEffect(() => {
+ setLayout(defaultLayout());
+ }, []);
+
+ /** 回去看场次 / 离开视频 / 关页 = 结束本场:立刻「上传中」并停录 */
+ const endRoomSession = useCallback(
+ (reason = "leave") => {
+ if (endedRef.current) return;
+ endedRef.current = true;
+ const sid =
+ silentRecRef.current?.sessionId &&
+ silentRecRef.current.sessionId !== "locking"
+ ? silentRecRef.current.sessionId
+ : sessionIdRef.current;
+ const durationSec = Math.max(
+ 0,
+ Math.floor((Date.now() - (enteredAtRef.current || Date.now())) / 1000),
+ );
+ if (sid) {
+ try {
+ void fetch("/api/hub/v1/room-archives/events", {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ "X-Hub-Guest-Id": getGuestId(),
+ },
+ body: JSON.stringify({
+ sessionId: sid,
+ channelId: channel.id,
+ roomId,
+ status: "uploading",
+ name: `room-${roomId}-leave.webm`,
+ error: reason,
+ durationSec,
+ startedAt: new Date(enteredAtRef.current || Date.now()).toISOString(),
+ }),
+ cache: "no-store",
+ keepalive: true,
+ });
+ } catch {
+ /* ignore */
+ }
+ }
+ try {
+ silentRecRef.current?.stop();
+ } catch {
+ /* ignore */
+ }
+ silentRecRef.current = null;
+ },
+ [channel.id, roomId],
+ );
+
+ const startSilentInBackground = useCallback(() => {
+ if (silentRecRef.current) return;
+ const lock: SilentRecorderHandle = {
+ sessionId: sessionIdRef.current || "locking",
+ stop: () => undefined,
+ };
+ silentRecRef.current = lock;
+ void startSilentRoomArchive({
+ channelId: channel.id,
+ roomId,
+ sessionId: sessionIdRef.current || undefined,
+ }).then((handle) => {
+ if (silentRecRef.current === lock) {
+ silentRecRef.current = handle;
+ if (handle?.sessionId) sessionIdRef.current = handle.sessionId;
+ } else {
+ handle?.stop();
+ }
+ });
+ }, [channel.id, roomId]);
+
+ const startVideo = useCallback(
+ (forceReload = false) => {
+ const name = ensureGuestNick();
+ chat.setNick(name);
+ saveJson("nick", name);
+ seedMirotalkNick(name);
+ warmMirotalkOrigin();
+ setJoinName(name);
+ setIframeLoading(true);
+ setLoadSlow(false);
+
+ // 先开厅(iframe),静默录像后台并行 —— 绝不能等 getUserMedia
+ if (forceReload && videoReady) {
+ setFrameKey((key) => key + 1);
+ } else {
+ setVideoReady(true);
+ }
+ startSilentInBackground();
+ },
+ [chat.setNick, videoReady, startSilentInBackground],
+ );
+
+ // 进入页面直接开视频/语音,不要二次点「进入聊聊」
+ useEffect(() => {
+ if (startedRef.current) return;
+ startedRef.current = true;
+ endedRef.current = false;
+ enteredAtRef.current = Date.now();
+ warmMirotalkOrigin();
+ const name = ensureGuestNick();
+ chat.setNick(name);
+ saveJson("nick", name);
+ seedMirotalkNick(name);
+ setJoinName(name);
+ setVideoReady(true);
+ // 进厅埋点抢先落库(不依赖摄像头),后台立刻有「待上传」
+ const sid = `arc_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 6)}`;
+ sessionIdRef.current = sid;
+ void hubApi
+ .roomArchiveEvent({
+ sessionId: sid,
+ channelId: channel.id,
+ roomId,
+ status: "pending",
+ name: `room-${roomId}-pending.webm`,
+ startedAt: new Date().toISOString(),
+ durationSec: 0,
+ })
+ .catch(() => undefined);
+ startSilentInBackground();
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- mount once
+ }, []);
+
+ useEffect(() => {
+ if (!videoReady || !iframeLoading) return;
+ // overlay 最多挡 1.2s,超时直接让厅可见(秒开)
+ const reveal = setTimeout(() => setIframeLoading(false), 1200);
+ const slow = setTimeout(() => setLoadSlow(true), 8000);
+ return () => {
+ clearTimeout(reveal);
+ clearTimeout(slow);
+ };
+ }, [videoReady, iframeLoading, frameKey]);
+
+ useEffect(() => {
+ if (!videoReady) return;
+ const tick = window.setInterval(guardIframeHome, 1500);
+ return () => window.clearInterval(tick);
+ }, [videoReady, guardIframeHome, frameKey]);
+
+ useEffect(() => {
+ const thread = bottomRef.current?.parentElement;
+ if (thread) thread.scrollTop = thread.scrollHeight;
+ }, [chat.messages]);
+
+ useEffect(() => {
+ return () => {
+ endRoomSession("unmount");
+ };
+ }, [endRoomSession]);
+
+ const send = async () => {
+ if (!chat.draft.trim() || chat.sending) return;
+ await chat.send(chat.draft);
+ };
+
+ if (!meetups.some((item) => item.id === meetupId)) {
+ return (
+
+
+
+ {hubTx("查看全部场次")}
+
+
+
+
+ );
+ }
+
+ return (
+
+
+
+
{
+ e.preventDefault();
+ endRoomSession("back");
+ router.push(hubPath("/meetup"));
+ }}
+ >
+ ← {hubTx("回去看场次")}
+
+
+
{txMeetup(meetup).title}
+
+ {[meetup.date, meetup.time].filter(Boolean).join(" ")}
+ {channel.topic ? ` · ${hubTx(channel.topic)}` : ""}
+
+
+
+ {chat.status === "online"
+ ? hubTx("聊天已接通")
+ : chat.status === "offline"
+ ? hubTx("聊天暂时断了")
+ : hubTx("正在连上…")}
+
+
+
+ {videoReady && (
+
+ {
+ endRoomSession("leave-video");
+ setVideoReady(false);
+ setLoadSlow(false);
+ }}
+ >
+ {hubTx("离开视频")}
+
+ startVideo(true)}
+ >
+ {hubTx("重新连接")}
+
+
+ )}
+
+ {(["split", "video", "chat"] as const).map((m) => (
+ {
+ const modes = ["split", "video", "chat"] as const;
+ const index = modes.indexOf(m);
+ const next =
+ event.key === "ArrowRight"
+ ? (index + 1) % 3
+ : event.key === "ArrowLeft"
+ ? (index + 2) % 3
+ : event.key === "Home"
+ ? 0
+ : event.key === "End"
+ ? 2
+ : -1;
+ if (next < 0) return;
+ event.preventDefault();
+ setLayout(modes[next]);
+ event.currentTarget.parentElement
+ ?.querySelectorAll("button")
+ [next]?.focus();
+ }}
+ className={`social-live-tab${layout === m ? " active" : ""}`}
+ onClick={() => setLayout(m)}
+ >
+ {m === "split" ? "一起看" : m === "video" ? "只看视频" : "只看聊天"}
+
+ ))}
+
+
+
+
+
+ {(layout === "split" || layout === "video") && (
+
+ {!videoReady ? (
+
+
{hubTx("接通中…")}
+
startVideo()}
+ >
+ {hubTx("重试连接")}
+
+
+ ) : (
+
+ {iframeLoading && (
+
+
+ N
+
+
+ {loadSlow
+ ? "连接较慢,可以重试"
+ : "接通中…"}
+
+ {loadSlow && (
+
startVideo(true)}
+ >
+ {hubTx("重试连接")}
+
+ )}
+
+ )}
+
+ )}
+
+ )}
+
+ {(layout === "split" || layout === "chat") && (
+
+
+ {chat.messages.map((m) => (
+
+
+
+ ))}
+
+
+ {
+ e.preventDefault();
+ void send();
+ }}
+ >
+ chat.setDraft(e.target.value)}
+ placeholder={hubTx("说点什么…")}
+ rows={2}
+ maxLength={2000}
+ />
+
+ {hubTx("发送")}
+
+
+
+ )}
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/MeetupRoom.tsx b/src/modules/hub/components/MeetupRoom.tsx
new file mode 100644
index 0000000..221e27f
--- /dev/null
+++ b/src/modules/hub/components/MeetupRoom.tsx
@@ -0,0 +1,4 @@
+"use client";
+
+/** Legacy alias — full-screen live room lives in MeetupLiveClient. */
+export { default } from "./MeetupLiveClient";
diff --git a/src/modules/hub/components/MessageBilingual.tsx b/src/modules/hub/components/MessageBilingual.tsx
new file mode 100644
index 0000000..ed487bb
--- /dev/null
+++ b/src/modules/hub/components/MessageBilingual.tsx
@@ -0,0 +1,106 @@
+"use client";
+
+import { useEffect, useMemo, useSyncExternalStore } from "react";
+import { renderChatRichText } from "@hub/lib/chatRichText";
+import {
+ detectMessageLang,
+ enqueueMessageTranslation,
+ getMessageTranslateVersion,
+ lookupMessageTranslation,
+ shouldTranslateMessage,
+ subscribeMessageTranslate,
+} from "@hub/lib/messageTranslate";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import type { Locale } from "~/lib/i18n";
+
+function normalizeTarget(locale: Locale): Locale {
+ const l = String(locale || "en").toLowerCase();
+ if (l.startsWith("zh")) return "zh";
+ if (l.startsWith("en")) return "en";
+ if (l.startsWith("ja")) return "ja";
+ if (l.startsWith("ko") || l === "kr") return "ko";
+ if (l.startsWith("vi")) return "vi";
+ if (l.startsWith("th")) return "th";
+ if (l.startsWith("es")) return "es";
+ if (l.startsWith("de")) return "de";
+ if (l.startsWith("fr")) return "fr";
+ if (l.startsWith("pt")) return "pt";
+ if (l.startsWith("id")) return "id";
+ return "en";
+}
+
+/**
+ * Original message body + subtitle in the viewer's UI language.
+ */
+export default function MessageBilingual({
+ text,
+ collapsed,
+}: {
+ text: string;
+ /** Truncated body when collapsed long messages */
+ collapsed?: string;
+}) {
+ const { portalLocale, cnOnly } = useHubI18n();
+ const target = normalizeTarget(portalLocale);
+ const version = useSyncExternalStore(
+ subscribeMessageTranslate,
+ getMessageTranslateVersion,
+ () => 0,
+ );
+
+ const source = useMemo(() => detectMessageLang(text), [text]);
+ const shown = collapsed || text;
+ // 中文受众锁:暂不显示双语字幕 / 机器翻译
+ const needTx =
+ !cnOnly &&
+ shouldTranslateMessage(text) &&
+ source !== target &&
+ Boolean(text.trim());
+
+ const translated = useMemo(() => {
+ if (!needTx) return null;
+ return lookupMessageTranslation(text, source, target);
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- version bumps cache
+ }, [needTx, text, source, target, version]);
+
+ useEffect(() => {
+ if (!needTx) return;
+ if (translated) return;
+ enqueueMessageTranslation(text, source, target);
+ }, [needTx, text, source, target, translated]);
+
+ const label =
+ target === "zh"
+ ? "中文"
+ : target === "en"
+ ? "EN"
+ : target.toUpperCase();
+
+ return (
+
+
{renderChatRichText(shown)}
+ {needTx ? (
+
+
+ {label}
+
+ {translated && translated !== text ? (
+ renderChatRichText(
+ collapsed && text.length > 280
+ ? `${translated.slice(0, Math.max(80, Math.floor(translated.length * 0.45)))}…`
+ : translated,
+ )
+ ) : (
+
+ {hubTx("翻译中…", "Translating…")}
+
+ )}
+
+ ) : null}
+
+ );
+}
diff --git a/src/modules/hub/components/NavAccountMenu.tsx b/src/modules/hub/components/NavAccountMenu.tsx
new file mode 100644
index 0000000..8f4ef98
--- /dev/null
+++ b/src/modules/hub/components/NavAccountMenu.tsx
@@ -0,0 +1,257 @@
+"use client";
+
+import Link from "next/link";
+import {
+ useEffect,
+ useId,
+ useRef,
+ useState,
+ useSyncExternalStore,
+} from "react";
+import { LogOut, Settings2, UserRound } from "lucide-react";
+import HubAvatar from "./HubAvatar";
+import { isJoinProfileDone } from "@hub/lib/joinFlow";
+import {
+ getLivenessServerSnapshot,
+ getLivenessSnapshot,
+ subscribeLivenessState,
+} from "@hub/lib/livenessGate";
+import { hubPath } from "@hub/lib/hubPath";
+import {
+ logoutSocialSession,
+ type HubSession,
+} from "@hub/lib/hubSession";
+import { loadJson } from "@hub/lib/storage";
+import { hubTx } from "@hub/lib/hubTx";
+import type { HubRosterProfile } from "@hub/lib/types";
+
+type Tab = "profile" | "options";
+
+const EMPTY_ROSTER: HubRosterProfile = {
+ name: "",
+ title: "",
+ city: "",
+ phone: "",
+ linktree: "",
+ skills: "",
+ bio: "",
+ avatar: "",
+ intents: "",
+ availability: "",
+ status: "",
+ lookingFor: "",
+ gender: "",
+};
+
+function readLocalProfile(session: HubSession) {
+ const roster = loadJson("roster", EMPTY_ROSTER);
+ const avatar = (roster.avatar || "").trim();
+ const avatarOk =
+ avatar.startsWith("https://") ||
+ avatar.startsWith("http://") ||
+ avatar.startsWith("/api/hub/");
+ return {
+ name: (roster.name || session.name || "").trim() || session.email.split("@")[0],
+ email: session.email,
+ title: (roster.title || "").trim(),
+ city: (roster.city || "").trim(),
+ avatar: avatarOk ? avatar : "",
+ };
+}
+
+export default function NavAccountMenu({
+ session,
+ onCloseMenus,
+}: {
+ session: HubSession;
+ onCloseMenus?: () => void;
+}) {
+ const [open, setOpen] = useState(false);
+ const [tab, setTab] = useState("profile");
+ const [profile, setProfile] = useState(() => readLocalProfile(session));
+ const rootRef = useRef(null);
+ const panelId = useId();
+ const liveSnap = useSyncExternalStore(
+ subscribeLivenessState,
+ getLivenessSnapshot,
+ getLivenessServerSnapshot,
+ );
+ const liveOk =
+ (JSON.parse(liveSnap) as { livenessStatus?: string }).livenessStatus ===
+ "verified";
+ const [profileDone, setProfileDone] = useState(false);
+ useEffect(() => {
+ setProfileDone(isJoinProfileDone());
+ }, [session]);
+
+ useEffect(() => {
+ setProfile(readLocalProfile(session));
+ }, [session]);
+
+ useEffect(() => {
+ const refresh = () => setProfile(readLocalProfile(session));
+ window.addEventListener("storage", refresh);
+ window.addEventListener("nomadro-hub-storage", refresh);
+ return () => {
+ window.removeEventListener("storage", refresh);
+ window.removeEventListener("nomadro-hub-storage", refresh);
+ };
+ }, [session]);
+
+ useEffect(() => {
+ if (!open) return;
+ const onKey = (e: KeyboardEvent) => {
+ if (e.key === "Escape") setOpen(false);
+ };
+ const onPointer = (e: PointerEvent) => {
+ if (!rootRef.current?.contains(e.target as Node)) setOpen(false);
+ };
+ window.addEventListener("keydown", onKey);
+ window.addEventListener("pointerdown", onPointer);
+ return () => {
+ window.removeEventListener("keydown", onKey);
+ window.removeEventListener("pointerdown", onPointer);
+ };
+ }, [open]);
+
+ const initial = (profile.name || "?").slice(0, 1).toUpperCase();
+
+ return (
+
+
setOpen((v) => !v)}
+ >
+ {profile.avatar ? (
+
+ ) : (
+
+ {initial}
+
+ )}
+
+
+ {open ? (
+
+
+ setTab("profile")}
+ >
+
+ {hubTx("个人信息")}
+
+ setTab("options")}
+ >
+
+ {hubTx("选项")}
+
+
+
+ {tab === "profile" ? (
+
+
+ {profile.avatar ? (
+
+ ) : (
+
+ {initial}
+
+ )}
+
+
{profile.name}
+
{profile.email}
+ {profile.title || profile.city ? (
+
+ {[profile.title, profile.city].filter(Boolean).join(" · ")}
+
+ ) : null}
+
+
+
{
+ setOpen(false);
+ onCloseMenus?.();
+ }}
+ >
+ {hubTx("编辑资料")}
+
+
+ ) : (
+
+ {!profileDone ? (
+ {
+ setOpen(false);
+ onCloseMenus?.();
+ }}
+ >
+ {hubTx("完善资料")}
+
+ ) : null}
+ {!liveOk ? (
+ {
+ setOpen(false);
+ onCloseMenus?.();
+ }}
+ >
+ {hubTx("去拍自拍")}
+
+ ) : null}
+ {
+ setOpen(false);
+ onCloseMenus?.();
+ }}
+ >
+ {hubTx("我的主页")}
+
+ {
+ logoutSocialSession();
+ setOpen(false);
+ onCloseMenus?.();
+ }}
+ >
+
+ {hubTx("退出登录")}
+
+
+ )}
+
+ ) : null}
+
+ );
+}
diff --git a/src/modules/hub/components/ParticleCanvas.tsx b/src/modules/hub/components/ParticleCanvas.tsx
new file mode 100644
index 0000000..46a02f9
--- /dev/null
+++ b/src/modules/hub/components/ParticleCanvas.tsx
@@ -0,0 +1,126 @@
+"use client";
+
+import { useEffect, useRef } from "react";
+
+/** Ambient particle field — same feel as 旅居社群 homepage. */
+export default function ParticleCanvas() {
+ const canvasRef = useRef(null);
+
+ useEffect(() => {
+ const canvas = canvasRef.current;
+ if (!canvas) return;
+ const ctx = canvas.getContext("2d", { alpha: true });
+ if (!ctx) return;
+
+ if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
+ canvas.style.display = "none";
+ return;
+ }
+
+ let animId = 0;
+ let running = false;
+ let started = false;
+ let resizeTimer = 0;
+ let particles: {
+ x: number;
+ y: number;
+ size: number;
+ speedX: number;
+ speedY: number;
+ opacity: number;
+ hue: number;
+ }[] = [];
+
+ const resize = () => {
+ const dpr = Math.min(window.devicePixelRatio || 1, 1.5);
+ const w = window.innerWidth;
+ const h = window.innerHeight;
+ canvas.width = Math.floor(w * dpr);
+ canvas.height = Math.floor(h * dpr);
+ canvas.style.width = `${w}px`;
+ canvas.style.height = `${h}px`;
+ ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
+ };
+
+ const create = () => {
+ const w = window.innerWidth;
+ const dense =
+ document.querySelector(".social-fx:not(.social-home)") != null;
+ const count = Math.min(
+ Math.floor(w / (dense ? 14 : 40)),
+ dense ? 90 : 28,
+ );
+ particles = Array.from({ length: count }, () => ({
+ x: Math.random() * w,
+ y: Math.random() * window.innerHeight,
+ size: Math.random() * (dense ? 3.2 : 2) + (dense ? 1 : 0.5),
+ speedX: (Math.random() - 0.5) * (dense ? 0.45 : 0.22),
+ speedY: (Math.random() - 0.5) * (dense ? 0.45 : 0.22),
+ opacity: Math.random() * (dense ? 0.55 : 0.35) + (dense ? 0.18 : 0.08),
+ hue: [0, 45, 170][Math.floor(Math.random() * 3)],
+ }));
+ };
+
+ const draw = () => {
+ if (!running) return;
+ const w = window.innerWidth;
+ const h = window.innerHeight;
+ ctx.clearRect(0, 0, w, h);
+ for (const p of particles) {
+ p.x += p.speedX;
+ p.y += p.speedY;
+ if (p.x < 0) p.x = w;
+ if (p.x > w) p.x = 0;
+ if (p.y < 0) p.y = h;
+ if (p.y > h) p.y = 0;
+ ctx.beginPath();
+ ctx.arc(p.x, p.y, p.size, 0, Math.PI * 2);
+ ctx.fillStyle = `hsla(${p.hue}, 70%, 60%, ${p.opacity})`;
+ ctx.fill();
+ }
+ animId = requestAnimationFrame(draw);
+ };
+
+ const start = () => {
+ if (started) return;
+ started = true;
+ resize();
+ create();
+ running = document.visibilityState === "visible";
+ if (running) draw();
+ };
+
+ const onResize = () => {
+ clearTimeout(resizeTimer);
+ resizeTimer = window.setTimeout(() => {
+ resize();
+ create();
+ }, 200);
+ };
+
+ const onVis = () => {
+ running = document.visibilityState === "visible" && started;
+ if (running) draw();
+ else cancelAnimationFrame(animId);
+ };
+
+ const ric = window.requestIdleCallback
+ ? window.requestIdleCallback(() => start(), { timeout: 600 })
+ : 0;
+ const fallback = window.setTimeout(start, 120);
+
+ window.addEventListener("resize", onResize, { passive: true });
+ document.addEventListener("visibilitychange", onVis);
+ return () => {
+ running = false;
+ cancelAnimationFrame(animId);
+ clearTimeout(fallback);
+ clearTimeout(resizeTimer);
+ if (ric && window.cancelIdleCallback) window.cancelIdleCallback(ric);
+ window.removeEventListener("resize", onResize);
+ document.removeEventListener("visibilitychange", onVis);
+ };
+ }, []);
+
+ return ;
+}
diff --git a/src/modules/hub/components/PeopleClient.tsx b/src/modules/hub/components/PeopleClient.tsx
new file mode 100644
index 0000000..d00ff41
--- /dev/null
+++ b/src/modules/hub/components/PeopleClient.tsx
@@ -0,0 +1,364 @@
+"use client";
+
+import { useMemo, useState, useSyncExternalStore, type MouseEvent } from "react";
+import Link from "next/link";
+import { useRouter, useSearchParams } from "next/navigation";
+import { Sparkles } from "lucide-react";
+import SiteShell from "./SiteShell";
+import WayDestChrome from "./WayDestChrome";
+import HubAvatar from "./HubAvatar";
+import {
+ DemoBadge,
+ EmptyState,
+ PageIntro,
+ SearchField,
+ ResultSummary,
+} from "./HubUI";
+import { SELF_MEMBER_ID, useDiscoveryRoster } from "@hub/lib/discoveryRoster";
+import { hubPath } from "@hub/lib/hubPath";
+import { useRosterLikes } from "@hub/lib/useRosterLikes";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { useHubAudienceLane } from "@hub/lib/useHubAudience";
+import { isHubCnOnly } from "@hub/lib/hubCnLock";
+import { resolveSocialCities } from "@hub/geo";
+import { txCityShort, txMember } from "@hub/lib/localizeEntity";
+import { openSocialJoinModal } from "@hub/lib/joinModal";
+import { resolvePeopleProfileGate } from "@hub/lib/joinFlow";
+import {
+ getCommunityUnlockServerSnapshot,
+ getCommunityUnlockSnapshot,
+ subscribeLivenessState,
+} from "@hub/lib/livenessGate";
+import {
+ getSocialSession,
+ subscribeSocialSession,
+} from "@hub/lib/hubSession";
+import { useSocialConfig } from "./HubExperience";
+
+const PROFESSION_HINTS = ["设计", "开发", "内容", "产品", "摄影", "全栈"];
+const INTEREST_HINTS = ["咖啡局", "徒步", "瑜伽", "夜跑", "旅居", "开源"];
+/** 中文受众:语言筛选只保留中文相关(多语言选项暂时屏蔽) */
+const LANG_HINTS = ["中文", "普通话", "粤语"];
+
+export default function PeopleClient() {
+ const params = useSearchParams();
+ const initialQuery = params.get("city") || "";
+ const initialHere = params.get("here") === "1";
+ const initialSoon = params.get("soon") === "1";
+ return (
+
+ );
+}
+
+function PeopleDirectory({
+ initialQuery,
+ initialHere,
+ initialSoon,
+}: {
+ initialQuery: string;
+ initialHere: boolean;
+ initialSoon: boolean;
+}) {
+ const { cnOnly } = useHubI18n();
+ const audience = useHubAudienceLane();
+ const hubConfig = useSocialConfig();
+ const cnMode = cnOnly || isHubCnOnly(hubConfig) || audience === "cn";
+ const cityOptions = useMemo(
+ () =>
+ resolveSocialCities({
+ geo: hubConfig.copy.hubGeo,
+ audience,
+ cnOnly: cnMode,
+ }),
+ [hubConfig.copy.hubGeo, audience, cnMode],
+ );
+ const router = useRouter();
+ const roster = useDiscoveryRoster();
+ const [query, setQuery] = useState(initialQuery);
+ const [filter, setFilter] = useState("all");
+ const [profession, setProfession] = useState("");
+ const [interest, setInterest] = useState("");
+ const [language, setLanguage] = useState("");
+ const [currentlyHere, setCurrentlyHere] = useState(initialHere);
+ const [arrivingSoon, setArrivingSoon] = useState(initialSoon);
+ const likes = useRosterLikes();
+ const unlocked =
+ useSyncExternalStore(
+ subscribeLivenessState,
+ getCommunityUnlockSnapshot,
+ getCommunityUnlockServerSnapshot,
+ ) === "1";
+ // 邮箱会话变化时重算 gate(已登录 → 完善资料,而非再弹注册)
+ useSyncExternalStore(
+ subscribeSocialSession,
+ () => getSocialSession()?.email || "",
+ () => "",
+ );
+
+ const openProfile = (event: MouseEvent, personId: string) => {
+ if (personId === SELF_MEMBER_ID || unlocked) return;
+ event.preventDefault();
+ const gate = resolvePeopleProfileGate();
+ if (gate.kind === "allow") return;
+ if (gate.kind === "continue") {
+ router.push(gate.href);
+ return;
+ }
+ openSocialJoinModal({
+ reason: "gate",
+ hint: hubTx(gate.hint),
+ });
+ };
+
+ const list = useMemo(
+ () =>
+ roster.filter((person) => {
+ const haystack =
+ `${person.name} ${person.city} ${person.title} ${person.tags.join(" ")} ${person.lookingFor} ${(person.languages || []).join(" ")}`.toLowerCase();
+ const q = query.toLowerCase().trim();
+ if (q && !haystack.includes(q)) return false;
+ if (filter === "saved" && !likes[person.id]) return false;
+ if (filter === "online" && !person.online) return false;
+ if (profession && !person.title.toLowerCase().includes(profession.toLowerCase()))
+ return false;
+ if (
+ interest &&
+ !`${person.tags.join(" ")} ${person.lookingFor}`.toLowerCase().includes(interest.toLowerCase())
+ )
+ return false;
+ if (
+ language &&
+ !(person.languages || []).some((l) =>
+ l.toLowerCase().includes(language.toLowerCase()),
+ )
+ )
+ return false;
+ // Seed roster has no live trip status — treat online as "here" proxy for demo
+ if (currentlyHere && !person.online) return false;
+ if (arrivingSoon && person.online) return false;
+ return true;
+ }),
+ [
+ query,
+ filter,
+ likes,
+ roster,
+ profession,
+ interest,
+ language,
+ currentlyHere,
+ arrivingSoon,
+ ],
+ );
+
+ const reset = () => {
+ setQuery("");
+ setFilter("all");
+ setProfession("");
+ setInterest("");
+ setLanguage("");
+ setCurrentlyHere(false);
+ setArrivingSoon(false);
+ };
+
+ const filtered =
+ Boolean(query) ||
+ filter !== "all" ||
+ Boolean(profession) ||
+ Boolean(interest) ||
+ Boolean(language) ||
+ currentlyHere ||
+ arrivingSoon;
+
+ return (
+
+
+
+
+
+ {list.length} {hubTx("人")}
+
+
+ {hubTx("滑卡")}
+
+
+ {hubTx("地图")}
+
+
+
+
+
+
+ {[
+ { id: "all", title: hubTx("全部") },
+ { id: "online", title: hubTx("示例在线") },
+ { id: "saved", title: hubTx("我关注的") },
+ ].map((f) => (
+ setFilter(f.id)}
+ >
+ {f.title}
+
+ ))}
+
+
+
+ {hubTx("城市")}
+ c.name === query) ? query : ""
+ }
+ onChange={(e) => setQuery(e.target.value)}
+ >
+ {hubTx("全部城市")}
+ {cityOptions.map((c) => (
+
+ {c.emoji} {hubTx(c.name)}
+
+ ))}
+
+
+
+ {hubTx("职业")}
+ setProfession(e.target.value)}>
+ {hubTx("不限")}
+ {PROFESSION_HINTS.map((p) => (
+
+ {hubTx(p)}
+
+ ))}
+
+
+
+ {hubTx("兴趣")}
+ setInterest(e.target.value)}>
+ {hubTx("不限")}
+ {INTEREST_HINTS.map((p) => (
+
+ {hubTx(p)}
+
+ ))}
+
+
+
+ {hubTx("语言")}
+ setLanguage(e.target.value)}>
+ {hubTx("不限")}
+ {LANG_HINTS.map((p) => (
+
+ {hubTx(p)}
+
+ ))}
+
+
+ {
+ setCurrentlyHere((v) => !v);
+ if (!currentlyHere) setArrivingSoon(false);
+ }}
+ >
+ {hubTx("此刻在这儿")}
+
+ {
+ setArrivingSoon((v) => !v);
+ if (!arrivingSoon) setCurrentlyHere(false);
+ }}
+ >
+ {hubTx("即将抵达")}
+
+
+
+
+
+ {list.map((person, index) => {
+ const d = txMember(person);
+ return (
+ openProfile(event, person.id)}
+ >
+
+
+ {person.online ? : null}
+
+
+ {person.name}
+ {person.id === SELF_MEMBER_ID ? ` · ${hubTx("我")}` : ""}
+
+
+ {d.title}
+ {d.vibe ? ` · ${d.vibe.split("·")[0].trim()}` : ""}
+
+
+ {txCityShort(person.city)}
+ {d.tags[0] ? ` · ${d.tags[0]}` : ""}
+
+
+ {d.lookingFor}
+
+
+ );
+ })}
+ {!list.length && (
+
+
+ {hubTx("清空筛选")}
+
+
+ )}
+
+
+
+
+ {hubTx("写我的介绍")}
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/PeopleProfileClient.tsx b/src/modules/hub/components/PeopleProfileClient.tsx
new file mode 100644
index 0000000..acdb369
--- /dev/null
+++ b/src/modules/hub/components/PeopleProfileClient.tsx
@@ -0,0 +1,421 @@
+"use client";
+
+import { useEffect, useState, useSyncExternalStore } from "react";
+import Link from "next/link";
+import {
+ ArrowLeft,
+ Heart,
+ MapPin,
+ MessageCircle,
+ Sparkles,
+ Star,
+ Video,
+} from "lucide-react";
+import SiteShell from "./SiteShell";
+import HubAvatar from "./HubAvatar";
+import ReportBlockPanel from "./ReportBlockPanel";
+import {
+ BookmarkButton,
+ DemoBadge,
+ EmptyState,
+ ShareButton,
+} from "./HubUI";
+import {
+ findRosterMember,
+ type HubRosterMember,
+} from "@hub/lib/rosterMock";
+import {
+ SELF_MEMBER_ID,
+ useDiscoveryRoster,
+} from "@hub/lib/discoveryRoster";
+import { useRosterLikes, setRosterLike } from "@hub/lib/useRosterLikes";
+import { hubApi } from "@hub/lib/api";
+import { loadJson } from "@hub/lib/storage";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { txCityShort, txMember } from "@hub/lib/localizeEntity";
+import { openSocialJoinModal } from "@hub/lib/joinModal";
+import { resolvePeopleProfileGate } from "@hub/lib/joinFlow";
+import {
+ getCommunityUnlockServerSnapshot,
+ getCommunityUnlockSnapshot,
+ subscribeLivenessState,
+} from "@hub/lib/livenessGate";
+import {
+ getSocialSession,
+ subscribeSocialSession,
+} from "@hub/lib/hubSession";
+
+type ReviewSummary = {
+ count: number;
+ averages: {
+ punctuality: number;
+ chemistry: number;
+ professionalism: number;
+ overall: number;
+ } | null;
+ items: Array<{
+ id: string;
+ punctuality: number;
+ chemistry: number;
+ professionalism: number;
+ text: string;
+ avg: number;
+ createdAt: string;
+ }>;
+};
+
+export default function PeopleProfileClient({ id }: { id: string }) {
+ useHubI18n();
+ const roster = useDiscoveryRoster();
+ const member =
+ roster.find((m) => m.id === id) || findRosterMember(id);
+
+ const likes = useRosterLikes();
+ const [reviews, setReviews] = useState(null);
+ const unlocked =
+ useSyncExternalStore(
+ subscribeLivenessState,
+ getCommunityUnlockSnapshot,
+ getCommunityUnlockServerSnapshot,
+ ) === "1";
+ useSyncExternalStore(
+ subscribeSocialSession,
+ () => getSocialSession()?.email || "",
+ () => "",
+ );
+ const gate = resolvePeopleProfileGate();
+ const canView =
+ unlocked ||
+ gate.kind === "allow" ||
+ !member ||
+ member.id === SELF_MEMBER_ID;
+
+ useEffect(() => {
+ if (canView || !member) return;
+ if (gate.kind === "join-modal") {
+ openSocialJoinModal({
+ reason: "gate",
+ hint: hubTx(gate.hint),
+ });
+ return;
+ }
+ if (gate.kind === "continue") {
+ // 已有邮箱:强制跳去完善资料 / 核验
+ window.location.assign(gate.href);
+ }
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- kind/href 驱动一次跳转
+ }, [canView, member, gate.kind]);
+
+ useEffect(() => {
+ if (!member || member.id === SELF_MEMBER_ID || !canView) return;
+ void hubApi
+ .getReviews(member.id)
+ .then((r) =>
+ setReviews({
+ count: r.count,
+ averages: r.averages,
+ items: r.items || [],
+ }),
+ )
+ .catch(() => setReviews(null));
+ }, [member, canView]);
+
+ if (!member) {
+ return (
+
+
+
+ {hubTx("回去看看大家")}
+
+
+
+ );
+ }
+
+ if (!canView) {
+ const title =
+ gate.kind === "continue"
+ ? hubTx(gate.title)
+ : gate.kind === "join-modal"
+ ? hubTx(gate.title)
+ : hubTx("注册后查看完整资料");
+ const hint =
+ gate.kind === "continue" || gate.kind === "join-modal"
+ ? hubTx(gate.hint)
+ : hubTx("查看完整资料前,请先注册加入社区");
+ return (
+
+
+ {gate.kind === "continue" ? (
+
+ {hubTx(gate.title)}
+
+ ) : (
+
+ openSocialJoinModal({
+ reason: "gate",
+ hint,
+ })
+ }
+ >
+ {hubTx("加入社区")}
+
+ )}
+
+ {hubTx("回去看看大家")}
+
+
+
+ );
+ }
+
+ const liked = !!likes[member.id];
+ const cityKey = member.city.split(/[·/]/)[0].trim();
+ const similar = roster
+ .filter(
+ (m) =>
+ m.id !== member.id && m.city.includes(cityKey.slice(0, 2)),
+ )
+ .slice(0, 4);
+
+ const toggleLike = () => {
+ const next = !liked;
+ setRosterLike(member.id, next);
+ if (next && member.id !== SELF_MEMBER_ID) {
+ const me = loadJson<{ name?: string }>("roster", {});
+ void hubApi
+ .notifyLike(member.id, me.name || "游民")
+ .catch(() => undefined);
+ }
+ };
+
+ const intro = encodeURIComponent(
+ `嗨 ${member.name}!看到你在做${member.tags[0] || "远程"},想认识一下。`,
+ );
+
+ return (
+
+
+
+
+
{hubTx("回去看看大家")}
+
+
+
+
+
+
+
+
+
+ {member.online ? (
+ {hubTx("在线")}
+ ) : (
+ {hubTx("离线")}
+ )}
+ {hubTx(member.vibe)}
+ {member.id === SELF_MEMBER_ID ? {hubTx("这是我")} : null}
+
+
{member.name}
+
{hubTx(member.title)}
+
+
+ {txMember(member).city}
+ {member.timezone ? ` · ${member.timezone}` : ""}
+
+
+
+
+
+
+
+
+ {liked ? hubTx("已关注") : hubTx("关注一下")}
+
+
+
+ {hubTx("进群组打招呼")}
+
+
+
+ {hubTx("语音视频场")}
+
+
+ {hubTx("去左右滑")}
+
+
+
+
+
+
+
+ {hubTx("关于 TA")}
+ {hubTx(member.bio)}
+
+
+ {hubTx("想认识:")}
+ {hubTx(member.lookingFor)}
+
+ {member.availability ? (
+
+ {hubTx("什么时候方便")} · {hubTx(member.availability)}
+
+ ) : null}
+
+
+
+ {hubTx("兴趣标签")}
+
+ {member.tags.map((t) => (
+ {hubTx(t)}
+ ))}
+
+ {member.languages?.length ? (
+ <>
+ {hubTx("语言")}
+
+ {member.languages.map((l) => (
+ {hubTx(l)}
+ ))}
+
+ >
+ ) : null}
+
+
+
+ {reviews && reviews.count > 0 && reviews.averages ? (
+
+
+ {hubTx("见面评价")}
+
+ {reviews.averages.overall.toFixed(1)} · {reviews.count}
+ {hubTx("条")}
+
+
+
+
+ {hubTx("守时")} {reviews.averages.punctuality.toFixed(1)}
+
+
+ {hubTx("聊得来")} {reviews.averages.chemistry.toFixed(1)}
+
+
+ {hubTx("靠谱")} {reviews.averages.professionalism.toFixed(1)}
+
+
+
+ {reviews.items.slice(0, 3).map((r) => (
+
+ {r.avg.toFixed(1)}
+ {r.text || hubTx("未写文字评价")}
+
+ ))}
+
+
+ ) : null}
+
+ {member.id !== SELF_MEMBER_ID ? (
+
+ ) : null}
+
+ {member.gallery && member.gallery.length > 0 ? (
+
+ {hubTx("生活瞬间")}
+
+ {member.gallery.map((src) => (
+ // eslint-disable-next-line @next/next/no-img-element
+
+ ))}
+
+
+
+
+
+ ) : null}
+
+ {similar.length > 0 ? (
+
+ {hubTx("附近可能同城的人")}
+
+ {similar.map((m) => (
+
+ ))}
+
+
+ ) : null}
+
+
+
+ {hubTx("去左右滑认识更多人")}
+
+
+ {hubTx("写写我的介绍")}
+
+
+
+
+ );
+}
+
+function PersonMini({ m }: { m: HubRosterMember }) {
+ const d = txMember(m);
+ return (
+
+
+
+ {m.online ? : null}
+
+ {m.name}
+ {d.title}
+ {txCityShort(m.city)}
+
+ );
+}
diff --git a/src/modules/hub/components/PlaceDetailClient.tsx b/src/modules/hub/components/PlaceDetailClient.tsx
new file mode 100644
index 0000000..f68af55
--- /dev/null
+++ b/src/modules/hub/components/PlaceDetailClient.tsx
@@ -0,0 +1,523 @@
+"use client";
+
+import { useEffect, useMemo, useState } from "react";
+import Link from "next/link";
+import {
+ ArrowLeft,
+ ArrowUpRight,
+ Coffee,
+ MapPin,
+ Radio,
+ Users,
+ Wifi,
+ Sparkles,
+ Navigation,
+} from "lucide-react";
+import dynamic from "next/dynamic";
+import SiteShell from "./SiteShell";
+import HubAvatar from "./HubAvatar";
+import { getCityById } from "@hub/lib/cities";
+import { hubApi } from "@hub/lib/api";
+import type { HubMapCity } from "@hub/lib/geoTypes";
+import { resolveSocialCatalog } from "@hub/lib/resolveCatalog";
+import { resolveSocialCities } from "@hub/geo";
+import { useDiscoveryRoster } from "@hub/lib/discoveryRoster";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { txCity } from "@hub/lib/localizeEntity";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { useHubAudienceLane } from "@hub/lib/useHubAudience";
+import { isHubCnOnly } from "@hub/lib/hubCnLock";
+import { useSocialConfig } from "./HubExperience";
+
+const PlaceMapPreview = dynamic(() => import("./PlaceMapPreview"), {
+ ssr: false,
+ loading: () =>
,
+});
+
+type Props = { cityId: string };
+
+type LiveCity = HubMapCity & {
+ recentArrivals?: Array<{
+ guestId: string;
+ status: string;
+ arrival_date: string;
+ }>;
+ blurb?: string;
+ highlights?: string[];
+ cover?: string;
+};
+
+const FALLBACK_COVER =
+ "https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?auto=format&fit=crop&w=1400&q=75";
+
+export default function PlaceDetailClient({ cityId }: Props) {
+ const seed = getCityById(cityId);
+ const { portalLocale, cnOnly } = useHubI18n();
+ const audience = useHubAudienceLane();
+ const config = useSocialConfig();
+ const cnMode = cnOnly || isHubCnOnly(config) || audience === "cn";
+ const catalog = useMemo(
+ () => resolveSocialCatalog(config.copy.hubCatalogs),
+ [config.copy.hubCatalogs, portalLocale],
+ );
+ const roster = useDiscoveryRoster();
+ const cityPool = useMemo(
+ () =>
+ resolveSocialCities({
+ geo: config.copy.hubGeo,
+ audience,
+ cnOnly: cnMode,
+ }),
+ [config.copy.hubGeo, audience, cnMode],
+ );
+
+ const [city, setCity] = useState(
+ seed
+ ? {
+ id: seed.id,
+ name: seed.name,
+ country: seed.country,
+ emoji: seed.emoji,
+ vibe: seed.vibe,
+ blurb: seed.blurb,
+ highlights: seed.highlights,
+ cover: seed.cover,
+ lat: seed.lat,
+ lng: seed.lng,
+ memberCount: seed.members,
+ meetupCount: seed.meetupCount || 0,
+ costHint: seed.costHint,
+ wifiMbps: seed.wifiMbps,
+ tags: seed.tags,
+ hot: seed.hot,
+ }
+ : null,
+ );
+
+ useEffect(() => {
+ let alive = true;
+ void hubApi
+ .cityDetail(cityId)
+ .then((res) => {
+ if (!alive || !res.item) return;
+ setCity((prev) => ({
+ ...prev,
+ ...res.item,
+ blurb: prev?.blurb || seed?.blurb,
+ highlights: prev?.highlights || seed?.highlights,
+ cover: prev?.cover || seed?.cover,
+ wifiMbps: res.item.wifiMbps ?? prev?.wifiMbps ?? seed?.wifiMbps,
+ tags: res.item.tags?.length ? res.item.tags : prev?.tags || seed?.tags,
+ }));
+ })
+ .catch(() => {});
+ return () => {
+ alive = false;
+ };
+ }, [cityId, seed]);
+
+ const cityName = city?.name || seed?.name || "";
+
+ const cafes = useMemo(
+ () =>
+ catalog.cafes.filter(
+ (c) =>
+ c.city === cityName ||
+ c.city.includes(cityName) ||
+ cityName.includes(c.city),
+ ),
+ [catalog.cafes, cityName],
+ );
+
+ const meetups = useMemo(
+ () =>
+ catalog.meetups.filter(
+ (m) =>
+ m.city === cityName ||
+ m.city.includes(cityName) ||
+ (m.city === "Online" && Boolean(city?.hot)),
+ ),
+ [catalog.meetups, cityName, city?.hot],
+ );
+
+ const people = useMemo(() => {
+ const needle = cityName.toLowerCase();
+ return roster
+ .filter((m) => {
+ const c = (m.city || "").toLowerCase();
+ return c.includes(needle) || needle.includes(c.split(/[→\-·]/)[0].trim());
+ })
+ .slice(0, 8);
+ }, [roster, cityName]);
+
+ const nearby = useMemo(() => {
+ if (!city) return [];
+ return cityPool
+ .filter((c) => c.id !== city.id)
+ .map((c) => ({
+ c,
+ d:
+ (c.lat - city.lat) ** 2 +
+ (c.lng - city.lng) ** 2 +
+ (c.country === city.country ? 0 : 0.4),
+ }))
+ .sort((a, b) => a.d - b.d)
+ .slice(0, 4)
+ .map((x) => x.c);
+ }, [city, cityPool]);
+
+ if (!city) {
+ return (
+
+
+
{hubTx("找不到这座城市")}
+
{hubTx("换一座试试")}
+
+ {hubTx("返回城市目录")}
+
+
+
+ );
+ }
+
+ const cover = city.cover || seed?.cover || FALLBACK_COVER;
+ const display = seed
+ ? txCity({
+ ...seed,
+ name: city.name || seed.name,
+ country: city.country || seed.country,
+ vibe: city.vibe || seed.vibe,
+ blurb: city.blurb || seed.blurb,
+ highlights: city.highlights || seed.highlights,
+ costHint: city.costHint || seed.costHint,
+ tags: city.tags?.length ? city.tags : seed.tags,
+ hot: city.hot ?? seed.hot,
+ members: city.memberCount || seed.members,
+ meetupCount: city.meetupCount || seed.meetupCount,
+ wifiMbps: city.wifiMbps || seed.wifiMbps,
+ })
+ : {
+ name: hubTx(city.name),
+ country: hubTx(city.country),
+ vibe: hubTx(city.vibe || ""),
+ blurb: city.blurb ? hubTx(city.blurb) : undefined,
+ costHint: city.costHint ? hubTx(city.costHint) : "",
+ tags: (city.tags || []).map((t) => hubTx(t)),
+ highlights: city.highlights?.map((h) => hubTx(h)),
+ };
+
+ return (
+
+
+
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+
+
+
+
+
+
+ {hubTx("城市目录")}
+
+
+
+ {city.emoji}
+ {display.country}
+ {city.hot ? HOT : null}
+
+
{display.name}
+
{display.vibe}
+ {display.blurb ?
{display.blurb}
: null}
+ {display.tags?.length ? (
+
+ {display.tags.map((t) => (
+ {t}
+ ))}
+
+ ) : null}
+
+
+ {hubTx("找搭子")}
+
+
+
+
+ {hubTx("打开地图")}
+
+
+
+ {hubTx("咖啡馆见面")}
+
+
+
+
+
+
+
+
+
+
+ {city.memberCount}
+ {hubTx("位游民")}
+
+
+
+
+
+ {city.meetupCount || meetups.length || 0}
+ {hubTx("场局")}
+
+
+
+
+
+ {city.wifiMbps || seed?.wifiMbps || "—"}
+ Mbps
+
+
+
+
+
+ {display.costHint || "—"}
+ {hubTx("生活成本")}
+
+
+ {(city.currentlyHere || 0) > 0 ? (
+
+
+
+ {city.currentlyHere}
+ {hubTx("此刻在这")}
+
+
+ ) : null}
+
+
+
+ {display.highlights?.length ? (
+
+
+ {hubTx("旅居感")}
+ {hubTx("为什么待这儿")}
+
+
+ {display.highlights.map((h, i) => (
+
+ {String(i + 1).padStart(2, "0")}
+ {h}
+
+ ))}
+
+
+ ) : null}
+
+
+
+
+
+ {hubTx("咖啡馆见面")}
+
+
+ {hubTx("全部")}
+
+
+ {cafes.length ? (
+
+ {cafes.slice(0, 4).map((cafe) => (
+
+
+
+ ☕
+
+
+ {cafe.name}
+
+ ★ {cafe.rating} · {cafe.wifiMbps}M · {cafe.vibe}
+
+
+
+
+
+ ))}
+
+ ) : (
+
+ {hubTx(
+ "这座城市的咖啡馆点还在补齐,先去地图或同城人里逛逛。",
+ )}
+
+ )}
+
+
+
+
+
+ {hubTx("同城 / 线上局")}
+
+
+ {hubTx("更多")}
+
+
+ {meetups.length ? (
+
+ {meetups.slice(0, 4).map((m) => (
+
+
+
+ 📡
+
+
+ {m.title}
+
+ {m.city} · {m.date} {m.time}
+ {m.mode ? ` · ${m.mode}` : ""}
+
+
+
+
+
+ ))}
+
+ ) : (
+
+ {hubTx("暂时没有排期,去聊天厅问问有没有局。")}
+
+ )}
+
+
+
+
+
+
+ {hubTx("同城的人")}
+
+
+ {hubTx("花名册")}
+
+
+ {people.length ? (
+
+ {people.map((p) => (
+
+
+
+ {p.name}
+ {p.title || p.city}
+
+
+ ))}
+
+ ) : (
+
+ {hubTx("还没有公开的同城介绍,去做第一个。")}
+
+ )}
+
+
+
+
+
+ {hubTx("在地图上")}
+
+
+ {hubTx("打开社区地图")}
+
+
+
+
+
+ {city.recentArrivals?.length ? (
+
+ {hubTx("近期抵达")}
+
+ {city.recentArrivals.map((a, i) => (
+
+ {a.guestId}
+
+ {a.status === "here"
+ ? hubTx("在这儿")
+ : hubTx("计划中")}
+
+ {a.arrival_date ? {a.arrival_date} : null}
+
+ ))}
+
+
+ ) : null}
+
+ {nearby.length ? (
+
+
+ {hubTx("继续逛")}
+ {hubTx("附近 / 下一站")}
+
+
+ {nearby.map((n) => (
+
+ {n.cover ? (
+ // eslint-disable-next-line @next/next/no-img-element
+
+ ) : (
+
+ {n.emoji}
+
+ )}
+
+
+ {n.emoji} {n.name}
+
+ {n.vibe}
+
+
+ ))}
+
+
+ ) : null}
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/PlaceMapPreview.tsx b/src/modules/hub/components/PlaceMapPreview.tsx
new file mode 100644
index 0000000..a5ba4b1
--- /dev/null
+++ b/src/modules/hub/components/PlaceMapPreview.tsx
@@ -0,0 +1,146 @@
+"use client";
+
+import { useEffect, useRef, useState } from "react";
+import {
+ Map as MapLibreMap,
+ Marker,
+ NavigationControl,
+ getVersion,
+ setWorkerUrl,
+} from "maplibre-gl";
+import "maplibre-gl/dist/maplibre-gl.css";
+import {
+ DEFAULT_MAP_STYLE,
+ FALLBACK_MAP_STYLES,
+} from "@hub/lib/geoTypes";
+
+function ensureMapWorker() {
+ if (typeof window === "undefined") return;
+ const w = window as Window & { __nomadroMapWorker?: boolean };
+ if (w.__nomadroMapWorker) return;
+ const local = "/maplibre/maplibre-gl-worker.mjs";
+ setWorkerUrl(local);
+ w.__nomadroMapWorker = true;
+ void fetch(local, { method: "HEAD" }).then((r) => {
+ if (!r.ok) {
+ setWorkerUrl(
+ `https://cdn.jsdelivr.net/npm/maplibre-gl@${getVersion()}/dist/maplibre-gl-worker.mjs`,
+ );
+ }
+ });
+}
+
+type Props = {
+ name: string;
+ lat: number;
+ lng: number;
+ emoji?: string;
+ className?: string;
+};
+
+/** City preview map — MapLibre (OSM iframe blacks out on zoom-out). */
+export default function PlaceMapPreview({
+ name,
+ lat,
+ lng,
+ emoji,
+ className,
+}: Props) {
+ const containerRef = useRef(null);
+ const mapRef = useRef(null);
+ const markerRef = useRef(null);
+ const readyRef = useRef(false);
+ const [status, setStatus] = useState("加载底图…");
+
+ const styles = [DEFAULT_MAP_STYLE, ...FALLBACK_MAP_STYLES];
+
+ useEffect(() => {
+ if (!containerRef.current || mapRef.current) return;
+ if (!Number.isFinite(lat) || !Number.isFinite(lng)) {
+ setStatus("暂无坐标");
+ return;
+ }
+ ensureMapWorker();
+
+ const tryStyle = (index: number) => {
+ const styleUrl = styles[Math.min(index, styles.length - 1)];
+ const map = new MapLibreMap({
+ container: containerRef.current!,
+ style: styleUrl,
+ center: [lng, lat],
+ zoom: 11.2,
+ minZoom: 2,
+ maxZoom: 16,
+ attributionControl: { compact: true },
+ });
+ map.addControl(
+ new NavigationControl({ showCompass: false }),
+ "top-right",
+ );
+ mapRef.current = map;
+
+ const onLoad = () => {
+ readyRef.current = true;
+ setStatus("");
+ map.resize();
+ markerRef.current?.remove();
+ const el = document.createElement("div");
+ el.className = "spd-map-pin";
+ el.setAttribute("aria-label", name);
+ el.textContent = emoji || "📍";
+ markerRef.current = new Marker({ element: el, anchor: "bottom" })
+ .setLngLat([lng, lat])
+ .addTo(map);
+ };
+
+ const onError = (e: { error?: { message: string } }) => {
+ const msg = String(e?.error?.message || e || "");
+ if (
+ index < styles.length - 1 &&
+ (/style|fetch|network|Failed to fetch|AJAXError/i.test(msg) ||
+ !readyRef.current)
+ ) {
+ map.remove();
+ mapRef.current = null;
+ setStatus(`切换备用底图 ${index + 2}/${styles.length}…`);
+ tryStyle(index + 1);
+ }
+ };
+
+ map.once("load", onLoad);
+ map.on("error", onError);
+ };
+
+ tryStyle(0);
+
+ const ro =
+ typeof ResizeObserver !== "undefined"
+ ? new ResizeObserver(() => mapRef.current?.resize())
+ : null;
+ if (containerRef.current && ro) ro.observe(containerRef.current);
+
+ const onWinResize = () => mapRef.current?.resize();
+ window.addEventListener("resize", onWinResize);
+
+ return () => {
+ window.removeEventListener("resize", onWinResize);
+ ro?.disconnect();
+ markerRef.current?.remove();
+ markerRef.current = null;
+ mapRef.current?.remove();
+ mapRef.current = null;
+ };
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- mount once per city
+ }, [lat, lng, name, emoji]);
+
+ return (
+
+
+ {status ? (
+
+ {status}
+
+ ) : null}
+
+ );
+}
diff --git a/src/modules/hub/components/PlacesClient.tsx b/src/modules/hub/components/PlacesClient.tsx
new file mode 100644
index 0000000..cdf20d4
--- /dev/null
+++ b/src/modules/hub/components/PlacesClient.tsx
@@ -0,0 +1,298 @@
+"use client";
+
+import { Suspense, useEffect, useMemo, useState } from "react";
+import Link from "next/link";
+import { useRouter, useSearchParams } from "next/navigation";
+import SiteShell from "./SiteShell";
+import CafeDirectory from "./CafeDirectory";
+import WayDestChrome from "./WayDestChrome";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { prefetchCityCopy, txCity } from "@hub/lib/localizeEntity";
+import {
+ countryKeysForFilter,
+ resolveSocialCities,
+} from "@hub/geo";
+import { useSocialConfig } from "./HubExperience";
+import { useWaysMeta } from "@hub/lib/waysMeta";
+import { useHubAudienceLane } from "@hub/lib/useHubAudience";
+import { isHubCnOnly } from "@hub/lib/hubCnLock";
+
+function PlacesHub() {
+ const params = useSearchParams();
+ const router = useRouter();
+ const { portalLocale, cnOnly } = useHubI18n();
+ const audience = useHubAudienceLane();
+ const hubConfig = useSocialConfig();
+ const geoCfg = hubConfig.copy.hubGeo;
+ const waysMeta = useWaysMeta();
+ const cnMode = cnOnly || isHubCnOnly(hubConfig) || audience === "cn";
+ const cityParam = (params.get("city") || "").trim();
+ const [query, setQuery] = useState("");
+ const [hotOnly, setHotOnly] = useState(false);
+ const [country, setCountry] = useState("中国");
+
+ useEffect(() => {
+ prefetchCityCopy();
+ }, [portalLocale]);
+
+ useEffect(() => {
+ if (!params.get("tab")) return;
+ const sp = new URLSearchParams(params.toString());
+ sp.delete("tab");
+ const q = sp.toString();
+ router.replace(q ? `${hubPath("/places")}?${q}` : hubPath("/places"), {
+ scroll: false,
+ });
+ }, [params, router]);
+
+ const setCity = (name: string | null) => {
+ const sp = new URLSearchParams(params.toString());
+ sp.delete("tab");
+ if (name) sp.set("city", name);
+ else sp.delete("city");
+ const q = sp.toString();
+ router.replace(q ? `${hubPath("/places")}?${q}` : hubPath("/places"), {
+ scroll: false,
+ });
+ };
+
+ const countries = useMemo(
+ () => countryKeysForFilter(geoCfg, { cnOnly: cnMode }),
+ [geoCfg, cnMode],
+ );
+
+ const cityPool = useMemo(
+ () => resolveSocialCities({ geo: geoCfg, audience, cnOnly: cnMode }),
+ [geoCfg, audience, cnMode],
+ );
+
+ const filtered = useMemo(() => {
+ const q = query.trim().toLowerCase();
+ return resolveSocialCities({
+ geo: geoCfg,
+ audience,
+ cnOnly: cnMode,
+ countryZh: country,
+ cities: cityPool.filter((c) => {
+ if (hotOnly && !c.hot) return false;
+ if (!q) return true;
+ const d = txCity(c);
+ return `${c.name} ${c.country} ${c.vibe} ${c.tags.join(" ")} ${d.name} ${d.country} ${d.vibe}`
+ .toLowerCase()
+ .includes(q);
+ }),
+ });
+ }, [query, hotOnly, country, audience, portalLocale, geoCfg, cityPool, cnMode]);
+
+ const activeCity =
+ cityPool.find(
+ (c) =>
+ cityParam &&
+ (c.name === cityParam ||
+ c.name.includes(cityParam) ||
+ cityParam.includes(c.name) ||
+ hubTx(c.name) === cityParam),
+ ) || null;
+ const activeDisplay = activeCity ? txCity(activeCity) : null;
+ const cnCityCount = cityPool.filter((c) => c.country === "中国").length;
+
+ return (
+
+
+
+
+
+
{hubTx("线下见面")}
+
+ {hubTx("同城")} {hubTx("城市")}
+
+
+
+ {hubTx("咖啡聊")}
+
+
+
+
+
+ {hubTx("搜索")}
+ setQuery(e.target.value)}
+ placeholder={hubTx("搜城市")}
+ autoComplete="off"
+ />
+
+ setHotOnly((v) => !v)}
+ >
+ {hubTx("只看热门")}
+
+
+
+ {!cnMode || countries.length > 1 ? (
+
+ setCountry("全部")}
+ >
+ {hubTx("全部")}
+
+ {countries.map((c) => (
+ setCountry(c)}
+ >
+ {hubTx(c)}
+
+ ))}
+
+ ) : null}
+
+
+ setCity(null)}
+ >
+ {hubTx("全部")}
+
+ {filtered.map((city) => {
+ const d = txCity(city);
+ return (
+ setCity(city.name)}
+ >
+ {city.emoji}
+ {d.name}
+
+ );
+ })}
+
+
+ {activeCity && activeDisplay ? (
+
+
+
+
+ {activeCity.emoji} {activeDisplay.country}
+ {activeCity.hot ? ` · ${hubTx("热门")}` : ""}
+
+
{activeDisplay.name}
+
{activeDisplay.vibe}
+
+
+ {hubTx("看这座城")}
+
+
+ {hubTx("地图")}
+
+
+ {hubTx("约咖啡")}
+
+
+
+
+ ) : (
+
+ {filtered.map((city) => {
+ const d = txCity(city);
+ return (
+
setCity(city.name)}
+ >
+
+
+
+ {city.emoji} {d.country}
+ {city.hot ? ` · ${hubTx("热门")}` : ""}
+
+ {d.name}
+ {d.vibe}
+
+
+ );
+ })}
+
+ )}
+
+ {!filtered.length ? (
+
{hubTx("没有匹配的城市,换个关键词试试。")}
+ ) : null}
+
+
+
+
+ {activeDisplay
+ ? `${activeDisplay.name} · ${hubTx("咖啡馆")}`
+ : hubTx("咖啡馆见面点")}
+
+
+ {hubTx("地图")}
+
+
+ {hubTx("加载咖啡馆…")}}>
+
+
+
+
+
+ );
+}
+
+export default function PlacesClient() {
+ return (
+ {hubTx("加载城市…")} }>
+
+
+ );
+}
diff --git a/src/modules/hub/components/ProfileStudio.tsx b/src/modules/hub/components/ProfileStudio.tsx
new file mode 100644
index 0000000..82c7bf2
--- /dev/null
+++ b/src/modules/hub/components/ProfileStudio.tsx
@@ -0,0 +1,332 @@
+"use client";
+
+import { useEffect, useRef, useState, type FormEvent } from "react";
+import Link from "next/link";
+import { ArrowUpRight, Check, Globe2, MapPin, Sparkles } from "lucide-react";
+import SiteShell from "./SiteShell";
+import HubAvatar from "./HubAvatar";
+import { PageIntro } from "./HubUI";
+import { hubApi } from "@hub/lib/api";
+import { useLocalState } from "@hub/lib/useLocalState";
+import { loadJson } from "@hub/lib/storage";
+import {
+ ROSTER_PUBLISH_KEY,
+ setRosterPublished,
+} from "@hub/lib/discoveryRoster";
+import { hubPath } from "@hub/lib/hubPath";
+import type { HubRosterProfile } from "@hub/lib/types";
+import { hubTx } from "@hub/lib/hubTx";
+import TripEditor from "./TripEditor";
+
+const EMPTY: HubRosterProfile = {
+ name: "",
+ title: "",
+ city: "",
+ phone: "",
+ linktree: "",
+ skills: "",
+ bio: "",
+ avatar: "",
+ intents: "",
+ availability: "",
+ status: "",
+ lookingFor: "",
+ gender: "",
+};
+const FIELDS = [
+ {
+ key: "name",
+ label: "怎么称呼你",
+ placeholder: "一个让人记得住的名字",
+ required: true,
+ max: 40,
+ },
+ {
+ key: "title",
+ label: "你正在做什么",
+ placeholder: "独立开发者 / 设计师 / 自由撰稿人…",
+ max: 80,
+ },
+ {
+ key: "city",
+ label: "此刻在哪座城市",
+ placeholder: "成都、大理,或者正在路上",
+ max: 80,
+ },
+ {
+ key: "skills",
+ label: "擅长什么,喜欢什么",
+ placeholder: "设计, 摄影, 冲浪, 开源项目…",
+ max: 200,
+ },
+ {
+ key: "linktree",
+ label: "让别人更了解你的链接(选填)",
+ placeholder: "https://你的作品集或社交主页",
+ max: 400,
+ },
+ {
+ key: "phone",
+ label: "联系方式(选填)",
+ placeholder: "仅在你愿意提供时填写",
+ max: 80,
+ },
+] as const;
+
+export default function ProfileStudio() {
+ const [profile, setProfile] = useLocalState(
+ "roster",
+ EMPTY,
+ );
+ const [published, setPublished] = useLocalState(
+ ROSTER_PUBLISH_KEY,
+ false,
+ );
+ const [, setNick] = useLocalState("nick", "游民");
+ const [sync, setSync] = useLocalState("roster-sync", "draft");
+ const [status, setStatus] = useState("");
+ const [busy, setBusy] = useState(false);
+ const edited = useRef(false),
+ lock = useRef(false);
+ useEffect(() => {
+ let active = true;
+ void hubApi
+ .getRoster()
+ .then((response) => {
+ if (!active || edited.current) return;
+ // An unsent local edit takes precedence over an older server profile.
+ if (
+ response.item &&
+ !loadJson("roster", EMPTY).updatedAt
+ ) {
+ const next = { ...EMPTY };
+ for (const key of Object.keys(EMPTY) as (keyof typeof EMPTY)[]) {
+ next[key] = response.item[key] || "";
+ }
+ // Keep a locally verified selfie if server row has no avatar yet
+ const localAvatar =
+ loadJson("roster", EMPTY).avatar || "";
+ if (!next.avatar && localAvatar) next.avatar = localAvatar;
+ setProfile(next);
+ setSync("synced");
+ }
+ })
+ .catch(() => {
+ if (active) setStatus("你可以继续编辑。资料草稿会保存在当前设备。 ");
+ });
+ return () => {
+ active = false;
+ };
+ // Only load once: later fetches must never overwrite edits.
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
+ const update = (key: keyof HubRosterProfile, value: string) => {
+ edited.current = true;
+ setSync("draft");
+ setProfile((current) => ({
+ ...current,
+ [key]: value,
+ updatedAt: new Date().toISOString(),
+ }));
+ setStatus("");
+ };
+ const complete = [
+ profile.name,
+ profile.title,
+ profile.city,
+ profile.skills,
+ profile.bio,
+ ].filter((value) => value.trim()).length;
+ const submit = async (event: FormEvent) => {
+ event.preventDefault();
+ if (lock.current || !profile.name.trim()) return;
+ if (profile.linktree && !/^https?:\/\//i.test(profile.linktree)) {
+ setStatus("作品链接请以 https:// 或 http:// 开头。");
+ return;
+ }
+ lock.current = true;
+ setBusy(true);
+ const snapshot = { ...profile };
+ const payload = { ...snapshot, name: snapshot.name.trim() };
+ setNick(payload.name);
+ try {
+ await hubApi.saveRoster(payload);
+ setSync("synced");
+ setStatus("介绍已保存。你可以去聊天室跟大家打个招呼。");
+ } catch {
+ setSync("draft");
+ setStatus("先留在你这边了。有网后再点一次保存就行。");
+ } finally {
+ lock.current = false;
+ setBusy(false);
+ }
+ };
+ return (
+
+
+
+
+ {hubTx("看看大家那边")}
+
+
+ {hubTx("去左右滑")}
+
+
+
+
+ {hubTx("写得越完整,别人越容易想认识你。草稿会先留在本机。")}
+
+
+
+
+
+
+ {hubTx("预览")}
+
+
+
+
+
+
+ {profile.avatar?.trim() ? (
+
+
+
+ ) : (
+
+ {profile.name.trim().slice(0, 1) || "N"}
+
+ )}
+
{hubTx("先看看效果")}
+
{profile.name.trim() || "你的名字"}
+
{profile.title || "你在做什么"}
+
+
+ {profile.city || "还没写城市"}
+
+
+ {profile.skills
+ .split(/[,,、]/)
+ .filter(Boolean)
+ .slice(0, 8)
+ .map((skill, index) => (
+ {skill.trim()}
+ ))}
+
+
+ {profile.bio || "还没写自我介绍"}
+
+
+
+
+
+ {hubTx("写好了多少")}
+ {complete}/5
+
+
+
{hubTx("名字 · 做什么 · 城市 · 兴趣 · 介绍")}
+
+
+
+ {hubTx("进群组打招呼")}
+
+
+ {hubTx("看发现页")}
+
+
+ {hubTx("去认识一下")}
+
+
+ {hubTx("语音视频场")}
+
+
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/ReportBlockPanel.tsx b/src/modules/hub/components/ReportBlockPanel.tsx
new file mode 100644
index 0000000..2557ff9
--- /dev/null
+++ b/src/modules/hub/components/ReportBlockPanel.tsx
@@ -0,0 +1,122 @@
+"use client";
+
+import { useState } from "react";
+import { Flag, Ban } from "lucide-react";
+import { hubApi } from "@hub/lib/api";
+import { hubTx } from "@hub/lib/hubTx";
+
+const REASONS = [
+ "骚扰 / 不当言论",
+ "虚假资料",
+ "垃圾广告",
+ "人身安全顾虑",
+ "其他",
+];
+
+export default function ReportBlockPanel({
+ targetGuest,
+ targetName,
+}: {
+ targetGuest: string;
+ targetName: string;
+}) {
+ const [open, setOpen] = useState<"report" | "block" | null>(null);
+ const [reason, setReason] = useState(REASONS[0]);
+ const [detail, setDetail] = useState("");
+ const [busy, setBusy] = useState(false);
+ const [msg, setMsg] = useState("");
+
+ const submitReport = async () => {
+ if (busy) return;
+ setBusy(true);
+ setMsg("");
+ try {
+ await hubApi.reportUser({
+ targetGuest,
+ targetName,
+ reason,
+ detail,
+ });
+ setMsg(hubTx("已提交举报,处理结果会通知你"));
+ setOpen(null);
+ } catch (e) {
+ setMsg(e instanceof Error ? e.message : hubTx("提交失败"));
+ } finally {
+ setBusy(false);
+ }
+ };
+
+ const submitBlock = async () => {
+ if (busy) return;
+ setBusy(true);
+ setMsg("");
+ try {
+ await hubApi.blockUser(targetGuest, reason);
+ setMsg(hubTx("已屏蔽,双方将不再互相看到"));
+ setOpen(null);
+ } catch (e) {
+ setMsg(e instanceof Error ? e.message : hubTx("操作失败"));
+ } finally {
+ setBusy(false);
+ }
+ };
+
+ return (
+
+
+ setOpen(open === "report" ? null : "report")}
+ >
+ {hubTx("举报")}
+
+ setOpen(open === "block" ? null : "block")}
+ >
+ {hubTx("屏蔽")}
+
+
+ {msg ? {msg}
: null}
+ {open ? (
+
+
+ {hubTx("原因")}
+ setReason(e.target.value)}>
+ {REASONS.map((r) => (
+
+ {hubTx(r)}
+
+ ))}
+
+
+ {open === "report" ? (
+
+ {hubTx("补充说明")}
+ setDetail(e.target.value)}
+ maxLength={800}
+ />
+
+ ) : null}
+ void (open === "report" ? submitReport() : submitBlock())}
+ >
+ {busy
+ ? hubTx("提交中…")
+ : open === "report"
+ ? hubTx("提交举报")
+ : hubTx("确认屏蔽")}
+
+
+ ) : null}
+
+ );
+}
diff --git a/src/modules/hub/components/ResourceLibrary.tsx b/src/modules/hub/components/ResourceLibrary.tsx
new file mode 100644
index 0000000..53d2601
--- /dev/null
+++ b/src/modules/hub/components/ResourceLibrary.tsx
@@ -0,0 +1,549 @@
+"use client";
+
+import Link from "next/link";
+import {
+ useMemo,
+ useRef,
+ useState,
+ useSyncExternalStore,
+ type FormEvent,
+} from "react";
+import {
+ ArrowUpRight,
+ BookOpen,
+ BriefcaseBusiness,
+ Film,
+ MessageCircle,
+ PenLine,
+ Play,
+ Send,
+ Users,
+} from "lucide-react";
+import SiteShell from "./SiteShell";
+import WayDestChrome from "./WayDestChrome";
+import {
+ BookmarkButton,
+ DemoBadge,
+ EmptyState,
+ PageIntro,
+ SearchField,
+ ResultSummary,
+ ShareButton,
+ HubDialog,
+} from "./HubUI";
+import { useSocialConfig } from "./HubExperience";
+import { SEED_EBOOKS, SEED_VIDEOS } from "@hub/lib/seed";
+import { useLocalState } from "@hub/lib/useLocalState";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubApi } from "@hub/lib/api";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { useWaysMeta } from "@hub/lib/waysMeta";
+import { resolveSocialCatalog } from "@hub/lib/resolveCatalog";
+
+type Kind = "videos" | "date" | "ebook";
+const COPY = {
+ videos: { title: "共创 · 视频", accent: "大家拍的" },
+ date: { title: "共创 · 访谈", accent: "听听大家" },
+ ebook: { title: "共创 · 小册", accent: "大家写的" },
+};
+
+function subscribeSelection(callback: () => void) {
+ window.addEventListener("hashchange", callback);
+ window.addEventListener("popstate", callback);
+ return () => {
+ window.removeEventListener("hashchange", callback);
+ window.removeEventListener("popstate", callback);
+ };
+}
+const readSelection = () => location.hash.slice(1);
+const emptySelection = () => "";
+function setSelection(id: string | null) {
+ const url = new URL(location.href);
+ url.hash = id || "";
+ history.replaceState(history.state, "", url);
+ window.dispatchEvent(new Event("hashchange"));
+}
+
+function safeSource(value?: string) {
+ if (!value) return undefined;
+ try {
+ const url = new URL(value, "https://nomadro.cn");
+ return url.protocol === "https:" || url.protocol === "http:"
+ ? value
+ : undefined;
+ } catch {
+ return undefined;
+ }
+}
+
+function ResourcePlayer({ source }: { source: string }) {
+ const [failed, setFailed] = useState(false);
+ return (
+ <>
+ setFailed(true)}
+ onLoadedMetadata={() => setFailed(false)}
+ />
+ {failed && (
+
+ {hubTx("视频暂时播不了,过一会儿再试试。")}
+
+ )}
+ >
+ );
+}
+
+function ContributeForm({
+ kind,
+ onClose,
+}: {
+ kind: Kind;
+ onClose: () => void;
+}) {
+ const books = kind === "ebook";
+ const [draft, setDraft] = useLocalState(`cocreate-draft:${kind}`, {
+ name: "",
+ contact: "",
+ title: "",
+ note: "",
+ });
+ // v2 only records real API acknowledgements; v1 was a local-only timer.
+ const [sent, setSent] = useLocalState(`cocreate-delivered-v2:${kind}`, false);
+ const [busy, setBusy] = useState(false);
+ const [status, setStatus] = useState("");
+ const lock = useRef(false);
+ const update = (key: keyof typeof draft, value: string) => {
+ setDraft((c) => ({ ...c, [key]: value }));
+ setSent(false);
+ setStatus("");
+ };
+ const submit = async (event: FormEvent) => {
+ event.preventDefault();
+ if (lock.current || !draft.name.trim() || !draft.contact.trim()) return;
+ lock.current = true;
+ setBusy(true);
+ try {
+ await hubApi.postFeedback({
+ kind: "建议",
+ text: `【共创${books ? "小册" : "视频 / 访谈"}投稿】\n称呼:${draft.name.trim()}\n主题:${draft.title.trim() || "待讨论"}\n${draft.note.trim()}`,
+ contact: draft.contact.trim(),
+ });
+ setSent(true);
+ } catch {
+ setStatus("暂时未发送,草稿已保留在当前设备。请重试提交。");
+ } finally {
+ setBusy(false);
+ lock.current = false;
+ }
+ };
+
+ if (sent) {
+ return (
+
+
+
+
+
{hubTx("共创意向已提交")}
+
+ {hubTx("已发送给社区运营。请保留联系方式,方便后续沟通。")}
+
+
+
+
+ {hubTx("去招聘")}
+
+
+ {hubTx("关闭")}
+
+ { setSent(false); setDraft({ name: "", contact: "", title: "", note: "" }); }}>{hubTx("再写一个主题")}
+
+
+ );
+ }
+
+ return (
+
+
+
{books ? "小册" : "视频 / 访谈"}
+
{hubTx("想一起做内容?")}
+
+ {hubTx("写个主题或素材想法就行。不用一次写完,先表达兴趣。")}
+
+
+
void submit(event)}
+ >
+
+
+ {hubTx("怎么称呼你")}
+ update("name", e.target.value)}
+ />
+
+
+ {hubTx("联系方式")}
+ update("contact", e.target.value)}
+ />
+
+
+ {hubTx("主题 / 暂定标题")}
+ update("title", e.target.value)}
+ />
+
+
+ {hubTx("一句话介绍")}
+ update("note", e.target.value)}
+ />
+
+
+
+
+
+ {busy ? "提交中…" : status ? "重试提交" : "提交意向"}
+
+
+ {hubTx("取消")}
+
+
+ {status && {status}
}
+
+ {hubTx("草稿离线也能写。提交不等于立刻上线,只是先把想法放进来。")}
+
+
+
+ );
+}
+
+export default function ResourceLibrary({ kind }: { kind: Kind }) {
+ useHubI18n();
+ const [query, setQuery] = useState("");
+ const [savedOnly, setSavedOnly] = useState(false);
+ const selected = useSyncExternalStore(subscribeSelection, readSelection, emptySelection);
+ const [contributeOpen, setContributeOpen] = useState(false);
+ const config = useSocialConfig();
+ const waysMeta = useWaysMeta();
+ const catalog = useMemo(
+ () => resolveSocialCatalog(config.copy.hubCatalogs),
+ [config.copy.hubCatalogs],
+ );
+ const topGigs = (catalog.gigs || []).slice(0, 3);
+ const [saved] = useLocalState(`saved-${kind}`, []);
+ const books = kind === "ebook";
+ const items = books
+ ? SEED_EBOOKS.map((book) => ({
+ ...book,
+ title: hubTx(book.title),
+ summary: hubTx(book.blurb),
+ city: hubTx("共创"),
+ coverEmoji: "✦",
+ detail: `${book.chapters} ${hubTx("章")} · ${book.minutes} ${hubTx("分钟")}`,
+ }))
+ : SEED_VIDEOS.map((video) => ({
+ ...video,
+ title: hubTx(video.title),
+ summary: hubTx(video.summary),
+ city: hubTx(video.city),
+ detail: `${hubTx(video.city)} · ${video.minutes} ${hubTx("分钟")}`,
+ }));
+ const shown = items.filter(
+ (item) =>
+ (!savedOnly || saved.includes(item.id)) &&
+ `${item.title} ${item.summary} ${item.city}`
+ .toLowerCase()
+ .includes(query.toLowerCase().trim()),
+ );
+ const active = items.find((item) => item.id === selected);
+ const source =
+ active && safeSource(config.copy.hubVideoSources?.[active.id]);
+ return (
+
+
+
+
+
+
+ {hubTx("招聘")}
+
+
+ {hubTx("小册")}
+
+
+ {hubTx("视频")}
+
+
+ {hubTx("技能")}
+
+
+ {hubTx(books ? "先看看有哪些" : "有的可以看,有的先看封面")}
+
+
+
+ {books ? (
+
+
+
+ {hubTx("招聘")}
+ {hubTx("找帮手 / 接活")}
+
+ {waysMeta.gigCount
+ ? hubTx("{n} 个机会").replace("{n}", String(waysMeta.gigCount))
+ : hubTx("去看看")}
+
+
+
+ {hubTx("技能交换")}
+ {hubTx("能给什么 · 想换什么")}
+ {hubTx("去发布")}
+
+
+ {hubTx("视频共创")}
+ {hubTx("拍 · 剪 · 一起做")}
+ {hubTx("逛视频")}
+
+
+ {topGigs.length ? (
+
+ {topGigs.map((g) => (
+
+ {hubTx(g.title)}
+
+ ))}
+
+ ) : null}
+
+ ) : null}
+
+
+
+
setSavedOnly(false)}
+ >
+ {hubTx("全部")}
+
+
setSavedOnly(true)}
+ >
+ {hubTx("收藏 · ")}
+ {saved.length}
+
+
setContributeOpen(true)}
+ >
+
+ {hubTx("我想投稿")}
+
+
+
+ { setQuery(""); setSavedOnly(false); }} />
+
+ {shown.map((item, index) => (
+
+ setSelection(item.id)}
+ aria-label={`${hubTx("查看")}${item.title}`}
+ >
+
+
+ {String(index + 1).padStart(2, "0")}
+
+ {books ? (
+
+ {hubTx("共创")}
+
+ {item.title}
+ {hubTx("阅读")}
+
+ ) : (
+ <>
+
+ {item.coverEmoji}
+
+ {safeSource(config.copy.hubVideoSources?.[item.id]) ? (
+
+ ) : (
+
+ )}
+
+
+ {hubTx(
+ safeSource(config.copy.hubVideoSources?.[item.id])
+ ? "可以看"
+ : "先看封面",
+ )}
+
+ >
+ )}
+
+
+ {item.detail}
+
+
+ {item.title}
+ {item.summary}
+
+
setSelection(item.id)}
+ >
+ {hubTx("打开")}
+
+
+
+
+
+ ))}
+ {!shown.length && (
+
+ {
+ setQuery("");
+ setSavedOnly(false);
+ }}
+ >
+ {hubTx("重置筛选")}
+
+ setContributeOpen(true)}
+ >
+
+ {hubTx("我想投稿")}
+
+
+ )}
+
+ {active && (
+ setSelection(null)}>
+
+ {active.detail}
+
+ {hubTx(books ? "共创小册" : source ? "可播放" : "先看封面")}
+
+
+ {!books && source && }
+ {active.summary}
+ {!books && !source && (
+
+ {hubTx("视频还没放出来,可以先收藏,或去聊天室聊聊。")}
+
+ )}
+ {books && {hubTx("先看看简介;想读全文可以去书库。")}
}
+
+ {books && (
+
+ {hubTx("打开书库")}
+
+ )}
+
+
+ {hubTx("去聊天室聊聊")}
+
+
+
+
+ )}
+ {contributeOpen && (
+ setContributeOpen(false)}>
+ setContributeOpen(false)} />
+
+ )}
+
+ );
+}
+
+export function VideosLibrary() {
+ return ;
+}
+export function StoriesLibrary() {
+ return ;
+}
+export function BooksLibrary() {
+ return ;
+}
diff --git a/src/modules/hub/components/RoleBoard.tsx b/src/modules/hub/components/RoleBoard.tsx
new file mode 100644
index 0000000..1f98041
--- /dev/null
+++ b/src/modules/hub/components/RoleBoard.tsx
@@ -0,0 +1,619 @@
+"use client";
+
+import {
+ useEffect,
+ useMemo,
+ useRef,
+ useState,
+ type FormEvent,
+} from "react";
+import Link from "next/link";
+import {
+ ArrowUpRight,
+ BookOpen,
+ BriefcaseBusiness,
+ Check,
+ FileUp,
+ Globe2,
+ HeartHandshake,
+ MapPin,
+ Paperclip,
+ Send,
+ Sparkles,
+ X,
+} from "lucide-react";
+import SiteShell from "./SiteShell";
+import WayDestChrome from "./WayDestChrome";
+import {
+ BookmarkButton,
+ EmptyState,
+ SearchField,
+ HubDialog,
+} from "./HubUI";
+import { useWaysMeta } from "@hub/lib/waysMeta";
+import { TEAM_KIND_LABEL } from "@hub/lib/seed";
+import { hubApi } from "@hub/lib/api";
+import { useLocalState } from "@hub/lib/useLocalState";
+import { resolveSocialCatalog } from "@hub/lib/resolveCatalog";
+import { useSocialConfig } from "./HubExperience";
+import { hubPath } from "@hub/lib/hubPath";
+import type { HubGig, HubTeamKind } from "@hub/lib/types";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { txGig } from "@hub/lib/localizeEntity";
+
+const RESUME_ACCEPT =
+ ".pdf,.doc,.docx,.txt,.rtf,image/png,image/jpeg,image/webp,application/pdf";
+const RESUME_MAX_BYTES = 10 * 1024 * 1024;
+
+const NOTE_PROMPTS = [
+ "做过类似项目…",
+ "每周可投入…",
+ "作品在这里…",
+ "想一起做成…",
+] as const;
+
+function kindTone(kind?: string) {
+ if (kind === "volunteer") return "volunteer";
+ if (kind === "fulltime") return "fulltime";
+ return "parttime";
+}
+
+function ApplicationForm({ gig }: { gig: HubGig }) {
+ const [draft, setDraft] = useLocalState(`gig-draft:${gig.id}`, {
+ name: "",
+ contact: "",
+ note: "",
+ resumeUrl: "",
+ resumeName: "",
+ });
+ const [delivery, setDelivery] = useLocalState(
+ `gig-delivery:${gig.id}`,
+ "draft",
+ );
+ const [status, setStatus] = useState("");
+ const [busy, setBusy] = useState(false);
+ const [uploading, setUploading] = useState(false);
+ const lock = useRef(false);
+ const fileRef = useRef(null);
+ const filled =
+ Number(Boolean(draft.name.trim())) +
+ Number(Boolean(draft.contact.trim())) +
+ Number(Boolean(draft.note.trim())) +
+ Number(Boolean((draft.resumeUrl || "").trim()));
+ const update = (key: keyof typeof draft, value: string) => {
+ setDraft((current) => ({ ...current, [key]: value }));
+ setDelivery("draft");
+ setStatus("");
+ };
+ const clearResume = () => {
+ setDraft((current) => ({
+ ...current,
+ resumeUrl: "",
+ resumeName: "",
+ }));
+ setDelivery("draft");
+ if (fileRef.current) fileRef.current.value = "";
+ };
+ const onPickResume = async (file: File | null) => {
+ if (!file || uploading || busy) return;
+ if (file.size > RESUME_MAX_BYTES) {
+ setStatus(hubTx("简历请小于 10MB"));
+ return;
+ }
+ setUploading(true);
+ setStatus("");
+ try {
+ const uploaded = await hubApi.uploadResume(file);
+ if (!uploaded?.url) throw new Error("no url");
+ setDraft((current) => ({
+ ...current,
+ resumeUrl: uploaded.url,
+ resumeName: (uploaded.name || file.name).slice(0, 200),
+ }));
+ setDelivery("draft");
+ setStatus(hubTx("简历已上传,可以提交申请了"));
+ } catch (err) {
+ const msg = err instanceof Error ? err.message : "";
+ setStatus(
+ msg && !/^upload failed|^上传失败/i.test(msg)
+ ? msg
+ : hubTx("简历上传失败,请重试"),
+ );
+ } finally {
+ setUploading(false);
+ if (fileRef.current) fileRef.current.value = "";
+ }
+ };
+ const submit = async (event: FormEvent) => {
+ event.preventDefault();
+ if (
+ lock.current ||
+ delivery === "sent" ||
+ uploading ||
+ !draft.name.trim() ||
+ !draft.contact.trim()
+ )
+ return;
+ lock.current = true;
+ setBusy(true);
+ try {
+ await hubApi.applyGig(gig.id, {
+ name: draft.name.trim(),
+ contact: draft.contact.trim(),
+ note: draft.note.trim(),
+ resumeUrl: (draft.resumeUrl || "").trim(),
+ resumeName: (draft.resumeName || "").trim(),
+ });
+ setDelivery("sent");
+ setStatus("申请已提交。对方看到后会再联系你——先不急。");
+ } catch {
+ setDelivery("local");
+ setStatus("申请已先留在本机。有网后再点一次即可重试。");
+ } finally {
+ lock.current = false;
+ setBusy(false);
+ }
+ };
+
+ if (delivery === "sent") {
+ return (
+
+
+
+
+
{hubTx("已表达兴趣")}
+
{hubTx(status || "对方看到后会再联系你。")}
+
+
{hubTx(gig.title)}
+
{hubTx(TEAM_KIND_LABEL[gig.kind || "parttime"])}
+ {draft.resumeName ? (
+
+ {draft.resumeName}
+
+ ) : null}
+
+
+
+ {hubTx("去群里打个招呼")}
+
+
+
+ {hubTx("逛逛共创")}
+
+ {
+ setDelivery("draft");
+ setStatus("可以再改一版后提交。");
+ }}
+ >
+ {hubTx("再投一份")}
+
+
+
+ );
+ }
+
+ return (
+
+
+
+ {hubTx(TEAM_KIND_LABEL[gig.kind || "parttime"])}
+
+
{hubTx(gig.title)}
+
{hubTx(gig.role)}
+
+ {hubTx(gig.pay)}
+ {hubTx(gig.remote ? "线上也能做" : "可以见面做")}
+ {gig.tags.slice(0, 4).map((tag) => (
+ {hubTx(tag)}
+ ))}
+
+
+
+
+
+
+
+
+ {filled === 0
+ ? hubTx("先简单介绍自己")
+ : filled < 2
+ ? hubTx("还差称呼和联系方式")
+ : hubTx("可以提交了(简历可选)")}
+
+
+
+
void submit(e)}
+ >
+
+
+ {hubTx("怎么称呼你")}
+ update("name", event.target.value)}
+ />
+
+
+ {hubTx("联系方式")}
+ update("contact", event.target.value)}
+ />
+
+
+ {hubTx("你能带来什么")}
+ update("note", event.target.value)}
+ placeholder={hubTx("相关经历、作品链接、每周能投入多久…")}
+ />
+
+ {NOTE_PROMPTS.map((tip) => (
+
+ update(
+ "note",
+ draft.note.trim()
+ ? `${draft.note.trim()}\n${tip}`
+ : tip,
+ )
+ }
+ >
+ {tip}
+
+ ))}
+
+
+ {draft.note.length}/2000 · 多写一点,对方更容易回你
+
+
+
+
+
+
+ {hubTx("上传简历(可选)")}
+
+
+ {hubTx("支持 PDF / Word / 图片,最大 10MB")}
+
+
+ void onPickResume(event.target.files?.[0] || null)
+ }
+ />
+ {draft.resumeUrl ? (
+
+ ) : (
+
fileRef.current?.click()}
+ >
+
+ {uploading
+ ? hubTx("上传中…")
+ : hubTx("选择简历文件")}
+
+ )}
+
+
+
+
+
+ {busy
+ ? "提交中…"
+ : delivery === "local"
+ ? "重试提交"
+ : "发送参与申请"}
+
+
+ {status ? (
+
+ {status}
+
+ ) : null}
+
+ {hubTx(
+ "草稿会先留在你这边。提交只是表达兴趣,不代表已经被录用。",
+ )}
+
+
+
+ );
+}
+
+export default function RoleBoard({
+ initialKind = "all",
+}: {
+ initialKind?: HubTeamKind | "all";
+}) {
+ useHubI18n();
+ const config = useSocialConfig();
+ const catalog = useMemo(
+ () => resolveSocialCatalog(config.copy.hubCatalogs),
+ [config.copy.hubCatalogs],
+ );
+ const [kind, setKind] = useState(initialKind);
+ const [query, setQuery] = useState("");
+ const [savedOnly, setSavedOnly] = useState(false);
+ const [saved] = useLocalState("saved-roles", []);
+ const [active, setActive] = useState(null);
+
+ useEffect(() => {
+ const openFromHash = () => {
+ const id = (typeof location !== "undefined" ? location.hash : "").slice(1);
+ if (!id) return;
+ const gig = catalog.gigs.find((g) => g.id === id);
+ if (gig) {
+ setActive(gig);
+ document.getElementById(`gig-${gig.id}`)?.scrollIntoView({
+ behavior: "smooth",
+ block: "center",
+ });
+ }
+ };
+ openFromHash();
+ window.addEventListener("hashchange", openFromHash);
+ return () => window.removeEventListener("hashchange", openFromHash);
+ }, [catalog.gigs]);
+
+ const roles = catalog.gigs.filter(
+ (gig) =>
+ (kind === "all" || gig.kind === kind) &&
+ (!savedOnly || saved.includes(gig.id)) &&
+ `${gig.title} ${gig.role} ${gig.tags.join(" ")}`
+ .toLowerCase()
+ .includes(query.toLowerCase().trim()),
+ );
+ const filtered = Boolean(query || kind !== "all" || savedOnly);
+ const waysMeta = useWaysMeta();
+
+ return (
+
+
+
+
+ {hubTx("一起做事")}
+
+ {hubTx("招聘")}
+
+ {hubTx("帮手 · 兼职 · 全职")}
+
+
+
+ {hubTx(
+ "点一条看看详情,感兴趣就留个联系方式。草稿会先留在本机。",
+ )}
+
+
+
+
+ {hubTx("招聘")}
+
+
+
+ {hubTx("共创")}
+
+
+
+
+
+
+
+ {(
+ [["all", "全部"], ...Object.entries(TEAM_KIND_LABEL)] as [
+ string,
+ string,
+ ][]
+ ).map(([id, label]) => (
+ setKind(id)}
+ >
+ {hubTx(label)}
+
+ ))}
+ setSavedOnly(!savedOnly)}
+ >
+ {hubTx("收藏")} · {saved.length}
+
+
+
+
+
+ {roles.length}
+ {hubTx("个机会")}
+ {filtered ? (
+ {
+ setQuery("");
+ setKind("all");
+ setSavedOnly(false);
+ }}
+ >
+ {hubTx("清除筛选")}
+
+ ) : (
+
+ {catalog.source === "remote"
+ ? hubTx("最新机会")
+ : hubTx("本地机会")}
+
+ )}
+
+
+
+ {roles.map((gig, index) => {
+ const d = txGig(gig);
+ const tone = kindTone(gig.kind);
+ return (
+
+
+ {gig.kind === "volunteer" ? (
+
+ ) : (
+
+ )}
+
+
+
+
+ {hubTx(TEAM_KIND_LABEL[gig.kind || "parttime"])}
+
+
+
+
{d.title}
+ {d.role &&
+ d.role !== d.title &&
+ d.role !== TEAM_KIND_LABEL[gig.kind || "parttime"] ? (
+
{d.role}
+ ) : null}
+
+
+ {gig.remote ? (
+
+ ) : (
+
+ )}
+ {hubTx(gig.remote ? "线上也能做" : "可以见面做")}
+
+ {d.pay}
+
+ {d.tags.length ? (
+
+ {d.tags.slice(0, 5).map((tag) => (
+ {tag}
+ ))}
+
+ ) : null}
+
+
+
setActive(gig)}
+ >
+ {hubTx("我想参与")}
+
+
+
+
+ );
+ })}
+ {!roles.length ? (
+
+ {
+ setQuery("");
+ setKind("all");
+ setSavedOnly(false);
+ }}
+ >
+ {hubTx("重新看看")}
+
+
+
+ {hubTx("去共创逛逛")}
+
+
+ ) : null}
+
+
+
+ {active ? (
+ setActive(null)}
+ >
+
+
+ ) : null}
+
+ );
+}
diff --git a/src/modules/hub/components/RosterClient.tsx b/src/modules/hub/components/RosterClient.tsx
new file mode 100644
index 0000000..5808752
--- /dev/null
+++ b/src/modules/hub/components/RosterClient.tsx
@@ -0,0 +1,3 @@
+"use client";
+
+export { default } from "./ProfileStudio";
diff --git a/src/modules/hub/components/SectionSpark.tsx b/src/modules/hub/components/SectionSpark.tsx
new file mode 100644
index 0000000..e86dfc9
--- /dev/null
+++ b/src/modules/hub/components/SectionSpark.tsx
@@ -0,0 +1,31 @@
+"use client";
+
+/** Decorative SVG spark behind section titles */
+export default function SectionSpark({
+ label,
+}: {
+ label: string;
+}) {
+ return (
+
+ );
+}
diff --git a/src/modules/hub/components/SiteShell.tsx b/src/modules/hub/components/SiteShell.tsx
new file mode 100644
index 0000000..27a10ce
--- /dev/null
+++ b/src/modules/hub/components/SiteShell.tsx
@@ -0,0 +1,521 @@
+"use client";
+
+import Link from "next/link";
+import { usePathname } from "next/navigation";
+import { LogOut } from "lucide-react";
+import {
+ useEffect,
+ useId,
+ useMemo,
+ useRef,
+ useState,
+ useSyncExternalStore,
+ type ReactNode,
+} from "react";
+import NotifyBell from "@notify/components/NotifyBell";
+import { hubPath } from "@hub/lib/hubPath";
+import { isHubNavEnabled } from "@hub/lib/navFlags";
+import {
+ applySocialSkin,
+ parseHubSkin,
+ readSocialSkinDebugLock,
+ HUB_SKIN_DEFAULT,
+} from "@hub/lib/skin";
+import {
+ getSocialSession,
+ logoutSocialSession,
+ subscribeSocialSession,
+} from "@hub/lib/hubSession";
+import { useRevealMotion } from "@hub/lib/useRevealMotion";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { hubTx } from "@hub/lib/hubTx";
+import { LanguageSwitcher } from "~/components/language-switcher";
+import { useRemoteConfig } from "~/lib/use-remote-config";
+import { HubMobileDock } from "./HubNavigation";
+import HubQuickRail from "./HubQuickRail";
+import HubBrandLogo from "./HubBrandLogo";
+import JoinPayModal from "./JoinPayModal";
+import NavAccountMenu from "./NavAccountMenu";
+import TrialNudgeBanner from "./TrialNudgeBanner";
+import HubLiveShell from "./HubLiveShell";
+import HubFeedbackMate from "./HubFeedbackMate";
+import HubCommandPalette from "./HubCommandPalette";
+import HubShortcutsHelp from "./HubShortcutsHelp";
+import HubOfflineBanner from "./HubOfflineBanner";
+import {
+ consumeOpenJoinModalFlag,
+ subscribeSocialJoinModal,
+} from "@hub/lib/joinModal";
+import {
+ readHubSuperPrefs,
+ writeHubSuperPrefs,
+} from "@hub/lib/hubSuperPrefs";
+
+export default function SiteShell({
+ children,
+ title,
+ home = false,
+ immersive = false,
+ /** Blog / policy pages — content-first, no QuickRail (AdSense readability) */
+ editorial = false,
+ /** Work / tool surfaces — no QuickRail or trial nudge chrome */
+ tools = false,
+ onJoin,
+}: {
+ children: ReactNode;
+ title?: string;
+ home?: boolean;
+ /** Full-bleed pages (map) — no quick rail / dense workspace chrome */
+ immersive?: boolean;
+ editorial?: boolean;
+ tools?: boolean;
+ onJoin?: () => void;
+}) {
+ const { t, portalLocale, cnOnly } = useHubI18n();
+ const { config } = useRemoteConfig();
+ const navFlags = config.copy.hubExperience?.navigation;
+ const announcement = config.copy.hubExperience?.announcement;
+ const navGroups = useMemo(
+ () =>
+ t.navGroups
+ .map((g) => ({
+ ...g,
+ items: g.items.filter((item) => isHubNavEnabled(navFlags, item.href)),
+ }))
+ .filter((g) => g.items.length > 0),
+ [t.navGroups, navFlags],
+ );
+ const announceText =
+ announcement?.enabled
+ ? (portalLocale === "zh"
+ ? announcement.zh
+ : announcement.en || announcement.zh
+ )?.trim()
+ : "";
+ const [openGroup, setOpenGroup] = useState(null);
+ const [menuOpen, setMenuOpen] = useState(false);
+ const [scrolled, setScrolled] = useState(false);
+ const [loginOpen, setLoginOpen] = useState(false);
+ const [joinHint, setJoinHint] = useState(undefined);
+ const pathname = usePathname();
+ const menuId = useId();
+ const menuButtonRef = useRef(null);
+ const navRef = useRef(null);
+ const menuPanelRef = useRef(null);
+ const sessionSnap = useSyncExternalStore(
+ subscribeSocialSession,
+ () => JSON.stringify(getSocialSession()),
+ () => "null",
+ );
+ const session = JSON.parse(sessionSnap) as ReturnType<
+ typeof getSocialSession
+ >;
+ const remoteSkin = parseHubSkin(
+ config.copy.hubSkin ||
+ config.copy.hubExperience?.skin ||
+ HUB_SKIN_DEFAULT,
+ );
+ useEffect(() => {
+ const sync = () => {
+ // 本地调试小球锁定后,不让远程配置把主题打回去
+ if (readSocialSkinDebugLock()) return;
+ applySocialSkin(remoteSkin);
+ };
+ sync();
+ window.addEventListener("nomadro-hub-skin-change", sync);
+ return () =>
+ window.removeEventListener("nomadro-hub-skin-change", sync);
+ }, [remoteSkin]);
+
+ const openJoin = () => {
+ setLoginOpen(true);
+ onJoin?.();
+ };
+
+ useEffect(() => {
+ return subscribeSocialJoinModal((detail) => {
+ setJoinHint(detail.hint || undefined);
+ setLoginOpen(true);
+ });
+ }, []);
+
+ useEffect(() => {
+ if (consumeOpenJoinModalFlag()) setLoginOpen(true);
+ }, [pathname]);
+
+ useEffect(() => {
+ try {
+ const q = new URLSearchParams(window.location.search);
+ if (q.get("join") === "1" || q.get("hub_join") === "1") {
+ setLoginOpen(true);
+ }
+ } catch {
+ /* ignore */
+ }
+ }, []);
+
+ useRevealMotion(home ? ".social-home" : ".social-workspace", [
+ home,
+ pathname,
+ ]);
+
+ useEffect(() => {
+ const onScroll = () => setScrolled(window.scrollY > 24);
+ onScroll();
+ window.addEventListener("scroll", onScroll, { passive: true });
+ return () => window.removeEventListener("scroll", onScroll);
+ }, []);
+
+ useEffect(() => {
+ if (!menuOpen && !openGroup) return;
+ const onKey = (event: KeyboardEvent) => {
+ if (event.key === "Escape") {
+ setMenuOpen(false);
+ setOpenGroup(null);
+ if (menuOpen) menuButtonRef.current?.focus();
+ else
+ navRef.current
+ ?.querySelector('[aria-expanded="true"]')
+ ?.focus();
+ }
+ };
+ const onOutside = (event: PointerEvent) => {
+ if (!navRef.current?.contains(event.target as Node)) {
+ setOpenGroup(null);
+ setMenuOpen(false);
+ }
+ };
+ window.addEventListener("keydown", onKey);
+ window.addEventListener("pointerdown", onOutside);
+ return () => {
+ window.removeEventListener("keydown", onKey);
+ window.removeEventListener("pointerdown", onOutside);
+ };
+ }, [menuOpen, openGroup]);
+
+ useEffect(() => {
+ if (!menuOpen) return;
+ const previousOverflow = document.body.style.overflow;
+ document.body.style.overflow = "hidden";
+ menuPanelRef.current?.querySelector("button")?.focus();
+ const trapFocus = (event: KeyboardEvent) => {
+ if (event.key !== "Tab") return;
+ const items = Array.from(navRef.current?.querySelectorAll('a[href], button:not(:disabled)') || [])
+ .filter((element) => element.getClientRects().length > 0 && getComputedStyle(element).visibility !== "hidden");
+ const first = items[0], last = items[items.length - 1];
+ if (event.shiftKey && document.activeElement === first) { event.preventDefault(); last?.focus(); }
+ else if (!event.shiftKey && document.activeElement === last) { event.preventDefault(); first?.focus(); }
+ };
+ const media = matchMedia("(min-width: 901px)");
+ const closeOnDesktop = () => { if (media.matches) setMenuOpen(false); };
+ document.addEventListener("keydown", trapFocus);
+ media.addEventListener("change", closeOnDesktop);
+ return () => {
+ document.body.style.overflow = previousOverflow;
+ document.removeEventListener("keydown", trapFocus);
+ media.removeEventListener("change", closeOnDesktop);
+ };
+ }, [menuOpen]);
+
+ const closeMenus = () => {
+ setMenuOpen(false);
+ setOpenGroup(null);
+ };
+
+ const joinBtn = (
+ {
+ closeMenus();
+ openJoin();
+ }}
+ >
+ {t.joinCommunity}
+
+ );
+
+ const nav = (
+
+
+
+
+
+
+
+ {!cnOnly ? : null}
+ {session ? : null}
+ {session ? (
+
+ ) : (
+ <>
+ {
+ closeMenus();
+ openJoin();
+ }}
+ >
+ {hubTx("登录")}
+
+ {joinBtn}
+ >
+ )}
+ setMenuOpen((v) => !v)}
+ aria-label={t.menu}
+ aria-expanded={menuOpen}
+ aria-controls={menuId}
+ >
+
+
+
+
+
+
+
+ );
+
+ const announceId = `${announceText}|${announcement?.href || ""}`;
+ const [announceGone, setAnnounceGone] = useState(false);
+ useEffect(() => {
+ setAnnounceGone(
+ Boolean(announceText) &&
+ readHubSuperPrefs().announceDismissedId === announceId,
+ );
+ }, [announceId, announceText]);
+ const announceBar =
+ announceText && !announceGone ? (
+
+ {announcement?.href ? (
+
+ {announceText}
+
+ ) : (
+ {announceText}
+ )}
+ {
+ writeHubSuperPrefs({ announceDismissedId: announceId });
+ setAnnounceGone(true);
+ }}
+ >
+ ×
+
+
+ ) : null;
+
+ const hubChrome = (
+ <>
+
+
+
+ >
+ );
+
+ const authModal = (
+ {
+ setLoginOpen(false);
+ setJoinHint(undefined);
+ }}
+ />
+ );
+
+ if (home) {
+ return (
+ <>
+
+ {t.skipToMain}
+
+ {nav}
+ {announceBar}
+ {hubChrome}
+
+ {children}
+
+
+ {authModal}
+ >
+ );
+ }
+
+ if (immersive) {
+ return (
+
+ );
+ }
+
+ if (editorial) {
+ return (
+
+
+ {t.skipToMain}
+
+ {nav}
+ {/* home: heartbeat only, no presence strip on blog/policy */}
+
+
+
+ {children}
+
+
+
+
+ {authModal}
+
+ );
+ }
+
+ if (tools) {
+ return (
+
+ );
+ }
+
+ return (
+
+
+ {t.skipToMain}
+
+ {nav}
+ {announceBar}
+ {hubChrome}
+
+
+
+
+
+ {children}
+
+
+
+
+ {authModal}
+
+ );
+}
diff --git a/src/modules/hub/components/SkillsBoardClient.tsx b/src/modules/hub/components/SkillsBoardClient.tsx
new file mode 100644
index 0000000..4e716e3
--- /dev/null
+++ b/src/modules/hub/components/SkillsBoardClient.tsx
@@ -0,0 +1,214 @@
+"use client";
+
+import { useEffect, useState, type FormEvent } from "react";
+import { ArrowLeftRight, MapPin, Plus } from "lucide-react";
+import SiteShell from "./SiteShell";
+import WayDestChrome from "./WayDestChrome";
+import { PageIntro } from "./HubUI";
+import { hubApi, getGuestId } from "@hub/lib/api";
+import { loadJson } from "@hub/lib/storage";
+import { hubTx } from "@hub/lib/hubTx";
+
+type SkillItem = {
+ id: string;
+ guestId: string;
+ author: string;
+ city: string;
+ offer: string;
+ want: string;
+ note: string;
+ createdAt: string;
+};
+
+const SEED: SkillItem[] = [
+ {
+ id: "seed-1",
+ guestId: "seed",
+ author: "小雨",
+ city: "成都",
+ offer: "产品文档梳理",
+ want: "帮拍短视频 / 剪辑",
+ note: "每周 2 次 · 咖啡馆或线上均可",
+ createdAt: "",
+ },
+ {
+ id: "seed-2",
+ guestId: "seed",
+ author: "阿Ken",
+ city: "大理",
+ offer: "帮看代码 / 架构 review",
+ want: "旅居签证经验咨询",
+ note: "远程异步也行",
+ createdAt: "",
+ },
+];
+
+export default function SkillsBoardClient() {
+ const me = typeof window !== "undefined" ? getGuestId() : "";
+ const [items, setItems] = useState(SEED);
+ const [city, setCity] = useState("");
+ const [offer, setOffer] = useState("");
+ const [want, setWant] = useState("");
+ const [note, setNote] = useState("");
+ const [postCity, setPostCity] = useState("");
+ const [busy, setBusy] = useState(false);
+ const [err, setErr] = useState("");
+
+ const load = async (filterCity = city) => {
+ try {
+ const res = await hubApi.listSkills({
+ city: filterCity || undefined,
+ limit: 80,
+ });
+ const live = res.items || [];
+ setItems(live.length ? live : SEED);
+ } catch {
+ setItems(SEED);
+ }
+ };
+
+ useEffect(() => {
+ const roster = loadJson<{ name?: string; city?: string }>("roster", {});
+ if (roster.city) {
+ setPostCity(roster.city);
+ setCity(roster.city);
+ }
+ void load(roster.city || "");
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
+
+ const submit = async (e: FormEvent) => {
+ e.preventDefault();
+ if (busy) return;
+ setBusy(true);
+ setErr("");
+ try {
+ const roster = loadJson<{ name?: string }>("roster", {});
+ await hubApi.createSkill({
+ author: roster.name || "游民",
+ city: postCity.trim(),
+ offer: offer.trim(),
+ want: want.trim(),
+ note: note.trim(),
+ });
+ setOffer("");
+ setWant("");
+ setNote("");
+ await load();
+ } catch (ex) {
+ setErr(ex instanceof Error ? ex.message : hubTx("发布失败"));
+ } finally {
+ setBusy(false);
+ }
+ };
+
+ return (
+
+
+
+ {hubTx("写清能给什么、想换什么。")}
+
+
+ void submit(ev)}>
+
+ {hubTx("发布")}
+
+
+ {hubTx("城市")}
+ setPostCity(e.target.value)}
+ placeholder={hubTx("成都 / 线上")}
+ maxLength={64}
+ />
+
+
+ {hubTx("我能提供")}
+ setOffer(e.target.value)}
+ placeholder={hubTx("文档梳理 / 代码 review / …")}
+ maxLength={200}
+ />
+
+
+ {hubTx("想换到")}
+ setWant(e.target.value)}
+ placeholder={hubTx("拍视频 / 签证咨询 / …")}
+ maxLength={200}
+ />
+
+
+ {hubTx("补充说明")}
+ setNote(e.target.value)}
+ maxLength={800}
+ placeholder={hubTx("时间、线上线下、期望频率…")}
+ />
+
+ {err ? (
+
+ {err}
+
+ ) : null}
+
+ {busy ? hubTx("发布中…") : hubTx("发布互换")}
+
+
+
+
+
+ setCity(e.target.value)}
+ placeholder={hubTx("按城市筛选")}
+ onKeyDown={(e) => {
+ if (e.key === "Enter") void load(city);
+ }}
+ />
+ void load(city)}>
+ {hubTx("筛选")}
+
+
+
+
+ {items.map((item) => (
+
+
+ {item.author}
+
+ {item.city || hubTx("线上")}
+
+
+
+ {item.offer}
+
+ {item.want}
+
+ {item.note ? {item.note}
: null}
+ {item.guestId === me && item.id.startsWith("sk_") ? (
+
+ void hubApi.closeSkill(item.id).then(() => load(city))
+ }
+ >
+ {hubTx("关闭")}
+
+ ) : null}
+
+ ))}
+
+
+ );
+}
diff --git a/src/modules/hub/components/TeamClient.tsx b/src/modules/hub/components/TeamClient.tsx
new file mode 100644
index 0000000..644e7fe
--- /dev/null
+++ b/src/modules/hub/components/TeamClient.tsx
@@ -0,0 +1,3 @@
+"use client";
+
+export { default } from "./RoleBoard";
diff --git a/src/modules/hub/components/TrialNudgeBanner.tsx b/src/modules/hub/components/TrialNudgeBanner.tsx
new file mode 100644
index 0000000..1173809
--- /dev/null
+++ b/src/modules/hub/components/TrialNudgeBanner.tsx
@@ -0,0 +1,48 @@
+"use client";
+
+import { usePathname } from "next/navigation";
+import { useMemo, useSyncExternalStore } from "react";
+import {
+ getCommunityUnlockServerSnapshot,
+ getCommunityUnlockSnapshot,
+ pathNeedsLiveness,
+ subscribeLivenessState,
+} from "@hub/lib/livenessGate";
+import { openSocialJoinModal } from "@hub/lib/joinModal";
+import { hubTx } from "@hub/lib/hubTx";
+import { resolveTrialLimits } from "@hub/lib/hubTrial";
+import { useSocialConfig } from "./HubExperience";
+
+/** Soft invite on gated surfaces — plain language, no product jargon. */
+export default function TrialNudgeBanner() {
+ const pathname = usePathname();
+ const config = useSocialConfig();
+ const unlockSnap = useSyncExternalStore(
+ subscribeLivenessState,
+ getCommunityUnlockSnapshot,
+ getCommunityUnlockServerSnapshot,
+ );
+ const limits = useMemo(() => resolveTrialLimits(config), [config]);
+
+ if (!pathNeedsLiveness(pathname)) return null;
+ // 地图沉浸页禁止顶栏试用横幅——会顶开地球/底图,看起来像花屏叠导航
+ if ((pathname || "").includes("/map")) return null;
+ if (unlockSnap === "1") return null;
+ if (!limits.enabled) return null;
+
+ return (
+
+ );
+}
diff --git a/src/modules/hub/components/TripEditor.tsx b/src/modules/hub/components/TripEditor.tsx
new file mode 100644
index 0000000..bbd3ed6
--- /dev/null
+++ b/src/modules/hub/components/TripEditor.tsx
@@ -0,0 +1,222 @@
+"use client";
+
+import { useEffect, useMemo, useState, type FormEvent } from "react";
+import Link from "next/link";
+import { hubApi } from "@hub/lib/api";
+import type { HubTrip, TravelOverlap } from "@hub/lib/geoTypes";
+import { resolveSocialCities } from "@hub/geo";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useHubI18n } from "@hub/lib/useHubI18n";
+import { useHubAudienceLane } from "@hub/lib/useHubAudience";
+import { isHubCnOnly } from "@hub/lib/hubCnLock";
+import { useSocialConfig } from "./HubExperience";
+
+const EMPTY = {
+ city: "",
+ city_id: "",
+ arrival_date: "",
+ departure_date: "",
+ status: "planned",
+ visibility: "public",
+};
+
+export default function TripEditor() {
+ const { cnOnly } = useHubI18n();
+ const audience = useHubAudienceLane();
+ const hubConfig = useSocialConfig();
+ const cnMode = cnOnly || isHubCnOnly(hubConfig) || audience === "cn";
+ const cities = useMemo(
+ () =>
+ resolveSocialCities({
+ geo: hubConfig.copy.hubGeo,
+ audience,
+ cnOnly: cnMode,
+ }),
+ [hubConfig.copy.hubGeo, audience, cnMode],
+ );
+ const [trips, setTrips] = useState([]);
+ const [overlaps, setOverlaps] = useState([]);
+ const [form, setForm] = useState(EMPTY);
+ const [busy, setBusy] = useState(false);
+ const [msg, setMsg] = useState("");
+
+ const reload = async () => {
+ try {
+ const [t, o] = await Promise.all([
+ hubApi.listTrips(),
+ hubApi.travelOverlaps().catch(() => ({ items: [] as TravelOverlap[] })),
+ ]);
+ setTrips(t.items || []);
+ setOverlaps(o.items || []);
+ } catch {
+ setMsg(hubTx("行程暂时不可用,请稍后再试"));
+ }
+ };
+
+ useEffect(() => {
+ void reload();
+ }, []);
+
+ const onCity = (cityId: string) => {
+ const c = cities.find((x) => x.id === cityId);
+ setForm((f) => ({
+ ...f,
+ city_id: cityId,
+ city: c?.name || "",
+ }));
+ };
+
+ const submit = async (e: FormEvent) => {
+ e.preventDefault();
+ if (!form.city.trim() || busy) return;
+ setBusy(true);
+ setMsg("");
+ try {
+ await hubApi.createTrip({
+ city: form.city.trim(),
+ city_id: form.city_id || undefined,
+ arrival_date: form.arrival_date || undefined,
+ departure_date: form.departure_date || undefined,
+ status: form.status,
+ visibility: form.visibility,
+ });
+ setForm(EMPTY);
+ setMsg(hubTx("行程已保存"));
+ await reload();
+ } catch {
+ setMsg(hubTx("保存失败,请稍后再试"));
+ } finally {
+ setBusy(false);
+ }
+ };
+
+ const remove = async (id: string) => {
+ try {
+ await hubApi.deleteTrip(id);
+ await reload();
+ } catch {
+ setMsg(hubTx("删除失败"));
+ }
+ };
+
+ return (
+
+
+ {hubTx("行程 · 此刻 / 下一站")}
+
+ void submit(e)}>
+
+
+ {hubTx("城市")}
+ onCity(e.target.value)}
+ required
+ >
+ {hubTx("选择城市")}
+ {cities.map((c) => (
+
+ {c.emoji} {c.name}
+
+ ))}
+
+
+
+ {hubTx("状态")}
+ setForm((f) => ({ ...f, status: e.target.value }))}
+ >
+ {hubTx("此刻在这儿")}
+ {hubTx("下一站")}
+ {hubTx("已离开")}
+
+
+
+ {hubTx("抵达")}
+
+ setForm((f) => ({ ...f, arrival_date: e.target.value }))
+ }
+ />
+
+
+ {hubTx("离开")}
+
+ setForm((f) => ({ ...f, departure_date: e.target.value }))
+ }
+ />
+
+
+ {hubTx("可见性")}
+
+ setForm((f) => ({ ...f, visibility: e.target.value }))
+ }
+ >
+ {hubTx("公开")}
+ {hubTx("仅好友")}
+ {hubTx("私密")}
+
+
+
+
+ {busy ? hubTx("保存中…") : hubTx("添加行程")}
+
+
+
+ {trips.length ? (
+
+ {trips.map((t) => (
+
+
+ {t.city}
+ {t.status}
+
+
+ {t.arrival_date || "—"} → {t.departure_date || "—"}
+
+ void remove(t.id)}>
+ {hubTx("删除")}
+
+
+ ))}
+
+ ) : (
+ {hubTx("还没有行程,先加一座城。")}
+ )}
+
+ {overlaps.length ? (
+
+
{hubTx("同城重叠")}
+
+ {overlaps.map((o) => (
+
+
+ {o.city}
+
+
+ {o.from || "—"} → {o.to || "—"} · {o.overlapDays}
+ {hubTx("天")}
+
+
+ ))}
+
+
+ ) : null}
+
+ {msg ? (
+
+ {msg}
+
+ ) : null}
+
+ );
+}
diff --git a/src/modules/hub/components/VideosClient.tsx b/src/modules/hub/components/VideosClient.tsx
new file mode 100644
index 0000000..71b103e
--- /dev/null
+++ b/src/modules/hub/components/VideosClient.tsx
@@ -0,0 +1,3 @@
+"use client";
+
+export { VideosLibrary as default } from "./ResourceLibrary";
diff --git a/src/modules/hub/components/VipClient.tsx b/src/modules/hub/components/VipClient.tsx
new file mode 100644
index 0000000..05397a4
--- /dev/null
+++ b/src/modules/hub/components/VipClient.tsx
@@ -0,0 +1,3 @@
+"use client";
+
+export { CommunityMembership as default } from "./CommunityWelcome";
diff --git a/src/modules/hub/components/WayDestChrome.tsx b/src/modules/hub/components/WayDestChrome.tsx
new file mode 100644
index 0000000..712fe56
--- /dev/null
+++ b/src/modules/hub/components/WayDestChrome.tsx
@@ -0,0 +1,102 @@
+"use client";
+
+import type { ReactNode } from "react";
+import Link from "next/link";
+import {
+ BriefcaseBusiness,
+ Coffee,
+ Heart,
+ MessageCircle,
+ Radio,
+ Users,
+} from "lucide-react";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+import { useSocialPresence } from "@hub/lib/useSocialPresence";
+import { useSocialConfig } from "./HubExperience";
+import HubAvatar from "./HubAvatar";
+
+export type WayDestId = "chat" | "date" | "meetup" | "places" | "create";
+
+const WAYS: Array<{
+ id: WayDestId;
+ href: string;
+ icon: typeof MessageCircle;
+ label: string;
+}> = [
+ { id: "chat", href: "/chat", icon: MessageCircle, label: "聊天群" },
+ { id: "date", href: "/date", icon: Heart, label: "约会" },
+ { id: "meetup", href: "/meetup", icon: Radio, label: "语音厅" },
+ { id: "places", href: "/places", icon: Coffee, label: "见面" },
+ { id: "create", href: "/ebook", icon: Users, label: "共创" },
+];
+
+/**
+ * 五入口落地页共用顶栏:在线心跳 + 互跳芯片。
+ * 首页 belowWays 隐藏后,能力沉到各入口页。
+ */
+export default function WayDestChrome({
+ active,
+ meta,
+}: {
+ active: WayDestId;
+ meta?: ReactNode;
+}) {
+ const config = useSocialConfig();
+ const snap = useSocialPresence(config);
+ const peers = snap.peers.slice(0, 5);
+ const online = Math.max(snap.online, peers.length);
+
+ return (
+
+
+
+
+ {online > 0
+ ? hubTx("{n} 在线").replace("{n}", String(online))
+ : snap.fromOffline
+ ? hubTx("连接中")
+ : hubTx("暂无人")}
+
+ {snap.cityOnline > 0 ? (
+
+ {hubTx("同城")} {snap.cityOnline}
+
+ ) : null}
+
+ {peers.map((p) => (
+
+ ))}
+
+ {meta ?
{meta}
: null}
+
+
+ {WAYS.map((w) => {
+ const Icon = w.icon;
+ const on = w.id === active;
+ return (
+
+
+ {hubTx(w.label)}
+
+ );
+ })}
+
+
+ {hubTx("招聘")}
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/WrappedClient.tsx b/src/modules/hub/components/WrappedClient.tsx
new file mode 100644
index 0000000..b226b1a
--- /dev/null
+++ b/src/modules/hub/components/WrappedClient.tsx
@@ -0,0 +1,133 @@
+"use client";
+
+import { useEffect, useState } from "react";
+import Link from "next/link";
+import { MapPin, Sparkles, Users, Coffee, ArrowLeftRight } from "lucide-react";
+import SiteShell from "./SiteShell";
+import { hubApi } from "@hub/lib/api";
+import { hubPath } from "@hub/lib/hubPath";
+import { hubTx } from "@hub/lib/hubTx";
+
+type Wrapped = {
+ year: number;
+ name: string;
+ homeCity: string;
+ cities: string[];
+ cityCount: number;
+ peopleMet: number;
+ meetups: number;
+ skillPosts: number;
+ livenessVerified: boolean;
+};
+
+const FALLBACK: Wrapped = {
+ year: new Date().getFullYear(),
+ name: "游民",
+ homeCity: "",
+ cities: [],
+ cityCount: 0,
+ peopleMet: 0,
+ meetups: 0,
+ skillPosts: 0,
+ livenessVerified: false,
+};
+
+export default function WrappedClient() {
+ const [data, setData] = useState(null);
+ const [err, setErr] = useState("");
+
+ useEffect(() => {
+ void hubApi
+ .getWrapped()
+ .then((r) =>
+ setData({
+ year: r.year,
+ name: r.name || "游民",
+ homeCity: r.homeCity || "",
+ cities: r.cities || [],
+ cityCount: r.cityCount || 0,
+ peopleMet: r.peopleMet || 0,
+ meetups: r.meetups || 0,
+ skillPosts: r.skillPosts || 0,
+ livenessVerified: !!r.livenessVerified,
+ }),
+ )
+ .catch((e) => {
+ setErr(e instanceof Error ? e.message : hubTx("加载失败"));
+ setData(FALLBACK);
+ });
+ }, []);
+
+ const w = data || FALLBACK;
+
+ return (
+
+
+
+ Nomadro Wrapped · {w.year}
+
+
+ {w.name}
+ {hubTx("的这一年")}
+
+ {err ? {err}
: null}
+
+
+
+ {w.homeCity
+ ? hubTx("主场在") + ` ${w.homeCity}`
+ : hubTx("还在路上,主场待填写")}
+
+ {w.livenessVerified ? (
+
{hubTx("自拍已通过")}
+ ) : (
+
{hubTx("去拍自拍")}
+ )}
+
+
+
+
+
+ {w.cityCount}
+ {hubTx("座城市足迹")}
+
+
+
+ {w.peopleMet}
+ {hubTx("位想认识的人")}
+
+
+
+ {w.meetups}
+ {hubTx("次咖啡聊评价")}
+
+
+
+
{w.skillPosts}
+
{hubTx("条技能互换")}
+
+
+
+ {w.cities.length > 0 ? (
+
+ {hubTx("足迹城市")}
+
+ {w.cities.map((c) => (
+ {c}
+ ))}
+
+
+ ) : null}
+
+
+
+ {hubTx("去招聘")}
+
+
+ {hubTx("回去看看大家")}
+
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/blog/BlogAdSlot.tsx b/src/modules/hub/components/blog/BlogAdSlot.tsx
new file mode 100644
index 0000000..e256b0d
--- /dev/null
+++ b/src/modules/hub/components/blog/BlogAdSlot.tsx
@@ -0,0 +1,70 @@
+"use client";
+
+import Script from "next/script";
+import { useEffect, useRef } from "react";
+
+/** AdSense — only mount when remote-config enabled + ids present */
+export function BlogAdSenseScript({ clientId }: { clientId: string }) {
+ if (!clientId) return null;
+ return (
+
+ );
+}
+
+export function BlogAdSlot({
+ clientId,
+ slotId,
+ label = "Sponsored",
+}: {
+ clientId: string;
+ slotId: string;
+ label?: string;
+}) {
+ const pushed = useRef(false);
+
+ useEffect(() => {
+ if (!clientId || !slotId || pushed.current) return;
+ let cancelled = false;
+ const push = () => {
+ if (cancelled || pushed.current) return;
+ try {
+ const w = window as unknown as { adsbygoogle?: unknown[] };
+ w.adsbygoogle = w.adsbygoogle || [];
+ w.adsbygoogle.push({});
+ pushed.current = true;
+ } catch {
+ /* blocked / not ready */
+ }
+ };
+ // Script may load after first paint — retry briefly
+ push();
+ const t1 = window.setTimeout(push, 800);
+ const t2 = window.setTimeout(push, 2400);
+ return () => {
+ cancelled = true;
+ window.clearTimeout(t1);
+ window.clearTimeout(t2);
+ };
+ }, [clientId, slotId]);
+
+ if (!clientId || !slotId) return null;
+
+ return (
+
+ );
+}
diff --git a/src/modules/hub/components/blog/BlogListClient.tsx b/src/modules/hub/components/blog/BlogListClient.tsx
new file mode 100644
index 0000000..6f16b44
--- /dev/null
+++ b/src/modules/hub/components/blog/BlogListClient.tsx
@@ -0,0 +1,196 @@
+"use client";
+
+import Link from "next/link";
+import { useDeferredValue, useMemo, useState } from "react";
+import SiteShell from "@hub/components/SiteShell";
+import { HubFooter } from "@hub/components/HubNavigation";
+import { hubPath } from "@hub/lib/hubPath";
+import type { BlogPostMeta } from "@hub/lib/blog/types";
+
+function formatDate(iso: string) {
+ const d = new Date(iso);
+ if (Number.isNaN(d.getTime())) return iso;
+ return d.toLocaleDateString("en-US", {
+ year: "numeric",
+ month: "short",
+ day: "numeric",
+ });
+}
+
+const TOPIC_HINT: Record = {
+ nomad: "Getting started",
+ coworking: "Where to work",
+ community: "Meeting people",
+ "remote-work": "Deep work",
+ budget: "Money",
+ privacy: "Trust & safety",
+};
+
+export default function BlogListClient({
+ posts,
+}: {
+ posts: BlogPostMeta[];
+}) {
+ const tags = useMemo(() => {
+ const counts = new Map();
+ for (const p of posts) {
+ const primary = p.tags[0];
+ if (!primary) continue;
+ counts.set(primary, (counts.get(primary) || 0) + 1);
+ }
+ const ranked = Array.from(counts.entries())
+ .sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0]))
+ .map(([t]) => t)
+ .slice(0, 7);
+ return ["all", ...ranked];
+ }, [posts]);
+
+ const [tag, setTag] = useState("all");
+ const [q, setQ] = useState("");
+ const deferredQ = useDeferredValue(q.trim().toLowerCase());
+
+ const filtered = useMemo(() => {
+ return posts.filter((p) => {
+ if (tag !== "all" && !p.tags.includes(tag)) return false;
+ if (!deferredQ) return true;
+ const hay = `${p.title} ${p.description} ${p.tags.join(" ")}`.toLowerCase();
+ return hay.includes(deferredQ);
+ });
+ }, [posts, tag, deferredQ]);
+
+ const [featured, ...rest] = filtered;
+
+ return (
+
+
+
+
+ Nomadro · Field notes
+ Nomad Blog
+
+ Practical English guides for remote work, slow travel, and meeting
+ people on the road.
+
+
+ {posts.length} guides
+
+ English · free to read
+
+
+
+
+
+ Search guides
+ setQ(e.target.value)}
+ autoComplete="off"
+ />
+
+
+
+ {tags.length > 2 ? (
+
+ {tags.map((t) => (
+ setTag(t)}
+ >
+ {t === "all" ? "All" : TOPIC_HINT[t] || t}
+
+ ))}
+
+ ) : null}
+
+ {!filtered.length ? (
+
+
No guides match that filter.
+
{
+ setTag("all");
+ setQ("");
+ }}
+ >
+ Clear filters
+
+
+ ) : (
+ <>
+ {featured ? (
+
+
+ Latest
+ {formatDate(featured.date)}
+
+ {featured.title}
+ {featured.description}
+
+
+ {featured.readingMinutes} min read
+ {featured.tags[0]
+ ? ` · ${TOPIC_HINT[featured.tags[0]] || featured.tags[0]}`
+ : ""}
+
+ Read
+
+
+ ) : null}
+
+ {rest.length ? (
+
+ ) : null}
+ >
+ )}
+
+
+ About
+ Privacy
+ Contact
+ RSS
+
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/blog/BlogMarkdown.tsx b/src/modules/hub/components/blog/BlogMarkdown.tsx
new file mode 100644
index 0000000..b33a231
--- /dev/null
+++ b/src/modules/hub/components/blog/BlogMarkdown.tsx
@@ -0,0 +1,141 @@
+"use client";
+
+import { useMemo, type ReactNode } from "react";
+
+function parseTableRow(line: string): string[] {
+ return line
+ .split("|")
+ .map((c) => c.trim())
+ .filter(Boolean);
+}
+
+function inlineFormat(text: string): ReactNode[] {
+ const parts: ReactNode[] = [];
+ const re = /(\*\*[^*]+\*\*|`[^`]+`|\[[^\]]+\]\([^)]+\))/g;
+ let last = 0;
+ let m: RegExpExecArray | null;
+ let key = 0;
+ while ((m = re.exec(text))) {
+ if (m.index > last) parts.push(text.slice(last, m.index));
+ const token = m[0];
+ if (token.startsWith("**")) {
+ parts.push({token.slice(2, -2)} );
+ } else if (token.startsWith("`")) {
+ parts.push({token.slice(1, -1)});
+ } else {
+ const link = token.match(/^\[([^\]]+)\]\(([^)]+)\)$/);
+ if (link) {
+ parts.push(
+
+ {link[1]}
+ ,
+ );
+ } else parts.push(token);
+ }
+ last = m.index + token.length;
+ }
+ if (last < text.length) parts.push(text.slice(last));
+ return parts;
+}
+
+/** Lightweight MD renderer — content-first for AdSense crawlability */
+export default function BlogMarkdown({ content }: { content: string }) {
+ const elements = useMemo(() => {
+ const lines = content.split("\n");
+ const result: ReactNode[] = [];
+ let listItems: string[] = [];
+ let ordered = false;
+ let tableRows: string[][] = [];
+ let key = 0;
+
+ const flushList = () => {
+ if (!listItems.length) return;
+ const Tag = ordered ? "ol" : "ul";
+ result.push(
+
+ {listItems.map((item, i) => (
+ {inlineFormat(item)}
+ ))}
+ ,
+ );
+ listItems = [];
+ ordered = false;
+ };
+
+ const flushTable = () => {
+ if (tableRows.length < 2) {
+ tableRows = [];
+ return;
+ }
+ const [header, , ...body] = tableRows;
+ result.push(
+
+
+
+
+ {header.map((h, i) => (
+ {h}
+ ))}
+
+
+
+ {body.map((row, ri) => (
+
+ {row.map((cell, ci) => (
+ {cell}
+ ))}
+
+ ))}
+
+
+
,
+ );
+ tableRows = [];
+ };
+
+ for (const line of lines) {
+ if (line.startsWith("|")) {
+ flushList();
+ const cells = parseTableRow(line);
+ if (cells.every((c) => /^[-:]+$/.test(c))) continue;
+ tableRows.push(cells);
+ continue;
+ }
+ flushTable();
+
+ if (line.startsWith("## ")) {
+ flushList();
+ const title = line.slice(3);
+ const id = title
+ .toLowerCase()
+ .replace(/[^a-z0-9\u4e00-\u9fff]+/g, "-")
+ .replace(/^-|-$/g, "")
+ .slice(0, 64);
+ result.push(
+
+ {title}
+ ,
+ );
+ } else if (line.startsWith("### ")) {
+ flushList();
+ result.push({line.slice(4)} );
+ } else if (line.startsWith("- ")) {
+ ordered = false;
+ listItems.push(line.slice(2));
+ } else if (/^\d+\. /.test(line)) {
+ ordered = true;
+ listItems.push(line.replace(/^\d+\. /, ""));
+ } else if (line.trim() === "") {
+ flushList();
+ } else {
+ flushList();
+ result.push({inlineFormat(line)}
);
+ }
+ }
+ flushList();
+ flushTable();
+ return result;
+ }, [content]);
+
+ return {elements}
;
+}
diff --git a/src/modules/hub/components/blog/BlogPostClient.tsx b/src/modules/hub/components/blog/BlogPostClient.tsx
new file mode 100644
index 0000000..82a38fa
--- /dev/null
+++ b/src/modules/hub/components/blog/BlogPostClient.tsx
@@ -0,0 +1,192 @@
+"use client";
+
+import Link from "next/link";
+import { useMemo, useState } from "react";
+import SiteShell from "@hub/components/SiteShell";
+import { HubFooter } from "@hub/components/HubNavigation";
+import { openSocialJoinModal } from "@hub/lib/joinModal";
+import { hubPath } from "@hub/lib/hubPath";
+import type { BlogAdSenseConfig, BlogPost, BlogPostMeta } from "@hub/lib/blog/types";
+import { ADSENSE_MIN_WORDS } from "@hub/lib/blog/types";
+import BlogMarkdown from "./BlogMarkdown";
+import { BlogAdSenseScript, BlogAdSlot } from "./BlogAdSlot";
+import BlogReadingProgress from "./BlogReadingProgress";
+
+function splitBodyForAd(body: string): [string, string] {
+ const parts = body.split(/\n(?=## )/);
+ if (parts.length < 3) return [body, ""];
+ const mid = Math.max(2, Math.floor(parts.length / 2));
+ return [parts.slice(0, mid).join("\n"), parts.slice(mid).join("\n")];
+}
+
+function slugify(text: string) {
+ return text
+ .toLowerCase()
+ .replace(/[^a-z0-9\u4e00-\u9fff]+/g, "-")
+ .replace(/^-|-$/g, "")
+ .slice(0, 64);
+}
+
+export default function BlogPostClient({
+ post,
+ related,
+ adsense,
+}: {
+ post: BlogPost;
+ related: BlogPostMeta[];
+ adsense: BlogAdSenseConfig;
+}) {
+ const showAds =
+ adsense.enabled && post.wordCount >= ADSENSE_MIN_WORDS && post.locale === "en";
+ const [before, after] = showAds && adsense.slotInArticle
+ ? splitBodyForAd(post.body)
+ : [post.body, ""];
+ const [copied, setCopied] = useState(false);
+
+ const toc = useMemo(() => {
+ const heads = post.body.match(/^## .+$/gm) || [];
+ return heads.slice(0, 8).map((h) => {
+ const title = h.replace(/^##\s+/, "");
+ return { title, id: slugify(title) };
+ });
+ }, [post.body]);
+
+ const dateLabel = (() => {
+ const d = new Date(post.date);
+ if (Number.isNaN(d.getTime())) return post.date;
+ return d.toLocaleDateString("en-US", {
+ year: "numeric",
+ month: "short",
+ day: "numeric",
+ });
+ })();
+
+ async function copyLink() {
+ try {
+ await navigator.clipboard.writeText(window.location.href);
+ setCopied(true);
+ window.setTimeout(() => setCopied(false), 1600);
+ } catch {
+ /* ignore */
+ }
+ }
+
+ return (
+
+
+ {showAds ? : null}
+
+
+
+
+ ← All guides
+
+
+ {dateLabel}
+
+
+ {post.title}
+
+ {post.description}
+
+
+
+ {post.author}
+
+ {post.readingMinutes} min read
+
+
+ {post.tags.slice(0, 3).map((t) => (
+
+ {t}
+
+ ))}
+ void copyLink()}>
+ {copied ? "Copied" : "Copy link"}
+
+
+
+
+
+ {toc.length > 2 ? (
+
+ On this page
+
+ {toc.map((item) => (
+
+ {item.title}
+
+ ))}
+
+
+ ) : null}
+
+
+
+ {showAds && adsense.slotInArticle ? (
+
+ ) : null}
+ {after ? : null}
+
+
+ {showAds && adsense.slotEnd ? (
+
+ ) : null}
+
+
+ Meet people on the road
+ Reading helps. Saying hello helps more.
+
+ openSocialJoinModal({ reason: "cta" })}
+ >
+ Join community
+
+
+ Browse people
+
+
+
+
+ {related.length ? (
+
+ Keep reading
+
+ {related.map((r) => (
+
+
+ {r.date}
+ {r.title}
+ {r.readingMinutes} min
+
+
+ ))}
+
+
+ ) : null}
+
+
+ All posts
+ About
+ Privacy
+ Contact
+
+
+
+
+ );
+}
diff --git a/src/modules/hub/components/blog/BlogReadingProgress.tsx b/src/modules/hub/components/blog/BlogReadingProgress.tsx
new file mode 100644
index 0000000..1dd532e
--- /dev/null
+++ b/src/modules/hub/components/blog/BlogReadingProgress.tsx
@@ -0,0 +1,31 @@
+"use client";
+
+import { useEffect, useState } from "react";
+
+export default function BlogReadingProgress() {
+ const [pct, setPct] = useState(0);
+
+ useEffect(() => {
+ const onScroll = () => {
+ const el = document.querySelector(".sblog-article");
+ if (!el) return;
+ const rect = el.getBoundingClientRect();
+ const total = el.scrollHeight - window.innerHeight;
+ const scrolled = Math.min(Math.max(-rect.top, 0), Math.max(total, 1));
+ setPct(Math.round((scrolled / Math.max(total, 1)) * 100));
+ };
+ onScroll();
+ window.addEventListener("scroll", onScroll, { passive: true });
+ window.addEventListener("resize", onScroll);
+ return () => {
+ window.removeEventListener("scroll", onScroll);
+ window.removeEventListener("resize", onScroll);
+ };
+ }, []);
+
+ return (
+
+
+
+ );
+}
diff --git a/src/modules/hub/geo/cnDefaults.ts b/src/modules/hub/geo/cnDefaults.ts
new file mode 100644
index 0000000..d840bdd
--- /dev/null
+++ b/src/modules/hub/geo/cnDefaults.ts
@@ -0,0 +1,15 @@
+/**
+ * /hub 中文受众默认地理范围:只保留中国。
+ * 多国家目录代码仍在,仅默认收窄。
+ */
+export const HUB_CN_GEO_CODES = ["CN"] as const;
+
+export const HUB_CN_FEATURED_CITY_IDS = [
+ "chengdu",
+ "dali",
+ "shanghai",
+ "shenzhen",
+ "hangzhou",
+] as const;
+
+export type HubCnGeoCode = (typeof HUB_CN_GEO_CODES)[number];
diff --git a/src/modules/hub/geo/countries.ts b/src/modules/hub/geo/countries.ts
new file mode 100644
index 0000000..3865147
--- /dev/null
+++ b/src/modules/hub/geo/countries.ts
@@ -0,0 +1,41 @@
+/**
+ * /hub country catalog — SoT.
+ * City seed keeps Chinese `country` label for MT; `code` is the stable key.
+ */
+export type HubCountry = {
+ /** ISO 3166-1 alpha-2 */
+ code: string;
+ nameZh: string;
+ nameEn: string;
+ emoji: string;
+ /** Audience bias for sort / featured */
+ lane: "cn" | "intl";
+};
+
+export const HUB_COUNTRIES: HubCountry[] = [
+ { code: "CN", nameZh: "中国", nameEn: "China", emoji: "🇨🇳", lane: "cn" },
+ { code: "TH", nameZh: "泰国", nameEn: "Thailand", emoji: "🇹🇭", lane: "intl" },
+ { code: "ID", nameZh: "印尼", nameEn: "Indonesia", emoji: "🇮🇩", lane: "intl" },
+ { code: "MY", nameZh: "马来西亚", nameEn: "Malaysia", emoji: "🇲🇾", lane: "intl" },
+ { code: "PT", nameZh: "葡萄牙", nameEn: "Portugal", emoji: "🇵🇹", lane: "intl" },
+ { code: "JP", nameZh: "日本", nameEn: "Japan", emoji: "🇯🇵", lane: "intl" },
+ { code: "KR", nameZh: "韩国", nameEn: "South Korea", emoji: "🇰🇷", lane: "intl" },
+ { code: "DE", nameZh: "德国", nameEn: "Germany", emoji: "🇩🇪", lane: "intl" },
+ { code: "ES", nameZh: "西班牙", nameEn: "Spain", emoji: "🇪🇸", lane: "intl" },
+ { code: "VN", nameZh: "越南", nameEn: "Vietnam", emoji: "🇻🇳", lane: "intl" },
+];
+
+const BY_CODE = new Map(HUB_COUNTRIES.map((c) => [c.code, c]));
+const BY_ZH = new Map(HUB_COUNTRIES.map((c) => [c.nameZh, c]));
+
+export function getCountryByCode(code: string): HubCountry | undefined {
+ return BY_CODE.get(code.toUpperCase());
+}
+
+export function getCountryByZhName(name: string): HubCountry | undefined {
+ return BY_ZH.get(name.trim());
+}
+
+export function countryCodeFromZh(name: string): string | undefined {
+ return getCountryByZhName(name)?.code;
+}
diff --git a/src/modules/hub/geo/index.ts b/src/modules/hub/geo/index.ts
new file mode 100644
index 0000000..ed961c3
--- /dev/null
+++ b/src/modules/hub/geo/index.ts
@@ -0,0 +1,25 @@
+/**
+ * /hub geo module — countries + city resolve.
+ * Display translation stays in localizeEntity / hubTx.
+ */
+export {
+ HUB_COUNTRIES,
+ getCountryByCode,
+ getCountryByZhName,
+ countryCodeFromZh,
+ type HubCountry,
+} from "./countries";
+
+export type { HubGeoConfig, ResolvedSocialGeo } from "./types";
+
+export {
+ resolveSocialGeoConfig,
+ enabledCountries,
+ resolveSocialCities,
+ countryKeysForFilter,
+} from "./resolve";
+
+export {
+ HUB_CN_GEO_CODES,
+ HUB_CN_FEATURED_CITY_IDS,
+} from "./cnDefaults";
diff --git a/src/modules/hub/geo/resolve.ts b/src/modules/hub/geo/resolve.ts
new file mode 100644
index 0000000..0207329
--- /dev/null
+++ b/src/modules/hub/geo/resolve.ts
@@ -0,0 +1,149 @@
+import type { AudienceLane } from "~/modules/audience";
+import {
+ HUB_CITIES,
+ type HubCity,
+} from "@hub/lib/cities";
+import {
+ HUB_COUNTRIES,
+ countryCodeFromZh,
+ getCountryByCode,
+ type HubCountry,
+} from "./countries";
+import {
+ HUB_CN_FEATURED_CITY_IDS,
+ HUB_CN_GEO_CODES,
+} from "./cnDefaults";
+import type { ResolvedSocialGeo, HubGeoConfig } from "./types";
+
+const CN_CODE_SET = new Set(HUB_CN_GEO_CODES);
+
+function cityAllowedByCodes(cityId: string, codes: Set): boolean {
+ const city = HUB_CITIES.find((c) => c.id === cityId);
+ if (!city) return false;
+ const code = countryCodeFromZh(city.country);
+ return Boolean(code && codes.has(code));
+}
+
+/**
+ * Hub 地理配置。
+ * 当前阶段默认只中国;`cnOnly: false` 才放开多国(代码保留,暂不走)。
+ */
+export function resolveSocialGeoConfig(
+ raw?: HubGeoConfig | null,
+ opts?: { cnOnly?: boolean },
+): ResolvedSocialGeo {
+ const enabledRaw = Array.isArray(raw?.enabledCountries)
+ ? raw!.enabledCountries!
+ : [];
+ const enabledParsed = enabledRaw
+ .map((c) => String(c || "").trim().toUpperCase())
+ .filter((c) => Boolean(getCountryByCode(c)));
+ const featuredRaw = Array.isArray(raw?.featuredCityIds)
+ ? raw!.featuredCityIds!.map((id) => String(id || "").trim()).filter(Boolean)
+ : [];
+
+ // 默认中国;只有显式 cnOnly:false 才用全球目录
+ const cnOnly = opts?.cnOnly !== false;
+
+ if (cnOnly) {
+ const enabledCountries = [...HUB_CN_GEO_CODES];
+ const allowed = new Set(enabledCountries);
+ const featuredFiltered = featuredRaw.filter((id) =>
+ cityAllowedByCodes(id, allowed),
+ );
+ return {
+ enabledCountries,
+ featuredCityIds: featuredFiltered.length
+ ? featuredFiltered
+ : [...HUB_CN_FEATURED_CITY_IDS],
+ };
+ }
+
+ return {
+ enabledCountries: enabledParsed.length
+ ? enabledParsed
+ : HUB_COUNTRIES.map((c) => c.code),
+ featuredCityIds: featuredRaw.length
+ ? featuredRaw
+ : ["chiangmai", "bali", "dali", "lisbon", "chengdu"],
+ };
+}
+
+export function enabledCountries(
+ cfg?: HubGeoConfig | null,
+ opts?: { cnOnly?: boolean },
+): HubCountry[] {
+ const { enabledCountries: codes } = resolveSocialGeoConfig(cfg, opts);
+ const set = new Set(codes);
+ const list = HUB_COUNTRIES.filter((c) => set.has(c.code));
+ if (opts?.cnOnly !== false) {
+ return [...list].sort((a, b) => {
+ if (a.code === "CN") return -1;
+ if (b.code === "CN") return 1;
+ return 0;
+ });
+ }
+ return list;
+}
+
+/**
+ * Filter + audience-aware sort for city directory / map rails.
+ * 默认只中国;未知国家码一律剔除。
+ */
+export function resolveSocialCities(opts: {
+ geo?: HubGeoConfig | null;
+ audience?: AudienceLane;
+ /** 默认 true;只有显式 false 才放开多国 */
+ cnOnly?: boolean;
+ tag?: string;
+ countryZh?: string;
+ countryCode?: string;
+ limit?: number;
+ cities?: HubCity[];
+}): HubCity[] {
+ const cnOnly = opts.cnOnly !== false;
+ const geo = resolveSocialGeoConfig(opts.geo, { cnOnly });
+ const allowed = new Set(geo.enabledCountries);
+ const source = opts.cities || HUB_CITIES;
+ const tag = opts.tag && opts.tag !== "全部" ? opts.tag : "";
+ const countryZh =
+ opts.countryZh && opts.countryZh !== "全部" ? opts.countryZh : "";
+ const countryCode = (opts.countryCode || "").toUpperCase();
+
+ let list = source.filter((city) => {
+ const code = countryCodeFromZh(city.country);
+ // 无国家码或未在白名单 → 一律丢掉(防止国外城漏网)
+ if (!code || !allowed.has(code)) return false;
+ if (cnOnly && city.country !== "中国") return false;
+ if (tag && !city.tags.includes(tag)) return false;
+ if (countryZh && city.country !== countryZh) return false;
+ if (countryCode) {
+ if (code !== countryCode) return false;
+ }
+ return true;
+ });
+
+ const audience = opts.audience || (cnOnly ? "cn" : "intl");
+ list = [...list].sort((a, b) => {
+ const aCn = a.country === "中国" ? 0 : 1;
+ const bCn = b.country === "中国" ? 0 : 1;
+ const scoreA = audience === "cn" ? aCn : 1 - aCn;
+ const scoreB = audience === "cn" ? bCn : 1 - bCn;
+ if (scoreA !== scoreB) return scoreA - scoreB;
+ const fa = geo.featuredCityIds.includes(a.id) ? 0 : 1;
+ const fb = geo.featuredCityIds.includes(b.id) ? 0 : 1;
+ if (fa !== fb) return fa - fb;
+ if (Boolean(a.hot) !== Boolean(b.hot)) return a.hot ? -1 : 1;
+ return b.members - a.members;
+ });
+
+ if (typeof opts.limit === "number") return list.slice(0, opts.limit);
+ return list;
+}
+
+export function countryKeysForFilter(
+ cfg?: HubGeoConfig | null,
+ opts?: { cnOnly?: boolean },
+): string[] {
+ return enabledCountries(cfg, opts).map((c) => c.nameZh);
+}
diff --git a/src/modules/hub/geo/types.ts b/src/modules/hub/geo/types.ts
new file mode 100644
index 0000000..6f1512b
--- /dev/null
+++ b/src/modules/hub/geo/types.ts
@@ -0,0 +1,12 @@
+/** Remote-config: which countries / cities are operable on /hub. */
+export type HubGeoConfig = {
+ /** ISO country codes; empty / missing = all seed countries */
+ enabledCountries?: string[];
+ /** Prefer these city ids in home / map rails */
+ featuredCityIds?: string[];
+};
+
+export type ResolvedSocialGeo = {
+ enabledCountries: string[];
+ featuredCityIds: string[];
+};
diff --git a/src/modules/hub/lib/_phrases_raw.json b/src/modules/hub/lib/_phrases_raw.json
new file mode 100644
index 0000000..0e1ceaa
--- /dev/null
+++ b/src/modules/hub/lib/_phrases_raw.json
@@ -0,0 +1,598 @@
+[
+ "onClick={resetDeck}\n >\n \n 再看一轮\n \n \n \n ) : null}\n \n \n );\n}\n\nfunction DateCardFace({ member }: { member: HubRosterMember }) {\n const photos = useMemo(() => {\n const list = [member.avatar, ...(member.gallery || [])].filter(Boolean);\n return Array.from(new Set(list));\n }, [member.avatar, member.gallery]);\n const [photoIndex, setPhotoIndex] = useState(0);\n const cover = photos[Math.min(photoIndex, photos.length - 1)] || member.avatar;\n\n return (\n <>\n ({\n ...video,\n detail: `${video.city} · ${video.minutes} 分钟`,\n }));\n const shown = items.filter(\n (item) =>\n (!savedOnly || saved.includes(item.id)) &&\n `${item.title} ${item.summary} ${item.city}`\n .toLowerCase()\n .includes(query.toLowerCase().trim()),\n );\n const active = items.find((item) => item.id === selected);\n const source =\n active && safeSource(config.copy.hubVideoSources?.[active.id]);\n return (\n
\n \n \n \n
共创 · 小册 \n
{book.title} \n
{book.blurb}
\n
\n \n \n ))}\n {SEED_VIDEOS.slice(0, 2).map((vid) => (\n \n 回去看看大家\n \n \n \n );\n }\n\n const liked = !!likes[member.id];\n const cityKey = member.city.split(/[·/]/)[0].trim();\n const similar = roster\n .filter(\n (m) =>\n m.id !== member.id && m.city.includes(cityKey.slice(0, 2)),\n )\n .slice(0, 4);\n\n const toggleLike = () => {\n setRosterLike(member.id, !liked);\n };\n\n const intro = encodeURIComponent(\n `嗨 ${member.name}!看到你在做${member.tags[0] ||",
+ "aria-hidden>\n {vid.coverEmoji}\n \n
\n
共创 · 视频 \n
{vid.title} \n
\n {vid.city} · {vid.minutes} 分钟\n
\n
\n
\n \n ))}\n
\n\n \n \n 去聊天室聊聊\n \n \n
\n \n )}\n {contributeOpen && (\n \n {MOCK_ROSTER.slice(i + 1, i + 5).map((p) => (\n \n ))}\n +{6 + i} 想参加 \n \n {m.title} \n 群里打个招呼 → 开麦 / 开视频 → 认识新朋友
\n \n \n 发送\n \n \n \n \n );\n}\n\nexport default function ChatWorkspace() {\n const channel =\n SEED_CHANNELS.find((item) => item.id === HUB_CHAT_ID) ||\n SEED_CHANNELS[0];\n const id = channel?.id || HUB_CHAT_ID;\n return (\n {\n setReply({ author: message.author, text: message.text });\n composerRef.current?.focus();\n }}\n aria-label={`回复${message.author}`}\n >\n \n 回复\n \n void submit(undefined, review)}\n >\n 还没发出 · 再发一次\n \n )}\n \n ))}\n
\n )}\n \n \n {status && (\n setSelection(item.id)}\n >\n 打开\n \n \n \n \n \n ))}\n {!shown.length && (\n setLikesOpen(true)}\n >\n 想认识 · {liked.length} \n \n {liked.slice(0, 8).map((m) => (\n \n ))}\n
\n 查看 \n \n )}\n \n\n {toast ? (\n void;\n};\n\nconst EMAIL_RE = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\n/**\n * 加群:填邮箱 → 调起门户统一支付\n * PC/H5 → zpay;微信内 H5 → xpay(xorpay);小程序 WebView 提示走虚拟支付\n */\nexport default function JoinPayModal({ open, onClose }: Props) {\n return open ?
: null;\n}\n\nfunction JoinPaySheet({ onClose }: Pick
saveEventCalendar(event)}\n >\n \n 加到日历\n \n \n {\n chat.setDraft((chat.draft + emoji).slice(0, 2000));\n setEmojiOpen(false);\n composerRef.current?.focus();\n }}\n >\n {emoji}\n \n ))}\n \n )}\n \n {kind}\n \n ))}\n
\n \n 内容\n update(",
+ ";\n }, [chat.messages]);\n\n const submit = async (event?: FormEvent) => {\n event?.preventDefault();\n if (!chat.draft.trim() || chat.sending) return;\n const submittedDraft = chat.draft;\n const body = reply\n ? `回复 ${reply.author}:${reply.text.slice(0, 100)}\\n${chat.draft}`\n : chat.draft;\n if (body.length > 2000) {\n setComposerError(",
+ "aria-hidden>\n 🌆\n \n {landingCopy.hubOfflineTitle}\n \n \n 认识了、聊过之后,出来见一面会更自然。\n 先挑一座城市,再找适合见面的咖啡馆。\n
\n \n \n \n {MOCK_ROSTER.filter((m) => m.online)\n .slice(0, 5)\n .map((m) => (\n \n ))}\n 示例成员 · 可先进入了解 \n
\n \n \n \n 同频,自有引力 \n 想见的人 \n \n {NODES.map(({ member, x, y, rotate }, i) => {\n const m = MOCK_ROSTER[member];\n return (\n void submit(event)}\n >\n \n 名字\n setAuthor(event.target.value)}\n maxLength={40}\n required\n />\n \n \n \n ← 划走\n \n \n → 想认识\n \n \n ♥ 稍后打招呼\n \n \n \n \n 看看语音视频场\n \n
\n \n )}\n {chat.messages.map((message) => (\n setContributeOpen(true)}\n >\n \n 我想投稿\n \n \n )}\n \n {active && (\n setSelection(null)}>\n \n 🚀\n \n {landingCopy.hubTeamTitle}\n \n
\n 有人在找帮手;也有人一起写小册、拍视频做共创。\n 点卡片看看详情,合适再表达兴趣。\n
\n
\n\n \n 该标签暂无城市 · 换一个试试\n \n ) : null}\n
\n );\n}\n\nfunction CityCard({ city, index }: { city: HubCity; index: number }) {\n return (\n \n 📡\n \n {landingCopy.hubOnlineTitle}\n \n \n 先进聊天群组热热身,再开语音或视频见面。\n 「想参加」会先记在你这边。\n
\n \n \n
\n \n
{copy.hubPayJoinLabel} \n
\n 填一下邮箱,按提示完成支付就能加入。电脑、手机浏览器和微信里都会带你走合适的支付方式。\n
\n {config.flags.payEnabled ? (\n
(null);\n\n useEffect(() => {\n const mount = mountRef.current;\n if (!mount) return;\n if (window.matchMedia(",
+ "aria-hidden>\n {MOCK_ROSTER.slice(index + 2, index + 6).map((p) => (\n \n ))}\n 示例成员 \n \n {event.title} \n 合照:{review.photoNote}
\n ) : null}\n \n {new Date(review.at).toLocaleDateString()}\n \n {review.local && (\n 在线\n ) : (\n 离线 \n )}\n {member.vibe} \n {member.id === SELF_MEMBER_ID ? 这是我 : null}\n
\n {member.name} \n \n 写写我的介绍\n \n \n \n \n );\n}\n\nfunction PersonMini({ m }: { m: HubRosterMember }) {\n return (\n \n 文字频道还很安静 \n
先打个招呼,或问问今晚谁在听。
\n \n ) : null}\n {chat.messages.map((m) => (\n \n 💕\n \n 一张一张认识新朋友\n \n
\n 像翻相册一样:不感兴趣就划走,想认识就留下。\n 记在你这边,之后再决定要不要打招呼。\n
\n
(null);\n\n useEffect(() => {\n const canvas = canvasRef.current;\n if (!canvas) return;\n const ctx = canvas.getContext(",
+ ">\n 共创 \n \n {item.title} \n 阅读 \n \n ) : (\n <>\n \n \n \n {copy.hubOaJoinLabel} \n \n 关注\n {config.copy.wechatOaName\n ? `「${config.copy.wechatOaName}」`\n :",
+ "href={hubPath(`/meetup/${m.id}`)}\n >\n 进入聊聊\n \n \n \n ))}\n \n
\n \n
\n ) : null}\n setLikesOpen(true)}\n >\n \n 查看想认识 ({liked.length})\n \n )}\n
\n )}\n\n {next && (\n startVideo(true)}>重试连接}\n \n )}\n \n );\n })}\n {!events.length && (\n \n \n \n \n LIVE \n \n 群组 · 语音视频 \n \n {preferEmbed\n ?",
+ ", event.target.value)}\n />\n \n \n 你能带来什么\n update(",
+ ">\n {member.tags.map((t) => (\n {t} \n ))}\n \n {member.languages?.length ? (\n <>\n 语言 \n void chat.send(message.text, message.id)}\n >\n 重试\n \n ) : message.mine && message.delivery ===",
+ "aria-hidden>\n 👋\n \n 想见的人\n \n
\n 点开卡片,看看对方在做什么、想认识谁。\n 现在是示例介绍,方便你先逛逛\n {roster.some((m) => m.id === SELF_MEMBER_ID)\n ?",
+ "href={hubPath(`/meetup/${event.id}`)}\n >\n 进入聊聊 \n \n \n 点这里开始滑\n \n \n
\n \n \n\n \n\n \n {toast}\n \n ) : null}\n\n {matchMember ? (\n setMatchId(null)}\n >\n \n 详情 \n \n
\n {cafe.name} \n 先留在你这边 : null}\n \n
{m.text}
\n \n ))}\n
\n \n setActive(gig)}\n >\n 我想参与
\n \n \n ))}\n {!roles.length && (\n
\n \n 去聊天室约人 \n \n setContributeOpen(true)}\n >\n \n 我想投稿\n \n
\n \n window.location.assign(videoSrc)}\n >\n 立即进入\n \n \n )}\n \n )}\n\n {(layout ===",
+ "key={value}\n aria-label={`评分 ${value} 星`}\n aria-pressed={score === value}\n onClick={() => setScore(value)}\n className={value <= score ?",
+ ">\n \n 想认识: \n {member.lookingFor}\n
\n {member.availability ? (\n setSelection(item.id)}\n aria-label={`查看${item.title}`}\n >\n \n 划走\n \n \n \n )}\n \n\n
setLikesOpen(true)}\n >\n \n 想认识 {liked.length}\n \n ) : null}\n \n 草稿离线也能写。提交不等于立刻上线,只是先把想法放进来。\n \n \n \n );\n}\n\nexport default function ResourceLibrary({ kind }: { kind: Kind }) {\n const [query, setQuery] = useState(",
+ "onClick={() => setMatchId(null)}\n >\n 继续看看\n \n \n
\n ) : null}\n\n {likesOpen ? (\n \n 自我介绍\n update(",
+ ");\n }\n } finally {\n lock.current = false;\n setBusy(false);\n }\n };\n const invitation = `有人约在 ${cafe.city} · ${cafe.name} 喝咖啡,一起聊聊远程生活?`;\n return (\n \n \n \n 一句话介绍\n \n \n \n 联系方式\n \n 开始认识\n \n \n \n 先浏览大家\n \n \n \n \n \n \n 联系方式\n \n setSavedOnly(true)}\n >\n 收藏 · {saved.length}\n \n \n 视频暂时播不了,过一会儿再试试。\n \n )}\n >\n );\n}\n\nfunction ContributeForm({\n kind,\n onClose,\n}: {\n kind: Kind;\n onClose: () => void;\n}) {\n const books = kind ===",
+ "}」。`,\n )}`,\n )}\n >\n \n 进群组打招呼\n \n setJoinOpen(true)}\n >\n 加入游民社区 \n \n \n \n\n setSavedOnly(!savedOnly)}\n >\n 收藏 · {saved.length}\n \n \n
\n \n ))}\n \n \n 体验\n \n \n 先去群组聊聊\n \n {liked.length > 0 && (\n \n \n \n 共创意向已提交 \n \n 已发送给社区运营。请保留联系方式,方便后续沟通。\n
\n \n \n 去共创逛逛\n \n \n )}\n
\n {active && (\n \n \n \n 主题 / 暂定标题\n \n 找同城的人\n \n \n \n \n\n \n\n \n \n \n 每场标注活动时区,并换算你的本地时间 · 「想参加」先记在你这边,还不等于已经约好\n \n \n \n \n 写好了多少 \n {complete}/5 \n
\n setSavedOnly(false)}\n >\n 全部\n \n \n 重置筛选\n \n \n )}\n \n {active && (\n \n \n 「想认识」会先记在你这边。去群组打个招呼吧——是大家一起聊,不是一对一私信。\n \n
再写一个主题\n
\n
\n );\n }\n\n return (\n \n 去左右滑\n \n
\n \n 查看全部场次 ;\n }\n\n return (\n
\n 视频\n \n
\n {books ?",
+ ">\n {copy.hubHeroAccent}\n \n 不远\n 看看咖啡馆\n \n \n \n 名字 · 做什么 · 城市 · 兴趣 · 介绍
\n \n \n 更多机会\n \n
\n 看看全部\n \n
\n
\n 找搭子\n \n 也可以先写在你这边\n \n ) : (\n \n
关于 TA \n
{member.bio}
\n
总频道 · 大家一起聊
\n
\n \n \n \n 回去看看大家\n \n \n 写写我的介绍\n \n \n 发不出去也没关系,会先留在你这边,有网后再试。我们会看,但不保证马上回复。\n \n {delivery ===",
+ ">\n \n 方式一\n \n \n \n 方式二\n \n 数字游民小册\n
\n \n {roles.length} 个机会\n
\n \n 在线\n ) : null}\n
\n
认识人 \n
\n 18.79° N · 清迈\n \n ← 划走 \n 拖卡片左右滑 · 或点下面按钮 \n \n 25.60° N · 大理\n \n \n
\n
写评价 \n
\n 先在聊天室约好时间,再出来见面。评分供参考,你也可以留下自己的体验。\n \n