/* Dolphin Logo Styles - 海豚图标动画样式 */ .dolphin-logo { display: inline-block; overflow: visible; } /* 整体游泳动画 */ .dolphin-animated .dolphin-body { animation: dolphinSwim 3s ease-in-out infinite; transform-origin: center center; } @keyframes dolphinSwim { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-3px) rotate(-2deg); } 50% { transform: translateY(0) rotate(0deg); } 75% { transform: translateY(2px) rotate(2deg); } } /* 尾巴摆动 */ .dolphin-animated .dolphin-tail { animation: tailWag 0.8s ease-in-out infinite; transform-origin: 20px 48px; } @keyframes tailWag { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-8deg); } } /* 背鳍微动 */ .dolphin-animated .dolphin-fin { animation: finMove 2s ease-in-out infinite; transform-origin: 45px 25px; } @keyframes finMove { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-3deg); } } /* 胸鳍划水 */ .dolphin-animated .dolphin-pectoral { animation: pectoralMove 1.5s ease-in-out infinite; transform-origin: 38px 55px; } @keyframes pectoralMove { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(5deg); } } /* 眼睛眨眼 */ .dolphin-animated .dolphin-eye { animation: blink 4s ease-in-out infinite; } @keyframes blink { 0%, 45%, 55%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.1); } } /* 眼睛高光闪烁 */ .dolphin-animated .dolphin-eye-highlight { animation: eyeSparkle 2s ease-in-out infinite; } @keyframes eyeSparkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } } /* 光泽流动 */ .dolphin-animated .dolphin-shine { animation: shineMove 3s ease-in-out infinite; } @keyframes shineMove { 0%, 100% { opacity: 0.8; transform: translateX(0); } 50% { opacity: 0.4; transform: translateX(2px); } } /* 气泡上浮已在 SVG 中定义 */ /* 悬停效果 */ .dolphin-logo:hover .dolphin-body { animation: dolphinJump 0.6s ease-out; } @keyframes dolphinJump { 0% { transform: translateY(0) rotate(0deg); } 30% { transform: translateY(-8px) rotate(-5deg); } 60% { transform: translateY(-4px) rotate(3deg); } 100% { transform: translateY(0) rotate(0deg); } } /* 暗色模式适配 */ @media (prefers-color-scheme: dark) { .dolphin-logo { filter: brightness(1.1); } } /* 禁用动画时的静态样式 */ .dolphin-logo:not(.dolphin-animated) .dolphin-body, .dolphin-logo:not(.dolphin-animated) .dolphin-tail, .dolphin-logo:not(.dolphin-animated) .dolphin-fin, .dolphin-logo:not(.dolphin-animated) .dolphin-pectoral, .dolphin-logo:not(.dolphin-animated) .dolphin-eye, .dolphin-logo:not(.dolphin-animated) .dolphin-eye-highlight, .dolphin-logo:not(.dolphin-animated) .dolphin-shine { animation: none; } .dolphin-logo:not(.dolphin-animated) .bubbles { display: none; }