/* ============================================
   动画角色登录页 - 高端增强版
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* 左侧角色区域 */
.character-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 40%, #7c3aed 100%);
    padding: 48px;
    color: #fff;
    overflow: hidden;
    min-height: 100vh;
}

/* 装饰网格 - 透视效果 */
.character-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    0% { transform: perspective(500px) rotateX(0deg); }
    50% { transform: perspective(500px) rotateX(1deg); }
    100% { transform: perspective(500px) rotateX(0deg); }
}

/* 噪点纹理叠加 */
.character-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

/* 粒子画布 */
.particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* 装饰模糊圆 - 缓慢浮动 */
.decor-circle-1 {
    position: absolute;
    top: 20%;
    right: 20%;
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    animation: floatCircle1 8s ease-in-out infinite;
}

.decor-circle-2 {
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    animation: floatCircle2 10s ease-in-out infinite;
}

@keyframes floatCircle1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 15px) scale(1.05); }
}

@keyframes floatCircle2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -20px) scale(1.03); }
}

/* 品牌区 */
.brand-top {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.brand-icon:hover {
    transform: rotate(15deg) scale(1.1);
    background: rgba(255,255,255,0.2);
}

.brand-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* 状态指示 */
.brand-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(52,211,153,0); }
}

/* 角色舞台 */
.character-stage-wrapper {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 500px;
}

.character-stage {
    position: relative;
    width: 550px;
    max-width: 100%;
    height: 400px;
}

/* 舞台地面阴影 */
.stage-shadow {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, transparent 70%);
    z-index: 0;
}

/* 通用角色基础 */
.character {
    position: absolute;
    bottom: 0;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: bottom center;
    cursor: pointer;
}

/* 角色悬停弹跳 */
.character:hover {
    animation: charBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes charBounce {
    0% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-5px); }
    80% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* 角色阴影 */
.char-purple::after,
.char-dark::after,
.char-orange::after,
.char-yellow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 8px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, transparent 70%);
    z-index: -1;
}

/* =====================
   紫色角色 - 高矩形 (后排, z-1)
   ===================== */
.char-purple {
    left: 70px;
    width: 180px;
    height: 400px;
    background: linear-gradient(180deg, #7c5cfc 0%, #6C3FF5 30%, #5a2de0 100%);
    border-radius: 10px 10px 0 0;
    z-index: 1;
    box-shadow: inset -8px 0 20px rgba(0,0,0,0.1), inset 8px 0 20px rgba(255,255,255,0.05);
}

/* 紫色角色高光 */
.char-purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    border-radius: 10px 10px 0 0;
    pointer-events: none;
}

.char-purple .eyes {
    position: absolute;
    display: flex;
    gap: 32px;
    transition: all 0.7s ease-in-out;
    left: 45px;
    top: 40px;
}

.char-purple .eye {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.char-purple .pupil {
    width: 7px;
    height: 7px;
    background: #2D2D2D;
    border-radius: 50%;
    transition: transform 0.1s ease-out;
}

/* =====================
   黑色角色 - 中矩形 (中间, z-2)
   ===================== */
.char-dark {
    left: 240px;
    width: 120px;
    height: 310px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2D2D2D 30%, #1a1a1a 100%);
    border-radius: 8px 8px 0 0;
    z-index: 2;
    box-shadow: inset -6px 0 15px rgba(0,0,0,0.15), inset 6px 0 15px rgba(255,255,255,0.03);
}

.char-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}

.char-dark .eyes {
    position: absolute;
    display: flex;
    gap: 24px;
    transition: all 0.7s ease-in-out;
    left: 26px;
    top: 32px;
}

