@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

@layer utilities {
    .content-auto {
        content-visibility: auto;
    }

    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .text-shadow-lg {
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    }

    .bg-gradient-blue {
        background: linear-gradient(135deg, #00316e 0%, #0a5cad 100%);
    }

    .nav-active {
        position: relative;
    }

    .nav-active::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #ffe500;
        border-radius: 3px;
    }

    .animate-fade-in {
        animation: fadeIn 0.8s ease forwards;
    }
}

html {
    scroll-behavior: smooth;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* 新闻卡片样式 */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 相关新闻样式 */
.related-news-item {
    transition: all 0.3s ease;
}

.related-news-item:hover {
    transform: translateX(5px);
}

.related-news-item:hover .related-news-title {
    color: #00316e;
}

/* 评论卡片样式 */
.comment-card {
    transition: all 0.3s ease;
}

.comment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* 面包屑导航 */
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin: 0 0.5rem;
    color: #64748b;
}

h1, h2, h3, h4, h5, h6 {
    font-size: revert !important;
    font-weight: revert !important;
}


@media (max-width: 768px) {
    .newscard {
        display: none !important;
    }
}

