/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根变量定义 */
:root {
    --primary-color: #d4af37;
    --secondary-color: #8b0000;
    --accent-color: #ff6b35;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #ecf0f1;
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: rgba(255, 255, 255, 0.95);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式 */
body {
    font-family: 'Noto Serif SC', serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 三国杀战斗场景背景 */
.battle-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.1) 0%, rgba(26, 26, 46, 0.3) 100%);
}

/* 战场烟雾效果 */
.smoke-effects {
    position: absolute;
    width: 100%;
    height: 100%;
}

.smoke {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: smokeFloat 15s ease-in-out infinite;
}

.smoke-1 {
    width: 300px;
    height: 150px;
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.smoke-2 {
    width: 250px;
    height: 120px;
    top: 60%;
    right: -5%;
    animation-delay: 5s;
}

.smoke-3 {
    width: 200px;
    height: 100px;
    bottom: 10%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes smokeFloat {
    0%, 100% { 
        transform: translateX(-50px) translateY(0px) scale(0.8);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(50px) translateY(-20px) scale(1.2);
        opacity: 0.6;
    }
}

/* 武将卡牌动画 */
.general-cards {
    position: absolute;
    width: 100%;
    height: 100%;
}

.general-card {
    position: absolute;
    width: 120px;
    height: 160px;
    border-radius: 12px;
    transform-style: preserve-3d;
    animation: cardFloat 8s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    right: 8%;
    animation-delay: 2.5s;
}

.card-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 5s;
}

.card-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 16px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--accent-color), 
        var(--secondary-color));
    opacity: 0.6;
    animation: cardGlow 3s ease-in-out infinite;
    filter: blur(8px);
}

.card-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.9) 0%, 
        rgba(212, 175, 55, 0.8) 50%, 
        rgba(139, 0, 0, 0.9) 100%);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.general-avatar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 30px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(0, 0, 0, 0.3) 100%);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

/* 武将特定样式 */
.general-card[data-general="zhuge"] .general-avatar {
    background: 
        radial-gradient(circle at 30% 30%, rgba(100, 150, 255, 0.3) 0%, transparent 50%),
        linear-gradient(45deg, rgba(139, 0, 0, 0.8), rgba(212, 175, 55, 0.6));
}

.general-card[data-general="guanyu"] .general-avatar {
    background: 
        radial-gradient(circle at 70% 20%, rgba(255, 100, 100, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(255, 107, 53, 0.7));
}

.general-card[data-general="zhaoyun"] .general-avatar {
    background: 
        radial-gradient(circle at 50% 40%, rgba(200, 200, 255, 0.3) 0%, transparent 50%),
        linear-gradient(90deg, rgba(139, 0, 0, 0.8), rgba(212, 175, 55, 0.8));
}

.skill-effect {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    height: 20px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    border-radius: 10px;
    opacity: 0.8;
    animation: skillPulse 2s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { 
        transform: translateY(0px) rotateY(0deg) rotateX(0deg);
    }
    25% { 
        transform: translateY(-15px) rotateY(5deg) rotateX(2deg);
    }
    50% { 
        transform: translateY(-10px) rotateY(0deg) rotateX(0deg);
    }
    75% { 
        transform: translateY(-20px) rotateY(-5deg) rotateX(-2deg);
    }
}

@keyframes cardGlow {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes skillPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scaleX(1);
    }
    50% { 
        opacity: 1;
        transform: scaleX(1.1);
    }
}

/* 技能特效粒子 */
.skill-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.skill-particles .particle {
    position: absolute;
    border-radius: 50%;
    animation: skillParticleFloat 6s ease-in-out infinite;
}

.particle.fire {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ff6b35 0%, #ff4500 100%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    box-shadow: 0 0 15px #ff6b35;
}

.particle.lightning {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #00bfff 0%, #1e90ff 100%);
    top: 40%;
    right: 15%;
    animation-delay: 1.5s;
    box-shadow: 0 0 20px #00bfff;
}

.particle.wind {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #98fb98 0%, #32cd32 100%);
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
    box-shadow: 0 0 12px #98fb98;
}

.particle.star {
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, #ffd700 0%, #ffb347 100%);
    top: 60%;
    left: 60%;
    animation-delay: 4.5s;
    box-shadow: 0 0 18px #ffd700;
}

