From efb408162d9add079aec8193be48c4ad92b13fa1 Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 1 Nov 2026 21:25:37 +0800 Subject: [PATCH] Deepen /social UX: people profiles, city directory, date deck, and plain-language IA. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hide membership entry, brand ebook/video as 共创, harden H5 touch layout, and align copy with everyday nomad language. Co-authored-by: Cursor --- public/manifest.webmanifest | 38 - src/app/manifest.ts | 8 +- src/app/social/chat/[id]/page.tsx | 21 +- src/app/social/coffeechat/page.tsx | 7 +- src/app/social/layout.tsx | 4 +- src/app/social/people/[id]/page.tsx | 15 + src/app/social/vip/page.tsx | 5 +- src/lib/remote-config.ts | 105 ++ src/modules/social/README.md | 11 +- src/modules/social/app/depth.css | 1419 +++++++++++++++++ src/modules/social/app/experience.css | 334 +++- src/modules/social/app/fx.css | 76 +- src/modules/social/app/globals.css | 41 +- src/modules/social/app/home.css | 26 +- src/modules/social/app/interaction.css | 364 +++++ src/modules/social/app/motion.css | 102 +- src/modules/social/app/studio.css | 44 + src/modules/social/app/vivid.css | 1249 +++++++++++++++ .../social/components/AttractiveRoster.tsx | 166 +- .../social/components/CafeDirectory.tsx | 236 ++- .../social/components/ChannelDirectory.tsx | 120 +- .../social/components/ChatListClient.tsx | 7 +- .../social/components/ChatWorkspace.tsx | 179 ++- .../social/components/CityDirectory.tsx | 104 ++ .../social/components/CommunityWelcome.tsx | 411 ++--- .../social/components/ConnectionHero.tsx | 62 +- src/modules/social/components/DateClient.tsx | 569 ++++++- .../social/components/EventDirectory.tsx | 211 ++- .../social/components/FloatingEmojiField.tsx | 25 +- src/modules/social/components/FxBelt.tsx | 23 +- src/modules/social/components/HomeClient.tsx | 372 +++-- .../social/components/JoinPayModal.tsx | 8 +- .../social/components/MeetupLiveClient.tsx | 356 ++++- src/modules/social/components/MeetupRoom.tsx | 257 +-- .../social/components/PeopleClient.tsx | 192 +-- .../social/components/PeopleProfileClient.tsx | 266 +++ .../social/components/ProfileStudio.tsx | 104 +- .../social/components/ResourceLibrary.tsx | 122 +- src/modules/social/components/RoleBoard.tsx | 139 +- src/modules/social/components/SiteShell.tsx | 62 +- .../social/components/SocialBrandLogo.tsx | 74 + .../social/components/SocialExperience.tsx | 18 +- .../social/components/SocialNavigation.tsx | 35 +- .../social/components/SocialQuickRail.tsx | 48 + src/modules/social/components/SocialUI.tsx | 126 +- .../social/components/WorldConnections.tsx | 65 - src/modules/social/lib/catalog.ts | 108 +- src/modules/social/lib/cities.ts | 168 ++ src/modules/social/lib/discoveryRoster.ts | 83 + src/modules/social/lib/landing.ts | 6 + src/modules/social/lib/resolveCatalog.ts | 139 ++ src/modules/social/lib/rosterMock.ts | 70 +- src/modules/social/lib/seed.ts | 42 +- src/modules/social/lib/useRevealMotion.ts | 32 + 54 files changed, 7138 insertions(+), 1736 deletions(-) delete mode 100644 public/manifest.webmanifest create mode 100644 src/app/social/people/[id]/page.tsx create mode 100644 src/modules/social/app/depth.css create mode 100644 src/modules/social/app/vivid.css create mode 100644 src/modules/social/components/CityDirectory.tsx create mode 100644 src/modules/social/components/PeopleProfileClient.tsx create mode 100644 src/modules/social/components/SocialBrandLogo.tsx create mode 100644 src/modules/social/components/SocialQuickRail.tsx delete mode 100644 src/modules/social/components/WorldConnections.tsx create mode 100644 src/modules/social/lib/cities.ts create mode 100644 src/modules/social/lib/discoveryRoster.ts create mode 100644 src/modules/social/lib/resolveCatalog.ts create mode 100644 src/modules/social/lib/useRevealMotion.ts diff --git a/public/manifest.webmanifest b/public/manifest.webmanifest deleted file mode 100644 index 7feadbc..0000000 --- a/public/manifest.webmanifest +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "nomadro", - "short_name": "nomadro", - "description": "随处工作,自由生活 · 出海导航 · 数字游民小册 · 旅居社群", - "start_url": "/", - "scope": "/", - "display": "standalone", - "orientation": "any", - "background_color": "#0a0e17", - "theme_color": "#0a0e17", - "lang": "zh-CN", - "icons": [ - { - "src": "/favicon.svg?v=2", - "sizes": "any", - "type": "image/svg+xml", - "purpose": "any" - }, - { - "src": "/icon-192.png?v=2", - "sizes": "192x192", - "type": "image/png", - "purpose": "any" - }, - { - "src": "/icon-512.png?v=2", - "sizes": "512x512", - "type": "image/png", - "purpose": "any" - }, - { - "src": "/apple-touch-icon.png?v=2", - "sizes": "180x180", - "type": "image/png", - "purpose": "any" - } - ] -} diff --git a/src/app/manifest.ts b/src/app/manifest.ts index c1e3b5c..6ebe84c 100644 --- a/src/app/manifest.ts +++ b/src/app/manifest.ts @@ -12,22 +12,22 @@ export default function manifest(): MetadataRoute.Manifest { lang: "zh-CN", icons: [ { - src: "/favicon.svg", + src: "/favicon.svg?v=2", sizes: "any", type: "image/svg+xml", }, { - src: "/icon-192.png", + src: "/icon-192.png?v=2", sizes: "192x192", type: "image/png", }, { - src: "/icon-512.png", + src: "/icon-512.png?v=2", sizes: "512x512", type: "image/png", }, { - src: "/apple-touch-icon.png", + src: "/apple-touch-icon.png?v=2", sizes: "180x180", type: "image/png", }, diff --git a/src/app/social/chat/[id]/page.tsx b/src/app/social/chat/[id]/page.tsx index 37d0fc7..d2c8a42 100644 --- a/src/app/social/chat/[id]/page.tsx +++ b/src/app/social/chat/[id]/page.tsx @@ -1,8 +1,17 @@ -import ChatRoomClient from "@social/components/ChatRoomClient"; -import { SEED_CHANNELS } from "@social/lib/seed"; +import { redirect } from "next/navigation"; -export default async function Page({ params }: { params: Promise<{ id: string }> }) { - const { id } = await params; - const channelId = SEED_CHANNELS.some((c) => c.id === id) ? id : SEED_CHANNELS[0].id; - return ; +/** 旧多频道 URL → 唯一全屏聊天室 */ +export default async function Page({ + searchParams, +}: { + params: Promise<{ id: string }>; + searchParams: Promise>; +}) { + const sp = await searchParams; + const introRaw = sp.intro; + const intro = Array.isArray(introRaw) ? introRaw[0] : introRaw; + if (intro) { + redirect(`/social/chat?intro=${encodeURIComponent(intro)}`); + } + redirect("/social/chat"); } diff --git a/src/app/social/coffeechat/page.tsx b/src/app/social/coffeechat/page.tsx index 507afb0..cb4445f 100644 --- a/src/app/social/coffeechat/page.tsx +++ b/src/app/social/coffeechat/page.tsx @@ -1,5 +1,10 @@ +import { Suspense } from "react"; import CoffeechatClient from "@social/components/CoffeechatClient"; export default function Page() { - return ; + return ( + 加载同城目录…}> + + + ); } diff --git a/src/app/social/layout.tsx b/src/app/social/layout.tsx index 31097cd..d6301fa 100644 --- a/src/app/social/layout.tsx +++ b/src/app/social/layout.tsx @@ -9,12 +9,14 @@ import "@social/app/experience.css"; import "@social/app/interaction.css"; import "@social/app/studio.css"; import "@social/app/motion.css"; +import "@social/app/depth.css"; +import "@social/app/vivid.css"; import SocialExperience from "@social/components/SocialExperience"; export const metadata = { title: "游民社区 · nomadro", description: - "数字游民社交:线上聊天 · Meetup · Coffeechat · 职业花名册 · UGC", + "认识同频的人:看看谁在这儿、开视频聊聊、出来见一面、一起做点事", }; export default function SocialLayout({ diff --git a/src/app/social/people/[id]/page.tsx b/src/app/social/people/[id]/page.tsx new file mode 100644 index 0000000..1b30ae4 --- /dev/null +++ b/src/app/social/people/[id]/page.tsx @@ -0,0 +1,15 @@ +import { Suspense } from "react"; +import PeopleProfileClient from "@social/components/PeopleProfileClient"; + +export default async function PeopleProfilePage({ + params, +}: { + params: Promise<{ id: string }>; +}) { + const { id } = await params; + return ( + 加载游民名片…}> + + + ); +} diff --git a/src/app/social/vip/page.tsx b/src/app/social/vip/page.tsx index f967ce5..b0591ab 100644 --- a/src/app/social/vip/page.tsx +++ b/src/app/social/vip/page.tsx @@ -1,5 +1,6 @@ -import VipClient from "@social/components/VipClient"; +import { redirect } from "next/navigation"; +/** 会员入口已隐藏,直达统一加入社区。 */ export default function Page() { - return ; + redirect("/social/join"); } diff --git a/src/lib/remote-config.ts b/src/lib/remote-config.ts index c07094d..6312d1a 100644 --- a/src/lib/remote-config.ts +++ b/src/lib/remote-config.ts @@ -149,6 +149,18 @@ export type NomadroRemoteConfig = { } >; socialVideoSources?: Record; + /** 游民社区目录覆盖;空数组/非法字段回退包内 seed */ + socialCatalogs?: { + cafes?: Array>; + meetups?: Array>; + gigs?: Array>; + }; + socialWayChat?: string; + socialWayDate?: string; + socialWayCafe?: string; + socialWayTeam?: string; + socialPayJoinLabel?: string; + socialOaJoinLabel?: string; }; /** 导航页分类 / 链接(后台可增删改隐) */ navContent?: NavContent; @@ -382,6 +394,99 @@ export const DEFAULT_REMOTE_CONFIG: NomadroRemoteConfig = { socialOnlineTitle: "随时,聊得来", socialOfflineTitle: "同城,见一面", socialTeamTitle: "一起,做点事", + socialWayChat: "开视频聊聊", + socialWayDate: "认识一下", + socialWayCafe: "找个地方见面", + socialWayTeam: "找搭子 · 共创", + socialPayJoinLabel: "加入社区", + socialOaJoinLabel: "先看看公众号", + socialPages: { + people: { + eyebrow: "先逛逛大家", + title: "想见的人", + accent: "认识新朋友", + description: + "点开卡片,看看对方在做什么。现在是示例介绍,方便你先熟悉;想打招呼,去大家聊天的地方说一句就好。", + }, + date: { + eyebrow: "慢慢认识", + title: "认识一下", + accent: "想认识的人", + description: + "右滑表示想认识,会先记在你这边。接下来可以去聊天室打个招呼——不是一对一私信,而是大家一起聊。", + }, + chat: { + eyebrow: "大家在这儿聊", + title: "聊天室", + accent: "打个招呼", + description: + "进来跟大家说说话。网络不好时,刚才的话可能先留在你这边,联网后再试一次就行。", + }, + meetup: { + eyebrow: "面对面更近", + title: "随时,聊得来", + accent: "开视频", + description: + "几个人一起开摄像头见面聊天。点「想参加」只是先记在你这边,还不等于已经约好。", + }, + coffeechat: { + eyebrow: "约出来喝一杯", + title: "同城,见一面", + accent: "城市与咖啡馆", + description: + "先选城市,再挑适合见面的咖啡馆。看完介绍、聊过天之后,出来见一面会更自然。", + }, + team: { + eyebrow: "不只好玩,也能做事", + title: "一起,做点事", + accent: "找搭子", + description: + "有人在找帮手、兼职伙伴;也有人一起做共创(小册与视频)。点卡片看看详情。", + }, + gigs: { + eyebrow: "帮得上忙的机会", + title: "兼职与志愿", + accent: "一起做事", + description: "想帮忙、想兼职,都从这里看看。合适再表达兴趣。", + }, + join: { + eyebrow: "先找到组织", + title: "加入社区", + accent: "欢迎你来", + description: + "付费加入后能更方便认识大家;也可以先关注公众号,慢慢了解社区动态。", + }, + vip: { + eyebrow: "想多一点支持", + title: "会员", + description: "开通后能更方便参与社区活动。具体权益以页面说明为准。", + }, + roster: { + eyebrow: "让别人认识你", + title: "我的介绍", + description: + "写几句关于自己的话,草稿会先留在你这边。愿意的话,也可以出现在「想见的人」里。", + }, + feedback: { + eyebrow: "说说你的想法", + title: "意见反馈", + accent: "我们在听", + description: + "有不顺手的地方尽管说。发送失败时会先留在你这边,有网后再试一次。", + }, + ebook: { + eyebrow: "共创", + title: "共创 · 小册", + accent: "大家写的", + description: "社区一起写的经验。先看看目录;想完整阅读,可以去书库。", + }, + videos: { + eyebrow: "共创", + title: "共创 · 视频", + accent: "大家拍的", + description: "社区一起拍的路上故事。有的可以看,有的先看封面。", + }, + }, }, navContent: structuredClone(DEFAULT_NAV_CONTENT), platforms: { diff --git a/src/modules/social/README.md b/src/modules/social/README.md index b6e5e53..83c100e 100644 --- a/src/modules/social/README.md +++ b/src/modules/social/README.md @@ -20,18 +20,19 @@ - **交互**:粘性区块导航与当前位置、方向键筛选成员、关注本地保存;原生 `dialog` 管理视频与加群弹窗的焦点、Escape、背景锁定。 - **全站布局**:桌面为宽幅内容 + 顶部分组导航;移动端为顶部菜单 + 底部快捷入口。没有侧栏,聊天室频道也使用横向切换。 - **全站动效**:`SocialExperience` / `experience.css` 提供星点连线、鼠标柔光、漂移光晕、卡片聚光和页面入场;`interaction.css` / `studio.css` 提供声波、会前雷达、名片透视与书封动效。动效可切为轻量,系统减少动态效果设置优先;离开页面或标签页隐藏时清理/暂停动画。 +- **视觉终态层**:`depth.css` + `vivid.css`(最后加载)统一玻璃导航、快捷轨、约会进度、聊天跳转最新、咖啡馆主从、Meetup 雷达、触控 ≥44px;子页 `SocialQuickRail` 横向跳转。 ## 子页面与交互边界 -- `/people`:按城市 / 技能 / 兴趣搜索展示成员,收藏与名片弹窗;成员和在线状态为演示资料,交流入口通向真实公开频道,没有虚构私信或匹配结果。 -- `/chat`、`/chat/[id]`:频道搜索、破冰话题、引用回复、表情、IME 友好的 Enter 发送、独立消息区滚动、本机草稿。连接现有 API / Centrifugo,失败保留「仅本机」消息并支持手动重试;反应与频道收藏仅本机保存。 +- `/people`:按城市 / 技能 / 兴趣搜索展示成员,收藏与名片弹窗;成员和在线状态为演示资料,可选显示本机已发布名片;交流入口通向真实公开频道,没有虚构私信或匹配结果。 +- `/chat`、`/chat/[id]`:全站唯一公开厅;破冰话题、引用回复、表情、IME 友好的 Enter 发送、独立消息区滚动、本机草稿。连接现有 API / Centrifugo,失败保留「仅本机」消息并支持手动重试;反应仅本机保存。`/chat/[id]` 重定向到公开厅。 - `/meetup`、`/meetup/[id]`:活动收藏表示本机参与计划,不是预约成功;导出日历按活动 IANA 时区转换为 UTC,种子默认 `Asia/Shanghai`。视频房间在明确点击进入后才加载,麦克风 / 摄像头默认关闭,支持布局切换、重连、新窗口和离开。音视频能力依赖现有 MiroTalk 服务及用户授权。 - `/coffeechat`:城市 / 关键词 / 网络 / 评分筛选,地点收藏、可分享选中地点、真实评价提交与离线重试。目录中的地点、带宽、评分仅作种子参考;邀约进入公开频道,不伪造订位或即时到场人数。 - `/roster`:编辑时实时预览名片与完成度,本机草稿优先;慢返回的服务端资料不会覆盖正在编辑的内容。保存调用现有资料 API,明确区别同步成功与尚未同步。 - `/team`、`/gigs`:搜索技能与角色、类型筛选、收藏、参与申请弹窗,校验必填项、保留本机草稿、失败重试和重复提交保护。目录机会是否开放需另行确认。 - `/videos`、`/date`、`/ebook`:统一搜索、收藏、内容详情和话题讨论入口。视频没有片源时明确展示目录预览,不显示假播放器;小册入口通向门户书库,不承诺目录主题已有对应完整正文。 -- `/join`、`/vip`、`/feedback`:加入步骤、已有社群引导、会员中心入口、反馈草稿与离线重试;购买遵循 `payEnabled`,不承诺未实现的优先席位等权益。 -- **子页面运营**:`/admin/config` 的 `copy.socialPages` 支持按路由键覆盖 `{ eyebrow, title, accent, description }`;`copy.socialVideoSources` 按目录 ID 配置 http(s) 或站内片源。编辑器校验 JSON,非法配置禁止提交;空配置使用内置默认文案。 +- `/join`、`/vip`、`/feedback`:加群双路径(付费入群 + 关注公众号)、会员中心入口、反馈草稿与离线重试、「再提一条」;购买遵循 `payEnabled`,不承诺未实现的优先席位等权益。 +- **子页面运营**:`/admin/config` 的 `copy.socialPages` 支持按路由键覆盖 `{ eyebrow, title, accent, description }`;`copy.socialVideoSources` 按目录 ID 配置片源;`copy.socialCatalogs` 可覆盖 cafes/meetups/gigs(空/非法回退包内 seed)。编辑器校验 JSON;空配置使用内置默认文案。 - **存储**:`useLocalState` 统一草稿、偏好和收藏,兼容服务端渲染和跨标签页更新。本机保存不会冒充服务器发布、真实关注关系或账号登录。 ## 首页(数字游民社交) @@ -42,8 +43,6 @@ - CTA:仅「加群」→ 邮箱弹窗 → PC/H5 `zpay`、微信内 H5 `xpay`、小程序引导虚拟支付(`JoinPayModal` + `triggerPay`) - 下方:三种连接入口 → 成员花名册 → Meetup → Coffeechat → **远程团队**(`/social/team`:志愿者 / 兼职 / 全职)→ 加入邀请。 - 首页成员 / 活动预览沿用种子数据,演示在线状态明确标注,非实时成员统计。 -- 世界时钟展示清迈、大理、里斯本、巴厘岛的实际本地时间,并链接对应城市发现页。 - ## 本地验收 - TypeScript 全量检查与改动范围 ESLint。 diff --git a/src/modules/social/app/depth.css b/src/modules/social/app/depth.css new file mode 100644 index 0000000..36df40f --- /dev/null +++ b/src/modules/social/app/depth.css @@ -0,0 +1,1419 @@ +/* ========================================================= + 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); + aspect-ratio: 3 / 4.15; + 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: 18px; +} +.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: center; + gap: 8px; + padding: 8px 14px; + font-size: 11px; + font-weight: 600; + letter-spacing: 0.02em; + background: linear-gradient(90deg, #5ce1d610, transparent 55%); + border-bottom: 1px solid var(--sx-fog); +} +.social-chat-live .social-chat-thread { + gap: 16px; + padding: 16px 14px 20px; +} +.social-message { + max-width: min(92%, 520px); +} +.social-message-avatar { + width: 36px; + height: 36px; + border-radius: 14px; +} +.social-message-body > p { + 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 { + 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 —— */ +@media (max-width: 900px) { + .social-mobile-dock { + display: grid; + grid-template-columns: repeat(5, 1fr); + gap: 2px; + position: fixed; + left: 12px; + right: 12px; + bottom: calc(10px + env(safe-area-inset-bottom, 0px)); + z-index: 60; + padding: 8px 6px; + border-radius: 22px; + border: 1px solid var(--sx-fog); + background: color-mix(in srgb, #0b121c 88%, transparent); + backdrop-filter: blur(20px) saturate(1.2); + box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); + } + .social-mobile-dock a { + min-height: 52px; + border-radius: 16px; + color: var(--text-muted); + font-size: 10px; + font-weight: 650; + gap: 3px; + } + .social-mobile-dock a[aria-current="page"] { + color: #062525; + background: linear-gradient(145deg, #7aefe4, #4ecdc4); + box-shadow: 0 8px 20px #4ecdc444; + } + .social-fx-control { + bottom: calc(78px + 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(4, 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: sticky; + top: 96px; + z-index: 30; + backdrop-filter: blur(14px); +} +.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: #062525; + background: linear-gradient(120deg, #7aefe4, #4ecdc4); +} + +@media (max-width: 900px) { + .social-home .connection-ways { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + .social-home .connection-hero { + padding-top: 108px; + min-height: auto; + } + .social-home .social-path { + top: 72px; + } + .social-people-grid { + grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); + } +} + +@media (max-width: 560px) { + .social-home .connection-ways { + grid-template-columns: 1fr 1fr; + gap: 10px; + } + .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; + } +} + +@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 { + animation: none; + } +} diff --git a/src/modules/social/app/experience.css b/src/modules/social/app/experience.css index 3b894b7..902689c 100644 --- a/src/modules/social/app/experience.css +++ b/src/modules/social/app/experience.css @@ -113,9 +113,241 @@ border-color: #4ecdc455; } .social-workspace { - --nav-height: 80px; + --nav-height: 72px; min-height: 100dvh; } +.social-workspace-dense { + --nav-height: 64px; +} +.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; +} +.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-chat-live { + background: var(--sc-bg, var(--bg-primary)); +} +.social-chat-live-bar { + flex-shrink: 0; +} +.social-chat-live .social-live-stage { + min-height: 0; +} +.social-chat-live .social-conversation { + 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; +} +.social-chat-live .social-conversation-top { + display: none !important; +} +.social-chat-live .social-connection-status { + margin: 0; + border-radius: 0; + padding: 6px 12px; +} +.social-chat-live .social-thread-wrap, +.social-chat-live .social-chat-thread { + flex: 1; + min-height: 0; + margin: 0; + padding: 12px; + border: 0; + border-radius: 0; + background: transparent; +} +.social-chat-live .social-chat-composer { + margin: 0; + border-radius: 0 !important; + border-left: 0; + border-right: 0; + border-bottom: 0; +} +.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)); +} .social-workspace .navbar { position: fixed; inset: 0 0 auto; @@ -202,14 +434,20 @@ } .social-workspace-grid { display: block; - max-width: 1250px; - margin: auto; - padding: 105px 32px 60px; + 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 .social-main { width: 100%; min-width: 0; - max-width: 1184px; + max-width: 1400px; padding: 0; margin: 0 auto; } @@ -232,6 +470,76 @@ 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; @@ -675,6 +983,13 @@ 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; } @@ -1102,6 +1417,15 @@ backdrop-filter: blur(20px); padding: 8px 10px max(9px, env(safe-area-inset-bottom)); } + .social-chat-live .social-chat-composer { + padding-bottom: calc(12px + 64px + env(safe-area-inset-bottom, 0px)); + } + .social-date-root .social-date-stage { + padding-bottom: calc(12px + 72px + env(safe-area-inset-bottom, 0px)); + } + .social-date-root .social-date-deck { + height: min(520px, calc(100dvh - 300px)); + } .social-mobile-dock a { display: flex; flex-direction: column; diff --git a/src/modules/social/app/fx.css b/src/modules/social/app/fx.css index 50ff79a..ffcfbb0 100644 --- a/src/modules/social/app/fx.css +++ b/src/modules/social/app/fx.css @@ -85,36 +85,36 @@ .social-emoji-float { position: absolute; line-height: 1; - filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); + 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% { - transform: translate3d(0, 12px, 0) rotate(-12deg) scale(0.92); - opacity: 0.25; - } - 40% { - transform: translate3d(10px, -28px, 0) rotate(8deg) scale(1.12); - opacity: 0.85; - } - 70% { - transform: translate3d(-8px, -10px, 0) rotate(-4deg) scale(1.02); - opacity: 0.55; - } + 0%, 100% { - transform: translate3d(0, 12px, 0) rotate(-12deg) scale(0.92); - opacity: 0.25; + 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 */ +/* Emoji marquee belt — quiet divider */ .social-fx-belt { overflow: hidden; - padding: 10px 0 18px; + padding: 6px 0 10px; + opacity: 0.35; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); } @@ -122,15 +122,15 @@ display: flex; width: max-content; gap: 0; - animation: social-belt-run 22s linear infinite; + animation: social-belt-run 48s linear infinite; } .social-fx-belt-track span { - padding-right: 48px; - font-size: 1.35rem; - letter-spacing: 0.35em; + padding-right: 56px; + font-size: 0.95rem; + letter-spacing: 0.45em; white-space: nowrap; - opacity: 0.55; + opacity: 0.4; } @keyframes social-belt-run { @@ -188,9 +188,10 @@ .social-title-emoji { display: inline-block; - margin-right: 0.35em; - animation: social-emoji-wiggle 1.8s ease-in-out infinite; - transform-origin: 50% 80%; + margin-right: 0.28em; + opacity: 0.82; + animation: none; + transform: none; } @keyframes social-emoji-wiggle { @@ -198,14 +199,8 @@ 100% { transform: rotate(0deg) scale(1); } - 20% { - transform: rotate(-14deg) scale(1.18); - } - 40% { - transform: rotate(12deg) scale(1.1); - } - 60% { - transform: rotate(-8deg) scale(1.14); + 50% { + transform: rotate(2deg) scale(1.02); } } @@ -513,24 +508,25 @@ inset: 0; display: grid; place-items: center; - font-size: 1.6rem; - letter-spacing: 0.4em; + font-size: 1rem; + letter-spacing: 0.2em; pointer-events: none; - animation: social-burst-up 0.75s ease forwards; + opacity: 0.55; + animation: social-burst-up 0.55s ease forwards; z-index: 2; } @keyframes social-burst-up { from { opacity: 0; - transform: translateY(10px) scale(0.7); + transform: translateY(6px) scale(0.9); } - 35% { - opacity: 1; + 40% { + opacity: 0.55; } to { opacity: 0; - transform: translateY(-36px) scale(1.35); + transform: translateY(-18px) scale(1.05); } } diff --git a/src/modules/social/app/globals.css b/src/modules/social/app/globals.css index 494453f..8b57386 100644 --- a/src/modules/social/app/globals.css +++ b/src/modules/social/app/globals.css @@ -746,9 +746,15 @@ html.light .social-flow, /* 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 { @@ -845,14 +851,15 @@ html.light .social-flow, } .social-live-stage { - flex: 1; + flex: 1 1 auto; min-height: 0; + height: 100%; display: grid; gap: 0; } .social-live-stage.layout-split { - grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr); + grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr); } .social-live-stage.layout-video, @@ -863,6 +870,7 @@ html.light .social-flow, .social-live-video, .social-live-chat { min-height: 0; + height: 100%; display: flex; flex-direction: column; border-left: var(--sc-border); @@ -875,16 +883,18 @@ html.light .social-flow, .social-live-frame-wrap { position: relative; - flex: 1; + flex: 1 1 auto; display: flex; - min-height: min(70vh, 720px); + min-height: 0; + height: 100%; background: #05070c; } .social-live-iframe { - flex: 1; + flex: 1 1 auto; width: 100%; - min-height: min(70vh, 720px); + height: 100%; + min-height: 0; border: 0; background: #000; } @@ -1004,17 +1014,28 @@ html.light .social-flow, @media (max-width: 900px) { .social-live-stage.layout-split { grid-template-columns: 1fr; - grid-template-rows: minmax(42vh, 1fr) minmax(38vh, 1fr); + grid-template-rows: minmax(48dvh, 1.2fr) minmax(34dvh, 0.9fr); } .social-live-chat { border-left: none; border-top: var(--sc-border); } +} - .social-live-iframe { - min-height: 42vh; - } +/* 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; } @media (max-width: 640px) { diff --git a/src/modules/social/app/home.css b/src/modules/social/app/home.css index b8916af..dd02d49 100644 --- a/src/modules/social/app/home.css +++ b/src/modules/social/app/home.css @@ -218,10 +218,14 @@ } .connection-actions { display: flex; + flex-wrap: wrap; align-items: center; - gap: 25px; + gap: 14px 22px; margin-top: 30px; } +.connection-actions .connection-film { + text-decoration: none; +} .social-home .connection-join { display: inline-flex; align-items: center; @@ -585,22 +589,22 @@ font-size: 8px; } -/* Three clear doors into the existing product. */ +/* Entry doors into the product. */ .connection-ways { position: relative; z-index: 1; display: grid; - grid-template-columns: repeat(3, 1fr); - gap: 14px; - margin-bottom: 50px; + grid-template-columns: repeat(4, 1fr); + gap: 12px; + margin-bottom: 40px; } .connection-way { --way-accent: var(--connection-mint); position: relative; display: flex; align-items: center; - gap: 16px; - padding: 25px 22px; + gap: 12px; + padding: 18px 16px; border: 1px solid var(--connection-border); border-radius: 15px; background: linear-gradient( @@ -1629,14 +1633,14 @@ display: none; } .connection-ways { - grid-template-columns: 1fr; + grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 30px; } .connection-way { - min-height: 83px; - padding: 16px 18px; - gap: 16px; + min-height: 72px; + padding: 14px 14px; + gap: 12px; } .connection-way-icon { width: 40px; diff --git a/src/modules/social/app/interaction.css b/src/modules/social/app/interaction.css index c83224d..1e319fb 100644 --- a/src/modules/social/app/interaction.css +++ b/src/modules/social/app/interaction.css @@ -293,6 +293,17 @@ 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; @@ -1176,3 +1187,356 @@ animation: none; } } + +@media (max-width: 640px) { + .social-home .social-date-hero { + text-align: left; + justify-items: stretch; + } +} + +/* —— Date / 约会 swipe deck —— */ +.social-date-root { + 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; +} +.social-date-bar-tools { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 10px; +} +.social-date-stage { + flex: 1; + min-height: 0; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 18px; + padding: 12px 16px 24px; +} +.social-date-deck { + position: relative; + width: min(420px, 100%); + height: min(620px, calc(100dvh - 220px)); + min-height: 420px; +} +.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; +} +.social-date-card.is-next { + transform: scale(0.96) translateY(12px); + opacity: 0.75; + 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-fly-like { + animation: social-date-fly-like 0.28s ease-in forwards; +} +.social-date-card.is-fly-pass { + animation: social-date-fly-pass 0.28s ease-in forwards; +} +@keyframes social-date-fly-like { + to { + transform: translate3d(130vw, 40px, 0) rotate(28deg); + opacity: 0; + } +} +@keyframes social-date-fly-pass { + to { + transform: translate3d(-130vw, 40px, 0) rotate(-28deg); + 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 { + right: 18px; + color: #ff8f8f; + border-color: #ff6b6b; + background: rgba(255, 107, 107, 0.12); + transform: rotate(12deg); +} +.social-date-online-pill { + position: absolute; + top: 18px; + left: 50%; + transform: translateX(-50%); + 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-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; + align-items: center; + justify-content: center; + gap: 18px; +} +.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: wrap; + align-items: center; + justify-content: center; + gap: 10px; + width: min(420px, 100%); + padding: 10px 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-deck { + height: min(560px, calc(100dvh - 240px)); + min-height: 380px; + } + .social-date-act { + width: 58px; + height: 58px; + } + .social-date-act.like { + width: 66px; + height: 66px; + } +} +@media (prefers-reduced-motion: reduce) { + .social-date-card.is-top, + .social-date-card.is-fly-like, + .social-date-card.is-fly-pass { + transition: none; + animation: none; + } +} diff --git a/src/modules/social/app/motion.css b/src/modules/social/app/motion.css index 17465dc..42f4567 100644 --- a/src/modules/social/app/motion.css +++ b/src/modules/social/app/motion.css @@ -61,8 +61,8 @@ } .connection-hero .social-emoji-field { - z-index: 1; - opacity: 1; + z-index: 0; + opacity: 0.5; } .connection-hero-layout { @@ -71,8 +71,8 @@ } .social-experience[data-immersive="true"] .social-emoji-float { - opacity: 0.82 !important; - filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.45)) !important; + 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; @@ -171,12 +171,12 @@ animation: social-live-ping 1.35s ease-out infinite !important; } -/* Undo Codex display:none / animation:none */ +/* 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.3em !important; - animation: social-emoji-wiggle 1.6s ease-in-out infinite !important; - transform-origin: 50% 80%; + margin-right: 0.28em !important; + animation: none !important; + opacity: 0.85 !important; } .social-experience[data-immersive="true"] .social-home .social-btn-pulse { @@ -291,7 +291,14 @@ .social-home .connection-cafe .social-panel-ico { - animation: social-ico-bounce 1.55s ease-in-out infinite !important; + 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 { @@ -365,6 +372,61 @@ 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. @@ -381,12 +443,28 @@ animation-iteration-count: infinite !important; } - .social-experience[data-immersive="true"] .social-home .social-fx-orb { + .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 14s linear infinite !important; + animation: social-belt-run 48s linear infinite !important; } .social-experience[data-immersive="true"] .connection-signal i { @@ -417,7 +495,7 @@ .social-experience[data-immersive="true"] .social-home .social-title-emoji { display: inline-block !important; - animation: social-emoji-wiggle 1.6s ease-in-out infinite !important; + animation: none !important; } .social-experience[data-immersive="true"] .social-home .social-btn-pulse::before, diff --git a/src/modules/social/app/studio.css b/src/modules/social/app/studio.css index 079b1b8..f0a8dfa 100644 --- a/src/modules/social/app/studio.css +++ b/src/modules/social/app/studio.css @@ -150,6 +150,50 @@ } .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; diff --git a/src/modules/social/app/vivid.css b/src/modules/social/app/vivid.css new file mode 100644 index 0000000..52f9446 --- /dev/null +++ b/src/modules/social/app/vivid.css @@ -0,0 +1,1249 @@ +/* ========================================================= + Social VIVID — final visual authority (loads after depth) + Goal: best-looking, best-feeling /social 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-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; +} +.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-rows: auto auto auto auto; + padding-right: 36px; +} +.social-people-chip-want { + grid-column: 2; + 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-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 span { + min-height: 32px; + padding: 0 12px; + display: inline-grid; + place-items: center; + border-radius: 999px; + font-size: 12px; + color: var(--text-muted, #9aa3af); +} +.social-together-tabs span.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, + .social-date-root .social-date-card { + animation: none !important; + 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: 64px; + 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 { + padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); + } + .social-mobile-dock { + padding-bottom: env(safe-area-inset-bottom, 0px); + } + .social-mobile-dock a { + min-height: 52px; + gap: 2px; + } + + .social-date-root .social-date-bar { + flex-wrap: wrap; + gap: 8px; + padding: 10px 12px; + } + .social-date-root .social-date-bar-tools { + width: 100%; + justify-content: space-between; + } + .social-date-root .social-date-deck { + width: min(100%, 420px); + height: min(58dvh, 560px); + min-height: 360px; + } + .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; + } +} diff --git a/src/modules/social/components/AttractiveRoster.tsx b/src/modules/social/components/AttractiveRoster.tsx index 9d6b16f..8f3deaa 100644 --- a/src/modules/social/components/AttractiveRoster.tsx +++ b/src/modules/social/components/AttractiveRoster.tsx @@ -8,8 +8,14 @@ import { useState, useSyncExternalStore, } from "react"; -import { MOCK_ROSTER, type SocialRosterMember } from "@social/lib/rosterMock"; +import Link from "next/link"; +import type { SocialRosterMember } from "@social/lib/rosterMock"; +import { + SELF_MEMBER_ID, + useDiscoveryRoster, +} from "@social/lib/discoveryRoster"; import { loadJson, saveJson } from "@social/lib/storage"; +import { socialPath } from "@social/lib/socialPath"; import SocialAvatar from "./SocialAvatar"; import SectionSpark from "./SectionSpark"; @@ -44,6 +50,7 @@ const FILTERS = [ ]; export default function AttractiveRoster({ onJoin }: { onJoin: () => void }) { + const roster = useDiscoveryRoster(); const likesSnapshot = useSyncExternalStore( subscribeLikes, getLikesSnapshot, @@ -54,7 +61,7 @@ export default function AttractiveRoster({ onJoin }: { onJoin: () => void }) { [likesSnapshot], ); const [filter, setFilter] = useState<"all" | "online" | "f" | "m">("all"); - const [activeId, setActiveId] = useState(null); + const [highlightId, setHighlightId] = useState(null); const [burst, setBurst] = useState(false); const burstTimer = useRef | null>(null); const filterId = useId(); @@ -64,16 +71,16 @@ export default function AttractiveRoster({ onJoin }: { onJoin: () => void }) { const id: unknown = (event as CustomEvent).detail; if ( typeof id !== "string" || - !MOCK_ROSTER.some((member) => member.id === id) + !roster.some((member) => member.id === id) ) return; setFilter("all"); - setActiveId(id); + setHighlightId(id); }; window.addEventListener("nomadro-social-select-member", selectMember); return () => window.removeEventListener("nomadro-social-select-member", selectMember); - }, []); + }, [roster]); useEffect( () => () => { @@ -83,20 +90,25 @@ export default function AttractiveRoster({ onJoin }: { onJoin: () => void }) { ); const list = useMemo(() => { - return MOCK_ROSTER.filter((m) => { + return roster.filter((m) => { if (filter === "online") return m.online; if (filter === "f" || filter === "m") return m.gender === filter; return true; }); - }, [filter]); + }, [filter, roster]); - const online = useMemo(() => MOCK_ROSTER.filter((m) => m.online), []); - const active = list.find((m) => m.id === activeId) || null; + const online = useMemo(() => roster.filter((m) => m.online), [roster]); - const toggleLike = (m: SocialRosterMember) => { + const toggleLike = ( + event: { preventDefault(): void; stopPropagation(): void }, + m: SocialRosterMember, + ) => { + event.preventDefault(); + event.stopPropagation(); saveJson(LIKE_KEY, { ...likes, [m.id]: !likes[m.id] }); window.dispatchEvent(new Event(LIKES_CHANGED)); setBurst(true); + setHighlightId(m.id); if (burstTimer.current) clearTimeout(burstTimer.current); burstTimer.current = setTimeout(() => setBurst(false), 700); }; @@ -111,16 +123,22 @@ export default function AttractiveRoster({ onJoin }: { onJoin: () => void }) {
- 01 / FIND YOUR PEOPLE - 有相似的热爱,也有不同的精彩 + 看看谁在这儿 + 点开认识

👋 - 这些人,也许你会想见 + 想见的人

-

从好奇一个人的生活开始,让下一次相遇自然发生。

+

+ 点开卡片,看看对方在做什么、想认识谁。 + 现在是示例介绍,方便你先逛逛 + {roster.some((m) => m.id === SELF_MEMBER_ID) + ? "(也包含你写好的介绍)" + : ""} +

@@ -131,15 +149,15 @@ export default function AttractiveRoster({ onJoin }: { onJoin: () => void }) {

{online.length}{" "} - 位演示在线 - · 非实时统计 + 位现在在线 + · 示例数据

@@ -160,7 +178,7 @@ export default function AttractiveRoster({ onJoin }: { onJoin: () => void }) { className={`social-people-filter${filter === f.id ? " active" : ""}`} onClick={() => { setFilter(f.id); - setActiveId(null); + setHighlightId(null); }} onKeyDown={(event) => { const key = event.key; @@ -178,7 +196,7 @@ export default function AttractiveRoster({ onJoin }: { onJoin: () => void }) { FILTERS.length; const next = FILTERS[nextIndex]; setFilter(next.id); - setActiveId(null); + setHighlightId(null); document.getElementById(`${filterId}-${next.id}`)?.focus(); }} > @@ -194,13 +212,12 @@ export default function AttractiveRoster({ onJoin }: { onJoin: () => void }) { aria-labelledby={`${filterId}-${filter}`} > {list.map((m, i) => ( - + + {m.name} + {m.id === SELF_MEMBER_ID ? " · 我" : ""} + + + {m.title} + {m.vibe ? ` · ${m.vibe.split("·")[0].trim()}` : ""} + + + {m.city.split("·")[0].trim()} + {m.tags[0] ? ` · ${m.tags[0]}` : ""} + + + {m.lookingFor} + + toggleLike(e, m)} + onKeyDown={(e) => { + if (e.key === "Enter" || e.key === " ") toggleLike(e, m); + }} + > + {likes[m.id] ? "♥" : "♡"} + + ))} - {active ? ( -
- {burst ? ( - - ✨💫💖 - - ) : null} - -
- - {active.name} - - {active.title} · {active.city} - {active.online ? " · 在线" : ""} - - -

{active.lookingFor}

-
- {active.tags.slice(0, 3).map((t) => ( - {t} - ))} -
-
-
- - -
-
- ) : ( -

- 👆 点选一位,看 TA 想认识什么样的人 -

- )} + {burst ? ( + + ♥ + + ) : null} + +

👆 点卡片看看详情,也可以先点爱心关注

-
diff --git a/src/modules/social/components/CafeDirectory.tsx b/src/modules/social/components/CafeDirectory.tsx index 8f53f27..f98634d 100644 --- a/src/modules/social/components/CafeDirectory.tsx +++ b/src/modules/social/components/CafeDirectory.tsx @@ -10,6 +10,7 @@ import { type FormEvent, } from "react"; import Link from "next/link"; +import { useSearchParams } from "next/navigation"; import { ArrowUpRight, Coffee, @@ -20,18 +21,22 @@ import { Wifi, } from "lucide-react"; import SiteShell from "./SiteShell"; +import CityDirectory from "./CityDirectory"; import { BookmarkButton, + DemoBadge, EmptyState, PageIntro, SearchField, ShareButton, } from "./SocialUI"; -import { SEED_CAFES } from "@social/lib/seed"; import { socialApi } from "@social/lib/api"; import { useLocalState } from "@social/lib/useLocalState"; import { uid } from "@social/lib/storage"; +import { resolveSocialCatalog } from "@social/lib/resolveCatalog"; +import { socialPath } from "@social/lib/socialPath"; import type { SocialCafe, SocialCafeReview } from "@social/lib/types"; +import { useSocialConfig } from "./SocialExperience"; type Review = SocialCafeReview & { local?: boolean }; @@ -52,6 +57,7 @@ function CafeDetail({ cafe, id }: { cafe: SocialCafe; id: string }) { const [author, setAuthor] = useLocalState("nick", "游民"); const [score, setScore] = useState(5); const [text, setText] = useState(""); + const [photoNote, setPhotoNote] = useState(""); const [status, setStatus] = useState(""); const [busy, setBusy] = useState(false); const lock = useRef(false); @@ -71,7 +77,7 @@ function CafeDetail({ cafe, id }: { cafe: SocialCafe; id: string }) { }) .catch(() => { if (active) - setStatus("当前离线:本机评价尚未送达社区,可联网后手动重试。"); + setStatus("网络不太好:评价先留在你这边了,有网后再点「再发一次」。"); }); return () => { active = false; @@ -80,8 +86,18 @@ function CafeDetail({ cafe, id }: { cafe: SocialCafe; id: string }) { const submit = async (event?: FormEvent, retry?: Review) => { event?.preventDefault(); const payload = retry - ? { author: retry.author, score: retry.score, text: retry.text } - : { author: author.trim() || "游民", score, text: text.trim() }; + ? { + 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); @@ -102,8 +118,11 @@ function CafeDetail({ cafe, id }: { cafe: SocialCafe; id: string }) { .catch(() => setStatus("评价已发布;列表暂未刷新,请稍后重新打开查看。"), ); - setStatus("评价已发布,谢谢你分享真实体验。"); - if (!retry && textRef.current.trim() === payload.text) setText(""); + setStatus("评价已发布"); + if (!retry && textRef.current.trim() === payload.text) { + setText(""); + setPhotoNote(""); + } } catch { if (!retry) setReviews((current) => [ @@ -116,20 +135,27 @@ function CafeDetail({ cafe, id }: { cafe: SocialCafe; id: string }) { }, ...current, ]); - setStatus("已保存到本机,尚未发布。联网后可点击评价下方的「重试发布」。"); - if (!retry && textRef.current.trim() === payload.text) setText(""); + setStatus("先留在你这边了。有网后点评价下面的「再发一次」就行。"); + if (!retry && textRef.current.trim() === payload.text) { + setText(""); + setPhotoNote(""); + } } finally { lock.current = false; setBusy(false); } }; - const invitation = `有朋友想在${cafe.city}的 ${cafe.name} 喝杯咖啡聊聊吗?想交流远程工作和最近的生活。`; + const invitation = `有人约在 ${cafe.city} · ${cafe.name} 喝咖啡,一起聊聊远程生活?`; return (
+
+ + {cafe.city} +
- THE NEXT COFFEE COULD CHANGE EVERYTHING + 详情
@@ -148,28 +174,31 @@ function CafeDetail({ cafe, id }: { cafe: SocialCafe; id: string }) { - 目录评分 {cafe.rating} + {cafe.rating} + {cafe.partners ? "推荐见面点" : "社区收录"} - 发起公开 Coffeechat 邀约 + 去聊天室约人

- 先在公开频道交流时间与人数,确认后再安排见面。 + 先在聊天室约好时间,再出来见面。评分供参考,你也可以留下自己的体验。

-

真实体验,让下一次约见更轻松。

+

写评价

void submit(event)} >
- 你的评分 + 评分 {[1, 2, 3, 4, 5].map((value) => (