:root {
    --font-geist-mono: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
}

.font-geist-mono {
    font-family: var(--font-geist-mono);
}

html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "salt" on, "liga" on, "calt" on;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 卡片淡入动画 */
.feature-card, .user-role-card, .phase-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-card.show, .user-role-card.show, .phase-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* 图表样式 */
.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 3s ease-in-out forwards;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

/* 模态框动画 */
#modal {
    transition: opacity 0.3s ease;
}

#modal.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* 无限渐变背景动画 */
.bg-gradient-animate {
    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%;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

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