.particle.energy {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #da70d6 0%, #ba55d3 100%);
    top: 80%;
    right: 25%;
    animation-delay: 2s;
    box-shadow: 0 0 25px #da70d6;
}

@keyframes skillParticleFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(0.8);
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-30px) translateX(15px) scale(1.2);
        opacity: 1;
    }
    50% { 
        transform: translateY(-20px) translateX(-10px) scale(1);
        opacity: 0.8;
    }
    75% { 
        transform: translateY(-40px) translateX(20px) scale(1.1);
        opacity: 0.9;
    }
}

/* 战斗光效 */
.battle-lights {
    position: absolute;
    width: 100%;
    height: 100%;
}

.light-beam {
    position: absolute;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.3) 50%, 
        transparent 100%);
    animation: lightSweep 10s ease-in-out infinite;
}

.beam-1 {
    top: 20%;
    left: -100%;
    width: 200%;
    height: 3px;
    animation-delay: 0s;
    transform: rotate(15deg);
}

.beam-2 {
    top: 60%;
    left: -100%;
    width: 200%;
    height: 2px;
    animation-delay: 3s;
    transform: rotate(-10deg);
}

.beam-3 {
    bottom: 25%;
    left: -100%;
    width: 200%;
    height: 4px;
    animation-delay: 6s;
    transform: rotate(5deg);
}

@keyframes lightSweep {
    0%, 100% { 
        left: -100%;
        opacity: 0;
    }
    10%, 90% { 
        opacity: 0.6;
    }
    50% { 
        left: 0%;
        opacity: 1;
    }
}

/* 三国杀卡牌飞行动画 */
.sanguosha-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.sanguosha-cards .game-card {
    pointer-events: auto;
}

.game-card {
    position: absolute;
    width: 80px;
    height: 120px;
    border-radius: 8px;
    transform-style: preserve-3d;
    animation: cardFly 12s ease-in-out infinite;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 卡牌边框 */
.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    border: 2px solid;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.8) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 卡牌内容 */
.card-content {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
}

.card-name {
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.card-type {
    font-size: 8px;
    text-align: center;
    color: #7f8c8d;
    margin-top: auto;
}

/* 卡牌拖尾效果 */
.card-effect-trail {
    position: absolute;
    top: 50%;
    left: -20px;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.6) 100%);
    border-radius: 1px;
    animation: trailEffect 1s ease-in-out infinite;
}

/* 不同卡牌的特定样式和位置 */
.game-card.wuzhongshengyou {
    top: 10%;
    left: -80px;
    animation-delay: 0s;
}

.game-card.wuzhongshengyou .card-border {
    border-color: #3498db;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.game-card.wuzhongshengyou .card-name {
    color: #1976d2;
}

.game-card.shunshounianyang {
    top: 25%;
    right: -80px;
    animation-delay: 2s;
}

.game-card.shunshounianyang .card-border {
    border-color: #9c27b0;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.game-card.shunshounianyang .card-name {
    color: #7b1fa2;
}

.game-card.sha {
    top: 40%;
    left: -80px;
    animation-delay: 4s;
}

.game-card.sha .card-border {
    border-color: #f44336;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.game-card.sha .card-name {
    color: #d32f2f;
}

.game-card.shan {
    top: 55%;
    right: -80px;
    animation-delay: 6s;
}

