.rit-icon-card {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 20px auto;
    border-radius: 70px;
    background-color: #ffffff;
    /* 强化阴影效果 - 默认样式 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-origin: center;
}

.rit-icon-container {
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.rit-icon-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* 默认显示图片，避免加载动画一直显示 */
    display: block;
}

.rit-icon-container img.loaded {
    opacity: 1;
}

/* 图标加载动画 */
.rit-icon-loader {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #2196F3;
    animation: spin 1s linear infinite;
    display: none; /* 默认隐藏加载器 */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 当图片加载时显示加载器，加载完成后隐藏 */
.rit-icon-image:not(.loaded) + .rit-icon-loader {
    display: block;
}

/* 当图标加载完成后显示图片并隐藏加载器 */
.rit-icon-image.loaded {
    opacity: 1;
}

.rit-icon-image.loaded + .rit-icon-loader {
    display: none;
}

/* 点击波纹效果 */
.rit-icon-card { 
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 1s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* 确保在移动设备上有良好的响应式表现 */
@media (max-width: 480px) {
    .rit-icon-card {
        width: 300px;
        height: 300px;
        border-radius: 50px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 3px 12px rgba(0, 0, 0, 0.08);
    }
    
    .rit-icon-container {
        width: 225px;
        height: 225px;
    }
}

/* 平板设备上的响应式表现 */
@media (min-width: 481px) and (max-width: 768px) {
    .rit-icon-card {
        width: 350px;
        height: 350px;
        border-radius: 60px;
        box-shadow: 0 9px 28px rgba(0, 0, 0, 0.13), 0 3px 14px rgba(0, 0, 0, 0.09);
    }
    
    .rit-icon-container {
        width: 260px;
        height: 260px;
    }
}
