/* 额外的动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 140, 90, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 140, 90, 0.8); }
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 魔法粒子效果 */
.magic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.magic-particles::before,
.magic-particles::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 90, 0.3) 0%, transparent 70%);
    animation: float-particle 15s ease-in-out infinite;
}

.magic-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.magic-particles::after {
    top: 60%;
    right: 10%;
    animation-delay: 7.5s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0.6;
    }
}

/* 光效边框 */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff8c5a, #ffa500, #ffb370, #ff8c5a);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradient-border 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-border:hover::before {
    opacity: 1;
}

@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #ffa500;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #ffa500 }
}

/* 呼吸效果 */
.breathing {
    animation: breathing 3s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* 霓虹灯效果 */
.neon-text {
    text-shadow:
        0 0 5px #ff8c5a,
        0 0 10px #ff8c5a,
        0 0 20px #ff8c5a,
        0 0 40px #ffa500,
        0 0 80px #ffa500;
}

/* 3D翻转卡片 */
.flip-card {
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: inherit;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* 波纹效果 */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 140, 90, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.ripple:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* 加载动画 */
.loading-dots {
    display: inline-block;
    position: relative;
}

.loading-dots::before,
.loading-dots::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffa500;
    animation: loading-dots 1.4s infinite ease-in-out both;
}

.loading-dots::before {
    left: -20px;
    animation-delay: -0.32s;
}

.loading-dots::after {
    left: 20px;
    animation-delay: -0.16s;
}

@keyframes loading-dots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* 滚动指示器 */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff8c5a, #ffa500);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
}

/* 闪烁光效 */
.sparkle-effect {
    position: relative;
}

.sparkle-effect::before,
.sparkle-effect::after {
    content: '✦';
    position: absolute;
    color: #ffa500;
    animation: sparkle 1.5s ease-in-out infinite;
    opacity: 0;
}

.sparkle-effect::before {
    top: -5px;
    left: -10px;
    animation-delay: 0s;
}

.sparkle-effect::after {
    top: -5px;
    right: -10px;
    animation-delay: 0.75s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* 磁吸按钮效果 */
.magnetic-btn {
    transition: transform 0.3s ease;
}

/* 磨砂玻璃效果增强 */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 渐变边框动画 */
.gradient-border-animated {
    position: relative;
    overflow: hidden;
}

.gradient-border-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        #ff8c5a 90deg,
        #ffa500 180deg,
        #ffb370 270deg,
        transparent 360deg
    );
    animation: rotate-border 4s linear infinite;
}

@keyframes rotate-border-animated {
    100% { transform: rotate(360deg); }
}

/* 脉冲光圈 */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid #ffa500;
    border-radius: inherit;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s ease-out infinite;
    opacity: 0;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* 悬浮提示框 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* 摇晃效果 */
.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* 淡入淡出 */
.fade-in-out {
    animation: fade-in-out 3s ease-in-out infinite;
}

@keyframes fade-in-out {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 滑动文字 */
.slide-text {
    overflow: hidden;
    white-space: nowrap;
}

.slide-text span {
    display: inline-block;
    animation: slide-text 8s linear infinite;
}

@keyframes slide-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 鼠标跟随光标 */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 90, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* 加载圈 */
.loading-ring {
    display: inline-block;
    width: 40px;
    height: 40px;
}

.loading-ring::after {
    content: " ";
    display: block;
    width: 32px;
    height: 32px;
    margin: 4px;
    border-radius: 50%;
    border: 3px solid #ffa500;
    border-color: #ffa500 transparent #ffa500 transparent;
    animation: loading-ring 1.2s linear infinite;
}

@keyframes loading-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 波浪效果 */
.wave {
    position: relative;
    overflow: hidden;
}

.wave::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-top-color: #ff8c5a;
    border-radius: 50%;
    animation: wave 1.5s linear infinite;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 弹跳效果 */
.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* 旋转效果 */
.rotate {
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* 弹性效果 */
.elastic {
    animation: elastic 1s ease-out;
}

@keyframes elastic {
    0% { transform: scale(1); }
    30% { transform: scale(1.25); }
    40% { transform: scale(0.75); }
    50% { transform: scale(1.15); }
    65% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
