Keep Codex layout polish, but force emoji/orbit/constellation animations when immersive is on even under OS reduced-motion. Co-authored-by: Cursor <cursoragent@cursor.com>
584 lines
11 KiB
CSS
584 lines
11 KiB
CSS
/* —— 动效强化(玻璃面板风格;禁止大图卡) —— */
|
|
|
|
.social-fx {
|
|
position: relative;
|
|
isolation: isolate;
|
|
overflow-x: clip;
|
|
}
|
|
|
|
.social-fx #particle-canvas {
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
opacity: 0.95;
|
|
}
|
|
|
|
.social-fx-orbs {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.social-fx-orb {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
filter: blur(70px);
|
|
opacity: 0.35;
|
|
animation: social-orb-drift 12s ease-in-out infinite;
|
|
}
|
|
|
|
.social-fx-orb.o1 {
|
|
width: 340px;
|
|
height: 340px;
|
|
left: -80px;
|
|
top: 18%;
|
|
background: #ff6b6b;
|
|
}
|
|
|
|
.social-fx-orb.o2 {
|
|
width: 280px;
|
|
height: 280px;
|
|
right: -60px;
|
|
top: 48%;
|
|
background: #4ecdc4;
|
|
animation-delay: -4s;
|
|
animation-duration: 14s;
|
|
}
|
|
|
|
.social-fx-orb.o3 {
|
|
width: 260px;
|
|
height: 260px;
|
|
left: 40%;
|
|
bottom: 8%;
|
|
background: #ffe66d;
|
|
animation-delay: -7s;
|
|
animation-duration: 16s;
|
|
}
|
|
|
|
@keyframes social-orb-drift {
|
|
0%,
|
|
100% {
|
|
transform: translate(0, 0) scale(1);
|
|
}
|
|
33% {
|
|
transform: translate(40px, -50px) scale(1.12);
|
|
}
|
|
66% {
|
|
transform: translate(-30px, 30px) scale(0.92);
|
|
}
|
|
}
|
|
|
|
/* Hero emoji rain */
|
|
.social-hero-fx {
|
|
position: relative;
|
|
}
|
|
|
|
.social-emoji-field {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
overflow: hidden;
|
|
z-index: 2;
|
|
}
|
|
|
|
.social-emoji-float {
|
|
position: absolute;
|
|
line-height: 1;
|
|
filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
|
|
animation-name: social-emoji-fly;
|
|
animation-timing-function: ease-in-out;
|
|
animation-iteration-count: infinite;
|
|
will-change: transform, opacity;
|
|
}
|
|
|
|
@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;
|
|
}
|
|
100% {
|
|
transform: translate3d(0, 12px, 0) rotate(-12deg) scale(0.92);
|
|
opacity: 0.25;
|
|
}
|
|
}
|
|
|
|
/* Emoji marquee belt */
|
|
.social-fx-belt {
|
|
overflow: hidden;
|
|
padding: 10px 0 18px;
|
|
mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
|
|
}
|
|
|
|
.social-fx-belt-track {
|
|
display: flex;
|
|
width: max-content;
|
|
gap: 0;
|
|
animation: social-belt-run 22s linear infinite;
|
|
}
|
|
|
|
.social-fx-belt-track span {
|
|
padding-right: 48px;
|
|
font-size: 1.35rem;
|
|
letter-spacing: 0.35em;
|
|
white-space: nowrap;
|
|
opacity: 0.55;
|
|
}
|
|
|
|
@keyframes social-belt-run {
|
|
from {
|
|
transform: translateX(0);
|
|
}
|
|
to {
|
|
transform: translateX(-33.333%);
|
|
}
|
|
}
|
|
|
|
/* Section spark */
|
|
.social-section-spark {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-bottom: 8px;
|
|
min-height: 28px;
|
|
}
|
|
|
|
.social-section-spark-svg {
|
|
width: min(240px, 72%);
|
|
height: 28px;
|
|
}
|
|
|
|
.social-spark-path {
|
|
stroke-dasharray: 280;
|
|
stroke-dashoffset: 280;
|
|
}
|
|
|
|
.reveal.visible .social-spark-path {
|
|
animation: social-spark-draw 1.1s ease forwards;
|
|
}
|
|
|
|
@keyframes social-spark-draw {
|
|
to {
|
|
stroke-dashoffset: 0;
|
|
}
|
|
}
|
|
|
|
.social-spark-dot {
|
|
animation: social-spark-blink 1.4s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes social-spark-blink {
|
|
0%,
|
|
100% {
|
|
opacity: 0.35;
|
|
r: 3;
|
|
}
|
|
50% {
|
|
opacity: 1;
|
|
r: 6;
|
|
}
|
|
}
|
|
|
|
.social-title-emoji {
|
|
display: inline-block;
|
|
margin-right: 0.35em;
|
|
animation: social-emoji-wiggle 1.8s ease-in-out infinite;
|
|
transform-origin: 50% 80%;
|
|
}
|
|
|
|
@keyframes social-emoji-wiggle {
|
|
0%,
|
|
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);
|
|
}
|
|
}
|
|
|
|
/* Path pills bounce in */
|
|
.social-path-track.reveal.visible .social-path-link {
|
|
animation: social-path-pop 0.55s cubic-bezier(0.2, 0.9, 0.2, 1.2) both;
|
|
}
|
|
|
|
.social-path-track.reveal.visible .social-path-link:nth-child(1) {
|
|
animation-delay: 0.05s;
|
|
}
|
|
.social-path-track.reveal.visible .social-path-link:nth-child(2) {
|
|
animation-delay: 0.12s;
|
|
}
|
|
.social-path-track.reveal.visible .social-path-link:nth-child(3) {
|
|
animation-delay: 0.19s;
|
|
}
|
|
.social-path-track.reveal.visible .social-path-link:nth-child(4) {
|
|
animation-delay: 0.26s;
|
|
}
|
|
|
|
@keyframes social-path-pop {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(16px) scale(0.86);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
.social-path-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.social-path-emoji {
|
|
display: inline-block;
|
|
font-size: 1.05rem;
|
|
transition: transform 0.25s;
|
|
}
|
|
|
|
.social-path-link:hover .social-path-emoji {
|
|
animation: social-emoji-wiggle 0.55s ease;
|
|
}
|
|
|
|
/* CTA pulse */
|
|
.social-btn-pulse {
|
|
position: relative;
|
|
overflow: visible;
|
|
}
|
|
|
|
.social-btn-pulse::before,
|
|
.social-btn-pulse::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: -4px;
|
|
border-radius: inherit;
|
|
border: 2px solid rgba(78, 205, 196, 0.55);
|
|
pointer-events: none;
|
|
animation: social-btn-ring 1.6s ease-out infinite;
|
|
}
|
|
|
|
.social-btn-pulse::before {
|
|
animation-delay: 0.8s;
|
|
}
|
|
|
|
@keyframes social-btn-ring {
|
|
0% {
|
|
transform: scale(1);
|
|
opacity: 0.75;
|
|
}
|
|
100% {
|
|
transform: scale(1.28);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.social-promo-glow {
|
|
animation: social-promo-breathe 3.2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes social-promo-breathe {
|
|
0%,
|
|
100% {
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(78, 205, 196, 0);
|
|
transform: translateY(0);
|
|
}
|
|
50% {
|
|
box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), 0 0 48px 4px rgba(78, 205, 196, 0.28);
|
|
transform: translateY(-4px);
|
|
}
|
|
}
|
|
|
|
.social-promo-live {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
margin-right: 6px;
|
|
border-radius: 999px;
|
|
background: #22c55e;
|
|
vertical-align: middle;
|
|
animation: social-live-ping 1.2s ease-out infinite;
|
|
}
|
|
|
|
@keyframes social-live-ping {
|
|
0% {
|
|
box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
|
|
}
|
|
70% {
|
|
box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
|
|
}
|
|
100% {
|
|
box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
|
|
}
|
|
}
|
|
|
|
/* Panels: animate when revealed */
|
|
.social-panel-fx {
|
|
--stagger: 0ms;
|
|
}
|
|
|
|
.reveal.visible .social-panel-fx,
|
|
.social-panel-fx.reveal.visible {
|
|
animation: social-panel-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
|
|
animation-delay: var(--stagger, 0ms);
|
|
}
|
|
|
|
@keyframes social-panel-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(28px) scale(0.96) rotateX(6deg);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
.social-panel-fx:hover {
|
|
transform: translateY(-6px) scale(1.01);
|
|
box-shadow: var(--shadow-glow), 0 0 0 1px rgba(78, 205, 196, 0.28);
|
|
transition: transform 0.25s, box-shadow 0.25s;
|
|
}
|
|
|
|
.social-panel-ico {
|
|
width: 52px;
|
|
height: 52px;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 16px;
|
|
border: var(--border-glass);
|
|
background: color-mix(in srgb, var(--accent-3, #4ecdc4) 14%, transparent);
|
|
font-size: 1.45rem;
|
|
color: var(--accent-3, #4ecdc4);
|
|
animation: social-ico-bounce 2s ease-in-out infinite;
|
|
}
|
|
|
|
.social-panel-ico-bounce {
|
|
animation-duration: 1.6s;
|
|
}
|
|
|
|
@keyframes social-ico-bounce {
|
|
0%,
|
|
100% {
|
|
transform: translateY(0) rotate(0deg);
|
|
}
|
|
50% {
|
|
transform: translateY(-8px) rotate(-6deg);
|
|
}
|
|
}
|
|
|
|
.social-ring-spin {
|
|
transform-origin: 24px 24px;
|
|
animation: social-ring-spin 3.5s linear infinite;
|
|
}
|
|
|
|
@keyframes social-ring-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* People chips */
|
|
.social-chip-pop {
|
|
animation: social-chip-in 0.5s cubic-bezier(0.2, 0.9, 0.2, 1.15) both;
|
|
animation-delay: var(--stagger, 0ms);
|
|
}
|
|
|
|
@keyframes social-chip-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.5) translateY(12px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
.social-people-chip:hover {
|
|
transform: translateY(-6px) scale(1.05) !important;
|
|
}
|
|
|
|
.social-people-chip.is-online .social-people-chip-ava::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: -4px;
|
|
border-radius: 999px;
|
|
border: 2px solid rgba(78, 205, 196, 0.65);
|
|
animation: social-btn-ring 1.4s ease-out infinite;
|
|
}
|
|
|
|
.social-people-bar-avs img {
|
|
animation: social-ava-bob 2.4s ease-in-out infinite;
|
|
}
|
|
|
|
.social-people-bar-avs img:nth-child(2) {
|
|
animation-delay: 0.15s;
|
|
}
|
|
.social-people-bar-avs img:nth-child(3) {
|
|
animation-delay: 0.3s;
|
|
}
|
|
.social-people-bar-avs img:nth-child(4) {
|
|
animation-delay: 0.45s;
|
|
}
|
|
.social-people-bar-avs img:nth-child(5) {
|
|
animation-delay: 0.6s;
|
|
}
|
|
.social-people-bar-avs img:nth-child(6) {
|
|
animation-delay: 0.75s;
|
|
}
|
|
|
|
@keyframes social-ava-bob {
|
|
0%,
|
|
100% {
|
|
transform: translateY(0);
|
|
}
|
|
50% {
|
|
transform: translateY(-5px);
|
|
}
|
|
}
|
|
|
|
.social-chip-heart {
|
|
position: absolute;
|
|
top: -4px;
|
|
right: -6px;
|
|
font-style: normal;
|
|
font-size: 0.8rem;
|
|
color: #ff6b6b;
|
|
animation: social-heart-pop 0.45s ease;
|
|
}
|
|
|
|
@keyframes social-heart-pop {
|
|
from {
|
|
transform: scale(0);
|
|
}
|
|
70% {
|
|
transform: scale(1.35);
|
|
}
|
|
to {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.social-count-pulse {
|
|
display: inline-block;
|
|
color: var(--accent-3, #4ecdc4);
|
|
animation: social-count-glow 1.4s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes social-count-glow {
|
|
0%,
|
|
100% {
|
|
text-shadow: 0 0 0 transparent;
|
|
transform: scale(1);
|
|
}
|
|
50% {
|
|
text-shadow: 0 0 16px rgba(78, 205, 196, 0.9);
|
|
transform: scale(1.08);
|
|
}
|
|
}
|
|
|
|
.social-detail-in {
|
|
animation: social-detail-slide 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
@keyframes social-detail-slide {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(16px) scale(0.98);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
.social-burst {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 1.6rem;
|
|
letter-spacing: 0.4em;
|
|
pointer-events: none;
|
|
animation: social-burst-up 0.75s ease forwards;
|
|
z-index: 2;
|
|
}
|
|
|
|
@keyframes social-burst-up {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px) scale(0.7);
|
|
}
|
|
35% {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: translateY(-36px) scale(1.35);
|
|
}
|
|
}
|
|
|
|
.social-logo-spin {
|
|
display: inline-block;
|
|
animation: social-logo-spin 6s linear infinite;
|
|
}
|
|
|
|
@keyframes social-logo-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.social-panel .btn-sm {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.social-hero-fx .shape {
|
|
animation-duration: 5.5s !important;
|
|
opacity: 0.55 !important;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.social-experience[data-immersive="false"] .social-emoji-float,
|
|
.social-experience[data-immersive="false"] .social-fx-orb,
|
|
.social-experience[data-immersive="false"] .social-fx-belt-track,
|
|
.social-experience[data-immersive="false"] .social-btn-pulse::before,
|
|
.social-experience[data-immersive="false"] .social-btn-pulse::after,
|
|
.social-experience[data-immersive="false"] .social-promo-glow,
|
|
.social-experience[data-immersive="false"] .social-promo-live,
|
|
.social-experience[data-immersive="false"] .social-panel-fx,
|
|
.social-experience[data-immersive="false"] .social-chip-pop,
|
|
.social-experience[data-immersive="false"] .social-title-emoji,
|
|
.social-experience[data-immersive="false"] .social-panel-ico,
|
|
.social-experience[data-immersive="false"] .social-ring-spin,
|
|
.social-experience[data-immersive="false"] .social-logo-spin,
|
|
.social-experience[data-immersive="false"]
|
|
.social-people-chip.is-online
|
|
.social-people-chip-ava::before,
|
|
.social-experience[data-immersive="false"] .social-people-bar-avs img,
|
|
.social-experience[data-immersive="false"] .social-count-pulse,
|
|
.social-experience[data-immersive="false"] .social-spark-path,
|
|
.social-experience[data-immersive="false"] .social-spark-dot,
|
|
.social-experience[data-immersive="false"] .social-hero-fx .shape {
|
|
animation: none !important;
|
|
}
|
|
}
|