@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .card-hover {
        transition: all 0.3s ease;
    }
    .card-hover:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    }
    .gradient-overlay {
        background: linear-gradient(135deg, rgba(10,36,99,0.9) 0%, rgba(90,24,154,0.8) 100%);
    }
    .avatar-container {
        position: relative;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        overflow: hidden;
    }
    .avatar-container-sm {
        position: relative;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        overflow: hidden;
    }

    .avatar-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .nowrap-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* 滚动容器样式 */
    .scroll-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* 隐藏滚动条 */
    }
    .scroll-container::-webkit-scrollbar {
        display: none; /* 隐藏滚动条 */
    }
    .scroll-content {
        display: flex;
        gap: 1rem;
        padding-bottom: 1rem; /* 防止最后一个元素被截断 */
    }
    .scroll-item {
        min-width: 280px; /* 手机端卡片宽度 */
    }
    .scroll-hint {
        animation: scrollHint 1.5s infinite ease-in-out;
    }
    @keyframes scrollHint {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(10px); }
    }
    /* 滚动箭头样式 */
    .scroll-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
    }
    .scroll-arrow:hover {
        background-color: white;
        transform: translateY(-50%) scale(1.1);
    }
    .scroll-arrow-left {
        left: -20px;
    }
    .scroll-arrow-right {
        right: -20px;
    }
    .scroll-wrapper {
        position: relative;
        padding: 0 20px;
    }
    .input-error {
        border-color: #ef4444 !important;
    }
    .error-message {
        color: #ef4444;
        font-size: 0.875rem;
        margin-top: 0.25rem;
        min-height: 1rem;
    }
}
