/* 脉冲光效标识 */
.status-dot {
display: inline-block; width: 8px; height: 8px;
background: var(--ambient-color); border-radius: 50%;
box-shadow: 0 0 10px var(--ambient-color);
margin-right: 10px;
animation: pulse 2s infinite;
transition: background 0.4s, box-shadow 0.4s;
}
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
/* 全息按钮 */
.btn-cyber {
background: transparent;
border: 1px solid var(--ambient-color);
color: var(--ambient-color);
text-transform: uppercase;
letter-spacing: 3px;
position: relative;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
transform: translateZ(20px);
}
.btn-cyber:hover {
background: var(--ambient-color);
color: var(--bg-color);
box-shadow: 0 0 30px var(--ambient-shadow);
transform: translateZ(30px) scale(1.02);
letter-spacing: 5px;
}
/* ---------------- SVG 动画核心逻辑 ---------------- */
.drones-container {
position: absolute;
top: -160px;
left: 50%;
margin-left: -225px;
width: 450px;
height: 180px;
pointer-events: none;
overflow: visible;
z-index: 20;
transform: translateZ(60px);
}
/* 默认状态 */
#drone-a, #drone-b { transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
#drone-a { transform: translate(110px, 180px); }
#drone-b { transform: translate(320px, 180px); }
#arm-base { transform: rotate(-110deg); transition: transform 0.5s cubic-bezier(0.5, -0.5, 0.2, 1.5) 0.2s; }
#arm-forearm { transform: rotate(170deg); transition: transform 0.5s cubic-bezier(0.5, -0.5, 0.2, 1.5) 0.1s; }
#shield-iris { transform: scale(0) rotate(-180deg); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0s; }
.scan-beam { opacity: 0; transform-origin: 0px 2px; transform: scaleY(0); transition: all 0.3s; }
.eye-cyan, .eye-glow { transition: fill 0.3s, stroke 0.3s; }
/* 环绕全息光环 */
.holo-ring { opacity: 0; transform-origin: center; transition: opacity 0.5s; }
@keyframes ringSpin1 { 100% { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes ringSpin2 { 100% { transform: rotateX(60deg) rotateY(20deg) rotateZ(-360deg); } }
/* ========= 状态: 账号输入 (侦测与扫射) ========= */
.state-account {
--ambient-color: var(--accent);
--ambient-shadow: rgba(91,154,139,0.3);
}
.state-account #drone-a { transform: translate(110px, 50px); animation: float 4s ease-in-out infinite; }
.state-account .scan-beam {
opacity: 1; transform: scaleY(1);
animation: radarSweep 3s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
transition-delay: 0.5s;
}
.state-account #drone-a .holo-ring { opacity: 1; animation: ringSpin1 4s linear infinite; }
@keyframes radarSweep {
0% { transform: scaleY(1) rotate(-30deg); }
100% { transform: scaleY(1) rotate(30deg); }
}
@keyframes float {
0%, 100% { transform: translate(110px, 50px); }
50% { transform: translate(110px, 42px); }
}
/* ========= 状态: 密码输入 (红警拦截与护盾展开) ========= */
.state-password {
--ambient-color: var(--rose);
--ambient-shadow: rgba(232,152,126,0.3);
}
.state-password ~ #mouse-glow { background: radial-gradient(circle, rgba(255,0,60,0.08) 0%, transparent 70%) !important; }
.state-password #drone-a { transform: translate(110px, 70px); }
.state-password #drone-b { transform: translate(220px, 40px); animation: floatB 4s ease-in-out infinite; }
.state-password #arm-base { transform: rotate(0deg); transition-delay: 0.1s; }
.state-password #arm-forearm { transform: rotate(0deg); transition-delay: 0.2s; }
.state-password #shield-iris { transform: scale(1) rotate(0deg); transition-delay: 0.4s; }
.state-password #drone-b .eye-cyan { fill: var(--rose); transition-delay: 0.1s; }
.state-password #drone-b .holo-ring { opacity: 1; stroke: var(--rose); animation: ringSpin2 3s linear infinite; }
.state-password #drone-a .eye-cyan { fill: var(--rose); transform: scaleY(0.1); transition: all 0.15s 0.6s; }
.state-password #drone-a .eye-glow { stroke: var(--rose); transform: scale(1.2); opacity: 0.8; transition: all 0.2s 0.6s; }
.state-password #drone-a .holo-ring { stroke: var(--rose); animation: ringSpin1 0.5s linear infinite; }
@keyframes floatB {
0%, 100% { transform: translate(220px, 40px); }
50% { transform: translate(220px, 48px); }
}
/* 护盾展开时的震荡波效应 */
.shield-shockwave {
opacity: 0; transform: scale(0); fill: none; stroke: var(--rose); stroke-width: 4;
}
.state-password .shield-shockwave {
animation: shockwave 1s cubic-bezier(0.1, 0.8, 0.3, 1) 0.5s;
}
@keyframes shockwave {
0% { transform: scale(0); opacity: 1; stroke-width: 4;}
100% { transform: scale(4); opacity: 0; stroke-width: 0;}
}
/* ========= 状态: 登录 (空间跃迁) ========= */
.state-login .cyber-card {
border-color: var(--accent); box-shadow: 0 0 100px var(--ambient-shadow);
transform: translateZ(-200px) scale(0.8); opacity: 0; transition: all 0.8s cubic-bezier(0.5, 0, 0.2, 1);
}
.state-login #drone-a, .state-login #drone-b {
transform: translate(165px, -500px) scaleY(6); opacity: 0;
transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}
.state-login #arm-base, .state-login #arm-forearm, .state-login #shield-iris {
transition-duration: 0.1s; transition-delay: 0s; transform: scale(0);
}