/* 公司理念特定样式 */
.philosophy-container {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* 防止溢出产生滚动条 */
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, .53), rgba(0, 0, 0, .70)), url('/plugins/kaqidun/assets/images/footer/footer-bg.jpg');
    background-attachment: fixed;
}

.philosophy-bg {
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 0;
    width: 100%;
    box-sizing: border-box;
}

.philosophy-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: rgba(0, 0, 0, 0.4); */
    z-index: -1;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 动画类 - 修复溢出问题 */
.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    width: 100%;
    box-sizing: border-box;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* 为每个卡片添加不同的延迟 */
.card-animation-delay-1 {
    transition-delay: 0.2s;
}

.card-animation-delay-2 {
    transition-delay: 0.4s;
}

.card-animation-delay-3 {
    transition-delay: 0.6s;
}

/* 确保网格布局不会导致溢出 */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* 卡片容器样式 */
.philosophy-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    /* 防止内容溢出 */
}