.game-card.shan .card-border {
    border-color: #4caf50;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}

.game-card.shan .card-name {
    color: #388e3c;
}

.game-card.tao {
    top: 70%;
    left: -80px;
    animation-delay: 8s;
}

.game-card.tao .card-border {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.game-card.tao .card-name {
    color: #f57c00;
}

.game-card.wanjianqifa {
    bottom: 15%;
    right: -80px;
    animation-delay: 10s;
}

.game-card.wanjianqifa .card-border {
    border-color: #795548;
    background: linear-gradient(135deg, #efebe9 0%, #d7ccc8 100%);
}

.game-card.wanjianqifa .card-name {
    color: #5d4037;
    font-size: 9px;
}

/* 卡牌飞行动画 */
@keyframes cardFly {
    0% {
        transform: translateX(0) translateY(0) rotateY(0deg) rotateZ(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    20% {
        transform: translateX(200px) translateY(-20px) rotateY(15deg) rotateZ(5deg);
        opacity: 1;
    }
    40% {
        transform: translateX(400px) translateY(-10px) rotateY(0deg) rotateZ(-3deg);
        opacity: 1;
    }
    60% {
        transform: translateX(600px) translateY(-30px) rotateY(-15deg) rotateZ(8deg);
        opacity: 1;
    }
    80% {
        transform: translateX(800px) translateY(-15px) rotateY(10deg) rotateZ(-5deg);
        opacity: 0.8;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(1000px) translateY(0) rotateY(0deg) rotateZ(0deg);
        opacity: 0;
    }
}

/* 拖尾效果动画 */
@keyframes trailEffect {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1.5);
    }
}

/* 卡牌悬停效果 */
.game-card:hover {
    animation-play-state: paused !important;
    transform: scale(1.3) translateZ(10px) !important;
    z-index: 100 !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

.game-card:hover .card-border {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5) !important;
    border-width: 3px !important;
}

.game-card:hover .card-effect-trail {
    animation-duration: 0.3s;
    opacity: 1;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 1) 100%);
}

.game-card:hover .card-name {
    font-weight: bold !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* 确保卡牌在所有状态下都可以交互 */
.game-card {
    pointer-events: auto !important;
    user-select: none;
}

/* 卡牌提示框动画 */
@keyframes tooltipFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-tooltip {
    animation: tooltipFadeIn 0.3s ease-out;
}

/* 高级粒子系统 */
.particle-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#particleCanvas {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

/* 全屏特效层 */
.effect-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

/* 震屏特效 */
.screen-shake {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.screen-shake.active {
    animation: screenShake 0.5s ease-in-out;
}

@keyframes screenShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-2px, -1px) rotate(-0.5deg); }
    20% { transform: translate(2px, 1px) rotate(0.5deg); }
    30% { transform: translate(-1px, 2px) rotate(-0.3deg); }
    40% { transform: translate(1px, -2px) rotate(0.3deg); }
    50% { transform: translate(-2px, 1px) rotate(-0.2deg); }
    60% { transform: translate(2px, -1px) rotate(0.2deg); }
    70% { transform: translate(-1px, -2px) rotate(-0.1deg); }
    80% { transform: translate(1px, 2px) rotate(0.1deg); }
    90% { transform: translate(-1px, 1px) rotate(-0.05deg); }
}

/* 超级炫丽的卡牌点击特效 */
.card-explosion {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    pointer-events: none;
    z-index: 1000;
}

.explosion-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 3px solid;
    border-radius: 50%;
    animation: explosionRing 1s ease-out forwards;
}

@keyframes explosionRing {
    0% {
        width: 0;
        height: 0;
        margin: 0;
        opacity: 1;
        border-width: 5px;
    }
    100% {
        width: 300px;
        height: 300px;
        margin: -150px 0 0 -150px;
        opacity: 0;
        border-width: 1px;
    }
}

/* 能量波纹特效 */
.energy-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: energyWave 0.8s ease-out forwards;
}

@keyframes energyWave {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: scale(20);
        opacity: 0;
    }
}

/* 星光爆炸特效 */
.star-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    animation: starBurst 1.2s ease-out forwards;
}

@keyframes starBurst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(3) rotate(360deg);
        opacity: 0;
    }
}

/* 3D翻转卡牌特效 */
.card-3d-flip {
    transform-style: preserve-3d;
    animation: card3DFlip 1s ease-in-out;
}

@keyframes card3DFlip {
    0% { transform: rotateY(0deg) rotateX(0deg) scale(1); }
    25% { transform: rotateY(90deg) rotateX(15deg) scale(1.1); }
    50% { transform: rotateY(180deg) rotateX(0deg) scale(1.2); }
    75% { transform: rotateY(270deg) rotateX(-15deg) scale(1.1); }
    100% { transform: rotateY(360deg) rotateX(0deg) scale(1); }
}

