/* 圆形布局样式 */
.model-diagram {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 隐藏原有的行式布局 */
.diagram-row {
    display: none !important;
}

/* 圆形卡片容器 - 逆时针旋转 */
.circular-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotate-ccw 30s linear infinite;
}

/* 逆时针旋转动画 */
@keyframes rotate-ccw {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/* 中心连接器样式保持不变 */
.diagram-connector {
    position: absolute;
    z-index: 10;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.connector-line {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed #3b82f6;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.connector-center {
    text-align: center;
    padding: 15px;
}

.pulse-text {
    color: #2563eb;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

/* 圆形卡片样式 - 由JS控制旋转 */
.circular-card {
    position: absolute;
    width: 180px;
    padding: 15px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    z-index: 5;
    transform-origin: center;
    /* 移除CSS动画，由JS控制旋转 */
}

.circular-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* 保持原有卡片内部样式 */
.circular-card .diagram-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #3b82f6;
}

.circular-card .diagram-content {
    text-align: center;
}

.circular-card .diagram-content h4 {
    margin-bottom: 0.5rem;
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 600;
}

.circular-card .diagram-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 添加平滑过渡效果 */
.circular-container, .circular-card {
    will-change: transform;
    backface-visibility: hidden;
}

/* 暂停动画当用户悬停时 */
.model-diagram:hover .circular-container,
.model-diagram:hover .circular-card {
    animation-play-state: paused;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .model-diagram {
        height: 400px;
    }
    
    .circular-card {
        width: 120px;
        padding: 10px;
    }
    
    .diagram-connector {
        width: 100px;
        height: 100px;
    }
    
    .pulse-text {
        font-size: 0.8rem;
    }
    
    .circular-card .diagram-icon {
        font-size: 1.2rem;
    }
    
    .circular-card .diagram-content h4 {
        font-size: 0.9rem;
    }
    
    .circular-card .diagram-content p {
        font-size: 0.75rem;
    }
    
    /* 移动端动画速度调整 */
    .circular-container {
        animation-duration: 40s;
    }
    
    .circular-card {
        animation-duration: 40s;
    }
}