.char-dark .eye {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.char-dark .pupil {
    width: 6px;
    height: 6px;
    background: #2D2D2D;
    border-radius: 50%;
    transition: transform 0.1s ease-out;
}

/* =====================
   橙色角色 - 宽半圆 (前排左侧, z-3)
   ===================== */
.char-orange {
    left: 0;
    width: 240px;
    height: 200px;
    background: linear-gradient(180deg, #ffb088 0%, #FF9B6B 30%, #f08050 100%);
    border-radius: 120px 120px 0 0;
    z-index: 3;
    box-shadow: inset -8px 0 20px rgba(0,0,0,0.08), inset 8px 0 20px rgba(255,255,255,0.08);
}

.char-orange::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
    border-radius: 120px 120px 0 0;
    pointer-events: none;
}

.char-orange .eyes {
    position: absolute;
    display: flex;
    gap: 32px;
    transition: all 0.2s ease-out;
    left: 82px;
    top: 90px;
}

.char-orange .pupil {
    width: 12px;
    height: 12px;
    background: #2D2D2D;
    border-radius: 50%;
    transition: transform 0.1s ease-out;
}

/* =====================
   黄色角色 - 圆顶矩形 (前排右侧, z-4)
   ===================== */
.char-yellow {
    left: 310px;
    width: 140px;
    height: 230px;
    background: linear-gradient(180deg, #f0e068 0%, #E8D754 30%, #d4c340 100%);
    border-radius: 70px 70px 0 0;
    z-index: 4;
    box-shadow: inset -6px 0 15px rgba(0,0,0,0.06), inset 6px 0 15px rgba(255,255,255,0.1);
}

.char-yellow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    border-radius: 70px 70px 0 0;
    pointer-events: none;
}

.char-yellow .eyes {
    position: absolute;
    display: flex;
    gap: 24px;
    transition: all 0.2s ease-out;
    left: 52px;
    top: 40px;
}

.char-yellow .pupil {
    width: 12px;
    height: 12px;
    background: #2D2D2D;
    border-radius: 50%;
    transition: transform 0.1s ease-out;
}

.char-yellow .mouth {
    position: absolute;
    width: 80px;
    height: 4px;
    background: #2D2D2D;
    border-radius: 9999px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    left: 40px;
    top: 88px;
}

/* 黄色角色表情状态 */
.char-yellow.happy .mouth {
    height: 20px;
    width: 40px;
    left: 60px;
    border-radius: 0 0 40px 40px;
    background: #2D2D2D;
}

.char-yellow.surprised .mouth {
    width: 16px;
    height: 16px;
    left: 72px;
    border-radius: 50%;
}

/* 黄色不耐烦 - 嘴巴歪歪的 */
.char-yellow.impatient .mouth {
    width: 30px;
    height: 8px;
    left: 65px;
    border-radius: 0 0 15px 0;
    transform: rotate(-10deg);
}

/* 黄色愤怒 - 嘴巴倒三角 */
.char-yellow.angry .mouth {
    width: 40px;
    height: 12px;
    left: 60px;
    border-radius: 6px;
    background: #c0392b;
}

/* 黄色角色愤怒时眉毛(用 box-shadow 模拟) */
.char-yellow.angry .eyes::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -4px;
    width: 60px;
    height: 4px;
    background: #2D2D2D;
    border-radius: 2px;
    transform: rotate(-8deg);
}

/* 黄色角色不耐烦时的晃动 */
.char-yellow.impatient {
    animation: impatientWiggle 0.3s ease-in-out infinite;
}

@keyframes impatientWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

/* =====================
   角色闲置打瞌睡
   ===================== */
.character.sleeping {
    animation: sleepBob 2s ease-in-out infinite !important;
}

@keyframes sleepBob {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(3px) rotate(1deg); }
}

/* Zzz 气泡 */
.sleep-zzz {
    position: absolute;
    top: -40px;
    right: -10px;
    font-size: 18px;
    font-weight: 900;
    color: rgba(255,255,255,0.7);
    z-index: 50;
    animation: zzzFloat 1.5s ease-in-out infinite;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

@keyframes zzzFloat {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    50% { transform: translateY(-15px) scale(1); opacity: 1; }
    100% { transform: translateY(-30px) scale(0.6); opacity: 0; }
}

/* =====================
   橙色脸红效果
   ===================== */
.char-orange.blushing::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(255,100,100,0.35) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 5;
    animation: blushPulse 1s ease-in-out infinite;
}

@keyframes blushPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* =====================
   紫色偷偷摸摸效果
   ===================== */
.char-purple.sneaking {
    animation: sneakLean 1.5s ease-in-out infinite !important;
}

@keyframes sneakLean {
    0%, 100% { transform: skewX(0deg) translateX(0); }
    30% { transform: skewX(-8deg) translateX(15px); }
    70% { transform: skewX(4deg) translateX(-5px); }
}

/* 紫色汗滴 */
.sweat-drop {
    position: absolute;
    top: 20px;
    right: 15px;
    width: 8px;
    height: 12px;
    background: rgba(100,200,255,0.8);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: 50;
    animation: sweatDrip 1s ease-in forwards;
}

@keyframes sweatDrip {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(40px) scale(0.5); opacity: 0; }
}

/* =====================
   登录失败 - 全体震动
   ===================== */
.character.login-fail {
    animation: failShake 0.5s ease-in-out !important;
}

@keyframes failShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    10% { transform: translateX(-15px) rotate(-5deg); }
    20% { transform: translateX(15px) rotate(5deg); }
    30% { transform: translateX(-12px) rotate(-4deg); }
    40% { transform: translateX(12px) rotate(4deg); }
    50% { transform: translateX(-8px) rotate(-2deg); }
    60% { transform: translateX(8px) rotate(2deg); }
    70% { transform: translateX(-4px) rotate(-1deg); }
    80% { transform: translateX(4px) rotate(1deg); }
    90% { transform: translateX(-2px); }
}

