/* 卡片边框动画样式 */
.animated-border-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    border: 1px solid #e0e0e0;
}

.animated-border-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(180, 178, 178, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #165DFF;
}

.border-animation-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.border-animation-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    background-color: white;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.border-animation-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: transparent;
    border: 2px solid transparent;
    border-top-color: #2563eb;
    border-right-color: #2563eb;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    pointer-events: none;
}

/* 确保动画流畅 */
@keyframes borderFlow {
    0% {
        border-color: #2563eb;
        transform: rotate(0deg);
    }
    50% {
        border-color: #3b82f6;
        transform: rotate(180deg);
    }
    100% {
        border-color: #2563eb;
        transform: rotate(360deg);
    }
}

/* 适配移动端 */
@media (max-width: 768px) {
    .border-animation-content {
        padding: 16px;
    }
}