/* 霓虹发光边框 */
.neon-glow {
    box-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px currentColor,
        0 0 35px currentColor,
        0 0 40px currentColor;
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        box-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px currentColor,
            0 0 35px currentColor,
            0 0 40px currentColor;
    }
    to {
        box-shadow: 
            0 0 2px currentColor,
            0 0 5px currentColor,
            0 0 8px currentColor,
            0 0 12px currentColor,
            0 0 18px currentColor,
            0 0 25px currentColor;
    }
}

/* 彩虹渐变背景 */
.rainbow-bg {
    background: linear-gradient(45deg, 
        #ff0000, #ff8000, #ffff00, #80ff00, 
        #00ff00, #00ff80, #00ffff, #0080ff, 
        #0000ff, #8000ff, #ff00ff, #ff0080);
    background-size: 400% 400%;
    animation: rainbowShift 3s ease infinite;
}

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

/* 全息投影效果 */
.hologram {
    position: relative;
    overflow: hidden;
}

.hologram::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: hologramScan 2s linear infinite;
}

@keyframes hologramScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 超级炫丽的脉冲效果 */
.pulse-effect {
    animation: superPulse 2s ease-in-out infinite;
}

@keyframes superPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);
    }
}

/* 魔法圆环特效 */
.magic-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: conic-gradient(from 0deg, 
        #ff0000, #ff8000, #ffff00, #80ff00, 
        #00ff00, #00ff80, #00ffff, #0080ff, 
        #0000ff, #8000ff, #ff00ff, #ff0080, #ff0000);
    animation: magicRotate 3s linear infinite;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1000;
}

@keyframes magicRotate {
    0% { transform: rotate(0deg) scale(0.5); opacity: 0; }
    50% { transform: rotate(180deg) scale(1); opacity: 0.8; }
    100% { transform: rotate(360deg) scale(0.5); opacity: 0; }
}

/* 能量充电特效 */
.energy-charge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 70%);
    animation: energyCharge 1.5s ease-in-out;
    pointer-events: none;
    z-index: 999;
}

@keyframes energyCharge {
    0% { 
        transform: translateX(-100%) skewX(-20deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: translateX(100%) skewX(-20deg);
        opacity: 0;
    }
}

/* 数字雨特效 */
.digital-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    color: #00ff00;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 16px;
    font-weight: bold;
    animation: rainFall 3s linear infinite;
    opacity: 0.8;
    text-shadow: 0 0 5px currentColor;
    user-select: none;
}

@keyframes rainFall {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* 超级按钮特效 */
.super-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.super-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.super-button:active {
    transform: translateY(-1px);
}

.super-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.super-button:hover::before {
    left: 100%;
}

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

/* 光剑特效 */
.lightsaber {
    position: absolute;
    width: 4px;
    height: 100px;
    background: linear-gradient(to bottom, #00ffff, #0080ff);
    border-radius: 2px;
    box-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #00ffff;
    animation: lightsaberGlow 2s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1001;
}

@keyframes lightsaberGlow {
    0% {
        box-shadow: 
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 30px #00ffff;
    }
    100% {
        box-shadow: 
            0 0 20px #00ffff,
            0 0 40px #00ffff,
            0 0 60px #00ffff;
    }
}

/* 主容器 */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* 左侧装饰区域 */
.left-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: linear-gradient(45deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(139, 0, 0, 0.1) 50%, 
        rgba(255, 107, 53, 0.1) 100%);
}

.left-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.logo-section {
    margin-bottom: 3rem;
}

.logo-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px var(--primary-color); }
    to { text-shadow: 0 0 30px var(--primary-color), 0 0 40px var(--primary-color); }
}

.app-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 1s ease-out;
}

.app-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.decorative-elements {
    margin-top: 3rem;
}

.ancient-pattern {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    background: radial-gradient(circle, 
        transparent 40%, 
        var(--primary-color) 40%, 
        var(--primary-color) 42%, 
        transparent 42%),
        conic-gradient(from 0deg, 
        var(--primary-color) 0deg, 
        transparent 60deg, 
        var(--primary-color) 120deg, 
        transparent 180deg,
        var(--primary-color) 240deg, 
        transparent 300deg);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

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

.quote-section {
    max-width: 400px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.quote-section blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
    position: relative;
    padding: 0 2rem;
}

.quote-section blockquote::before,
.quote-section blockquote::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
}