/* =====================
   角色被点击 - 挤压弹跳
   ===================== */
.character.squished {
    animation: squishBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes squishBounce {
    0% { transform: scaleX(1) scaleY(1); }
    15% { transform: scaleX(1.3) scaleY(0.7); }
    30% { transform: scaleX(0.8) scaleY(1.2); }
    45% { transform: scaleX(1.15) scaleY(0.85); }
    60% { transform: scaleX(0.95) scaleY(1.05); }
    100% { transform: scaleX(1) scaleY(1); }
}

/* =====================
   黑色角色"安全扫描"效果
   ===================== */
.char-dark.scanning::before {
    background: linear-gradient(180deg, rgba(0,255,100,0.15) 0%, transparent 100%) !important;
    animation: scanPulse 0.5s ease-in-out infinite;
}

@keyframes scanPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 扫描线 */
.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0,255,100,0.6);
    z-index: 10;
    box-shadow: 0 0 8px rgba(0,255,100,0.4);
    animation: scanDown 1.5s ease-in-out infinite;
}

@keyframes scanDown {
    0% { top: 0; }
    100% { top: 100%; }
}

/* =====================
   感叹号/问号标记
   ===================== */
.char-mark {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    font-size: 28px;
    font-weight: 900;
    z-index: 50;
    animation: markPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes markPop {
    0% { transform: translateX(-50%) scale(0) translateY(10px); opacity: 0; }
    50% { transform: translateX(-50%) scale(1.3) translateY(-5px); opacity: 1; }
    70% { transform: translateX(-50%) scale(0.9) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) scale(1) translateY(0); opacity: 1; }
}

/* =====================
   更夸张的庆祝效果
   ===================== */
@keyframes charCelebrate {
    0% { transform: translateY(0) rotate(0) scale(1); }
    15% { transform: translateY(-60px) rotate(-10deg) scale(1.1); }
    30% { transform: translateY(-20px) rotate(8deg) scale(0.95); }
    45% { transform: translateY(-50px) rotate(-6deg) scale(1.05); }
    60% { transform: translateY(-10px) rotate(4deg) scale(0.98); }
    75% { transform: translateY(-35px) rotate(-3deg) scale(1.02); }
    100% { transform: translateY(0) rotate(0) scale(1); }
}

/* =====================
   彩虹文字效果（庆祝时）
   ===================== */
.rainbow-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 900;
    z-index: 10000;
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 1s linear infinite, rainbowPop 2s ease-out forwards;
    text-shadow: none;
    letter-spacing: 4px;
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes rainbowPop {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-10deg); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.3) rotate(5deg); opacity: 1; }
    40% { transform: translate(-50%, -50%) scale(0.9) rotate(-3deg); opacity: 1; }
    60% { transform: translate(-50%, -50%) scale(1.1) rotate(2deg); opacity: 1; }
    80% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
    100% { transform: translate(-50%, -80%) scale(0.8); opacity: 0; }
}

/* =====================
   角色逃跑动画（鼠标接近时）
   ===================== */
.character.flee-left {
    animation: fleeLeft 0.4s ease-out forwards !important;
}

.character.flee-right {
    animation: fleeRight 0.4s ease-out forwards !important;
}

@keyframes fleeLeft {
    0% { transform: translateX(0) rotate(0); }
    30% { transform: translateX(-20px) rotate(-8deg); }
    100% { transform: translateX(-35px) rotate(-3deg); }
}

@keyframes fleeRight {
    0% { transform: translateX(0) rotate(0); }
    30% { transform: translateX(20px) rotate(8deg); }
    100% { transform: translateX(35px) rotate(3deg); }
}

/* =====================
   角色跳舞动画（闲置时随机）
   ===================== */
.character.dancing {
    animation: charDance 0.8s ease-in-out infinite !important;
}

@keyframes charDance {
    0%, 100% { transform: translateY(0) rotate(0) skewX(0); }
    25% { transform: translateY(-10px) rotate(-5deg) skewX(3deg); }
    50% { transform: translateY(0) rotate(0) skewX(0); }
    75% { transform: translateY(-10px) rotate(5deg) skewX(-3deg); }
}

/* =====================
   眨眼效果 - 仅紫色和黑色
   ===================== */
.char-purple.blink .eye,
.char-dark.blink .eye {
    height: 2px !important;
    overflow: hidden;
}

.char-purple.blink .pupil,
.char-dark.blink .pupil {
    display: none;
}

