/* 全局样式 */
.font-noto {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
}

/* 动画效果 */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(251, 146, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(251, 146, 60, 0.8);
    }
}

/* 应用动画类 */
.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-slide-up {
    animation: slide-up 1s ease-out 0.3s both;
}

.animate-bounce-in {
    animation: bounce-in 0.8s ease-out;
}

.animate-pulse-slow {
    animation: pulse-slow 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* 悬停效果 */
.hover-lift:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 10px 25px rgba(251, 146, 60, 0.3);
    transition: box-shadow 0.3s ease;
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #fb923c, #f97316, #ea580c);
}

.gradient-text {
    background: linear-gradient(135deg, #fb923c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 玻璃态效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 按钮特效 */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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;
}

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

/* 数字计数器 */
.counter {
    font-variant-numeric: tabular-nums;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .animate-fade-in,
    .animate-slide-up,
    .animate-bounce-in {
        animation-duration: 0.6s;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #fb923c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

/* 选择文本样式 */
::selection {
    background: #fb923c;
    color: white;
}

/* 焦点样式 */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: #fb923c;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(251, 146, 60, 0.3);
    border-radius: 50%;
    border-top-color: #fb923c;
    animation: spin 1s ease-in-out infinite;
}

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

/* 工具提示 */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tooltip:hover::after {
    opacity: 1;
}

/* 图标旋转效果 */
.icon-spin:hover {
    transform: rotate(360deg);
    transition: transform 0.5s ease;
}

/* 文本渐变动画 */
.text-gradient-animate {
    background: linear-gradient(-45deg, #fb923c, #f97316, #ea580c, #dc2626);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

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

/* 边框动画 */
.border-animate {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(45deg, #fb923c, #f97316) border-box;
    background-clip: padding-box, border-box;
}

/* 阴影效果 */
.shadow-glow {
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.3);
}

.shadow-glow-hover:hover {
    box-shadow: 0 0 30px rgba(251, 146, 60, 0.5);
    transition: box-shadow 0.3s ease;
}