.quote-section blockquote::before { left: 0; }
.quote-section blockquote::after { right: 0; }

.quote-section cite {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 右侧登录区域 */
.right-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    position: relative;
}

.right-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    animation: slideInRight 1s ease-out;
}

/* 表单头部和标签页 */
.form-header {
    margin-bottom: 2rem;
}

/* 标签页功能已删除 - 仅保留登录 */

/* 表单容器 */
.form-container {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.form-container.active {
    display: block;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-title p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 表单样式 */
.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container i {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    z-index: 1;
    transition: var(--transition);
}

.input-container input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: white;
    transition: var(--transition);
    outline: none;
}

.input-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input-container input:focus + label,
.input-container input:valid + label {
    transform: translateY(-2.5rem) scale(0.8);
    color: var(--primary-color);
}

.input-container input:focus ~ i {
    color: var(--primary-color);
}

.input-container label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition);
    background: white;
    padding: 0 0.5rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    transition: var(--transition);
}

.remember-me input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* 认证按钮通用样式 */
.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

/* 注册按钮样式已删除 */

/* 协议同意区域 */
.agreement-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkmark-agreement {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
    background: transparent;
}

.agreement-checkbox input[type="checkbox"] {
    display: none;
}

.agreement-checkbox input[type="checkbox"]:checked + .checkmark-agreement {
    background: linear-gradient(45deg, var(--primary-color), #ffd700);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.agreement-checkbox input[type="checkbox"]:checked + .checkmark-agreement::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.agreement-text {
    color: rgba(255, 255, 255, 0.9);
    user-select: none;
}

.terms-link, .privacy-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.terms-link:hover, .privacy-link:hover {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* 简洁底部区域 */
.form-footer {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 用户协议链接 */
.terms-link, .privacy-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.terms-link:hover, .privacy-link:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* 分割线 */
.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: var(--text-secondary);
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: var(--bg-card);
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* 注册链接 */
.signup-link {
    text-align: center;
    color: var(--text-secondary);
}

.signup-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.signup-link a:hover {
    text-decoration: underline;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 175, 55, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* 动画关键帧 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 武将卡牌悬停增强效果 */
.general-card:hover {
    animation-play-state: paused;
}

.general-card:hover .card-glow {
    animation-duration: 1s;
    opacity: 1;
    filter: blur(12px);
}

.general-card:hover .skill-effect {
    animation-duration: 0.5s;
    opacity: 1;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 50%, 
        var(--primary-color) 100%);
}

/* 技能激活状态 */
.skill-effect.active {
    animation: skillActivate 1s ease-out;
}

@keyframes skillActivate {
    0% { 
        transform: scaleY(0.2);
        opacity: 0;
    }
    50% { 
        transform: scaleY(1.5);
        opacity: 1;
        box-shadow: 0 0 20px var(--primary-color);
    }
    100% { 
        transform: scaleY(1);
        opacity: 0.8;
    }
}

/* 武将特定技能特效 */
.general-card[data-general="zhuge"]:hover .skill-effect {
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ff6b35 25%, 
        #ff4500 50%, 
        #ff6b35 75%, 
        transparent 100%);
    box-shadow: 0 0 15px #ff6b35;
}

.general-card[data-general="guanyu"]:hover .skill-effect {
    background: linear-gradient(90deg, 
        transparent 0%, 
        #00bfff 25%, 
        #1e90ff 50%, 
        #00bfff 75%, 
        transparent 100%);
    box-shadow: 0 0 15px #00bfff;
}

.general-card[data-general="zhaoyun"]:hover .skill-effect {
    background: linear-gradient(90deg, 
        transparent 0%, 
        #98fb98 25%, 
        #32cd32 50%, 
        #98fb98 75%, 
        transparent 100%);
    box-shadow: 0 0 15px #98fb98;
}

/* 战斗场景增强效果 */
.battle-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
    animation: battleAura 20s ease-in-out infinite;
}

@keyframes battleAura {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-section {
        min-height: 40vh;
        padding: 1rem;
    }
    
    .app-title {
        font-size: 2.5rem;
    }
    
    .right-section {
        padding: 1rem;
    }
    
    /* 社交登录已删除 */
    
    /* 移动端协议区域优化 */
    .agreement-section {
        margin: 1rem 0;
        padding: 0.8rem;
    }
    
    .agreement-text {
        font-size: 0.8rem;
    }
    
    /* 移动端底部区域优化 */
    .form-footer {
        padding: 0.8rem;
        margin-top: 1rem;
    }
    
    .form-footer p {
        font-size: 0.8rem;
    }
    
    .ancient-pattern {
        width: 150px;
        height: 150px;
    }
    
    /* 移动端武将卡牌调整 */
    .general-card {
        width: 80px;
        height: 110px;
    }
    
    .card-1 {
        top: 10%;
        left: 3%;
    }
    
    .card-2 {
        top: 35%;
        right: 5%;
    }
    
    .card-3 {
        bottom: 15%;
        left: 10%;
    }
    
    /* 移动端技能粒子调整 */
    .skill-particles .particle {
        width: 6px;
        height: 6px;
    }
    
    .particle.fire { width: 6px; height: 6px; }
    .particle.lightning { width: 4px; height: 4px; }
    .particle.wind { width: 8px; height: 8px; }
    .particle.star { width: 3px; height: 3px; }
    .particle.energy { width: 10px; height: 10px; }
    
    /* 移动端烟雾效果调整 */
    .smoke-1 { width: 200px; height: 100px; }
    .smoke-2 { width: 180px; height: 90px; }
    .smoke-3 { width: 150px; height: 75px; }
    
    /* 移动端三国杀卡牌调整 */
    .game-card {
        width: 70px;
        height: 105px;
        animation-duration: 18s;
        border: 2px solid rgba(255, 215, 0, 0.6);
    }
    
    .card-name {
        font-size: 10px;
        font-weight: bold;
    }
    
    .card-type {
        font-size: 8px;
    }
    
    /* 移动端触摸反馈 */
    .game-card:active {
        transform: scale(1.1) !important;
        transition: transform 0.1s ease !important;
    }
    
    .general-card:active {
        transform: scale(1.05) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* 移动端特效优化 */
    .explosion-ring {
        border-width: 2px;
    }
    
    .energy-wave {
        width: 8px;
        height: 8px;
    }
    
    .star-burst {
        width: 3px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 2rem;
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    /* 小屏幕武将卡牌进一步调整 */
    .general-card {
        width: 60px;
        height: 80px;
    }
    
    /* 隐藏部分特效以提升性能 */
    .battle-lights {
        display: none;
    }
    
    .skill-particles .particle.energy,
    .skill-particles .particle.star {
        display: none;
    }
}

/* 高性能模式 */
@media (prefers-reduced-motion: reduce) {
    .general-card,
    .smoke,
    .skill-particles .particle,
    .light-beam {
        animation: none !important;
    }
    
    .card-glow {
        animation: none !important;
        opacity: 0.4 !important;
    }
    
    .skill-effect {
        animation: none !important;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .general-card {
        cursor: default;
    }
    
    .general-card:active {
        transform: scale(1.05) translateY(-5px);
        transition: transform 0.1s ease;
    }
    
    /* 触摸反馈 */
    .general-card:active .card-glow {
        opacity: 1;
        animation-duration: 0.5s;
    }
}

/* 协议弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    height: 80%;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-content {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 12px 12px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* 移动端弹窗优化 */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        height: 85%;
        max-height: none;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* 万箭齐发样式 */
.arrow-rain {
    background: radial-gradient(ellipse at center, rgba(139, 69, 19, 0.05) 0%, transparent 70%);
}

/* 箭的额外效果 */
.arrow-drop {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: none; /* 禁用CSS过渡，使用JS动画 */
}

/* 通知背景遮罩 */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.notification-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* 通知气泡样式 - 屏幕中央 */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 320px;
    max-width: 500px;
    padding: 24px 30px;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    z-index: 10000;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    line-height: 1.6;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: notificationCenterPulse 0.8s ease-out;
}

.notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 三国主题通知样式 */
.notification.info {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.95) 0%, 
        rgba(41, 128, 185, 0.95) 50%,
        rgba(30, 100, 150, 0.95) 100%);
    border-left: 5px solid #3498db;
    color: white;
    box-shadow: 0 12px 40px rgba(52, 152, 219, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.success {
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.95) 0%, 
        rgba(39, 174, 96, 0.95) 50%,
        rgba(32, 140, 80, 0.95) 100%);
    border-left: 5px solid #27ae60;
    color: white;
    box-shadow: 0 12px 40px rgba(46, 204, 113, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.error {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.95) 0%, 
        rgba(192, 57, 43, 0.95) 50%,
        rgba(150, 40, 30, 0.95) 100%);
    border-left: 5px solid #e74c3c;
    color: white;
    box-shadow: 0 12px 40px rgba(231, 76, 60, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.warning {
    background: linear-gradient(135deg, 
        rgba(241, 196, 15, 0.95) 0%, 
        rgba(243, 156, 18, 0.95) 50%,
        rgba(200, 120, 10, 0.95) 100%);
    border-left: 5px solid #f39c12;
    color: #2c3e50;
    box-shadow: 0 12px 40px rgba(241, 196, 15, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 三国特色 - 智者蓝（诸葛亮） */
.notification.info::before {
    content: '智';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 三国特色 - 武圣绿（关羽） */
.notification.success::before {
    content: '义';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #27ae60, #229954);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 三国特色 - 猛将红（张飞） */
.notification.error::before {
    content: '勇';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 三国特色 - 帝王金（刘备） */
.notification.warning::before {
    content: '仁';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-content span {
    flex: 1;
    font-weight: 500;
}

/* 通知动画效果 - 中央弹出 */
@keyframes notificationCenterPulse {
    0% { 
        transform: translate(-50%, -50%) scale(0.3) rotate(-5deg);
        opacity: 0;
        filter: blur(10px);
    }
    30% { 
        transform: translate(-50%, -50%) scale(1.1) rotate(2deg);
        opacity: 0.7;
        filter: blur(2px);
    }
    60% { 
        transform: translate(-50%, -50%) scale(0.95) rotate(-1deg);
        opacity: 0.9;
        filter: blur(0px);
    }
    100% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes notificationGlow {
    0%, 100% { 
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% { 
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

.notification.success {
    animation: notificationCenterPulse 0.8s ease-out, notificationGlow 2s ease-in-out infinite;
}

.notification.error {
    animation: notificationCenterPulse 0.8s ease-out, notificationGlow 1.5s ease-in-out infinite;
}

.notification.info {
    animation: notificationCenterPulse 0.8s ease-out, notificationGlow 2.5s ease-in-out infinite;
}

.notification.warning {
    animation: notificationCenterPulse 0.8s ease-out, notificationGlow 1.8s ease-in-out infinite;
}

/* 通知内容增强 */
.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.notification-content::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0.8;
}

.notification-content i {
    font-size: 20px;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-content span {
    flex: 1;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 关闭按钮 */
.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transform: scale(1.1);
}

/* 移动端适配 - 保持居中 */
@media (max-width: 768px) {
    .notification {
        top: 50%;
        left: 50%;
        right: auto;
        min-width: 280px;
        max-width: 90vw;
        padding: 20px 24px;
        font-size: 15px;
        transform: translate(-50%, -50%) scale(0.3);
    }
    
    .notification.show {
        transform: translate(-50%, -50%) scale(1);
    }
    
    /* 移动端中央弹出动画 */
    @keyframes notificationCenterPulse {
        0% { 
            transform: translate(-50%, -50%) scale(0.2) rotate(-8deg);
            opacity: 0;
            filter: blur(15px);
        }
        35% { 
            transform: translate(-50%, -50%) scale(1.15) rotate(3deg);
            opacity: 0.6;
            filter: blur(3px);
        }
        70% { 
            transform: translate(-50%, -50%) scale(0.9) rotate(-1deg);
            opacity: 0.9;
            filter: blur(0px);
        }
        100% { 
            transform: translate(-50%, -50%) scale(1) rotate(0deg);
            opacity: 1;
            filter: blur(0px);
        }
    }
}

/* 震动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* 协议区域高亮 */
.agreement-section {
    transition: all 0.3s ease;
}

.agreement-section:focus-within {
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    padding: 8px;
    margin: -8px;
}