/* =====================
   登录成功庆祝
   ===================== */
.character.celebrate {
    animation: charCelebrate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes charCelebrate {
    0% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-40px) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
    75% { transform: translateY(-25px) rotate(-2deg); }
    100% { transform: translateY(0) rotate(0); }
}

/* 浮动代码片段 */
.floating-code {
    position: absolute;
    z-index: 3;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.08);
    white-space: nowrap;
    pointer-events: none;
    animation: floatCode 15s linear infinite;
}

@keyframes floatCode {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(5deg); opacity: 0; }
}

/* 底部链接 */
.panel-footer {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.03em;
}

.panel-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.panel-footer a:hover {
    color: #fff;
}

/* 版本标签 */
.version-tag {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    color: rgba(255,255,255,0.5);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* =====================
   右侧登录表单
   ===================== */
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

/* 右侧背景微装饰 */
.login-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-box {
    width: 100%;
    max-width: 420px;
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    line-height: 1.2;
}

.login-header p {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
}

/* 安全徽章 */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 4px 12px;
    background: rgba(99,102,241,0.06);
    border-radius: 20px;
    font-size: 11px;
    color: #6366f1;
    font-weight: 500;
}

.security-badge svg {
    width: 12px;
    height: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-label svg {
    width: 14px;
    height: 14px;
    color: #999;
}

.cartoon-input {
    width: 100%;
    height: 48px !important;
    padding: 0 16px !important;
    background: #fff !important;
    border: 1.5px solid rgba(0,0,0,0.1) !important;
    border-radius: 10px !important;
    color: #333 !important;
    font-size: 15px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
}

.cartoon-input::placeholder {
    color: #bbb;
    transition: color 0.2s;
}

.cartoon-input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1), 0 2px 8px rgba(99,102,241,0.08) !important;
    background: #fff !important;
}

.cartoon-input:focus::placeholder {
    color: #ccc;
}

/* 输入状态指示条 */
.input-indicator {
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #6366f1;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.cartoon-input:focus ~ .input-indicator {
    transform: scaleX(1);
}

/* 密码框容器 */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border-radius: 4px;
}

.password-toggle:hover {
    color: #6366f1;
    background: rgba(99,102,241,0.05);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* 记住 & 忘记密码 */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* 登录按钮 - 高端版 */
.login-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}

/* 按钮光泽扫过效果 */
.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 2px 10px rgba(99,102,241,0.3);
}

.login-btn .btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.login-btn:hover .btn-icon {
    transform: translateX(3px);
}

.login-btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

.login-btn.loading .btn-text {
    display: none;
}

.login-btn.loading .btn-icon {
    display: none;
}

/* 加载动画 */
.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.login-btn.loading .btn-spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-btn.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
    pointer-events: none;
}

/* 登录底部 */
.login-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-footer svg {
    width: 12px;
    height: 12px;
    color: #ccc;
}

/* =====================
   键盘快捷键提示
   ===================== */
.keyboard-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 11px;
    color: #ccc;
}

.kbd {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 10px;
    color: #999;
    box-shadow: 0 1px 0 #d1d5db;
}

/* =====================
   角色对话气泡
   ===================== */
.char-bubble {
    position: absolute;
    padding: 6px 12px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 30;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: 500;
}

.char-bubble::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(255,255,255,0.95);
}

.char-bubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =====================
   五彩纸屑
   ===================== */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    top: -10px;
    animation: confettiFall 2.5s ease-in forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0) scale(1); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg) scale(0.5); opacity: 0; }
}

/* =====================
   响应式
   ===================== */
@media (max-width: 1024px) {
    body {
        display: flex;
        flex-direction: column;
    }

    .character-panel {
        min-height: 360px;
        padding: 32px;
    }

    .character-stage-wrapper {
        height: 320px;
    }

    .character-stage {
        transform: scale(0.55);
        transform-origin: center bottom;
    }

    .login-panel {
        width: 100%;
        padding: 30px 20px;
    }

    .floating-code {
        display: none;
    }
}

@media (max-width: 768px) {
    .character-panel {
        min-height: 300px;
        padding: 24px;
    }

    .character-stage-wrapper {
        height: 260px;
    }

    .character-stage {
        transform: scale(0.45);
    }

    .panel-footer {
        gap: 16px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .character-stage {
        transform: scale(0.4);
    }
    .character-panel {
        min-height: 280px;
        padding: 16px;
    }
    .keyboard-hint {
        display: none;
    }
    .login-panel {
        padding: 24px 16px;
    }
    .login-header h2 {
        font-size: 24px;
    }
    .panel-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* LayUI 覆盖 */
.layui-layer-loading .layui-layer-content {
    background-color: transparent !important;
}
