/* 全局样式 */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #121826;
    color: #e2e8f0;
}

/* Minecraft 风格字体模拟 */
@font-face {
    font-family: 'Minecraftia';
    src: url('https://cdn.jsdelivr.net/npm/minecraft-font@1.0.0/minecraftia.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/npm/minecraft-font@1.0.0/minecraftia.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4CAF50;
}

/* 按钮和链接动画 */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(76, 175, 80, 0.1), 0 10px 10px -5px rgba(76, 175, 80, 0.04);
}

/* 背景动画 */
.animated-bg {
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

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

/* 图片悬停放大效果 */
.zoom-img {
    transition: transform 0.5s ease;
}

.zoom-img:hover {
    transform: scale(1.03);
}

/* 加载动画 */
.loader {
    border-top-color: #4CAF50;
    animation: spinner 1s linear infinite;
}

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