@layer utilities {
    .text-shadow {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .card-hover {
        transition: all 0.3s ease;
    }

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    }

    .rotate-180 {
        transform: rotate(180deg);
    }

    /* 首屏背景图配置 */
    .hero-bg {
        background: url('../images/bg.png') center center / cover no-repeat;
        position: relative;
    }

    /* 半透明遮罩，提升文字可读性 */
    .hero-bg::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }

    /* 内容层级置顶 */
    .hero-content {
        position: relative;
        z-index: 2;
    }

    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .line-clamp-3 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .content-img {
        max-width: 100%;
        height: auto;
        border-radius: 0.5rem;
        margin: 1rem 0;
    }
}